]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Remove cplus_specific from general_symbol_info.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-02 Doug Evans <dje@google.com>
2
3 * symtab.c (symbol_init_cplus_specific): Delete.
4 (symbol_set_demangled_name): Remove special c++ support.
5 (symbol_get_demangled_name, symbol_set_language): Ditto.
6 * symtab.h (struct cplus_specific): Delete.
7 (struct general_symbol_info) <language_specific>: Remove
8 cplus_specific.
9
10 2014-12-02 Doug Evans <dje@google.com>
11
12 PR symtab/17602
13 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
14
15 2014-12-02 Doug Evans <dje@google.com>
16
17 PR symtab/17591
18 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
19 to strip parameters.
20
21 2014-12-02 Doug Evans <dje@google.com>
22
23 * dwarf2read.c (peek_die_abbrev): Improve error message text.
24
25 2014-12-02 Doug Evans <dje@google.com>
26
27 * valops.c (do_search_struct_field): Remove remnant of Chill support.
28 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
29
30 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
31
32 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
33
34 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
35
36 * NEWS: Mention new Python events.
37 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
38 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
39 (py-infevents.o): New rule.
40 * doc/observer.texi (inferior_call_pre, inferior_call_post)
41 (memory_changed, register_changed): New observers.
42 * infcall.c (call_function_by_hand): Notify observer before and
43 after inferior call.
44 * python/py-event.h (inferior_call_kind): New enum.
45 (emit_inferior_call_event): New prototype.
46 (emit_register_changed_event): New prototype.
47 (emit_memory_changed_event): New prototype.
48 * python/py-events.h (events_object): New registries
49 inferior_call, memory_changed and register_changed.
50 * python/py-evts.c (gdbpy_initialize_py_events): Add the
51 inferior_call, memory_changed and register_changed registries.
52 * python/py-infevents.c: New.
53 * python/py-inferior.c (python_on_inferior_call_pre)
54 (python_on_inferior_call_post, python_on_register_change)
55 (python_on_memory_change): New functions.
56 (gdbpy_initialize_inferior): Attach python handler to new
57 observers.
58 * python/py-infthread.c(gdbpy_create_ptid_object): New.
59 (thpy_get_ptid) Use gdbpy_create_ptid_object.
60 * python/python-internal.h:
61 (gdbpy_create_ptid_object)
62 (gdbpy_initialize_inferior_call_pre_event)
63 (gdbpy_initialize_inferior_call_post_event)
64 (gdbpy_initialize_register_changed_event)
65 (gdbpy_initialize_memory_changed_event): New prototypes.
66 * python/python.c (_initialize_python): Initialize new events.
67 * valops.c (value_assign): Notify register_changed observer.
68
69 2014-12-02 Doug Evans <dje@google.com>
70
71 * python/py-infthread.c: Whitespace fixes.
72
73 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
74
75 * features/Makefile (s390-te-linux64-expedite): Replace
76 non-existant r14 and r15 by r14l and r15l, respectively.
77 * regformats/s390-te-linux64.dat: Regenerate.
78
79 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
80
81 * objfiles.c (allocate_objfile): Remove duplicate comment.
82
83 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
84
85 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
86 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
87 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
88 (supply_gregset, supply_fpregset): Remove.
89 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
90 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
91 and sizeof_gregset.
92
93 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
94
95 Add add-auto-load-scripts-directory.
96 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
97 * auto-load.c (add_auto_load_dir): New function.
98 (_initialize_auto_load): Install it.
99
100 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
101
102 Pushed by Joel Brobecker <brobecker@adacore.com>.
103 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
104
105 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
106
107 * eval.c (evaluate_subexp): Check that the thread stack temporaries
108 are not already enabled before enabling them.
109
110 2014-11-29 Yao Qi <yao@codesourcery.com>
111
112 * arm-tdep.c (arm_analyze_prologue): Move local variables
113 'framereg' and 'framesize' to inner block. Move code to
114 inner block too.
115
116 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
117
118 * eval.c: Include gdbthread.h.
119 (evaluate_subexp): Enable thread stack temporaries before
120 evaluating a complete expression and clean them up after the
121 evaluation is complete.
122 * gdbthread.h: Include common/vec.h.
123 (value_ptr): New typedef.
124 (VEC (value_ptr)): New vector type.
125 (value_vec): New typedef.
126 (struct thread_info): Add new fields stack_temporaries_enabled
127 and stack_temporaries.
128 (enable_thread_stack_temporaries)
129 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
130 (get_last_thread_stack_temporary)
131 (value_in_thread_stack_temporaries): Declare.
132 * gdbtypes.c (class_or_union_p): New function.
133 * gdbtypes.h (class_or_union_p): Declare.
134 * infcall.c (call_function_by_hand): Store return values of class
135 type as temporaries on stack.
136 * thread.c (enable_thread_stack_temporaries): New function.
137 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
138 (get_last_thread_stack_temporary): Likewise.
139 (value_in_thread_stack_temporaries): Likewise.
140 * value.c (value_force_lval): New function.
141 * value.h (value_force_lval): Declare.
142
143 2014-11-28 Pierre Muller <muller@sourceware.org>
144
145 Pushed by Joel Brobecker <brobecker@adacore.com>.
146 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
147 registers.
148
149 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
150
151 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
152 * config/sparc/linux.mh (NATDEPFILES): Likewise.
153 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
154 * m68klinux-nat.c (fetch_core_registers): Remove.
155 (linux_elf_core_fns): Remove.
156 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
157
158 2014-11-28 Joel Brobecker <brobecker@adacore.com>
159
160 * utils.c (gdb_realpath): Rework comment about handling on
161 Windows.
162
163 2014-11-28 Yao Qi <yao@codesourcery.com>
164
165 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
166 rename.
167 * gnulib/aclocal.m4: Re-generated.
168 * gnulib/config.in: Re-generated.
169 * gnulib/configure: Re-generated.
170 * gnulib/import/Makefile.am: Re-generated.
171 * gnulib/import/Makefile.in: Re-generated.
172 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
173 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
174 * import/basename-lgpl.c: New file.
175 * import/dirname-lgpl.c: New file.
176 * import/dirname.h: New file.
177 * import/m4/dirname.m4: New file.
178 * import/m4/malloc.m4: New file.
179 * import/m4/rename.m4: New file.
180 * import/m4/rmdir.m4: New file.
181 * import/m4/stdio_h.m4: New file.
182 * import/malloc.c: New file.
183 * import/rename.c: New file.
184 * import/rmdir.c: New file.
185 * import/same-inode.h: New file.
186 * import/stdio.c: New file.
187 * import/stdio.in.h: New file.
188 * import/stripslash.c: New file.
189
190 2014-11-28 Yao Qi <yao@codesourcery.com>
191
192 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
193 and realpath.
194 * config.in: Re-generated.
195 * configure: Re-generated.
196 * utils.c (gdb_realpath): Remove code calling realpath,
197 canonicalize_file_name and pathconf.
198 [!_WIN32]: Call canonicalize_file_name.
199
200 2014-11-28 Yao Qi <yao@codesourcery.com>
201
202 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
203 canonicalize-lgpl.
204 * aclocal.m4: Re-generated.
205 * config.in: Re-generated.
206 * configure: Re-generated.
207 * import/Makefile.am: Re-generated.
208 * import/Makefile.in: Re-generated.
209 * import/m4/gnulib-cache.m4: Re-generated.
210 * import/m4/gnulib-comp.m4: Re-generated.
211 * import/canonicalize-lgpl.c: New file.
212 * import/extra/snippet/_Noreturn.h: New file.
213 * import/m4/canonicalize.m4: New file.
214 * import/m4/double-slash-root.m4: New file.
215 * import/m4/eealloc.m4: New file.
216 * import/m4/malloca.m4: New file.
217 * import/m4/nocrash.m4: New file.
218 * import/m4/stdlib_h.m4: New file.
219 * import/malloca.c: New file.
220 * import/malloca.h: New file.
221 * import/malloca.valgrind: New file.
222
223 2014-11-28 Yao Qi <yao@codesourcery.com>
224
225 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
226 * config.in, configure: Regenerate.
227 * symfile.c (find_separate_debug_file_by_debuglink): Remove
228 code checking HAVE_LSTAT is defined.
229
230 2014-11-28 Yao Qi <yao@codesourcery.com>
231
232 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
233 lstat.
234 * gnulib/aclocal.m4: Re-generated.
235 * gnulib/config.in: Re-generated.
236 * gnulib/configure: Re-generated.
237 * gnulib/import/Makefile.am: Re-generated.
238 * gnulib/import/Makefile.in: Re-generated.
239 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
240 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
241 * gnulib/import/lstat.c: New file.
242 * gnulib/import/m4/lstat.m4: New file.
243
244 2014-11-28 Yao Qi <yao@codesourcery.com>
245
246 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
247 * config.in, configure: Re-generate.
248 * inf-child.c (inf_child_fileio_readlink): Don't check
249 HAVE_READLINK is defined.
250
251 2014-11-28 Yao Qi <yao@codesourcery.com>
252
253 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
254 * gnulib/aclocal.m4: Re-generated.
255 * gnulib/config.in: Likewise.
256 * gnulib/configure: Likewise.
257 * gnulib/import/Makefile.am: Likewise.
258 * gnulib/import/Makefile.in: Likewise.
259 * gnulib/import/m4/gnulib-cache.m4: Likewise.
260 * gnulib/import/m4/gnulib-comp.m4: Likewise.
261 * gnulib/import/dosname.h: New file
262 * gnulib/import/m4/largefile.m4: New file.
263 * gnulib/import/m4/readlink.m4: New file.
264 * gnulib/import/m4/stat.m4: New file.
265 * gnulib/import/readlink.c: New file.
266 * gnulib/import/stat.c: New file.
267
268 2014-11-26 Mark Wielaard <mjw@redhat.com>
269
270 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
271 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
272
273 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
274
275 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
276 that there can be only one stack adjustment in the prologue
277 with tests to detect specific disallowed stack adjustments.
278
279 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
280
281 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
282 adjustments.
283
284 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
285
286 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
287 the instruction as well as reading it from memory.
288 (nios2_match_add): New.
289 (nios2_match_sub): New.
290 (nios2_match_addi): New.
291 (nios2_match_orhi): New.
292 (nios2_match_stw): New.
293 (nios2_match_ldw): New.
294 (nios2_match_rdctl): New.
295 (enum branch_condition): New.
296 (nios2_match_branch): New.
297 (nios2_match_jmpi): New.
298 (nios2_match_calli): New.
299 (nios2_match_jmpr): New.
300 (nios2_match_callr): New.
301 (nios2_match_break): New.
302 (nios2_match_trap): New.
303 (nios2_in_epilogue_p): Rewrite to use new functions.
304 (nios2_analyze_prologue): Likewise.
305 (nios2_skip_prologue): Delete unused local limit_pc.
306 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
307 (nios2_get_next_pc): Rewrite to use new functions.
308
309 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
310
311 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
312
313 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
314
315 Pushed by Joel Brobecker <brobecker@adacore.com>
316 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
317 elements pi_len by the size of the elements before calling
318 vm_deallocate.
319 (inf_validate_task_sc): Likewise, and properly deallocate the
320 noise array.
321
322 2014-11-23 Doug Evans <xdje42@gmail.com>
323
324 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
325 number and name if present. All callers updated.
326 (dump_fn_fieldlists): Fix indentation of args.
327
328 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
329
330 * MAINTAINERS (Write After Approval): Add myself.
331
332 2014-11-23 Joel Brobecker <brobecker@adacore.com>
333
334 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
335 to a bp_call_dummy breakpoint type.
336
337 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
338
339 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
340 registering the signal handler.
341
342 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
343
344 * event-top.h (call_stdin_event_handler_again_p): Declare.
345 * event-top.c (call_stdin_event_handler_again_p): Define.
346 (stdin_event_handler): Use it.
347 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
348 handler again if there is pending input following a
349 start sequence.
350
351 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
352
353 Pushed by Joel Brobecker <brobecker@adacore.com>
354 * linux-fork.c (checkpoint_command): Print index of new
355 checkpoint in response message.
356
357 2014-11-23 Yao Qi <yao@codesourcery.com>
358
359 * valprint.c (read_string): Move local variables 'found_nul',
360 'chunksize' and 'limit' to inner scope. Update comments.
361
362 2014-11-22 Doug Evans <xdje42@gmail.com>
363
364 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
365 function comment.
366 (search_symbols): Fix comments and whitespace.
367
368 2014-11-22 Doug Evans <xdje42@gmail.com>
369
370 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
371
372 2014-11-21 Doug Evans <dje@google.com>
373
374 * psymtab.c (psymtab_search_name): Fix whitespace.
375
376 2014-11-21 Yao Qi <yao@codesourcery.com>
377
378 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
379 errno.
380 * gnulib/import/Makefile.am: Re-generated.
381 * gnulib/import/Makefile.in: Likewise.
382 * gnulib/import/m4/gnulib-cache.m4: Likewise.
383
384 2014-11-21 Yao Qi <yao@codesourcery.com>
385
386 * gdb_wchar.h: Include wchar.h and wctype.h.
387 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
388 include wchar.h and wctype.h.
389 Don't check HAVE_WCHAR_H.
390
391 2014-11-21 Yao Qi <yao@codesourcery.com>
392
393 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
394 and wctype-h.
395 * gnulib/import/Makefile.am: Re-generated.
396 * gnulib/import/Makefile.in: Likewise.
397 * gnulib/import/m4/gnulib-cache.m4: Likewise.
398
399 2014-11-21 Yao Qi <yao@codesourcery.com>
400
401 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
402 memchr.
403 * gnulib/import/Makefile.am: Re-generated.
404 * gnulib/import/Makefile.in: Likewise.
405 * gnulib/import/m4/gnulib-cache.m4: Likewise.
406
407 2014-11-21 Yao Qi <yao@codesourcery.com>
408
409 * common/common-defs.h: Include alloca.h
410 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
411 * configure: Re-generated.
412 * defs.h: Remove code handling alloca.
413 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
414 or not.
415
416 2014-11-21 Yao Qi <yao@codesourcery.com>
417
418 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
419 alloca.
420 * gnulib/import/Makefile.am: Re-generated.
421 * gnulib/import/Makefile.in: Likewise..
422 * gnulib/import/m4/gnulib-cache.m4: Likewise.
423
424 2014-11-21 Yao Qi <yao@codesourcery.com>
425
426 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
427 alphabetical order.
428
429 2014-11-21 Joel Brobecker <brobecker@adacore.com>
430
431 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
432 flag_unsigned if HIGH_BOUND is constant and negative.
433
434 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
435
436 PR breakpoints/10737
437 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
438 modifier from "struct gdbarch" when compiling without Expat (XML)
439 support.
440 (get_syscall_by_number): Likewise.
441 (get_syscall_by_name): Likewise.
442 (get_syscall_names): Likewise.
443
444 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
445
446 PR breakpoints/10737
447 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
448 set_xml_syscall_file_name to provide gdbarch.
449 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
450 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
451 * breakpoint.c (print_it_catch_syscall): Adjust call to
452 get_syscall_by_number to provide gdbarch.
453 (print_one_catch_syscall): Likewise.
454 (print_mention_catch_syscall): Likewise.
455 (print_recreate_catch_syscall): Likewise.
456 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
457 and get_syscall_by_name to provide gdbarch.
458 (catch_syscall_completer): Adjust call to get_syscall_names to
459 provide gdbarch.
460 * gdbarch.c: Regenerate.
461 * gdbarch.h: Likewise.
462 * gdbarch.sh: Forward declare "struct syscalls_info".
463 (xml_syscall_file): New variable.
464 (syscalls_info): Likewise.
465 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
466 set_xml_syscall_file_name to provide gdbarch.
467 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
468 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
469 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
470 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
471 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
472 * xml-syscall.c: Include gdbarch.h.
473 (set_xml_syscall_file_name): Accept gdbarch parameter.
474 (get_syscall_by_number): Likewise.
475 (get_syscall_by_name): Likewise.
476 (get_syscall_names): Likewise.
477 (my_gdb_datadir): Delete global variable.
478 (struct syscalls_info) <my_gdb_datadir>: New variable.
479 (struct syscalls_info) <sysinfo>: Rename variable to
480 "syscalls_info".
481 (sysinfo): Delete global variable.
482 (have_initialized_sysinfo): Likewise.
483 (xml_syscall_file): Likewise.
484 (sysinfo_free_syscalls_desc): Rename to...
485 (syscalls_info_free_syscalls_desc): ... this.
486 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
487 code to the new layout of "struct syscalls_info".
488 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
489 "syscalls_info".
490 (syscall_create_syscall_desc): Likewise.
491 (syscall_start_syscall): Likewise.
492 (syscall_parse_xml): Likewise.
493 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
494 (init_sysinfo): Rename to...
495 (init_syscalls_info): ...this. Add gdbarch as a parameter.
496 Adjust function to deal with gdbarch.
497 (xml_get_syscall_number): Delete parameter sysinfo. Accept
498 gdbarch as a parameter. Adjust code.
499 (xml_get_syscall_name): Likewise.
500 (xml_list_of_syscalls): Likewise.
501 (set_xml_syscall_file_name): Accept gdbarch as parameter.
502 (get_syscall_by_number): Likewise.
503 (get_syscall_by_name): Likewise.
504 (get_syscall_names): Likewise.
505 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
506 (get_syscall_by_number): Likewise.
507 (get_syscall_by_name): Likewise.
508 (get_syscall_names): Likewise.
509
510 2014-11-20 Doug Evans <xdje42@gmail.com>
511
512 Split struct symtab into two: struct symtab and compunit_symtab.
513 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
514 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
515 to "struct compunit_symtab *". All callers updated.
516 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
517 "struct symtab *" argument to "struct compunit_symtab *".
518 All callers updated.
519 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
520 result to "struct compunit_symtab *". All callers updated.
521 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
522 Change result to "struct compunit_symtab *". All callers updated.
523 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
524 hange type to "struct compunit_symtab *". All uses updated.
525 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
526 Change type to "struct compunit_symtab *". All uses updated.
527 * buildsym.c (struct buildsym_compunit): New struct.
528 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
529 (buildsym_compunit): New static global.
530 (finish_block_internal): Update to fetch objfile from
531 buildsym_compunit.
532 (make_blockvector): Delete objfile argument.
533 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
534 debugformat, producer.
535 (start_buildsym_compunit): New function.
536 (free_buildsym_compunit): Renamed from free_subfiles_list.
537 All callers updated.
538 (patch_subfile_names): Rewrite to use buildsym_compunit.
539 (get_compunit_symtab): New function.
540 (get_macro_table): Delete argument comp_dir. All callers updated.
541 (start_symtab): Change result to "struct compunit_symtab *".
542 All callers updated. Create the subfile of the main source file.
543 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
544 (reset_symtab_globals): Update.
545 (end_symtab_get_static_block): Update to use buildsym_compunit.
546 (end_symtab_without_blockvector): Rewrite.
547 (end_symtab_with_blockvector): Change result to
548 "struct compunit_symtab *". All callers updated.
549 Update to use buildsym_compunit. Don't set symtab->dirname,
550 instead set it in the compunit.
551 Explicitly make sure main symtab is first in its list.
552 Set debugformat, producer, blockvector, block_line_section, and
553 macrotable in the compunit.
554 (end_symtab_from_static_block): Change result to
555 "struct compunit_symtab *". All callers updated.
556 (end_symtab, end_expandable_symtab): Ditto.
557 (set_missing_symtab): Change symtab argument to
558 "struct compunit_symtab *". All callers updated.
559 (augment_type_symtab): Ditto.
560 (record_debugformat): Update to use buildsym_compunit.
561 (record_producer): Update to use buildsym_compunit.
562 * buildsym.h (struct subfile) <dirname>: Delete.
563 <producer, debugformat>: Delete.
564 <buildsym_compunit>: New member.
565 (get_compunit_symtab): Declare.
566 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
567 from primary_symtab. Change type to "struct compunit_symtab *".
568 All uses updated.
569 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
570 All callers updated.
571 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
572 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
573 symtab. Change type to "struct compunit_symtab *". All uses updated.
574 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
575 All callers updated.
576 (dw2_find_last_source_symtab): Ditto.
577 (dw2_lookup_symbol): Ditto.
578 (recursively_find_pc_sect_compunit_symtab): Renamed from
579 recursively_find_pc_sect_symtab. Change result to
580 "struct compunit_symtab *". All callers updated.
581 (dw2_find_pc_sect_compunit_symtab): Renamed from
582 dw2_find_pc_sect_symtab. Change result to
583 "struct compunit_symtab *". All callers updated.
584 (get_compunit_symtab): Renamed from get_symtab. Change result to
585 "struct compunit_symtab *". All callers updated.
586 (recursively_compute_inclusions): Change type of immediate_parent
587 argument to "struct compunit_symtab *". All callers updated.
588 (compute_compunit_symtab_includes): Renamed from
589 compute_symtab_includes. All callers updated. Rewrite to compute
590 includes of compunit_symtabs and not symtabs.
591 (process_full_comp_unit): Update to work with struct compunit_symtab.
592 (process_full_type_unit): Ditto.
593 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
594 (dwarf_decode_lines): Remove special case handling of main subfile.
595 (macro_start_file): Delete argument comp_dir. All callers updated.
596 (dwarf_decode_macro_bytes): Ditto.
597 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
598 use struct compunit_symtab.
599 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
600 * jit.c (finalize_symtab): Build compunit_symtab.
601 * jv-lang.c (get_java_class_symtab): Change result to
602 "struct compunit_symtab *". All callers updated.
603 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
604 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
605 comp_dir. Change type to "struct compunit_symtab *".
606 All uses updated.
607 (new_macro_table): Change comp_dir argument to cust,
608 "struct compunit_symtab *". All callers updated.
609 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
610 nr_primary_symtabs. All uses updated.
611 (count_symtabs_and_blocks): Update to handle compunits.
612 (report_command_stats): Update output, "primary symtabs" renamed to
613 "compunits".
614 * mdebugread.c (new_symtab): Change result to
615 "struct compunit_symtab *". All callers updated.
616 (parse_procedure): Change type of search_symtab argument to
617 "struct compunit_symtab *". All callers updated.
618 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
619 separate loop.
620 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
621 symtabs. Change type to "struct compunit_symtab *". All uses updated.
622 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
623 All uses updated.
624 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
625 All uses updated.
626 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
627 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
628 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
629 symtab. Change type to "struct compunit_symtab *". All uses updated.
630 * psymtab.c (psymtab_to_symtab): Change result type to
631 "struct compunit_symtab *". All callers updated.
632 (find_pc_sect_compunit_symtab_from_partial): Renamed from
633 find_pc_sect_symtab_from_partial. Change result type to
634 "struct compunit_symtab *". All callers updated.
635 (lookup_symbol_aux_psymtabs): Change result type to
636 "struct compunit_symtab *". All callers updated.
637 (find_last_source_symtab_from_partial): Ditto.
638 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
639 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
640 and macro_table from compunit.
641 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
642 type to "struct compunit_symtab *". All callers updated.
643 (debug_qf_lookup_symbol): Ditto.
644 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
645 debug_qf_find_pc_sect_symtab, change result type to
646 "struct compunit_symtab *". All callers updated.
647 * symfile.c (allocate_symtab): Delete objfile argument.
648 New argument cust.
649 (allocate_compunit_symtab): New function.
650 (add_compunit_symtab_to_objfile): New function.
651 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
652 Change result type to "struct compunit_symtab *". All uses updated.
653 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
654 Change result type to "struct compunit_symtab *". All uses updated.
655 * symmisc.c (print_objfile_statistics): Compute blockvector count in
656 separate loop.
657 (dump_symtab_1): Update test for primary source symtab.
658 (maintenance_info_symtabs): Update to handle compunit symtabs.
659 (maintenance_check_symtabs): Ditto.
660 * symtab.c (set_primary_symtab): Delete.
661 (compunit_primary_filetab): New function.
662 (compunit_language): New function.
663 (iterate_over_some_symtabs): Change type of arguments "first",
664 "after_last" to "struct compunit_symtab *". All callers updated.
665 Update to loop over symtabs in each compunit.
666 (error_in_psymtab_expansion): Rename symtab argument to cust,
667 and change type to "struct compunit_symtab *". All callers updated.
668 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
669 Change result type to "struct compunit_symtab *". All callers updated.
670 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
671 Change result type to "struct compunit_symtab *". All callers updated.
672 (find_pc_sect_line): Only loop over symtabs within selected compunit
673 instead of all symtabs in the objfile.
674 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
675 <compunit_symtab> New member.
676 <block_line_section>: Moved to compunit_symtab.
677 <locations_valid>: Ditto.
678 <epilogue_unwind_valid>: Ditto.
679 <macro_table>: Ditto.
680 <dirname>: Ditto.
681 <debugformat>: Ditto.
682 <producer>: Ditto.
683 <objfile>: Ditto.
684 <call_site_htab>: Ditto.
685 <includes>: Ditto.
686 <user>: Ditto.
687 <primary>: Delete
688 (SYMTAB_COMPUNIT): New macro.
689 (SYMTAB_BLOCKVECTOR): Update definition.
690 (SYMTAB_OBJFILE): Update definition.
691 (SYMTAB_DIRNAME): Update definition.
692 (struct compunit_symtab): New type. Common members among all source
693 symtabs within a compilation unit moved here. All uses updated.
694 (COMPUNIT_OBJFILE): New macro.
695 (COMPUNIT_FILETABS): New macro.
696 (COMPUNIT_DEBUGFORMAT): New macro.
697 (COMPUNIT_PRODUCER): New macro.
698 (COMPUNIT_DIRNAME): New macro.
699 (COMPUNIT_BLOCKVECTOR): New macro.
700 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
701 (COMPUNIT_LOCATIONS_VALID): New macro.
702 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
703 (COMPUNIT_CALL_SITE_HTAB): New macro.
704 (COMPUNIT_MACRO_TABLE): New macro.
705 (ALL_COMPUNIT_FILETABS): New macro.
706 (compunit_symtab_ptr): New typedef.
707 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
708
709 2014-11-20 Joel Brobecker <brobecker@adacore.com>
710
711 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
712 if the TYPE_CODE of range_type's base type does not match
713 the TYPE_CODE of encoding_type's base type.
714
715 2014-11-19 Joel Brobecker <brobecker@adacore.com>
716
717 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
718 it starts with '<'.
719
720 2014-11-19 Joel Brobecker <brobecker@adacore.com>
721
722 * ada-lang.c (ada_is_redundant_range_encoding): New function.
723 (ada_is_redundant_index_type_desc): New function.
724 (to_fixed_array_type): Ignore parallel XA type if redundant.
725
726 2014-11-19 Joel Brobecker <brobecker@adacore.com>
727
728 * ada-lang.c (constrained_packed_array_type): Set the length
729 of the return array as if both bounds where zero if that
730 returned array's index type is dynamic.
731
732 2014-11-19 Yao Qi <yao@codesourcery.com>
733
734 * config/i386/go32.mh (CC): Remove.
735
736 2014-11-18 Doug Evans <xdje42@gmail.com>
737
738 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
739 updated.
740
741 2014-11-18 Doug Evans <xdje42@gmail.com>
742
743 * buildsym.c (buildsym_objfile): New static global.
744 (buildsym_comp_dir): New static global.
745 (finish_block_internal): Delete arg objfile. All callers updated.
746 (finish_block): Delete arg objfile. All callers updated.
747 (start_subfile): Delete arg dirname. All callers updated.
748 (patch_subfile_names): Update buildsym_comp_dir.
749 (get_macro_table): Delete arg objfile. All callers updated.
750 (start_symtab): New arg objfile. All callers updated.
751 Rename arg dirname to comp_dir.
752 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
753 (end_symtab_get_static_block): Delete arg objfile. All callers
754 updated.
755 (end_symtab_without_blockvector): Ditto.
756 (end_symtab_with_blockvector): Ditto.
757 (end_symtab_from_static_block): Ditto.
758 (end_symtab): Ditto.
759 (end_expandable_symtab): Ditto.
760 (augment_type_symtab): Ditto.
761 * coffread.c (coff_start_symtab): New arg objfile. All callers
762 updated.
763
764 2014-11-18 Doug Evans <xdje42@gmail.com>
765
766 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
767 updated.
768
769 2014-11-18 Doug Evans <xdje42@gmail.com>
770
771 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
772 symtab.dirname updated to use it.
773
774 2014-11-18 Doug Evans <xdje42@gmail.com>
775
776 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
777 symtab.objfile updated to use it.
778
779 2014-11-18 Doug Evans <xdje42@gmail.com>
780
781 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
782
783 2014-11-18 Doug Evans <xdje42@gmail.com>
784
785 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
786 SYMBOL_OBJFILE.
787 * findvar.c (default_read_var_value): Ditto.
788 * jv-lang.c (add_class_symtab_symbol): Ditto.
789 * parse.c (operator_check_standard): Ditto.
790 * printcmd.c (address_info): Ditto.
791 * symtab.c (fixup_symbol_section): Ditto.
792 (skip_prologue_sal): Ditto.
793 * tracepoint.c (scope_info): Ditto.
794 * valops.c (find_function_in_inferior): Ditto.
795 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
796 * python/py-symbol.c (set_symbol): Ditto.
797
798 2014-11-18 Doug Evans <xdje42@gmail.com>
799
800 * buildsym.c (main_subfile): New static global.
801 (free_subfiles_list): New function.
802 (start_symtab): Set main_subfile.
803 (restart_symtab): Replace init of subfiles, current_subfile with
804 call to free_subfiles_list.
805 (watch_main_source_file_lossage): Use main_subfile.
806 (reset_symtab_globals): Replace init of current_subfile with call
807 to free_subfiles_list.
808 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
809 functions, split out from ...
810 (end_symtab_from_static_block): ... here. Rewrite to call them.
811
812 2014-11-18 Doug Evans <xdje42@gmail.com>
813
814 The result of symtab expansion is always a primary symtab.
815 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
816 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
817 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
818 (psymtab_to_symtab): Add comment and assert.
819 (map_matching_symbols_psymtab): Remove unnecessary test for
820 non-primary symtab.
821
822 2014-11-15 Doug Evans <xdje42@gmail.com>
823
824 PR symtab/17559
825 * symtab.c (find_pc_line_symtab): New function.
826 * symtab.h (find_pc_line_symtab): Declare.
827 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
828 find_pc_symtab.
829 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
830 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
831 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
832 * tui/tui-win.c (make_visible_with_new_height): Ditto.
833 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
834 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
835
836 2014-11-15 Doug Evans <xdje42@gmail.com>
837
838 * symtab.c (expand_symtab_containing_pc): Renamed from
839 find_pc_sect_symtab_via_partial. All callers updated.
840
841 2014-11-15 Yao Qi <yao@codesourcery.com>
842
843 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
844
845 2014-11-14 Joel Brobecker <brobecker@adacore.com>
846
847 * common/common-defs.h: Move <stdarg.h> #include ahead of
848 <stdio.h> #include.
849
850 2014-11-14 Pedro Alves <palves@redhat.com>
851
852 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
853 [!PHONY_ICONV] (gdb_iconv): New function.
854 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
855
856 2014-11-13 Doug Evans <dje@google.com>
857
858 PR symtab/17591
859 * dwarf2read.c (find_slot_in_mapped_hash): Handle
860 "(anonymous namespace)".
861
862 2014-11-13 Doug Evans <dje@google.com>
863
864 * dwarf2read.c (update_enumeration_type_from_children): Avoid
865 infinite loop.
866
867 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
868
869 * NEWS (maint set target-async): Fix typo.
870
871 2014-11-12 Pedro Alves <palves@redhat.com>
872
873 * infrun.c (enum infwait_states, infwait_state): Delete.
874
875 2014-11-12 Pedro Alves <palves@redhat.com>
876
877 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
878 Rewrite stepping over a permanent breakpoint.
879 (thread_still_needs_step_over, proceed): Don't set
880 stepping_over_breakpoint for permanent breakpoints.
881 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
882 single-step breakpoints out of the target on hardware step
883 targets.
884 (process_event_stop_test): If stepping a permanent breakpoint
885 doesn't hit the step-resume breakpoint, delete the step-resume
886 breakpoint.
887 (switch_back_to_stepped_thread): Also check if the stepped thread
888 has advanced already on hardware step targets.
889 (currently_stepping): Return true if the thread stepped a
890 breakpoint.
891
892 2014-11-12 Pedro Alves <palves@redhat.com>
893
894 Mark locations as permanent, not the whole breakpoint.
895 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
896 (mark_breakpoints_out): Don't mark permanent breakpoints as
897 uninserted.
898 (breakpoint_init_inferior): Use mark_breakpoints_out.
899 (breakpoint_here_p): Adjust.
900 (bpstat_stop_status, describe_other_breakpoints): Remove handling
901 of permanent breakpoints.
902 (make_breakpoint_permanent): Mark each location as permanent,
903 instead of marking the breakpoint.
904 (add_location_to_breakpoint): If the location is permanent, mark
905 it as such, and as inserted.
906 (init_breakpoint_sal): Don't make the breakpoint permanent here.
907 (bp_location_compare, update_global_location_list): Adjust.
908 (update_breakpoint_locations): Don't make the breakpoint permanent
909 here.
910 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
911 breakpoints.
912 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
913 (struct bp_location) <permanent>: New field.
914 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
915 reference to bp_permanent.
916
917 2014-11-12 Pedro Alves <palves@redhat.com>
918
919 * arch-utils.c (default_skip_permanent_breakpoint): New function.
920 * arch-utils.h (default_skip_permanent_breakpoint): New
921 declaration.
922 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
923 Install default_skip_permanent_breakpoint as default method.
924 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
925 (i386_gdbarch_init): Don't install it.
926 * infrun.c (resume): Assume there's always a
927 gdbarch_skip_permanent_breakpoint implementation.
928 * gdbarch.h, gdbarch.c: Regenerate.
929
930 2014-11-11 Daniel Colascione <dancol@dancol.org>
931
932 Warn about cross-PID-namespace debugging.
933 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
934 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
935 * linux-thread-db.c (check_pid_namespace_match): New function.
936 (thread_db_inferior_created): Call it.
937
938 2014-11-10 Doug Evans <xdje42@gmail.com>
939
940 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
941 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
942
943 2014-11-10 Doug Evans <xdje42@gmail.com>
944
945 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
946
947 2014-11-10 Doug Evans <xdje42@gmail.com>
948
949 PR symtab/17564
950 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
951 (lookup_static_symbol): Move definition to new location and rewrite.
952 (lookup_symbol_in_objfile): New function.
953 (lookup_symbol_global_iterator_cb): Call it.
954
955 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
956
957 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
958
959 2014-11-07 Pedro Alves <palves@redhat.com>
960
961 * infrun.c (process_event_stop_test) <subroutine check>: Don't
962 check if we did a "nexti" inside a prologue.
963 * symtab.c (in_prologue): Delete function.
964 * symtab.h (in_prologue): Delete declaration.
965
966 2014-11-06 Doug Evans <xdje42@gmail.com>
967
968 * symtab.h (lookup_global_symbol): Improve function comment.
969
970 2014-11-06 Doug Evans <xdje42@gmail.com>
971
972 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
973 All callers updated.
974 * symtab.h (lookup_global_symbol): Update decl.
975 (lookup_static_symbol): Move decl to better location.
976
977 2014-11-06 Doug Evans <xdje42@gmail.com>
978
979 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
980
981 2014-11-06 Doug Evans <xdje42@gmail.com>
982
983 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
984 All callers updated.
985 (lookup_symbol_in_all_objfiles): Renamed from
986 lookup_symbol_aux_symtabs. All callers updated.
987 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
988 All callers updated.
989 (lookup_symbol_in_objfile_symtabs): Renamed from
990 lookup_symbol_aux_objfile. All callers updated.
991
992 2014-11-06 Doug Evans <xdje42@gmail.com>
993
994 * symtab.c (lookup_symbol_in_block): Renamed from
995 lookup_symbol_aux_block. All callers updated.
996
997 2014-11-06 Doug Evans <xdje42@gmail.com>
998
999 * symtab.c (lookup_static_symbol): Renamed from
1000 lookup_static_symbol_aux. All callers updated.
1001 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1002 All callers updated.
1003
1004 2014-11-06 Doug Evans <xdje42@gmail.com>
1005
1006 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1007 * block.c (block_lookup_symbol): Use it.
1008 * cp-support.c (make_symbol_overload_list_block): Use it.
1009 * symtab.c (iterate_over_symbols): Use it.
1010
1011 2014-11-06 Doug Evans <xdje42@gmail.com>
1012
1013 * symtab.c (lookup_block_symbol): Moved to ...
1014 * block.c (block_lookup_symbol): ... here and renamed.
1015 All callers updated.
1016 * block.h (block_lookup_symbol): Declare.
1017 * symtab.h (lookup_block_symbol): Delete.
1018
1019 2014-11-06 Doug Evans <xdje42@gmail.com>
1020
1021 * ada-lang.c (ada_make_symbol_completion_list): Use
1022 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1023 * symtab.c (lookup_objfile_from_block): Ditto.
1024
1025 2014-11-06 Doug Evans <xdje42@gmail.com>
1026
1027 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1028 TYPE_CODE_STRUCT.
1029
1030 2014-11-06 Doug Evans <xdje42@gmail.com>
1031
1032 * objfiles.c (get_objfile_arch): Constify.
1033 * objfiles.h (get_objfile_arch): Update prototype.
1034 * solib.c (solib_global_lookup): Fetch arch from objfile,
1035 not target_gdbarch.
1036
1037 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1038
1039 * nios2-tdep.c (wild_insn): Delete.
1040 (profiler_insn, irqentry_insn): Delete.
1041 (nios2_match_sequence): Delete.
1042 (nios2_analyze_prologue): Update comments. Remove matching
1043 of obsolete profiler_insn and irqentry_insn sequences.
1044
1045 2014-11-05 Alan Modra <amodra@gmail.com>
1046
1047 * charset.c (convert_between_encodings): Shrink obstack using
1048 obstack_blank_fast.
1049 * minsyms.c (install_minimal_symbols): Likewise.
1050 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1051 to char* before doing pointer arithmetic.
1052
1053 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1054
1055 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1056
1057 2014-11-04 Pedro Alves <palves@redhat.com>
1058
1059 * breakpoint.c (breakpoint_thread_match): Delete function.
1060 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1061
1062 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1063
1064 PR c++/17494
1065 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1066 the method args also under EVAL_SKIP when evaluating method
1067 calls under EVAL_SKIP.
1068
1069 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1070
1071 * dwarf2loc.c (read_pieced_value): Do big endian
1072 processing only if gdb_regnum is not -1.
1073 (write_pieced_value): Ditto.
1074
1075 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1076
1077 * arm-linux-tdep.c (arm_linux_init_abi): Use
1078 info.byte_order_for_code to choose endianity of breakpoint
1079 instructions snippets.
1080
1081 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1082
1083 * arm-tdep.c (extract_arm_insn): Use
1084 gdbarch_byte_order_for_code to read arm instruction.
1085
1086 2014-11-02 Doug Evans <xdje42@gmail.com>
1087
1088 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1089
1090 2014-11-02 Doug Evans <xdje42@gmail.com>
1091
1092 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1093 main_subfile before returning.
1094
1095 2014-10-31 Doug Evans <xdje42@gmail.com>
1096
1097 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1098 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1099
1100 2014-10-31 Doug Evans <xdje42@gmail.com>
1101
1102 * valops.c (value_cast_pointers): Fix whitespace.
1103 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1104 Ditto.
1105
1106 2014-10-30 Doug Evans <dje@google.com>
1107
1108 * NEWS: Mention ability add attributes to gdb.Objfile and
1109 gdb.Progspace objects.
1110 * python/py-objfile.c (objfile_object): New member dict.
1111 (objfpy_dealloc): Py_XDECREF dict.
1112 (objfpy_initialize): Initialize dict.
1113 (objfile_getset): Add __dict__.
1114 (objfile_object_type): Set tp_dictoffset member.
1115 * python/py-progspace.c (progspace_object): New member dict.
1116 (pspy_dealloc): Py_XDECREF dict.
1117 (pspy_initialize): Initialize dict.
1118 (pspace_getset): Add __dict__.
1119 (pspace_object_type): Set tp_dictoffset member.
1120
1121 2014-10-30 Yao Qi <yao@codesourcery.com>
1122
1123 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1124 replace '\\' with '\\\\'.
1125
1126 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1127
1128 GDB 7.8.1 released.
1129
1130 2014-10-29 Pedro Alves <palves@redhat.com>
1131
1132 PR gdb/17408
1133 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1134 instead of assuming a thread with a stepping range is always
1135 stepping.
1136
1137 2014-10-29 Pedro Alves <palves@redhat.com>
1138
1139 PR python/17372
1140 * event-top.c (change_line_handler): Call
1141 gdb_rl_callback_handler_remove instead of
1142 rl_callback_handler_remove.
1143 (callback_handler_installed): New global.
1144 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1145 (gdb_rl_callback_handler_reinstall): New functions.
1146 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1147 gdb_rl_callback_handler_install instead of
1148 rl_callback_handler_remove and rl_callback_handler_install.
1149 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1150 instead of rl_callback_handler_remove.
1151 * event-top.h (gdb_rl_callback_handler_remove)
1152 (gdb_rl_callback_handler_install)
1153 (gdb_rl_callback_handler_reinstall): New declarations.
1154 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1155 cleanup function.
1156 (fetch_inferior_event): Install it.
1157 * top.c (gdb_readline_wrapper_line) Call
1158 gdb_rl_callback_handler_remove instead of
1159 rl_callback_handler_remove.
1160 (gdb_readline_wrapper_cleanup): Don't call
1161 rl_callback_handler_install.
1162
1163 2014-10-29 Pedro Alves <palves@redhat.com>
1164
1165 * event-top.c (command_line_handler): Clear the first byte of
1166 linebuffer, when it is first allocated.
1167
1168 2014-10-29 Pedro Alves <palves@redhat.com>
1169
1170 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1171 TRY_CATCH.
1172
1173 2014-10-29 Pedro Alves <palves@redhat.com>
1174
1175 PR tui/16138
1176 PR tui/17519
1177 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1178 (tui_allowed_p): Delete function.
1179 * tui/tui.c: Include "interps.h".
1180 (tui_enable): Don't use tui_allowed_p. Error out here with
1181 detailed error messages if the TUI is the top level interpreter,
1182 or if output is not a terminal. Use newterm instead of initscr,
1183 and error out if initializing the terminal fails. Also error out if
1184 the terminal doesn't support cursor addressing.
1185 * tui/tui.h (tui_allowed_p): Delete declaration.
1186
1187 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1188
1189 * arm-tdep.c (arm_skip_stack_protector): Return early if
1190 address loaded by first "ldr" instruction does not have
1191 a corresponding minimal symbol. Update comment.
1192
1193 2014-10-29 Yao Qi <yao@codesourcery.com>
1194
1195 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1196 loaded address correctly of ldr instruction.
1197
1198 2014-10-28 Pedro Alves <palves@redhat.com>
1199
1200 PR gdb/12623
1201 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1202 field.
1203 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1204 thread's stepped_breakpoint field. Skip if reverse debugging.
1205 Add comment.
1206 (init_thread_stepping_state, handle_signal_stop): Clear the
1207 thread's stepped_breakpoint field.
1208
1209 2014-10-27 Pedro Alves <palves@redhat.com>
1210
1211 * remote.c (remote_thread_alive): New, factored out from ...
1212 (remote_thread_alive): ... this.
1213 (remote_update_thread_list): Bail out before deleting threads if
1214 the target returned an empty list, and, the current thread has a
1215 magic/fake ptid.
1216
1217 2014-10-27 Pedro Alves <palves@redhat.com>
1218
1219 * infrun.c (handle_signal_stop): Also skip handlers when a random
1220 signal arrives while handling a "stepi" or a "nexti". Set the
1221 thread's 'step_after_step_resume_breakpoint' flag.
1222
1223 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1224
1225 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1226 (arm_record_ld_st_imm_offset): Reimplement to cover all
1227 load/store cases for ARM opcode 010.
1228 (arm_record_ld_st_multiple): Reimplement to cover all
1229 load/store cases for ARM opcode 100.
1230
1231 2014-10-26 Doug Evans <xdje42@gmail.com>
1232
1233 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1234
1235 2014-10-26 Doug Evans <xdje42@gmail.com>
1236
1237 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1238 parameter "kind" to "block_index".
1239 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1240 "block_index".
1241 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1242
1243 2014-10-26 Doug Evans <xdje42@gmail.com>
1244
1245 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1246
1247 2014-10-26 Doug Evans <xdje42@gmail.com>
1248
1249 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1250 obstack_alloc.
1251
1252 2014-10-26 Doug Evans <xdje42@gmail.com>
1253
1254 * parser-defs.h (block_found): Move decl from here ...
1255 * symtab.h (block_found): ... to here.
1256
1257 2014-10-26 Doug Evans <xdje42@gmail.com>
1258
1259 * symtab.h (struct field_of_this_result): Fix typo in comment.
1260 (lookup_symbol_in_language): Move function comment here.
1261 (lookup_symbol): Improve function comment.
1262 (basic_lookup_symbol_nonlocal): Ditto.
1263 (lookup_symbol_static, lookup_symbol_global): Ditto.
1264 (lookup_symbol_aux_block): Ditto.
1265 (lookup_language_this): Add function comment.
1266 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1267 function comment.
1268 (lookup_block_symbol): Improve function comment.
1269 (lookup_struct): Fix capitalization in function comment.
1270 (lookup_transparent_type): Add function comment.
1271 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1272 Improve function comment.
1273 (lookup_objfile_from_block): Add function comment.
1274 * symtab.c (lookup_symbol_in_language): Update function comment.
1275 (lookup_symbol, lookup_language_this): Ditto.
1276 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1277 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1278 (basic_lookup_symbol_nonlocal): Ditto.
1279 (lookup_symbol_static, lookup_symbol_global): Ditto.
1280 (lookup_transparent_type, lookup_block_symbol): Ditto.
1281
1282 2014-10-25 Doug Evans <xdje42@gmail.com>
1283
1284 * symtab.c (types_info): Delete forward decl.
1285 (functions_info, variables_info, sources_info): Ditto.
1286 (_initialize_symtab): Rewrite forward decl to use
1287 initialize_file_ftype.
1288
1289 2014-10-25 Doug Evans <xdje42@gmail.com>
1290
1291 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1292
1293 2014-10-25 Doug Evans <xdje42@gmail.com>
1294
1295 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1296 of local var child_die.
1297
1298 2014-10-24 Don Breazeal <donb@codesourcery.com>
1299
1300 * infrun.c (follow_fork_inferior): Update fork message printing
1301 to use target_terminal_ours_for_output instead of
1302 target_terminal_ours, to use _() for all format strings, to print
1303 "vfork" instead of "fork" for vforks, and to add a detach message.
1304 (handle_vfork_child_exec_or_exit): Update message printing to use
1305 target_terminal_ours_for_output instead of target_terminal_ours, to
1306 use _() for all format strings, and to fix some formatting.
1307
1308 2014-10-24 Pedro Alves <palves@redhat.com>
1309
1310 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1311 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1312 * config/vax/vax.mh: Delete.
1313 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1314 obsolete configurations section.
1315 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1316 * vax-nat.c: Delete file.
1317
1318 2014-10-24 Pedro Alves <palves@redhat.com>
1319
1320 * NEWS (Removed targets): Add OS/arch column.
1321
1322 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1323
1324 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1325 on the arg type of a constructor only if it is of reference type.
1326
1327 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1328
1329 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1330 accessors and constants from nios2 opcodes update.
1331 (nios2_get_next_pc): Likewise.
1332
1333 2014-10-19 Doug Evans <xdje42@gmail.com>
1334
1335 * gdbthread.h (set_running): Fix comment.
1336 (set_executing, finish_thread_state): Fix comment.
1337
1338 2014-10-18 Doug Evans <xdje42@gmail.com>
1339
1340 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1341
1342 2014-10-17 Doug Evans <dje@google.com>
1343
1344 * NEWS: Mention new event gdb.clear_objfiles.
1345 * python/py-event.h (emit_clear_objfiles_event): Clear
1346 * python/py-events.h (events_object): New member clear_objfiles.
1347 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1348 event.
1349 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1350 emit clear_objfiles event.
1351 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1352 function.
1353 (emit_clear_objfiles_event): New function.
1354 (clear_objfiles): New event.
1355 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1356 Declare.
1357 * python/python.c (_initialize_python): Call
1358 gdbpy_initialize_clear_objfiles_event.
1359
1360 2014-10-17 Doug Evans <dje@google.com>
1361
1362 * NEWS: Mention new gdb.Objfile.progspace attribute.
1363 * python/py-objfile.c (objfpy_get_progspace): New function.
1364 (objfile_getset): New entry for "progspace".
1365
1366 2014-10-17 Pedro Alves <palves@redhat.com>
1367
1368 PR gdb/17471
1369 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1370 returns a copy of the input.
1371 (run_command_1, continue_command, step_1, jump_command)
1372 (signal_command, until_command, advance_command, finish_command)
1373 (attach_command): Adjust and install a cleanup to free the
1374 stripped args.
1375
1376 2014-10-17 Pedro Alves <palves@redhat.com>
1377
1378 PR gdb/17300
1379 * infcmd.c (continue_1): If continuing all threads in the
1380 foreground, make sure the inferior's terminal settings are put in
1381 effect.
1382
1383 2014-10-17 Pedro Alves <palves@redhat.com>
1384
1385 PR gdb/17472
1386 * annotate.c (annotate_breakpoints_invalid): Use
1387 target_terminal_our_for_output instead of target_terminal_ours.
1388 Give back the terminal to the target.
1389 (annotate_frames_invalid): Likewise.
1390
1391 2014-10-17 Pedro Alves <palves@redhat.com>
1392
1393 * target.c (enum terminal_state): New enum.
1394 (terminal_state): New global.
1395 (target_terminal_init): New function.
1396 (target_terminal_inferior): Skip if inferior already owns the
1397 terminal.
1398 (target_terminal_ours, target_terminal_ours_for_output): New
1399 functions.
1400 * target.h (target_terminal_init): Convert to function prototype.
1401 (target_terminal_ours_for_output): Convert to function prototype
1402 and tweak comment.
1403 (target_terminal_ours): Convert to function prototype and tweak
1404 comment.
1405 * windows-nat.c (do_initial_windows_stuff): Call
1406 target_terminal_init instead of child_terminal_init_with_pgrp.
1407
1408 2014-10-17 Pedro Alves <palves@redhat.com>
1409
1410 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1411 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1412 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1413 solib-osf.c.
1414 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1415 * ada-lang.h [__alpha__ && __osf__]
1416 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1417 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1418 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1419 GDB_OSABI_OSF1.
1420 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1421 files.
1422 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1423 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1424 * configure: Regenerate.
1425 * configure.ac: Remove references to osf.
1426 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1427 section. Remove all other references to osf.
1428 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1429 Remove all other references to osf.
1430 * dec-thread.c: Delete file.
1431 * defs.h (GDB_OSABI_OSF1): Delete.
1432 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1433 defined.
1434 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1435 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1436 Delete code.
1437 (unconditionally_kill_inferior)
1438 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1439 * solib-osf.c: Delete file.
1440
1441 2014-10-17 Pedro Alves <palves@redhat.com>
1442
1443 * remote.c (clear_threads_listing_context): Move higher up, out of
1444 the HAVE_LIBEXPAT guard.
1445
1446 2014-10-16 Tristan Gingold <gingold@adacore.com>
1447
1448 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1449 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1450 on amd64.
1451
1452 2014-10-15 Pedro Alves <palves@redhat.com>
1453
1454 * dec-thread.c (dec_thread_count_gdb_threads)
1455 (dec_thread_add_gdb_thread): Delete.
1456 (dec_thread_update_thread_list): Delete.
1457 (dec_thread_find_new_threads): Rename to ...
1458 (dec_thread_update_thread_list): ... this. Delete GDB-size
1459 threads that are no longer found in dec_thread_list.
1460 (resync_thread_list): Delete.
1461 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1462 resync_thread_list.
1463
1464 2014-10-15 Pedro Alves <palves@redhat.com>
1465
1466 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1467 * remote.c (remote_update_thread_list): Skip calling prune_threads
1468 if any thread listing method is supported, and instead walk over
1469 the set of remote threads listed, deleting those that are not
1470 found in GDB's thread list.
1471
1472 2014-10-15 Pedro Alves <palves@redhat.com>
1473
1474 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1475 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1476 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1477 (bsd_uthread_target): Adjust.
1478 * corelow.c (core_open): Adjust.
1479 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1480 (dec_thread_update_thread_list): New function.
1481 (init_dec_thread_ops): Adjust.
1482 * gdbthread.h (prune_threads): New declaration.
1483 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1484 (thread_db_update_thread_list): ... this. Call prune_threads.
1485 (init_thread_db_ops): Adjust.
1486 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1487 (procfs_update_thread_list): ... this. Call prune_threads.
1488 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1489 Adjust.
1490 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1491 (obsd_update_thread_list): ... this. Call prune_threads.
1492 (obsd_add_target): Adjust.
1493 * procfs.c (procfs_target): Adjust.
1494 (procfs_notice_thread): Update comment.
1495 (procfs_find_new_threads): Rename to ...
1496 (procfs_update_thread_list): ... this. Call prune_threads.
1497 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1498 comment.
1499 (ravenscar_wait): Adjust.
1500 (ravenscar_find_new_threads): Rename to ...
1501 (ravenscar_update_thread_list): ... this. Call prune_threads.
1502 (init_ravenscar_thread_ops): Adjust.
1503 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1504 (record_btrace_update_thread_list): ... this. Adjust comment.
1505 (init_record_btrace_ops): Adjust.
1506 * remote.c (remote_threads_info): Rename to ...
1507 (remote_update_thread_list): ... this. Call prune_threads.
1508 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1509 Adjust.
1510 * sol-thread.c (check_for_thread_db): Adjust.
1511 (sol_find_new_threads_callback): Rename to ...
1512 (sol_update_thread_list_callback): ... this.
1513 (sol_find_new_threads): Rename to ...
1514 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1515 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1516 * target-delegates.c: Regenerate.
1517 * target.c (target_find_new_threads): Rename to ...
1518 (target_update_thread_list): ... this.
1519 * target.h (struct target_ops): Rename to_find_new_threads field
1520 to to_update_thread_list.
1521 (target_find_new_threads): Rename to ...
1522 (target_update_thread_list): ... this.
1523 * thread.c (prune_threads): Make extern.
1524 (update_thread_list): Adjust.
1525
1526 2014-10-15 Pedro Alves <palves@redhat.com>
1527
1528 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1529 Add describing comment. Return -1 if the qL packet is not
1530 supported.
1531 (struct thread_item, thread_item_t): Move higher up in
1532 the file. Add comments.
1533 (struct threads_parsing_context): Move higher up in
1534 the file, add comments, and remote to ...
1535 (struct threads_listing_context): ... this.
1536 (remote_newthread_step): Don't add the thread to GDB's thread
1537 database here. Instead push it to the thread_listing_context
1538 list.
1539 (remote_find_new_threads): Rename to ...
1540 (remote_get_threads_with_ql): ... this. Add target_ops and
1541 targets_listing_context parameters. Pass down context.
1542 (start_thread): Adjust.
1543 (clear_threads_parsing_context): Rename to ...
1544 (clear_threads_listing_context): ... this.
1545 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1546 remote_threads_info.
1547 (remote_get_threads_with_qthreadinfo): Ditto.
1548 (remote_threads_info): Reimplement.
1549
1550 2014-10-15 Pedro Alves <palves@redhat.com>
1551
1552 * infrun.c (resume): Don't force displaced-stepping for all
1553 single-steps on software single-stepping archs.
1554
1555 2014-10-15 Pedro Alves <palves@redhat.com>
1556
1557 * breakpoint.c (single_step_breakpoints): Delete global.
1558 (insert_single_step_breakpoint): Adjust to store the breakpoint
1559 pointer in the current thread.
1560 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1561 (cancel_single_step_breakpoints): Delete functions.
1562 (breakpoint_has_location_inserted_here): Make extern.
1563 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1564 breakpoint list.
1565 * breakpoint.h (breakpoint_has_location_inserted_here): New
1566 declaration.
1567 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1568 (cancel_single_step_breakpoints): Remove declarations.
1569 * gdbthread.h (struct thread_control_state)
1570 <single_step_breakpoints>: New field.
1571 (delete_single_step_breakpoints)
1572 (thread_has_single_step_breakpoints_set)
1573 (thread_has_single_step_breakpoint_here): New declarations.
1574 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1575 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1576 (singlestep_pc): Delete globals.
1577 (infrun_thread_ptid_changed): Remove references to removed
1578 globals.
1579 (resume_cleanups): Delete the current thread's single-step
1580 breakpoints.
1581 (maybe_software_singlestep): Remove references to removed globals.
1582 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1583 delete_single_step_breakpoints.
1584 (init_wait_for_inferior): Remove references to removed globals.
1585 (delete_thread_infrun_breakpoints): Delete the thread's
1586 single-step breakpoints too.
1587 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1588 single-step breakpoints here.
1589 (delete_stopped_threads_single_step_breakpoints): New function.
1590 (adjust_pc_after_break): Adjust to use
1591 thread_has_single_step_breakpoints_set.
1592 (handle_inferior_event): Remove references to removed globals.
1593 Use delete_stopped_threads_single_step_breakpoints.
1594 (handle_signal_stop): Adjust to per-thread single-step
1595 breakpoints. Swap test order to do cheaper tests first.
1596 (switch_back_to_stepped_thread): Extend debug output. Remove
1597 references to removed globals.
1598 * record-full.c (record_full_wait_1): Adjust to per-thread
1599 single-step breakpoints.
1600 * thread.c (delete_single_step_breakpoints)
1601 (thread_has_single_step_breakpoints_set)
1602 (thread_has_single_step_breakpoint_here): New functions.
1603 (clear_thread_inferior_resources): Also delete the thread's
1604 single-step breakpoints.
1605
1606 2014-10-15 Pedro Alves <palves@redhat.com>
1607
1608 * thread.c (delete_thread_breakpoint): New function.
1609 (delete_step_resume_breakpoint)
1610 (delete_exception_resume_breakpoint): Use it.
1611 (delete_at_next_stop): New function.
1612 (clear_thread_inferior_resources): Use delete_at_next_stop.
1613
1614 2014-10-15 Pedro Alves <palves@redhat.com>
1615
1616 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1617 (breakpoint_inserted_here_p): ... here. Remove special case for
1618 software single-step breakpoints.
1619 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1620 (software_breakpoint_inserted_here_p): ... here. Remove special
1621 case for software single-step breakpoints.
1622 (bp_target_info_copy_insertion_state)
1623 (deprecated_insert_raw_breakpoint)
1624 (deprecated_remove_raw_breakpoint): Delete functions.
1625 * breakpoint.h (deprecated_insert_raw_breakpoint)
1626 (deprecated_remove_raw_breakpoint): Remove declarations.
1627
1628 2014-10-15 Pedro Alves <palves@redhat.com>
1629
1630 PR breakpoints/9649
1631 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1632 Delete array globals.
1633 (single_step_breakpoints): New global.
1634 (breakpoint_xfer_memory): Remove special handling for single-step
1635 breakpoints.
1636 (update_breakpoints_after_exec): Delete bp_single_step
1637 breakpoints.
1638 (detach_breakpoints): Remove special handling for single-step
1639 breakpoints.
1640 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1641 (bpstat_stop_status): Add comment.
1642 (bpstat_what, bptype_string, print_one_breakpoint_location)
1643 (adjust_breakpoint_address, init_bp_location): Handle
1644 bp_single_step.
1645 (new_single_step_breakpoint): New function.
1646 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1647 handling for single-step breakpoints.
1648 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1649 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1650 Rewrite.
1651 (detach_single_step_breakpoints, find_single_step_breakpoint):
1652 Delete functions.
1653 (breakpoint_has_location_inserted_here): New function.
1654 (single_step_breakpoint_inserted_here_p): Rewrite.
1655 * breakpoint.h: Remove FIXME.
1656 (enum bptype) <bp_single_step>: New enum value.
1657 (insert_single_step_breakpoint): Update comment.
1658 * infrun.c (resume_cleanups)
1659 (delete_step_thread_step_resume_breakpoint): Remove single-step
1660 breakpoints.
1661 (fetch_inferior_event): Install a cleanup that removes infrun
1662 breakpoints.
1663 (switch_back_to_stepped_thread) <expect thread advanced also>:
1664 Clear step-over info.
1665
1666 2014-10-15 Pedro Alves <palves@redhat.com>
1667
1668 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1669 (delete_thread_infrun_breakpoints): New function, with parts
1670 salvaged from delete_step_resume_breakpoint_callback.
1671 (delete_step_thread_step_resume_breakpoint): Delete.
1672 (for_each_just_stopped_thread_callback_func): New typedef.
1673 (for_each_just_stopped_thread): New function.
1674 (delete_just_stopped_threads_infrun_breakpoints): New function.
1675 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1676 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1677 ... this. Adjust.
1678 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1679
1680 2014-10-15 Pedro Alves <palves@redhat.com>
1681
1682 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1683 trying to step past a non-steppable watchpoint.
1684 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1685 field.
1686 * infrun.c (struct step_over_info): Add new field
1687 'nonsteppable_watchpoint_p' and adjust comments.
1688 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1689 Adjust.
1690 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1691 (stepping_past_nonsteppable_watchpoint): New function.
1692 (step_over_info_valid_p): Also return true if stepping past a
1693 nonsteppable watchpoint.
1694 (proceed): Adjust call to set_step_over_info. Remove reference to
1695 init_infwait_state.
1696 (init_wait_for_inferior): Remove reference to init_infwait_state.
1697 (waiton_ptid): Delete global.
1698 (struct execution_control_state)
1699 <stepped_after_stopped_by_watchpoint>: Delete field.
1700 (wait_for_inferior, fetch_inferior_event): Always pass
1701 minus_one_ptid to target_wait.
1702 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1703 field.
1704 (init_infwait_state): Delete function.
1705 (handle_inferior_event): Remove infwait_state handling.
1706 (handle_signal_stop) <watchpoints handling>: Adjust after
1707 stepped_after_stopped_by_watchpoint removal. Don't remove
1708 breakpoints here nor set infwait_state. Set the thread's
1709 stepping_over_watchpoint flag, and call keep_going instead.
1710 (keep_going): Handle stepping_over_watchpoint. Adjust
1711 set_step_over_info calls.
1712 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1713 function.
1714
1715 2014-10-15 Pedro Alves <palves@redhat.com>
1716
1717 * infrun.c (step_over_info_valid_p): New function.
1718 (resume): Use step_over_info_valid_p instead of checking the
1719 threads's trap_expected flag.
1720
1721 2014-10-15 Doug Evans <dje@google.com>
1722 Walfred Tedeschi <walfred.tedeschi@intel.com>
1723
1724 PR python/17364
1725 * python/lib/gdb/__init__.py (packages): Add "printer".
1726 * python/lib/gdb/command/bound_registers.py: Moved to ...
1727 * python/lib/gdb/printer/bound_registers.py: ... here.
1728 Add printer to global set of builtin printers. Rename printer from
1729 "bound" to "mpx_bound128".
1730 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1731 registered as global "builtin" printer.
1732 (add_builtin_pretty_printer): New function.
1733 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1734 gdb/printer/__init__.py.
1735
1736 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1737
1738 * Makefile.in (SFILES): Remove d-support.c.
1739 (COMMON_OBS): Remove d-support.o.
1740 * d-lang.h (d_parse_symbol): Remove declaration.
1741 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1742 * d-support.c: Remove file.
1743
1744 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1745
1746 * gdb/infrun.c (process_event_stop_test): Apply
1747 gdbarch_addr_bits_remove to longjmp resume address.
1748
1749 2014-10-15 Pedro Alves <palves@redhat.com>
1750
1751 * regformats/microblaze.dat: Delete file.
1752
1753 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1754
1755 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1756 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1757
1758 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1759
1760 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1761 as non-trivial.
1762
1763 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1764
1765 PR c++/13403
1766 PR c++/15154
1767 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1768 with qualified args.
1769
1770 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1771
1772 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1773 of the case where the second operand is a pointer.
1774 <BINOP_SUB>: Likewise.
1775
1776 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1777
1778 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1779 only if it is not NULL.
1780 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1781 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1782 (struct probe_ops) <clear_semaphore>: Likewise.
1783 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1784 not NULL.
1785 (stop_tracing): Likewise, for clear_semaphore.
1786
1787 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1788
1789 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1790 using language_c, instead of current_language.
1791
1792 2014-10-13 Doug Evans <dje@google.com>
1793
1794 * python/py-objfile.c (objfpy_initialize): New function.
1795 (objfpy_new, objfile_to_objfile_object): Call it.
1796 * python/py-progspace.c (pspy_initialize): New function.
1797 (pspy_new, pspace_to_pspace_object): Call it.
1798
1799 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1800 Jan Kratochvil <jan.kratochvil@redhat.com>
1801
1802 Fix "save breakpoints" for "catch" command.
1803 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1804 newline.
1805
1806 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1807
1808 Fix "save breakpoints" for "disable $bpnum" command.
1809 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1810
1811 2014-10-10 Pedro Alves <palves@redhat.com>
1812
1813 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1814 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1815 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1816 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1817 and been removed.
1818 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1819 * configure.ac: Remove references to IRIX.
1820 * configure.host: Add *-*-irix* to the obsolete hosts section.
1821 Remove all other references to irix.
1822 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1823 Delete files.
1824
1825 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1826
1827 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1828 isn't valid, release the tdesc arch data and return NULL.
1829
1830 2014-10-10 Pedro Alves <palves@redhat.com>
1831
1832 * linux-tdep.c: Include observer.h.
1833 (linux_inferior_data): New global.
1834 (struct linux_info): New structure.
1835 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1836 (get_linux_inferior_data): New functions.
1837 (linux_vsyscall_range): Rename to ...
1838 (linux_vsyscall_range_raw): ... this.
1839 (linux_vsyscall_range): New function; handles caching.
1840 (_initialize_linux_tdep): Register linux_inferior_data. Install
1841 inferior_exit and inferior_appeared observers.
1842
1843 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1844 Pedro Alves <palves@redhat.com>
1845
1846 PR symtab/14466
1847 * solib-svr4.c (svr4_read_so_list): Rename to ...
1848 (svr4_current_sos_1): ... this and change the function comment.
1849 (svr4_current_sos): New function.
1850
1851 2014-10-10 Pedro Alves <palves@redhat.com>
1852
1853 * arch-utils.c (default_vsyscall_range): New function.
1854 * arch-utils.h (default_vsyscall_range): New declaration.
1855 * gdbarch.sh (vsyscall_range): New hook.
1856 * gdbarch.h, gdbarch.c: Regenerate.
1857 * linux-tdep.c (linux_vsyscall_range): New function.
1858 (linux_init_abi): Install linux_vsyscall_range as
1859 vsyscall_range gdbarch hook.
1860 * memrange.c (address_in_mem_range): New function.
1861 * memrange.h (address_in_mem_range): New declaration.
1862 * symfile-mem.c (find_vdso_size): Delete function.
1863 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1864
1865 2014-10-10 Pedro Alves <palves@redhat.com>
1866
1867 * infrun.c (normal_stop): Fix typo in comment.
1868
1869 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1870
1871 PR tdep/9390
1872 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1873 typo when using logical AND to determine instruction type.
1874
1875 2014-10-09 Yao Qi <yao@codesourcery.com>
1876
1877 * infrun.c (handle_signal_stop): Remove local variable
1878 'printed'.
1879
1880 2014-10-08 Stan Shebs <stan@codesourcery.com>
1881
1882 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1883
1884 2014-10-08 Gary Benson <gbenson@redhat.com>
1885
1886 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1887
1888 2014-10-08 Gary Benson <gbenson@redhat.com>
1889
1890 * common/common-defs.h: Include common-exceptions.h.
1891 * exceptions.h: Do not include common-exceptions.h.
1892
1893 2014-10-08 Gary Benson <gbenson@redhat.com>
1894
1895 * common/common-defs.h: Include cleanups.h.
1896 * common/common-exceptions.c: Do not include cleanups.h.
1897 * utils.h: Likewise.
1898
1899 2014-10-08 Gary Benson <gbenson@redhat.com>
1900
1901 * ada-lang.c: Do not include exceptions.h.
1902 * ada-valprint.c: Likewise.
1903 * amd64-tdep.c: Likewise.
1904 * auto-load.c: Likewise.
1905 * block.c: Likewise.
1906 * break-catch-throw.c: Likewise.
1907 * breakpoint.c: Likewise.
1908 * btrace.c: Likewise.
1909 * c-lang.c: Likewise.
1910 * cli/cli-cmds.c: Likewise.
1911 * cli/cli-interp.c: Likewise.
1912 * cli/cli-script.c: Likewise.
1913 * completer.c: Likewise.
1914 * corefile.c: Likewise.
1915 * corelow.c: Likewise.
1916 * cp-abi.c: Likewise.
1917 * cp-support.c: Likewise.
1918 * cp-valprint.c: Likewise.
1919 * darwin-nat.c: Likewise.
1920 * dwarf2-frame-tailcall.c: Likewise.
1921 * dwarf2-frame.c: Likewise.
1922 * dwarf2loc.c: Likewise.
1923 * dwarf2read.c: Likewise.
1924 * eval.c: Likewise.
1925 * event-loop.c: Likewise.
1926 * event-top.c: Likewise.
1927 * f-valprint.c: Likewise.
1928 * frame-unwind.c: Likewise.
1929 * frame.c: Likewise.
1930 * gdbtypes.c: Likewise.
1931 * gnu-v2-abi.c: Likewise.
1932 * gnu-v3-abi.c: Likewise.
1933 * guile/scm-auto-load.c: Likewise.
1934 * guile/scm-breakpoint.c: Likewise.
1935 * guile/scm-cmd.c: Likewise.
1936 * guile/scm-frame.c: Likewise.
1937 * guile/scm-lazy-string.c: Likewise.
1938 * guile/scm-param.c: Likewise.
1939 * guile/scm-symbol.c: Likewise.
1940 * guile/scm-type.c: Likewise.
1941 * hppa-hpux-tdep.c: Likewise.
1942 * i386-tdep.c: Likewise.
1943 * inf-loop.c: Likewise.
1944 * infcall.c: Likewise.
1945 * infcmd.c: Likewise.
1946 * infrun.c: Likewise.
1947 * interps.c: Likewise.
1948 * interps.h: Likewise.
1949 * jit.c: Likewise.
1950 * linespec.c: Likewise.
1951 * linux-nat.c: Likewise.
1952 * linux-thread-db.c: Likewise.
1953 * m32r-rom.c: Likewise.
1954 * main.c: Likewise.
1955 * memory-map.c: Likewise.
1956 * mi/mi-cmd-break.c: Likewise.
1957 * mi/mi-cmd-stack.c: Likewise.
1958 * mi/mi-interp.c: Likewise.
1959 * mi/mi-main.c: Likewise.
1960 * monitor.c: Likewise.
1961 * nto-procfs.c: Likewise.
1962 * objc-lang.c: Likewise.
1963 * p-valprint.c: Likewise.
1964 * parse.c: Likewise.
1965 * ppc-linux-tdep.c: Likewise.
1966 * printcmd.c: Likewise.
1967 * probe.c: Likewise.
1968 * python/py-auto-load.c: Likewise.
1969 * python/py-breakpoint.c: Likewise.
1970 * python/py-cmd.c: Likewise.
1971 * python/py-finishbreakpoint.c: Likewise.
1972 * python/py-frame.c: Likewise.
1973 * python/py-framefilter.c: Likewise.
1974 * python/py-function.c: Likewise.
1975 * python/py-gdb-readline.c: Likewise.
1976 * python/py-inferior.c: Likewise.
1977 * python/py-infthread.c: Likewise.
1978 * python/py-lazy-string.c: Likewise.
1979 * python/py-linetable.c: Likewise.
1980 * python/py-param.c: Likewise.
1981 * python/py-prettyprint.c: Likewise.
1982 * python/py-symbol.c: Likewise.
1983 * python/py-type.c: Likewise.
1984 * python/py-value.c: Likewise.
1985 * python/python-internal.h: Likewise.
1986 * python/python.c: Likewise.
1987 * record-btrace.c: Likewise.
1988 * record-full.c: Likewise.
1989 * regcache.c: Likewise.
1990 * remote-fileio.c: Likewise.
1991 * remote-mips.c: Likewise.
1992 * remote.c: Likewise.
1993 * rs6000-aix-tdep.c: Likewise.
1994 * rs6000-nat.c: Likewise.
1995 * skip.c: Likewise.
1996 * solib-darwin.c: Likewise.
1997 * solib-dsbt.c: Likewise.
1998 * solib-frv.c: Likewise.
1999 * solib-ia64-hpux.c: Likewise.
2000 * solib-spu.c: Likewise.
2001 * solib-svr4.c: Likewise.
2002 * solib.c: Likewise.
2003 * spu-tdep.c: Likewise.
2004 * stack.c: Likewise.
2005 * stap-probe.c: Likewise.
2006 * symfile-mem.c: Likewise.
2007 * symmisc.c: Likewise.
2008 * target.c: Likewise.
2009 * thread.c: Likewise.
2010 * top.c: Likewise.
2011 * tracepoint.c: Likewise.
2012 * tui/tui-interp.c: Likewise.
2013 * typeprint.c: Likewise.
2014 * utils.c: Likewise.
2015 * valarith.c: Likewise.
2016 * valops.c: Likewise.
2017 * valprint.c: Likewise.
2018 * value.c: Likewise.
2019 * varobj.c: Likewise.
2020 * windows-nat.c: Likewise.
2021 * xml-support.c: Likewise.
2022
2023 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2024
2025 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2026 name implies.
2027 (extended_mips16_next_pc): Update accordingly.
2028
2029 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2030
2031 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2032 function.
2033 (micromips_instruction_is_compact_branch): Likewise.
2034 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2035 or a compact jump, reaching a jump delay slot, or seeing a
2036 second non-prologue instruction.
2037 (micromips_scan_prologue): Also terminate scanning upon seeing a
2038 compact branch or jump, or reaching a branch or jump delay slot.
2039 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2040 or jump delay slot, or seeing a second non-prologue instruction.
2041 (mips32_instruction_has_delay_slot): Retain instruction
2042 examination code only, update arguments accordingly and move
2043 instruction fetch pieces to...
2044 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2045 (micromips_instruction_has_delay_slot): Likewise and to...
2046 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2047 (mips16_instruction_has_delay_slot): Likewise and to...
2048 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2049 (mips_single_step_through_delay): Update accordingly.
2050 (mips_adjust_breakpoint_address): Likewise.
2051
2052 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2053
2054 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2055 !mustbe32 also return 1 for 32-bit instructions.
2056 (mips16_instruction_has_delay_slot): Likewise. Add an
2057 explanatory comment.
2058
2059 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2060
2061 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2062 symbols special.
2063
2064 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2065
2066 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2067 update comments.
2068 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2069 for the breakpoint's address. Don't preinitialize `placed_size'.
2070 (insert_bp_location): Set `reqstd_address' rather than
2071 `placed_address'.
2072 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2073 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2074 address.
2075 (bkpt_remove_location): Likewise.
2076 (deprecated_insert_raw_breakpoint): Likewise.
2077 (deprecated_remove_raw_breakpoint): Likewise.
2078 (find_single_step_breakpoint): Likewise.
2079 * mem-break.c (default_memory_insert_breakpoint): Use
2080 `reqstd_address' for the breakpoint's address. Don't set
2081 `placed_address' or `placed_size' if breakpoint contents couldn't
2082 have been determined.
2083 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2084 the breakpoint's address.
2085 (remote_insert_hw_breakpoint): Likewise. Don't set
2086 `placed_address' or `placed_size' if breakpoint couldn't have been
2087 set.
2088 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2089 `reqstd_address' for the breakpoint's address.
2090 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2091 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2092 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2093 * microblaze-linux-tdep.c
2094 (microblaze_linux_memory_remove_breakpoint): Likewise.
2095 * monitor.c (monitor_insert_breakpoint): Likewise.
2096 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2097 (procfs_insert_hw_breakpoint): Likewise.
2098 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2099 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2100 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2101 * remote-mips.c (mips_insert_breakpoint): Likewise.
2102 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2103
2104 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2105
2106 * valops.c (value_assign): Check for bit field assignments
2107 before calling architecture-specific register value
2108 conversion functions.
2109
2110 2014-10-03 Pierre Muller <muller@sourceware.org>
2111
2112 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2113
2114 2014-10-02 Pedro Alves <palves@redhat.com>
2115
2116 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2117 threads_are_executing.
2118 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2119 describing comment.
2120 * gdbthread.h (threads_are_executing): Declare.
2121 (handle_signal_stop) <random signals>: Don't print about the
2122 signal here if stopping.
2123 (end_stepping_range): Don't notify observers here.
2124 (normal_stop): Update the thread list. If stopped by a random
2125 signal or a stepping range ended, notify observers.
2126 * thread.c (threads_executing): New global.
2127 (init_thread_list): Clear 'threads_executing'.
2128 (set_executing): Set or clear 'threads_executing'.
2129 (threads_are_executing): New function.
2130 (update_threads_executing): New function.
2131 (update_thread_list): Use it.
2132
2133 2014-10-02 Pedro Alves <palves@redhat.com>
2134
2135 PR breakpoints/17431
2136 * breakpoint.c (update_breakpoints_after_exec): Don't create
2137 overlay, longjmp, std terminate nor exception breakpoints here.
2138
2139 2014-10-02 Pedro Alves <palves@redhat.com>
2140
2141 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2142 Adjust comments.
2143 * inferior.c (find_inferior_for_program_space): Give preference to
2144 the current inferior.
2145 * inferior.h (find_inferior_for_program_space): Update comment.
2146 * progspace.c (switch_to_program_space_and_thread): Prefer the
2147 current inferior if it's bound to the program space requested. If
2148 the inferior found doesn't have a PID yet, don't bother looking up
2149 a thread.
2150 * progspace.h (switch_to_program_space_and_thread): Adjust
2151 comment.
2152 * thread.c (any_thread_of_process, any_live_thread_of_process):
2153 Give preference to the current thread.
2154
2155 2014-10-01 Pedro Alves <palves@redhat.com>
2156
2157 * breakpoint.c (insert_bp_location): Error out if inserting a
2158 software breakpoint at a read-only address.
2159 * target.c (memory_xfer_check_region): New function, factored out
2160 from ...
2161 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2162 ULONGEST.
2163 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2164 against the memory region attributes.
2165
2166 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2167
2168 * NEWS: Announce new exit-code field in -list-thread-groups
2169 output.
2170 * inferior.c (exit_inferior_1): Don't clear exit code.
2171 (inferior_appeared): Clear exit code.
2172 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2173 code.
2174
2175 2014-10-01 Pedro Alves <palves@redhat.com>
2176
2177 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2178 GENERATED" along with emacs/vi read-only markers.
2179 * regformats/aarch64.dat: Regenerate.
2180 * regformats/arm-with-iwmmxt.dat: Regenerate.
2181 * regformats/arm-with-neon.dat: Regenerate.
2182 * regformats/arm-with-vfpv2.dat: Regenerate.
2183 * regformats/arm-with-vfpv3.dat: Regenerate.
2184 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2185 * regformats/i386/amd64-avx.dat: Regenerate.
2186 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2187 * regformats/i386/amd64-avx512.dat: Regenerate.
2188 * regformats/i386/amd64-linux.dat: Regenerate.
2189 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2190 * regformats/i386/amd64-mpx.dat: Regenerate.
2191 * regformats/i386/amd64.dat: Regenerate.
2192 * regformats/i386/i386-avx-linux.dat: Regenerate.
2193 * regformats/i386/i386-avx.dat: Regenerate.
2194 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2195 * regformats/i386/i386-avx512.dat: Regenerate.
2196 * regformats/i386/i386-linux.dat: Regenerate.
2197 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2198 * regformats/i386/i386-mmx.dat: Regenerate.
2199 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2200 * regformats/i386/i386-mpx.dat: Regenerate.
2201 * regformats/i386/i386.dat: Regenerate.
2202 * regformats/i386/x32-avx-linux.dat: Regenerate.
2203 * regformats/i386/x32-avx.dat: Regenerate.
2204 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2205 * regformats/i386/x32-avx512.dat: Regenerate.
2206 * regformats/i386/x32-linux.dat: Regenerate.
2207 * regformats/i386/x32.dat: Regenerate.
2208 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2209 * regformats/mips-dsp-linux.dat: Regenerate.
2210 * regformats/mips-linux.dat: Regenerate.
2211 * regformats/mips64-dsp-linux.dat: Regenerate.
2212 * regformats/mips64-linux.dat: Regenerate.
2213 * regformats/nios2-linux.dat: Regenerate.
2214 * regformats/rs6000/powerpc-32.dat: Regenerate.
2215 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2216 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2217 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2218 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2219 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2220 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2221 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2222 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2223 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2224 * regformats/s390-linux32.dat: Regenerate.
2225 * regformats/s390-linux32v1.dat: Regenerate.
2226 * regformats/s390-linux32v2.dat: Regenerate.
2227 * regformats/s390-linux64.dat: Regenerate.
2228 * regformats/s390-linux64v1.dat: Regenerate.
2229 * regformats/s390-linux64v2.dat: Regenerate.
2230 * regformats/s390-te-linux64.dat: Regenerate.
2231 * regformats/s390x-linux64.dat: Regenerate.
2232 * regformats/s390x-linux64v1.dat: Regenerate.
2233 * regformats/s390x-linux64v2.dat: Regenerate.
2234 * regformats/s390x-te-linux64.dat: Regenerate.
2235 * regformats/tic6x-c62x-linux.dat: Regenerate.
2236 * regformats/tic6x-c62x.dat: Regenerate.
2237 * regformats/tic6x-c64x-linux.dat: Regenerate.
2238 * regformats/tic6x-c64x.dat: Regenerate.
2239 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2240 * regformats/tic6x-c64xp.dat: Regenerate.
2241
2242 2014-10-01 Pedro Alves <palves@redhat.com>
2243
2244 * features/Makefile: Update comments.
2245 (XMLTOC): List all xml files we build C files from.
2246 (clean-cfiles): New rule.
2247
2248 2014-10-01 Pedro Alves <palves@redhat.com>
2249
2250 * features/i386/amd64-avx512-linux.c: Regenerate.
2251 * features/i386/amd64-avx512.c: Regenerate.
2252 * features/i386/x32-avx512-linux.c: Regenerate.
2253 * features/i386/x32-avx512.c: Regenerate.
2254
2255 2014-10-01 Pedro Alves <palves@redhat.com>
2256
2257 * features/Makefile (WHICH): Remove arm-with-m,
2258 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2259
2260 2014-10-01 Pedro Alves <palves@redhat.com>
2261
2262 * features/Makefile (clean): New rule.
2263
2264 2014-10-01 Pedro Alves <palves@redhat.com>
2265
2266 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2267 (zmm14h): Add missing end quotes.
2268
2269 2014-10-01 Pedro Alves <palves@redhat.com>
2270
2271 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2272 * features/aarch64.c: Regenerate.
2273
2274 2014-09-30 Don Breazeal <donb@codesourcery.com>
2275
2276 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2277 code so as to work with follow_fork_inferior.
2278 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2279 (inf_ttrace_create_inferior): Remove reference to
2280 inf_ttrace_vfork_ppid.
2281 (inf_ttrace_attach): Ditto.
2282 (inf_ttrace_detach): Ditto.
2283 (inf_ttrace_kill): Use current_inferior instead of
2284 inf_ttrace_vfork_ppid.
2285 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2286 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2287 inferior away from the parent.
2288 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2289 target_follow_fork.
2290 (follow_fork_inferior): New function.
2291 (follow_inferior_reset_breakpoints): Make function static.
2292 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2293 * linux-nat.c (linux_child_follow_fork): Move target-independent
2294 code to infrun.c:follow_fork_inferior.
2295
2296 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2297
2298 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2299 * gdbarch.c: Regenerate.
2300 * gdbarch.h: Likewise.
2301 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2302 gdbarch method 'regset_from_core_section'.
2303 (get_core_register_section): Remove handling for the case that
2304 regset == NULL and regset_from_core_section is defined.
2305 (get_core_registers): Drop check for deleted method.
2306 * procfs.c (procfs_do_thread_registers): Adjust comment.
2307
2308 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2309
2310 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2311 (linux_nat_make_corefile_notes): Remove.
2312 (linux_target_install_ops): Do not set target method
2313 'make_corefile_notes'.
2314 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2315 Remove field.
2316 (linux_corefile_thread_callback): Instead of args->collect, call
2317 linux_collect_thread_registers.
2318 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2319 NULL unless there is a regset iterator.
2320 (linux_make_corefile_notes_1): Remove.
2321 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2322 by linux_make_corefile_notes.
2323 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2324
2325 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2326
2327 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2328 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2329 Remove.
2330 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2331
2332 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2333
2334 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2335 (xtensa_iterate_over_regset_sections): New.
2336 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2337
2338 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2339
2340 * vax-tdep.c (vax_regset_from_core_section): Remove.
2341 (vax_iterate_over_regset_sections): New.
2342 (vax_gdbarch_init): Adjust gdbarch initialization.
2343
2344 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2345
2346 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2347 (tilegx_regset_from_core_section): Remove.
2348 (tilegx_iterate_over_regset_sections): New.
2349 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2350
2351 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2352
2353 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2354 (sparc_iterate_over_regset_sections): New.
2355 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2356 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2357 targets.
2358 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2359 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2360 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2361 target method 'make_corefile_notes'.
2362
2363 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2364
2365 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2366 'sizeof_gregset' and 'sizeof_fpregset'.
2367 * sh-tdep.c (sh_regset_from_core_section): Remove.
2368 (sh_iterate_over_regset_sections): New.
2369 (sh_gdbarch_init): Adjust gdbarch initialization.
2370 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2371 sizeof_fpregset.
2372 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2373 'sizeof_gregset'.
2374
2375 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2376
2377 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2378 (score7_linux_iterate_over_regset_sections): New.
2379 (score_gdbarch_init): Adjust gdbarch initialization.
2380
2381 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2382
2383 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2384 FreeBSD targets.
2385 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2386 method 'make_corefile_notes'.
2387 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2388 (ppcfbsd_regset_from_core_section): Remove.
2389 (ppcfbsd_iterate_over_regset_sections): New.
2390 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2391 initialization.
2392 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2393 (ppcnbsd_iterate_over_regset_sections): New.
2394 (ppcnbsd_init_abi): Adjust.
2395 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2396 (ppcobsd_iterate_over_regset_sections): New.
2397 (ppcobsd_init_abi): Adjust.
2398 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2399 (rs6000_aix_iterate_over_regset_sections): New.
2400 (rs6000_aix_init_osabi): Adjust.
2401
2402 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2403
2404 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2405 (nios2_regset_from_core_section): Remove.
2406 (nios2_iterate_over_regset_sections): New.
2407 (nios2_linux_init_abi): Adjust gdbarch initialization.
2408
2409 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2410
2411 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2412 (am33_iterate_over_regset_sections): New.
2413 (am33_linux_init_osabi): Adjust gdbarch initialization.
2414
2415 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2416
2417 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2418 (mips_linux_iterate_over_regset_sections): New.
2419 (mips_linux_init_abi): Adjust gdbarch initialization.
2420 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2421 (mips64obsd_iterate_over_regset_sections): New.
2422 (mips64obsd_init_abi): Adjust.
2423 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2424 (mipsnbsd_iterate_over_regset_sections): New.
2425 (mipsnbsd_init_abi): Adjust.
2426
2427 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2428
2429 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2430 (m88k_iterate_over_regset_sections): New.
2431 (m88k_gdbarch_init): Adjust gdbarch initialization.
2432
2433 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2434
2435 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2436 (ia64_linux_iterate_over_regset_sections): New.
2437 (ia64_linux_init_abi): Adjust gdbarch initialization.
2438
2439 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2440
2441 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2442 (m68kbsd_iterate_over_regset_sections): New.
2443 (m68kbsd_init_abi): Adjust gdbarch initialization.
2444 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2445 (m68k_linux_iterate_over_regset_sections): New.
2446 (m68k_linux_init_abi): Adjust gdbarch initialization.
2447
2448 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2449
2450 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2451 (m32r_linux_regset_from_core_section): Remove.
2452 (m32r_linux_iterate_over_regset_sections): New.
2453 (m32r_linux_init_abi): Adjust gdbarch initialization.
2454
2455 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2456
2457 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2458 (amd64obsd_iterate_over_regset_sections): New.
2459 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2460 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2461 Remove.
2462 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2463 regset_from_core_section initialization.
2464 * i386-tdep.c (i386_regset_from_core_section): Remove.
2465 (i386_iterate_over_regset_sections): New.
2466 (i386_gdbarch_init): Adjust gdbarch initialization.
2467 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2468 (i386_iterate_over_regset_sections): New prototype.
2469 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2470 Remove.
2471 (i386obsd_aout_iterate_over_regset_sections): New.
2472 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2473 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2474 targets.
2475 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2476 (amd64fbsd_init_abi): Call fbsd_init_abi.
2477 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2478 (i386fbsd4_init_abi): Call fbsd_init_abi.
2479 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2480 target method 'make_corefile_notes'.
2481 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2482
2483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2484
2485 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2486 (hppa_hpux_iterate_over_regset_sections): New.
2487 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2488 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2489 (hppa_linux_iterate_over_regset_sections): New.
2490 (hppa_linux_init_abi): Adjust.
2491 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2492 (hppanbsd_iterate_over_regset_sections): New.
2493 (hppanbsd_init_abi): Adjust.
2494 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2495 (hppaobsd_iterate_over_regset_sections): New.
2496 (hppaobsd_init_abi): Adjust.
2497
2498 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2499
2500 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2501 (frv_linux_iterate_over_regset_sections): New.
2502 (frv_linux_init_abi): Adjust gdbarch initialization.
2503
2504 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2505
2506 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2507 (armbsd_iterate_over_regset_sections): New prototype.
2508 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2509 (armbsd_iterate_over_regset_sections): New.
2510 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2511 initialization.
2512
2513 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2514
2515 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2516 (alpha_linux_iterate_over_regset_sections): New.
2517 (alpha_linux_init_abi): Adjust gdbarch initialization.
2518 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2519 prototype.
2520 (alphanbsd_iterate_over_regset_sections): New prototype.
2521
2522 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2523
2524 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2525 Remove.
2526 (aarch64_linux_iterate_over_regset_sections): New.
2527 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2528
2529 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2530
2531 * fbsd-tdep.c: New file.
2532 * fbsd-tdep.h: New file.
2533 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2534 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2535 (ALLDEPFILES): Add fbsd-tdep.c.
2536
2537 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2538
2539 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2540 parameter.
2541 * gdbarch.h: Regenerate.
2542 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2543 iterator.
2544 (get_core_register_section): Add parameter 'regset' and use it, if
2545 set. Add parameter 'min_size' and verify the bfd section size
2546 against it.
2547 (get_core_registers_cb): Add parameter 'regset' and pass it to
2548 get_core_register section. For the "standard" register sections
2549 ".reg" and ".reg2", set an appropriate default for human_name.
2550 (get_core_registers): Don't abort when the gdbarch has an iterator
2551 but no regset_from_core_section. Add NULL/0 for parameters
2552 'regset'/'min_size' in calls to get_core_register_section.
2553 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2554 'regset' and use it instead of calling the
2555 regset_from_core_section gdbarch method.
2556 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2557 * i386-tdep.c (i386_supply_xstateregset)
2558 (i386_collect_xstateregset, i386_xstateregset): Moved to
2559 i386-linux-tdep.c.
2560 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2561 .reg-xstate.
2562 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2563 core file support only if the regset iterator hasn't been set.
2564 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2565 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2566 Moved from i386-tdep.c and renamed to *_linux*.
2567 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2568 each callback invocation. Allow any .reg-xstate size when reading
2569 from a core file.
2570 * amd64-tdep.c (amd64_supply_xstateregset)
2571 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2572 amd64-linux-tdep.c.
2573 (amd64_regset_from_core_section): Remove.
2574 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2575 install an amd64-specific regset_from_core_section gdbarch method.
2576 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2577 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2578 Moved from amd64-tdep.c and renamed to *_linux*.
2579 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2580 to each callback invocation. Allow any .reg-xstate size when
2581 reading from a core file.
2582 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2583 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2584 each callback invocation.
2585 (arm_linux_init_abi): No longer set the regset_from_core_section
2586 gdbarch method.
2587 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2588 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2589 each callback invocation.
2590 (ppc_linux_init_abi): No longer set the regset_from_core_section
2591 gdbarch method.
2592 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2593 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2594 (s390_regset_from_core_section): Remove.
2595 (s390_iterate_over_regset_sections): Add regset parameter to each
2596 callback invocation.
2597 (s390_gdbarch_init): No longer set the regset_from_core_section
2598 gdbarch method. Drop initialization of deleted tdep fields.
2599
2600 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2601
2602 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2603 (amd64_linux_iterate_over_regset_sections): New.
2604 (amd64_linux_init_abi_common): Don't install the regset section
2605 list, but the new iterator in gdbarch.
2606 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2607 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2608 (arm_linux_iterate_over_regset_sections): ...here. New function.
2609 (arm_linux_init_abi): Set iterator instead of section list.
2610 * corelow.c (get_core_registers_cb): New function, logic moved
2611 from...
2612 (get_core_registers): ...loop body here. Use new iterator method
2613 instead of walking through the regset section list.
2614 * gdbarch.sh: Remove 'core_regset_sections'. New method
2615 'iterate_over_regset_sections'. New typedef
2616 'iterate_over_regset_sections_cb'.
2617 * gdbarch.c: Regenerate.
2618 * gdbarch.h: Likewise.
2619 * i386-linux-tdep.c (i386_linux_regset_sections)
2620 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2621 Remove.
2622 (i386_linux_iterate_over_regset_sections): New.
2623 (i386_linux_init_abi): Don't choose a regset section list, but
2624 install new iterator in gdbarch.
2625 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2626 (linux_collect_regset_section_cb): New function, logic moved
2627 from...
2628 (linux_collect_thread_registers): ...loop body here. Use iterator
2629 method instead of walking through list.
2630 (linux_make_corefile_notes_1): Check for presence of iterator
2631 method instead of regset section list.
2632 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2633 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2634 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2635 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2636 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2637 (ppc_linux_init_abi): Don't choose from above regset section
2638 lists, but install new iterator in gdbarch.
2639 * regset.h (struct core_regset_section): Remove.
2640 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2641 have_linux_v1, have_linux_v2, and have_tdb.
2642 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2643 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2644 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2645 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2646 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2647 (s390_iterate_over_regset_sections): ...here. New function. Use
2648 new tdep fields.
2649 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2650 regset section lists, but install new iterator.
2651
2652 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2653
2654 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2655
2656 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2657
2658 * progspace.c (print_program_space): Don't prune program spaces
2659 before printing them.
2660
2661 2014-09-25 Pedro Alves <palves@redhat.com>
2662
2663 * infrun.c (user_visible_resume_ptid): Don't check
2664 singlestep_breakpoints_inserted_p.
2665
2666 2014-09-25 Pedro Alves <palves@redhat.com>
2667
2668 * breakpoint.c (should_be_inserted): Add debug output.
2669
2670 2014-09-25 Pedro Alves <palves@redhat.com>
2671
2672 * infrun.c (stepping_past_instruction_at)
2673 (clear_exit_convenience_vars): Point at infrun.h instead of
2674 inferior.h.
2675 (handle_signal_stop): Fix typo.
2676
2677 2014-09-24 Yao Qi <yao@codesourcery.com>
2678
2679 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2680 bitmask.
2681
2682 2014-09-22 Gary Benson <gbenson@redhat.com>
2683
2684 * target.c (target_stop): Updated comment.
2685
2686 2014-09-22 Gary Benson <gbenson@redhat.com>
2687
2688 * target/target.h (target_stop_ptid): Renamed as...
2689 (target_stop_and_wait): New function. Updated comment.
2690 All uses updated.
2691 (target_continue_ptid): Renamed as...
2692 (target_continue_no_signal): New function. Updated comment.
2693 All uses updated.
2694
2695 2014-09-22 Pedro Alves <palves@redhat.com>
2696
2697 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2698 and "auto" merged.
2699 * breakpoint.c (enum ugll_insert_mode): New enum.
2700 (always_inserted_mode): Now a plain boolean.
2701 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2702 (breakpoints_always_inserted_mode): Delete.
2703 (breakpoints_should_be_inserted_now): New function.
2704 (insert_breakpoints): Pass UGLL_INSERT to
2705 update_global_location_list instead of calling
2706 insert_breakpoint_locations manually.
2707 (create_solib_event_breakpoint_1): New, factored out from ...
2708 (create_solib_event_breakpoint): ... this.
2709 (create_and_insert_solib_event_breakpoint): Use
2710 create_solib_event_breakpoint_1 instead of calling
2711 insert_breakpoint_locations manually.
2712 (update_global_location_list): Change parameter type from boolean
2713 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2714 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2715 (update_global_location_list_nothrow): Change parameter type from
2716 boolean to enum ugll_insert_mode.
2717 (_initialize_breakpoint): "breakpoint always-inserted" option is
2718 now a boolean command. Update help text.
2719 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2720 (breakpoints_should_be_inserted_now): New declaration.
2721 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2722 Remove breakpoints_always_inserted_mode check.
2723 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2724 * remote.c (remote_start_remote): Likewise.
2725
2726 2014-09-22 Pedro Alves <palves@redhat.com>
2727
2728 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2729 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2730 Instead, pass UGLL_INSERT to update_global_location_list.
2731 (update_global_location_list): Change parameter type from boolean
2732 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2733 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2734 (create_solib_event_breakpoint_1): New, factored out from ...
2735 (create_solib_event_breakpoint): ... this.
2736 (create_and_insert_solib_event_breakpoint): Use
2737 create_solib_event_breakpoint_1 instead of calling
2738 insert_breakpoint_locations manually.
2739 (update_global_location_list): Handle UGLL_INSERT.
2740
2741 2014-09-22 Pedro Alves <palves@redhat.com>
2742
2743 * breakpoint.c (enum ugll_insert_mode): New enum.
2744 (update_global_location_list)
2745 (update_global_location_list_nothrow): Change parameter type from
2746 boolean to enum ugll_insert_mode. All callers adjusted.
2747
2748 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2749
2750 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2751 SystemTap support in GDB.
2752
2753 2014-09-19 Don Breazeal <donb@codesourcery.com>
2754
2755 * linux-nat.c (linux_handle_extended_wait): Call
2756 linux_ptrace_get_extended_event.
2757 (wait_lwp): Call linux_is_extended_waitstatus.
2758 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2759 and linux_is_extended_waitstatus.
2760 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2761 linux_ptrace_get_extended_event.
2762 (linux_ptrace_get_extended_event): New function.
2763 (linux_is_extended_waitstatus): New function.
2764 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2765 (linux_is_extended_waitstatus): New declarations.
2766
2767 2014-09-19 Yao Qi <yao@codesourcery.com>
2768
2769 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2770 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2771 comments. Callers update.
2772 (dwarf_decode_lines): Likewise.
2773 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2774 comments. Skip the line table if 'lowpc' is greater than
2775 'address'. Don't check
2776 dwarf2_per_objfile->has_section_at_zero.
2777
2778 2014-09-18 Doug Evans <dje@google.com>
2779
2780 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2781 * python/py-symtab.c (stpy_get_producer): New function.
2782 (symtab_object_getset): Add "producer" attribute.
2783
2784 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2785
2786 PR gdb/17384
2787 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2788 (do_captured_read_memory_integer): Remove.
2789 (safe_read_memory_integer): Use target_read_memory directly instead
2790 of catching errors in do_captured_read_memory_integer.
2791
2792 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2793
2794 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2795 not gdb/doc.
2796
2797 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2798
2799 * objc-lang.c (find_implementation_from_class): Remove dead code.
2800
2801 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2802
2803 PR cli/7233
2804 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2805 "fprintf_unfiltered (gdb_stdlog...)".
2806
2807 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2808
2809 PR breakpoints/12526
2810 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2811 val_bitsize.
2812 * breakpoint.c (watch_command_1): Use these fields to retain
2813 bitfield information.
2814 (extract_bitfield_from_watchpoint_value): New function.
2815 (watchpoint_check): Use it.
2816 (update_watchpoint): Use it. Optimize the address and length of a
2817 HW watchpoint pointing to a bitfield.
2818 * value.h (unpack_value_bitfield): New prototype.
2819 * value.c (unpack_value_bitfield): Make extern.
2820
2821 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2822
2823 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2824 x86-dregs.o.
2825 * gnu-nat.c (inf_threads): New function.
2826 * gnu-nat.h (inf_threads_ftype): New typedef.
2827 (inf_threads): New declaration.
2828 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2829 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2830 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2831 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2832 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2833 (i386_gnu_dr_get_control): New functions.
2834 (reg_addr): New structure.
2835 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2836 i386 debugging register hooks.
2837 * NEWS: Mention this.
2838
2839 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2840
2841 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2842 vector data transfer instructions.
2843 (arm_record_coproc_data_proc): Updated.
2844
2845 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2846
2847 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2848 arm_record_exreg_ld_st_insn.
2849 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2850 load/store insns.
2851
2852 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2853
2854 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2855 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2856 processing instructions.
2857
2858 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2859
2860 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2861 for advance SIMD struct ld/st insn.
2862 (thumb2_record_decode_insn_handler): Replace stub handler with
2863 thumb2_record_asimd_struct_ld_st.
2864
2865 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2866
2867 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2868 for asimd, vfp and coprocessor insns.
2869 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2870 and coprocessor insns.
2871 (thumb2_record_coproc_insn): New function.
2872 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2873 handlers.
2874 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2875 opcode 110 insns.
2876
2877 2014-09-13 Doug Evans <xdje42@gmail.com>
2878
2879 * NEWS: Mention new "queue-signal" command.
2880 * infcmd.c (queue_signal_command): New function.
2881 (_initialize_infcmd): Add new queue-signal command.
2882
2883 2014-09-13 Doug Evans <xdje42@gmail.com>
2884
2885 * linux-nat.c (wait_lwp): Add debugging printf.
2886 (linux_nat_wait_1): Ditto.
2887
2888 2014-09-12 Pedro Alves <palves@redhat.com>
2889
2890 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2891 (create_and_insert_solib_event_breakpoint): New functions.
2892 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2893 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2894 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2895 (remove_dbx_link_breakpoint): Delete function.
2896 (insert_dbx_link_bpt_in_file): Use
2897 create_and_insert_solib_event_breakpoint instead of
2898 deprecated_insert_raw_breakpoint.
2899 (procfs_wait): Don't check whether we hit __dbx_link here.
2900 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2901 here.
2902 * solib-irix.c (base_breakpoint): Delete global.
2903 (disable_break): Delete function.
2904 (enable_break): Use create_solib_event_breakpoint
2905 instead of deprecated_insert_raw_breakpoint.
2906 (irix_solib_handle_event): New function.
2907 (irix_solib_create_inferior_hook): Don't run the target or disable
2908 the mapping-complete breakpoint here.
2909 (_initialize_irix_solib): Install irix_solib_handle_event as
2910 so_ops->handle_event hook.
2911
2912 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2913 Ulrich Weigand  <uweigand@de.ibm.com>
2914
2915 PR tdep/17379
2916 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2917 instead of read_memory_unsigned_integer.
2918
2919 2014-09-12 Gary Benson <gbenson@redhat.com>
2920
2921 * nat/linux-waitpid.c: Include common-defs.h.
2922 [GDBSERVER]: Add FIXME comment.
2923 [!GDBSERVER]: Don't include defs.h or signal.h.
2924 (linux_debug) [!GDBSERVER]: Remove empty block.
2925
2926 2014-09-12 Gary Benson <gbenson@redhat.com>
2927
2928 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2929 Don't include defs.h or server.h.
2930
2931 2014-09-12 Gary Benson <gbenson@redhat.com>
2932
2933 * nat/linux-btrace.c: Include common-defs.h.
2934 Don't include defs.h, server.h or gdbthread.h.
2935 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2936
2937 2014-09-12 Gary Benson <gbenson@redhat.com>
2938
2939 * common/agent.c: Include common-defs.h.
2940 Don't include defs.h or server.h.
2941 * common/buffer.c: Likewise.
2942 * common/common-debug.c: Likewise.
2943 * common/common-utils.c: Likewise.
2944 * common/errors.c: Likewise.
2945 * common/filestuff.c: Likewise.
2946 * common/format.c: Likewise.
2947 * common/gdb_vecs.c: Likewise.
2948 * common/print-utils.c: Likewise.
2949 * common/ptid.c: Likewise.
2950 * common/rsp-low.c: Likewise.
2951 * common/signals.c: Likewise.
2952 * common/vec.c: Likewise.
2953 * common/xml-utils.c: Likewise.
2954 * nat/linux-osdata.c: Likewise.
2955 * nat/linux-procfs.c: Likewise.
2956 * nat/linux-ptrace.c: Likewise.
2957 * nat/mips-linux-watch.c: Likewise.
2958 * target/waitstatus.c: Likewise.
2959
2960 2014-09-12 Tom Tromey <tromey@redhat.com>
2961 Gary Benson <gbenson@redhat.com>
2962
2963 * common/common-regcache.h: New file.
2964 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2965 * regcache.h: Include common-regcache.h.
2966 (regcache_read_pc): Don't declare.
2967 * regcache.c (get_thread_regcache_for_ptid): New function.
2968 * nat/linux-btrace.c: Don't include regcache.h.
2969 Include common-regcache.h.
2970 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2971
2972 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2973
2974 * regcache.h (struct regset): Declare.
2975
2976 2014-09-11 Pedro Alves <palves@redhat.com>
2977
2978 PR gdb/17347
2979 * main.c: Include "infrun.h".
2980 (catch_command_errors, catch_command_errors_const): Wait for the
2981 foreground command to complete.
2982 * top.c (maybe_wait_sync_command_done): New function, factored out
2983 from ...
2984 (maybe_wait_sync_command_done): ... here.
2985 * top.h (maybe_wait_sync_command_done): New declaration.
2986
2987 2014-09-11 Tom Tromey <tromey@redhat.com>
2988 Gary Benson <gbenson@redhat.com>
2989
2990 * common/symbol.h: New file.
2991 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2992 * minsyms.c (find_minimal_symbol_address): New function.
2993 * common/agent.c: Include common/symbol.h.
2994 [!GDBSERVER]: Don't include objfiles.h.
2995 (agent_look_up_symbols): Use find_minimal_symbol_address.
2996
2997 2014-09-11 Gary Benson <gbenson@redhat.com>
2998
2999 * target/target.h (target_stop_ptid, target_continue_ptid):
3000 Declare.
3001 * target.c (target_stop_ptid, target_continue_ptid): New
3002 functions.
3003 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3004 (agent_run_command): Always use target_stop_ptid and
3005 target_continue_ptid.
3006
3007 2014-09-11 Tom Tromey <tromey@redhat.com>
3008 Gary Benson <gbenson@redhat.com>
3009
3010 * target/target.h: New file.
3011 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3012 * target.h: Include target/target.h.
3013 (target_read_memory, target_write_memory): Don't declare.
3014 * target.c (target_read_uint32): New function.
3015 * common/agent.c: Include target/target.h.
3016 [!GDBSERVER]: Don't include target.h.
3017 (helper_thread_id): Type changed to uint32_t.
3018 (agent_get_helper_thread_id): Use target_read_uint32.
3019 (agent_run_command): Always use target_read_memory and
3020 target_write_memory.
3021 (agent_capability): Type changed to uint32_t.
3022 (agent_capability_check): Use target_read_uint32.
3023
3024 2014-09-11 Gary Benson <gbenson@redhat.com>
3025
3026 * common/common-debug.h (show_debug_regs): Declare.
3027 * common/common-debug.c (show_debug_regs): Define.
3028 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3029 all uses with show_debug_regs. Replace all uses that considered
3030 debug_hw_points as a multi-value integer with straight boolean
3031 uses.
3032 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3033 with show_debug_regs.
3034 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3035 all uses with show_debug_regs.
3036 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3037 uses with show_debug_regs.
3038
3039 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3040
3041 * findvar.c (address_from_register): Handle targets requiring
3042 a special conversion routine even for plain pointer types.
3043
3044 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3045
3046 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3047 (store_register): Do not call exec_one_dummy_insn.
3048
3049 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3050
3051 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3052 dereference it first. Use value_enclosing_type instead of
3053 value_type.
3054 (ada_array_length): Likewise.
3055
3056 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3057
3058 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3059 Adjust function implementation and documentation accordingly.
3060 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3061 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3062 Update call to ada_value_ptr_subscript.
3063
3064 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3065
3066 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3067 instead of VAL's type.
3068
3069 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3070
3071 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3072
3073 2014-09-09 Doug Evans <xdje42@gmail.com>
3074
3075 PR guile/17367
3076 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3077 last parameter to pkg-config, not first.
3078 * configure.ac: Pass --with-guile provided pkg-config path to
3079 GDB_GUILE_PROGRAM_NAMES.
3080 * configure: Regenerate.
3081
3082 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3083
3084 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3085 Bertazi".
3086
3087 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3088
3089 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3090 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3091 the list of sections determining GDB_OSABI_IRIX.
3092
3093 2014-09-09 James Hogan <james.hogan@imgtec.com>
3094
3095 * MAINTAINERS (Write After Approval): Add "James Hogan".
3096
3097 2014-09-09 James Hogan <james.hogan@imgtec.com>
3098
3099 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3100
3101 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3102
3103 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3104
3105 2014-09-08 Doug Evans <xdje42@gmail.com>
3106
3107 PR 17247
3108 * guile.c: #include <signal.h>.
3109 (_initialize_guile): Block SIGCHLD while initializing Guile.
3110
3111 Replaces the following, which is reverted.
3112
3113 2014-07-26 Doug Evans <xdje42@gmail.com>
3114
3115 PR 17185
3116 * configure.ac: Add check for header gc/gc.h.
3117 Add check for function setenv.
3118 * configure: Regenerate.
3119 * config.in: Regenerate.
3120 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3121
3122 2014-09-08 Doug Evans <xdje42@gmail.com>
3123
3124 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3125 with named constant. Fix style of pointer comparison.
3126 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3127
3128 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3129
3130 PR gdb/17035
3131 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3132 decide whether we display the command on "show user".
3133 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3134 printing command name.
3135 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3136 * cli/cli-decode.c (cli_user_command_p): Create helper function
3137 to verify whether cmd_list_element is a user-defined command.
3138
3139 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3140
3141 PR python/17355
3142 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3143 Fix goto out of TRY_CATCH.
3144
3145 2014-09-06 Doug Evans <xdje42@gmail.com>
3146 Tom Tromey <tromey@redhat.com>
3147
3148 PR 15276
3149 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3150 $_any_caller_matches.
3151 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3152 * python/lib/gdb/function/caller_is.py: New file.
3153
3154 2014-09-06 Doug Evans <xdje42@gmail.com>
3155
3156 * infcmd.c (program_info): Fix typo.
3157
3158 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3159
3160 PR gdb/17235
3161 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3162 'number'. New variable 'has_digit'. Rewrite code to deal with
3163 subexpressions on SDT probes.
3164
3165 2014-09-04 Pedro Alves <palves@redhat.com>
3166
3167 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3168 the input is only one character long.
3169
3170 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3171
3172 PR fortran/17237
3173 * f-valprint.c (f_val_print): Specify the correct print option to
3174 use when printing integer values.
3175
3176 2014-09-04 Gary Benson <gbenson@redhat.com>
3177
3178 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3179 Remove code to cope with LWPs wrapped as PIDs.
3180 Add assertions to ensure no wrapped LWPs are passed.
3181
3182 2014-09-04 Pedro Alves <palves@redhat.com>
3183
3184 * value.c (value_ranges_copy_adjusted): New function, factored out
3185 from ...
3186 (value_contents_copy_raw): ... here.
3187 (unpack_value_bits_as_long_1): Rename back to ...
3188 (unpack_bits_as_long): ... this. Remove 'original_value' and
3189 'result' parameters. Change return type to LONGEST.
3190 (unpack_value_bits_as_long): Delete.
3191 (unpack_value_field_as_long_1): Delete.
3192 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3193 (unpack_value_bitfield): New function.
3194 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3195 (value_fetch_lazy): Use unpack_value_bitfield.
3196 * value.h (unpack_value_bits_as_long): Delete declaration.
3197
3198 2014-09-03 Sasha Smundak <asmundak@google.com>
3199
3200 * python/py-frame.c (frapy_read_register): New function.
3201
3202 2014-09-03 James Hogan <james.hogan@imgtec.com>
3203
3204 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3205 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3206
3207 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3208
3209 PR python/16699
3210 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3211 function.
3212 (add_cmd): Set "completer_handle_brkchars" to NULL.
3213 * cli/cli-decode.h (struct cmd_list_element)
3214 <completer_handle_brkchars>: New field.
3215 * command.h (completer_ftype_void): New typedef.
3216 (set_cmd_completer_handle_brkchars): New prototype.
3217 * completer.c (set_gdb_completion_word_break_characters): New
3218 function.
3219 (complete_line_internal): Call "completer_handle_brkchars"
3220 callback from command.
3221 * completer.h: Include "command.h".
3222 (set_gdb_completion_word_break_characters): New prototype.
3223 * python/py-cmd.c (cmdpy_completer_helper): New function.
3224 (cmdpy_completer_handle_brkchars): New function.
3225 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3226 (cmdpy_init): Set completer_handle_brkchars to
3227 cmdpy_completer_handle_brkchars.
3228
3229 2014-09-03 Gary Benson <gbenson@redhat.com>
3230
3231 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3232 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3233 Loop conditions changed to equivalent form.
3234 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3235 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3236 ALL_DEBUG_ADDRESS_REGISTERS.
3237
3238 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3239
3240 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3241 description fix.
3242
3243 2014-09-02 Doug Evans <dje@google.com>
3244
3245 * typeprint.c (find_global_typedef): Fix comment.
3246
3247 2014-09-02 Gary Benson <gbenson@redhat.com>
3248
3249 * i386-nat.h: Renamed as...
3250 * x86-nat.h: New file. All type, function and variable name
3251 prefixes changed from "i386_" to "x86_". All references updated.
3252 * i386-nat.c: Renamed as...
3253 * x86-nat.c: New file. All type, function and variable name
3254 prefixes changed from "i386_" to "x86_". All references updated.
3255 * common/i386-xstate.h: Renamed as...
3256 * common/x86-xstate.h: New file. All type, function and variable
3257 name prefixes changed from "i386_" to "x86_". All references
3258 updated.
3259 * nat/i386-cpuid.h: Renamed as...
3260 * nat/x86-cpuid.h: New file. All type, function and variable name
3261 prefixes changed from "i386_" to "x86_". All references updated.
3262 * nat/i386-gcc-cpuid.h: Renamed as...
3263 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3264 name prefixes changed from "i386_" to "x86_". All references
3265 updated.
3266 * nat/i386-dregs.h: Renamed as...
3267 * nat/x86-dregs.h: New file. All type, function and variable name
3268 prefixes changed from "i386_" to "x86_". All references updated.
3269 * nat/i386-dregs.c: Renamed as...
3270 * nat/x86-dregs.c: New file. All type, function and variable name
3271 prefixes changed from "i386_" to "x86_". All references updated.
3272
3273 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3274
3275 * varobj.c (_initialize_varobj): Move to the end of file.
3276
3277 2014-08-29 Gary Benson <gbenson@redhat.com>
3278
3279 * common/common-exceptions.h: New file.
3280 * common/common-exceptions.c: Likewise.
3281 * Makefile.in (SFILES): Add common/common-exceptions.c.
3282 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3283 (COMMON_OBS): Add common-exceptions.o.
3284 (common-exceptions.o): New rule.
3285 * exceptions.h (common-exceptions.h): Include.
3286 (gdb_setjmp.h): Do not include.
3287 (return_reason): Moved to common-exceptions.h.
3288 (enum return_reason): Likewise.
3289 (RETURN_MASK): Likewise.
3290 (typedef return_mask): Likewise.
3291 (enum errors): Likewise.
3292 (struct gdb_exception): Likewise.
3293 (exceptions_state_mc_init): Likewise.
3294 (exceptions_state_mc_action_iter): Likewise.
3295 (exceptions_state_mc_action_iter_1): Likewise.
3296 (TRY_CATCH): Likewise.
3297 (throw_exception): Likewise.
3298 (throw_verror): Likewise.
3299 (throw_vquit): Likewise.
3300 (throw_error): Likewise.
3301 (throw_quit): Likewise.
3302 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3303 (enum catcher_action): Likewise.
3304 (struct catcher): Likewise.
3305 (current_catcher): Likewise.
3306 (catcher_list_size): Likewise.
3307 (exceptions_state_mc_init): Likewise.
3308 (catcher_pop): Likewise.
3309 (exceptions_state_mc): Likewise.
3310 (exceptions_state_mc_action_iter): Likewise.
3311 (exceptions_state_mc_action_iter_1): Likewise.
3312 (throw_exception): Likewise.
3313 (exception_messages): Likewise.
3314 (exception_messages_size): Likewise.
3315 (throw_it): Likewise.
3316 (throw_verror): Likewise.
3317 (throw_vquit): Likewise.
3318 (throw_error): Likewise.
3319 (throw_quit): Likewise.
3320 (prepare_to_throw_exception): New function.
3321
3322 2014-08-29 Gary Benson <gbenson@redhat.com>
3323
3324 * common/gdb_setjmp.h: New file.
3325 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3326 * configure.ac: Move sigsetjmp check...
3327 * common/common.m4: ...here.
3328 * configure: Regenerate.
3329 * cp-support.c (SIGJMP_BUF): Delete.
3330 (SIGSETJMP): Likewise.
3331 (SIGLONGJMP): Likewise.
3332 * exceptions.h (gdb_setjmp.h): Include.
3333 (setjmp.h): Do not include.
3334 (EXCEPTIONS_SIGJMP_BUF): Delete.
3335 (EXCEPTIONS_SIGSETJMP): Likewise.
3336 (EXCEPTIONS_SIGLONGJMP): Likewise.
3337 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3338 from gdb_setjmp.h.
3339 * exceptions.c: Likewise.
3340
3341 2014-08-29 Gary Benson <gbenson@redhat.com>
3342
3343 * cleanups.h: Moved to...
3344 * common/cleanups.h: New file.
3345 * cleanups.c: Moved to...
3346 * common/cleanups.c: New file. Include common-defs.h and
3347 cleanups.h. Do not include defs.h.
3348 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3349 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3350 (cleanups.o): New rule.
3351
3352 2014-08-29 Gary Benson <gbenson@redhat.com>
3353
3354 * common/errors.h (internal_warning): New declaration.
3355 (internal_vwarning): Likewise.
3356 * common/errors.c (internal_warning): New function.
3357 * utils.h (internal_warning): Don't declare.
3358 (internal_vwarning): Likewise.
3359 * utils.c (internal_warning): Removed.
3360
3361 2014-08-29 Gary Benson <gbenson@redhat.com>
3362
3363 * main.c (captured_main): Use warning during startup.
3364 Prefix startup warning messages with command name.
3365
3366 2014-08-29 Gary Benson <gbenson@redhat.com>
3367
3368 * main.c (captured_main): Handle usage errors with error.
3369
3370 2014-08-29 Gary Benson <gbenson@redhat.com>
3371
3372 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3373 exit pair with a call to error. Wrap the message with _().
3374
3375 2014-08-29 Gary Benson <gbenson@redhat.com>
3376
3377 * main.c (captured_main): Replace a fprintf/exit
3378 pair with a call to error. Wrap the message with _().
3379
3380 2014-08-29 Gary Benson <gbenson@redhat.com>
3381
3382 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3383 pairs with calls to error. Wrap the message with _().
3384
3385 2014-08-29 Gary Benson <gbenson@redhat.com>
3386
3387 * utils.c (vwarning): Protect calls to target_terminal_ours
3388 and wrap_here.
3389
3390 2014-08-29 Gary Benson <gbenson@redhat.com>
3391
3392 * exceptions.c (print_flush): Protect calls to
3393 target_terminal_ours and wrap_here.
3394
3395 2014-08-29 Gary Benson <gbenson@redhat.com>
3396
3397 * utils.h (filtered_printing_initialized): New declaration.
3398 * utils.c (abort_with_message): New function.
3399 (internal_vproblem): Use abort_with_message for first level
3400 recursive internal problems, and if gdb_stderr is not set up.
3401 Protect calls to target_terminal_ours, begin_line and query.
3402
3403 2014-08-28 Doug Evans <dje@google.com>
3404
3405 * symtab.c (in_prologue): Move definition to better spot.
3406 (skip_prologue_using_sal): Ditto.
3407
3408 2014-08-28 Doug Evans <dje@google.com>
3409
3410 * symtab.c (find_function_start_sal): Move definition to better spot.
3411
3412 2014-08-28 Yao Qi <yao@codesourcery.com>
3413
3414 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3415 found_stack_adjust in forward scan. Remove condition check
3416 on found_stack_adjust which is always true. Indent the code.
3417
3418 2014-08-28 Yao Qi <yao@codesourcery.com>
3419
3420 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3421 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3422 (dwarf_decode_lines): Remove argument
3423 want_line_info. Remove condition check on want_line_info.
3424 Callers update.
3425
3426 2014-08-27 Doug Evans <dje@google.com>
3427
3428 * dwarf2read.c (dwarf_record_line): Fix typo.
3429
3430 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3431
3432 * target.h (struct target_ops::to_terminal_save_ours): Remove
3433 declaration.
3434 (target_terminal_save_ours): Remove macro.
3435 * target-delegates.c: Regenerate.
3436 * inf-child.c (inf_child_target): Don't set the nonexistent
3437 field to_terminal_save_ours.
3438 * inferior.h (child_terminal_save_ours): Remove declaration.
3439 * terminal.h (gdb_save_tty_state): New declaration.
3440 * inflow.c (child_terminal_save_ours): Rename to ...
3441 (gdb_save_tty_state): ... this.
3442 * tui/tui.c: Include terminal.h.
3443 (tui_enable): Use gdb_save_tty_state instead of
3444 target_terminal_save_ours.
3445 (tui_disable): Likewise.
3446
3447 2014-08-25 Doug Evans <dje@google.com>
3448
3449 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3450 Pass NULL instead of 0 for context pointer.
3451
3452 2014-08-25 Yao Qi <yao@codesourcery.com>
3453
3454 * dwarf2read.c: Fix grammatical error.
3455
3456 2014-08-24 Yao Qi <yao@codesourcery.com>
3457
3458 * dwarf2read.c (scan_partial_symbols): Update comments.
3459 Rename argument 'need_pc' with 'set_addrmap'.
3460 (add_partial_namespace): Rename argument 'need_pc' with
3461 'set_addrmap'.
3462 (add_partial_module): Likewise.
3463 (add_partial_subprogram): Likewise. Update comments.
3464 (dwarf2_name): Fix typo.
3465
3466 2014-08-22 Doug Evans <dje@google.com>
3467
3468 PR 17276
3469 * dwarf2read.c (dwarf_record_line_p): New function.
3470 (dwarf_decode_lines_1): Ignore subsequent line number entries
3471 for the same line if any entry had a non-zero discriminator.
3472
3473 2014-08-22 Doug Evans <dje@google.com>
3474
3475 * buildsym.h (record_line_ftype): New typedef.
3476 (record_line): Use it.
3477 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3478 (dwarf_decode_lines_1): Call them.
3479
3480 2014-08-22 Yao Qi <yao@codesourcery.com>
3481
3482 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3483 (ctf_end): Remove code.
3484
3485 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3486
3487 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3488 (linux_make_corefile_notes): call update_thread_list, protected against
3489 exceptions.
3490
3491 2014-08-21 Pedro Alves <palves@redhat.com>
3492
3493 * infcmd.c (attach_command): Remove comment.
3494
3495 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3496
3497 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3498 unsigned LONGEST to ULONGEST.
3499
3500 2014-08-20 Pedro Alves <palves@redhat.com>
3501
3502 * Makefile.in (check-read1): New rule.
3503
3504 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3505
3506 * value.c (value_from_contents_and_address): Strip resolved_type's
3507 typedef layers before checking its TYPE_DATA_LOCATION.
3508
3509 2014-08-20 Pedro Alves <palves@redhat.com>
3510
3511 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3512
3513 2014-08-20 Yao Qi <yao@codesourcery.com>
3514
3515 * amd64-tdep.c (amd64_classify): Add a blank line after the
3516 example. Move "*/" to a new line.
3517 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3518 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3519 * dwarf2read.c (psymtab_include_file_name): Likewise.
3520
3521 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3522 Pedro Alves <palves@redhat.com>
3523
3524 PR symtab/14604
3525 PR symtab/14605
3526 * ada-lang.c (coerce_unspec_val_to_type): Use
3527 value_contents_copy_raw.
3528 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3529 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3530 * cp-valprint.c (cp_print_value_fields): Let the common printing
3531 code handle optimized out values.
3532 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3533 * d-valprint.c (dynamic_array_type): Use
3534 value_bits_any_optimized_out.
3535 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3536 check_any_valid fields.
3537 (check_pieced_value_bits): Delete and inline ...
3538 (check_pieced_synthetic_pointer): ... here.
3539 (check_pieced_value_validity): Delete.
3540 (check_pieced_value_invalid): Delete.
3541 (pieced_value_funcs): Remove check_validity and check_any_valid
3542 fields.
3543 (read_pieced_value): Use mark_value_bits_optimized_out.
3544 (write_pieced_value): Switch to use
3545 mark_value_bytes_optimized_out.
3546 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3547 of assuming the whole value is optimized out.
3548 * findvar.c (read_frame_register_value): Remove special handling
3549 of optimized out registers.
3550 (value_from_register): Use mark_value_bytes_optimized_out.
3551 * frame-unwind.c (frame_unwind_got_optimized): Use
3552 mark_value_bytes_optimized_out.
3553 * jv-valprint.c (java_value_print): Adjust.
3554 (java_print_value_fields): Let the common printing code handle
3555 optimized out values.
3556 * mips-tdep.c (mips_print_register): Remove special handling of
3557 optimized out registers.
3558 * opencl-lang.c (lval_func_check_validity): Delete.
3559 (lval_func_check_any_valid): Delete.
3560 (opencl_value_funcs): Remove check_validity and check_any_valid
3561 fields.
3562 * p-valprint.c (pascal_object_print_value_fields): Let the common
3563 printing code handle optimized out values.
3564 * stack.c (read_frame_arg): Remove special handling of optimized
3565 out values. Fetch both VAL and ENTRYVAL before comparing
3566 contents. Adjust to value_available_contents_eq rename.
3567 * valprint.c (valprint_check_validity)
3568 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3569 (val_print_array_elements): Adjust.
3570 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3571 (value_bits_any_optimized_out): New function.
3572 (value_entirely_covered_by_range_vector): New function, factored
3573 out from value_entirely_unavailable.
3574 (value_entirely_unavailable): Reimplement.
3575 (value_entirely_optimized_out): New function.
3576 (insert_into_bit_range_vector): New function, factored out from
3577 mark_value_bits_unavailable.
3578 (mark_value_bits_unavailable): Reimplement.
3579 (struct ranges_and_idx): New struct.
3580 (find_first_range_overlap_and_match): New function, factored out
3581 from value_available_contents_bits_eq.
3582 (value_available_contents_bits_eq): Rename to ...
3583 (value_contents_bits_eq): ... this. Check both unavailable
3584 contents and optimized out contents.
3585 (value_available_contents_eq): Rename to ...
3586 (value_contents_eq): ... this.
3587 (allocate_value_lazy): Remove reference to the old optimized_out
3588 boolean.
3589 (allocate_optimized_out_value): Use
3590 mark_value_bytes_optimized_out.
3591 (require_not_optimized_out): Adjust to check whether the
3592 optimized_out vec is empty.
3593 (ranges_copy_adjusted): New function, factored out from
3594 value_contents_copy_raw.
3595 (value_contents_copy_raw): Also copy the optimized out ranges.
3596 Assert the destination ranges aren't optimized out.
3597 (value_contents_copy): Update comment, remove call to
3598 require_not_optimized_out.
3599 (value_contents_equal): Adjust to check whether the optimized_out
3600 vec is empty.
3601 (set_value_optimized_out, value_optimized_out_const): Delete.
3602 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3603 New functions.
3604 (value_entirely_optimized_out, value_bits_valid): Delete.
3605 (value_copy): Take a VEC copy of the 'optimized_out' field.
3606 (value_primitive_field): Remove special handling of optimized out.
3607 (value_fetch_lazy): Assert that lazy values have no unavailable
3608 regions. Use value_bits_any_optimized_out. Remove some special
3609 handling for optimized out values.
3610 * value.h: Add intro comment about <optimized out> and
3611 <unavailable>.
3612 (struct lval_funcs): Remove check_validity and check_any_valid
3613 fields.
3614 (set_value_optimized_out, value_optimized_out_const): Remove.
3615 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3616 New declarations.
3617 (value_bits_any_optimized_out): New declaration.
3618 (value_bits_valid): Delete declaration.
3619 (value_available_contents_eq): Rename to ...
3620 (value_contents_eq): ... this, and extend comments.
3621
3622 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3623
3624 Fix -fsanitize=address on unreadable inferior strings.
3625 * valprint.c (val_print_string): Fix access before BUFFER.
3626
3627 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3628
3629 * target.c (target_struct_size): Remove.
3630 (target_struct_allocsize): Remove.
3631 (DEFAULT_ALLOCSIZE): Remove.
3632 (target_ops_p): New typedef.
3633 (DEF_VEC_P (target_ops_p)): New vector type.
3634 (target_structs): Change type to VEC (target_ops_p).
3635 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3636 (find_default_run_target): Rewrite for loop following changes to
3637 target_structs.
3638
3639 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3640
3641 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3642 Adjust code accordingly. Adjust function description comment.
3643
3644 2014-08-19 Yao Qi <yao@codesourcery.com>
3645
3646 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3647 types.
3648
3649 2014-08-19 Alan Modra <amodra@gmail.com>
3650
3651 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3652 * config.in: Regenerate.
3653 * configure: Regenerate.
3654
3655 2014-08-19 Tom Tromey <tromey@redhat.com>
3656 Gary Benson <gbenson@redhat.com>
3657
3658 * common/common-debug.h: New file.
3659 * common/common-debug.c: Likewise.
3660 * debug.c: Likewise.
3661 * Makefile.in (SFILES): Add common/common-debug.c.
3662 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3663 (COMMON_OBS): Add common-debug.o and debug.o.
3664 (common-debug.o): New rule.
3665 * common/common-defs.h: Include common-debug.h.
3666 * common/agent.c (debug_agent_printf): New function.
3667 (DEBUG_AGENT): Redefine.
3668 * nat/i386-dregs.c (debug_printf): Undefine.
3669
3670 2014-08-19 Gary Benson <gbenson@redhat.com>
3671
3672 * common/common-defs.h: Include print-utils.h.
3673 * utils.h: Do not include print-utils.h.
3674
3675 2014-08-19 Tom Tromey <tromey@redhat.com>
3676 Gary Benson <gbenson@redhat.com>
3677
3678 * common/common-types.h: New file.
3679 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3680 * common/common-defs.h: Include common-types.h.
3681 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3682 (ULONGEST): Remove.
3683
3684 2014-08-19 Tom Tromey <tromey@redhat.com>
3685 Gary Benson <gbenson@redhat.com>
3686
3687 * common/errors.h: New file.
3688 * common/errors.c: Likewise.
3689 * Makefile.in (SFILES): Add common/errors.c.
3690 (HFILES_NO_SRCDIR): Add common/errors.h.
3691 (COMMON_OBS): Add errors.o.
3692 (errors.o): New rule.
3693 * common/common-defs.h: Include errors.h.
3694 * utils.h (perror_with_name, error, verror, warning, vwarning):
3695 Don't declare.
3696 * common/common-utils.h: (malloc_failure, internal_error):
3697 Likewise.
3698
3699 2014-08-19 Gary Benson <gbenson@redhat.com>
3700
3701 * utils.c (internal_vproblem): Always print the message.
3702
3703 2014-08-18 Doug Evans <dje@google.com>
3704
3705 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3706
3707 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3708
3709 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3710 Return 0 if TYPE is dynamic.
3711 (print_range): Add handling of dynamic ranges.
3712
3713 2014-08-18 Keven Boell <keven.boell@intel.com>
3714 Joel Brobecker <brobecker@adacore.com>
3715
3716 * gdbtypes.h (struct main_type): Add field "data_location".
3717 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3718 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3719 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3720 a dynamic data location.
3721 (resolve_dynamic_type): Add DW_AT_data_location handling.
3722 (copy_recursive, copy_type): Copy the data_location information
3723 when present.
3724 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3725 * value.c (value_from_contents_and_address): Add
3726 DW_AT_data_location handling.
3727
3728 2014-08-18 Keven Boell <keven.boell@intel.com>
3729 Joel Brobecker <brobecker@adacore.com>
3730
3731 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3732 field "get_object_address".
3733 * dwarf2expr.c (execute_stack_op): Add handling for
3734 DW_OP_push_object_address.
3735 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3736 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3737 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3738 (dwarf_expr_get_obj_addr): New function.
3739 (dwarf_expr_ctx_funcs): Add get_object_address field.
3740 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3741 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3742 (dwarf2_evaluate_property): Add parameter "address". Use it.
3743 (needs_get_obj_addr): New function.
3744 (needs_frame_ctx_funcs): Add get_object_address field.
3745 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3746 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3747 (resolve_dynamic_array): Likewise.
3748
3749 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3750
3751 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3752 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3753 fixed value for records and unions for which some GNAT encodings
3754 are present.
3755
3756 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3757
3758 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3759 rewrite to avoid "else if" and "else" constructs. Should be
3760 a no-op in practice.
3761
3762 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3763
3764 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3765 of lexical block.
3766
3767 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3768
3769 PR c++/17132
3770 * eval.c: Update all calls to find_overload_match.
3771 * valarith.c: Likewise.
3772 (value_user_defined_cpp_op, value_user_defined_op): New
3773 argument NOSIDE. Update all callers.
3774 * valops.c (find_overload_match): New argument NOSIDE.
3775 * value.h (find_overload_match): Update signature.
3776
3777 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3778
3779 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3780 'items' methods instead of 'iteritems' method on dictionaries.
3781
3782 2014-08-15 Doug Evans <dje@google.com>
3783
3784 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3785 closer to use.
3786
3787 2014-08-15 Doug Evans <dje@google.com>
3788
3789 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3790
3791 2014-08-15 Doug Evans <dje@google.com>
3792
3793 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3794
3795 2014-08-15 Doug Evans <dje@google.com>
3796
3797 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3798 unused.
3799
3800 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3801
3802 * dcache.h: Include target.h, to avoid compile time warnings.
3803
3804 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3805
3806 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3807 frame_info" partial declaration.
3808 * gdbarch.h: Regenerate.
3809
3810 2014-08-15 Yao Qi <yao@codesourcery.com>
3811
3812 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3813 Add parameter 'decode_for_pst_p'. Callers update.
3814
3815 2014-08-13 Yao Qi <yao@codesourcery.com>
3816
3817 PR build/17104
3818 * configure.ac: Use local variable 'pos'.
3819 * configure: Regenerated.
3820
3821 2014-08-11 Doug Evans <dje@google.com>
3822
3823 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3824 message, it is redundant with "Reading symbols from ..." message.
3825
3826 2014-08-10 Doug Evans <xdje42@gmail.com>
3827
3828 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3829
3830 2014-08-09 Yao Qi <yao@codesourcery.com>
3831
3832 PR remote/9053
3833 * remote.c (remote_xfer_partial): Remove dead code.
3834
3835 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3836
3837 * ia64-linux-tdep.c: Include "regset.h".
3838 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3839 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3840 (ia64_linux_supply_fpregset): New function.
3841 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3842 (ia64_linux_regset_from_core_section): New function.
3843 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3844 method.
3845
3846 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3847
3848 * m68klinux-tdep.c: Include "regset.h".
3849 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3850 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3851 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3852 (m68k_linux_regset_from_core_section): New function.
3853 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3854 method.
3855
3856 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3857
3858 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3859 function. Move logic to...
3860 (tilegx_linux_regmap): ... this new register map.
3861 (tilegx_linux_regset): Refer to register map, replace supply
3862 method by regcache_supply_regset, and add collect method.
3863 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3864 TILEGX_FIRST_EASY_REGNUM.
3865
3866 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3867
3868 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3869 that calls regcache_supply_regset and handles the EPC register
3870 separately. Move main logic to...
3871 (score7_linux_gregmap): ... this new register map.
3872 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3873 (score7_linux_gregset): Refer to register map. Add collect method.
3874 (score7_linux_regset_from_core_section): Replace
3875 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3876 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3877 (struct regset): Delete unused forward declaraction.
3878 (struct pt_regs): Delete structure definition.
3879 (elf_gregset_t): Delete typedef.
3880
3881 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3882
3883 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3884 (nios2_core_regset): Add collect method.
3885
3886 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3887
3888 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3889 platform-independent and don't write to read-only input buffer.
3890 (m32r_linux_collect_gregset): New function.
3891 (m32r_linux_gregset): Add collect method.
3892
3893 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3894
3895 * hppa-linux-tdep.c (greg_map): Rename to...
3896 (hppa_linux_gregmap): ... this. Also convert to
3897 regcache_map_entry format.
3898 (hppa_linux_supply_regset): Delete function.
3899 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3900 (hppa_linux_fpregmap): ... this new register map.
3901 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3902 register map, replace supply method by regcache_supply_regset, and
3903 add collect method regcache_collect_regset.
3904
3905 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3906
3907 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3908 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3909 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3910 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3911 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3912 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3913 (frv_linux_supply_gregset): Replace main logic by call to
3914 regcache_supply_regset, but keep clearing gr32-gr63.
3915 (frv_linux_supply_fpregset): Delete function.
3916 (frv_linux_gregset): Refer to appropriate register map and add
3917 regcache_collect_regset as the collect method.
3918 (frv_linux_fpregset): Likewise. Also exchange the supply method
3919 by regcache_supply_regset.
3920
3921 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3922
3923 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3924 by call to alpha_supply_int_regs.
3925 (alpha_linux_collect_gregset): New function.
3926 (alpha_linux_supply_fpregset): Replace logic by call to
3927 alpha_supply_fp_regs.
3928 (alpha_linux_collect_fpregset): New function.
3929 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3930
3931 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3932
3933 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3934 by call to regcache_collect_regset.
3935 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3936 instead of aarch64_linux_supply_gregset/_fpregset.
3937 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3938 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3939 header file instead.
3940 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3941 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3942 functions. Move logic to ...
3943 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3944 register maps.
3945 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3946 refer to new register maps, replace *_regset_from_core by
3947 regcache_supply_regset, and also use regcache_collect_regset.
3948 * aarch64-linux-tdep.h: Include "regset.h".
3949 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3950 Delete prototypes.
3951 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3952 macros, moved from C source file.
3953 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3954 variable declarations.
3955
3956 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3957
3958 * s390-linux-nat.c: Include "regset.h".
3959 (regmap_gregset): Delete macro.
3960 (s390_64_regmap_gregset): New register map for
3961 regcache_supply/_collect_regset.
3962 (s390_64_gregset): New regset.
3963 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3964 (regmap_fpregset): Delete macro.
3965 (s390_native_supply, s390_native_collect): Delete functions.
3966 (supply_gregset, fill_gregset): Replace s390-specific regmap
3967 handling by a call to regcache_supply/_collect_regset.
3968 (supply_fpregset, fill_fpregset): Call regcache_supply/
3969 _collect_regset instead of s390_native_supply/_collect.
3970 (fetch_regset, store_regset): Likewise. Also change the last
3971 parameter to a regset instead of a regmap.
3972 (s390_linux_fetch_inferior_registers)
3973 (390_linux_store_inferior_registers): Adjust last parameter in
3974 calls to fetch_regset and store_regset.
3975 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3976 (s390_gregmap): ... this. Also make static const and convert to
3977 regcache_map_entry format.
3978 (s390x_regmap_gregset): Delete.
3979 (s390_regmap_fpregset): Rename to...
3980 (s390_fpregmap): ... this. Make static const and convert to
3981 regcache_map_entry format.
3982 (s390_regmap_upper, s390_regmap_last_break)
3983 (s390x_regmap_last_break, s390_regmap_system_call)
3984 (s390_regmap_tdb): Likewise.
3985 (s390_supply_regset, s390_collect_regset): Remove functions.
3986 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3987 s390_supply_regset.
3988 (s390_gregset, s390_fpregset, s390_upper_regset)
3989 (s390_last_break_regset, s390x_last_break_regset)
3990 (s390_system_call_regset, s390_tdb_regset): Make global and
3991 replace s390_supply/_collect_regset by regcache_supply/
3992 _collect_regset.
3993 (s390x_gregset): Delete.
3994 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3995 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3996 (s390_regmap_fpregset, s390_regmap_last_break)
3997 (s390x_regmap_last_break, s390_regmap_system_call)
3998 (s390_regmap_tdb): Delete global variable declarations.
3999 (s390_gregset, s390_fpregset, s390_last_break_regset)
4000 (s390x_last_break_regset, s390_system_call_regset)
4001 (s390_tdb_regset): New global variable declarations.
4002
4003 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4004
4005 * regcache.c: Include "regset.h".
4006 (regcache_transfer_regset): New local function.
4007 (regcache_supply_regset, regcache_collect_regset): New functions.
4008 * regcache.h (struct regcache_map_entry): New structure.
4009 (REGCACHE_MAP_SKIP): New enum value.
4010 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4011
4012 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4013
4014 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4015 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4016 (ppc_linux_collect_gregset ): Likewise.
4017 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4018 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4019 (ppc_collect_vrregset): Likewise.
4020 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4021 Likewise.
4022
4023 2014-08-07 Yao Qi <yao@codesourcery.com>
4024
4025 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4026 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4027 * remote.c (remote_read_bytes): Likewise.
4028
4029 2014-08-07 Yao Qi <yao@codesourcery.com>
4030
4031 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4032
4033 2014-08-07 Yao Qi <yao@codesourcery.com>
4034
4035 PR remote/17230
4036 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4037 TARGET_XFER_OK instead of 0.
4038
4039 2014-08-07 Gary Benson <gbenson@redhat.com>
4040
4041 * common/common-defs.h: Include errno.h.
4042 * defs.h: Do not include errno.h.
4043 * ada-typeprint.c: Likewise.
4044 * c-typeprint.c: Likewise.
4045 * core-regset.c: Likewise.
4046 * corefile.c: Likewise.
4047 * corelow.c: Likewise.
4048 * event-loop.c: Likewise.
4049 * f-typeprint.c: Likewise.
4050 * gnu-nat.c: Likewise.
4051 * go32-nat.c: Likewise.
4052 * i386gnu-nat.c: Likewise.
4053 * m2-typeprint.c: Likewise.
4054 * nat/linux-btrace.c: Likewise.
4055 * p-typeprint.c: Likewise.
4056 * procfs.c: Likewise.
4057 * remote-sim.c: Likewise.
4058 * rs6000-nat.c: Likewise.
4059 * target.c: Likewise.
4060 * typeprint.c: Likewise.
4061 * ui-file.c: Likewise.
4062 * valops.c: Likewise.
4063 * valprint.c: Likewise.
4064
4065 2014-08-07 Gary Benson <gbenson@redhat.com>
4066
4067 * common/common-defs.h: Include string.h.
4068 * aarch64-tdep.c: Do not include string.h.
4069 * ada-exp.y: Likewise.
4070 * ada-lang.c: Likewise.
4071 * ada-lex.l: Likewise.
4072 * ada-typeprint.c: Likewise.
4073 * ada-valprint.c: Likewise.
4074 * aix-thread.c: Likewise.
4075 * alpha-linux-tdep.c: Likewise.
4076 * alpha-mdebug-tdep.c: Likewise.
4077 * alpha-nat.c: Likewise.
4078 * alpha-osf1-tdep.c: Likewise.
4079 * alpha-tdep.c: Likewise.
4080 * alphanbsd-tdep.c: Likewise.
4081 * amd64-dicos-tdep.c: Likewise.
4082 * amd64-linux-tdep.c: Likewise.
4083 * amd64-nat.c: Likewise.
4084 * amd64-sol2-tdep.c: Likewise.
4085 * amd64fbsd-tdep.c: Likewise.
4086 * amd64obsd-tdep.c: Likewise.
4087 * arch-utils.c: Likewise.
4088 * arm-linux-nat.c: Likewise.
4089 * arm-linux-tdep.c: Likewise.
4090 * arm-tdep.c: Likewise.
4091 * arm-wince-tdep.c: Likewise.
4092 * armbsd-tdep.c: Likewise.
4093 * armnbsd-nat.c: Likewise.
4094 * armnbsd-tdep.c: Likewise.
4095 * armobsd-tdep.c: Likewise.
4096 * avr-tdep.c: Likewise.
4097 * ax-gdb.c: Likewise.
4098 * ax-general.c: Likewise.
4099 * bcache.c: Likewise.
4100 * bfin-tdep.c: Likewise.
4101 * breakpoint.c: Likewise.
4102 * build-id.c: Likewise.
4103 * buildsym.c: Likewise.
4104 * c-exp.y: Likewise.
4105 * c-lang.c: Likewise.
4106 * c-typeprint.c: Likewise.
4107 * c-valprint.c: Likewise.
4108 * charset.c: Likewise.
4109 * cli-out.c: Likewise.
4110 * cli/cli-cmds.c: Likewise.
4111 * cli/cli-decode.c: Likewise.
4112 * cli/cli-dump.c: Likewise.
4113 * cli/cli-interp.c: Likewise.
4114 * cli/cli-logging.c: Likewise.
4115 * cli/cli-script.c: Likewise.
4116 * cli/cli-setshow.c: Likewise.
4117 * cli/cli-utils.c: Likewise.
4118 * coffread.c: Likewise.
4119 * common/agent.c: Likewise.
4120 * common/buffer.c: Likewise.
4121 * common/buffer.h: Likewise.
4122 * common/common-utils.c: Likewise.
4123 * common/filestuff.c: Likewise.
4124 * common/filestuff.c: Likewise.
4125 * common/format.c: Likewise.
4126 * common/print-utils.c: Likewise.
4127 * common/rsp-low.c: Likewise.
4128 * common/signals.c: Likewise.
4129 * common/vec.h: Likewise.
4130 * common/xml-utils.c: Likewise.
4131 * core-regset.c: Likewise.
4132 * corefile.c: Likewise.
4133 * corelow.c: Likewise.
4134 * cp-abi.c: Likewise.
4135 * cp-name-parser.y: Likewise.
4136 * cp-support.c: Likewise.
4137 * cp-valprint.c: Likewise.
4138 * cris-tdep.c: Likewise.
4139 * d-exp.y: Likewise.
4140 * darwin-nat.c: Likewise.
4141 * dbxread.c: Likewise.
4142 * dcache.c: Likewise.
4143 * demangle.c: Likewise.
4144 * dicos-tdep.c: Likewise.
4145 * disasm.c: Likewise.
4146 * doublest.c: Likewise.
4147 * dsrec.c: Likewise.
4148 * dummy-frame.c: Likewise.
4149 * dwarf2-frame.c: Likewise.
4150 * dwarf2loc.c: Likewise.
4151 * dwarf2read.c: Likewise.
4152 * elfread.c: Likewise.
4153 * environ.c: Likewise.
4154 * eval.c: Likewise.
4155 * event-loop.c: Likewise.
4156 * exceptions.c: Likewise.
4157 * exec.c: Likewise.
4158 * expprint.c: Likewise.
4159 * f-exp.y: Likewise.
4160 * f-lang.c: Likewise.
4161 * f-typeprint.c: Likewise.
4162 * f-valprint.c: Likewise.
4163 * fbsd-nat.c: Likewise.
4164 * findcmd.c: Likewise.
4165 * findvar.c: Likewise.
4166 * fork-child.c: Likewise.
4167 * frame.c: Likewise.
4168 * frv-linux-tdep.c: Likewise.
4169 * frv-tdep.c: Likewise.
4170 * gdb.c: Likewise.
4171 * gdb_bfd.c: Likewise.
4172 * gdbarch.c: Likewise.
4173 * gdbarch.sh: Likewise.
4174 * gdbtypes.c: Likewise.
4175 * gnu-nat.c: Likewise.
4176 * gnu-v2-abi.c: Likewise.
4177 * gnu-v3-abi.c: Likewise.
4178 * go-exp.y: Likewise.
4179 * go-lang.c: Likewise.
4180 * go32-nat.c: Likewise.
4181 * guile/guile.c: Likewise.
4182 * guile/scm-auto-load.c: Likewise.
4183 * hppa-hpux-tdep.c: Likewise.
4184 * hppa-linux-nat.c: Likewise.
4185 * hppanbsd-tdep.c: Likewise.
4186 * hppaobsd-tdep.c: Likewise.
4187 * i386-cygwin-tdep.c: Likewise.
4188 * i386-dicos-tdep.c: Likewise.
4189 * i386-linux-tdep.c: Likewise.
4190 * i386-nto-tdep.c: Likewise.
4191 * i386-sol2-tdep.c: Likewise.
4192 * i386-tdep.c: Likewise.
4193 * i386bsd-tdep.c: Likewise.
4194 * i386gnu-nat.c: Likewise.
4195 * i386nbsd-tdep.c: Likewise.
4196 * i386obsd-tdep.c: Likewise.
4197 * i387-tdep.c: Likewise.
4198 * ia64-libunwind-tdep.c: Likewise.
4199 * ia64-linux-nat.c: Likewise.
4200 * inf-child.c: Likewise.
4201 * inf-ptrace.c: Likewise.
4202 * inf-ttrace.c: Likewise.
4203 * infcall.c: Likewise.
4204 * infcmd.c: Likewise.
4205 * inflow.c: Likewise.
4206 * infrun.c: Likewise.
4207 * interps.c: Likewise.
4208 * iq2000-tdep.c: Likewise.
4209 * irix5-nat.c: Likewise.
4210 * jv-exp.y: Likewise.
4211 * jv-lang.c: Likewise.
4212 * jv-typeprint.c: Likewise.
4213 * jv-valprint.c: Likewise.
4214 * language.c: Likewise.
4215 * linux-fork.c: Likewise.
4216 * linux-nat.c: Likewise.
4217 * lm32-tdep.c: Likewise.
4218 * m2-exp.y: Likewise.
4219 * m2-typeprint.c: Likewise.
4220 * m32c-tdep.c: Likewise.
4221 * m32r-linux-nat.c: Likewise.
4222 * m32r-linux-tdep.c: Likewise.
4223 * m32r-rom.c: Likewise.
4224 * m32r-tdep.c: Likewise.
4225 * m68hc11-tdep.c: Likewise.
4226 * m68k-tdep.c: Likewise.
4227 * m68kbsd-tdep.c: Likewise.
4228 * m68klinux-nat.c: Likewise.
4229 * m68klinux-tdep.c: Likewise.
4230 * m88k-tdep.c: Likewise.
4231 * machoread.c: Likewise.
4232 * macrocmd.c: Likewise.
4233 * main.c: Likewise.
4234 * mdebugread.c: Likewise.
4235 * mem-break.c: Likewise.
4236 * memattr.c: Likewise.
4237 * memory-map.c: Likewise.
4238 * mep-tdep.c: Likewise.
4239 * mi/mi-cmd-break.c: Likewise.
4240 * mi/mi-cmd-disas.c: Likewise.
4241 * mi/mi-cmd-env.c: Likewise.
4242 * mi/mi-cmd-stack.c: Likewise.
4243 * mi/mi-cmd-var.c: Likewise.
4244 * mi/mi-cmds.c: Likewise.
4245 * mi/mi-console.c: Likewise.
4246 * mi/mi-getopt.c: Likewise.
4247 * mi/mi-interp.c: Likewise.
4248 * mi/mi-main.c: Likewise.
4249 * mi/mi-parse.c: Likewise.
4250 * microblaze-rom.c: Likewise.
4251 * microblaze-tdep.c: Likewise.
4252 * mingw-hdep.c: Likewise.
4253 * minidebug.c: Likewise.
4254 * minsyms.c: Likewise.
4255 * mips-irix-tdep.c: Likewise.
4256 * mips-linux-tdep.c: Likewise.
4257 * mips-tdep.c: Likewise.
4258 * mips64obsd-tdep.c: Likewise.
4259 * mipsnbsd-tdep.c: Likewise.
4260 * mipsread.c: Likewise.
4261 * mn10300-linux-tdep.c: Likewise.
4262 * mn10300-tdep.c: Likewise.
4263 * monitor.c: Likewise.
4264 * moxie-tdep.c: Likewise.
4265 * mt-tdep.c: Likewise.
4266 * nat/linux-btrace.c: Likewise.
4267 * nat/linux-osdata.c: Likewise.
4268 * nat/linux-procfs.c: Likewise.
4269 * nat/linux-ptrace.c: Likewise.
4270 * nat/linux-waitpid.c: Likewise.
4271 * nbsd-tdep.c: Likewise.
4272 * nios2-linux-tdep.c: Likewise.
4273 * nto-procfs.c: Likewise.
4274 * nto-tdep.c: Likewise.
4275 * objc-lang.c: Likewise.
4276 * objfiles.c: Likewise.
4277 * opencl-lang.c: Likewise.
4278 * osabi.c: Likewise.
4279 * osdata.c: Likewise.
4280 * p-exp.y: Likewise.
4281 * p-lang.c: Likewise.
4282 * p-typeprint.c: Likewise.
4283 * parse.c: Likewise.
4284 * posix-hdep.c: Likewise.
4285 * ppc-linux-nat.c: Likewise.
4286 * ppc-sysv-tdep.c: Likewise.
4287 * ppcfbsd-tdep.c: Likewise.
4288 * ppcnbsd-tdep.c: Likewise.
4289 * ppcobsd-tdep.c: Likewise.
4290 * printcmd.c: Likewise.
4291 * procfs.c: Likewise.
4292 * prologue-value.c: Likewise.
4293 * python/py-auto-load.c: Likewise.
4294 * python/py-gdb-readline.c: Likewise.
4295 * ravenscar-thread.c: Likewise.
4296 * regcache.c: Likewise.
4297 * registry.c: Likewise.
4298 * remote-fileio.c: Likewise.
4299 * remote-m32r-sdi.c: Likewise.
4300 * remote-mips.c: Likewise.
4301 * remote-notif.c: Likewise.
4302 * remote-sim.c: Likewise.
4303 * remote.c: Likewise.
4304 * reverse.c: Likewise.
4305 * rs6000-aix-tdep.c: Likewise.
4306 * ser-base.c: Likewise.
4307 * ser-go32.c: Likewise.
4308 * ser-mingw.c: Likewise.
4309 * ser-pipe.c: Likewise.
4310 * ser-tcp.c: Likewise.
4311 * ser-unix.c: Likewise.
4312 * serial.c: Likewise.
4313 * sh-tdep.c: Likewise.
4314 * sh64-tdep.c: Likewise.
4315 * shnbsd-tdep.c: Likewise.
4316 * skip.c: Likewise.
4317 * sol-thread.c: Likewise.
4318 * solib-dsbt.c: Likewise.
4319 * solib-frv.c: Likewise.
4320 * solib-osf.c: Likewise.
4321 * solib-som.c: Likewise.
4322 * solib-spu.c: Likewise.
4323 * solib-target.c: Likewise.
4324 * solib.c: Likewise.
4325 * somread.c: Likewise.
4326 * source.c: Likewise.
4327 * sparc-nat.c: Likewise.
4328 * sparc-sol2-tdep.c: Likewise.
4329 * sparc-tdep.c: Likewise.
4330 * sparc64-tdep.c: Likewise.
4331 * sparc64fbsd-tdep.c: Likewise.
4332 * sparc64nbsd-tdep.c: Likewise.
4333 * sparcnbsd-tdep.c: Likewise.
4334 * spu-linux-nat.c: Likewise.
4335 * spu-multiarch.c: Likewise.
4336 * spu-tdep.c: Likewise.
4337 * stabsread.c: Likewise.
4338 * stack.c: Likewise.
4339 * std-regs.c: Likewise.
4340 * symfile.c: Likewise.
4341 * symmisc.c: Likewise.
4342 * symtab.c: Likewise.
4343 * target.c: Likewise.
4344 * thread.c: Likewise.
4345 * tilegx-linux-nat.c: Likewise.
4346 * tilegx-tdep.c: Likewise.
4347 * top.c: Likewise.
4348 * tracepoint.c: Likewise.
4349 * tui/tui-command.c: Likewise.
4350 * tui/tui-data.c: Likewise.
4351 * tui/tui-disasm.c: Likewise.
4352 * tui/tui-file.c: Likewise.
4353 * tui/tui-layout.c: Likewise.
4354 * tui/tui-out.c: Likewise.
4355 * tui/tui-regs.c: Likewise.
4356 * tui/tui-source.c: Likewise.
4357 * tui/tui-stack.c: Likewise.
4358 * tui/tui-win.c: Likewise.
4359 * tui/tui-windata.c: Likewise.
4360 * tui/tui-winsource.c: Likewise.
4361 * typeprint.c: Likewise.
4362 * ui-file.c: Likewise.
4363 * ui-out.c: Likewise.
4364 * user-regs.c: Likewise.
4365 * utils.c: Likewise.
4366 * v850-tdep.c: Likewise.
4367 * valarith.c: Likewise.
4368 * valops.c: Likewise.
4369 * valprint.c: Likewise.
4370 * value.c: Likewise.
4371 * varobj.c: Likewise.
4372 * vax-tdep.c: Likewise.
4373 * vaxnbsd-tdep.c: Likewise.
4374 * vaxobsd-tdep.c: Likewise.
4375 * windows-nat.c: Likewise.
4376 * xcoffread.c: Likewise.
4377 * xml-support.c: Likewise.
4378 * xstormy16-tdep.c: Likewise.
4379 * xtensa-linux-nat.c: Likewise.
4380
4381 2014-08-07 Gary Benson <gbenson@redhat.com>
4382
4383 * common/common-defs.h: Include gdb_assert.h.
4384 * aarch64-tdep.c: Do not include gdb_assert.h.
4385 * addrmap.c: Likewise.
4386 * aix-thread.c: Likewise.
4387 * alpha-linux-tdep.c: Likewise.
4388 * alpha-mdebug-tdep.c: Likewise.
4389 * alphanbsd-tdep.c: Likewise.
4390 * amd64-nat.c: Likewise.
4391 * amd64-tdep.c: Likewise.
4392 * amd64bsd-nat.c: Likewise.
4393 * amd64fbsd-nat.c: Likewise.
4394 * amd64fbsd-tdep.c: Likewise.
4395 * amd64nbsd-nat.c: Likewise.
4396 * amd64nbsd-tdep.c: Likewise.
4397 * amd64obsd-nat.c: Likewise.
4398 * amd64obsd-tdep.c: Likewise.
4399 * arch-utils.c: Likewise.
4400 * arm-tdep.c: Likewise.
4401 * armbsd-tdep.c: Likewise.
4402 * auxv.c: Likewise.
4403 * bcache.c: Likewise.
4404 * bfin-tdep.c: Likewise.
4405 * blockframe.c: Likewise.
4406 * breakpoint.c: Likewise.
4407 * bsd-kvm.c: Likewise.
4408 * bsd-uthread.c: Likewise.
4409 * buildsym.c: Likewise.
4410 * c-exp.y: Likewise.
4411 * c-lang.c: Likewise.
4412 * charset.c: Likewise.
4413 * cleanups.c: Likewise.
4414 * cli-out.c: Likewise.
4415 * cli/cli-decode.c: Likewise.
4416 * cli/cli-dump.c: Likewise.
4417 * cli/cli-logging.c: Likewise.
4418 * cli/cli-script.c: Likewise.
4419 * cli/cli-utils.c: Likewise.
4420 * coffread.c: Likewise.
4421 * common/common-utils.c: Likewise.
4422 * common/queue.h: Likewise.
4423 * common/signals.c: Likewise.
4424 * common/vec.h: Likewise.
4425 * complaints.c: Likewise.
4426 * completer.c: Likewise.
4427 * corelow.c: Likewise.
4428 * cp-abi.c: Likewise.
4429 * cp-name-parser.y: Likewise.
4430 * cp-namespace.c: Likewise.
4431 * cp-support.c: Likewise.
4432 * cris-tdep.c: Likewise.
4433 * dbxread.c: Likewise.
4434 * dictionary.c: Likewise.
4435 * doublest.c: Likewise.
4436 * dsrec.c: Likewise.
4437 * dummy-frame.c: Likewise.
4438 * dwarf2-frame-tailcall.c: Likewise.
4439 * dwarf2-frame.c: Likewise.
4440 * dwarf2expr.c: Likewise.
4441 * dwarf2loc.c: Likewise.
4442 * dwarf2read.c: Likewise.
4443 * eval.c: Likewise.
4444 * event-loop.c: Likewise.
4445 * exceptions.c: Likewise.
4446 * expprint.c: Likewise.
4447 * f-valprint.c: Likewise.
4448 * fbsd-nat.c: Likewise.
4449 * findvar.c: Likewise.
4450 * frame-unwind.c: Likewise.
4451 * frame.c: Likewise.
4452 * frv-tdep.c: Likewise.
4453 * gcore.c: Likewise.
4454 * gdb-dlfcn.c: Likewise.
4455 * gdb_bfd.c: Likewise.
4456 * gdbarch.c: Likewise.
4457 * gdbarch.sh: Likewise.
4458 * gdbtypes.c: Likewise.
4459 * gnu-nat.c: Likewise.
4460 * gnu-v3-abi.c: Likewise.
4461 * go-lang.c: Likewise.
4462 * guile/scm-exception.c: Likewise.
4463 * guile/scm-gsmob.c: Likewise.
4464 * guile/scm-lazy-string.c: Likewise.
4465 * guile/scm-math.c: Likewise.
4466 * guile/scm-pretty-print.c: Likewise.
4467 * guile/scm-safe-call.c: Likewise.
4468 * guile/scm-utils.c: Likewise.
4469 * guile/scm-value.c: Likewise.
4470 * h8300-tdep.c: Likewise.
4471 * hppa-hpux-nat.c: Likewise.
4472 * hppa-tdep.c: Likewise.
4473 * hppanbsd-tdep.c: Likewise.
4474 * hppaobsd-tdep.c: Likewise.
4475 * i386-darwin-nat.c: Likewise.
4476 * i386-darwin-tdep.c: Likewise.
4477 * i386-nto-tdep.c: Likewise.
4478 * i386-tdep.c: Likewise.
4479 * i386bsd-nat.c: Likewise.
4480 * i386fbsd-tdep.c: Likewise.
4481 * i386gnu-nat.c: Likewise.
4482 * i386nbsd-tdep.c: Likewise.
4483 * i386obsd-tdep.c: Likewise.
4484 * i387-tdep.c: Likewise.
4485 * ia64-libunwind-tdep.c: Likewise.
4486 * ia64-tdep.c: Likewise.
4487 * inf-ptrace.c: Likewise.
4488 * inf-ttrace.c: Likewise.
4489 * infcall.c: Likewise.
4490 * infcmd.c: Likewise.
4491 * infrun.c: Likewise.
4492 * inline-frame.c: Likewise.
4493 * interps.c: Likewise.
4494 * jv-lang.c: Likewise.
4495 * jv-typeprint.c: Likewise.
4496 * linux-fork.c: Likewise.
4497 * linux-nat.c: Likewise.
4498 * linux-thread-db.c: Likewise.
4499 * m32c-tdep.c: Likewise.
4500 * m32r-linux-nat.c: Likewise.
4501 * m32r-tdep.c: Likewise.
4502 * m68k-tdep.c: Likewise.
4503 * m68kbsd-nat.c: Likewise.
4504 * m68kbsd-tdep.c: Likewise.
4505 * m88k-tdep.c: Likewise.
4506 * machoread.c: Likewise.
4507 * macroexp.c: Likewise.
4508 * macrotab.c: Likewise.
4509 * maint.c: Likewise.
4510 * mdebugread.c: Likewise.
4511 * memory-map.c: Likewise.
4512 * mep-tdep.c: Likewise.
4513 * mi/mi-common.c: Likewise.
4514 * microblaze-tdep.c: Likewise.
4515 * mingw-hdep.c: Likewise.
4516 * mips-linux-nat.c: Likewise.
4517 * mips-linux-tdep.c: Likewise.
4518 * mips-tdep.c: Likewise.
4519 * mips64obsd-tdep.c: Likewise.
4520 * mipsnbsd-tdep.c: Likewise.
4521 * mn10300-linux-tdep.c: Likewise.
4522 * mn10300-tdep.c: Likewise.
4523 * moxie-tdep.c: Likewise.
4524 * mt-tdep.c: Likewise.
4525 * nat/linux-btrace.c: Likewise.
4526 * nat/linux-osdata.c: Likewise.
4527 * nat/linux-ptrace.c: Likewise.
4528 * nat/mips-linux-watch.c: Likewise.
4529 * nios2-linux-tdep.c: Likewise.
4530 * nios2-tdep.c: Likewise.
4531 * objc-lang.c: Likewise.
4532 * objfiles.c: Likewise.
4533 * obsd-nat.c: Likewise.
4534 * opencl-lang.c: Likewise.
4535 * osabi.c: Likewise.
4536 * parse.c: Likewise.
4537 * ppc-linux-nat.c: Likewise.
4538 * ppc-sysv-tdep.c: Likewise.
4539 * ppcfbsd-nat.c: Likewise.
4540 * ppcfbsd-tdep.c: Likewise.
4541 * ppcnbsd-nat.c: Likewise.
4542 * ppcnbsd-tdep.c: Likewise.
4543 * ppcobsd-nat.c: Likewise.
4544 * ppcobsd-tdep.c: Likewise.
4545 * printcmd.c: Likewise.
4546 * procfs.c: Likewise.
4547 * prologue-value.c: Likewise.
4548 * psymtab.c: Likewise.
4549 * python/py-lazy-string.c: Likewise.
4550 * python/py-value.c: Likewise.
4551 * regcache.c: Likewise.
4552 * reggroups.c: Likewise.
4553 * registry.c: Likewise.
4554 * remote-sim.c: Likewise.
4555 * remote.c: Likewise.
4556 * rs6000-aix-tdep.c: Likewise.
4557 * rs6000-tdep.c: Likewise.
4558 * s390-linux-tdep.c: Likewise.
4559 * score-tdep.c: Likewise.
4560 * ser-base.c: Likewise.
4561 * ser-mingw.c: Likewise.
4562 * sh-tdep.c: Likewise.
4563 * sh64-tdep.c: Likewise.
4564 * solib-darwin.c: Likewise.
4565 * solib-spu.c: Likewise.
4566 * solib-svr4.c: Likewise.
4567 * source.c: Likewise.
4568 * sparc-nat.c: Likewise.
4569 * sparc-sol2-tdep.c: Likewise.
4570 * sparc-tdep.c: Likewise.
4571 * sparc64-sol2-tdep.c: Likewise.
4572 * sparc64-tdep.c: Likewise.
4573 * sparc64fbsd-tdep.c: Likewise.
4574 * sparc64nbsd-tdep.c: Likewise.
4575 * sparc64obsd-tdep.c: Likewise.
4576 * sparcnbsd-tdep.c: Likewise.
4577 * sparcobsd-tdep.c: Likewise.
4578 * spu-multiarch.c: Likewise.
4579 * spu-tdep.c: Likewise.
4580 * stabsread.c: Likewise.
4581 * stack.c: Likewise.
4582 * symfile.c: Likewise.
4583 * symtab.c: Likewise.
4584 * target-descriptions.c: Likewise.
4585 * target-memory.c: Likewise.
4586 * target.c: Likewise.
4587 * tic6x-linux-tdep.c: Likewise.
4588 * tic6x-tdep.c: Likewise.
4589 * tilegx-linux-nat.c: Likewise.
4590 * tilegx-tdep.c: Likewise.
4591 * top.c: Likewise.
4592 * tramp-frame.c: Likewise.
4593 * tui/tui-out.c: Likewise.
4594 * tui/tui-winsource.c: Likewise.
4595 * ui-out.c: Likewise.
4596 * user-regs.c: Likewise.
4597 * utils.c: Likewise.
4598 * v850-tdep.c: Likewise.
4599 * valops.c: Likewise.
4600 * value.c: Likewise.
4601 * varobj.c: Likewise.
4602 * vax-nat.c: Likewise.
4603 * xml-syscall.c: Likewise.
4604 * xml-tdesc.c: Likewise.
4605 * xstormy16-tdep.c: Likewise.
4606 * xtensa-linux-nat.c: Likewise.
4607 * xtensa-tdep.c: Likewise.
4608
4609 2014-08-07 Gary Benson <gbenson@redhat.com>
4610
4611 * common/common-defs.h: Include common-utils.h.
4612 * defs.h: Do not include common-utils.h.
4613 * common/gdb_assert.h: Likewise.
4614 * darwin-nat.h: Likewise.
4615 * nat/linux-btrace.c: Likewise.
4616 * target/waitstatus.h: Likewise.
4617
4618 2014-08-07 Gary Benson <gbenson@redhat.com>
4619
4620 * common/common-defs.h: Include ptid.h.
4621 * defs.h: Do not include ptid.h.
4622 * inferior.h: Likewise.
4623 * infrun.h: Likewise.
4624 * nat/linux-btrace.h: Likewise.
4625 * nat/linux-osdata.h: Likewise.
4626 * target/waitstatus.h: Likewise.
4627
4628 2014-08-07 Gary Benson <gbenson@redhat.com>
4629
4630 * common/common-defs.h: Include gdb_locale.h.
4631 * defs.h: Do not include gdb_locale.h.
4632
4633 2014-08-07 Gary Benson <gbenson@redhat.com>
4634
4635 * common/common-defs.h: Include gdb/signals.h.
4636 * defs.h: Do not include gdb/signals.h.
4637
4638 2014-08-07 Gary Benson <gbenson@redhat.com>
4639
4640 * common/common-defs.h: Include pathmax.h.
4641 * defs.h: Do not include pathmax.h.
4642
4643 2014-08-07 Gary Benson <gbenson@redhat.com>
4644
4645 * common/common-defs.h: Include libiberty.h.
4646 * defs.h: Do not include libiberty.h.
4647 * common/queue.h: Likewise.
4648 * cp-name-parser.y: Likewise.
4649 * mi/mi-cmd-catch.c: Likewise.
4650 * python/python.c: Likewise.
4651
4652 2014-08-07 Gary Benson <gbenson@redhat.com>
4653
4654 * common/common-defs.h: Include ansidecl.h.
4655 * defs.h: Do not include ansidecl.h.
4656 * common/buffer.h: Likewise.
4657 * common/common-utils.h: Likewise.
4658
4659 2014-08-07 Gary Benson <gbenson@redhat.com>
4660
4661 * common/common-defs.h: Include stddef.h.
4662 * defs.h: Do not include stddef.h.
4663 * common/common-utils.h: Likewise.
4664 * amd64fbsd-nat.c: Likewise.
4665 * bcache.c: Likewise.
4666 * charset.c: Likewise.
4667 * common/buffer.h: Likewise.
4668 * common/vec.h: Likewise.
4669 * i386bsd-nat.c: Likewise.
4670 * nat/linux-btrace.h: Likewise.
4671 * ppcfbsd-nat.c: Likewise.
4672 * ppcnbsd-tdep.h: Likewise.
4673 * ppcobsd-nat.c: Likewise.
4674 * ppcobsd-tdep.h: Likewise.
4675 * python/py-gdb-readline.c: Likewise.
4676
4677 2014-08-07 Gary Benson <gbenson@redhat.com>
4678
4679 * common/common-defs.h: Include stdarg.h.
4680 * defs.h: Do not include stdarg.h.
4681 * ada-lang.c: Likewise.
4682 * common/common-utils.h: Likewise.
4683 * guile/scm-string.c: Likewise.
4684 * guile/scm-utils.c: Likewise.
4685 * m32c-tdep.c: Likewise.
4686
4687 2014-08-07 Gary Benson <gbenson@redhat.com>
4688
4689 * common/common-defs.h: Include stdlib.h.
4690 * defs.h: Do not include stdlib.h.
4691 * addrmap.c: Likewise.
4692 * bcache.c: Likewise.
4693 * common/buffer.c: Likewise.
4694 * common/common-utils.c: Likewise.
4695 * cp-name-parser.y: Likewise.
4696 * go32-nat.c: Likewise.
4697 * mn10300-linux-tdep.c: Likewise.
4698 * nat/linux-osdata.c: Likewise.
4699 * tui/tui.c: Likewise.
4700 * windows-nat.c: Likewise.
4701
4702 2014-08-07 Gary Benson <gbenson@redhat.com>
4703
4704 * common/common-defs.h: Include stdio.h.
4705 * defs.h: Do not include stdio.h.
4706 * ada-lang.c: Likewise.
4707 * common/buffer.c: Likewise.
4708 * common/common-utils.c: Likewise.
4709 * cp-name-parser.y: Likewise.
4710 * gnu-nat.c: Likewise.
4711 * go32-nat.c: Likewise.
4712 * i386gnu-nat.c: Likewise.
4713 * proc-api.c: Likewise.
4714 * proc-events.c: Likewise.
4715 * proc-flags.c: Likewise.
4716 * proc-why.c: Likewise.
4717 * python/python-internal.h: Likewise.
4718 * target-memory.c: Likewise.
4719 * tui/tui-io.c: Likewise.
4720 * tui/tui.c: Likewise.
4721
4722 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4723
4724 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4725 (scan_dyntag_auxv): Same.
4726
4727 2014-08-06 Yao Qi <yao@codesourcery.com>
4728
4729 * amd64-linux-nat.c: Remove duplicated include
4730 "x86-linux-nat.h".
4731 * i386-linux-nat.c: Likewise.
4732
4733 2014-08-06 Yao Qi <yao@codesourcery.com>
4734
4735 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4736 operand" with "Special opcode" in comments.
4737
4738 2014-08-05 Gary Benson <gbenson@redhat.com>
4739
4740 * interps.c (initialize_interps): Remove prototype.
4741 (interpreter_initialized): Remove static global.
4742 (interp_add): Do not call initialize_interps.
4743 (initialize_interps): Remove function.
4744
4745 2014-08-05 Gary Benson <gbenson@redhat.com>
4746
4747 * utils.c (vwarning): Remove spurious va_end.
4748
4749 2014-08-05 Alan Modra <amodra@gmail.com>
4750
4751 * charset.c (convert_between_encodings): Cast result of obstack_base.
4752 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4753 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4754 (read_unwind_info): Use size_t for some locals.
4755 * jit.c (finalize_symtab): Likewise.
4756 * utils.c (hashtab_obstack_allocate): Likewise.
4757 * symmisc.c (print_objfile_statistics): Update format strings.
4758
4759 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4760
4761 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4762 (Changes in GDB 7.8): ... here.
4763
4764 2014-08-04 Tom Tromey <tromey@redhat.com>
4765
4766 * target.c (set_targetdebug): New function.
4767 (initialize_targets): Pass set_targetdebug when creating "set
4768 debug target".
4769
4770 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4771
4772 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4773 if detecting a variable-sized field that is not the last field.
4774 Fix struct type length computation.
4775
4776 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4777
4778 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4779 Add debug trace.
4780
4781 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4782
4783 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4784 Remove "+ 8" offset in computation of CHAIN_VMA.
4785
4786 2014-07-31 Doug Evans <dje@google.com>
4787
4788 * inflow.c (child_terminal_inferior): Add comment.
4789 (child_terminal_ours_for_output): Add comment.
4790 (child_terminal_ours): Add comment.
4791 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4792 (linux_nat_terminal_ours): Add comment.
4793
4794 2014-07-31 Gary Benson <gbenson@redhat.com>
4795
4796 * common/btrace-common.h: Do not include defs.h or server.h.
4797 * nat/mips-linux-watch.h: Likewise.
4798 * gdb-dlfcn.h: Do not include defs.h.
4799 * tracefile.h: Likewise.
4800
4801 2014-07-30 Roland McGrath <mcgrathr@google.com>
4802
4803 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4804
4805 2014-07-30 Tom Tromey <tromey@redhat.com>
4806
4807 * bsd-kvm.c (bsd_kvm_open): Constify.
4808 * corelow.c (core_open): Constify.
4809 * ctf.c (ctf_open): Constify.
4810 * dbug-rom.c (dbug_open): Constify.
4811 * exec.c (exec_open): Constify.
4812 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4813 * microblaze-rom.c (picobug_open): Constify.
4814 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4815 Constify.
4816 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4817 * record-btrace.c (record_btrace_open): Constify.
4818 * record-full.c (record_full_core_open_1, record_full_open_1)
4819 (record_full_open): Constify.
4820 * remote-m32r-sdi.c (m32r_open): Constify.
4821 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4822 (rockhopper_open, lsi_open): Constify.
4823 * remote-sim.c (gdbsim_open): Constify.
4824 * remote.c (remote_open, extended_remote_open, remote_open_1):
4825 Constify.
4826 * target.h (struct target_ops) <to_open>: Make "arg" const.
4827 * tracefile-tfile.c (tfile_open): Constify.
4828
4829 2014-07-30 Tom Tromey <tromey@redhat.com>
4830
4831 * breakpoint.c (map_breakpoint_numbers): Update.
4832 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4833 (get_number_const): New function.
4834 (get_number): Rewrite using get_number_const.
4835 (init_number_or_range): Make "string" const.
4836 (number_is_in_list): Make "list" const.
4837 * cli/cli-utils.h (get_number_const): Declare.
4838 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4839 (init_number_or_range, number_is_in_list): Update.
4840 * printcmd.c (map_display_numbers): Update.
4841 * value.c (value_from_history_ref): Constify.
4842 * value.h (value_from_history_ref): Update.
4843
4844 2014-07-30 Tom Tromey <tromey@redhat.com>
4845
4846 * corefile.c (hook_type, call_extra_exec_file_hooks)
4847 (specify_exec_file_hook): Constify.
4848 * exec.c (exec_file_attach): Make "filename" const.
4849 * gdbcore.h (deprecated_exec_file_display_hook)
4850 (specify_exec_file_hook, exec_file_attach): Constify.
4851 * main.c (captured_main): Use catch_command_errors_const.
4852
4853 2014-07-30 Tom Tromey <tromey@redhat.com>
4854
4855 * target.c (open_target): New function.
4856 (add_target_with_completer, add_deprecated_target_alias): Use
4857 set_cmd_sfunc, set_cmd_context.
4858 (debug_to_open): Remove.
4859 (setup_target_debug): Update.
4860
4861 2014-07-30 Yao Qi <yao@codesourcery.com>
4862
4863 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4864 comments.
4865 * parse.c (exp_iterate): Update comments.
4866
4867 2014-07-30 Gary Benson <gbenson@redhat.com>
4868
4869 * common/common-defs.h: New file.
4870 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4871 * defs.h: Include common-defs.h.
4872 Do not include config.h or build-gnulib/config.h.
4873
4874 2014-07-30 Gary Benson <gbenson@redhat.com>
4875
4876 * common/common-utils.h: Do not include config.h.
4877 * nat/linux-btrace.h: Likewise.
4878
4879 2014-07-30 Gary Benson <gbenson@redhat.com>
4880
4881 * btrace.c: Include defs.h.
4882 * common/ptid.c: Include defs.h or server.h as appropriate.
4883 * nat/mips-linux-watch.c: Likewise.
4884
4885 2014-07-29 Tom Tromey <tromey@redhat.com>
4886
4887 * target.c (target_is_pushed): Simplify.
4888
4889 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4890
4891 GDB 7.8 released.
4892
4893 2014-07-29 Yao Qi <yao@codesourcery.com>
4894
4895 PR gdb/17206
4896 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4897
4898 2014-07-28 Doug Evans <xdje42@gmail.com>
4899
4900 PR guile/17203
4901 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4902 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4903 parameters.
4904
4905 2014-07-28 Will Newton <will.newton@linaro.org>
4906
4907 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4908 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4909 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4910 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4911 (THUMB2_EABI_SYSCALL): Likewise.
4912 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4913 struct tramp_frame.
4914 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4915 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4916
4917 2014-07-27 Doug Evans <xdje42@gmail.com>
4918
4919 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4920
4921 2014-07-27 Doug Evans <xdje42@gmail.com>
4922
4923 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4924
4925 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4926 Doug Evans <xdje42@gmail.com>
4927
4928 PR guile/17146
4929 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4930 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4931 * configure.ac: Try to use guild to compile an scm file, if it fails
4932 then disable guile support.
4933 * configure: Regenerate.
4934 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4935 GUILE_FILE_LIST.
4936 (GUILE_COMPILED_FILES): New variable.
4937 (GUILE_FILES) Update.
4938 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4939 (stamp-guile): Compile scm files.
4940 * guile/guile.c (boot_guile_support): New function.
4941 (standard_throw_args_p): New function.
4942 (print_standard_throw_error, print_throw_error): New functions.
4943 (handle_boot_error): New function.
4944 (initialize_scheme_side): Rewrite to call boot_guile_support.
4945 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4946 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4947
4948 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4949 Doug Evans <xdje42@gmail.com>
4950
4951 PR guile/17146
4952 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4953 * guile/lib/gdb/support.scm: New file.
4954 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4955 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4956 All uses updated.
4957 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4958 All uses updated.
4959 (%assert-type): Ditto, and renamed to assert-type.
4960 (%exception-print-style): Delete.
4961
4962 2014-07-26 Doug Evans <xdje42@gmail.com>
4963
4964 PR build/17105
4965 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4966 * configure: Regenerate.
4967 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4968 PYTHON_FILES.
4969 (PYTHON_FILES): New variable.
4970 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4971 (GUILE_FILES): New variable.
4972 (stamp-python, install-python, uninstall-python): Handle empty
4973 file list.
4974 (stamp-guile, install-guile, uninstall-guile): Ditto.
4975
4976 2014-07-26 Doug Evans <xdje42@gmail.com>
4977
4978 PR guile/17177
4979 * guile/lib/gdb.scm (pretty-printers): Export.
4980 (set-pretty-printers!): Export.
4981 * guile/lib/gdb/printing.scm (gdb module): Update.
4982 (prepend-pretty-printer!, append-pretty-printer!): Update.
4983 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4984 (pretty_printer_list_var): Delete.
4985 (pretty_printer_list): New static global.
4986 (gdbscm_pretty_printers): New function.
4987 (gdbscm_set_pretty_printers_x): New function.
4988 (ppscm_find_pretty_printer_from_gdb): Update.
4989 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4990 (gdbscm_initialize_pretty_printers): Update.
4991
4992 2014-07-26 Doug Evans <xdje42@gmail.com>
4993
4994 PR 17185
4995 * configure.ac: Add check for header gc/gc.h.
4996 Add check for function setenv.
4997 * configure: Regenerate.
4998 * config.in: Regenerate.
4999 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5000
5001 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5002
5003 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5004 variation in gdbarch matching.
5005
5006 2014-07-25 Tom Tromey <tromey@redhat.com>
5007
5008 * exec.c (using_exec_ops): Remove.
5009 (exec_close_1): Update. Remove extraneous block, reindent.
5010 (add_target_sections): Use target_is_pushed.
5011
5012 2014-07-25 Pedro Alves <palves@redhat.com>
5013
5014 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5015 * monitor.c (monitor_create_inferior): Likewise.
5016 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5017 * remote-sim.c (gdbsim_create_inferior): Likewise.
5018 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5019 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5020 * windows-nat.c (do_initial_windows_stuff): Likewise.
5021
5022 2014-07-25 Pedro Alves <palves@redhat.com>
5023
5024 * NEWS: Mention signal passing and "signal" command changes.
5025 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5026 comment.
5027 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5028 call.
5029 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5030 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5031 (jump_command): Adjust clear_proceed_status call.
5032 (signal_command): Warn if other thread that are resumed have
5033 signals that will be delivered. Adjust clear_proceed_status call.
5034 (until_next_command, finish_command)
5035 (proceed_after_attach_callback, attach_command_post_wait)
5036 (attach_command): Adjust clear_proceed_status call.
5037 * infrun.c (proceed_after_vfork_done): Likewise.
5038 (proceed_after_attach_callback): Adjust comment.
5039 (clear_proceed_status_thread): Clear stop_signal if not in pass
5040 state.
5041 (clear_proceed_status_callback): Delete.
5042 (clear_proceed_status): New 'step' parameter. Only clear the
5043 proceed status of threads the command being prepared is about to
5044 resume.
5045 (proceed): If passed in an explicit signal, override stop_signal
5046 with it. Don't pass the last stop signal to the thread we're
5047 resuming.
5048 (init_wait_for_inferior): Adjust clear_proceed_status call.
5049 (switch_back_to_stepped_thread): Clear the signal if it should not
5050 be passed.
5051 * infrun.h (clear_proceed_status): New 'step' parameter.
5052 (user_visible_resume_ptid): Add comment.
5053 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5054 signal is in pass state.
5055 * remote.c (append_pending_thread_resumptions): Likewise.
5056 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5057
5058 2014-07-25 Tom Tromey <tromey@redhat.com>
5059
5060 * target.h (target_stopped_data_address)
5061 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5062 parentheses.
5063
5064 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5065
5066 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5067 comments.
5068 (avr_pointer_to_address): Likewise.
5069
5070 2014-07-24 Tom Tromey <tromey@redhat.com>
5071
5072 * monitor.c (compile_pattern): Update.
5073 * target.h (struct target_ops) <to_shortname, to_longname,
5074 to_doc>: Now const.
5075
5076 2014-07-24 Tom Tromey <tromey@redhat.com>
5077
5078 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5079 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5080 (add_info_alias, add_com): Make "doc" const.
5081 (print_doc_line): Make "str" const.
5082 (delete_cmd): Update.
5083 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5084 (print_doc_line): Update.
5085 * cli/cli-script.c (document_command): Update.
5086 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5087 (add_com, add_info, add_info_alias): Update.
5088 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5089 * python/py-cmd.c (cmdpy_destroyer): Update.
5090
5091 2014-07-24 Tom Tromey <tromey@redhat.com>
5092
5093 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5094 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5095 (help_cmd_list): Constify.
5096 (lookup_cmd): Update.
5097 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5098 const.
5099 (help_cmd_list, apropos_cmd): Update.
5100 * cli/cli-script.c (show_user): Update.
5101 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5102 * cli/cli-setshow.h (cmd_show_list): Update.
5103 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5104 (cmd_show_list): Update.
5105 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5106 * python/py-cmd.c (cmdpy_destroyer): Update.
5107
5108 2014-07-24 Tom Tromey <tromey@redhat.com>
5109
5110 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5111 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5112 const.
5113 * command.h (deprecate_cmd): Update.
5114 * maint.c (maintenance_do_deprecate): Add casts.
5115
5116 2014-07-24 Tom Tromey <tromey@redhat.com>
5117
5118 * cli/cli-decode.c (help_cmd): Make parameter "const".
5119 * cli/cli-decode.h (help_cmd): Update.
5120
5121 2014-07-24 Tom Tromey <tromey@redhat.com>
5122
5123 * stack.c (up_silently_base, down_silently_base): Make argument
5124 const.
5125
5126 2014-07-24 Tom Tromey <tromey@redhat.com>
5127
5128 * solib.c (solib_add): Make "pattern" const.
5129 * solib.h (solib_add): Update.
5130
5131 2014-07-24 Tom Tromey <tromey@redhat.com>
5132
5133 * remote.c (remote_serial_open, print_packet, putpkt)
5134 (putpkt_binary): Constify.
5135 * remote.h (putpkt): Update.
5136
5137 2014-07-24 Tom Tromey <tromey@redhat.com>
5138
5139 * monitor.c (monitor_open): Make "args" const.
5140 * monitor.h (monitor_open): Update.
5141
5142 2014-07-24 Tom Tromey <tromey@redhat.com>
5143
5144 * maint.c (match_bfd_flags): Make "string" const.
5145 (print_bfd_section_info): Remove casts.
5146 (print_objfile_section_info): Make "string" const.
5147
5148 2014-07-24 Tom Tromey <tromey@redhat.com>
5149
5150 * inf-child.c (inf_child_open_target): Make "arg" const.
5151 * inf-child.h (inf_child_open_target): Update.
5152
5153 2014-07-24 Tom Tromey <tromey@redhat.com>
5154
5155 * environ.c (unset_in_environ): Make "var" const.
5156 * environ.h (unset_in_environ): Update.
5157
5158 2014-07-24 Tom Tromey <tromey@redhat.com>
5159
5160 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5161 Make "cmd" const.
5162 (scan_filename_with_cleanup): Likewise.
5163 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5164 Make arguments const.
5165 (restore_command): Update.
5166
5167 2014-07-24 Pedro Alves <palves@redhat.com>
5168
5169 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5170
5171 2014-07-24 Tom Tromey <tromey@redhat.com>
5172 Gary Benson <gbenson@redhat.com>
5173
5174 * nat/linux-ptrace.c (additional_flags): New global.
5175 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5176 additional_flags; don't check GDBSERVER.
5177 (linux_ptrace_set_additional_flags): New function.
5178 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5179 Declare.
5180 * linux-nat.c (_initialize_linux_nat): Call
5181 linux_ptrace_set_additional_flags.
5182
5183 2014-07-24 Tom Tromey <tromey@redhat.com>
5184
5185 * make-target-delegates (munge_type, write_debugmethod): New
5186 functions.
5187 (debug_names): New global.
5188 ($TARGET_DEBUG_PRINTER): New global.
5189 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5190 name.
5191 Write debug methods. Generate init_debug_target.
5192 * target-debug.h: New file.
5193 * target-delegates.c: Rebuild.
5194 * target.c: Include target-debug.h.
5195 (debug_target): Hoist definition.
5196 (target_kill, target_get_section_table, target_memory_map)
5197 (target_flash_erase, target_flash_done, target_detach)
5198 (target_disconnect, target_wait, target_resume)
5199 (target_pass_signals, target_program_signals, target_follow_fork)
5200 (target_mourn_inferior, target_search_memory)
5201 (target_thread_address_space, target_close)
5202 (target_find_new_threads, target_core_of_thread)
5203 (target_verify_memory, target_insert_mask_watchpoint)
5204 (target_remove_mask_watchpoint): Remove targetdebug code.
5205 (debug_to_post_attach, debug_to_prepare_to_store)
5206 (debug_to_files_info, debug_to_insert_breakpoint)
5207 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5208 (debug_to_region_ok_for_hw_watchpoint)
5209 (debug_to_can_accel_watchpoint_condition)
5210 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5211 (debug_to_watchpoint_addr_within_range)
5212 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5213 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5214 (debug_to_terminal_init, debug_to_terminal_inferior)
5215 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5216 (debug_to_terminal_save_ours, debug_to_terminal_info)
5217 (debug_to_load, debug_to_post_startup_inferior)
5218 (debug_to_insert_fork_catchpoint)
5219 (debug_to_remove_fork_catchpoint)
5220 (debug_to_insert_vfork_catchpoint)
5221 (debug_to_remove_vfork_catchpoint)
5222 (debug_to_insert_exec_catchpoint)
5223 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5224 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5225 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5226 (setup_target_debug): Call init_debug_target.
5227 * target.h (TARGET_DEBUG_PRINTER): New macro.
5228 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5229 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5230
5231 2014-07-24 Gary Benson <gbenson@redhat.com>
5232
5233 * exceptions.h (throw_vfatal): Renamed to...
5234 (throw_vquit): New declaration.
5235 (throw_quit): Likewise.
5236 * exceptions.c (throw_vfatal): Renamed to...
5237 (throw_vquit): New function.
5238 (throw_quit): Likewise.
5239 (throw_error): Call throw_verror rather than throw_it.
5240 * utils.h (vfatal): Removed.
5241 (fatal): Likewise.
5242 * utils.c (vfatal): Removed.
5243 (fatal): Likewise.
5244 (internal_verror): Replaced call to fatal with call to throw_quit.
5245 (quit): Replaced calls to fatal with calls to throw_quit.
5246
5247 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5248
5249 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5250 target_read_code.
5251
5252 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5253
5254 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5255 less than zero in conditional expression.
5256
5257 2014-07-23 Tom Tromey <tromey@redhat.com>
5258
5259 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5260 ($INTRO_PART): Don't match whitespace.
5261 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5262 argument matching.
5263 ($METHOD): Add $METHOD_TRAILER.
5264 (trim): Rewrite.
5265 (scan_target_h): New sub.
5266 Change main loop not to collect state.
5267 * target-delegates.c: Rebuild.
5268
5269 2014-07-23 Gary Benson <gbenson@redhat.com>
5270
5271 * cp-support.c (gdb_demangle): Fix build on systems without
5272 sigaltstack.
5273
5274 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5275
5276 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5277 for reference entry value target data value.
5278
5279 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5280
5281 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5282 value_available_contents_eq.
5283
5284 2014-07-22 Pedro Alves <palves@redhat.com>
5285
5286 * value.c (allocate_optimized_out_value): Don't mark value as
5287 non-lazy.
5288
5289 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5290
5291 * MAINTAINERS (Write After Approval): Update my email address.
5292
5293 2014-07-20 Doug Evans <dje@google.com>
5294
5295 PR server/17147
5296 * remote.c (putpkt_binary): Add text to error message.
5297
5298 2014-07-20 Yao Qi <yao@codesourcery.com>
5299
5300 * eval.c: Remove "Chill" from comments.
5301 * gdbtypes.h: Likewise.
5302 * symtab.h: Likewise.
5303
5304 2014-07-20 Yao Qi <yao@codesourcery.com>
5305
5306 * std-operator.def: Update comments to TERNOP_SLICE.
5307
5308 2014-07-20 Yao Qi <yao@codesourcery.com>
5309
5310 * std-operator.def: Remove BINOP_RANGE.
5311 * breakpoint.c (watchpoint_exp_is_const): Update.
5312 * expprint.c (dump_subexp_body_standard): Likewise.
5313 * eval.c (init_array_element): Remove dead code.
5314 (evaluate_subexp_standard): Likewise.
5315
5316 2014-07-20 Yao Qi <yao@codesourcery.com>
5317
5318 * std-operator.def: Remove BINOP_IN.
5319 * breakpoint.c (watchpoint_exp_is_const): Update.
5320 * eval.c (evaluate_subexp_standard): Likewise.
5321 * expprint.c (dump_subexp_body_standard): Likewise.
5322
5323 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5324
5325 * microblaze-tdep.c (microblaze_register_names): Add
5326 the rshr and rslr register names.
5327 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5328 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5329 Use of tdesc_numbered_register. Use of
5330 microblaze_register_g_packet_guesses. Use of
5331 tdesc_use_registers. Use of set_gdbarch_register_type.
5332 (microblaze_register_g_packet_guesses): New.
5333 * microblaze-tdep.h (microblaze_reg_num): Add
5334 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5335 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5336 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5337 * features/microblaze-core.xml: New file.
5338 * features/microblaze-stack-protect.xml: New file.
5339 * features/microblaze-with-stack-protect.c: New file.
5340 * features/microblaze-with-stack-protect.xml: New file.
5341 * features/microblaze.xml: New file.
5342 * features/microblaze.c: New file.
5343 * features/Makefile (microblaze-with-stack-protect): Add
5344 microblaze-with-stack-protect microblaze and microblaze-expedite.
5345 * regformats/microblaze-with-stack-protect.dat: New file.
5346 * regformats/microblaze.dat: New file.
5347 * doc/gdb.texinfo (MicroBlaze Features): Added.
5348
5349 2014-07-18 Tom Tromey <tromey@redhat.com>
5350
5351 * exec.c (exec_ops): Now static.
5352 * exec.h (exec_ops): Don't declare.
5353
5354 2014-07-18 Tom Tromey <tromey@redhat.com>
5355
5356 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5357 to find_target_beneath.
5358 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5359 find_target_beneath.
5360 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5361
5362 2014-07-18 Tom Tromey <tromey@redhat.com>
5363
5364 PR gdb/17130:
5365 * utils.c (quit): Use target_supports_terminal_ours.
5366 * target.h (target_supports_terminal_ours): Declare.
5367 * target.c (target_supports_delete_record): Don't check
5368 to_delete_record against NULL.
5369 (target_supports_terminal_ours): New function.
5370
5371 2014-07-18 Tom Tromey <tromey@redhat.com>
5372
5373 PR gdb/17130:
5374 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5375 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5376 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5377 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5378 * windows-nat.c (windows_xfer_partial): Always delegate.
5379 * record-btrace.c (record_btrace_xfer_partial): Simplify
5380 delegation.
5381 (record_btrace_fetch_registers, record_btrace_store_registers)
5382 (record_btrace_prepare_to_store, record_btrace_resume)
5383 (record_btrace_wait, record_btrace_find_new_threads)
5384 (record_btrace_thread_alive): Likewise.
5385 * procfs.c (procfs_xfer_partial): Always delegate.
5386 * corelow.c (core_xfer_partial): Always delegate.
5387 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5388
5389 2014-07-18 Tom Tromey <tromey@redhat.com>
5390
5391 * exec.c (exec_make_note_section): Move earlier.
5392
5393 2014-07-17 Doug Evans <dje@google.com>
5394
5395 PR gdb/17170
5396 * maint.c (count_symtabs_and_blocks): Handle NULL
5397 current_program_space.
5398 (report_command_stats): Check global enabled flag in addition to
5399 recorded enabled flag.
5400 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5401
5402 2014-07-16 Pedro Alves <palves@redhat.com>
5403
5404 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5405
5406 2014-07-16 Tom Tromey <tromey@redhat.com>
5407
5408 * target.h (struct target_ops) <to_delete_record>: Reformat
5409 comment.
5410
5411 2014-07-16 Tom Tromey <tromey@redhat.com>
5412
5413 * target-delegates.c: Rebuild.
5414
5415 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5416
5417 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5418 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5419 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5420 (avr_pointer_to_address): Likewise.
5421 (avr_address_class_type_flags): New function.
5422 (avr_address_class_type_flags_to_name): Likewise.
5423 (avr_address_class_name_to_type_flags): Likewise.
5424 (avr_gdbarch_init): Set address_class_type_flags,
5425 address_class_type_flags_to_name and
5426 address_class_name_to_type_flags.
5427
5428 2014-07-15 Pedro Alves <palves@redhat.com>
5429
5430 * linux-nat.c (kill_callback): Save errno and work with saved
5431 copy.
5432
5433 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5434
5435 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5436
5437 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5438
5439 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5440 breakpoint support correctly.
5441
5442 2014-07-14 Pedro Alves <palves@redhat.com>
5443
5444 * utils.c (prompt_for_continue): Call target_terminal_ours.
5445
5446 2014-07-14 Pedro Alves <palves@redhat.com>
5447
5448 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5449 catch_errors. Don't re-enable stdin or notify observers where,
5450 and rethrow error.
5451 (fetch_inferior_event_wrapper): Delete.
5452
5453 2014-07-14 Pedro Alves <palves@redhat.com>
5454
5455 PR gdb/17072
5456 * top.c: Include "inf-loop.h".
5457 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5458 field.
5459 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5460 was async before.
5461 (gdb_readline_wrapper): Store whether the target is async, and
5462 make it sync.
5463
5464 2014-07-14 Pedro Alves <palves@redhat.com>
5465
5466 PR gdb/17072
5467 * top.c (gdb_readline_wrapper_line): Tweak comment.
5468 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5469 the input handler callback.
5470
5471 2014-07-14 Pedro Alves <palves@redhat.com>
5472
5473 PR gdb/17072
5474 * main.c: Include event-top.h.
5475 (handle_command_errors): New function.
5476 (catch_command_errors, catch_command_errors_const): Use it.
5477
5478 2014-07-14 Pedro Alves <palves@redhat.com>
5479
5480 * exceptions.c (catch_command_errors, catch_command_errors_const):
5481 Moved to main.c.
5482 * exceptions.h (catch_command_errors_ftype)
5483 (catch_command_errors_const_ftype): Moved to main.c.
5484 (catch_command_errors, catch_command_errors_const): Delete
5485 declarations.
5486 * main.c (catch_command_errors_ftype)
5487 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5488 (catch_command_errors, catch_command_errors_const)): Moved here
5489 from exceptions.c and make static.
5490
5491 2014-07-14 Pedro Alves <palves@redhat.com>
5492
5493 * exceptions.c (print_any_exception): Delete.
5494 (catch_exceptions_with_msg): Use exception_print instead of
5495 print_any_exception.
5496 (catch_errors): Use exception_fprintf instead of
5497 print_any_exception.
5498 (catch_command_errors, catch_command_errors_const): Use
5499 exception_print instead of print_any_exception.
5500
5501 2014-07-14 Pedro Alves <palves@redhat.com>
5502
5503 * infcall.c (run_inferior_call): Set 'sync_execution' while
5504 running the inferior call.
5505
5506 2014-07-14 Pedro Alves <palves@redhat.com>
5507
5508 * value.c (value_contents_equal): Delete function.
5509 * value.h (value_contents_equal): Delete declaration.
5510
5511 2014-07-14 Tom Tromey <tromey@redhat.com>
5512
5513 PR exp/17106:
5514 * gdbtypes.c (is_dynamic_type_internal): New function, from
5515 is_dynamic_type.
5516 (is_dynamic_type): Rewrite.
5517 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5518 (resolve_dynamic_struct): Likewise.
5519 (resolve_dynamic_type_internal): New function, from
5520 resolve_dynamic_type.
5521 (resolve_dynamic_type): Rewrite.
5522
5523 2014-07-14 Tom Tromey <tromey@redhat.com>
5524
5525 * target.c (target_require_runnable): Also check record_stratum.
5526 Update comment.
5527
5528 2014-07-11 Yao Qi <yao@codesourcery.com>
5529
5530 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5531 thumb_instruction_restores_sp return true.
5532
5533 2014-07-11 Yao Qi <yao@codesourcery.com>
5534
5535 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5536 (thumb_in_function_epilogue_p): Call
5537 thumb_instruction_restores_sp.
5538
5539 2014-07-11 Yao Qi <yao@codesourcery.com>
5540
5541 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5542 'add sp, #imm'.
5543 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5544
5545 2014-07-11 Gary Benson <gbenson@redhat.com>
5546
5547 * amd64-linux-nat.c (gdbcore.h): Remove include.
5548 (regset.h): Likewise.
5549 (nat/linux-btrace.h): Likewise.
5550 (btrace.h): Likewise.
5551 (gdb_assert.h): Likewise.
5552 (string.h): Likewise.
5553 (sys/uio.h): Likewise.
5554 (sys/debugreg.h): Likewise.
5555 (sys/syscall.h): Likewise.
5556 (sys/procfs.h): Likewise.
5557 (sys/user.h): Likewise.
5558 (asm/ptrace.h): Likewise.
5559 (i386-nat.h): Likewise.
5560 * i386-linux-nat.c (i386-nat.h): Likewise.
5561 (regset.h): Likewise.
5562 (target.h): Likewise.
5563 (linux-nat.h): Likewise.
5564 (nat/linux-btrace.h): Likewise.
5565 (btrace.h): Likewise.
5566 (gdb_assert.h): Likewise.
5567 (string.h): Likewise.
5568 (sys/uio.h): Likewise.
5569 (sys/user.h): Likewise.
5570 (sys/procfs.h): Likewise.
5571 (sys/reg.h): Likewise.
5572 (sys/debugreg.h): Likewise.
5573 (ORIG_EAX): Remove definition.
5574
5575 2014-07-11 Gary Benson <gbenson@redhat.com>
5576
5577 * i386-linux-nat.h: New file.
5578 * x86-linux-nat.h: Likewise.
5579 * x86-linux-nat.c: Likewise.
5580 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5581 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5582 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5583 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5584 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5585 (PTRACE_SETREGSET): Likewise.
5586 (arch_lwp_info): Now in x86-linux-nat.c.
5587 (have_ptrace_getregset): Now in x86-linux-nat.h.
5588 (x86_linux_dr_get): Now in x86-linux-nat.c.
5589 (x86_linux_dr_set): Likewise.
5590 (x86_linux_dr_get_addr): Likewise.
5591 (x86_linux_dr_get_control): Likewise.
5592 (x86_linux_dr_get_status): Likewise.
5593 (update_debug_registers_callback): Likewise.
5594 (x86_linux_dr_set_control): Likewise.
5595 (x86_linux_dr_set_addr): Likewise.
5596 (x86_linux_prepare_to_resume): Likewise.
5597 (x86_linux_new_thread): Likewise.
5598 (x86_linux_new_fork): Likewise.
5599 (x86_linux_get_thread_area): Likewise.
5600 (super_post_startup_inferior): Likewise.
5601 (x86_linux_child_post_startup_inferior): Likewise.
5602 (AMD64_LINUX_USER64_CS): Likewise.
5603 (AMD64_LINUX_X32_DS): Likewise.
5604 (x86_linux_read_description): Likewise.
5605 (x86_linux_enable_btrace): Likewise.
5606 (x86_linux_disable_btrace): Likewise.
5607 (x86_linux_teardown_btrace): Likewise.
5608 (x86_linux_read_btrace): Likewise.
5609 (x86_linux_create_target): Likewise.
5610 (x86_linux_add_target): Likewise.
5611 * i386-linux-nat.c (x86-linux-nat.h): New include.
5612 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5613 (PTRACE_SETREGSET): Likewise.
5614 (arch_lwp_info): Now in x86-linux-nat.c.
5615 (have_ptrace_getregset): Now in x86-linux-nat.h.
5616 (x86_linux_dr_get): Now in x86-linux-nat.c.
5617 (x86_linux_dr_set): Likewise.
5618 (x86_linux_dr_get_addr): Likewise.
5619 (x86_linux_dr_get_control): Likewise.
5620 (x86_linux_dr_get_status): Likewise.
5621 (update_debug_registers_callback): Likewise.
5622 (x86_linux_dr_set_control): Likewise.
5623 (x86_linux_dr_set_addr): Likewise.
5624 (x86_linux_prepare_to_resume): Likewise.
5625 (x86_linux_new_thread): Likewise.
5626 (x86_linux_new_fork): Likewise.
5627 (x86_linux_get_thread_area): Likewise.
5628 (super_post_startup_inferior): Likewise.
5629 (x86_linux_child_post_startup_inferior): Likewise.
5630 (AMD64_LINUX_USER64_CS): Likewise.
5631 (AMD64_LINUX_X32_DS): Likewise.
5632 (x86_linux_read_description): Likewise.
5633 (x86_linux_enable_btrace): Likewise.
5634 (x86_linux_disable_btrace): Likewise.
5635 (x86_linux_teardown_btrace): Likewise.
5636 (x86_linux_read_btrace): Likewise.
5637 (x86_linux_create_target): Likewise.
5638 (x86_linux_add_target): Likewise.
5639
5640 2014-07-11 Gary Benson <gbenson@redhat.com>
5641
5642 * amd64-linux-nat.c: Comment and whitespace changes.
5643 * i386-linux-nat.c: Comment and whitespace changes.
5644
5645 2014-07-11 Gary Benson <gbenson@redhat.com>
5646
5647 * amd64-linux-nat.c (x86_linux_create_target): New function.
5648 (x86_linux_add_target): Likewise.
5649 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5650 * i386-linux-nat.c (x86_linux_create_target): New function.
5651 (x86_linux_add_target): Likewise.
5652 (_initialize_i386_linux_nat): Delegate to the above new functions.
5653
5654 2014-07-11 Gary Benson <gbenson@redhat.com>
5655
5656 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5657 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5658 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5659 (ps_get_thread_area): Delegate to the above.
5660
5661 2014-07-11 Gary Benson <gbenson@redhat.com>
5662
5663 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5664 x86_linux_read_description. All uses updated. amd64-specific
5665 code conditionalized. Conditionalized i386-specific code added.
5666 Redundant cast removed.
5667 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5668 x86_linux_read_description. All uses updated. i386-specific
5669 code conditionalized. Conditionalized amd64-specific code added.
5670 One sizeof replaced with the actual type it is describing.
5671
5672 2014-07-11 Gary Benson <gbenson@redhat.com>
5673
5674 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5675 x86_linux_dr_get. All uses updated.
5676 (amd64_linux_dr_set): Renamed to
5677 x86_linux_dr_set. All uses updated.
5678 (amd64_linux_dr_get_addr): Renamed to
5679 x86_linux_dr_get_addr. All uses updated.
5680 (amd64_linux_dr_get_control): Renamed to
5681 x86_linux_dr_get_control. All uses updated.
5682 (amd64_linux_dr_get_status): Renamed to
5683 x86_linux_dr_get_status. All uses updated.
5684 (amd64_linux_dr_set_control): Renamed to
5685 x86_linux_dr_set_control. All uses updated.
5686 (amd64_linux_dr_set_addr): Renamed to
5687 x86_linux_dr_set_addr. All uses updated.
5688 (amd64_linux_prepare_to_resume): Renamed to
5689 x86_linux_prepare_to_resume. All uses updated.
5690 (amd64_linux_new_thread): Renamed to
5691 x86_linux_new_thread. All uses updated.
5692 (amd64_linux_new_fork): Renamed to
5693 x86_linux_new_fork. All uses updated.
5694 (amd64_linux_child_post_startup_inferior): Renamed to
5695 x86_linux_child_post_startup_inferior. All uses updated.
5696 (amd64_linux_enable_btrace): Renamed to
5697 x86_linux_enable_btrace. All uses updated.
5698 (amd64_linux_disable_btrace): Renamed to
5699 x86_linux_disable_btrace. All uses updated.
5700 (amd64_linux_teardown_btrace): Renamed to
5701 x86_linux_teardown_btrace. All uses updated.
5702 (amd64_linux_read_btrace): Renamed to
5703 x86_linux_read_btrace. All uses updated.
5704 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5705 x86_linux_dr_get. All uses updated.
5706 (i386_linux_dr_set): Renamed to
5707 x86_linux_dr_set. All uses updated.
5708 (i386_linux_dr_get_addr): Renamed to
5709 x86_linux_dr_get_addr. All uses updated.
5710 (i386_linux_dr_get_control): Renamed to
5711 x86_linux_dr_get_control. All uses updated.
5712 (i386_linux_dr_get_status): Renamed to
5713 x86_linux_dr_get_status. All uses updated.
5714 (i386_linux_dr_set_control): Renamed to
5715 x86_linux_dr_set_control. All uses updated.
5716 (i386_linux_dr_set_addr): Renamed to
5717 x86_linux_dr_set_addr. All uses updated.
5718 (i386_linux_prepare_to_resume): Renamed to
5719 x86_linux_prepare_to_resume. All uses updated.
5720 (i386_linux_new_thread): Renamed to
5721 x86_linux_new_thread. All uses updated.
5722 (i386_linux_new_fork): Renamed to
5723 x86_linux_new_fork. All uses updated.
5724 (i386_linux_child_post_startup_inferior): Renamed to
5725 x86_linux_child_post_startup_inferior. All uses updated.
5726 (i386_linux_enable_btrace): Renamed to
5727 x86_linux_enable_btrace. All uses updated.
5728 (i386_linux_disable_btrace): Renamed to
5729 x86_linux_disable_btrace. All uses updated.
5730 (i386_linux_teardown_btrace): Renamed to
5731 x86_linux_teardown_btrace. All uses updated.
5732 (i386_linux_read_btrace): Renamed to
5733 x86_linux_read_btrace. All uses updated.
5734
5735 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5736
5737 * remote.c (extended_remote_post_attach): New function.
5738 (init_extended_remote_ops): Install it as to_post_attach method.
5739
5740 2014-07-09 Pedro Alves <palves@redhat.com>
5741
5742 * infcmd.c (attach_command_post_wait): Don't call
5743 target_terminal_inferior here.
5744 (attach_command): Call it here instead.
5745
5746 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5747
5748 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5749 field.
5750 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5751 from varobj.c, with additional checks.
5752 (c_varobj_ops): Fill in is_path_expr_parent field.
5753 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5754 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5755 field.
5756 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5757 ops method.
5758 (varobj_default_is_path_expr_parent): New function.
5759 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5760 (varobj_default_is_path_expr_parent): Declare new function.
5761
5762 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5763
5764 * infcmd.c (finish_backward): Turn internal error into normal error.
5765
5766 2014-07-07 Pedro Alves <palves@redhat.com>
5767
5768 PR gdb/17096
5769 * remote.c (async_handle_remote_sigint)
5770 (async_handle_remote_sigint_twice): Call
5771 gdb_call_async_signal_handler instead of
5772 mark_async_signal_handler.
5773
5774 2014-07-07 Tom Tromey <tromey@redhat.com>
5775
5776 * target-delegates.c: Rebuild.
5777 * target.c (target_info_record): Remove.
5778 * record.c (info_record_command): Unconditionally call
5779 to_info_record.
5780 * target.h (struct target_ops) <to_info_record>: Use
5781 TARGET_DEFAULT_IGNORE.
5782 (target_info_record): Remove.
5783
5784 2014-07-07 Tom Tromey <tromey@redhat.com>
5785
5786 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5787 TARGET_DEFAULT_NORETURN.
5788 * target.c (generic_tls_error): New function.
5789 (target_translate_tls_address): Don't search target stack.
5790 * target-delegates.c: Rebuild.
5791 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5792 stack.
5793 * linux-thread-db.c (thread_db_get_thread_local_address):
5794 Unconditionally call beneath target.
5795
5796 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5797
5798 * cli/cli-logging.c (pop_output_files): Assign targerr to
5799 gdb_stdtargerr.
5800
5801 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5802
5803 * MAINTAINERS (Write After Approval): Update my email address.
5804
5805 2014-07-02 Gary Benson <gbenson@redhat.com>
5806
5807 * proc-service.c (ps_xfer_memory): Update comment.
5808 (ps_pstop): Remove unused function.
5809 (ps_pcontinue): Likewise.
5810 (ps_lstop): Likewise.
5811 (ps_lcontinue): Likewise.
5812 (ps_lgetxregsize): Likewise.
5813 (ps_lgetxregs): Likewise.
5814 (ps_lsetxregs): Likewise.
5815 (ps_plog): Likewise.
5816 (ps_ptread): Likewise.
5817 (ps_ptwrite): Likewise.
5818
5819 2014-07-01 Mark Wielaard <mjw@redhat.com>
5820
5821 * dwarf2read.c (add_array_cv_type): New function.
5822 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5823 (read_tag_volatile_type): Likewise.
5824
5825 2014-07-01 Tom Tromey <tromey@redhat.com>
5826
5827 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5828 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5829 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5830 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5831 * command.h (cmd_cfunc_ftype): Move earlier.
5832 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5833 (add_com, add_info): Use cmd_cfunc_ftype.
5834
5835 2014-06-30 Tom Tromey <tromey@redhat.com>
5836
5837 * symtab.c (operator_chars): Make parameters and return type
5838 const.
5839 (file_matches): Make "files" const.
5840 (struct search_symbols_data) <files>: Now const.
5841 (search_symbols): Make "regexp" and "files" parameters const.
5842 Update.
5843 (symtab_symbol_info): Remove cast.
5844 (rbreak_command): Update.
5845 * symtab.h (search_symbols): Update.
5846
5847 2014-06-27 Yao Qi <yao@codesourcery.com>
5848
5849 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5850 Change parameter type to 'struct thread_info *'. Caller
5851 updated.
5852 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5853 Update declaration.
5854 * dummy-frame.c (struct dummy_frame_id): New.
5855 (dummy_frame_id_eq): New function.
5856 (struct dummy_frame) <id>: Change its type to 'struct
5857 dummy_frame_id'.
5858 (dummy_frame_push): Add parameter ptid and save it in
5859 dummy_frame_id.
5860 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5861 inferior_ptid.
5862 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5863 to inferior_ptid.
5864 (lookup_dummy_frame): Change parameter type to 'struct
5865 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5866 instead of frame_id_eq.
5867 (dummy_frame_pop): Add parameter ptid. Callers updated.
5868 Update comments. Compose dummy_frame_id and pass it to
5869 lookup_dummy_frame.
5870 (dummy_frame_discard): Add parameter ptid.
5871 (dummy_frame_sniffer): Compose dummy_frame_id and call
5872 dummy_frame_id_eq instead of frame_id_eq.
5873 (fprint_dummy_frames): Print ptid.
5874 * dummy-frame.h: Remove comments.
5875 (dummy_frame_push): Add ptid in declaration.
5876 (dummy_frame_pop, dummy_frame_discard): Likewise.
5877
5878 2014-06-26 Tom Tromey <tromey@redhat.com>
5879
5880 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5881 * command.h (error_no_arg): Update.
5882
5883 2014-06-26 Tom Tromey <tromey@redhat.com>
5884
5885 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5886 (do_show_command): Make "arg" const.
5887 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5888
5889 2014-06-26 Tom Tromey <tromey@redhat.com>
5890
5891 * record-full.c (record_full_get_bookmark): Make "args" const.
5892 (record_full_goto_bookmark): Make "raw_bookmark" const.
5893 * record.c (record_goto): New function.
5894 (cmd_record_goto): Use it. Now static.
5895 * record.h (record_goto): Declare.
5896 (cmd_record_goto): Remove declaration.
5897 * target-delegates.c: Rebuild.
5898 * target.h (struct target_ops) <to_get_bookmark,
5899 to_goto_bookmark>: Make parameter const.
5900
5901 2014-06-26 Tom Tromey <tromey@redhat.com>
5902
5903 * defs.h (generic_load): Update.
5904 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5905 * monitor.c (monitor_load): Make "args" const.
5906 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5907 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5908 const.
5909 (mips_load): Make "file" const.
5910 * remote-sim.c (gdbsim_load): Make "args" const.
5911 * remote.c (remote_load): Make "name" const.
5912 * symfile.c (generic_load): Make "args" const.
5913 * target-delegates.c: Rebuild.
5914 * target.c (target_load): Make "arg" const.
5915 (debug_to_load): Make "args" const.
5916 * target.h (struct target_ops) <to_load>: Make parameter const.
5917 (target_load): Update.
5918
5919 2014-06-26 Tom Tromey <tromey@redhat.com>
5920
5921 PR symtab/16902:
5922 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5923 (dwarf2_physname, read_partial_die)
5924 (guess_partial_die_structure_name, fixup_partial_die)
5925 (guess_full_die_structure_name, anonymous_struct_prefix)
5926 (dwarf2_name): Use per-BFD obstack.
5927
5928 2014-06-26 Yao Qi <yao@codesourcery.com>
5929
5930 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5931 dummyframe and this_id into inner block below.
5932
5933 2014-06-26 Yao Qi <yao@codesourcery.com>
5934
5935 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5936 with "signal_pass[0]" in the initialization of signal_pass.
5937
5938 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5939
5940 * record-btrace.c (record_btrace_generating_corefile)
5941 (record_btrace_prepare_to_generate_core)
5942 (record_btrace_done_generating_core): New.
5943 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5944 (record_btrace_store_registers, record_btrace_prepare_to_store):
5945 Forward request when generating a core file.
5946 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5947 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5948 to_done_generating_core.
5949
5950 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5951
5952 * target.h (target_ops) <to_prepare_to_generate_core>
5953 <to_done_generating_core>: New.
5954 (target_prepare_to_generate_core, target_done_generating_core): New.
5955 * target.c (target_prepare_to_generate_core)
5956 (target_done_generating_core): New.
5957 * target-delegates.c: Regenerate.
5958 * gcore.c: (write_gcore_file): Rename to ...
5959 (write_gcore_file_1): ...this.
5960 (write_gcore_file): Call target_prepare_to_generate_core
5961 and target_done_generating_core.
5962
5963 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5964
5965 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5966 * gcore.c (write_gcore_file): Free memory returned from
5967 make_corefile_notes.
5968 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5969 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5970
5971 2014-06-24 Yao Qi <yao@codesourcery.com>
5972
5973 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5974 (arm_linux_init_abi): Set skip_trampoline_code with
5975 gdbarch_skip_trampoline_code instead of
5976 find_solib_trampoline_target.
5977
5978 2014-06-24 Yao Qi <yao@codesourcery.com>
5979
5980 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5981 arm_skip_bx_reg returns non-zero.
5982
5983 2014-06-24 Yao Qi <yao@codesourcery.com>
5984
5985 * arm-tdep.c (arm_skip_bx_reg): New function.
5986 (arm_skip_stub): Call arm_skip_bx_reg.
5987
5988 2014-06-23 Don Breazeal <donb@codesourcery.com>
5989
5990 * MAINTAINERS: Add myself as write-after-approval maintainer.
5991
5992 2014-06-23 Pedro Alves <palves@redhat.com>
5993
5994 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5995 DR_CONTROL before setting DR0..DR3.
5996 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5997 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5998 bits of DR_CONTROL related to the debug register slot being
5999 disabled. If all slots are vacant, clear local slowdown as well,
6000 and assert DR_CONTROL is 0.
6001
6002 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6003
6004 * python/lib/gdb/command/xmethods.py
6005 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6006 current progspace only if the string "progspace" matches LOCUS_RE.
6007
6008 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6009
6010 Fix --with-system-readline with readline-6.3 patch 5.
6011 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6012 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6013 types.
6014
6015 2014-06-20 Tom Tromey <tromey@redhat.com>
6016
6017 * dwarf2read.c (dw2_get_real_path): Use correct type in
6018 OBSTACK_CALLOC.
6019 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6020
6021 2014-06-20 Gary Benson <gbenson@redhat.com>
6022
6023 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6024 * common/glibc_thread_db.h: Likewise.
6025 * common/i386-cpuid.h: Likewise.
6026 * common/i386-gcc-cpuid.h: Likewise.
6027 * common/linux-btrace.h: Likewise.
6028 * common/linux-osdata.h: Likewise.
6029 * common/linux-procfs.h: Likewise.
6030 * common/linux-ptrace.h: Likewise.
6031 * common/mips-linux-watch.h: Likewise.
6032 * common/linux-btrace.c: Moved to nat.
6033 * common/linux-osdata.c: Likewise.
6034 * common/linux-procfs.c: Likewise.
6035 * common/linux-ptrace.c: Likewise.
6036 * common/mips-linux-watch.c: Likewise.
6037 * nat/gdb_thread_db.h: Moved from common.
6038 * nat/glibc_thread_db.h: Likewise.
6039 * nat/i386-cpuid.h: Likewise.
6040 * nat/i386-gcc-cpuid.h: Likewise.
6041 * nat/linux-btrace.c: Likewise.
6042 * nat/linux-btrace.h: Likewise.
6043 * nat/linux-osdata.c: Likewise.
6044 * nat/linux-osdata.h: Likewise.
6045 * nat/linux-procfs.c: Likewise.
6046 * nat/linux-procfs.h: Likewise.
6047 * nat/linux-ptrace.c: Likewise.
6048 * nat/linux-ptrace.h: Likewise.
6049 * nat/mips-linux-watch.c: Likewise.
6050 * nat/mips-linux-watch.h: Likewise.
6051 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6052 (object file files): Reordered.
6053 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6054 of glibc_thread_db.h.
6055
6056 2014-06-20 Gary Benson <gbenson@redhat.com>
6057
6058 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6059 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6060 (i386_dr_low): Likewise.
6061 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6062 (i386_dr_low_set_addr): Likewise.
6063 (i386_dr_low_get_addr): Likewise.
6064 (i386_dr_low_can_set_control): Likewise.
6065 (i386_dr_low_set_control): Likewise.
6066 (i386_dr_low_get_control): Likewise.
6067 (i386_dr_low_get_status): Likewise.
6068 (i386_get_debug_register_length): Likewise.
6069 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6070 (i386_dr_low): Likewise.
6071 * nat/i386-dregs.c (i386-low.h): Remove include.
6072 (i386-nat.h): Likewise.
6073 (nat/i386-dregs.h): New include.
6074 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6075 (i386_dr_low_set_addr): Likewise.
6076 (i386_dr_low_get_addr): Likewise.
6077 (i386_dr_low_can_set_control): Likewise.
6078 (i386_dr_low_set_control): Likewise.
6079 (i386_dr_low_get_control): Likewise.
6080 (i386_dr_low_get_status): Likewise.
6081 (i386_get_debug_register_length): Likewise.
6082 (debug_hw_points): Likewise.
6083
6084 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6085
6086 * Makefile.in (SFILES): Add d-exp.y.
6087 (YYFILES): Add d-exp.c.
6088 (YYOBJ): Add d-exp.o.
6089 (local-maintainer-clean): Delete d-exp.c.
6090 * d-exp.y: New file.
6091 * d-lang.h (d_parse): New declaration.
6092 (d_error): New declaration.
6093 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6094 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6095 PREC_ORDER operators.
6096 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6097
6098 2014-06-19 Yao Qi <yao@codesourcery.com>
6099
6100 * gdbthread.h (any_running): Remove the declaration.
6101 * thread.c (any_running): Remove.
6102
6103 2014-06-19 Yao Qi <yao@codesourcery.com>
6104
6105 * gdbthread.h (struct thread_info) <state>: Change its type to
6106 'enum thread_state'. Update comments.
6107
6108 2014-06-19 Pedro Alves <palves@redhat.com>
6109
6110 * gdbthread.h (ALL_THREADS): Delete.
6111 (ALL_NON_EXITED_THREADS): New macro.
6112 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6113 instead of ALL_THREADS.
6114 * infrun.c (find_thread_needs_step_over)
6115 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6116 instead of ALL_THREADS.
6117 * record-btrace.c (record_btrace_open)
6118 (record_btrace_stop_recording, record_btrace_close)
6119 (record_btrace_is_replaying, record_btrace_resume)
6120 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6121 * remote.c (append_pending_thread_resumptions): Likewise.
6122 * thread.c (thread_apply_all_command): Likewise.
6123
6124 2014-06-19 Gary Benson <gbenson@redhat.com>
6125
6126 * i386-nat.c (i386_stopped_by_watchpoint):
6127 Use i386_dr_stopped_by_watchpoint.
6128 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6129 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6130
6131 2014-06-19 Gary Benson <gbenson@redhat.com>
6132
6133 * nat/i386-dregs.c: New file.
6134 * Makefile.in (i386-dregs.o): New rule.
6135 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6136 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6137 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6138 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6139 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6140 * config/i386/go32.mh (NATDEPFILES): Likewise.
6141 * config/i386/linux.mh (NATDEPFILES): Likewise.
6142 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6143 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6144 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6145 * i386-nat.h (debug_hw_points): New declaration.
6146 * i386-nat.c (breakpoint.h): Remove include.
6147 (command.h): Likewise.
6148 (target.h): Likewise.
6149 (gdb_assert.h): Likewise.
6150 (debug_hw_points): Made nonstatic.
6151 (debug_printf): Now in i386-dregs.c.
6152 (TARGET_HAS_DR_LEN_8): Likewise.
6153 (DR_CONTROL_SHIFT): Likewise.
6154 (DR_CONTROL_SIZE): Likewise.
6155 (DR_RW_EXECUTE): Likewise.
6156 (DR_RW_WRITE): Likewise.
6157 (DR_RW_READ): Likewise.
6158 (DR_RW_IORW): Likewise.
6159 (DR_LEN_1): Likewise.
6160 (DR_LEN_2): Likewise.
6161 (DR_LEN_4): Likewise.
6162 (DR_LEN_8): Likewise.
6163 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6164 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6165 (DR_ENABLE_SIZE): Likewise.
6166 (DR_LOCAL_SLOWDOWN): Likewise.
6167 (DR_GLOBAL_SLOWDOWN): Likewise.
6168 (DR_CONTROL_RESERVED): Likewise.
6169 (I386_DR_CONTROL_MASK): Likewise.
6170 (I386_DR_VACANT): Likewise.
6171 (I386_DR_LOCAL_ENABLE): Likewise.
6172 (I386_DR_GLOBAL_ENABLE): Likewise.
6173 (I386_DR_DISABLE): Likewise.
6174 (I386_DR_SET_RW_LEN): Likewise.
6175 (I386_DR_GET_RW_LEN): Likewise.
6176 (I386_DR_WATCH_HIT): Likewise.
6177 (i386_wp_op_t): Likewise.
6178 (i386_show_dr): Likewise.
6179 (i386_length_and_rw_bits): Likewise.
6180 (i386_insert_aligned_watchpoint): Likewise.
6181 (i386_remove_aligned_watchpoint): Likewise.
6182 (i386_handle_nonaligned_watchpoint): Likewise.
6183 (i386_update_inferior_debug_regs): Likewise.
6184 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6185 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6186 (i386_region_ok_for_watchpoint):
6187 Use i386_dr_region_ok_for_watchpoint.
6188 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6189
6190 2014-06-19 Gary Benson <gbenson@redhat.com>
6191
6192 * i386-nat.c (i386_insert_hw_breakpoint): Use
6193 i386_insert_watchpoint.
6194 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6195
6196 2014-06-19 Gary Benson <gbenson@redhat.com>
6197
6198 * i386-nat.c (i386_dr_show): Renamed to
6199 i386_show_dr and made static. All uses updated.
6200 (i386_dr_length_and_rw_bits): Renamed to
6201 i386_length_and_rw_bits and made static.
6202 All uses updated.
6203 (i386_dr_insert_aligned_watchpoint): Renamed to
6204 i386_insert_aligned_watchpoint and made static.
6205 All uses updated.
6206 (i386_dr_remove_aligned_watchpoint): Renamed to
6207 i386_remove_aligned_watchpoint and made static.
6208 All uses updated.
6209 (i386_dr_update_inferior_debug_regs): Renamed to
6210 i386_update_inferior_debug_regs and made static.
6211 All uses updated.
6212 * nat/i386-dregs.h (i386_dr_show): Removed.
6213 (i386_dr_length_and_rw_bits): Likewise.
6214 (i386_dr_insert_aligned_watchpoint): Likewise.
6215 (i386_dr_remove_aligned_watchpoint): Likewise.
6216 (i386_dr_update_inferior_debug_regs): Likewise.
6217
6218 2014-06-19 Gary Benson <gbenson@redhat.com>
6219
6220 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6221 * configure: Regenerate.
6222 * config.in: Likewise.
6223 * main.c (signal.h): New include.
6224 (setup_alternate_signal_stack): New function.
6225 (captured_main): Call the above.
6226 * cp-support.c (signal.h): New include.
6227 (catch_demangler_crashes): New flag.
6228 (SIGJMP_BUF): New define.
6229 (SIGSETJMP): Likewise.
6230 (SIGLONGJMP): Likewise.
6231 (gdb_demangle_jmp_buf): New static global.
6232 (gdb_demangle_attempt_core_dump): Likewise.
6233 (gdb_demangle_signal_handler): New function.
6234 (gdb_demangle): If catch_demangler_crashes is set, install the
6235 above signal handler before calling bfd_demangle, and restore
6236 the original signal handler afterwards. Display the offending
6237 symbol and call demangler_warning the first time a segmentation
6238 fault is caught.
6239 (_initialize_cp_support): New maint set/show command.
6240
6241 2014-06-19 Gary Benson <gbenson@redhat.com>
6242
6243 * utils.h (resource_limit_kind): New enum.
6244 (can_dump_core): New declaration.
6245 (warn_cant_dump_core): Likewise.
6246 (dump_core): Likewise.
6247 * utils.c (dump_core): Made nonstatic. Added new
6248 parameter "limit_kind".
6249 (can_dump_core): Made nonstatic. Moved printing code to...
6250 (warn_cant_dump_core): New function.
6251 (can_dump_core_warn): Likewise.
6252 (internal_vproblem): Replace calls to can_dump_core with
6253 calls to can_dump_core_warn. Supply new argument to each.
6254
6255 2014-06-19 Gary Benson <gbenson@redhat.com>
6256
6257 * utils.h (demangler_vwarning): New declaration.
6258 (demangler_warning): Likewise.
6259 * utils.c (struct internal_problem)
6260 <user_settable_should_quit>: New field.
6261 <user_settable_should_dump_core>: Likewise
6262 (internal_error_problem): Add values for above new fields.
6263 (internal_warning_problem): Likewise.
6264 (demangler_warning_problem): New static global.
6265 (demangler_vwarning): New function.
6266 (demangler_warning): Likewise.
6267 (add_internal_problem_command): Selectively add commands.
6268 (_initialize_utils): New internal problem command.
6269 * maint.c (maintenance_demangler_warning): New function.
6270 (_initialize_maint_cmds): New command.
6271
6272 2014-06-18 Tom Tromey <tromey@redhat.com>
6273
6274 * f-valprint.c (info_common_command_for_block): Update.
6275 * symtab.h (struct general_symbol_info) <common_block>: Now
6276 const.
6277
6278 2014-06-18 Tom Tromey <tromey@redhat.com>
6279
6280 * symtab.h (struct symtab) <blockvector>: Now const.
6281 * ada-lang.c (ada_add_global_exceptions): Update.
6282 * buildsym.c (augment_type_symtab): Update.
6283 * dwarf2read.c (dw2_lookup_symbol): Update.
6284 * jit.c (finalize_symtab): Update.
6285 * jv-lang.c (add_class_symtab_symbol): Update.
6286 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6287 Update.
6288 * objfiles.c (objfile_relocate1): Update.
6289 * psymtab.c (lookup_symbol_aux_psymtabs)
6290 (maintenance_check_psymtabs): Update.
6291 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6292 Update.
6293 * spu-tdep.c (spu_catch_start): Update.
6294 * symmisc.c (dump_symtab_1): Update.
6295 * symtab.c (lookup_global_symbol_from_objfile)
6296 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6297 (basic_lookup_transparent_type_quick)
6298 (basic_lookup_transparent_type, find_pc_sect_symtab)
6299 (find_pc_sect_line, search_symbols): Update.
6300 * block.c (find_block_in_blockvector): Make "bl" const.
6301 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6302 const.
6303 (blockvector_contains_pc): Make "bv" const.
6304 (block_for_pc_sect): Update.
6305 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6306 (blockvector_contains_pc): Update.
6307 * breakpoint.c (resolve_sal_pc): Update.
6308 * inline-frame.c (block_starting_point_at): Update.
6309
6310 2014-06-18 Tom Tromey <tromey@redhat.com>
6311
6312 * completer.c (complete_line): Make "line_buffer" const.
6313 * completer.h (complete_line): Update.
6314
6315 2014-06-18 Tom Tromey <tromey@redhat.com>
6316
6317 * symtab.c (add_macro_name): Remove unneeded cast.
6318
6319 2014-06-18 Tom Tromey <tromey@redhat.com>
6320
6321 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6322 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6323
6324 2014-06-18 Tom Tromey <tromey@redhat.com>
6325
6326 * probe.c (info_probes_for_ops): Make "arg" const.
6327 * probe.h (info_probes_for_ops): Update.
6328
6329 2014-06-18 Tom Tromey <tromey@redhat.com>
6330
6331 * varobj.c (varobj_create): Update.
6332 * valops.c (value_of_this): Update.
6333 * tracepoint.c (add_local_symbols, scope_info): Update.
6334 * symtab.h (struct general_symbol_info) <block>: Now const.
6335 * symtab.c (skip_prologue_sal)
6336 (default_make_symbol_completion_list_break_on)
6337 (skip_prologue_using_sal): Update.
6338 * stack.h (iterate_over_block_locals)
6339 (iterate_over_block_local_vars): Update.
6340 * stack.c (print_frame_args): Update.
6341 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6342 parameter const.
6343 (get_selected_block): Make return type const.
6344 * python/py-frame.c (frapy_block): Update.
6345 * python/py-block.c (gdbpy_block_for_pc): Update.
6346 * p-exp.y (%union) <bval>: Now const.
6347 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6348 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6349 * m2-exp.y (%union) <bval>: Now const.
6350 * linespec.c (get_current_search_block): Make return type const.
6351 (create_sals_line_offset, find_label_symbols): Update.
6352 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6353 Update.
6354 (block_starting_point_at): Make "block" const.
6355 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6356 (check_exception_resume): Update.
6357 * guile/scm-frame.c (gdbscm_frame_block): Update.
6358 * guile/scm-block.c (gdbscm_lookup_block): Update.
6359 * frame.h (get_frame_block): Update.
6360 (get_selected_block): Make return type const.
6361 * frame.c (frame_id_inner): Update.
6362 * f-valprint.c (info_common_command_for_block)
6363 (info_common_command): Update.
6364 * dwarf2loc.c (dwarf2_find_location_expression)
6365 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6366 (locexpr_describe_location_piece): Update.
6367 * c-exp.y (%union) <bval>: Now const.
6368 * breakpoint.c (resolve_sal_pc): Update.
6369 * blockframe.c (get_frame_block):Make return type const.
6370 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6371 (block_innermost_frame): Update.
6372 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6373 (block_for_pc, block_for_pc_sect): Update.
6374 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6375 'pblock' const.
6376 (block_for_pc_sect, block_for_pc): Make return type const.
6377 * ax-gdb.c (gen_expr): Update.
6378 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6379 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6380 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6381 (ada_read_var_value): Update.
6382 * ada-exp.y (struct name_info) <block>: Now const.
6383 (%union): Likewise.
6384 (block_lookup): Constify.
6385
6386 2014-06-18 Gary Benson <gbenson@redhat.com>
6387
6388 * nat/i386-dregs.h: New file.
6389 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6390 * i386-nat.h (i386-dregs.h): New include.
6391 (DR_FIRSTADDR): Now in i386-dregs.h.
6392 (DR_LASTADDR): Likewise.
6393 (DR_NADDR): Likewise.
6394 (DR_STATUS): Likewise.
6395 (DR_CONTROL): Likewise.
6396 (i386_debug_reg_state): Likewise.
6397 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6398
6399 2014-06-18 Don Breazeal <donb@codesourcery.com>
6400
6401 * breakpoint.c (set_longjmp_breakpoint): Call
6402 momentary_breakpoint_from_master with additional argument.
6403 (set_longjmp_breakpoint_for_call_dummy): Call
6404 momentary_breakpoint_from_master with additional argument.
6405 (set_std_terminate_breakpoint): Call
6406 momentary_breakpoint_from_master with additional argument.
6407 (momentary_breakpoint_from_master): Add argument to function
6408 definition and use it to initialize structure member flag.
6409 (clone_momentary_breakpoint): Call
6410 momentary_breakpoint_from_master with additional argument.
6411 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6412 member flags set in momentary_breakpoint_from_master.
6413
6414 2014-06-18 Gary Benson <gbenson@redhat.com>
6415
6416 * i386-nat.c (i386_show_dr): Renamed to
6417 i386_dr_show and made nonstatic. All uses updated.
6418 (i386_length_and_rw_bits): Renamed to
6419 i386_dr_length_and_rw_bits and made nonstatic.
6420 All uses updated.
6421 (i386_insert_aligned_watchpoint): Renamed to
6422 i386_dr_insert_aligned_watchpoint and made nonstatic.
6423 All uses updated.
6424 (i386_remove_aligned_watchpoint): Renamed to
6425 i386_dr_remove_aligned_watchpoint and made nonstatic.
6426 All uses updated.
6427 (i386_update_inferior_debug_regs): Renamed to
6428 i386_dr_update_inferior_debug_regs and made nonstatic.
6429 All uses updated.
6430
6431 2014-06-18 Gary Benson <gbenson@redhat.com>
6432
6433 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6434 (i386_dr_low_can_set_control): Likewise.
6435 (i386_dr_low_set_addr): Likewise.
6436 (i386_dr_low_set_control): Likewise.
6437 (i386_dr_low_get_addr): Likewise.
6438 (i386_dr_low_get_status): Likewise.
6439 (i386_dr_low_get_control): Likewise.
6440 (i386_insert_aligned_watchpoint): Use new macros.
6441 (i386_update_inferior_debug_regs): Likewise.
6442 (i386_stopped_data_address): Likewise.
6443
6444 2014-06-18 Gary Benson <gbenson@redhat.com>
6445
6446 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6447 New parameter. All uses updated.
6448
6449 2014-06-18 Gary Benson <gbenson@redhat.com>
6450
6451 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6452 All uses updated.
6453
6454 2014-06-18 Gary Benson <gbenson@redhat.com>
6455
6456 * i386-nat.c (debug_printf): New macro.
6457 (i386_get_debug_register_length): Likewise.
6458 (TARGET_HAS_DR_LEN_8): Use above macro.
6459 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6460 and printf_unfiltered. Use phex to format values.
6461
6462 2014-06-18 Gary Benson <gbenson@redhat.com>
6463
6464 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6465 Make const.
6466
6467 2014-06-18 Gary Benson <gbenson@redhat.com>
6468
6469 * i386-nat.c: Comment changes.
6470
6471 2014-06-18 Gary Benson <gbenson@redhat.com>
6472
6473 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6474
6475 2014-06-18 Gary Benson <gbenson@redhat.com>
6476
6477 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6478 (i386_insert_aligned_watchpoint): Likewise.
6479 (i386_remove_aligned_watchpoint): Likewise.
6480 (i386_handle_nonaligned_watchpoint): Likewise.
6481
6482 2014-06-18 Gary Benson <gbenson@redhat.com>
6483
6484 * i386-nat.c: Whitespace changes.
6485
6486 2014-06-17 Samuel Bronson <naesten@gmail.com>
6487
6488 * MAINTAINERS: Update Roland McGrath's email address.
6489 Thanks to Sergio Durigan Junior for pointing out that he left
6490 Red Hat a while ago, and giving me a current address.
6491
6492 2014-06-17 Tom Tromey <tromey@redhat.com>
6493
6494 * utils.h (savestring): Remove declaration.
6495
6496 2014-06-17 Tom Tromey <tromey@redhat.com>
6497
6498 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6499
6500 2014-06-16 Keith Seitz <keiths@redhat.com>
6501
6502 PR mi/15863
6503 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6504 to update the varobj if inferior_ptid is null_ptid.
6505
6506 2014-06-16 Tom Tromey <tromey@redhat.com>
6507
6508 * target.h (struct target_ops) <to_info_proc>: Make parameter
6509 const.
6510 (target_info_proc): Update.
6511 * target.c (target_info_proc): Make "args" const.
6512 * procfs.c (procfs_info_proc): Update.
6513 * linux-tdep.c (linux_info_proc): Update.
6514 (linux_core_info_proc_mappings): Make "args" const.
6515 (linux_core_info_proc): Update.
6516 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6517 * gdbarch.c: Rebuild.
6518 * gdbarch.h: Rebuild.
6519 * corelow.c (core_info_proc): Update.
6520
6521 2014-06-16 Tom Tromey <tromey@redhat.com>
6522
6523 * target.h (struct target_ops) <to_disconnect>: Make parameter
6524 const.
6525 (target_disconnect): Update.
6526 * target.c (target_disconnect): Make "args" const.
6527 * target-delegates.c: Rebuild.
6528 * remote.c (remote_disconnect): Update.
6529 * record.h (record_disconnect): Update.
6530 * record.c (record_disconnect): Update.
6531 * inf-child.c (inf_child_disconnect): Update.
6532
6533 2014-06-16 Tom Tromey <tromey@redhat.com>
6534
6535 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6536 * target.c (debug_to_rcmd, default_rcmd): Update.
6537 * target-delegates.c: Rebuild.
6538 * remote.c (remote_rcmd): Update.
6539 * monitor.c (monitor_rcmd): Update.
6540
6541 2014-06-16 Pedro Alves <palves@redhat.com>
6542
6543 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6544 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6545 have OBJF_SHARED set.
6546 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6547 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6548 instead of OBJF_USERLOADED.
6549 * objfiles.h (OBJF_SHARED): Update comment.
6550 (userloaded_objfile_contains_address_p): Rename to ...
6551 (shared_objfile_contains_address_p): ... this, and update
6552 comments.
6553 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6554 new objfile.
6555 (remove_symbol_file_command): Skip objfiles that don't have
6556 OBJF_SHARED set.
6557
6558 2014-06-16 Tom Tromey <tromey@redhat.com>
6559
6560 * minsyms.h (prim_record_minimal_symbol)
6561 (prim_record_minimal_symbol_and_info): Update comments.
6562
6563 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6564
6565 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6566 or --without-guile, according to how GDB was built.
6567
6568 2014-06-13 Tom Tromey <tromey@redhat.com>
6569
6570 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6571 to help_list.
6572 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6573 to help_list.
6574 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6575 help_list.
6576 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6577 help_list.Pass all_commands, not -1, to help_list.
6578 * cli/cli-dump.c (dump_command, append_command)
6579 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6580 (binary_dump_command, binary_append_command): Pass all_commands,
6581 not -1, to help_list.
6582 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6583 -1, to help_list.
6584 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6585 -1, to help_list.
6586 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6587 help_list.
6588 * top.c (set_history): Pass all_commands, not -1, to help_list.
6589 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6590 all_commands, not -1, to help_list.
6591 * symfile.c (overlay_command): Pass all_commands, not -1, to
6592 help_list.
6593 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6594 help_list.
6595 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6596 help_list.
6597 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6598 -1, to help_list.
6599 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6600 not -1, to help_list.
6601 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6602 not -1, to help_list.
6603 * maint.c (maintenance_command, maintenance_info_command)
6604 (maintenance_print_command, maintenance_set_cmd): Pass
6605 all_commands, not -1, to help_list.
6606 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6607 help_list.
6608 * language.c (set_check): Pass all_commands, not -1, to help_list.
6609 * infcmd.c (unset_command): Pass all_commands, not -1, to
6610 help_list.
6611 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6612 help_list.
6613 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6614 help_list.
6615 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6616 help_list.
6617 * breakpoint.c (save_command): Pass all_commands, not -1, to
6618 help_list.
6619 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6620 all_commands, not -1, to help_list.
6621
6622 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6623
6624 * regcache.c (struct register_to_invalidate): New structure.
6625 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6626 functions.
6627 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6628
6629 2014-06-12 Yao Qi <yao@codesourcery.com>
6630
6631 * varobj.c (varobj_get_num_children): Call
6632 varobj_is_dynamic_p.
6633 (varobj_list_children): Likewise.
6634 (varobj_update): Likewise. Update comments.
6635
6636 2014-06-12 Yao Qi <yao@codesourcery.com>
6637
6638 * varobj.c (varobj_pretty_printed_p): Rename to ...
6639 (varobj_is_dynamic_p): ... this. New function.
6640 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6641 (varobj_is_dynamic_p): Declare.
6642 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6643 (mi_print_value_p, varobj_update_one): Likewise.
6644
6645 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6646 Yao Qi <yao@codesourcery.com>
6647
6648 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6649 (varobj_get_iterator): Wrap up code for pretty-printer by
6650 "#if HAVE_PYTHON" and "#endif".
6651 (update_dynamic_varobj_children): Likewise.
6652
6653 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6654 Yao Qi <yao@codesourcery.com>
6655
6656 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6657 gdb_python_initialized is false. Move some code from varobj.c.
6658 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6659 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6660 (struct varobj_item): Moved to varobj-iter.h".
6661 (varobj_clear_saved_item): New function.
6662 (update_dynamic_varobj_children): Move python-related code to
6663 py-varobj.c.
6664 (free_variable): Call varobj_clear_saved_item and
6665 varobj_iter_delete.
6666
6667 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6668 Yao Qi <yao@codesourcery.com>
6669
6670 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6671 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6672 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6673 (py-varobj.o): New rule.
6674 * python/py-varobj.c: New file.
6675 * python/python-internal.h (py_varobj_get_iterator): Declare.
6676 * varobj-iter.h: New file.
6677 * varobj.c: Include "varobj-iter.h"
6678 (struct varobj) <child_iter>: Change its type from "PyObject *"
6679 to "struct varobj_iter *".
6680 <saved_item>: Likewise.
6681 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6682 [HAVE_PYTHON] (varobj_get_iterator): New function.
6683 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6684 python-specific code to python/py-varobj.c.
6685 (install_visualizer): Call varobj_iter_delete instead of
6686 Py_XDECREF.
6687 * varobj.h (varobj_ensure_python_env): Declare.
6688
6689 2014-06-12 Yao Qi <yao@codesourcery.com>
6690
6691 * varobj.c (struct varobj_item): New structure.
6692 (create_child_with_value): Update declaration.
6693 (varobj_add_child): Replace arguments 'name' and 'value' with
6694 'item'. All callers updated.
6695 (install_dynamic_child): Likewise.
6696 (update_dynamic_varobj_children): Likewise.
6697 (varobj_add_child): Likewise.
6698 (create_child_with_value): Likewise.
6699
6700 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6701
6702 * NEWS: Create a new section for the next release branch.
6703 Rename the section of the current branch, now that it has
6704 been cut.
6705
6706 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6707
6708 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6709 * version.in: Bump version to 7.8.50.DATE-cvs.
6710
6711 2014-06-11 Pedro Alves <palves@redhat.com>
6712
6713 PR remote/17028
6714 * ser-mingw.c (net_windows_socket_check_pending): New function.
6715 (net_windows_select_thread): Ignore spurious wakeups. Use
6716 net_windows_socket_check_pending.
6717 (net_windows_wait_handle): Check for pending events with
6718 ioctlsocket, through net_windows_socket_check_pending, instead of
6719 checking the socket's event.
6720
6721 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6722
6723 * python/python-internal.h (gdb_PyObject_GetAttrString)
6724 (gdb_PyObject_HasAttrString): New inline function definitions.
6725 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6726 char * of the second argument to PyObject_GetAttrString.
6727
6728 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6729
6730 * serial.c (serial_write): Fix index of character to be printed
6731 in call to serial_logchar when serial debug traces are enabled.
6732
6733 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6734
6735 * gdbtypes (resolve_dynamic_range): Add function description.
6736
6737 2014-06-09 Pedro Alves <palves@redhat.com>
6738
6739 * linux-nat.c (linux_child_follow_fork): Initialize status with
6740 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6741 inner block. Only pass the signal to PTRACE_DETACH if in pass
6742 state.
6743
6744 2014-06-09 Gary Benson <gbenson@redhat.com>
6745
6746 * common/signals.c (gdb_signal_from_host): Reorder to separate
6747 the always-available ANSI-standard signals from the signals that
6748 require checking.
6749 (do_gdb_signal_to_host): Likewise.
6750 * proc-events.c (signal_table): Likewise.
6751
6752 2014-06-08 Hui Zhu <hui@codesourcery.com>
6753
6754 * common/linux-ptrace.c (linux_disable_event_reporting): New
6755 function.
6756 * common/linux-ptrace.h (linux_disable_event_reporting): New
6757 declaration.
6758 * linux-nat.c (linux_child_follow_fork): Do a single step before
6759 detach.
6760
6761 2014-06-07 Keith Seitz <keiths@redhat.com>
6762
6763 Revert:
6764 PR c++/16253
6765 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6766 from symbol_matches_domain in symtab.c. All local callers
6767 of symbol_matches_domain updated.
6768 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6769 search STRUCT_DOMAIN.
6770 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6771 independently. standard_lookup will do that automatically.
6772 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6773 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6774 (cp_lookup_symbol_in_namespace): Likewise.
6775 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6776 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6777 may return a STRUCT_DOMAIN match.
6778 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6779 * cp-support.c: Include language.h.
6780 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6781 VAR_DOMAIN.
6782 * psymtab.c (match_partial_symbol): Compare the requested
6783 domain with the symbol's domain directly.
6784 (lookup_partial_symbol): Likewise.
6785 * symtab.c (lookup_symbol_in_language): Explain when/why
6786 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6787 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6788 appropriate languages.
6789 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6790 and moved to ada-lang.c
6791 (lookup_block_symbol): Explain that this function only returns
6792 symbol matching the requested DOMAIN.
6793 Compare the requested domain with the symbol's domain directly.
6794 (iterate_over_symbols): Compare the requested domain with the
6795 symbol's domain directly.
6796 * symtab.h (symbol_matches_domain): Remove.
6797
6798 2014-06-06 Doug Evans <xdje42@gmail.com>
6799
6800 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6801 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6802 (gdbscm_guile_version_is_at_least): Declare.
6803 (gdbscm_scm_string_to_int): Declare.
6804 * guile/guile.c (gdbscm_guile_major_version): New global.
6805 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6806 (guile_datadir): New static global.
6807 (gdbscm_guile_data_directory): New function.
6808 (initialize_scheme_side): Update.
6809 (misc_guile_functions): Add guile-data-directory.
6810 (initialize_gdb_module): Fetch guile version number.
6811 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6812 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6813 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6814 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6815 comments.
6816 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6817 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6818 * guile/scm-value.c (gdbscm_value_to_string): Only call
6819 scm_port_conversion_strategy if Guile version >= 2.0.6.
6820
6821 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6822
6823 * main.c (print_gdb_help): Add -q and --silent.
6824
6825 2014-06-06 Gary Benson <gbenson@redhat.com>
6826
6827 * common/signals.c: Remove preprocessor conditionals for
6828 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6829 SIGSEGV and SIGTERM.
6830 * proc-events.c: Likewise.
6831
6832 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6833
6834 * symfile.c (symfile_free_objfile): Remove restriction to
6835 OBJF_USERLOADED.
6836 * symfile-mem.c (symbol_file_add_from_memory): Call
6837 add_target_sections_of_objfile.
6838
6839 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6840
6841 * guile/scm-value.c (gdbscm_history_append_x): Use
6842 'vlscm_get_value_smob_arg_unsafe' instead of
6843 'vlscm_scm_to_value'.
6844
6845 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6846
6847 PR mi/15806
6848 * utils.c (printchar): Don't escape at all if quoter is NUL.
6849 Update function documentation to clarify effect of parameter
6850 QUOTER.
6851 * remote.c (escape_buffer): Pass '\\' as the quoter to
6852 fputstrn_unfiltered.
6853 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6854 generate the output.
6855 (mi_solib_unloaded): Same.
6856
6857 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6858
6859 * development.sh: Delete.
6860 * Makefile.in (config.status): Adjust dependency on development.sh.
6861 * configure.ac: Adjust development.sh source call.
6862 * configure: Regenerate.
6863
6864 2014-06-04 Doug Evans <xdje42@gmail.com>
6865
6866 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6867 is_scheme_bkpt, spec.
6868 (bpscm_make_breakpoint_smob): Initialize new members.
6869 (gdbscm_create_breakpoint_x): Split into two ...
6870 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6871 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6872 (scheme_function breakpoint_functions): Update.
6873 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6874 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6875 register-breakpoint!.
6876
6877 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6878
6879 PR server/17023
6880 * mem-break.c (z_type_supported): Return zero if
6881 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6882
6883 2014-06-04 Tom Tromey <tromey@redhat.com>
6884
6885 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6886 value_from_contents_and_address_unresolved.
6887 (ada_template_to_fixed_record_type_1): Likewise.
6888 (ada_which_variant_applies): Likewise.
6889 * value.h (value_from_contents_and_address_unresolved): Declare.
6890 * value.c (value_from_contents_and_address_unresolved): New
6891 function.
6892 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6893 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6894 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6895
6896 2014-06-04 Tom Tromey <tromey@redhat.com>
6897
6898 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6899
6900 2014-06-04 Tom Tromey <tromey@redhat.com>
6901
6902 * procfs.c (procfs_attach): Make "args" const.
6903 * windows-nat.c (windows_attach): Make "args" const.
6904 * nto-procfs.c (procfs_attach): Make "args" const.
6905 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6906 * go32-nat.c (go32_attach): Make "args" const.
6907 * gnu-nat.c (gnu_attach): Make "args" const.
6908 * darwin-nat.c (darwin_attach): Make "args" const.
6909 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6910 * linux-nat.c (linux_nat_attach): Make "args" const.
6911 * remote.c (extended_remote_attach_1, extended_remote_attach):
6912 Make "args" const.
6913 * target.h (struct target_ops) <to_attach>: Make "args" const.
6914 (find_default_attach): Likewise.
6915 * utils.c (parse_pid_to_attach): Make "args" const.
6916 * utils.h (parse_pid_to_attach): Update.
6917
6918 2014-06-04 Tom Tromey <tromey@redhat.com>
6919
6920 * target-delegates.c: Rebuild.
6921 * target.c (default_thread_address_space): New function.
6922 (target_thread_address_space): Simplify.
6923 * target.h (struct target_ops) <to_thread_address_space>: Add
6924 TARGET_DEFAULT_FUNC.
6925
6926 2014-06-04 Doug Evans <xdje42@gmail.com>
6927
6928 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6929
6930 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6931
6932 * record-btrace.c: Include event-loop.h and inf-loop.h.
6933 (record_btrace_resume_exec_dir)
6934 (record_btrace_async_inferior_event_handler)
6935 (record_btrace_handle_async_inferior_event): New.
6936 (record_btrace_open): Create async event handler.
6937 (record_btrace_close): Delete async event handler.
6938 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6939 Mark async event handler.
6940 (record_btrace_execution_direction): New.
6941 (init_record_btrace_ops): Initialize to_execution_direction.
6942
6943 2014-06-03 Doug Evans <xdje42@gmail.com>
6944
6945 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6946 (gdbscm_make_parameter): Ditto.
6947
6948 2014-06-03 Doug Evans <dje@google.com>
6949
6950 * exec.c (exec_close_1): Call clear_section_table instead of
6951 resize_section_table.
6952 (clear_section_table): New function.
6953 (resize_section_table): Make static. Rename arg num_added to
6954 adjustment.
6955 * exec.h (clear_section_table): Declare.
6956 (resize_section_table): Delete.
6957 * progspace.c (release_program_space): Call clear_section_table
6958 instead of resize_section_table.
6959
6960 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6961
6962 * NEWS (Python Scripting): Add entry about the new xmethods
6963 feature.
6964
6965 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6966
6967 * python/py-xmethods.c: New file.
6968 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6969 (objfpy_dealloc): XDECREF on the new xmethods field.
6970 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6971 field.
6972 (objfpy_get_xmethods): New function.
6973 (objfile_getset): New entry 'xmethods'.
6974 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6975 (pspy_dealloc): XDECREF on the new xmethods field.
6976 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6977 field.
6978 (pspy_get_xmethods): New function.
6979 (pspace_getset): New entry 'xmethods'.
6980 * python/python-internal.h: Add declarations for new functions.
6981 * python/python.c (_initialize_python): Invoke
6982 gdbpy_initialize_xmethods.
6983 * python/lib/gdb/__init__.py (xmethods): New
6984 attribute.
6985 * python/lib/gdb/xmethod.py: New file.
6986 * python/lib/gdb/command/xmethods.py: New file.
6987
6988 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6989
6990 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6991 best match method returned by find_overload_match is an xmethod.
6992 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6993 the best matching operator returned by find_overload_match is an
6994 xmethod.
6995 * valops.c: #include "extension.h".
6996 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6997 Return void. The list of matching source methods is returned in
6998 "fn_list" and a vector of matching debug method workers is
6999 returned in "xm_worker_vec". Update all callers.
7000 (value_find_oload_method_list): Likewise.
7001 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7002 non-NULL, then the index of the best matching method in this
7003 vector is returned. Update all callers.
7004 (find_overload_match): Include xmethods while performing overload
7005 resolution.
7006
7007 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7008
7009 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7010 * extension-priv.h (struct extension_language_ops): Add the
7011 xmethod interface.
7012 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7013 get_matching_xmethod_workers, get_xmethod_argtypes,
7014 invoke_xmethod, free_xmethod_worker,
7015 free_xmethod_worker_vec): New functions.
7016 * extension.h: #include "common/vec.h".
7017 New function declarations.
7018 (struct xmethod_worker): New struct.
7019 (VEC (xmethod_worker_ptr)): New vector type.
7020 (xmethod_worker_ptr): New typedef.
7021 (xmethod_worker_vec): Likewise.
7022 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7023 builtin_type.
7024 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7025 (struct builtin_type): New field "xmethod".
7026 * valarith.c (value_ptradd): Assert that the value argument is not
7027 lval_xcallable.
7028 * valops.c (value_must_coerce_to_target): Return 0 for
7029 lval_xcallable values.
7030 * value.c (struct value): New field XM_WORKER in the field
7031 LOCATION.
7032 (value_address, value_raw_address): Return 0 for lval_xcallable
7033 values.
7034 (set_value_address): Assert that the value is not an
7035 lval_xcallable.
7036 (value_free): Free the associated xmethod worker when freeing
7037 lval_xcallable values.
7038 (set_value_component_location): Assert that the WHOLE value is not
7039 lval_xcallable.
7040 (value_of_xmethod, call_xmethod): New functions.
7041 * value.h: Declare "struct xmethod_worker".
7042 Declare new functions value_of_xmethod, call_xmethod.
7043
7044 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7045 Pedro Alves <palves@redhat.com>
7046
7047 PR breakpoints/17000
7048 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7049 New function, extracted from software_breakpoint_inserted_here_p.
7050 (software_breakpoint_inserted_here_p): Replace factored out code
7051 by call to find_non_raw_software_breakpoint_inserted_here.
7052 (bp_target_info_copy_insertion_state): New function.
7053 (bkpt_insert_location): Handle the case of a single-step
7054 breakpoint already inserted at the same address.
7055 (bkpt_remove_location): Handle the case of a single-step
7056 breakpoint still inserted at the same address.
7057 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7058 breakpoint already inserted at the same address.
7059 (deprecated_remove_raw_breakpoint): Handle the case of a
7060 non-raw breakpoint still inserted at the same address.
7061 (find_single_step_breakpoint): New function, extracted from
7062 single_step_breakpoint_inserted_here_p.
7063 (find_single_step_breakpoint): New function,
7064 factored out from single_step_breakpoint_inserted_here_p.
7065 (single_step_breakpoint_inserted_here_p): Reimplement.
7066
7067 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7068
7069 Pushed by Joel Brobecker <brobecker@adacore.com>
7070 * source.c (show_substitute_path_command): Fix display of matching
7071 substitution rules.
7072
7073 2014-06-03 Gary Benson <gbenson@redhat.com>
7074
7075 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7076
7077 2014-06-02 Doug Evans <xdje42@gmail.com>
7078
7079 Add parameter support for Guile.
7080 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7081 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7082 (scm-param.o): New rule.
7083 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7084 (gdbscm_misc_error): Declare.
7085 (gdbscm_canonicalize_command_name): Declare.
7086 (gdbscm_scm_to_host_string): Declare.
7087 (gdbscm_scm_from_host_string): Declare.
7088 (gdbscm_initialize_parameters): Declare.
7089 * guile/guile.c (initialize_gdb_module): Call
7090 gdbscm_initialize_parameters.
7091 * guile/lib/gdb.scm: Export parameter symbols.
7092 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7093 cmdscm_canonicalize_name and made public. All callers updated.
7094 * guile/scm-exception.c (gdbscm_misc_error): New function.
7095 * guile/scm-param.c: New file.
7096 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7097 (gdbscm_scm_to_host_string): New function.
7098 (gdbscm_scm_from_host_string): New function.
7099 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7100
7101 2014-06-02 Doug Evans <xdje42@gmail.com>
7102
7103 Add command support for Guile.
7104 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7105 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7106 (scm-cmd.o): New rule.
7107 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7108 (gdbscm_user_error_p): Declare.
7109 (gdbscm_parse_command_name): Declare.
7110 (gdbscm_valid_command_class_p): Declare.
7111 (gdbscm_initialize_commands): Declare.
7112 * guile/guile.c (initialize_gdb_module): Call
7113 gdbscm_initialize_commands.
7114 * guile/lib/gdb.scm: Export command symbols.
7115 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7116 (throw-user-error): New function.
7117 * guile/scm-cmd.c: New file.
7118 * guile/scm-exception.c (user_error_symbol): New static global.
7119 (gdbscm_user_error_p): New function.
7120 (gdbscm_initialize_exceptions): Set user_error_symbol.
7121 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7122
7123 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7124
7125 * top.c (command_loop): Handle comments here...
7126 (command_line_input): ... not here.
7127
7128 2014-06-02 Doug Evans <xdje42@gmail.com>
7129
7130 Add progspace support for Guile.
7131 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7132 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7133 (scm-progspace.o): New rule.
7134 * guile/guile-internal.h (pspace_smob): New typedef.
7135 (psscm_pspace_smob_pretty_printers): Declare.
7136 (psscm_pspace_smob_from_pspace): Declare.
7137 (psscm_scm_from_pspace): Declare.
7138 * guile/guile.c (initialize_gdb_module): Call
7139 gdbscm_initialize_pspaces.
7140 * guile/lib/gdb.scm: Export progspace symbols.
7141 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7142 support.
7143 (append-pretty-printer!): Ditto.
7144 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7145 Implement.
7146 * guile/scm-progspace.c: New file.
7147
7148 2014-06-03 Alan Modra <amodra@gmail.com>
7149
7150 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7151 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7152
7153 2014-06-02 Doug Evans <dje@google.com>
7154
7155 Add support for skeletonless type units.
7156 * dwarf2read.c (struct dwarf2_per_objfile): New member
7157 n_allocated_type_units.
7158 (struct dwarf2_per_objfile) <tu_stats>: New member
7159 nr_all_type_units_reallocs.
7160 (create_signatured_type_table_from_index): Initialize
7161 n_allocated_type_units
7162 (create_all_type_units): Ditto.
7163 (add_type_unit): Move up in file. New arg slot.
7164 All callers updated. Increase space for all_type_units more
7165 efficiently.
7166 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7167 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7168 (lookup_dwp_signatured_type): Ditto.
7169 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7170 All callers updated.
7171 (build_type_psymtabs_1): Leave type_unit_groups as
7172 NULL if no TUs present.
7173 (print_tu_stats): New function.
7174 (process_skeletonless_type_unit): New function.
7175 (process_dwo_file_for_skeletonless_type_units): New
7176 function.
7177 (process_skeletonless_type_units): New function.
7178 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7179 Call print tu_stats if debugging enabled.
7180
7181 2014-06-02 Pedro Alves <palves@redhat.com>
7182
7183 * breakpoint.c (build_target_command_list): Don't build a command
7184 list if we have any duplicate location that isn't a dprintf.
7185
7186 2014-06-02 Pedro Alves <palves@redhat.com>
7187
7188 * breakpoint.c (dprintf_breakpoint_hit): New function.
7189 (initialize_breakpoint_ops): Install it as dprintf's
7190 breakpoint_hit method.
7191
7192 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7193
7194 * source.c (substitute_path_rule_matches): Simplify using
7195 filename_ncmp instead of FILENAME_CMP.
7196
7197 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7198
7199 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7200
7201 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7202
7203 * configure.ac: When Guile is available, check for the
7204 availability of 'scm_new_smob'.
7205 * configure, config.h.in: Regenerate.
7206 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7207 function.
7208
7209 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7210
7211 * frame.c (struct frame_info): Add stop_string field.
7212 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7213 (get_prev_frame_always): Old content moved into
7214 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7215 TRY_CATCH, handle MEMORY_ERROR exceptions.
7216 (frame_stop_reason_string): New function definition.
7217 * frame.h (unwind_stop_reason_to_string): Extend comment to
7218 mention frame_stop_reason_string.
7219 (frame_stop_reason_string): New function declaration.
7220 * stack.c (frame_info): Switch to frame_stop_reason_string.
7221 (backtrace_command_1): Switch to frame_stop_reason_string.
7222 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7223 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7224 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7225
7226 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7227
7228 * frame.c (frame_stop_reason_string): Rename to ...
7229 (unwind_stop_reason_to_string): this.
7230 * frame.h (frame_stop_reason_string): Rename to ...
7231 (unwind_stop_reason_to_string): this.
7232 * stack.c (frame_info): Update call to frame_stop_reason_string.
7233 (backtrace_command_1): Likewise.
7234 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7235 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7236
7237 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7238
7239 * frame.c (remove_prev_frame): New function.
7240 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7241 remove_prev_frame.
7242
7243 2014-05-29 Pedro Alves <palves@redhat.com>
7244
7245 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7246 and make it const. When a single-step decays to a continue,
7247 clear 'step', not 'hw_step'. Pass whether the caller wanted
7248 to step to user_visible_resume_ptid, not what we ask the
7249 target to do.
7250
7251 2014-05-29 Pedro Alves <palves@redhat.com>
7252
7253 * infrun.c (process_event_stop_test, handle_step_into_function)
7254 (handle_step_into_function_backward): Adjust.
7255 Don't set the even thread's stop_step and call stop_waiting before
7256 calling end_stepping_range. Instead do that ...
7257 (end_stepping_range): ... here. Take an ecs pointer parameter.
7258
7259 2014-05-29 Pedro Alves <palves@redhat.com>
7260
7261 * infrun.c (stop_stepping): Rename to ...
7262 (stop_waiting): ... this.
7263 (proceed): Update comment.
7264 (process_event_stop_test, handle_inferior_event)
7265 (handle_signal_stop, handle_step_into_function)
7266 (handle_step_into_function_backward): Update.
7267
7268 2014-05-29 Pedro Alves <palves@redhat.com>
7269
7270 * infcall.c (run_inferior_call): Don't check whether the current
7271 thread is running after the proceed call.
7272
7273 2014-05-29 Pedro Alves <palves@redhat.com>
7274 Tom Tromey <tromey@redhat.com>
7275
7276 * NEWS: Mention "maint set target-async", "set mi-async", and that
7277 background execution commands are now always available.
7278 * target.h (target_async_permitted): Update comment.
7279 * target.c (target_async_permitted, target_async_permitted_1):
7280 Default to 1.
7281 (set_target_async_command): Rename to ...
7282 (maint_set_target_async_command): ... this.
7283 (show_target_async_command): Rename to ...
7284 (maint_show_target_async_command): ... this.
7285 (_initialize_target): Adjust.
7286 * infcmd.c (prepare_execution_command): Make extern.
7287 * inferior.h (prepare_execution_command): Declare.
7288 * infrun.c (set_observer_mode): Leave target async alone.
7289 * mi/mi-interp.c (mi_interpreter_init): Install
7290 mi_on_sync_execution_done as sync_execution_done observer.
7291 (mi_on_sync_execution_done): New function.
7292 (mi_execute_command_input_handler): Don't print the prompt if we
7293 just started a synchronous command with an async target.
7294 (mi_on_resume): Check sync_execution before printing prompt.
7295 * mi/mi-main.h (mi_async_p): Declare.
7296 * mi/mi-main.c: Include gdbcmd.h.
7297 (mi_async_p): New function.
7298 (mi_async, mi_async_1): New globals.
7299 (set_mi_async_command, show_mi_async_command, mi_async): New
7300 functions.
7301 (exec_continue): Call prepare_execution_command.
7302 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7303 (mi_execute_async_cli_command): Use mi_async_p.
7304 (_initialize_mi_main): Install "set mi-async". Make
7305 "target-async" a deprecated alias.
7306
7307 2014-05-29 Pedro Alves <palves@redhat.com>
7308
7309 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7310 (_initialize_cli_interp): Adjust.
7311 * event-loop.c: Include "observer.h".
7312 (start_event_loop): Notify 'command_error' observers instead of
7313 calling display_gdb_prompt. Remove FIXME comment.
7314 * event-top.c (display_gdb_prompt): Remove call into the
7315 interpreters.
7316 * inf-loop.c: Include "observer.h".
7317 (inferior_event_handler): Notify 'command_error' observers instead
7318 of calling display_gdb_prompt.
7319 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7320 observers instead of calling display_gdb_prompt.
7321 * interps.c (interp_set): Don't call display_gdb_prompt.
7322 (current_interp_display_prompt_p): Delete.
7323 * interps.h (interp_prompt_p): Delete declaration.
7324 (interp_prompt_p_ftype): Delete.
7325 (struct interp_procs) <prompt_proc_p>: Delete field.
7326 (current_interp_display_prompt_p): Delete declaration.
7327 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7328 (_initialize_mi_interp): Adjust.
7329 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7330 'command_error' observers.
7331 (tui_on_sync_execution_done, tui_on_command_error): New
7332 functions.
7333 (tui_display_prompt_p): Delete.
7334 (_initialize_tui_interp): Adjust.
7335
7336 2014-05-29 Pedro Alves <palves@redhat.com>
7337
7338 PR gdb/13860
7339 * cli/cli-interp.c: Include infrun.h and observer.h.
7340 (cli_uiout, cli_interp): New globals.
7341 (cli_on_signal_received, cli_on_end_stepping_range)
7342 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7343 functions.
7344 (cli_interpreter_init): Install them as 'end_stepping_range',
7345 'signal_received' 'signal_exited', 'exited' and 'no_history'
7346 observers.
7347 (_initialize_cli_interp): Remove cli_interp local.
7348 * infrun.c (handle_inferior_event): Call the several stop reason
7349 observers instead of printing the stop reason directly.
7350 (end_stepping_range): New function.
7351 (print_end_stepping_range_reason, print_signal_exited_reason)
7352 (print_exited_reason, print_signal_received_reason)
7353 (print_no_history_reason): Make static, and add an uiout
7354 parameter. Print to that instead of to CURRENT_UIOUT.
7355 * infrun.h (print_end_stepping_range_reason)
7356 (print_signal_exited_reason, print_exited_reason)
7357 (print_signal_received_reason print_no_history_reason): New
7358 declarations.
7359 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7360 'mi_uiout'.
7361 <cli_uiout>: New field.
7362 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7363 uiout for CLI output. Install 'signal_received',
7364 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7365 observers.
7366 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7367 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7368 (mi_on_no_history): New functions.
7369 (ui_out_free_cleanup): Delete function.
7370 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7371 instead use the one already stored in the MI interpreter data.
7372 (mi_ui_out): Adjust.
7373 * tui/tui-interp.c: Include infrun.h and observer.h.
7374 (tui_interp): New global.
7375 (tui_on_signal_received, tui_on_end_stepping_range)
7376 (tui_on_signal_exited, tui_on_exited)
7377 (tui_on_no_history): New functions.
7378 (tui_init): Install them as 'end_stepping_range',
7379 'signal_received' 'signal_exited', 'exited' and 'no_history'
7380 observers.
7381 (_initialize_tui_interp): Delete tui_interp local.
7382
7383 2014-05-29 Pedro Alves <palves@redhat.com>
7384
7385 PR gdb/15713
7386 * linux-nat.c (linux_nat_resume_callback): Rename the second
7387 parameter to 'except'. Skip LP if it points to EXCEPT.
7388 (linux_nat_resume): Don't mark the event lwp as not stopped
7389 before resuming sibling lwps. Instead ask
7390 linux_nat_resume_callback to skip the event lwp. Mark it as not
7391 stopped after actually resuming it.
7392 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7393 resuming it.
7394 (wait_lwp): Mark the lwp as stopped here.
7395 (stop_wait_callback): Mark the lwp as not stopped right after
7396 resuming it. Don't mark lwps as stopped here.
7397 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7398 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7399
7400 2014-05-29 Pedro Alves <palves@redhat.com>
7401
7402 PR PR15693
7403 * infrun.c (resume): Determine how much to resume depending on
7404 whether the caller wanted a step, not whether we can hardware step
7405 the target. Mark all threads that we intend to run as running,
7406 unless we're calling an inferior function.
7407 (normal_stop): If the thread is running an infcall, don't finish
7408 thread state.
7409 * target.c (target_resume): Don't mark threads as running here.
7410
7411 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7412
7413 * serial.c (_initialize_serial): Remove support for
7414 the "set remotebaud" and "show remotebaud" commands.
7415 * NEWS: Add entry documenting the removal of that command.
7416
7417 2014-05-28 Yao Qi <yao@codesourcery.com>
7418
7419 * charset.c: Fix typo in comments.
7420
7421 2014-05-27 Gary Benson <gbenson@redhat.com>
7422
7423 * utils.c (internal_vproblem): Prompt for a bug report.
7424
7425 2014-05-26 Andy Wingo <wingo@igalia.com>
7426
7427 * guile/scm-arch.c (arscm_mark_arch_smob):
7428 * guile/scm-block.c (bkscm_mark_block_smob)
7429 (bkscm_mark_block_syms_progress_smob):
7430 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7431 * guile/scm-exception.c (exscm_mark_exception_smob):
7432 * guile/scm-frame.c (frscm_mark_frame_smob):
7433 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7434 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7435 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7436 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7437 (ppscm_mark_pretty_printer_worker_smob):
7438 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7439 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7440 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7441 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7442 mark functions.
7443 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7444 function.
7445
7446 2014-05-26 Andy Wingo <wingo@igalia.com>
7447 Doug Evans <xdje42@gmail.com>
7448
7449 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7450 empty_base_class. All uses updated.
7451 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7452 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7453 Adapt all callers.
7454 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7455 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7456 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7457 (gdbscm_gsmob_has_property_p, add_property_name)
7458 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7459 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7460 (gdb-object-has-property?, gdb-object-properties): Remove.
7461 (gdb-object-kind): Renamed from gsmob-kind.
7462
7463 2014-05-26 Andy Wingo <wingo@igalia.com>
7464
7465 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7466 * configure: Regenerate.
7467
7468 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7469
7470 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7471
7472 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7473
7474 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7475 (replay_memory_access_read_only, replay_memory_access_read_write)
7476 (replay_memory_access_types, replay_memory_access)
7477 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7478 (cmd_set_record_btrace, cmd_show_record_btrace)
7479 (cmd_show_replay_memory_access): New.
7480 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7481 (record_btrace_remove_breakpoint): Replace
7482 record_btrace_allow_memory_access with replay_memory_access.
7483 (_initialize_record_btrace): Add commands.
7484 * NEWS: Announce it.
7485
7486 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7487
7488 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7489
7490 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7491
7492 * MAINTAINERS (Write After Approval): Move self back from
7493 paper trail.
7494
7495 2014-05-22 Pedro Alves <palves@redhat.com>
7496
7497 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7498 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7499 (disable_randomization, enum exec_direction_kind)
7500 (execution_direction, stop_registers, start_remote)
7501 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7502 (wait_for_inferior, normal_stop, get_last_target_status)
7503 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7504 (insert_step_resume_breakpoint_at_sal)
7505 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7506 (set_step_info, print_stop_event, signal_stop_state)
7507 (signal_print_state, signal_pass_state, signal_stop_update)
7508 (signal_print_update, signal_pass_update)
7509 (update_signals_program_target, clear_exit_convenience_vars)
7510 (displaced_step_dump_bytes, update_observer_mode)
7511 (signal_catch_update, gdb_signal_from_command): Move
7512 declarations ...
7513 * infrun.h: ... to this new file.
7514 * amd64-tdep.c: Include infrun.h.
7515 * annotate.c: Include infrun.h.
7516 * arch-utils.c: Include infrun.h.
7517 * arm-linux-tdep.c: Include infrun.h.
7518 * arm-tdep.c: Include infrun.h.
7519 * break-catch-sig.c: Include infrun.h.
7520 * breakpoint.c: Include infrun.h.
7521 * common/agent.c: Include infrun.h instead of inferior.h.
7522 * corelow.c: Include infrun.h.
7523 * event-top.c: Include infrun.h.
7524 * go32-nat.c: Include infrun.h.
7525 * i386-tdep.c: Include infrun.h.
7526 * inf-loop.c: Include infrun.h.
7527 * infcall.c: Include infrun.h.
7528 * infcmd.c: Include infrun.h.
7529 * infrun.c: Include infrun.h.
7530 * linux-fork.c: Include infrun.h.
7531 * linux-nat.c: Include infrun.h.
7532 * linux-thread-db.c: Include infrun.h.
7533 * monitor.c: Include infrun.h.
7534 * nto-tdep.c: Include infrun.h.
7535 * procfs.c: Include infrun.h.
7536 * record-btrace.c: Include infrun.h.
7537 * record-full.c: Include infrun.h.
7538 * remote-m32r-sdi.c: Include infrun.h.
7539 * remote-mips.c: Include infrun.h.
7540 * remote-notif.c: Include infrun.h.
7541 * remote-sim.c: Include infrun.h.
7542 * remote.c: Include infrun.h.
7543 * reverse.c: Include infrun.h.
7544 * rs6000-tdep.c: Include infrun.h.
7545 * s390-linux-tdep.c: Include infrun.h.
7546 * solib-irix.c: Include infrun.h.
7547 * solib-osf.c: Include infrun.h.
7548 * solib-svr4.c: Include infrun.h.
7549 * target.c: Include infrun.h.
7550 * top.c: Include infrun.h.
7551 * windows-nat.c: Include infrun.h.
7552 * mi/mi-interp.c: Include infrun.h.
7553 * mi/mi-main.c: Include infrun.h.
7554 * python/py-threadevent.c: Include infrun.h.
7555
7556 2014-05-22 Pedro Alves <palves@redhat.com>
7557
7558 * infrun.c (handle_inferior_event): Store the exit code for
7559 --return-child-result here, instead of ...
7560 (print_exited_reason): ... here.
7561
7562 2014-05-21 Pedro Alves <palves@redhat.com>
7563
7564 PR gdb/13860
7565 * gdbthread.h (struct thread_control_state): New field
7566 `command_interp'.
7567 * infrun.c (follow_fork): Copy the new thread control field to the
7568 child fork thread.
7569 (clear_proceed_status_thread): Clear the new thread control field.
7570 (proceed): Set the new thread control field.
7571 * interps.h (command_interp): Declare.
7572 * interps.c (command_interpreter): New global.
7573 (command_interp): New function.
7574 (interp_exec): Set `command_interpreter' while here.
7575 * cli-out.c (cli_uiout_dtor): New function.
7576 (cli_ui_out_impl): Install it.
7577 * mi/mi-interp.c: Include cli-out.h.
7578 (mi_cmd_interpreter_exec): Add comment.
7579 (restore_current_uiout_cleanup): New function.
7580 (ui_out_free_cleanup): New function.
7581 (mi_on_normal_stop): If finishing an execution command started by
7582 a CLI command, or any kind of breakpoint-like event triggered,
7583 print the stop event to the output (CLI) stream.
7584 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7585
7586 2014-05-21 Pedro Alves <palves@redhat.com>
7587
7588 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7589 current source line having changed.
7590 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7591 * infrun.c (normal_stop): Adjust call to
7592 set_current_sal_from_frame.
7593 * source.c (clear_lines_listed_range): New function.
7594 (set_current_source_symtab_and_line, identify_source_line): Clear
7595 the lines listed range.
7596 (line_info): Handle the first "info line" after the current source
7597 line having changed.
7598 * stack.c (print_stack_frame): Remove center handling.
7599 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7600 center sal.line.
7601
7602 2014-05-21 Pedro Alves <palves@redhat.com>
7603
7604 * inf-child.c (inf_child_mourn_inferior): New function.
7605 * inf-child.h (inf_child_mourn_inferior): New declaration.
7606 * darwin-nat.c (darwin_mourn_inferior): Use
7607 inf_child_mourn_inferior.
7608 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7609 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7610 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7611 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7612 * windows-nat.c (windows_mourn_inferior): Likewise.
7613
7614 2014-05-21 Doug Evans <xdje42@gmail.com>
7615
7616 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7617
7618 2014-05-21 Doug Evans <xdje42@gmail.com>
7619
7620 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7621 (gdbscm_out_of_range_error): Ditto.
7622 (gdbscm_memory_error): Ditto.
7623 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7624 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7625 (gdbscm_out_of_range_error): Update.
7626 (gdbscm_memory_error): Update.
7627 (gdbscm_scm_to_target_string_unsafe): Delete.
7628
7629 2014-05-21 Pedro Alves <palves@redhat.com>
7630
7631 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7632 globals.
7633 (inf_child_open_target): New function.
7634 (inf_child_open): Use inf_child_open_target to push the target
7635 instead of erroring out.
7636 (inf_child_disconnect, inf_child_close)
7637 (inf_child_maybe_unpush_target): New functions.
7638 (inf_child_target): Install inf_child_disconnect and
7639 inf_child_close. Store a pointer to the returned object.
7640 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7641 declarations.
7642 * target.c (auto_connect_native_target): New global.
7643 (show_default_run_target): New function.
7644 (find_default_run_target): Return NULL if automatically connecting
7645 to the native target is disabled.
7646 (_initialize_target): Install set/show auto-connect-native-target.
7647 * NEWS: Mention "set auto-connect-native-target", and "target
7648 native".
7649 * linux-nat.c (super_close): New global.
7650 (linux_nat_close): Call super_close.
7651 (linux_nat_add_target): Store a pointer to the base class's
7652 to_close method.
7653 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7654 inf_child_maybe_unpush.
7655 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7656 already pushed.
7657 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7658 the inferior. Use inf_child_maybe_unpush_target.
7659 (inf_ttrace_attach): Don't push the target if it is already
7660 pushed.
7661 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7662 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7663 after mourning the inferior. Use inf_child_maybe_unpush_target.
7664 (darwin_attach_pid): Don't push the target if it is already
7665 pushed.
7666 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7667 mourning the inferior. Use inf_child_maybe_unpush_target.
7668 (gnu_detach): Use inf_child_maybe_unpush_target.
7669 * go32-nat.c (go32_create_inferior): Don't push the target if it
7670 is already pushed.
7671 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7672 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7673 (procfs_open): Rename to ...
7674 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7675 comments. Can target_preopen before changing node. Call
7676 inf_child_open_target to push the target explicitly.
7677 (procfs_attach): Don't push the target if it is already pushed.
7678 (procfs_detach): Use inf_child_maybe_unpush_target.
7679 (procfs_create_inferior): Don't push the target if it is already
7680 pushed.
7681 (nto_native_ops): New global.
7682 (procfs_open): Reimplement.
7683 (procfs_native_open): New function.
7684 (init_procfs_targets): Install procfs_native_open as to_open of
7685 "target native". Store a pointer to the "native" target in
7686 nto_native_ops.
7687 * procfs.c (procfs_attach): Don't push the target if it is already
7688 pushed.
7689 (procfs_detach): Use inf_child_maybe_unpush_target.
7690 (procfs_mourn_inferior): Only unpush the target after mourning the
7691 inferior. Use inf_child_maybe_unpush_target.
7692 (procfs_init_inferior): Don't push the target if it is already
7693 pushed.
7694 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7695 if it is already pushed.
7696
7697 2014-05-21 Pedro Alves <palves@redhat.com>
7698
7699 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7700 and "procfs" targets are now called "native" instead.
7701
7702 2014-05-21 Pedro Alves <palves@redhat.com>
7703
7704 * go32-nat.c (go32_open): Delete.
7705 (go32_target): Don't override the to_open method.
7706
7707 2014-05-21 Pedro Alves <palves@redhat.com>
7708
7709 * nto-procfs.c (procfs_can_run): New function.
7710 (nto_procfs_ops): New global.
7711 (init_procfs_targets): New, based on procfs_target. Install
7712 "target native" in addition to "target procfs".
7713 (_initialize_procfs): Call init_procfs_targets instead of adding
7714 the target here.
7715
7716 2014-05-21 Pedro Alves <palves@redhat.com>
7717
7718 * windows-nat.c (windows_target): Don't override to_shortname,
7719 to_longname or to_doc.
7720
7721 2014-05-21 Pedro Alves <palves@redhat.com>
7722
7723 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7724 to_doc.
7725
7726 2014-05-21 Pedro Alves <palves@redhat.com>
7727
7728 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7729 to_shortname, to_longname or to_doc.
7730
7731 2014-05-21 Pedro Alves <palves@redhat.com>
7732
7733 * go32-nat.c (go32_target): Don't override to_shortname,
7734 to_longname or to_doc.
7735
7736 2014-05-21 Pedro Alves <palves@redhat.com>
7737
7738 * inf-child.c (inf_child_open): Remove mention of "child".
7739 (inf_child_target): Rename target to "native" instead of "child".
7740
7741 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7742
7743 * Makefile.in (SFILES): Delete "regset.c".
7744 (COMMON_OBS): Delete "regset.o".
7745 * regset.c: Remove.
7746 * regset.h (regset_alloc): Delete prototype.
7747
7748 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7749
7750 * sparc-linux-tdep.c (sparc32_linux_gregset)
7751 (sparc32_linux_fpregset): New static regset structures.
7752 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7753 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7754 'fpregset' fields.
7755 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7756 (sparc64_linux_fpregset): New static regset structures.
7757 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7758 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7759 New static regset structures.
7760 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7761 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7762 New static regset structures.
7763 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7764 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7765 New static regset structures.
7766 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7767 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7768 New static regset structures.
7769 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7770
7771 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7772
7773 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7774 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7775 register maps ("regmaps") from "*regset" to "*regmap". Do this
7776 for all regmap types and variables.
7777 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7778 (sparc32_linux_supply_core_gregset)
7779 (sparc32_linux_collect_core_gregset)
7780 (sparc32_linux_supply_core_fpregset)
7781 (sparc32_linux_collect_core_fpregset): Likewise.
7782 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7783 (sparc_gregmap, sparc_fpregmap): ... these.
7784 (sparc_supply_gregset, sparc_collect_gregset)
7785 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7786 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7787 (_initialize_sparc_nat): Rename regmaps.
7788 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7789 (sparc_gregmap, sparc_fpregmap): ... these.
7790 (sparc_supply_gregset, sparc_collect_gregset)
7791 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7792 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7793 Rename macros to...
7794 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7795 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7796 Likewise.
7797 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7798 Rename to...
7799 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7800 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7801 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7802 regmaps.
7803 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7804 (sparc32_bsd_fpregset): Rename to...
7805 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7806 (sparc32_bsd_fpregmap): ... these.
7807 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7808 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7809 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7810 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7811 (struct sparc_gregmap, struct sparc_fpregmap)
7812 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7813 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7814 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7815 (sparc32_supply_regset, sparc32_collect_gregset)
7816 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7817 prototypes.
7818 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7819 (sparc64_linux_ptrace_gregmap): ... this.
7820 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7821 (_initialize_sparc64_linux_nat): Rename regmaps.
7822 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7823 (sparc64_linux_core_gregmap): ... this.
7824 (sparc64_linux_supply_core_gregset)
7825 (sparc64_linux_collect_core_gregset)
7826 (sparc64_linux_supply_core_fpregset)
7827 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7828 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7829 (sparc64_sol2_fpregset): Rename to...
7830 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7831 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7832 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7833 regmaps.
7834 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7835 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7836 (sparc64_bsd_fpregset): Rename to...
7837 (struct sparc_gregmap, sparc64_sol2_gregmap)
7838 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7839 (sparc64_bsd_fpregmap): ... these.
7840 (sparc64_supply_gregset, sparc64_collect_gregset)
7841 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7842 prototypes.
7843 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7844 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7845 (sparc64fbsd_gregmap): ... this.
7846 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7847 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7848 Rename regmaps.
7849 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7850 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7851 (sparc64nbsd_collect_fpregset): Likewise.
7852 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7853 (sparc64nbsd_gregmap): ... this.
7854 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7855 regmaps.
7856 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7857 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7858 (sparc64obsd_gregmap): ... this.
7859 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7860 regmaps.
7861 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7862 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7863 (sparc32nbsd_gregmap): ... this.
7864 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7865 regmaps.
7866
7867 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7868
7869 * score-tdep.c (score7_linux_gregset): New static regset
7870 structure.
7871 (score7_linux_regset_from_core_section): Remove dynamic regset
7872 allocation.
7873 (score_gdbarch_init): Drop allocation of tdep structure.
7874 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7875
7876 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7877
7878 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7879 regset structures.
7880 (am33_regset_from_core_section): Remove dynamic regset
7881 allocations.
7882
7883 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7884
7885 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7886 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7887 structures.
7888 (mips_linux_regset_from_core_section): Remove dynamic regset
7889 allocations.
7890 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7891 'gregset64', 'fpregset', and 'fpregset64'.
7892 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7893 deleted tdep fields.
7894
7895 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7896
7897 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7898 regset structures.
7899 (amd64_regset_from_core_section): Remove dynamic regset
7900 allocations.
7901 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7902 structure.
7903 (amd64obsd_regset_from_core_section): Remove dynamic regset
7904 allocation.
7905 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7906 Likewise.
7907 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7908 x86-common regset supply function.
7909 * i386-tdep.c (i386_collect_gregset): Make static.
7910 (i386_gregset): New global regset structure.
7911 (i386_fpregset, i386_xstateregset): New static regset structures.
7912 (i386_regset_from_core_section): Remove dynamic regset
7913 allocations.
7914 (i386_gdbarch_init): Remove initialization of tdep fields
7915 'gregset', 'fpregset', and 'xstateregset'.
7916 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7917 'fpregset', and 'xstateregset'.
7918 (i386_collect_gregset): Remove prototype.
7919 (i386_gregset): New declaration.
7920 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7921 structure.
7922 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7923 allocation.
7924
7925 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7926
7927 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7928 (arm_linux_vfpregset): New static regset structures.
7929 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7930 regset structures.
7931 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7932 and 'vfpregset' fields.
7933
7934 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7935
7936 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7937 (aarch64_linux_fpregset): New static regset structures.
7938 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7939 of regset structures.
7940 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7941 'fpregset' fields.
7942
7943 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7944
7945 * regset.h (struct regset): Remove gdbarch field.
7946 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7947 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7948 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7949 Likewise.
7950 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7951 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7952 (ppc32_linux_vsxregset): Likewise.
7953 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7954 via the regcache instead of the regset.
7955 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7956 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7957 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7958 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7959 Likewise.
7960
7961 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7962
7963 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7964 Constify structures.
7965 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7966 (alphanbsd_aout_gregset): Likewise.
7967 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7968 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7969 Likewise.
7970 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7971 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7972 Likewise.
7973 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7974 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7975 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7976 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7977 * m88k-tdep.c (m88k_gregset): Likewise.
7978 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7979 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7980 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7981 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7982 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7983 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7984 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7985 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7986 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7987 Likewise.
7988 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7989 * sh-tdep.h (sh_corefile_gregset): Likewise.
7990 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7991 * vax-tdep.c (vax_gregset): Likewise.
7992
7993 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7994
7995 Fix TLS access for -static -pthread.
7996 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7997 (try_thread_db_load_1): Initialize it.
7998 (thread_db_get_thread_local_address): Call it if LM is zero.
7999 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8000 * target.h (struct target_ops) (to_get_thread_local_address): Add
8001 load_module_addr comment.
8002
8003 2014-05-21 Pedro Alves <palves@redhat.com>
8004
8005 * dcache.c (dcache_read_memory_partial): If reading the cache line
8006 fails, fallback to reading just the memory the caller wanted.
8007
8008 2014-05-20 Doug Evans <dje@google.com>
8009
8010 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8011 instead of get_current_arch.
8012
8013 2014-05-20 Pedro Alves <palves@redhat.com>
8014
8015 * NEWS: Mention that compare-sections now works with all targets.
8016
8017 * remote.c (PACKET_qCRC): New enum value.
8018 (remote_verify_memory): Don't send qCRC if the target has no
8019 execution. Use packet_support/packet_ok. If the target doesn't
8020 support the qCRC packet, fallback to a deep memory copy.
8021 (compare_sections_command): Say "target image" instead of "remote
8022 executable".
8023 (_initialize_remote): Add PACKET_qCRC to the list of config
8024 packets that have no associated command. Extend comment.
8025 * target.c (simple_verify_memory, default_verify_memory): New
8026 function.
8027 * target.h (struct target_ops) <to_verify_memory>: Default to
8028 default_verify_memory.
8029 (simple_verify_memory): New declaration.
8030 * target-delegates.c: Regenerate.
8031
8032 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8033
8034 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8035
8036 2014-05-20 Hui Zhu <hui@codesourcery.com>
8037 Yao Qi <yao@codesourcery.com>
8038
8039 PR backtrace/16558
8040 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8041 and change address of sp and pc.
8042
8043 2014-05-19 Tom Tromey <tromey@redhat.com>
8044
8045 * gdbtypes.c (rank_function): Use XNEWVEC.
8046 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8047
8048 2014-05-19 Doug Evans <dje@google.com>
8049
8050 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8051 build_type_unit_groups and moved closer to only caller. Remove
8052 arguments. All references updated. Remove outdated .gdb_index
8053 comment.
8054 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8055 build_type_psymtabs_1.
8056
8057 2014-05-19 Doug Evans <dje@google.com>
8058
8059 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8060 n_type_unit_groups, all_type_unit_groups. All uses removed.
8061 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8062 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8063 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8064 (add_type_unit_group_to_table): Delete.
8065
8066 2014-05-19 Doug Evans <dje@google.com>
8067
8068 * eval.c (evaluate_subexp_standard): Add some comments.
8069
8070 2014-05-17 Doug Evans <xdje42@gmail.com>
8071
8072 * progspace.c (remove_program_space): Delete, unused.
8073 * progspace.h (remove_program_space): Ditto.
8074
8075 2014-05-17 Doug Evans <xdje42@gmail.com>
8076
8077 * inferior.c (prune_inferiors): Fix comment.
8078 (remove_inferior_command): Call prune_program_spaces.
8079
8080 2014-05-16 Doug Evans <dje@google.com>
8081
8082 New command line option -D.
8083 * NEWS: Mention it.
8084 * main.c (set_gdb_data_directory): New function.
8085 (captured_main): Recognize -D. Flag error for --data-directory "".
8086 Call set_gdb_data_directory.
8087 (print_gdb_help): Print --data-directory, -D.
8088 * main.h (set_gdb_data_directory): Declare.
8089 * top.c (staged_gdb_datadir): New static global.
8090 (set_gdb_datadir): Call set_gdb_data_directory
8091 (show_gdb_datadir): New function.
8092 (init_main): Update init of data-directory parameter.
8093
8094 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8095
8096 Import the "dirfd" gnulib module.
8097 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8098 * gnulib/aclocal.m4: Update.
8099 * gnulib/config.in: Update.
8100 * gnulib/configure: Update.
8101 * gnulib/import/Makefile.am: Update.
8102 * gnulib/import/Makefile.in: Update.
8103 * gnulib/import/dirfd.c: New.
8104 * gnulib/import/m4/dirfd.m4: New.
8105 * gnulib/import/m4/gnulib-cache.m4: Update.
8106 * gnulib/import/m4/gnulib-comp.m4: Update.
8107
8108 2014-05-16 Pierre Muller <muller@sourceware.org>
8109 Yao Qi <yao@codesourcery.com>
8110
8111 * valprint.c (print_wchar): Move the code on checking whether
8112 W is a printable wide char to the default branch of switch
8113 statement below. Call wchar_printable instead of gdb_iswprint.
8114
8115 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8116
8117 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8118 ldr.w and ldrd instructions.
8119
8120 2014-05-15 Doug Evans <dje@google.com>
8121
8122 * dwarf2read.c (read_structure_type): Delete outdated comments.
8123
8124 2014-05-14 Tom Tromey <tromey@redhat.com>
8125
8126 * macrocmd.c (print_macro_definition): Reindent.
8127
8128 2014-05-13 Doug Evans <xdje42@gmail.com>
8129
8130 * python/py-cmd.c (cmdpy_completer): Add comment.
8131 (completers): Make const.
8132
8133 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8134
8135 * infrun.c (resume): Remove should_resume (unused). Move up
8136 declaration of resume_ptid.
8137
8138 2014-05-13 Tom Tromey <tromey@redhat.com>
8139
8140 * language.h (unop_type_check): Remove.
8141 (binop_type_check): Don't declare.
8142
8143 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8144
8145 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8146 call to regcache_raw_collect.
8147
8148 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8149
8150 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8151 mi_console->quote as the quoting character.
8152
8153 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8154
8155 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8156
8157 2014-04-29 Tom Tromey <tromey@redhat.com>
8158
8159 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8160 "show debug varobj".
8161
8162 2014-05-07 Kyle McMartin <kyle@redhat.com>
8163
8164 Pushed by Joel Brobecker <brobecker@adacore.com>.
8165 * aarch64-tdep.c (aarch64_software_single_step): New function.
8166 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8167 with aarch64_software_single_step.
8168
8169 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8170
8171 GDB 7.7.1 released.
8172
8173 2014-05-05 Keith Seitz <keiths@redhat.com>
8174
8175 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8176 variable or history value is successfully parsed.
8177
8178 2014-05-05 Yao Qi <yao@codesourcery.com>
8179 Pedro Alves <palves@redhat.com>
8180
8181 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8182 address of blocks that intersects the requested range. Trim
8183 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8184 sections.
8185 * ctf.c (ctf_xfer_partial): Likewise.
8186
8187 2014-05-05 Yao Qi <yao@codesourcery.com>
8188
8189 * printcmd.c (display_command): Remove the check to
8190 target_has_execution.
8191
8192 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8193
8194 * ppcobsd-nat.c: Include "obsd-nat.h".
8195 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8196 add_target.
8197 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8198
8199 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8200
8201 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8202 and 16-bit signed and unsigned arguments. Update comment.
8203 (stap_parse_probe_arguments): Extend code to handle such
8204 arguments. Use warning instead of complaint to notify about
8205 unrecognized bitness.
8206
8207 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8208
8209 PR breakpoints/16889
8210 * stap-probe.c (stap_parse_probe_arguments): Simplify
8211 check for non-prefixed probes (i.e., probes whose
8212 arguments do not start with "N@"). Always set the
8213 argument type to a sane value.
8214
8215 2014-05-01 David Taylor <dtaylor@emc.com>
8216
8217 * remote.c (compare_sections_command): Add -r option to compare
8218 all loadable read-only sections.
8219
8220 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8221
8222 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8223 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8224 Update all callers.
8225 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8226 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8227 Remove unused CORE_ADDR argument. Update all callers.
8228
8229 2014-04-29 Pedro Alves <palves@redhat.com>
8230
8231 * remote.c (struct packet_config) <detect>: Extend comment.
8232 (add_packet_config_cmd): Don't set the config's detect or support
8233 fields here.
8234 (init_all_packet_configs): Also initialize the config's 'detect'
8235 field.
8236 (reset_all_packet_configs_support): New function.
8237 (remote_open_1): Call reset_all_packet_configs_support instead of
8238 init_all_packet_configs.
8239 (_initialize_remote): Initialize all packet configs. Assert that
8240 all packets have an associated command, except a few known
8241 outliers.
8242
8243 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8244
8245 * dwarf2read.c (read_subrange_type): Handle dynamic
8246 DW_AT_lower_bound attributes.
8247
8248 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8249
8250 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8251 dynamic bounds before computing its upper bound.
8252 (ada_discrete_type_low_bound): Same as above with the lower bound.
8253
8254 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8255
8256 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8257 range types. Adjust the array handling implementation to
8258 take advantage of this change.
8259 (resolve_dynamic_range): New function, mostly extracted from
8260 resolve_dynamic_bounds.
8261 (resolve_dynamic_array): New function, mostly extracted from
8262 resolve_dynamic_bounds.
8263 (resolve_dynamic_bounds): Delete.
8264 (resolve_dynamic_type): Reimplement. Add handling of
8265 TYPE_CODE_RANGE types.
8266
8267 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8268
8269 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8270 handling of parallel ___XA types.
8271
8272 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8273
8274 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8275 unnecessary second call to static_unwrap_type.
8276
8277 2014-04-27 Hui Zhu <hui@codesourcery.com>
8278
8279 * stack.c (print_frame_info): Call do_gdb_disassembly with
8280 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8281
8282 2014-04-26 Doug Evans <xdje42@gmail.com>
8283
8284 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8285
8286 2014-04-25 Pedro Alves <palves@redhat.com>
8287
8288 PR server/16255
8289 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8290 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8291 and newline from built string.
8292 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8293 (linux_ptrace_attach_fail_reason): ... this.
8294 * linux-nat.c (linux_nat_attach): Adjust to use
8295 linux_ptrace_attach_fail_reason.
8296
8297 2014-04-25 Pedro Alves <palves@redhat.com>
8298
8299 * remote.c (struct remote_state): Remove multi_process_aware,
8300 non_stop_aware, cond_tracepoints, cond_breakpoints,
8301 breakpoint_commands, fast_tracepoints, static_tracepoints,
8302 install_in_trace, disconnected_tracing,
8303 enable_disable_tracepoints, string_tracing, and
8304 augmented_libraries_svr4_read fields.
8305 (remote_multi_process_p): Move further below in the file.
8306 (struct packet_config): Add comments.
8307 (update_packet_config): Delete function.
8308 (show_packet_config_cmd): Use packet_config_support.
8309 (add_packet_config_cmd): Use NULL as set callback.
8310 (packet_ok): "set remote foo-packet"-style commands no longer
8311 change config->supported -- adjust.
8312 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8313 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8314 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8315 (PACKET_QNonStop, PACKET_multiprocess_feature)
8316 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8317 (PACKET_DisconnectedTracing_feature)
8318 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8319 (set_remote_protocol_packet_cmd): Delete function.
8320 (packet_config_support, packet_support): New functions.
8321 (set_remote_protocol_Z_packet_cmd): Don't call
8322 update_packet_config.
8323 (remote_query_attached, remote_pass_signals)
8324 (remote_program_signals, remote_threads_info)
8325 (remote_threads_extra_info, remote_start_remote): Use
8326 packet_support.
8327 (remote_start_remote): Use packet_config_support and
8328 packet_support.
8329 (init_all_packet_configs): Set all packets to unknown support,
8330 instead of calling update_packet_config.
8331 (remote_check_symbols): Use packet_support.
8332 (remote_supported_packet): Unconditionally set the packet config's
8333 support status.
8334 (remote_multi_process_feature, remote_non_stop_feature)
8335 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8336 (remote_breakpoint_commands_feature)
8337 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8338 (remote_install_in_trace_feature)
8339 (remote_disconnected_tracing_feature)
8340 (remote_enable_disable_tracepoint_feature)
8341 (remote_string_tracing_feature)
8342 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8343 (remote_protocol_features): Adjust to use remote_supported_packet
8344 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8345 "ConditionalTracepoints", "ConditionalBreakpoints",
8346 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8347 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8348 "EnableDisableTracepoints", and "tracenz".
8349 (remote_query_supported): Use packet_support.
8350 (remote_open_1): Adjust.
8351 (extended_remote_attach_1): Use packet_support. Switch on the
8352 result of packet_ok instead of checking whether the packet ended
8353 up disabled.
8354 (remote_vcont_resume): Use packet_support.
8355 (remote_resume, remote_stop_ns, fetch_register_using_p)
8356 (remote_prepare_to_store, store_register_using_P)
8357 (check_binary_download, remote_write_bytes): Use packet_support.
8358 (remote_vkill): Use packet_support. Switch on the result of
8359 packet_ok instead of checking whether the packet ended up
8360 disabled.
8361 (extended_remote_supports_disable_randomization): Use
8362 packet_support.
8363 (extended_remote_run): Switch on the result of packet_ok instead
8364 of checking whether the packet ended up disabled.
8365 (remote_insert_breakpoint, remote_remove_breakpoint)
8366 (remote_insert_watchpoint, remote_remove_watchpoint)
8367 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8368 packet_support.
8369 (remote_search_memory): Use packet_config_support.
8370 (remote_get_thread_local_address, remote_get_tib_address)
8371 (remote_hostio_send_command, remote_can_execute_reverse): Use
8372 packet_support.
8373 (remote_supports_cond_tracepoints)
8374 (remote_supports_cond_breakpoints)
8375 (remote_supports_fast_tracepoints)
8376 (remote_supports_static_tracepoints)
8377 (remote_supports_install_in_trace)
8378 (remote_supports_enable_disable_tracepoint)
8379 (remote_supports_string_tracing)
8380 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8381 the packet config says the feature is enabled or disabled.
8382 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8383 (remote_get_trace_status): Use packet_support.
8384 (remote_set_disconnected_tracing): Adjust to check whether the
8385 feature is enabled with packet_support.
8386 (remote_set_trace_buffer_size, remote_use_agent)
8387 (remote_can_use_agent, remote_supports_btrace): Use
8388 packet_support.
8389 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8390 Use packet_config_support.
8391 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8392 the packet config says the feature is enabled or disabled.
8393 (set_range_stepping): Use packet_support.
8394
8395 2014-04-25 Tom Tromey <tromey@redhat.com>
8396
8397 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8398 argument.
8399
8400 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8401
8402 * NEWS: Mention support for C99 variable length arrays.
8403
8404 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8405
8406 * ada-lang.c (standard_exc): Expand introductory comment.
8407
8408 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8409 Walfred Tedeschi <walfred.tedeschi@intel.com>
8410
8411 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8412 AVX512 registers.
8413 (amd64_linux_read_description): Add code to handle AVX512 xstate
8414 mask and return respective tdesc.
8415 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8416 and features/i386/x32-avx512-linux.c.
8417 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8418 (amd64_linux_core_read_description): Add code to handle AVX512
8419 xstate mask and return respective tdesc.
8420 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8421 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8422 calculation.
8423 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8424 (tdesc_amd64_avx512_linux): New prototype.
8425 (tdesc_x32_avx512_linux): Likewise.
8426 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8427 features/i386/x32-avx512.c.
8428 (amd64_ymm_avx512_names): New register names for pseudo
8429 registers YMM16-31.
8430 (amd64_ymmh_avx512_names): New register names for raw registers
8431 YMMH16-31.
8432 (amd64_k_names): New register names for K registers.
8433 (amd64_zmmh_names): New register names for ZMM raw registers.
8434 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8435 (amd64_xmm_avx512_names): New register names for XMM16-31
8436 registers.
8437 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8438 registers.
8439 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8440 if feature is present.
8441 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8442 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8443 (AMD64_NUM_REGS): Adjust to new number of registers.
8444 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8445 registers supplied via XSTATE by AVX512 registers.
8446 (i386_linux_read_description): Add case for AVX512.
8447 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8448 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8449 (i386_linux_core_read_description): Add case for AVX512.
8450 (i386_linux_init_abi): Install supported register note section
8451 for AVX512.
8452 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8453 AVX512.
8454 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8455 registers to be number of zmm7h + 1.
8456 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8457 * i386-tdep.c: Include features/i386/i386-avx512.c.
8458 (i386_zmm_names): Add ZMM pseudo register names array.
8459 (i386_zmmh_names): Add ZMM raw register names array.
8460 (i386_k_names): Add K raw register names array.
8461 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8462 registers. AVX512 has 16 more ZMM registers than there are YMM
8463 registers.
8464 (i386_zmmh_regnum_p): Add function to look up register number of
8465 ZMM raw registers.
8466 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8467 (i386_k_regnum_p): Likewise for K raw registers.
8468 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8469 registers added by AVX512.
8470 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8471 registers added by AVX512.
8472 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8473 added by AVX512.
8474 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8475 (i386_pseudo_register_name): Add ZMM pseudo registers.
8476 (i386_zmm_type): Construct and return vector registers type for ZMM
8477 registers.
8478 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8479 ZMM0-31 pseudo registers and K registers.
8480 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8481 and YMM16-31 registers from register cache.
8482 (i386_pseudo_register_write): Add code to write K, ZMM and
8483 YMM16-31 registers.
8484 (i386_register_reggroup_p): Add code to include/exclude AVX512
8485 registers in/from respective register groups.
8486 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8487 registers if feature is present in xcr0.
8488 (i386_gdbarch_init): Add code to initialize AVX512 feature
8489 variables in tdep structure, wire in pseudo registers and call
8490 initialize_tdesc_i386_avx512.
8491 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8492 variables.
8493 (i386_regnum): Add AVX512 registers.
8494 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8495 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8496 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8497 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8498 512 bits wide.
8499 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8500 (i386_ymm_avx512_regnum_p): Likewise.
8501 (i386_k_regnum_p): Likewise.
8502 (i386_zmm_regnum_p): Likewise.
8503 (i386_zmmh_regnum_p): Likewise.
8504 * i387-tdep.c : Update year in copyright notice.
8505 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8506 XSAVE buffer.
8507 (XSAVE_YMM_AVX512_ADDR): New macro.
8508 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8509 XSAVE buffer.
8510 (XSAVE_XMM_AVX512_ADDR): New macro.
8511 (xsave_avx512_k_offset): New table for K register offsets in
8512 XSAVE buffer.
8513 (XSAVE_AVX512_K_ADDR): New macro.
8514 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8515 in XSAVE buffer.
8516 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8517 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8518 buffer.
8519 (i387_collect_xsave): Add code to collect AVX512 registers from
8520 XSAVE buffer.
8521 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8522 of XMM16-31 registers.
8523 (I387_NUM_K_REGS): New define for number of K registers.
8524 (I387_K0_REGNUM): New define for K0 register number.
8525 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8526 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8527 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8528 registers.
8529 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8530 (I387_XMM16_REGNUM): New define for XMM16 register number.
8531 (I387_YMM0_REGNUM): New define for YMM0 register number.
8532 (I387_KEND_REGNUM): New define for last K register number.
8533 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8534 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8535 number.
8536 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8537 number.
8538 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8539 size.
8540 * features/Makefile: Add AVX512 related files.
8541 * features/i386/32bit-avx512.xml: New file.
8542 * features/i386/64bit-avx512.xml: Likewise.
8543 * features/i386/amd64-avx512-linux.c: Likewise.
8544 * features/i386/amd64-avx512-linux.xml: Likewise.
8545 * features/i386/amd64-avx512.c: Likewise.
8546 * features/i386/amd64-avx512.xml: Likewise.
8547 * features/i386/i386-avx512-linux.c: Likewise.
8548 * features/i386/i386-avx512-linux.xml: Likewise.
8549 * features/i386/i386-avx512.c: Likewise.
8550 * features/i386/i386-avx512.xml: Likewise.
8551 * features/i386/x32-avx512-linux.c: Likewise.
8552 * features/i386/x32-avx512-linux.xml: Likewise.
8553 * features/i386/x32-avx512.c: Likewise.
8554 * features/i386/x32-avx512.xml: Likewise.
8555 * regformats/i386/amd64-avx512-linux.dat: New file.
8556 * regformats/i386/amd64-avx512.dat: Likewise.
8557 * regformats/i386/i386-avx512-linux.dat: Likewise.
8558 * regformats/i386/i386-avx512.dat: Likewise.
8559 * regformats/i386/x32-avx512-linux.dat: Likewise.
8560 * regformats/i386/x32-avx512.dat: Likewise.
8561 * NEWS: Add note about new support for AVX512.
8562
8563
8564 2014-04-23 Pedro Alves <palves@redhat.com>
8565
8566 * breakpoint.c (insert_bp_location): Tolerate errors if the
8567 breakpoint is set in a user-loaded objfile.
8568 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8569 location is marked shlib_disabled. If the breakpoint is set in a
8570 user-loaded objfile is a GDB-side memory breakpoint, validate it
8571 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8572 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8573 flag.
8574 * mem-break.c (memory_validate_breakpoint): New function.
8575 * objfiles.c (userloaded_objfile_contains_address_p): New
8576 function.
8577 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8578 * target.h (memory_validate_breakpoint): New declaration.
8579
8580 2014-04-23 Pedro Alves <palves@redhat.com>
8581
8582 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8583 the breakpoint is set in a shared library, only suppress
8584 errors for software breakpoints, not hardware breakpoints.
8585
8586 2014-04-22 Pedro Alves <palves@redhat.com>
8587
8588 * infrun.c (schedlock_applies): New function, factored out from
8589 find_thread_needs_step_over.
8590 (find_thread_needs_step_over): Use it.
8591 (switch_back_to_stepped_thread): Always clear trap_expected if the
8592 step over is finished. Return early if scheduler locking applies.
8593 Look for the stepping thread and a potential step-over thread with
8594 a single loop.
8595 (currently_stepping_or_nexting_callback): Delete.
8596
8597 2014-04-22 Nick Clifton <nickc@redhat.com>
8598
8599 * NEWS: Mention that ARM sim now supports tracing.
8600
8601 2014-04-22 Yao Qi <yao@codesourcery.com>
8602
8603 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8604 to ...
8605 * tracefile.c (tracefile_fetch_registers): ... it. New
8606 function.
8607 * tracefile.h (tracefile_fetch_registers): Declare.
8608 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8609 tracefile_fetch_registers.
8610
8611 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8612
8613 PR gdb/14018
8614 * windows-nat.c (thread_rec): Don't display a warning when
8615 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8616 fails for any reason, set th->suspended to -1, so that we don't
8617 try to resume such a thread. Also, don't return NULL in these
8618 cases, to avoid completely ruin the session due to "PC register is
8619 not available" error.
8620 (do_windows_fetch_inferior_registers): Check errors in
8621 GetThreadContext call.
8622 (windows_continue): Accept an additional argument KILLED; if not
8623 zero, ignore errors in the SetThreadContext call, since the
8624 inferior was killed and is shutting down.
8625 (windows_resume, get_windows_debug_event)
8626 (windows_create_inferior, windows_mourn_inferior)
8627 (windows_kill_inferior): All callers of windows_continue changed
8628 to adjust to its new calling sequence.
8629
8630 2014-04-19 Yao Qi <yao@codesourcery.com>
8631
8632 * ctf.c (ctf_open): Call post_create_inferior.
8633
8634 2014-04-19 Yao Qi <yao@codesourcery.com>
8635
8636 * ctf.c (handle_id): New static variable.
8637 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8638 value. Get the declaration of event "register" and get length
8639 of field "contents".
8640
8641 2014-04-19 Yao Qi <yao@codesourcery.com>
8642
8643 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8644
8645 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8646
8647 * valops.c (oload_method_static): Remove unnecessary argument
8648 METHOD. Update all callers.
8649
8650 2014-04-18 Pedro alves <palves@redhat.com>
8651 Tom Tromey <tromey@redhat.com>
8652
8653 PR backtrace/15558
8654 * frame.c (get_prev_frame_1): Rename to ...
8655 (get_prev_frame_always): ... this, and make extern. Adjust.
8656 (skip_artificial_frames): Use get_prev_frame_always.
8657 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8658 (get_frame_unwind_stop_reason): Adjust to rename.
8659 * frame.h (get_prev_frame_always): Declare.
8660 * inline-frame.c: Include frame.h.
8661 (inline_frame_this_id): Use get_prev_frame_always.
8662
8663 2014-04-18 Tristan Gingold <gingold@adacore.com>
8664
8665 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8666 code by using bfd_mach_o_get_base_address.
8667
8668 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8669
8670 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8671 (spu_ax_pseudo_register_collect): New function.
8672 (spu_ax_pseudo_register_push_stack): Likewise.
8673 (spu_dwarf_reg_to_regnum): Likewise.
8674 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8675
8676 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8677
8678 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8679 Replace FRAME argument with FRAME_ID.
8680 * gdbarch.c, gdbarch.h: Regenerate.
8681 * findvar.c (default_value_from_register): Add GDBARCH argument;
8682 replace FRAME by FRAME_ID. No longer call get_frame_id.
8683 (value_from_register): Update call to gdbarch_value_from_register.
8684 * value.h (default_value_from_register): Update prototype.
8685 * s390-linux-tdep.c (s390_value_from_register): Update interface
8686 and call to default_value_from_register.
8687 * spu-tdep.c (spu_value_from_register): Likewise.
8688
8689 * findvar.c (address_from_register): Remove TYPE argument.
8690 Do not call value_from_register; use gdbarch_value_from_register
8691 with null_frame_id instead.
8692 * value.h (address_from_register): Update prototype.
8693 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8694 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8695 address_from_register interface change.
8696
8697 2014-04-17 Yao Qi <yao@codesourcery.com>
8698
8699 * gdbtypes.h: Update comments to link to types and macros'
8700 definitions.
8701
8702 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8703
8704 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8705
8706 2014-04-16 Keith Seitz <keiths@redhat.com>
8707
8708 PR gdb/15827
8709 * dwarf2read.c (skip_one_die): Check that all relative-offset
8710 sibling DIEs fall within range of the current reader's buffer.
8711 (read_partial_die): Likewise.
8712
8713 2014-04-16 Keith Seitz <keiths@redhat.com>
8714
8715 PR c++/16597
8716 * cp-namespace.c (lookup_symbol_file): If the type name of
8717 `this' is NULL, return immediately.
8718
8719 2014-04-14 Keith Seitz <keiths@redhat.com>
8720
8721 PR c++/16253
8722 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8723 from symbol_matches_domain in symtab.c. All local callers
8724 of symbol_matches_domain updated.
8725 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8726 search STRUCT_DOMAIN.
8727 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8728 independently. standard_lookup will do that automatically.
8729 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8730 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8731 (cp_lookup_symbol_in_namespace): Likewise.
8732 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8733 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8734 may return a STRUCT_DOMAIN match.
8735 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8736 * cp-support.c: Include language.h.
8737 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8738 VAR_DOMAIN.
8739 * psymtab.c (match_partial_symbol): Compare the requested
8740 domain with the symbol's domain directly.
8741 (lookup_partial_symbol): Likewise.
8742 * symtab.c (lookup_symbol_in_language): Explain when/why
8743 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8744 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8745 appropriate languages.
8746 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8747 and moved to ada-lang.c
8748 (lookup_block_symbol): Explain that this function only returns
8749 symbol matching the requested DOMAIN.
8750 Compare the requested domain with the symbol's domain directly.
8751 (iterate_over_symbols): Compare the requested domain with the
8752 symbol's domain directly.
8753 * symtab.h (symbol_matches_domain): Remove.
8754
8755 2014-04-14 Tom Tromey <tromey@redhat.com>
8756
8757 PR c++/15246:
8758 * c-exp.y (type_aggregate_p): New function.
8759 (qualified_name, classify_inner_name): Use it.
8760 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8761 and TYPE_TARGET_TYPE of an enum type.
8762 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8763 an enum type.
8764 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8765 handle TYPE_DECLARED_CLASS.
8766 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8767 types.
8768 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8769 * valops.c (enum_constant_from_type): New function.
8770 (value_aggregate_elt): Use it.
8771 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8772 TYPE_CODE_ENUM.
8773
8774 2014-04-14 Tom Tromey <tromey@redhat.com>
8775
8776 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8777 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8778 const.
8779 * value.h (value_aggregate_elt): Update.
8780
8781 2014-04-14 Tom Tromey <tromey@redhat.com>
8782
8783 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8784
8785 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8786
8787 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8788 (evaluate_subexp_standard): Pass noside argument.
8789 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8790 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8791 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8792 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8793 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8794
8795 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8796
8797 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8798 points to a constant blob.
8799
8800 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8801
8802 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8803 property and store it as the high bound and flag the range accordingly.
8804 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8805 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8806 * gdbtypes.h (enum range_flags): New enum.
8807 (struct range_bounds): Add flags member.
8808
8809 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8810
8811 * c-typeprint.c (c_type_print_varspec_suffix): Added
8812 check for not yet resolved high bound. If unresolved, print
8813 "variable length" string to the console instead of random
8814 length.
8815
8816 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8817
8818 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8819 value.
8820 (ada_template_to_fixed_record_type_1): Likewise.
8821 (ada_to_fixed_type_1): Likewise.
8822 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8823 (cp_print_value): Likewise.
8824 * d-valprint.c (dynamic_array_type): Likewise.
8825 * findvar.c (address_of_variable): Likewise.
8826 * jv-valprint.c (java_value_print): Likewise.
8827 * valops.c (value_ind): Likewise.
8828 * value.c (coerce_ref): Likewise.
8829
8830 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8831
8832 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8833 value and retrieve the dynamic type size.
8834
8835 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8836
8837 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8838 passed to sizeof is dynamic evaluate the argument to compute the length.
8839
8840 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8841 Joel Brobecker <brobecker@adacore.com>
8842
8843 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8844 (dwarf2_evaluate_property): New function.
8845 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8846 * dwarf2read.c (attr_to_dynamic_prop): New function.
8847 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8848 attribute.
8849 * gdbtypes.c: Include dwarf2loc.h.
8850 (is_dynamic_type): New function.
8851 (resolve_dynamic_type): New function.
8852 (resolve_dynamic_bounds): New function.
8853 (get_type_length): New function.
8854 (check_typedef): Use get_type_length to compute type length.
8855 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8856 (TYPE_LOW_BOUND_KIND): New macro.
8857 (is_dynamic_type): New function prototype.
8858 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8859 to resolve dynamic properties of the type. Update comment.
8860 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8861
8862 2014-04-14 Richard Henderson <rth@redhat.com>
8863
8864 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8865
8866 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8867 Doug Evans <xdje42@gmail.com>
8868
8869 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8870 dereference TYPE_CODE_REF values.
8871
8872 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8873
8874 Revert the following changes due to regressions:
8875
8876 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8877 (dwarf2_evaluate_property): New function.
8878 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8879 * dwarf2read.c (attr_to_dynamic_prop): New function.
8880 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8881 attribute.
8882 * gdbtypes.c: Include dwarf2loc.h.
8883 (is_dynamic_type): New function.
8884 (resolve_dynamic_type): New function.
8885 (resolve_dynamic_bounds): New function.
8886 (get_type_length): New function.
8887 (check_typedef): Use get_type_length to compute type length.
8888 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8889 (TYPE_LOW_BOUND_KIND): New macro.
8890 (is_dynamic_type): New function prototype.
8891 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8892 to resolve dynamic properties of the type. Update comment.
8893 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8894
8895 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8896 passed to sizeof is dynamic evaluate the argument to compute the length.
8897
8898 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8899 value and retrieve the dynamic type size.
8900
8901 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8902 (ada_template_to_fixed_record_type_1): Likewise.
8903 (ada_to_fixed_type_1): Likewise.
8904 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8905 (cp_print_value): Likewise.
8906 * d-valprint.c (dynamic_array_type): Likewise.
8907 * eval.c (evaluate_subexp_with_coercion): Likewise.
8908 * findvar.c (address_of_variable): Likewise.
8909 * jv-valprint.c (java_value_print): Likewise.
8910 * valops.c (value_ind): Likewise.
8911 * value.c (coerce_ref): Likewise.
8912
8913 * c-typeprint.c (c_type_print_varspec_suffix): Added
8914 check for not yet resolved high bound. If unresolved, print
8915 "variable length" string to the console instead of random
8916 length.
8917
8918 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8919 property and store it as the high bound and flag the range accordingly.
8920 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8921 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8922 * gdbtypes.h (enum range_flags): New enum.
8923 (struct range_bounds): Add flags member.
8924
8925 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8926 points to a constant blob.
8927
8928 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8929 (evaluate_subexp_standard): Pass noside argument.
8930 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8931 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8932 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8933 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8934 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8935
8936 2014-04-11 Keith Seitz <keiths@redhat.com>
8937
8938 PR c++/16675
8939 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8940 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8941 reference types.
8942
8943 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8944
8945 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8946 (evaluate_subexp_standard): Pass noside argument.
8947 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8948 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8949 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8950 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8951 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8952
8953 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8954
8955 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8956 points to a constant blob.
8957
8958 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8959
8960 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8961 property and store it as the high bound and flag the range accordingly.
8962 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8963 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8964 * gdbtypes.h (enum range_flags): New enum.
8965 (struct range_bounds): Add flags member.
8966
8967 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8968
8969 * c-typeprint.c (c_type_print_varspec_suffix): Added
8970 check for not yet resolved high bound. If unresolved, print
8971 "variable length" string to the console instead of random
8972 length.
8973
8974 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8975
8976 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8977 (ada_template_to_fixed_record_type_1): Likewise.
8978 (ada_to_fixed_type_1): Likewise.
8979 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8980 (cp_print_value): Likewise.
8981 * d-valprint.c (dynamic_array_type): Likewise.
8982 * eval.c (evaluate_subexp_with_coercion): Likewise.
8983 * findvar.c (address_of_variable): Likewise.
8984 * jv-valprint.c (java_value_print): Likewise.
8985 * valops.c (value_ind): Likewise.
8986 * value.c (coerce_ref): Likewise.
8987
8988 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8989
8990 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8991 value and retrieve the dynamic type size.
8992
8993 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8994
8995 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8996 passed to sizeof is dynamic evaluate the argument to compute the length.
8997
8998 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8999
9000 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9001 (dwarf2_evaluate_property): New function.
9002 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9003 * dwarf2read.c (attr_to_dynamic_prop): New function.
9004 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9005 attribute.
9006 * gdbtypes.c: Include dwarf2loc.h.
9007 (is_dynamic_type): New function.
9008 (resolve_dynamic_type): New function.
9009 (resolve_dynamic_bounds): New function.
9010 (get_type_length): New function.
9011 (check_typedef): Use get_type_length to compute type length.
9012 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9013 (TYPE_LOW_BOUND_KIND): New macro.
9014 (is_dynamic_type): New function prototype.
9015 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9016 to resolve dynamic properties of the type. Update comment.
9017 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9018
9019 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9020
9021 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9022 declaring high/low bounds and change uses accordingly. Call
9023 create_range_type instead of create_static_range_type.
9024 * gdbtypes.c (create_range_type): New function.
9025 (create_range_type): Convert bounds into struct bound_prop and pass
9026 them to create_range_type.
9027 * gdbtypes.h (struct bound_prop): New struct.
9028 (create_range_type): New function prototype.
9029 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9030 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9031 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9032 part of the bound.
9033 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9034
9035 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9036
9037 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9038 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9039 * ada-lang.c: All uses of create_range_type updated.
9040 * coffread.c: All uses of create_range_type updated.
9041 * dwarf2read.c: All uses of create_range_type updated.
9042 * f-exp.y: All uses of create_range_type updated.
9043 * m2-valprint.c: All uses of create_range_type updated.
9044 * mdebugread.c: All uses of create_range_type updated.
9045 * stabsread.c: All uses of create_range_type updated.
9046 * valops.c: All uses of create_range_type updated.
9047 * valprint.c: All uses of create_range_type updated.
9048
9049 2014-04-10 Pedro Alves <palves@redhat.com>
9050
9051 * breakpoint.c (single_step_breakpoints)
9052 (single_step_gdbarch): Move up in the file.
9053 (one_breakpoint_xfer_memory): New function, factored out from ...
9054 (breakpoint_xfer_memory): ... here. Also process single-step
9055 breakpoints.
9056
9057 2014-04-09 Tristan Gingold <gingold@adacore.com>
9058
9059 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9060 comments.
9061 (darwin_decode_exception_message): Free port only after use.
9062
9063 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9064
9065 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9066 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9067 when setting the size of call_length.
9068
9069 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9070
9071 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9072 dereference TYPE_CODE_REF values.
9073
9074 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9075
9076 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9077 end of warning message.
9078
9079 2014-04-03 Doug Evans <dje@google.com>
9080
9081 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9082 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9083
9084 2014-04-02 Alan Modra <amodra@gmail.com>
9085
9086 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9087 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9088 (struct symbol_file_add_from_memory_args): Add size field.
9089 (find_vdso_size): New function.
9090 (add_vsyscall_page): Attempt to find vdso size.
9091
9092 2014-04-01 Doug Evans <dje@google.com>
9093
9094 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9095
9096 2014-04-01 Tristan Gingold <gingold@adacore.com>
9097
9098 * darwin-nat.c (darwin_encode_reply): Add prototype.
9099 (darwin_decode_exception_message): Reply to unknown inferiors.
9100 (darwin_decode_message): Handle message by id. Ignore message
9101 to unknown inferior.
9102 (darwin_wait): Discard unknown messages, add debug trace.
9103
9104 2014-03-31 Doug Evans <dje@google.com>
9105
9106 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9107 comp_dir_string.
9108
9109 2014-03-31 Doug Evans <dje@google.com>
9110
9111 New option "set print symbol-loading".
9112 * NEWS: Mention it.
9113 * solib.c (solib_read_symbols): Only print symbol loading messages
9114 if requested.
9115 (solib_add): If symbol loading is in "brief" mode, notify user
9116 symbols are being loaded.
9117 (reload_shared_libraries_1): Ditto.
9118 * symfile.c (print_symbol_loading_off): New static global.
9119 (print_symbol_loading_brief): New static global.
9120 (print_symbol_loading_full): New static global.
9121 (print_symbol_loading_enums): New static global.
9122 (print_symbol_loading): New static global.
9123 (print_symbol_loading_p): New function.
9124 (symbol_file_add_with_addrs): Only print symbol loading messages
9125 if requested.
9126 (_initialize_symfile): Register "print symbol-loading" set/show
9127 command.
9128 * symfile.h (print_symbol_loading_p): Declare.
9129
9130 2014-03-30 Doug Evans <xdje42@gmail.com>
9131
9132 * infrun.c (set_last_target_status): New function.
9133 (handle_inferior_event): Call it.
9134
9135 2014-03-30 Doug Evans <xdje42@gmail.com>
9136
9137 * inferior.h (enum stop_kind): Improve comment.
9138
9139 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9140
9141 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9142 a reference, strip the reference layer before calling
9143 the lang_ops value_has_mutated callback.
9144
9145 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9146
9147 Remove some globals from our parser.
9148 * language.c (unk_lang_parser): Add "struct parser_state"
9149 argument.
9150 * language.h (struct language_defn) <la_parser>: Likewise.
9151 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9152 (initialize_expout): Add "struct parser_state" argument.
9153 Rewrite function to use the parser state.
9154 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9155 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9156 write_exp_elt_longcst, write_exp_elt_dblcst,
9157 write_exp_elt_decfloatcst, write_exp_elt_type,
9158 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9159 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9160 write_dollar_variable): Likewise.
9161 (parse_exp_in_context_1): Use parser state.
9162 (insert_type_address_space): Add "struct parser_state" argument.
9163 Use parser state.
9164 (increase_expout_size): New function.
9165 * parser-defs.h: Forward declare "struct language_defn" and
9166 "struct parser_state".
9167 (expout, expout_size, expout_ptr): Remove extern declarations.
9168 (parse_gdbarch, parse_language): Rewrite macro declarations to
9169 accept the parser state.
9170 (struct parser_state): New struct.
9171 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9172 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9173 write_exp_elt_decfloatcst, write_exp_elt_type,
9174 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9175 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9176 write_exp_msymbol, write_dollar_variable,
9177 mark_struct_expression, insert_type_address_space): Add "struct
9178 parser_state" argument.
9179 (increase_expout_size): New function.
9180 * utils.c (do_clear_parser_state): New function.
9181 (make_cleanup_clear_parser_state): Likewise.
9182 * utils.h (make_cleanup_clear_parser_state): New function
9183 prototype.
9184 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9185 Update calls to write_exp* in order to pass the parser state.
9186 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9187 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9188 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9189 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9190 * stap-probe.c (stap_parse_register_operand): Likewise.
9191 (stap_parse_single_operand): Likewise.
9192 (stap_parse_argument_1): Likewise.
9193 (stap_parse_argument): Use parser state.
9194 * stap-probe.h: Include "parser-defs.h".
9195 (struct stap_parse_info) <pstate>: New field.
9196 * c-exp.y (parse_type): Rewrite to use parser state.
9197 (yyparse): Redefine to c_parse_internal.
9198 (pstate): New global variable.
9199 (parse_number): Add "struct parser_state" argument.
9200 (write_destructor_name): Likewise.
9201 (type_exp): Update calls to write_exp* and similars in order to
9202 use parser state.
9203 (exp1, exp, variable, qualified_name, space_identifier,
9204 typename, typebase): Likewise.
9205 (write_destructor_name, parse_number, lex_one_token,
9206 classify_name, classify_inner_name, c_parse): Add "struct
9207 parser_state" argument. Update function to use parser state.
9208 * c-lang.h: Forward declare "struct parser_state".
9209 (c_parse): Add "struct parser_state" argument.
9210 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9211 (yyparse): Redefine macro to ada_parse_internal.
9212 (pstate): New variable.
9213 (write_int, write_object_renaming, write_var_or_type,
9214 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9215 type_int, type_long, type_long_long, type_float, type_double,
9216 type_long_double, type_char, type_boolean, type_system_address):
9217 Add "struct parser_state" argument.
9218 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9219 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9220 var_or_type, aggregate, aggregate_component_list,
9221 positional_list, others, component_group,
9222 component_associations): Update calls to write_exp* and similar
9223 functions in order to use parser state.
9224 (ada_parse, write_var_from_sym, write_int,
9225 write_exp_op_with_string, write_object_renaming,
9226 find_primitive_type, write_selectors, write_ambiguous_var,
9227 write_var_or_type, write_name_assoc, type_int, type_long,
9228 type_long_long, type_float, type_double, type_long_double,
9229 type_char, type_boolean, type_system_address): Add "struct
9230 parser_state" argument. Adjust function to use parser state.
9231 * ada-lang.c (parse): Likewise.
9232 * ada-lang.h: Forward declare "struct parser_state".
9233 (ada_parse): Add "struct parser_state" argument.
9234 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9235 calls to both functions.
9236 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9237 parser state.
9238 (yyparse): Redefine macro to f_parse_internal.
9239 (pstate): New variable.
9240 (parse_number): Add "struct parser_state" argument.
9241 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9242 and similars in order to use parser state.
9243 (parse_number): Adjust code to use parser state.
9244 (yylex): Likewise.
9245 (f_parse): New function.
9246 * f-lang.h: Forward declare "struct parser_state".
9247 (f_parse): Add "struct parser_state" argument.
9248 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9249 parser state.
9250 (yyparse): Redefine macro for java_parse_internal.
9251 (pstate): New variable.
9252 (push_expression_name, push_expression_name, insert_exp): Add
9253 "struct parser_state" argument.
9254 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9255 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9256 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9257 PostIncrementExpression, PostDecrementExpression,
9258 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9259 UnaryExpressionNotPlusMinus, CastExpression,
9260 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9261 RelationalExpression, EqualityExpression, AndExpression,
9262 ExclusiveOrExpression, InclusiveOrExpression,
9263 ConditionalAndExpression, ConditionalOrExpression,
9264 ConditionalExpression, Assignment, LeftHandSide): Update
9265 calls to write_exp* and similars in order to use parser state.
9266 (parse_number): Ajust code to use parser state.
9267 (yylex): Likewise.
9268 (java_parse): New function.
9269 (push_variable): Add "struct parser_state" argument. Adjust
9270 code to user parser state.
9271 (push_fieldnames, push_qualified_expression_name,
9272 push_expression_name, insert_exp): Likewise.
9273 * jv-lang.h: Forward declare "struct parser_state".
9274 (java_parse): Add "struct parser_state" argument.
9275 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9276 parser state.
9277 (yyparse): Redefine macro to m2_parse_internal.
9278 (pstate): New variable.
9279 (type_exp, exp, fblock, variable, type): Update calls to
9280 write_exp* and similars to use parser state.
9281 (yylex): Likewise.
9282 (m2_parse): New function.
9283 * m2-lang.h: Forward declare "struct parser_state".
9284 (m2_parse): Add "struct parser_state" argument.
9285 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9286 * objc-lang.h: Forward declare "struct parser_state".
9287 (end_msglist): Add "struct parser_state" argument.
9288 * p-exp.y (parse_type): Rewrite macro to use parser state.
9289 (yyparse): Redefine macro to pascal_parse_internal.
9290 (pstate): New variable.
9291 (parse_number): Add "struct parser_state" argument.
9292 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9293 write_exp* and similars in order to use parser state.
9294 (parse_number, yylex): Adjust code to use parser state.
9295 (pascal_parse): New function.
9296 * p-lang.h: Forward declare "struct parser_state".
9297 (pascal_parse): Add "struct parser_state" argument.
9298 * go-exp.y (parse_type): Rewrite macro to use parser state.
9299 (yyparse): Redefine macro to go_parse_internal.
9300 (pstate): New variable.
9301 (parse_number): Add "struct parser_state" argument.
9302 (type_exp, exp1, exp, variable, type): Update calls to
9303 write_exp* and similars in order to use parser state.
9304 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9305 to use parser state.
9306 (go_parse): Likewise.
9307 * go-lang.h: Forward declare "struct parser_state".
9308 (go_parse): Add "struct parser_state" argument.
9309
9310 2014-03-27 Doug Evans <dje@google.com>
9311
9312 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9313
9314 2014-03-27 Doug Evans <dje@google.com>
9315
9316 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9317 Remove argument abbrev_section. All callers updated.
9318
9319 2014-03-27 Doug Evans <dje@google.com>
9320
9321 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9322 addr_base, ranges_base.
9323
9324 2014-03-26 Keith Seitz <keiths@redhat.com>
9325
9326 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9327 types, not VAR_DOMAIN.
9328
9329 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9330
9331 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9332 "ra" registers.
9333 * features/nios2-linux.c: Regenerated.
9334 * features/nios2.c: Regenerated.
9335
9336 2014-03-25 Pedro Alves <palves@redhat.com>
9337
9338 * cli/cli-script.c (script_from_file): Force the interpreter to
9339 sync mode.
9340
9341 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9342
9343 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9344 small stack allocation.
9345
9346 2014-03-24 Tristan Gingold <gingold@adacore.com>
9347
9348 * darwin-nat.c (exc_server): Remove unused prototype.
9349 (darwin_dump_message): Correctly display data on x86_64.
9350 (darwin_encode_reply): Fix style.
9351 Add comments and fix indentation.
9352
9353 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9354
9355 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9356
9357 2014-03-22 Doug Evans <xdje42@gmail.com>
9358
9359 * infcmd.c: Whitespace fixes.
9360 (interrupt_command): Merge two function comments into one.
9361
9362 2014-03-22 Doug Evans <xdje42@gmail.com>
9363
9364 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9365 All uses updated.
9366
9367 2014-03-22 Yao Qi <yao@codesourcery.com>
9368
9369 * remote.c (target_read_live_memory): Remove.
9370 (memory_xfer_live_readonly_partial): Rename it to
9371 remote_xfer_live_readonly_partial. Remove argument 'object'.
9372 All callers updated. Call remote_read_bytes_1
9373 instead of target_read_live_memory.
9374 * tracepoint.c (set_traceframe_number): Remove.
9375 (make_cleanup_restore_traceframe_number): Likewise .
9376 * tracepoint.h (set_traceframe_number): Remove declaration.
9377 (make_cleanup_restore_traceframe_number): Likewise.
9378
9379 2014-03-22 Yao Qi <yao@codesourcery.com>
9380
9381 * remote.c (remote_read_bytes): Move code on reading from the
9382 remote stub to ...
9383 (remote_read_bytes_1): ... here. New function.
9384
9385 2014-03-22 Yao Qi <yao@codesourcery.com>
9386
9387 * ctf.c (ctf_xfer_partial): Check the return value of
9388 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9389 return TARGET_XFER_UNAVAILABLE.
9390 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9391 * target.c (target_read_live_memory): Move it to remote.c.
9392 (memory_xfer_live_readonly_partial): Likewise.
9393 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9394 * remote.c (target_read_live_memory): Moved from target.c.
9395 (memory_xfer_live_readonly_partial): Likewise.
9396 (remote_read_bytes): Factored out from
9397 memory_xfer_partial_1.
9398
9399 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9400
9401 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9402 NULL pointer.
9403
9404 2014-03-21 Pedro Alves <palves@redhat.com>
9405
9406 * infrun.c (normal_stop): Extend comment.
9407
9408 2014-03-21 Hui Zhu <hui@codesourcery.com>
9409 Pedro Alves <palves@redhat.com>
9410
9411 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9412 static buffer.
9413 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9414 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9415 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9416
9417 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9418
9419 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9420 `z' formatted output modifier.
9421
9422 2014-03-20 Tom Tromey <tromey@redhat.com>
9423 Sergio Durigan Junior <sergiodj@redhat.com>
9424
9425 * probe.c (parse_probes): Turn assert into an ordinary error.
9426 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9427 exceptions when parsing probes. Rearrange the code for clarity.
9428
9429 2014-03-20 Tom Tromey <tromey@redhat.com>
9430
9431 PR gdb/14135
9432 * top.c (execute_command): Only dispatch events if the command
9433 started the target.
9434
9435 2014-03-20 Tom Tromey <tromey@redhat.com>
9436
9437 PR cli/15718
9438 * infcall.c: Include event-top.h.
9439 (run_inferior_call): Call async_disable_stdin if needed.
9440
9441 2014-03-20 Pedro Alves <palves@redhat.com>
9442
9443 * infrun.c (prepare_to_proceed): Delete.
9444 (thread_still_needs_step_over): New function.
9445 (find_thread_needs_step_over): New function.
9446 (proceed): If the current thread needs a step-over, set its
9447 steping_over_breakpoint flag. Adjust to use
9448 find_thread_needs_step_over instead of prepare_to_proceed.
9449 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9450 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9451 breakpoint.
9452 (switch_back_to_stepped_thread): Step over breakpoints of all
9453 threads not the stepping thread, before switching back to the
9454 stepping thread.
9455
9456 2014-03-20 Pedro Alves <palves@redhat.com>
9457
9458 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9459 extern.
9460 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9461 * infrun.c (saved_singlestep_ptid)
9462 (stepping_past_singlestep_breakpoint): Delete.
9463 (resume): Remove stepping_past_singlestep_breakpoint handling.
9464 (proceed): Store the prev_pc of the stepping thread too.
9465 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9466 singlestep_pc.
9467 (enum infwait_states): Delete infwait_thread_hop_state.
9468 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9469 field.
9470 (handle_inferior_event): Adjust.
9471 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9472 handling and the thread-hop code. Before removing single-step
9473 breakpoints, check whether the thread hit a single-step breakpoint
9474 of another thread. If it did, the trap is not a random signal.
9475 (switch_back_to_stepped_thread): If the event thread hit a
9476 single-step breakpoint, unblock it before switching to the
9477 stepping thread. Handle the case of the stepped thread having
9478 advanced already.
9479 (keep_going): Handle the case of the current thread moving past a
9480 single-step breakpoint.
9481
9482 2014-03-20 Pedro Alves <palves@redhat.com>
9483
9484 PR breakpoints/7143
9485 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9486 are being stepped over.
9487 (breakpoint_address_match): Make extern.
9488 * breakpoint.h (breakpoint_address_match): New declaration.
9489 * inferior.h (stepping_past_instruction_at): New declaration.
9490 * infrun.c (struct step_over_info): New type.
9491 (step_over_info): New global.
9492 (set_step_over_info, clear_step_over_info)
9493 (stepping_past_instruction_at): New functions.
9494 (handle_inferior_event): Clear the step-over info when
9495 trap_expected is cleared.
9496 (resume): Remove now stale comment.
9497 (clear_proceed_status): Clear step-over info.
9498 (proceed): Adjust step-over handling to set or clear the step-over
9499 info instead of removing all breakpoints.
9500 (handle_signal_stop): When setting up a thread-hop, don't remove
9501 breakpoints here.
9502 (stop_stepping): Clear step-over info.
9503 (keep_going): Adjust step-over handling to set or clear step-over
9504 info and then always inserting breakpoints, instead of removing
9505 all breakpoints when stepping over one.
9506
9507 2014-03-20 Pedro Alves <palves@redhat.com>
9508
9509 * infrun.c (previous_inferior_ptid): Adjust comment.
9510 (deferred_step_ptid): Delete.
9511 (infrun_thread_ptid_changed, prepare_to_proceed)
9512 (init_wait_for_inferior): Adjust.
9513 (handle_signal_stop): Delete deferred_step_ptid handling.
9514
9515 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9516
9517 PR gdb/15358
9518 * defs.h (sync_quit_force_run): New declaration.
9519 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9520 * event-top.c (async_sigterm_handler): New declaration.
9521 (async_sigterm_token): New variable.
9522 (async_init_signals): Create also async_sigterm_token.
9523 (async_sigterm_handler): New function.
9524 (sync_quit_force_run): New variable.
9525 (handle_sigterm): Replace quit_force call by other calls.
9526 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9527
9528 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9529
9530 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9531 offset into SPE pseudo registers.
9532
9533 2014-03-18 Pedro Alves <palves@redhat.com>
9534
9535 PR gdb/13860
9536 * inferior.h (print_stop_event): Declare.
9537 * infrun.c (print_stop_event): New, factored out from ...
9538 (normal_stop): ... this.
9539 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9540 of bpstat_print/print_stack_frame.
9541
9542 2014-03-17 Tom Tromey <tromey@redhat.com>
9543
9544 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9545
9546 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9547
9548 * ada-lang.c (decode_constrained_packed_array): Perform a
9549 minimal coercion for reference with coerce_ref instead of
9550 ada_coerce_ref.
9551
9552 2014-03-17 Tristan Gingold <gingold@adacore.com>
9553
9554 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9555 (darwin_solib_create_inferior_hook): Emit a warning if version
9556 is unhandled.
9557
9558 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9559
9560 * python/py-value.c (get_field_flag): Cast flag_name argument to
9561 PyObject_GetAttrString to support Python 2.4.
9562
9563 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9564
9565 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9566 (Global Maintainers): Remove Jan Kratochvil.
9567
9568 2014-03-14 Pedro Alves <palves@redhat.com>
9569
9570 * inferior.h (terminal_ours_for_output): Rename to ...
9571 (child_terminal_ours_for_output): ... this.
9572 (terminal_save_ours): Rename to ...
9573 (child_terminal_save_ours): ... this.
9574 (terminal_ours): Rename to ...
9575 (child_terminal_ours): ... this.
9576 (terminal_inferior): Rename to ...
9577 (child_terminal_inferior): ... this.
9578 (terminal_init_inferior): Rename to ...
9579 (child_terminal_init_inferior): ... this.
9580 (terminal_init_inferior_with_pgrp): Rename to ...
9581 (child_terminal_init_inferior_with_pgrp): ... this.
9582 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9583 (child_terminal_init_with_pgrp): ... this.
9584 (terminal_save_ours): Rename to ...
9585 (child_terminal_save_ours): ... this.
9586 (terminal_init_inferior): Rename to ...
9587 (child_terminal_init): ... this. Adjust.
9588 (terminal_inferior): Rename to ...
9589 (child_terminal_inferior): ... this.
9590 (terminal_ours_for_output): Rename to ...
9591 (child_terminal_ours_for_output): ... this. Adjust.
9592 (terminal_ours): Rename to ...
9593 (child_terminal_ours): ... this.
9594 (terminal_ours_1): Rename to ...
9595 (child_terminal_ours_1): ... this. Adjust.
9596 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9597 * windows-nat.c (do_initial_windows_stuff): Adjust.
9598 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9599 (gnu_terminal_init): ... this. Adjust.
9600 (gnu_target): Adjust.
9601 * inf-child.c (inf_child_target): Adjust.
9602
9603 2014-03-13 Doug Evans <xdje42@gmail.com>
9604
9605 PR guile/16612
9606 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9607 new eq?-hashtab.
9608
9609 2014-03-13 Doug Evans <xdje42@gmail.com>
9610
9611 * value.c (record_latest_value): Call release_value_or_incref
9612 instead of release_value.
9613
9614 2014-03-13 Pedro Alves <palves@redhat.com>
9615
9616 * procfs.c (procfs_target): Don't override to_shortname,
9617 to_longname or to_doc.
9618
9619 2014-03-13 Pedro Alves <palves@redhat.com>
9620
9621 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9622 Unix in user visible strings.
9623
9624 2014-03-12 Stan Shebs <stan@codesourcery.com>
9625
9626 * gdbtypes.h: Annotate comments for Doxygen, add a page
9627 block comment with some general info.
9628
9629 2014-03-12 Pedro Alves <palves@redhat.com>
9630
9631 * infcmd.c (prepare_execution_command): New function, factored out
9632 from several execution commands.
9633 (run_command_1, continue_command, step_1, jump_command)
9634 (signal_command, until_command, advance_command, finish_command)
9635 (attach_command): Use prepare_execution_command.
9636
9637 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9638
9639 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9640 (MAX_BPTS): Define.
9641 (MAX_WPTS): Define.
9642 (struct arm_linux_thread_points): Removed.
9643 (struct arm_linux_process_info): New.
9644 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9645 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9646 (arm_linux_find_breakpoints_by_tid): Removed.
9647 (struct arch_lwp_info): New.
9648 (arm_linux_find_process_pid): New functions.
9649 (arm_linux_add_process): New functions.
9650 (arm_linux_process_info_get): New functions.
9651 (arm_linux_forget_process): New function.
9652 (arm_linux_get_debug_reg_state): New function.
9653 (struct update_registers_data): New.
9654 (update_registers_callback): New function.
9655 (arm_linux_insert_hw_breakpoint1): Updated.
9656 (arm_linux_remove_hw_breakpoint1): Updated.
9657 (arm_linux_insert_hw_breakpoint): Updated.
9658 (arm_linux_remove_hw_breakpoint): Updated.
9659 (arm_linux_insert_watchpoint): Updated.
9660 (arm_linux_remove_watchpoint): Updated.
9661 (arm_linux_new_thread): Updated.
9662 (arm_linux_prepare_to_resume): New function.
9663 (arm_linux_new_fork): New function.
9664 (_initialize_arm_linux_nat): Updated.
9665
9666 2014-03-12 Pedro Alves <palves@redhat.com>
9667
9668 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9669
9670 2014-03-12 Tom Tromey <tromey@redhat.com>
9671
9672 * inf-child.c (return_zero): New function.
9673 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9674 * aix-thread.c (aix_thread_inferior_created): New function.
9675 (aix_thread_attach): Remove.
9676 (init_aix_thread_ops): Don't set to_attach.
9677 (_initialize_aix_thread): Register inferior_created observer.
9678 * corelow.c (init_core_ops): Don't set to_attach or
9679 to_create_inferior.
9680 * exec.c (init_exec_ops): Don't set to_attach or
9681 to_create_inferior.
9682 * infcmd.c (run_command_1): Use find_run_target. Make direct
9683 target calls.
9684 (attach_command): Use find_attach_target. Make direct target
9685 calls.
9686 * record-btrace.c (init_record_btrace_ops): Don't set
9687 to_create_inferior.
9688 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9689 Remove.
9690 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9691 set to_create_inferior.
9692 * target.c (complete_target_initialization): Add assertion.
9693 (target_create_inferior): Remove.
9694 (find_default_attach, find_default_create_inferior): Remove.
9695 (find_attach_target, find_run_target): New functions.
9696 (find_default_is_async_p, find_default_can_async_p)
9697 (target_supports_non_stop, target_attach): Remove.
9698 (init_dummy_target): Don't set to_create_inferior or
9699 to_supports_non_stop.
9700 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9701 TARGET_DEFAULT_FUNC.
9702 <to_create_inferior>: Add comment.
9703 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9704 TARGET_DEFAULT_RETURN.
9705 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9706 (find_attach_target, find_run_target): Declare.
9707 (target_create_inferior): Remove.
9708 (target_has_execution_1): Update comment.
9709 (target_supports_non_stop): Remove.
9710 * target-delegates.c: Rebuild.
9711
9712 2014-03-12 Pedro Alves <palves@redhat.com>
9713
9714 * inf-child.h: Update comment to not mention Unix.
9715
9716 2014-03-12 Pedro Alves <palves@redhat.com>
9717
9718 * inf-child.c: Update top comment to not mention Unix. Add
9719 generic comment describing how this target is meant to be used.
9720 (inf_child_post_attach, inf_child_post_startup_inferior)
9721 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9722 Unix in comment.
9723
9724 2014-03-12 Pedro Alves <palves@redhat.com>
9725
9726 * nto-procfs.c: Include inf-child.h.
9727 (procfs_ops): Delete global.
9728 (procfs_can_run): Delete method.
9729 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9730 target pointer instead of referencing procfs_ops.
9731 (procfs_prepare_to_store): Delete.
9732 (init_procfs_ops): Delete function.
9733 (procfs_target): New function, based on init_procfs_ops, but
9734 inherit inf_child_target.
9735 (_initialize_procfs): Use procfs_target.
9736
9737 2014-03-12 Pedro Alves <palves@redhat.com>
9738
9739 * windows-nat.c: Include inf-child.h.
9740 (windows_ops): Delete global.
9741 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9742 methods.
9743 (init_windows_ops): Delete function.
9744 (windows_target): New function, based on init_windows_ops, but
9745 inherit inf_child_target.
9746 (_initialize_windows_nat): Use windows_target. Install x86
9747 specific target methods here.
9748
9749 2014-03-10 Doug Evans <xdje42@gmail.com>
9750
9751 * guile/guile.c (call_initialize_gdb_module): New function.
9752 (initialize_guile): Replace call to scm_init_guile with call to
9753 scm_with_guile.
9754
9755 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9756
9757 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9758 in call to TYPE_CODE macro.
9759
9760 2014-03-10 Jerome Guitton <guitton@adacore.com>
9761
9762 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9763 Resolve tagged types to full view.
9764
9765 2014-03-10 Hui Zhu <hui@codesourcery.com>
9766
9767 * target.h (target_insert_breakpoint): Remove "hardware" from its
9768 comments.
9769
9770 2014-03-07 Doug Evans <dje@google.com>
9771
9772 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9773
9774 2014-03-07 Doug Evans <dje@google.com>
9775
9776 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9777 Remove unused local comp_dir_attr. Assert exactly one of
9778 stub_comp_unit_die, stub_comp_dir is non-NULL.
9779
9780 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9781
9782 * target.h (complete_target_initialization, add_target):
9783 Add comment.
9784
9785 2014-03-07 Pedro Alves <palves@redhat.com>
9786
9787 * go32-nat.c: Include inf-child.h.
9788 (go32_ops): Delete global.
9789 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9790 Delete methods.
9791 (go32_create_inferior): Push the passed in target pointer instead
9792 of referencing go32_ops.
9793 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9794 (go32_target): New function, based on init_go32_ops, but inherit
9795 inf_child_target.
9796 (_initialize_go32_nat): Use go32_target. Move parts of
9797 init_go32_ops here.
9798
9799 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9800
9801 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9802 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9803 SYMBOL_VALUE_ADDRESS.
9804 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9805
9806 2014-03-06 Yao Qi <yao@codesourcery.com>
9807
9808 * breakpoint.c (get_tracepoint_by_number): Remove argument
9809 optional_p. All callers updated. Adjust comments. Update
9810 output message.
9811 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9812
9813 2014-03-06 Yao Qi <yao@codesourcery.com>
9814
9815 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9816 early if get_number returns zero. Use 'p' instead of 'args'.
9817
9818 2014-03-06 Yao Qi <yao@codesourcery.com>
9819
9820 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9821 message.
9822
9823 2014-03-06 Yao Qi <yao@codesourcery.com>
9824
9825 PR breakpoints/16508
9826 * tracepoint.c (check_trace_running): New function.
9827 (trace_find_command): Move code to check_trace_running and
9828 call check_trace_running.
9829 (trace_find_pc_command): Likewise.
9830 (trace_find_tracepoint_command): Likewise.
9831 (trace_find_line_command): Likewise.
9832 (trace_find_range_command): Likewise.
9833 * tracepoint.h (check_trace_running): Likewise.
9834 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9835
9836 2014-03-06 Yao Qi <yao@codesourcery.com>
9837
9838 * target.h (struct target_ops) <to_traceframe_info>: Use
9839 TARGET_DEFAULT_NORETURN (tcomplain ()).
9840 * target-delegates.c: Regenerated.
9841
9842 2014-03-05 Pedro Alves <palves@redhat.com>
9843
9844 PR gdb/16575
9845 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9846 void. Update comment.
9847 (dcache_xfer_memory): Delete.
9848 (dcache_read_memory_partial): New, based on the read bits of
9849 dcache_xfer_memory.
9850 (dcache_update): Add status parameter. Use ULONGEST for len, and
9851 adjust. Discard cache lines if the reason for the update was
9852 error.
9853 * dcache.h (dcache_xfer_memory): Delete declaration.
9854 (dcache_read_memory_partial): New declaration.
9855 (dcache_update): Update prototype.
9856 * target.c (raw_memory_xfer_partial): Update the dcache here.
9857 (memory_xfer_partial_1): Don't handle dcache writes here.
9858
9859 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9860
9861 * remote-sim.c (gdbsim_load): Add const to prog.
9862
9863 2014-03-03 Tom Tromey <tromey@redhat.com>
9864
9865 * elfread.c (probe_key): Change to bfd_data.
9866 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9867 now per-BFD, not per-objfile.
9868 * stap-probe.c (stap_probe_destroy): Update comment.
9869 (handle_stap_probe): Allocate on the per-BFD obstack.
9870
9871 2014-03-03 Tom Tromey <tromey@redhat.com>
9872
9873 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9874 * breakpoint.c (create_longjmp_master_breakpoint): Use
9875 get_probe_address.
9876 (add_location_to_breakpoint, bkpt_probe_insert_location)
9877 (bkpt_probe_remove_location): Update.
9878 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9879 * elfread.c (elf_symfile_relocate_probe): Remove.
9880 (elf_probe_fns): Update.
9881 (insert_exception_resume_breakpoint): Change type of "probe"
9882 parameter to bound_probe.
9883 (check_exception_resume): Update.
9884 * objfiles.c (objfile_relocate1): Don't relocate probes.
9885 * probe.c (bound_probe_s): New typedef.
9886 (parse_probes): Use get_probe_address. Set sal's objfile.
9887 (find_probe_by_pc): Return a bound_probe.
9888 (collect_probes): Return a VEC(bound_probe_s).
9889 (compare_probes): Update.
9890 (gen_ui_out_table_header_info): Change type of "probes"
9891 parameter. Update.
9892 (info_probes_for_ops): Update.
9893 (get_probe_address): New function.
9894 (probe_safe_evaluate_at_pc): Update.
9895 * probe.h (struct probe_ops) <get_probe_address>: New field.
9896 <set_semaphore, clear_semaphore>: Add objfile parameter.
9897 (struct probe) <objfile>: Remove field.
9898 <arch>: New field.
9899 <address>: Update comment.
9900 (struct bound_probe): New.
9901 (find_probe_by_pc): Return a bound_probe.
9902 (get_probe_address): Declare.
9903 * solib-svr4.c (struct probe_and_action) <address>: New field.
9904 (hash_probe_and_action, equal_probe_and_action): Update.
9905 (register_solib_event_probe): Add address parameter.
9906 (solib_event_probe_at): Update.
9907 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9908 get_probe_address.
9909 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9910 (stap_get_probe_address): New function.
9911 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9912 (compile_probe_arg): Update.
9913 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9914 address.
9915 (handle_stap_probe): Don't relocate the probe.
9916 (stap_relocate): Remove.
9917 (stap_gen_info_probes_table_values): Update.
9918 (stap_probe_ops): Remove stap_relocate.
9919 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9920 (debug_sym_probe_fns): Update.
9921 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9922 * symtab.c (init_sal): Use memset.
9923 * symtab.h (struct symtab_and_line) <objfile>: New field.
9924 * tracepoint.c (start_tracing, stop_tracing): Update.
9925
9926 2014-03-03 Tom Tromey <tromey@redhat.com>
9927
9928 * probe.h (parse_probes, find_probe_by_pc)
9929 (find_probes_in_objfile): Fix comments.
9930
9931 2014-03-02 Doug Evans <xdje42@gmail.com>
9932
9933 * infrun.c (handle_signal_stop): Replace test for
9934 TARGET_WAITKIND_STOPPED with an assert.
9935
9936 2014-03-02 Doug Evans <xdje42@gmail.com>
9937
9938 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9939
9940 2014-03-02 Doug Evans <xdje42@gmail.com>
9941
9942 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9943
9944 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9945
9946 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9947
9948 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9949
9950 * i386obsd-nat.c: Include "obsd-nat.h".
9951 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9952 add_target.
9953 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9954
9955 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9956
9957 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9958
9959 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9960
9961 * mips64obsd-nat.c: Include "obsd-nath".
9962 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9963 add_target
9964 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9965
9966 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9967
9968 * amd64obsd-nat.c: Include "obsd-nat,h.
9969 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9970 add_target.
9971 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9972
9973 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9974
9975 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9976 (find_overload_match): Update call to find_oload_champ.
9977 (find_oload_champ_namespace_loop): Likewise
9978
9979 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9980
9981 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9982
9983 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9984 * config/sparc/obsd64.mh: New file.
9985 * sparc64obsd-nat.c: New file.
9986
9987 * obsd-nat.h: New file.
9988 * obsd-nat.c: New file.
9989 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9990 (ALLDEPFILES): Add obsd-nat.c.
9991
9992 2014-02-28 Tom Tromey <tromey@redhat.com>
9993
9994 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9995 * cli-out.h (cli_ui_out_impl): Now const.
9996 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9997 * ui-out.c (struct ui_out) <impl>: Now const.
9998 (default_ui_out_impl): Now const.
9999 (ui_out_new): Make 'impl' parameter const.
10000 * ui-out.h (ui_out_new): Update.
10001
10002 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10003
10004 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10005
10006 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10007
10008 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10009
10010 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10011
10012 Additional PR 8882 fix.
10013 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10014
10015 2014-02-27 Pedro Alves <palves@redhat.com>
10016
10017 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10018 isn't set.
10019
10020 2014-02-27 Pedro Alves <palves@redhat.com>
10021
10022 PR 12702
10023 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10024 * nat/linux-waitpid.c: Include string.h.
10025 (status_to_str): Moved here and made extern.
10026 * nat/linux-waitpid.h (status_to_str): New declaration.
10027
10028 2014-02-27 Hui Zhu <hui@codesourcery.com>
10029
10030 PR 12702
10031 * infrun.c (ptid_match): Move ...
10032 * common/ptid.c (ptid_match): ... here.
10033 * inferior.h (ptid_match): Move ...
10034 * common/ptid.h (ptid_match): ... here.
10035
10036 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10037
10038 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10039 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10040 gdb_target_obs.
10041
10042 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10043
10044 * obsd-tdep.c (obsd_auxv_parse): New function.
10045 (obsd_init_abi): Set auxv_parse.
10046
10047 * gdbarch.sh (auxv_parse): New.
10048 * gdbarch.h: Regenerated.
10049 * gdbarch.c: Regenerated.
10050 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10051
10052 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10053
10054 * guile/scm-value.c (gdbscm_history_append_x): New function.
10055 (value_functions): Add it.
10056
10057 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10058
10059 * dwarf2read.c (attr_value_as_address): New function.
10060 (dwarf2_find_base_address, read_call_site_scope): Use
10061 attr_value_as_address in place of DW_ADDR.
10062 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10063 the low and high addresses. Slight rework of the handling
10064 of the high pc being a constant form, and limit it to
10065 DWARF verson 4 or higher.
10066 (dwarf2_record_block_ranges): Likewise.
10067 (read_partial_die): Likewise.
10068 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10069
10070 2014-02-26 Tom Tromey <tromey@redhat.com>
10071
10072 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10073
10074 2014-02-26 Tom Tromey <tromey@redhat.com>
10075
10076 * elfread.c (elf_read_minimal_symbols): Return early if
10077 minimal symbols have already been read. Add "ei" parameter.
10078 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10079 * minsyms.c (prim_record_minimal_symbol_full): Update.
10080 * objfiles.h (struct objstats) <n_minsyms>: Move...
10081 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10082 * symmisc.c (print_objfile_statistics): Update.
10083
10084 2014-02-26 Tom Tromey <tromey@redhat.com>
10085
10086 * elfread.c (elf_read_minimal_symbols): New function, from
10087 elf_symfile_read.
10088 (elf_symfile_read): Call it.
10089
10090 2014-02-26 Tom Tromey <tromey@redhat.com>
10091
10092 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10093 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10094 (lookup_minimal_symbol_solib_trampoline)
10095 (lookup_minimal_symbol_by_pc_section_1)
10096 (lookup_minimal_symbol_and_objfile): Update.
10097 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10098 Don't allocate a minimal symbol if minsyms have already been read.
10099 (build_minimal_symbol_hash_tables): Update.
10100 (install_minimal_symbols): Do nothing if minsyms already read.
10101 Use the per-BFD obstack.
10102 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10103 * objfiles.c (allocate_objfile): Call
10104 terminate_minimal_symbol_table later.
10105 (have_minimal_symbols): Update.
10106 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10107 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10108 Move from struct objfile.
10109 <minsyms_read>: New field.
10110 (struct objfile) <msymbols, minimal_symbol_count,
10111 msymbol_hash, msymbol_demangled_hash>: Move.
10112 (ALL_OBJFILE_MSYMBOLS): Update.
10113 * symfile.c (read_symbols): Set minsyms_read.
10114 (reread_symbols): Update.
10115 * symmisc.c (dump_objfile, dump_msymbols): Update.
10116
10117 2014-02-26 Tom Tromey <tromey@redhat.com>
10118
10119 * minsyms.c (msymbols_sort): Remove.
10120 * minsyms.h (msymbols_sort): Remove.
10121 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10122 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10123 * elfread.c (elf_symtab_read): Don't add section offsets.
10124 * xcoffread.c (record_minimal_symbol): Don't add section offset
10125 to minimal symbol address.
10126 * somread.c (text_offset, data_offset): Remove.
10127 (som_symtab_read): Don't add section offsets to minimal symbol
10128 addresses.
10129 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10130 Don't add section offsets to minimal symbols.
10131 * coffread.c (coff_symtab_read): Don't add section offsets
10132 to minimal symbol addresses.
10133 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10134 to minimal symbol addresses.
10135 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10136 section offset to minimal symbol addresses.
10137 * mdebugread.c (parse_partial_symbols): Don't add section
10138 offset to minimal symbol addresses.
10139 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10140 offset to minimal symbol addresses.
10141
10142 2014-02-26 Tom Tromey <tromey@redhat.com>
10143
10144 * ada-lang.c (ada_main_name): Update.
10145 (ada_add_standard_exceptions): Update.
10146 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10147 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10148 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10149 * auxv.c (ld_so_xfer_auxv): Update.
10150 * avr-tdep.c (avr_scan_prologue): Update.
10151 * ax-gdb.c (gen_var_ref): Update.
10152 * blockframe.c (get_pc_function_start)
10153 (find_pc_partial_function_gnu_ifunc): Update.
10154 * breakpoint.c (create_overlay_event_breakpoint)
10155 (create_longjmp_master_breakpoint)
10156 (create_std_terminate_master_breakpoint)
10157 (create_exception_master_breakpoint): Update.
10158 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10159 * c-valprint.c (c_val_print): Update.
10160 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10161 * common/agent.c (agent_look_up_symbols): Update.
10162 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10163 * dwarf2loc.c (call_site_to_target_addr): Update.
10164 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10165 * elfread.c (elf_gnu_ifunc_record_cache)
10166 (elf_gnu_ifunc_resolve_by_got): Update.
10167 * findvar.c (default_read_var_value): Update.
10168 * frame.c (inside_main_func): Update.
10169 * frv-tdep.c (frv_frame_this_id): Update.
10170 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10171 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10172 Update.
10173 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10174 (hppa_hpux_find_dummy_bpaddr): Update.
10175 * hppa-tdep.c (hppa_symbol_address): Update.
10176 * infcmd.c (until_next_command): Update.
10177 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10178 Update.
10179 * linespec.c (minsym_found, add_minsym): Update.
10180 * linux-nat.c (get_signo): Update.
10181 * linux-thread-db.c (inferior_has_bug): Update.
10182 * m32c-tdep.c (m32c_return_value)
10183 (m32c_m16c_address_to_pointer): Update.
10184 * m32r-tdep.c (m32r_frame_this_id): Update.
10185 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10186 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10187 * maint.c (maintenance_translate_address): Update.
10188 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10189 (frob_address): New function.
10190 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10191 frob_address. Rename parameter to "pc_in".
10192 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10193 addresses.
10194 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10195 Update.
10196 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10197 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10198 * objc-lang.c (find_objc_msgsend): Update.
10199 * objfiles.c (objfile_relocate1): Update.
10200 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10201 * p-valprint.c (pascal_val_print): Update.
10202 * parse.c (write_exp_msymbol): Update.
10203 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10204 (ppc_elfv2_skip_entrypoint): Update.
10205 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10206 * printcmd.c (build_address_symbolic, msym_info)
10207 (address_info): Update.
10208 * proc-service.c (ps_pglobal_lookup): Update.
10209 * psymtab.c (find_pc_sect_psymtab_closer)
10210 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10211 Change msymbol parameter to bound_minimal_symbol.
10212 * ravenscar-thread.c (get_running_thread_id): Update.
10213 * remote.c (remote_check_symbols): Update.
10214 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10215 address.
10216 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10217 * solib-dsbt.c (lm_base): Update.
10218 * solib-frv.c (lm_base, main_got): Update.
10219 * solib-irix.c (locate_base): Update.
10220 * solib-som.c (som_solib_create_inferior_hook)
10221 (link_map_start): Update.
10222 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10223 * solib-svr4.c (elf_locate_base, enable_break): Update.
10224 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10225 (flush_ea_cache): Update.
10226 * stabsread.c (define_symbol, scan_file_globals): Update.
10227 * stack.c (find_frame_funname): Update.
10228 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10229 (debug_qf_find_pc_sect_symtab): Update.
10230 * symfile.c (simple_read_overlay_table)
10231 (simple_overlay_update): Update.
10232 * symfile.h (struct quick_symbol_functions)
10233 <find_pc_sect_symtab>: Change type of msymbol to
10234 bound_minimal_symbol.
10235 * symmisc.c (dump_msymbols): Update.
10236 * symtab.c (find_pc_sect_symtab_via_partial)
10237 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10238 (search_symbols, print_msymbol_info): Update.
10239 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10240 (MSYMBOL_VALUE_ADDRESS): Redefine.
10241 (BMSYMBOL_VALUE_ADDRESS): New macro.
10242 * tracepoint.c (scope_info): Update.
10243 * tui/tui-disasm.c (tui_find_disassembly_address)
10244 (tui_get_begin_asm_address): Update.
10245 * valops.c (find_function_in_inferior): Update.
10246 * value.c (value_static_field, value_fn_field): Update.
10247
10248 2014-02-26 Tom Tromey <tromey@redhat.com>
10249
10250 * ada-lang.c (ada_update_initial_language): Update.
10251 (ada_main_name, ada_has_this_exception_support): Update.
10252 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10253 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10254 * arm-tdep.c (arm_skip_stub): Update.
10255 * auxv.c (ld_so_xfer_auxv): Update.
10256 * avr-tdep.c (avr_scan_prologue): Update.
10257 * ax-gdb.c (gen_var_ref): Update.
10258 * breakpoint.c (struct breakpoint_objfile_data)
10259 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10260 type to bound_minimal_symbol.
10261 (create_overlay_event_breakpoint)
10262 (create_longjmp_master_breakpoint)
10263 (create_std_terminate_master_breakpoint)
10264 (create_exception_master_breakpoint): Update.
10265 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10266 * c-exp.y (classify_name): Update.
10267 * coffread.c (coff_symfile_read): Update.
10268 * common/agent.c (agent_look_up_symbols): Update.
10269 * d-lang.c (d_main_name): Update.
10270 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10271 * dec-thread.c (enable_dec_thread): Update.
10272 * dwarf2loc.c (call_site_to_target_addr): Update.
10273 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10274 * eval.c (evaluate_subexp_standard): Update.
10275 * findvar.c (struct minsym_lookup_data) <result>: Change type
10276 to bound_minimal_symbol.
10277 <objfile>: Remove.
10278 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10279 * frame.c (inside_main_func): Update.
10280 * frv-tdep.c (frv_frame_this_id): Update.
10281 * gcore.c (call_target_sbrk): Update.
10282 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10283 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10284 Update.
10285 * go-lang.c (go_main_name): Update.
10286 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10287 (hppa_hpux_find_import_stub_for_addr): Update.
10288 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10289 Update. Change return type.
10290 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10291 type.
10292 * jit.c (jit_breakpoint_re_set_internal): Update.
10293 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10294 Update.
10295 * linux-nat.c (get_signo): Update.
10296 * linux-thread-db.c (inferior_has_bug): Update
10297 * m32c-tdep.c (m32c_return_value)
10298 (m32c_m16c_address_to_pointer): Update.
10299 * m32r-tdep.c (m32r_frame_this_id): Update.
10300 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10301 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10302 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10303 lookup_minimal_symbol. Change return type.
10304 (lookup_minimal_symbol): Remove.
10305 (lookup_bound_minimal_symbol): Update.
10306 (lookup_minimal_symbol_text): Change return type.
10307 (lookup_minimal_symbol_solib_trampoline): Change return type.
10308 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10309 (lookup_minimal_symbol_solib_trampoline): Change return type.
10310 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10311 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10312 (value_nsstring, find_imps): Update.
10313 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10314 * p-lang.c (pascal_main_name): Update.
10315 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10316 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10317 * proc-service.c (ps_pglobal_lookup): Update.
10318 * ravenscar-thread.c (get_running_thread_msymbol): Change
10319 return type.
10320 (has_ravenscar_runtime, get_running_thread_id): Update.
10321 * remote.c (remote_check_symbols): Update.
10322 * sol-thread.c (ps_pglobal_lookup): Update.
10323 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10324 * solib-dsbt.c (lm_base): Update.
10325 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10326 Update.
10327 * solib-irix.c (locate_base): Update.
10328 * solib-som.c (som_solib_create_inferior_hook)
10329 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10330 Update.
10331 * solib-spu.c (spu_enable_break): Update.
10332 * solib-svr4.c (elf_locate_base, enable_break): Update.
10333 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10334 (flush_ea_cache): Update.
10335 * stabsread.c (define_symbol): Update.
10336 * symfile.c (simple_read_overlay_table): Update.
10337 * symtab.c (find_pc_sect_line): Update.
10338 * tracepoint.c (scope_info): Update.
10339 * tui-disasm.c (tui_get_begin_asm_address): Update.
10340 * value.c (value_static_field): Update.
10341
10342 2014-02-26 Tom Tromey <tromey@redhat.com>
10343
10344 * minsyms.c (prim_record_minimal_symbol_full): Use
10345 SET_MSYMBOL_VALUE_ADDRESS.
10346 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10347 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10348 SET_MSYMBOL_VALUE_ADDRESS.
10349 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10350 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10351
10352 2014-02-26 Tom Tromey <tromey@redhat.com>
10353
10354 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10355 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10356 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10357 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10358 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10359 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10360 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10361 * ada-lang.c (ada_main_name): Update.
10362 (ada_lookup_simple_minsym): Update.
10363 (ada_make_symbol_completion_list): Update.
10364 (ada_add_standard_exceptions): Update.
10365 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10366 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10367 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10368 * arm-tdep.c (skip_prologue_function): Update.
10369 (arm_skip_stack_protector, arm_skip_stub): Update.
10370 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10371 (arm_wince_skip_main_prologue): Update.
10372 * auxv.c (ld_so_xfer_auxv): Update.
10373 * avr-tdep.c (avr_scan_prologue): Update.
10374 * ax-gdb.c (gen_var_ref): Update.
10375 * block.c (call_site_for_pc): Update.
10376 * blockframe.c (get_pc_function_start): Update.
10377 (find_pc_partial_function_gnu_ifunc): Update.
10378 * breakpoint.c (create_overlay_event_breakpoint): Update.
10379 (create_longjmp_master_breakpoint): Update.
10380 (create_std_terminate_master_breakpoint): Update.
10381 (create_exception_master_breakpoint): Update.
10382 (resolve_sal_pc): Update.
10383 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10384 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10385 Update.
10386 * c-valprint.c (c_val_print): Update.
10387 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10388 * coffread.c (coff_symfile_read): Update.
10389 * common/agent.c (agent_look_up_symbols): Update.
10390 * dbxread.c (find_stab_function_addr): Update.
10391 (end_psymtab): Update.
10392 * dwarf2loc.c (call_site_to_target_addr): Update.
10393 (func_verify_no_selftailcall): Update.
10394 (tailcall_dump): Update.
10395 (call_site_find_chain_1): Update.
10396 (dwarf_expr_reg_to_entry_parameter): Update.
10397 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10398 (elf_gnu_ifunc_resolve_by_got): Update.
10399 * f-valprint.c (info_common_command): Update.
10400 * findvar.c (read_var_value): Update.
10401 * frame.c (get_prev_frame_1): Update.
10402 (inside_main_func): Update.
10403 * frv-tdep.c (frv_skip_main_prologue): Update.
10404 (frv_frame_this_id): Update.
10405 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10406 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10407 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10408 (gnuv3_skip_trampoline): Update.
10409 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10410 (hppa64_hpux_in_solib_call_trampoline): Update.
10411 (hppa_hpux_skip_trampoline_code): Update.
10412 (hppa64_hpux_search_dummy_call_sequence): Update.
10413 (hppa_hpux_find_import_stub_for_addr): Update.
10414 (hppa_hpux_find_dummy_bpaddr): Update.
10415 * hppa-tdep.c (hppa_symbol_address)
10416 (hppa_lookup_stub_minimal_symbol): Update.
10417 * i386-tdep.c (i386_skip_main_prologue): Update.
10418 (i386_pe_skip_trampoline_code): Update.
10419 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10420 * infcall.c (get_function_name): Update.
10421 * infcmd.c (until_next_command): Update.
10422 * jit.c (jit_breakpoint_re_set_internal): Update.
10423 (jit_inferior_init): Update.
10424 * linespec.c (minsym_found): Update.
10425 (add_minsym): Update.
10426 * linux-fork.c (info_checkpoints_command): Update.
10427 * linux-nat.c (get_signo): Update.
10428 * linux-thread-db.c (inferior_has_bug): Update.
10429 * m32c-tdep.c (m32c_return_value): Update.
10430 (m32c_m16c_address_to_pointer): Update.
10431 (m32c_m16c_pointer_to_address): Update.
10432 * m32r-tdep.c (m32r_frame_this_id): Update.
10433 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10434 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10435 * maint.c (maintenance_translate_address): Update.
10436 * minsyms.c (add_minsym_to_hash_table): Update.
10437 (add_minsym_to_demangled_hash_table): Update.
10438 (msymbol_objfile): Update.
10439 (lookup_minimal_symbol): Update.
10440 (iterate_over_minimal_symbols): Update.
10441 (lookup_minimal_symbol_text): Update.
10442 (lookup_minimal_symbol_by_pc_name): Update.
10443 (lookup_minimal_symbol_solib_trampoline): Update.
10444 (lookup_minimal_symbol_by_pc_section_1): Update.
10445 (lookup_minimal_symbol_and_objfile): Update.
10446 (prim_record_minimal_symbol_full): Update.
10447 (compare_minimal_symbols): Update.
10448 (compact_minimal_symbols): Update.
10449 (build_minimal_symbol_hash_tables): Update.
10450 (install_minimal_symbols): Update.
10451 (terminate_minimal_symbol_table): Update.
10452 (find_solib_trampoline_target): Update.
10453 (minimal_symbol_upper_bound): Update.
10454 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10455 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10456 (mips_skip_pic_trampoline_code): Update.
10457 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10458 * objc-lang.c (selectors_info): Update.
10459 (classes_info): Update.
10460 (find_methods): Update.
10461 (find_imps): Update.
10462 (find_objc_msgsend): Update.
10463 * objfiles.c (objfile_relocate1): Update.
10464 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10465 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10466 * p-valprint.c (pascal_val_print): Update.
10467 * parse.c (write_exp_msymbol): Update.
10468 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10469 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10470 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10471 * printcmd.c (build_address_symbolic): Update.
10472 (sym_info): Update.
10473 (address_info): Update.
10474 * proc-service.c (ps_pglobal_lookup): Update.
10475 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10476 (find_pc_sect_psymtab): Update.
10477 * python/py-framefilter.c (py_print_frame): Update.
10478 * ravenscar-thread.c (get_running_thread_id): Update.
10479 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10480 Update.
10481 * remote.c (remote_check_symbols): Update.
10482 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10483 (rs6000_skip_trampoline_code): Update.
10484 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10485 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10486 * solib-dsbt.c (lm_base): Update.
10487 * solib-frv.c (lm_base): Update.
10488 (main_got): Update.
10489 * solib-irix.c (locate_base): Update.
10490 * solib-som.c (som_solib_create_inferior_hook): Update.
10491 (som_solib_desire_dynamic_linker_symbols): Update.
10492 (link_map_start): Update.
10493 * solib-spu.c (spu_enable_break): Update.
10494 (ocl_enable_break): Update.
10495 * solib-svr4.c (elf_locate_base): Update.
10496 (enable_break): Update.
10497 * spu-tdep.c (spu_get_overlay_table): Update.
10498 (spu_catch_start): Update.
10499 (flush_ea_cache): Update.
10500 * stabsread.c (define_symbol): Update.
10501 (scan_file_globals): Update.
10502 * stack.c (find_frame_funname): Update.
10503 (frame_info): Update.
10504 * symfile.c (simple_read_overlay_table): Update.
10505 (simple_overlay_update): Update.
10506 * symmisc.c (dump_msymbols): Update.
10507 * symtab.c (fixup_section): Update.
10508 (find_pc_sect_line): Update.
10509 (skip_prologue_sal): Update.
10510 (search_symbols): Update.
10511 (print_msymbol_info): Update.
10512 (rbreak_command): Update.
10513 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10514 (completion_list_objc_symbol): Update.
10515 (default_make_symbol_completion_list_break_on): Update.
10516 * tracepoint.c (scope_info): Update.
10517 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10518 (tui_get_begin_asm_address): Update.
10519 * valops.c (find_function_in_inferior): Update.
10520 * value.c (value_static_field): Update.
10521 (value_fn_field): Update.
10522
10523 2014-02-26 Tom Tromey <tromey@redhat.com>
10524
10525 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10526 bound minimal symbols. Move code that knows about minsym
10527 table layout...
10528 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10529 function.
10530 * minsyms.h (minimal_symbol_upper_bound): Declare.
10531 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10532 minimal_symbol_upper_bound.
10533
10534 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10535
10536 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10537 Use the type's name if its basic type does not have a tag.
10538
10539 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10540
10541 * dwarf2read.c (read_subrange_type): Add comment.
10542
10543 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10544
10545 * dwarf2read.c (update_enumeration_type_from_children): New
10546 function, mostly extracted from process_structure_scope.
10547 (read_enumeration_type): Call update_enumeration_type_from_children.
10548 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10549 and flag_flag_enum fields.
10550
10551 2014-02-26 Pedro Alves <palves@redhat.com>
10552
10553 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10554 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10555 to_xfer_partial method.
10556
10557 2014-02-26 Pedro Alves <palves@redhat.com>
10558
10559 * target.c (complete_target_initialization): Don't install
10560 default_xfer_partial as to_xfer_partial hook.
10561 (nomemory): Delete.
10562 (update_current_target): Don't INHERIT nor de_fault
10563 deprecated_xfer_memory. Delete de_fault macro.
10564 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10565 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10566 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10567 field.
10568
10569 2014-02-26 Pedro Alves <palves@redhat.com>
10570
10571 * go32-nat.c (my_write_child): New function.
10572 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10573 (go32_xfer_partial): New function.
10574 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10575 Instead install a to_xfer_partial hook.
10576
10577 2014-02-26 Pedro Alves <palves@redhat.com>
10578
10579 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10580 to_xfer_partial helper. Rewrite.
10581 (procfs_xfer_partial): New function.
10582 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10583 Install a to_xfer_partial hook.
10584
10585 2014-02-26 Pedro Alves <palves@redhat.com>
10586
10587 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10588 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10589 (m32r_xfer_partial): New function.
10590 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10591 Install a to_xfer_partial hook.
10592
10593 2014-02-26 Pedro Alves <palves@redhat.com>
10594
10595 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10596 helper.
10597 (mips_xfer_partial): New function.
10598 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10599 hook. Install a to_xfer_partial hook.
10600
10601 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10602
10603 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10604 * gdbtypes.c (create_array_type_with_stride): New function,
10605 renaming create_array_type, but with an added parameter
10606 called "bit_stride".
10607 (create_array_type): Re-implement using
10608 create_array_type_with_stride.
10609 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10610 and DW_AT_bit_stride attributes.
10611
10612 2014-02-26 Pedro Alves <palves@redhat.com>
10613
10614 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10615 task-specific breakpoints.
10616
10617 2014-02-25 Pedro Alves <palves@redhat.com>
10618
10619 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10620 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10621
10622 2014-02-25 Stan Shebs <stan@codesourcery.com>
10623
10624 * defs.h: Annotate comments for Doxygen.
10625
10626 2014-02-25 Tom Tromey <tromey@redhat.com>
10627
10628 * target.h (target_ignore): Don't declare.
10629 * target.c (target_ignore): Remove.
10630
10631 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10632
10633 PR gdb/16626
10634 * auto-load.c (auto_load_objfile_script_1): Change filename to
10635 debugfile.
10636
10637 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10638
10639 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10640 documentation. Adjust prototype to match the target_ops
10641 to_xfer_partial method. Adjust implementation accordingly.
10642
10643 2014-02-25 Hui Zhu <hui@codesourcery.com>
10644
10645 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10646 to_traceframe_info.
10647
10648 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10649
10650 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10651 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10652 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10653 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10654 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10655 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10656 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10657 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10658 New constants.
10659 (rl78_register_type): Use a data pointer type for SP and
10660 new pseudo registers mentioned above. Use a 16 bit integer
10661 type for all other register pairs.
10662 (rl78_register_name, rl78_g10_register_name): Update for
10663 new pseudo registers.
10664 (rl78_pseudo_register_read): Likewise.
10665 (rl78_pseudo_register_write): Likewise.
10666 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10667 to the newly added pseudo registers.
10668
10669 2014-02-24 Doug Evans <dje@google.com>
10670
10671 * value.c (record_latest_value): Fix comment.
10672 * printcmd.c (print_command_1): Remove code to handle -1 return from
10673 record_latest_value.
10674
10675 2014-02-24 Pedro Alves <palves@redhat.com>
10676
10677 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10678 deprecated_xfer_memory hook.
10679 (procfs_xfer_partial): Call procfs_xfer_memory instead
10680 of the deprecated_xfer_memory target hook.
10681 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10682 helper.
10683
10684 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10685
10686 * windows-nat.c (windows_xfer_shared_libraries): Return
10687 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10688 requested object is TARGET_OBJECT_LIBRARIES.
10689
10690 2014-02-24 Yao Qi <yao@codesourcery.com>
10691
10692 * target.h (enum target_xfer_status)
10693 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10694 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10695 explicitly. New.
10696 * corefile.c (memory_error_message): User updated.
10697 * exec.c (section_table_read_available_memory): Likewise.
10698 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10699 * target.c (target_xfer_status_to_string): Likewise.
10700 (raw_memory_xfer_partial): Likewise.
10701 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10702 * valops.c (read_value_memory): Likewise.
10703 * exec.h: Update comments.
10704
10705 2014-02-24 Yao Qi <yao@codesourcery.com>
10706
10707 * target.c (target_xfer_status_to_string): Rename argument err
10708 to status.
10709 * target.h (target_xfer_status_to_string): Update declaration.
10710 Replace target_xfer_error_to_string with
10711 target_xfer_status_to_string in comment.
10712
10713 2014-02-24 Yao Qi <yao@codesourcery.com>
10714
10715 * mips-linux-nat.c (super_close): Update its type.
10716 (mips_linux_close): Pass 'self' to super_close.
10717
10718 2014-02-24 Yao Qi <yao@codesourcery.com>
10719
10720 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10721 * corefile.c (read_memory): Adjusted.
10722 * target.c (target_write_with_progress): Adjusted.
10723
10724 2014-02-23 Yao Qi <yao@codesourcery.com>
10725
10726 Revert two patches:
10727
10728 2013-10-25 Yao Qi <yao@codesourcery.com>
10729
10730 * remote.c (remote_traceframe_info): Return early if
10731 traceframe is not selected.
10732
10733 2013-07-19 Yao Qi <yao@codesourcery.com>
10734
10735 * target.c (update_current_target): Change the default action
10736 of 'to_traceframe_info' from tcomplain to return_zero.
10737 * target.h (struct target_ops) <to_traceframe_info>: Add more
10738 comments.
10739
10740 2014-02-23 Yao Qi <yao@codesourcery.com>
10741
10742 * valops.c (read_value_memory): Rewrite it. Call
10743 target_xfer_partial in a loop.
10744 * exec.h (section_table_available_memory): Remove declaration.
10745 Move comments to ...
10746 * exec.c (section_table_available_memory): ... here. Make it
10747 static.
10748
10749 2014-02-23 Yao Qi <yao@codesourcery.com>
10750
10751 * exec.c (section_table_read_available_memory): New function.
10752 * exec.h (section_table_read_available_memory): Declare.
10753 * ctf.c (ctf_xfer_partial): Call
10754 section_table_read_available_memory.
10755 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10756
10757 2014-02-23 Yao Qi <yao@codesourcery.com>
10758
10759 * ctf.c (ctf_xfer_partial): Move code to ...
10760 * exec.c (exec_read_partial_read_only): ... it. New function.
10761 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10762 * tracefile.c: Include "exec.h".
10763 * exec.h (exec_read_partial_read_only): Declare.
10764
10765 2014-02-23 Yao Qi <yao@codesourcery.com>
10766
10767 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10768 (tfile_has_memory): Remove.
10769 (init_tfile_ops): Don't set fields to_has_all_memory and
10770 to_has_memory of tfile_ops.
10771 * tracefile.c (tracefile_has_all_memory): New function.
10772 (tracefile_has_memory): New function.
10773 (init_tracefile_ops): Initialize fields to_has_all_memory and
10774 to_has_memory of 'ops'.
10775
10776 2014-02-23 Yao Qi <yao@codesourcery.com>
10777
10778 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10779 (ctf_thread_alive, ctf_get_trace_status): Remove.
10780 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10781 init_tracefile_ops.
10782 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10783 (tfile_has_stack, tfile_has_registers): Remove.
10784 (tfile_thread_alive): Remove.
10785 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10786 init_tracefile_ops.
10787 * tracefile.c (tracefile_has_stack): New function.
10788 (tracefile_has_registers): New function.
10789 (tracefile_thread_alive): New function.
10790 (tracefile_get_trace_status): New function.
10791 (init_tracefile_ops): New function.
10792 * tracefile.h (init_tracefile_ops): Declare.
10793
10794 2014-02-23 Yao Qi <yao@codesourcery.com>
10795
10796 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10797 (O_LARGEFILE): Likewise.
10798 (tfile_ops): Likewise.
10799 (TRACE_HEADER_SIZE): Likewise.
10800 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10801 (cur_data_size): Likewise.
10802 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10803 (tfile_close, tfile_files_info): Likewise.
10804 (tfile_get_trace_status): Likewise.
10805 (tfile_get_tracepoint_status): Likewise.
10806 (tfile_get_traceframe_address): Likewise.
10807 (tfile_trace_find, match_blocktype): Likewise.
10808 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10809 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10810 (tfile_get_trace_state_variable_value): Likewise.
10811 (tfile_has_all_memory, tfile_has_memory): Likewise.
10812 (tfile_has_stack, tfile_has_registers): Likewise.
10813 (tfile_thread_alive, build_traceframe_info): Likewise.
10814 (tfile_traceframe_info, init_tfile_ops): Likewise.
10815 (_initialize_tracepoint): Don't call init_tfile_ops
10816 and add_target_with_completer.
10817 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10818 exec.h, completer.h and filenames.h.
10819 (_initialize_tracefile_tfile): New function.
10820
10821 2014-02-23 Yao Qi <yao@codesourcery.com>
10822
10823 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10824 tracefile-tfile.o.
10825 (HFILES_NO_SRCDIR): Add tracefile.h.
10826 * ctf.c: Include "tracefile.h".
10827 * tracefile.h: New file.
10828 * tracefile.c: New file
10829 * tracefile-tfile.c: New file.
10830 * tracepoint.c: Include "tracefile.h".
10831 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10832 (stop_reason_names): Add const.
10833 (trace_file_writer_xfree): Move it to tracefile.c.
10834 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10835 (trace_save_ctf): Likewise.
10836 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10837 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10838 (tfile_write_header, tfile_write_regblock_type): Likewise.
10839 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10840 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10841 (tfile_write_raw_data, tfile_end): Likewise.
10842 (tfile_trace_file_writer_new): Likewise.
10843 (free_uploaded_tp): Make it extern.
10844 (free_uploaded_tsv): Make it extern.
10845 (_initialize_tracepoint): Move code to register command 'tsave'
10846 to tracefile.c.
10847 * tracepoint.h (stop_reason_names): Declare.
10848 (struct trace_frame_write_ops): Move it to tracefile.h.
10849 (struct trace_file_write_ops): Likewise.
10850 (struct trace_file_writer): Likewise.
10851 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10852
10853 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10854
10855 PR gdb/16594
10856 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10857 process name.
10858 (get_cores_used_by_process): New parameter num_cores, use it.
10859 (linux_xfer_osdata_processes): Pass num_cores to it.
10860 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10861 process name.
10862
10863 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10864
10865 * target.c (memory_xfer_partial): Fix length arg in call to
10866 breakpoint_xfer_memory.
10867
10868 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10869
10870 PR tdep/16397
10871 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10872 number comes after the + or - signs. Adjust length of register
10873 name to be extracted.
10874
10875 2014-02-20 Tom Tromey <tromey@redhat.com>
10876
10877 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10878 (ada_varobj_ops): Mark "extern".
10879
10880 2014-02-20 Tom Tromey <tromey@redhat.com>
10881
10882 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10883
10884 2014-02-20 Doug Evans <xdje42@gmail.com>
10885
10886 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10887 All callers updated.
10888 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10889 All callers updated.
10890 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10891 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10892
10893 2014-02-20 lin zuojian <manjian2006@gmail.com>
10894 Joel Brobecker <brobecker@adacore.com>
10895 Doug Evans <xdje42@gmail.com>
10896
10897 PR symtab/16581
10898 * dwarf2read.c (struct die_info): New member in_process.
10899 (reset_die_in_process): New function.
10900 (process_die): Set it at the start, reset when returning.
10901 (inherit_abstract_dies): Only call process_die if origin_child_die
10902 not already being processed.
10903
10904 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10905
10906 * windows-nat.c (handle_unload_dll): Add function documentation.
10907 (do_initial_windows_stuff): Add comment explaining why we wait
10908 until after inferior initialization has finished before
10909 processing all DLLs.
10910
10911 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10912
10913 * windows-nat.c (get_module_name): Delete.
10914 (windows_get_exec_module_filename): New function, mostly
10915 inspired from get_module_name.
10916 (windows_pid_to_exec_file): Replace call to get_module_name
10917 by call to windows_get_exec_module_filename.
10918
10919 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10920
10921 * windows-nat.c (handle_load_dll): Rewrite this function's
10922 introductory comment. Remove code using get_module_name
10923 to get the DLL's name.
10924
10925 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10926
10927 * windows-nat.c (get_windows_debug_event): Ignore
10928 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10929 if windows_initialization_done == 0.
10930 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10931 Adjust implementation to always load all DLLs.
10932 (do_initial_windows_stuff): Replace call to
10933 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10934
10935 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10936
10937 * windows-nat.c (_initialize_windows_nat): Deprecate the
10938 "dll-symbols" command. Turn the "add-shared-symbol-files"
10939 and "assf" aliases into commands, and deprecate them as well.
10940 * NEWS: Add entry explaining that "dll-symbols" and its two
10941 aliases are now deprecated.
10942
10943 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10944
10945 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10946 new-line in debug string. Remove trailing spaces.
10947
10948 2014-02-19 Stan Shebs <stan@codesourcery.com>
10949
10950 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10951
10952 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10953
10954 * NEWS: Add entry for the new feature
10955 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10956 and class values.
10957
10958 2014-02-19 Stan Shebs <stan@codesourcery.com>
10959
10960 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10961
10962 2014-02-19 Pedro Alves <palves@redhat.com>
10963
10964 * common/ptid.h (struct ptid): Mention that process_stratum
10965 targets should prefer ptid.lwp.
10966
10967 2014-02-19 Pedro Alves <palves@redhat.com>
10968
10969 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10970 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10971 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10972 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10973 store remote thread ids rather than ptid.tid.
10974 (_initialize_remote): Adjust.
10975
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10977
10978 * target.c (target_get_unwinder): Rewrite.
10979 (target_get_tailcall_unwinder): Rewrite.
10980 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10981 (record_btrace_to_get_tailcall_unwinder): New function.
10982 (init_record_btrace_ops): Update.
10983 * target.h (struct target_ops) <to_get_unwinder,
10984 to_get_tailcall_unwinder>: Now function pointers. Use
10985 TARGET_DEFAULT_RETURN.
10986
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10988
10989 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10990 argument.
10991 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10992
10993 2014-02-19 Tom Tromey <tromey@redhat.com>
10994
10995 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10996 directly.
10997 * target-delegates.c: Rebuild.
10998 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10999 TARGET_DEFAULT_FUNC.
11000 * target.c (default_target_decr_pc_after_break): Rename from
11001 forward_target_decr_pc_after_break. Simplify.
11002 (target_decr_pc_after_break): Rely on delegation.
11003
11004 2014-02-19 Tom Tromey <tromey@redhat.com>
11005
11006 * target.c (update_current_target): Do not INHERIT to_doc or
11007 to_magic. Do not de_fault to_open or to_close.
11008
11009 2014-02-19 Tom Tromey <tromey@redhat.com>
11010
11011 * gcore.h (objfile_find_memory_regions): Declare.
11012 * gcore.c (objfile_find_memory_regions): No longer static. Add
11013 "self" argument.
11014 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11015 * exec.c: Include gcore.h.
11016 (exec_set_find_memory_regions): Remove.
11017 (exec_find_memory_regions): Remove.
11018 (exec_do_find_memory_regions): Remove.
11019 (init_exec_ops): Update.
11020 * defs.h (exec_set_find_memory_regions): Remove.
11021
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target-delegates.c: Rebuild.
11025 * target.h (struct target_ops) <to_extra_thread_info,
11026 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11027 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11028 not 0, in TARGET_DEFAULT_RETURN.
11029
11030 2014-02-19 Tom Tromey <tromey@redhat.com>
11031
11032 * target.c (complete_target_initialization): Remove casts. Use
11033 return_zero_has_execution.
11034 (return_zero): Add "ignore" argument.
11035 (return_zero_has_execution): New function.
11036 (init_dummy_target): Remove casts. Use
11037 return_zero_has_execution.
11038
11039 2014-02-19 Tom Tromey <tromey@redhat.com>
11040
11041 * target.c (update_current_target): Update comments. Do not
11042 INHERIT to_stratum.
11043
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11045
11046 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11047 needed.
11048 * corelow.c (core_read_description): Delegate when needed.
11049 * remote.c (remote_read_description): Delegate when needed.
11050 * target-delegates.c: Rebuild.
11051 * target.c (target_read_description): Rewrite.
11052 * target.h (struct target_ops) <to_read_description>: Update
11053 comment. Use TARGET_DEFAULT_RETURN.
11054
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target-delegates.c: Rebuild.
11058 * target.c (update_current_target): Don't inherit or default
11059 to_can_run.
11060 (find_default_run_target): Check against delegate_can_run.
11061 * target.h (struct target_ops) <to_can_run>: Use
11062 TARGET_DEFAULT_RETURN.
11063
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target-delegates.c: Rebuild.
11067 * target.c (target_disconnect): Unconditionally delegate.
11068 * target.h (struct target_ops) <to_disconnect>: Use
11069 TARGET_DEFAULT_NORETURN.
11070
11071 2014-02-19 Tom Tromey <tromey@redhat.com>
11072
11073 * record.c (record_stop): Unconditionally delegate.
11074 * target-delegates.c: Rebuild.
11075 * target.c (target_stop_recording): Unconditionally delegate.
11076 * target.h (struct target_ops) <to_stop_recording>: Use
11077 TARGET_DEFAULT_IGNORE.
11078
11079 2014-02-19 Tom Tromey <tromey@redhat.com>
11080
11081 * target-delegates.c: Rebuild.
11082 * target.c (target_enable_btrace): Unconditionally delegate.
11083 * target.h (struct target_ops) <to_enable_btrace>: Use
11084 TARGET_DEFAULT_NORETURN.
11085
11086 2014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target-delegates.c: Rebuild.
11089 * target.c (target_read_btrace): Unconditionally delegate.
11090 * target.h (struct target_ops) <to_read_btrace>: Use
11091 TARGET_DEFAULT_NORETURN.
11092
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * target-delegates.c: Rebuild.
11096 * target.c (target_teardown_btrace): Unconditionally delegate.
11097 * target.h (struct target_ops) <to_teardown_btrace>: Use
11098 TARGET_DEFAULT_NORETURN.
11099
11100 2014-02-19 Tom Tromey <tromey@redhat.com>
11101
11102 * target-delegates.c: Rebuild.
11103 * target.c (target_disable_btrace): Unconditionally delegate.
11104 * target.h (struct target_ops) <to_disable_btrace>: Use
11105 TARGET_DEFAULT_NORETURN.
11106
11107 2014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * target-delegates.c: Rebuild.
11110 * target.c (default_search_memory): New function.
11111 (simple_search_memory): Update comment.
11112 (target_search_memory): Unconditionally delegate.
11113 * target.h (struct target_ops) <to_search_memory>: Use
11114 TARGET_DEFAULT_FUNC.
11115
11116 2014-02-19 Tom Tromey <tromey@redhat.com>
11117
11118 * auxv.c (default_auxv_parse): No longer static.
11119 (target_auxv_parse): Unconditionally delegate.
11120 * auxv.h (default_auxv_parse): Declare.
11121 * target-delegates.c: Rebuild.
11122 * target.c: Include auxv.h.
11123 * target.h (struct target_ops) <to_auxv_parse>: Use
11124 TARGET_DEFAULT_FUNC.
11125
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target-delegates.c: Rebuild.
11129 * target.c (target_memory_map): Unconditionally delegate.
11130 * target.h (struct target_ops) <to_memory_map>: Use
11131 TARGET_DEFAULT_RETURN.
11132
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * target-delegates.c: Rebuild.
11136 * target.c (target_thread_alive): Unconditionally delegate.
11137 * target.h (struct target_ops) <to_thread_alive>: Use
11138 TARGET_DEFAULT_RETURN.
11139
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target-delegates.c: Rebuild.
11143 * target.c (target_save_record): Unconditionally delegate.
11144 * target.h (struct target_ops) <to_save_record>: Use
11145 TARGET_DEFAULT_NORETURN.
11146
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11148
11149 * target-delegates.c: Rebuild.
11150 * target.c (target_delete_record): Unconditionally delegate.
11151 * target.h (struct target_ops) <to_delete_record>: Use
11152 TARGET_DEFAULT_NORETURN.
11153
11154 2014-02-19 Tom Tromey <tromey@redhat.com>
11155
11156 * target-delegates.c: Rebuild.
11157 * target.c (target_record_is_replaying): Unconditionally
11158 delegate.
11159 * target.h (struct target_ops) <to_record_is_replaying>: Use
11160 TARGET_DEFAULT_RETURN.
11161
11162 2014-02-19 Tom Tromey <tromey@redhat.com>
11163
11164 * target-delegates.c: Rebuild.
11165 * target.c (target_goto_record_begin): Unconditionally delegate.
11166 * target.h (struct target_ops) <to_goto_record_begin>: Use
11167 TARGET_DEFAULT_NORETURN.
11168
11169 2014-02-19 Tom Tromey <tromey@redhat.com>
11170
11171 * target-delegates.c: Rebuild.
11172 * target.c (target_goto_record_end): Unconditionally delegate.
11173 * target.h (struct target_ops) <to_goto_record_end>: Use
11174 TARGET_DEFAULT_NORETURN.
11175
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * target-delegates.c: Rebuild.
11179 * target.c (target_goto_record): Unconditionally delegate.
11180 * target.h (struct target_ops) <to_goto_record>: Use
11181 TARGET_DEFAULT_NORETURN.
11182
11183 2014-02-19 Tom Tromey <tromey@redhat.com>
11184
11185 * target-delegates.c: Rebuild.
11186 * target.c (target_insn_history): Unconditionally delegate.
11187 * target.h (struct target_ops) <to_insn_history>: Use
11188 TARGET_DEFAULT_NORETURN.
11189
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11191
11192 * target-delegates.c: Rebuild.
11193 * target.c (target_insn_history_from): Unconditionally delegate.
11194 * target.h (struct target_ops) <to_insn_history_from>: Use
11195 TARGET_DEFAULT_NORETURN.
11196
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11198
11199 * target-delegates.c: Rebuild.
11200 * target.c (target_insn_history_range): Unconditionally delegate.
11201 * target.h (struct target_ops) <to_insn_history_range>: Use
11202 TARGET_DEFAULT_NORETURN.
11203
11204 2014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target-delegates.c: Rebuild.
11207 * target.c (target_call_history): Unconditionally delegate.
11208 * target.h (struct target_ops) <to_call_history>: Use
11209 TARGET_DEFAULT_NORETURN.
11210
11211 2014-02-19 Tom Tromey <tromey@redhat.com>
11212
11213 * target-delegates.c: Rebuild.
11214 * target.c (target_call_history_from): Unconditionally delegate.
11215 * target.h (struct target_ops) <to_call_history_from>: Use
11216 TARGET_DEFAULT_NORETURN.
11217
11218 2014-02-19 Tom Tromey <tromey@redhat.com>
11219
11220 * target-delegates.c: Rebuild.
11221 * target.c (target_call_history_range): Unconditionally delegate.
11222 * target.h (struct target_ops) <to_call_history_range>: Use
11223 TARGET_DEFAULT_NORETURN.
11224
11225 2014-02-19 Tom Tromey <tromey@redhat.com>
11226
11227 * target-delegates.c: Rebuild.
11228 * target.c (target_verify_memory): Unconditionally delegate.
11229 * target.h (struct target_ops) <to_verify_memory>: Use
11230 TARGET_DEFAULT_NORETURN.
11231
11232 2014-02-19 Tom Tromey <tromey@redhat.com>
11233
11234 * target-delegates.c: Rebuild.
11235 * target.c (target_core_of_thread): Unconditionally delegate.
11236 * target.h (struct target_ops) <to_core_of_thread>: Use
11237 TARGET_DEFAULT_RETURN.
11238
11239 2014-02-19 Tom Tromey <tromey@redhat.com>
11240
11241 * target-delegates.c: Rebuild.
11242 * target.c (target_flash_done): Unconditionally delegate.
11243 * target.h (struct target_ops) <to_flash_done>: Use
11244 TARGET_DEFAULT_NORETURN.
11245
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target-delegates.c: Rebuild.
11249 * target.c (target_flash_erase): Unconditionally delegate.
11250 * target.h (struct target_ops) <to_flash_erase>: Use
11251 TARGET_DEFAULT_NORETURN.
11252
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target-delegates.c: Rebuild.
11256 * target.c (target_get_section_table): Unconditionally delegate.
11257 * target.h (struct target_ops) <to_get_section_table>: Use
11258 TARGET_DEFAULT_RETURN.
11259
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target-delegates.c: Rebuild.
11263 * target.c (target_pid_to_str): Unconditionally delegate.
11264 (init_dummy_target): Don't initialize to_pid_to_str.
11265 (default_pid_to_str): Rename from dummy_pid_to_str.
11266 * target.h (struct target_ops) <to_pid_to_str>: Use
11267 TARGET_DEFAULT_FUNC.
11268
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target-delegates.c: Rebuild.
11272 * target.c (target_find_new_threads): Unconditionally delegate.
11273 * target.h (struct target_ops) <to_find_new_threads>: Use
11274 TARGET_DEFAULT_RETURN.
11275
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target-delegates.c: Rebuild.
11279 * target.c (target_program_signals): Unconditionally delegate.
11280 * target.h (struct target_ops) <to_program_signals>: Use
11281 TARGET_DEFAULT_IGNORE.
11282
11283 2014-02-19 Tom Tromey <tromey@redhat.com>
11284
11285 * target-delegates.c: Rebuild.
11286 * target.c (target_pass_signals): Unconditionally delegate.
11287 * target.h (struct target_ops) <to_pass_signals>: Use
11288 TARGET_DEFAULT_IGNORE.
11289
11290 2014-02-19 Tom Tromey <tromey@redhat.com>
11291
11292 * target-delegates.c: Rebuild.
11293 * target.c (default_mourn_inferior): New function.
11294 (target_mourn_inferior): Unconditionally delegate.
11295 * target.h (struct target_ops) <to_mourn_inferior>: Use
11296 TARGET_DEFAULT_FUNC.
11297
11298 2014-02-19 Tom Tromey <tromey@redhat.com>
11299
11300 * target-delegates.c: Rebuild.
11301 * target.c (default_follow_fork): New function.
11302 (target_follow_fork): Unconditionally delegate.
11303 * target.h (struct target_ops) <to_follow_fork>: Use
11304 TARGET_DEFAULT_FUNC.
11305
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target-delegates.c: Rebuild.
11309 * target.c (target_kill): Unconditionally delegate.
11310 * target.h (struct target_ops) <to_kill>: Use
11311 TARGET_DEFAULT_NORETURN.
11312
11313 2014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target-delegates.c: Rebuild.
11316 * target.c (target_masked_watch_num_registers): Unconditionally
11317 delegate.
11318 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11319 Use TARGET_DEFAULT_RETURN.
11320
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target-delegates.c: Rebuild.
11324 * target.c (target_remove_mask_watchpoint): Unconditionally
11325 delegate.
11326 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11327 TARGET_DEFAULT_RETURN.
11328
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * target-delegates.c: Rebuild.
11332 * target.c (target_insert_mask_watchpoint): Unconditionally
11333 delegate.
11334 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11335 TARGET_DEFAULT_RETURN.
11336
11337 2014-02-19 Tom Tromey <tromey@redhat.com>
11338
11339 * target-delegates.c: Rebuild.
11340 * target.c (target_ranged_break_num_registers): Unconditionally
11341 delegate.
11342 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11343 Use TARGET_DEFAULT_RETURN.
11344
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11346
11347 * target-delegates.c: Rebuild.
11348 * target.c (target_fetch_registers): Unconditionally delegate.
11349 * target.h (struct target_ops) <to_fetch_registers>: Use
11350 TARGET_DEFAULT_NORETURN.
11351
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target-delegates.c: Rebuild.
11355 * target.c (update_current_target): Don't inherit or default
11356 to_stop.
11357 * target.h (struct target_ops) <to_stop>: Use
11358 TARGET_DEFAULT_IGNORE.
11359
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target-delegates.c: Rebuild.
11363 * target.c (update_current_target): Don't inherit or default
11364 to_can_run_breakpoint_commands.
11365 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11366 Use TARGET_DEFAULT_RETURN.
11367
11368 2014-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_supports_evaluation_of_breakpoint_conditions.
11373 * target.h (struct target_ops)
11374 <to_supports_evaluation_of_breakpoint_conditions>: Use
11375 TARGET_DEFAULT_RETURN.
11376
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11378
11379 * target-delegates.c: Rebuild.
11380 * target.c (update_current_target): Don't inherit or default
11381 to_augmented_libraries_svr4_read.
11382 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11383 Use TARGET_DEFAULT_RETURN.
11384
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target-delegates.c: Rebuild.
11388 * target.c (update_current_target): Don't inherit or default
11389 to_can_use_agent.
11390 * target.h (struct target_ops) <to_can_use_agent>: Use
11391 TARGET_DEFAULT_RETURN.
11392
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target-delegates.c: Rebuild.
11396 * target.c (update_current_target): Don't inherit or default
11397 to_use_agent.
11398 * target.h (struct target_ops) <to_use_agent>: Use
11399 TARGET_DEFAULT_NORETURN.
11400
11401 2014-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_traceframe_info.
11406 (return_null): Remove.
11407 * target.h (struct target_ops) <to_traceframe_info>: Use
11408 TARGET_DEFAULT_RETURN.
11409
11410 2014-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_markers_by_strid.
11415 * target.h (struct target_ops)
11416 <to_static_tracepoint_markers_by_strid>: Use
11417 TARGET_DEFAULT_NORETURN.
11418
11419 2014-02-19 Tom Tromey <tromey@redhat.com>
11420
11421 * target-delegates.c: Rebuild.
11422 * target.c (update_current_target): Don't inherit or default
11423 to_static_tracepoint_marker_at.
11424 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11425 Use TARGET_DEFAULT_RETURN.
11426
11427 2014-02-19 Tom Tromey <tromey@redhat.com>
11428
11429 * target-delegates.c: Rebuild.
11430 * target.c (update_current_target): Don't inherit or default
11431 to_set_permissions.
11432 * target.h (struct target_ops) <to_set_permissions>: Use
11433 TARGET_DEFAULT_IGNORE.
11434
11435 2014-02-19 Tom Tromey <tromey@redhat.com>
11436
11437 * target-delegates.c: Rebuild.
11438 * target.c (update_current_target): Don't inherit or default
11439 to_get_tib_address.
11440 * target.h (struct target_ops) <to_get_tib_address>: Use
11441 TARGET_DEFAULT_NORETURN.
11442
11443 2014-02-19 Tom Tromey <tromey@redhat.com>
11444
11445 * target-delegates.c: Rebuild.
11446 * target.c (update_current_target): Don't inherit or default
11447 to_set_trace_notes.
11448 * target.h (struct target_ops) <to_set_trace_notes>: Use
11449 TARGET_DEFAULT_RETURN.
11450
11451 2014-02-19 Tom Tromey <tromey@redhat.com>
11452
11453 * target-delegates.c: Rebuild.
11454 * target.c (update_current_target): Don't initialize
11455 to_set_trace_buffer_size.
11456 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11457 TARGET_DEFAULT_IGNORE.
11458
11459 2014-02-19 Tom Tromey <tromey@redhat.com>
11460
11461 * target-delegates.c: Rebuild.
11462 * target.c (update_current_target): Don't inherit or default
11463 to_set_circular_trace_buffer.
11464 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11465 TARGET_DEFAULT_IGNORE.
11466
11467 2014-02-19 Tom Tromey <tromey@redhat.com>
11468
11469 * target-delegates.c: Rebuild.
11470 * target.c (update_current_target): Don't inherit or default
11471 to_set_disconnected_tracing.
11472 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11473 TARGET_DEFAULT_IGNORE.
11474
11475 2014-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_min_fast_tracepoint_insn_len.
11480 (return_minus_one): Remove.
11481 * target.h (struct target_ops)
11482 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11483
11484 2014-02-19 Tom Tromey <tromey@redhat.com>
11485
11486 * target-delegates.c: Rebuild.
11487 * target.c (update_current_target): Don't inherit or default
11488 to_get_raw_trace_data.
11489 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11490 TARGET_DEFAULT_NORETURN.
11491
11492 2014-02-19 Tom Tromey <tromey@redhat.com>
11493
11494 * target-delegates.c: Rebuild.
11495 * target.c (update_current_target): Don't inherit or default
11496 to_upload_trace_state_variables.
11497 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11498 Use TARGET_DEFAULT_RETURN.
11499
11500 2014-02-19 Tom Tromey <tromey@redhat.com>
11501
11502 * target-delegates.c: Rebuild.
11503 * target.c (update_current_target): Don't inherit or default
11504 to_upload_tracepoints.
11505 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11506 TARGET_DEFAULT_RETURN.
11507
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target-delegates.c: Rebuild.
11511 * target.c (update_current_target): Don't inherit or default
11512 to_save_trace_data.
11513 * target.h (struct target_ops) <to_save_trace_data>: Use
11514 TARGET_DEFAULT_NORETURN.
11515
11516 2014-02-19 Tom Tromey <tromey@redhat.com>
11517
11518 * target-delegates.c: Rebuild.
11519 * target.c (update_current_target): Don't inherit or default
11520 to_get_trace_state_variable_value.
11521 * target.h (struct target_ops)
11522 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11523
11524 2014-02-19 Tom Tromey <tromey@redhat.com>
11525
11526 * target-delegates.c: Rebuild.
11527 * target.c (update_current_target): Don't inherit or default
11528 to_trace_find.
11529 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11530
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * target-delegates.c: Rebuild.
11534 * target.c (update_current_target): Don't inherit or default
11535 to_trace_stop.
11536 * target.h (struct target_ops) <to_trace_stop>: Use
11537 TARGET_DEFAULT_NORETURN.
11538
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * target-delegates.c: Rebuild.
11542 * target.c (update_current_target): Don't inherit or default
11543 to_get_tracepoint_status.
11544 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11545 TARGET_DEFAULT_NORETURN.
11546
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target-delegates.c: Rebuild.
11550 * target.c (update_current_target): Don't inherit or default
11551 to_get_trace_status.
11552 * target.h (struct target_ops) <to_get_trace_status>: Use
11553 TARGET_DEFAULT_RETURN.
11554
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * target-delegates.c: Rebuild.
11558 * target.c (update_current_target): Don't inherit or default
11559 to_trace_start.
11560 * target.h (struct target_ops) <to_trace_start>: Use
11561 TARGET_DEFAULT_NORETURN.
11562
11563 2014-02-19 Tom Tromey <tromey@redhat.com>
11564
11565 * target-delegates.c: Rebuild.
11566 * target.c (update_current_target): Don't inherit or default
11567 to_trace_set_readonly_regions.
11568 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11569 Use TARGET_DEFAULT_NORETURN.
11570
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target-delegates.c: Rebuild.
11574 * target.c (update_current_target): Don't inherit or default
11575 to_disable_tracepoint.
11576 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11577 TARGET_DEFAULT_NORETURN.
11578
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11580
11581 * target-delegates.c: Rebuild.
11582 * target.c (update_current_target): Don't inherit or default
11583 to_enable_tracepoint.
11584 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11585 TARGET_DEFAULT_NORETURN.
11586
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11588
11589 * target-delegates.c: Rebuild.
11590 * target.c (update_current_target): Don't inherit or default
11591 to_download_trace_state_variable.
11592 * target.h (struct target_ops) <to_download_trace_state_variable>:
11593 Use TARGET_DEFAULT_NORETURN.
11594
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11599 to_can_download_tracepoint.
11600 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11601 TARGET_DEFAULT_RETURN.
11602
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11604
11605 * target-delegates.c: Rebuild.
11606 * target.c (update_current_target): Don't inherit or default
11607 to_download_tracepoint.
11608 * target.h (struct target_ops) <to_download_tracepoint>: Use
11609 TARGET_DEFAULT_NORETURN.
11610
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target-delegates.c: Rebuild.
11614 * target.c (update_current_target): Don't inherit or default
11615 to_trace_init.
11616 * target.h (struct target_ops) <to_trace_init>: Use
11617 TARGET_DEFAULT_RETURN.
11618
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11620
11621 * target-delegates.c: Rebuild.
11622 * target.c (update_current_target): Don't inherit or default
11623 to_supports_string_tracing.
11624 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11625 TARGET_DEFAULT_RETURN.
11626
11627 2014-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_enable_disable_tracepoint.
11632 * target.h (struct target_ops)
11633 <to_supports_enable_disable_tracepoint>: Use
11634 TARGET_DEFAULT_RETURN.
11635
11636 2014-02-19 Tom Tromey <tromey@redhat.com>
11637
11638 * target-delegates.c: Rebuild.
11639 * target.c (update_current_target): Don't inherit or default
11640 to_supports_multi_process.
11641 * target.h (struct target_ops) <to_supports_multi_process>: Use
11642 TARGET_DEFAULT_RETURN.
11643
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11645
11646 * target-delegates.c: Rebuild.
11647 * target.c (update_current_target): Don't inherit or default
11648 to_get_ada_task_ptid.
11649 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11650 TARGET_DEFAULT_FUNC.
11651
11652 2014-02-19 Tom Tromey <tromey@redhat.com>
11653
11654 * target-delegates.c: Rebuild.
11655 * target.c (update_current_target): Don't inherit or default
11656 to_thread_architecture.
11657 * target.h (struct target_ops) <to_thread_architecture>: Use
11658 TARGET_DEFAULT_FUNC.
11659
11660 2014-02-19 Tom Tromey <tromey@redhat.com>
11661
11662 * target-delegates.c: Rebuild.
11663 * target.c (update_current_target): Don't inherit or default
11664 to_execution_direction.
11665 * target.h (struct target_ops) <to_execution_direction>: Use
11666 TARGET_DEFAULT_FUNC.
11667
11668 2014-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_can_execute_reverse.
11673 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11674 TARGET_DEFAULT_RETURN.
11675 (target_can_execute_reverse): Unconditionally delegate.
11676
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11678
11679 * target-delegates.c: Rebuild.
11680 * target.c (update_current_target): Don't inherit or default
11681 to_goto_bookmark.
11682 (dummy_goto_bookmark): Remove.
11683 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11684 * target.h (struct target_ops) <to_goto_bookmark>: Use
11685 TARGET_DEFAULT_NORETURN.
11686
11687 2014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target-delegates.c: Rebuild.
11690 * target.c (update_current_target): Don't inherit or default
11691 to_get_bookmark.
11692 (dummy_get_bookmark): Remove.
11693 (init_dummy_target): Don't inherit or default to_get_bookmark.
11694 * target.h (struct target_ops) <to_get_bookmark>: Use
11695 TARGET_DEFAULT_NORETURN
11696
11697 2014-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_make_corefile_notes.
11702 (init_dummy_target): Don't initialize to_make_corefile_notes.
11703 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11704 TARGET_DEFAULT_FUNC.
11705
11706 2014-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_find_memory_regions.
11711 (init_dummy_target): Don't initialize to_find_memory_regions.
11712 * target.h (struct target_ops) <to_find_memory_regions>: Use
11713 TARGET_DEFAULT_FUNC.
11714
11715 2014-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_log_command.
11720 * target.h (struct target_ops) <to_log_command>: Use
11721 TARGET_DEFAULT_IGNORE.
11722 (target_log_command): Unconditionally delegate.
11723
11724 2014-02-19 Tom Tromey <tromey@redhat.com>
11725
11726 * target-delegates.c: Rebuild.
11727 * target.c (update_current_target): Don't inherit or default
11728 to_pid_to_exec_file.
11729 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11730 TARGET_DEFAULT_RETURN.
11731
11732 2014-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_thread_name.
11737 (target_thread_name): Unconditionally delegate.
11738 * target.h (struct target_ops) <to_thread_name>: Use
11739 TARGET_DEFAULT_RETURN.
11740
11741 2014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target-delegates.c: Rebuild.
11744 * target.c (update_current_target): Don't inherit or default
11745 to_extra_thread_info.
11746 * target.h (struct target_ops) <to_extra_thread_info>: Use
11747 TARGET_DEFAULT_RETURN.
11748
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11750
11751 * target-delegates.c: Rebuild.
11752 * target.c (update_current_target): Don't inherit or default
11753 to_has_exited.
11754 * target.h (struct target_ops) <to_has_exited>: Use
11755 TARGET_DEFAULT_RETURN..
11756
11757 2014-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_set_syscall_catchpoint.
11762 (return_one): Remove.
11763 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11764 TARGET_DEFAULT_RETURN.
11765
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11767
11768 * target-delegates.c: Rebuild.
11769 * target.c (update_current_target): Don't inherit or default
11770 to_insert_exec_catchpoint.
11771 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11772 TARGET_DEFAULT_RETURN.
11773
11774 2014-01-08 Tom Tromey <tromey@redhat.com>
11775
11776 * target-delegates.c: Rebuild.
11777 * target.c (update_current_target): Don't inherit or default
11778 to_insert_exec_catchpoint.
11779 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11780 TARGET_DEFAULT_RETURN.
11781
11782 2014-02-19 Tom Tromey <tromey@redhat.com>
11783
11784 * target-delegates.c: Rebuild.
11785 * target.c (update_current_target): Don't inherit or default
11786 to_remove_vfork_catchpoint.
11787 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11788 TARGET_DEFAULT_RETURN.
11789
11790 2014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * target-delegates.c: Rebuild.
11793 * target.c (update_current_target): Don't inherit or default
11794 to_insert_vfork_catchpoint.
11795 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11796 TARGET_DEFAULT_RETURN.
11797
11798 2014-02-19 Tom Tromey <tromey@redhat.com>
11799
11800 * target-delegates.c: Rebuild.
11801 * target.c (update_current_target): Don't inherit or default
11802 to_remove_fork_catchpoint.
11803 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11804 TARGET_DEFAULT_RETURN.
11805
11806 2014-02-19 Tom Tromey <tromey@redhat.com>
11807
11808 * target-delegates.c: Rebuild.
11809 * target.c (update_current_target): Don't inherit or default
11810 to_insert_fork_catchpoint.
11811 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11812 TARGET_DEFAULT_RETURN.
11813
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target-delegates.c: Rebuild.
11817 * target.c (update_current_target): Don't inherit or default
11818 to_post_startup_inferior.
11819 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11820 TARGET_DEFAULT_IGNORE.
11821
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11823
11824 * target-delegates.c: Rebuild.
11825 * target.c (update_current_target): Don't inherit or default
11826 to_load.
11827 * target.h (struct target_ops) <to_load>: Use
11828 TARGET_DEFAULT_NORETURN.
11829
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target-delegates.c: Rebuild.
11833 * target.c (update_current_target): Don't inherit or default
11834 to_terminal_info.
11835 * target.h (struct target_ops) <to_terminal_info>: Use
11836 TARGET_DEFAULT_FUNC.
11837
11838 2014-02-19 Tom Tromey <tromey@redhat.com>
11839
11840 * target-delegates.c: Rebuild.
11841 * target.c (update_current_target): Don't inherit or default
11842 to_terminal_save_ours.
11843 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11844 TARGET_DEFAULT_IGNORE.
11845
11846 2014-02-19 Tom Tromey <tromey@redhat.com>
11847
11848 * target-delegates.c: Rebuild.
11849 * target.c (update_current_target): Don't inherit or default
11850 to_terminal_ours.
11851 * target.h (struct target_ops) <to_terminal_ours>: Use
11852 TARGET_DEFAULT_IGNORE.
11853
11854 2014-02-19 Tom Tromey <tromey@redhat.com>
11855
11856 * target-delegates.c: Rebuild.
11857 * target.c (update_current_target): Don't inherit or default
11858 to_terminal_ours_for_output.
11859 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11860 TARGET_DEFAULT_IGNORE.
11861
11862 2014-02-19 Tom Tromey <tromey@redhat.com>
11863
11864 * target-delegates.c: Rebuild.
11865 * target.c (update_current_target): Don't inherit or default
11866 to_terminal_inferior.
11867 * target.h (struct target_ops) <to_terminal_inferior>: Use
11868 TARGET_DEFAULT_IGNORE.
11869
11870 2014-02-19 Tom Tromey <tromey@redhat.com>
11871
11872 * target-delegates.c: Rebuild.
11873 * target.c (update_current_target): Don't inherit or default
11874 to_terminal_init.
11875 * target.h (struct target_ops) <to_terminal_init>: Use
11876 TARGET_DEFAULT_IGNORE.
11877
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11879
11880 * target-delegates.c: Rebuild.
11881 * target.c (update_current_target): Don't inherit or default
11882 to_can_accel_watchpoint_condition.
11883 * target.h (struct target_ops)
11884 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11885
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target-delegates.c: Rebuild.
11889 * target.c (update_current_target): Don't inherit or default
11890 to_region_ok_for_hw_watchpoint.
11891 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11892 Use TARGET_DEFAULT_FUNC.
11893
11894 2014-02-19 Tom Tromey <tromey@redhat.com>
11895
11896 * target-delegates.c: Rebuild.
11897 * target.c (update_current_target): Don't inherit or default
11898 to_watchpoint_addr_within_range.
11899 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11900 Use TARGET_DEFAULT_FUNC.
11901
11902 2014-02-19 Tom Tromey <tromey@redhat.com>
11903
11904 * target-delegates.c: Rebuild.
11905 * target.c (update_current_target): Don't inherit or default
11906 to_remove_watchpoint.
11907 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11908 TARGET_DEFAULT_NORETURN.
11909
11910 2014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * target-delegates.c: Rebuild.
11913 * target.c (update_current_target): Don't inherit or default
11914 to_insert_watchpoint.
11915 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11916 TARGET_DEFAULT_RETURN.
11917
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11919
11920 * target-delegates.c: Rebuild.
11921 * target.c (update_current_target): Don't inherit or default
11922 to_remove_hw_breakpoint.
11923 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11924 TARGET_DEFAULT_RETURN.
11925
11926 2014-02-19 Tom Tromey <tromey@redhat.com>
11927
11928 * target-delegates.c: Rebuild.
11929 * target.c (update_current_target): Don't inherit or default
11930 to_insert_hw_breakpoint.
11931 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11932 TARGET_DEFAULT_RETURN.
11933
11934 2014-02-19 Tom Tromey <tromey@redhat.com>
11935
11936 * target-delegates.c: Rebuild.
11937 * target.c (update_current_target): Don't inherit or default
11938 to_can_use_hw_breakpoint.
11939 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11940 TARGET_DEFAULT_RETURN.
11941
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target-delegates.c: Rebuild.
11945 * target.c (update_current_target): Don't inherit or default
11946 to_files_info.
11947 * target.h (struct target_ops) <to_files_info>: Use
11948 TARGET_DEFAULT_IGNORE.
11949
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11951
11952 * target-delegates.c: Rebuild.
11953 * target.c (update_current_target): Don't inherit or default
11954 to_store.
11955 * target.h (struct target_ops) <to_store>: Use
11956 TARGET_DEFAULT_NORETURN.
11957
11958 2014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target-delegates.c: Rebuild.
11961 * target.c (update_current_target): Don't inherit or default
11962 to_post_attach.
11963 * target.h (struct target_ops) <to_post_attach>: Use
11964 TARGET_DEFAULT_IGNORE.
11965
11966 2014-02-19 Tom Tromey <tromey@redhat.com>
11967
11968 * target-delegates.c: Rebuild.
11969 * target.c (update_current_target): Don't inherit or default
11970 to_rcmd.
11971 (default_rcmd): New function.
11972 (do_monitor_command): Unconditionally delegate.
11973 * target.h (struct target_ops) <to_rmcd>: Use
11974 TARGET_DEFAULT_FUNC.
11975
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11977
11978 * target-delegates.c: Rebuild.
11979 * target.c (init_dummy_target): Don't initialize to_attach.
11980 (target_attach): Unconditionally delegate.
11981 * target.h (struct target_ops) <to_attach>: Use
11982 TARGET_DEFAULT_FUNC.
11983
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target-delegates.c: Rebuild.
11987 * target.c (target_detach): Unconditionally delegate.
11988 (init_dummy_target): Don't initialize to_detach.
11989 * target.h (struct target_ops) <to_detach>: Use
11990 TARGET_DEFAULT_IGNORE.
11991
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11995 Add argument.
11996 (target_augmented_libraries_svr4_read): Add argument.
11997 * target.c (update_current_target): Update.
11998 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11999 argument.
12000
12001 2014-02-19 Tom Tromey <tromey@redhat.com>
12002
12003 * target.h (struct target_ops) <to_call_history_range>: Add
12004 argument.
12005 * target.c (target_call_history_range): Add argument.
12006 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12007 argument.
12008 (record_btrace_call_history_from): Update.
12009
12010 2014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * target.h (struct target_ops) <to_call_history_from>: Add
12013 argument.
12014 * target.c (target_call_history_from): Add argument.
12015 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12016 argument.
12017
12018 2014-02-19 Tom Tromey <tromey@redhat.com>
12019
12020 * target.h (struct target_ops) <to_call_history>: Add argument.
12021 * target.c (target_call_history): Add argument.
12022 * record-btrace.c (record_btrace_call_history): Add 'self'
12023 argument.
12024
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12026
12027 * target.h (struct target_ops) <to_insn_history_range>: Add
12028 argument.
12029 * target.c (target_insn_history_range): Add argument.
12030 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12031 argument.
12032 (record_btrace_insn_history_from): Update.
12033
12034 2014-02-19 Tom Tromey <tromey@redhat.com>
12035
12036 * target.h (struct target_ops) <to_insn_history_from>: Add
12037 argument.
12038 * target.c (target_insn_history_from): Add argument.
12039 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12040 argument.
12041
12042 2014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target.h (struct target_ops) <to_insn_history>: Add argument.
12045 * target.c (target_insn_history): Add argument.
12046 * record-btrace.c (record_btrace_insn_history): Add 'self'
12047 argument.
12048
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 * target.h (struct target_ops) <to_goto_record>: Add argument.
12052 * target.c (target_goto_record): Add argument.
12053 * record-full.c (record_full_goto): Add 'self' argument.
12054 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12055
12056 2014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12059 * target.c (target_goto_record_end): Add argument.
12060 * record-full.c (record_full_goto_end): Add 'self' argument.
12061 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12062
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * target.h (struct target_ops) <to_goto_record_begin>: Add
12066 argument.
12067 * target.c (target_goto_record_begin): Add argument.
12068 * record-full.c (record_full_goto_begin): Add 'self' argument.
12069 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12070 argument.
12071
12072 2014-02-19 Tom Tromey <tromey@redhat.com>
12073
12074 * target.h (struct target_ops) <to_record_is_replaying>: Add
12075 argument.
12076 * target.c (target_record_is_replaying): Add argument.
12077 * record-full.c (record_full_is_replaying): Add 'self' argument.
12078 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12079 argument.
12080 (record_btrace_xfer_partial, record_btrace_store_registers)
12081 (record_btrace_prepare_to_store, record_btrace_resume)
12082 (record_btrace_wait, record_btrace_decr_pc_after_break)
12083 (record_btrace_find_new_threads, record_btrace_thread_alive):
12084 Update.
12085
12086 2014-02-19 Tom Tromey <tromey@redhat.com>
12087
12088 * target.h (struct target_ops) <to_delete_record>: Add argument.
12089 * target.c (target_delete_record): Add argument.
12090 * record-full.c (record_full_delete): Add 'self' argument.
12091
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * target.h (struct target_ops) <to_save_record>: Add argument.
12095 * target.c (target_save_record): Add argument.
12096 * record-full.c (record_full_save): Add 'self' argument.
12097 (record_full_save): Add 'self' argument.
12098
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target.h (struct target_ops) <to_info_record>: Add argument.
12102 * target.c (target_info_record): Add argument.
12103 * record.c (info_record_command): Add argument.
12104 * record-full.c (record_full_info): Add 'self' argument.
12105 * record-btrace.c (record_btrace_info): Add 'self' argument.
12106
12107 2014-02-19 Tom Tromey <tromey@redhat.com>
12108
12109 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12110 * target.c (target_stop_recording): Add argument.
12111 * record.c (record_stop): Add argument.
12112 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12113 argument.
12114
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12116
12117 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12118 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12119 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12120 argument.
12121 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12122 (_initialize_amd64_linux_nat): Use it.
12123 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12124 (_initialize_i386_linux_nat): Use it.
12125
12126 2014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12129 * target.c (target_teardown_btrace): Add argument.
12130 * remote.c (remote_teardown_btrace): Add 'self' argument.
12131 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12132 argument.
12133 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12134 argument.
12135
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12137
12138 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12139 * target.c (target_disable_btrace): Add argument.
12140 * remote.c (remote_disable_btrace): Add 'self' argument.
12141 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12142 argument.
12143 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12144 argument.
12145
12146 2014-02-19 Tom Tromey <tromey@redhat.com>
12147
12148 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12149 * target.c (target_enable_btrace): Add argument.
12150 * remote.c (remote_enable_btrace): Add 'self' argument.
12151 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12152 argument.
12153 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12154 argument.
12155
12156 2014-02-19 Tom Tromey <tromey@redhat.com>
12157
12158 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12159 (target_can_use_agent): Add argument.
12160 * target.c (update_current_target): Update.
12161 * remote.c (remote_can_use_agent): Add 'self' argument.
12162 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12163
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12165
12166 * target.h (struct target_ops) <to_use_agent>: Add argument.
12167 (target_use_agent): Add argument.
12168 * target.c (update_current_target): Update.
12169 * remote.c (remote_use_agent): Add 'self' argument.
12170 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12171
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12175 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12176 (target_traceframe_info): Add argument.
12177 * target.c (update_current_target): Update.
12178 * remote.c (remote_traceframe_info): Add 'self' argument.
12179 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12180
12181 2014-02-19 Tom Tromey <tromey@redhat.com>
12182
12183 * target.h (target_static_tracepoint_markers_by_strid): Add
12184 argument.
12185 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12186 'self' argument.
12187 * target.c (update_current_target): Update.
12188 * remote.c (struct target_ops)
12189 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12190 * linux-nat.c (struct target_ops)
12191 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12192
12193 2014-02-19 Tom Tromey <tromey@redhat.com>
12194
12195 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12196 Add argument.
12197 (target_static_tracepoint_marker_at): Add argument.
12198 * target.c (update_current_target): Update.
12199 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12200 argument.
12201
12202 2014-02-19 Tom Tromey <tromey@redhat.com>
12203
12204 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12205 (target_set_permissions): Add argument.
12206 * target.c (update_current_target): Update.
12207 * remote.c (remote_set_permissions): Add 'self' argument.
12208 (remote_start_remote): Update.
12209
12210 2014-02-19 Tom Tromey <tromey@redhat.com>
12211
12212 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12213 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12214 (target_get_tib_address): Add argument.
12215 * target.c (update_current_target): Update.
12216 * remote.c (remote_get_tib_address): Add 'self' argument.
12217
12218 2014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12221 (target_set_trace_notes): Add argument.
12222 * target.c (update_current_target): Update.
12223 * remote.c (remote_set_trace_notes): Add 'self' argument.
12224
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12228 argument.
12229 (target_set_trace_buffer_size): Add argument.
12230 * target.c (update_current_target): Update.
12231 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12232
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12236 argument.
12237 (target_set_circular_trace_buffer): Add argument.
12238 * target.c (update_current_target): Update.
12239 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12240 argument.
12241
12242 2014-02-19 Tom Tromey <tromey@redhat.com>
12243
12244 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12245 argument.
12246 (target_set_disconnected_tracing): Add argument.
12247 * target.c (update_current_target): Update.
12248 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12249
12250 2014-02-19 Tom Tromey <tromey@redhat.com>
12251
12252 * target.h (struct target_ops)
12253 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12254 (target_get_min_fast_tracepoint_insn_len): Add argument.
12255 * target.c (update_current_target): Update.
12256 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12257 argument.
12258
12259 2014-02-19 Tom Tromey <tromey@redhat.com>
12260
12261 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12262 argument.
12263 (target_get_raw_trace_data): Add argument.
12264 * target.c (update_current_target): Update.
12265 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12266
12267 2014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12270 Add argument.
12271 (target_upload_trace_state_variables): Add argument.
12272 * target.c (update_current_target): Update.
12273 * remote.c (remote_upload_trace_state_variables): Add 'self'
12274 argument.
12275 (remote_start_remote): Update.
12276
12277 2014-02-19 Tom Tromey <tromey@redhat.com>
12278
12279 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12280 argument.
12281 (target_upload_tracepoints): Add argument.
12282 * target.c (update_current_target): Update.
12283 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12284 (remote_start_remote): Update.
12285
12286 2014-02-19 Tom Tromey <tromey@redhat.com>
12287
12288 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12289 (target_save_trace_data): Add argument.
12290 * target.c (update_current_target): Update.
12291 * remote.c (remote_save_trace_data): Add 'self' argument.
12292
12293 2014-02-19 Tom Tromey <tromey@redhat.com>
12294
12295 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12296 argument.
12297 * target.h (struct target_ops)
12298 <to_get_trace_state_variable_value>: Add argument.
12299 (target_get_trace_state_variable_value): Add argument.
12300 * target.c (update_current_target): Update.
12301 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12302 argument.
12303 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12304
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12306
12307 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12308 * target.h (struct target_ops) <to_trace_find>: Add argument.
12309 (target_trace_find): Add argument.
12310 * target.c (update_current_target): Update.
12311 * remote.c (remote_trace_find): Add 'self' argument.
12312 * ctf.c (ctf_trace_find): Add 'self' argument.
12313
12314 2014-02-19 Tom Tromey <tromey@redhat.com>
12315
12316 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12317 (target_trace_stop): Add argument.
12318 * target.c (update_current_target): Update.
12319 * remote.c (remote_trace_stop): Add 'self' argument.
12320
12321 2014-02-19 Tom Tromey <tromey@redhat.com>
12322
12323 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12324 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12325 argument.
12326 (target_get_tracepoint_status): Add argument.
12327 * target.c (update_current_target): Update.
12328 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12329
12330 2014-02-19 Tom Tromey <tromey@redhat.com>
12331
12332 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12333 * target.h (struct target_ops) <to_get_trace_status>: Add
12334 argument.
12335 (target_get_trace_status): Add argument.
12336 * target.c (update_current_target): Update.
12337 * remote.c (remote_get_trace_status): Add 'self' argument.
12338 (remote_start_remote, remote_can_download_tracepoint): Update.
12339 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12340
12341 2014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target.h (struct target_ops) <to_trace_start>: Add argument.
12344 (target_trace_start): Add argument.
12345 * target.c (update_current_target): Update.
12346 * remote.c (remote_trace_start): Add 'self' argument.
12347
12348 2014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12351 Add argument.
12352 (target_trace_set_readonly_regions): Add argument.
12353 * target.c (update_current_target): Update.
12354 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12355 argument.
12356
12357 2014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12360 argument.
12361 (target_disable_tracepoint): Add argument.
12362 * target.c (update_current_target): Update.
12363 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12364
12365 2014-02-19 Tom Tromey <tromey@redhat.com>
12366
12367 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12368 argument.
12369 (target_enable_tracepoint): Add argument.
12370 * target.c (update_current_target): Update.
12371 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12372
12373 2014-02-19 Tom Tromey <tromey@redhat.com>
12374
12375 * target.h (struct target_ops) <to_download_trace_state_variable>:
12376 Add argument.
12377 (target_download_trace_state_variable): Add argument.
12378 * target.c (update_current_target): Update.
12379 * remote.c (remote_download_trace_state_variable): Add 'self'
12380 argument.
12381
12382 2014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12385 argument.
12386 (target_can_download_tracepoint): Add argument.
12387 * target.c (update_current_target): Update.
12388 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12389
12390 2014-02-19 Tom Tromey <tromey@redhat.com>
12391
12392 * target.h (struct target_ops) <to_download_tracepoint>: Add
12393 argument.
12394 (target_download_tracepoint): Add argument.
12395 * target.c (update_current_target): Update.
12396 * remote.c (remote_download_tracepoint): Add 'self' argument.
12397
12398 2014-02-19 Tom Tromey <tromey@redhat.com>
12399
12400 * target.h (struct target_ops) <to_trace_init>: Add argument.
12401 (target_trace_init): Add argument.
12402 * target.c (update_current_target): Update.
12403 * remote.c (remote_trace_init): Add 'self' argument.
12404
12405 2014-02-19 Tom Tromey <tromey@redhat.com>
12406
12407 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12408 * target.c (target_fileio_readlink): Add argument.
12409 * remote.c (remote_hostio_readlink): Add 'self' argument.
12410 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12411
12412 2014-02-19 Tom Tromey <tromey@redhat.com>
12413
12414 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12415 * target.c (target_fileio_unlink): Add argument.
12416 * remote.c (remote_hostio_unlink): Add 'self' argument.
12417 (remote_file_delete): Update.
12418 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12419
12420 2014-02-19 Tom Tromey <tromey@redhat.com>
12421
12422 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12423 * target.c (target_fileio_close): Add argument.
12424 * remote.c (remote_hostio_close): Add 'self' argument.
12425 (remote_hostio_close_cleanup): Update.
12426 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12427 Update.
12428 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12429
12430 2014-02-19 Tom Tromey <tromey@redhat.com>
12431
12432 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12433 * target.c (target_fileio_pread): Add argument.
12434 * remote.c (remote_hostio_pread): Add 'self' argument.
12435 (remote_bfd_iovec_pread, remote_file_get): Update.
12436 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12437
12438 2014-02-19 Tom Tromey <tromey@redhat.com>
12439
12440 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12441 * target.c (target_fileio_pwrite): Add argument.
12442 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12443 (remote_file_put): Update.
12444 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12445
12446 2014-02-19 Tom Tromey <tromey@redhat.com>
12447
12448 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12449 * target.c (target_fileio_open): Add argument.
12450 * remote.c (remote_hostio_open): Add 'self' argument.
12451 (remote_bfd_iovec_open): Add 'self' argument.
12452 (remote_file_put): Add 'self' argument.
12453 (remote_file_get): Add 'self' argument.
12454 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12455
12456 2014-02-19 Tom Tromey <tromey@redhat.com>
12457
12458 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12459 Add argument.
12460 (target_can_run_breakpoint_commands): Add argument.
12461 * target.c (update_current_target): Update.
12462 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12463 argument.
12464 (remote_insert_breakpoint): Add 'self' argument.
12465 (remote_insert_hw_breakpoint): Add 'self' argument.
12466 (remote_can_run_breakpoint_commands): Add 'self' argument.
12467
12468 2014-02-19 Tom Tromey <tromey@redhat.com>
12469
12470 * target.h (struct target_ops)
12471 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12472 (target_supports_evaluation_of_breakpoint_conditions): Add
12473 argument.
12474 * target.c (update_current_target): Update.
12475 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12476 argument.
12477 (remote_insert_breakpoint): Add 'self' argument.
12478 (remote_insert_hw_breakpoint): Add 'self' argument.
12479 (remote_supports_cond_breakpoints): Add 'self' argument.
12480
12481 2014-02-19 Tom Tromey <tromey@redhat.com>
12482
12483 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12484 argument.
12485 (target_supports_string_tracing): Add argument.
12486 * target.c (update_current_target): Update.
12487 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12488
12489 2014-02-19 Tom Tromey <tromey@redhat.com>
12490
12491 * target.h (struct target_ops)
12492 <to_supports_disable_randomization>: Add argument.
12493 * target.c (find_default_supports_disable_randomization): Add
12494 argument.
12495 (target_supports_disable_randomization): Add argument.
12496 (find_default_supports_disable_randomization): Add 'self'
12497 argument.
12498 * remote.c (extended_remote_supports_disable_randomization): Add
12499 'self' argument.
12500 (remote_supports_disable_randomization): Add 'self' argument.
12501 (extended_remote_create_inferior): Update.
12502 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12503 'self' argument.
12504
12505 2014-02-19 Tom Tromey <tromey@redhat.com>
12506
12507 * target.h (struct target_ops)
12508 <to_supports_enable_disable_tracepoint>: Add argument.
12509 (target_supports_enable_disable_tracepoint): Add argument.
12510 * target.c (update_current_target): Update.
12511 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12512 argument.
12513
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target.h (struct target_ops) <to_supports_multi_process>: Add
12517 argument.
12518 (target_supports_multi_process): Add argument.
12519 * target.c (update_current_target): Update.
12520 * remote.c (remote_supports_multi_process): Add 'self' argument.
12521 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12522 argument.
12523 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12524 argument.
12525
12526 2014-02-19 Tom Tromey <tromey@redhat.com>
12527
12528 * target.h (struct target_ops) <to_execution_direction>: Add
12529 argument.
12530 (target_execution_direction): Add argument.
12531 * target.c (default_execution_direction): Add 'self' argument.
12532 * record-full.c (record_full_execution_direction): Add 'self'
12533 argument.
12534
12535 2014-02-19 Tom Tromey <tromey@redhat.com>
12536
12537 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12538 argument.
12539 (target_can_execute_reverse): Add argument.
12540 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12541 * record-full.c (record_full_can_execute_reverse): Add 'self'
12542 argument.
12543 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12544 argument.
12545
12546 2014-02-19 Tom Tromey <tromey@redhat.com>
12547
12548 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12549 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12550 argument.
12551 (target_get_ada_task_ptid): Add argument.
12552 * target.c (update_current_target): Update.
12553 (default_get_ada_task_ptid): Add 'self' argument.
12554 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12555 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12556 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12557 argument.
12558 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12559 argument.
12560 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12561 argument.
12562 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12563 argument.
12564 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12565 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12566 argument.
12567
12568 2014-02-19 Tom Tromey <tromey@redhat.com>
12569
12570 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12571 (target_goto_bookmark): Add argument.
12572 * target.c (dummy_goto_bookmark): Add 'self' argument.
12573 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12574
12575 2014-02-19 Tom Tromey <tromey@redhat.com>
12576
12577 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12578 (target_get_bookmark): Add argument.
12579 * target.c (dummy_get_bookmark): Add 'self' argument.
12580 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12581
12582 2014-02-19 Tom Tromey <tromey@redhat.com>
12583
12584 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12585 argument.
12586 (target_make_corefile_notes): Add argument.
12587 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12588 * procfs.c (procfs_make_note_section): Add 'self' argument.
12589 (procfs_make_note_section): Add 'self' argument.
12590 (procfs_make_note_section): Add 'self' argument.
12591 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12592 argument.
12593 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12594 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12595 * exec.c (exec_make_note_section): Add 'self' argument.
12596 (exec_make_note_section): Add 'self' argument.
12597
12598 2014-02-19 Tom Tromey <tromey@redhat.com>
12599
12600 * target.h (struct target_ops) <to_find_memory_regions>: Add
12601 argument.
12602 (target_find_memory_regions): Add argument.
12603 * target.c (dummy_find_memory_regions): Add 'self' argument.
12604 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12605 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12606 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12607 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12608 * exec. (exec_do_find_memory_regions): New global.
12609 (exec_set_find_memory_regions): Rewrite.
12610 (exec_find_memory_regions): New function.
12611 (init_exec_ops): Use exec_find_memory_regions.
12612
12613 2014-02-19 Tom Tromey <tromey@redhat.com>
12614
12615 * target.h (struct target_ops) <to_supports_non_stop>: Add
12616 argument.
12617 * target.c (find_default_supports_non_stop): Add argument.
12618 (target_supports_non_stop): Add argument.
12619 (find_default_supports_non_stop): Add 'self' argument.
12620 * remote.c (remote_supports_non_stop): Add 'self' argument.
12621 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12622
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * target.h (struct target_ops) <to_log_command>: Add argument.
12626 (target_log_command): Add argument.
12627 * serial.h (serial_log_command): Add 'self' argument.
12628 * serial.c (serial_log_command): Add 'self' argument.
12629
12630 2014-02-19 Tom Tromey <tromey@redhat.com>
12631
12632 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12633 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12634 argument.
12635 (target_pid_to_exec_file): Add argument.
12636 * target.c (debug_to_pid_to_exec_file): Add argument.
12637 (update_current_target): Update.
12638 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12639 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12640 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12641 (linux_handle_extended_wait): Update.
12642 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12643 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12644 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12645 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12646
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target.h (struct target_ops) <to_rcmd>: Add argument.
12650 (target_rcmd): Add argument.
12651 * target.c (debug_to_rcmd): Add argument.
12652 (update_current_target, do_monitor_command): Update.
12653 * remote.c (remote_rcmd): Add 'self' argument.
12654 * monitor.c (monitor_rcmd): Add 'self' argument.
12655
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * windows-nat.c (windows_stop): Add 'self' argument.
12659 * target.h (struct target_ops) <to_stop>: Add argument.
12660 * target.c (target_stop): Add argument.
12661 (debug_to_stop): Add argument.
12662 (update_current_target): Update.
12663 * remote.c (remote_stop): Add 'self' argument.
12664 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12665 (gdbsim_cntrl_c): Update.
12666 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12667 * procfs.c (procfs_stop): Add 'self' argument.
12668 * nto-procfs.c (procfs_stop): Add 'self' argument.
12669 * monitor.c (monitor_stop): Add 'self' argument.
12670 (monitor_open): Update.
12671 * linux-nat.c (linux_nat_stop): Add argument.
12672 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12673 * gnu-nat.c (gnu_stop): Add 'self' argument.
12674 * darwin-nat.c (darwin_stop): Add 'self' argument.
12675
12676 2014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * target.h (struct target_ops) <to_thread_name>: Add argument.
12679 * target.c (target_thread_name): Add argument.
12680 (update_current_target): Update.
12681 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12682
12683 2014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * target.h (struct target_ops) <to_extra_thread_info>: Add
12686 argument.
12687 (target_extra_thread_info): Add argument.
12688 * target.c (update_current_target): Update.
12689 * remote.c (remote_threads_extra_info): Add 'self' argument.
12690 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12691 argument.
12692 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12693 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12694 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12695 argument.
12696 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12697 argument.
12698 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12699 argument.
12700 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12701 argument.
12702
12703 2014-02-19 Tom Tromey <tromey@redhat.com>
12704
12705 * target.h (struct target_ops) <to_program_signals>: Add argument.
12706 * target.c (target_program_signals): Add argument.
12707 * remote.c (remote_program_signals): Add 'self' argument.
12708
12709 2014-02-19 Tom Tromey <tromey@redhat.com>
12710
12711 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12712 * target.c (target_pass_signals): Add argument.
12713 * remote.c (remote_pass_signals): Add 'self' argument.
12714 (remote_start_remote): Update.
12715 * procfs.c (procfs_pass_signals): Add 'self' argument.
12716 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12717 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12718 (linux_nat_create_inferior, linux_nat_attach): Update.
12719
12720 2014-02-19 Tom Tromey <tromey@redhat.com>
12721
12722 * windows-nat.c (windows_can_run): Add 'self' argument.
12723 * target.h (struct target_ops) <to_can_run>: Add argument.
12724 (target_can_run): Add argument.
12725 * target.c (debug_to_can_run): Add argument.
12726 (update_current_target): Update.
12727 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12728 * inf-child.c (inf_child_can_run): Add 'self' argument.
12729 * go32-nat.c (go32_can_run): Add 'self' argument.
12730
12731 2014-02-19 Tom Tromey <tromey@redhat.com>
12732
12733 * target.h (struct target_ops) <to_has_exited>: Add argument.
12734 (target_has_exited): Add argument.
12735 * target.c (debug_to_has_exited): Add argument.
12736 (update_current_target): Update.
12737
12738 2014-02-19 Tom Tromey <tromey@redhat.com>
12739
12740 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12741 argument.
12742 (target_set_syscall_catchpoint): Add argument.
12743 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12744 argument.
12745 * target.c (update_current_target): Update.
12746
12747 2014-02-19 Tom Tromey <tromey@redhat.com>
12748
12749 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12750 argument.
12751 (target_remove_exec_catchpoint): Add argument.
12752 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12753 (update_current_target): Update.
12754 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12755 argument.
12756
12757 2014-02-19 Tom Tromey <tromey@redhat.com>
12758
12759 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12760 argument.
12761 (target_insert_exec_catchpoint): Add argument.
12762 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12763 (update_current_target): Update.
12764 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12765 argument.
12766
12767 2014-02-19 Tom Tromey <tromey@redhat.com>
12768
12769 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12770 argument.
12771 (target_remove_vfork_catchpoint): Add argument.
12772 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12773 (update_current_target): Update.
12774 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12775 argument.
12776
12777 2014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12780 argument.
12781 (target_insert_vfork_catchpoint): Add argument.
12782 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12783 (update_current_target): Update.
12784 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12785 argument.
12786
12787 2014-02-19 Tom Tromey <tromey@redhat.com>
12788
12789 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12790 argument.
12791 (target_remove_fork_catchpoint): Add argument.
12792 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12793 (update_current_target): Update.
12794 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12795 argument.
12796
12797 2014-02-19 Tom Tromey <tromey@redhat.com>
12798
12799 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12800 argument.
12801 (target_insert_fork_catchpoint): Add argument.
12802 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12803 (update_current_target): Update.
12804 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12805 argument.
12806
12807 2014-02-19 Tom Tromey <tromey@redhat.com>
12808
12809 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12810 argument.
12811 (target_post_startup_inferior): Add argument.
12812 * target.c (debug_to_post_startup_inferior): Add argument.
12813 (update_current_target): Update.
12814 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12815 argument.
12816 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12817 argument.
12818 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12819 argument.
12820 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12821 argument.
12822 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12823 'self' argument.
12824 (super_post_startup_inferior): Likewise.
12825 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12826 'self' argument.
12827 (super_post_startup_inferior): Likewise.
12828 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12829 Add 'self' argument.
12830 (super_post_startup_inferior): Likewise.
12831
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * target.h (struct target_ops) <to_load>: Add argument.
12835 * target.c (target_load): Add argument.
12836 (debug_to_load): Add argument.
12837 (update_current_target): Update.
12838 * remote.c (remote_load): Add 'self' argument.
12839 * remote-sim.c (gdbsim_load): Add 'self' argument.
12840 * remote-mips.c (mips_load): Add 'self' argument.
12841 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12842 * monitor.c (monitor_load): Add 'self' argument.
12843 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12844
12845 2014-02-19 Tom Tromey <tromey@redhat.com>
12846
12847 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12848 (target_terminal_info): Add argument.
12849 * target.c (debug_to_terminal_info): Add argument.
12850 (default_terminal_info): Likewise.
12851 * inflow.c (child_terminal_info): Add 'self' argument.
12852 * inferior.h (child_terminal_info): Add 'self' argument.
12853 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12854
12855 2014-02-19 Tom Tromey <tromey@redhat.com>
12856
12857 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12858 argument.
12859 (target_terminal_save_ours): Add argument.
12860 * target.c (debug_to_terminal_save_ours): Add argument.
12861 (update_current_target): Update.
12862 * inflow.c (terminal_save_ours): Add 'self' argument.
12863 * inferior.h (terminal_save_ours): Add 'self' argument.
12864
12865 2014-02-19 Tom Tromey <tromey@redhat.com>
12866
12867 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12868 (target_terminal_ours): Add argument.
12869 * target.c (debug_to_terminal_ours): Add argument.
12870 (update_current_target): Update.
12871 * remote.c (remote_terminal_ours): Add 'self' argument.
12872 (remote_close): Update.
12873 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12874 * inflow.c (terminal_ours): Add 'self' argument.
12875 * inferior.h (terminal_ours): Add 'self' argument.
12876 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12877
12878 2014-02-19 Pedro Alves <palves@redhat.com>
12879 Tom Tromey <tromey@redhat.com>
12880
12881 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12882 argument.
12883 (target_terminal_ours_for_output): Add argument.
12884 * target.c (debug_to_terminal_ours_for_output): Add argument.
12885 (update_current_target): Update.
12886 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12887 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12888 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12889
12890 2014-02-19 Tom Tromey <tromey@redhat.com>
12891
12892 * target.h (struct target_ops) <to_terminal_inferior>: Add
12893 argument.
12894 * target.c (target_terminal_inferior): Add argument.
12895 (update_current_target): Update.
12896 * remote.c (remote_terminal_inferior): Add 'self' argument.
12897 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12898 * inflow.c (terminal_inferior): Add 'self' argument.
12899 * inferior.h (terminal_inferior): Add 'self' argument.
12900 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12901 (go32_terminal_inferior): Add 'self' argument.
12902
12903 2014-02-19 Tom Tromey <tromey@redhat.com>
12904
12905 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12906 (target_terminal_init): Add argument.
12907 * target.c (debug_to_terminal_init): Add argument.
12908 (update_current_target): Update.
12909 * inflow.c (terminal_init_inferior): Add 'self' argument.
12910 * inferior.h (terminal_init_inferior): Add 'self' argument.
12911 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12912 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12913
12914 2014-02-19 Tom Tromey <tromey@redhat.com>
12915
12916 * target.h (struct target_ops)
12917 <to_can_accel_watchpoint_condition>: Add argument.
12918 (target_can_accel_watchpoint_condition): Add argument.
12919 * target.c (debug_to_can_accel_watchpoint_condition): Add
12920 argument.
12921 (update_current_target): Update.
12922 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12923 'self' argument.
12924
12925 2014-02-19 Tom Tromey <tromey@redhat.com>
12926
12927 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12928 Add argument.
12929 (target_region_ok_for_hw_watchpoint): Add argument.
12930 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12931 (default_region_ok_for_hw_watchpoint): Add argument.
12932 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12933 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12934 argument.
12935 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12936 argument.
12937 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12938 argument.
12939 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12940 'self' argument.
12941 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12942 'self' argument.
12943 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12944 'self' argument.
12945 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12946 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12947 'self' argument.
12948 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12949 Add 'self' argument.
12950
12951 2014-02-19 Tom Tromey <tromey@redhat.com>
12952
12953 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12954 argument.
12955 (target_insert_watchpoint): Add argument.
12956 * target.c (debug_to_insert_watchpoint): Add argument.
12957 (update_current_target): Update.
12958 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12959 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12960 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12961 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12962 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12963 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12964 argument.
12965 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12966 (procfs_insert_hw_watchpoint): Add 'self' argument.
12967 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12968 argument.
12969 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12970 argument.
12971 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12972 argument.
12973 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12974 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12975 argument.
12976 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12977 'self' argument.
12978
12979 2014-02-19 Tom Tromey <tromey@redhat.com>
12980
12981 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12982 argument.
12983 (target_remove_watchpoint): Add argument.
12984 * target.c (debug_to_remove_watchpoint): Add argument.
12985 (update_current_target): Update.
12986 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12987 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12988 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12989 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12990 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12991 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12992 argument.
12993 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12994 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12995 argument.
12996 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12997 argument.
12998 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12999 argument.
13000 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13001 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13002 argument.
13003 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13004 'self' argument.
13005
13006 2014-02-19 Tom Tromey <tromey@redhat.com>
13007
13008 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13009 argument.
13010 (target_remove_hw_breakpoint): Add argument.
13011 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13012 (update_current_target): Update.
13013 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13014 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13015 argument.
13016 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13017 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13018 argument.
13019 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13020 'self' argument.
13021
13022 2014-02-19 Tom Tromey <tromey@redhat.com>
13023
13024 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13025 argument.
13026 (target_insert_hw_breakpoint): Add argument.
13027 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13028 (update_current_target): Update.
13029 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13030 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13031 argument.
13032 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13033 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13034 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13035 argument.
13036 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13037 'self' argument.
13038
13039 2014-02-19 Tom Tromey <tromey@redhat.com>
13040
13041 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13042 argument.
13043 (target_can_use_hardware_watchpoint): Add argument.
13044 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13045 (update_current_target): Update.
13046 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13047 argument.
13048 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13049 argument.
13050 * remote.c (remote_check_watch_resources): Add 'self' argument.
13051 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13052 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13053 argument.
13054 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13055 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13056 argument.
13057 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13058 argument.
13059 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13060 argument.
13061 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13062 argument.
13063 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13064 argument.
13065 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13066 argument.
13067 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13068 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13069 argument.
13070 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13071 'self' argument.
13072
13073 2014-02-19 Tom Tromey <tromey@redhat.com>
13074
13075 * target.h (struct target_ops) <to_post_attach>: Add argument.
13076 (target_post_attach): Add argument.
13077 * target.c (debug_to_post_attach): Add argument.
13078 (update_current_target): Update.
13079 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13080 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13081 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13082 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13083 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13084
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13086
13087 * windows-nat.c (windows_close): Add 'self' argument.
13088 * tracepoint.c (tfile_close): Add 'self' argument.
13089 * target.h (struct target_ops) <to_close>: Add argument.
13090 * target.c (target_close): Add argument.
13091 (update_current_target): Update.
13092 * remote.c (remote_close): Add 'self' argument.
13093 * remote-sim.c (gdbsim_close): Add 'self' argument.
13094 * remote-mips.c (mips_close): Add 'self' argument.
13095 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13096 * record-full.c (record_full_close): Add 'self' argument.
13097 * record-btrace.c (record_btrace_close): Add 'self' argument.
13098 * monitor.h (monitor_close): Add 'self' argument.
13099 * monitor.c (monitor_close): Add 'self' argument.
13100 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13101 * linux-nat.c (linux_nat_close): Add argument.
13102 * go32-nat.c (go32_close): Add 'self' argument.
13103 * exec.c (exec_close_1): Add 'self' argument.
13104 * ctf.c (ctf_close): Add 'self' argument.
13105 * corelow.c (core_close): Add 'self' argument.
13106 (core_close_cleanup): Update.
13107 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13108 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13109
13110 2014-02-19 Tom Tromey <tromey@redhat.com>
13111
13112 * remote.c (remote_load): New function.
13113 (init_remote_ops): Use it.
13114
13115 2014-02-19 Tom Tromey <tromey@redhat.com>
13116
13117 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13118 argument.
13119 * common/linux-btrace.h (linux_supports_btrace): Update.
13120 * remote.c (remote_supports_btrace): Add "self" argument.
13121 * target-delegates.c: Rebuild.
13122 * target.c (target_supports_btrace): Remove.
13123 * target.h (struct target_ops) <to_supports_btrace>: Add
13124 target_ops argument.
13125 (target_supports_btrace): New define.
13126
13127 2014-02-19 Tom Tromey <tromey@redhat.com>
13128
13129 * record-full.c (record_full_beneath_to_resume_ops)
13130 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13131 (record_full_beneath_to_wait)
13132 (record_full_beneath_to_store_registers_ops)
13133 (record_full_beneath_to_store_registers)
13134 (record_full_beneath_to_xfer_partial_ops)
13135 (record_full_beneath_to_xfer_partial)
13136 (record_full_beneath_to_insert_breakpoint_ops)
13137 (record_full_beneath_to_insert_breakpoint)
13138 (record_full_beneath_to_remove_breakpoint_ops)
13139 (record_full_beneath_to_remove_breakpoint)
13140 (record_full_beneath_to_stopped_by_watchpoint)
13141 (record_full_beneath_to_stopped_data_address)
13142 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13143 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13144 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13145 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13146 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13147 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13148 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13149 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13150 (record_full_resume, record_full_wait_1)
13151 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13152 (record_full_store_registers, record_full_xfer_partial)
13153 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13154 (record_full_async, record_full_core_xfer_partial): Use target
13155 delegation.
13156 * target-delegates.c: Rebuild.
13157 * target.c (current_xfer_partial): Remove.
13158 (update_current_target): Do not INHERIT or de_fault
13159 to_insert_breakpoint, to_remove_breakpoint,
13160 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13161 to_is_async_p, to_async. Do not set to_xfer_partial field.
13162 (default_xfer_partial): Simplify.
13163 (current_xfer_partial): Remove.
13164 (target_wait, target_resume): Simplify.
13165 (find_default_can_async_p, find_default_is_async_p): Update.
13166 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13167 to_xfer_partial, to_stopped_by_watchpoint,
13168 to_stopped_data_address.
13169 (target_store_registers): Simplify.
13170 (forward_target_remove_breakpoint)
13171 (forward_target_insert_breakpoint): Remove.
13172 (target_remove_breakpoint, target_insert_breakpoint)
13173 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13174 * target.h (struct target_ops) <to_resume, to_wait,
13175 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13176 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13177 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13178 markup.
13179 (forward_target_remove_breakpoint)
13180 (forward_target_insert_breakpoint): Remove.
13181 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13182 directly.
13183 (record_btrace_insert_breakpoint): Delegate directly.
13184
13185 2014-02-19 Tom Tromey <tromey@redhat.com>
13186
13187 PR build/7701:
13188 * target-delegates.c: New file.
13189 * target.c: Include target-delegates.c.
13190 (init_dummy_target): Call install_dummy_methods.
13191 (complete_target_initialization): Call install_delegators.
13192 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13193 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13194 * make-target-delegates: New file.
13195
13196 2014-02-19 Tom Tromey <tromey@redhat.com>
13197
13198 * record.c (find_record_target): Use find_target_at.
13199 * target.c (find_target_at): New function.
13200 * target.h (find_target_at): Declare.
13201
13202 2014-02-19 Tom Tromey <tromey@redhat.com>
13203
13204 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13205 Add 'ops' argument.
13206 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13207 'ops' argument.
13208 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13209 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13210 'ops' argument.
13211 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13212 argument.
13213 * linux-nat.c (save_sigtrap): Update.
13214 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13215 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13216 (linux_nat_close): Update.
13217 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13218 argument.
13219 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13220 argument.
13221 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13222 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13223 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13224 (tmp_to_async): Add 'ops' argument.
13225 (record_full_stopped_by_watchpoint, record_full_async)
13226 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13227 argument.
13228 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13229 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13230 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13231 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13232 (remote_is_async_p, remote_async): Add 'ops' argument.
13233 (remote_stopped_data_address): Update.
13234 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13235 * target.c (update_current_target)
13236 (find_default_can_async_p, find_default_is_async_p): Update.
13237 (init_dummy_target): Update.
13238 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13239 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13240 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13241 (target_can_async_p, target_is_async_p, target_async)
13242 (target_stopped_by_watchpoint): Update.
13243
13244 2014-02-19 Yao Qi <yao@codesourcery.com>
13245
13246 PR gdb/16220
13247 * gdbarch.sh: Remove startup_gdbarch.
13248 * gdbarch.c: Regenerated.
13249 * gdbarch.h: Likewise.
13250
13251 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13252
13253 * rl78-tdep.c (rl78_g10_register_name): New function.
13254 (rl78_return_value): Add g10 support.
13255 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13256 g10.
13257
13258 2014-02-17 Doug Evans <xdje42@gmail.com>
13259
13260 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13261 (SUBDIR_GUILE_SRCS): Ditto.
13262 (scm-gsmob.o): Ditto.
13263
13264 2014-02-17 Yao Qi <yao@codesourcery.com>
13265
13266 * gnu-nat.c (ILL_RPC): Declare defined function.
13267
13268 2014-02-17 Yao Qi <yao@codesourcery.com>
13269
13270 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13271 mach_msg_type_number_t.
13272 (gnu_write_inferior): Likewise.
13273
13274 2014-02-17 Yao Qi <yao@codesourcery.com>
13275
13276 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13277 in format string.
13278 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13279 (inf_validate_procs, inf_signal): Likewise.
13280 (S_exception_raise_request): Likewise.
13281 (do_mach_notify_dead_name): Likewise.
13282 (steal_exc_port): Likewise.
13283 (gnu_read_inferior): Change 'copy_count''s type to
13284 mach_msg_type_number_t.
13285 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13286 format string.
13287
13288 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13289
13290 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13291 flag. Adjust all users; in particular...
13292 (gnu_wait): ..., don't decrement its value in here...
13293 (gnu_create_inferior): ..., and instead set the flag in here,
13294 around the startup_inferior call, and call that one with
13295 START_INFERIOR_TRAPS_EXPECTED.
13296
13297 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13298 (ILL_RPC): ... new macro.
13299 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13300 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13301 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13302 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13303 functions with ILL_RPC macro.
13304 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13305 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13306 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13307 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13308 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13309 (S_proc_getlogin_reply, S_proc_getsid_reply)
13310 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13311 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13312 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13313 (S_proc_getnports_reply, S_proc_is_important_reply)
13314 (S_proc_get_code_reply): New stub functions, generated with
13315 ILL_RPC macro.
13316
13317 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13318 collected the type check structures.
13319
13320 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13321
13322 2014-02-14 Doug Evans <dje@google.com>
13323
13324 * target.c (target_write_partial): Fix result type.
13325
13326 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13327
13328 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13329 the proper offsets to access fpregset_t.
13330
13331 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13332
13333 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13334 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13335 * h8300-tdep.c (setmachinelist): Remove global.
13336 * hppa-tdep.c (hppa_sigtramp): Remove global.
13337 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13338 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13339 * ravenscar-thread.c (update_target_observer): Remove global.
13340 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13341
13342 2014-02-12 Tom Tromey <tromey@redhat.com>
13343
13344 * common/rsp-low.c: Update comments.
13345 * common/rsp-low.h: Update comments.
13346
13347 2014-02-12 Tom Tromey <tromey@redhat.com>
13348
13349 * common/rsp-low.c (convert_ascii_to_int): Remove.
13350 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13351
13352 2014-02-12 Tom Tromey <tromey@redhat.com>
13353
13354 * common/rsp-low.h (unhexify): Don't declare.
13355 * common/rsp-low.c (unhexify): Remove.
13356
13357 2014-02-12 Tom Tromey <tromey@redhat.com>
13358
13359 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13360 * common/rsp-low.c (convert_int_to_ascii): Remove.
13361
13362 2014-02-12 Tom Tromey <tromey@redhat.com>
13363
13364 * common/rsp-low.h (hexify): Don't declare.
13365 * common/rsp-low.c (hexify): Remove.
13366
13367 2014-02-12 Tom Tromey <tromey@redhat.com>
13368
13369 * common/rsp-low.c (hexify): Never take strlen of argument.
13370
13371 2014-02-12 Tom Tromey <tromey@redhat.com>
13372
13373 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13374 * remote.c (extended_remote_run, remote_rcmd)
13375 (remote_download_trace_state_variable, remote_save_trace_data)
13376 (remote_set_trace_notes): Update.
13377 * tracepoint.c (encode_source_string, tfile_write_status)
13378 (tfile_write_uploaded_tsv): Update.
13379
13380 2014-02-12 Tom Tromey <tromey@redhat.com>
13381
13382 * tracepoint.c: Include rsp-low.h.
13383 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13384 * remote.c: Include rsp-low.h.
13385 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13386 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13387 (remote_unescape_input): Move to common/rsp-low.c.
13388 * common/rsp-low.h: New file.
13389 * common/rsp-low.c: New file.
13390 * Makefile.in (SFILES): Add common/rsp-low.c.
13391 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13392 (COMMON_OBS): Add rsp-low.o.
13393 (rsp-low.o): New target.
13394
13395 2014-02-12 Tom Tromey <tromey@redhat.com>
13396
13397 * utils.h: Include print-utils.h.
13398 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13399 (int_string, core_addr_to_string, core_addr_to_string_nz)
13400 (hex_string, hex_string_custom): Don't declare.
13401 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13402 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13403 (hex_string_custom, int_string, core_addr_to_string)
13404 (core_addr_to_string_nz, host_address_to_string): Move to
13405 common/print-utils.c.
13406 * common/print-utils.h: New file.
13407 * common/print-utils.c: New file
13408 * Makefile.in (SFILES): Add common/print-utils.c.
13409 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13410 (COMMON_OBS): Add print-utils.o.
13411 (print-utils.o): New target.
13412
13413 2014-02-12 Tom Tromey <tromey@redhat.com>
13414
13415 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13416
13417 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13418
13419 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13420
13421 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13422
13423 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13424 if a PT_IO ptrace request returns sucessfully but indicates that 0
13425 bytes were transferred.
13426
13427 2014-02-12 Pedro Alves <palves@redhat.com>
13428 Kevin Buettner <kevinb@redhat.com>
13429
13430 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13431 TYPE_INSTANCE_FLAG_CODE_SPACE.
13432
13433 2014-02-12 Pedro Alves <palves@redhat.com>
13434
13435 * h8300-tdep.c (pseudo_from_raw_register)
13436 (raw_from_pseudo_register): New functions.
13437 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13438 them.
13439
13440 2014-02-12 Pedro Alves <palves@redhat.com>
13441
13442 * h8300-tdep.c (h8300_register_sim_regno): New function.
13443 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13444 gdbarch_register_sim_regno hook.
13445
13446 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13447
13448 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13449
13450 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13451
13452 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13453
13454 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13455
13456 * obsd-tdep.h (obsd_init_abi): New prototype.
13457 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13458 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13459 (obsd_init_abi): New functions.
13460 * i386obsd-tdep.c: Include "obsd-tdep.h".
13461 (i386obsd_init_abi): Call obsd_init_abi.
13462 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13463 (amd64obsd_init_abi): Call obsd_init_abi.
13464 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13465 obsd-tdep.c to gdb_target_obs.
13466
13467 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13468
13469 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13470 double float arguments to 16-byte in the argument slots.
13471
13472 2014-02-11 Doug Evans <xdje42@gmail.com>
13473
13474 * configure.ac: Don't crash if pkg-config is not found and guile
13475 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13476 in guile checks.
13477 * configure: Regenerate.
13478
13479 2014-02-11 Yao Qi <yao@codesourcery.com>
13480
13481 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13482 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13483 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13484 * gnu-nat.c (gnu_xfer_memory): Likewise.
13485 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13486 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13487 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13488 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13489
13490 2014-02-11 Yao Qi <yao@codesourcery.com>
13491
13492 * target.h (enum target_xfer_error): Rename to ...
13493 (enum target_xfer_status): ... it. New. All users updated.
13494 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13495 New.
13496 (TARGET_XFER_STATUS_ERROR_P): New macro.
13497 (target_xfer_error_to_string): Remove declaration.
13498 (target_xfer_status_to_string): Declare.
13499 (target_xfer_partial_ftype): Adjust it.
13500 (struct target_ops) <to_xfer_partial>: Return
13501 target_xfer_status. Add argument xfered_len. Update
13502 comments.
13503 * target.c (target_xfer_error_to_string): Rename to ...
13504 (target_xfer_status_to_string): ... it. New. All callers
13505 updated.
13506 (target_read_live_memory): Likewise. Call target_xfer_partial
13507 instead of target_read.
13508 (memory_xfer_live_readonly_partial): Return
13509 target_xfer_status. Add argument xfered_len.
13510 (raw_memory_xfer_partial): Likewise.
13511 (memory_xfer_partial_1): Likewise.
13512 (memory_xfer_partial): Likewise.
13513 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13514 properly. Update debug message.
13515 (default_xfer_partial, current_xfer_partial): Likewise.
13516 (target_write_partial): Likewise.
13517 (target_read_partial): Likewise. All callers updated.
13518 (read_whatever_is_readable): Likewise.
13519 (target_write_with_progress): Likewise.
13520 (target_read_alloc_1): Likewise.
13521
13522 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13523 * auxv.c (procfs_xfer_auxv): Likewise.
13524 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13525 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13526 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13527 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13528 * corefile.c (read_memory): Adjust.
13529 * corelow.c (core_xfer_partial): Likewise.
13530 * ctf.c (ctf_xfer_partial): Likewise.
13531 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13532 updated.
13533 (darwin_xfer_partial): Likewise.
13534 * exec.c (section_table_xfer_memory_partial): Likewise. All
13535 callers updated.
13536 (exec_xfer_partial): Likewise.
13537 * exec.h (section_table_xfer_memory_partial): Update
13538 declaration.
13539 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13540 negative.
13541 (gnu_xfer_partial): Likewise.
13542 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13543 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13544 (ia64_hpux_xfer_solib_got): Likewise.
13545 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13546 type of 'partial_len' to ULONGEST.
13547 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13548 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13549 (linux_nat_xfer_partial): Likewise.
13550 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13551 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13552 * monitor.c (monitor_xfer_memory): Likewise.
13553 (monitor_xfer_partial): Likewise.
13554 * procfs.c (procfs_xfer_partial): Likewise.
13555 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13556 * record-full.c (record_full_xfer_partial): Likewise.
13557 (record_full_core_xfer_partial): Likewise.
13558 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13559 (gdbsim_xfer_partial): Likewise.
13560 * remote.c (remote_write_bytes_aux): Likewise. All callers
13561 updated.
13562 (remote_write_bytes, remote_read_bytes): Likewise. All
13563 callers updated.
13564 (remote_flash_erase): Likewise. All callers updated.
13565 (remote_write_qxfer): Likewise. All callers updated.
13566 (remote_read_qxfer): Likewise. All callers updated.
13567 (remote_xfer_partial): Likewise.
13568 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13569 (rs6000_xfer_shared_libraries): Likewise.
13570 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13571 (sol_thread_xfer_partial): Likewise.
13572 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13573 (sparc_xfer_partial): Likewise.
13574 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13575 updated.
13576 (spu_xfer_partial): Likewise.
13577 * spu-multiarch.c (spu_xfer_partial): Likewise.
13578 * tracepoint.c (tfile_xfer_partial): Likewise.
13579 * windows-nat.c (windows_xfer_memory): Likewise.
13580 (windows_xfer_shared_libraries): Likewise.
13581 (windows_xfer_partial): Likewise.
13582 * valprint.c: Replace 'target_xfer_error' with
13583 'target_xfer_status' in comments.
13584
13585 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13586
13587 Checked in by Joel Brobecker <brobecker@adacore.com>.
13588 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13589
13590 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13591
13592 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13593 function parameters.
13594
13595 2014-02-10 Will Newton <will.newton@linaro.org>
13596
13597 * elfread.c (elf_rel_plt_read): Look for a .got section if
13598 looking up .got.plt fails.
13599 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13600 on address passed to elf_gnu_ifunc_record_cache.
13601 (elf_gnu_ifunc_resolve_addr): Likewise.
13602 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13603
13604 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13605
13606 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13607 (X_RETTURN): New macro.
13608 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13609
13610 * sparc64-tdep.c (sparc64_init_abi): Hook
13611 sparc_in_function_epilogue_p.
13612
13613 2014-02-10 Gary Benson <gbenson@redhat.com>
13614
13615 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13616 Rename name_matcher to symbol_matcher.
13617
13618 2014-02-10 Gary Benson <gbenson@redhat.com>
13619
13620 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13621 Use expand_symtabs_file_matcher_ftype and
13622 expand_symtabs_symbol_matcher_ftype.
13623
13624 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13625
13626 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13627 (struct ada_symbol_cache): New.
13628 (ada_free_symbol_cache): Forward declare.
13629 (struct ada_pspace_data): New.
13630 (ada_pspace_data_handle): New static global.
13631 (get_ada_pspace_data, ada_pspace_data_cleanup)
13632 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13633 (cache_space, cache): Delete, now folded inside struct
13634 ada_pspace_data.
13635 (ada_get_symbol_cache): New function.
13636 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13637 implementation.
13638 (_initialize_ada_language): Remove initialization of cache_space.
13639 Move call to observer_attach_inferior_exit up, grouping it
13640 with the other observer registrations inside this function.
13641 Rename command to be more general. Add call to
13642 register_program_space_data_with_cleanup.
13643
13644 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13645
13646 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13647 ada_new_objfile_observer.
13648 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13649 (_initialize_tasks): Update uses of ada_new_objfile_observer
13650 and ada_tasks_normal_stop_observer.
13651
13652 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13653
13654 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13655 returned by the 'Length attribute to integer.
13656
13657 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13658
13659 * ada-lang.c (_initialize_ada_language): Initialize
13660 cache_space obstack.
13661
13662 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13663
13664 * ada-lang.c (HASH_SIZE): New macro.
13665 (struct cache_entry): New type.
13666 (cache_space, cache): New static globals.
13667 (ada_clear_symbol_cache, find_entry): New functions.
13668 (lookup_cached_symbol, cache_symbol): Implement.
13669 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13670 (_initialize_ada_language): Attach ada_new_objfile_observer
13671 and ada_free_objfile_observer.
13672
13673 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13674
13675 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13676 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13677 struct block * parameter.
13678 (ada_lookup_symbol_list_worker): Constify local variable "block".
13679 Remove cast which is no longer necessary.
13680
13681 2014-02-10 Doug Evans <xdje42@gmail.com>
13682
13683 Add Guile as an extension language.
13684 * NEWS: Mention Guile scripting.
13685 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13686 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13687 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13688 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13689 (CLIBS): Add GUILE_LIBS.
13690 (install-guile): New rule.
13691 (guile.o): New rule.
13692 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13693 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13694 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13695 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13696 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13697 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13698 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13699 * configure.ac: New option --with-guile.
13700 * configure: Regenerate.
13701 * config.in: Regenerate.
13702 * auto-load.c: Remove #include "python/python.h". Add #include
13703 "gdb/section-scripts.h".
13704 (source_section_scripts): Handle Guile scripts.
13705 (_initialize_auto_load): Add name of Guile objfile script to
13706 scripts-directory help text.
13707 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13708 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13709 (struct breakpoint): New member scm_bp_object.
13710 * defs.h (enum command_control_type): New value guile_control.
13711 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13712 "extension.h".
13713 (show_user): Update comment.
13714 (_initialize_cli_cmds): Update help text for "show user". Update help
13715 text for max-user-call-depth.
13716 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13717 "extension.h".
13718 (multi_line_command_p): Add guile_control.
13719 (print_command_lines): Handle guile_control.
13720 (execute_control_command, recurse_read_control_structure): Ditto.
13721 (process_next_line): Recognize "guile" commands.
13722 * disasm.c (gdb_disassemble_info): Make non-static.
13723 * disasm.h: #include "dis-asm.h".
13724 (struct gdbarch): Add forward decl.
13725 (gdb_disassemble_info): Declare.
13726 * extension.c: #include "guile/guile.h".
13727 (extension_languages): Add guile.
13728 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13729 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13730 * gdbtypes.c (get_unsigned_type_max): New function.
13731 (get_signed_type_minmax): New function.
13732 * gdbtypes.h (get_unsigned_type_max): Declare.
13733 (get_signed_type_minmax): Declare.
13734 * guile/README: New file.
13735 * guile/guile-internal.h: New file.
13736 * guile/guile.c: New file.
13737 * guile/guile.h: New file.
13738 * guile/scm-arch.c: New file.
13739 * guile/scm-auto-load.c: New file.
13740 * guile/scm-block.c: New file.
13741 * guile/scm-breakpoint.c: New file.
13742 * guile/scm-disasm.c: New file.
13743 * guile/scm-exception.c: New file.
13744 * guile/scm-frame.c: New file.
13745 * guile/scm-gsmob.c: New file.
13746 * guile/scm-iterator.c: New file.
13747 * guile/scm-lazy-string.c: New file.
13748 * guile/scm-math.c: New file.
13749 * guile/scm-objfile.c: New file.
13750 * guile/scm-ports.c: New file.
13751 * guile/scm-pretty-print.c: New file.
13752 * guile/scm-safe-call.c: New file.
13753 * guile/scm-string.c: New file.
13754 * guile/scm-symbol.c: New file.
13755 * guile/scm-symtab.c: New file.
13756 * guile/scm-type.c: New file.
13757 * guile/scm-utils.c: New file.
13758 * guile/scm-value.c: New file.
13759 * guile/lib/gdb.scm: New file.
13760 * guile/lib/gdb/boot.scm: New file.
13761 * guile/lib/gdb/experimental.scm: New file.
13762 * guile/lib/gdb/init.scm: New file.
13763 * guile/lib/gdb/iterator.scm: New file.
13764 * guile/lib/gdb/printing.scm: New file.
13765 * guile/lib/gdb/types.scm: New file.
13766 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13767 (VPATH): Add $(GUILE_SRCDIR).
13768 (GUILE_DIR): New variable.
13769 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13770 (all): Add stamp-guile dependency.
13771 (stamp-guile): New rule.
13772 (clean-guile, install-guile, uninstall-guile): New rules.
13773 (install-only): Add install-guile dependency.
13774 (uninstall): Add uninstall-guile dependency.
13775 (clean): Add clean-guile dependency.
13776
13777 2014-02-09 Doug Evans <xdje42@gmail.com>
13778
13779 Revert this patch (which I approved, mea culpa).
13780
13781 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13782
13783 * Makefile.in (all-lib): Remove.
13784 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13785
13786 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13787
13788 Fix Python stack corruption.
13789 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13790 gdb_py_longest.
13791
13792 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13793
13794 * Makefile.in (all-lib): Remove.
13795 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13796
13797 2014-02-07 Doug Evans <dje@google.com>
13798
13799 * extension-priv.h (extension_language_script_ops): Add comment.
13800 (extension_language_ops): Add comment.
13801 (active_ext_lang_state): Fix typo in comment.
13802
13803 2014-02-07 Pedro Alves <palves@redhat.com>
13804
13805 PR breakpoints/16292
13806 * infrun.c (handle_signal_stop) <signal arrives while stepping
13807 over a breakpoint>: Switch back to the stepping thread.
13808
13809 2014-02-07 Yao Qi <yao@codesourcery.com>
13810
13811 * target.c (target_xfer_partial): Return zero if LEN is zero.
13812
13813 2014-02-07 Yao Qi <yao@codesourcery.com>
13814
13815 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13816 (ld_so_xfer_auxv): Likewise.
13817 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13818 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13819 * corelow.c (core_xfer_partial): Likewise.
13820 * ctf.c (ctf_xfer_partial): Likewise.
13821 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13822 (darwin_xfer_partial): Likewise.
13823 * exec.c (exec_xfer_partial): Likewise.
13824 * gnu-nat.c (gnu_xfer_partial): Likewise.
13825 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13826 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13827 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13828 * linux-nat.c (linux_xfer_siginfo): Likewise.
13829 (linux_proc_xfer_spu): Likewise.
13830 * procfs.c (procfs_xfer_partial): Likewise.
13831 * record-full.c (record_full_xfer_partial): Likewise.
13832 (record_full_core_xfer_partial): Likewise.
13833 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13834 * remote.c (remote_write_qxfer): Likewise.
13835 (remote_write_qxfer, remote_read_qxfer): Likewise.
13836 (remote_xfer_partial): Likewise.
13837 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13838 (rs6000_xfer_shared_libraries): Likewise.
13839 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13840 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13841 (spu_xfer_partial): Likewise.
13842 * target.c (memory_xfer_partial_1): Likewise.
13843 * tracepoint.c (tfile_xfer_partial): Likewise.
13844 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13845 (windows_xfer_partial): Likewise.
13846
13847 2014-02-07 Yao Qi <yao@codesourcery.com>
13848
13849 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13850 comments.
13851 (core_xfer_shared_libraries_aix): Likewise.
13852 * gdbarch.c, gdbarch.h: Regenerated.
13853 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13854 ULONGEST. Change 'len_avail' type to ULONGEST.
13855 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13856 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13857 declaration.
13858 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13859
13860 2014-02-07 Yao Qi <yao@codesourcery.com>
13861
13862 * corefile.c (memory_error): Get 'exception' from ERR and pass
13863 'exception' to throw_error.
13864
13865 2014-02-06 Doug Evans <xdje42@gmail.com>
13866
13867 * configure.ac (libpython checking): Remove all but python.o from
13868 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13869 * configure: Regenerate.
13870
13871 * Makefile.in (SFILES): Add extension.c.
13872 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13873 (COMMON_OBS): Add extension.o.
13874 * extension.h: New file.
13875 * extension-priv.h: New file.
13876 * extension.c: New file.
13877
13878 * python/python-internal.h: #include "extension.h".
13879 (gdbpy_auto_load_enabled): Declare.
13880 (gdbpy_apply_val_pretty_printer): Declare.
13881 (gdbpy_apply_frame_filter): Declare.
13882 (gdbpy_preserve_values): Declare.
13883 (gdbpy_breakpoint_cond_says_stop): Declare.
13884 (gdbpy_breakpoint_has_cond): Declare.
13885 (void source_python_script_for_objfile): Delete.
13886 * python/python.c: #include "extension-priv.h".
13887 Delete inclusion of "observer.h".
13888 (extension_language_python): Moved here and renamed from
13889 script_language_python in py-auto-load.c.
13890 Redefined to be of type extension_language_defn.
13891 (python_extension_script_ops): New global.
13892 (python_extension_ops): New global.
13893 (struct python_env): New member previous_active.
13894 (restore_python_env): Call restore_active_ext_lang.
13895 (ensure_python_env): Call set_active_ext_lang.
13896 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13897 New arg extlang.
13898 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13899 New arg extlang.
13900 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13901 New arg extlang.
13902 (gdbpy_eval_from_control_command): Renamed from
13903 eval_python_from_control_command, made static. New arg extlang.
13904 (gdbpy_source_script) Renamed from source_python_script, made static.
13905 New arg extlang.
13906 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13907 result to int. New arg extlang.
13908 (gdbpy_source_objfile_script): Renamed from
13909 source_python_script_for_objfile, made static. New arg extlang.
13910 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13911 static. New args extlang, extlang_printers. Change result type to
13912 "void".
13913 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13914 static. New arg extlang. Rename arg printers to extlang_printers
13915 and change type to ext_lang_type_printers *.
13916 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13917 static. Replace argument arg with extlang, extlang_printers.
13918 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13919 (!HAVE_PYTHON, source_python_script): Delete.
13920 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13921 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13922 (!HAVE_PYTHON, start_type_printers): Delete.
13923 (!HAVE_PYTHON, apply_type_printers): Delete.
13924 (!HAVE_PYTHON, free_type_printers): Delete.
13925 (_initialize_python): Delete call to observer_attach_before_prompt.
13926 (finalize_python): Set/restore active extension language.
13927 (gdbpy_finish_initialization) Renamed from
13928 finish_python_initialization, made static. New arg extlang.
13929 (gdbpy_initialized): New function.
13930 * python/python.h: #include "extension.h". Delete #include
13931 "value.h", "mi/mi-cmds.h".
13932 (extension_language_python): Declare.
13933 (GDBPY_AUTO_FILE_NAME): Delete.
13934 (enum py_bt_status): Moved to extension.h and renamed to
13935 ext_lang_bt_status.
13936 (enum frame_filter_flags): Moved to extension.h.
13937 (enum py_frame_args): Moved to extension.h and renamed to
13938 ext_lang_frame_args.
13939 (finish_python_initialization): Delete.
13940 (eval_python_from_control_command): Delete.
13941 (source_python_script): Delete.
13942 (apply_val_pretty_printer): Delete.
13943 (apply_frame_filter): Delete.
13944 (preserve_python_values): Delete.
13945 (gdbpy_script_language_defn): Delete.
13946 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13947 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13948
13949 * auto-load.c: #include "extension.h".
13950 (GDB_AUTO_FILE_NAME): Delete.
13951 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13952 (script_language_gdb): Delete, moved to extension.c and renamed to
13953 extension_language_gdb.
13954 (source_gdb_script_for_objfile): Delete.
13955 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13956 (loaded_script): Change type of language member to
13957 struct extension_language_defn *.
13958 (init_loaded_scripts_info): Initialize
13959 unsupported_script_warning_printed.
13960 (maybe_add_script): Make static. Change type of language arg to
13961 struct extension_language_defn *.
13962 (clear_section_scripts): Reset unsupported_script_warning_printed.
13963 (auto_load_objfile_script_1): Rewrite to use extension language API.
13964 (auto_load_objfile_script): Make public. Remove support-compiled-in
13965 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13966 (source_section_scripts): Rewrite to use extension language API.
13967 (load_auto_scripts_for_objfile): Rewrite to use
13968 auto_load_scripts_for_objfile.
13969 (collect_matching_scripts_data): Change type of language member to
13970 struct extension_language_defn *.
13971 (auto_load_info_scripts): Change type of language arg to
13972 struct extension_language_defn *.
13973 (unsupported_script_warning_print): New function.
13974 (script_not_found_warning_print): Make static.
13975 (_initialize_auto_load): Rewrite construction of scripts-directory
13976 help.
13977 * auto-load.h (struct objfile): Add forward decl.
13978 (struct script_language): Delete.
13979 (struct auto_load_pspace_info): Add forward decl.
13980 (struct extension_language_defn): Add forward decl.
13981 (maybe_add_script): Delete.
13982 (auto_load_objfile_script): Declare.
13983 (script_not_found_warning_print): Delete.
13984 (auto_load_info_scripts): Update prototype.
13985 (auto_load_gdb_scripts_enabled): Declare.
13986 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13987 auto_load_python_scripts_enabled and made public.
13988 (script_language_python): Delete, moved to python.c.
13989 (gdbpy_script_language_defn): Delete.
13990 (info_auto_load_python_scripts): Update to use
13991 extension_language_python.
13992
13993 * breakpoint.c (condition_command): Replace call to
13994 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13995 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13996 with call to breakpoint_ext_lang_cond_says_stop.
13997 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13998 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13999 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14000 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14001 New arg slang.
14002 (local_setattro): Print name of extension language with existing
14003 stop condition.
14004
14005 * valprint.c (val_print, value_print): Update to call
14006 apply_ext_lang_val_pretty_printer.
14007 * cp-valprint.c (cp_print_value): Update call to
14008 apply_ext_lang_val_pretty_printer.
14009 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14010 (gdbpy_apply_val_pretty_printer): Renamed from
14011 apply_val_pretty_printer. New arg extlang.
14012 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14013
14014 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14015 extension language API.
14016 * cli/cli-script.c (execute_control_command): Update to call
14017 eval_ext_lang_from_control_command.
14018
14019 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14020 enum ext_lang_bt_status values. Update call to
14021 apply_ext_lang_frame_filter.
14022 (mi_cmd_stack_list_locals): Ditto.
14023 (mi_cmd_stack_list_args): Ditto.
14024 (mi_cmd_stack_list_variables): Ditto.
14025 * mi/mi-main.c: Delete #include "python/python-internal.h".
14026 Add #include "extension.h".
14027 (mi_cmd_list_features): Replace reference to python internal variable
14028 gdb_python_initialized with call to ext_lang_initialized_p.
14029
14030 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14031 Update to use enum ext_lang_frame_args. Update to call
14032 apply_ext_lang_frame_filter.
14033 * python/py-framefilter.c (extract_sym): Update to use enum
14034 ext_lang_bt_status.
14035 (extract_value, py_print_type, py_print_value): Ditto.
14036 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14037 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14038 (py_print_frame): Ditto.
14039 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14040 New arg extlang. Update to use enum ext_lang_bt_status.
14041
14042 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14043 finish_python_initialization. Replace with call to
14044 finish_ext_lang_initialization.
14045
14046 * typeprint.c (do_free_global_table): Update to call
14047 free_ext_lang_type_printers.
14048 (create_global_typedef_table): Update to call
14049 start_ext_lang_type_printers.
14050 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14051 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14052 (type_print_options): Change type of global_printers from "void *"
14053 to "struct ext_lang_type_printers *".
14054
14055 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14056 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14057 (gdbpy_preserve_values): Renamed from preserve_python_values.
14058 New arg extlang.
14059 (!HAVE_PYTHON, preserve_python_values): Delete.
14060
14061 * utils.c (quit_flag): Delete, moved to extension.c.
14062 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14063 extension.c.
14064
14065 * eval.c: Delete #include "python/python.h".
14066 * main.c: Delete #include "python/python.h".
14067
14068 * defs.h: Update comment.
14069
14070 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14071
14072 GDB 7.7 released.
14073
14074 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14075
14076 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14077 defined.
14078
14079 2014-02-05 Yao Qi <yao@codesourcery.com>
14080
14081 * remote.c (remote_pass_signals): Remove local 'buf' and use
14082 rs->buf.
14083 (remote_program_signals): Likewise.
14084
14085 2014-02-05 Yao Qi <yao@codesourcery.com>
14086
14087 * ctf.c: Include "inferior.h" and "gdbthread.h".
14088 (CTF_PID): A new macro.
14089 (ctf_open): Call inferior_appeared and add_thread_silent.
14090 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14091 (ctf_thread_alive): New function.
14092 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14093
14094 2014-02-05 Yao Qi <yao@codesourcery.com>
14095
14096 Revert this patch:
14097
14098 2013-05-24 Yao Qi <yao@codesourcery.com>
14099
14100 * tracepoint.c (TFILE_PID): Remove.
14101 (tfile_open): Don't add thread and inferior.
14102 (tfile_close): Don't set 'inferior_ptid'. Don't call
14103 exit_inferior_silent.
14104 (tfile_thread_alive): Remove.
14105 (init_tfile_ops): Don't set field 'to_thread_alive' of
14106 tfile_ops.
14107
14108 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14109
14110 * remote.c (remote_start_remote): Call remote_check_symbols even
14111 if only symbol-file (not file) has been given.
14112
14113 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14114
14115 * gdbarch.sh (skip_entrypoint): New callback.
14116 * gdbarch.c, gdbarch.h: Regenerate.
14117 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14118 * infrun.c (fill_in_stop_func): Likewise.
14119 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14120 (ppc_elfv2_elf_make_msymbol_special): New function.
14121 (ppc_elfv2_skip_entrypoint): Likewise.
14122 (ppc_linux_init_abi): Install them for ELFv2.
14123
14124 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14125
14126 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14127 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14128 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14129 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14130 structures returned in GPRs.
14131
14132 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14133
14134 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14135 offset to the stack parameter list for the ELFv2 ABI.
14136
14137 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14138
14139 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14140 set_gdbarch_convert_from_func_ptr_addr and
14141 set_gdbarch_elf_make_msymbol_special for ELFv1.
14142 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14143 function descriptors on ELFv1.
14144 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14145 set up r12 at function entry.
14146
14147 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14148
14149 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14150 (struct gdbarch_tdep): New member elf_abi.
14151
14152 * rs6000-tdep.c: Include "elf/ppc64.h".
14153 (rs6000_gdbarch_init): Detect ELF ABI version.
14154
14155 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14156
14157 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14158 within a register pair holding a DFP 128-bit value on little-endian.
14159 (ppc64_sysv_abi_return_value_base): Likewise.
14160 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14161 (dfp_pseudo_register_write): Likewise.
14162
14163 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14164
14165 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14166 offset on little-endian when passing _Decimal32.
14167 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14168
14169 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14170
14171 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14172 of the overlapped FP register within the VSX register on little-
14173 endian platforms.
14174 (efpr_pseudo_register_write): Likewise.
14175
14176 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14177
14178 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14179 offset on little-endian when passing small structures.
14180
14181 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14182
14183 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14184 (struct ppc64_sysv_argpos): New data structure.
14185 (ppc64_sysv_abi_push_float): Remove.
14186 (ppc64_sysv_abi_push_val): New function.
14187 (ppc64_sysv_abi_push_integer): Likewise.
14188 (ppc64_sysv_abi_push_freg): Likewise.
14189 (ppc64_sysv_abi_push_vreg): Likewise.
14190 (ppc64_sysv_abi_push_param): Likewise.
14191 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14192 (ppc64_sysv_abi_return_value_base): New function.
14193 (ppc64_sysv_abi_return_value): Refactor to use it.
14194
14195 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14196
14197 * NEWS: Document new target powerpc64le-*-linux*.
14198
14199 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14200
14201 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14202 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14203 core dumps.
14204 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14205 register set used in ELF core dumps. Add floating-point register set.
14206
14207 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14208
14209 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14210 dwarf2_to_gdb[] table using symbolic constants. Adjust
14211 penultimate entry from number representing the PC register
14212 to symbolic constant representing the MDR register. Add
14213 constant for the PC register to the end of the table.
14214
14215 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14216
14217 * bsd-kvm.c: Include <sys/param.h>
14218
14219 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14220
14221 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14222
14223 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14224
14225 * ada-lang.h (clear_ada_sym_cache): Delete.
14226
14227 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14228
14229 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14230
14231 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14232
14233 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14234 the sigreturn register save area only if the syscall is
14235 sigreturn.
14236
14237 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14238
14239 * valops.c (value_slice): Minor reformatting.
14240
14241 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14242
14243 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14244
14245 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14246
14247 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14248 New static globals.
14249 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14250 (ada_ignore_descriptive_types_p): New static global.
14251 (find_parallel_type_by_descriptive_type): Return immediately
14252 if ada_ignore_descriptive_types_p is set.
14253 (_initialize_ada_language): Register new commands "maintenance
14254 set ada", "maintenance show ada", "maintenance set ada
14255 ignore-descriptive-types" and "maintenance show ada
14256 ignore-descriptive-types".
14257 * NEWS: Add entry for new "maint ada set/show
14258 ignore-descriptive-types" commands.
14259
14260 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14261
14262 * record-btrace.c (record_btrace_close): Call btrace_teardown
14263 for all threads.
14264
14265 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14266
14267 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14268 "ui-out.h".
14269
14270 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14271
14272 * ada-typeprint (type_is_full_subrange_of_target_type):
14273 New function.
14274 (print_range): Add parameter bounds_prefered_p. If not set,
14275 try printing range types using the name of their base type.
14276 (print_range_type): Add parameter bounds_prefered_p.
14277 Use it in call to print_range.
14278 (print_array_type, ada_print_type): Update calls to print_range
14279 and print_range_type.
14280
14281 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14282
14283 * ada-typeprint.c (print_array_type, print_choices, print_range)
14284 (print_range_bound, print_dynamic_range_bound, print_range_type):
14285 Remove declaration.
14286
14287 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14288
14289 * ada-typeprint.c (print_range): Add missing empty line
14290 after local declaration.
14291
14292 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14293
14294 * ada-valprint.c (print_optional_low_bound): Get index_type's
14295 target type for as long as it is a TYPE_CODE_RANGE.
14296
14297 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14298
14299 * procfs.c (procfs_make_note_section): Remove assertion and
14300 associated comment.
14301
14302 2014-01-24 Yao Qi <yao@codesourcery.com>
14303
14304 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14305 * corelow.c (get_core_siginfo): Likewise.
14306
14307 2014-01-24 Yao Qi <yao@codesourcery.com>
14308
14309 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14310 ULONGEST. Don't check 'len' is negative.
14311 (remote_write_bytes): Change type of 'len' to ULONGEST.
14312
14313 2014-01-23 Tom Tromey <tromey@redhat.com>
14314
14315 PR python/16485:
14316 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14317 Handle exception from frame.block.
14318 (FrameVars.fetch_frame_locals): Likewise.
14319
14320 2014-01-23 Tom Tromey <tromey@redhat.com>
14321
14322 PR python/16487:
14323 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14324 on a NULL pointer. Move "goto error" to correct place.
14325
14326 2014-01-23 Tom Tromey <tromey@redhat.com>
14327
14328 PR python/16491:
14329 * python/py-framefilter.c (apply_frame_filter): Call
14330 ensure_python_env after computing gdbarch.
14331
14332 2014-01-23 Yao Qi <yao@codesourcery.com>
14333
14334 * target.c (raw_memory_xfer_partial): Change argument type
14335 from void * to gdb_byte *.
14336 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14337
14338 2014-01-22 Doug Evans <dje@google.com>
14339
14340 New gdbserver option --debug-format=timestamp.
14341 * NEWS: Mention it.
14342
14343 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14344
14345 * syscalls/s390x-linux.xml: New file.
14346 * syscalls/s390-linux.xml: New file.
14347 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14348 (XML_SYSCALL_FILENAME_S390X): Likewise.
14349 (op_svc): New enum value for SVC opcode.
14350 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14351 (s390_linux_get_syscall_number): New function.
14352 (s390_gdbarch_init): Register '*get_syscall_number' and the
14353 syscall xml file name.
14354 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14355 "s390-linux.xml" and "s390x-linux.xml".
14356 * NEWS: Announce new feature.
14357
14358 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14359
14360 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14361
14362 2014-01-22 Pedro Alves <palves@redhat.com>
14363
14364 * xtensa-config.c: Include defs.h.
14365
14366 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14367
14368 * common/common-utils.h: Add "ARI:" comment beside __func__
14369 reference.
14370
14371 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14372
14373 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14374 documentation a bit.
14375
14376 2014-01-21 Roland McGrath <mcgrathr@google.com>
14377
14378 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14379 * configure: Regenerate.
14380 * aclocal.m4: Regenerate.
14381 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14382 New substituted variables.
14383 (install-strip): New target.
14384 (INSTALL_SCRIPT): New substituted variable.
14385 (FLAGS_TO_PASS): Add it.
14386 (install-only): Use $(INSTALL_SCRIPT) rather than
14387 $(INSTALL_PROGRAM) for gcore.
14388
14389 2014-01-20 Tom Tromey <tromey@redhat.com>
14390
14391 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14392 together.
14393
14394 2014-01-20 Tom Tromey <tromey@redhat.com>
14395
14396 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14397 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14398 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14399 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14400 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14401 (struct cmd_list_element) <flags>: Remove.
14402 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14403 doc_allocated>: New fields.
14404 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14405 bitfields.
14406 * maint.c (maintenance_do_deprecate): Update.
14407 * top.c (execute_command): Update.
14408
14409 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14410
14411 * xtensa-linux-nat.c: Include asm/ptrace.h.
14412
14413 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14414
14415 * Makefile.in (SFILES): Add d-support.c.
14416 (COMMON_OBS): Add d-support.o.
14417 * d-lang.h (d_parse_symbol): Add comment, now defined in
14418 d-support.c.
14419 * d-lang.c (parse_call_convention)
14420 (parse_attributes, parse_function_types)
14421 (parse_function_args, parse_type, parse_identifier)
14422 (call_convention_p, d_parse_symbol): Move functions to ...
14423 * d-support.c: ... New file.
14424
14425 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14426
14427 * d-lang.h (d_parse_symbol): Add declaration.
14428 * d-lang.c (extract_identifiers)
14429 (extract_type_info): Remove functions.
14430 (parse_call_convention, parse_attributes)
14431 (parse_function_types, parse_function_args)
14432 (parse_type, parse_identifier, call_convention_p)
14433 (d_parse_symbol): New functions.
14434 (d_demangle): Use d_parse_symbol to demangle D symbols.
14435
14436 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14437
14438 * d-lang.h (struct builtin_d_type): New data type.
14439 (builtin_d_type): Add declaration.
14440 * d-lang.c (d_language_arch_info, build_d_types)
14441 (builtin_d_type): New functions.
14442 (enum d_primitive_types): New data type.
14443 (d_language_defn): Change c_language_arch_info to
14444 d_language_arch_info.
14445 (d_type_data): New static variable.
14446 (_initialize_d_language): Initialize d_type_data.
14447
14448 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14449
14450 * d-lang.h (d_main_name): Add declaration.
14451 * d-lang.c (d_main_name): New function.
14452 * symtab.c (find_main_name): Add call to d_main_name.
14453
14454 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14455
14456 * d-lang.c (d_language_defn): Change macro_expansion_c to
14457 macro_expansion_no.
14458
14459 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14460
14461 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14462
14463 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14464
14465 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14466 gdb_exception" declaration.
14467 * remote.c (getpkt_or_notif_sane): Likewise.
14468
14469 2014-01-17 Doug Evans <dje@google.com>
14470
14471 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14472 function, contents of dirnames_to_char_ptr_vec_append moved here.
14473 (delim_string_to_char_ptr_vec): New function.
14474 (dirnames_to_char_ptr_vec_append): Rewrite.
14475 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14476
14477 2014-01-17 Doug Evans <dje@google.com>
14478
14479 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14480 and moved here ...
14481 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14482 #include "common-utils.h".
14483 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14484 * common/vec.h (VEC_ASSERT_PASS): Update.
14485 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14486 (MACH_CHECK_ERROR): Update.
14487
14488 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14489
14490 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14491 comments.
14492 * gdbarch.h: Regenerate.
14493
14494 2014-01-16 Tom Tromey <tromey@redhat.com>
14495
14496 * value.c (struct value) <regnum>: Move earlier.
14497
14498 2014-01-16 Tom Tromey <tromey@redhat.com>
14499
14500 * remote.c (extended_remote_create_inferior): Rename from
14501 extended_remote_create_inferior_1. Add "ops" argument. Remove
14502 old implementation.
14503
14504 2014-01-16 Pedro Alves <palves@redhat.com>
14505
14506 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14507 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14508 the backchain.
14509
14510 2014-01-16 Doug Evans <dje@google.com>
14511
14512 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14513
14514 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14515
14516 * btrace.h (btrace_thread_flag): New.
14517 (struct btrace_thread_info) <flags>: New.
14518 * record-btrace.c (record_btrace_resume_thread)
14519 (record_btrace_find_thread_to_move, btrace_step_no_history)
14520 (btrace_step_stopped, record_btrace_start_replaying)
14521 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14522 (record_btrace_find_resume_thread): New.
14523 (record_btrace_resume, record_btrace_wait): Extend.
14524 (record_btrace_can_execute_reverse): New.
14525 (record_btrace_open): Fail in non-stop mode.
14526 (record_btrace_set_replay): Split into this, ...
14527 (record_btrace_stop_replaying): ... this, ...
14528 (record_btrace_clear_histories): ... and this.
14529 (init_record_btrace_ops): Init to_can_execute_reverse.
14530 * NEWS: Announce it.
14531
14532 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14533
14534 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14535 (forward_target_decr_pc_after_break)
14536 (target_decr_pc_after_break): New.
14537 * target.c (forward_target_decr_pc_after_break)
14538 (target_decr_pc_after_break): New.
14539 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14540 instead of gdbarch_decr_pc_after_break.
14541 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14542 instead of gdbarch_decr_pc_after_break.
14543 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14544 instead of gdbarch_decr_pc_after_break.
14545 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14546 instead of gdbarch_decr_pc_after_break.
14547 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14548 instead of gdbarch_decr_pc_after_break.
14549 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14550 instead of gdbarch_decr_pc_after_break.
14551
14552 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14553
14554 * btrace.c: Include regcache.h.
14555 (btrace_add_pc): New.
14556 (btrace_enable): Call btrace_add_pc.
14557 (btrace_is_empty): New.
14558 * btrace.h (btrace_is_empty): New.
14559 * record-btrace.c (require_btrace, record_btrace_info): Call
14560 btrace_is_empty.
14561
14562 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14563
14564 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14565 Support delta reads.
14566 (linux_disable_btrace): Change return type.
14567 * common/linux-btrace.h (linux_read_btrace): Change parameters
14568 and return type to allow error reporting. Update users.
14569 (linux_disable_btrace): Change return type. Update users.
14570 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14571 New.
14572 (btrace_error): New.
14573 (btrace_block) <begin>: Comment on BEGIN == 0.
14574 * btrace.c (btrace_compute_ftrace): Start from the end of
14575 the current trace.
14576 (btrace_stitch_trace, btrace_clear_history): New.
14577 (btrace_fetch): Read delta trace, return if replaying.
14578 (btrace_clear): Move clear history code to btrace_clear_history.
14579 (parse_xml_btrace): Throw an error if parsing failed.
14580 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14581 and return type to allow error reporting.
14582 (target_read_btrace): Change parameters and return type to allow
14583 error reporting.
14584 * target.c (target_read_btrace): Update.
14585 * remote.c (remote_read_btrace): Support delta reads. Pass
14586 errors on.
14587 * NEWS: Announce it.
14588
14589 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14590
14591 * record.h (record_btrace_frame_unwind)
14592 (record_btrace_tailcall_frame_unwind): New declarations.
14593 * dwarf2-frame: Include record.h
14594 (dwarf2_frame_cfa): Throw an error for btrace frames.
14595 * record-btrace.c: Include hashtab.h.
14596 (btrace_get_bfun_name): New.
14597 (btrace_call_history): Call btrace_get_bfun_name.
14598 (struct btrace_frame_cache): New.
14599 (bfcache): New.
14600 (bfcache_hash, bfcache_eq, bfcache_new): New.
14601 (btrace_get_frame_function): New.
14602 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14603 (record_btrace_frame_this_id): Compute own id.
14604 (record_btrace_frame_prev_register): Provide PC, throw_error
14605 for all other registers.
14606 (record_btrace_frame_sniffer): Detect btrace frames.
14607 (record_btrace_tailcall_frame_sniffer): New.
14608 (record_btrace_frame_dealloc_cache): New.
14609 (record_btrace_frame_unwind): Add new functions.
14610 (record_btrace_tailcall_frame_unwind): New.
14611 (_initialize_record_btrace): Allocate cache.
14612 * btrace.c (btrace_clear): Call reinit_frame_cache.
14613 * NEWS: Announce it.
14614
14615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14616
14617 * record-btrace.c (record_btrace_set_replay)
14618 (record_btrace_goto_begin, record_btrace_goto_end)
14619 (record_btrace_goto): New.
14620 (init_record_btrace_ops): Initialize them.
14621 * NEWS: Announce it.
14622
14623 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14624
14625 * record-btrace.c (record_btrace_find_new_threads)
14626 (record_btrace_thread_alive): New.
14627 (init_record_btrace_ops): Initialize to_find_new_threads and
14628 to_thread_alive.
14629
14630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14631
14632 * record-btrace.c (record_btrace_resume): New.
14633 (record_btrace_wait): New.
14634 (init_record_btrace_ops): Initialize to_wait and to_resume.
14635
14636 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14637
14638 * record-btrace.c (record_btrace_xfer_partial)
14639 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14640 (record_btrace_allow_memory_access): New.
14641 (init_record_btrace_ops): Initialize new methods.
14642 * target.c (raw_memory_xfer_partial): Bail out if target reports
14643 that this memory is not available.
14644
14645 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14646
14647 * target.h (target_ops) <to_insert_breakpoint>
14648 <to_remove_breakpoint>: Add target_ops parameter.
14649 (forward_target_insert_breakpoint): New.
14650 (forward_target_remove_breakpoint): New.
14651 (memory_remove_breakpoint, memory_insert_breakpoint):
14652 Add target_ops parameter.
14653 * target.c (target_insert_breakpoint): Split into this and ...
14654 (forward_target_insert_breakpoint): ... this.
14655 (target_remove_breakpoint): Split into this and ...
14656 (forward_target_remove_breakpoint): ... this.
14657 (debug_to_insert_breakpoint): Add target_ops parameter.
14658 Call forward_target_insert_breakpoint.
14659 (debug_to_remove_breakpoint): Add target_ops parameter.
14660 Call forward_target_remove_breakpoint.
14661 (update_current_target): Do not inherit or default to_insert_breakpoint
14662 and to_remove_breakpoint.
14663 * corelow.c (ignore): Add target_ops parameter.
14664 * exec.c (ignore): Add target_ops parameter.
14665 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14666 Add target_ops parameter.
14667 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14668 Add target_ops parameter.
14669 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14670 Add target_ops parameter.
14671 * record-full.c (record_full_beneath_to_insert_breakpoint)
14672 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14673 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14674 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14675 (record_full_core_remove_breakpoint): Add target_ops parameter.
14676 Update users.
14677 (record_full_beneath_to_insert_breakpoint_ops)
14678 (record_full_beneath_to_remove_breakpoint_ops)
14679 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14680 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14681 tmp_to_remove_breakpoint_ops,
14682 record_full_beneath_to_insert_breakpoint_ops, and
14683 record_full_beneath_to_remove_breakpoint_ops.
14684 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14685 (m32r_remove_breakpoint): Add target_ops parameter.
14686 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14687 Add target_ops parameter.
14688 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14689 Add target_ops parameter.
14690
14691 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14692 Markus Metzger <markus.t.metzger@intel.com>
14693
14694 * record-btrace.c: Include frame-unwind.h.
14695 (record_btrace_frame_unwind_stop_reason)
14696 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14697 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14698 New.
14699 (init_record_btrace_ops): Install it.
14700
14701 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14702
14703 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14704 get_prev_frame_1.
14705
14706 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14707
14708 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14709 earlier.
14710
14711 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14712
14713 * frame-unwind.c: Include target.h.
14714 (frame_unwind_try_unwinder): New function with code from ...
14715 (frame_unwind_find_by_frame): ... here. New variable
14716 unwinder_from_target, call also target_get_unwinder)
14717 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14718 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14719 * target.h (struct target_ops): New fields to_get_unwinder and
14720 to_get_tailcall_unwinder.
14721 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14722
14723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14724
14725 * record-btrace.c (record_btrace_fetch_registers)
14726 (record_btrace_store_registers)
14727 (record_btrace_to_prepare_to_store): New.
14728 (init_record_btrace_ops): Add the above.
14729
14730 2014-01-16 Tom Tromey <tromey@redhat.com>
14731
14732 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14733 * target.h (struct target_ops) <to_prepare_to_store>: Add
14734 argument.
14735 (target_prepare_to_store): Add argument.
14736 * target.c (debug_to_prepare_to_store): Add argument.
14737 (update_current_target): Update.
14738 * remote.c (remote_prepare_to_store): Add 'self' argument.
14739 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14740 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14741 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14742 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14743 argument.
14744 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14745 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14746 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14747 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14748 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14749
14750 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14751
14752 * btrace.h (replay) <replay>: New.
14753 (btrace_is_replaying): New.
14754 * btrace.c (btrace_clear): Free replay iterator.
14755 (btrace_is_replaying): New.
14756 * record-btrace.c (record_btrace_is_replaying): New.
14757 (record_btrace_info): Print insn number if replaying.
14758 (record_btrace_insn_history): Start at replay position.
14759 (record_btrace_call_history): Start at replay position.
14760 (init_record_btrace_ops): Init to_record_is_replaying.
14761
14762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14763
14764 * record-btrace.c (record_btrace_insn_history_range): Include
14765 end.
14766 (record_btrace_insn_history_from): Adjust range.
14767 (record_btrace_call_history_range): Include
14768 end.
14769 (record_btrace_call_history_from): Adjust range.
14770 * NEWS: Announce changes.
14771
14772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14773
14774 * record.h (enum record_print_flag)
14775 <record_print_indent_calls>: New.
14776 * record.c (get_call_history_modifiers): Recognize /c modifier.
14777 (_initialize_record): Document /c modifier.
14778 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14779 Reorder fields. Optionally indent the function name. Update
14780 all users.
14781 * NEWS: Announce changes.
14782
14783 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14784
14785 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14786
14787 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14788
14789 * btrace.c (ftrace_new_function): Start counting at one.
14790 * record-btrace.c (record_btrace_info): Adjust number of calls
14791 and insns.
14792 * NEWS: Announce it.
14793
14794 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14795
14796 * record-btrace.c (btrace_call_history_insn_range): Print
14797 insn range as [begin, end].
14798
14799 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14800
14801 * btrace.h (struct btrace_func_link): New.
14802 (enum btrace_function_flag): New.
14803 (struct btrace_inst): Rename to ...
14804 (struct btrace_insn): ...this. Update all users.
14805 (struct btrace_func) <ibegin, iend>: Remove.
14806 (struct btrace_func_link): New.
14807 (struct btrace_func): Rename to ...
14808 (struct btrace_function): ...this. Update all users.
14809 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14810 (number, level, flags>: New.
14811 (struct btrace_insn_iterator): Rename to ...
14812 (struct btrace_insn_history): ...this.
14813 Update all users.
14814 (struct btrace_insn_iterator, btrace_call_iterator): New.
14815 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14816 (struct btrace_target_info) <begin, end, level>
14817 <insn_history, call_history>: New.
14818 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14819 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14820 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14821 (btrace_call_number, btrace_call_begin, btrace_call_end)
14822 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14823 (btrace_find_function_by_number, btrace_set_insn_history)
14824 (btrace_set_call_history): New.
14825 * btrace.c (btrace_init_insn_iterator)
14826 (btrace_init_func_iterator, compute_itrace): Remove.
14827 (ftrace_print_function_name, ftrace_print_filename)
14828 (ftrace_skip_file): Change
14829 parameter to const.
14830 (ftrace_init_func): Remove.
14831 (ftrace_debug): Use new btrace_function fields.
14832 (ftrace_function_switched): Also consider gaining and
14833 losing symbol information).
14834 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14835 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14836 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14837 New.
14838 (ftrace_new_function): Move. Remove debug print.
14839 (ftrace_update_lines, ftrace_update_insns): New.
14840 (ftrace_update_function): Check for call, ret, and jump.
14841 (compute_ftrace): Renamed to ...
14842 (btrace_compute_ftrace): ...this. Rewritten to compute call
14843 stack.
14844 (btrace_fetch, btrace_clear): Updated.
14845 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14846 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14847 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14848 (btrace_call_number, btrace_call_begin, btrace_call_end)
14849 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14850 (btrace_find_function_by_number, btrace_set_insn_history)
14851 (btrace_set_call_history): New.
14852 * record-btrace.c (require_btrace): Use new btrace thread
14853 info fields.
14854 (record_btrace_info, btrace_insn_history)
14855 (record_btrace_insn_history, record_btrace_insn_history_range):
14856 Use new btrace thread info fields and new iterator.
14857 (btrace_func_history_src_line): Rename to ...
14858 (btrace_call_history_src_line): ...this. Use new btrace
14859 thread info fields.
14860 (btrace_func_history): Rename to ...
14861 (btrace_call_history): ...this. Use new btrace thread info
14862 fields and new iterator.
14863 (record_btrace_call_history, record_btrace_call_history_range):
14864 Use new btrace thread info fields and new iterator.
14865
14866 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14867
14868 * frame.h (frame_id_build_unavailable_stack_special): New.
14869 * frame.c (frame_id_build_unavailable_stack_special): New.
14870
14871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14872
14873 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14874 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14875 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14876 to gdbarch.
14877 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14878 (i386_insn_is_jump, i386_jmp_p): New.
14879 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14880 insn_is_jump to gdbarch.
14881 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14882 * gdbarch.h: Regenerated.
14883 * gdbarch.c: Regenerated.
14884 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14885 (default_insn_is_jump): New.
14886 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14887 (default_insn_is_jump): New.
14888
14889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14890
14891 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14892 Change to ...
14893 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14894 (btrace_read_type) <btrace_read_new>: Change to ...
14895 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14896
14897 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14898
14899 * common/linux-btrace.c (linux_read_btrace): Free trace from
14900 previous iteration.
14901
14902 2014-01-15 Doug Evans <dje@google.com>
14903
14904 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14905 uint32_t.
14906
14907 2014-01-15 Tom Tromey <tromey@redhat.com>
14908
14909 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14910 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14911 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14912 (set_objfile_main_name): New function.
14913 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14914 language_of_main>: New fields.
14915 (set_objfile_main_name): Declare.
14916 * symtab.c (find_main_name): Loop over objfiles to find the main
14917 name and language.
14918 (set_main_name): Now static.
14919 (get_main_info): Add comment.
14920 * symtab.h (set_main_name): Don't declare.
14921
14922 2014-01-15 Tom Tromey <tromey@redhat.com>
14923
14924 * symtab.c (main_progspace_key): New global.
14925 (struct main_info): New.
14926 (name_of_main, language_of_main): Remove.
14927 (get_main_info, main_info_cleanup): New function.
14928 (set_main_name, main_name, main_language): Use get_main_info.
14929 (_initialize_symtab): Initialize main_progspace_key.
14930
14931 2014-01-15 Tom Tromey <tromey@redhat.com>
14932
14933 * dbxread.c (process_one_symbol): Update.
14934 * dwarf2read.c (read_partial_die): Update.
14935 * symfile.c (set_initial_language): Call main_language.
14936 * symtab.c (language_of_main): Now static.
14937 (set_main_name): Add 'lang' parameter.
14938 (find_main_name): Update.
14939 (main_language): New function.
14940 (symtab_observer_executable_changed): Update.
14941 * symtab.h (set_main_name): Update.
14942 (language_of_main): Remove.
14943 (main_language): Declare.
14944
14945 2014-01-15 Tom Tromey <tromey@redhat.com>
14946
14947 * symfile.c (init_entry_point_info): Use new "initialized" field.
14948 Update.
14949 * objfiles.h (struct entry_point) <initialized>: New field.
14950 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14951 (struct objfile) <ei>: ...here. Remove.
14952 * objfiles.c (entry_point_address_query): Update.
14953
14954 2014-01-15 Tom Tromey <tromey@redhat.com>
14955
14956 * objfiles.c (entry_point_address_query): Relocate entry point
14957 address.
14958 (objfile_relocate1): Do not relocate entry point address.
14959 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14960 <the_bfd_section_index>: New field.
14961 * symfile.c (init_entry_point_info): Find the entry point's
14962 section.
14963
14964 2014-01-15 Tom Tromey <tromey@redhat.com>
14965
14966 * solib-frv.c (enable_break): Use entry_point_address_query.
14967
14968 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14969
14970 * NEWS: Add note on improved process record-replay on
14971 arm*-linux* targets.
14972
14973 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14974
14975 * arm-tdep.c (enum arm_record_result): New enum.
14976 (arm_record_unsupported_insn): New function.
14977 (arm_record_coproc_data_proc): Removed.
14978 (thumb2_record_ld_st_multiple): New function.
14979 (thumb2_record_ld_st_dual_ex_tbb): New function.
14980 (thumb2_record_data_proc_sreg_mimm): New function.
14981 (thumb2_record_ps_dest_generic): New function.
14982 (thumb2_record_branch_misc_cntrl): New function.
14983 (thumb2_record_str_single_data): New function.
14984 (thumb2_record_ld_mem_hints): New function.
14985 (thumb2_record_ld_word): New function.
14986 (thumb2_record_lmul_lmla_div): New function.
14987 (thumb2_record_decode_insn_handler): New function.
14988 (decode_insn): Add thumb32 instruction handlers.
14989
14990 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14991
14992 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14993 (struct arm_linux_record_tdep): Declare.
14994 (arm_canonicalize_syscall): New function.
14995 (arm_all_but_pc_registers_record): New function.
14996 (arm_linux_syscall_record): New function.
14997 (arm_linux_init_abi): Add syscall recording constructs.
14998 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14999 decoding. (arm_record_coproc_data_proc): Update arm syscall
15000 decoding.
15001 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15002 <arm_syscall_record>: New field.
15003 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15004 gdb_target_obs.
15005
15006 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15007
15008 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15009 register for push instruction recording.
15010
15011 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15012
15013 * arm-tdep.c (thumb_record_misc): Update to correct logical
15014 error while recording ldm, ldmia and pop instructions.
15015
15016 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15017
15018 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15019
15020 2014-01-15 Pedro Alves <palves@redhat.com>
15021
15022 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15023 (go32_resume, go32_fetch_registers, store_register)
15024 (go32_store_registers, go32_prepare_to_store)
15025 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15026 (go32_create_inferior, go32_can_run, go32_terminal_init)
15027 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15028 declarations.
15029
15030 2014-01-15 Tom Tromey <tromey@redhat.com>
15031
15032 * target.h (async_callback_ftype): New typedef.
15033 (struct target_ops) <to_async>: Use it.
15034
15035 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15036
15037 * python/py-value.c (get_field_type): Remove unnecessary curly
15038 braces for single-statement if block.
15039
15040 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15041
15042 * python/py-type.c (convert_field): Add missing empty line
15043 after declarations.
15044
15045 2014-01-14 Doug Evans <dje@google.com>
15046
15047 * symfile.h (expand_symtabs_matching): Renamed from
15048 expand_partial_symbol_names. Update prototype.
15049 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15050 * symfile.c (expand_symtabs_matching): Renamed from
15051 expand_partial_symbol_names. New args file_matcher, kind.
15052 Rename arg fun to symbol_matcher.
15053 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15054 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15055 ada_expand_partial_symbol_name.
15056 (ada_make_symbol_completion_list): Update to call
15057 expand_symtabs_matching.
15058 (ada_add_global_exceptions): Call expand_symtabs_matching.
15059 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15060 call map_symbol_filenames.
15061 * symtab.c (sources_info): Update to call map_symbol_filenames.
15062 (search_symbols): Call expand_symtabs_matching.
15063 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15064 (default_make_symbol_completion_list_break_on): Update to call
15065 expand_symtabs_matching.
15066 (make_source_files_completion_list): Update to call
15067 map_symbol_filenames.
15068
15069 2014-01-14 Doug Evans <dje@google.com>
15070
15071 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15072 (expand_symtabs_symbol_matcher_ftype): New typedef.
15073 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15074 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15075 * symfile.c (expand_partial_symbol_names): Update to use
15076 expand_symtabs_symbol_matcher_ftype.
15077 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15078 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15079 Arg name_matcher renamed to symbol_matcher.
15080 * psymtab.c (recursively_search_psymtabs): Update to use
15081 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15082 sym_matcher.
15083 (expand_symtabs_matching_via_partial): Update to use
15084 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15085 Arg name_matcher renamed to symbol_matcher.
15086
15087 2014-01-14 Doug Evans <dje@google.com>
15088
15089 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15090 (map_partial_symbol_filenames): Ditto.
15091 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15092 (map_partial_symbol_filenames): Ditto.
15093 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15094 (map_partial_symbol_filenames): Ditto.
15095 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15096 (map_partial_symbol_filenames): Ditto.
15097 * symtab.c: Delete #include "psymtab.h".
15098
15099 2014-01-14 Pedro Alves <palves@redhat.com>
15100 Tom Tromey <tromey@redhat.com>
15101
15102 * infrun.c (use_displaced_stepping): Use find_record_target
15103 instead of RECORD_IS_USED.
15104 (adjust_pc_after_break): Use record_full_is_used instead of
15105 RECORD_IS_USED.
15106 * record-btrace.c (record_btrace_open): Call record_preopen
15107 instead of checking RECORD_IS_USED.
15108 * record-full.c (record_full_shortname)
15109 (record_full_core_shortname): New globals.
15110 (record_full_is_used): New function.
15111 (find_full_open): Call record_preopen instead of checking
15112 RECORD_IS_USED.
15113 (init_record_full_ops): Set the target's shortname to
15114 record_full_shortname.
15115 (init_record_full_core_ops): Set the target's shortname to
15116 record_full_core_shortname.
15117 * record-full.h (record_full_is_used): Declare.
15118 * record.c (find_record_target): Make extern.
15119 (record_preopen): New function.
15120 * record.h (RECORD_IS_USED): Delete macro.
15121 (find_record_target, record_preopen): Declare functions.
15122
15123 2014-01-14 Yao Qi <yao@codesourcery.com>
15124
15125 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15126 'len''s type to ULONGEST.
15127 (core_xfer_shared_libraries_aix): Likewise.
15128 * gdbarch.c, gdbarch.h: Regenerated.
15129 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15130 Change type of 'len' to ULONGEST.
15131 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15132 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15133
15134 2014-01-14 Yao Qi <yao@codesourcery.com>
15135
15136 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15137 type of 'len' to ULONGEST.
15138 (linux_xfer_osdata_processgroups): Likewise.
15139 (linux_xfer_osdata_threads): Likewise.
15140 (linux_xfer_osdata_fds): Likewise.
15141 (linux_xfer_osdata_isockets): Likewise.
15142 (linux_xfer_osdata_shm): Likewise.
15143 (linux_xfer_osdata_sem): Likewise.
15144 (linux_xfer_osdata_msg): Likewise.
15145 (linux_common_xfer_osdata): Likewise.
15146 (struct osdata_type) <getter>: Likewise.
15147 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15148 the declaration.
15149
15150 2014-01-14 Yao Qi <yao@codesourcery.com>
15151
15152 * target.h (target_xfer_partial_ftype): Update.
15153 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15154 ULONGEST.
15155 * aix-thread.c (aix_thread_xfer_partial): Change type of
15156 argument 'len' to ULONGEST.
15157 * auxv.c (procfs_xfer_auxv): Likewise.
15158 (ld_so_xfer_auxv): Likewise.
15159 (memory_xfer_auxv): Likewise.
15160 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15161 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15162 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15163 * corelow.c (core_xfer_partial): Likewise.
15164 * ctf.c (ctf_xfer_partial): Likewise.
15165 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15166 '%u'.
15167 (darwin_read_dyld_info): Likewise.
15168 (darwin_xfer_partial): Likewise.
15169 * exec.c (section_table_xfer_memory_partial): Likewise.
15170 (exec_xfer_partial): Likewise.
15171 * exec.h (section_table_xfer_memory_partial): Update
15172 declaration.
15173 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15174 instead of plongest.
15175 (gnu_xfer_partial): Likewise.
15176 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15177 (ia64_hpux_xfer_solib_got): Likewise.
15178 (ia64_hpux_xfer_partial): Likewise.
15179 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15180 * inf-ptrace.c (inf_ptrace_xfer_partial):
15181 * inf-ttrace.c (inf_ttrace_xfer_partial):
15182 * linux-nat.c (linux_xfer_siginfo): Likewise.
15183 (linux_nat_xfer_partial): Likewise.
15184 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15185 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15186 * monitor.c (monitor_xfer_memory): Likewise.
15187 (monitor_xfer_partial): Likewise.
15188 * procfs.c (procfs_xfer_partial): Likewise.
15189 * record-full.c (record_full_xfer_partial): Likewise.
15190 (record_full_core_xfer_partial): Likewise.
15191 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15192 instead of plongest.
15193 (gdbsim_xfer_partial): Likewise.
15194 * remote.c (remote_xfer_partial): Likewise.
15195 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15196 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15197 declaration.
15198 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15199 (rs6000_xfer_shared_libraries): Likewise.
15200 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15201 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15202 (sparc_xfer_partial): Likewise.
15203 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15204 (spu_xfer_partial): Likewise.
15205 * spu-multiarch.c (spu_xfer_partial): Likewise.
15206 * target.c (target_read_live_memory): Likewise.
15207 (memory_xfer_live_readonly_partial): Likewise.
15208 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15209 (target_xfer_partial, default_xfer_partial): Likewise.
15210 (current_xfer_partial): Likewise.
15211 * tracepoint.c (tfile_xfer_partial): Likewise.
15212 * windows-nat.c (windows_xfer_memory): Likewise. Call
15213 pulongest instead of plongest.
15214 (windows_xfer_partial): Likewise.
15215 (windows_xfer_shared_libraries): Likewise.
15216
15217 2014-01-14 Yao Qi <yao@codesourcery.com>
15218
15219 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15220 target_xfer_partial_ftype.
15221
15222 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15223
15224 PR python/15464
15225 PR python/16113
15226 * valops.c (value_struct_elt_bitpos): New function
15227 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15228 object to 'None' if the field name is an empty string ("").
15229 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15230 attribute to look for a field when 'name' is 'None'.
15231 (get_field_type): New function
15232
15233 2014-01-13 Doug Evans <dje@google.com>
15234
15235 PR symtab/16426
15236 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15237 (try_open_dwop_file): Ditto.
15238 * gdb_bfd.c: #include "vec.h".
15239 (bfdp): New typedef.
15240 (struct gdb_bfd_data): New member included_bfds.
15241 (gdb_bfd_unref): Unref all included bfds.
15242 (gdb_bfd_record_inclusion): New function.
15243 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15244
15245 2014-01-13 Tom Tromey <tromey@redhat.com>
15246
15247 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15248
15249 2014-01-13 Tom Tromey <tromey@redhat.com>
15250
15251 * defs.h (use_windows): Remove.
15252 * gdb.c (main): Update.
15253 * main.c (captured_main, gdb_main): Update.
15254 * main.h (struct captured_main_args) <use_windows>: Remove.
15255 * top.c (use_windows): Remove.
15256
15257 2014-01-13 Tom Tromey <tromey@redhat.com>
15258
15259 * defs.h (deprecated_flush_hook): Remove.
15260
15261 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15262
15263 PR threads/16216
15264 * linux-thread-db.c (try_thread_db_load): Add parameter
15265 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15266 (try_thread_db_load_from_pdir_1): Move it there from here.
15267 (try_thread_db_load_from_sdir): Update caller.
15268 (try_thread_db_load_from_dir): Move it there from here.
15269
15270 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15271
15272 * regformats/regdat.sh: Always rewrite the register file.
15273
15274 2014-01-13 Pedro Alves <palves@redhat.com>
15275
15276 * Makefile.in (CHECK_HEADERS): New variable.
15277 (check-headers:): New rule.
15278
15279 2014-01-13 Tom Tromey <tromey@redhat.com>
15280
15281 * cli/cli-setshow.c (do_set_command): Update.
15282 * defs.h (deprecated_set_hook): Remove.
15283 * top.c (deprecated_set_hook): Remove.
15284
15285 2014-01-13 Pedro Alves <palves@redhat.com>
15286
15287 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15288 the tracepoint if the PC is a pseudo-register.
15289
15290 2014-01-13 Tom Tromey <tromey@redhat.com>
15291
15292 * defs.h (XCALLOC): Remove.
15293 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15294 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15295 * dwarf2loc.c (allocate_piece_closure): Likewise.
15296 * elfread.c (elf_symfile_segments): Likewise.
15297 (elf_symfile_segments): Likewise.
15298 * gdbtypes.c (copy_type_recursive): Likewise.
15299 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15300 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15301 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15302 XCALLOC.
15303 * mt-tdep.c (mt_gdbarch_init): Likewise.
15304 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15305 XCALLOC.
15306 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15307 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15308 * registry.c (registry_alloc_data): Likewise.
15309 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15310 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15311 * serial.c (serial_fdopen_ops): Likewise.
15312 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15313 XCALLOC.
15314 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15315 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15316 not XCALLOC.
15317
15318 2014-01-13 Tom Tromey <tromey@redhat.com>
15319
15320 * defs.h (XMALLOC): Remove.
15321 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15322 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15323 * cli-out.c (struct ui_out *): Likewise.
15324 * cli/cli-dump.c (add_dump_command): Likewise.
15325 (add_dump_command): Likewise.
15326 * complaints.c (get_complaints): Likewise.
15327 (find_complaint): Likewise.
15328 * dwarf2-frame.c (execute_cfa_program): Likewise.
15329 * dwarf2read.c (abbrev_table_read_table): Likewise.
15330 * gdbarch.sh: Likewise.
15331 * gdbarch.c: Rebuild.
15332 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15333 * interps.c (interp_new): Likewise.
15334 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15335 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15336 * mi/mi-console.c (mi_console_file_new): Likewise.
15337 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15338 * mi/mi-out.c (mi_out_new): Likewise.
15339 * mi/mi-parse.c (mi_parse): Likewise.
15340 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15341 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15342 * observer.c (xalloc_observer_list_node): Likewise.
15343 * regcache.c (regcache_xmalloc_1): Likewise.
15344 * reggroups.c (reggroup_new): Likewise.
15345 (_initialize_reggroup): Likewise.
15346 * registry.c (register_data_with_cleanup): Likewise.
15347 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15348 * ser-base.c (serial_ttystate): Likewise.
15349 * ser-mingw.c (make_pipe_state): Likewise.
15350 * ser-pipe.c (pipe_open): Likewise.
15351 * serial.c (serial_open): Likewise.
15352 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15353 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15354 (tui_alloc_win_info): Likewise.
15355 (tui_add_content_elements): Likewise.
15356 * tui/tui-file.c (tui_file_new): Likewise.
15357 * tui/tui-out.c (tui_out_new): Likewise.
15358 * ui-file.c (mem_file_new): Likewise.
15359 * ui-out.c (push_level): Likewise.
15360 (make_cleanup_ui_out_end): Likewise.
15361 (append_header_to_list): Likewise.
15362 (ui_out_new): Likewise.
15363 * user-regs.c (user_reg_add_builtin): Likewise.
15364
15365 2014-01-13 Tom Tromey <tromey@redhat.com>
15366
15367 * defs.h (XZALLOC): Remove.
15368 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15369 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15370 (get_ada_tasks_inferior_data): Likewise.
15371 * auto-load.c (get_auto_load_pspace_data): Likewise.
15372 * auxv.c (get_auxv_inferior_data): Likewise.
15373 * bfd-target.c (target_bfd_reopen): Likewise.
15374 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15375 (deprecated_insert_raw_breakpoint): Likewise.
15376 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15377 * corelow.c (core_open): Likewise.
15378 * darwin-nat.c (darwin_check_new_threads): Likewise.
15379 (darwin_attach_pid): Likewise.
15380 * dummy-frame.c (dummy_frame_push): Likewise.
15381 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15382 * dwarf2loc.c (allocate_piece_closure): Likewise.
15383 * elfread.c (elf_symfile_segments): Likewise.
15384 * eval.c (ptrmath_type_p): Likewise.
15385 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15386 * gdbtypes.c (alloc_type_arch): Likewise.
15387 (alloc_type_instance): Likewise.
15388 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15389 * inf-child.c (inf_child_can_use_agent): Likewise.
15390 * inflow.c (get_inflow_inferior_data): Likewise.
15391 * infrun.c (save_infcall_suspend_state): Likewise.
15392 * jit.c (jit_reader_load): Likewise.
15393 (get_jit_objfile_data): Likewise.
15394 (get_jit_program_space_data): Likewise.
15395 (jit_object_open_impl): Likewise.
15396 (jit_symtab_open_impl): Likewise.
15397 (jit_block_open_impl): Likewise.
15398 (jit_frame_sniffer): Likewise.
15399 * linux-fork.c (add_fork): Likewise.
15400 * maint.c (make_command_stats_cleanup): Likewise.
15401 * objfiles.c (get_objfile_pspace_data): Likewise.
15402 * opencl-lang.c (struct lval_closure): Likewise.
15403 * osdata.c (osdata_start_osdata): Likewise.
15404 * progspace.c (new_address_space): Likewise.
15405 (add_program_space): Likewise.
15406 * remote-sim.c (get_sim_inferior_data): Likewise.
15407 * sh-tdep.c (sh_gdbarch_init): Likewise.
15408 * skip.c (Ignore): Likewise.
15409 (skip_delete_command): Likewise.
15410 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15411 (library_list_start_library): Likewise.
15412 (solib_aix_current_sos): Likewise.
15413 * solib-darwin.c (get_darwin_info): Likewise.
15414 (darwin_current_sos): Likewise.
15415 * solib-dsbt.c (get_dsbt_info): Likewise.
15416 * solib-ia64-hpux.c (new_so_list): Likewise.
15417 (ia64_hpux_get_solib_linkage_addr): Likewise.
15418 * solib-spu.c (append_ocl_sos): Likewise.
15419 (spu_current_sos): Likewise.
15420 * solib-svr4.c (get_svr4_info): Likewise.
15421 (svr4_keep_data_in_core): Likewise.
15422 (library_list_start_library): Likewise.
15423 (svr4_default_sos): Likewise.
15424 (svr4_read_so_list): Likewise.
15425 * solib-target.c (library_list_start_library): Likewise.
15426 (solib_target_current_sos): Likewise.
15427 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15428 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15429 * symfile.c (default_symfile_segments): Likewise.
15430 * target-descriptions.c (tdesc_data_init): Likewise.
15431 (tdesc_create_reg): Likewise.
15432 (struct tdesc_type *): Likewise.
15433 (tdesc_create_vector): Likewise.
15434 (tdesc_set_struct_size): Likewise.
15435 (struct tdesc_type *): Likewise.
15436 (tdesc_free_feature): Likewise.
15437 (tdesc_create_feature): Likewise.
15438 * windows-nat.c (windows_add_thread): Likewise.
15439 (windows_make_so): Likewise.
15440 * xml-support.c (gdb_xml_body_text): Likewise.
15441 (gdb_xml_create_parser_and_cleanup): Likewise.
15442 (xml_process_xincludes): Likewise.
15443 * xml-syscall.c (allocate_syscalls_info): Likewise.
15444 (syscall_create_syscall_desc): Likewise.
15445
15446 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15447
15448 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15449 function, with code from i386_stap_parse_special_token.
15450 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15451 (i386_stap_parse_special_token): Move code to the two functions
15452 above; simplify it.
15453
15454 2014-01-09 Pedro Alves <palves@redhat.com>
15455 Hui Zhu <hui@codesourcery.com>
15456
15457 PR gdb/16101
15458 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15459 bp_err_string. Don't mark the location shlib_disabled if the
15460 error thrown wasn't a generic or memory error. Catch errors
15461 thrown while inserting breakpoints in overlayed code. Output
15462 error message of software breakpoints.
15463 * remote.c (remote_insert_breakpoint): If this breakpoint has
15464 target-side commands but this stub doesn't support Z0 packets,
15465 throw NOT_SUPPORTED_ERROR error.
15466 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15467 * target.h (target_insert_breakpoint): Extend comment.
15468 (target_insert_hw_breakpoint): Add comment.
15469
15470 2014-01-08 Pedro Alves <palves@redhat.com>
15471
15472 * remote.c (remote_add_thread): Add threads silently if starting
15473 up.
15474 (remote_notice_new_inferior): If in all-stop, and starting up,
15475 don't call notice_new_inferior.
15476 (get_current_thread): New function, factored out from ...
15477 (add_current_inferior_and_thread): ... this. Adjust.
15478 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15479 found any thread, then select the remote's current thread as GDB's
15480 current thread too.
15481
15482 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15483
15484 * NEWS: Create a new section for the next release branch.
15485 Rename the section of the current branch, now that it has
15486 been cut.
15487
15488 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15489
15490 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15491 * version.in: Bump version to 7.7.50.DATE-cvs.
15492
15493 2014-01-08 Yao Qi <yao@codesourcery.com>
15494
15495 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15496 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15497 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15498
15499 2014-01-08 Yao Qi <yao@codesourcery.com>
15500
15501 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15502 return value of bfd_get_filename to symbol_file_add_from_bfd.
15503
15504 2014-01-08 Pierre Muller <muller@sourceware.org>
15505
15506 Fix PR16201.
15507 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15508 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15509 to prim_record_mininal_symbol_and_info.
15510 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15511 in call to prim_record_minimal_symbol_and_info.
15512 (read_pe_exported_syms): Set index field of section_data.
15513
15514 2014-01-07 Andrew Pinski <apinski@cavium.com>
15515
15516 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15517 * features/aarch64.c: Regenerate.
15518
15519 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15520
15521 * target.c (return_null): Define.
15522 (update_current_target): Use it instead of return_zero for
15523 functions that return a pointer.
15524
15525 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15526
15527 * source.c (add_path): Fix check for duplicated paths in the previously
15528 included paths.
15529
15530 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15531
15532 * ada-lang.c: Remove duplicated include statements.
15533 * alphabsd-nat.c: Ditto.
15534 * amd64-darwin-tdep.c: Ditto.
15535 * amd64fbsd-nat.c: Ditto.
15536 * auto-load.c: Ditto.
15537 * ax-gdb.c: Ditto.
15538 * breakpoint.c: Ditto.
15539 * dbxread.c: Ditto.
15540 * fork-child.c: Ditto.
15541 * gdb_usleep.c: Ditto.
15542 * i386-darwin-tdep.c: Ditto.
15543 * i386fbsd-nat.c: Ditto.
15544 * infcmd.c: Ditto.
15545 * inferior.c: Ditto.
15546 * jv-lang.c: Ditto.
15547 * linux-nat.c: Ditto.
15548 * linux-tdep.c: Ditto.
15549 * m68kbsd-nat.c: Ditto.
15550 * m68klinux-nat.c: Ditto.
15551 * microblaze-tdep.c: Ditto.
15552 * mips-linux-tdep.c: Ditto.
15553 * mn10300-tdep.c: Ditto.
15554 * nto-tdep.c: Ditto.
15555 * opencl-lang.c: Ditto.
15556 * osdata.c: Ditto.
15557 * printcmd.c: Ditto.
15558 * regcache.c: Ditto.
15559 * remote-m32r-sdi.c: Ditto.
15560 * remote.c: Ditto.
15561 * symfile.c: Ditto.
15562 * symtab.c: Ditto.
15563 * tilegx-linux-nat.c: Ditto.
15564 * tilegx-tdep.c: Ditto.
15565 * tracepoint.c: Ditto.
15566 * valops.c: Ditto.
15567 * vaxbsd-nat.c: Ditto.
15568 * windows-nat.c: Ditto.
15569 * xtensa-tdep.c: Ditto.
15570
15571 2014-01-07 Yao Qi <yao@codesourcery.com>
15572
15573 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15574
15575 2014-01-07 Yao Qi <yao@codesourcery.com>
15576 Joel Brobecker <brobecker@adacore.com>
15577
15578 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15579 (pdc_write_regs): Likewise.
15580 (fetch_regs_kernel_thread): Likewise.
15581 (store_regs_kernel_thread): Likewise.
15582
15583 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15584
15585 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15586 tagged type objects to their actual type.
15587
15588 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15589
15590 * ada-valprint.c (print_field_values): Add "language" parameter.
15591 Update calls to print_field_values and print_variant_part.
15592 Pass new parameter "language" in call to val_print instead
15593 of "current_language". Replace call to ada_val_print by call
15594 to val_print.
15595 (print_variant_part): Add "language" parameter.
15596 (ada_val_print_struct_union): Update call to print_field_values.
15597
15598 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15599
15600 * ada-valprint.c (ui_memcpy): Delete.
15601 (ada_print_floating): Update documentation. Add empty line
15602 between between function documentation and implementation.
15603 Delete variable "buffer". Use ui_file_xstrdup in place of
15604 ui_file_put. Minor adjustments following this change.
15605
15606 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15607
15608 * ada-valprint.c (ada_val_print_string): New function,
15609 extracted from ada_val_print_array.
15610 (ada_val_print_array): Replace extracted code by call
15611 to ada_val_print_string followed by a return. Move
15612 "else" branch to the function's top block.
15613
15614 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15615
15616 * ada-valprint.c (ada_val_print_array): Move implementation
15617 down. Rename parameter "offset" and "val" into "offset_aligned"
15618 and "original_value" respectively. Add parameter "offset".
15619
15620 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15621
15622 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15623 re-organizing the code. Change the "???" message printed
15624 when target type is a TYPE_CODE_UNDEF into
15625 "<ref to undefined type>".
15626
15627 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15628
15629 * ada-valprint.c (print_record): Delete, implementation inlined...
15630 (ada_val_print_struct_union): ... here. Remove call to
15631 ada_check_typedef in inlined implementation.
15632
15633 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15634
15635 * ada-valprint.c (ada_val_print_gnat_array): New function,
15636 extracted from ada_val_print_1;
15637 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15638 (ada_val_print_flt, ada_val_print_struct_union)
15639 (ada_val_print_ref): Likewise.
15640 (ada_val_print_1): Delete variables i and elttype.
15641 Replace extracted-out code by call to corresponding
15642 new functions.
15643
15644 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15645
15646 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15647
15648 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15649
15650 * ada-valprint.c (ada_val_print_1): Replace calls to
15651 ada_val_print_1 by calls to val_print.
15652
15653 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15654
15655 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15656 Update calls to self accordingly. Replace calls to c_val_print
15657 by calls to val_print.
15658
15659 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15660
15661 * ada-valprint.c (print_record): Delete declaration.
15662 (adjust_type_signedness, ada_val_print_1): Likewise.
15663 (ada_val_print): Move function implementation down.
15664 (print_variant_part, print_field_values, print_record):
15665 Move function implementation up.
15666
15667 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15668
15669 * python/py-type.c (typy_get_name): New function.
15670 (type_object_getset): Add entry for attribute "name".
15671 * NEWS: Add entry mentioning this new attribute.
15672
15673 2014-01-07 Yao Qi <yao@codesourcery.com>
15674
15675 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15676 statement.
15677
15678 2014-01-07 Yao Qi <yao@codesourcery.com>
15679
15680 * gnu-nat.c (info_port_rights): Add qualifier const to
15681 argument args.
15682
15683 2014-01-07 Yao Qi <yao@codesourcery.com>
15684
15685 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15686
15687 2014-01-07 Yao Qi <yao@codesourcery.com>
15688
15689 * gnu-nat.c (make_inf) Update declaration.
15690 (make_inf): Make it static.
15691 (inf_set_traced): Likewise.
15692 (inf_port_to_thread, inf_task_died_status): Likewise.
15693
15694 2014-01-07 Yao Qi <yao@codesourcery.com>
15695
15696 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15697
15698 2014-01-07 Yao Qi <yao@codesourcery.com>
15699
15700 * gnu-nat.c (_initialize_gnu_nat): Declare.
15701
15702 2014-01-07 Yao Qi <yao@codesourcery.com>
15703
15704 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15705 'enum bfd_endian'.
15706 (struct gdbarch_info) <byte_order>: Change type to
15707 'enum bfd_endian'.
15708 <byte_order_for_code>: Likewise.
15709 * gdbarch.c, gdbarch.h: Regenerated.
15710
15711 2014-01-06 Sasha Smundak <asmundak@google.com>
15712
15713 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15714
15715 2014-01-06 Tom Tromey <tromey@redhat.com>
15716
15717 * doublest.c (convert_doublest_to_floatformat): Use const, not
15718 CONST.
15719 * somread.c (som_symtab_read): Likewise.
15720
15721 2014-01-07 Hui Zhu <hui@codesourcery.com>
15722
15723 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15724 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15725 (gdb_bfd_fopen): Ditto.
15726 (gdb_bfd_openr): Ditto.
15727 (gdb_bfd_openw): Ditto.
15728 (gdb_bfd_openr_iovec): Ditto.
15729 (gdb_bfd_fdopenr): Ditto.
15730 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15731 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15732 with xstrdup.
15733 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15734 with xstrdup.
15735 * symfile-mem.c (symbol_file_add_from_memory): Removed
15736 gdb_bfd_stash_filename.
15737
15738 2014-01-03 Doug Evans <dje@google.com>
15739
15740 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15741 output.
15742
15743 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15744
15745 Update year range in copyright notice of all files.
15746
15747 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15748
15749 * top.c (print_gdb_version): Set copyright year to 2014.
15750
15751 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15752
15753 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15754
15755 For older changes see ChangeLog-2013.
15756 \f
15757 Local Variables:
15758 mode: change-log
15759 left-margin: 8
15760 fill-column: 74
15761 version-control: never
15762 coding: utf-8
15763 End: