PR python/17364
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-15 Doug Evans <dje@google.com>
2 Walfred Tedeschi <walfred.tedeschi@intel.com>
3
4 PR python/17364
5 * python/lib/gdb/__init__.py (packages): Add "printer".
6 * python/lib/gdb/command/bound_registers.py: Moved to ...
7 * python/lib/gdb/printer/bound_registers.py: ... here.
8 Add printer to global set of builtin printers. Rename printer from
9 "bound" to "mpx_bound128".
10 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
11 registered as global "builtin" printer.
12 (add_builtin_pretty_printer): New function.
13 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
14 gdb/printer/__init__.py.
15
16 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
17
18 * Makefile.in (SFILES): Remove d-support.c.
19 (COMMON_OBS): Remove d-support.o.
20 * d-lang.h (d_parse_symbol): Remove declaration.
21 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
22 * d-support.c: Remove file.
23
24 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
25
26 * gdb/infrun.c (process_event_stop_test): Apply
27 gdbarch_addr_bits_remove to longjmp resume address.
28
29 2014-10-15 Pedro Alves <palves@redhat.com>
30
31 * regformats/microblaze.dat: Delete file.
32
33 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
34
35 * features/Makefile (microblaze-expedite): Replace pc with rpc.
36 * regformats/microblaze-with-stack-protect.dat: Regenerate.
37
38 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
39
40 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
41 as non-trivial.
42
43 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
44
45 PR c++/13403
46 PR c++/15154
47 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
48 with qualified args.
49
50 2014-10-14 Joel Brobecker <brobecker@adacore.com>
51
52 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
53 of the case where the second operand is a pointer.
54 <BINOP_SUB>: Likewise.
55
56 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
57
58 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
59 only if it is not NULL.
60 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
61 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
62 (struct probe_ops) <clear_semaphore>: Likewise.
63 * tracepoint.c (start_tracing): Call set_semaphore only if it is
64 not NULL.
65 (stop_tracing): Likewise, for clear_semaphore.
66
67 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
68
69 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
70 using language_c, instead of current_language.
71
72 2014-10-13 Doug Evans <dje@google.com>
73
74 * python/py-objfile.c (objfpy_initialize): New function.
75 (objfpy_new, objfile_to_objfile_object): Call it.
76 * python/py-progspace.c (pspy_initialize): New function.
77 (pspy_new, pspace_to_pspace_object): Call it.
78
79 2014-10-13 Miroslav Franc <mfranc@redhat.com>
80 Jan Kratochvil <jan.kratochvil@redhat.com>
81
82 Fix "save breakpoints" for "catch" command.
83 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
84 newline.
85
86 2014-10-12 Miroslav Franc <mfranc@redhat.com>
87
88 Fix "save breakpoints" for "disable $bpnum" command.
89 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
90
91 2014-10-10 Pedro Alves <palves@redhat.com>
92
93 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
94 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
95 (HFILES_NO_SRCDIR): Remove solib-irix.h.
96 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
97 and been removed.
98 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
99 * configure.ac: Remove references to IRIX.
100 * configure.host: Add *-*-irix* to the obsolete hosts section.
101 Remove all other references to irix.
102 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
103 Delete files.
104
105 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
106
107 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
108 isn't valid, release the tdesc arch data and return NULL.
109
110 2014-10-10 Pedro Alves <palves@redhat.com>
111
112 * linux-tdep.c: Include observer.h.
113 (linux_inferior_data): New global.
114 (struct linux_info): New structure.
115 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
116 (get_linux_inferior_data): New functions.
117 (linux_vsyscall_range): Rename to ...
118 (linux_vsyscall_range_raw): ... this.
119 (linux_vsyscall_range): New function; handles caching.
120 (_initialize_linux_tdep): Register linux_inferior_data. Install
121 inferior_exit and inferior_appeared observers.
122
123 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
124 Pedro Alves <palves@redhat.com>
125
126 PR symtab/14466
127 * solib-svr4.c (svr4_read_so_list): Rename to ...
128 (svr4_current_sos_1): ... this and change the function comment.
129 (svr4_current_sos): New function.
130
131 2014-10-10 Pedro Alves <palves@redhat.com>
132
133 * arch-utils.c (default_vsyscall_range): New function.
134 * arch-utils.h (default_vsyscall_range): New declaration.
135 * gdbarch.sh (vsyscall_range): New hook.
136 * gdbarch.h, gdbarch.c: Regenerate.
137 * linux-tdep.c (linux_vsyscall_range): New function.
138 (linux_init_abi): Install linux_vsyscall_range as
139 vsyscall_range gdbarch hook.
140 * memrange.c (address_in_mem_range): New function.
141 * memrange.h (address_in_mem_range): New declaration.
142 * symfile-mem.c (find_vdso_size): Delete function.
143 (add_vsyscall_page): Use gdbarch_vsyscall_range.
144
145 2014-10-10 Pedro Alves <palves@redhat.com>
146
147 * infrun.c (normal_stop): Fix typo in comment.
148
149 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
150
151 PR tdep/9390
152 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
153 typo when using logical AND to determine instruction type.
154
155 2014-10-09 Yao Qi <yao@codesourcery.com>
156
157 * infrun.c (handle_signal_stop): Remove local variable
158 'printed'.
159
160 2014-10-08 Stan Shebs <stan@codesourcery.com>
161
162 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
163
164 2014-10-08 Gary Benson <gbenson@redhat.com>
165
166 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
167
168 2014-10-08 Gary Benson <gbenson@redhat.com>
169
170 * common/common-defs.h: Include common-exceptions.h.
171 * exceptions.h: Do not include common-exceptions.h.
172
173 2014-10-08 Gary Benson <gbenson@redhat.com>
174
175 * common/common-defs.h: Include cleanups.h.
176 * common/common-exceptions.c: Do not include cleanups.h.
177 * utils.h: Likewise.
178
179 2014-10-08 Gary Benson <gbenson@redhat.com>
180
181 * ada-lang.c: Do not include exceptions.h.
182 * ada-valprint.c: Likewise.
183 * amd64-tdep.c: Likewise.
184 * auto-load.c: Likewise.
185 * block.c: Likewise.
186 * break-catch-throw.c: Likewise.
187 * breakpoint.c: Likewise.
188 * btrace.c: Likewise.
189 * c-lang.c: Likewise.
190 * cli/cli-cmds.c: Likewise.
191 * cli/cli-interp.c: Likewise.
192 * cli/cli-script.c: Likewise.
193 * completer.c: Likewise.
194 * corefile.c: Likewise.
195 * corelow.c: Likewise.
196 * cp-abi.c: Likewise.
197 * cp-support.c: Likewise.
198 * cp-valprint.c: Likewise.
199 * darwin-nat.c: Likewise.
200 * dwarf2-frame-tailcall.c: Likewise.
201 * dwarf2-frame.c: Likewise.
202 * dwarf2loc.c: Likewise.
203 * dwarf2read.c: Likewise.
204 * eval.c: Likewise.
205 * event-loop.c: Likewise.
206 * event-top.c: Likewise.
207 * f-valprint.c: Likewise.
208 * frame-unwind.c: Likewise.
209 * frame.c: Likewise.
210 * gdbtypes.c: Likewise.
211 * gnu-v2-abi.c: Likewise.
212 * gnu-v3-abi.c: Likewise.
213 * guile/scm-auto-load.c: Likewise.
214 * guile/scm-breakpoint.c: Likewise.
215 * guile/scm-cmd.c: Likewise.
216 * guile/scm-frame.c: Likewise.
217 * guile/scm-lazy-string.c: Likewise.
218 * guile/scm-param.c: Likewise.
219 * guile/scm-symbol.c: Likewise.
220 * guile/scm-type.c: Likewise.
221 * hppa-hpux-tdep.c: Likewise.
222 * i386-tdep.c: Likewise.
223 * inf-loop.c: Likewise.
224 * infcall.c: Likewise.
225 * infcmd.c: Likewise.
226 * infrun.c: Likewise.
227 * interps.c: Likewise.
228 * interps.h: Likewise.
229 * jit.c: Likewise.
230 * linespec.c: Likewise.
231 * linux-nat.c: Likewise.
232 * linux-thread-db.c: Likewise.
233 * m32r-rom.c: Likewise.
234 * main.c: Likewise.
235 * memory-map.c: Likewise.
236 * mi/mi-cmd-break.c: Likewise.
237 * mi/mi-cmd-stack.c: Likewise.
238 * mi/mi-interp.c: Likewise.
239 * mi/mi-main.c: Likewise.
240 * monitor.c: Likewise.
241 * nto-procfs.c: Likewise.
242 * objc-lang.c: Likewise.
243 * p-valprint.c: Likewise.
244 * parse.c: Likewise.
245 * ppc-linux-tdep.c: Likewise.
246 * printcmd.c: Likewise.
247 * probe.c: Likewise.
248 * python/py-auto-load.c: Likewise.
249 * python/py-breakpoint.c: Likewise.
250 * python/py-cmd.c: Likewise.
251 * python/py-finishbreakpoint.c: Likewise.
252 * python/py-frame.c: Likewise.
253 * python/py-framefilter.c: Likewise.
254 * python/py-function.c: Likewise.
255 * python/py-gdb-readline.c: Likewise.
256 * python/py-inferior.c: Likewise.
257 * python/py-infthread.c: Likewise.
258 * python/py-lazy-string.c: Likewise.
259 * python/py-linetable.c: Likewise.
260 * python/py-param.c: Likewise.
261 * python/py-prettyprint.c: Likewise.
262 * python/py-symbol.c: Likewise.
263 * python/py-type.c: Likewise.
264 * python/py-value.c: Likewise.
265 * python/python-internal.h: Likewise.
266 * python/python.c: Likewise.
267 * record-btrace.c: Likewise.
268 * record-full.c: Likewise.
269 * regcache.c: Likewise.
270 * remote-fileio.c: Likewise.
271 * remote-mips.c: Likewise.
272 * remote.c: Likewise.
273 * rs6000-aix-tdep.c: Likewise.
274 * rs6000-nat.c: Likewise.
275 * skip.c: Likewise.
276 * solib-darwin.c: Likewise.
277 * solib-dsbt.c: Likewise.
278 * solib-frv.c: Likewise.
279 * solib-ia64-hpux.c: Likewise.
280 * solib-spu.c: Likewise.
281 * solib-svr4.c: Likewise.
282 * solib.c: Likewise.
283 * spu-tdep.c: Likewise.
284 * stack.c: Likewise.
285 * stap-probe.c: Likewise.
286 * symfile-mem.c: Likewise.
287 * symmisc.c: Likewise.
288 * target.c: Likewise.
289 * thread.c: Likewise.
290 * top.c: Likewise.
291 * tracepoint.c: Likewise.
292 * tui/tui-interp.c: Likewise.
293 * typeprint.c: Likewise.
294 * utils.c: Likewise.
295 * valarith.c: Likewise.
296 * valops.c: Likewise.
297 * valprint.c: Likewise.
298 * value.c: Likewise.
299 * varobj.c: Likewise.
300 * windows-nat.c: Likewise.
301 * xml-support.c: Likewise.
302
303 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
304
305 * mips-tdep.c (add_offset_16): Rewrite to implement what the
306 name implies.
307 (extended_mips16_next_pc): Update accordingly.
308
309 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
310
311 * mips-tdep.c (mips16_instruction_is_compact_branch): New
312 function.
313 (micromips_instruction_is_compact_branch): Likewise.
314 (mips16_scan_prologue): Terminate scanning upon seeing a branch
315 or a compact jump, reaching a jump delay slot, or seeing a
316 second non-prologue instruction.
317 (micromips_scan_prologue): Also terminate scanning upon seeing a
318 compact branch or jump, or reaching a branch or jump delay slot.
319 (mips32_scan_prologue): Terminate scanning upon reaching a branch
320 or jump delay slot, or seeing a second non-prologue instruction.
321 (mips32_instruction_has_delay_slot): Retain instruction
322 examination code only, update arguments accordingly and move
323 instruction fetch pieces to...
324 (mips32_insn_at_pc_has_delay_slot): ... this new function.
325 (micromips_instruction_has_delay_slot): Likewise and to...
326 (micromips_insn_at_pc_has_delay_slot): ... this new function.
327 (mips16_instruction_has_delay_slot): Likewise and to...
328 (mips16_insn_at_pc_has_delay_slot): ... this new function.
329 (mips_single_step_through_delay): Update accordingly.
330 (mips_adjust_breakpoint_address): Likewise.
331
332 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
333
334 * mips-tdep.c (micromips_instruction_has_delay_slot): When
335 !mustbe32 also return 1 for 32-bit instructions.
336 (mips16_instruction_has_delay_slot): Likewise. Add an
337 explanatory comment.
338
339 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
340
341 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
342 symbols special.
343
344 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
345
346 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
347 update comments.
348 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
349 for the breakpoint's address. Don't preinitialize `placed_size'.
350 (insert_bp_location): Set `reqstd_address' rather than
351 `placed_address'.
352 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
353 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
354 address.
355 (bkpt_remove_location): Likewise.
356 (deprecated_insert_raw_breakpoint): Likewise.
357 (deprecated_remove_raw_breakpoint): Likewise.
358 (find_single_step_breakpoint): Likewise.
359 * mem-break.c (default_memory_insert_breakpoint): Use
360 `reqstd_address' for the breakpoint's address. Don't set
361 `placed_address' or `placed_size' if breakpoint contents couldn't
362 have been determined.
363 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
364 the breakpoint's address.
365 (remote_insert_hw_breakpoint): Likewise. Don't set
366 `placed_address' or `placed_size' if breakpoint couldn't have been
367 set.
368 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
369 `reqstd_address' for the breakpoint's address.
370 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
371 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
372 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
373 * microblaze-linux-tdep.c
374 (microblaze_linux_memory_remove_breakpoint): Likewise.
375 * monitor.c (monitor_insert_breakpoint): Likewise.
376 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
377 (procfs_insert_hw_breakpoint): Likewise.
378 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
379 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
380 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
381 * remote-mips.c (mips_insert_breakpoint): Likewise.
382 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
383
384 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
385
386 * valops.c (value_assign): Check for bit field assignments
387 before calling architecture-specific register value
388 conversion functions.
389
390 2014-10-03 Pierre Muller <muller@sourceware.org>
391
392 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
393
394 2014-10-02 Pedro Alves <palves@redhat.com>
395
396 * breakpoint.c (breakpoints_should_be_inserted_now): Use
397 threads_are_executing.
398 * breakpoint.h (breakpoints_should_be_inserted_now): Add
399 describing comment.
400 * gdbthread.h (threads_are_executing): Declare.
401 (handle_signal_stop) <random signals>: Don't print about the
402 signal here if stopping.
403 (end_stepping_range): Don't notify observers here.
404 (normal_stop): Update the thread list. If stopped by a random
405 signal or a stepping range ended, notify observers.
406 * thread.c (threads_executing): New global.
407 (init_thread_list): Clear 'threads_executing'.
408 (set_executing): Set or clear 'threads_executing'.
409 (threads_are_executing): New function.
410 (update_threads_executing): New function.
411 (update_thread_list): Use it.
412
413 2014-10-02 Pedro Alves <palves@redhat.com>
414
415 PR breakpoints/17431
416 * breakpoint.c (update_breakpoints_after_exec): Don't create
417 overlay, longjmp, std terminate nor exception breakpoints here.
418
419 2014-10-02 Pedro Alves <palves@redhat.com>
420
421 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
422 Adjust comments.
423 * inferior.c (find_inferior_for_program_space): Give preference to
424 the current inferior.
425 * inferior.h (find_inferior_for_program_space): Update comment.
426 * progspace.c (switch_to_program_space_and_thread): Prefer the
427 current inferior if it's bound to the program space requested. If
428 the inferior found doesn't have a PID yet, don't bother looking up
429 a thread.
430 * progspace.h (switch_to_program_space_and_thread): Adjust
431 comment.
432 * thread.c (any_thread_of_process, any_live_thread_of_process):
433 Give preference to the current thread.
434
435 2014-10-01 Pedro Alves <palves@redhat.com>
436
437 * breakpoint.c (insert_bp_location): Error out if inserting a
438 software breakpoint at a read-only address.
439 * target.c (memory_xfer_check_region): New function, factored out
440 from ...
441 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
442 ULONGEST.
443 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
444 against the memory region attributes.
445
446 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
447
448 * NEWS: Announce new exit-code field in -list-thread-groups
449 output.
450 * inferior.c (exit_inferior_1): Don't clear exit code.
451 (inferior_appeared): Clear exit code.
452 * mi/mi-main.c (print_one_inferior): Add printing of the exit
453 code.
454
455 2014-10-01 Pedro Alves <palves@redhat.com>
456
457 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
458 GENERATED" along with emacs/vi read-only markers.
459 * regformats/aarch64.dat: Regenerate.
460 * regformats/arm-with-iwmmxt.dat: Regenerate.
461 * regformats/arm-with-neon.dat: Regenerate.
462 * regformats/arm-with-vfpv2.dat: Regenerate.
463 * regformats/arm-with-vfpv3.dat: Regenerate.
464 * regformats/i386/amd64-avx-linux.dat: Regenerate.
465 * regformats/i386/amd64-avx.dat: Regenerate.
466 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
467 * regformats/i386/amd64-avx512.dat: Regenerate.
468 * regformats/i386/amd64-linux.dat: Regenerate.
469 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
470 * regformats/i386/amd64-mpx.dat: Regenerate.
471 * regformats/i386/amd64.dat: Regenerate.
472 * regformats/i386/i386-avx-linux.dat: Regenerate.
473 * regformats/i386/i386-avx.dat: Regenerate.
474 * regformats/i386/i386-avx512-linux.dat: Regenerate.
475 * regformats/i386/i386-avx512.dat: Regenerate.
476 * regformats/i386/i386-linux.dat: Regenerate.
477 * regformats/i386/i386-mmx-linux.dat: Regenerate.
478 * regformats/i386/i386-mmx.dat: Regenerate.
479 * regformats/i386/i386-mpx-linux.dat: Regenerate.
480 * regformats/i386/i386-mpx.dat: Regenerate.
481 * regformats/i386/i386.dat: Regenerate.
482 * regformats/i386/x32-avx-linux.dat: Regenerate.
483 * regformats/i386/x32-avx.dat: Regenerate.
484 * regformats/i386/x32-avx512-linux.dat: Regenerate.
485 * regformats/i386/x32-avx512.dat: Regenerate.
486 * regformats/i386/x32-linux.dat: Regenerate.
487 * regformats/i386/x32.dat: Regenerate.
488 * regformats/microblaze-with-stack-protect.dat: Regenerate.
489 * regformats/mips-dsp-linux.dat: Regenerate.
490 * regformats/mips-linux.dat: Regenerate.
491 * regformats/mips64-dsp-linux.dat: Regenerate.
492 * regformats/mips64-linux.dat: Regenerate.
493 * regformats/nios2-linux.dat: Regenerate.
494 * regformats/rs6000/powerpc-32.dat: Regenerate.
495 * regformats/rs6000/powerpc-32l.dat: Regenerate.
496 * regformats/rs6000/powerpc-64l.dat: Regenerate.
497 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
498 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
499 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
500 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
501 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
502 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
503 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
504 * regformats/s390-linux32.dat: Regenerate.
505 * regformats/s390-linux32v1.dat: Regenerate.
506 * regformats/s390-linux32v2.dat: Regenerate.
507 * regformats/s390-linux64.dat: Regenerate.
508 * regformats/s390-linux64v1.dat: Regenerate.
509 * regformats/s390-linux64v2.dat: Regenerate.
510 * regformats/s390-te-linux64.dat: Regenerate.
511 * regformats/s390x-linux64.dat: Regenerate.
512 * regformats/s390x-linux64v1.dat: Regenerate.
513 * regformats/s390x-linux64v2.dat: Regenerate.
514 * regformats/s390x-te-linux64.dat: Regenerate.
515 * regformats/tic6x-c62x-linux.dat: Regenerate.
516 * regformats/tic6x-c62x.dat: Regenerate.
517 * regformats/tic6x-c64x-linux.dat: Regenerate.
518 * regformats/tic6x-c64x.dat: Regenerate.
519 * regformats/tic6x-c64xp-linux.dat: Regenerate.
520 * regformats/tic6x-c64xp.dat: Regenerate.
521
522 2014-10-01 Pedro Alves <palves@redhat.com>
523
524 * features/Makefile: Update comments.
525 (XMLTOC): List all xml files we build C files from.
526 (clean-cfiles): New rule.
527
528 2014-10-01 Pedro Alves <palves@redhat.com>
529
530 * features/i386/amd64-avx512-linux.c: Regenerate.
531 * features/i386/amd64-avx512.c: Regenerate.
532 * features/i386/x32-avx512-linux.c: Regenerate.
533 * features/i386/x32-avx512.c: Regenerate.
534
535 2014-10-01 Pedro Alves <palves@redhat.com>
536
537 * features/Makefile (WHICH): Remove arm-with-m,
538 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
539
540 2014-10-01 Pedro Alves <palves@redhat.com>
541
542 * features/Makefile (clean): New rule.
543
544 2014-10-01 Pedro Alves <palves@redhat.com>
545
546 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
547 (zmm14h): Add missing end quotes.
548
549 2014-10-01 Pedro Alves <palves@redhat.com>
550
551 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
552 * features/aarch64.c: Regenerate.
553
554 2014-09-30 Don Breazeal <donb@codesourcery.com>
555
556 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
557 code so as to work with follow_fork_inferior.
558 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
559 (inf_ttrace_create_inferior): Remove reference to
560 inf_ttrace_vfork_ppid.
561 (inf_ttrace_attach): Ditto.
562 (inf_ttrace_detach): Ditto.
563 (inf_ttrace_kill): Use current_inferior instead of
564 inf_ttrace_vfork_ppid.
565 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
566 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
567 inferior away from the parent.
568 * infrun.c (follow_fork): Call follow_fork_inferior instead of
569 target_follow_fork.
570 (follow_fork_inferior): New function.
571 (follow_inferior_reset_breakpoints): Make function static.
572 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
573 * linux-nat.c (linux_child_follow_fork): Move target-independent
574 code to infrun.c:follow_fork_inferior.
575
576 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
577
578 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
579 * gdbarch.c: Regenerate.
580 * gdbarch.h: Likewise.
581 * corelow.c (sniff_core_bfd): Drop presence check for deleted
582 gdbarch method 'regset_from_core_section'.
583 (get_core_register_section): Remove handling for the case that
584 regset == NULL and regset_from_core_section is defined.
585 (get_core_registers): Drop check for deleted method.
586 * procfs.c (procfs_do_thread_registers): Adjust comment.
587
588 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
589
590 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
591 (linux_nat_make_corefile_notes): Remove.
592 (linux_target_install_ops): Do not set target method
593 'make_corefile_notes'.
594 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
595 Remove field.
596 (linux_corefile_thread_callback): Instead of args->collect, call
597 linux_collect_thread_registers.
598 (linux_make_corefile_notes): Remove 'collect' parameter. Return
599 NULL unless there is a regset iterator.
600 (linux_make_corefile_notes_1): Remove.
601 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
602 by linux_make_corefile_notes.
603 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
604
605 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
606
607 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
608 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
609 Remove.
610 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
611
612 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
613
614 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
615 (xtensa_iterate_over_regset_sections): New.
616 (xtensa_gdbarch_init): Adjust gdbarch initialization.
617
618 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
619
620 * vax-tdep.c (vax_regset_from_core_section): Remove.
621 (vax_iterate_over_regset_sections): New.
622 (vax_gdbarch_init): Adjust gdbarch initialization.
623
624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
625
626 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
627 (tilegx_regset_from_core_section): Remove.
628 (tilegx_iterate_over_regset_sections): New.
629 (tilegx_linux_init_abi): Adjust gdbarch initialization.
630
631 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
632
633 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
634 (sparc_iterate_over_regset_sections): New.
635 (sparc32_gdbarch_init): Adjust gdbarch initialization.
636 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
637 targets.
638 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
639 (sparc64fbsd_init_abi): Call fbsd_init_abi.
640 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
641 target method 'make_corefile_notes'.
642
643 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
644
645 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
646 'sizeof_gregset' and 'sizeof_fpregset'.
647 * sh-tdep.c (sh_regset_from_core_section): Remove.
648 (sh_iterate_over_regset_sections): New.
649 (sh_gdbarch_init): Adjust gdbarch initialization.
650 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
651 sizeof_fpregset.
652 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
653 'sizeof_gregset'.
654
655 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
656
657 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
658 (score7_linux_iterate_over_regset_sections): New.
659 (score_gdbarch_init): Adjust gdbarch initialization.
660
661 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
662
663 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
664 FreeBSD targets.
665 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
666 method 'make_corefile_notes'.
667 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
668 (ppcfbsd_regset_from_core_section): Remove.
669 (ppcfbsd_iterate_over_regset_sections): New.
670 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
671 initialization.
672 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
673 (ppcnbsd_iterate_over_regset_sections): New.
674 (ppcnbsd_init_abi): Adjust.
675 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
676 (ppcobsd_iterate_over_regset_sections): New.
677 (ppcobsd_init_abi): Adjust.
678 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
679 (rs6000_aix_iterate_over_regset_sections): New.
680 (rs6000_aix_init_osabi): Adjust.
681
682 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
683
684 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
685 (nios2_regset_from_core_section): Remove.
686 (nios2_iterate_over_regset_sections): New.
687 (nios2_linux_init_abi): Adjust gdbarch initialization.
688
689 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
690
691 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
692 (am33_iterate_over_regset_sections): New.
693 (am33_linux_init_osabi): Adjust gdbarch initialization.
694
695 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
696
697 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
698 (mips_linux_iterate_over_regset_sections): New.
699 (mips_linux_init_abi): Adjust gdbarch initialization.
700 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
701 (mips64obsd_iterate_over_regset_sections): New.
702 (mips64obsd_init_abi): Adjust.
703 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
704 (mipsnbsd_iterate_over_regset_sections): New.
705 (mipsnbsd_init_abi): Adjust.
706
707 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
708
709 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
710 (m88k_iterate_over_regset_sections): New.
711 (m88k_gdbarch_init): Adjust gdbarch initialization.
712
713 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
714
715 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
716 (ia64_linux_iterate_over_regset_sections): New.
717 (ia64_linux_init_abi): Adjust gdbarch initialization.
718
719 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
720
721 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
722 (m68kbsd_iterate_over_regset_sections): New.
723 (m68kbsd_init_abi): Adjust gdbarch initialization.
724 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
725 (m68k_linux_iterate_over_regset_sections): New.
726 (m68k_linux_init_abi): Adjust gdbarch initialization.
727
728 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
729
730 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
731 (m32r_linux_regset_from_core_section): Remove.
732 (m32r_linux_iterate_over_regset_sections): New.
733 (m32r_linux_init_abi): Adjust gdbarch initialization.
734
735 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
736
737 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
738 (amd64obsd_iterate_over_regset_sections): New.
739 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
740 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
741 Remove.
742 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
743 regset_from_core_section initialization.
744 * i386-tdep.c (i386_regset_from_core_section): Remove.
745 (i386_iterate_over_regset_sections): New.
746 (i386_gdbarch_init): Adjust gdbarch initialization.
747 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
748 (i386_iterate_over_regset_sections): New prototype.
749 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
750 Remove.
751 (i386obsd_aout_iterate_over_regset_sections): New.
752 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
753 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
754 targets.
755 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
756 (amd64fbsd_init_abi): Call fbsd_init_abi.
757 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
758 (i386fbsd4_init_abi): Call fbsd_init_abi.
759 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
760 target method 'make_corefile_notes'.
761 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
762
763 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
764
765 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
766 (hppa_hpux_iterate_over_regset_sections): New.
767 (hppa_hpux_init_abi): Adjust gdbarch initialization.
768 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
769 (hppa_linux_iterate_over_regset_sections): New.
770 (hppa_linux_init_abi): Adjust.
771 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
772 (hppanbsd_iterate_over_regset_sections): New.
773 (hppanbsd_init_abi): Adjust.
774 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
775 (hppaobsd_iterate_over_regset_sections): New.
776 (hppaobsd_init_abi): Adjust.
777
778 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
779
780 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
781 (frv_linux_iterate_over_regset_sections): New.
782 (frv_linux_init_abi): Adjust gdbarch initialization.
783
784 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
785
786 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
787 (armbsd_iterate_over_regset_sections): New prototype.
788 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
789 (armbsd_iterate_over_regset_sections): New.
790 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
791 initialization.
792
793 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
794
795 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
796 (alpha_linux_iterate_over_regset_sections): New.
797 (alpha_linux_init_abi): Adjust gdbarch initialization.
798 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
799 prototype.
800 (alphanbsd_iterate_over_regset_sections): New prototype.
801
802 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
803
804 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
805 Remove.
806 (aarch64_linux_iterate_over_regset_sections): New.
807 (aarch64_linux_init_abi): Adjust gdbarch initialization.
808
809 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
810
811 * fbsd-tdep.c: New file.
812 * fbsd-tdep.h: New file.
813 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
814 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
815 (ALLDEPFILES): Add fbsd-tdep.c.
816
817 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
818
819 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
820 parameter.
821 * gdbarch.h: Regenerate.
822 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
823 iterator.
824 (get_core_register_section): Add parameter 'regset' and use it, if
825 set. Add parameter 'min_size' and verify the bfd section size
826 against it.
827 (get_core_registers_cb): Add parameter 'regset' and pass it to
828 get_core_register section. For the "standard" register sections
829 ".reg" and ".reg2", set an appropriate default for human_name.
830 (get_core_registers): Don't abort when the gdbarch has an iterator
831 but no regset_from_core_section. Add NULL/0 for parameters
832 'regset'/'min_size' in calls to get_core_register_section.
833 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
834 'regset' and use it instead of calling the
835 regset_from_core_section gdbarch method.
836 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
837 * i386-tdep.c (i386_supply_xstateregset)
838 (i386_collect_xstateregset, i386_xstateregset): Moved to
839 i386-linux-tdep.c.
840 (i386_regset_from_core_section): Drop handling for .reg-xfp and
841 .reg-xstate.
842 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
843 core file support only if the regset iterator hasn't been set.
844 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
845 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
846 Moved from i386-tdep.c and renamed to *_linux*.
847 (i386_linux_iterate_over_regset_sections): Add regset parameter to
848 each callback invocation. Allow any .reg-xstate size when reading
849 from a core file.
850 * amd64-tdep.c (amd64_supply_xstateregset)
851 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
852 amd64-linux-tdep.c.
853 (amd64_regset_from_core_section): Remove.
854 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
855 install an amd64-specific regset_from_core_section gdbarch method.
856 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
857 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
858 Moved from amd64-tdep.c and renamed to *_linux*.
859 (amd64_linux_iterate_over_regset_sections): Add regset parameter
860 to each callback invocation. Allow any .reg-xstate size when
861 reading from a core file.
862 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
863 (arm_linux_iterate_over_regset_sections): Add regset parameter to
864 each callback invocation.
865 (arm_linux_init_abi): No longer set the regset_from_core_section
866 gdbarch method.
867 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
868 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
869 each callback invocation.
870 (ppc_linux_init_abi): No longer set the regset_from_core_section
871 gdbarch method.
872 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
873 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
874 (s390_regset_from_core_section): Remove.
875 (s390_iterate_over_regset_sections): Add regset parameter to each
876 callback invocation.
877 (s390_gdbarch_init): No longer set the regset_from_core_section
878 gdbarch method. Drop initialization of deleted tdep fields.
879
880 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
881
882 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
883 (amd64_linux_iterate_over_regset_sections): New.
884 (amd64_linux_init_abi_common): Don't install the regset section
885 list, but the new iterator in gdbarch.
886 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
887 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
888 (arm_linux_iterate_over_regset_sections): ...here. New function.
889 (arm_linux_init_abi): Set iterator instead of section list.
890 * corelow.c (get_core_registers_cb): New function, logic moved
891 from...
892 (get_core_registers): ...loop body here. Use new iterator method
893 instead of walking through the regset section list.
894 * gdbarch.sh: Remove 'core_regset_sections'. New method
895 'iterate_over_regset_sections'. New typedef
896 'iterate_over_regset_sections_cb'.
897 * gdbarch.c: Regenerate.
898 * gdbarch.h: Likewise.
899 * i386-linux-tdep.c (i386_linux_regset_sections)
900 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
901 Remove.
902 (i386_linux_iterate_over_regset_sections): New.
903 (i386_linux_init_abi): Don't choose a regset section list, but
904 install new iterator in gdbarch.
905 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
906 (linux_collect_regset_section_cb): New function, logic moved
907 from...
908 (linux_collect_thread_registers): ...loop body here. Use iterator
909 method instead of walking through list.
910 (linux_make_corefile_notes_1): Check for presence of iterator
911 method instead of regset section list.
912 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
913 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
914 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
915 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
916 (ppc_linux_iterate_over_regset_sections): ...here. New function.
917 (ppc_linux_init_abi): Don't choose from above regset section
918 lists, but install new iterator in gdbarch.
919 * regset.h (struct core_regset_section): Remove.
920 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
921 have_linux_v1, have_linux_v2, and have_tdb.
922 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
923 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
924 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
925 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
926 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
927 (s390_iterate_over_regset_sections): ...here. New function. Use
928 new tdep fields.
929 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
930 regset section lists, but install new iterator.
931
932 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
933
934 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
935
936 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
937
938 * progspace.c (print_program_space): Don't prune program spaces
939 before printing them.
940
941 2014-09-25 Pedro Alves <palves@redhat.com>
942
943 * infrun.c (user_visible_resume_ptid): Don't check
944 singlestep_breakpoints_inserted_p.
945
946 2014-09-25 Pedro Alves <palves@redhat.com>
947
948 * breakpoint.c (should_be_inserted): Add debug output.
949
950 2014-09-25 Pedro Alves <palves@redhat.com>
951
952 * infrun.c (stepping_past_instruction_at)
953 (clear_exit_convenience_vars): Point at infrun.h instead of
954 inferior.h.
955 (handle_signal_stop): Fix typo.
956
957 2014-09-24 Yao Qi <yao@codesourcery.com>
958
959 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
960 bitmask.
961
962 2014-09-22 Gary Benson <gbenson@redhat.com>
963
964 * target.c (target_stop): Updated comment.
965
966 2014-09-22 Gary Benson <gbenson@redhat.com>
967
968 * target/target.h (target_stop_ptid): Renamed as...
969 (target_stop_and_wait): New function. Updated comment.
970 All uses updated.
971 (target_continue_ptid): Renamed as...
972 (target_continue_no_signal): New function. Updated comment.
973 All uses updated.
974
975 2014-09-22 Pedro Alves <palves@redhat.com>
976
977 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
978 and "auto" merged.
979 * breakpoint.c (enum ugll_insert_mode): New enum.
980 (always_inserted_mode): Now a plain boolean.
981 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
982 (breakpoints_always_inserted_mode): Delete.
983 (breakpoints_should_be_inserted_now): New function.
984 (insert_breakpoints): Pass UGLL_INSERT to
985 update_global_location_list instead of calling
986 insert_breakpoint_locations manually.
987 (create_solib_event_breakpoint_1): New, factored out from ...
988 (create_solib_event_breakpoint): ... this.
989 (create_and_insert_solib_event_breakpoint): Use
990 create_solib_event_breakpoint_1 instead of calling
991 insert_breakpoint_locations manually.
992 (update_global_location_list): Change parameter type from boolean
993 to enum ugll_insert_mode. All callers adjusted. Adjust to use
994 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
995 (update_global_location_list_nothrow): Change parameter type from
996 boolean to enum ugll_insert_mode.
997 (_initialize_breakpoint): "breakpoint always-inserted" option is
998 now a boolean command. Update help text.
999 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1000 (breakpoints_should_be_inserted_now): New declaration.
1001 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1002 Remove breakpoints_always_inserted_mode check.
1003 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1004 * remote.c (remote_start_remote): Likewise.
1005
1006 2014-09-22 Pedro Alves <palves@redhat.com>
1007
1008 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1009 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1010 Instead, pass UGLL_INSERT to update_global_location_list.
1011 (update_global_location_list): Change parameter type from boolean
1012 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1013 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1014 (create_solib_event_breakpoint_1): New, factored out from ...
1015 (create_solib_event_breakpoint): ... this.
1016 (create_and_insert_solib_event_breakpoint): Use
1017 create_solib_event_breakpoint_1 instead of calling
1018 insert_breakpoint_locations manually.
1019 (update_global_location_list): Handle UGLL_INSERT.
1020
1021 2014-09-22 Pedro Alves <palves@redhat.com>
1022
1023 * breakpoint.c (enum ugll_insert_mode): New enum.
1024 (update_global_location_list)
1025 (update_global_location_list_nothrow): Change parameter type from
1026 boolean to enum ugll_insert_mode. All callers adjusted.
1027
1028 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1029
1030 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1031 SystemTap support in GDB.
1032
1033 2014-09-19 Don Breazeal <donb@codesourcery.com>
1034
1035 * linux-nat.c (linux_handle_extended_wait): Call
1036 linux_ptrace_get_extended_event.
1037 (wait_lwp): Call linux_is_extended_waitstatus.
1038 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1039 and linux_is_extended_waitstatus.
1040 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1041 linux_ptrace_get_extended_event.
1042 (linux_ptrace_get_extended_event): New function.
1043 (linux_is_extended_waitstatus): New function.
1044 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1045 (linux_is_extended_waitstatus): New declarations.
1046
1047 2014-09-19 Yao Qi <yao@codesourcery.com>
1048
1049 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1050 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1051 comments. Callers update.
1052 (dwarf_decode_lines): Likewise.
1053 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1054 comments. Skip the line table if 'lowpc' is greater than
1055 'address'. Don't check
1056 dwarf2_per_objfile->has_section_at_zero.
1057
1058 2014-09-18 Doug Evans <dje@google.com>
1059
1060 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1061 * python/py-symtab.c (stpy_get_producer): New function.
1062 (symtab_object_getset): Add "producer" attribute.
1063
1064 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1065
1066 PR gdb/17384
1067 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1068 (do_captured_read_memory_integer): Remove.
1069 (safe_read_memory_integer): Use target_read_memory directly instead
1070 of catching errors in do_captured_read_memory_integer.
1071
1072 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1073
1074 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1075 not gdb/doc.
1076
1077 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1078
1079 * objc-lang.c (find_implementation_from_class): Remove dead code.
1080
1081 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1082
1083 PR cli/7233
1084 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1085 "fprintf_unfiltered (gdb_stdlog...)".
1086
1087 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1088
1089 PR breakpoints/12526
1090 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1091 val_bitsize.
1092 * breakpoint.c (watch_command_1): Use these fields to retain
1093 bitfield information.
1094 (extract_bitfield_from_watchpoint_value): New function.
1095 (watchpoint_check): Use it.
1096 (update_watchpoint): Use it. Optimize the address and length of a
1097 HW watchpoint pointing to a bitfield.
1098 * value.h (unpack_value_bitfield): New prototype.
1099 * value.c (unpack_value_bitfield): Make extern.
1100
1101 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1102
1103 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1104 x86-dregs.o.
1105 * gnu-nat.c (inf_threads): New function.
1106 * gnu-nat.h (inf_threads_ftype): New typedef.
1107 (inf_threads): New declaration.
1108 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1109 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1110 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1111 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1112 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1113 (i386_gnu_dr_get_control): New functions.
1114 (reg_addr): New structure.
1115 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1116 i386 debugging register hooks.
1117 * NEWS: Mention this.
1118
1119 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1120
1121 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1122 vector data transfer instructions.
1123 (arm_record_coproc_data_proc): Updated.
1124
1125 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1126
1127 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1128 arm_record_exreg_ld_st_insn.
1129 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1130 load/store insns.
1131
1132 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1133
1134 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1135 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1136 processing instructions.
1137
1138 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1139
1140 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1141 for advance SIMD struct ld/st insn.
1142 (thumb2_record_decode_insn_handler): Replace stub handler with
1143 thumb2_record_asimd_struct_ld_st.
1144
1145 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1146
1147 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1148 for asimd, vfp and coprocessor insns.
1149 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1150 and coprocessor insns.
1151 (thumb2_record_coproc_insn): New function.
1152 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1153 handlers.
1154 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1155 opcode 110 insns.
1156
1157 2014-09-13 Doug Evans <xdje42@gmail.com>
1158
1159 * NEWS: Mention new "queue-signal" command.
1160 * infcmd.c (queue_signal_command): New function.
1161 (_initialize_infcmd): Add new queue-signal command.
1162
1163 2014-09-13 Doug Evans <xdje42@gmail.com>
1164
1165 * linux-nat.c (wait_lwp): Add debugging printf.
1166 (linux_nat_wait_1): Ditto.
1167
1168 2014-09-12 Pedro Alves <palves@redhat.com>
1169
1170 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1171 (create_and_insert_solib_event_breakpoint): New functions.
1172 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1173 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1174 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1175 (remove_dbx_link_breakpoint): Delete function.
1176 (insert_dbx_link_bpt_in_file): Use
1177 create_and_insert_solib_event_breakpoint instead of
1178 deprecated_insert_raw_breakpoint.
1179 (procfs_wait): Don't check whether we hit __dbx_link here.
1180 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1181 here.
1182 * solib-irix.c (base_breakpoint): Delete global.
1183 (disable_break): Delete function.
1184 (enable_break): Use create_solib_event_breakpoint
1185 instead of deprecated_insert_raw_breakpoint.
1186 (irix_solib_handle_event): New function.
1187 (irix_solib_create_inferior_hook): Don't run the target or disable
1188 the mapping-complete breakpoint here.
1189 (_initialize_irix_solib): Install irix_solib_handle_event as
1190 so_ops->handle_event hook.
1191
1192 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1193 Ulrich Weigand  <uweigand@de.ibm.com>
1194
1195 PR tdep/17379
1196 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1197 instead of read_memory_unsigned_integer.
1198
1199 2014-09-12 Gary Benson <gbenson@redhat.com>
1200
1201 * nat/linux-waitpid.c: Include common-defs.h.
1202 [GDBSERVER]: Add FIXME comment.
1203 [!GDBSERVER]: Don't include defs.h or signal.h.
1204 (linux_debug) [!GDBSERVER]: Remove empty block.
1205
1206 2014-09-12 Gary Benson <gbenson@redhat.com>
1207
1208 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1209 Don't include defs.h or server.h.
1210
1211 2014-09-12 Gary Benson <gbenson@redhat.com>
1212
1213 * nat/linux-btrace.c: Include common-defs.h.
1214 Don't include defs.h, server.h or gdbthread.h.
1215 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1216
1217 2014-09-12 Gary Benson <gbenson@redhat.com>
1218
1219 * common/agent.c: Include common-defs.h.
1220 Don't include defs.h or server.h.
1221 * common/buffer.c: Likewise.
1222 * common/common-debug.c: Likewise.
1223 * common/common-utils.c: Likewise.
1224 * common/errors.c: Likewise.
1225 * common/filestuff.c: Likewise.
1226 * common/format.c: Likewise.
1227 * common/gdb_vecs.c: Likewise.
1228 * common/print-utils.c: Likewise.
1229 * common/ptid.c: Likewise.
1230 * common/rsp-low.c: Likewise.
1231 * common/signals.c: Likewise.
1232 * common/vec.c: Likewise.
1233 * common/xml-utils.c: Likewise.
1234 * nat/linux-osdata.c: Likewise.
1235 * nat/linux-procfs.c: Likewise.
1236 * nat/linux-ptrace.c: Likewise.
1237 * nat/mips-linux-watch.c: Likewise.
1238 * target/waitstatus.c: Likewise.
1239
1240 2014-09-12 Tom Tromey <tromey@redhat.com>
1241 Gary Benson <gbenson@redhat.com>
1242
1243 * common/common-regcache.h: New file.
1244 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1245 * regcache.h: Include common-regcache.h.
1246 (regcache_read_pc): Don't declare.
1247 * regcache.c (get_thread_regcache_for_ptid): New function.
1248 * nat/linux-btrace.c: Don't include regcache.h.
1249 Include common-regcache.h.
1250 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1251
1252 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1253
1254 * regcache.h (struct regset): Declare.
1255
1256 2014-09-11 Pedro Alves <palves@redhat.com>
1257
1258 PR gdb/17347
1259 * main.c: Include "infrun.h".
1260 (catch_command_errors, catch_command_errors_const): Wait for the
1261 foreground command to complete.
1262 * top.c (maybe_wait_sync_command_done): New function, factored out
1263 from ...
1264 (maybe_wait_sync_command_done): ... here.
1265 * top.h (maybe_wait_sync_command_done): New declaration.
1266
1267 2014-09-11 Tom Tromey <tromey@redhat.com>
1268 Gary Benson <gbenson@redhat.com>
1269
1270 * common/symbol.h: New file.
1271 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1272 * minsyms.c (find_minimal_symbol_address): New function.
1273 * common/agent.c: Include common/symbol.h.
1274 [!GDBSERVER]: Don't include objfiles.h.
1275 (agent_look_up_symbols): Use find_minimal_symbol_address.
1276
1277 2014-09-11 Gary Benson <gbenson@redhat.com>
1278
1279 * target/target.h (target_stop_ptid, target_continue_ptid):
1280 Declare.
1281 * target.c (target_stop_ptid, target_continue_ptid): New
1282 functions.
1283 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1284 (agent_run_command): Always use target_stop_ptid and
1285 target_continue_ptid.
1286
1287 2014-09-11 Tom Tromey <tromey@redhat.com>
1288 Gary Benson <gbenson@redhat.com>
1289
1290 * target/target.h: New file.
1291 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1292 * target.h: Include target/target.h.
1293 (target_read_memory, target_write_memory): Don't declare.
1294 * target.c (target_read_uint32): New function.
1295 * common/agent.c: Include target/target.h.
1296 [!GDBSERVER]: Don't include target.h.
1297 (helper_thread_id): Type changed to uint32_t.
1298 (agent_get_helper_thread_id): Use target_read_uint32.
1299 (agent_run_command): Always use target_read_memory and
1300 target_write_memory.
1301 (agent_capability): Type changed to uint32_t.
1302 (agent_capability_check): Use target_read_uint32.
1303
1304 2014-09-11 Gary Benson <gbenson@redhat.com>
1305
1306 * common/common-debug.h (show_debug_regs): Declare.
1307 * common/common-debug.c (show_debug_regs): Define.
1308 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1309 all uses with show_debug_regs. Replace all uses that considered
1310 debug_hw_points as a multi-value integer with straight boolean
1311 uses.
1312 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1313 with show_debug_regs.
1314 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1315 all uses with show_debug_regs.
1316 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1317 uses with show_debug_regs.
1318
1319 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1320
1321 * findvar.c (address_from_register): Handle targets requiring
1322 a special conversion routine even for plain pointer types.
1323
1324 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1325
1326 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1327 (store_register): Do not call exec_one_dummy_insn.
1328
1329 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1330
1331 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1332 dereference it first. Use value_enclosing_type instead of
1333 value_type.
1334 (ada_array_length): Likewise.
1335
1336 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1337
1338 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1339 Adjust function implementation and documentation accordingly.
1340 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1341 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1342 Update call to ada_value_ptr_subscript.
1343
1344 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1345
1346 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1347 instead of VAL's type.
1348
1349 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1350
1351 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1352
1353 2014-09-09 Doug Evans <xdje42@gmail.com>
1354
1355 PR guile/17367
1356 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1357 last parameter to pkg-config, not first.
1358 * configure.ac: Pass --with-guile provided pkg-config path to
1359 GDB_GUILE_PROGRAM_NAMES.
1360 * configure: Regenerate.
1361
1362 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1363
1364 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1365 Bertazi".
1366
1367 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1368
1369 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1370 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1371 the list of sections determining GDB_OSABI_IRIX.
1372
1373 2014-09-09 James Hogan <james.hogan@imgtec.com>
1374
1375 * MAINTAINERS (Write After Approval): Add "James Hogan".
1376
1377 2014-09-09 James Hogan <james.hogan@imgtec.com>
1378
1379 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1380
1381 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1382
1383 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1384
1385 2014-09-08 Doug Evans <xdje42@gmail.com>
1386
1387 PR 17247
1388 * guile.c: #include <signal.h>.
1389 (_initialize_guile): Block SIGCHLD while initializing Guile.
1390
1391 Replaces the following, which is reverted.
1392
1393 2014-07-26 Doug Evans <xdje42@gmail.com>
1394
1395 PR 17185
1396 * configure.ac: Add check for header gc/gc.h.
1397 Add check for function setenv.
1398 * configure: Regenerate.
1399 * config.in: Regenerate.
1400 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1401
1402 2014-09-08 Doug Evans <xdje42@gmail.com>
1403
1404 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1405 with named constant. Fix style of pointer comparison.
1406 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1407
1408 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1409
1410 PR gdb/17035
1411 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1412 decide whether we display the command on "show user".
1413 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1414 printing command name.
1415 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1416 * cli/cli-decode.c (cli_user_command_p): Create helper function
1417 to verify whether cmd_list_element is a user-defined command.
1418
1419 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1420
1421 PR python/17355
1422 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1423 Fix goto out of TRY_CATCH.
1424
1425 2014-09-06 Doug Evans <xdje42@gmail.com>
1426 Tom Tromey <tromey@redhat.com>
1427
1428 PR 15276
1429 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1430 $_any_caller_matches.
1431 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1432 * python/lib/gdb/function/caller_is.py: New file.
1433
1434 2014-09-06 Doug Evans <xdje42@gmail.com>
1435
1436 * infcmd.c (program_info): Fix typo.
1437
1438 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1439
1440 PR gdb/17235
1441 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1442 'number'. New variable 'has_digit'. Rewrite code to deal with
1443 subexpressions on SDT probes.
1444
1445 2014-09-04 Pedro Alves <palves@redhat.com>
1446
1447 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1448 the input is only one character long.
1449
1450 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1451
1452 PR fortran/17237
1453 * f-valprint.c (f_val_print): Specify the correct print option to
1454 use when printing integer values.
1455
1456 2014-09-04 Gary Benson <gbenson@redhat.com>
1457
1458 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1459 Remove code to cope with LWPs wrapped as PIDs.
1460 Add assertions to ensure no wrapped LWPs are passed.
1461
1462 2014-09-04 Pedro Alves <palves@redhat.com>
1463
1464 * value.c (value_ranges_copy_adjusted): New function, factored out
1465 from ...
1466 (value_contents_copy_raw): ... here.
1467 (unpack_value_bits_as_long_1): Rename back to ...
1468 (unpack_bits_as_long): ... this. Remove 'original_value' and
1469 'result' parameters. Change return type to LONGEST.
1470 (unpack_value_bits_as_long): Delete.
1471 (unpack_value_field_as_long_1): Delete.
1472 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1473 (unpack_value_bitfield): New function.
1474 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1475 (value_fetch_lazy): Use unpack_value_bitfield.
1476 * value.h (unpack_value_bits_as_long): Delete declaration.
1477
1478 2014-09-03 Sasha Smundak <asmundak@google.com>
1479
1480 * python/py-frame.c (frapy_read_register): New function.
1481
1482 2014-09-03 James Hogan <james.hogan@imgtec.com>
1483
1484 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1485 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1486
1487 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1488
1489 PR python/16699
1490 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1491 function.
1492 (add_cmd): Set "completer_handle_brkchars" to NULL.
1493 * cli/cli-decode.h (struct cmd_list_element)
1494 <completer_handle_brkchars>: New field.
1495 * command.h (completer_ftype_void): New typedef.
1496 (set_cmd_completer_handle_brkchars): New prototype.
1497 * completer.c (set_gdb_completion_word_break_characters): New
1498 function.
1499 (complete_line_internal): Call "completer_handle_brkchars"
1500 callback from command.
1501 * completer.h: Include "command.h".
1502 (set_gdb_completion_word_break_characters): New prototype.
1503 * python/py-cmd.c (cmdpy_completer_helper): New function.
1504 (cmdpy_completer_handle_brkchars): New function.
1505 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1506 (cmdpy_init): Set completer_handle_brkchars to
1507 cmdpy_completer_handle_brkchars.
1508
1509 2014-09-03 Gary Benson <gbenson@redhat.com>
1510
1511 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1512 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1513 Loop conditions changed to equivalent form.
1514 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1515 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1516 ALL_DEBUG_ADDRESS_REGISTERS.
1517
1518 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1519
1520 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1521 description fix.
1522
1523 2014-09-02 Doug Evans <dje@google.com>
1524
1525 * typeprint.c (find_global_typedef): Fix comment.
1526
1527 2014-09-02 Gary Benson <gbenson@redhat.com>
1528
1529 * i386-nat.h: Renamed as...
1530 * x86-nat.h: New file. All type, function and variable name
1531 prefixes changed from "i386_" to "x86_". All references updated.
1532 * i386-nat.c: Renamed as...
1533 * x86-nat.c: New file. All type, function and variable name
1534 prefixes changed from "i386_" to "x86_". All references updated.
1535 * common/i386-xstate.h: Renamed as...
1536 * common/x86-xstate.h: New file. All type, function and variable
1537 name prefixes changed from "i386_" to "x86_". All references
1538 updated.
1539 * nat/i386-cpuid.h: Renamed as...
1540 * nat/x86-cpuid.h: New file. All type, function and variable name
1541 prefixes changed from "i386_" to "x86_". All references updated.
1542 * nat/i386-gcc-cpuid.h: Renamed as...
1543 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1544 name prefixes changed from "i386_" to "x86_". All references
1545 updated.
1546 * nat/i386-dregs.h: Renamed as...
1547 * nat/x86-dregs.h: New file. All type, function and variable name
1548 prefixes changed from "i386_" to "x86_". All references updated.
1549 * nat/i386-dregs.c: Renamed as...
1550 * nat/x86-dregs.c: New file. All type, function and variable name
1551 prefixes changed from "i386_" to "x86_". All references updated.
1552
1553 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1554
1555 * varobj.c (_initialize_varobj): Move to the end of file.
1556
1557 2014-08-29 Gary Benson <gbenson@redhat.com>
1558
1559 * common/common-exceptions.h: New file.
1560 * common/common-exceptions.c: Likewise.
1561 * Makefile.in (SFILES): Add common/common-exceptions.c.
1562 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1563 (COMMON_OBS): Add common-exceptions.o.
1564 (common-exceptions.o): New rule.
1565 * exceptions.h (common-exceptions.h): Include.
1566 (gdb_setjmp.h): Do not include.
1567 (return_reason): Moved to common-exceptions.h.
1568 (enum return_reason): Likewise.
1569 (RETURN_MASK): Likewise.
1570 (typedef return_mask): Likewise.
1571 (enum errors): Likewise.
1572 (struct gdb_exception): Likewise.
1573 (exceptions_state_mc_init): Likewise.
1574 (exceptions_state_mc_action_iter): Likewise.
1575 (exceptions_state_mc_action_iter_1): Likewise.
1576 (TRY_CATCH): Likewise.
1577 (throw_exception): Likewise.
1578 (throw_verror): Likewise.
1579 (throw_vquit): Likewise.
1580 (throw_error): Likewise.
1581 (throw_quit): Likewise.
1582 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1583 (enum catcher_action): Likewise.
1584 (struct catcher): Likewise.
1585 (current_catcher): Likewise.
1586 (catcher_list_size): Likewise.
1587 (exceptions_state_mc_init): Likewise.
1588 (catcher_pop): Likewise.
1589 (exceptions_state_mc): Likewise.
1590 (exceptions_state_mc_action_iter): Likewise.
1591 (exceptions_state_mc_action_iter_1): Likewise.
1592 (throw_exception): Likewise.
1593 (exception_messages): Likewise.
1594 (exception_messages_size): Likewise.
1595 (throw_it): Likewise.
1596 (throw_verror): Likewise.
1597 (throw_vquit): Likewise.
1598 (throw_error): Likewise.
1599 (throw_quit): Likewise.
1600 (prepare_to_throw_exception): New function.
1601
1602 2014-08-29 Gary Benson <gbenson@redhat.com>
1603
1604 * common/gdb_setjmp.h: New file.
1605 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1606 * configure.ac: Move sigsetjmp check...
1607 * common/common.m4: ...here.
1608 * configure: Regenerate.
1609 * cp-support.c (SIGJMP_BUF): Delete.
1610 (SIGSETJMP): Likewise.
1611 (SIGLONGJMP): Likewise.
1612 * exceptions.h (gdb_setjmp.h): Include.
1613 (setjmp.h): Do not include.
1614 (EXCEPTIONS_SIGJMP_BUF): Delete.
1615 (EXCEPTIONS_SIGSETJMP): Likewise.
1616 (EXCEPTIONS_SIGLONGJMP): Likewise.
1617 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1618 from gdb_setjmp.h.
1619 * exceptions.c: Likewise.
1620
1621 2014-08-29 Gary Benson <gbenson@redhat.com>
1622
1623 * cleanups.h: Moved to...
1624 * common/cleanups.h: New file.
1625 * cleanups.c: Moved to...
1626 * common/cleanups.c: New file. Include common-defs.h and
1627 cleanups.h. Do not include defs.h.
1628 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1629 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1630 (cleanups.o): New rule.
1631
1632 2014-08-29 Gary Benson <gbenson@redhat.com>
1633
1634 * common/errors.h (internal_warning): New declaration.
1635 (internal_vwarning): Likewise.
1636 * common/errors.c (internal_warning): New function.
1637 * utils.h (internal_warning): Don't declare.
1638 (internal_vwarning): Likewise.
1639 * utils.c (internal_warning): Removed.
1640
1641 2014-08-29 Gary Benson <gbenson@redhat.com>
1642
1643 * main.c (captured_main): Use warning during startup.
1644 Prefix startup warning messages with command name.
1645
1646 2014-08-29 Gary Benson <gbenson@redhat.com>
1647
1648 * main.c (captured_main): Handle usage errors with error.
1649
1650 2014-08-29 Gary Benson <gbenson@redhat.com>
1651
1652 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1653 exit pair with a call to error. Wrap the message with _().
1654
1655 2014-08-29 Gary Benson <gbenson@redhat.com>
1656
1657 * main.c (captured_main): Replace a fprintf/exit
1658 pair with a call to error. Wrap the message with _().
1659
1660 2014-08-29 Gary Benson <gbenson@redhat.com>
1661
1662 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1663 pairs with calls to error. Wrap the message with _().
1664
1665 2014-08-29 Gary Benson <gbenson@redhat.com>
1666
1667 * utils.c (vwarning): Protect calls to target_terminal_ours
1668 and wrap_here.
1669
1670 2014-08-29 Gary Benson <gbenson@redhat.com>
1671
1672 * exceptions.c (print_flush): Protect calls to
1673 target_terminal_ours and wrap_here.
1674
1675 2014-08-29 Gary Benson <gbenson@redhat.com>
1676
1677 * utils.h (filtered_printing_initialized): New declaration.
1678 * utils.c (abort_with_message): New function.
1679 (internal_vproblem): Use abort_with_message for first level
1680 recursive internal problems, and if gdb_stderr is not set up.
1681 Protect calls to target_terminal_ours, begin_line and query.
1682
1683 2014-08-28 Doug Evans <dje@google.com>
1684
1685 * symtab.c (in_prologue): Move definition to better spot.
1686 (skip_prologue_using_sal): Ditto.
1687
1688 2014-08-28 Doug Evans <dje@google.com>
1689
1690 * symtab.c (find_function_start_sal): Move definition to better spot.
1691
1692 2014-08-28 Yao Qi <yao@codesourcery.com>
1693
1694 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1695 found_stack_adjust in forward scan. Remove condition check
1696 on found_stack_adjust which is always true. Indent the code.
1697
1698 2014-08-28 Yao Qi <yao@codesourcery.com>
1699
1700 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1701 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1702 (dwarf_decode_lines): Remove argument
1703 want_line_info. Remove condition check on want_line_info.
1704 Callers update.
1705
1706 2014-08-27 Doug Evans <dje@google.com>
1707
1708 * dwarf2read.c (dwarf_record_line): Fix typo.
1709
1710 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1711
1712 * target.h (struct target_ops::to_terminal_save_ours): Remove
1713 declaration.
1714 (target_terminal_save_ours): Remove macro.
1715 * target-delegates.c: Regenerate.
1716 * inf-child.c (inf_child_target): Don't set the nonexistent
1717 field to_terminal_save_ours.
1718 * inferior.h (child_terminal_save_ours): Remove declaration.
1719 * terminal.h (gdb_save_tty_state): New declaration.
1720 * inflow.c (child_terminal_save_ours): Rename to ...
1721 (gdb_save_tty_state): ... this.
1722 * tui/tui.c: Include terminal.h.
1723 (tui_enable): Use gdb_save_tty_state instead of
1724 target_terminal_save_ours.
1725 (tui_disable): Likewise.
1726
1727 2014-08-25 Doug Evans <dje@google.com>
1728
1729 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1730 Pass NULL instead of 0 for context pointer.
1731
1732 2014-08-25 Yao Qi <yao@codesourcery.com>
1733
1734 * dwarf2read.c: Fix grammatical error.
1735
1736 2014-08-24 Yao Qi <yao@codesourcery.com>
1737
1738 * dwarf2read.c (scan_partial_symbols): Update comments.
1739 Rename argument 'need_pc' with 'set_addrmap'.
1740 (add_partial_namespace): Rename argument 'need_pc' with
1741 'set_addrmap'.
1742 (add_partial_module): Likewise.
1743 (add_partial_subprogram): Likewise. Update comments.
1744 (dwarf2_name): Fix typo.
1745
1746 2014-08-22 Doug Evans <dje@google.com>
1747
1748 PR 17276
1749 * dwarf2read.c (dwarf_record_line_p): New function.
1750 (dwarf_decode_lines_1): Ignore subsequent line number entries
1751 for the same line if any entry had a non-zero discriminator.
1752
1753 2014-08-22 Doug Evans <dje@google.com>
1754
1755 * buildsym.h (record_line_ftype): New typedef.
1756 (record_line): Use it.
1757 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1758 (dwarf_decode_lines_1): Call them.
1759
1760 2014-08-22 Yao Qi <yao@codesourcery.com>
1761
1762 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1763 (ctf_end): Remove code.
1764
1765 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1766
1767 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1768 (linux_make_corefile_notes): call update_thread_list, protected against
1769 exceptions.
1770
1771 2014-08-21 Pedro Alves <palves@redhat.com>
1772
1773 * infcmd.c (attach_command): Remove comment.
1774
1775 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1776
1777 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1778 unsigned LONGEST to ULONGEST.
1779
1780 2014-08-20 Pedro Alves <palves@redhat.com>
1781
1782 * Makefile.in (check-read1): New rule.
1783
1784 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1785
1786 * value.c (value_from_contents_and_address): Strip resolved_type's
1787 typedef layers before checking its TYPE_DATA_LOCATION.
1788
1789 2014-08-20 Pedro Alves <palves@redhat.com>
1790
1791 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1792
1793 2014-08-20 Yao Qi <yao@codesourcery.com>
1794
1795 * amd64-tdep.c (amd64_classify): Add a blank line after the
1796 example. Move "*/" to a new line.
1797 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1798 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1799 * dwarf2read.c (psymtab_include_file_name): Likewise.
1800
1801 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1802 Pedro Alves <palves@redhat.com>
1803
1804 PR symtab/14604
1805 PR symtab/14605
1806 * ada-lang.c (coerce_unspec_val_to_type): Use
1807 value_contents_copy_raw.
1808 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1809 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1810 * cp-valprint.c (cp_print_value_fields): Let the common printing
1811 code handle optimized out values.
1812 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1813 * d-valprint.c (dynamic_array_type): Use
1814 value_bits_any_optimized_out.
1815 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1816 check_any_valid fields.
1817 (check_pieced_value_bits): Delete and inline ...
1818 (check_pieced_synthetic_pointer): ... here.
1819 (check_pieced_value_validity): Delete.
1820 (check_pieced_value_invalid): Delete.
1821 (pieced_value_funcs): Remove check_validity and check_any_valid
1822 fields.
1823 (read_pieced_value): Use mark_value_bits_optimized_out.
1824 (write_pieced_value): Switch to use
1825 mark_value_bytes_optimized_out.
1826 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1827 of assuming the whole value is optimized out.
1828 * findvar.c (read_frame_register_value): Remove special handling
1829 of optimized out registers.
1830 (value_from_register): Use mark_value_bytes_optimized_out.
1831 * frame-unwind.c (frame_unwind_got_optimized): Use
1832 mark_value_bytes_optimized_out.
1833 * jv-valprint.c (java_value_print): Adjust.
1834 (java_print_value_fields): Let the common printing code handle
1835 optimized out values.
1836 * mips-tdep.c (mips_print_register): Remove special handling of
1837 optimized out registers.
1838 * opencl-lang.c (lval_func_check_validity): Delete.
1839 (lval_func_check_any_valid): Delete.
1840 (opencl_value_funcs): Remove check_validity and check_any_valid
1841 fields.
1842 * p-valprint.c (pascal_object_print_value_fields): Let the common
1843 printing code handle optimized out values.
1844 * stack.c (read_frame_arg): Remove special handling of optimized
1845 out values. Fetch both VAL and ENTRYVAL before comparing
1846 contents. Adjust to value_available_contents_eq rename.
1847 * valprint.c (valprint_check_validity)
1848 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1849 (val_print_array_elements): Adjust.
1850 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1851 (value_bits_any_optimized_out): New function.
1852 (value_entirely_covered_by_range_vector): New function, factored
1853 out from value_entirely_unavailable.
1854 (value_entirely_unavailable): Reimplement.
1855 (value_entirely_optimized_out): New function.
1856 (insert_into_bit_range_vector): New function, factored out from
1857 mark_value_bits_unavailable.
1858 (mark_value_bits_unavailable): Reimplement.
1859 (struct ranges_and_idx): New struct.
1860 (find_first_range_overlap_and_match): New function, factored out
1861 from value_available_contents_bits_eq.
1862 (value_available_contents_bits_eq): Rename to ...
1863 (value_contents_bits_eq): ... this. Check both unavailable
1864 contents and optimized out contents.
1865 (value_available_contents_eq): Rename to ...
1866 (value_contents_eq): ... this.
1867 (allocate_value_lazy): Remove reference to the old optimized_out
1868 boolean.
1869 (allocate_optimized_out_value): Use
1870 mark_value_bytes_optimized_out.
1871 (require_not_optimized_out): Adjust to check whether the
1872 optimized_out vec is empty.
1873 (ranges_copy_adjusted): New function, factored out from
1874 value_contents_copy_raw.
1875 (value_contents_copy_raw): Also copy the optimized out ranges.
1876 Assert the destination ranges aren't optimized out.
1877 (value_contents_copy): Update comment, remove call to
1878 require_not_optimized_out.
1879 (value_contents_equal): Adjust to check whether the optimized_out
1880 vec is empty.
1881 (set_value_optimized_out, value_optimized_out_const): Delete.
1882 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1883 New functions.
1884 (value_entirely_optimized_out, value_bits_valid): Delete.
1885 (value_copy): Take a VEC copy of the 'optimized_out' field.
1886 (value_primitive_field): Remove special handling of optimized out.
1887 (value_fetch_lazy): Assert that lazy values have no unavailable
1888 regions. Use value_bits_any_optimized_out. Remove some special
1889 handling for optimized out values.
1890 * value.h: Add intro comment about <optimized out> and
1891 <unavailable>.
1892 (struct lval_funcs): Remove check_validity and check_any_valid
1893 fields.
1894 (set_value_optimized_out, value_optimized_out_const): Remove.
1895 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1896 New declarations.
1897 (value_bits_any_optimized_out): New declaration.
1898 (value_bits_valid): Delete declaration.
1899 (value_available_contents_eq): Rename to ...
1900 (value_contents_eq): ... this, and extend comments.
1901
1902 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1903
1904 Fix -fsanitize=address on unreadable inferior strings.
1905 * valprint.c (val_print_string): Fix access before BUFFER.
1906
1907 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1908
1909 * target.c (target_struct_size): Remove.
1910 (target_struct_allocsize): Remove.
1911 (DEFAULT_ALLOCSIZE): Remove.
1912 (target_ops_p): New typedef.
1913 (DEF_VEC_P (target_ops_p)): New vector type.
1914 (target_structs): Change type to VEC (target_ops_p).
1915 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1916 (find_default_run_target): Rewrite for loop following changes to
1917 target_structs.
1918
1919 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1920
1921 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1922 Adjust code accordingly. Adjust function description comment.
1923
1924 2014-08-19 Yao Qi <yao@codesourcery.com>
1925
1926 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1927 types.
1928
1929 2014-08-19 Alan Modra <amodra@gmail.com>
1930
1931 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1932 * config.in: Regenerate.
1933 * configure: Regenerate.
1934
1935 2014-08-19 Tom Tromey <tromey@redhat.com>
1936 Gary Benson <gbenson@redhat.com>
1937
1938 * common/common-debug.h: New file.
1939 * common/common-debug.c: Likewise.
1940 * debug.c: Likewise.
1941 * Makefile.in (SFILES): Add common/common-debug.c.
1942 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1943 (COMMON_OBS): Add common-debug.o and debug.o.
1944 (common-debug.o): New rule.
1945 * common/common-defs.h: Include common-debug.h.
1946 * common/agent.c (debug_agent_printf): New function.
1947 (DEBUG_AGENT): Redefine.
1948 * nat/i386-dregs.c (debug_printf): Undefine.
1949
1950 2014-08-19 Gary Benson <gbenson@redhat.com>
1951
1952 * common/common-defs.h: Include print-utils.h.
1953 * utils.h: Do not include print-utils.h.
1954
1955 2014-08-19 Tom Tromey <tromey@redhat.com>
1956 Gary Benson <gbenson@redhat.com>
1957
1958 * common/common-types.h: New file.
1959 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1960 * common/common-defs.h: Include common-types.h.
1961 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1962 (ULONGEST): Remove.
1963
1964 2014-08-19 Tom Tromey <tromey@redhat.com>
1965 Gary Benson <gbenson@redhat.com>
1966
1967 * common/errors.h: New file.
1968 * common/errors.c: Likewise.
1969 * Makefile.in (SFILES): Add common/errors.c.
1970 (HFILES_NO_SRCDIR): Add common/errors.h.
1971 (COMMON_OBS): Add errors.o.
1972 (errors.o): New rule.
1973 * common/common-defs.h: Include errors.h.
1974 * utils.h (perror_with_name, error, verror, warning, vwarning):
1975 Don't declare.
1976 * common/common-utils.h: (malloc_failure, internal_error):
1977 Likewise.
1978
1979 2014-08-19 Gary Benson <gbenson@redhat.com>
1980
1981 * utils.c (internal_vproblem): Always print the message.
1982
1983 2014-08-18 Doug Evans <dje@google.com>
1984
1985 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1986
1987 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1988
1989 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1990 Return 0 if TYPE is dynamic.
1991 (print_range): Add handling of dynamic ranges.
1992
1993 2014-08-18 Keven Boell <keven.boell@intel.com>
1994 Joel Brobecker <brobecker@adacore.com>
1995
1996 * gdbtypes.h (struct main_type): Add field "data_location".
1997 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1998 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1999 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2000 a dynamic data location.
2001 (resolve_dynamic_type): Add DW_AT_data_location handling.
2002 (copy_recursive, copy_type): Copy the data_location information
2003 when present.
2004 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2005 * value.c (value_from_contents_and_address): Add
2006 DW_AT_data_location handling.
2007
2008 2014-08-18 Keven Boell <keven.boell@intel.com>
2009 Joel Brobecker <brobecker@adacore.com>
2010
2011 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2012 field "get_object_address".
2013 * dwarf2expr.c (execute_stack_op): Add handling for
2014 DW_OP_push_object_address.
2015 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2016 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2017 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2018 (dwarf_expr_get_obj_addr): New function.
2019 (dwarf_expr_ctx_funcs): Add get_object_address field.
2020 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2021 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2022 (dwarf2_evaluate_property): Add parameter "address". Use it.
2023 (needs_get_obj_addr): New function.
2024 (needs_frame_ctx_funcs): Add get_object_address field.
2025 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2026 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2027 (resolve_dynamic_array): Likewise.
2028
2029 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2030
2031 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2032 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2033 fixed value for records and unions for which some GNAT encodings
2034 are present.
2035
2036 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2037
2038 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2039 rewrite to avoid "else if" and "else" constructs. Should be
2040 a no-op in practice.
2041
2042 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2043
2044 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2045 of lexical block.
2046
2047 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2048
2049 PR c++/17132
2050 * eval.c: Update all calls to find_overload_match.
2051 * valarith.c: Likewise.
2052 (value_user_defined_cpp_op, value_user_defined_op): New
2053 argument NOSIDE. Update all callers.
2054 * valops.c (find_overload_match): New argument NOSIDE.
2055 * value.h (find_overload_match): Update signature.
2056
2057 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2058
2059 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2060 'items' methods instead of 'iteritems' method on dictionaries.
2061
2062 2014-08-15 Doug Evans <dje@google.com>
2063
2064 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2065 closer to use.
2066
2067 2014-08-15 Doug Evans <dje@google.com>
2068
2069 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2070
2071 2014-08-15 Doug Evans <dje@google.com>
2072
2073 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2074
2075 2014-08-15 Doug Evans <dje@google.com>
2076
2077 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2078 unused.
2079
2080 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2081
2082 * dcache.h: Include target.h, to avoid compile time warnings.
2083
2084 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2085
2086 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2087 frame_info" partial declaration.
2088 * gdbarch.h: Regenerate.
2089
2090 2014-08-15 Yao Qi <yao@codesourcery.com>
2091
2092 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2093 Add parameter 'decode_for_pst_p'. Callers update.
2094
2095 2014-08-13 Yao Qi <yao@codesourcery.com>
2096
2097 PR build/17104
2098 * configure.ac: Use local variable 'pos'.
2099 * configure: Regenerated.
2100
2101 2014-08-11 Doug Evans <dje@google.com>
2102
2103 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2104 message, it is redundant with "Reading symbols from ..." message.
2105
2106 2014-08-10 Doug Evans <xdje42@gmail.com>
2107
2108 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2109
2110 2014-08-09 Yao Qi <yao@codesourcery.com>
2111
2112 PR remote/9053
2113 * remote.c (remote_xfer_partial): Remove dead code.
2114
2115 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2116
2117 * ia64-linux-tdep.c: Include "regset.h".
2118 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2119 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2120 (ia64_linux_supply_fpregset): New function.
2121 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2122 (ia64_linux_regset_from_core_section): New function.
2123 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2124 method.
2125
2126 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2127
2128 * m68klinux-tdep.c: Include "regset.h".
2129 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2130 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2131 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2132 (m68k_linux_regset_from_core_section): New function.
2133 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2134 method.
2135
2136 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2137
2138 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2139 function. Move logic to...
2140 (tilegx_linux_regmap): ... this new register map.
2141 (tilegx_linux_regset): Refer to register map, replace supply
2142 method by regcache_supply_regset, and add collect method.
2143 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2144 TILEGX_FIRST_EASY_REGNUM.
2145
2146 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2147
2148 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2149 that calls regcache_supply_regset and handles the EPC register
2150 separately. Move main logic to...
2151 (score7_linux_gregmap): ... this new register map.
2152 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2153 (score7_linux_gregset): Refer to register map. Add collect method.
2154 (score7_linux_regset_from_core_section): Replace
2155 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2156 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2157 (struct regset): Delete unused forward declaraction.
2158 (struct pt_regs): Delete structure definition.
2159 (elf_gregset_t): Delete typedef.
2160
2161 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2162
2163 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2164 (nios2_core_regset): Add collect method.
2165
2166 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2167
2168 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2169 platform-independent and don't write to read-only input buffer.
2170 (m32r_linux_collect_gregset): New function.
2171 (m32r_linux_gregset): Add collect method.
2172
2173 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2174
2175 * hppa-linux-tdep.c (greg_map): Rename to...
2176 (hppa_linux_gregmap): ... this. Also convert to
2177 regcache_map_entry format.
2178 (hppa_linux_supply_regset): Delete function.
2179 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2180 (hppa_linux_fpregmap): ... this new register map.
2181 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2182 register map, replace supply method by regcache_supply_regset, and
2183 add collect method regcache_collect_regset.
2184
2185 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2186
2187 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2188 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2189 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2190 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2191 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2192 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2193 (frv_linux_supply_gregset): Replace main logic by call to
2194 regcache_supply_regset, but keep clearing gr32-gr63.
2195 (frv_linux_supply_fpregset): Delete function.
2196 (frv_linux_gregset): Refer to appropriate register map and add
2197 regcache_collect_regset as the collect method.
2198 (frv_linux_fpregset): Likewise. Also exchange the supply method
2199 by regcache_supply_regset.
2200
2201 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2202
2203 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2204 by call to alpha_supply_int_regs.
2205 (alpha_linux_collect_gregset): New function.
2206 (alpha_linux_supply_fpregset): Replace logic by call to
2207 alpha_supply_fp_regs.
2208 (alpha_linux_collect_fpregset): New function.
2209 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2210
2211 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2212
2213 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2214 by call to regcache_collect_regset.
2215 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2216 instead of aarch64_linux_supply_gregset/_fpregset.
2217 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2218 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2219 header file instead.
2220 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2221 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2222 functions. Move logic to ...
2223 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2224 register maps.
2225 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2226 refer to new register maps, replace *_regset_from_core by
2227 regcache_supply_regset, and also use regcache_collect_regset.
2228 * aarch64-linux-tdep.h: Include "regset.h".
2229 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2230 Delete prototypes.
2231 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2232 macros, moved from C source file.
2233 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2234 variable declarations.
2235
2236 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2237
2238 * s390-linux-nat.c: Include "regset.h".
2239 (regmap_gregset): Delete macro.
2240 (s390_64_regmap_gregset): New register map for
2241 regcache_supply/_collect_regset.
2242 (s390_64_gregset): New regset.
2243 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2244 (regmap_fpregset): Delete macro.
2245 (s390_native_supply, s390_native_collect): Delete functions.
2246 (supply_gregset, fill_gregset): Replace s390-specific regmap
2247 handling by a call to regcache_supply/_collect_regset.
2248 (supply_fpregset, fill_fpregset): Call regcache_supply/
2249 _collect_regset instead of s390_native_supply/_collect.
2250 (fetch_regset, store_regset): Likewise. Also change the last
2251 parameter to a regset instead of a regmap.
2252 (s390_linux_fetch_inferior_registers)
2253 (390_linux_store_inferior_registers): Adjust last parameter in
2254 calls to fetch_regset and store_regset.
2255 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2256 (s390_gregmap): ... this. Also make static const and convert to
2257 regcache_map_entry format.
2258 (s390x_regmap_gregset): Delete.
2259 (s390_regmap_fpregset): Rename to...
2260 (s390_fpregmap): ... this. Make static const and convert to
2261 regcache_map_entry format.
2262 (s390_regmap_upper, s390_regmap_last_break)
2263 (s390x_regmap_last_break, s390_regmap_system_call)
2264 (s390_regmap_tdb): Likewise.
2265 (s390_supply_regset, s390_collect_regset): Remove functions.
2266 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2267 s390_supply_regset.
2268 (s390_gregset, s390_fpregset, s390_upper_regset)
2269 (s390_last_break_regset, s390x_last_break_regset)
2270 (s390_system_call_regset, s390_tdb_regset): Make global and
2271 replace s390_supply/_collect_regset by regcache_supply/
2272 _collect_regset.
2273 (s390x_gregset): Delete.
2274 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2275 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2276 (s390_regmap_fpregset, s390_regmap_last_break)
2277 (s390x_regmap_last_break, s390_regmap_system_call)
2278 (s390_regmap_tdb): Delete global variable declarations.
2279 (s390_gregset, s390_fpregset, s390_last_break_regset)
2280 (s390x_last_break_regset, s390_system_call_regset)
2281 (s390_tdb_regset): New global variable declarations.
2282
2283 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2284
2285 * regcache.c: Include "regset.h".
2286 (regcache_transfer_regset): New local function.
2287 (regcache_supply_regset, regcache_collect_regset): New functions.
2288 * regcache.h (struct regcache_map_entry): New structure.
2289 (REGCACHE_MAP_SKIP): New enum value.
2290 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2291
2292 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2293
2294 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2295 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2296 (ppc_linux_collect_gregset ): Likewise.
2297 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2298 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2299 (ppc_collect_vrregset): Likewise.
2300 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2301 Likewise.
2302
2303 2014-08-07 Yao Qi <yao@codesourcery.com>
2304
2305 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2306 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2307 * remote.c (remote_read_bytes): Likewise.
2308
2309 2014-08-07 Yao Qi <yao@codesourcery.com>
2310
2311 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2312
2313 2014-08-07 Yao Qi <yao@codesourcery.com>
2314
2315 PR remote/17230
2316 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2317 TARGET_XFER_OK instead of 0.
2318
2319 2014-08-07 Gary Benson <gbenson@redhat.com>
2320
2321 * common/common-defs.h: Include errno.h.
2322 * defs.h: Do not include errno.h.
2323 * ada-typeprint.c: Likewise.
2324 * c-typeprint.c: Likewise.
2325 * core-regset.c: Likewise.
2326 * corefile.c: Likewise.
2327 * corelow.c: Likewise.
2328 * event-loop.c: Likewise.
2329 * f-typeprint.c: Likewise.
2330 * gnu-nat.c: Likewise.
2331 * go32-nat.c: Likewise.
2332 * i386gnu-nat.c: Likewise.
2333 * m2-typeprint.c: Likewise.
2334 * nat/linux-btrace.c: Likewise.
2335 * p-typeprint.c: Likewise.
2336 * procfs.c: Likewise.
2337 * remote-sim.c: Likewise.
2338 * rs6000-nat.c: Likewise.
2339 * target.c: Likewise.
2340 * typeprint.c: Likewise.
2341 * ui-file.c: Likewise.
2342 * valops.c: Likewise.
2343 * valprint.c: Likewise.
2344
2345 2014-08-07 Gary Benson <gbenson@redhat.com>
2346
2347 * common/common-defs.h: Include string.h.
2348 * aarch64-tdep.c: Do not include string.h.
2349 * ada-exp.y: Likewise.
2350 * ada-lang.c: Likewise.
2351 * ada-lex.l: Likewise.
2352 * ada-typeprint.c: Likewise.
2353 * ada-valprint.c: Likewise.
2354 * aix-thread.c: Likewise.
2355 * alpha-linux-tdep.c: Likewise.
2356 * alpha-mdebug-tdep.c: Likewise.
2357 * alpha-nat.c: Likewise.
2358 * alpha-osf1-tdep.c: Likewise.
2359 * alpha-tdep.c: Likewise.
2360 * alphanbsd-tdep.c: Likewise.
2361 * amd64-dicos-tdep.c: Likewise.
2362 * amd64-linux-tdep.c: Likewise.
2363 * amd64-nat.c: Likewise.
2364 * amd64-sol2-tdep.c: Likewise.
2365 * amd64fbsd-tdep.c: Likewise.
2366 * amd64obsd-tdep.c: Likewise.
2367 * arch-utils.c: Likewise.
2368 * arm-linux-nat.c: Likewise.
2369 * arm-linux-tdep.c: Likewise.
2370 * arm-tdep.c: Likewise.
2371 * arm-wince-tdep.c: Likewise.
2372 * armbsd-tdep.c: Likewise.
2373 * armnbsd-nat.c: Likewise.
2374 * armnbsd-tdep.c: Likewise.
2375 * armobsd-tdep.c: Likewise.
2376 * avr-tdep.c: Likewise.
2377 * ax-gdb.c: Likewise.
2378 * ax-general.c: Likewise.
2379 * bcache.c: Likewise.
2380 * bfin-tdep.c: Likewise.
2381 * breakpoint.c: Likewise.
2382 * build-id.c: Likewise.
2383 * buildsym.c: Likewise.
2384 * c-exp.y: Likewise.
2385 * c-lang.c: Likewise.
2386 * c-typeprint.c: Likewise.
2387 * c-valprint.c: Likewise.
2388 * charset.c: Likewise.
2389 * cli-out.c: Likewise.
2390 * cli/cli-cmds.c: Likewise.
2391 * cli/cli-decode.c: Likewise.
2392 * cli/cli-dump.c: Likewise.
2393 * cli/cli-interp.c: Likewise.
2394 * cli/cli-logging.c: Likewise.
2395 * cli/cli-script.c: Likewise.
2396 * cli/cli-setshow.c: Likewise.
2397 * cli/cli-utils.c: Likewise.
2398 * coffread.c: Likewise.
2399 * common/agent.c: Likewise.
2400 * common/buffer.c: Likewise.
2401 * common/buffer.h: Likewise.
2402 * common/common-utils.c: Likewise.
2403 * common/filestuff.c: Likewise.
2404 * common/filestuff.c: Likewise.
2405 * common/format.c: Likewise.
2406 * common/print-utils.c: Likewise.
2407 * common/rsp-low.c: Likewise.
2408 * common/signals.c: Likewise.
2409 * common/vec.h: Likewise.
2410 * common/xml-utils.c: Likewise.
2411 * core-regset.c: Likewise.
2412 * corefile.c: Likewise.
2413 * corelow.c: Likewise.
2414 * cp-abi.c: Likewise.
2415 * cp-name-parser.y: Likewise.
2416 * cp-support.c: Likewise.
2417 * cp-valprint.c: Likewise.
2418 * cris-tdep.c: Likewise.
2419 * d-exp.y: Likewise.
2420 * darwin-nat.c: Likewise.
2421 * dbxread.c: Likewise.
2422 * dcache.c: Likewise.
2423 * demangle.c: Likewise.
2424 * dicos-tdep.c: Likewise.
2425 * disasm.c: Likewise.
2426 * doublest.c: Likewise.
2427 * dsrec.c: Likewise.
2428 * dummy-frame.c: Likewise.
2429 * dwarf2-frame.c: Likewise.
2430 * dwarf2loc.c: Likewise.
2431 * dwarf2read.c: Likewise.
2432 * elfread.c: Likewise.
2433 * environ.c: Likewise.
2434 * eval.c: Likewise.
2435 * event-loop.c: Likewise.
2436 * exceptions.c: Likewise.
2437 * exec.c: Likewise.
2438 * expprint.c: Likewise.
2439 * f-exp.y: Likewise.
2440 * f-lang.c: Likewise.
2441 * f-typeprint.c: Likewise.
2442 * f-valprint.c: Likewise.
2443 * fbsd-nat.c: Likewise.
2444 * findcmd.c: Likewise.
2445 * findvar.c: Likewise.
2446 * fork-child.c: Likewise.
2447 * frame.c: Likewise.
2448 * frv-linux-tdep.c: Likewise.
2449 * frv-tdep.c: Likewise.
2450 * gdb.c: Likewise.
2451 * gdb_bfd.c: Likewise.
2452 * gdbarch.c: Likewise.
2453 * gdbarch.sh: Likewise.
2454 * gdbtypes.c: Likewise.
2455 * gnu-nat.c: Likewise.
2456 * gnu-v2-abi.c: Likewise.
2457 * gnu-v3-abi.c: Likewise.
2458 * go-exp.y: Likewise.
2459 * go-lang.c: Likewise.
2460 * go32-nat.c: Likewise.
2461 * guile/guile.c: Likewise.
2462 * guile/scm-auto-load.c: Likewise.
2463 * hppa-hpux-tdep.c: Likewise.
2464 * hppa-linux-nat.c: Likewise.
2465 * hppanbsd-tdep.c: Likewise.
2466 * hppaobsd-tdep.c: Likewise.
2467 * i386-cygwin-tdep.c: Likewise.
2468 * i386-dicos-tdep.c: Likewise.
2469 * i386-linux-tdep.c: Likewise.
2470 * i386-nto-tdep.c: Likewise.
2471 * i386-sol2-tdep.c: Likewise.
2472 * i386-tdep.c: Likewise.
2473 * i386bsd-tdep.c: Likewise.
2474 * i386gnu-nat.c: Likewise.
2475 * i386nbsd-tdep.c: Likewise.
2476 * i386obsd-tdep.c: Likewise.
2477 * i387-tdep.c: Likewise.
2478 * ia64-libunwind-tdep.c: Likewise.
2479 * ia64-linux-nat.c: Likewise.
2480 * inf-child.c: Likewise.
2481 * inf-ptrace.c: Likewise.
2482 * inf-ttrace.c: Likewise.
2483 * infcall.c: Likewise.
2484 * infcmd.c: Likewise.
2485 * inflow.c: Likewise.
2486 * infrun.c: Likewise.
2487 * interps.c: Likewise.
2488 * iq2000-tdep.c: Likewise.
2489 * irix5-nat.c: Likewise.
2490 * jv-exp.y: Likewise.
2491 * jv-lang.c: Likewise.
2492 * jv-typeprint.c: Likewise.
2493 * jv-valprint.c: Likewise.
2494 * language.c: Likewise.
2495 * linux-fork.c: Likewise.
2496 * linux-nat.c: Likewise.
2497 * lm32-tdep.c: Likewise.
2498 * m2-exp.y: Likewise.
2499 * m2-typeprint.c: Likewise.
2500 * m32c-tdep.c: Likewise.
2501 * m32r-linux-nat.c: Likewise.
2502 * m32r-linux-tdep.c: Likewise.
2503 * m32r-rom.c: Likewise.
2504 * m32r-tdep.c: Likewise.
2505 * m68hc11-tdep.c: Likewise.
2506 * m68k-tdep.c: Likewise.
2507 * m68kbsd-tdep.c: Likewise.
2508 * m68klinux-nat.c: Likewise.
2509 * m68klinux-tdep.c: Likewise.
2510 * m88k-tdep.c: Likewise.
2511 * machoread.c: Likewise.
2512 * macrocmd.c: Likewise.
2513 * main.c: Likewise.
2514 * mdebugread.c: Likewise.
2515 * mem-break.c: Likewise.
2516 * memattr.c: Likewise.
2517 * memory-map.c: Likewise.
2518 * mep-tdep.c: Likewise.
2519 * mi/mi-cmd-break.c: Likewise.
2520 * mi/mi-cmd-disas.c: Likewise.
2521 * mi/mi-cmd-env.c: Likewise.
2522 * mi/mi-cmd-stack.c: Likewise.
2523 * mi/mi-cmd-var.c: Likewise.
2524 * mi/mi-cmds.c: Likewise.
2525 * mi/mi-console.c: Likewise.
2526 * mi/mi-getopt.c: Likewise.
2527 * mi/mi-interp.c: Likewise.
2528 * mi/mi-main.c: Likewise.
2529 * mi/mi-parse.c: Likewise.
2530 * microblaze-rom.c: Likewise.
2531 * microblaze-tdep.c: Likewise.
2532 * mingw-hdep.c: Likewise.
2533 * minidebug.c: Likewise.
2534 * minsyms.c: Likewise.
2535 * mips-irix-tdep.c: Likewise.
2536 * mips-linux-tdep.c: Likewise.
2537 * mips-tdep.c: Likewise.
2538 * mips64obsd-tdep.c: Likewise.
2539 * mipsnbsd-tdep.c: Likewise.
2540 * mipsread.c: Likewise.
2541 * mn10300-linux-tdep.c: Likewise.
2542 * mn10300-tdep.c: Likewise.
2543 * monitor.c: Likewise.
2544 * moxie-tdep.c: Likewise.
2545 * mt-tdep.c: Likewise.
2546 * nat/linux-btrace.c: Likewise.
2547 * nat/linux-osdata.c: Likewise.
2548 * nat/linux-procfs.c: Likewise.
2549 * nat/linux-ptrace.c: Likewise.
2550 * nat/linux-waitpid.c: Likewise.
2551 * nbsd-tdep.c: Likewise.
2552 * nios2-linux-tdep.c: Likewise.
2553 * nto-procfs.c: Likewise.
2554 * nto-tdep.c: Likewise.
2555 * objc-lang.c: Likewise.
2556 * objfiles.c: Likewise.
2557 * opencl-lang.c: Likewise.
2558 * osabi.c: Likewise.
2559 * osdata.c: Likewise.
2560 * p-exp.y: Likewise.
2561 * p-lang.c: Likewise.
2562 * p-typeprint.c: Likewise.
2563 * parse.c: Likewise.
2564 * posix-hdep.c: Likewise.
2565 * ppc-linux-nat.c: Likewise.
2566 * ppc-sysv-tdep.c: Likewise.
2567 * ppcfbsd-tdep.c: Likewise.
2568 * ppcnbsd-tdep.c: Likewise.
2569 * ppcobsd-tdep.c: Likewise.
2570 * printcmd.c: Likewise.
2571 * procfs.c: Likewise.
2572 * prologue-value.c: Likewise.
2573 * python/py-auto-load.c: Likewise.
2574 * python/py-gdb-readline.c: Likewise.
2575 * ravenscar-thread.c: Likewise.
2576 * regcache.c: Likewise.
2577 * registry.c: Likewise.
2578 * remote-fileio.c: Likewise.
2579 * remote-m32r-sdi.c: Likewise.
2580 * remote-mips.c: Likewise.
2581 * remote-notif.c: Likewise.
2582 * remote-sim.c: Likewise.
2583 * remote.c: Likewise.
2584 * reverse.c: Likewise.
2585 * rs6000-aix-tdep.c: Likewise.
2586 * ser-base.c: Likewise.
2587 * ser-go32.c: Likewise.
2588 * ser-mingw.c: Likewise.
2589 * ser-pipe.c: Likewise.
2590 * ser-tcp.c: Likewise.
2591 * ser-unix.c: Likewise.
2592 * serial.c: Likewise.
2593 * sh-tdep.c: Likewise.
2594 * sh64-tdep.c: Likewise.
2595 * shnbsd-tdep.c: Likewise.
2596 * skip.c: Likewise.
2597 * sol-thread.c: Likewise.
2598 * solib-dsbt.c: Likewise.
2599 * solib-frv.c: Likewise.
2600 * solib-osf.c: Likewise.
2601 * solib-som.c: Likewise.
2602 * solib-spu.c: Likewise.
2603 * solib-target.c: Likewise.
2604 * solib.c: Likewise.
2605 * somread.c: Likewise.
2606 * source.c: Likewise.
2607 * sparc-nat.c: Likewise.
2608 * sparc-sol2-tdep.c: Likewise.
2609 * sparc-tdep.c: Likewise.
2610 * sparc64-tdep.c: Likewise.
2611 * sparc64fbsd-tdep.c: Likewise.
2612 * sparc64nbsd-tdep.c: Likewise.
2613 * sparcnbsd-tdep.c: Likewise.
2614 * spu-linux-nat.c: Likewise.
2615 * spu-multiarch.c: Likewise.
2616 * spu-tdep.c: Likewise.
2617 * stabsread.c: Likewise.
2618 * stack.c: Likewise.
2619 * std-regs.c: Likewise.
2620 * symfile.c: Likewise.
2621 * symmisc.c: Likewise.
2622 * symtab.c: Likewise.
2623 * target.c: Likewise.
2624 * thread.c: Likewise.
2625 * tilegx-linux-nat.c: Likewise.
2626 * tilegx-tdep.c: Likewise.
2627 * top.c: Likewise.
2628 * tracepoint.c: Likewise.
2629 * tui/tui-command.c: Likewise.
2630 * tui/tui-data.c: Likewise.
2631 * tui/tui-disasm.c: Likewise.
2632 * tui/tui-file.c: Likewise.
2633 * tui/tui-layout.c: Likewise.
2634 * tui/tui-out.c: Likewise.
2635 * tui/tui-regs.c: Likewise.
2636 * tui/tui-source.c: Likewise.
2637 * tui/tui-stack.c: Likewise.
2638 * tui/tui-win.c: Likewise.
2639 * tui/tui-windata.c: Likewise.
2640 * tui/tui-winsource.c: Likewise.
2641 * typeprint.c: Likewise.
2642 * ui-file.c: Likewise.
2643 * ui-out.c: Likewise.
2644 * user-regs.c: Likewise.
2645 * utils.c: Likewise.
2646 * v850-tdep.c: Likewise.
2647 * valarith.c: Likewise.
2648 * valops.c: Likewise.
2649 * valprint.c: Likewise.
2650 * value.c: Likewise.
2651 * varobj.c: Likewise.
2652 * vax-tdep.c: Likewise.
2653 * vaxnbsd-tdep.c: Likewise.
2654 * vaxobsd-tdep.c: Likewise.
2655 * windows-nat.c: Likewise.
2656 * xcoffread.c: Likewise.
2657 * xml-support.c: Likewise.
2658 * xstormy16-tdep.c: Likewise.
2659 * xtensa-linux-nat.c: Likewise.
2660
2661 2014-08-07 Gary Benson <gbenson@redhat.com>
2662
2663 * common/common-defs.h: Include gdb_assert.h.
2664 * aarch64-tdep.c: Do not include gdb_assert.h.
2665 * addrmap.c: Likewise.
2666 * aix-thread.c: Likewise.
2667 * alpha-linux-tdep.c: Likewise.
2668 * alpha-mdebug-tdep.c: Likewise.
2669 * alphanbsd-tdep.c: Likewise.
2670 * amd64-nat.c: Likewise.
2671 * amd64-tdep.c: Likewise.
2672 * amd64bsd-nat.c: Likewise.
2673 * amd64fbsd-nat.c: Likewise.
2674 * amd64fbsd-tdep.c: Likewise.
2675 * amd64nbsd-nat.c: Likewise.
2676 * amd64nbsd-tdep.c: Likewise.
2677 * amd64obsd-nat.c: Likewise.
2678 * amd64obsd-tdep.c: Likewise.
2679 * arch-utils.c: Likewise.
2680 * arm-tdep.c: Likewise.
2681 * armbsd-tdep.c: Likewise.
2682 * auxv.c: Likewise.
2683 * bcache.c: Likewise.
2684 * bfin-tdep.c: Likewise.
2685 * blockframe.c: Likewise.
2686 * breakpoint.c: Likewise.
2687 * bsd-kvm.c: Likewise.
2688 * bsd-uthread.c: Likewise.
2689 * buildsym.c: Likewise.
2690 * c-exp.y: Likewise.
2691 * c-lang.c: Likewise.
2692 * charset.c: Likewise.
2693 * cleanups.c: Likewise.
2694 * cli-out.c: Likewise.
2695 * cli/cli-decode.c: Likewise.
2696 * cli/cli-dump.c: Likewise.
2697 * cli/cli-logging.c: Likewise.
2698 * cli/cli-script.c: Likewise.
2699 * cli/cli-utils.c: Likewise.
2700 * coffread.c: Likewise.
2701 * common/common-utils.c: Likewise.
2702 * common/queue.h: Likewise.
2703 * common/signals.c: Likewise.
2704 * common/vec.h: Likewise.
2705 * complaints.c: Likewise.
2706 * completer.c: Likewise.
2707 * corelow.c: Likewise.
2708 * cp-abi.c: Likewise.
2709 * cp-name-parser.y: Likewise.
2710 * cp-namespace.c: Likewise.
2711 * cp-support.c: Likewise.
2712 * cris-tdep.c: Likewise.
2713 * dbxread.c: Likewise.
2714 * dictionary.c: Likewise.
2715 * doublest.c: Likewise.
2716 * dsrec.c: Likewise.
2717 * dummy-frame.c: Likewise.
2718 * dwarf2-frame-tailcall.c: Likewise.
2719 * dwarf2-frame.c: Likewise.
2720 * dwarf2expr.c: Likewise.
2721 * dwarf2loc.c: Likewise.
2722 * dwarf2read.c: Likewise.
2723 * eval.c: Likewise.
2724 * event-loop.c: Likewise.
2725 * exceptions.c: Likewise.
2726 * expprint.c: Likewise.
2727 * f-valprint.c: Likewise.
2728 * fbsd-nat.c: Likewise.
2729 * findvar.c: Likewise.
2730 * frame-unwind.c: Likewise.
2731 * frame.c: Likewise.
2732 * frv-tdep.c: Likewise.
2733 * gcore.c: Likewise.
2734 * gdb-dlfcn.c: Likewise.
2735 * gdb_bfd.c: Likewise.
2736 * gdbarch.c: Likewise.
2737 * gdbarch.sh: Likewise.
2738 * gdbtypes.c: Likewise.
2739 * gnu-nat.c: Likewise.
2740 * gnu-v3-abi.c: Likewise.
2741 * go-lang.c: Likewise.
2742 * guile/scm-exception.c: Likewise.
2743 * guile/scm-gsmob.c: Likewise.
2744 * guile/scm-lazy-string.c: Likewise.
2745 * guile/scm-math.c: Likewise.
2746 * guile/scm-pretty-print.c: Likewise.
2747 * guile/scm-safe-call.c: Likewise.
2748 * guile/scm-utils.c: Likewise.
2749 * guile/scm-value.c: Likewise.
2750 * h8300-tdep.c: Likewise.
2751 * hppa-hpux-nat.c: Likewise.
2752 * hppa-tdep.c: Likewise.
2753 * hppanbsd-tdep.c: Likewise.
2754 * hppaobsd-tdep.c: Likewise.
2755 * i386-darwin-nat.c: Likewise.
2756 * i386-darwin-tdep.c: Likewise.
2757 * i386-nto-tdep.c: Likewise.
2758 * i386-tdep.c: Likewise.
2759 * i386bsd-nat.c: Likewise.
2760 * i386fbsd-tdep.c: Likewise.
2761 * i386gnu-nat.c: Likewise.
2762 * i386nbsd-tdep.c: Likewise.
2763 * i386obsd-tdep.c: Likewise.
2764 * i387-tdep.c: Likewise.
2765 * ia64-libunwind-tdep.c: Likewise.
2766 * ia64-tdep.c: Likewise.
2767 * inf-ptrace.c: Likewise.
2768 * inf-ttrace.c: Likewise.
2769 * infcall.c: Likewise.
2770 * infcmd.c: Likewise.
2771 * infrun.c: Likewise.
2772 * inline-frame.c: Likewise.
2773 * interps.c: Likewise.
2774 * jv-lang.c: Likewise.
2775 * jv-typeprint.c: Likewise.
2776 * linux-fork.c: Likewise.
2777 * linux-nat.c: Likewise.
2778 * linux-thread-db.c: Likewise.
2779 * m32c-tdep.c: Likewise.
2780 * m32r-linux-nat.c: Likewise.
2781 * m32r-tdep.c: Likewise.
2782 * m68k-tdep.c: Likewise.
2783 * m68kbsd-nat.c: Likewise.
2784 * m68kbsd-tdep.c: Likewise.
2785 * m88k-tdep.c: Likewise.
2786 * machoread.c: Likewise.
2787 * macroexp.c: Likewise.
2788 * macrotab.c: Likewise.
2789 * maint.c: Likewise.
2790 * mdebugread.c: Likewise.
2791 * memory-map.c: Likewise.
2792 * mep-tdep.c: Likewise.
2793 * mi/mi-common.c: Likewise.
2794 * microblaze-tdep.c: Likewise.
2795 * mingw-hdep.c: Likewise.
2796 * mips-linux-nat.c: Likewise.
2797 * mips-linux-tdep.c: Likewise.
2798 * mips-tdep.c: Likewise.
2799 * mips64obsd-tdep.c: Likewise.
2800 * mipsnbsd-tdep.c: Likewise.
2801 * mn10300-linux-tdep.c: Likewise.
2802 * mn10300-tdep.c: Likewise.
2803 * moxie-tdep.c: Likewise.
2804 * mt-tdep.c: Likewise.
2805 * nat/linux-btrace.c: Likewise.
2806 * nat/linux-osdata.c: Likewise.
2807 * nat/linux-ptrace.c: Likewise.
2808 * nat/mips-linux-watch.c: Likewise.
2809 * nios2-linux-tdep.c: Likewise.
2810 * nios2-tdep.c: Likewise.
2811 * objc-lang.c: Likewise.
2812 * objfiles.c: Likewise.
2813 * obsd-nat.c: Likewise.
2814 * opencl-lang.c: Likewise.
2815 * osabi.c: Likewise.
2816 * parse.c: Likewise.
2817 * ppc-linux-nat.c: Likewise.
2818 * ppc-sysv-tdep.c: Likewise.
2819 * ppcfbsd-nat.c: Likewise.
2820 * ppcfbsd-tdep.c: Likewise.
2821 * ppcnbsd-nat.c: Likewise.
2822 * ppcnbsd-tdep.c: Likewise.
2823 * ppcobsd-nat.c: Likewise.
2824 * ppcobsd-tdep.c: Likewise.
2825 * printcmd.c: Likewise.
2826 * procfs.c: Likewise.
2827 * prologue-value.c: Likewise.
2828 * psymtab.c: Likewise.
2829 * python/py-lazy-string.c: Likewise.
2830 * python/py-value.c: Likewise.
2831 * regcache.c: Likewise.
2832 * reggroups.c: Likewise.
2833 * registry.c: Likewise.
2834 * remote-sim.c: Likewise.
2835 * remote.c: Likewise.
2836 * rs6000-aix-tdep.c: Likewise.
2837 * rs6000-tdep.c: Likewise.
2838 * s390-linux-tdep.c: Likewise.
2839 * score-tdep.c: Likewise.
2840 * ser-base.c: Likewise.
2841 * ser-mingw.c: Likewise.
2842 * sh-tdep.c: Likewise.
2843 * sh64-tdep.c: Likewise.
2844 * solib-darwin.c: Likewise.
2845 * solib-spu.c: Likewise.
2846 * solib-svr4.c: Likewise.
2847 * source.c: Likewise.
2848 * sparc-nat.c: Likewise.
2849 * sparc-sol2-tdep.c: Likewise.
2850 * sparc-tdep.c: Likewise.
2851 * sparc64-sol2-tdep.c: Likewise.
2852 * sparc64-tdep.c: Likewise.
2853 * sparc64fbsd-tdep.c: Likewise.
2854 * sparc64nbsd-tdep.c: Likewise.
2855 * sparc64obsd-tdep.c: Likewise.
2856 * sparcnbsd-tdep.c: Likewise.
2857 * sparcobsd-tdep.c: Likewise.
2858 * spu-multiarch.c: Likewise.
2859 * spu-tdep.c: Likewise.
2860 * stabsread.c: Likewise.
2861 * stack.c: Likewise.
2862 * symfile.c: Likewise.
2863 * symtab.c: Likewise.
2864 * target-descriptions.c: Likewise.
2865 * target-memory.c: Likewise.
2866 * target.c: Likewise.
2867 * tic6x-linux-tdep.c: Likewise.
2868 * tic6x-tdep.c: Likewise.
2869 * tilegx-linux-nat.c: Likewise.
2870 * tilegx-tdep.c: Likewise.
2871 * top.c: Likewise.
2872 * tramp-frame.c: Likewise.
2873 * tui/tui-out.c: Likewise.
2874 * tui/tui-winsource.c: Likewise.
2875 * ui-out.c: Likewise.
2876 * user-regs.c: Likewise.
2877 * utils.c: Likewise.
2878 * v850-tdep.c: Likewise.
2879 * valops.c: Likewise.
2880 * value.c: Likewise.
2881 * varobj.c: Likewise.
2882 * vax-nat.c: Likewise.
2883 * xml-syscall.c: Likewise.
2884 * xml-tdesc.c: Likewise.
2885 * xstormy16-tdep.c: Likewise.
2886 * xtensa-linux-nat.c: Likewise.
2887 * xtensa-tdep.c: Likewise.
2888
2889 2014-08-07 Gary Benson <gbenson@redhat.com>
2890
2891 * common/common-defs.h: Include common-utils.h.
2892 * defs.h: Do not include common-utils.h.
2893 * common/gdb_assert.h: Likewise.
2894 * darwin-nat.h: Likewise.
2895 * nat/linux-btrace.c: Likewise.
2896 * target/waitstatus.h: Likewise.
2897
2898 2014-08-07 Gary Benson <gbenson@redhat.com>
2899
2900 * common/common-defs.h: Include ptid.h.
2901 * defs.h: Do not include ptid.h.
2902 * inferior.h: Likewise.
2903 * infrun.h: Likewise.
2904 * nat/linux-btrace.h: Likewise.
2905 * nat/linux-osdata.h: Likewise.
2906 * target/waitstatus.h: Likewise.
2907
2908 2014-08-07 Gary Benson <gbenson@redhat.com>
2909
2910 * common/common-defs.h: Include gdb_locale.h.
2911 * defs.h: Do not include gdb_locale.h.
2912
2913 2014-08-07 Gary Benson <gbenson@redhat.com>
2914
2915 * common/common-defs.h: Include gdb/signals.h.
2916 * defs.h: Do not include gdb/signals.h.
2917
2918 2014-08-07 Gary Benson <gbenson@redhat.com>
2919
2920 * common/common-defs.h: Include pathmax.h.
2921 * defs.h: Do not include pathmax.h.
2922
2923 2014-08-07 Gary Benson <gbenson@redhat.com>
2924
2925 * common/common-defs.h: Include libiberty.h.
2926 * defs.h: Do not include libiberty.h.
2927 * common/queue.h: Likewise.
2928 * cp-name-parser.y: Likewise.
2929 * mi/mi-cmd-catch.c: Likewise.
2930 * python/python.c: Likewise.
2931
2932 2014-08-07 Gary Benson <gbenson@redhat.com>
2933
2934 * common/common-defs.h: Include ansidecl.h.
2935 * defs.h: Do not include ansidecl.h.
2936 * common/buffer.h: Likewise.
2937 * common/common-utils.h: Likewise.
2938
2939 2014-08-07 Gary Benson <gbenson@redhat.com>
2940
2941 * common/common-defs.h: Include stddef.h.
2942 * defs.h: Do not include stddef.h.
2943 * common/common-utils.h: Likewise.
2944 * amd64fbsd-nat.c: Likewise.
2945 * bcache.c: Likewise.
2946 * charset.c: Likewise.
2947 * common/buffer.h: Likewise.
2948 * common/vec.h: Likewise.
2949 * i386bsd-nat.c: Likewise.
2950 * nat/linux-btrace.h: Likewise.
2951 * ppcfbsd-nat.c: Likewise.
2952 * ppcnbsd-tdep.h: Likewise.
2953 * ppcobsd-nat.c: Likewise.
2954 * ppcobsd-tdep.h: Likewise.
2955 * python/py-gdb-readline.c: Likewise.
2956
2957 2014-08-07 Gary Benson <gbenson@redhat.com>
2958
2959 * common/common-defs.h: Include stdarg.h.
2960 * defs.h: Do not include stdarg.h.
2961 * ada-lang.c: Likewise.
2962 * common/common-utils.h: Likewise.
2963 * guile/scm-string.c: Likewise.
2964 * guile/scm-utils.c: Likewise.
2965 * m32c-tdep.c: Likewise.
2966
2967 2014-08-07 Gary Benson <gbenson@redhat.com>
2968
2969 * common/common-defs.h: Include stdlib.h.
2970 * defs.h: Do not include stdlib.h.
2971 * addrmap.c: Likewise.
2972 * bcache.c: Likewise.
2973 * common/buffer.c: Likewise.
2974 * common/common-utils.c: Likewise.
2975 * cp-name-parser.y: Likewise.
2976 * go32-nat.c: Likewise.
2977 * mn10300-linux-tdep.c: Likewise.
2978 * nat/linux-osdata.c: Likewise.
2979 * tui/tui.c: Likewise.
2980 * windows-nat.c: Likewise.
2981
2982 2014-08-07 Gary Benson <gbenson@redhat.com>
2983
2984 * common/common-defs.h: Include stdio.h.
2985 * defs.h: Do not include stdio.h.
2986 * ada-lang.c: Likewise.
2987 * common/buffer.c: Likewise.
2988 * common/common-utils.c: Likewise.
2989 * cp-name-parser.y: Likewise.
2990 * gnu-nat.c: Likewise.
2991 * go32-nat.c: Likewise.
2992 * i386gnu-nat.c: Likewise.
2993 * proc-api.c: Likewise.
2994 * proc-events.c: Likewise.
2995 * proc-flags.c: Likewise.
2996 * proc-why.c: Likewise.
2997 * python/python-internal.h: Likewise.
2998 * target-memory.c: Likewise.
2999 * tui/tui-io.c: Likewise.
3000 * tui/tui.c: Likewise.
3001
3002 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3003
3004 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3005 (scan_dyntag_auxv): Same.
3006
3007 2014-08-06 Yao Qi <yao@codesourcery.com>
3008
3009 * amd64-linux-nat.c: Remove duplicated include
3010 "x86-linux-nat.h".
3011 * i386-linux-nat.c: Likewise.
3012
3013 2014-08-06 Yao Qi <yao@codesourcery.com>
3014
3015 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3016 operand" with "Special opcode" in comments.
3017
3018 2014-08-05 Gary Benson <gbenson@redhat.com>
3019
3020 * interps.c (initialize_interps): Remove prototype.
3021 (interpreter_initialized): Remove static global.
3022 (interp_add): Do not call initialize_interps.
3023 (initialize_interps): Remove function.
3024
3025 2014-08-05 Gary Benson <gbenson@redhat.com>
3026
3027 * utils.c (vwarning): Remove spurious va_end.
3028
3029 2014-08-05 Alan Modra <amodra@gmail.com>
3030
3031 * charset.c (convert_between_encodings): Cast result of obstack_base.
3032 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3033 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3034 (read_unwind_info): Use size_t for some locals.
3035 * jit.c (finalize_symtab): Likewise.
3036 * utils.c (hashtab_obstack_allocate): Likewise.
3037 * symmisc.c (print_objfile_statistics): Update format strings.
3038
3039 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3040
3041 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3042 (Changes in GDB 7.8): ... here.
3043
3044 2014-08-04 Tom Tromey <tromey@redhat.com>
3045
3046 * target.c (set_targetdebug): New function.
3047 (initialize_targets): Pass set_targetdebug when creating "set
3048 debug target".
3049
3050 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3051
3052 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3053 if detecting a variable-sized field that is not the last field.
3054 Fix struct type length computation.
3055
3056 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3057
3058 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3059 Add debug trace.
3060
3061 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3062
3063 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3064 Remove "+ 8" offset in computation of CHAIN_VMA.
3065
3066 2014-07-31 Doug Evans <dje@google.com>
3067
3068 * inflow.c (child_terminal_inferior): Add comment.
3069 (child_terminal_ours_for_output): Add comment.
3070 (child_terminal_ours): Add comment.
3071 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3072 (linux_nat_terminal_ours): Add comment.
3073
3074 2014-07-31 Gary Benson <gbenson@redhat.com>
3075
3076 * common/btrace-common.h: Do not include defs.h or server.h.
3077 * nat/mips-linux-watch.h: Likewise.
3078 * gdb-dlfcn.h: Do not include defs.h.
3079 * tracefile.h: Likewise.
3080
3081 2014-07-30 Roland McGrath <mcgrathr@google.com>
3082
3083 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3084
3085 2014-07-30 Tom Tromey <tromey@redhat.com>
3086
3087 * bsd-kvm.c (bsd_kvm_open): Constify.
3088 * corelow.c (core_open): Constify.
3089 * ctf.c (ctf_open): Constify.
3090 * dbug-rom.c (dbug_open): Constify.
3091 * exec.c (exec_open): Constify.
3092 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3093 * microblaze-rom.c (picobug_open): Constify.
3094 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3095 Constify.
3096 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3097 * record-btrace.c (record_btrace_open): Constify.
3098 * record-full.c (record_full_core_open_1, record_full_open_1)
3099 (record_full_open): Constify.
3100 * remote-m32r-sdi.c (m32r_open): Constify.
3101 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3102 (rockhopper_open, lsi_open): Constify.
3103 * remote-sim.c (gdbsim_open): Constify.
3104 * remote.c (remote_open, extended_remote_open, remote_open_1):
3105 Constify.
3106 * target.h (struct target_ops) <to_open>: Make "arg" const.
3107 * tracefile-tfile.c (tfile_open): Constify.
3108
3109 2014-07-30 Tom Tromey <tromey@redhat.com>
3110
3111 * breakpoint.c (map_breakpoint_numbers): Update.
3112 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3113 (get_number_const): New function.
3114 (get_number): Rewrite using get_number_const.
3115 (init_number_or_range): Make "string" const.
3116 (number_is_in_list): Make "list" const.
3117 * cli/cli-utils.h (get_number_const): Declare.
3118 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3119 (init_number_or_range, number_is_in_list): Update.
3120 * printcmd.c (map_display_numbers): Update.
3121 * value.c (value_from_history_ref): Constify.
3122 * value.h (value_from_history_ref): Update.
3123
3124 2014-07-30 Tom Tromey <tromey@redhat.com>
3125
3126 * corefile.c (hook_type, call_extra_exec_file_hooks)
3127 (specify_exec_file_hook): Constify.
3128 * exec.c (exec_file_attach): Make "filename" const.
3129 * gdbcore.h (deprecated_exec_file_display_hook)
3130 (specify_exec_file_hook, exec_file_attach): Constify.
3131 * main.c (captured_main): Use catch_command_errors_const.
3132
3133 2014-07-30 Tom Tromey <tromey@redhat.com>
3134
3135 * target.c (open_target): New function.
3136 (add_target_with_completer, add_deprecated_target_alias): Use
3137 set_cmd_sfunc, set_cmd_context.
3138 (debug_to_open): Remove.
3139 (setup_target_debug): Update.
3140
3141 2014-07-30 Yao Qi <yao@codesourcery.com>
3142
3143 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3144 comments.
3145 * parse.c (exp_iterate): Update comments.
3146
3147 2014-07-30 Gary Benson <gbenson@redhat.com>
3148
3149 * common/common-defs.h: New file.
3150 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3151 * defs.h: Include common-defs.h.
3152 Do not include config.h or build-gnulib/config.h.
3153
3154 2014-07-30 Gary Benson <gbenson@redhat.com>
3155
3156 * common/common-utils.h: Do not include config.h.
3157 * nat/linux-btrace.h: Likewise.
3158
3159 2014-07-30 Gary Benson <gbenson@redhat.com>
3160
3161 * btrace.c: Include defs.h.
3162 * common/ptid.c: Include defs.h or server.h as appropriate.
3163 * nat/mips-linux-watch.c: Likewise.
3164
3165 2014-07-29 Tom Tromey <tromey@redhat.com>
3166
3167 * target.c (target_is_pushed): Simplify.
3168
3169 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3170
3171 GDB 7.8 released.
3172
3173 2014-07-29 Yao Qi <yao@codesourcery.com>
3174
3175 PR gdb/17206
3176 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3177
3178 2014-07-28 Doug Evans <xdje42@gmail.com>
3179
3180 PR guile/17203
3181 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3182 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3183 parameters.
3184
3185 2014-07-28 Will Newton <will.newton@linaro.org>
3186
3187 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3188 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3189 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3190 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3191 (THUMB2_EABI_SYSCALL): Likewise.
3192 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3193 struct tramp_frame.
3194 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3195 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3196
3197 2014-07-27 Doug Evans <xdje42@gmail.com>
3198
3199 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3200
3201 2014-07-27 Doug Evans <xdje42@gmail.com>
3202
3203 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3204
3205 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3206 Doug Evans <xdje42@gmail.com>
3207
3208 PR guile/17146
3209 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3210 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3211 * configure.ac: Try to use guild to compile an scm file, if it fails
3212 then disable guile support.
3213 * configure: Regenerate.
3214 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3215 GUILE_FILE_LIST.
3216 (GUILE_COMPILED_FILES): New variable.
3217 (GUILE_FILES) Update.
3218 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3219 (stamp-guile): Compile scm files.
3220 * guile/guile.c (boot_guile_support): New function.
3221 (standard_throw_args_p): New function.
3222 (print_standard_throw_error, print_throw_error): New functions.
3223 (handle_boot_error): New function.
3224 (initialize_scheme_side): Rewrite to call boot_guile_support.
3225 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3226 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3227
3228 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3229 Doug Evans <xdje42@gmail.com>
3230
3231 PR guile/17146
3232 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3233 * guile/lib/gdb/support.scm: New file.
3234 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3235 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3236 All uses updated.
3237 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3238 All uses updated.
3239 (%assert-type): Ditto, and renamed to assert-type.
3240 (%exception-print-style): Delete.
3241
3242 2014-07-26 Doug Evans <xdje42@gmail.com>
3243
3244 PR build/17105
3245 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3246 * configure: Regenerate.
3247 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3248 PYTHON_FILES.
3249 (PYTHON_FILES): New variable.
3250 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3251 (GUILE_FILES): New variable.
3252 (stamp-python, install-python, uninstall-python): Handle empty
3253 file list.
3254 (stamp-guile, install-guile, uninstall-guile): Ditto.
3255
3256 2014-07-26 Doug Evans <xdje42@gmail.com>
3257
3258 PR guile/17177
3259 * guile/lib/gdb.scm (pretty-printers): Export.
3260 (set-pretty-printers!): Export.
3261 * guile/lib/gdb/printing.scm (gdb module): Update.
3262 (prepend-pretty-printer!, append-pretty-printer!): Update.
3263 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3264 (pretty_printer_list_var): Delete.
3265 (pretty_printer_list): New static global.
3266 (gdbscm_pretty_printers): New function.
3267 (gdbscm_set_pretty_printers_x): New function.
3268 (ppscm_find_pretty_printer_from_gdb): Update.
3269 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3270 (gdbscm_initialize_pretty_printers): Update.
3271
3272 2014-07-26 Doug Evans <xdje42@gmail.com>
3273
3274 PR 17185
3275 * configure.ac: Add check for header gc/gc.h.
3276 Add check for function setenv.
3277 * configure: Regenerate.
3278 * config.in: Regenerate.
3279 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3280
3281 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3282
3283 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3284 variation in gdbarch matching.
3285
3286 2014-07-25 Tom Tromey <tromey@redhat.com>
3287
3288 * exec.c (using_exec_ops): Remove.
3289 (exec_close_1): Update. Remove extraneous block, reindent.
3290 (add_target_sections): Use target_is_pushed.
3291
3292 2014-07-25 Pedro Alves <palves@redhat.com>
3293
3294 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3295 * monitor.c (monitor_create_inferior): Likewise.
3296 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3297 * remote-sim.c (gdbsim_create_inferior): Likewise.
3298 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3299 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3300 * windows-nat.c (do_initial_windows_stuff): Likewise.
3301
3302 2014-07-25 Pedro Alves <palves@redhat.com>
3303
3304 * NEWS: Mention signal passing and "signal" command changes.
3305 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3306 comment.
3307 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3308 call.
3309 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3310 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3311 (jump_command): Adjust clear_proceed_status call.
3312 (signal_command): Warn if other thread that are resumed have
3313 signals that will be delivered. Adjust clear_proceed_status call.
3314 (until_next_command, finish_command)
3315 (proceed_after_attach_callback, attach_command_post_wait)
3316 (attach_command): Adjust clear_proceed_status call.
3317 * infrun.c (proceed_after_vfork_done): Likewise.
3318 (proceed_after_attach_callback): Adjust comment.
3319 (clear_proceed_status_thread): Clear stop_signal if not in pass
3320 state.
3321 (clear_proceed_status_callback): Delete.
3322 (clear_proceed_status): New 'step' parameter. Only clear the
3323 proceed status of threads the command being prepared is about to
3324 resume.
3325 (proceed): If passed in an explicit signal, override stop_signal
3326 with it. Don't pass the last stop signal to the thread we're
3327 resuming.
3328 (init_wait_for_inferior): Adjust clear_proceed_status call.
3329 (switch_back_to_stepped_thread): Clear the signal if it should not
3330 be passed.
3331 * infrun.h (clear_proceed_status): New 'step' parameter.
3332 (user_visible_resume_ptid): Add comment.
3333 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3334 signal is in pass state.
3335 * remote.c (append_pending_thread_resumptions): Likewise.
3336 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3337
3338 2014-07-25 Tom Tromey <tromey@redhat.com>
3339
3340 * target.h (target_stopped_data_address)
3341 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3342 parentheses.
3343
3344 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3345
3346 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3347 comments.
3348 (avr_pointer_to_address): Likewise.
3349
3350 2014-07-24 Tom Tromey <tromey@redhat.com>
3351
3352 * monitor.c (compile_pattern): Update.
3353 * target.h (struct target_ops) <to_shortname, to_longname,
3354 to_doc>: Now const.
3355
3356 2014-07-24 Tom Tromey <tromey@redhat.com>
3357
3358 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3359 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3360 (add_info_alias, add_com): Make "doc" const.
3361 (print_doc_line): Make "str" const.
3362 (delete_cmd): Update.
3363 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3364 (print_doc_line): Update.
3365 * cli/cli-script.c (document_command): Update.
3366 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3367 (add_com, add_info, add_info_alias): Update.
3368 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3369 * python/py-cmd.c (cmdpy_destroyer): Update.
3370
3371 2014-07-24 Tom Tromey <tromey@redhat.com>
3372
3373 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3374 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3375 (help_cmd_list): Constify.
3376 (lookup_cmd): Update.
3377 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3378 const.
3379 (help_cmd_list, apropos_cmd): Update.
3380 * cli/cli-script.c (show_user): Update.
3381 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3382 * cli/cli-setshow.h (cmd_show_list): Update.
3383 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3384 (cmd_show_list): Update.
3385 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3386 * python/py-cmd.c (cmdpy_destroyer): Update.
3387
3388 2014-07-24 Tom Tromey <tromey@redhat.com>
3389
3390 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3391 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3392 const.
3393 * command.h (deprecate_cmd): Update.
3394 * maint.c (maintenance_do_deprecate): Add casts.
3395
3396 2014-07-24 Tom Tromey <tromey@redhat.com>
3397
3398 * cli/cli-decode.c (help_cmd): Make parameter "const".
3399 * cli/cli-decode.h (help_cmd): Update.
3400
3401 2014-07-24 Tom Tromey <tromey@redhat.com>
3402
3403 * stack.c (up_silently_base, down_silently_base): Make argument
3404 const.
3405
3406 2014-07-24 Tom Tromey <tromey@redhat.com>
3407
3408 * solib.c (solib_add): Make "pattern" const.
3409 * solib.h (solib_add): Update.
3410
3411 2014-07-24 Tom Tromey <tromey@redhat.com>
3412
3413 * remote.c (remote_serial_open, print_packet, putpkt)
3414 (putpkt_binary): Constify.
3415 * remote.h (putpkt): Update.
3416
3417 2014-07-24 Tom Tromey <tromey@redhat.com>
3418
3419 * monitor.c (monitor_open): Make "args" const.
3420 * monitor.h (monitor_open): Update.
3421
3422 2014-07-24 Tom Tromey <tromey@redhat.com>
3423
3424 * maint.c (match_bfd_flags): Make "string" const.
3425 (print_bfd_section_info): Remove casts.
3426 (print_objfile_section_info): Make "string" const.
3427
3428 2014-07-24 Tom Tromey <tromey@redhat.com>
3429
3430 * inf-child.c (inf_child_open_target): Make "arg" const.
3431 * inf-child.h (inf_child_open_target): Update.
3432
3433 2014-07-24 Tom Tromey <tromey@redhat.com>
3434
3435 * environ.c (unset_in_environ): Make "var" const.
3436 * environ.h (unset_in_environ): Update.
3437
3438 2014-07-24 Tom Tromey <tromey@redhat.com>
3439
3440 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3441 Make "cmd" const.
3442 (scan_filename_with_cleanup): Likewise.
3443 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3444 Make arguments const.
3445 (restore_command): Update.
3446
3447 2014-07-24 Pedro Alves <palves@redhat.com>
3448
3449 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3450
3451 2014-07-24 Tom Tromey <tromey@redhat.com>
3452 Gary Benson <gbenson@redhat.com>
3453
3454 * nat/linux-ptrace.c (additional_flags): New global.
3455 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3456 additional_flags; don't check GDBSERVER.
3457 (linux_ptrace_set_additional_flags): New function.
3458 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3459 Declare.
3460 * linux-nat.c (_initialize_linux_nat): Call
3461 linux_ptrace_set_additional_flags.
3462
3463 2014-07-24 Tom Tromey <tromey@redhat.com>
3464
3465 * make-target-delegates (munge_type, write_debugmethod): New
3466 functions.
3467 (debug_names): New global.
3468 ($TARGET_DEBUG_PRINTER): New global.
3469 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3470 name.
3471 Write debug methods. Generate init_debug_target.
3472 * target-debug.h: New file.
3473 * target-delegates.c: Rebuild.
3474 * target.c: Include target-debug.h.
3475 (debug_target): Hoist definition.
3476 (target_kill, target_get_section_table, target_memory_map)
3477 (target_flash_erase, target_flash_done, target_detach)
3478 (target_disconnect, target_wait, target_resume)
3479 (target_pass_signals, target_program_signals, target_follow_fork)
3480 (target_mourn_inferior, target_search_memory)
3481 (target_thread_address_space, target_close)
3482 (target_find_new_threads, target_core_of_thread)
3483 (target_verify_memory, target_insert_mask_watchpoint)
3484 (target_remove_mask_watchpoint): Remove targetdebug code.
3485 (debug_to_post_attach, debug_to_prepare_to_store)
3486 (debug_to_files_info, debug_to_insert_breakpoint)
3487 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3488 (debug_to_region_ok_for_hw_watchpoint)
3489 (debug_to_can_accel_watchpoint_condition)
3490 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3491 (debug_to_watchpoint_addr_within_range)
3492 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3493 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3494 (debug_to_terminal_init, debug_to_terminal_inferior)
3495 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3496 (debug_to_terminal_save_ours, debug_to_terminal_info)
3497 (debug_to_load, debug_to_post_startup_inferior)
3498 (debug_to_insert_fork_catchpoint)
3499 (debug_to_remove_fork_catchpoint)
3500 (debug_to_insert_vfork_catchpoint)
3501 (debug_to_remove_vfork_catchpoint)
3502 (debug_to_insert_exec_catchpoint)
3503 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3504 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3505 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3506 (setup_target_debug): Call init_debug_target.
3507 * target.h (TARGET_DEBUG_PRINTER): New macro.
3508 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3509 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3510
3511 2014-07-24 Gary Benson <gbenson@redhat.com>
3512
3513 * exceptions.h (throw_vfatal): Renamed to...
3514 (throw_vquit): New declaration.
3515 (throw_quit): Likewise.
3516 * exceptions.c (throw_vfatal): Renamed to...
3517 (throw_vquit): New function.
3518 (throw_quit): Likewise.
3519 (throw_error): Call throw_verror rather than throw_it.
3520 * utils.h (vfatal): Removed.
3521 (fatal): Likewise.
3522 * utils.c (vfatal): Removed.
3523 (fatal): Likewise.
3524 (internal_verror): Replaced call to fatal with call to throw_quit.
3525 (quit): Replaced calls to fatal with calls to throw_quit.
3526
3527 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3528
3529 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3530 target_read_code.
3531
3532 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3533
3534 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3535 less than zero in conditional expression.
3536
3537 2014-07-23 Tom Tromey <tromey@redhat.com>
3538
3539 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3540 ($INTRO_PART): Don't match whitespace.
3541 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3542 argument matching.
3543 ($METHOD): Add $METHOD_TRAILER.
3544 (trim): Rewrite.
3545 (scan_target_h): New sub.
3546 Change main loop not to collect state.
3547 * target-delegates.c: Rebuild.
3548
3549 2014-07-23 Gary Benson <gbenson@redhat.com>
3550
3551 * cp-support.c (gdb_demangle): Fix build on systems without
3552 sigaltstack.
3553
3554 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3555
3556 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3557 for reference entry value target data value.
3558
3559 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3560
3561 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3562 value_available_contents_eq.
3563
3564 2014-07-22 Pedro Alves <palves@redhat.com>
3565
3566 * value.c (allocate_optimized_out_value): Don't mark value as
3567 non-lazy.
3568
3569 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3570
3571 * MAINTAINERS (Write After Approval): Update my email address.
3572
3573 2014-07-20 Doug Evans <dje@google.com>
3574
3575 PR server/17147
3576 * remote.c (putpkt_binary): Add text to error message.
3577
3578 2014-07-20 Yao Qi <yao@codesourcery.com>
3579
3580 * eval.c: Remove "Chill" from comments.
3581 * gdbtypes.h: Likewise.
3582 * symtab.h: Likewise.
3583
3584 2014-07-20 Yao Qi <yao@codesourcery.com>
3585
3586 * std-operator.def: Update comments to TERNOP_SLICE.
3587
3588 2014-07-20 Yao Qi <yao@codesourcery.com>
3589
3590 * std-operator.def: Remove BINOP_RANGE.
3591 * breakpoint.c (watchpoint_exp_is_const): Update.
3592 * expprint.c (dump_subexp_body_standard): Likewise.
3593 * eval.c (init_array_element): Remove dead code.
3594 (evaluate_subexp_standard): Likewise.
3595
3596 2014-07-20 Yao Qi <yao@codesourcery.com>
3597
3598 * std-operator.def: Remove BINOP_IN.
3599 * breakpoint.c (watchpoint_exp_is_const): Update.
3600 * eval.c (evaluate_subexp_standard): Likewise.
3601 * expprint.c (dump_subexp_body_standard): Likewise.
3602
3603 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3604
3605 * microblaze-tdep.c (microblaze_register_names): Add
3606 the rshr and rslr register names.
3607 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3608 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3609 Use of tdesc_numbered_register. Use of
3610 microblaze_register_g_packet_guesses. Use of
3611 tdesc_use_registers. Use of set_gdbarch_register_type.
3612 (microblaze_register_g_packet_guesses): New.
3613 * microblaze-tdep.h (microblaze_reg_num): Add
3614 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3615 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3616 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3617 * features/microblaze-core.xml: New file.
3618 * features/microblaze-stack-protect.xml: New file.
3619 * features/microblaze-with-stack-protect.c: New file.
3620 * features/microblaze-with-stack-protect.xml: New file.
3621 * features/microblaze.xml: New file.
3622 * features/microblaze.c: New file.
3623 * features/Makefile (microblaze-with-stack-protect): Add
3624 microblaze-with-stack-protect microblaze and microblaze-expedite.
3625 * regformats/microblaze-with-stack-protect.dat: New file.
3626 * regformats/microblaze.dat: New file.
3627 * doc/gdb.texinfo (MicroBlaze Features): Added.
3628
3629 2014-07-18 Tom Tromey <tromey@redhat.com>
3630
3631 * exec.c (exec_ops): Now static.
3632 * exec.h (exec_ops): Don't declare.
3633
3634 2014-07-18 Tom Tromey <tromey@redhat.com>
3635
3636 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3637 to find_target_beneath.
3638 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3639 find_target_beneath.
3640 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3641
3642 2014-07-18 Tom Tromey <tromey@redhat.com>
3643
3644 PR gdb/17130:
3645 * utils.c (quit): Use target_supports_terminal_ours.
3646 * target.h (target_supports_terminal_ours): Declare.
3647 * target.c (target_supports_delete_record): Don't check
3648 to_delete_record against NULL.
3649 (target_supports_terminal_ours): New function.
3650
3651 2014-07-18 Tom Tromey <tromey@redhat.com>
3652
3653 PR gdb/17130:
3654 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3655 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3656 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3657 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3658 * windows-nat.c (windows_xfer_partial): Always delegate.
3659 * record-btrace.c (record_btrace_xfer_partial): Simplify
3660 delegation.
3661 (record_btrace_fetch_registers, record_btrace_store_registers)
3662 (record_btrace_prepare_to_store, record_btrace_resume)
3663 (record_btrace_wait, record_btrace_find_new_threads)
3664 (record_btrace_thread_alive): Likewise.
3665 * procfs.c (procfs_xfer_partial): Always delegate.
3666 * corelow.c (core_xfer_partial): Always delegate.
3667 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3668
3669 2014-07-18 Tom Tromey <tromey@redhat.com>
3670
3671 * exec.c (exec_make_note_section): Move earlier.
3672
3673 2014-07-17 Doug Evans <dje@google.com>
3674
3675 PR gdb/17170
3676 * maint.c (count_symtabs_and_blocks): Handle NULL
3677 current_program_space.
3678 (report_command_stats): Check global enabled flag in addition to
3679 recorded enabled flag.
3680 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3681
3682 2014-07-16 Pedro Alves <palves@redhat.com>
3683
3684 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3685
3686 2014-07-16 Tom Tromey <tromey@redhat.com>
3687
3688 * target.h (struct target_ops) <to_delete_record>: Reformat
3689 comment.
3690
3691 2014-07-16 Tom Tromey <tromey@redhat.com>
3692
3693 * target-delegates.c: Rebuild.
3694
3695 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3696
3697 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3698 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3699 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3700 (avr_pointer_to_address): Likewise.
3701 (avr_address_class_type_flags): New function.
3702 (avr_address_class_type_flags_to_name): Likewise.
3703 (avr_address_class_name_to_type_flags): Likewise.
3704 (avr_gdbarch_init): Set address_class_type_flags,
3705 address_class_type_flags_to_name and
3706 address_class_name_to_type_flags.
3707
3708 2014-07-15 Pedro Alves <palves@redhat.com>
3709
3710 * linux-nat.c (kill_callback): Save errno and work with saved
3711 copy.
3712
3713 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3714
3715 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3716
3717 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3718
3719 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3720 breakpoint support correctly.
3721
3722 2014-07-14 Pedro Alves <palves@redhat.com>
3723
3724 * utils.c (prompt_for_continue): Call target_terminal_ours.
3725
3726 2014-07-14 Pedro Alves <palves@redhat.com>
3727
3728 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3729 catch_errors. Don't re-enable stdin or notify observers where,
3730 and rethrow error.
3731 (fetch_inferior_event_wrapper): Delete.
3732
3733 2014-07-14 Pedro Alves <palves@redhat.com>
3734
3735 PR gdb/17072
3736 * top.c: Include "inf-loop.h".
3737 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3738 field.
3739 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3740 was async before.
3741 (gdb_readline_wrapper): Store whether the target is async, and
3742 make it sync.
3743
3744 2014-07-14 Pedro Alves <palves@redhat.com>
3745
3746 PR gdb/17072
3747 * top.c (gdb_readline_wrapper_line): Tweak comment.
3748 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3749 the input handler callback.
3750
3751 2014-07-14 Pedro Alves <palves@redhat.com>
3752
3753 PR gdb/17072
3754 * main.c: Include event-top.h.
3755 (handle_command_errors): New function.
3756 (catch_command_errors, catch_command_errors_const): Use it.
3757
3758 2014-07-14 Pedro Alves <palves@redhat.com>
3759
3760 * exceptions.c (catch_command_errors, catch_command_errors_const):
3761 Moved to main.c.
3762 * exceptions.h (catch_command_errors_ftype)
3763 (catch_command_errors_const_ftype): Moved to main.c.
3764 (catch_command_errors, catch_command_errors_const): Delete
3765 declarations.
3766 * main.c (catch_command_errors_ftype)
3767 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3768 (catch_command_errors, catch_command_errors_const)): Moved here
3769 from exceptions.c and make static.
3770
3771 2014-07-14 Pedro Alves <palves@redhat.com>
3772
3773 * exceptions.c (print_any_exception): Delete.
3774 (catch_exceptions_with_msg): Use exception_print instead of
3775 print_any_exception.
3776 (catch_errors): Use exception_fprintf instead of
3777 print_any_exception.
3778 (catch_command_errors, catch_command_errors_const): Use
3779 exception_print instead of print_any_exception.
3780
3781 2014-07-14 Pedro Alves <palves@redhat.com>
3782
3783 * infcall.c (run_inferior_call): Set 'sync_execution' while
3784 running the inferior call.
3785
3786 2014-07-14 Pedro Alves <palves@redhat.com>
3787
3788 * value.c (value_contents_equal): Delete function.
3789 * value.h (value_contents_equal): Delete declaration.
3790
3791 2014-07-14 Tom Tromey <tromey@redhat.com>
3792
3793 PR exp/17106:
3794 * gdbtypes.c (is_dynamic_type_internal): New function, from
3795 is_dynamic_type.
3796 (is_dynamic_type): Rewrite.
3797 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3798 (resolve_dynamic_struct): Likewise.
3799 (resolve_dynamic_type_internal): New function, from
3800 resolve_dynamic_type.
3801 (resolve_dynamic_type): Rewrite.
3802
3803 2014-07-14 Tom Tromey <tromey@redhat.com>
3804
3805 * target.c (target_require_runnable): Also check record_stratum.
3806 Update comment.
3807
3808 2014-07-11 Yao Qi <yao@codesourcery.com>
3809
3810 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3811 thumb_instruction_restores_sp return true.
3812
3813 2014-07-11 Yao Qi <yao@codesourcery.com>
3814
3815 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3816 (thumb_in_function_epilogue_p): Call
3817 thumb_instruction_restores_sp.
3818
3819 2014-07-11 Yao Qi <yao@codesourcery.com>
3820
3821 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3822 'add sp, #imm'.
3823 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3824
3825 2014-07-11 Gary Benson <gbenson@redhat.com>
3826
3827 * amd64-linux-nat.c (gdbcore.h): Remove include.
3828 (regset.h): Likewise.
3829 (nat/linux-btrace.h): Likewise.
3830 (btrace.h): Likewise.
3831 (gdb_assert.h): Likewise.
3832 (string.h): Likewise.
3833 (sys/uio.h): Likewise.
3834 (sys/debugreg.h): Likewise.
3835 (sys/syscall.h): Likewise.
3836 (sys/procfs.h): Likewise.
3837 (sys/user.h): Likewise.
3838 (asm/ptrace.h): Likewise.
3839 (i386-nat.h): Likewise.
3840 * i386-linux-nat.c (i386-nat.h): Likewise.
3841 (regset.h): Likewise.
3842 (target.h): Likewise.
3843 (linux-nat.h): Likewise.
3844 (nat/linux-btrace.h): Likewise.
3845 (btrace.h): Likewise.
3846 (gdb_assert.h): Likewise.
3847 (string.h): Likewise.
3848 (sys/uio.h): Likewise.
3849 (sys/user.h): Likewise.
3850 (sys/procfs.h): Likewise.
3851 (sys/reg.h): Likewise.
3852 (sys/debugreg.h): Likewise.
3853 (ORIG_EAX): Remove definition.
3854
3855 2014-07-11 Gary Benson <gbenson@redhat.com>
3856
3857 * i386-linux-nat.h: New file.
3858 * x86-linux-nat.h: Likewise.
3859 * x86-linux-nat.c: Likewise.
3860 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3861 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3862 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3863 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3864 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3865 (PTRACE_SETREGSET): Likewise.
3866 (arch_lwp_info): Now in x86-linux-nat.c.
3867 (have_ptrace_getregset): Now in x86-linux-nat.h.
3868 (x86_linux_dr_get): Now in x86-linux-nat.c.
3869 (x86_linux_dr_set): Likewise.
3870 (x86_linux_dr_get_addr): Likewise.
3871 (x86_linux_dr_get_control): Likewise.
3872 (x86_linux_dr_get_status): Likewise.
3873 (update_debug_registers_callback): Likewise.
3874 (x86_linux_dr_set_control): Likewise.
3875 (x86_linux_dr_set_addr): Likewise.
3876 (x86_linux_prepare_to_resume): Likewise.
3877 (x86_linux_new_thread): Likewise.
3878 (x86_linux_new_fork): Likewise.
3879 (x86_linux_get_thread_area): Likewise.
3880 (super_post_startup_inferior): Likewise.
3881 (x86_linux_child_post_startup_inferior): Likewise.
3882 (AMD64_LINUX_USER64_CS): Likewise.
3883 (AMD64_LINUX_X32_DS): Likewise.
3884 (x86_linux_read_description): Likewise.
3885 (x86_linux_enable_btrace): Likewise.
3886 (x86_linux_disable_btrace): Likewise.
3887 (x86_linux_teardown_btrace): Likewise.
3888 (x86_linux_read_btrace): Likewise.
3889 (x86_linux_create_target): Likewise.
3890 (x86_linux_add_target): Likewise.
3891 * i386-linux-nat.c (x86-linux-nat.h): New include.
3892 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3893 (PTRACE_SETREGSET): Likewise.
3894 (arch_lwp_info): Now in x86-linux-nat.c.
3895 (have_ptrace_getregset): Now in x86-linux-nat.h.
3896 (x86_linux_dr_get): Now in x86-linux-nat.c.
3897 (x86_linux_dr_set): Likewise.
3898 (x86_linux_dr_get_addr): Likewise.
3899 (x86_linux_dr_get_control): Likewise.
3900 (x86_linux_dr_get_status): Likewise.
3901 (update_debug_registers_callback): Likewise.
3902 (x86_linux_dr_set_control): Likewise.
3903 (x86_linux_dr_set_addr): Likewise.
3904 (x86_linux_prepare_to_resume): Likewise.
3905 (x86_linux_new_thread): Likewise.
3906 (x86_linux_new_fork): Likewise.
3907 (x86_linux_get_thread_area): Likewise.
3908 (super_post_startup_inferior): Likewise.
3909 (x86_linux_child_post_startup_inferior): Likewise.
3910 (AMD64_LINUX_USER64_CS): Likewise.
3911 (AMD64_LINUX_X32_DS): Likewise.
3912 (x86_linux_read_description): Likewise.
3913 (x86_linux_enable_btrace): Likewise.
3914 (x86_linux_disable_btrace): Likewise.
3915 (x86_linux_teardown_btrace): Likewise.
3916 (x86_linux_read_btrace): Likewise.
3917 (x86_linux_create_target): Likewise.
3918 (x86_linux_add_target): Likewise.
3919
3920 2014-07-11 Gary Benson <gbenson@redhat.com>
3921
3922 * amd64-linux-nat.c: Comment and whitespace changes.
3923 * i386-linux-nat.c: Comment and whitespace changes.
3924
3925 2014-07-11 Gary Benson <gbenson@redhat.com>
3926
3927 * amd64-linux-nat.c (x86_linux_create_target): New function.
3928 (x86_linux_add_target): Likewise.
3929 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3930 * i386-linux-nat.c (x86_linux_create_target): New function.
3931 (x86_linux_add_target): Likewise.
3932 (_initialize_i386_linux_nat): Delegate to the above new functions.
3933
3934 2014-07-11 Gary Benson <gbenson@redhat.com>
3935
3936 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3937 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3938 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3939 (ps_get_thread_area): Delegate to the above.
3940
3941 2014-07-11 Gary Benson <gbenson@redhat.com>
3942
3943 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3944 x86_linux_read_description. All uses updated. amd64-specific
3945 code conditionalized. Conditionalized i386-specific code added.
3946 Redundant cast removed.
3947 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3948 x86_linux_read_description. All uses updated. i386-specific
3949 code conditionalized. Conditionalized amd64-specific code added.
3950 One sizeof replaced with the actual type it is describing.
3951
3952 2014-07-11 Gary Benson <gbenson@redhat.com>
3953
3954 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3955 x86_linux_dr_get. All uses updated.
3956 (amd64_linux_dr_set): Renamed to
3957 x86_linux_dr_set. All uses updated.
3958 (amd64_linux_dr_get_addr): Renamed to
3959 x86_linux_dr_get_addr. All uses updated.
3960 (amd64_linux_dr_get_control): Renamed to
3961 x86_linux_dr_get_control. All uses updated.
3962 (amd64_linux_dr_get_status): Renamed to
3963 x86_linux_dr_get_status. All uses updated.
3964 (amd64_linux_dr_set_control): Renamed to
3965 x86_linux_dr_set_control. All uses updated.
3966 (amd64_linux_dr_set_addr): Renamed to
3967 x86_linux_dr_set_addr. All uses updated.
3968 (amd64_linux_prepare_to_resume): Renamed to
3969 x86_linux_prepare_to_resume. All uses updated.
3970 (amd64_linux_new_thread): Renamed to
3971 x86_linux_new_thread. All uses updated.
3972 (amd64_linux_new_fork): Renamed to
3973 x86_linux_new_fork. All uses updated.
3974 (amd64_linux_child_post_startup_inferior): Renamed to
3975 x86_linux_child_post_startup_inferior. All uses updated.
3976 (amd64_linux_enable_btrace): Renamed to
3977 x86_linux_enable_btrace. All uses updated.
3978 (amd64_linux_disable_btrace): Renamed to
3979 x86_linux_disable_btrace. All uses updated.
3980 (amd64_linux_teardown_btrace): Renamed to
3981 x86_linux_teardown_btrace. All uses updated.
3982 (amd64_linux_read_btrace): Renamed to
3983 x86_linux_read_btrace. All uses updated.
3984 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3985 x86_linux_dr_get. All uses updated.
3986 (i386_linux_dr_set): Renamed to
3987 x86_linux_dr_set. All uses updated.
3988 (i386_linux_dr_get_addr): Renamed to
3989 x86_linux_dr_get_addr. All uses updated.
3990 (i386_linux_dr_get_control): Renamed to
3991 x86_linux_dr_get_control. All uses updated.
3992 (i386_linux_dr_get_status): Renamed to
3993 x86_linux_dr_get_status. All uses updated.
3994 (i386_linux_dr_set_control): Renamed to
3995 x86_linux_dr_set_control. All uses updated.
3996 (i386_linux_dr_set_addr): Renamed to
3997 x86_linux_dr_set_addr. All uses updated.
3998 (i386_linux_prepare_to_resume): Renamed to
3999 x86_linux_prepare_to_resume. All uses updated.
4000 (i386_linux_new_thread): Renamed to
4001 x86_linux_new_thread. All uses updated.
4002 (i386_linux_new_fork): Renamed to
4003 x86_linux_new_fork. All uses updated.
4004 (i386_linux_child_post_startup_inferior): Renamed to
4005 x86_linux_child_post_startup_inferior. All uses updated.
4006 (i386_linux_enable_btrace): Renamed to
4007 x86_linux_enable_btrace. All uses updated.
4008 (i386_linux_disable_btrace): Renamed to
4009 x86_linux_disable_btrace. All uses updated.
4010 (i386_linux_teardown_btrace): Renamed to
4011 x86_linux_teardown_btrace. All uses updated.
4012 (i386_linux_read_btrace): Renamed to
4013 x86_linux_read_btrace. All uses updated.
4014
4015 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4016
4017 * remote.c (extended_remote_post_attach): New function.
4018 (init_extended_remote_ops): Install it as to_post_attach method.
4019
4020 2014-07-09 Pedro Alves <palves@redhat.com>
4021
4022 * infcmd.c (attach_command_post_wait): Don't call
4023 target_terminal_inferior here.
4024 (attach_command): Call it here instead.
4025
4026 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4029 field.
4030 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4031 from varobj.c, with additional checks.
4032 (c_varobj_ops): Fill in is_path_expr_parent field.
4033 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4034 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4035 field.
4036 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4037 ops method.
4038 (varobj_default_is_path_expr_parent): New function.
4039 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4040 (varobj_default_is_path_expr_parent): Declare new function.
4041
4042 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4043
4044 * infcmd.c (finish_backward): Turn internal error into normal error.
4045
4046 2014-07-07 Pedro Alves <palves@redhat.com>
4047
4048 PR gdb/17096
4049 * remote.c (async_handle_remote_sigint)
4050 (async_handle_remote_sigint_twice): Call
4051 gdb_call_async_signal_handler instead of
4052 mark_async_signal_handler.
4053
4054 2014-07-07 Tom Tromey <tromey@redhat.com>
4055
4056 * target-delegates.c: Rebuild.
4057 * target.c (target_info_record): Remove.
4058 * record.c (info_record_command): Unconditionally call
4059 to_info_record.
4060 * target.h (struct target_ops) <to_info_record>: Use
4061 TARGET_DEFAULT_IGNORE.
4062 (target_info_record): Remove.
4063
4064 2014-07-07 Tom Tromey <tromey@redhat.com>
4065
4066 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4067 TARGET_DEFAULT_NORETURN.
4068 * target.c (generic_tls_error): New function.
4069 (target_translate_tls_address): Don't search target stack.
4070 * target-delegates.c: Rebuild.
4071 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4072 stack.
4073 * linux-thread-db.c (thread_db_get_thread_local_address):
4074 Unconditionally call beneath target.
4075
4076 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4077
4078 * cli/cli-logging.c (pop_output_files): Assign targerr to
4079 gdb_stdtargerr.
4080
4081 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4082
4083 * MAINTAINERS (Write After Approval): Update my email address.
4084
4085 2014-07-02 Gary Benson <gbenson@redhat.com>
4086
4087 * proc-service.c (ps_xfer_memory): Update comment.
4088 (ps_pstop): Remove unused function.
4089 (ps_pcontinue): Likewise.
4090 (ps_lstop): Likewise.
4091 (ps_lcontinue): Likewise.
4092 (ps_lgetxregsize): Likewise.
4093 (ps_lgetxregs): Likewise.
4094 (ps_lsetxregs): Likewise.
4095 (ps_plog): Likewise.
4096 (ps_ptread): Likewise.
4097 (ps_ptwrite): Likewise.
4098
4099 2014-07-01 Mark Wielaard <mjw@redhat.com>
4100
4101 * dwarf2read.c (add_array_cv_type): New function.
4102 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4103 (read_tag_volatile_type): Likewise.
4104
4105 2014-07-01 Tom Tromey <tromey@redhat.com>
4106
4107 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4108 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4109 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4110 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4111 * command.h (cmd_cfunc_ftype): Move earlier.
4112 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4113 (add_com, add_info): Use cmd_cfunc_ftype.
4114
4115 2014-06-30 Tom Tromey <tromey@redhat.com>
4116
4117 * symtab.c (operator_chars): Make parameters and return type
4118 const.
4119 (file_matches): Make "files" const.
4120 (struct search_symbols_data) <files>: Now const.
4121 (search_symbols): Make "regexp" and "files" parameters const.
4122 Update.
4123 (symtab_symbol_info): Remove cast.
4124 (rbreak_command): Update.
4125 * symtab.h (search_symbols): Update.
4126
4127 2014-06-27 Yao Qi <yao@codesourcery.com>
4128
4129 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4130 Change parameter type to 'struct thread_info *'. Caller
4131 updated.
4132 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4133 Update declaration.
4134 * dummy-frame.c (struct dummy_frame_id): New.
4135 (dummy_frame_id_eq): New function.
4136 (struct dummy_frame) <id>: Change its type to 'struct
4137 dummy_frame_id'.
4138 (dummy_frame_push): Add parameter ptid and save it in
4139 dummy_frame_id.
4140 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4141 inferior_ptid.
4142 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4143 to inferior_ptid.
4144 (lookup_dummy_frame): Change parameter type to 'struct
4145 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4146 instead of frame_id_eq.
4147 (dummy_frame_pop): Add parameter ptid. Callers updated.
4148 Update comments. Compose dummy_frame_id and pass it to
4149 lookup_dummy_frame.
4150 (dummy_frame_discard): Add parameter ptid.
4151 (dummy_frame_sniffer): Compose dummy_frame_id and call
4152 dummy_frame_id_eq instead of frame_id_eq.
4153 (fprint_dummy_frames): Print ptid.
4154 * dummy-frame.h: Remove comments.
4155 (dummy_frame_push): Add ptid in declaration.
4156 (dummy_frame_pop, dummy_frame_discard): Likewise.
4157
4158 2014-06-26 Tom Tromey <tromey@redhat.com>
4159
4160 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4161 * command.h (error_no_arg): Update.
4162
4163 2014-06-26 Tom Tromey <tromey@redhat.com>
4164
4165 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4166 (do_show_command): Make "arg" const.
4167 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4168
4169 2014-06-26 Tom Tromey <tromey@redhat.com>
4170
4171 * record-full.c (record_full_get_bookmark): Make "args" const.
4172 (record_full_goto_bookmark): Make "raw_bookmark" const.
4173 * record.c (record_goto): New function.
4174 (cmd_record_goto): Use it. Now static.
4175 * record.h (record_goto): Declare.
4176 (cmd_record_goto): Remove declaration.
4177 * target-delegates.c: Rebuild.
4178 * target.h (struct target_ops) <to_get_bookmark,
4179 to_goto_bookmark>: Make parameter const.
4180
4181 2014-06-26 Tom Tromey <tromey@redhat.com>
4182
4183 * defs.h (generic_load): Update.
4184 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4185 * monitor.c (monitor_load): Make "args" const.
4186 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4187 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4188 const.
4189 (mips_load): Make "file" const.
4190 * remote-sim.c (gdbsim_load): Make "args" const.
4191 * remote.c (remote_load): Make "name" const.
4192 * symfile.c (generic_load): Make "args" const.
4193 * target-delegates.c: Rebuild.
4194 * target.c (target_load): Make "arg" const.
4195 (debug_to_load): Make "args" const.
4196 * target.h (struct target_ops) <to_load>: Make parameter const.
4197 (target_load): Update.
4198
4199 2014-06-26 Tom Tromey <tromey@redhat.com>
4200
4201 PR symtab/16902:
4202 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4203 (dwarf2_physname, read_partial_die)
4204 (guess_partial_die_structure_name, fixup_partial_die)
4205 (guess_full_die_structure_name, anonymous_struct_prefix)
4206 (dwarf2_name): Use per-BFD obstack.
4207
4208 2014-06-26 Yao Qi <yao@codesourcery.com>
4209
4210 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4211 dummyframe and this_id into inner block below.
4212
4213 2014-06-26 Yao Qi <yao@codesourcery.com>
4214
4215 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4216 with "signal_pass[0]" in the initialization of signal_pass.
4217
4218 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4219
4220 * record-btrace.c (record_btrace_generating_corefile)
4221 (record_btrace_prepare_to_generate_core)
4222 (record_btrace_done_generating_core): New.
4223 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4224 (record_btrace_store_registers, record_btrace_prepare_to_store):
4225 Forward request when generating a core file.
4226 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4227 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4228 to_done_generating_core.
4229
4230 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4231
4232 * target.h (target_ops) <to_prepare_to_generate_core>
4233 <to_done_generating_core>: New.
4234 (target_prepare_to_generate_core, target_done_generating_core): New.
4235 * target.c (target_prepare_to_generate_core)
4236 (target_done_generating_core): New.
4237 * target-delegates.c: Regenerate.
4238 * gcore.c: (write_gcore_file): Rename to ...
4239 (write_gcore_file_1): ...this.
4240 (write_gcore_file): Call target_prepare_to_generate_core
4241 and target_done_generating_core.
4242
4243 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4244
4245 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4246 * gcore.c (write_gcore_file): Free memory returned from
4247 make_corefile_notes.
4248 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4249 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4250
4251 2014-06-24 Yao Qi <yao@codesourcery.com>
4252
4253 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4254 (arm_linux_init_abi): Set skip_trampoline_code with
4255 gdbarch_skip_trampoline_code instead of
4256 find_solib_trampoline_target.
4257
4258 2014-06-24 Yao Qi <yao@codesourcery.com>
4259
4260 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4261 arm_skip_bx_reg returns non-zero.
4262
4263 2014-06-24 Yao Qi <yao@codesourcery.com>
4264
4265 * arm-tdep.c (arm_skip_bx_reg): New function.
4266 (arm_skip_stub): Call arm_skip_bx_reg.
4267
4268 2014-06-23 Don Breazeal <donb@codesourcery.com>
4269
4270 * MAINTAINERS: Add myself as write-after-approval maintainer.
4271
4272 2014-06-23 Pedro Alves <palves@redhat.com>
4273
4274 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4275 DR_CONTROL before setting DR0..DR3.
4276 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4277 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4278 bits of DR_CONTROL related to the debug register slot being
4279 disabled. If all slots are vacant, clear local slowdown as well,
4280 and assert DR_CONTROL is 0.
4281
4282 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4283
4284 * python/lib/gdb/command/xmethods.py
4285 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4286 current progspace only if the string "progspace" matches LOCUS_RE.
4287
4288 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4289
4290 Fix --with-system-readline with readline-6.3 patch 5.
4291 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4292 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4293 types.
4294
4295 2014-06-20 Tom Tromey <tromey@redhat.com>
4296
4297 * dwarf2read.c (dw2_get_real_path): Use correct type in
4298 OBSTACK_CALLOC.
4299 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4300
4301 2014-06-20 Gary Benson <gbenson@redhat.com>
4302
4303 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4304 * common/glibc_thread_db.h: Likewise.
4305 * common/i386-cpuid.h: Likewise.
4306 * common/i386-gcc-cpuid.h: Likewise.
4307 * common/linux-btrace.h: Likewise.
4308 * common/linux-osdata.h: Likewise.
4309 * common/linux-procfs.h: Likewise.
4310 * common/linux-ptrace.h: Likewise.
4311 * common/mips-linux-watch.h: Likewise.
4312 * common/linux-btrace.c: Moved to nat.
4313 * common/linux-osdata.c: Likewise.
4314 * common/linux-procfs.c: Likewise.
4315 * common/linux-ptrace.c: Likewise.
4316 * common/mips-linux-watch.c: Likewise.
4317 * nat/gdb_thread_db.h: Moved from common.
4318 * nat/glibc_thread_db.h: Likewise.
4319 * nat/i386-cpuid.h: Likewise.
4320 * nat/i386-gcc-cpuid.h: Likewise.
4321 * nat/linux-btrace.c: Likewise.
4322 * nat/linux-btrace.h: Likewise.
4323 * nat/linux-osdata.c: Likewise.
4324 * nat/linux-osdata.h: Likewise.
4325 * nat/linux-procfs.c: Likewise.
4326 * nat/linux-procfs.h: Likewise.
4327 * nat/linux-ptrace.c: Likewise.
4328 * nat/linux-ptrace.h: Likewise.
4329 * nat/mips-linux-watch.c: Likewise.
4330 * nat/mips-linux-watch.h: Likewise.
4331 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4332 (object file files): Reordered.
4333 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4334 of glibc_thread_db.h.
4335
4336 2014-06-20 Gary Benson <gbenson@redhat.com>
4337
4338 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4339 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4340 (i386_dr_low): Likewise.
4341 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4342 (i386_dr_low_set_addr): Likewise.
4343 (i386_dr_low_get_addr): Likewise.
4344 (i386_dr_low_can_set_control): Likewise.
4345 (i386_dr_low_set_control): Likewise.
4346 (i386_dr_low_get_control): Likewise.
4347 (i386_dr_low_get_status): Likewise.
4348 (i386_get_debug_register_length): Likewise.
4349 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4350 (i386_dr_low): Likewise.
4351 * nat/i386-dregs.c (i386-low.h): Remove include.
4352 (i386-nat.h): Likewise.
4353 (nat/i386-dregs.h): New include.
4354 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4355 (i386_dr_low_set_addr): Likewise.
4356 (i386_dr_low_get_addr): Likewise.
4357 (i386_dr_low_can_set_control): Likewise.
4358 (i386_dr_low_set_control): Likewise.
4359 (i386_dr_low_get_control): Likewise.
4360 (i386_dr_low_get_status): Likewise.
4361 (i386_get_debug_register_length): Likewise.
4362 (debug_hw_points): Likewise.
4363
4364 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4365
4366 * Makefile.in (SFILES): Add d-exp.y.
4367 (YYFILES): Add d-exp.c.
4368 (YYOBJ): Add d-exp.o.
4369 (local-maintainer-clean): Delete d-exp.c.
4370 * d-exp.y: New file.
4371 * d-lang.h (d_parse): New declaration.
4372 (d_error): New declaration.
4373 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4374 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4375 PREC_ORDER operators.
4376 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4377
4378 2014-06-19 Yao Qi <yao@codesourcery.com>
4379
4380 * gdbthread.h (any_running): Remove the declaration.
4381 * thread.c (any_running): Remove.
4382
4383 2014-06-19 Yao Qi <yao@codesourcery.com>
4384
4385 * gdbthread.h (struct thread_info) <state>: Change its type to
4386 'enum thread_state'. Update comments.
4387
4388 2014-06-19 Pedro Alves <palves@redhat.com>
4389
4390 * gdbthread.h (ALL_THREADS): Delete.
4391 (ALL_NON_EXITED_THREADS): New macro.
4392 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4393 instead of ALL_THREADS.
4394 * infrun.c (find_thread_needs_step_over)
4395 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4396 instead of ALL_THREADS.
4397 * record-btrace.c (record_btrace_open)
4398 (record_btrace_stop_recording, record_btrace_close)
4399 (record_btrace_is_replaying, record_btrace_resume)
4400 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4401 * remote.c (append_pending_thread_resumptions): Likewise.
4402 * thread.c (thread_apply_all_command): Likewise.
4403
4404 2014-06-19 Gary Benson <gbenson@redhat.com>
4405
4406 * i386-nat.c (i386_stopped_by_watchpoint):
4407 Use i386_dr_stopped_by_watchpoint.
4408 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4409 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4410
4411 2014-06-19 Gary Benson <gbenson@redhat.com>
4412
4413 * nat/i386-dregs.c: New file.
4414 * Makefile.in (i386-dregs.o): New rule.
4415 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4416 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4417 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4418 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4419 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4420 * config/i386/go32.mh (NATDEPFILES): Likewise.
4421 * config/i386/linux.mh (NATDEPFILES): Likewise.
4422 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4423 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4424 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4425 * i386-nat.h (debug_hw_points): New declaration.
4426 * i386-nat.c (breakpoint.h): Remove include.
4427 (command.h): Likewise.
4428 (target.h): Likewise.
4429 (gdb_assert.h): Likewise.
4430 (debug_hw_points): Made nonstatic.
4431 (debug_printf): Now in i386-dregs.c.
4432 (TARGET_HAS_DR_LEN_8): Likewise.
4433 (DR_CONTROL_SHIFT): Likewise.
4434 (DR_CONTROL_SIZE): Likewise.
4435 (DR_RW_EXECUTE): Likewise.
4436 (DR_RW_WRITE): Likewise.
4437 (DR_RW_READ): Likewise.
4438 (DR_RW_IORW): Likewise.
4439 (DR_LEN_1): Likewise.
4440 (DR_LEN_2): Likewise.
4441 (DR_LEN_4): Likewise.
4442 (DR_LEN_8): Likewise.
4443 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4444 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4445 (DR_ENABLE_SIZE): Likewise.
4446 (DR_LOCAL_SLOWDOWN): Likewise.
4447 (DR_GLOBAL_SLOWDOWN): Likewise.
4448 (DR_CONTROL_RESERVED): Likewise.
4449 (I386_DR_CONTROL_MASK): Likewise.
4450 (I386_DR_VACANT): Likewise.
4451 (I386_DR_LOCAL_ENABLE): Likewise.
4452 (I386_DR_GLOBAL_ENABLE): Likewise.
4453 (I386_DR_DISABLE): Likewise.
4454 (I386_DR_SET_RW_LEN): Likewise.
4455 (I386_DR_GET_RW_LEN): Likewise.
4456 (I386_DR_WATCH_HIT): Likewise.
4457 (i386_wp_op_t): Likewise.
4458 (i386_show_dr): Likewise.
4459 (i386_length_and_rw_bits): Likewise.
4460 (i386_insert_aligned_watchpoint): Likewise.
4461 (i386_remove_aligned_watchpoint): Likewise.
4462 (i386_handle_nonaligned_watchpoint): Likewise.
4463 (i386_update_inferior_debug_regs): Likewise.
4464 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4465 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4466 (i386_region_ok_for_watchpoint):
4467 Use i386_dr_region_ok_for_watchpoint.
4468 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4469
4470 2014-06-19 Gary Benson <gbenson@redhat.com>
4471
4472 * i386-nat.c (i386_insert_hw_breakpoint): Use
4473 i386_insert_watchpoint.
4474 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4475
4476 2014-06-19 Gary Benson <gbenson@redhat.com>
4477
4478 * i386-nat.c (i386_dr_show): Renamed to
4479 i386_show_dr and made static. All uses updated.
4480 (i386_dr_length_and_rw_bits): Renamed to
4481 i386_length_and_rw_bits and made static.
4482 All uses updated.
4483 (i386_dr_insert_aligned_watchpoint): Renamed to
4484 i386_insert_aligned_watchpoint and made static.
4485 All uses updated.
4486 (i386_dr_remove_aligned_watchpoint): Renamed to
4487 i386_remove_aligned_watchpoint and made static.
4488 All uses updated.
4489 (i386_dr_update_inferior_debug_regs): Renamed to
4490 i386_update_inferior_debug_regs and made static.
4491 All uses updated.
4492 * nat/i386-dregs.h (i386_dr_show): Removed.
4493 (i386_dr_length_and_rw_bits): Likewise.
4494 (i386_dr_insert_aligned_watchpoint): Likewise.
4495 (i386_dr_remove_aligned_watchpoint): Likewise.
4496 (i386_dr_update_inferior_debug_regs): Likewise.
4497
4498 2014-06-19 Gary Benson <gbenson@redhat.com>
4499
4500 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4501 * configure: Regenerate.
4502 * config.in: Likewise.
4503 * main.c (signal.h): New include.
4504 (setup_alternate_signal_stack): New function.
4505 (captured_main): Call the above.
4506 * cp-support.c (signal.h): New include.
4507 (catch_demangler_crashes): New flag.
4508 (SIGJMP_BUF): New define.
4509 (SIGSETJMP): Likewise.
4510 (SIGLONGJMP): Likewise.
4511 (gdb_demangle_jmp_buf): New static global.
4512 (gdb_demangle_attempt_core_dump): Likewise.
4513 (gdb_demangle_signal_handler): New function.
4514 (gdb_demangle): If catch_demangler_crashes is set, install the
4515 above signal handler before calling bfd_demangle, and restore
4516 the original signal handler afterwards. Display the offending
4517 symbol and call demangler_warning the first time a segmentation
4518 fault is caught.
4519 (_initialize_cp_support): New maint set/show command.
4520
4521 2014-06-19 Gary Benson <gbenson@redhat.com>
4522
4523 * utils.h (resource_limit_kind): New enum.
4524 (can_dump_core): New declaration.
4525 (warn_cant_dump_core): Likewise.
4526 (dump_core): Likewise.
4527 * utils.c (dump_core): Made nonstatic. Added new
4528 parameter "limit_kind".
4529 (can_dump_core): Made nonstatic. Moved printing code to...
4530 (warn_cant_dump_core): New function.
4531 (can_dump_core_warn): Likewise.
4532 (internal_vproblem): Replace calls to can_dump_core with
4533 calls to can_dump_core_warn. Supply new argument to each.
4534
4535 2014-06-19 Gary Benson <gbenson@redhat.com>
4536
4537 * utils.h (demangler_vwarning): New declaration.
4538 (demangler_warning): Likewise.
4539 * utils.c (struct internal_problem)
4540 <user_settable_should_quit>: New field.
4541 <user_settable_should_dump_core>: Likewise
4542 (internal_error_problem): Add values for above new fields.
4543 (internal_warning_problem): Likewise.
4544 (demangler_warning_problem): New static global.
4545 (demangler_vwarning): New function.
4546 (demangler_warning): Likewise.
4547 (add_internal_problem_command): Selectively add commands.
4548 (_initialize_utils): New internal problem command.
4549 * maint.c (maintenance_demangler_warning): New function.
4550 (_initialize_maint_cmds): New command.
4551
4552 2014-06-18 Tom Tromey <tromey@redhat.com>
4553
4554 * f-valprint.c (info_common_command_for_block): Update.
4555 * symtab.h (struct general_symbol_info) <common_block>: Now
4556 const.
4557
4558 2014-06-18 Tom Tromey <tromey@redhat.com>
4559
4560 * symtab.h (struct symtab) <blockvector>: Now const.
4561 * ada-lang.c (ada_add_global_exceptions): Update.
4562 * buildsym.c (augment_type_symtab): Update.
4563 * dwarf2read.c (dw2_lookup_symbol): Update.
4564 * jit.c (finalize_symtab): Update.
4565 * jv-lang.c (add_class_symtab_symbol): Update.
4566 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4567 Update.
4568 * objfiles.c (objfile_relocate1): Update.
4569 * psymtab.c (lookup_symbol_aux_psymtabs)
4570 (maintenance_check_psymtabs): Update.
4571 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4572 Update.
4573 * spu-tdep.c (spu_catch_start): Update.
4574 * symmisc.c (dump_symtab_1): Update.
4575 * symtab.c (lookup_global_symbol_from_objfile)
4576 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4577 (basic_lookup_transparent_type_quick)
4578 (basic_lookup_transparent_type, find_pc_sect_symtab)
4579 (find_pc_sect_line, search_symbols): Update.
4580 * block.c (find_block_in_blockvector): Make "bl" const.
4581 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4582 const.
4583 (blockvector_contains_pc): Make "bv" const.
4584 (block_for_pc_sect): Update.
4585 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4586 (blockvector_contains_pc): Update.
4587 * breakpoint.c (resolve_sal_pc): Update.
4588 * inline-frame.c (block_starting_point_at): Update.
4589
4590 2014-06-18 Tom Tromey <tromey@redhat.com>
4591
4592 * completer.c (complete_line): Make "line_buffer" const.
4593 * completer.h (complete_line): Update.
4594
4595 2014-06-18 Tom Tromey <tromey@redhat.com>
4596
4597 * symtab.c (add_macro_name): Remove unneeded cast.
4598
4599 2014-06-18 Tom Tromey <tromey@redhat.com>
4600
4601 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4602 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4603
4604 2014-06-18 Tom Tromey <tromey@redhat.com>
4605
4606 * probe.c (info_probes_for_ops): Make "arg" const.
4607 * probe.h (info_probes_for_ops): Update.
4608
4609 2014-06-18 Tom Tromey <tromey@redhat.com>
4610
4611 * varobj.c (varobj_create): Update.
4612 * valops.c (value_of_this): Update.
4613 * tracepoint.c (add_local_symbols, scope_info): Update.
4614 * symtab.h (struct general_symbol_info) <block>: Now const.
4615 * symtab.c (skip_prologue_sal)
4616 (default_make_symbol_completion_list_break_on)
4617 (skip_prologue_using_sal): Update.
4618 * stack.h (iterate_over_block_locals)
4619 (iterate_over_block_local_vars): Update.
4620 * stack.c (print_frame_args): Update.
4621 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4622 parameter const.
4623 (get_selected_block): Make return type const.
4624 * python/py-frame.c (frapy_block): Update.
4625 * python/py-block.c (gdbpy_block_for_pc): Update.
4626 * p-exp.y (%union) <bval>: Now const.
4627 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4628 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4629 * m2-exp.y (%union) <bval>: Now const.
4630 * linespec.c (get_current_search_block): Make return type const.
4631 (create_sals_line_offset, find_label_symbols): Update.
4632 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4633 Update.
4634 (block_starting_point_at): Make "block" const.
4635 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4636 (check_exception_resume): Update.
4637 * guile/scm-frame.c (gdbscm_frame_block): Update.
4638 * guile/scm-block.c (gdbscm_lookup_block): Update.
4639 * frame.h (get_frame_block): Update.
4640 (get_selected_block): Make return type const.
4641 * frame.c (frame_id_inner): Update.
4642 * f-valprint.c (info_common_command_for_block)
4643 (info_common_command): Update.
4644 * dwarf2loc.c (dwarf2_find_location_expression)
4645 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4646 (locexpr_describe_location_piece): Update.
4647 * c-exp.y (%union) <bval>: Now const.
4648 * breakpoint.c (resolve_sal_pc): Update.
4649 * blockframe.c (get_frame_block):Make return type const.
4650 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4651 (block_innermost_frame): Update.
4652 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4653 (block_for_pc, block_for_pc_sect): Update.
4654 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4655 'pblock' const.
4656 (block_for_pc_sect, block_for_pc): Make return type const.
4657 * ax-gdb.c (gen_expr): Update.
4658 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4659 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4660 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4661 (ada_read_var_value): Update.
4662 * ada-exp.y (struct name_info) <block>: Now const.
4663 (%union): Likewise.
4664 (block_lookup): Constify.
4665
4666 2014-06-18 Gary Benson <gbenson@redhat.com>
4667
4668 * nat/i386-dregs.h: New file.
4669 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4670 * i386-nat.h (i386-dregs.h): New include.
4671 (DR_FIRSTADDR): Now in i386-dregs.h.
4672 (DR_LASTADDR): Likewise.
4673 (DR_NADDR): Likewise.
4674 (DR_STATUS): Likewise.
4675 (DR_CONTROL): Likewise.
4676 (i386_debug_reg_state): Likewise.
4677 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4678
4679 2014-06-18 Don Breazeal <donb@codesourcery.com>
4680
4681 * breakpoint.c (set_longjmp_breakpoint): Call
4682 momentary_breakpoint_from_master with additional argument.
4683 (set_longjmp_breakpoint_for_call_dummy): Call
4684 momentary_breakpoint_from_master with additional argument.
4685 (set_std_terminate_breakpoint): Call
4686 momentary_breakpoint_from_master with additional argument.
4687 (momentary_breakpoint_from_master): Add argument to function
4688 definition and use it to initialize structure member flag.
4689 (clone_momentary_breakpoint): Call
4690 momentary_breakpoint_from_master with additional argument.
4691 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4692 member flags set in momentary_breakpoint_from_master.
4693
4694 2014-06-18 Gary Benson <gbenson@redhat.com>
4695
4696 * i386-nat.c (i386_show_dr): Renamed to
4697 i386_dr_show and made nonstatic. All uses updated.
4698 (i386_length_and_rw_bits): Renamed to
4699 i386_dr_length_and_rw_bits and made nonstatic.
4700 All uses updated.
4701 (i386_insert_aligned_watchpoint): Renamed to
4702 i386_dr_insert_aligned_watchpoint and made nonstatic.
4703 All uses updated.
4704 (i386_remove_aligned_watchpoint): Renamed to
4705 i386_dr_remove_aligned_watchpoint and made nonstatic.
4706 All uses updated.
4707 (i386_update_inferior_debug_regs): Renamed to
4708 i386_dr_update_inferior_debug_regs and made nonstatic.
4709 All uses updated.
4710
4711 2014-06-18 Gary Benson <gbenson@redhat.com>
4712
4713 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4714 (i386_dr_low_can_set_control): Likewise.
4715 (i386_dr_low_set_addr): Likewise.
4716 (i386_dr_low_set_control): Likewise.
4717 (i386_dr_low_get_addr): Likewise.
4718 (i386_dr_low_get_status): Likewise.
4719 (i386_dr_low_get_control): Likewise.
4720 (i386_insert_aligned_watchpoint): Use new macros.
4721 (i386_update_inferior_debug_regs): Likewise.
4722 (i386_stopped_data_address): Likewise.
4723
4724 2014-06-18 Gary Benson <gbenson@redhat.com>
4725
4726 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4727 New parameter. All uses updated.
4728
4729 2014-06-18 Gary Benson <gbenson@redhat.com>
4730
4731 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4732 All uses updated.
4733
4734 2014-06-18 Gary Benson <gbenson@redhat.com>
4735
4736 * i386-nat.c (debug_printf): New macro.
4737 (i386_get_debug_register_length): Likewise.
4738 (TARGET_HAS_DR_LEN_8): Use above macro.
4739 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4740 and printf_unfiltered. Use phex to format values.
4741
4742 2014-06-18 Gary Benson <gbenson@redhat.com>
4743
4744 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4745 Make const.
4746
4747 2014-06-18 Gary Benson <gbenson@redhat.com>
4748
4749 * i386-nat.c: Comment changes.
4750
4751 2014-06-18 Gary Benson <gbenson@redhat.com>
4752
4753 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4754
4755 2014-06-18 Gary Benson <gbenson@redhat.com>
4756
4757 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4758 (i386_insert_aligned_watchpoint): Likewise.
4759 (i386_remove_aligned_watchpoint): Likewise.
4760 (i386_handle_nonaligned_watchpoint): Likewise.
4761
4762 2014-06-18 Gary Benson <gbenson@redhat.com>
4763
4764 * i386-nat.c: Whitespace changes.
4765
4766 2014-06-17 Samuel Bronson <naesten@gmail.com>
4767
4768 * MAINTAINERS: Update Roland McGrath's email address.
4769 Thanks to Sergio Durigan Junior for pointing out that he left
4770 Red Hat a while ago, and giving me a current address.
4771
4772 2014-06-17 Tom Tromey <tromey@redhat.com>
4773
4774 * utils.h (savestring): Remove declaration.
4775
4776 2014-06-17 Tom Tromey <tromey@redhat.com>
4777
4778 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4779
4780 2014-06-16 Keith Seitz <keiths@redhat.com>
4781
4782 PR mi/15863
4783 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4784 to update the varobj if inferior_ptid is null_ptid.
4785
4786 2014-06-16 Tom Tromey <tromey@redhat.com>
4787
4788 * target.h (struct target_ops) <to_info_proc>: Make parameter
4789 const.
4790 (target_info_proc): Update.
4791 * target.c (target_info_proc): Make "args" const.
4792 * procfs.c (procfs_info_proc): Update.
4793 * linux-tdep.c (linux_info_proc): Update.
4794 (linux_core_info_proc_mappings): Make "args" const.
4795 (linux_core_info_proc): Update.
4796 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4797 * gdbarch.c: Rebuild.
4798 * gdbarch.h: Rebuild.
4799 * corelow.c (core_info_proc): Update.
4800
4801 2014-06-16 Tom Tromey <tromey@redhat.com>
4802
4803 * target.h (struct target_ops) <to_disconnect>: Make parameter
4804 const.
4805 (target_disconnect): Update.
4806 * target.c (target_disconnect): Make "args" const.
4807 * target-delegates.c: Rebuild.
4808 * remote.c (remote_disconnect): Update.
4809 * record.h (record_disconnect): Update.
4810 * record.c (record_disconnect): Update.
4811 * inf-child.c (inf_child_disconnect): Update.
4812
4813 2014-06-16 Tom Tromey <tromey@redhat.com>
4814
4815 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4816 * target.c (debug_to_rcmd, default_rcmd): Update.
4817 * target-delegates.c: Rebuild.
4818 * remote.c (remote_rcmd): Update.
4819 * monitor.c (monitor_rcmd): Update.
4820
4821 2014-06-16 Pedro Alves <palves@redhat.com>
4822
4823 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4824 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4825 have OBJF_SHARED set.
4826 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4827 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4828 instead of OBJF_USERLOADED.
4829 * objfiles.h (OBJF_SHARED): Update comment.
4830 (userloaded_objfile_contains_address_p): Rename to ...
4831 (shared_objfile_contains_address_p): ... this, and update
4832 comments.
4833 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4834 new objfile.
4835 (remove_symbol_file_command): Skip objfiles that don't have
4836 OBJF_SHARED set.
4837
4838 2014-06-16 Tom Tromey <tromey@redhat.com>
4839
4840 * minsyms.h (prim_record_minimal_symbol)
4841 (prim_record_minimal_symbol_and_info): Update comments.
4842
4843 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4844
4845 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4846 or --without-guile, according to how GDB was built.
4847
4848 2014-06-13 Tom Tromey <tromey@redhat.com>
4849
4850 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4851 to help_list.
4852 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4853 to help_list.
4854 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4855 help_list.
4856 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4857 help_list.Pass all_commands, not -1, to help_list.
4858 * cli/cli-dump.c (dump_command, append_command)
4859 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4860 (binary_dump_command, binary_append_command): Pass all_commands,
4861 not -1, to help_list.
4862 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4863 -1, to help_list.
4864 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4865 -1, to help_list.
4866 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4867 help_list.
4868 * top.c (set_history): Pass all_commands, not -1, to help_list.
4869 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4870 all_commands, not -1, to help_list.
4871 * symfile.c (overlay_command): Pass all_commands, not -1, to
4872 help_list.
4873 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4874 help_list.
4875 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4876 help_list.
4877 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4878 -1, to help_list.
4879 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4880 not -1, to help_list.
4881 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4882 not -1, to help_list.
4883 * maint.c (maintenance_command, maintenance_info_command)
4884 (maintenance_print_command, maintenance_set_cmd): Pass
4885 all_commands, not -1, to help_list.
4886 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4887 help_list.
4888 * language.c (set_check): Pass all_commands, not -1, to help_list.
4889 * infcmd.c (unset_command): Pass all_commands, not -1, to
4890 help_list.
4891 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4892 help_list.
4893 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4894 help_list.
4895 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4896 help_list.
4897 * breakpoint.c (save_command): Pass all_commands, not -1, to
4898 help_list.
4899 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4900 all_commands, not -1, to help_list.
4901
4902 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4903
4904 * regcache.c (struct register_to_invalidate): New structure.
4905 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4906 functions.
4907 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4908
4909 2014-06-12 Yao Qi <yao@codesourcery.com>
4910
4911 * varobj.c (varobj_get_num_children): Call
4912 varobj_is_dynamic_p.
4913 (varobj_list_children): Likewise.
4914 (varobj_update): Likewise. Update comments.
4915
4916 2014-06-12 Yao Qi <yao@codesourcery.com>
4917
4918 * varobj.c (varobj_pretty_printed_p): Rename to ...
4919 (varobj_is_dynamic_p): ... this. New function.
4920 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4921 (varobj_is_dynamic_p): Declare.
4922 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4923 (mi_print_value_p, varobj_update_one): Likewise.
4924
4925 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4926 Yao Qi <yao@codesourcery.com>
4927
4928 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4929 (varobj_get_iterator): Wrap up code for pretty-printer by
4930 "#if HAVE_PYTHON" and "#endif".
4931 (update_dynamic_varobj_children): Likewise.
4932
4933 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4934 Yao Qi <yao@codesourcery.com>
4935
4936 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4937 gdb_python_initialized is false. Move some code from varobj.c.
4938 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4939 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4940 (struct varobj_item): Moved to varobj-iter.h".
4941 (varobj_clear_saved_item): New function.
4942 (update_dynamic_varobj_children): Move python-related code to
4943 py-varobj.c.
4944 (free_variable): Call varobj_clear_saved_item and
4945 varobj_iter_delete.
4946
4947 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4948 Yao Qi <yao@codesourcery.com>
4949
4950 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4951 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4952 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4953 (py-varobj.o): New rule.
4954 * python/py-varobj.c: New file.
4955 * python/python-internal.h (py_varobj_get_iterator): Declare.
4956 * varobj-iter.h: New file.
4957 * varobj.c: Include "varobj-iter.h"
4958 (struct varobj) <child_iter>: Change its type from "PyObject *"
4959 to "struct varobj_iter *".
4960 <saved_item>: Likewise.
4961 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4962 [HAVE_PYTHON] (varobj_get_iterator): New function.
4963 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4964 python-specific code to python/py-varobj.c.
4965 (install_visualizer): Call varobj_iter_delete instead of
4966 Py_XDECREF.
4967 * varobj.h (varobj_ensure_python_env): Declare.
4968
4969 2014-06-12 Yao Qi <yao@codesourcery.com>
4970
4971 * varobj.c (struct varobj_item): New structure.
4972 (create_child_with_value): Update declaration.
4973 (varobj_add_child): Replace arguments 'name' and 'value' with
4974 'item'. All callers updated.
4975 (install_dynamic_child): Likewise.
4976 (update_dynamic_varobj_children): Likewise.
4977 (varobj_add_child): Likewise.
4978 (create_child_with_value): Likewise.
4979
4980 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4981
4982 * NEWS: Create a new section for the next release branch.
4983 Rename the section of the current branch, now that it has
4984 been cut.
4985
4986 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4987
4988 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4989 * version.in: Bump version to 7.8.50.DATE-cvs.
4990
4991 2014-06-11 Pedro Alves <palves@redhat.com>
4992
4993 PR remote/17028
4994 * ser-mingw.c (net_windows_socket_check_pending): New function.
4995 (net_windows_select_thread): Ignore spurious wakeups. Use
4996 net_windows_socket_check_pending.
4997 (net_windows_wait_handle): Check for pending events with
4998 ioctlsocket, through net_windows_socket_check_pending, instead of
4999 checking the socket's event.
5000
5001 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5002
5003 * python/python-internal.h (gdb_PyObject_GetAttrString)
5004 (gdb_PyObject_HasAttrString): New inline function definitions.
5005 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5006 char * of the second argument to PyObject_GetAttrString.
5007
5008 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5009
5010 * serial.c (serial_write): Fix index of character to be printed
5011 in call to serial_logchar when serial debug traces are enabled.
5012
5013 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5014
5015 * gdbtypes (resolve_dynamic_range): Add function description.
5016
5017 2014-06-09 Pedro Alves <palves@redhat.com>
5018
5019 * linux-nat.c (linux_child_follow_fork): Initialize status with
5020 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5021 inner block. Only pass the signal to PTRACE_DETACH if in pass
5022 state.
5023
5024 2014-06-09 Gary Benson <gbenson@redhat.com>
5025
5026 * common/signals.c (gdb_signal_from_host): Reorder to separate
5027 the always-available ANSI-standard signals from the signals that
5028 require checking.
5029 (do_gdb_signal_to_host): Likewise.
5030 * proc-events.c (signal_table): Likewise.
5031
5032 2014-06-08 Hui Zhu <hui@codesourcery.com>
5033
5034 * common/linux-ptrace.c (linux_disable_event_reporting): New
5035 function.
5036 * common/linux-ptrace.h (linux_disable_event_reporting): New
5037 declaration.
5038 * linux-nat.c (linux_child_follow_fork): Do a single step before
5039 detach.
5040
5041 2014-06-07 Keith Seitz <keiths@redhat.com>
5042
5043 Revert:
5044 PR c++/16253
5045 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5046 from symbol_matches_domain in symtab.c. All local callers
5047 of symbol_matches_domain updated.
5048 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5049 search STRUCT_DOMAIN.
5050 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5051 independently. standard_lookup will do that automatically.
5052 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5053 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5054 (cp_lookup_symbol_in_namespace): Likewise.
5055 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5056 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5057 may return a STRUCT_DOMAIN match.
5058 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5059 * cp-support.c: Include language.h.
5060 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5061 VAR_DOMAIN.
5062 * psymtab.c (match_partial_symbol): Compare the requested
5063 domain with the symbol's domain directly.
5064 (lookup_partial_symbol): Likewise.
5065 * symtab.c (lookup_symbol_in_language): Explain when/why
5066 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5067 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5068 appropriate languages.
5069 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5070 and moved to ada-lang.c
5071 (lookup_block_symbol): Explain that this function only returns
5072 symbol matching the requested DOMAIN.
5073 Compare the requested domain with the symbol's domain directly.
5074 (iterate_over_symbols): Compare the requested domain with the
5075 symbol's domain directly.
5076 * symtab.h (symbol_matches_domain): Remove.
5077
5078 2014-06-06 Doug Evans <xdje42@gmail.com>
5079
5080 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5081 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5082 (gdbscm_guile_version_is_at_least): Declare.
5083 (gdbscm_scm_string_to_int): Declare.
5084 * guile/guile.c (gdbscm_guile_major_version): New global.
5085 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5086 (guile_datadir): New static global.
5087 (gdbscm_guile_data_directory): New function.
5088 (initialize_scheme_side): Update.
5089 (misc_guile_functions): Add guile-data-directory.
5090 (initialize_gdb_module): Fetch guile version number.
5091 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5092 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5093 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5094 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5095 comments.
5096 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5097 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5098 * guile/scm-value.c (gdbscm_value_to_string): Only call
5099 scm_port_conversion_strategy if Guile version >= 2.0.6.
5100
5101 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5102
5103 * main.c (print_gdb_help): Add -q and --silent.
5104
5105 2014-06-06 Gary Benson <gbenson@redhat.com>
5106
5107 * common/signals.c: Remove preprocessor conditionals for
5108 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5109 SIGSEGV and SIGTERM.
5110 * proc-events.c: Likewise.
5111
5112 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5113
5114 * symfile.c (symfile_free_objfile): Remove restriction to
5115 OBJF_USERLOADED.
5116 * symfile-mem.c (symbol_file_add_from_memory): Call
5117 add_target_sections_of_objfile.
5118
5119 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5120
5121 * guile/scm-value.c (gdbscm_history_append_x): Use
5122 'vlscm_get_value_smob_arg_unsafe' instead of
5123 'vlscm_scm_to_value'.
5124
5125 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5126
5127 PR mi/15806
5128 * utils.c (printchar): Don't escape at all if quoter is NUL.
5129 Update function documentation to clarify effect of parameter
5130 QUOTER.
5131 * remote.c (escape_buffer): Pass '\\' as the quoter to
5132 fputstrn_unfiltered.
5133 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5134 generate the output.
5135 (mi_solib_unloaded): Same.
5136
5137 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5138
5139 * development.sh: Delete.
5140 * Makefile.in (config.status): Adjust dependency on development.sh.
5141 * configure.ac: Adjust development.sh source call.
5142 * configure: Regenerate.
5143
5144 2014-06-04 Doug Evans <xdje42@gmail.com>
5145
5146 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5147 is_scheme_bkpt, spec.
5148 (bpscm_make_breakpoint_smob): Initialize new members.
5149 (gdbscm_create_breakpoint_x): Split into two ...
5150 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5151 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5152 (scheme_function breakpoint_functions): Update.
5153 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5154 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5155 register-breakpoint!.
5156
5157 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5158
5159 PR server/17023
5160 * mem-break.c (z_type_supported): Return zero if
5161 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5162
5163 2014-06-04 Tom Tromey <tromey@redhat.com>
5164
5165 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5166 value_from_contents_and_address_unresolved.
5167 (ada_template_to_fixed_record_type_1): Likewise.
5168 (ada_which_variant_applies): Likewise.
5169 * value.h (value_from_contents_and_address_unresolved): Declare.
5170 * value.c (value_from_contents_and_address_unresolved): New
5171 function.
5172 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5173 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5174 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5175
5176 2014-06-04 Tom Tromey <tromey@redhat.com>
5177
5178 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5179
5180 2014-06-04 Tom Tromey <tromey@redhat.com>
5181
5182 * procfs.c (procfs_attach): Make "args" const.
5183 * windows-nat.c (windows_attach): Make "args" const.
5184 * nto-procfs.c (procfs_attach): Make "args" const.
5185 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5186 * go32-nat.c (go32_attach): Make "args" const.
5187 * gnu-nat.c (gnu_attach): Make "args" const.
5188 * darwin-nat.c (darwin_attach): Make "args" const.
5189 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5190 * linux-nat.c (linux_nat_attach): Make "args" const.
5191 * remote.c (extended_remote_attach_1, extended_remote_attach):
5192 Make "args" const.
5193 * target.h (struct target_ops) <to_attach>: Make "args" const.
5194 (find_default_attach): Likewise.
5195 * utils.c (parse_pid_to_attach): Make "args" const.
5196 * utils.h (parse_pid_to_attach): Update.
5197
5198 2014-06-04 Tom Tromey <tromey@redhat.com>
5199
5200 * target-delegates.c: Rebuild.
5201 * target.c (default_thread_address_space): New function.
5202 (target_thread_address_space): Simplify.
5203 * target.h (struct target_ops) <to_thread_address_space>: Add
5204 TARGET_DEFAULT_FUNC.
5205
5206 2014-06-04 Doug Evans <xdje42@gmail.com>
5207
5208 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5209
5210 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5211
5212 * record-btrace.c: Include event-loop.h and inf-loop.h.
5213 (record_btrace_resume_exec_dir)
5214 (record_btrace_async_inferior_event_handler)
5215 (record_btrace_handle_async_inferior_event): New.
5216 (record_btrace_open): Create async event handler.
5217 (record_btrace_close): Delete async event handler.
5218 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5219 Mark async event handler.
5220 (record_btrace_execution_direction): New.
5221 (init_record_btrace_ops): Initialize to_execution_direction.
5222
5223 2014-06-03 Doug Evans <xdje42@gmail.com>
5224
5225 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5226 (gdbscm_make_parameter): Ditto.
5227
5228 2014-06-03 Doug Evans <dje@google.com>
5229
5230 * exec.c (exec_close_1): Call clear_section_table instead of
5231 resize_section_table.
5232 (clear_section_table): New function.
5233 (resize_section_table): Make static. Rename arg num_added to
5234 adjustment.
5235 * exec.h (clear_section_table): Declare.
5236 (resize_section_table): Delete.
5237 * progspace.c (release_program_space): Call clear_section_table
5238 instead of resize_section_table.
5239
5240 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5241
5242 * NEWS (Python Scripting): Add entry about the new xmethods
5243 feature.
5244
5245 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5246
5247 * python/py-xmethods.c: New file.
5248 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5249 (objfpy_dealloc): XDECREF on the new xmethods field.
5250 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5251 field.
5252 (objfpy_get_xmethods): New function.
5253 (objfile_getset): New entry 'xmethods'.
5254 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5255 (pspy_dealloc): XDECREF on the new xmethods field.
5256 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5257 field.
5258 (pspy_get_xmethods): New function.
5259 (pspace_getset): New entry 'xmethods'.
5260 * python/python-internal.h: Add declarations for new functions.
5261 * python/python.c (_initialize_python): Invoke
5262 gdbpy_initialize_xmethods.
5263 * python/lib/gdb/__init__.py (xmethods): New
5264 attribute.
5265 * python/lib/gdb/xmethod.py: New file.
5266 * python/lib/gdb/command/xmethods.py: New file.
5267
5268 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5269
5270 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5271 best match method returned by find_overload_match is an xmethod.
5272 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5273 the best matching operator returned by find_overload_match is an
5274 xmethod.
5275 * valops.c: #include "extension.h".
5276 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5277 Return void. The list of matching source methods is returned in
5278 "fn_list" and a vector of matching debug method workers is
5279 returned in "xm_worker_vec". Update all callers.
5280 (value_find_oload_method_list): Likewise.
5281 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5282 non-NULL, then the index of the best matching method in this
5283 vector is returned. Update all callers.
5284 (find_overload_match): Include xmethods while performing overload
5285 resolution.
5286
5287 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5288
5289 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5290 * extension-priv.h (struct extension_language_ops): Add the
5291 xmethod interface.
5292 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5293 get_matching_xmethod_workers, get_xmethod_argtypes,
5294 invoke_xmethod, free_xmethod_worker,
5295 free_xmethod_worker_vec): New functions.
5296 * extension.h: #include "common/vec.h".
5297 New function declarations.
5298 (struct xmethod_worker): New struct.
5299 (VEC (xmethod_worker_ptr)): New vector type.
5300 (xmethod_worker_ptr): New typedef.
5301 (xmethod_worker_vec): Likewise.
5302 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5303 builtin_type.
5304 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5305 (struct builtin_type): New field "xmethod".
5306 * valarith.c (value_ptradd): Assert that the value argument is not
5307 lval_xcallable.
5308 * valops.c (value_must_coerce_to_target): Return 0 for
5309 lval_xcallable values.
5310 * value.c (struct value): New field XM_WORKER in the field
5311 LOCATION.
5312 (value_address, value_raw_address): Return 0 for lval_xcallable
5313 values.
5314 (set_value_address): Assert that the value is not an
5315 lval_xcallable.
5316 (value_free): Free the associated xmethod worker when freeing
5317 lval_xcallable values.
5318 (set_value_component_location): Assert that the WHOLE value is not
5319 lval_xcallable.
5320 (value_of_xmethod, call_xmethod): New functions.
5321 * value.h: Declare "struct xmethod_worker".
5322 Declare new functions value_of_xmethod, call_xmethod.
5323
5324 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5325 Pedro Alves <palves@redhat.com>
5326
5327 PR breakpoints/17000
5328 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5329 New function, extracted from software_breakpoint_inserted_here_p.
5330 (software_breakpoint_inserted_here_p): Replace factored out code
5331 by call to find_non_raw_software_breakpoint_inserted_here.
5332 (bp_target_info_copy_insertion_state): New function.
5333 (bkpt_insert_location): Handle the case of a single-step
5334 breakpoint already inserted at the same address.
5335 (bkpt_remove_location): Handle the case of a single-step
5336 breakpoint still inserted at the same address.
5337 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5338 breakpoint already inserted at the same address.
5339 (deprecated_remove_raw_breakpoint): Handle the case of a
5340 non-raw breakpoint still inserted at the same address.
5341 (find_single_step_breakpoint): New function, extracted from
5342 single_step_breakpoint_inserted_here_p.
5343 (find_single_step_breakpoint): New function,
5344 factored out from single_step_breakpoint_inserted_here_p.
5345 (single_step_breakpoint_inserted_here_p): Reimplement.
5346
5347 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5348
5349 Pushed by Joel Brobecker <brobecker@adacore.com>
5350 * source.c (show_substitute_path_command): Fix display of matching
5351 substitution rules.
5352
5353 2014-06-03 Gary Benson <gbenson@redhat.com>
5354
5355 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5356
5357 2014-06-02 Doug Evans <xdje42@gmail.com>
5358
5359 Add parameter support for Guile.
5360 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5361 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5362 (scm-param.o): New rule.
5363 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5364 (gdbscm_misc_error): Declare.
5365 (gdbscm_canonicalize_command_name): Declare.
5366 (gdbscm_scm_to_host_string): Declare.
5367 (gdbscm_scm_from_host_string): Declare.
5368 (gdbscm_initialize_parameters): Declare.
5369 * guile/guile.c (initialize_gdb_module): Call
5370 gdbscm_initialize_parameters.
5371 * guile/lib/gdb.scm: Export parameter symbols.
5372 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5373 cmdscm_canonicalize_name and made public. All callers updated.
5374 * guile/scm-exception.c (gdbscm_misc_error): New function.
5375 * guile/scm-param.c: New file.
5376 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5377 (gdbscm_scm_to_host_string): New function.
5378 (gdbscm_scm_from_host_string): New function.
5379 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5380
5381 2014-06-02 Doug Evans <xdje42@gmail.com>
5382
5383 Add command support for Guile.
5384 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5385 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5386 (scm-cmd.o): New rule.
5387 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5388 (gdbscm_user_error_p): Declare.
5389 (gdbscm_parse_command_name): Declare.
5390 (gdbscm_valid_command_class_p): Declare.
5391 (gdbscm_initialize_commands): Declare.
5392 * guile/guile.c (initialize_gdb_module): Call
5393 gdbscm_initialize_commands.
5394 * guile/lib/gdb.scm: Export command symbols.
5395 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5396 (throw-user-error): New function.
5397 * guile/scm-cmd.c: New file.
5398 * guile/scm-exception.c (user_error_symbol): New static global.
5399 (gdbscm_user_error_p): New function.
5400 (gdbscm_initialize_exceptions): Set user_error_symbol.
5401 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5402
5403 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5404
5405 * top.c (command_loop): Handle comments here...
5406 (command_line_input): ... not here.
5407
5408 2014-06-02 Doug Evans <xdje42@gmail.com>
5409
5410 Add progspace support for Guile.
5411 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5412 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5413 (scm-progspace.o): New rule.
5414 * guile/guile-internal.h (pspace_smob): New typedef.
5415 (psscm_pspace_smob_pretty_printers): Declare.
5416 (psscm_pspace_smob_from_pspace): Declare.
5417 (psscm_scm_from_pspace): Declare.
5418 * guile/guile.c (initialize_gdb_module): Call
5419 gdbscm_initialize_pspaces.
5420 * guile/lib/gdb.scm: Export progspace symbols.
5421 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5422 support.
5423 (append-pretty-printer!): Ditto.
5424 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5425 Implement.
5426 * guile/scm-progspace.c: New file.
5427
5428 2014-06-03 Alan Modra <amodra@gmail.com>
5429
5430 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5431 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5432
5433 2014-06-02 Doug Evans <dje@google.com>
5434
5435 Add support for skeletonless type units.
5436 * dwarf2read.c (struct dwarf2_per_objfile): New member
5437 n_allocated_type_units.
5438 (struct dwarf2_per_objfile) <tu_stats>: New member
5439 nr_all_type_units_reallocs.
5440 (create_signatured_type_table_from_index): Initialize
5441 n_allocated_type_units
5442 (create_all_type_units): Ditto.
5443 (add_type_unit): Move up in file. New arg slot.
5444 All callers updated. Increase space for all_type_units more
5445 efficiently.
5446 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5447 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5448 (lookup_dwp_signatured_type): Ditto.
5449 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5450 All callers updated.
5451 (build_type_psymtabs_1): Leave type_unit_groups as
5452 NULL if no TUs present.
5453 (print_tu_stats): New function.
5454 (process_skeletonless_type_unit): New function.
5455 (process_dwo_file_for_skeletonless_type_units): New
5456 function.
5457 (process_skeletonless_type_units): New function.
5458 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5459 Call print tu_stats if debugging enabled.
5460
5461 2014-06-02 Pedro Alves <palves@redhat.com>
5462
5463 * breakpoint.c (build_target_command_list): Don't build a command
5464 list if we have any duplicate location that isn't a dprintf.
5465
5466 2014-06-02 Pedro Alves <palves@redhat.com>
5467
5468 * breakpoint.c (dprintf_breakpoint_hit): New function.
5469 (initialize_breakpoint_ops): Install it as dprintf's
5470 breakpoint_hit method.
5471
5472 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5473
5474 * source.c (substitute_path_rule_matches): Simplify using
5475 filename_ncmp instead of FILENAME_CMP.
5476
5477 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5478
5479 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5480
5481 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5482
5483 * configure.ac: When Guile is available, check for the
5484 availability of 'scm_new_smob'.
5485 * configure, config.h.in: Regenerate.
5486 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5487 function.
5488
5489 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5490
5491 * frame.c (struct frame_info): Add stop_string field.
5492 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5493 (get_prev_frame_always): Old content moved into
5494 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5495 TRY_CATCH, handle MEMORY_ERROR exceptions.
5496 (frame_stop_reason_string): New function definition.
5497 * frame.h (unwind_stop_reason_to_string): Extend comment to
5498 mention frame_stop_reason_string.
5499 (frame_stop_reason_string): New function declaration.
5500 * stack.c (frame_info): Switch to frame_stop_reason_string.
5501 (backtrace_command_1): Switch to frame_stop_reason_string.
5502 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5503 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5504 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5505
5506 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5507
5508 * frame.c (frame_stop_reason_string): Rename to ...
5509 (unwind_stop_reason_to_string): this.
5510 * frame.h (frame_stop_reason_string): Rename to ...
5511 (unwind_stop_reason_to_string): this.
5512 * stack.c (frame_info): Update call to frame_stop_reason_string.
5513 (backtrace_command_1): Likewise.
5514 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5515 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5516
5517 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5518
5519 * frame.c (remove_prev_frame): New function.
5520 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5521 remove_prev_frame.
5522
5523 2014-05-29 Pedro Alves <palves@redhat.com>
5524
5525 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5526 and make it const. When a single-step decays to a continue,
5527 clear 'step', not 'hw_step'. Pass whether the caller wanted
5528 to step to user_visible_resume_ptid, not what we ask the
5529 target to do.
5530
5531 2014-05-29 Pedro Alves <palves@redhat.com>
5532
5533 * infrun.c (process_event_stop_test, handle_step_into_function)
5534 (handle_step_into_function_backward): Adjust.
5535 Don't set the even thread's stop_step and call stop_waiting before
5536 calling end_stepping_range. Instead do that ...
5537 (end_stepping_range): ... here. Take an ecs pointer parameter.
5538
5539 2014-05-29 Pedro Alves <palves@redhat.com>
5540
5541 * infrun.c (stop_stepping): Rename to ...
5542 (stop_waiting): ... this.
5543 (proceed): Update comment.
5544 (process_event_stop_test, handle_inferior_event)
5545 (handle_signal_stop, handle_step_into_function)
5546 (handle_step_into_function_backward): Update.
5547
5548 2014-05-29 Pedro Alves <palves@redhat.com>
5549
5550 * infcall.c (run_inferior_call): Don't check whether the current
5551 thread is running after the proceed call.
5552
5553 2014-05-29 Pedro Alves <palves@redhat.com>
5554 Tom Tromey <tromey@redhat.com>
5555
5556 * NEWS: Mention "maint set target-async", "set mi-async", and that
5557 background execution commands are now always available.
5558 * target.h (target_async_permitted): Update comment.
5559 * target.c (target_async_permitted, target_async_permitted_1):
5560 Default to 1.
5561 (set_target_async_command): Rename to ...
5562 (maint_set_target_async_command): ... this.
5563 (show_target_async_command): Rename to ...
5564 (maint_show_target_async_command): ... this.
5565 (_initialize_target): Adjust.
5566 * infcmd.c (prepare_execution_command): Make extern.
5567 * inferior.h (prepare_execution_command): Declare.
5568 * infrun.c (set_observer_mode): Leave target async alone.
5569 * mi/mi-interp.c (mi_interpreter_init): Install
5570 mi_on_sync_execution_done as sync_execution_done observer.
5571 (mi_on_sync_execution_done): New function.
5572 (mi_execute_command_input_handler): Don't print the prompt if we
5573 just started a synchronous command with an async target.
5574 (mi_on_resume): Check sync_execution before printing prompt.
5575 * mi/mi-main.h (mi_async_p): Declare.
5576 * mi/mi-main.c: Include gdbcmd.h.
5577 (mi_async_p): New function.
5578 (mi_async, mi_async_1): New globals.
5579 (set_mi_async_command, show_mi_async_command, mi_async): New
5580 functions.
5581 (exec_continue): Call prepare_execution_command.
5582 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5583 (mi_execute_async_cli_command): Use mi_async_p.
5584 (_initialize_mi_main): Install "set mi-async". Make
5585 "target-async" a deprecated alias.
5586
5587 2014-05-29 Pedro Alves <palves@redhat.com>
5588
5589 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5590 (_initialize_cli_interp): Adjust.
5591 * event-loop.c: Include "observer.h".
5592 (start_event_loop): Notify 'command_error' observers instead of
5593 calling display_gdb_prompt. Remove FIXME comment.
5594 * event-top.c (display_gdb_prompt): Remove call into the
5595 interpreters.
5596 * inf-loop.c: Include "observer.h".
5597 (inferior_event_handler): Notify 'command_error' observers instead
5598 of calling display_gdb_prompt.
5599 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5600 observers instead of calling display_gdb_prompt.
5601 * interps.c (interp_set): Don't call display_gdb_prompt.
5602 (current_interp_display_prompt_p): Delete.
5603 * interps.h (interp_prompt_p): Delete declaration.
5604 (interp_prompt_p_ftype): Delete.
5605 (struct interp_procs) <prompt_proc_p>: Delete field.
5606 (current_interp_display_prompt_p): Delete declaration.
5607 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5608 (_initialize_mi_interp): Adjust.
5609 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5610 'command_error' observers.
5611 (tui_on_sync_execution_done, tui_on_command_error): New
5612 functions.
5613 (tui_display_prompt_p): Delete.
5614 (_initialize_tui_interp): Adjust.
5615
5616 2014-05-29 Pedro Alves <palves@redhat.com>
5617
5618 PR gdb/13860
5619 * cli/cli-interp.c: Include infrun.h and observer.h.
5620 (cli_uiout, cli_interp): New globals.
5621 (cli_on_signal_received, cli_on_end_stepping_range)
5622 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5623 functions.
5624 (cli_interpreter_init): Install them as 'end_stepping_range',
5625 'signal_received' 'signal_exited', 'exited' and 'no_history'
5626 observers.
5627 (_initialize_cli_interp): Remove cli_interp local.
5628 * infrun.c (handle_inferior_event): Call the several stop reason
5629 observers instead of printing the stop reason directly.
5630 (end_stepping_range): New function.
5631 (print_end_stepping_range_reason, print_signal_exited_reason)
5632 (print_exited_reason, print_signal_received_reason)
5633 (print_no_history_reason): Make static, and add an uiout
5634 parameter. Print to that instead of to CURRENT_UIOUT.
5635 * infrun.h (print_end_stepping_range_reason)
5636 (print_signal_exited_reason, print_exited_reason)
5637 (print_signal_received_reason print_no_history_reason): New
5638 declarations.
5639 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5640 'mi_uiout'.
5641 <cli_uiout>: New field.
5642 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5643 uiout for CLI output. Install 'signal_received',
5644 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5645 observers.
5646 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5647 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5648 (mi_on_no_history): New functions.
5649 (ui_out_free_cleanup): Delete function.
5650 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5651 instead use the one already stored in the MI interpreter data.
5652 (mi_ui_out): Adjust.
5653 * tui/tui-interp.c: Include infrun.h and observer.h.
5654 (tui_interp): New global.
5655 (tui_on_signal_received, tui_on_end_stepping_range)
5656 (tui_on_signal_exited, tui_on_exited)
5657 (tui_on_no_history): New functions.
5658 (tui_init): Install them as 'end_stepping_range',
5659 'signal_received' 'signal_exited', 'exited' and 'no_history'
5660 observers.
5661 (_initialize_tui_interp): Delete tui_interp local.
5662
5663 2014-05-29 Pedro Alves <palves@redhat.com>
5664
5665 PR gdb/15713
5666 * linux-nat.c (linux_nat_resume_callback): Rename the second
5667 parameter to 'except'. Skip LP if it points to EXCEPT.
5668 (linux_nat_resume): Don't mark the event lwp as not stopped
5669 before resuming sibling lwps. Instead ask
5670 linux_nat_resume_callback to skip the event lwp. Mark it as not
5671 stopped after actually resuming it.
5672 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5673 resuming it.
5674 (wait_lwp): Mark the lwp as stopped here.
5675 (stop_wait_callback): Mark the lwp as not stopped right after
5676 resuming it. Don't mark lwps as stopped here.
5677 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5678 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5679
5680 2014-05-29 Pedro Alves <palves@redhat.com>
5681
5682 PR PR15693
5683 * infrun.c (resume): Determine how much to resume depending on
5684 whether the caller wanted a step, not whether we can hardware step
5685 the target. Mark all threads that we intend to run as running,
5686 unless we're calling an inferior function.
5687 (normal_stop): If the thread is running an infcall, don't finish
5688 thread state.
5689 * target.c (target_resume): Don't mark threads as running here.
5690
5691 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5692
5693 * serial.c (_initialize_serial): Remove support for
5694 the "set remotebaud" and "show remotebaud" commands.
5695 * NEWS: Add entry documenting the removal of that command.
5696
5697 2014-05-28 Yao Qi <yao@codesourcery.com>
5698
5699 * charset.c: Fix typo in comments.
5700
5701 2014-05-27 Gary Benson <gbenson@redhat.com>
5702
5703 * utils.c (internal_vproblem): Prompt for a bug report.
5704
5705 2014-05-26 Andy Wingo <wingo@igalia.com>
5706
5707 * guile/scm-arch.c (arscm_mark_arch_smob):
5708 * guile/scm-block.c (bkscm_mark_block_smob)
5709 (bkscm_mark_block_syms_progress_smob):
5710 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5711 * guile/scm-exception.c (exscm_mark_exception_smob):
5712 * guile/scm-frame.c (frscm_mark_frame_smob):
5713 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5714 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5715 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5716 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5717 (ppscm_mark_pretty_printer_worker_smob):
5718 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5719 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5720 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5721 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5722 mark functions.
5723 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5724 function.
5725
5726 2014-05-26 Andy Wingo <wingo@igalia.com>
5727 Doug Evans <xdje42@gmail.com>
5728
5729 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5730 empty_base_class. All uses updated.
5731 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5732 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5733 Adapt all callers.
5734 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5735 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5736 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5737 (gdbscm_gsmob_has_property_p, add_property_name)
5738 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5739 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5740 (gdb-object-has-property?, gdb-object-properties): Remove.
5741 (gdb-object-kind): Renamed from gsmob-kind.
5742
5743 2014-05-26 Andy Wingo <wingo@igalia.com>
5744
5745 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5746 * configure: Regenerate.
5747
5748 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5749
5750 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5751
5752 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5753
5754 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5755 (replay_memory_access_read_only, replay_memory_access_read_write)
5756 (replay_memory_access_types, replay_memory_access)
5757 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5758 (cmd_set_record_btrace, cmd_show_record_btrace)
5759 (cmd_show_replay_memory_access): New.
5760 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5761 (record_btrace_remove_breakpoint): Replace
5762 record_btrace_allow_memory_access with replay_memory_access.
5763 (_initialize_record_btrace): Add commands.
5764 * NEWS: Announce it.
5765
5766 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5767
5768 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5769
5770 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5771
5772 * MAINTAINERS (Write After Approval): Move self back from
5773 paper trail.
5774
5775 2014-05-22 Pedro Alves <palves@redhat.com>
5776
5777 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5778 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5779 (disable_randomization, enum exec_direction_kind)
5780 (execution_direction, stop_registers, start_remote)
5781 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5782 (wait_for_inferior, normal_stop, get_last_target_status)
5783 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5784 (insert_step_resume_breakpoint_at_sal)
5785 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5786 (set_step_info, print_stop_event, signal_stop_state)
5787 (signal_print_state, signal_pass_state, signal_stop_update)
5788 (signal_print_update, signal_pass_update)
5789 (update_signals_program_target, clear_exit_convenience_vars)
5790 (displaced_step_dump_bytes, update_observer_mode)
5791 (signal_catch_update, gdb_signal_from_command): Move
5792 declarations ...
5793 * infrun.h: ... to this new file.
5794 * amd64-tdep.c: Include infrun.h.
5795 * annotate.c: Include infrun.h.
5796 * arch-utils.c: Include infrun.h.
5797 * arm-linux-tdep.c: Include infrun.h.
5798 * arm-tdep.c: Include infrun.h.
5799 * break-catch-sig.c: Include infrun.h.
5800 * breakpoint.c: Include infrun.h.
5801 * common/agent.c: Include infrun.h instead of inferior.h.
5802 * corelow.c: Include infrun.h.
5803 * event-top.c: Include infrun.h.
5804 * go32-nat.c: Include infrun.h.
5805 * i386-tdep.c: Include infrun.h.
5806 * inf-loop.c: Include infrun.h.
5807 * infcall.c: Include infrun.h.
5808 * infcmd.c: Include infrun.h.
5809 * infrun.c: Include infrun.h.
5810 * linux-fork.c: Include infrun.h.
5811 * linux-nat.c: Include infrun.h.
5812 * linux-thread-db.c: Include infrun.h.
5813 * monitor.c: Include infrun.h.
5814 * nto-tdep.c: Include infrun.h.
5815 * procfs.c: Include infrun.h.
5816 * record-btrace.c: Include infrun.h.
5817 * record-full.c: Include infrun.h.
5818 * remote-m32r-sdi.c: Include infrun.h.
5819 * remote-mips.c: Include infrun.h.
5820 * remote-notif.c: Include infrun.h.
5821 * remote-sim.c: Include infrun.h.
5822 * remote.c: Include infrun.h.
5823 * reverse.c: Include infrun.h.
5824 * rs6000-tdep.c: Include infrun.h.
5825 * s390-linux-tdep.c: Include infrun.h.
5826 * solib-irix.c: Include infrun.h.
5827 * solib-osf.c: Include infrun.h.
5828 * solib-svr4.c: Include infrun.h.
5829 * target.c: Include infrun.h.
5830 * top.c: Include infrun.h.
5831 * windows-nat.c: Include infrun.h.
5832 * mi/mi-interp.c: Include infrun.h.
5833 * mi/mi-main.c: Include infrun.h.
5834 * python/py-threadevent.c: Include infrun.h.
5835
5836 2014-05-22 Pedro Alves <palves@redhat.com>
5837
5838 * infrun.c (handle_inferior_event): Store the exit code for
5839 --return-child-result here, instead of ...
5840 (print_exited_reason): ... here.
5841
5842 2014-05-21 Pedro Alves <palves@redhat.com>
5843
5844 PR gdb/13860
5845 * gdbthread.h (struct thread_control_state): New field
5846 `command_interp'.
5847 * infrun.c (follow_fork): Copy the new thread control field to the
5848 child fork thread.
5849 (clear_proceed_status_thread): Clear the new thread control field.
5850 (proceed): Set the new thread control field.
5851 * interps.h (command_interp): Declare.
5852 * interps.c (command_interpreter): New global.
5853 (command_interp): New function.
5854 (interp_exec): Set `command_interpreter' while here.
5855 * cli-out.c (cli_uiout_dtor): New function.
5856 (cli_ui_out_impl): Install it.
5857 * mi/mi-interp.c: Include cli-out.h.
5858 (mi_cmd_interpreter_exec): Add comment.
5859 (restore_current_uiout_cleanup): New function.
5860 (ui_out_free_cleanup): New function.
5861 (mi_on_normal_stop): If finishing an execution command started by
5862 a CLI command, or any kind of breakpoint-like event triggered,
5863 print the stop event to the output (CLI) stream.
5864 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5865
5866 2014-05-21 Pedro Alves <palves@redhat.com>
5867
5868 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5869 current source line having changed.
5870 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5871 * infrun.c (normal_stop): Adjust call to
5872 set_current_sal_from_frame.
5873 * source.c (clear_lines_listed_range): New function.
5874 (set_current_source_symtab_and_line, identify_source_line): Clear
5875 the lines listed range.
5876 (line_info): Handle the first "info line" after the current source
5877 line having changed.
5878 * stack.c (print_stack_frame): Remove center handling.
5879 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5880 center sal.line.
5881
5882 2014-05-21 Pedro Alves <palves@redhat.com>
5883
5884 * inf-child.c (inf_child_mourn_inferior): New function.
5885 * inf-child.h (inf_child_mourn_inferior): New declaration.
5886 * darwin-nat.c (darwin_mourn_inferior): Use
5887 inf_child_mourn_inferior.
5888 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5889 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5890 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5891 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5892 * windows-nat.c (windows_mourn_inferior): Likewise.
5893
5894 2014-05-21 Doug Evans <xdje42@gmail.com>
5895
5896 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5897
5898 2014-05-21 Doug Evans <xdje42@gmail.com>
5899
5900 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5901 (gdbscm_out_of_range_error): Ditto.
5902 (gdbscm_memory_error): Ditto.
5903 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5904 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5905 (gdbscm_out_of_range_error): Update.
5906 (gdbscm_memory_error): Update.
5907 (gdbscm_scm_to_target_string_unsafe): Delete.
5908
5909 2014-05-21 Pedro Alves <palves@redhat.com>
5910
5911 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5912 globals.
5913 (inf_child_open_target): New function.
5914 (inf_child_open): Use inf_child_open_target to push the target
5915 instead of erroring out.
5916 (inf_child_disconnect, inf_child_close)
5917 (inf_child_maybe_unpush_target): New functions.
5918 (inf_child_target): Install inf_child_disconnect and
5919 inf_child_close. Store a pointer to the returned object.
5920 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5921 declarations.
5922 * target.c (auto_connect_native_target): New global.
5923 (show_default_run_target): New function.
5924 (find_default_run_target): Return NULL if automatically connecting
5925 to the native target is disabled.
5926 (_initialize_target): Install set/show auto-connect-native-target.
5927 * NEWS: Mention "set auto-connect-native-target", and "target
5928 native".
5929 * linux-nat.c (super_close): New global.
5930 (linux_nat_close): Call super_close.
5931 (linux_nat_add_target): Store a pointer to the base class's
5932 to_close method.
5933 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5934 inf_child_maybe_unpush.
5935 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5936 already pushed.
5937 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5938 the inferior. Use inf_child_maybe_unpush_target.
5939 (inf_ttrace_attach): Don't push the target if it is already
5940 pushed.
5941 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5942 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5943 after mourning the inferior. Use inf_child_maybe_unpush_target.
5944 (darwin_attach_pid): Don't push the target if it is already
5945 pushed.
5946 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5947 mourning the inferior. Use inf_child_maybe_unpush_target.
5948 (gnu_detach): Use inf_child_maybe_unpush_target.
5949 * go32-nat.c (go32_create_inferior): Don't push the target if it
5950 is already pushed.
5951 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5952 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5953 (procfs_open): Rename to ...
5954 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5955 comments. Can target_preopen before changing node. Call
5956 inf_child_open_target to push the target explicitly.
5957 (procfs_attach): Don't push the target if it is already pushed.
5958 (procfs_detach): Use inf_child_maybe_unpush_target.
5959 (procfs_create_inferior): Don't push the target if it is already
5960 pushed.
5961 (nto_native_ops): New global.
5962 (procfs_open): Reimplement.
5963 (procfs_native_open): New function.
5964 (init_procfs_targets): Install procfs_native_open as to_open of
5965 "target native". Store a pointer to the "native" target in
5966 nto_native_ops.
5967 * procfs.c (procfs_attach): Don't push the target if it is already
5968 pushed.
5969 (procfs_detach): Use inf_child_maybe_unpush_target.
5970 (procfs_mourn_inferior): Only unpush the target after mourning the
5971 inferior. Use inf_child_maybe_unpush_target.
5972 (procfs_init_inferior): Don't push the target if it is already
5973 pushed.
5974 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5975 if it is already pushed.
5976
5977 2014-05-21 Pedro Alves <palves@redhat.com>
5978
5979 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5980 and "procfs" targets are now called "native" instead.
5981
5982 2014-05-21 Pedro Alves <palves@redhat.com>
5983
5984 * go32-nat.c (go32_open): Delete.
5985 (go32_target): Don't override the to_open method.
5986
5987 2014-05-21 Pedro Alves <palves@redhat.com>
5988
5989 * nto-procfs.c (procfs_can_run): New function.
5990 (nto_procfs_ops): New global.
5991 (init_procfs_targets): New, based on procfs_target. Install
5992 "target native" in addition to "target procfs".
5993 (_initialize_procfs): Call init_procfs_targets instead of adding
5994 the target here.
5995
5996 2014-05-21 Pedro Alves <palves@redhat.com>
5997
5998 * windows-nat.c (windows_target): Don't override to_shortname,
5999 to_longname or to_doc.
6000
6001 2014-05-21 Pedro Alves <palves@redhat.com>
6002
6003 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6004 to_doc.
6005
6006 2014-05-21 Pedro Alves <palves@redhat.com>
6007
6008 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6009 to_shortname, to_longname or to_doc.
6010
6011 2014-05-21 Pedro Alves <palves@redhat.com>
6012
6013 * go32-nat.c (go32_target): Don't override to_shortname,
6014 to_longname or to_doc.
6015
6016 2014-05-21 Pedro Alves <palves@redhat.com>
6017
6018 * inf-child.c (inf_child_open): Remove mention of "child".
6019 (inf_child_target): Rename target to "native" instead of "child".
6020
6021 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6022
6023 * Makefile.in (SFILES): Delete "regset.c".
6024 (COMMON_OBS): Delete "regset.o".
6025 * regset.c: Remove.
6026 * regset.h (regset_alloc): Delete prototype.
6027
6028 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6029
6030 * sparc-linux-tdep.c (sparc32_linux_gregset)
6031 (sparc32_linux_fpregset): New static regset structures.
6032 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6033 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6034 'fpregset' fields.
6035 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6036 (sparc64_linux_fpregset): New static regset structures.
6037 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6038 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6039 New static regset structures.
6040 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6041 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6042 New static regset structures.
6043 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6044 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6045 New static regset structures.
6046 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6047 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6048 New static regset structures.
6049 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6050
6051 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6052
6053 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6054 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6055 register maps ("regmaps") from "*regset" to "*regmap". Do this
6056 for all regmap types and variables.
6057 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6058 (sparc32_linux_supply_core_gregset)
6059 (sparc32_linux_collect_core_gregset)
6060 (sparc32_linux_supply_core_fpregset)
6061 (sparc32_linux_collect_core_fpregset): Likewise.
6062 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6063 (sparc_gregmap, sparc_fpregmap): ... these.
6064 (sparc_supply_gregset, sparc_collect_gregset)
6065 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6066 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6067 (_initialize_sparc_nat): Rename regmaps.
6068 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6069 (sparc_gregmap, sparc_fpregmap): ... these.
6070 (sparc_supply_gregset, sparc_collect_gregset)
6071 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6072 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6073 Rename macros to...
6074 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6075 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6076 Likewise.
6077 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6078 Rename to...
6079 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6080 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6081 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6082 regmaps.
6083 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6084 (sparc32_bsd_fpregset): Rename to...
6085 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6086 (sparc32_bsd_fpregmap): ... these.
6087 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6088 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6089 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6090 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6091 (struct sparc_gregmap, struct sparc_fpregmap)
6092 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6093 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6094 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6095 (sparc32_supply_regset, sparc32_collect_gregset)
6096 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6097 prototypes.
6098 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6099 (sparc64_linux_ptrace_gregmap): ... this.
6100 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6101 (_initialize_sparc64_linux_nat): Rename regmaps.
6102 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6103 (sparc64_linux_core_gregmap): ... this.
6104 (sparc64_linux_supply_core_gregset)
6105 (sparc64_linux_collect_core_gregset)
6106 (sparc64_linux_supply_core_fpregset)
6107 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6108 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6109 (sparc64_sol2_fpregset): Rename to...
6110 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6111 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6112 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6113 regmaps.
6114 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6115 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6116 (sparc64_bsd_fpregset): Rename to...
6117 (struct sparc_gregmap, sparc64_sol2_gregmap)
6118 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6119 (sparc64_bsd_fpregmap): ... these.
6120 (sparc64_supply_gregset, sparc64_collect_gregset)
6121 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6122 prototypes.
6123 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6124 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6125 (sparc64fbsd_gregmap): ... this.
6126 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6127 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6128 Rename regmaps.
6129 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6130 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6131 (sparc64nbsd_collect_fpregset): Likewise.
6132 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6133 (sparc64nbsd_gregmap): ... this.
6134 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6135 regmaps.
6136 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6137 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6138 (sparc64obsd_gregmap): ... this.
6139 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6140 regmaps.
6141 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6142 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6143 (sparc32nbsd_gregmap): ... this.
6144 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6145 regmaps.
6146
6147 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6148
6149 * score-tdep.c (score7_linux_gregset): New static regset
6150 structure.
6151 (score7_linux_regset_from_core_section): Remove dynamic regset
6152 allocation.
6153 (score_gdbarch_init): Drop allocation of tdep structure.
6154 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6155
6156 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6157
6158 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6159 regset structures.
6160 (am33_regset_from_core_section): Remove dynamic regset
6161 allocations.
6162
6163 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6164
6165 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6166 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6167 structures.
6168 (mips_linux_regset_from_core_section): Remove dynamic regset
6169 allocations.
6170 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6171 'gregset64', 'fpregset', and 'fpregset64'.
6172 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6173 deleted tdep fields.
6174
6175 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6176
6177 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6178 regset structures.
6179 (amd64_regset_from_core_section): Remove dynamic regset
6180 allocations.
6181 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6182 structure.
6183 (amd64obsd_regset_from_core_section): Remove dynamic regset
6184 allocation.
6185 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6186 Likewise.
6187 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6188 x86-common regset supply function.
6189 * i386-tdep.c (i386_collect_gregset): Make static.
6190 (i386_gregset): New global regset structure.
6191 (i386_fpregset, i386_xstateregset): New static regset structures.
6192 (i386_regset_from_core_section): Remove dynamic regset
6193 allocations.
6194 (i386_gdbarch_init): Remove initialization of tdep fields
6195 'gregset', 'fpregset', and 'xstateregset'.
6196 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6197 'fpregset', and 'xstateregset'.
6198 (i386_collect_gregset): Remove prototype.
6199 (i386_gregset): New declaration.
6200 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6201 structure.
6202 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6203 allocation.
6204
6205 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6206
6207 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6208 (arm_linux_vfpregset): New static regset structures.
6209 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6210 regset structures.
6211 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6212 and 'vfpregset' fields.
6213
6214 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6215
6216 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6217 (aarch64_linux_fpregset): New static regset structures.
6218 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6219 of regset structures.
6220 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6221 'fpregset' fields.
6222
6223 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6224
6225 * regset.h (struct regset): Remove gdbarch field.
6226 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6227 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6228 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6229 Likewise.
6230 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6231 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6232 (ppc32_linux_vsxregset): Likewise.
6233 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6234 via the regcache instead of the regset.
6235 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6236 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6237 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6238 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6239 Likewise.
6240
6241 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6242
6243 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6244 Constify structures.
6245 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6246 (alphanbsd_aout_gregset): Likewise.
6247 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6248 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6249 Likewise.
6250 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6251 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6252 Likewise.
6253 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6254 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6255 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6256 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6257 * m88k-tdep.c (m88k_gregset): Likewise.
6258 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6259 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6260 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6261 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6262 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6263 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6264 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6265 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6266 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6267 Likewise.
6268 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6269 * sh-tdep.h (sh_corefile_gregset): Likewise.
6270 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6271 * vax-tdep.c (vax_gregset): Likewise.
6272
6273 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6274
6275 Fix TLS access for -static -pthread.
6276 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6277 (try_thread_db_load_1): Initialize it.
6278 (thread_db_get_thread_local_address): Call it if LM is zero.
6279 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6280 * target.h (struct target_ops) (to_get_thread_local_address): Add
6281 load_module_addr comment.
6282
6283 2014-05-21 Pedro Alves <palves@redhat.com>
6284
6285 * dcache.c (dcache_read_memory_partial): If reading the cache line
6286 fails, fallback to reading just the memory the caller wanted.
6287
6288 2014-05-20 Doug Evans <dje@google.com>
6289
6290 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6291 instead of get_current_arch.
6292
6293 2014-05-20 Pedro Alves <palves@redhat.com>
6294
6295 * NEWS: Mention that compare-sections now works with all targets.
6296
6297 * remote.c (PACKET_qCRC): New enum value.
6298 (remote_verify_memory): Don't send qCRC if the target has no
6299 execution. Use packet_support/packet_ok. If the target doesn't
6300 support the qCRC packet, fallback to a deep memory copy.
6301 (compare_sections_command): Say "target image" instead of "remote
6302 executable".
6303 (_initialize_remote): Add PACKET_qCRC to the list of config
6304 packets that have no associated command. Extend comment.
6305 * target.c (simple_verify_memory, default_verify_memory): New
6306 function.
6307 * target.h (struct target_ops) <to_verify_memory>: Default to
6308 default_verify_memory.
6309 (simple_verify_memory): New declaration.
6310 * target-delegates.c: Regenerate.
6311
6312 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6313
6314 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6315
6316 2014-05-20 Hui Zhu <hui@codesourcery.com>
6317 Yao Qi <yao@codesourcery.com>
6318
6319 PR backtrace/16558
6320 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6321 and change address of sp and pc.
6322
6323 2014-05-19 Tom Tromey <tromey@redhat.com>
6324
6325 * gdbtypes.c (rank_function): Use XNEWVEC.
6326 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6327
6328 2014-05-19 Doug Evans <dje@google.com>
6329
6330 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6331 build_type_unit_groups and moved closer to only caller. Remove
6332 arguments. All references updated. Remove outdated .gdb_index
6333 comment.
6334 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6335 build_type_psymtabs_1.
6336
6337 2014-05-19 Doug Evans <dje@google.com>
6338
6339 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6340 n_type_unit_groups, all_type_unit_groups. All uses removed.
6341 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6342 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6343 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6344 (add_type_unit_group_to_table): Delete.
6345
6346 2014-05-19 Doug Evans <dje@google.com>
6347
6348 * eval.c (evaluate_subexp_standard): Add some comments.
6349
6350 2014-05-17 Doug Evans <xdje42@gmail.com>
6351
6352 * progspace.c (remove_program_space): Delete, unused.
6353 * progspace.h (remove_program_space): Ditto.
6354
6355 2014-05-17 Doug Evans <xdje42@gmail.com>
6356
6357 * inferior.c (prune_inferiors): Fix comment.
6358 (remove_inferior_command): Call prune_program_spaces.
6359
6360 2014-05-16 Doug Evans <dje@google.com>
6361
6362 New command line option -D.
6363 * NEWS: Mention it.
6364 * main.c (set_gdb_data_directory): New function.
6365 (captured_main): Recognize -D. Flag error for --data-directory "".
6366 Call set_gdb_data_directory.
6367 (print_gdb_help): Print --data-directory, -D.
6368 * main.h (set_gdb_data_directory): Declare.
6369 * top.c (staged_gdb_datadir): New static global.
6370 (set_gdb_datadir): Call set_gdb_data_directory
6371 (show_gdb_datadir): New function.
6372 (init_main): Update init of data-directory parameter.
6373
6374 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6375
6376 Import the "dirfd" gnulib module.
6377 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6378 * gnulib/aclocal.m4: Update.
6379 * gnulib/config.in: Update.
6380 * gnulib/configure: Update.
6381 * gnulib/import/Makefile.am: Update.
6382 * gnulib/import/Makefile.in: Update.
6383 * gnulib/import/dirfd.c: New.
6384 * gnulib/import/m4/dirfd.m4: New.
6385 * gnulib/import/m4/gnulib-cache.m4: Update.
6386 * gnulib/import/m4/gnulib-comp.m4: Update.
6387
6388 2014-05-16 Pierre Muller <muller@sourceware.org>
6389 Yao Qi <yao@codesourcery.com>
6390
6391 * valprint.c (print_wchar): Move the code on checking whether
6392 W is a printable wide char to the default branch of switch
6393 statement below. Call wchar_printable instead of gdb_iswprint.
6394
6395 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6396
6397 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6398 ldr.w and ldrd instructions.
6399
6400 2014-05-15 Doug Evans <dje@google.com>
6401
6402 * dwarf2read.c (read_structure_type): Delete outdated comments.
6403
6404 2014-05-14 Tom Tromey <tromey@redhat.com>
6405
6406 * macrocmd.c (print_macro_definition): Reindent.
6407
6408 2014-05-13 Doug Evans <xdje42@gmail.com>
6409
6410 * python/py-cmd.c (cmdpy_completer): Add comment.
6411 (completers): Make const.
6412
6413 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6414
6415 * infrun.c (resume): Remove should_resume (unused). Move up
6416 declaration of resume_ptid.
6417
6418 2014-05-13 Tom Tromey <tromey@redhat.com>
6419
6420 * language.h (unop_type_check): Remove.
6421 (binop_type_check): Don't declare.
6422
6423 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6424
6425 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6426 call to regcache_raw_collect.
6427
6428 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6429
6430 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6431 mi_console->quote as the quoting character.
6432
6433 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6434
6435 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6436
6437 2014-04-29 Tom Tromey <tromey@redhat.com>
6438
6439 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6440 "show debug varobj".
6441
6442 2014-05-07 Kyle McMartin <kyle@redhat.com>
6443
6444 Pushed by Joel Brobecker <brobecker@adacore.com>.
6445 * aarch64-tdep.c (aarch64_software_single_step): New function.
6446 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6447 with aarch64_software_single_step.
6448
6449 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6450
6451 GDB 7.7.1 released.
6452
6453 2014-05-05 Keith Seitz <keiths@redhat.com>
6454
6455 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6456 variable or history value is successfully parsed.
6457
6458 2014-05-05 Yao Qi <yao@codesourcery.com>
6459 Pedro Alves <palves@redhat.com>
6460
6461 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6462 address of blocks that intersects the requested range. Trim
6463 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6464 sections.
6465 * ctf.c (ctf_xfer_partial): Likewise.
6466
6467 2014-05-05 Yao Qi <yao@codesourcery.com>
6468
6469 * printcmd.c (display_command): Remove the check to
6470 target_has_execution.
6471
6472 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6473
6474 * ppcobsd-nat.c: Include "obsd-nat.h".
6475 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6476 add_target.
6477 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6478
6479 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6480
6481 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6482 and 16-bit signed and unsigned arguments. Update comment.
6483 (stap_parse_probe_arguments): Extend code to handle such
6484 arguments. Use warning instead of complaint to notify about
6485 unrecognized bitness.
6486
6487 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6488
6489 PR breakpoints/16889
6490 * stap-probe.c (stap_parse_probe_arguments): Simplify
6491 check for non-prefixed probes (i.e., probes whose
6492 arguments do not start with "N@"). Always set the
6493 argument type to a sane value.
6494
6495 2014-05-01 David Taylor <dtaylor@emc.com>
6496
6497 * remote.c (compare_sections_command): Add -r option to compare
6498 all loadable read-only sections.
6499
6500 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6501
6502 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6503 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6504 Update all callers.
6505 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6506 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6507 Remove unused CORE_ADDR argument. Update all callers.
6508
6509 2014-04-29 Pedro Alves <palves@redhat.com>
6510
6511 * remote.c (struct packet_config) <detect>: Extend comment.
6512 (add_packet_config_cmd): Don't set the config's detect or support
6513 fields here.
6514 (init_all_packet_configs): Also initialize the config's 'detect'
6515 field.
6516 (reset_all_packet_configs_support): New function.
6517 (remote_open_1): Call reset_all_packet_configs_support instead of
6518 init_all_packet_configs.
6519 (_initialize_remote): Initialize all packet configs. Assert that
6520 all packets have an associated command, except a few known
6521 outliers.
6522
6523 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6524
6525 * dwarf2read.c (read_subrange_type): Handle dynamic
6526 DW_AT_lower_bound attributes.
6527
6528 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6529
6530 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6531 dynamic bounds before computing its upper bound.
6532 (ada_discrete_type_low_bound): Same as above with the lower bound.
6533
6534 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6535
6536 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6537 range types. Adjust the array handling implementation to
6538 take advantage of this change.
6539 (resolve_dynamic_range): New function, mostly extracted from
6540 resolve_dynamic_bounds.
6541 (resolve_dynamic_array): New function, mostly extracted from
6542 resolve_dynamic_bounds.
6543 (resolve_dynamic_bounds): Delete.
6544 (resolve_dynamic_type): Reimplement. Add handling of
6545 TYPE_CODE_RANGE types.
6546
6547 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6548
6549 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6550 handling of parallel ___XA types.
6551
6552 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6553
6554 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6555 unnecessary second call to static_unwrap_type.
6556
6557 2014-04-27 Hui Zhu <hui@codesourcery.com>
6558
6559 * stack.c (print_frame_info): Call do_gdb_disassembly with
6560 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6561
6562 2014-04-26 Doug Evans <xdje42@gmail.com>
6563
6564 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6565
6566 2014-04-25 Pedro Alves <palves@redhat.com>
6567
6568 PR server/16255
6569 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6570 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6571 and newline from built string.
6572 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6573 (linux_ptrace_attach_fail_reason): ... this.
6574 * linux-nat.c (linux_nat_attach): Adjust to use
6575 linux_ptrace_attach_fail_reason.
6576
6577 2014-04-25 Pedro Alves <palves@redhat.com>
6578
6579 * remote.c (struct remote_state): Remove multi_process_aware,
6580 non_stop_aware, cond_tracepoints, cond_breakpoints,
6581 breakpoint_commands, fast_tracepoints, static_tracepoints,
6582 install_in_trace, disconnected_tracing,
6583 enable_disable_tracepoints, string_tracing, and
6584 augmented_libraries_svr4_read fields.
6585 (remote_multi_process_p): Move further below in the file.
6586 (struct packet_config): Add comments.
6587 (update_packet_config): Delete function.
6588 (show_packet_config_cmd): Use packet_config_support.
6589 (add_packet_config_cmd): Use NULL as set callback.
6590 (packet_ok): "set remote foo-packet"-style commands no longer
6591 change config->supported -- adjust.
6592 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6593 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6594 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6595 (PACKET_QNonStop, PACKET_multiprocess_feature)
6596 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6597 (PACKET_DisconnectedTracing_feature)
6598 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6599 (set_remote_protocol_packet_cmd): Delete function.
6600 (packet_config_support, packet_support): New functions.
6601 (set_remote_protocol_Z_packet_cmd): Don't call
6602 update_packet_config.
6603 (remote_query_attached, remote_pass_signals)
6604 (remote_program_signals, remote_threads_info)
6605 (remote_threads_extra_info, remote_start_remote): Use
6606 packet_support.
6607 (remote_start_remote): Use packet_config_support and
6608 packet_support.
6609 (init_all_packet_configs): Set all packets to unknown support,
6610 instead of calling update_packet_config.
6611 (remote_check_symbols): Use packet_support.
6612 (remote_supported_packet): Unconditionally set the packet config's
6613 support status.
6614 (remote_multi_process_feature, remote_non_stop_feature)
6615 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6616 (remote_breakpoint_commands_feature)
6617 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6618 (remote_install_in_trace_feature)
6619 (remote_disconnected_tracing_feature)
6620 (remote_enable_disable_tracepoint_feature)
6621 (remote_string_tracing_feature)
6622 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6623 (remote_protocol_features): Adjust to use remote_supported_packet
6624 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6625 "ConditionalTracepoints", "ConditionalBreakpoints",
6626 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6627 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6628 "EnableDisableTracepoints", and "tracenz".
6629 (remote_query_supported): Use packet_support.
6630 (remote_open_1): Adjust.
6631 (extended_remote_attach_1): Use packet_support. Switch on the
6632 result of packet_ok instead of checking whether the packet ended
6633 up disabled.
6634 (remote_vcont_resume): Use packet_support.
6635 (remote_resume, remote_stop_ns, fetch_register_using_p)
6636 (remote_prepare_to_store, store_register_using_P)
6637 (check_binary_download, remote_write_bytes): Use packet_support.
6638 (remote_vkill): Use packet_support. Switch on the result of
6639 packet_ok instead of checking whether the packet ended up
6640 disabled.
6641 (extended_remote_supports_disable_randomization): Use
6642 packet_support.
6643 (extended_remote_run): Switch on the result of packet_ok instead
6644 of checking whether the packet ended up disabled.
6645 (remote_insert_breakpoint, remote_remove_breakpoint)
6646 (remote_insert_watchpoint, remote_remove_watchpoint)
6647 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6648 packet_support.
6649 (remote_search_memory): Use packet_config_support.
6650 (remote_get_thread_local_address, remote_get_tib_address)
6651 (remote_hostio_send_command, remote_can_execute_reverse): Use
6652 packet_support.
6653 (remote_supports_cond_tracepoints)
6654 (remote_supports_cond_breakpoints)
6655 (remote_supports_fast_tracepoints)
6656 (remote_supports_static_tracepoints)
6657 (remote_supports_install_in_trace)
6658 (remote_supports_enable_disable_tracepoint)
6659 (remote_supports_string_tracing)
6660 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6661 the packet config says the feature is enabled or disabled.
6662 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6663 (remote_get_trace_status): Use packet_support.
6664 (remote_set_disconnected_tracing): Adjust to check whether the
6665 feature is enabled with packet_support.
6666 (remote_set_trace_buffer_size, remote_use_agent)
6667 (remote_can_use_agent, remote_supports_btrace): Use
6668 packet_support.
6669 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6670 Use packet_config_support.
6671 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6672 the packet config says the feature is enabled or disabled.
6673 (set_range_stepping): Use packet_support.
6674
6675 2014-04-25 Tom Tromey <tromey@redhat.com>
6676
6677 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6678 argument.
6679
6680 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6681
6682 * NEWS: Mention support for C99 variable length arrays.
6683
6684 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6685
6686 * ada-lang.c (standard_exc): Expand introductory comment.
6687
6688 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6689 Walfred Tedeschi <walfred.tedeschi@intel.com>
6690
6691 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6692 AVX512 registers.
6693 (amd64_linux_read_description): Add code to handle AVX512 xstate
6694 mask and return respective tdesc.
6695 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6696 and features/i386/x32-avx512-linux.c.
6697 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6698 (amd64_linux_core_read_description): Add code to handle AVX512
6699 xstate mask and return respective tdesc.
6700 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6701 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6702 calculation.
6703 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6704 (tdesc_amd64_avx512_linux): New prototype.
6705 (tdesc_x32_avx512_linux): Likewise.
6706 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6707 features/i386/x32-avx512.c.
6708 (amd64_ymm_avx512_names): New register names for pseudo
6709 registers YMM16-31.
6710 (amd64_ymmh_avx512_names): New register names for raw registers
6711 YMMH16-31.
6712 (amd64_k_names): New register names for K registers.
6713 (amd64_zmmh_names): New register names for ZMM raw registers.
6714 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6715 (amd64_xmm_avx512_names): New register names for XMM16-31
6716 registers.
6717 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6718 registers.
6719 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6720 if feature is present.
6721 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6722 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6723 (AMD64_NUM_REGS): Adjust to new number of registers.
6724 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6725 registers supplied via XSTATE by AVX512 registers.
6726 (i386_linux_read_description): Add case for AVX512.
6727 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6728 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6729 (i386_linux_core_read_description): Add case for AVX512.
6730 (i386_linux_init_abi): Install supported register note section
6731 for AVX512.
6732 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6733 AVX512.
6734 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6735 registers to be number of zmm7h + 1.
6736 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6737 * i386-tdep.c: Include features/i386/i386-avx512.c.
6738 (i386_zmm_names): Add ZMM pseudo register names array.
6739 (i386_zmmh_names): Add ZMM raw register names array.
6740 (i386_k_names): Add K raw register names array.
6741 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6742 registers. AVX512 has 16 more ZMM registers than there are YMM
6743 registers.
6744 (i386_zmmh_regnum_p): Add function to look up register number of
6745 ZMM raw registers.
6746 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6747 (i386_k_regnum_p): Likewise for K raw registers.
6748 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6749 registers added by AVX512.
6750 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6751 registers added by AVX512.
6752 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6753 added by AVX512.
6754 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6755 (i386_pseudo_register_name): Add ZMM pseudo registers.
6756 (i386_zmm_type): Construct and return vector registers type for ZMM
6757 registers.
6758 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6759 ZMM0-31 pseudo registers and K registers.
6760 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6761 and YMM16-31 registers from register cache.
6762 (i386_pseudo_register_write): Add code to write K, ZMM and
6763 YMM16-31 registers.
6764 (i386_register_reggroup_p): Add code to include/exclude AVX512
6765 registers in/from respective register groups.
6766 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6767 registers if feature is present in xcr0.
6768 (i386_gdbarch_init): Add code to initialize AVX512 feature
6769 variables in tdep structure, wire in pseudo registers and call
6770 initialize_tdesc_i386_avx512.
6771 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6772 variables.
6773 (i386_regnum): Add AVX512 registers.
6774 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6775 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6776 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6777 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6778 512 bits wide.
6779 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6780 (i386_ymm_avx512_regnum_p): Likewise.
6781 (i386_k_regnum_p): Likewise.
6782 (i386_zmm_regnum_p): Likewise.
6783 (i386_zmmh_regnum_p): Likewise.
6784 * i387-tdep.c : Update year in copyright notice.
6785 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6786 XSAVE buffer.
6787 (XSAVE_YMM_AVX512_ADDR): New macro.
6788 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6789 XSAVE buffer.
6790 (XSAVE_XMM_AVX512_ADDR): New macro.
6791 (xsave_avx512_k_offset): New table for K register offsets in
6792 XSAVE buffer.
6793 (XSAVE_AVX512_K_ADDR): New macro.
6794 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6795 in XSAVE buffer.
6796 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6797 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6798 buffer.
6799 (i387_collect_xsave): Add code to collect AVX512 registers from
6800 XSAVE buffer.
6801 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6802 of XMM16-31 registers.
6803 (I387_NUM_K_REGS): New define for number of K registers.
6804 (I387_K0_REGNUM): New define for K0 register number.
6805 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6806 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6807 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6808 registers.
6809 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6810 (I387_XMM16_REGNUM): New define for XMM16 register number.
6811 (I387_YMM0_REGNUM): New define for YMM0 register number.
6812 (I387_KEND_REGNUM): New define for last K register number.
6813 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6814 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6815 number.
6816 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6817 number.
6818 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6819 size.
6820 * features/Makefile: Add AVX512 related files.
6821 * features/i386/32bit-avx512.xml: New file.
6822 * features/i386/64bit-avx512.xml: Likewise.
6823 * features/i386/amd64-avx512-linux.c: Likewise.
6824 * features/i386/amd64-avx512-linux.xml: Likewise.
6825 * features/i386/amd64-avx512.c: Likewise.
6826 * features/i386/amd64-avx512.xml: Likewise.
6827 * features/i386/i386-avx512-linux.c: Likewise.
6828 * features/i386/i386-avx512-linux.xml: Likewise.
6829 * features/i386/i386-avx512.c: Likewise.
6830 * features/i386/i386-avx512.xml: Likewise.
6831 * features/i386/x32-avx512-linux.c: Likewise.
6832 * features/i386/x32-avx512-linux.xml: Likewise.
6833 * features/i386/x32-avx512.c: Likewise.
6834 * features/i386/x32-avx512.xml: Likewise.
6835 * regformats/i386/amd64-avx512-linux.dat: New file.
6836 * regformats/i386/amd64-avx512.dat: Likewise.
6837 * regformats/i386/i386-avx512-linux.dat: Likewise.
6838 * regformats/i386/i386-avx512.dat: Likewise.
6839 * regformats/i386/x32-avx512-linux.dat: Likewise.
6840 * regformats/i386/x32-avx512.dat: Likewise.
6841 * NEWS: Add note about new support for AVX512.
6842
6843
6844 2014-04-23 Pedro Alves <palves@redhat.com>
6845
6846 * breakpoint.c (insert_bp_location): Tolerate errors if the
6847 breakpoint is set in a user-loaded objfile.
6848 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6849 location is marked shlib_disabled. If the breakpoint is set in a
6850 user-loaded objfile is a GDB-side memory breakpoint, validate it
6851 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6852 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6853 flag.
6854 * mem-break.c (memory_validate_breakpoint): New function.
6855 * objfiles.c (userloaded_objfile_contains_address_p): New
6856 function.
6857 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6858 * target.h (memory_validate_breakpoint): New declaration.
6859
6860 2014-04-23 Pedro Alves <palves@redhat.com>
6861
6862 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6863 the breakpoint is set in a shared library, only suppress
6864 errors for software breakpoints, not hardware breakpoints.
6865
6866 2014-04-22 Pedro Alves <palves@redhat.com>
6867
6868 * infrun.c (schedlock_applies): New function, factored out from
6869 find_thread_needs_step_over.
6870 (find_thread_needs_step_over): Use it.
6871 (switch_back_to_stepped_thread): Always clear trap_expected if the
6872 step over is finished. Return early if scheduler locking applies.
6873 Look for the stepping thread and a potential step-over thread with
6874 a single loop.
6875 (currently_stepping_or_nexting_callback): Delete.
6876
6877 2014-04-22 Nick Clifton <nickc@redhat.com>
6878
6879 * NEWS: Mention that ARM sim now supports tracing.
6880
6881 2014-04-22 Yao Qi <yao@codesourcery.com>
6882
6883 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6884 to ...
6885 * tracefile.c (tracefile_fetch_registers): ... it. New
6886 function.
6887 * tracefile.h (tracefile_fetch_registers): Declare.
6888 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6889 tracefile_fetch_registers.
6890
6891 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6892
6893 PR gdb/14018
6894 * windows-nat.c (thread_rec): Don't display a warning when
6895 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6896 fails for any reason, set th->suspended to -1, so that we don't
6897 try to resume such a thread. Also, don't return NULL in these
6898 cases, to avoid completely ruin the session due to "PC register is
6899 not available" error.
6900 (do_windows_fetch_inferior_registers): Check errors in
6901 GetThreadContext call.
6902 (windows_continue): Accept an additional argument KILLED; if not
6903 zero, ignore errors in the SetThreadContext call, since the
6904 inferior was killed and is shutting down.
6905 (windows_resume, get_windows_debug_event)
6906 (windows_create_inferior, windows_mourn_inferior)
6907 (windows_kill_inferior): All callers of windows_continue changed
6908 to adjust to its new calling sequence.
6909
6910 2014-04-19 Yao Qi <yao@codesourcery.com>
6911
6912 * ctf.c (ctf_open): Call post_create_inferior.
6913
6914 2014-04-19 Yao Qi <yao@codesourcery.com>
6915
6916 * ctf.c (handle_id): New static variable.
6917 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6918 value. Get the declaration of event "register" and get length
6919 of field "contents".
6920
6921 2014-04-19 Yao Qi <yao@codesourcery.com>
6922
6923 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6924
6925 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6926
6927 * valops.c (oload_method_static): Remove unnecessary argument
6928 METHOD. Update all callers.
6929
6930 2014-04-18 Pedro alves <palves@redhat.com>
6931 Tom Tromey <tromey@redhat.com>
6932
6933 PR backtrace/15558
6934 * frame.c (get_prev_frame_1): Rename to ...
6935 (get_prev_frame_always): ... this, and make extern. Adjust.
6936 (skip_artificial_frames): Use get_prev_frame_always.
6937 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6938 (get_frame_unwind_stop_reason): Adjust to rename.
6939 * frame.h (get_prev_frame_always): Declare.
6940 * inline-frame.c: Include frame.h.
6941 (inline_frame_this_id): Use get_prev_frame_always.
6942
6943 2014-04-18 Tristan Gingold <gingold@adacore.com>
6944
6945 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6946 code by using bfd_mach_o_get_base_address.
6947
6948 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6949
6950 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6951 (spu_ax_pseudo_register_collect): New function.
6952 (spu_ax_pseudo_register_push_stack): Likewise.
6953 (spu_dwarf_reg_to_regnum): Likewise.
6954 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6955
6956 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6957
6958 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6959 Replace FRAME argument with FRAME_ID.
6960 * gdbarch.c, gdbarch.h: Regenerate.
6961 * findvar.c (default_value_from_register): Add GDBARCH argument;
6962 replace FRAME by FRAME_ID. No longer call get_frame_id.
6963 (value_from_register): Update call to gdbarch_value_from_register.
6964 * value.h (default_value_from_register): Update prototype.
6965 * s390-linux-tdep.c (s390_value_from_register): Update interface
6966 and call to default_value_from_register.
6967 * spu-tdep.c (spu_value_from_register): Likewise.
6968
6969 * findvar.c (address_from_register): Remove TYPE argument.
6970 Do not call value_from_register; use gdbarch_value_from_register
6971 with null_frame_id instead.
6972 * value.h (address_from_register): Update prototype.
6973 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6974 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6975 address_from_register interface change.
6976
6977 2014-04-17 Yao Qi <yao@codesourcery.com>
6978
6979 * gdbtypes.h: Update comments to link to types and macros'
6980 definitions.
6981
6982 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6983
6984 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6985
6986 2014-04-16 Keith Seitz <keiths@redhat.com>
6987
6988 PR gdb/15827
6989 * dwarf2read.c (skip_one_die): Check that all relative-offset
6990 sibling DIEs fall within range of the current reader's buffer.
6991 (read_partial_die): Likewise.
6992
6993 2014-04-16 Keith Seitz <keiths@redhat.com>
6994
6995 PR c++/16597
6996 * cp-namespace.c (lookup_symbol_file): If the type name of
6997 `this' is NULL, return immediately.
6998
6999 2014-04-14 Keith Seitz <keiths@redhat.com>
7000
7001 PR c++/16253
7002 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7003 from symbol_matches_domain in symtab.c. All local callers
7004 of symbol_matches_domain updated.
7005 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7006 search STRUCT_DOMAIN.
7007 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7008 independently. standard_lookup will do that automatically.
7009 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7010 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7011 (cp_lookup_symbol_in_namespace): Likewise.
7012 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7013 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7014 may return a STRUCT_DOMAIN match.
7015 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7016 * cp-support.c: Include language.h.
7017 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7018 VAR_DOMAIN.
7019 * psymtab.c (match_partial_symbol): Compare the requested
7020 domain with the symbol's domain directly.
7021 (lookup_partial_symbol): Likewise.
7022 * symtab.c (lookup_symbol_in_language): Explain when/why
7023 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7024 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7025 appropriate languages.
7026 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7027 and moved to ada-lang.c
7028 (lookup_block_symbol): Explain that this function only returns
7029 symbol matching the requested DOMAIN.
7030 Compare the requested domain with the symbol's domain directly.
7031 (iterate_over_symbols): Compare the requested domain with the
7032 symbol's domain directly.
7033 * symtab.h (symbol_matches_domain): Remove.
7034
7035 2014-04-14 Tom Tromey <tromey@redhat.com>
7036
7037 PR c++/15246:
7038 * c-exp.y (type_aggregate_p): New function.
7039 (qualified_name, classify_inner_name): Use it.
7040 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7041 and TYPE_TARGET_TYPE of an enum type.
7042 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7043 an enum type.
7044 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7045 handle TYPE_DECLARED_CLASS.
7046 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7047 types.
7048 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7049 * valops.c (enum_constant_from_type): New function.
7050 (value_aggregate_elt): Use it.
7051 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7052 TYPE_CODE_ENUM.
7053
7054 2014-04-14 Tom Tromey <tromey@redhat.com>
7055
7056 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7057 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7058 const.
7059 * value.h (value_aggregate_elt): Update.
7060
7061 2014-04-14 Tom Tromey <tromey@redhat.com>
7062
7063 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7064
7065 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7066
7067 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7068 (evaluate_subexp_standard): Pass noside argument.
7069 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7070 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7071 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7072 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7073 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7074
7075 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7076
7077 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7078 points to a constant blob.
7079
7080 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7081
7082 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7083 property and store it as the high bound and flag the range accordingly.
7084 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7085 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7086 * gdbtypes.h (enum range_flags): New enum.
7087 (struct range_bounds): Add flags member.
7088
7089 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7090
7091 * c-typeprint.c (c_type_print_varspec_suffix): Added
7092 check for not yet resolved high bound. If unresolved, print
7093 "variable length" string to the console instead of random
7094 length.
7095
7096 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7097
7098 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7099 value.
7100 (ada_template_to_fixed_record_type_1): Likewise.
7101 (ada_to_fixed_type_1): Likewise.
7102 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7103 (cp_print_value): Likewise.
7104 * d-valprint.c (dynamic_array_type): Likewise.
7105 * findvar.c (address_of_variable): Likewise.
7106 * jv-valprint.c (java_value_print): Likewise.
7107 * valops.c (value_ind): Likewise.
7108 * value.c (coerce_ref): Likewise.
7109
7110 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7111
7112 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7113 value and retrieve the dynamic type size.
7114
7115 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7116
7117 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7118 passed to sizeof is dynamic evaluate the argument to compute the length.
7119
7120 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7121 Joel Brobecker <brobecker@adacore.com>
7122
7123 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7124 (dwarf2_evaluate_property): New function.
7125 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7126 * dwarf2read.c (attr_to_dynamic_prop): New function.
7127 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7128 attribute.
7129 * gdbtypes.c: Include dwarf2loc.h.
7130 (is_dynamic_type): New function.
7131 (resolve_dynamic_type): New function.
7132 (resolve_dynamic_bounds): New function.
7133 (get_type_length): New function.
7134 (check_typedef): Use get_type_length to compute type length.
7135 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7136 (TYPE_LOW_BOUND_KIND): New macro.
7137 (is_dynamic_type): New function prototype.
7138 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7139 to resolve dynamic properties of the type. Update comment.
7140 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7141
7142 2014-04-14 Richard Henderson <rth@redhat.com>
7143
7144 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7145
7146 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7147 Doug Evans <xdje42@gmail.com>
7148
7149 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7150 dereference TYPE_CODE_REF values.
7151
7152 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7153
7154 Revert the following changes due to regressions:
7155
7156 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7157 (dwarf2_evaluate_property): New function.
7158 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7159 * dwarf2read.c (attr_to_dynamic_prop): New function.
7160 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7161 attribute.
7162 * gdbtypes.c: Include dwarf2loc.h.
7163 (is_dynamic_type): New function.
7164 (resolve_dynamic_type): New function.
7165 (resolve_dynamic_bounds): New function.
7166 (get_type_length): New function.
7167 (check_typedef): Use get_type_length to compute type length.
7168 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7169 (TYPE_LOW_BOUND_KIND): New macro.
7170 (is_dynamic_type): New function prototype.
7171 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7172 to resolve dynamic properties of the type. Update comment.
7173 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7174
7175 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7176 passed to sizeof is dynamic evaluate the argument to compute the length.
7177
7178 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7179 value and retrieve the dynamic type size.
7180
7181 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7182 (ada_template_to_fixed_record_type_1): Likewise.
7183 (ada_to_fixed_type_1): Likewise.
7184 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7185 (cp_print_value): Likewise.
7186 * d-valprint.c (dynamic_array_type): Likewise.
7187 * eval.c (evaluate_subexp_with_coercion): Likewise.
7188 * findvar.c (address_of_variable): Likewise.
7189 * jv-valprint.c (java_value_print): Likewise.
7190 * valops.c (value_ind): Likewise.
7191 * value.c (coerce_ref): Likewise.
7192
7193 * c-typeprint.c (c_type_print_varspec_suffix): Added
7194 check for not yet resolved high bound. If unresolved, print
7195 "variable length" string to the console instead of random
7196 length.
7197
7198 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7199 property and store it as the high bound and flag the range accordingly.
7200 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7201 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7202 * gdbtypes.h (enum range_flags): New enum.
7203 (struct range_bounds): Add flags member.
7204
7205 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7206 points to a constant blob.
7207
7208 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7209 (evaluate_subexp_standard): Pass noside argument.
7210 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7211 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7212 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7213 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7214 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7215
7216 2014-04-11 Keith Seitz <keiths@redhat.com>
7217
7218 PR c++/16675
7219 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7220 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7221 reference types.
7222
7223 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7224
7225 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7226 (evaluate_subexp_standard): Pass noside argument.
7227 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7228 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7229 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7230 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7231 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7232
7233 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7234
7235 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7236 points to a constant blob.
7237
7238 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7239
7240 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7241 property and store it as the high bound and flag the range accordingly.
7242 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7243 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7244 * gdbtypes.h (enum range_flags): New enum.
7245 (struct range_bounds): Add flags member.
7246
7247 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7248
7249 * c-typeprint.c (c_type_print_varspec_suffix): Added
7250 check for not yet resolved high bound. If unresolved, print
7251 "variable length" string to the console instead of random
7252 length.
7253
7254 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7255
7256 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7257 (ada_template_to_fixed_record_type_1): Likewise.
7258 (ada_to_fixed_type_1): Likewise.
7259 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7260 (cp_print_value): Likewise.
7261 * d-valprint.c (dynamic_array_type): Likewise.
7262 * eval.c (evaluate_subexp_with_coercion): Likewise.
7263 * findvar.c (address_of_variable): Likewise.
7264 * jv-valprint.c (java_value_print): Likewise.
7265 * valops.c (value_ind): Likewise.
7266 * value.c (coerce_ref): Likewise.
7267
7268 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7269
7270 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7271 value and retrieve the dynamic type size.
7272
7273 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7274
7275 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7276 passed to sizeof is dynamic evaluate the argument to compute the length.
7277
7278 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7279
7280 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7281 (dwarf2_evaluate_property): New function.
7282 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7283 * dwarf2read.c (attr_to_dynamic_prop): New function.
7284 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7285 attribute.
7286 * gdbtypes.c: Include dwarf2loc.h.
7287 (is_dynamic_type): New function.
7288 (resolve_dynamic_type): New function.
7289 (resolve_dynamic_bounds): New function.
7290 (get_type_length): New function.
7291 (check_typedef): Use get_type_length to compute type length.
7292 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7293 (TYPE_LOW_BOUND_KIND): New macro.
7294 (is_dynamic_type): New function prototype.
7295 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7296 to resolve dynamic properties of the type. Update comment.
7297 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7298
7299 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7300
7301 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7302 declaring high/low bounds and change uses accordingly. Call
7303 create_range_type instead of create_static_range_type.
7304 * gdbtypes.c (create_range_type): New function.
7305 (create_range_type): Convert bounds into struct bound_prop and pass
7306 them to create_range_type.
7307 * gdbtypes.h (struct bound_prop): New struct.
7308 (create_range_type): New function prototype.
7309 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7310 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7311 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7312 part of the bound.
7313 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7314
7315 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7316
7317 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7318 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7319 * ada-lang.c: All uses of create_range_type updated.
7320 * coffread.c: All uses of create_range_type updated.
7321 * dwarf2read.c: All uses of create_range_type updated.
7322 * f-exp.y: All uses of create_range_type updated.
7323 * m2-valprint.c: All uses of create_range_type updated.
7324 * mdebugread.c: All uses of create_range_type updated.
7325 * stabsread.c: All uses of create_range_type updated.
7326 * valops.c: All uses of create_range_type updated.
7327 * valprint.c: All uses of create_range_type updated.
7328
7329 2014-04-10 Pedro Alves <palves@redhat.com>
7330
7331 * breakpoint.c (single_step_breakpoints)
7332 (single_step_gdbarch): Move up in the file.
7333 (one_breakpoint_xfer_memory): New function, factored out from ...
7334 (breakpoint_xfer_memory): ... here. Also process single-step
7335 breakpoints.
7336
7337 2014-04-09 Tristan Gingold <gingold@adacore.com>
7338
7339 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7340 comments.
7341 (darwin_decode_exception_message): Free port only after use.
7342
7343 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7344
7345 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7346 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7347 when setting the size of call_length.
7348
7349 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7350
7351 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7352 dereference TYPE_CODE_REF values.
7353
7354 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7355
7356 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7357 end of warning message.
7358
7359 2014-04-03 Doug Evans <dje@google.com>
7360
7361 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7362 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7363
7364 2014-04-02 Alan Modra <amodra@gmail.com>
7365
7366 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7367 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7368 (struct symbol_file_add_from_memory_args): Add size field.
7369 (find_vdso_size): New function.
7370 (add_vsyscall_page): Attempt to find vdso size.
7371
7372 2014-04-01 Doug Evans <dje@google.com>
7373
7374 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7375
7376 2014-04-01 Tristan Gingold <gingold@adacore.com>
7377
7378 * darwin-nat.c (darwin_encode_reply): Add prototype.
7379 (darwin_decode_exception_message): Reply to unknown inferiors.
7380 (darwin_decode_message): Handle message by id. Ignore message
7381 to unknown inferior.
7382 (darwin_wait): Discard unknown messages, add debug trace.
7383
7384 2014-03-31 Doug Evans <dje@google.com>
7385
7386 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7387 comp_dir_string.
7388
7389 2014-03-31 Doug Evans <dje@google.com>
7390
7391 New option "set print symbol-loading".
7392 * NEWS: Mention it.
7393 * solib.c (solib_read_symbols): Only print symbol loading messages
7394 if requested.
7395 (solib_add): If symbol loading is in "brief" mode, notify user
7396 symbols are being loaded.
7397 (reload_shared_libraries_1): Ditto.
7398 * symfile.c (print_symbol_loading_off): New static global.
7399 (print_symbol_loading_brief): New static global.
7400 (print_symbol_loading_full): New static global.
7401 (print_symbol_loading_enums): New static global.
7402 (print_symbol_loading): New static global.
7403 (print_symbol_loading_p): New function.
7404 (symbol_file_add_with_addrs): Only print symbol loading messages
7405 if requested.
7406 (_initialize_symfile): Register "print symbol-loading" set/show
7407 command.
7408 * symfile.h (print_symbol_loading_p): Declare.
7409
7410 2014-03-30 Doug Evans <xdje42@gmail.com>
7411
7412 * infrun.c (set_last_target_status): New function.
7413 (handle_inferior_event): Call it.
7414
7415 2014-03-30 Doug Evans <xdje42@gmail.com>
7416
7417 * inferior.h (enum stop_kind): Improve comment.
7418
7419 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7420
7421 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7422 a reference, strip the reference layer before calling
7423 the lang_ops value_has_mutated callback.
7424
7425 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7426
7427 Remove some globals from our parser.
7428 * language.c (unk_lang_parser): Add "struct parser_state"
7429 argument.
7430 * language.h (struct language_defn) <la_parser>: Likewise.
7431 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7432 (initialize_expout): Add "struct parser_state" argument.
7433 Rewrite function to use the parser state.
7434 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7435 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7436 write_exp_elt_longcst, write_exp_elt_dblcst,
7437 write_exp_elt_decfloatcst, write_exp_elt_type,
7438 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7439 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7440 write_dollar_variable): Likewise.
7441 (parse_exp_in_context_1): Use parser state.
7442 (insert_type_address_space): Add "struct parser_state" argument.
7443 Use parser state.
7444 (increase_expout_size): New function.
7445 * parser-defs.h: Forward declare "struct language_defn" and
7446 "struct parser_state".
7447 (expout, expout_size, expout_ptr): Remove extern declarations.
7448 (parse_gdbarch, parse_language): Rewrite macro declarations to
7449 accept the parser state.
7450 (struct parser_state): New struct.
7451 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7452 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7453 write_exp_elt_decfloatcst, write_exp_elt_type,
7454 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7455 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7456 write_exp_msymbol, write_dollar_variable,
7457 mark_struct_expression, insert_type_address_space): Add "struct
7458 parser_state" argument.
7459 (increase_expout_size): New function.
7460 * utils.c (do_clear_parser_state): New function.
7461 (make_cleanup_clear_parser_state): Likewise.
7462 * utils.h (make_cleanup_clear_parser_state): New function
7463 prototype.
7464 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7465 Update calls to write_exp* in order to pass the parser state.
7466 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7467 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7468 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7469 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7470 * stap-probe.c (stap_parse_register_operand): Likewise.
7471 (stap_parse_single_operand): Likewise.
7472 (stap_parse_argument_1): Likewise.
7473 (stap_parse_argument): Use parser state.
7474 * stap-probe.h: Include "parser-defs.h".
7475 (struct stap_parse_info) <pstate>: New field.
7476 * c-exp.y (parse_type): Rewrite to use parser state.
7477 (yyparse): Redefine to c_parse_internal.
7478 (pstate): New global variable.
7479 (parse_number): Add "struct parser_state" argument.
7480 (write_destructor_name): Likewise.
7481 (type_exp): Update calls to write_exp* and similars in order to
7482 use parser state.
7483 (exp1, exp, variable, qualified_name, space_identifier,
7484 typename, typebase): Likewise.
7485 (write_destructor_name, parse_number, lex_one_token,
7486 classify_name, classify_inner_name, c_parse): Add "struct
7487 parser_state" argument. Update function to use parser state.
7488 * c-lang.h: Forward declare "struct parser_state".
7489 (c_parse): Add "struct parser_state" argument.
7490 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7491 (yyparse): Redefine macro to ada_parse_internal.
7492 (pstate): New variable.
7493 (write_int, write_object_renaming, write_var_or_type,
7494 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7495 type_int, type_long, type_long_long, type_float, type_double,
7496 type_long_double, type_char, type_boolean, type_system_address):
7497 Add "struct parser_state" argument.
7498 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7499 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7500 var_or_type, aggregate, aggregate_component_list,
7501 positional_list, others, component_group,
7502 component_associations): Update calls to write_exp* and similar
7503 functions in order to use parser state.
7504 (ada_parse, write_var_from_sym, write_int,
7505 write_exp_op_with_string, write_object_renaming,
7506 find_primitive_type, write_selectors, write_ambiguous_var,
7507 write_var_or_type, write_name_assoc, type_int, type_long,
7508 type_long_long, type_float, type_double, type_long_double,
7509 type_char, type_boolean, type_system_address): Add "struct
7510 parser_state" argument. Adjust function to use parser state.
7511 * ada-lang.c (parse): Likewise.
7512 * ada-lang.h: Forward declare "struct parser_state".
7513 (ada_parse): Add "struct parser_state" argument.
7514 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7515 calls to both functions.
7516 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7517 parser state.
7518 (yyparse): Redefine macro to f_parse_internal.
7519 (pstate): New variable.
7520 (parse_number): Add "struct parser_state" argument.
7521 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7522 and similars in order to use parser state.
7523 (parse_number): Adjust code to use parser state.
7524 (yylex): Likewise.
7525 (f_parse): New function.
7526 * f-lang.h: Forward declare "struct parser_state".
7527 (f_parse): Add "struct parser_state" argument.
7528 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7529 parser state.
7530 (yyparse): Redefine macro for java_parse_internal.
7531 (pstate): New variable.
7532 (push_expression_name, push_expression_name, insert_exp): Add
7533 "struct parser_state" argument.
7534 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7535 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7536 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7537 PostIncrementExpression, PostDecrementExpression,
7538 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7539 UnaryExpressionNotPlusMinus, CastExpression,
7540 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7541 RelationalExpression, EqualityExpression, AndExpression,
7542 ExclusiveOrExpression, InclusiveOrExpression,
7543 ConditionalAndExpression, ConditionalOrExpression,
7544 ConditionalExpression, Assignment, LeftHandSide): Update
7545 calls to write_exp* and similars in order to use parser state.
7546 (parse_number): Ajust code to use parser state.
7547 (yylex): Likewise.
7548 (java_parse): New function.
7549 (push_variable): Add "struct parser_state" argument. Adjust
7550 code to user parser state.
7551 (push_fieldnames, push_qualified_expression_name,
7552 push_expression_name, insert_exp): Likewise.
7553 * jv-lang.h: Forward declare "struct parser_state".
7554 (java_parse): Add "struct parser_state" argument.
7555 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7556 parser state.
7557 (yyparse): Redefine macro to m2_parse_internal.
7558 (pstate): New variable.
7559 (type_exp, exp, fblock, variable, type): Update calls to
7560 write_exp* and similars to use parser state.
7561 (yylex): Likewise.
7562 (m2_parse): New function.
7563 * m2-lang.h: Forward declare "struct parser_state".
7564 (m2_parse): Add "struct parser_state" argument.
7565 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7566 * objc-lang.h: Forward declare "struct parser_state".
7567 (end_msglist): Add "struct parser_state" argument.
7568 * p-exp.y (parse_type): Rewrite macro to use parser state.
7569 (yyparse): Redefine macro to pascal_parse_internal.
7570 (pstate): New variable.
7571 (parse_number): Add "struct parser_state" argument.
7572 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7573 write_exp* and similars in order to use parser state.
7574 (parse_number, yylex): Adjust code to use parser state.
7575 (pascal_parse): New function.
7576 * p-lang.h: Forward declare "struct parser_state".
7577 (pascal_parse): Add "struct parser_state" argument.
7578 * go-exp.y (parse_type): Rewrite macro to use parser state.
7579 (yyparse): Redefine macro to go_parse_internal.
7580 (pstate): New variable.
7581 (parse_number): Add "struct parser_state" argument.
7582 (type_exp, exp1, exp, variable, type): Update calls to
7583 write_exp* and similars in order to use parser state.
7584 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7585 to use parser state.
7586 (go_parse): Likewise.
7587 * go-lang.h: Forward declare "struct parser_state".
7588 (go_parse): Add "struct parser_state" argument.
7589
7590 2014-03-27 Doug Evans <dje@google.com>
7591
7592 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7593
7594 2014-03-27 Doug Evans <dje@google.com>
7595
7596 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7597 Remove argument abbrev_section. All callers updated.
7598
7599 2014-03-27 Doug Evans <dje@google.com>
7600
7601 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7602 addr_base, ranges_base.
7603
7604 2014-03-26 Keith Seitz <keiths@redhat.com>
7605
7606 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7607 types, not VAR_DOMAIN.
7608
7609 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7610
7611 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7612 "ra" registers.
7613 * features/nios2-linux.c: Regenerated.
7614 * features/nios2.c: Regenerated.
7615
7616 2014-03-25 Pedro Alves <palves@redhat.com>
7617
7618 * cli/cli-script.c (script_from_file): Force the interpreter to
7619 sync mode.
7620
7621 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7622
7623 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7624 small stack allocation.
7625
7626 2014-03-24 Tristan Gingold <gingold@adacore.com>
7627
7628 * darwin-nat.c (exc_server): Remove unused prototype.
7629 (darwin_dump_message): Correctly display data on x86_64.
7630 (darwin_encode_reply): Fix style.
7631 Add comments and fix indentation.
7632
7633 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7634
7635 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7636
7637 2014-03-22 Doug Evans <xdje42@gmail.com>
7638
7639 * infcmd.c: Whitespace fixes.
7640 (interrupt_command): Merge two function comments into one.
7641
7642 2014-03-22 Doug Evans <xdje42@gmail.com>
7643
7644 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7645 All uses updated.
7646
7647 2014-03-22 Yao Qi <yao@codesourcery.com>
7648
7649 * remote.c (target_read_live_memory): Remove.
7650 (memory_xfer_live_readonly_partial): Rename it to
7651 remote_xfer_live_readonly_partial. Remove argument 'object'.
7652 All callers updated. Call remote_read_bytes_1
7653 instead of target_read_live_memory.
7654 * tracepoint.c (set_traceframe_number): Remove.
7655 (make_cleanup_restore_traceframe_number): Likewise .
7656 * tracepoint.h (set_traceframe_number): Remove declaration.
7657 (make_cleanup_restore_traceframe_number): Likewise.
7658
7659 2014-03-22 Yao Qi <yao@codesourcery.com>
7660
7661 * remote.c (remote_read_bytes): Move code on reading from the
7662 remote stub to ...
7663 (remote_read_bytes_1): ... here. New function.
7664
7665 2014-03-22 Yao Qi <yao@codesourcery.com>
7666
7667 * ctf.c (ctf_xfer_partial): Check the return value of
7668 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7669 return TARGET_XFER_UNAVAILABLE.
7670 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7671 * target.c (target_read_live_memory): Move it to remote.c.
7672 (memory_xfer_live_readonly_partial): Likewise.
7673 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7674 * remote.c (target_read_live_memory): Moved from target.c.
7675 (memory_xfer_live_readonly_partial): Likewise.
7676 (remote_read_bytes): Factored out from
7677 memory_xfer_partial_1.
7678
7679 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7680
7681 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7682 NULL pointer.
7683
7684 2014-03-21 Pedro Alves <palves@redhat.com>
7685
7686 * infrun.c (normal_stop): Extend comment.
7687
7688 2014-03-21 Hui Zhu <hui@codesourcery.com>
7689 Pedro Alves <palves@redhat.com>
7690
7691 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7692 static buffer.
7693 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7694 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7695 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7696
7697 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7698
7699 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7700 `z' formatted output modifier.
7701
7702 2014-03-20 Tom Tromey <tromey@redhat.com>
7703 Sergio Durigan Junior <sergiodj@redhat.com>
7704
7705 * probe.c (parse_probes): Turn assert into an ordinary error.
7706 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7707 exceptions when parsing probes. Rearrange the code for clarity.
7708
7709 2014-03-20 Tom Tromey <tromey@redhat.com>
7710
7711 PR gdb/14135
7712 * top.c (execute_command): Only dispatch events if the command
7713 started the target.
7714
7715 2014-03-20 Tom Tromey <tromey@redhat.com>
7716
7717 PR cli/15718
7718 * infcall.c: Include event-top.h.
7719 (run_inferior_call): Call async_disable_stdin if needed.
7720
7721 2014-03-20 Pedro Alves <palves@redhat.com>
7722
7723 * infrun.c (prepare_to_proceed): Delete.
7724 (thread_still_needs_step_over): New function.
7725 (find_thread_needs_step_over): New function.
7726 (proceed): If the current thread needs a step-over, set its
7727 steping_over_breakpoint flag. Adjust to use
7728 find_thread_needs_step_over instead of prepare_to_proceed.
7729 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7730 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7731 breakpoint.
7732 (switch_back_to_stepped_thread): Step over breakpoints of all
7733 threads not the stepping thread, before switching back to the
7734 stepping thread.
7735
7736 2014-03-20 Pedro Alves <palves@redhat.com>
7737
7738 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7739 extern.
7740 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7741 * infrun.c (saved_singlestep_ptid)
7742 (stepping_past_singlestep_breakpoint): Delete.
7743 (resume): Remove stepping_past_singlestep_breakpoint handling.
7744 (proceed): Store the prev_pc of the stepping thread too.
7745 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7746 singlestep_pc.
7747 (enum infwait_states): Delete infwait_thread_hop_state.
7748 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7749 field.
7750 (handle_inferior_event): Adjust.
7751 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7752 handling and the thread-hop code. Before removing single-step
7753 breakpoints, check whether the thread hit a single-step breakpoint
7754 of another thread. If it did, the trap is not a random signal.
7755 (switch_back_to_stepped_thread): If the event thread hit a
7756 single-step breakpoint, unblock it before switching to the
7757 stepping thread. Handle the case of the stepped thread having
7758 advanced already.
7759 (keep_going): Handle the case of the current thread moving past a
7760 single-step breakpoint.
7761
7762 2014-03-20 Pedro Alves <palves@redhat.com>
7763
7764 PR breakpoints/7143
7765 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7766 are being stepped over.
7767 (breakpoint_address_match): Make extern.
7768 * breakpoint.h (breakpoint_address_match): New declaration.
7769 * inferior.h (stepping_past_instruction_at): New declaration.
7770 * infrun.c (struct step_over_info): New type.
7771 (step_over_info): New global.
7772 (set_step_over_info, clear_step_over_info)
7773 (stepping_past_instruction_at): New functions.
7774 (handle_inferior_event): Clear the step-over info when
7775 trap_expected is cleared.
7776 (resume): Remove now stale comment.
7777 (clear_proceed_status): Clear step-over info.
7778 (proceed): Adjust step-over handling to set or clear the step-over
7779 info instead of removing all breakpoints.
7780 (handle_signal_stop): When setting up a thread-hop, don't remove
7781 breakpoints here.
7782 (stop_stepping): Clear step-over info.
7783 (keep_going): Adjust step-over handling to set or clear step-over
7784 info and then always inserting breakpoints, instead of removing
7785 all breakpoints when stepping over one.
7786
7787 2014-03-20 Pedro Alves <palves@redhat.com>
7788
7789 * infrun.c (previous_inferior_ptid): Adjust comment.
7790 (deferred_step_ptid): Delete.
7791 (infrun_thread_ptid_changed, prepare_to_proceed)
7792 (init_wait_for_inferior): Adjust.
7793 (handle_signal_stop): Delete deferred_step_ptid handling.
7794
7795 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7796
7797 PR gdb/15358
7798 * defs.h (sync_quit_force_run): New declaration.
7799 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7800 * event-top.c (async_sigterm_handler): New declaration.
7801 (async_sigterm_token): New variable.
7802 (async_init_signals): Create also async_sigterm_token.
7803 (async_sigterm_handler): New function.
7804 (sync_quit_force_run): New variable.
7805 (handle_sigterm): Replace quit_force call by other calls.
7806 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7807
7808 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7809
7810 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7811 offset into SPE pseudo registers.
7812
7813 2014-03-18 Pedro Alves <palves@redhat.com>
7814
7815 PR gdb/13860
7816 * inferior.h (print_stop_event): Declare.
7817 * infrun.c (print_stop_event): New, factored out from ...
7818 (normal_stop): ... this.
7819 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7820 of bpstat_print/print_stack_frame.
7821
7822 2014-03-17 Tom Tromey <tromey@redhat.com>
7823
7824 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7825
7826 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7827
7828 * ada-lang.c (decode_constrained_packed_array): Perform a
7829 minimal coercion for reference with coerce_ref instead of
7830 ada_coerce_ref.
7831
7832 2014-03-17 Tristan Gingold <gingold@adacore.com>
7833
7834 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7835 (darwin_solib_create_inferior_hook): Emit a warning if version
7836 is unhandled.
7837
7838 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7839
7840 * python/py-value.c (get_field_flag): Cast flag_name argument to
7841 PyObject_GetAttrString to support Python 2.4.
7842
7843 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7844
7845 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7846 (Global Maintainers): Remove Jan Kratochvil.
7847
7848 2014-03-14 Pedro Alves <palves@redhat.com>
7849
7850 * inferior.h (terminal_ours_for_output): Rename to ...
7851 (child_terminal_ours_for_output): ... this.
7852 (terminal_save_ours): Rename to ...
7853 (child_terminal_save_ours): ... this.
7854 (terminal_ours): Rename to ...
7855 (child_terminal_ours): ... this.
7856 (terminal_inferior): Rename to ...
7857 (child_terminal_inferior): ... this.
7858 (terminal_init_inferior): Rename to ...
7859 (child_terminal_init_inferior): ... this.
7860 (terminal_init_inferior_with_pgrp): Rename to ...
7861 (child_terminal_init_inferior_with_pgrp): ... this.
7862 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7863 (child_terminal_init_with_pgrp): ... this.
7864 (terminal_save_ours): Rename to ...
7865 (child_terminal_save_ours): ... this.
7866 (terminal_init_inferior): Rename to ...
7867 (child_terminal_init): ... this. Adjust.
7868 (terminal_inferior): Rename to ...
7869 (child_terminal_inferior): ... this.
7870 (terminal_ours_for_output): Rename to ...
7871 (child_terminal_ours_for_output): ... this. Adjust.
7872 (terminal_ours): Rename to ...
7873 (child_terminal_ours): ... this.
7874 (terminal_ours_1): Rename to ...
7875 (child_terminal_ours_1): ... this. Adjust.
7876 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7877 * windows-nat.c (do_initial_windows_stuff): Adjust.
7878 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7879 (gnu_terminal_init): ... this. Adjust.
7880 (gnu_target): Adjust.
7881 * inf-child.c (inf_child_target): Adjust.
7882
7883 2014-03-13 Doug Evans <xdje42@gmail.com>
7884
7885 PR guile/16612
7886 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7887 new eq?-hashtab.
7888
7889 2014-03-13 Doug Evans <xdje42@gmail.com>
7890
7891 * value.c (record_latest_value): Call release_value_or_incref
7892 instead of release_value.
7893
7894 2014-03-13 Pedro Alves <palves@redhat.com>
7895
7896 * procfs.c (procfs_target): Don't override to_shortname,
7897 to_longname or to_doc.
7898
7899 2014-03-13 Pedro Alves <palves@redhat.com>
7900
7901 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7902 Unix in user visible strings.
7903
7904 2014-03-12 Stan Shebs <stan@codesourcery.com>
7905
7906 * gdbtypes.h: Annotate comments for Doxygen, add a page
7907 block comment with some general info.
7908
7909 2014-03-12 Pedro Alves <palves@redhat.com>
7910
7911 * infcmd.c (prepare_execution_command): New function, factored out
7912 from several execution commands.
7913 (run_command_1, continue_command, step_1, jump_command)
7914 (signal_command, until_command, advance_command, finish_command)
7915 (attach_command): Use prepare_execution_command.
7916
7917 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7918
7919 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7920 (MAX_BPTS): Define.
7921 (MAX_WPTS): Define.
7922 (struct arm_linux_thread_points): Removed.
7923 (struct arm_linux_process_info): New.
7924 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7925 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7926 (arm_linux_find_breakpoints_by_tid): Removed.
7927 (struct arch_lwp_info): New.
7928 (arm_linux_find_process_pid): New functions.
7929 (arm_linux_add_process): New functions.
7930 (arm_linux_process_info_get): New functions.
7931 (arm_linux_forget_process): New function.
7932 (arm_linux_get_debug_reg_state): New function.
7933 (struct update_registers_data): New.
7934 (update_registers_callback): New function.
7935 (arm_linux_insert_hw_breakpoint1): Updated.
7936 (arm_linux_remove_hw_breakpoint1): Updated.
7937 (arm_linux_insert_hw_breakpoint): Updated.
7938 (arm_linux_remove_hw_breakpoint): Updated.
7939 (arm_linux_insert_watchpoint): Updated.
7940 (arm_linux_remove_watchpoint): Updated.
7941 (arm_linux_new_thread): Updated.
7942 (arm_linux_prepare_to_resume): New function.
7943 (arm_linux_new_fork): New function.
7944 (_initialize_arm_linux_nat): Updated.
7945
7946 2014-03-12 Pedro Alves <palves@redhat.com>
7947
7948 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7949
7950 2014-03-12 Tom Tromey <tromey@redhat.com>
7951
7952 * inf-child.c (return_zero): New function.
7953 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7954 * aix-thread.c (aix_thread_inferior_created): New function.
7955 (aix_thread_attach): Remove.
7956 (init_aix_thread_ops): Don't set to_attach.
7957 (_initialize_aix_thread): Register inferior_created observer.
7958 * corelow.c (init_core_ops): Don't set to_attach or
7959 to_create_inferior.
7960 * exec.c (init_exec_ops): Don't set to_attach or
7961 to_create_inferior.
7962 * infcmd.c (run_command_1): Use find_run_target. Make direct
7963 target calls.
7964 (attach_command): Use find_attach_target. Make direct target
7965 calls.
7966 * record-btrace.c (init_record_btrace_ops): Don't set
7967 to_create_inferior.
7968 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7969 Remove.
7970 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7971 set to_create_inferior.
7972 * target.c (complete_target_initialization): Add assertion.
7973 (target_create_inferior): Remove.
7974 (find_default_attach, find_default_create_inferior): Remove.
7975 (find_attach_target, find_run_target): New functions.
7976 (find_default_is_async_p, find_default_can_async_p)
7977 (target_supports_non_stop, target_attach): Remove.
7978 (init_dummy_target): Don't set to_create_inferior or
7979 to_supports_non_stop.
7980 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7981 TARGET_DEFAULT_FUNC.
7982 <to_create_inferior>: Add comment.
7983 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7984 TARGET_DEFAULT_RETURN.
7985 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7986 (find_attach_target, find_run_target): Declare.
7987 (target_create_inferior): Remove.
7988 (target_has_execution_1): Update comment.
7989 (target_supports_non_stop): Remove.
7990 * target-delegates.c: Rebuild.
7991
7992 2014-03-12 Pedro Alves <palves@redhat.com>
7993
7994 * inf-child.h: Update comment to not mention Unix.
7995
7996 2014-03-12 Pedro Alves <palves@redhat.com>
7997
7998 * inf-child.c: Update top comment to not mention Unix. Add
7999 generic comment describing how this target is meant to be used.
8000 (inf_child_post_attach, inf_child_post_startup_inferior)
8001 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8002 Unix in comment.
8003
8004 2014-03-12 Pedro Alves <palves@redhat.com>
8005
8006 * nto-procfs.c: Include inf-child.h.
8007 (procfs_ops): Delete global.
8008 (procfs_can_run): Delete method.
8009 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8010 target pointer instead of referencing procfs_ops.
8011 (procfs_prepare_to_store): Delete.
8012 (init_procfs_ops): Delete function.
8013 (procfs_target): New function, based on init_procfs_ops, but
8014 inherit inf_child_target.
8015 (_initialize_procfs): Use procfs_target.
8016
8017 2014-03-12 Pedro Alves <palves@redhat.com>
8018
8019 * windows-nat.c: Include inf-child.h.
8020 (windows_ops): Delete global.
8021 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8022 methods.
8023 (init_windows_ops): Delete function.
8024 (windows_target): New function, based on init_windows_ops, but
8025 inherit inf_child_target.
8026 (_initialize_windows_nat): Use windows_target. Install x86
8027 specific target methods here.
8028
8029 2014-03-10 Doug Evans <xdje42@gmail.com>
8030
8031 * guile/guile.c (call_initialize_gdb_module): New function.
8032 (initialize_guile): Replace call to scm_init_guile with call to
8033 scm_with_guile.
8034
8035 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8036
8037 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8038 in call to TYPE_CODE macro.
8039
8040 2014-03-10 Jerome Guitton <guitton@adacore.com>
8041
8042 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8043 Resolve tagged types to full view.
8044
8045 2014-03-10 Hui Zhu <hui@codesourcery.com>
8046
8047 * target.h (target_insert_breakpoint): Remove "hardware" from its
8048 comments.
8049
8050 2014-03-07 Doug Evans <dje@google.com>
8051
8052 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8053
8054 2014-03-07 Doug Evans <dje@google.com>
8055
8056 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8057 Remove unused local comp_dir_attr. Assert exactly one of
8058 stub_comp_unit_die, stub_comp_dir is non-NULL.
8059
8060 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8061
8062 * target.h (complete_target_initialization, add_target):
8063 Add comment.
8064
8065 2014-03-07 Pedro Alves <palves@redhat.com>
8066
8067 * go32-nat.c: Include inf-child.h.
8068 (go32_ops): Delete global.
8069 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8070 Delete methods.
8071 (go32_create_inferior): Push the passed in target pointer instead
8072 of referencing go32_ops.
8073 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8074 (go32_target): New function, based on init_go32_ops, but inherit
8075 inf_child_target.
8076 (_initialize_go32_nat): Use go32_target. Move parts of
8077 init_go32_ops here.
8078
8079 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8080
8081 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8082 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8083 SYMBOL_VALUE_ADDRESS.
8084 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8085
8086 2014-03-06 Yao Qi <yao@codesourcery.com>
8087
8088 * breakpoint.c (get_tracepoint_by_number): Remove argument
8089 optional_p. All callers updated. Adjust comments. Update
8090 output message.
8091 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8092
8093 2014-03-06 Yao Qi <yao@codesourcery.com>
8094
8095 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8096 early if get_number returns zero. Use 'p' instead of 'args'.
8097
8098 2014-03-06 Yao Qi <yao@codesourcery.com>
8099
8100 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8101 message.
8102
8103 2014-03-06 Yao Qi <yao@codesourcery.com>
8104
8105 PR breakpoints/16508
8106 * tracepoint.c (check_trace_running): New function.
8107 (trace_find_command): Move code to check_trace_running and
8108 call check_trace_running.
8109 (trace_find_pc_command): Likewise.
8110 (trace_find_tracepoint_command): Likewise.
8111 (trace_find_line_command): Likewise.
8112 (trace_find_range_command): Likewise.
8113 * tracepoint.h (check_trace_running): Likewise.
8114 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8115
8116 2014-03-06 Yao Qi <yao@codesourcery.com>
8117
8118 * target.h (struct target_ops) <to_traceframe_info>: Use
8119 TARGET_DEFAULT_NORETURN (tcomplain ()).
8120 * target-delegates.c: Regenerated.
8121
8122 2014-03-05 Pedro Alves <palves@redhat.com>
8123
8124 PR gdb/16575
8125 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8126 void. Update comment.
8127 (dcache_xfer_memory): Delete.
8128 (dcache_read_memory_partial): New, based on the read bits of
8129 dcache_xfer_memory.
8130 (dcache_update): Add status parameter. Use ULONGEST for len, and
8131 adjust. Discard cache lines if the reason for the update was
8132 error.
8133 * dcache.h (dcache_xfer_memory): Delete declaration.
8134 (dcache_read_memory_partial): New declaration.
8135 (dcache_update): Update prototype.
8136 * target.c (raw_memory_xfer_partial): Update the dcache here.
8137 (memory_xfer_partial_1): Don't handle dcache writes here.
8138
8139 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8140
8141 * remote-sim.c (gdbsim_load): Add const to prog.
8142
8143 2014-03-03 Tom Tromey <tromey@redhat.com>
8144
8145 * elfread.c (probe_key): Change to bfd_data.
8146 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8147 now per-BFD, not per-objfile.
8148 * stap-probe.c (stap_probe_destroy): Update comment.
8149 (handle_stap_probe): Allocate on the per-BFD obstack.
8150
8151 2014-03-03 Tom Tromey <tromey@redhat.com>
8152
8153 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8154 * breakpoint.c (create_longjmp_master_breakpoint): Use
8155 get_probe_address.
8156 (add_location_to_breakpoint, bkpt_probe_insert_location)
8157 (bkpt_probe_remove_location): Update.
8158 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8159 * elfread.c (elf_symfile_relocate_probe): Remove.
8160 (elf_probe_fns): Update.
8161 (insert_exception_resume_breakpoint): Change type of "probe"
8162 parameter to bound_probe.
8163 (check_exception_resume): Update.
8164 * objfiles.c (objfile_relocate1): Don't relocate probes.
8165 * probe.c (bound_probe_s): New typedef.
8166 (parse_probes): Use get_probe_address. Set sal's objfile.
8167 (find_probe_by_pc): Return a bound_probe.
8168 (collect_probes): Return a VEC(bound_probe_s).
8169 (compare_probes): Update.
8170 (gen_ui_out_table_header_info): Change type of "probes"
8171 parameter. Update.
8172 (info_probes_for_ops): Update.
8173 (get_probe_address): New function.
8174 (probe_safe_evaluate_at_pc): Update.
8175 * probe.h (struct probe_ops) <get_probe_address>: New field.
8176 <set_semaphore, clear_semaphore>: Add objfile parameter.
8177 (struct probe) <objfile>: Remove field.
8178 <arch>: New field.
8179 <address>: Update comment.
8180 (struct bound_probe): New.
8181 (find_probe_by_pc): Return a bound_probe.
8182 (get_probe_address): Declare.
8183 * solib-svr4.c (struct probe_and_action) <address>: New field.
8184 (hash_probe_and_action, equal_probe_and_action): Update.
8185 (register_solib_event_probe): Add address parameter.
8186 (solib_event_probe_at): Update.
8187 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8188 get_probe_address.
8189 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8190 (stap_get_probe_address): New function.
8191 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8192 (compile_probe_arg): Update.
8193 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8194 address.
8195 (handle_stap_probe): Don't relocate the probe.
8196 (stap_relocate): Remove.
8197 (stap_gen_info_probes_table_values): Update.
8198 (stap_probe_ops): Remove stap_relocate.
8199 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8200 (debug_sym_probe_fns): Update.
8201 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8202 * symtab.c (init_sal): Use memset.
8203 * symtab.h (struct symtab_and_line) <objfile>: New field.
8204 * tracepoint.c (start_tracing, stop_tracing): Update.
8205
8206 2014-03-03 Tom Tromey <tromey@redhat.com>
8207
8208 * probe.h (parse_probes, find_probe_by_pc)
8209 (find_probes_in_objfile): Fix comments.
8210
8211 2014-03-02 Doug Evans <xdje42@gmail.com>
8212
8213 * infrun.c (handle_signal_stop): Replace test for
8214 TARGET_WAITKIND_STOPPED with an assert.
8215
8216 2014-03-02 Doug Evans <xdje42@gmail.com>
8217
8218 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8219
8220 2014-03-02 Doug Evans <xdje42@gmail.com>
8221
8222 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8223
8224 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8225
8226 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8227
8228 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8229
8230 * i386obsd-nat.c: Include "obsd-nat.h".
8231 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8232 add_target.
8233 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8234
8235 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8236
8237 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8238
8239 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8240
8241 * mips64obsd-nat.c: Include "obsd-nath".
8242 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8243 add_target
8244 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8245
8246 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8247
8248 * amd64obsd-nat.c: Include "obsd-nat,h.
8249 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8250 add_target.
8251 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8252
8253 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8254
8255 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8256 (find_overload_match): Update call to find_oload_champ.
8257 (find_oload_champ_namespace_loop): Likewise
8258
8259 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8260
8261 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8262
8263 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8264 * config/sparc/obsd64.mh: New file.
8265 * sparc64obsd-nat.c: New file.
8266
8267 * obsd-nat.h: New file.
8268 * obsd-nat.c: New file.
8269 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8270 (ALLDEPFILES): Add obsd-nat.c.
8271
8272 2014-02-28 Tom Tromey <tromey@redhat.com>
8273
8274 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8275 * cli-out.h (cli_ui_out_impl): Now const.
8276 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8277 * ui-out.c (struct ui_out) <impl>: Now const.
8278 (default_ui_out_impl): Now const.
8279 (ui_out_new): Make 'impl' parameter const.
8280 * ui-out.h (ui_out_new): Update.
8281
8282 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8283
8284 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8285
8286 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8287
8288 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8289
8290 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8291
8292 Additional PR 8882 fix.
8293 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8294
8295 2014-02-27 Pedro Alves <palves@redhat.com>
8296
8297 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8298 isn't set.
8299
8300 2014-02-27 Pedro Alves <palves@redhat.com>
8301
8302 PR 12702
8303 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8304 * nat/linux-waitpid.c: Include string.h.
8305 (status_to_str): Moved here and made extern.
8306 * nat/linux-waitpid.h (status_to_str): New declaration.
8307
8308 2014-02-27 Hui Zhu <hui@codesourcery.com>
8309
8310 PR 12702
8311 * infrun.c (ptid_match): Move ...
8312 * common/ptid.c (ptid_match): ... here.
8313 * inferior.h (ptid_match): Move ...
8314 * common/ptid.h (ptid_match): ... here.
8315
8316 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8317
8318 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8319 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8320 gdb_target_obs.
8321
8322 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8323
8324 * obsd-tdep.c (obsd_auxv_parse): New function.
8325 (obsd_init_abi): Set auxv_parse.
8326
8327 * gdbarch.sh (auxv_parse): New.
8328 * gdbarch.h: Regenerated.
8329 * gdbarch.c: Regenerated.
8330 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8331
8332 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8333
8334 * guile/scm-value.c (gdbscm_history_append_x): New function.
8335 (value_functions): Add it.
8336
8337 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8338
8339 * dwarf2read.c (attr_value_as_address): New function.
8340 (dwarf2_find_base_address, read_call_site_scope): Use
8341 attr_value_as_address in place of DW_ADDR.
8342 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8343 the low and high addresses. Slight rework of the handling
8344 of the high pc being a constant form, and limit it to
8345 DWARF verson 4 or higher.
8346 (dwarf2_record_block_ranges): Likewise.
8347 (read_partial_die): Likewise.
8348 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8349
8350 2014-02-26 Tom Tromey <tromey@redhat.com>
8351
8352 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8353
8354 2014-02-26 Tom Tromey <tromey@redhat.com>
8355
8356 * elfread.c (elf_read_minimal_symbols): Return early if
8357 minimal symbols have already been read. Add "ei" parameter.
8358 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8359 * minsyms.c (prim_record_minimal_symbol_full): Update.
8360 * objfiles.h (struct objstats) <n_minsyms>: Move...
8361 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8362 * symmisc.c (print_objfile_statistics): Update.
8363
8364 2014-02-26 Tom Tromey <tromey@redhat.com>
8365
8366 * elfread.c (elf_read_minimal_symbols): New function, from
8367 elf_symfile_read.
8368 (elf_symfile_read): Call it.
8369
8370 2014-02-26 Tom Tromey <tromey@redhat.com>
8371
8372 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8373 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8374 (lookup_minimal_symbol_solib_trampoline)
8375 (lookup_minimal_symbol_by_pc_section_1)
8376 (lookup_minimal_symbol_and_objfile): Update.
8377 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8378 Don't allocate a minimal symbol if minsyms have already been read.
8379 (build_minimal_symbol_hash_tables): Update.
8380 (install_minimal_symbols): Do nothing if minsyms already read.
8381 Use the per-BFD obstack.
8382 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8383 * objfiles.c (allocate_objfile): Call
8384 terminate_minimal_symbol_table later.
8385 (have_minimal_symbols): Update.
8386 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8387 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8388 Move from struct objfile.
8389 <minsyms_read>: New field.
8390 (struct objfile) <msymbols, minimal_symbol_count,
8391 msymbol_hash, msymbol_demangled_hash>: Move.
8392 (ALL_OBJFILE_MSYMBOLS): Update.
8393 * symfile.c (read_symbols): Set minsyms_read.
8394 (reread_symbols): Update.
8395 * symmisc.c (dump_objfile, dump_msymbols): Update.
8396
8397 2014-02-26 Tom Tromey <tromey@redhat.com>
8398
8399 * minsyms.c (msymbols_sort): Remove.
8400 * minsyms.h (msymbols_sort): Remove.
8401 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8402 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8403 * elfread.c (elf_symtab_read): Don't add section offsets.
8404 * xcoffread.c (record_minimal_symbol): Don't add section offset
8405 to minimal symbol address.
8406 * somread.c (text_offset, data_offset): Remove.
8407 (som_symtab_read): Don't add section offsets to minimal symbol
8408 addresses.
8409 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8410 Don't add section offsets to minimal symbols.
8411 * coffread.c (coff_symtab_read): Don't add section offsets
8412 to minimal symbol addresses.
8413 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8414 to minimal symbol addresses.
8415 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8416 section offset to minimal symbol addresses.
8417 * mdebugread.c (parse_partial_symbols): Don't add section
8418 offset to minimal symbol addresses.
8419 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8420 offset to minimal symbol addresses.
8421
8422 2014-02-26 Tom Tromey <tromey@redhat.com>
8423
8424 * ada-lang.c (ada_main_name): Update.
8425 (ada_add_standard_exceptions): Update.
8426 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8427 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8428 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8429 * auxv.c (ld_so_xfer_auxv): Update.
8430 * avr-tdep.c (avr_scan_prologue): Update.
8431 * ax-gdb.c (gen_var_ref): Update.
8432 * blockframe.c (get_pc_function_start)
8433 (find_pc_partial_function_gnu_ifunc): Update.
8434 * breakpoint.c (create_overlay_event_breakpoint)
8435 (create_longjmp_master_breakpoint)
8436 (create_std_terminate_master_breakpoint)
8437 (create_exception_master_breakpoint): Update.
8438 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8439 * c-valprint.c (c_val_print): Update.
8440 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8441 * common/agent.c (agent_look_up_symbols): Update.
8442 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8443 * dwarf2loc.c (call_site_to_target_addr): Update.
8444 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8445 * elfread.c (elf_gnu_ifunc_record_cache)
8446 (elf_gnu_ifunc_resolve_by_got): Update.
8447 * findvar.c (default_read_var_value): Update.
8448 * frame.c (inside_main_func): Update.
8449 * frv-tdep.c (frv_frame_this_id): Update.
8450 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8451 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8452 Update.
8453 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8454 (hppa_hpux_find_dummy_bpaddr): Update.
8455 * hppa-tdep.c (hppa_symbol_address): Update.
8456 * infcmd.c (until_next_command): Update.
8457 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8458 Update.
8459 * linespec.c (minsym_found, add_minsym): Update.
8460 * linux-nat.c (get_signo): Update.
8461 * linux-thread-db.c (inferior_has_bug): Update.
8462 * m32c-tdep.c (m32c_return_value)
8463 (m32c_m16c_address_to_pointer): Update.
8464 * m32r-tdep.c (m32r_frame_this_id): Update.
8465 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8466 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8467 * maint.c (maintenance_translate_address): Update.
8468 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8469 (frob_address): New function.
8470 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8471 frob_address. Rename parameter to "pc_in".
8472 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8473 addresses.
8474 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8475 Update.
8476 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8477 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8478 * objc-lang.c (find_objc_msgsend): Update.
8479 * objfiles.c (objfile_relocate1): Update.
8480 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8481 * p-valprint.c (pascal_val_print): Update.
8482 * parse.c (write_exp_msymbol): Update.
8483 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8484 (ppc_elfv2_skip_entrypoint): Update.
8485 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8486 * printcmd.c (build_address_symbolic, msym_info)
8487 (address_info): Update.
8488 * proc-service.c (ps_pglobal_lookup): Update.
8489 * psymtab.c (find_pc_sect_psymtab_closer)
8490 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8491 Change msymbol parameter to bound_minimal_symbol.
8492 * ravenscar-thread.c (get_running_thread_id): Update.
8493 * remote.c (remote_check_symbols): Update.
8494 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8495 address.
8496 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8497 * solib-dsbt.c (lm_base): Update.
8498 * solib-frv.c (lm_base, main_got): Update.
8499 * solib-irix.c (locate_base): Update.
8500 * solib-som.c (som_solib_create_inferior_hook)
8501 (link_map_start): Update.
8502 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8503 * solib-svr4.c (elf_locate_base, enable_break): Update.
8504 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8505 (flush_ea_cache): Update.
8506 * stabsread.c (define_symbol, scan_file_globals): Update.
8507 * stack.c (find_frame_funname): Update.
8508 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8509 (debug_qf_find_pc_sect_symtab): Update.
8510 * symfile.c (simple_read_overlay_table)
8511 (simple_overlay_update): Update.
8512 * symfile.h (struct quick_symbol_functions)
8513 <find_pc_sect_symtab>: Change type of msymbol to
8514 bound_minimal_symbol.
8515 * symmisc.c (dump_msymbols): Update.
8516 * symtab.c (find_pc_sect_symtab_via_partial)
8517 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8518 (search_symbols, print_msymbol_info): Update.
8519 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8520 (MSYMBOL_VALUE_ADDRESS): Redefine.
8521 (BMSYMBOL_VALUE_ADDRESS): New macro.
8522 * tracepoint.c (scope_info): Update.
8523 * tui/tui-disasm.c (tui_find_disassembly_address)
8524 (tui_get_begin_asm_address): Update.
8525 * valops.c (find_function_in_inferior): Update.
8526 * value.c (value_static_field, value_fn_field): Update.
8527
8528 2014-02-26 Tom Tromey <tromey@redhat.com>
8529
8530 * ada-lang.c (ada_update_initial_language): Update.
8531 (ada_main_name, ada_has_this_exception_support): Update.
8532 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8533 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8534 * arm-tdep.c (arm_skip_stub): Update.
8535 * auxv.c (ld_so_xfer_auxv): Update.
8536 * avr-tdep.c (avr_scan_prologue): Update.
8537 * ax-gdb.c (gen_var_ref): Update.
8538 * breakpoint.c (struct breakpoint_objfile_data)
8539 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8540 type to bound_minimal_symbol.
8541 (create_overlay_event_breakpoint)
8542 (create_longjmp_master_breakpoint)
8543 (create_std_terminate_master_breakpoint)
8544 (create_exception_master_breakpoint): Update.
8545 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8546 * c-exp.y (classify_name): Update.
8547 * coffread.c (coff_symfile_read): Update.
8548 * common/agent.c (agent_look_up_symbols): Update.
8549 * d-lang.c (d_main_name): Update.
8550 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8551 * dec-thread.c (enable_dec_thread): Update.
8552 * dwarf2loc.c (call_site_to_target_addr): Update.
8553 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8554 * eval.c (evaluate_subexp_standard): Update.
8555 * findvar.c (struct minsym_lookup_data) <result>: Change type
8556 to bound_minimal_symbol.
8557 <objfile>: Remove.
8558 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8559 * frame.c (inside_main_func): Update.
8560 * frv-tdep.c (frv_frame_this_id): Update.
8561 * gcore.c (call_target_sbrk): Update.
8562 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8563 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8564 Update.
8565 * go-lang.c (go_main_name): Update.
8566 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8567 (hppa_hpux_find_import_stub_for_addr): Update.
8568 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8569 Update. Change return type.
8570 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8571 type.
8572 * jit.c (jit_breakpoint_re_set_internal): Update.
8573 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8574 Update.
8575 * linux-nat.c (get_signo): Update.
8576 * linux-thread-db.c (inferior_has_bug): Update
8577 * m32c-tdep.c (m32c_return_value)
8578 (m32c_m16c_address_to_pointer): Update.
8579 * m32r-tdep.c (m32r_frame_this_id): Update.
8580 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8581 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8582 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8583 lookup_minimal_symbol. Change return type.
8584 (lookup_minimal_symbol): Remove.
8585 (lookup_bound_minimal_symbol): Update.
8586 (lookup_minimal_symbol_text): Change return type.
8587 (lookup_minimal_symbol_solib_trampoline): Change return type.
8588 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8589 (lookup_minimal_symbol_solib_trampoline): Change return type.
8590 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8591 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8592 (value_nsstring, find_imps): Update.
8593 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8594 * p-lang.c (pascal_main_name): Update.
8595 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8596 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8597 * proc-service.c (ps_pglobal_lookup): Update.
8598 * ravenscar-thread.c (get_running_thread_msymbol): Change
8599 return type.
8600 (has_ravenscar_runtime, get_running_thread_id): Update.
8601 * remote.c (remote_check_symbols): Update.
8602 * sol-thread.c (ps_pglobal_lookup): Update.
8603 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8604 * solib-dsbt.c (lm_base): Update.
8605 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8606 Update.
8607 * solib-irix.c (locate_base): Update.
8608 * solib-som.c (som_solib_create_inferior_hook)
8609 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8610 Update.
8611 * solib-spu.c (spu_enable_break): Update.
8612 * solib-svr4.c (elf_locate_base, enable_break): Update.
8613 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8614 (flush_ea_cache): Update.
8615 * stabsread.c (define_symbol): Update.
8616 * symfile.c (simple_read_overlay_table): Update.
8617 * symtab.c (find_pc_sect_line): Update.
8618 * tracepoint.c (scope_info): Update.
8619 * tui-disasm.c (tui_get_begin_asm_address): Update.
8620 * value.c (value_static_field): Update.
8621
8622 2014-02-26 Tom Tromey <tromey@redhat.com>
8623
8624 * minsyms.c (prim_record_minimal_symbol_full): Use
8625 SET_MSYMBOL_VALUE_ADDRESS.
8626 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8627 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8628 SET_MSYMBOL_VALUE_ADDRESS.
8629 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8630 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8631
8632 2014-02-26 Tom Tromey <tromey@redhat.com>
8633
8634 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8635 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8636 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8637 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8638 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8639 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8640 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8641 * ada-lang.c (ada_main_name): Update.
8642 (ada_lookup_simple_minsym): Update.
8643 (ada_make_symbol_completion_list): Update.
8644 (ada_add_standard_exceptions): Update.
8645 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8646 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8647 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8648 * arm-tdep.c (skip_prologue_function): Update.
8649 (arm_skip_stack_protector, arm_skip_stub): Update.
8650 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8651 (arm_wince_skip_main_prologue): Update.
8652 * auxv.c (ld_so_xfer_auxv): Update.
8653 * avr-tdep.c (avr_scan_prologue): Update.
8654 * ax-gdb.c (gen_var_ref): Update.
8655 * block.c (call_site_for_pc): Update.
8656 * blockframe.c (get_pc_function_start): Update.
8657 (find_pc_partial_function_gnu_ifunc): Update.
8658 * breakpoint.c (create_overlay_event_breakpoint): Update.
8659 (create_longjmp_master_breakpoint): Update.
8660 (create_std_terminate_master_breakpoint): Update.
8661 (create_exception_master_breakpoint): Update.
8662 (resolve_sal_pc): Update.
8663 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8664 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8665 Update.
8666 * c-valprint.c (c_val_print): Update.
8667 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8668 * coffread.c (coff_symfile_read): Update.
8669 * common/agent.c (agent_look_up_symbols): Update.
8670 * dbxread.c (find_stab_function_addr): Update.
8671 (end_psymtab): Update.
8672 * dwarf2loc.c (call_site_to_target_addr): Update.
8673 (func_verify_no_selftailcall): Update.
8674 (tailcall_dump): Update.
8675 (call_site_find_chain_1): Update.
8676 (dwarf_expr_reg_to_entry_parameter): Update.
8677 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8678 (elf_gnu_ifunc_resolve_by_got): Update.
8679 * f-valprint.c (info_common_command): Update.
8680 * findvar.c (read_var_value): Update.
8681 * frame.c (get_prev_frame_1): Update.
8682 (inside_main_func): Update.
8683 * frv-tdep.c (frv_skip_main_prologue): Update.
8684 (frv_frame_this_id): Update.
8685 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8686 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8687 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8688 (gnuv3_skip_trampoline): Update.
8689 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8690 (hppa64_hpux_in_solib_call_trampoline): Update.
8691 (hppa_hpux_skip_trampoline_code): Update.
8692 (hppa64_hpux_search_dummy_call_sequence): Update.
8693 (hppa_hpux_find_import_stub_for_addr): Update.
8694 (hppa_hpux_find_dummy_bpaddr): Update.
8695 * hppa-tdep.c (hppa_symbol_address)
8696 (hppa_lookup_stub_minimal_symbol): Update.
8697 * i386-tdep.c (i386_skip_main_prologue): Update.
8698 (i386_pe_skip_trampoline_code): Update.
8699 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8700 * infcall.c (get_function_name): Update.
8701 * infcmd.c (until_next_command): Update.
8702 * jit.c (jit_breakpoint_re_set_internal): Update.
8703 (jit_inferior_init): Update.
8704 * linespec.c (minsym_found): Update.
8705 (add_minsym): Update.
8706 * linux-fork.c (info_checkpoints_command): Update.
8707 * linux-nat.c (get_signo): Update.
8708 * linux-thread-db.c (inferior_has_bug): Update.
8709 * m32c-tdep.c (m32c_return_value): Update.
8710 (m32c_m16c_address_to_pointer): Update.
8711 (m32c_m16c_pointer_to_address): Update.
8712 * m32r-tdep.c (m32r_frame_this_id): Update.
8713 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8714 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8715 * maint.c (maintenance_translate_address): Update.
8716 * minsyms.c (add_minsym_to_hash_table): Update.
8717 (add_minsym_to_demangled_hash_table): Update.
8718 (msymbol_objfile): Update.
8719 (lookup_minimal_symbol): Update.
8720 (iterate_over_minimal_symbols): Update.
8721 (lookup_minimal_symbol_text): Update.
8722 (lookup_minimal_symbol_by_pc_name): Update.
8723 (lookup_minimal_symbol_solib_trampoline): Update.
8724 (lookup_minimal_symbol_by_pc_section_1): Update.
8725 (lookup_minimal_symbol_and_objfile): Update.
8726 (prim_record_minimal_symbol_full): Update.
8727 (compare_minimal_symbols): Update.
8728 (compact_minimal_symbols): Update.
8729 (build_minimal_symbol_hash_tables): Update.
8730 (install_minimal_symbols): Update.
8731 (terminate_minimal_symbol_table): Update.
8732 (find_solib_trampoline_target): Update.
8733 (minimal_symbol_upper_bound): Update.
8734 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8735 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8736 (mips_skip_pic_trampoline_code): Update.
8737 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8738 * objc-lang.c (selectors_info): Update.
8739 (classes_info): Update.
8740 (find_methods): Update.
8741 (find_imps): Update.
8742 (find_objc_msgsend): Update.
8743 * objfiles.c (objfile_relocate1): Update.
8744 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8745 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8746 * p-valprint.c (pascal_val_print): Update.
8747 * parse.c (write_exp_msymbol): Update.
8748 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8749 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8750 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8751 * printcmd.c (build_address_symbolic): Update.
8752 (sym_info): Update.
8753 (address_info): Update.
8754 * proc-service.c (ps_pglobal_lookup): Update.
8755 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8756 (find_pc_sect_psymtab): Update.
8757 * python/py-framefilter.c (py_print_frame): Update.
8758 * ravenscar-thread.c (get_running_thread_id): Update.
8759 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8760 Update.
8761 * remote.c (remote_check_symbols): Update.
8762 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8763 (rs6000_skip_trampoline_code): Update.
8764 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8765 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8766 * solib-dsbt.c (lm_base): Update.
8767 * solib-frv.c (lm_base): Update.
8768 (main_got): Update.
8769 * solib-irix.c (locate_base): Update.
8770 * solib-som.c (som_solib_create_inferior_hook): Update.
8771 (som_solib_desire_dynamic_linker_symbols): Update.
8772 (link_map_start): Update.
8773 * solib-spu.c (spu_enable_break): Update.
8774 (ocl_enable_break): Update.
8775 * solib-svr4.c (elf_locate_base): Update.
8776 (enable_break): Update.
8777 * spu-tdep.c (spu_get_overlay_table): Update.
8778 (spu_catch_start): Update.
8779 (flush_ea_cache): Update.
8780 * stabsread.c (define_symbol): Update.
8781 (scan_file_globals): Update.
8782 * stack.c (find_frame_funname): Update.
8783 (frame_info): Update.
8784 * symfile.c (simple_read_overlay_table): Update.
8785 (simple_overlay_update): Update.
8786 * symmisc.c (dump_msymbols): Update.
8787 * symtab.c (fixup_section): Update.
8788 (find_pc_sect_line): Update.
8789 (skip_prologue_sal): Update.
8790 (search_symbols): Update.
8791 (print_msymbol_info): Update.
8792 (rbreak_command): Update.
8793 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8794 (completion_list_objc_symbol): Update.
8795 (default_make_symbol_completion_list_break_on): Update.
8796 * tracepoint.c (scope_info): Update.
8797 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8798 (tui_get_begin_asm_address): Update.
8799 * valops.c (find_function_in_inferior): Update.
8800 * value.c (value_static_field): Update.
8801 (value_fn_field): Update.
8802
8803 2014-02-26 Tom Tromey <tromey@redhat.com>
8804
8805 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8806 bound minimal symbols. Move code that knows about minsym
8807 table layout...
8808 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8809 function.
8810 * minsyms.h (minimal_symbol_upper_bound): Declare.
8811 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8812 minimal_symbol_upper_bound.
8813
8814 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8815
8816 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8817 Use the type's name if its basic type does not have a tag.
8818
8819 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8820
8821 * dwarf2read.c (read_subrange_type): Add comment.
8822
8823 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8824
8825 * dwarf2read.c (update_enumeration_type_from_children): New
8826 function, mostly extracted from process_structure_scope.
8827 (read_enumeration_type): Call update_enumeration_type_from_children.
8828 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8829 and flag_flag_enum fields.
8830
8831 2014-02-26 Pedro Alves <palves@redhat.com>
8832
8833 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8834 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8835 to_xfer_partial method.
8836
8837 2014-02-26 Pedro Alves <palves@redhat.com>
8838
8839 * target.c (complete_target_initialization): Don't install
8840 default_xfer_partial as to_xfer_partial hook.
8841 (nomemory): Delete.
8842 (update_current_target): Don't INHERIT nor de_fault
8843 deprecated_xfer_memory. Delete de_fault macro.
8844 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8845 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8846 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8847 field.
8848
8849 2014-02-26 Pedro Alves <palves@redhat.com>
8850
8851 * go32-nat.c (my_write_child): New function.
8852 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8853 (go32_xfer_partial): New function.
8854 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8855 Instead install a to_xfer_partial hook.
8856
8857 2014-02-26 Pedro Alves <palves@redhat.com>
8858
8859 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8860 to_xfer_partial helper. Rewrite.
8861 (procfs_xfer_partial): New function.
8862 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8863 Install a to_xfer_partial hook.
8864
8865 2014-02-26 Pedro Alves <palves@redhat.com>
8866
8867 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8868 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8869 (m32r_xfer_partial): New function.
8870 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8871 Install a to_xfer_partial hook.
8872
8873 2014-02-26 Pedro Alves <palves@redhat.com>
8874
8875 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8876 helper.
8877 (mips_xfer_partial): New function.
8878 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8879 hook. Install a to_xfer_partial hook.
8880
8881 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8882
8883 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8884 * gdbtypes.c (create_array_type_with_stride): New function,
8885 renaming create_array_type, but with an added parameter
8886 called "bit_stride".
8887 (create_array_type): Re-implement using
8888 create_array_type_with_stride.
8889 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8890 and DW_AT_bit_stride attributes.
8891
8892 2014-02-26 Pedro Alves <palves@redhat.com>
8893
8894 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8895 task-specific breakpoints.
8896
8897 2014-02-25 Pedro Alves <palves@redhat.com>
8898
8899 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8900 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8901
8902 2014-02-25 Stan Shebs <stan@codesourcery.com>
8903
8904 * defs.h: Annotate comments for Doxygen.
8905
8906 2014-02-25 Tom Tromey <tromey@redhat.com>
8907
8908 * target.h (target_ignore): Don't declare.
8909 * target.c (target_ignore): Remove.
8910
8911 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8912
8913 PR gdb/16626
8914 * auto-load.c (auto_load_objfile_script_1): Change filename to
8915 debugfile.
8916
8917 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8918
8919 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8920 documentation. Adjust prototype to match the target_ops
8921 to_xfer_partial method. Adjust implementation accordingly.
8922
8923 2014-02-25 Hui Zhu <hui@codesourcery.com>
8924
8925 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8926 to_traceframe_info.
8927
8928 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8929
8930 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8931 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8932 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8933 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8934 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8935 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8936 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8937 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8938 New constants.
8939 (rl78_register_type): Use a data pointer type for SP and
8940 new pseudo registers mentioned above. Use a 16 bit integer
8941 type for all other register pairs.
8942 (rl78_register_name, rl78_g10_register_name): Update for
8943 new pseudo registers.
8944 (rl78_pseudo_register_read): Likewise.
8945 (rl78_pseudo_register_write): Likewise.
8946 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8947 to the newly added pseudo registers.
8948
8949 2014-02-24 Doug Evans <dje@google.com>
8950
8951 * value.c (record_latest_value): Fix comment.
8952 * printcmd.c (print_command_1): Remove code to handle -1 return from
8953 record_latest_value.
8954
8955 2014-02-24 Pedro Alves <palves@redhat.com>
8956
8957 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8958 deprecated_xfer_memory hook.
8959 (procfs_xfer_partial): Call procfs_xfer_memory instead
8960 of the deprecated_xfer_memory target hook.
8961 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8962 helper.
8963
8964 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8965
8966 * windows-nat.c (windows_xfer_shared_libraries): Return
8967 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8968 requested object is TARGET_OBJECT_LIBRARIES.
8969
8970 2014-02-24 Yao Qi <yao@codesourcery.com>
8971
8972 * target.h (enum target_xfer_status)
8973 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8974 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8975 explicitly. New.
8976 * corefile.c (memory_error_message): User updated.
8977 * exec.c (section_table_read_available_memory): Likewise.
8978 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8979 * target.c (target_xfer_status_to_string): Likewise.
8980 (raw_memory_xfer_partial): Likewise.
8981 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8982 * valops.c (read_value_memory): Likewise.
8983 * exec.h: Update comments.
8984
8985 2014-02-24 Yao Qi <yao@codesourcery.com>
8986
8987 * target.c (target_xfer_status_to_string): Rename argument err
8988 to status.
8989 * target.h (target_xfer_status_to_string): Update declaration.
8990 Replace target_xfer_error_to_string with
8991 target_xfer_status_to_string in comment.
8992
8993 2014-02-24 Yao Qi <yao@codesourcery.com>
8994
8995 * mips-linux-nat.c (super_close): Update its type.
8996 (mips_linux_close): Pass 'self' to super_close.
8997
8998 2014-02-24 Yao Qi <yao@codesourcery.com>
8999
9000 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9001 * corefile.c (read_memory): Adjusted.
9002 * target.c (target_write_with_progress): Adjusted.
9003
9004 2014-02-23 Yao Qi <yao@codesourcery.com>
9005
9006 Revert two patches:
9007
9008 2013-10-25 Yao Qi <yao@codesourcery.com>
9009
9010 * remote.c (remote_traceframe_info): Return early if
9011 traceframe is not selected.
9012
9013 2013-07-19 Yao Qi <yao@codesourcery.com>
9014
9015 * target.c (update_current_target): Change the default action
9016 of 'to_traceframe_info' from tcomplain to return_zero.
9017 * target.h (struct target_ops) <to_traceframe_info>: Add more
9018 comments.
9019
9020 2014-02-23 Yao Qi <yao@codesourcery.com>
9021
9022 * valops.c (read_value_memory): Rewrite it. Call
9023 target_xfer_partial in a loop.
9024 * exec.h (section_table_available_memory): Remove declaration.
9025 Move comments to ...
9026 * exec.c (section_table_available_memory): ... here. Make it
9027 static.
9028
9029 2014-02-23 Yao Qi <yao@codesourcery.com>
9030
9031 * exec.c (section_table_read_available_memory): New function.
9032 * exec.h (section_table_read_available_memory): Declare.
9033 * ctf.c (ctf_xfer_partial): Call
9034 section_table_read_available_memory.
9035 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9036
9037 2014-02-23 Yao Qi <yao@codesourcery.com>
9038
9039 * ctf.c (ctf_xfer_partial): Move code to ...
9040 * exec.c (exec_read_partial_read_only): ... it. New function.
9041 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9042 * tracefile.c: Include "exec.h".
9043 * exec.h (exec_read_partial_read_only): Declare.
9044
9045 2014-02-23 Yao Qi <yao@codesourcery.com>
9046
9047 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9048 (tfile_has_memory): Remove.
9049 (init_tfile_ops): Don't set fields to_has_all_memory and
9050 to_has_memory of tfile_ops.
9051 * tracefile.c (tracefile_has_all_memory): New function.
9052 (tracefile_has_memory): New function.
9053 (init_tracefile_ops): Initialize fields to_has_all_memory and
9054 to_has_memory of 'ops'.
9055
9056 2014-02-23 Yao Qi <yao@codesourcery.com>
9057
9058 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9059 (ctf_thread_alive, ctf_get_trace_status): Remove.
9060 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9061 init_tracefile_ops.
9062 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9063 (tfile_has_stack, tfile_has_registers): Remove.
9064 (tfile_thread_alive): Remove.
9065 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9066 init_tracefile_ops.
9067 * tracefile.c (tracefile_has_stack): New function.
9068 (tracefile_has_registers): New function.
9069 (tracefile_thread_alive): New function.
9070 (tracefile_get_trace_status): New function.
9071 (init_tracefile_ops): New function.
9072 * tracefile.h (init_tracefile_ops): Declare.
9073
9074 2014-02-23 Yao Qi <yao@codesourcery.com>
9075
9076 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9077 (O_LARGEFILE): Likewise.
9078 (tfile_ops): Likewise.
9079 (TRACE_HEADER_SIZE): Likewise.
9080 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9081 (cur_data_size): Likewise.
9082 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9083 (tfile_close, tfile_files_info): Likewise.
9084 (tfile_get_trace_status): Likewise.
9085 (tfile_get_tracepoint_status): Likewise.
9086 (tfile_get_traceframe_address): Likewise.
9087 (tfile_trace_find, match_blocktype): Likewise.
9088 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9089 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9090 (tfile_get_trace_state_variable_value): Likewise.
9091 (tfile_has_all_memory, tfile_has_memory): Likewise.
9092 (tfile_has_stack, tfile_has_registers): Likewise.
9093 (tfile_thread_alive, build_traceframe_info): Likewise.
9094 (tfile_traceframe_info, init_tfile_ops): Likewise.
9095 (_initialize_tracepoint): Don't call init_tfile_ops
9096 and add_target_with_completer.
9097 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9098 exec.h, completer.h and filenames.h.
9099 (_initialize_tracefile_tfile): New function.
9100
9101 2014-02-23 Yao Qi <yao@codesourcery.com>
9102
9103 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9104 tracefile-tfile.o.
9105 (HFILES_NO_SRCDIR): Add tracefile.h.
9106 * ctf.c: Include "tracefile.h".
9107 * tracefile.h: New file.
9108 * tracefile.c: New file
9109 * tracefile-tfile.c: New file.
9110 * tracepoint.c: Include "tracefile.h".
9111 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9112 (stop_reason_names): Add const.
9113 (trace_file_writer_xfree): Move it to tracefile.c.
9114 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9115 (trace_save_ctf): Likewise.
9116 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9117 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9118 (tfile_write_header, tfile_write_regblock_type): Likewise.
9119 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9120 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9121 (tfile_write_raw_data, tfile_end): Likewise.
9122 (tfile_trace_file_writer_new): Likewise.
9123 (free_uploaded_tp): Make it extern.
9124 (free_uploaded_tsv): Make it extern.
9125 (_initialize_tracepoint): Move code to register command 'tsave'
9126 to tracefile.c.
9127 * tracepoint.h (stop_reason_names): Declare.
9128 (struct trace_frame_write_ops): Move it to tracefile.h.
9129 (struct trace_file_write_ops): Likewise.
9130 (struct trace_file_writer): Likewise.
9131 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9132
9133 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9134
9135 PR gdb/16594
9136 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9137 process name.
9138 (get_cores_used_by_process): New parameter num_cores, use it.
9139 (linux_xfer_osdata_processes): Pass num_cores to it.
9140 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9141 process name.
9142
9143 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9144
9145 * target.c (memory_xfer_partial): Fix length arg in call to
9146 breakpoint_xfer_memory.
9147
9148 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9149
9150 PR tdep/16397
9151 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9152 number comes after the + or - signs. Adjust length of register
9153 name to be extracted.
9154
9155 2014-02-20 Tom Tromey <tromey@redhat.com>
9156
9157 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9158 (ada_varobj_ops): Mark "extern".
9159
9160 2014-02-20 Tom Tromey <tromey@redhat.com>
9161
9162 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9163
9164 2014-02-20 Doug Evans <xdje42@gmail.com>
9165
9166 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9167 All callers updated.
9168 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9169 All callers updated.
9170 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9171 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9172
9173 2014-02-20 lin zuojian <manjian2006@gmail.com>
9174 Joel Brobecker <brobecker@adacore.com>
9175 Doug Evans <xdje42@gmail.com>
9176
9177 PR symtab/16581
9178 * dwarf2read.c (struct die_info): New member in_process.
9179 (reset_die_in_process): New function.
9180 (process_die): Set it at the start, reset when returning.
9181 (inherit_abstract_dies): Only call process_die if origin_child_die
9182 not already being processed.
9183
9184 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9185
9186 * windows-nat.c (handle_unload_dll): Add function documentation.
9187 (do_initial_windows_stuff): Add comment explaining why we wait
9188 until after inferior initialization has finished before
9189 processing all DLLs.
9190
9191 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9192
9193 * windows-nat.c (get_module_name): Delete.
9194 (windows_get_exec_module_filename): New function, mostly
9195 inspired from get_module_name.
9196 (windows_pid_to_exec_file): Replace call to get_module_name
9197 by call to windows_get_exec_module_filename.
9198
9199 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9200
9201 * windows-nat.c (handle_load_dll): Rewrite this function's
9202 introductory comment. Remove code using get_module_name
9203 to get the DLL's name.
9204
9205 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9206
9207 * windows-nat.c (get_windows_debug_event): Ignore
9208 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9209 if windows_initialization_done == 0.
9210 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9211 Adjust implementation to always load all DLLs.
9212 (do_initial_windows_stuff): Replace call to
9213 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9214
9215 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9216
9217 * windows-nat.c (_initialize_windows_nat): Deprecate the
9218 "dll-symbols" command. Turn the "add-shared-symbol-files"
9219 and "assf" aliases into commands, and deprecate them as well.
9220 * NEWS: Add entry explaining that "dll-symbols" and its two
9221 aliases are now deprecated.
9222
9223 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9224
9225 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9226 new-line in debug string. Remove trailing spaces.
9227
9228 2014-02-19 Stan Shebs <stan@codesourcery.com>
9229
9230 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9231
9232 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9233
9234 * NEWS: Add entry for the new feature
9235 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9236 and class values.
9237
9238 2014-02-19 Stan Shebs <stan@codesourcery.com>
9239
9240 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9241
9242 2014-02-19 Pedro Alves <palves@redhat.com>
9243
9244 * common/ptid.h (struct ptid): Mention that process_stratum
9245 targets should prefer ptid.lwp.
9246
9247 2014-02-19 Pedro Alves <palves@redhat.com>
9248
9249 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9250 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9251 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9252 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9253 store remote thread ids rather than ptid.tid.
9254 (_initialize_remote): Adjust.
9255
9256 2014-02-19 Tom Tromey <tromey@redhat.com>
9257
9258 * target.c (target_get_unwinder): Rewrite.
9259 (target_get_tailcall_unwinder): Rewrite.
9260 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9261 (record_btrace_to_get_tailcall_unwinder): New function.
9262 (init_record_btrace_ops): Update.
9263 * target.h (struct target_ops) <to_get_unwinder,
9264 to_get_tailcall_unwinder>: Now function pointers. Use
9265 TARGET_DEFAULT_RETURN.
9266
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9270 argument.
9271 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9272
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9276 directly.
9277 * target-delegates.c: Rebuild.
9278 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9279 TARGET_DEFAULT_FUNC.
9280 * target.c (default_target_decr_pc_after_break): Rename from
9281 forward_target_decr_pc_after_break. Simplify.
9282 (target_decr_pc_after_break): Rely on delegation.
9283
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9285
9286 * target.c (update_current_target): Do not INHERIT to_doc or
9287 to_magic. Do not de_fault to_open or to_close.
9288
9289 2014-02-19 Tom Tromey <tromey@redhat.com>
9290
9291 * gcore.h (objfile_find_memory_regions): Declare.
9292 * gcore.c (objfile_find_memory_regions): No longer static. Add
9293 "self" argument.
9294 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9295 * exec.c: Include gcore.h.
9296 (exec_set_find_memory_regions): Remove.
9297 (exec_find_memory_regions): Remove.
9298 (exec_do_find_memory_regions): Remove.
9299 (init_exec_ops): Update.
9300 * defs.h (exec_set_find_memory_regions): Remove.
9301
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target-delegates.c: Rebuild.
9305 * target.h (struct target_ops) <to_extra_thread_info,
9306 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9307 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9308 not 0, in TARGET_DEFAULT_RETURN.
9309
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9311
9312 * target.c (complete_target_initialization): Remove casts. Use
9313 return_zero_has_execution.
9314 (return_zero): Add "ignore" argument.
9315 (return_zero_has_execution): New function.
9316 (init_dummy_target): Remove casts. Use
9317 return_zero_has_execution.
9318
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * target.c (update_current_target): Update comments. Do not
9322 INHERIT to_stratum.
9323
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9325
9326 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9327 needed.
9328 * corelow.c (core_read_description): Delegate when needed.
9329 * remote.c (remote_read_description): Delegate when needed.
9330 * target-delegates.c: Rebuild.
9331 * target.c (target_read_description): Rewrite.
9332 * target.h (struct target_ops) <to_read_description>: Update
9333 comment. Use TARGET_DEFAULT_RETURN.
9334
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9336
9337 * target-delegates.c: Rebuild.
9338 * target.c (update_current_target): Don't inherit or default
9339 to_can_run.
9340 (find_default_run_target): Check against delegate_can_run.
9341 * target.h (struct target_ops) <to_can_run>: Use
9342 TARGET_DEFAULT_RETURN.
9343
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * target-delegates.c: Rebuild.
9347 * target.c (target_disconnect): Unconditionally delegate.
9348 * target.h (struct target_ops) <to_disconnect>: Use
9349 TARGET_DEFAULT_NORETURN.
9350
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * record.c (record_stop): Unconditionally delegate.
9354 * target-delegates.c: Rebuild.
9355 * target.c (target_stop_recording): Unconditionally delegate.
9356 * target.h (struct target_ops) <to_stop_recording>: Use
9357 TARGET_DEFAULT_IGNORE.
9358
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * target-delegates.c: Rebuild.
9362 * target.c (target_enable_btrace): Unconditionally delegate.
9363 * target.h (struct target_ops) <to_enable_btrace>: Use
9364 TARGET_DEFAULT_NORETURN.
9365
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * target-delegates.c: Rebuild.
9369 * target.c (target_read_btrace): Unconditionally delegate.
9370 * target.h (struct target_ops) <to_read_btrace>: Use
9371 TARGET_DEFAULT_NORETURN.
9372
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target-delegates.c: Rebuild.
9376 * target.c (target_teardown_btrace): Unconditionally delegate.
9377 * target.h (struct target_ops) <to_teardown_btrace>: Use
9378 TARGET_DEFAULT_NORETURN.
9379
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9381
9382 * target-delegates.c: Rebuild.
9383 * target.c (target_disable_btrace): Unconditionally delegate.
9384 * target.h (struct target_ops) <to_disable_btrace>: Use
9385 TARGET_DEFAULT_NORETURN.
9386
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9388
9389 * target-delegates.c: Rebuild.
9390 * target.c (default_search_memory): New function.
9391 (simple_search_memory): Update comment.
9392 (target_search_memory): Unconditionally delegate.
9393 * target.h (struct target_ops) <to_search_memory>: Use
9394 TARGET_DEFAULT_FUNC.
9395
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9397
9398 * auxv.c (default_auxv_parse): No longer static.
9399 (target_auxv_parse): Unconditionally delegate.
9400 * auxv.h (default_auxv_parse): Declare.
9401 * target-delegates.c: Rebuild.
9402 * target.c: Include auxv.h.
9403 * target.h (struct target_ops) <to_auxv_parse>: Use
9404 TARGET_DEFAULT_FUNC.
9405
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * target-delegates.c: Rebuild.
9409 * target.c (target_memory_map): Unconditionally delegate.
9410 * target.h (struct target_ops) <to_memory_map>: Use
9411 TARGET_DEFAULT_RETURN.
9412
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target-delegates.c: Rebuild.
9416 * target.c (target_thread_alive): Unconditionally delegate.
9417 * target.h (struct target_ops) <to_thread_alive>: Use
9418 TARGET_DEFAULT_RETURN.
9419
9420 2014-02-19 Tom Tromey <tromey@redhat.com>
9421
9422 * target-delegates.c: Rebuild.
9423 * target.c (target_save_record): Unconditionally delegate.
9424 * target.h (struct target_ops) <to_save_record>: Use
9425 TARGET_DEFAULT_NORETURN.
9426
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9428
9429 * target-delegates.c: Rebuild.
9430 * target.c (target_delete_record): Unconditionally delegate.
9431 * target.h (struct target_ops) <to_delete_record>: Use
9432 TARGET_DEFAULT_NORETURN.
9433
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target-delegates.c: Rebuild.
9437 * target.c (target_record_is_replaying): Unconditionally
9438 delegate.
9439 * target.h (struct target_ops) <to_record_is_replaying>: Use
9440 TARGET_DEFAULT_RETURN.
9441
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9443
9444 * target-delegates.c: Rebuild.
9445 * target.c (target_goto_record_begin): Unconditionally delegate.
9446 * target.h (struct target_ops) <to_goto_record_begin>: Use
9447 TARGET_DEFAULT_NORETURN.
9448
9449 2014-02-19 Tom Tromey <tromey@redhat.com>
9450
9451 * target-delegates.c: Rebuild.
9452 * target.c (target_goto_record_end): Unconditionally delegate.
9453 * target.h (struct target_ops) <to_goto_record_end>: Use
9454 TARGET_DEFAULT_NORETURN.
9455
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * target-delegates.c: Rebuild.
9459 * target.c (target_goto_record): Unconditionally delegate.
9460 * target.h (struct target_ops) <to_goto_record>: Use
9461 TARGET_DEFAULT_NORETURN.
9462
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * target-delegates.c: Rebuild.
9466 * target.c (target_insn_history): Unconditionally delegate.
9467 * target.h (struct target_ops) <to_insn_history>: Use
9468 TARGET_DEFAULT_NORETURN.
9469
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9471
9472 * target-delegates.c: Rebuild.
9473 * target.c (target_insn_history_from): Unconditionally delegate.
9474 * target.h (struct target_ops) <to_insn_history_from>: Use
9475 TARGET_DEFAULT_NORETURN.
9476
9477 2014-02-19 Tom Tromey <tromey@redhat.com>
9478
9479 * target-delegates.c: Rebuild.
9480 * target.c (target_insn_history_range): Unconditionally delegate.
9481 * target.h (struct target_ops) <to_insn_history_range>: Use
9482 TARGET_DEFAULT_NORETURN.
9483
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9485
9486 * target-delegates.c: Rebuild.
9487 * target.c (target_call_history): Unconditionally delegate.
9488 * target.h (struct target_ops) <to_call_history>: Use
9489 TARGET_DEFAULT_NORETURN.
9490
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9492
9493 * target-delegates.c: Rebuild.
9494 * target.c (target_call_history_from): Unconditionally delegate.
9495 * target.h (struct target_ops) <to_call_history_from>: Use
9496 TARGET_DEFAULT_NORETURN.
9497
9498 2014-02-19 Tom Tromey <tromey@redhat.com>
9499
9500 * target-delegates.c: Rebuild.
9501 * target.c (target_call_history_range): Unconditionally delegate.
9502 * target.h (struct target_ops) <to_call_history_range>: Use
9503 TARGET_DEFAULT_NORETURN.
9504
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9506
9507 * target-delegates.c: Rebuild.
9508 * target.c (target_verify_memory): Unconditionally delegate.
9509 * target.h (struct target_ops) <to_verify_memory>: Use
9510 TARGET_DEFAULT_NORETURN.
9511
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target-delegates.c: Rebuild.
9515 * target.c (target_core_of_thread): Unconditionally delegate.
9516 * target.h (struct target_ops) <to_core_of_thread>: Use
9517 TARGET_DEFAULT_RETURN.
9518
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9520
9521 * target-delegates.c: Rebuild.
9522 * target.c (target_flash_done): Unconditionally delegate.
9523 * target.h (struct target_ops) <to_flash_done>: Use
9524 TARGET_DEFAULT_NORETURN.
9525
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9527
9528 * target-delegates.c: Rebuild.
9529 * target.c (target_flash_erase): Unconditionally delegate.
9530 * target.h (struct target_ops) <to_flash_erase>: Use
9531 TARGET_DEFAULT_NORETURN.
9532
9533 2014-02-19 Tom Tromey <tromey@redhat.com>
9534
9535 * target-delegates.c: Rebuild.
9536 * target.c (target_get_section_table): Unconditionally delegate.
9537 * target.h (struct target_ops) <to_get_section_table>: Use
9538 TARGET_DEFAULT_RETURN.
9539
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9541
9542 * target-delegates.c: Rebuild.
9543 * target.c (target_pid_to_str): Unconditionally delegate.
9544 (init_dummy_target): Don't initialize to_pid_to_str.
9545 (default_pid_to_str): Rename from dummy_pid_to_str.
9546 * target.h (struct target_ops) <to_pid_to_str>: Use
9547 TARGET_DEFAULT_FUNC.
9548
9549 2014-02-19 Tom Tromey <tromey@redhat.com>
9550
9551 * target-delegates.c: Rebuild.
9552 * target.c (target_find_new_threads): Unconditionally delegate.
9553 * target.h (struct target_ops) <to_find_new_threads>: Use
9554 TARGET_DEFAULT_RETURN.
9555
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9557
9558 * target-delegates.c: Rebuild.
9559 * target.c (target_program_signals): Unconditionally delegate.
9560 * target.h (struct target_ops) <to_program_signals>: Use
9561 TARGET_DEFAULT_IGNORE.
9562
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9564
9565 * target-delegates.c: Rebuild.
9566 * target.c (target_pass_signals): Unconditionally delegate.
9567 * target.h (struct target_ops) <to_pass_signals>: Use
9568 TARGET_DEFAULT_IGNORE.
9569
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target-delegates.c: Rebuild.
9573 * target.c (default_mourn_inferior): New function.
9574 (target_mourn_inferior): Unconditionally delegate.
9575 * target.h (struct target_ops) <to_mourn_inferior>: Use
9576 TARGET_DEFAULT_FUNC.
9577
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target-delegates.c: Rebuild.
9581 * target.c (default_follow_fork): New function.
9582 (target_follow_fork): Unconditionally delegate.
9583 * target.h (struct target_ops) <to_follow_fork>: Use
9584 TARGET_DEFAULT_FUNC.
9585
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9587
9588 * target-delegates.c: Rebuild.
9589 * target.c (target_kill): Unconditionally delegate.
9590 * target.h (struct target_ops) <to_kill>: Use
9591 TARGET_DEFAULT_NORETURN.
9592
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * target-delegates.c: Rebuild.
9596 * target.c (target_masked_watch_num_registers): Unconditionally
9597 delegate.
9598 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9599 Use TARGET_DEFAULT_RETURN.
9600
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9602
9603 * target-delegates.c: Rebuild.
9604 * target.c (target_remove_mask_watchpoint): Unconditionally
9605 delegate.
9606 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9607 TARGET_DEFAULT_RETURN.
9608
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9610
9611 * target-delegates.c: Rebuild.
9612 * target.c (target_insert_mask_watchpoint): Unconditionally
9613 delegate.
9614 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9615 TARGET_DEFAULT_RETURN.
9616
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9618
9619 * target-delegates.c: Rebuild.
9620 * target.c (target_ranged_break_num_registers): Unconditionally
9621 delegate.
9622 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9623 Use TARGET_DEFAULT_RETURN.
9624
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9626
9627 * target-delegates.c: Rebuild.
9628 * target.c (target_fetch_registers): Unconditionally delegate.
9629 * target.h (struct target_ops) <to_fetch_registers>: Use
9630 TARGET_DEFAULT_NORETURN.
9631
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target-delegates.c: Rebuild.
9635 * target.c (update_current_target): Don't inherit or default
9636 to_stop.
9637 * target.h (struct target_ops) <to_stop>: Use
9638 TARGET_DEFAULT_IGNORE.
9639
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * target-delegates.c: Rebuild.
9643 * target.c (update_current_target): Don't inherit or default
9644 to_can_run_breakpoint_commands.
9645 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9646 Use TARGET_DEFAULT_RETURN.
9647
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target-delegates.c: Rebuild.
9651 * target.c (update_current_target): Don't inherit or default
9652 to_supports_evaluation_of_breakpoint_conditions.
9653 * target.h (struct target_ops)
9654 <to_supports_evaluation_of_breakpoint_conditions>: Use
9655 TARGET_DEFAULT_RETURN.
9656
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9658
9659 * target-delegates.c: Rebuild.
9660 * target.c (update_current_target): Don't inherit or default
9661 to_augmented_libraries_svr4_read.
9662 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9663 Use TARGET_DEFAULT_RETURN.
9664
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9666
9667 * target-delegates.c: Rebuild.
9668 * target.c (update_current_target): Don't inherit or default
9669 to_can_use_agent.
9670 * target.h (struct target_ops) <to_can_use_agent>: Use
9671 TARGET_DEFAULT_RETURN.
9672
9673 2014-02-19 Tom Tromey <tromey@redhat.com>
9674
9675 * target-delegates.c: Rebuild.
9676 * target.c (update_current_target): Don't inherit or default
9677 to_use_agent.
9678 * target.h (struct target_ops) <to_use_agent>: Use
9679 TARGET_DEFAULT_NORETURN.
9680
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * target-delegates.c: Rebuild.
9684 * target.c (update_current_target): Don't inherit or default
9685 to_traceframe_info.
9686 (return_null): Remove.
9687 * target.h (struct target_ops) <to_traceframe_info>: Use
9688 TARGET_DEFAULT_RETURN.
9689
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9691
9692 * target-delegates.c: Rebuild.
9693 * target.c (update_current_target): Don't inherit or default
9694 to_static_tracepoint_markers_by_strid.
9695 * target.h (struct target_ops)
9696 <to_static_tracepoint_markers_by_strid>: Use
9697 TARGET_DEFAULT_NORETURN.
9698
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target-delegates.c: Rebuild.
9702 * target.c (update_current_target): Don't inherit or default
9703 to_static_tracepoint_marker_at.
9704 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9705 Use TARGET_DEFAULT_RETURN.
9706
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9708
9709 * target-delegates.c: Rebuild.
9710 * target.c (update_current_target): Don't inherit or default
9711 to_set_permissions.
9712 * target.h (struct target_ops) <to_set_permissions>: Use
9713 TARGET_DEFAULT_IGNORE.
9714
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9716
9717 * target-delegates.c: Rebuild.
9718 * target.c (update_current_target): Don't inherit or default
9719 to_get_tib_address.
9720 * target.h (struct target_ops) <to_get_tib_address>: Use
9721 TARGET_DEFAULT_NORETURN.
9722
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9724
9725 * target-delegates.c: Rebuild.
9726 * target.c (update_current_target): Don't inherit or default
9727 to_set_trace_notes.
9728 * target.h (struct target_ops) <to_set_trace_notes>: Use
9729 TARGET_DEFAULT_RETURN.
9730
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target-delegates.c: Rebuild.
9734 * target.c (update_current_target): Don't initialize
9735 to_set_trace_buffer_size.
9736 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9737 TARGET_DEFAULT_IGNORE.
9738
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target-delegates.c: Rebuild.
9742 * target.c (update_current_target): Don't inherit or default
9743 to_set_circular_trace_buffer.
9744 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9745 TARGET_DEFAULT_IGNORE.
9746
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9748
9749 * target-delegates.c: Rebuild.
9750 * target.c (update_current_target): Don't inherit or default
9751 to_set_disconnected_tracing.
9752 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9753 TARGET_DEFAULT_IGNORE.
9754
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9756
9757 * target-delegates.c: Rebuild.
9758 * target.c (update_current_target): Don't inherit or default
9759 to_get_min_fast_tracepoint_insn_len.
9760 (return_minus_one): Remove.
9761 * target.h (struct target_ops)
9762 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9763
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target-delegates.c: Rebuild.
9767 * target.c (update_current_target): Don't inherit or default
9768 to_get_raw_trace_data.
9769 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9770 TARGET_DEFAULT_NORETURN.
9771
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target-delegates.c: Rebuild.
9775 * target.c (update_current_target): Don't inherit or default
9776 to_upload_trace_state_variables.
9777 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9778 Use TARGET_DEFAULT_RETURN.
9779
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target-delegates.c: Rebuild.
9783 * target.c (update_current_target): Don't inherit or default
9784 to_upload_tracepoints.
9785 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9786 TARGET_DEFAULT_RETURN.
9787
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target-delegates.c: Rebuild.
9791 * target.c (update_current_target): Don't inherit or default
9792 to_save_trace_data.
9793 * target.h (struct target_ops) <to_save_trace_data>: Use
9794 TARGET_DEFAULT_NORETURN.
9795
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target-delegates.c: Rebuild.
9799 * target.c (update_current_target): Don't inherit or default
9800 to_get_trace_state_variable_value.
9801 * target.h (struct target_ops)
9802 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9803
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9805
9806 * target-delegates.c: Rebuild.
9807 * target.c (update_current_target): Don't inherit or default
9808 to_trace_find.
9809 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9810
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9812
9813 * target-delegates.c: Rebuild.
9814 * target.c (update_current_target): Don't inherit or default
9815 to_trace_stop.
9816 * target.h (struct target_ops) <to_trace_stop>: Use
9817 TARGET_DEFAULT_NORETURN.
9818
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9820
9821 * target-delegates.c: Rebuild.
9822 * target.c (update_current_target): Don't inherit or default
9823 to_get_tracepoint_status.
9824 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9825 TARGET_DEFAULT_NORETURN.
9826
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9828
9829 * target-delegates.c: Rebuild.
9830 * target.c (update_current_target): Don't inherit or default
9831 to_get_trace_status.
9832 * target.h (struct target_ops) <to_get_trace_status>: Use
9833 TARGET_DEFAULT_RETURN.
9834
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target-delegates.c: Rebuild.
9838 * target.c (update_current_target): Don't inherit or default
9839 to_trace_start.
9840 * target.h (struct target_ops) <to_trace_start>: Use
9841 TARGET_DEFAULT_NORETURN.
9842
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9844
9845 * target-delegates.c: Rebuild.
9846 * target.c (update_current_target): Don't inherit or default
9847 to_trace_set_readonly_regions.
9848 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9849 Use TARGET_DEFAULT_NORETURN.
9850
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target-delegates.c: Rebuild.
9854 * target.c (update_current_target): Don't inherit or default
9855 to_disable_tracepoint.
9856 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9857 TARGET_DEFAULT_NORETURN.
9858
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9860
9861 * target-delegates.c: Rebuild.
9862 * target.c (update_current_target): Don't inherit or default
9863 to_enable_tracepoint.
9864 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9865 TARGET_DEFAULT_NORETURN.
9866
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9868
9869 * target-delegates.c: Rebuild.
9870 * target.c (update_current_target): Don't inherit or default
9871 to_download_trace_state_variable.
9872 * target.h (struct target_ops) <to_download_trace_state_variable>:
9873 Use TARGET_DEFAULT_NORETURN.
9874
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target-delegates.c: Rebuild.
9878 * target.c (update_current_target): Don't inherit or default
9879 to_can_download_tracepoint.
9880 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9881 TARGET_DEFAULT_RETURN.
9882
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * target-delegates.c: Rebuild.
9886 * target.c (update_current_target): Don't inherit or default
9887 to_download_tracepoint.
9888 * target.h (struct target_ops) <to_download_tracepoint>: Use
9889 TARGET_DEFAULT_NORETURN.
9890
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * target-delegates.c: Rebuild.
9894 * target.c (update_current_target): Don't inherit or default
9895 to_trace_init.
9896 * target.h (struct target_ops) <to_trace_init>: Use
9897 TARGET_DEFAULT_RETURN.
9898
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9900
9901 * target-delegates.c: Rebuild.
9902 * target.c (update_current_target): Don't inherit or default
9903 to_supports_string_tracing.
9904 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9905 TARGET_DEFAULT_RETURN.
9906
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9908
9909 * target-delegates.c: Rebuild.
9910 * target.c (update_current_target): Don't inherit or default
9911 to_supports_enable_disable_tracepoint.
9912 * target.h (struct target_ops)
9913 <to_supports_enable_disable_tracepoint>: Use
9914 TARGET_DEFAULT_RETURN.
9915
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9917
9918 * target-delegates.c: Rebuild.
9919 * target.c (update_current_target): Don't inherit or default
9920 to_supports_multi_process.
9921 * target.h (struct target_ops) <to_supports_multi_process>: Use
9922 TARGET_DEFAULT_RETURN.
9923
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9925
9926 * target-delegates.c: Rebuild.
9927 * target.c (update_current_target): Don't inherit or default
9928 to_get_ada_task_ptid.
9929 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9930 TARGET_DEFAULT_FUNC.
9931
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target-delegates.c: Rebuild.
9935 * target.c (update_current_target): Don't inherit or default
9936 to_thread_architecture.
9937 * target.h (struct target_ops) <to_thread_architecture>: Use
9938 TARGET_DEFAULT_FUNC.
9939
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target-delegates.c: Rebuild.
9943 * target.c (update_current_target): Don't inherit or default
9944 to_execution_direction.
9945 * target.h (struct target_ops) <to_execution_direction>: Use
9946 TARGET_DEFAULT_FUNC.
9947
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9949
9950 * target-delegates.c: Rebuild.
9951 * target.c (update_current_target): Don't inherit or default
9952 to_can_execute_reverse.
9953 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9954 TARGET_DEFAULT_RETURN.
9955 (target_can_execute_reverse): Unconditionally delegate.
9956
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9958
9959 * target-delegates.c: Rebuild.
9960 * target.c (update_current_target): Don't inherit or default
9961 to_goto_bookmark.
9962 (dummy_goto_bookmark): Remove.
9963 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9964 * target.h (struct target_ops) <to_goto_bookmark>: Use
9965 TARGET_DEFAULT_NORETURN.
9966
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target-delegates.c: Rebuild.
9970 * target.c (update_current_target): Don't inherit or default
9971 to_get_bookmark.
9972 (dummy_get_bookmark): Remove.
9973 (init_dummy_target): Don't inherit or default to_get_bookmark.
9974 * target.h (struct target_ops) <to_get_bookmark>: Use
9975 TARGET_DEFAULT_NORETURN
9976
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target-delegates.c: Rebuild.
9980 * target.c (update_current_target): Don't inherit or default
9981 to_make_corefile_notes.
9982 (init_dummy_target): Don't initialize to_make_corefile_notes.
9983 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9984 TARGET_DEFAULT_FUNC.
9985
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9987
9988 * target-delegates.c: Rebuild.
9989 * target.c (update_current_target): Don't inherit or default
9990 to_find_memory_regions.
9991 (init_dummy_target): Don't initialize to_find_memory_regions.
9992 * target.h (struct target_ops) <to_find_memory_regions>: Use
9993 TARGET_DEFAULT_FUNC.
9994
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target-delegates.c: Rebuild.
9998 * target.c (update_current_target): Don't inherit or default
9999 to_log_command.
10000 * target.h (struct target_ops) <to_log_command>: Use
10001 TARGET_DEFAULT_IGNORE.
10002 (target_log_command): Unconditionally delegate.
10003
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * target-delegates.c: Rebuild.
10007 * target.c (update_current_target): Don't inherit or default
10008 to_pid_to_exec_file.
10009 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10010 TARGET_DEFAULT_RETURN.
10011
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10013
10014 * target-delegates.c: Rebuild.
10015 * target.c (update_current_target): Don't inherit or default
10016 to_thread_name.
10017 (target_thread_name): Unconditionally delegate.
10018 * target.h (struct target_ops) <to_thread_name>: Use
10019 TARGET_DEFAULT_RETURN.
10020
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 * target-delegates.c: Rebuild.
10024 * target.c (update_current_target): Don't inherit or default
10025 to_extra_thread_info.
10026 * target.h (struct target_ops) <to_extra_thread_info>: Use
10027 TARGET_DEFAULT_RETURN.
10028
10029 2014-02-19 Tom Tromey <tromey@redhat.com>
10030
10031 * target-delegates.c: Rebuild.
10032 * target.c (update_current_target): Don't inherit or default
10033 to_has_exited.
10034 * target.h (struct target_ops) <to_has_exited>: Use
10035 TARGET_DEFAULT_RETURN..
10036
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10038
10039 * target-delegates.c: Rebuild.
10040 * target.c (update_current_target): Don't inherit or default
10041 to_set_syscall_catchpoint.
10042 (return_one): Remove.
10043 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10044 TARGET_DEFAULT_RETURN.
10045
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * target-delegates.c: Rebuild.
10049 * target.c (update_current_target): Don't inherit or default
10050 to_insert_exec_catchpoint.
10051 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10052 TARGET_DEFAULT_RETURN.
10053
10054 2014-01-08 Tom Tromey <tromey@redhat.com>
10055
10056 * target-delegates.c: Rebuild.
10057 * target.c (update_current_target): Don't inherit or default
10058 to_insert_exec_catchpoint.
10059 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10060 TARGET_DEFAULT_RETURN.
10061
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target-delegates.c: Rebuild.
10065 * target.c (update_current_target): Don't inherit or default
10066 to_remove_vfork_catchpoint.
10067 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10068 TARGET_DEFAULT_RETURN.
10069
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target-delegates.c: Rebuild.
10073 * target.c (update_current_target): Don't inherit or default
10074 to_insert_vfork_catchpoint.
10075 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10076 TARGET_DEFAULT_RETURN.
10077
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10079
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10082 to_remove_fork_catchpoint.
10083 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10084 TARGET_DEFAULT_RETURN.
10085
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target-delegates.c: Rebuild.
10089 * target.c (update_current_target): Don't inherit or default
10090 to_insert_fork_catchpoint.
10091 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10092 TARGET_DEFAULT_RETURN.
10093
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10098 to_post_startup_inferior.
10099 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10100 TARGET_DEFAULT_IGNORE.
10101
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * target-delegates.c: Rebuild.
10105 * target.c (update_current_target): Don't inherit or default
10106 to_load.
10107 * target.h (struct target_ops) <to_load>: Use
10108 TARGET_DEFAULT_NORETURN.
10109
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (update_current_target): Don't inherit or default
10114 to_terminal_info.
10115 * target.h (struct target_ops) <to_terminal_info>: Use
10116 TARGET_DEFAULT_FUNC.
10117
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target-delegates.c: Rebuild.
10121 * target.c (update_current_target): Don't inherit or default
10122 to_terminal_save_ours.
10123 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10124 TARGET_DEFAULT_IGNORE.
10125
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target-delegates.c: Rebuild.
10129 * target.c (update_current_target): Don't inherit or default
10130 to_terminal_ours.
10131 * target.h (struct target_ops) <to_terminal_ours>: Use
10132 TARGET_DEFAULT_IGNORE.
10133
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10135
10136 * target-delegates.c: Rebuild.
10137 * target.c (update_current_target): Don't inherit or default
10138 to_terminal_ours_for_output.
10139 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10140 TARGET_DEFAULT_IGNORE.
10141
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10143
10144 * target-delegates.c: Rebuild.
10145 * target.c (update_current_target): Don't inherit or default
10146 to_terminal_inferior.
10147 * target.h (struct target_ops) <to_terminal_inferior>: Use
10148 TARGET_DEFAULT_IGNORE.
10149
10150 2014-02-19 Tom Tromey <tromey@redhat.com>
10151
10152 * target-delegates.c: Rebuild.
10153 * target.c (update_current_target): Don't inherit or default
10154 to_terminal_init.
10155 * target.h (struct target_ops) <to_terminal_init>: Use
10156 TARGET_DEFAULT_IGNORE.
10157
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10159
10160 * target-delegates.c: Rebuild.
10161 * target.c (update_current_target): Don't inherit or default
10162 to_can_accel_watchpoint_condition.
10163 * target.h (struct target_ops)
10164 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10165
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * target-delegates.c: Rebuild.
10169 * target.c (update_current_target): Don't inherit or default
10170 to_region_ok_for_hw_watchpoint.
10171 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10172 Use TARGET_DEFAULT_FUNC.
10173
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * target-delegates.c: Rebuild.
10177 * target.c (update_current_target): Don't inherit or default
10178 to_watchpoint_addr_within_range.
10179 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10180 Use TARGET_DEFAULT_FUNC.
10181
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target-delegates.c: Rebuild.
10185 * target.c (update_current_target): Don't inherit or default
10186 to_remove_watchpoint.
10187 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10188 TARGET_DEFAULT_NORETURN.
10189
10190 2014-02-19 Tom Tromey <tromey@redhat.com>
10191
10192 * target-delegates.c: Rebuild.
10193 * target.c (update_current_target): Don't inherit or default
10194 to_insert_watchpoint.
10195 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10196 TARGET_DEFAULT_RETURN.
10197
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10199
10200 * target-delegates.c: Rebuild.
10201 * target.c (update_current_target): Don't inherit or default
10202 to_remove_hw_breakpoint.
10203 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10204 TARGET_DEFAULT_RETURN.
10205
10206 2014-02-19 Tom Tromey <tromey@redhat.com>
10207
10208 * target-delegates.c: Rebuild.
10209 * target.c (update_current_target): Don't inherit or default
10210 to_insert_hw_breakpoint.
10211 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10212 TARGET_DEFAULT_RETURN.
10213
10214 2014-02-19 Tom Tromey <tromey@redhat.com>
10215
10216 * target-delegates.c: Rebuild.
10217 * target.c (update_current_target): Don't inherit or default
10218 to_can_use_hw_breakpoint.
10219 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10220 TARGET_DEFAULT_RETURN.
10221
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target-delegates.c: Rebuild.
10225 * target.c (update_current_target): Don't inherit or default
10226 to_files_info.
10227 * target.h (struct target_ops) <to_files_info>: Use
10228 TARGET_DEFAULT_IGNORE.
10229
10230 2014-02-19 Tom Tromey <tromey@redhat.com>
10231
10232 * target-delegates.c: Rebuild.
10233 * target.c (update_current_target): Don't inherit or default
10234 to_store.
10235 * target.h (struct target_ops) <to_store>: Use
10236 TARGET_DEFAULT_NORETURN.
10237
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10239
10240 * target-delegates.c: Rebuild.
10241 * target.c (update_current_target): Don't inherit or default
10242 to_post_attach.
10243 * target.h (struct target_ops) <to_post_attach>: Use
10244 TARGET_DEFAULT_IGNORE.
10245
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target-delegates.c: Rebuild.
10249 * target.c (update_current_target): Don't inherit or default
10250 to_rcmd.
10251 (default_rcmd): New function.
10252 (do_monitor_command): Unconditionally delegate.
10253 * target.h (struct target_ops) <to_rmcd>: Use
10254 TARGET_DEFAULT_FUNC.
10255
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10257
10258 * target-delegates.c: Rebuild.
10259 * target.c (init_dummy_target): Don't initialize to_attach.
10260 (target_attach): Unconditionally delegate.
10261 * target.h (struct target_ops) <to_attach>: Use
10262 TARGET_DEFAULT_FUNC.
10263
10264 2014-02-19 Tom Tromey <tromey@redhat.com>
10265
10266 * target-delegates.c: Rebuild.
10267 * target.c (target_detach): Unconditionally delegate.
10268 (init_dummy_target): Don't initialize to_detach.
10269 * target.h (struct target_ops) <to_detach>: Use
10270 TARGET_DEFAULT_IGNORE.
10271
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10273
10274 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10275 Add argument.
10276 (target_augmented_libraries_svr4_read): Add argument.
10277 * target.c (update_current_target): Update.
10278 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10279 argument.
10280
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10282
10283 * target.h (struct target_ops) <to_call_history_range>: Add
10284 argument.
10285 * target.c (target_call_history_range): Add argument.
10286 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10287 argument.
10288 (record_btrace_call_history_from): Update.
10289
10290 2014-02-19 Tom Tromey <tromey@redhat.com>
10291
10292 * target.h (struct target_ops) <to_call_history_from>: Add
10293 argument.
10294 * target.c (target_call_history_from): Add argument.
10295 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10296 argument.
10297
10298 2014-02-19 Tom Tromey <tromey@redhat.com>
10299
10300 * target.h (struct target_ops) <to_call_history>: Add argument.
10301 * target.c (target_call_history): Add argument.
10302 * record-btrace.c (record_btrace_call_history): Add 'self'
10303 argument.
10304
10305 2014-02-19 Tom Tromey <tromey@redhat.com>
10306
10307 * target.h (struct target_ops) <to_insn_history_range>: Add
10308 argument.
10309 * target.c (target_insn_history_range): Add argument.
10310 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10311 argument.
10312 (record_btrace_insn_history_from): Update.
10313
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target.h (struct target_ops) <to_insn_history_from>: Add
10317 argument.
10318 * target.c (target_insn_history_from): Add argument.
10319 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10320 argument.
10321
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target.h (struct target_ops) <to_insn_history>: Add argument.
10325 * target.c (target_insn_history): Add argument.
10326 * record-btrace.c (record_btrace_insn_history): Add 'self'
10327 argument.
10328
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target.h (struct target_ops) <to_goto_record>: Add argument.
10332 * target.c (target_goto_record): Add argument.
10333 * record-full.c (record_full_goto): Add 'self' argument.
10334 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10335
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10337
10338 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10339 * target.c (target_goto_record_end): Add argument.
10340 * record-full.c (record_full_goto_end): Add 'self' argument.
10341 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10342
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * target.h (struct target_ops) <to_goto_record_begin>: Add
10346 argument.
10347 * target.c (target_goto_record_begin): Add argument.
10348 * record-full.c (record_full_goto_begin): Add 'self' argument.
10349 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10350 argument.
10351
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10353
10354 * target.h (struct target_ops) <to_record_is_replaying>: Add
10355 argument.
10356 * target.c (target_record_is_replaying): Add argument.
10357 * record-full.c (record_full_is_replaying): Add 'self' argument.
10358 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10359 argument.
10360 (record_btrace_xfer_partial, record_btrace_store_registers)
10361 (record_btrace_prepare_to_store, record_btrace_resume)
10362 (record_btrace_wait, record_btrace_decr_pc_after_break)
10363 (record_btrace_find_new_threads, record_btrace_thread_alive):
10364 Update.
10365
10366 2014-02-19 Tom Tromey <tromey@redhat.com>
10367
10368 * target.h (struct target_ops) <to_delete_record>: Add argument.
10369 * target.c (target_delete_record): Add argument.
10370 * record-full.c (record_full_delete): Add 'self' argument.
10371
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10373
10374 * target.h (struct target_ops) <to_save_record>: Add argument.
10375 * target.c (target_save_record): Add argument.
10376 * record-full.c (record_full_save): Add 'self' argument.
10377 (record_full_save): Add 'self' argument.
10378
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10380
10381 * target.h (struct target_ops) <to_info_record>: Add argument.
10382 * target.c (target_info_record): Add argument.
10383 * record.c (info_record_command): Add argument.
10384 * record-full.c (record_full_info): Add 'self' argument.
10385 * record-btrace.c (record_btrace_info): Add 'self' argument.
10386
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10388
10389 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10390 * target.c (target_stop_recording): Add argument.
10391 * record.c (record_stop): Add argument.
10392 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10393 argument.
10394
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10398 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10399 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10400 argument.
10401 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10402 (_initialize_amd64_linux_nat): Use it.
10403 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10404 (_initialize_i386_linux_nat): Use it.
10405
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10407
10408 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10409 * target.c (target_teardown_btrace): Add argument.
10410 * remote.c (remote_teardown_btrace): Add 'self' argument.
10411 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10412 argument.
10413 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10414 argument.
10415
10416 2014-02-19 Tom Tromey <tromey@redhat.com>
10417
10418 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10419 * target.c (target_disable_btrace): Add argument.
10420 * remote.c (remote_disable_btrace): Add 'self' argument.
10421 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10422 argument.
10423 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10424 argument.
10425
10426 2014-02-19 Tom Tromey <tromey@redhat.com>
10427
10428 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10429 * target.c (target_enable_btrace): Add argument.
10430 * remote.c (remote_enable_btrace): Add 'self' argument.
10431 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10432 argument.
10433 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10434 argument.
10435
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10439 (target_can_use_agent): Add argument.
10440 * target.c (update_current_target): Update.
10441 * remote.c (remote_can_use_agent): Add 'self' argument.
10442 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10443
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10445
10446 * target.h (struct target_ops) <to_use_agent>: Add argument.
10447 (target_use_agent): Add argument.
10448 * target.c (update_current_target): Update.
10449 * remote.c (remote_use_agent): Add 'self' argument.
10450 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10451
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10455 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10456 (target_traceframe_info): Add argument.
10457 * target.c (update_current_target): Update.
10458 * remote.c (remote_traceframe_info): Add 'self' argument.
10459 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10460
10461 2014-02-19 Tom Tromey <tromey@redhat.com>
10462
10463 * target.h (target_static_tracepoint_markers_by_strid): Add
10464 argument.
10465 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10466 'self' argument.
10467 * target.c (update_current_target): Update.
10468 * remote.c (struct target_ops)
10469 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10470 * linux-nat.c (struct target_ops)
10471 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10472
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10476 Add argument.
10477 (target_static_tracepoint_marker_at): Add argument.
10478 * target.c (update_current_target): Update.
10479 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10480 argument.
10481
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10483
10484 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10485 (target_set_permissions): Add argument.
10486 * target.c (update_current_target): Update.
10487 * remote.c (remote_set_permissions): Add 'self' argument.
10488 (remote_start_remote): Update.
10489
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10493 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10494 (target_get_tib_address): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_get_tib_address): Add 'self' argument.
10497
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10501 (target_set_trace_notes): Add argument.
10502 * target.c (update_current_target): Update.
10503 * remote.c (remote_set_trace_notes): Add 'self' argument.
10504
10505 2014-02-19 Tom Tromey <tromey@redhat.com>
10506
10507 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10508 argument.
10509 (target_set_trace_buffer_size): Add argument.
10510 * target.c (update_current_target): Update.
10511 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10512
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10514
10515 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10516 argument.
10517 (target_set_circular_trace_buffer): Add argument.
10518 * target.c (update_current_target): Update.
10519 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10520 argument.
10521
10522 2014-02-19 Tom Tromey <tromey@redhat.com>
10523
10524 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10525 argument.
10526 (target_set_disconnected_tracing): Add argument.
10527 * target.c (update_current_target): Update.
10528 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10529
10530 2014-02-19 Tom Tromey <tromey@redhat.com>
10531
10532 * target.h (struct target_ops)
10533 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10534 (target_get_min_fast_tracepoint_insn_len): Add argument.
10535 * target.c (update_current_target): Update.
10536 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10537 argument.
10538
10539 2014-02-19 Tom Tromey <tromey@redhat.com>
10540
10541 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10542 argument.
10543 (target_get_raw_trace_data): Add argument.
10544 * target.c (update_current_target): Update.
10545 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10546
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10548
10549 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10550 Add argument.
10551 (target_upload_trace_state_variables): Add argument.
10552 * target.c (update_current_target): Update.
10553 * remote.c (remote_upload_trace_state_variables): Add 'self'
10554 argument.
10555 (remote_start_remote): Update.
10556
10557 2014-02-19 Tom Tromey <tromey@redhat.com>
10558
10559 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10560 argument.
10561 (target_upload_tracepoints): Add argument.
10562 * target.c (update_current_target): Update.
10563 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10564 (remote_start_remote): Update.
10565
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10569 (target_save_trace_data): Add argument.
10570 * target.c (update_current_target): Update.
10571 * remote.c (remote_save_trace_data): Add 'self' argument.
10572
10573 2014-02-19 Tom Tromey <tromey@redhat.com>
10574
10575 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10576 argument.
10577 * target.h (struct target_ops)
10578 <to_get_trace_state_variable_value>: Add argument.
10579 (target_get_trace_state_variable_value): Add argument.
10580 * target.c (update_current_target): Update.
10581 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10582 argument.
10583 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10584
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10586
10587 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10588 * target.h (struct target_ops) <to_trace_find>: Add argument.
10589 (target_trace_find): Add argument.
10590 * target.c (update_current_target): Update.
10591 * remote.c (remote_trace_find): Add 'self' argument.
10592 * ctf.c (ctf_trace_find): Add 'self' argument.
10593
10594 2014-02-19 Tom Tromey <tromey@redhat.com>
10595
10596 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10597 (target_trace_stop): Add argument.
10598 * target.c (update_current_target): Update.
10599 * remote.c (remote_trace_stop): Add 'self' argument.
10600
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10602
10603 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10604 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10605 argument.
10606 (target_get_tracepoint_status): Add argument.
10607 * target.c (update_current_target): Update.
10608 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10609
10610 2014-02-19 Tom Tromey <tromey@redhat.com>
10611
10612 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10613 * target.h (struct target_ops) <to_get_trace_status>: Add
10614 argument.
10615 (target_get_trace_status): Add argument.
10616 * target.c (update_current_target): Update.
10617 * remote.c (remote_get_trace_status): Add 'self' argument.
10618 (remote_start_remote, remote_can_download_tracepoint): Update.
10619 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10620
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10622
10623 * target.h (struct target_ops) <to_trace_start>: Add argument.
10624 (target_trace_start): Add argument.
10625 * target.c (update_current_target): Update.
10626 * remote.c (remote_trace_start): Add 'self' argument.
10627
10628 2014-02-19 Tom Tromey <tromey@redhat.com>
10629
10630 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10631 Add argument.
10632 (target_trace_set_readonly_regions): Add argument.
10633 * target.c (update_current_target): Update.
10634 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10635 argument.
10636
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10638
10639 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10640 argument.
10641 (target_disable_tracepoint): Add argument.
10642 * target.c (update_current_target): Update.
10643 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10644
10645 2014-02-19 Tom Tromey <tromey@redhat.com>
10646
10647 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10648 argument.
10649 (target_enable_tracepoint): Add argument.
10650 * target.c (update_current_target): Update.
10651 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10652
10653 2014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * target.h (struct target_ops) <to_download_trace_state_variable>:
10656 Add argument.
10657 (target_download_trace_state_variable): Add argument.
10658 * target.c (update_current_target): Update.
10659 * remote.c (remote_download_trace_state_variable): Add 'self'
10660 argument.
10661
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10665 argument.
10666 (target_can_download_tracepoint): Add argument.
10667 * target.c (update_current_target): Update.
10668 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10669
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10671
10672 * target.h (struct target_ops) <to_download_tracepoint>: Add
10673 argument.
10674 (target_download_tracepoint): Add argument.
10675 * target.c (update_current_target): Update.
10676 * remote.c (remote_download_tracepoint): Add 'self' argument.
10677
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * target.h (struct target_ops) <to_trace_init>: Add argument.
10681 (target_trace_init): Add argument.
10682 * target.c (update_current_target): Update.
10683 * remote.c (remote_trace_init): Add 'self' argument.
10684
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10686
10687 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10688 * target.c (target_fileio_readlink): Add argument.
10689 * remote.c (remote_hostio_readlink): Add 'self' argument.
10690 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10691
10692 2014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10695 * target.c (target_fileio_unlink): Add argument.
10696 * remote.c (remote_hostio_unlink): Add 'self' argument.
10697 (remote_file_delete): Update.
10698 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10699
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10701
10702 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10703 * target.c (target_fileio_close): Add argument.
10704 * remote.c (remote_hostio_close): Add 'self' argument.
10705 (remote_hostio_close_cleanup): Update.
10706 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10707 Update.
10708 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10709
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10713 * target.c (target_fileio_pread): Add argument.
10714 * remote.c (remote_hostio_pread): Add 'self' argument.
10715 (remote_bfd_iovec_pread, remote_file_get): Update.
10716 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10717
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10721 * target.c (target_fileio_pwrite): Add argument.
10722 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10723 (remote_file_put): Update.
10724 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10725
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10729 * target.c (target_fileio_open): Add argument.
10730 * remote.c (remote_hostio_open): Add 'self' argument.
10731 (remote_bfd_iovec_open): Add 'self' argument.
10732 (remote_file_put): Add 'self' argument.
10733 (remote_file_get): Add 'self' argument.
10734 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10735
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10739 Add argument.
10740 (target_can_run_breakpoint_commands): Add argument.
10741 * target.c (update_current_target): Update.
10742 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10743 argument.
10744 (remote_insert_breakpoint): Add 'self' argument.
10745 (remote_insert_hw_breakpoint): Add 'self' argument.
10746 (remote_can_run_breakpoint_commands): Add 'self' argument.
10747
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target.h (struct target_ops)
10751 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10752 (target_supports_evaluation_of_breakpoint_conditions): Add
10753 argument.
10754 * target.c (update_current_target): Update.
10755 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10756 argument.
10757 (remote_insert_breakpoint): Add 'self' argument.
10758 (remote_insert_hw_breakpoint): Add 'self' argument.
10759 (remote_supports_cond_breakpoints): Add 'self' argument.
10760
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10762
10763 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10764 argument.
10765 (target_supports_string_tracing): Add argument.
10766 * target.c (update_current_target): Update.
10767 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10768
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10770
10771 * target.h (struct target_ops)
10772 <to_supports_disable_randomization>: Add argument.
10773 * target.c (find_default_supports_disable_randomization): Add
10774 argument.
10775 (target_supports_disable_randomization): Add argument.
10776 (find_default_supports_disable_randomization): Add 'self'
10777 argument.
10778 * remote.c (extended_remote_supports_disable_randomization): Add
10779 'self' argument.
10780 (remote_supports_disable_randomization): Add 'self' argument.
10781 (extended_remote_create_inferior): Update.
10782 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10783 'self' argument.
10784
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10786
10787 * target.h (struct target_ops)
10788 <to_supports_enable_disable_tracepoint>: Add argument.
10789 (target_supports_enable_disable_tracepoint): Add argument.
10790 * target.c (update_current_target): Update.
10791 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10792 argument.
10793
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10795
10796 * target.h (struct target_ops) <to_supports_multi_process>: Add
10797 argument.
10798 (target_supports_multi_process): Add argument.
10799 * target.c (update_current_target): Update.
10800 * remote.c (remote_supports_multi_process): Add 'self' argument.
10801 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10802 argument.
10803 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10804 argument.
10805
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * target.h (struct target_ops) <to_execution_direction>: Add
10809 argument.
10810 (target_execution_direction): Add argument.
10811 * target.c (default_execution_direction): Add 'self' argument.
10812 * record-full.c (record_full_execution_direction): Add 'self'
10813 argument.
10814
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10816
10817 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10818 argument.
10819 (target_can_execute_reverse): Add argument.
10820 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10821 * record-full.c (record_full_can_execute_reverse): Add 'self'
10822 argument.
10823 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10824 argument.
10825
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10829 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10830 argument.
10831 (target_get_ada_task_ptid): Add argument.
10832 * target.c (update_current_target): Update.
10833 (default_get_ada_task_ptid): Add 'self' argument.
10834 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10835 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10836 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10837 argument.
10838 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10839 argument.
10840 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10841 argument.
10842 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10843 argument.
10844 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10845 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10846 argument.
10847
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10851 (target_goto_bookmark): Add argument.
10852 * target.c (dummy_goto_bookmark): Add 'self' argument.
10853 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10854
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10856
10857 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10858 (target_get_bookmark): Add argument.
10859 * target.c (dummy_get_bookmark): Add 'self' argument.
10860 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10861
10862 2014-02-19 Tom Tromey <tromey@redhat.com>
10863
10864 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10865 argument.
10866 (target_make_corefile_notes): Add argument.
10867 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10868 * procfs.c (procfs_make_note_section): Add 'self' argument.
10869 (procfs_make_note_section): Add 'self' argument.
10870 (procfs_make_note_section): Add 'self' argument.
10871 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10872 argument.
10873 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10874 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10875 * exec.c (exec_make_note_section): Add 'self' argument.
10876 (exec_make_note_section): Add 'self' argument.
10877
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * target.h (struct target_ops) <to_find_memory_regions>: Add
10881 argument.
10882 (target_find_memory_regions): Add argument.
10883 * target.c (dummy_find_memory_regions): Add 'self' argument.
10884 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10885 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10886 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10887 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10888 * exec. (exec_do_find_memory_regions): New global.
10889 (exec_set_find_memory_regions): Rewrite.
10890 (exec_find_memory_regions): New function.
10891 (init_exec_ops): Use exec_find_memory_regions.
10892
10893 2014-02-19 Tom Tromey <tromey@redhat.com>
10894
10895 * target.h (struct target_ops) <to_supports_non_stop>: Add
10896 argument.
10897 * target.c (find_default_supports_non_stop): Add argument.
10898 (target_supports_non_stop): Add argument.
10899 (find_default_supports_non_stop): Add 'self' argument.
10900 * remote.c (remote_supports_non_stop): Add 'self' argument.
10901 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10902
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10904
10905 * target.h (struct target_ops) <to_log_command>: Add argument.
10906 (target_log_command): Add argument.
10907 * serial.h (serial_log_command): Add 'self' argument.
10908 * serial.c (serial_log_command): Add 'self' argument.
10909
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10913 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10914 argument.
10915 (target_pid_to_exec_file): Add argument.
10916 * target.c (debug_to_pid_to_exec_file): Add argument.
10917 (update_current_target): Update.
10918 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10919 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10920 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10921 (linux_handle_extended_wait): Update.
10922 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10923 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10924 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10925 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10926
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10928
10929 * target.h (struct target_ops) <to_rcmd>: Add argument.
10930 (target_rcmd): Add argument.
10931 * target.c (debug_to_rcmd): Add argument.
10932 (update_current_target, do_monitor_command): Update.
10933 * remote.c (remote_rcmd): Add 'self' argument.
10934 * monitor.c (monitor_rcmd): Add 'self' argument.
10935
10936 2014-02-19 Tom Tromey <tromey@redhat.com>
10937
10938 * windows-nat.c (windows_stop): Add 'self' argument.
10939 * target.h (struct target_ops) <to_stop>: Add argument.
10940 * target.c (target_stop): Add argument.
10941 (debug_to_stop): Add argument.
10942 (update_current_target): Update.
10943 * remote.c (remote_stop): Add 'self' argument.
10944 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10945 (gdbsim_cntrl_c): Update.
10946 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10947 * procfs.c (procfs_stop): Add 'self' argument.
10948 * nto-procfs.c (procfs_stop): Add 'self' argument.
10949 * monitor.c (monitor_stop): Add 'self' argument.
10950 (monitor_open): Update.
10951 * linux-nat.c (linux_nat_stop): Add argument.
10952 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10953 * gnu-nat.c (gnu_stop): Add 'self' argument.
10954 * darwin-nat.c (darwin_stop): Add 'self' argument.
10955
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10957
10958 * target.h (struct target_ops) <to_thread_name>: Add argument.
10959 * target.c (target_thread_name): Add argument.
10960 (update_current_target): Update.
10961 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10962
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10964
10965 * target.h (struct target_ops) <to_extra_thread_info>: Add
10966 argument.
10967 (target_extra_thread_info): Add argument.
10968 * target.c (update_current_target): Update.
10969 * remote.c (remote_threads_extra_info): Add 'self' argument.
10970 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10971 argument.
10972 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10973 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10974 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10975 argument.
10976 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10977 argument.
10978 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10979 argument.
10980 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10981 argument.
10982
10983 2014-02-19 Tom Tromey <tromey@redhat.com>
10984
10985 * target.h (struct target_ops) <to_program_signals>: Add argument.
10986 * target.c (target_program_signals): Add argument.
10987 * remote.c (remote_program_signals): Add 'self' argument.
10988
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10992 * target.c (target_pass_signals): Add argument.
10993 * remote.c (remote_pass_signals): Add 'self' argument.
10994 (remote_start_remote): Update.
10995 * procfs.c (procfs_pass_signals): Add 'self' argument.
10996 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10997 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10998 (linux_nat_create_inferior, linux_nat_attach): Update.
10999
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * windows-nat.c (windows_can_run): Add 'self' argument.
11003 * target.h (struct target_ops) <to_can_run>: Add argument.
11004 (target_can_run): Add argument.
11005 * target.c (debug_to_can_run): Add argument.
11006 (update_current_target): Update.
11007 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11008 * inf-child.c (inf_child_can_run): Add 'self' argument.
11009 * go32-nat.c (go32_can_run): Add 'self' argument.
11010
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * target.h (struct target_ops) <to_has_exited>: Add argument.
11014 (target_has_exited): Add argument.
11015 * target.c (debug_to_has_exited): Add argument.
11016 (update_current_target): Update.
11017
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11021 argument.
11022 (target_set_syscall_catchpoint): Add argument.
11023 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11024 argument.
11025 * target.c (update_current_target): Update.
11026
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11028
11029 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11030 argument.
11031 (target_remove_exec_catchpoint): Add argument.
11032 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11033 (update_current_target): Update.
11034 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11035 argument.
11036
11037 2014-02-19 Tom Tromey <tromey@redhat.com>
11038
11039 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11040 argument.
11041 (target_insert_exec_catchpoint): Add argument.
11042 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11043 (update_current_target): Update.
11044 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11045 argument.
11046
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11050 argument.
11051 (target_remove_vfork_catchpoint): Add argument.
11052 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11053 (update_current_target): Update.
11054 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11055 argument.
11056
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11058
11059 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11060 argument.
11061 (target_insert_vfork_catchpoint): Add argument.
11062 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11063 (update_current_target): Update.
11064 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11065 argument.
11066
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11068
11069 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11070 argument.
11071 (target_remove_fork_catchpoint): Add argument.
11072 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11073 (update_current_target): Update.
11074 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11075 argument.
11076
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11078
11079 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11080 argument.
11081 (target_insert_fork_catchpoint): Add argument.
11082 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11083 (update_current_target): Update.
11084 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11085 argument.
11086
11087 2014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11090 argument.
11091 (target_post_startup_inferior): Add argument.
11092 * target.c (debug_to_post_startup_inferior): Add argument.
11093 (update_current_target): Update.
11094 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11095 argument.
11096 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11097 argument.
11098 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11099 argument.
11100 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11101 argument.
11102 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11103 'self' argument.
11104 (super_post_startup_inferior): Likewise.
11105 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11106 'self' argument.
11107 (super_post_startup_inferior): Likewise.
11108 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11109 Add 'self' argument.
11110 (super_post_startup_inferior): Likewise.
11111
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * target.h (struct target_ops) <to_load>: Add argument.
11115 * target.c (target_load): Add argument.
11116 (debug_to_load): Add argument.
11117 (update_current_target): Update.
11118 * remote.c (remote_load): Add 'self' argument.
11119 * remote-sim.c (gdbsim_load): Add 'self' argument.
11120 * remote-mips.c (mips_load): Add 'self' argument.
11121 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11122 * monitor.c (monitor_load): Add 'self' argument.
11123 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11124
11125 2014-02-19 Tom Tromey <tromey@redhat.com>
11126
11127 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11128 (target_terminal_info): Add argument.
11129 * target.c (debug_to_terminal_info): Add argument.
11130 (default_terminal_info): Likewise.
11131 * inflow.c (child_terminal_info): Add 'self' argument.
11132 * inferior.h (child_terminal_info): Add 'self' argument.
11133 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11134
11135 2014-02-19 Tom Tromey <tromey@redhat.com>
11136
11137 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11138 argument.
11139 (target_terminal_save_ours): Add argument.
11140 * target.c (debug_to_terminal_save_ours): Add argument.
11141 (update_current_target): Update.
11142 * inflow.c (terminal_save_ours): Add 'self' argument.
11143 * inferior.h (terminal_save_ours): Add 'self' argument.
11144
11145 2014-02-19 Tom Tromey <tromey@redhat.com>
11146
11147 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11148 (target_terminal_ours): Add argument.
11149 * target.c (debug_to_terminal_ours): Add argument.
11150 (update_current_target): Update.
11151 * remote.c (remote_terminal_ours): Add 'self' argument.
11152 (remote_close): Update.
11153 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11154 * inflow.c (terminal_ours): Add 'self' argument.
11155 * inferior.h (terminal_ours): Add 'self' argument.
11156 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11157
11158 2014-02-19 Pedro Alves <palves@redhat.com>
11159 Tom Tromey <tromey@redhat.com>
11160
11161 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11162 argument.
11163 (target_terminal_ours_for_output): Add argument.
11164 * target.c (debug_to_terminal_ours_for_output): Add argument.
11165 (update_current_target): Update.
11166 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11167 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11168 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11169
11170 2014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target.h (struct target_ops) <to_terminal_inferior>: Add
11173 argument.
11174 * target.c (target_terminal_inferior): Add argument.
11175 (update_current_target): Update.
11176 * remote.c (remote_terminal_inferior): Add 'self' argument.
11177 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11178 * inflow.c (terminal_inferior): Add 'self' argument.
11179 * inferior.h (terminal_inferior): Add 'self' argument.
11180 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11181 (go32_terminal_inferior): Add 'self' argument.
11182
11183 2014-02-19 Tom Tromey <tromey@redhat.com>
11184
11185 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11186 (target_terminal_init): Add argument.
11187 * target.c (debug_to_terminal_init): Add argument.
11188 (update_current_target): Update.
11189 * inflow.c (terminal_init_inferior): Add 'self' argument.
11190 * inferior.h (terminal_init_inferior): Add 'self' argument.
11191 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11192 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11193
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * target.h (struct target_ops)
11197 <to_can_accel_watchpoint_condition>: Add argument.
11198 (target_can_accel_watchpoint_condition): Add argument.
11199 * target.c (debug_to_can_accel_watchpoint_condition): Add
11200 argument.
11201 (update_current_target): Update.
11202 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11203 'self' argument.
11204
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11206
11207 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11208 Add argument.
11209 (target_region_ok_for_hw_watchpoint): Add argument.
11210 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11211 (default_region_ok_for_hw_watchpoint): Add argument.
11212 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11213 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11214 argument.
11215 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11216 argument.
11217 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11218 argument.
11219 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11220 'self' argument.
11221 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11222 'self' argument.
11223 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11224 'self' argument.
11225 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11226 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11227 'self' argument.
11228 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11229 Add 'self' argument.
11230
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11234 argument.
11235 (target_insert_watchpoint): Add argument.
11236 * target.c (debug_to_insert_watchpoint): Add argument.
11237 (update_current_target): Update.
11238 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11239 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11240 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11241 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11242 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11243 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11244 argument.
11245 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11246 (procfs_insert_hw_watchpoint): Add 'self' argument.
11247 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11248 argument.
11249 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11250 argument.
11251 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11252 argument.
11253 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11254 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11255 argument.
11256 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11257 'self' argument.
11258
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11262 argument.
11263 (target_remove_watchpoint): Add argument.
11264 * target.c (debug_to_remove_watchpoint): Add argument.
11265 (update_current_target): Update.
11266 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11267 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11268 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11269 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11270 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11271 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11272 argument.
11273 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11274 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11275 argument.
11276 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11277 argument.
11278 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11279 argument.
11280 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11281 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11282 argument.
11283 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11284 'self' argument.
11285
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11289 argument.
11290 (target_remove_hw_breakpoint): Add argument.
11291 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11292 (update_current_target): Update.
11293 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11294 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11295 argument.
11296 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11297 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11298 argument.
11299 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11300 'self' argument.
11301
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11303
11304 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11305 argument.
11306 (target_insert_hw_breakpoint): Add argument.
11307 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11308 (update_current_target): Update.
11309 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11310 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11311 argument.
11312 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11313 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11314 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11315 argument.
11316 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11317 'self' argument.
11318
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11322 argument.
11323 (target_can_use_hardware_watchpoint): Add argument.
11324 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11325 (update_current_target): Update.
11326 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11327 argument.
11328 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11329 argument.
11330 * remote.c (remote_check_watch_resources): Add 'self' argument.
11331 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11332 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11333 argument.
11334 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11335 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11336 argument.
11337 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11338 argument.
11339 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11340 argument.
11341 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11342 argument.
11343 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11344 argument.
11345 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11346 argument.
11347 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11348 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11349 argument.
11350 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11351 'self' argument.
11352
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target.h (struct target_ops) <to_post_attach>: Add argument.
11356 (target_post_attach): Add argument.
11357 * target.c (debug_to_post_attach): Add argument.
11358 (update_current_target): Update.
11359 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11360 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11361 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11362 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11363 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11364
11365 2014-02-19 Tom Tromey <tromey@redhat.com>
11366
11367 * windows-nat.c (windows_close): Add 'self' argument.
11368 * tracepoint.c (tfile_close): Add 'self' argument.
11369 * target.h (struct target_ops) <to_close>: Add argument.
11370 * target.c (target_close): Add argument.
11371 (update_current_target): Update.
11372 * remote.c (remote_close): Add 'self' argument.
11373 * remote-sim.c (gdbsim_close): Add 'self' argument.
11374 * remote-mips.c (mips_close): Add 'self' argument.
11375 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11376 * record-full.c (record_full_close): Add 'self' argument.
11377 * record-btrace.c (record_btrace_close): Add 'self' argument.
11378 * monitor.h (monitor_close): Add 'self' argument.
11379 * monitor.c (monitor_close): Add 'self' argument.
11380 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11381 * linux-nat.c (linux_nat_close): Add argument.
11382 * go32-nat.c (go32_close): Add 'self' argument.
11383 * exec.c (exec_close_1): Add 'self' argument.
11384 * ctf.c (ctf_close): Add 'self' argument.
11385 * corelow.c (core_close): Add 'self' argument.
11386 (core_close_cleanup): Update.
11387 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11388 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11389
11390 2014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * remote.c (remote_load): New function.
11393 (init_remote_ops): Use it.
11394
11395 2014-02-19 Tom Tromey <tromey@redhat.com>
11396
11397 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11398 argument.
11399 * common/linux-btrace.h (linux_supports_btrace): Update.
11400 * remote.c (remote_supports_btrace): Add "self" argument.
11401 * target-delegates.c: Rebuild.
11402 * target.c (target_supports_btrace): Remove.
11403 * target.h (struct target_ops) <to_supports_btrace>: Add
11404 target_ops argument.
11405 (target_supports_btrace): New define.
11406
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * record-full.c (record_full_beneath_to_resume_ops)
11410 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11411 (record_full_beneath_to_wait)
11412 (record_full_beneath_to_store_registers_ops)
11413 (record_full_beneath_to_store_registers)
11414 (record_full_beneath_to_xfer_partial_ops)
11415 (record_full_beneath_to_xfer_partial)
11416 (record_full_beneath_to_insert_breakpoint_ops)
11417 (record_full_beneath_to_insert_breakpoint)
11418 (record_full_beneath_to_remove_breakpoint_ops)
11419 (record_full_beneath_to_remove_breakpoint)
11420 (record_full_beneath_to_stopped_by_watchpoint)
11421 (record_full_beneath_to_stopped_data_address)
11422 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11423 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11424 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11425 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11426 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11427 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11428 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11429 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11430 (record_full_resume, record_full_wait_1)
11431 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11432 (record_full_store_registers, record_full_xfer_partial)
11433 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11434 (record_full_async, record_full_core_xfer_partial): Use target
11435 delegation.
11436 * target-delegates.c: Rebuild.
11437 * target.c (current_xfer_partial): Remove.
11438 (update_current_target): Do not INHERIT or de_fault
11439 to_insert_breakpoint, to_remove_breakpoint,
11440 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11441 to_is_async_p, to_async. Do not set to_xfer_partial field.
11442 (default_xfer_partial): Simplify.
11443 (current_xfer_partial): Remove.
11444 (target_wait, target_resume): Simplify.
11445 (find_default_can_async_p, find_default_is_async_p): Update.
11446 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11447 to_xfer_partial, to_stopped_by_watchpoint,
11448 to_stopped_data_address.
11449 (target_store_registers): Simplify.
11450 (forward_target_remove_breakpoint)
11451 (forward_target_insert_breakpoint): Remove.
11452 (target_remove_breakpoint, target_insert_breakpoint)
11453 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11454 * target.h (struct target_ops) <to_resume, to_wait,
11455 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11456 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11457 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11458 markup.
11459 (forward_target_remove_breakpoint)
11460 (forward_target_insert_breakpoint): Remove.
11461 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11462 directly.
11463 (record_btrace_insert_breakpoint): Delegate directly.
11464
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 PR build/7701:
11468 * target-delegates.c: New file.
11469 * target.c: Include target-delegates.c.
11470 (init_dummy_target): Call install_dummy_methods.
11471 (complete_target_initialization): Call install_delegators.
11472 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11473 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11474 * make-target-delegates: New file.
11475
11476 2014-02-19 Tom Tromey <tromey@redhat.com>
11477
11478 * record.c (find_record_target): Use find_target_at.
11479 * target.c (find_target_at): New function.
11480 * target.h (find_target_at): Declare.
11481
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11485 Add 'ops' argument.
11486 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11487 'ops' argument.
11488 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11489 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11490 'ops' argument.
11491 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11492 argument.
11493 * linux-nat.c (save_sigtrap): Update.
11494 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11495 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11496 (linux_nat_close): Update.
11497 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11498 argument.
11499 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11500 argument.
11501 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11502 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11503 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11504 (tmp_to_async): Add 'ops' argument.
11505 (record_full_stopped_by_watchpoint, record_full_async)
11506 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11507 argument.
11508 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11509 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11510 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11511 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11512 (remote_is_async_p, remote_async): Add 'ops' argument.
11513 (remote_stopped_data_address): Update.
11514 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11515 * target.c (update_current_target)
11516 (find_default_can_async_p, find_default_is_async_p): Update.
11517 (init_dummy_target): Update.
11518 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11519 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11520 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11521 (target_can_async_p, target_is_async_p, target_async)
11522 (target_stopped_by_watchpoint): Update.
11523
11524 2014-02-19 Yao Qi <yao@codesourcery.com>
11525
11526 PR gdb/16220
11527 * gdbarch.sh: Remove startup_gdbarch.
11528 * gdbarch.c: Regenerated.
11529 * gdbarch.h: Likewise.
11530
11531 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11532
11533 * rl78-tdep.c (rl78_g10_register_name): New function.
11534 (rl78_return_value): Add g10 support.
11535 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11536 g10.
11537
11538 2014-02-17 Doug Evans <xdje42@gmail.com>
11539
11540 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11541 (SUBDIR_GUILE_SRCS): Ditto.
11542 (scm-gsmob.o): Ditto.
11543
11544 2014-02-17 Yao Qi <yao@codesourcery.com>
11545
11546 * gnu-nat.c (ILL_RPC): Declare defined function.
11547
11548 2014-02-17 Yao Qi <yao@codesourcery.com>
11549
11550 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11551 mach_msg_type_number_t.
11552 (gnu_write_inferior): Likewise.
11553
11554 2014-02-17 Yao Qi <yao@codesourcery.com>
11555
11556 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11557 in format string.
11558 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11559 (inf_validate_procs, inf_signal): Likewise.
11560 (S_exception_raise_request): Likewise.
11561 (do_mach_notify_dead_name): Likewise.
11562 (steal_exc_port): Likewise.
11563 (gnu_read_inferior): Change 'copy_count''s type to
11564 mach_msg_type_number_t.
11565 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11566 format string.
11567
11568 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11569
11570 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11571 flag. Adjust all users; in particular...
11572 (gnu_wait): ..., don't decrement its value in here...
11573 (gnu_create_inferior): ..., and instead set the flag in here,
11574 around the startup_inferior call, and call that one with
11575 START_INFERIOR_TRAPS_EXPECTED.
11576
11577 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11578 (ILL_RPC): ... new macro.
11579 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11580 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11581 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11582 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11583 functions with ILL_RPC macro.
11584 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11585 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11586 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11587 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11588 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11589 (S_proc_getlogin_reply, S_proc_getsid_reply)
11590 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11591 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11592 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11593 (S_proc_getnports_reply, S_proc_is_important_reply)
11594 (S_proc_get_code_reply): New stub functions, generated with
11595 ILL_RPC macro.
11596
11597 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11598 collected the type check structures.
11599
11600 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11601
11602 2014-02-14 Doug Evans <dje@google.com>
11603
11604 * target.c (target_write_partial): Fix result type.
11605
11606 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11607
11608 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11609 the proper offsets to access fpregset_t.
11610
11611 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11612
11613 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11614 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11615 * h8300-tdep.c (setmachinelist): Remove global.
11616 * hppa-tdep.c (hppa_sigtramp): Remove global.
11617 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11618 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11619 * ravenscar-thread.c (update_target_observer): Remove global.
11620 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11621
11622 2014-02-12 Tom Tromey <tromey@redhat.com>
11623
11624 * common/rsp-low.c: Update comments.
11625 * common/rsp-low.h: Update comments.
11626
11627 2014-02-12 Tom Tromey <tromey@redhat.com>
11628
11629 * common/rsp-low.c (convert_ascii_to_int): Remove.
11630 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11631
11632 2014-02-12 Tom Tromey <tromey@redhat.com>
11633
11634 * common/rsp-low.h (unhexify): Don't declare.
11635 * common/rsp-low.c (unhexify): Remove.
11636
11637 2014-02-12 Tom Tromey <tromey@redhat.com>
11638
11639 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11640 * common/rsp-low.c (convert_int_to_ascii): Remove.
11641
11642 2014-02-12 Tom Tromey <tromey@redhat.com>
11643
11644 * common/rsp-low.h (hexify): Don't declare.
11645 * common/rsp-low.c (hexify): Remove.
11646
11647 2014-02-12 Tom Tromey <tromey@redhat.com>
11648
11649 * common/rsp-low.c (hexify): Never take strlen of argument.
11650
11651 2014-02-12 Tom Tromey <tromey@redhat.com>
11652
11653 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11654 * remote.c (extended_remote_run, remote_rcmd)
11655 (remote_download_trace_state_variable, remote_save_trace_data)
11656 (remote_set_trace_notes): Update.
11657 * tracepoint.c (encode_source_string, tfile_write_status)
11658 (tfile_write_uploaded_tsv): Update.
11659
11660 2014-02-12 Tom Tromey <tromey@redhat.com>
11661
11662 * tracepoint.c: Include rsp-low.h.
11663 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11664 * remote.c: Include rsp-low.h.
11665 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11666 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11667 (remote_unescape_input): Move to common/rsp-low.c.
11668 * common/rsp-low.h: New file.
11669 * common/rsp-low.c: New file.
11670 * Makefile.in (SFILES): Add common/rsp-low.c.
11671 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11672 (COMMON_OBS): Add rsp-low.o.
11673 (rsp-low.o): New target.
11674
11675 2014-02-12 Tom Tromey <tromey@redhat.com>
11676
11677 * utils.h: Include print-utils.h.
11678 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11679 (int_string, core_addr_to_string, core_addr_to_string_nz)
11680 (hex_string, hex_string_custom): Don't declare.
11681 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11682 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11683 (hex_string_custom, int_string, core_addr_to_string)
11684 (core_addr_to_string_nz, host_address_to_string): Move to
11685 common/print-utils.c.
11686 * common/print-utils.h: New file.
11687 * common/print-utils.c: New file
11688 * Makefile.in (SFILES): Add common/print-utils.c.
11689 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11690 (COMMON_OBS): Add print-utils.o.
11691 (print-utils.o): New target.
11692
11693 2014-02-12 Tom Tromey <tromey@redhat.com>
11694
11695 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11696
11697 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11698
11699 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11700
11701 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11702
11703 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11704 if a PT_IO ptrace request returns sucessfully but indicates that 0
11705 bytes were transferred.
11706
11707 2014-02-12 Pedro Alves <palves@redhat.com>
11708 Kevin Buettner <kevinb@redhat.com>
11709
11710 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11711 TYPE_INSTANCE_FLAG_CODE_SPACE.
11712
11713 2014-02-12 Pedro Alves <palves@redhat.com>
11714
11715 * h8300-tdep.c (pseudo_from_raw_register)
11716 (raw_from_pseudo_register): New functions.
11717 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11718 them.
11719
11720 2014-02-12 Pedro Alves <palves@redhat.com>
11721
11722 * h8300-tdep.c (h8300_register_sim_regno): New function.
11723 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11724 gdbarch_register_sim_regno hook.
11725
11726 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11727
11728 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11729
11730 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11731
11732 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11733
11734 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11735
11736 * obsd-tdep.h (obsd_init_abi): New prototype.
11737 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11738 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11739 (obsd_init_abi): New functions.
11740 * i386obsd-tdep.c: Include "obsd-tdep.h".
11741 (i386obsd_init_abi): Call obsd_init_abi.
11742 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11743 (amd64obsd_init_abi): Call obsd_init_abi.
11744 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11745 obsd-tdep.c to gdb_target_obs.
11746
11747 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11748
11749 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11750 double float arguments to 16-byte in the argument slots.
11751
11752 2014-02-11 Doug Evans <xdje42@gmail.com>
11753
11754 * configure.ac: Don't crash if pkg-config is not found and guile
11755 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11756 in guile checks.
11757 * configure: Regenerate.
11758
11759 2014-02-11 Yao Qi <yao@codesourcery.com>
11760
11761 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11762 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11763 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11764 * gnu-nat.c (gnu_xfer_memory): Likewise.
11765 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11766 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11767 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11768 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11769
11770 2014-02-11 Yao Qi <yao@codesourcery.com>
11771
11772 * target.h (enum target_xfer_error): Rename to ...
11773 (enum target_xfer_status): ... it. New. All users updated.
11774 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11775 New.
11776 (TARGET_XFER_STATUS_ERROR_P): New macro.
11777 (target_xfer_error_to_string): Remove declaration.
11778 (target_xfer_status_to_string): Declare.
11779 (target_xfer_partial_ftype): Adjust it.
11780 (struct target_ops) <to_xfer_partial>: Return
11781 target_xfer_status. Add argument xfered_len. Update
11782 comments.
11783 * target.c (target_xfer_error_to_string): Rename to ...
11784 (target_xfer_status_to_string): ... it. New. All callers
11785 updated.
11786 (target_read_live_memory): Likewise. Call target_xfer_partial
11787 instead of target_read.
11788 (memory_xfer_live_readonly_partial): Return
11789 target_xfer_status. Add argument xfered_len.
11790 (raw_memory_xfer_partial): Likewise.
11791 (memory_xfer_partial_1): Likewise.
11792 (memory_xfer_partial): Likewise.
11793 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11794 properly. Update debug message.
11795 (default_xfer_partial, current_xfer_partial): Likewise.
11796 (target_write_partial): Likewise.
11797 (target_read_partial): Likewise. All callers updated.
11798 (read_whatever_is_readable): Likewise.
11799 (target_write_with_progress): Likewise.
11800 (target_read_alloc_1): Likewise.
11801
11802 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11803 * auxv.c (procfs_xfer_auxv): Likewise.
11804 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11805 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11806 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11807 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11808 * corefile.c (read_memory): Adjust.
11809 * corelow.c (core_xfer_partial): Likewise.
11810 * ctf.c (ctf_xfer_partial): Likewise.
11811 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11812 updated.
11813 (darwin_xfer_partial): Likewise.
11814 * exec.c (section_table_xfer_memory_partial): Likewise. All
11815 callers updated.
11816 (exec_xfer_partial): Likewise.
11817 * exec.h (section_table_xfer_memory_partial): Update
11818 declaration.
11819 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11820 negative.
11821 (gnu_xfer_partial): Likewise.
11822 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11823 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11824 (ia64_hpux_xfer_solib_got): Likewise.
11825 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11826 type of 'partial_len' to ULONGEST.
11827 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11828 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11829 (linux_nat_xfer_partial): Likewise.
11830 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11831 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11832 * monitor.c (monitor_xfer_memory): Likewise.
11833 (monitor_xfer_partial): Likewise.
11834 * procfs.c (procfs_xfer_partial): Likewise.
11835 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11836 * record-full.c (record_full_xfer_partial): Likewise.
11837 (record_full_core_xfer_partial): Likewise.
11838 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11839 (gdbsim_xfer_partial): Likewise.
11840 * remote.c (remote_write_bytes_aux): Likewise. All callers
11841 updated.
11842 (remote_write_bytes, remote_read_bytes): Likewise. All
11843 callers updated.
11844 (remote_flash_erase): Likewise. All callers updated.
11845 (remote_write_qxfer): Likewise. All callers updated.
11846 (remote_read_qxfer): Likewise. All callers updated.
11847 (remote_xfer_partial): Likewise.
11848 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11849 (rs6000_xfer_shared_libraries): Likewise.
11850 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11851 (sol_thread_xfer_partial): Likewise.
11852 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11853 (sparc_xfer_partial): Likewise.
11854 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11855 updated.
11856 (spu_xfer_partial): Likewise.
11857 * spu-multiarch.c (spu_xfer_partial): Likewise.
11858 * tracepoint.c (tfile_xfer_partial): Likewise.
11859 * windows-nat.c (windows_xfer_memory): Likewise.
11860 (windows_xfer_shared_libraries): Likewise.
11861 (windows_xfer_partial): Likewise.
11862 * valprint.c: Replace 'target_xfer_error' with
11863 'target_xfer_status' in comments.
11864
11865 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11866
11867 Checked in by Joel Brobecker <brobecker@adacore.com>.
11868 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11869
11870 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11871
11872 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11873 function parameters.
11874
11875 2014-02-10 Will Newton <will.newton@linaro.org>
11876
11877 * elfread.c (elf_rel_plt_read): Look for a .got section if
11878 looking up .got.plt fails.
11879 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11880 on address passed to elf_gnu_ifunc_record_cache.
11881 (elf_gnu_ifunc_resolve_addr): Likewise.
11882 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11883
11884 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11885
11886 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11887 (X_RETTURN): New macro.
11888 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11889
11890 * sparc64-tdep.c (sparc64_init_abi): Hook
11891 sparc_in_function_epilogue_p.
11892
11893 2014-02-10 Gary Benson <gbenson@redhat.com>
11894
11895 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11896 Rename name_matcher to symbol_matcher.
11897
11898 2014-02-10 Gary Benson <gbenson@redhat.com>
11899
11900 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11901 Use expand_symtabs_file_matcher_ftype and
11902 expand_symtabs_symbol_matcher_ftype.
11903
11904 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11905
11906 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11907 (struct ada_symbol_cache): New.
11908 (ada_free_symbol_cache): Forward declare.
11909 (struct ada_pspace_data): New.
11910 (ada_pspace_data_handle): New static global.
11911 (get_ada_pspace_data, ada_pspace_data_cleanup)
11912 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11913 (cache_space, cache): Delete, now folded inside struct
11914 ada_pspace_data.
11915 (ada_get_symbol_cache): New function.
11916 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11917 implementation.
11918 (_initialize_ada_language): Remove initialization of cache_space.
11919 Move call to observer_attach_inferior_exit up, grouping it
11920 with the other observer registrations inside this function.
11921 Rename command to be more general. Add call to
11922 register_program_space_data_with_cleanup.
11923
11924 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11925
11926 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11927 ada_new_objfile_observer.
11928 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11929 (_initialize_tasks): Update uses of ada_new_objfile_observer
11930 and ada_tasks_normal_stop_observer.
11931
11932 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11933
11934 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11935 returned by the 'Length attribute to integer.
11936
11937 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11938
11939 * ada-lang.c (_initialize_ada_language): Initialize
11940 cache_space obstack.
11941
11942 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11943
11944 * ada-lang.c (HASH_SIZE): New macro.
11945 (struct cache_entry): New type.
11946 (cache_space, cache): New static globals.
11947 (ada_clear_symbol_cache, find_entry): New functions.
11948 (lookup_cached_symbol, cache_symbol): Implement.
11949 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11950 (_initialize_ada_language): Attach ada_new_objfile_observer
11951 and ada_free_objfile_observer.
11952
11953 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11954
11955 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11956 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11957 struct block * parameter.
11958 (ada_lookup_symbol_list_worker): Constify local variable "block".
11959 Remove cast which is no longer necessary.
11960
11961 2014-02-10 Doug Evans <xdje42@gmail.com>
11962
11963 Add Guile as an extension language.
11964 * NEWS: Mention Guile scripting.
11965 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11966 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11967 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11968 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11969 (CLIBS): Add GUILE_LIBS.
11970 (install-guile): New rule.
11971 (guile.o): New rule.
11972 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11973 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11974 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11975 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11976 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11977 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11978 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11979 * configure.ac: New option --with-guile.
11980 * configure: Regenerate.
11981 * config.in: Regenerate.
11982 * auto-load.c: Remove #include "python/python.h". Add #include
11983 "gdb/section-scripts.h".
11984 (source_section_scripts): Handle Guile scripts.
11985 (_initialize_auto_load): Add name of Guile objfile script to
11986 scripts-directory help text.
11987 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11988 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11989 (struct breakpoint): New member scm_bp_object.
11990 * defs.h (enum command_control_type): New value guile_control.
11991 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11992 "extension.h".
11993 (show_user): Update comment.
11994 (_initialize_cli_cmds): Update help text for "show user". Update help
11995 text for max-user-call-depth.
11996 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11997 "extension.h".
11998 (multi_line_command_p): Add guile_control.
11999 (print_command_lines): Handle guile_control.
12000 (execute_control_command, recurse_read_control_structure): Ditto.
12001 (process_next_line): Recognize "guile" commands.
12002 * disasm.c (gdb_disassemble_info): Make non-static.
12003 * disasm.h: #include "dis-asm.h".
12004 (struct gdbarch): Add forward decl.
12005 (gdb_disassemble_info): Declare.
12006 * extension.c: #include "guile/guile.h".
12007 (extension_languages): Add guile.
12008 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12009 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12010 * gdbtypes.c (get_unsigned_type_max): New function.
12011 (get_signed_type_minmax): New function.
12012 * gdbtypes.h (get_unsigned_type_max): Declare.
12013 (get_signed_type_minmax): Declare.
12014 * guile/README: New file.
12015 * guile/guile-internal.h: New file.
12016 * guile/guile.c: New file.
12017 * guile/guile.h: New file.
12018 * guile/scm-arch.c: New file.
12019 * guile/scm-auto-load.c: New file.
12020 * guile/scm-block.c: New file.
12021 * guile/scm-breakpoint.c: New file.
12022 * guile/scm-disasm.c: New file.
12023 * guile/scm-exception.c: New file.
12024 * guile/scm-frame.c: New file.
12025 * guile/scm-gsmob.c: New file.
12026 * guile/scm-iterator.c: New file.
12027 * guile/scm-lazy-string.c: New file.
12028 * guile/scm-math.c: New file.
12029 * guile/scm-objfile.c: New file.
12030 * guile/scm-ports.c: New file.
12031 * guile/scm-pretty-print.c: New file.
12032 * guile/scm-safe-call.c: New file.
12033 * guile/scm-string.c: New file.
12034 * guile/scm-symbol.c: New file.
12035 * guile/scm-symtab.c: New file.
12036 * guile/scm-type.c: New file.
12037 * guile/scm-utils.c: New file.
12038 * guile/scm-value.c: New file.
12039 * guile/lib/gdb.scm: New file.
12040 * guile/lib/gdb/boot.scm: New file.
12041 * guile/lib/gdb/experimental.scm: New file.
12042 * guile/lib/gdb/init.scm: New file.
12043 * guile/lib/gdb/iterator.scm: New file.
12044 * guile/lib/gdb/printing.scm: New file.
12045 * guile/lib/gdb/types.scm: New file.
12046 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12047 (VPATH): Add $(GUILE_SRCDIR).
12048 (GUILE_DIR): New variable.
12049 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12050 (all): Add stamp-guile dependency.
12051 (stamp-guile): New rule.
12052 (clean-guile, install-guile, uninstall-guile): New rules.
12053 (install-only): Add install-guile dependency.
12054 (uninstall): Add uninstall-guile dependency.
12055 (clean): Add clean-guile dependency.
12056
12057 2014-02-09 Doug Evans <xdje42@gmail.com>
12058
12059 Revert this patch (which I approved, mea culpa).
12060
12061 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12062
12063 * Makefile.in (all-lib): Remove.
12064 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12065
12066 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12067
12068 Fix Python stack corruption.
12069 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12070 gdb_py_longest.
12071
12072 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12073
12074 * Makefile.in (all-lib): Remove.
12075 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12076
12077 2014-02-07 Doug Evans <dje@google.com>
12078
12079 * extension-priv.h (extension_language_script_ops): Add comment.
12080 (extension_language_ops): Add comment.
12081 (active_ext_lang_state): Fix typo in comment.
12082
12083 2014-02-07 Pedro Alves <palves@redhat.com>
12084
12085 PR breakpoints/16292
12086 * infrun.c (handle_signal_stop) <signal arrives while stepping
12087 over a breakpoint>: Switch back to the stepping thread.
12088
12089 2014-02-07 Yao Qi <yao@codesourcery.com>
12090
12091 * target.c (target_xfer_partial): Return zero if LEN is zero.
12092
12093 2014-02-07 Yao Qi <yao@codesourcery.com>
12094
12095 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12096 (ld_so_xfer_auxv): Likewise.
12097 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12098 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12099 * corelow.c (core_xfer_partial): Likewise.
12100 * ctf.c (ctf_xfer_partial): Likewise.
12101 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12102 (darwin_xfer_partial): Likewise.
12103 * exec.c (exec_xfer_partial): Likewise.
12104 * gnu-nat.c (gnu_xfer_partial): Likewise.
12105 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12106 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12107 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12108 * linux-nat.c (linux_xfer_siginfo): Likewise.
12109 (linux_proc_xfer_spu): Likewise.
12110 * procfs.c (procfs_xfer_partial): Likewise.
12111 * record-full.c (record_full_xfer_partial): Likewise.
12112 (record_full_core_xfer_partial): Likewise.
12113 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12114 * remote.c (remote_write_qxfer): Likewise.
12115 (remote_write_qxfer, remote_read_qxfer): Likewise.
12116 (remote_xfer_partial): Likewise.
12117 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12118 (rs6000_xfer_shared_libraries): Likewise.
12119 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12120 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12121 (spu_xfer_partial): Likewise.
12122 * target.c (memory_xfer_partial_1): Likewise.
12123 * tracepoint.c (tfile_xfer_partial): Likewise.
12124 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12125 (windows_xfer_partial): Likewise.
12126
12127 2014-02-07 Yao Qi <yao@codesourcery.com>
12128
12129 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12130 comments.
12131 (core_xfer_shared_libraries_aix): Likewise.
12132 * gdbarch.c, gdbarch.h: Regenerated.
12133 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12134 ULONGEST. Change 'len_avail' type to ULONGEST.
12135 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12136 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12137 declaration.
12138 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12139
12140 2014-02-07 Yao Qi <yao@codesourcery.com>
12141
12142 * corefile.c (memory_error): Get 'exception' from ERR and pass
12143 'exception' to throw_error.
12144
12145 2014-02-06 Doug Evans <xdje42@gmail.com>
12146
12147 * configure.ac (libpython checking): Remove all but python.o from
12148 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12149 * configure: Regenerate.
12150
12151 * Makefile.in (SFILES): Add extension.c.
12152 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12153 (COMMON_OBS): Add extension.o.
12154 * extension.h: New file.
12155 * extension-priv.h: New file.
12156 * extension.c: New file.
12157
12158 * python/python-internal.h: #include "extension.h".
12159 (gdbpy_auto_load_enabled): Declare.
12160 (gdbpy_apply_val_pretty_printer): Declare.
12161 (gdbpy_apply_frame_filter): Declare.
12162 (gdbpy_preserve_values): Declare.
12163 (gdbpy_breakpoint_cond_says_stop): Declare.
12164 (gdbpy_breakpoint_has_cond): Declare.
12165 (void source_python_script_for_objfile): Delete.
12166 * python/python.c: #include "extension-priv.h".
12167 Delete inclusion of "observer.h".
12168 (extension_language_python): Moved here and renamed from
12169 script_language_python in py-auto-load.c.
12170 Redefined to be of type extension_language_defn.
12171 (python_extension_script_ops): New global.
12172 (python_extension_ops): New global.
12173 (struct python_env): New member previous_active.
12174 (restore_python_env): Call restore_active_ext_lang.
12175 (ensure_python_env): Call set_active_ext_lang.
12176 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12177 New arg extlang.
12178 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12179 New arg extlang.
12180 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12181 New arg extlang.
12182 (gdbpy_eval_from_control_command): Renamed from
12183 eval_python_from_control_command, made static. New arg extlang.
12184 (gdbpy_source_script) Renamed from source_python_script, made static.
12185 New arg extlang.
12186 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12187 result to int. New arg extlang.
12188 (gdbpy_source_objfile_script): Renamed from
12189 source_python_script_for_objfile, made static. New arg extlang.
12190 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12191 static. New args extlang, extlang_printers. Change result type to
12192 "void".
12193 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12194 static. New arg extlang. Rename arg printers to extlang_printers
12195 and change type to ext_lang_type_printers *.
12196 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12197 static. Replace argument arg with extlang, extlang_printers.
12198 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12199 (!HAVE_PYTHON, source_python_script): Delete.
12200 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12201 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12202 (!HAVE_PYTHON, start_type_printers): Delete.
12203 (!HAVE_PYTHON, apply_type_printers): Delete.
12204 (!HAVE_PYTHON, free_type_printers): Delete.
12205 (_initialize_python): Delete call to observer_attach_before_prompt.
12206 (finalize_python): Set/restore active extension language.
12207 (gdbpy_finish_initialization) Renamed from
12208 finish_python_initialization, made static. New arg extlang.
12209 (gdbpy_initialized): New function.
12210 * python/python.h: #include "extension.h". Delete #include
12211 "value.h", "mi/mi-cmds.h".
12212 (extension_language_python): Declare.
12213 (GDBPY_AUTO_FILE_NAME): Delete.
12214 (enum py_bt_status): Moved to extension.h and renamed to
12215 ext_lang_bt_status.
12216 (enum frame_filter_flags): Moved to extension.h.
12217 (enum py_frame_args): Moved to extension.h and renamed to
12218 ext_lang_frame_args.
12219 (finish_python_initialization): Delete.
12220 (eval_python_from_control_command): Delete.
12221 (source_python_script): Delete.
12222 (apply_val_pretty_printer): Delete.
12223 (apply_frame_filter): Delete.
12224 (preserve_python_values): Delete.
12225 (gdbpy_script_language_defn): Delete.
12226 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12227 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12228
12229 * auto-load.c: #include "extension.h".
12230 (GDB_AUTO_FILE_NAME): Delete.
12231 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12232 (script_language_gdb): Delete, moved to extension.c and renamed to
12233 extension_language_gdb.
12234 (source_gdb_script_for_objfile): Delete.
12235 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12236 (loaded_script): Change type of language member to
12237 struct extension_language_defn *.
12238 (init_loaded_scripts_info): Initialize
12239 unsupported_script_warning_printed.
12240 (maybe_add_script): Make static. Change type of language arg to
12241 struct extension_language_defn *.
12242 (clear_section_scripts): Reset unsupported_script_warning_printed.
12243 (auto_load_objfile_script_1): Rewrite to use extension language API.
12244 (auto_load_objfile_script): Make public. Remove support-compiled-in
12245 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12246 (source_section_scripts): Rewrite to use extension language API.
12247 (load_auto_scripts_for_objfile): Rewrite to use
12248 auto_load_scripts_for_objfile.
12249 (collect_matching_scripts_data): Change type of language member to
12250 struct extension_language_defn *.
12251 (auto_load_info_scripts): Change type of language arg to
12252 struct extension_language_defn *.
12253 (unsupported_script_warning_print): New function.
12254 (script_not_found_warning_print): Make static.
12255 (_initialize_auto_load): Rewrite construction of scripts-directory
12256 help.
12257 * auto-load.h (struct objfile): Add forward decl.
12258 (struct script_language): Delete.
12259 (struct auto_load_pspace_info): Add forward decl.
12260 (struct extension_language_defn): Add forward decl.
12261 (maybe_add_script): Delete.
12262 (auto_load_objfile_script): Declare.
12263 (script_not_found_warning_print): Delete.
12264 (auto_load_info_scripts): Update prototype.
12265 (auto_load_gdb_scripts_enabled): Declare.
12266 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12267 auto_load_python_scripts_enabled and made public.
12268 (script_language_python): Delete, moved to python.c.
12269 (gdbpy_script_language_defn): Delete.
12270 (info_auto_load_python_scripts): Update to use
12271 extension_language_python.
12272
12273 * breakpoint.c (condition_command): Replace call to
12274 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12275 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12276 with call to breakpoint_ext_lang_cond_says_stop.
12277 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12278 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12279 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12280 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12281 New arg slang.
12282 (local_setattro): Print name of extension language with existing
12283 stop condition.
12284
12285 * valprint.c (val_print, value_print): Update to call
12286 apply_ext_lang_val_pretty_printer.
12287 * cp-valprint.c (cp_print_value): Update call to
12288 apply_ext_lang_val_pretty_printer.
12289 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12290 (gdbpy_apply_val_pretty_printer): Renamed from
12291 apply_val_pretty_printer. New arg extlang.
12292 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12293
12294 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12295 extension language API.
12296 * cli/cli-script.c (execute_control_command): Update to call
12297 eval_ext_lang_from_control_command.
12298
12299 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12300 enum ext_lang_bt_status values. Update call to
12301 apply_ext_lang_frame_filter.
12302 (mi_cmd_stack_list_locals): Ditto.
12303 (mi_cmd_stack_list_args): Ditto.
12304 (mi_cmd_stack_list_variables): Ditto.
12305 * mi/mi-main.c: Delete #include "python/python-internal.h".
12306 Add #include "extension.h".
12307 (mi_cmd_list_features): Replace reference to python internal variable
12308 gdb_python_initialized with call to ext_lang_initialized_p.
12309
12310 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12311 Update to use enum ext_lang_frame_args. Update to call
12312 apply_ext_lang_frame_filter.
12313 * python/py-framefilter.c (extract_sym): Update to use enum
12314 ext_lang_bt_status.
12315 (extract_value, py_print_type, py_print_value): Ditto.
12316 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12317 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12318 (py_print_frame): Ditto.
12319 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12320 New arg extlang. Update to use enum ext_lang_bt_status.
12321
12322 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12323 finish_python_initialization. Replace with call to
12324 finish_ext_lang_initialization.
12325
12326 * typeprint.c (do_free_global_table): Update to call
12327 free_ext_lang_type_printers.
12328 (create_global_typedef_table): Update to call
12329 start_ext_lang_type_printers.
12330 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12331 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12332 (type_print_options): Change type of global_printers from "void *"
12333 to "struct ext_lang_type_printers *".
12334
12335 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12336 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12337 (gdbpy_preserve_values): Renamed from preserve_python_values.
12338 New arg extlang.
12339 (!HAVE_PYTHON, preserve_python_values): Delete.
12340
12341 * utils.c (quit_flag): Delete, moved to extension.c.
12342 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12343 extension.c.
12344
12345 * eval.c: Delete #include "python/python.h".
12346 * main.c: Delete #include "python/python.h".
12347
12348 * defs.h: Update comment.
12349
12350 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12351
12352 GDB 7.7 released.
12353
12354 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12355
12356 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12357 defined.
12358
12359 2014-02-05 Yao Qi <yao@codesourcery.com>
12360
12361 * remote.c (remote_pass_signals): Remove local 'buf' and use
12362 rs->buf.
12363 (remote_program_signals): Likewise.
12364
12365 2014-02-05 Yao Qi <yao@codesourcery.com>
12366
12367 * ctf.c: Include "inferior.h" and "gdbthread.h".
12368 (CTF_PID): A new macro.
12369 (ctf_open): Call inferior_appeared and add_thread_silent.
12370 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12371 (ctf_thread_alive): New function.
12372 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12373
12374 2014-02-05 Yao Qi <yao@codesourcery.com>
12375
12376 Revert this patch:
12377
12378 2013-05-24 Yao Qi <yao@codesourcery.com>
12379
12380 * tracepoint.c (TFILE_PID): Remove.
12381 (tfile_open): Don't add thread and inferior.
12382 (tfile_close): Don't set 'inferior_ptid'. Don't call
12383 exit_inferior_silent.
12384 (tfile_thread_alive): Remove.
12385 (init_tfile_ops): Don't set field 'to_thread_alive' of
12386 tfile_ops.
12387
12388 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12389
12390 * remote.c (remote_start_remote): Call remote_check_symbols even
12391 if only symbol-file (not file) has been given.
12392
12393 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12394
12395 * gdbarch.sh (skip_entrypoint): New callback.
12396 * gdbarch.c, gdbarch.h: Regenerate.
12397 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12398 * infrun.c (fill_in_stop_func): Likewise.
12399 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12400 (ppc_elfv2_elf_make_msymbol_special): New function.
12401 (ppc_elfv2_skip_entrypoint): Likewise.
12402 (ppc_linux_init_abi): Install them for ELFv2.
12403
12404 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12405
12406 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12407 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12408 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12409 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12410 structures returned in GPRs.
12411
12412 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12413
12414 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12415 offset to the stack parameter list for the ELFv2 ABI.
12416
12417 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12418
12419 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12420 set_gdbarch_convert_from_func_ptr_addr and
12421 set_gdbarch_elf_make_msymbol_special for ELFv1.
12422 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12423 function descriptors on ELFv1.
12424 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12425 set up r12 at function entry.
12426
12427 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12428
12429 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12430 (struct gdbarch_tdep): New member elf_abi.
12431
12432 * rs6000-tdep.c: Include "elf/ppc64.h".
12433 (rs6000_gdbarch_init): Detect ELF ABI version.
12434
12435 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12436
12437 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12438 within a register pair holding a DFP 128-bit value on little-endian.
12439 (ppc64_sysv_abi_return_value_base): Likewise.
12440 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12441 (dfp_pseudo_register_write): Likewise.
12442
12443 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12444
12445 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12446 offset on little-endian when passing _Decimal32.
12447 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12448
12449 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12450
12451 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12452 of the overlapped FP register within the VSX register on little-
12453 endian platforms.
12454 (efpr_pseudo_register_write): Likewise.
12455
12456 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12457
12458 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12459 offset on little-endian when passing small structures.
12460
12461 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12462
12463 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12464 (struct ppc64_sysv_argpos): New data structure.
12465 (ppc64_sysv_abi_push_float): Remove.
12466 (ppc64_sysv_abi_push_val): New function.
12467 (ppc64_sysv_abi_push_integer): Likewise.
12468 (ppc64_sysv_abi_push_freg): Likewise.
12469 (ppc64_sysv_abi_push_vreg): Likewise.
12470 (ppc64_sysv_abi_push_param): Likewise.
12471 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12472 (ppc64_sysv_abi_return_value_base): New function.
12473 (ppc64_sysv_abi_return_value): Refactor to use it.
12474
12475 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12476
12477 * NEWS: Document new target powerpc64le-*-linux*.
12478
12479 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12480
12481 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12482 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12483 core dumps.
12484 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12485 register set used in ELF core dumps. Add floating-point register set.
12486
12487 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12488
12489 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12490 dwarf2_to_gdb[] table using symbolic constants. Adjust
12491 penultimate entry from number representing the PC register
12492 to symbolic constant representing the MDR register. Add
12493 constant for the PC register to the end of the table.
12494
12495 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12496
12497 * bsd-kvm.c: Include <sys/param.h>
12498
12499 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12500
12501 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12502
12503 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12504
12505 * ada-lang.h (clear_ada_sym_cache): Delete.
12506
12507 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12508
12509 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12510
12511 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12512
12513 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12514 the sigreturn register save area only if the syscall is
12515 sigreturn.
12516
12517 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12518
12519 * valops.c (value_slice): Minor reformatting.
12520
12521 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12522
12523 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12524
12525 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12526
12527 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12528 New static globals.
12529 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12530 (ada_ignore_descriptive_types_p): New static global.
12531 (find_parallel_type_by_descriptive_type): Return immediately
12532 if ada_ignore_descriptive_types_p is set.
12533 (_initialize_ada_language): Register new commands "maintenance
12534 set ada", "maintenance show ada", "maintenance set ada
12535 ignore-descriptive-types" and "maintenance show ada
12536 ignore-descriptive-types".
12537 * NEWS: Add entry for new "maint ada set/show
12538 ignore-descriptive-types" commands.
12539
12540 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12541
12542 * record-btrace.c (record_btrace_close): Call btrace_teardown
12543 for all threads.
12544
12545 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12546
12547 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12548 "ui-out.h".
12549
12550 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12551
12552 * ada-typeprint (type_is_full_subrange_of_target_type):
12553 New function.
12554 (print_range): Add parameter bounds_prefered_p. If not set,
12555 try printing range types using the name of their base type.
12556 (print_range_type): Add parameter bounds_prefered_p.
12557 Use it in call to print_range.
12558 (print_array_type, ada_print_type): Update calls to print_range
12559 and print_range_type.
12560
12561 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12562
12563 * ada-typeprint.c (print_array_type, print_choices, print_range)
12564 (print_range_bound, print_dynamic_range_bound, print_range_type):
12565 Remove declaration.
12566
12567 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12568
12569 * ada-typeprint.c (print_range): Add missing empty line
12570 after local declaration.
12571
12572 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12573
12574 * ada-valprint.c (print_optional_low_bound): Get index_type's
12575 target type for as long as it is a TYPE_CODE_RANGE.
12576
12577 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12578
12579 * procfs.c (procfs_make_note_section): Remove assertion and
12580 associated comment.
12581
12582 2014-01-24 Yao Qi <yao@codesourcery.com>
12583
12584 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12585 * corelow.c (get_core_siginfo): Likewise.
12586
12587 2014-01-24 Yao Qi <yao@codesourcery.com>
12588
12589 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12590 ULONGEST. Don't check 'len' is negative.
12591 (remote_write_bytes): Change type of 'len' to ULONGEST.
12592
12593 2014-01-23 Tom Tromey <tromey@redhat.com>
12594
12595 PR python/16485:
12596 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12597 Handle exception from frame.block.
12598 (FrameVars.fetch_frame_locals): Likewise.
12599
12600 2014-01-23 Tom Tromey <tromey@redhat.com>
12601
12602 PR python/16487:
12603 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12604 on a NULL pointer. Move "goto error" to correct place.
12605
12606 2014-01-23 Tom Tromey <tromey@redhat.com>
12607
12608 PR python/16491:
12609 * python/py-framefilter.c (apply_frame_filter): Call
12610 ensure_python_env after computing gdbarch.
12611
12612 2014-01-23 Yao Qi <yao@codesourcery.com>
12613
12614 * target.c (raw_memory_xfer_partial): Change argument type
12615 from void * to gdb_byte *.
12616 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12617
12618 2014-01-22 Doug Evans <dje@google.com>
12619
12620 New gdbserver option --debug-format=timestamp.
12621 * NEWS: Mention it.
12622
12623 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12624
12625 * syscalls/s390x-linux.xml: New file.
12626 * syscalls/s390-linux.xml: New file.
12627 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12628 (XML_SYSCALL_FILENAME_S390X): Likewise.
12629 (op_svc): New enum value for SVC opcode.
12630 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12631 (s390_linux_get_syscall_number): New function.
12632 (s390_gdbarch_init): Register '*get_syscall_number' and the
12633 syscall xml file name.
12634 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12635 "s390-linux.xml" and "s390x-linux.xml".
12636 * NEWS: Announce new feature.
12637
12638 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12639
12640 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12641
12642 2014-01-22 Pedro Alves <palves@redhat.com>
12643
12644 * xtensa-config.c: Include defs.h.
12645
12646 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12647
12648 * common/common-utils.h: Add "ARI:" comment beside __func__
12649 reference.
12650
12651 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12652
12653 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12654 documentation a bit.
12655
12656 2014-01-21 Roland McGrath <mcgrathr@google.com>
12657
12658 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12659 * configure: Regenerate.
12660 * aclocal.m4: Regenerate.
12661 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12662 New substituted variables.
12663 (install-strip): New target.
12664 (INSTALL_SCRIPT): New substituted variable.
12665 (FLAGS_TO_PASS): Add it.
12666 (install-only): Use $(INSTALL_SCRIPT) rather than
12667 $(INSTALL_PROGRAM) for gcore.
12668
12669 2014-01-20 Tom Tromey <tromey@redhat.com>
12670
12671 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12672 together.
12673
12674 2014-01-20 Tom Tromey <tromey@redhat.com>
12675
12676 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12677 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12678 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12679 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12680 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12681 (struct cmd_list_element) <flags>: Remove.
12682 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12683 doc_allocated>: New fields.
12684 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12685 bitfields.
12686 * maint.c (maintenance_do_deprecate): Update.
12687 * top.c (execute_command): Update.
12688
12689 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12690
12691 * xtensa-linux-nat.c: Include asm/ptrace.h.
12692
12693 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12694
12695 * Makefile.in (SFILES): Add d-support.c.
12696 (COMMON_OBS): Add d-support.o.
12697 * d-lang.h (d_parse_symbol): Add comment, now defined in
12698 d-support.c.
12699 * d-lang.c (parse_call_convention)
12700 (parse_attributes, parse_function_types)
12701 (parse_function_args, parse_type, parse_identifier)
12702 (call_convention_p, d_parse_symbol): Move functions to ...
12703 * d-support.c: ... New file.
12704
12705 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12706
12707 * d-lang.h (d_parse_symbol): Add declaration.
12708 * d-lang.c (extract_identifiers)
12709 (extract_type_info): Remove functions.
12710 (parse_call_convention, parse_attributes)
12711 (parse_function_types, parse_function_args)
12712 (parse_type, parse_identifier, call_convention_p)
12713 (d_parse_symbol): New functions.
12714 (d_demangle): Use d_parse_symbol to demangle D symbols.
12715
12716 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12717
12718 * d-lang.h (struct builtin_d_type): New data type.
12719 (builtin_d_type): Add declaration.
12720 * d-lang.c (d_language_arch_info, build_d_types)
12721 (builtin_d_type): New functions.
12722 (enum d_primitive_types): New data type.
12723 (d_language_defn): Change c_language_arch_info to
12724 d_language_arch_info.
12725 (d_type_data): New static variable.
12726 (_initialize_d_language): Initialize d_type_data.
12727
12728 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12729
12730 * d-lang.h (d_main_name): Add declaration.
12731 * d-lang.c (d_main_name): New function.
12732 * symtab.c (find_main_name): Add call to d_main_name.
12733
12734 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12735
12736 * d-lang.c (d_language_defn): Change macro_expansion_c to
12737 macro_expansion_no.
12738
12739 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12740
12741 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12742
12743 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12744
12745 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12746 gdb_exception" declaration.
12747 * remote.c (getpkt_or_notif_sane): Likewise.
12748
12749 2014-01-17 Doug Evans <dje@google.com>
12750
12751 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12752 function, contents of dirnames_to_char_ptr_vec_append moved here.
12753 (delim_string_to_char_ptr_vec): New function.
12754 (dirnames_to_char_ptr_vec_append): Rewrite.
12755 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12756
12757 2014-01-17 Doug Evans <dje@google.com>
12758
12759 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12760 and moved here ...
12761 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12762 #include "common-utils.h".
12763 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12764 * common/vec.h (VEC_ASSERT_PASS): Update.
12765 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12766 (MACH_CHECK_ERROR): Update.
12767
12768 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12769
12770 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12771 comments.
12772 * gdbarch.h: Regenerate.
12773
12774 2014-01-16 Tom Tromey <tromey@redhat.com>
12775
12776 * value.c (struct value) <regnum>: Move earlier.
12777
12778 2014-01-16 Tom Tromey <tromey@redhat.com>
12779
12780 * remote.c (extended_remote_create_inferior): Rename from
12781 extended_remote_create_inferior_1. Add "ops" argument. Remove
12782 old implementation.
12783
12784 2014-01-16 Pedro Alves <palves@redhat.com>
12785
12786 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12787 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12788 the backchain.
12789
12790 2014-01-16 Doug Evans <dje@google.com>
12791
12792 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12793
12794 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12795
12796 * btrace.h (btrace_thread_flag): New.
12797 (struct btrace_thread_info) <flags>: New.
12798 * record-btrace.c (record_btrace_resume_thread)
12799 (record_btrace_find_thread_to_move, btrace_step_no_history)
12800 (btrace_step_stopped, record_btrace_start_replaying)
12801 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12802 (record_btrace_find_resume_thread): New.
12803 (record_btrace_resume, record_btrace_wait): Extend.
12804 (record_btrace_can_execute_reverse): New.
12805 (record_btrace_open): Fail in non-stop mode.
12806 (record_btrace_set_replay): Split into this, ...
12807 (record_btrace_stop_replaying): ... this, ...
12808 (record_btrace_clear_histories): ... and this.
12809 (init_record_btrace_ops): Init to_can_execute_reverse.
12810 * NEWS: Announce it.
12811
12812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12813
12814 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12815 (forward_target_decr_pc_after_break)
12816 (target_decr_pc_after_break): New.
12817 * target.c (forward_target_decr_pc_after_break)
12818 (target_decr_pc_after_break): New.
12819 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12820 instead of gdbarch_decr_pc_after_break.
12821 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12822 instead of gdbarch_decr_pc_after_break.
12823 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12824 instead of gdbarch_decr_pc_after_break.
12825 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12826 instead of gdbarch_decr_pc_after_break.
12827 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12828 instead of gdbarch_decr_pc_after_break.
12829 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12830 instead of gdbarch_decr_pc_after_break.
12831
12832 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12833
12834 * btrace.c: Include regcache.h.
12835 (btrace_add_pc): New.
12836 (btrace_enable): Call btrace_add_pc.
12837 (btrace_is_empty): New.
12838 * btrace.h (btrace_is_empty): New.
12839 * record-btrace.c (require_btrace, record_btrace_info): Call
12840 btrace_is_empty.
12841
12842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12843
12844 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12845 Support delta reads.
12846 (linux_disable_btrace): Change return type.
12847 * common/linux-btrace.h (linux_read_btrace): Change parameters
12848 and return type to allow error reporting. Update users.
12849 (linux_disable_btrace): Change return type. Update users.
12850 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12851 New.
12852 (btrace_error): New.
12853 (btrace_block) <begin>: Comment on BEGIN == 0.
12854 * btrace.c (btrace_compute_ftrace): Start from the end of
12855 the current trace.
12856 (btrace_stitch_trace, btrace_clear_history): New.
12857 (btrace_fetch): Read delta trace, return if replaying.
12858 (btrace_clear): Move clear history code to btrace_clear_history.
12859 (parse_xml_btrace): Throw an error if parsing failed.
12860 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12861 and return type to allow error reporting.
12862 (target_read_btrace): Change parameters and return type to allow
12863 error reporting.
12864 * target.c (target_read_btrace): Update.
12865 * remote.c (remote_read_btrace): Support delta reads. Pass
12866 errors on.
12867 * NEWS: Announce it.
12868
12869 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12870
12871 * record.h (record_btrace_frame_unwind)
12872 (record_btrace_tailcall_frame_unwind): New declarations.
12873 * dwarf2-frame: Include record.h
12874 (dwarf2_frame_cfa): Throw an error for btrace frames.
12875 * record-btrace.c: Include hashtab.h.
12876 (btrace_get_bfun_name): New.
12877 (btrace_call_history): Call btrace_get_bfun_name.
12878 (struct btrace_frame_cache): New.
12879 (bfcache): New.
12880 (bfcache_hash, bfcache_eq, bfcache_new): New.
12881 (btrace_get_frame_function): New.
12882 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12883 (record_btrace_frame_this_id): Compute own id.
12884 (record_btrace_frame_prev_register): Provide PC, throw_error
12885 for all other registers.
12886 (record_btrace_frame_sniffer): Detect btrace frames.
12887 (record_btrace_tailcall_frame_sniffer): New.
12888 (record_btrace_frame_dealloc_cache): New.
12889 (record_btrace_frame_unwind): Add new functions.
12890 (record_btrace_tailcall_frame_unwind): New.
12891 (_initialize_record_btrace): Allocate cache.
12892 * btrace.c (btrace_clear): Call reinit_frame_cache.
12893 * NEWS: Announce it.
12894
12895 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12896
12897 * record-btrace.c (record_btrace_set_replay)
12898 (record_btrace_goto_begin, record_btrace_goto_end)
12899 (record_btrace_goto): New.
12900 (init_record_btrace_ops): Initialize them.
12901 * NEWS: Announce it.
12902
12903 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12904
12905 * record-btrace.c (record_btrace_find_new_threads)
12906 (record_btrace_thread_alive): New.
12907 (init_record_btrace_ops): Initialize to_find_new_threads and
12908 to_thread_alive.
12909
12910 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12911
12912 * record-btrace.c (record_btrace_resume): New.
12913 (record_btrace_wait): New.
12914 (init_record_btrace_ops): Initialize to_wait and to_resume.
12915
12916 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12917
12918 * record-btrace.c (record_btrace_xfer_partial)
12919 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12920 (record_btrace_allow_memory_access): New.
12921 (init_record_btrace_ops): Initialize new methods.
12922 * target.c (raw_memory_xfer_partial): Bail out if target reports
12923 that this memory is not available.
12924
12925 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12926
12927 * target.h (target_ops) <to_insert_breakpoint>
12928 <to_remove_breakpoint>: Add target_ops parameter.
12929 (forward_target_insert_breakpoint): New.
12930 (forward_target_remove_breakpoint): New.
12931 (memory_remove_breakpoint, memory_insert_breakpoint):
12932 Add target_ops parameter.
12933 * target.c (target_insert_breakpoint): Split into this and ...
12934 (forward_target_insert_breakpoint): ... this.
12935 (target_remove_breakpoint): Split into this and ...
12936 (forward_target_remove_breakpoint): ... this.
12937 (debug_to_insert_breakpoint): Add target_ops parameter.
12938 Call forward_target_insert_breakpoint.
12939 (debug_to_remove_breakpoint): Add target_ops parameter.
12940 Call forward_target_remove_breakpoint.
12941 (update_current_target): Do not inherit or default to_insert_breakpoint
12942 and to_remove_breakpoint.
12943 * corelow.c (ignore): Add target_ops parameter.
12944 * exec.c (ignore): Add target_ops parameter.
12945 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12946 Add target_ops parameter.
12947 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12948 Add target_ops parameter.
12949 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12950 Add target_ops parameter.
12951 * record-full.c (record_full_beneath_to_insert_breakpoint)
12952 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12953 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12954 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12955 (record_full_core_remove_breakpoint): Add target_ops parameter.
12956 Update users.
12957 (record_full_beneath_to_insert_breakpoint_ops)
12958 (record_full_beneath_to_remove_breakpoint_ops)
12959 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12960 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12961 tmp_to_remove_breakpoint_ops,
12962 record_full_beneath_to_insert_breakpoint_ops, and
12963 record_full_beneath_to_remove_breakpoint_ops.
12964 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12965 (m32r_remove_breakpoint): Add target_ops parameter.
12966 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12967 Add target_ops parameter.
12968 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12969 Add target_ops parameter.
12970
12971 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12972 Markus Metzger <markus.t.metzger@intel.com>
12973
12974 * record-btrace.c: Include frame-unwind.h.
12975 (record_btrace_frame_unwind_stop_reason)
12976 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12977 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12978 New.
12979 (init_record_btrace_ops): Install it.
12980
12981 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12982
12983 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12984 get_prev_frame_1.
12985
12986 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12987
12988 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12989 earlier.
12990
12991 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12992
12993 * frame-unwind.c: Include target.h.
12994 (frame_unwind_try_unwinder): New function with code from ...
12995 (frame_unwind_find_by_frame): ... here. New variable
12996 unwinder_from_target, call also target_get_unwinder)
12997 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12998 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12999 * target.h (struct target_ops): New fields to_get_unwinder and
13000 to_get_tailcall_unwinder.
13001 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13002
13003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13004
13005 * record-btrace.c (record_btrace_fetch_registers)
13006 (record_btrace_store_registers)
13007 (record_btrace_to_prepare_to_store): New.
13008 (init_record_btrace_ops): Add the above.
13009
13010 2014-01-16 Tom Tromey <tromey@redhat.com>
13011
13012 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13013 * target.h (struct target_ops) <to_prepare_to_store>: Add
13014 argument.
13015 (target_prepare_to_store): Add argument.
13016 * target.c (debug_to_prepare_to_store): Add argument.
13017 (update_current_target): Update.
13018 * remote.c (remote_prepare_to_store): Add 'self' argument.
13019 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13020 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13021 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13022 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13023 argument.
13024 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13025 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13026 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13027 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13028 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13029
13030 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13031
13032 * btrace.h (replay) <replay>: New.
13033 (btrace_is_replaying): New.
13034 * btrace.c (btrace_clear): Free replay iterator.
13035 (btrace_is_replaying): New.
13036 * record-btrace.c (record_btrace_is_replaying): New.
13037 (record_btrace_info): Print insn number if replaying.
13038 (record_btrace_insn_history): Start at replay position.
13039 (record_btrace_call_history): Start at replay position.
13040 (init_record_btrace_ops): Init to_record_is_replaying.
13041
13042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13043
13044 * record-btrace.c (record_btrace_insn_history_range): Include
13045 end.
13046 (record_btrace_insn_history_from): Adjust range.
13047 (record_btrace_call_history_range): Include
13048 end.
13049 (record_btrace_call_history_from): Adjust range.
13050 * NEWS: Announce changes.
13051
13052 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13053
13054 * record.h (enum record_print_flag)
13055 <record_print_indent_calls>: New.
13056 * record.c (get_call_history_modifiers): Recognize /c modifier.
13057 (_initialize_record): Document /c modifier.
13058 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13059 Reorder fields. Optionally indent the function name. Update
13060 all users.
13061 * NEWS: Announce changes.
13062
13063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13064
13065 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13066
13067 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13068
13069 * btrace.c (ftrace_new_function): Start counting at one.
13070 * record-btrace.c (record_btrace_info): Adjust number of calls
13071 and insns.
13072 * NEWS: Announce it.
13073
13074 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13075
13076 * record-btrace.c (btrace_call_history_insn_range): Print
13077 insn range as [begin, end].
13078
13079 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13080
13081 * btrace.h (struct btrace_func_link): New.
13082 (enum btrace_function_flag): New.
13083 (struct btrace_inst): Rename to ...
13084 (struct btrace_insn): ...this. Update all users.
13085 (struct btrace_func) <ibegin, iend>: Remove.
13086 (struct btrace_func_link): New.
13087 (struct btrace_func): Rename to ...
13088 (struct btrace_function): ...this. Update all users.
13089 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13090 (number, level, flags>: New.
13091 (struct btrace_insn_iterator): Rename to ...
13092 (struct btrace_insn_history): ...this.
13093 Update all users.
13094 (struct btrace_insn_iterator, btrace_call_iterator): New.
13095 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13096 (struct btrace_target_info) <begin, end, level>
13097 <insn_history, call_history>: New.
13098 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13099 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13100 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13101 (btrace_call_number, btrace_call_begin, btrace_call_end)
13102 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13103 (btrace_find_function_by_number, btrace_set_insn_history)
13104 (btrace_set_call_history): New.
13105 * btrace.c (btrace_init_insn_iterator)
13106 (btrace_init_func_iterator, compute_itrace): Remove.
13107 (ftrace_print_function_name, ftrace_print_filename)
13108 (ftrace_skip_file): Change
13109 parameter to const.
13110 (ftrace_init_func): Remove.
13111 (ftrace_debug): Use new btrace_function fields.
13112 (ftrace_function_switched): Also consider gaining and
13113 losing symbol information).
13114 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13115 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13116 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13117 New.
13118 (ftrace_new_function): Move. Remove debug print.
13119 (ftrace_update_lines, ftrace_update_insns): New.
13120 (ftrace_update_function): Check for call, ret, and jump.
13121 (compute_ftrace): Renamed to ...
13122 (btrace_compute_ftrace): ...this. Rewritten to compute call
13123 stack.
13124 (btrace_fetch, btrace_clear): Updated.
13125 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13126 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13127 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13128 (btrace_call_number, btrace_call_begin, btrace_call_end)
13129 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13130 (btrace_find_function_by_number, btrace_set_insn_history)
13131 (btrace_set_call_history): New.
13132 * record-btrace.c (require_btrace): Use new btrace thread
13133 info fields.
13134 (record_btrace_info, btrace_insn_history)
13135 (record_btrace_insn_history, record_btrace_insn_history_range):
13136 Use new btrace thread info fields and new iterator.
13137 (btrace_func_history_src_line): Rename to ...
13138 (btrace_call_history_src_line): ...this. Use new btrace
13139 thread info fields.
13140 (btrace_func_history): Rename to ...
13141 (btrace_call_history): ...this. Use new btrace thread info
13142 fields and new iterator.
13143 (record_btrace_call_history, record_btrace_call_history_range):
13144 Use new btrace thread info fields and new iterator.
13145
13146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13147
13148 * frame.h (frame_id_build_unavailable_stack_special): New.
13149 * frame.c (frame_id_build_unavailable_stack_special): New.
13150
13151 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13152
13153 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13154 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13155 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13156 to gdbarch.
13157 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13158 (i386_insn_is_jump, i386_jmp_p): New.
13159 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13160 insn_is_jump to gdbarch.
13161 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13162 * gdbarch.h: Regenerated.
13163 * gdbarch.c: Regenerated.
13164 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13165 (default_insn_is_jump): New.
13166 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13167 (default_insn_is_jump): New.
13168
13169 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13170
13171 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13172 Change to ...
13173 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13174 (btrace_read_type) <btrace_read_new>: Change to ...
13175 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13176
13177 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13178
13179 * common/linux-btrace.c (linux_read_btrace): Free trace from
13180 previous iteration.
13181
13182 2014-01-15 Doug Evans <dje@google.com>
13183
13184 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13185 uint32_t.
13186
13187 2014-01-15 Tom Tromey <tromey@redhat.com>
13188
13189 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13190 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13191 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13192 (set_objfile_main_name): New function.
13193 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13194 language_of_main>: New fields.
13195 (set_objfile_main_name): Declare.
13196 * symtab.c (find_main_name): Loop over objfiles to find the main
13197 name and language.
13198 (set_main_name): Now static.
13199 (get_main_info): Add comment.
13200 * symtab.h (set_main_name): Don't declare.
13201
13202 2014-01-15 Tom Tromey <tromey@redhat.com>
13203
13204 * symtab.c (main_progspace_key): New global.
13205 (struct main_info): New.
13206 (name_of_main, language_of_main): Remove.
13207 (get_main_info, main_info_cleanup): New function.
13208 (set_main_name, main_name, main_language): Use get_main_info.
13209 (_initialize_symtab): Initialize main_progspace_key.
13210
13211 2014-01-15 Tom Tromey <tromey@redhat.com>
13212
13213 * dbxread.c (process_one_symbol): Update.
13214 * dwarf2read.c (read_partial_die): Update.
13215 * symfile.c (set_initial_language): Call main_language.
13216 * symtab.c (language_of_main): Now static.
13217 (set_main_name): Add 'lang' parameter.
13218 (find_main_name): Update.
13219 (main_language): New function.
13220 (symtab_observer_executable_changed): Update.
13221 * symtab.h (set_main_name): Update.
13222 (language_of_main): Remove.
13223 (main_language): Declare.
13224
13225 2014-01-15 Tom Tromey <tromey@redhat.com>
13226
13227 * symfile.c (init_entry_point_info): Use new "initialized" field.
13228 Update.
13229 * objfiles.h (struct entry_point) <initialized>: New field.
13230 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13231 (struct objfile) <ei>: ...here. Remove.
13232 * objfiles.c (entry_point_address_query): Update.
13233
13234 2014-01-15 Tom Tromey <tromey@redhat.com>
13235
13236 * objfiles.c (entry_point_address_query): Relocate entry point
13237 address.
13238 (objfile_relocate1): Do not relocate entry point address.
13239 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13240 <the_bfd_section_index>: New field.
13241 * symfile.c (init_entry_point_info): Find the entry point's
13242 section.
13243
13244 2014-01-15 Tom Tromey <tromey@redhat.com>
13245
13246 * solib-frv.c (enable_break): Use entry_point_address_query.
13247
13248 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13249
13250 * NEWS: Add note on improved process record-replay on
13251 arm*-linux* targets.
13252
13253 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13254
13255 * arm-tdep.c (enum arm_record_result): New enum.
13256 (arm_record_unsupported_insn): New function.
13257 (arm_record_coproc_data_proc): Removed.
13258 (thumb2_record_ld_st_multiple): New function.
13259 (thumb2_record_ld_st_dual_ex_tbb): New function.
13260 (thumb2_record_data_proc_sreg_mimm): New function.
13261 (thumb2_record_ps_dest_generic): New function.
13262 (thumb2_record_branch_misc_cntrl): New function.
13263 (thumb2_record_str_single_data): New function.
13264 (thumb2_record_ld_mem_hints): New function.
13265 (thumb2_record_ld_word): New function.
13266 (thumb2_record_lmul_lmla_div): New function.
13267 (thumb2_record_decode_insn_handler): New function.
13268 (decode_insn): Add thumb32 instruction handlers.
13269
13270 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13271
13272 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13273 (struct arm_linux_record_tdep): Declare.
13274 (arm_canonicalize_syscall): New function.
13275 (arm_all_but_pc_registers_record): New function.
13276 (arm_linux_syscall_record): New function.
13277 (arm_linux_init_abi): Add syscall recording constructs.
13278 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13279 decoding. (arm_record_coproc_data_proc): Update arm syscall
13280 decoding.
13281 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13282 <arm_syscall_record>: New field.
13283 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13284 gdb_target_obs.
13285
13286 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13287
13288 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13289 register for push instruction recording.
13290
13291 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13292
13293 * arm-tdep.c (thumb_record_misc): Update to correct logical
13294 error while recording ldm, ldmia and pop instructions.
13295
13296 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13297
13298 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13299
13300 2014-01-15 Pedro Alves <palves@redhat.com>
13301
13302 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13303 (go32_resume, go32_fetch_registers, store_register)
13304 (go32_store_registers, go32_prepare_to_store)
13305 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13306 (go32_create_inferior, go32_can_run, go32_terminal_init)
13307 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13308 declarations.
13309
13310 2014-01-15 Tom Tromey <tromey@redhat.com>
13311
13312 * target.h (async_callback_ftype): New typedef.
13313 (struct target_ops) <to_async>: Use it.
13314
13315 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13316
13317 * python/py-value.c (get_field_type): Remove unnecessary curly
13318 braces for single-statement if block.
13319
13320 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13321
13322 * python/py-type.c (convert_field): Add missing empty line
13323 after declarations.
13324
13325 2014-01-14 Doug Evans <dje@google.com>
13326
13327 * symfile.h (expand_symtabs_matching): Renamed from
13328 expand_partial_symbol_names. Update prototype.
13329 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13330 * symfile.c (expand_symtabs_matching): Renamed from
13331 expand_partial_symbol_names. New args file_matcher, kind.
13332 Rename arg fun to symbol_matcher.
13333 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13334 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13335 ada_expand_partial_symbol_name.
13336 (ada_make_symbol_completion_list): Update to call
13337 expand_symtabs_matching.
13338 (ada_add_global_exceptions): Call expand_symtabs_matching.
13339 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13340 call map_symbol_filenames.
13341 * symtab.c (sources_info): Update to call map_symbol_filenames.
13342 (search_symbols): Call expand_symtabs_matching.
13343 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13344 (default_make_symbol_completion_list_break_on): Update to call
13345 expand_symtabs_matching.
13346 (make_source_files_completion_list): Update to call
13347 map_symbol_filenames.
13348
13349 2014-01-14 Doug Evans <dje@google.com>
13350
13351 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13352 (expand_symtabs_symbol_matcher_ftype): New typedef.
13353 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13354 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13355 * symfile.c (expand_partial_symbol_names): Update to use
13356 expand_symtabs_symbol_matcher_ftype.
13357 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13358 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13359 Arg name_matcher renamed to symbol_matcher.
13360 * psymtab.c (recursively_search_psymtabs): Update to use
13361 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13362 sym_matcher.
13363 (expand_symtabs_matching_via_partial): Update to use
13364 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13365 Arg name_matcher renamed to symbol_matcher.
13366
13367 2014-01-14 Doug Evans <dje@google.com>
13368
13369 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13370 (map_partial_symbol_filenames): Ditto.
13371 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13372 (map_partial_symbol_filenames): Ditto.
13373 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13374 (map_partial_symbol_filenames): Ditto.
13375 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13376 (map_partial_symbol_filenames): Ditto.
13377 * symtab.c: Delete #include "psymtab.h".
13378
13379 2014-01-14 Pedro Alves <palves@redhat.com>
13380 Tom Tromey <tromey@redhat.com>
13381
13382 * infrun.c (use_displaced_stepping): Use find_record_target
13383 instead of RECORD_IS_USED.
13384 (adjust_pc_after_break): Use record_full_is_used instead of
13385 RECORD_IS_USED.
13386 * record-btrace.c (record_btrace_open): Call record_preopen
13387 instead of checking RECORD_IS_USED.
13388 * record-full.c (record_full_shortname)
13389 (record_full_core_shortname): New globals.
13390 (record_full_is_used): New function.
13391 (find_full_open): Call record_preopen instead of checking
13392 RECORD_IS_USED.
13393 (init_record_full_ops): Set the target's shortname to
13394 record_full_shortname.
13395 (init_record_full_core_ops): Set the target's shortname to
13396 record_full_core_shortname.
13397 * record-full.h (record_full_is_used): Declare.
13398 * record.c (find_record_target): Make extern.
13399 (record_preopen): New function.
13400 * record.h (RECORD_IS_USED): Delete macro.
13401 (find_record_target, record_preopen): Declare functions.
13402
13403 2014-01-14 Yao Qi <yao@codesourcery.com>
13404
13405 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13406 'len''s type to ULONGEST.
13407 (core_xfer_shared_libraries_aix): Likewise.
13408 * gdbarch.c, gdbarch.h: Regenerated.
13409 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13410 Change type of 'len' to ULONGEST.
13411 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13412 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13413
13414 2014-01-14 Yao Qi <yao@codesourcery.com>
13415
13416 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13417 type of 'len' to ULONGEST.
13418 (linux_xfer_osdata_processgroups): Likewise.
13419 (linux_xfer_osdata_threads): Likewise.
13420 (linux_xfer_osdata_fds): Likewise.
13421 (linux_xfer_osdata_isockets): Likewise.
13422 (linux_xfer_osdata_shm): Likewise.
13423 (linux_xfer_osdata_sem): Likewise.
13424 (linux_xfer_osdata_msg): Likewise.
13425 (linux_common_xfer_osdata): Likewise.
13426 (struct osdata_type) <getter>: Likewise.
13427 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13428 the declaration.
13429
13430 2014-01-14 Yao Qi <yao@codesourcery.com>
13431
13432 * target.h (target_xfer_partial_ftype): Update.
13433 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13434 ULONGEST.
13435 * aix-thread.c (aix_thread_xfer_partial): Change type of
13436 argument 'len' to ULONGEST.
13437 * auxv.c (procfs_xfer_auxv): Likewise.
13438 (ld_so_xfer_auxv): Likewise.
13439 (memory_xfer_auxv): Likewise.
13440 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13441 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13442 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13443 * corelow.c (core_xfer_partial): Likewise.
13444 * ctf.c (ctf_xfer_partial): Likewise.
13445 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13446 '%u'.
13447 (darwin_read_dyld_info): Likewise.
13448 (darwin_xfer_partial): Likewise.
13449 * exec.c (section_table_xfer_memory_partial): Likewise.
13450 (exec_xfer_partial): Likewise.
13451 * exec.h (section_table_xfer_memory_partial): Update
13452 declaration.
13453 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13454 instead of plongest.
13455 (gnu_xfer_partial): Likewise.
13456 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13457 (ia64_hpux_xfer_solib_got): Likewise.
13458 (ia64_hpux_xfer_partial): Likewise.
13459 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13460 * inf-ptrace.c (inf_ptrace_xfer_partial):
13461 * inf-ttrace.c (inf_ttrace_xfer_partial):
13462 * linux-nat.c (linux_xfer_siginfo): Likewise.
13463 (linux_nat_xfer_partial): Likewise.
13464 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13465 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13466 * monitor.c (monitor_xfer_memory): Likewise.
13467 (monitor_xfer_partial): Likewise.
13468 * procfs.c (procfs_xfer_partial): Likewise.
13469 * record-full.c (record_full_xfer_partial): Likewise.
13470 (record_full_core_xfer_partial): Likewise.
13471 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13472 instead of plongest.
13473 (gdbsim_xfer_partial): Likewise.
13474 * remote.c (remote_xfer_partial): Likewise.
13475 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13476 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13477 declaration.
13478 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13479 (rs6000_xfer_shared_libraries): Likewise.
13480 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13481 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13482 (sparc_xfer_partial): Likewise.
13483 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13484 (spu_xfer_partial): Likewise.
13485 * spu-multiarch.c (spu_xfer_partial): Likewise.
13486 * target.c (target_read_live_memory): Likewise.
13487 (memory_xfer_live_readonly_partial): Likewise.
13488 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13489 (target_xfer_partial, default_xfer_partial): Likewise.
13490 (current_xfer_partial): Likewise.
13491 * tracepoint.c (tfile_xfer_partial): Likewise.
13492 * windows-nat.c (windows_xfer_memory): Likewise. Call
13493 pulongest instead of plongest.
13494 (windows_xfer_partial): Likewise.
13495 (windows_xfer_shared_libraries): Likewise.
13496
13497 2014-01-14 Yao Qi <yao@codesourcery.com>
13498
13499 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13500 target_xfer_partial_ftype.
13501
13502 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13503
13504 PR python/15464
13505 PR python/16113
13506 * valops.c (value_struct_elt_bitpos): New function
13507 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13508 object to 'None' if the field name is an empty string ("").
13509 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13510 attribute to look for a field when 'name' is 'None'.
13511 (get_field_type): New function
13512
13513 2014-01-13 Doug Evans <dje@google.com>
13514
13515 PR symtab/16426
13516 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13517 (try_open_dwop_file): Ditto.
13518 * gdb_bfd.c: #include "vec.h".
13519 (bfdp): New typedef.
13520 (struct gdb_bfd_data): New member included_bfds.
13521 (gdb_bfd_unref): Unref all included bfds.
13522 (gdb_bfd_record_inclusion): New function.
13523 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13524
13525 2014-01-13 Tom Tromey <tromey@redhat.com>
13526
13527 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13528
13529 2014-01-13 Tom Tromey <tromey@redhat.com>
13530
13531 * defs.h (use_windows): Remove.
13532 * gdb.c (main): Update.
13533 * main.c (captured_main, gdb_main): Update.
13534 * main.h (struct captured_main_args) <use_windows>: Remove.
13535 * top.c (use_windows): Remove.
13536
13537 2014-01-13 Tom Tromey <tromey@redhat.com>
13538
13539 * defs.h (deprecated_flush_hook): Remove.
13540
13541 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13542
13543 PR threads/16216
13544 * linux-thread-db.c (try_thread_db_load): Add parameter
13545 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13546 (try_thread_db_load_from_pdir_1): Move it there from here.
13547 (try_thread_db_load_from_sdir): Update caller.
13548 (try_thread_db_load_from_dir): Move it there from here.
13549
13550 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13551
13552 * regformats/regdat.sh: Always rewrite the register file.
13553
13554 2014-01-13 Pedro Alves <palves@redhat.com>
13555
13556 * Makefile.in (CHECK_HEADERS): New variable.
13557 (check-headers:): New rule.
13558
13559 2014-01-13 Tom Tromey <tromey@redhat.com>
13560
13561 * cli/cli-setshow.c (do_set_command): Update.
13562 * defs.h (deprecated_set_hook): Remove.
13563 * top.c (deprecated_set_hook): Remove.
13564
13565 2014-01-13 Pedro Alves <palves@redhat.com>
13566
13567 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13568 the tracepoint if the PC is a pseudo-register.
13569
13570 2014-01-13 Tom Tromey <tromey@redhat.com>
13571
13572 * defs.h (XCALLOC): Remove.
13573 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13574 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13575 * dwarf2loc.c (allocate_piece_closure): Likewise.
13576 * elfread.c (elf_symfile_segments): Likewise.
13577 (elf_symfile_segments): Likewise.
13578 * gdbtypes.c (copy_type_recursive): Likewise.
13579 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13580 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13581 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13582 XCALLOC.
13583 * mt-tdep.c (mt_gdbarch_init): Likewise.
13584 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13585 XCALLOC.
13586 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13587 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13588 * registry.c (registry_alloc_data): Likewise.
13589 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13590 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13591 * serial.c (serial_fdopen_ops): Likewise.
13592 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13593 XCALLOC.
13594 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13595 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13596 not XCALLOC.
13597
13598 2014-01-13 Tom Tromey <tromey@redhat.com>
13599
13600 * defs.h (XMALLOC): Remove.
13601 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13602 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13603 * cli-out.c (struct ui_out *): Likewise.
13604 * cli/cli-dump.c (add_dump_command): Likewise.
13605 (add_dump_command): Likewise.
13606 * complaints.c (get_complaints): Likewise.
13607 (find_complaint): Likewise.
13608 * dwarf2-frame.c (execute_cfa_program): Likewise.
13609 * dwarf2read.c (abbrev_table_read_table): Likewise.
13610 * gdbarch.sh: Likewise.
13611 * gdbarch.c: Rebuild.
13612 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13613 * interps.c (interp_new): Likewise.
13614 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13615 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13616 * mi/mi-console.c (mi_console_file_new): Likewise.
13617 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13618 * mi/mi-out.c (mi_out_new): Likewise.
13619 * mi/mi-parse.c (mi_parse): Likewise.
13620 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13621 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13622 * observer.c (xalloc_observer_list_node): Likewise.
13623 * regcache.c (regcache_xmalloc_1): Likewise.
13624 * reggroups.c (reggroup_new): Likewise.
13625 (_initialize_reggroup): Likewise.
13626 * registry.c (register_data_with_cleanup): Likewise.
13627 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13628 * ser-base.c (serial_ttystate): Likewise.
13629 * ser-mingw.c (make_pipe_state): Likewise.
13630 * ser-pipe.c (pipe_open): Likewise.
13631 * serial.c (serial_open): Likewise.
13632 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13633 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13634 (tui_alloc_win_info): Likewise.
13635 (tui_add_content_elements): Likewise.
13636 * tui/tui-file.c (tui_file_new): Likewise.
13637 * tui/tui-out.c (tui_out_new): Likewise.
13638 * ui-file.c (mem_file_new): Likewise.
13639 * ui-out.c (push_level): Likewise.
13640 (make_cleanup_ui_out_end): Likewise.
13641 (append_header_to_list): Likewise.
13642 (ui_out_new): Likewise.
13643 * user-regs.c (user_reg_add_builtin): Likewise.
13644
13645 2014-01-13 Tom Tromey <tromey@redhat.com>
13646
13647 * defs.h (XZALLOC): Remove.
13648 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13649 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13650 (get_ada_tasks_inferior_data): Likewise.
13651 * auto-load.c (get_auto_load_pspace_data): Likewise.
13652 * auxv.c (get_auxv_inferior_data): Likewise.
13653 * bfd-target.c (target_bfd_reopen): Likewise.
13654 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13655 (deprecated_insert_raw_breakpoint): Likewise.
13656 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13657 * corelow.c (core_open): Likewise.
13658 * darwin-nat.c (darwin_check_new_threads): Likewise.
13659 (darwin_attach_pid): Likewise.
13660 * dummy-frame.c (dummy_frame_push): Likewise.
13661 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13662 * dwarf2loc.c (allocate_piece_closure): Likewise.
13663 * elfread.c (elf_symfile_segments): Likewise.
13664 * eval.c (ptrmath_type_p): Likewise.
13665 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13666 * gdbtypes.c (alloc_type_arch): Likewise.
13667 (alloc_type_instance): Likewise.
13668 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13669 * inf-child.c (inf_child_can_use_agent): Likewise.
13670 * inflow.c (get_inflow_inferior_data): Likewise.
13671 * infrun.c (save_infcall_suspend_state): Likewise.
13672 * jit.c (jit_reader_load): Likewise.
13673 (get_jit_objfile_data): Likewise.
13674 (get_jit_program_space_data): Likewise.
13675 (jit_object_open_impl): Likewise.
13676 (jit_symtab_open_impl): Likewise.
13677 (jit_block_open_impl): Likewise.
13678 (jit_frame_sniffer): Likewise.
13679 * linux-fork.c (add_fork): Likewise.
13680 * maint.c (make_command_stats_cleanup): Likewise.
13681 * objfiles.c (get_objfile_pspace_data): Likewise.
13682 * opencl-lang.c (struct lval_closure): Likewise.
13683 * osdata.c (osdata_start_osdata): Likewise.
13684 * progspace.c (new_address_space): Likewise.
13685 (add_program_space): Likewise.
13686 * remote-sim.c (get_sim_inferior_data): Likewise.
13687 * sh-tdep.c (sh_gdbarch_init): Likewise.
13688 * skip.c (Ignore): Likewise.
13689 (skip_delete_command): Likewise.
13690 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13691 (library_list_start_library): Likewise.
13692 (solib_aix_current_sos): Likewise.
13693 * solib-darwin.c (get_darwin_info): Likewise.
13694 (darwin_current_sos): Likewise.
13695 * solib-dsbt.c (get_dsbt_info): Likewise.
13696 * solib-ia64-hpux.c (new_so_list): Likewise.
13697 (ia64_hpux_get_solib_linkage_addr): Likewise.
13698 * solib-spu.c (append_ocl_sos): Likewise.
13699 (spu_current_sos): Likewise.
13700 * solib-svr4.c (get_svr4_info): Likewise.
13701 (svr4_keep_data_in_core): Likewise.
13702 (library_list_start_library): Likewise.
13703 (svr4_default_sos): Likewise.
13704 (svr4_read_so_list): Likewise.
13705 * solib-target.c (library_list_start_library): Likewise.
13706 (solib_target_current_sos): Likewise.
13707 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13708 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13709 * symfile.c (default_symfile_segments): Likewise.
13710 * target-descriptions.c (tdesc_data_init): Likewise.
13711 (tdesc_create_reg): Likewise.
13712 (struct tdesc_type *): Likewise.
13713 (tdesc_create_vector): Likewise.
13714 (tdesc_set_struct_size): Likewise.
13715 (struct tdesc_type *): Likewise.
13716 (tdesc_free_feature): Likewise.
13717 (tdesc_create_feature): Likewise.
13718 * windows-nat.c (windows_add_thread): Likewise.
13719 (windows_make_so): Likewise.
13720 * xml-support.c (gdb_xml_body_text): Likewise.
13721 (gdb_xml_create_parser_and_cleanup): Likewise.
13722 (xml_process_xincludes): Likewise.
13723 * xml-syscall.c (allocate_syscalls_info): Likewise.
13724 (syscall_create_syscall_desc): Likewise.
13725
13726 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13727
13728 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13729 function, with code from i386_stap_parse_special_token.
13730 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13731 (i386_stap_parse_special_token): Move code to the two functions
13732 above; simplify it.
13733
13734 2014-01-09 Pedro Alves <palves@redhat.com>
13735 Hui Zhu <hui@codesourcery.com>
13736
13737 PR gdb/16101
13738 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13739 bp_err_string. Don't mark the location shlib_disabled if the
13740 error thrown wasn't a generic or memory error. Catch errors
13741 thrown while inserting breakpoints in overlayed code. Output
13742 error message of software breakpoints.
13743 * remote.c (remote_insert_breakpoint): If this breakpoint has
13744 target-side commands but this stub doesn't support Z0 packets,
13745 throw NOT_SUPPORTED_ERROR error.
13746 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13747 * target.h (target_insert_breakpoint): Extend comment.
13748 (target_insert_hw_breakpoint): Add comment.
13749
13750 2014-01-08 Pedro Alves <palves@redhat.com>
13751
13752 * remote.c (remote_add_thread): Add threads silently if starting
13753 up.
13754 (remote_notice_new_inferior): If in all-stop, and starting up,
13755 don't call notice_new_inferior.
13756 (get_current_thread): New function, factored out from ...
13757 (add_current_inferior_and_thread): ... this. Adjust.
13758 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13759 found any thread, then select the remote's current thread as GDB's
13760 current thread too.
13761
13762 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13763
13764 * NEWS: Create a new section for the next release branch.
13765 Rename the section of the current branch, now that it has
13766 been cut.
13767
13768 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13769
13770 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13771 * version.in: Bump version to 7.7.50.DATE-cvs.
13772
13773 2014-01-08 Yao Qi <yao@codesourcery.com>
13774
13775 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13776 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13777 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13778
13779 2014-01-08 Yao Qi <yao@codesourcery.com>
13780
13781 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13782 return value of bfd_get_filename to symbol_file_add_from_bfd.
13783
13784 2014-01-08 Pierre Muller <muller@sourceware.org>
13785
13786 Fix PR16201.
13787 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13788 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13789 to prim_record_mininal_symbol_and_info.
13790 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13791 in call to prim_record_minimal_symbol_and_info.
13792 (read_pe_exported_syms): Set index field of section_data.
13793
13794 2014-01-07 Andrew Pinski <apinski@cavium.com>
13795
13796 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13797 * features/aarch64.c: Regenerate.
13798
13799 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13800
13801 * target.c (return_null): Define.
13802 (update_current_target): Use it instead of return_zero for
13803 functions that return a pointer.
13804
13805 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13806
13807 * source.c (add_path): Fix check for duplicated paths in the previously
13808 included paths.
13809
13810 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13811
13812 * ada-lang.c: Remove duplicated include statements.
13813 * alphabsd-nat.c: Ditto.
13814 * amd64-darwin-tdep.c: Ditto.
13815 * amd64fbsd-nat.c: Ditto.
13816 * auto-load.c: Ditto.
13817 * ax-gdb.c: Ditto.
13818 * breakpoint.c: Ditto.
13819 * dbxread.c: Ditto.
13820 * fork-child.c: Ditto.
13821 * gdb_usleep.c: Ditto.
13822 * i386-darwin-tdep.c: Ditto.
13823 * i386fbsd-nat.c: Ditto.
13824 * infcmd.c: Ditto.
13825 * inferior.c: Ditto.
13826 * jv-lang.c: Ditto.
13827 * linux-nat.c: Ditto.
13828 * linux-tdep.c: Ditto.
13829 * m68kbsd-nat.c: Ditto.
13830 * m68klinux-nat.c: Ditto.
13831 * microblaze-tdep.c: Ditto.
13832 * mips-linux-tdep.c: Ditto.
13833 * mn10300-tdep.c: Ditto.
13834 * nto-tdep.c: Ditto.
13835 * opencl-lang.c: Ditto.
13836 * osdata.c: Ditto.
13837 * printcmd.c: Ditto.
13838 * regcache.c: Ditto.
13839 * remote-m32r-sdi.c: Ditto.
13840 * remote.c: Ditto.
13841 * symfile.c: Ditto.
13842 * symtab.c: Ditto.
13843 * tilegx-linux-nat.c: Ditto.
13844 * tilegx-tdep.c: Ditto.
13845 * tracepoint.c: Ditto.
13846 * valops.c: Ditto.
13847 * vaxbsd-nat.c: Ditto.
13848 * windows-nat.c: Ditto.
13849 * xtensa-tdep.c: Ditto.
13850
13851 2014-01-07 Yao Qi <yao@codesourcery.com>
13852
13853 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13854
13855 2014-01-07 Yao Qi <yao@codesourcery.com>
13856 Joel Brobecker <brobecker@adacore.com>
13857
13858 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13859 (pdc_write_regs): Likewise.
13860 (fetch_regs_kernel_thread): Likewise.
13861 (store_regs_kernel_thread): Likewise.
13862
13863 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13864
13865 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13866 tagged type objects to their actual type.
13867
13868 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13869
13870 * ada-valprint.c (print_field_values): Add "language" parameter.
13871 Update calls to print_field_values and print_variant_part.
13872 Pass new parameter "language" in call to val_print instead
13873 of "current_language". Replace call to ada_val_print by call
13874 to val_print.
13875 (print_variant_part): Add "language" parameter.
13876 (ada_val_print_struct_union): Update call to print_field_values.
13877
13878 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13879
13880 * ada-valprint.c (ui_memcpy): Delete.
13881 (ada_print_floating): Update documentation. Add empty line
13882 between between function documentation and implementation.
13883 Delete variable "buffer". Use ui_file_xstrdup in place of
13884 ui_file_put. Minor adjustments following this change.
13885
13886 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13887
13888 * ada-valprint.c (ada_val_print_string): New function,
13889 extracted from ada_val_print_array.
13890 (ada_val_print_array): Replace extracted code by call
13891 to ada_val_print_string followed by a return. Move
13892 "else" branch to the function's top block.
13893
13894 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13895
13896 * ada-valprint.c (ada_val_print_array): Move implementation
13897 down. Rename parameter "offset" and "val" into "offset_aligned"
13898 and "original_value" respectively. Add parameter "offset".
13899
13900 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13901
13902 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13903 re-organizing the code. Change the "???" message printed
13904 when target type is a TYPE_CODE_UNDEF into
13905 "<ref to undefined type>".
13906
13907 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13908
13909 * ada-valprint.c (print_record): Delete, implementation inlined...
13910 (ada_val_print_struct_union): ... here. Remove call to
13911 ada_check_typedef in inlined implementation.
13912
13913 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13914
13915 * ada-valprint.c (ada_val_print_gnat_array): New function,
13916 extracted from ada_val_print_1;
13917 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13918 (ada_val_print_flt, ada_val_print_struct_union)
13919 (ada_val_print_ref): Likewise.
13920 (ada_val_print_1): Delete variables i and elttype.
13921 Replace extracted-out code by call to corresponding
13922 new functions.
13923
13924 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13925
13926 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13927
13928 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13929
13930 * ada-valprint.c (ada_val_print_1): Replace calls to
13931 ada_val_print_1 by calls to val_print.
13932
13933 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13934
13935 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13936 Update calls to self accordingly. Replace calls to c_val_print
13937 by calls to val_print.
13938
13939 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13940
13941 * ada-valprint.c (print_record): Delete declaration.
13942 (adjust_type_signedness, ada_val_print_1): Likewise.
13943 (ada_val_print): Move function implementation down.
13944 (print_variant_part, print_field_values, print_record):
13945 Move function implementation up.
13946
13947 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13948
13949 * python/py-type.c (typy_get_name): New function.
13950 (type_object_getset): Add entry for attribute "name".
13951 * NEWS: Add entry mentioning this new attribute.
13952
13953 2014-01-07 Yao Qi <yao@codesourcery.com>
13954
13955 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13956 statement.
13957
13958 2014-01-07 Yao Qi <yao@codesourcery.com>
13959
13960 * gnu-nat.c (info_port_rights): Add qualifier const to
13961 argument args.
13962
13963 2014-01-07 Yao Qi <yao@codesourcery.com>
13964
13965 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13966
13967 2014-01-07 Yao Qi <yao@codesourcery.com>
13968
13969 * gnu-nat.c (make_inf) Update declaration.
13970 (make_inf): Make it static.
13971 (inf_set_traced): Likewise.
13972 (inf_port_to_thread, inf_task_died_status): Likewise.
13973
13974 2014-01-07 Yao Qi <yao@codesourcery.com>
13975
13976 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13977
13978 2014-01-07 Yao Qi <yao@codesourcery.com>
13979
13980 * gnu-nat.c (_initialize_gnu_nat): Declare.
13981
13982 2014-01-07 Yao Qi <yao@codesourcery.com>
13983
13984 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13985 'enum bfd_endian'.
13986 (struct gdbarch_info) <byte_order>: Change type to
13987 'enum bfd_endian'.
13988 <byte_order_for_code>: Likewise.
13989 * gdbarch.c, gdbarch.h: Regenerated.
13990
13991 2014-01-06 Sasha Smundak <asmundak@google.com>
13992
13993 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13994
13995 2014-01-06 Tom Tromey <tromey@redhat.com>
13996
13997 * doublest.c (convert_doublest_to_floatformat): Use const, not
13998 CONST.
13999 * somread.c (som_symtab_read): Likewise.
14000
14001 2014-01-07 Hui Zhu <hui@codesourcery.com>
14002
14003 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14004 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14005 (gdb_bfd_fopen): Ditto.
14006 (gdb_bfd_openr): Ditto.
14007 (gdb_bfd_openw): Ditto.
14008 (gdb_bfd_openr_iovec): Ditto.
14009 (gdb_bfd_fdopenr): Ditto.
14010 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14011 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14012 with xstrdup.
14013 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14014 with xstrdup.
14015 * symfile-mem.c (symbol_file_add_from_memory): Removed
14016 gdb_bfd_stash_filename.
14017
14018 2014-01-03 Doug Evans <dje@google.com>
14019
14020 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14021 output.
14022
14023 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14024
14025 Update year range in copyright notice of all files.
14026
14027 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14028
14029 * top.c (print_gdb_version): Set copyright year to 2014.
14030
14031 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14032
14033 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14034
14035 For older changes see ChangeLog-2013.
14036 \f
14037 Local Variables:
14038 mode: change-log
14039 left-margin: 8
14040 fill-column: 74
14041 version-control: never
14042 coding: utf-8
14043 End:
This page took 0.484728 seconds and 4 git commands to generate.