Microblaze: Replace microblaze-expedite from pc to rpc
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2
3 * features/Makefile (microblaze-expedite): Replace pc with rpc.
4 * regformats/microblaze-with-stack-protect.dat: Regenerate.
5
6 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
7
8 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
9 as non-trivial.
10
11 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
12
13 PR c++/13403
14 PR c++/15154
15 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
16 with qualified args.
17
18 2014-10-14 Joel Brobecker <brobecker@adacore.com>
19
20 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
21 of the case where the second operand is a pointer.
22 <BINOP_SUB>: Likewise.
23
24 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
25
26 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
27 only if it is not NULL.
28 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
29 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
30 (struct probe_ops) <clear_semaphore>: Likewise.
31 * tracepoint.c (start_tracing): Call set_semaphore only if it is
32 not NULL.
33 (stop_tracing): Likewise, for clear_semaphore.
34
35 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
36
37 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
38 using language_c, instead of current_language.
39
40 2014-10-13 Doug Evans <dje@google.com>
41
42 * python/py-objfile.c (objfpy_initialize): New function.
43 (objfpy_new, objfile_to_objfile_object): Call it.
44 * python/py-progspace.c (pspy_initialize): New function.
45 (pspy_new, pspace_to_pspace_object): Call it.
46
47 2014-10-13 Miroslav Franc <mfranc@redhat.com>
48 Jan Kratochvil <jan.kratochvil@redhat.com>
49
50 Fix "save breakpoints" for "catch" command.
51 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
52 newline.
53
54 2014-10-12 Miroslav Franc <mfranc@redhat.com>
55
56 Fix "save breakpoints" for "disable $bpnum" command.
57 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
58
59 2014-10-10 Pedro Alves <palves@redhat.com>
60
61 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
62 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
63 (HFILES_NO_SRCDIR): Remove solib-irix.h.
64 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
65 and been removed.
66 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
67 * configure.ac: Remove references to IRIX.
68 * configure.host: Add *-*-irix* to the obsolete hosts section.
69 Remove all other references to irix.
70 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
71 Delete files.
72
73 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
74
75 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
76 isn't valid, release the tdesc arch data and return NULL.
77
78 2014-10-10 Pedro Alves <palves@redhat.com>
79
80 * linux-tdep.c: Include observer.h.
81 (linux_inferior_data): New global.
82 (struct linux_info): New structure.
83 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
84 (get_linux_inferior_data): New functions.
85 (linux_vsyscall_range): Rename to ...
86 (linux_vsyscall_range_raw): ... this.
87 (linux_vsyscall_range): New function; handles caching.
88 (_initialize_linux_tdep): Register linux_inferior_data. Install
89 inferior_exit and inferior_appeared observers.
90
91 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
92 Pedro Alves <palves@redhat.com>
93
94 PR symtab/14466
95 * solib-svr4.c (svr4_read_so_list): Rename to ...
96 (svr4_current_sos_1): ... this and change the function comment.
97 (svr4_current_sos): New function.
98
99 2014-10-10 Pedro Alves <palves@redhat.com>
100
101 * arch-utils.c (default_vsyscall_range): New function.
102 * arch-utils.h (default_vsyscall_range): New declaration.
103 * gdbarch.sh (vsyscall_range): New hook.
104 * gdbarch.h, gdbarch.c: Regenerate.
105 * linux-tdep.c (linux_vsyscall_range): New function.
106 (linux_init_abi): Install linux_vsyscall_range as
107 vsyscall_range gdbarch hook.
108 * memrange.c (address_in_mem_range): New function.
109 * memrange.h (address_in_mem_range): New declaration.
110 * symfile-mem.c (find_vdso_size): Delete function.
111 (add_vsyscall_page): Use gdbarch_vsyscall_range.
112
113 2014-10-10 Pedro Alves <palves@redhat.com>
114
115 * infrun.c (normal_stop): Fix typo in comment.
116
117 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
118
119 PR tdep/9390
120 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
121 typo when using logical AND to determine instruction type.
122
123 2014-10-09 Yao Qi <yao@codesourcery.com>
124
125 * infrun.c (handle_signal_stop): Remove local variable
126 'printed'.
127
128 2014-10-08 Stan Shebs <stan@codesourcery.com>
129
130 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
131
132 2014-10-08 Gary Benson <gbenson@redhat.com>
133
134 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
135
136 2014-10-08 Gary Benson <gbenson@redhat.com>
137
138 * common/common-defs.h: Include common-exceptions.h.
139 * exceptions.h: Do not include common-exceptions.h.
140
141 2014-10-08 Gary Benson <gbenson@redhat.com>
142
143 * common/common-defs.h: Include cleanups.h.
144 * common/common-exceptions.c: Do not include cleanups.h.
145 * utils.h: Likewise.
146
147 2014-10-08 Gary Benson <gbenson@redhat.com>
148
149 * ada-lang.c: Do not include exceptions.h.
150 * ada-valprint.c: Likewise.
151 * amd64-tdep.c: Likewise.
152 * auto-load.c: Likewise.
153 * block.c: Likewise.
154 * break-catch-throw.c: Likewise.
155 * breakpoint.c: Likewise.
156 * btrace.c: Likewise.
157 * c-lang.c: Likewise.
158 * cli/cli-cmds.c: Likewise.
159 * cli/cli-interp.c: Likewise.
160 * cli/cli-script.c: Likewise.
161 * completer.c: Likewise.
162 * corefile.c: Likewise.
163 * corelow.c: Likewise.
164 * cp-abi.c: Likewise.
165 * cp-support.c: Likewise.
166 * cp-valprint.c: Likewise.
167 * darwin-nat.c: Likewise.
168 * dwarf2-frame-tailcall.c: Likewise.
169 * dwarf2-frame.c: Likewise.
170 * dwarf2loc.c: Likewise.
171 * dwarf2read.c: Likewise.
172 * eval.c: Likewise.
173 * event-loop.c: Likewise.
174 * event-top.c: Likewise.
175 * f-valprint.c: Likewise.
176 * frame-unwind.c: Likewise.
177 * frame.c: Likewise.
178 * gdbtypes.c: Likewise.
179 * gnu-v2-abi.c: Likewise.
180 * gnu-v3-abi.c: Likewise.
181 * guile/scm-auto-load.c: Likewise.
182 * guile/scm-breakpoint.c: Likewise.
183 * guile/scm-cmd.c: Likewise.
184 * guile/scm-frame.c: Likewise.
185 * guile/scm-lazy-string.c: Likewise.
186 * guile/scm-param.c: Likewise.
187 * guile/scm-symbol.c: Likewise.
188 * guile/scm-type.c: Likewise.
189 * hppa-hpux-tdep.c: Likewise.
190 * i386-tdep.c: Likewise.
191 * inf-loop.c: Likewise.
192 * infcall.c: Likewise.
193 * infcmd.c: Likewise.
194 * infrun.c: Likewise.
195 * interps.c: Likewise.
196 * interps.h: Likewise.
197 * jit.c: Likewise.
198 * linespec.c: Likewise.
199 * linux-nat.c: Likewise.
200 * linux-thread-db.c: Likewise.
201 * m32r-rom.c: Likewise.
202 * main.c: Likewise.
203 * memory-map.c: Likewise.
204 * mi/mi-cmd-break.c: Likewise.
205 * mi/mi-cmd-stack.c: Likewise.
206 * mi/mi-interp.c: Likewise.
207 * mi/mi-main.c: Likewise.
208 * monitor.c: Likewise.
209 * nto-procfs.c: Likewise.
210 * objc-lang.c: Likewise.
211 * p-valprint.c: Likewise.
212 * parse.c: Likewise.
213 * ppc-linux-tdep.c: Likewise.
214 * printcmd.c: Likewise.
215 * probe.c: Likewise.
216 * python/py-auto-load.c: Likewise.
217 * python/py-breakpoint.c: Likewise.
218 * python/py-cmd.c: Likewise.
219 * python/py-finishbreakpoint.c: Likewise.
220 * python/py-frame.c: Likewise.
221 * python/py-framefilter.c: Likewise.
222 * python/py-function.c: Likewise.
223 * python/py-gdb-readline.c: Likewise.
224 * python/py-inferior.c: Likewise.
225 * python/py-infthread.c: Likewise.
226 * python/py-lazy-string.c: Likewise.
227 * python/py-linetable.c: Likewise.
228 * python/py-param.c: Likewise.
229 * python/py-prettyprint.c: Likewise.
230 * python/py-symbol.c: Likewise.
231 * python/py-type.c: Likewise.
232 * python/py-value.c: Likewise.
233 * python/python-internal.h: Likewise.
234 * python/python.c: Likewise.
235 * record-btrace.c: Likewise.
236 * record-full.c: Likewise.
237 * regcache.c: Likewise.
238 * remote-fileio.c: Likewise.
239 * remote-mips.c: Likewise.
240 * remote.c: Likewise.
241 * rs6000-aix-tdep.c: Likewise.
242 * rs6000-nat.c: Likewise.
243 * skip.c: Likewise.
244 * solib-darwin.c: Likewise.
245 * solib-dsbt.c: Likewise.
246 * solib-frv.c: Likewise.
247 * solib-ia64-hpux.c: Likewise.
248 * solib-spu.c: Likewise.
249 * solib-svr4.c: Likewise.
250 * solib.c: Likewise.
251 * spu-tdep.c: Likewise.
252 * stack.c: Likewise.
253 * stap-probe.c: Likewise.
254 * symfile-mem.c: Likewise.
255 * symmisc.c: Likewise.
256 * target.c: Likewise.
257 * thread.c: Likewise.
258 * top.c: Likewise.
259 * tracepoint.c: Likewise.
260 * tui/tui-interp.c: Likewise.
261 * typeprint.c: Likewise.
262 * utils.c: Likewise.
263 * valarith.c: Likewise.
264 * valops.c: Likewise.
265 * valprint.c: Likewise.
266 * value.c: Likewise.
267 * varobj.c: Likewise.
268 * windows-nat.c: Likewise.
269 * xml-support.c: Likewise.
270
271 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
272
273 * mips-tdep.c (add_offset_16): Rewrite to implement what the
274 name implies.
275 (extended_mips16_next_pc): Update accordingly.
276
277 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
278
279 * mips-tdep.c (mips16_instruction_is_compact_branch): New
280 function.
281 (micromips_instruction_is_compact_branch): Likewise.
282 (mips16_scan_prologue): Terminate scanning upon seeing a branch
283 or a compact jump, reaching a jump delay slot, or seeing a
284 second non-prologue instruction.
285 (micromips_scan_prologue): Also terminate scanning upon seeing a
286 compact branch or jump, or reaching a branch or jump delay slot.
287 (mips32_scan_prologue): Terminate scanning upon reaching a branch
288 or jump delay slot, or seeing a second non-prologue instruction.
289 (mips32_instruction_has_delay_slot): Retain instruction
290 examination code only, update arguments accordingly and move
291 instruction fetch pieces to...
292 (mips32_insn_at_pc_has_delay_slot): ... this new function.
293 (micromips_instruction_has_delay_slot): Likewise and to...
294 (micromips_insn_at_pc_has_delay_slot): ... this new function.
295 (mips16_instruction_has_delay_slot): Likewise and to...
296 (mips16_insn_at_pc_has_delay_slot): ... this new function.
297 (mips_single_step_through_delay): Update accordingly.
298 (mips_adjust_breakpoint_address): Likewise.
299
300 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
301
302 * mips-tdep.c (micromips_instruction_has_delay_slot): When
303 !mustbe32 also return 1 for 32-bit instructions.
304 (mips16_instruction_has_delay_slot): Likewise. Add an
305 explanatory comment.
306
307 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
308
309 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
310 symbols special.
311
312 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
313
314 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
315 update comments.
316 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
317 for the breakpoint's address. Don't preinitialize `placed_size'.
318 (insert_bp_location): Set `reqstd_address' rather than
319 `placed_address'.
320 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
321 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
322 address.
323 (bkpt_remove_location): Likewise.
324 (deprecated_insert_raw_breakpoint): Likewise.
325 (deprecated_remove_raw_breakpoint): Likewise.
326 (find_single_step_breakpoint): Likewise.
327 * mem-break.c (default_memory_insert_breakpoint): Use
328 `reqstd_address' for the breakpoint's address. Don't set
329 `placed_address' or `placed_size' if breakpoint contents couldn't
330 have been determined.
331 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
332 the breakpoint's address.
333 (remote_insert_hw_breakpoint): Likewise. Don't set
334 `placed_address' or `placed_size' if breakpoint couldn't have been
335 set.
336 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
337 `reqstd_address' for the breakpoint's address.
338 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
339 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
340 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
341 * microblaze-linux-tdep.c
342 (microblaze_linux_memory_remove_breakpoint): Likewise.
343 * monitor.c (monitor_insert_breakpoint): Likewise.
344 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
345 (procfs_insert_hw_breakpoint): Likewise.
346 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
347 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
348 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
349 * remote-mips.c (mips_insert_breakpoint): Likewise.
350 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
351
352 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
353
354 * valops.c (value_assign): Check for bit field assignments
355 before calling architecture-specific register value
356 conversion functions.
357
358 2014-10-03 Pierre Muller <muller@sourceware.org>
359
360 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
361
362 2014-10-02 Pedro Alves <palves@redhat.com>
363
364 * breakpoint.c (breakpoints_should_be_inserted_now): Use
365 threads_are_executing.
366 * breakpoint.h (breakpoints_should_be_inserted_now): Add
367 describing comment.
368 * gdbthread.h (threads_are_executing): Declare.
369 (handle_signal_stop) <random signals>: Don't print about the
370 signal here if stopping.
371 (end_stepping_range): Don't notify observers here.
372 (normal_stop): Update the thread list. If stopped by a random
373 signal or a stepping range ended, notify observers.
374 * thread.c (threads_executing): New global.
375 (init_thread_list): Clear 'threads_executing'.
376 (set_executing): Set or clear 'threads_executing'.
377 (threads_are_executing): New function.
378 (update_threads_executing): New function.
379 (update_thread_list): Use it.
380
381 2014-10-02 Pedro Alves <palves@redhat.com>
382
383 PR breakpoints/17431
384 * breakpoint.c (update_breakpoints_after_exec): Don't create
385 overlay, longjmp, std terminate nor exception breakpoints here.
386
387 2014-10-02 Pedro Alves <palves@redhat.com>
388
389 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
390 Adjust comments.
391 * inferior.c (find_inferior_for_program_space): Give preference to
392 the current inferior.
393 * inferior.h (find_inferior_for_program_space): Update comment.
394 * progspace.c (switch_to_program_space_and_thread): Prefer the
395 current inferior if it's bound to the program space requested. If
396 the inferior found doesn't have a PID yet, don't bother looking up
397 a thread.
398 * progspace.h (switch_to_program_space_and_thread): Adjust
399 comment.
400 * thread.c (any_thread_of_process, any_live_thread_of_process):
401 Give preference to the current thread.
402
403 2014-10-01 Pedro Alves <palves@redhat.com>
404
405 * breakpoint.c (insert_bp_location): Error out if inserting a
406 software breakpoint at a read-only address.
407 * target.c (memory_xfer_check_region): New function, factored out
408 from ...
409 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
410 ULONGEST.
411 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
412 against the memory region attributes.
413
414 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
415
416 * NEWS: Announce new exit-code field in -list-thread-groups
417 output.
418 * inferior.c (exit_inferior_1): Don't clear exit code.
419 (inferior_appeared): Clear exit code.
420 * mi/mi-main.c (print_one_inferior): Add printing of the exit
421 code.
422
423 2014-10-01 Pedro Alves <palves@redhat.com>
424
425 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
426 GENERATED" along with emacs/vi read-only markers.
427 * regformats/aarch64.dat: Regenerate.
428 * regformats/arm-with-iwmmxt.dat: Regenerate.
429 * regformats/arm-with-neon.dat: Regenerate.
430 * regformats/arm-with-vfpv2.dat: Regenerate.
431 * regformats/arm-with-vfpv3.dat: Regenerate.
432 * regformats/i386/amd64-avx-linux.dat: Regenerate.
433 * regformats/i386/amd64-avx.dat: Regenerate.
434 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
435 * regformats/i386/amd64-avx512.dat: Regenerate.
436 * regformats/i386/amd64-linux.dat: Regenerate.
437 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
438 * regformats/i386/amd64-mpx.dat: Regenerate.
439 * regformats/i386/amd64.dat: Regenerate.
440 * regformats/i386/i386-avx-linux.dat: Regenerate.
441 * regformats/i386/i386-avx.dat: Regenerate.
442 * regformats/i386/i386-avx512-linux.dat: Regenerate.
443 * regformats/i386/i386-avx512.dat: Regenerate.
444 * regformats/i386/i386-linux.dat: Regenerate.
445 * regformats/i386/i386-mmx-linux.dat: Regenerate.
446 * regformats/i386/i386-mmx.dat: Regenerate.
447 * regformats/i386/i386-mpx-linux.dat: Regenerate.
448 * regformats/i386/i386-mpx.dat: Regenerate.
449 * regformats/i386/i386.dat: Regenerate.
450 * regformats/i386/x32-avx-linux.dat: Regenerate.
451 * regformats/i386/x32-avx.dat: Regenerate.
452 * regformats/i386/x32-avx512-linux.dat: Regenerate.
453 * regformats/i386/x32-avx512.dat: Regenerate.
454 * regformats/i386/x32-linux.dat: Regenerate.
455 * regformats/i386/x32.dat: Regenerate.
456 * regformats/microblaze-with-stack-protect.dat: Regenerate.
457 * regformats/mips-dsp-linux.dat: Regenerate.
458 * regformats/mips-linux.dat: Regenerate.
459 * regformats/mips64-dsp-linux.dat: Regenerate.
460 * regformats/mips64-linux.dat: Regenerate.
461 * regformats/nios2-linux.dat: Regenerate.
462 * regformats/rs6000/powerpc-32.dat: Regenerate.
463 * regformats/rs6000/powerpc-32l.dat: Regenerate.
464 * regformats/rs6000/powerpc-64l.dat: Regenerate.
465 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
466 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
467 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
468 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
469 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
470 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
471 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
472 * regformats/s390-linux32.dat: Regenerate.
473 * regformats/s390-linux32v1.dat: Regenerate.
474 * regformats/s390-linux32v2.dat: Regenerate.
475 * regformats/s390-linux64.dat: Regenerate.
476 * regformats/s390-linux64v1.dat: Regenerate.
477 * regformats/s390-linux64v2.dat: Regenerate.
478 * regformats/s390-te-linux64.dat: Regenerate.
479 * regformats/s390x-linux64.dat: Regenerate.
480 * regformats/s390x-linux64v1.dat: Regenerate.
481 * regformats/s390x-linux64v2.dat: Regenerate.
482 * regformats/s390x-te-linux64.dat: Regenerate.
483 * regformats/tic6x-c62x-linux.dat: Regenerate.
484 * regformats/tic6x-c62x.dat: Regenerate.
485 * regformats/tic6x-c64x-linux.dat: Regenerate.
486 * regformats/tic6x-c64x.dat: Regenerate.
487 * regformats/tic6x-c64xp-linux.dat: Regenerate.
488 * regformats/tic6x-c64xp.dat: Regenerate.
489
490 2014-10-01 Pedro Alves <palves@redhat.com>
491
492 * features/Makefile: Update comments.
493 (XMLTOC): List all xml files we build C files from.
494 (clean-cfiles): New rule.
495
496 2014-10-01 Pedro Alves <palves@redhat.com>
497
498 * features/i386/amd64-avx512-linux.c: Regenerate.
499 * features/i386/amd64-avx512.c: Regenerate.
500 * features/i386/x32-avx512-linux.c: Regenerate.
501 * features/i386/x32-avx512.c: Regenerate.
502
503 2014-10-01 Pedro Alves <palves@redhat.com>
504
505 * features/Makefile (WHICH): Remove arm-with-m,
506 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
507
508 2014-10-01 Pedro Alves <palves@redhat.com>
509
510 * features/Makefile (clean): New rule.
511
512 2014-10-01 Pedro Alves <palves@redhat.com>
513
514 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
515 (zmm14h): Add missing end quotes.
516
517 2014-10-01 Pedro Alves <palves@redhat.com>
518
519 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
520 * features/aarch64.c: Regenerate.
521
522 2014-09-30 Don Breazeal <donb@codesourcery.com>
523
524 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
525 code so as to work with follow_fork_inferior.
526 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
527 (inf_ttrace_create_inferior): Remove reference to
528 inf_ttrace_vfork_ppid.
529 (inf_ttrace_attach): Ditto.
530 (inf_ttrace_detach): Ditto.
531 (inf_ttrace_kill): Use current_inferior instead of
532 inf_ttrace_vfork_ppid.
533 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
534 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
535 inferior away from the parent.
536 * infrun.c (follow_fork): Call follow_fork_inferior instead of
537 target_follow_fork.
538 (follow_fork_inferior): New function.
539 (follow_inferior_reset_breakpoints): Make function static.
540 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
541 * linux-nat.c (linux_child_follow_fork): Move target-independent
542 code to infrun.c:follow_fork_inferior.
543
544 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
545
546 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
547 * gdbarch.c: Regenerate.
548 * gdbarch.h: Likewise.
549 * corelow.c (sniff_core_bfd): Drop presence check for deleted
550 gdbarch method 'regset_from_core_section'.
551 (get_core_register_section): Remove handling for the case that
552 regset == NULL and regset_from_core_section is defined.
553 (get_core_registers): Drop check for deleted method.
554 * procfs.c (procfs_do_thread_registers): Adjust comment.
555
556 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
557
558 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
559 (linux_nat_make_corefile_notes): Remove.
560 (linux_target_install_ops): Do not set target method
561 'make_corefile_notes'.
562 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
563 Remove field.
564 (linux_corefile_thread_callback): Instead of args->collect, call
565 linux_collect_thread_registers.
566 (linux_make_corefile_notes): Remove 'collect' parameter. Return
567 NULL unless there is a regset iterator.
568 (linux_make_corefile_notes_1): Remove.
569 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
570 by linux_make_corefile_notes.
571 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
572
573 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
574
575 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
576 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
577 Remove.
578 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
579
580 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
581
582 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
583 (xtensa_iterate_over_regset_sections): New.
584 (xtensa_gdbarch_init): Adjust gdbarch initialization.
585
586 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
587
588 * vax-tdep.c (vax_regset_from_core_section): Remove.
589 (vax_iterate_over_regset_sections): New.
590 (vax_gdbarch_init): Adjust gdbarch initialization.
591
592 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
593
594 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
595 (tilegx_regset_from_core_section): Remove.
596 (tilegx_iterate_over_regset_sections): New.
597 (tilegx_linux_init_abi): Adjust gdbarch initialization.
598
599 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
600
601 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
602 (sparc_iterate_over_regset_sections): New.
603 (sparc32_gdbarch_init): Adjust gdbarch initialization.
604 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
605 targets.
606 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
607 (sparc64fbsd_init_abi): Call fbsd_init_abi.
608 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
609 target method 'make_corefile_notes'.
610
611 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
612
613 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
614 'sizeof_gregset' and 'sizeof_fpregset'.
615 * sh-tdep.c (sh_regset_from_core_section): Remove.
616 (sh_iterate_over_regset_sections): New.
617 (sh_gdbarch_init): Adjust gdbarch initialization.
618 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
619 sizeof_fpregset.
620 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
621 'sizeof_gregset'.
622
623 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
624
625 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
626 (score7_linux_iterate_over_regset_sections): New.
627 (score_gdbarch_init): Adjust gdbarch initialization.
628
629 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
630
631 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
632 FreeBSD targets.
633 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
634 method 'make_corefile_notes'.
635 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
636 (ppcfbsd_regset_from_core_section): Remove.
637 (ppcfbsd_iterate_over_regset_sections): New.
638 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
639 initialization.
640 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
641 (ppcnbsd_iterate_over_regset_sections): New.
642 (ppcnbsd_init_abi): Adjust.
643 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
644 (ppcobsd_iterate_over_regset_sections): New.
645 (ppcobsd_init_abi): Adjust.
646 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
647 (rs6000_aix_iterate_over_regset_sections): New.
648 (rs6000_aix_init_osabi): Adjust.
649
650 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
651
652 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
653 (nios2_regset_from_core_section): Remove.
654 (nios2_iterate_over_regset_sections): New.
655 (nios2_linux_init_abi): Adjust gdbarch initialization.
656
657 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
658
659 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
660 (am33_iterate_over_regset_sections): New.
661 (am33_linux_init_osabi): Adjust gdbarch initialization.
662
663 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
664
665 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
666 (mips_linux_iterate_over_regset_sections): New.
667 (mips_linux_init_abi): Adjust gdbarch initialization.
668 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
669 (mips64obsd_iterate_over_regset_sections): New.
670 (mips64obsd_init_abi): Adjust.
671 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
672 (mipsnbsd_iterate_over_regset_sections): New.
673 (mipsnbsd_init_abi): Adjust.
674
675 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
676
677 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
678 (m88k_iterate_over_regset_sections): New.
679 (m88k_gdbarch_init): Adjust gdbarch initialization.
680
681 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
682
683 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
684 (ia64_linux_iterate_over_regset_sections): New.
685 (ia64_linux_init_abi): Adjust gdbarch initialization.
686
687 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
688
689 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
690 (m68kbsd_iterate_over_regset_sections): New.
691 (m68kbsd_init_abi): Adjust gdbarch initialization.
692 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
693 (m68k_linux_iterate_over_regset_sections): New.
694 (m68k_linux_init_abi): Adjust gdbarch initialization.
695
696 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
697
698 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
699 (m32r_linux_regset_from_core_section): Remove.
700 (m32r_linux_iterate_over_regset_sections): New.
701 (m32r_linux_init_abi): Adjust gdbarch initialization.
702
703 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
704
705 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
706 (amd64obsd_iterate_over_regset_sections): New.
707 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
708 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
709 Remove.
710 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
711 regset_from_core_section initialization.
712 * i386-tdep.c (i386_regset_from_core_section): Remove.
713 (i386_iterate_over_regset_sections): New.
714 (i386_gdbarch_init): Adjust gdbarch initialization.
715 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
716 (i386_iterate_over_regset_sections): New prototype.
717 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
718 Remove.
719 (i386obsd_aout_iterate_over_regset_sections): New.
720 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
721 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
722 targets.
723 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
724 (amd64fbsd_init_abi): Call fbsd_init_abi.
725 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
726 (i386fbsd4_init_abi): Call fbsd_init_abi.
727 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
728 target method 'make_corefile_notes'.
729 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
730
731 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
732
733 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
734 (hppa_hpux_iterate_over_regset_sections): New.
735 (hppa_hpux_init_abi): Adjust gdbarch initialization.
736 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
737 (hppa_linux_iterate_over_regset_sections): New.
738 (hppa_linux_init_abi): Adjust.
739 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
740 (hppanbsd_iterate_over_regset_sections): New.
741 (hppanbsd_init_abi): Adjust.
742 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
743 (hppaobsd_iterate_over_regset_sections): New.
744 (hppaobsd_init_abi): Adjust.
745
746 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
747
748 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
749 (frv_linux_iterate_over_regset_sections): New.
750 (frv_linux_init_abi): Adjust gdbarch initialization.
751
752 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
753
754 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
755 (armbsd_iterate_over_regset_sections): New prototype.
756 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
757 (armbsd_iterate_over_regset_sections): New.
758 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
759 initialization.
760
761 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
762
763 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
764 (alpha_linux_iterate_over_regset_sections): New.
765 (alpha_linux_init_abi): Adjust gdbarch initialization.
766 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
767 prototype.
768 (alphanbsd_iterate_over_regset_sections): New prototype.
769
770 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
771
772 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
773 Remove.
774 (aarch64_linux_iterate_over_regset_sections): New.
775 (aarch64_linux_init_abi): Adjust gdbarch initialization.
776
777 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
778
779 * fbsd-tdep.c: New file.
780 * fbsd-tdep.h: New file.
781 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
782 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
783 (ALLDEPFILES): Add fbsd-tdep.c.
784
785 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
786
787 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
788 parameter.
789 * gdbarch.h: Regenerate.
790 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
791 iterator.
792 (get_core_register_section): Add parameter 'regset' and use it, if
793 set. Add parameter 'min_size' and verify the bfd section size
794 against it.
795 (get_core_registers_cb): Add parameter 'regset' and pass it to
796 get_core_register section. For the "standard" register sections
797 ".reg" and ".reg2", set an appropriate default for human_name.
798 (get_core_registers): Don't abort when the gdbarch has an iterator
799 but no regset_from_core_section. Add NULL/0 for parameters
800 'regset'/'min_size' in calls to get_core_register_section.
801 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
802 'regset' and use it instead of calling the
803 regset_from_core_section gdbarch method.
804 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
805 * i386-tdep.c (i386_supply_xstateregset)
806 (i386_collect_xstateregset, i386_xstateregset): Moved to
807 i386-linux-tdep.c.
808 (i386_regset_from_core_section): Drop handling for .reg-xfp and
809 .reg-xstate.
810 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
811 core file support only if the regset iterator hasn't been set.
812 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
813 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
814 Moved from i386-tdep.c and renamed to *_linux*.
815 (i386_linux_iterate_over_regset_sections): Add regset parameter to
816 each callback invocation. Allow any .reg-xstate size when reading
817 from a core file.
818 * amd64-tdep.c (amd64_supply_xstateregset)
819 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
820 amd64-linux-tdep.c.
821 (amd64_regset_from_core_section): Remove.
822 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
823 install an amd64-specific regset_from_core_section gdbarch method.
824 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
825 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
826 Moved from amd64-tdep.c and renamed to *_linux*.
827 (amd64_linux_iterate_over_regset_sections): Add regset parameter
828 to each callback invocation. Allow any .reg-xstate size when
829 reading from a core file.
830 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
831 (arm_linux_iterate_over_regset_sections): Add regset parameter to
832 each callback invocation.
833 (arm_linux_init_abi): No longer set the regset_from_core_section
834 gdbarch method.
835 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
836 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
837 each callback invocation.
838 (ppc_linux_init_abi): No longer set the regset_from_core_section
839 gdbarch method.
840 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
841 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
842 (s390_regset_from_core_section): Remove.
843 (s390_iterate_over_regset_sections): Add regset parameter to each
844 callback invocation.
845 (s390_gdbarch_init): No longer set the regset_from_core_section
846 gdbarch method. Drop initialization of deleted tdep fields.
847
848 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
849
850 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
851 (amd64_linux_iterate_over_regset_sections): New.
852 (amd64_linux_init_abi_common): Don't install the regset section
853 list, but the new iterator in gdbarch.
854 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
855 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
856 (arm_linux_iterate_over_regset_sections): ...here. New function.
857 (arm_linux_init_abi): Set iterator instead of section list.
858 * corelow.c (get_core_registers_cb): New function, logic moved
859 from...
860 (get_core_registers): ...loop body here. Use new iterator method
861 instead of walking through the regset section list.
862 * gdbarch.sh: Remove 'core_regset_sections'. New method
863 'iterate_over_regset_sections'. New typedef
864 'iterate_over_regset_sections_cb'.
865 * gdbarch.c: Regenerate.
866 * gdbarch.h: Likewise.
867 * i386-linux-tdep.c (i386_linux_regset_sections)
868 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
869 Remove.
870 (i386_linux_iterate_over_regset_sections): New.
871 (i386_linux_init_abi): Don't choose a regset section list, but
872 install new iterator in gdbarch.
873 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
874 (linux_collect_regset_section_cb): New function, logic moved
875 from...
876 (linux_collect_thread_registers): ...loop body here. Use iterator
877 method instead of walking through list.
878 (linux_make_corefile_notes_1): Check for presence of iterator
879 method instead of regset section list.
880 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
881 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
882 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
883 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
884 (ppc_linux_iterate_over_regset_sections): ...here. New function.
885 (ppc_linux_init_abi): Don't choose from above regset section
886 lists, but install new iterator in gdbarch.
887 * regset.h (struct core_regset_section): Remove.
888 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
889 have_linux_v1, have_linux_v2, and have_tdb.
890 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
891 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
892 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
893 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
894 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
895 (s390_iterate_over_regset_sections): ...here. New function. Use
896 new tdep fields.
897 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
898 regset section lists, but install new iterator.
899
900 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
901
902 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
903
904 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
905
906 * progspace.c (print_program_space): Don't prune program spaces
907 before printing them.
908
909 2014-09-25 Pedro Alves <palves@redhat.com>
910
911 * infrun.c (user_visible_resume_ptid): Don't check
912 singlestep_breakpoints_inserted_p.
913
914 2014-09-25 Pedro Alves <palves@redhat.com>
915
916 * breakpoint.c (should_be_inserted): Add debug output.
917
918 2014-09-25 Pedro Alves <palves@redhat.com>
919
920 * infrun.c (stepping_past_instruction_at)
921 (clear_exit_convenience_vars): Point at infrun.h instead of
922 inferior.h.
923 (handle_signal_stop): Fix typo.
924
925 2014-09-24 Yao Qi <yao@codesourcery.com>
926
927 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
928 bitmask.
929
930 2014-09-22 Gary Benson <gbenson@redhat.com>
931
932 * target.c (target_stop): Updated comment.
933
934 2014-09-22 Gary Benson <gbenson@redhat.com>
935
936 * target/target.h (target_stop_ptid): Renamed as...
937 (target_stop_and_wait): New function. Updated comment.
938 All uses updated.
939 (target_continue_ptid): Renamed as...
940 (target_continue_no_signal): New function. Updated comment.
941 All uses updated.
942
943 2014-09-22 Pedro Alves <palves@redhat.com>
944
945 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
946 and "auto" merged.
947 * breakpoint.c (enum ugll_insert_mode): New enum.
948 (always_inserted_mode): Now a plain boolean.
949 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
950 (breakpoints_always_inserted_mode): Delete.
951 (breakpoints_should_be_inserted_now): New function.
952 (insert_breakpoints): Pass UGLL_INSERT to
953 update_global_location_list instead of calling
954 insert_breakpoint_locations manually.
955 (create_solib_event_breakpoint_1): New, factored out from ...
956 (create_solib_event_breakpoint): ... this.
957 (create_and_insert_solib_event_breakpoint): Use
958 create_solib_event_breakpoint_1 instead of calling
959 insert_breakpoint_locations manually.
960 (update_global_location_list): Change parameter type from boolean
961 to enum ugll_insert_mode. All callers adjusted. Adjust to use
962 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
963 (update_global_location_list_nothrow): Change parameter type from
964 boolean to enum ugll_insert_mode.
965 (_initialize_breakpoint): "breakpoint always-inserted" option is
966 now a boolean command. Update help text.
967 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
968 (breakpoints_should_be_inserted_now): New declaration.
969 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
970 Remove breakpoints_always_inserted_mode check.
971 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
972 * remote.c (remote_start_remote): Likewise.
973
974 2014-09-22 Pedro Alves <palves@redhat.com>
975
976 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
977 (insert_breakpoints): Don't call insert_breakpoint_locations here.
978 Instead, pass UGLL_INSERT to update_global_location_list.
979 (update_global_location_list): Change parameter type from boolean
980 to enum ugll_insert_mode. All callers adjusted. Adjust to use
981 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
982 (create_solib_event_breakpoint_1): New, factored out from ...
983 (create_solib_event_breakpoint): ... this.
984 (create_and_insert_solib_event_breakpoint): Use
985 create_solib_event_breakpoint_1 instead of calling
986 insert_breakpoint_locations manually.
987 (update_global_location_list): Handle UGLL_INSERT.
988
989 2014-09-22 Pedro Alves <palves@redhat.com>
990
991 * breakpoint.c (enum ugll_insert_mode): New enum.
992 (update_global_location_list)
993 (update_global_location_list_nothrow): Change parameter type from
994 boolean to enum ugll_insert_mode. All callers adjusted.
995
996 2014-09-19 Joel Brobecker <brobecker@adacore.com>
997
998 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
999 SystemTap support in GDB.
1000
1001 2014-09-19 Don Breazeal <donb@codesourcery.com>
1002
1003 * linux-nat.c (linux_handle_extended_wait): Call
1004 linux_ptrace_get_extended_event.
1005 (wait_lwp): Call linux_is_extended_waitstatus.
1006 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1007 and linux_is_extended_waitstatus.
1008 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1009 linux_ptrace_get_extended_event.
1010 (linux_ptrace_get_extended_event): New function.
1011 (linux_is_extended_waitstatus): New function.
1012 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1013 (linux_is_extended_waitstatus): New declarations.
1014
1015 2014-09-19 Yao Qi <yao@codesourcery.com>
1016
1017 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1018 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1019 comments. Callers update.
1020 (dwarf_decode_lines): Likewise.
1021 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1022 comments. Skip the line table if 'lowpc' is greater than
1023 'address'. Don't check
1024 dwarf2_per_objfile->has_section_at_zero.
1025
1026 2014-09-18 Doug Evans <dje@google.com>
1027
1028 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1029 * python/py-symtab.c (stpy_get_producer): New function.
1030 (symtab_object_getset): Add "producer" attribute.
1031
1032 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1033
1034 PR gdb/17384
1035 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1036 (do_captured_read_memory_integer): Remove.
1037 (safe_read_memory_integer): Use target_read_memory directly instead
1038 of catching errors in do_captured_read_memory_integer.
1039
1040 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1041
1042 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1043 not gdb/doc.
1044
1045 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1046
1047 * objc-lang.c (find_implementation_from_class): Remove dead code.
1048
1049 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1050
1051 PR cli/7233
1052 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1053 "fprintf_unfiltered (gdb_stdlog...)".
1054
1055 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1056
1057 PR breakpoints/12526
1058 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1059 val_bitsize.
1060 * breakpoint.c (watch_command_1): Use these fields to retain
1061 bitfield information.
1062 (extract_bitfield_from_watchpoint_value): New function.
1063 (watchpoint_check): Use it.
1064 (update_watchpoint): Use it. Optimize the address and length of a
1065 HW watchpoint pointing to a bitfield.
1066 * value.h (unpack_value_bitfield): New prototype.
1067 * value.c (unpack_value_bitfield): Make extern.
1068
1069 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1070
1071 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1072 x86-dregs.o.
1073 * gnu-nat.c (inf_threads): New function.
1074 * gnu-nat.h (inf_threads_ftype): New typedef.
1075 (inf_threads): New declaration.
1076 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1077 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1078 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1079 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1080 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1081 (i386_gnu_dr_get_control): New functions.
1082 (reg_addr): New structure.
1083 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1084 i386 debugging register hooks.
1085 * NEWS: Mention this.
1086
1087 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1088
1089 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1090 vector data transfer instructions.
1091 (arm_record_coproc_data_proc): Updated.
1092
1093 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1094
1095 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1096 arm_record_exreg_ld_st_insn.
1097 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1098 load/store insns.
1099
1100 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1101
1102 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1103 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1104 processing instructions.
1105
1106 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1107
1108 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1109 for advance SIMD struct ld/st insn.
1110 (thumb2_record_decode_insn_handler): Replace stub handler with
1111 thumb2_record_asimd_struct_ld_st.
1112
1113 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1114
1115 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1116 for asimd, vfp and coprocessor insns.
1117 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1118 and coprocessor insns.
1119 (thumb2_record_coproc_insn): New function.
1120 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1121 handlers.
1122 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1123 opcode 110 insns.
1124
1125 2014-09-13 Doug Evans <xdje42@gmail.com>
1126
1127 * NEWS: Mention new "queue-signal" command.
1128 * infcmd.c (queue_signal_command): New function.
1129 (_initialize_infcmd): Add new queue-signal command.
1130
1131 2014-09-13 Doug Evans <xdje42@gmail.com>
1132
1133 * linux-nat.c (wait_lwp): Add debugging printf.
1134 (linux_nat_wait_1): Ditto.
1135
1136 2014-09-12 Pedro Alves <palves@redhat.com>
1137
1138 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1139 (create_and_insert_solib_event_breakpoint): New functions.
1140 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1141 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1142 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1143 (remove_dbx_link_breakpoint): Delete function.
1144 (insert_dbx_link_bpt_in_file): Use
1145 create_and_insert_solib_event_breakpoint instead of
1146 deprecated_insert_raw_breakpoint.
1147 (procfs_wait): Don't check whether we hit __dbx_link here.
1148 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1149 here.
1150 * solib-irix.c (base_breakpoint): Delete global.
1151 (disable_break): Delete function.
1152 (enable_break): Use create_solib_event_breakpoint
1153 instead of deprecated_insert_raw_breakpoint.
1154 (irix_solib_handle_event): New function.
1155 (irix_solib_create_inferior_hook): Don't run the target or disable
1156 the mapping-complete breakpoint here.
1157 (_initialize_irix_solib): Install irix_solib_handle_event as
1158 so_ops->handle_event hook.
1159
1160 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1161 Ulrich Weigand  <uweigand@de.ibm.com>
1162
1163 PR tdep/17379
1164 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1165 instead of read_memory_unsigned_integer.
1166
1167 2014-09-12 Gary Benson <gbenson@redhat.com>
1168
1169 * nat/linux-waitpid.c: Include common-defs.h.
1170 [GDBSERVER]: Add FIXME comment.
1171 [!GDBSERVER]: Don't include defs.h or signal.h.
1172 (linux_debug) [!GDBSERVER]: Remove empty block.
1173
1174 2014-09-12 Gary Benson <gbenson@redhat.com>
1175
1176 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1177 Don't include defs.h or server.h.
1178
1179 2014-09-12 Gary Benson <gbenson@redhat.com>
1180
1181 * nat/linux-btrace.c: Include common-defs.h.
1182 Don't include defs.h, server.h or gdbthread.h.
1183 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1184
1185 2014-09-12 Gary Benson <gbenson@redhat.com>
1186
1187 * common/agent.c: Include common-defs.h.
1188 Don't include defs.h or server.h.
1189 * common/buffer.c: Likewise.
1190 * common/common-debug.c: Likewise.
1191 * common/common-utils.c: Likewise.
1192 * common/errors.c: Likewise.
1193 * common/filestuff.c: Likewise.
1194 * common/format.c: Likewise.
1195 * common/gdb_vecs.c: Likewise.
1196 * common/print-utils.c: Likewise.
1197 * common/ptid.c: Likewise.
1198 * common/rsp-low.c: Likewise.
1199 * common/signals.c: Likewise.
1200 * common/vec.c: Likewise.
1201 * common/xml-utils.c: Likewise.
1202 * nat/linux-osdata.c: Likewise.
1203 * nat/linux-procfs.c: Likewise.
1204 * nat/linux-ptrace.c: Likewise.
1205 * nat/mips-linux-watch.c: Likewise.
1206 * target/waitstatus.c: Likewise.
1207
1208 2014-09-12 Tom Tromey <tromey@redhat.com>
1209 Gary Benson <gbenson@redhat.com>
1210
1211 * common/common-regcache.h: New file.
1212 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1213 * regcache.h: Include common-regcache.h.
1214 (regcache_read_pc): Don't declare.
1215 * regcache.c (get_thread_regcache_for_ptid): New function.
1216 * nat/linux-btrace.c: Don't include regcache.h.
1217 Include common-regcache.h.
1218 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1219
1220 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1221
1222 * regcache.h (struct regset): Declare.
1223
1224 2014-09-11 Pedro Alves <palves@redhat.com>
1225
1226 PR gdb/17347
1227 * main.c: Include "infrun.h".
1228 (catch_command_errors, catch_command_errors_const): Wait for the
1229 foreground command to complete.
1230 * top.c (maybe_wait_sync_command_done): New function, factored out
1231 from ...
1232 (maybe_wait_sync_command_done): ... here.
1233 * top.h (maybe_wait_sync_command_done): New declaration.
1234
1235 2014-09-11 Tom Tromey <tromey@redhat.com>
1236 Gary Benson <gbenson@redhat.com>
1237
1238 * common/symbol.h: New file.
1239 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1240 * minsyms.c (find_minimal_symbol_address): New function.
1241 * common/agent.c: Include common/symbol.h.
1242 [!GDBSERVER]: Don't include objfiles.h.
1243 (agent_look_up_symbols): Use find_minimal_symbol_address.
1244
1245 2014-09-11 Gary Benson <gbenson@redhat.com>
1246
1247 * target/target.h (target_stop_ptid, target_continue_ptid):
1248 Declare.
1249 * target.c (target_stop_ptid, target_continue_ptid): New
1250 functions.
1251 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1252 (agent_run_command): Always use target_stop_ptid and
1253 target_continue_ptid.
1254
1255 2014-09-11 Tom Tromey <tromey@redhat.com>
1256 Gary Benson <gbenson@redhat.com>
1257
1258 * target/target.h: New file.
1259 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1260 * target.h: Include target/target.h.
1261 (target_read_memory, target_write_memory): Don't declare.
1262 * target.c (target_read_uint32): New function.
1263 * common/agent.c: Include target/target.h.
1264 [!GDBSERVER]: Don't include target.h.
1265 (helper_thread_id): Type changed to uint32_t.
1266 (agent_get_helper_thread_id): Use target_read_uint32.
1267 (agent_run_command): Always use target_read_memory and
1268 target_write_memory.
1269 (agent_capability): Type changed to uint32_t.
1270 (agent_capability_check): Use target_read_uint32.
1271
1272 2014-09-11 Gary Benson <gbenson@redhat.com>
1273
1274 * common/common-debug.h (show_debug_regs): Declare.
1275 * common/common-debug.c (show_debug_regs): Define.
1276 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1277 all uses with show_debug_regs. Replace all uses that considered
1278 debug_hw_points as a multi-value integer with straight boolean
1279 uses.
1280 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1281 with show_debug_regs.
1282 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1283 all uses with show_debug_regs.
1284 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1285 uses with show_debug_regs.
1286
1287 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1288
1289 * findvar.c (address_from_register): Handle targets requiring
1290 a special conversion routine even for plain pointer types.
1291
1292 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1293
1294 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1295 (store_register): Do not call exec_one_dummy_insn.
1296
1297 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1298
1299 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1300 dereference it first. Use value_enclosing_type instead of
1301 value_type.
1302 (ada_array_length): Likewise.
1303
1304 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1305
1306 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1307 Adjust function implementation and documentation accordingly.
1308 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1309 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1310 Update call to ada_value_ptr_subscript.
1311
1312 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1313
1314 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1315 instead of VAL's type.
1316
1317 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1318
1319 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1320
1321 2014-09-09 Doug Evans <xdje42@gmail.com>
1322
1323 PR guile/17367
1324 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1325 last parameter to pkg-config, not first.
1326 * configure.ac: Pass --with-guile provided pkg-config path to
1327 GDB_GUILE_PROGRAM_NAMES.
1328 * configure: Regenerate.
1329
1330 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1331
1332 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1333 Bertazi".
1334
1335 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1336
1337 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1338 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1339 the list of sections determining GDB_OSABI_IRIX.
1340
1341 2014-09-09 James Hogan <james.hogan@imgtec.com>
1342
1343 * MAINTAINERS (Write After Approval): Add "James Hogan".
1344
1345 2014-09-09 James Hogan <james.hogan@imgtec.com>
1346
1347 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1348
1349 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1350
1351 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1352
1353 2014-09-08 Doug Evans <xdje42@gmail.com>
1354
1355 PR 17247
1356 * guile.c: #include <signal.h>.
1357 (_initialize_guile): Block SIGCHLD while initializing Guile.
1358
1359 Replaces the following, which is reverted.
1360
1361 2014-07-26 Doug Evans <xdje42@gmail.com>
1362
1363 PR 17185
1364 * configure.ac: Add check for header gc/gc.h.
1365 Add check for function setenv.
1366 * configure: Regenerate.
1367 * config.in: Regenerate.
1368 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1369
1370 2014-09-08 Doug Evans <xdje42@gmail.com>
1371
1372 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1373 with named constant. Fix style of pointer comparison.
1374 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1375
1376 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1377
1378 PR gdb/17035
1379 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1380 decide whether we display the command on "show user".
1381 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1382 printing command name.
1383 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1384 * cli/cli-decode.c (cli_user_command_p): Create helper function
1385 to verify whether cmd_list_element is a user-defined command.
1386
1387 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1388
1389 PR python/17355
1390 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1391 Fix goto out of TRY_CATCH.
1392
1393 2014-09-06 Doug Evans <xdje42@gmail.com>
1394 Tom Tromey <tromey@redhat.com>
1395
1396 PR 15276
1397 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1398 $_any_caller_matches.
1399 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1400 * python/lib/gdb/function/caller_is.py: New file.
1401
1402 2014-09-06 Doug Evans <xdje42@gmail.com>
1403
1404 * infcmd.c (program_info): Fix typo.
1405
1406 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1407
1408 PR gdb/17235
1409 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1410 'number'. New variable 'has_digit'. Rewrite code to deal with
1411 subexpressions on SDT probes.
1412
1413 2014-09-04 Pedro Alves <palves@redhat.com>
1414
1415 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1416 the input is only one character long.
1417
1418 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1419
1420 PR fortran/17237
1421 * f-valprint.c (f_val_print): Specify the correct print option to
1422 use when printing integer values.
1423
1424 2014-09-04 Gary Benson <gbenson@redhat.com>
1425
1426 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1427 Remove code to cope with LWPs wrapped as PIDs.
1428 Add assertions to ensure no wrapped LWPs are passed.
1429
1430 2014-09-04 Pedro Alves <palves@redhat.com>
1431
1432 * value.c (value_ranges_copy_adjusted): New function, factored out
1433 from ...
1434 (value_contents_copy_raw): ... here.
1435 (unpack_value_bits_as_long_1): Rename back to ...
1436 (unpack_bits_as_long): ... this. Remove 'original_value' and
1437 'result' parameters. Change return type to LONGEST.
1438 (unpack_value_bits_as_long): Delete.
1439 (unpack_value_field_as_long_1): Delete.
1440 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1441 (unpack_value_bitfield): New function.
1442 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1443 (value_fetch_lazy): Use unpack_value_bitfield.
1444 * value.h (unpack_value_bits_as_long): Delete declaration.
1445
1446 2014-09-03 Sasha Smundak <asmundak@google.com>
1447
1448 * python/py-frame.c (frapy_read_register): New function.
1449
1450 2014-09-03 James Hogan <james.hogan@imgtec.com>
1451
1452 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1453 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1454
1455 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1456
1457 PR python/16699
1458 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1459 function.
1460 (add_cmd): Set "completer_handle_brkchars" to NULL.
1461 * cli/cli-decode.h (struct cmd_list_element)
1462 <completer_handle_brkchars>: New field.
1463 * command.h (completer_ftype_void): New typedef.
1464 (set_cmd_completer_handle_brkchars): New prototype.
1465 * completer.c (set_gdb_completion_word_break_characters): New
1466 function.
1467 (complete_line_internal): Call "completer_handle_brkchars"
1468 callback from command.
1469 * completer.h: Include "command.h".
1470 (set_gdb_completion_word_break_characters): New prototype.
1471 * python/py-cmd.c (cmdpy_completer_helper): New function.
1472 (cmdpy_completer_handle_brkchars): New function.
1473 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1474 (cmdpy_init): Set completer_handle_brkchars to
1475 cmdpy_completer_handle_brkchars.
1476
1477 2014-09-03 Gary Benson <gbenson@redhat.com>
1478
1479 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1480 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1481 Loop conditions changed to equivalent form.
1482 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1483 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1484 ALL_DEBUG_ADDRESS_REGISTERS.
1485
1486 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1487
1488 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1489 description fix.
1490
1491 2014-09-02 Doug Evans <dje@google.com>
1492
1493 * typeprint.c (find_global_typedef): Fix comment.
1494
1495 2014-09-02 Gary Benson <gbenson@redhat.com>
1496
1497 * i386-nat.h: Renamed as...
1498 * x86-nat.h: New file. All type, function and variable name
1499 prefixes changed from "i386_" to "x86_". All references updated.
1500 * i386-nat.c: Renamed as...
1501 * x86-nat.c: New file. All type, function and variable name
1502 prefixes changed from "i386_" to "x86_". All references updated.
1503 * common/i386-xstate.h: Renamed as...
1504 * common/x86-xstate.h: New file. All type, function and variable
1505 name prefixes changed from "i386_" to "x86_". All references
1506 updated.
1507 * nat/i386-cpuid.h: Renamed as...
1508 * nat/x86-cpuid.h: New file. All type, function and variable name
1509 prefixes changed from "i386_" to "x86_". All references updated.
1510 * nat/i386-gcc-cpuid.h: Renamed as...
1511 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1512 name prefixes changed from "i386_" to "x86_". All references
1513 updated.
1514 * nat/i386-dregs.h: Renamed as...
1515 * nat/x86-dregs.h: New file. All type, function and variable name
1516 prefixes changed from "i386_" to "x86_". All references updated.
1517 * nat/i386-dregs.c: Renamed as...
1518 * nat/x86-dregs.c: New file. All type, function and variable name
1519 prefixes changed from "i386_" to "x86_". All references updated.
1520
1521 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1522
1523 * varobj.c (_initialize_varobj): Move to the end of file.
1524
1525 2014-08-29 Gary Benson <gbenson@redhat.com>
1526
1527 * common/common-exceptions.h: New file.
1528 * common/common-exceptions.c: Likewise.
1529 * Makefile.in (SFILES): Add common/common-exceptions.c.
1530 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1531 (COMMON_OBS): Add common-exceptions.o.
1532 (common-exceptions.o): New rule.
1533 * exceptions.h (common-exceptions.h): Include.
1534 (gdb_setjmp.h): Do not include.
1535 (return_reason): Moved to common-exceptions.h.
1536 (enum return_reason): Likewise.
1537 (RETURN_MASK): Likewise.
1538 (typedef return_mask): Likewise.
1539 (enum errors): Likewise.
1540 (struct gdb_exception): Likewise.
1541 (exceptions_state_mc_init): Likewise.
1542 (exceptions_state_mc_action_iter): Likewise.
1543 (exceptions_state_mc_action_iter_1): Likewise.
1544 (TRY_CATCH): Likewise.
1545 (throw_exception): Likewise.
1546 (throw_verror): Likewise.
1547 (throw_vquit): Likewise.
1548 (throw_error): Likewise.
1549 (throw_quit): Likewise.
1550 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1551 (enum catcher_action): Likewise.
1552 (struct catcher): Likewise.
1553 (current_catcher): Likewise.
1554 (catcher_list_size): Likewise.
1555 (exceptions_state_mc_init): Likewise.
1556 (catcher_pop): Likewise.
1557 (exceptions_state_mc): Likewise.
1558 (exceptions_state_mc_action_iter): Likewise.
1559 (exceptions_state_mc_action_iter_1): Likewise.
1560 (throw_exception): Likewise.
1561 (exception_messages): Likewise.
1562 (exception_messages_size): Likewise.
1563 (throw_it): Likewise.
1564 (throw_verror): Likewise.
1565 (throw_vquit): Likewise.
1566 (throw_error): Likewise.
1567 (throw_quit): Likewise.
1568 (prepare_to_throw_exception): New function.
1569
1570 2014-08-29 Gary Benson <gbenson@redhat.com>
1571
1572 * common/gdb_setjmp.h: New file.
1573 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1574 * configure.ac: Move sigsetjmp check...
1575 * common/common.m4: ...here.
1576 * configure: Regenerate.
1577 * cp-support.c (SIGJMP_BUF): Delete.
1578 (SIGSETJMP): Likewise.
1579 (SIGLONGJMP): Likewise.
1580 * exceptions.h (gdb_setjmp.h): Include.
1581 (setjmp.h): Do not include.
1582 (EXCEPTIONS_SIGJMP_BUF): Delete.
1583 (EXCEPTIONS_SIGSETJMP): Likewise.
1584 (EXCEPTIONS_SIGLONGJMP): Likewise.
1585 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1586 from gdb_setjmp.h.
1587 * exceptions.c: Likewise.
1588
1589 2014-08-29 Gary Benson <gbenson@redhat.com>
1590
1591 * cleanups.h: Moved to...
1592 * common/cleanups.h: New file.
1593 * cleanups.c: Moved to...
1594 * common/cleanups.c: New file. Include common-defs.h and
1595 cleanups.h. Do not include defs.h.
1596 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1597 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1598 (cleanups.o): New rule.
1599
1600 2014-08-29 Gary Benson <gbenson@redhat.com>
1601
1602 * common/errors.h (internal_warning): New declaration.
1603 (internal_vwarning): Likewise.
1604 * common/errors.c (internal_warning): New function.
1605 * utils.h (internal_warning): Don't declare.
1606 (internal_vwarning): Likewise.
1607 * utils.c (internal_warning): Removed.
1608
1609 2014-08-29 Gary Benson <gbenson@redhat.com>
1610
1611 * main.c (captured_main): Use warning during startup.
1612 Prefix startup warning messages with command name.
1613
1614 2014-08-29 Gary Benson <gbenson@redhat.com>
1615
1616 * main.c (captured_main): Handle usage errors with error.
1617
1618 2014-08-29 Gary Benson <gbenson@redhat.com>
1619
1620 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1621 exit pair with a call to error. Wrap the message with _().
1622
1623 2014-08-29 Gary Benson <gbenson@redhat.com>
1624
1625 * main.c (captured_main): Replace a fprintf/exit
1626 pair with a call to error. Wrap the message with _().
1627
1628 2014-08-29 Gary Benson <gbenson@redhat.com>
1629
1630 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1631 pairs with calls to error. Wrap the message with _().
1632
1633 2014-08-29 Gary Benson <gbenson@redhat.com>
1634
1635 * utils.c (vwarning): Protect calls to target_terminal_ours
1636 and wrap_here.
1637
1638 2014-08-29 Gary Benson <gbenson@redhat.com>
1639
1640 * exceptions.c (print_flush): Protect calls to
1641 target_terminal_ours and wrap_here.
1642
1643 2014-08-29 Gary Benson <gbenson@redhat.com>
1644
1645 * utils.h (filtered_printing_initialized): New declaration.
1646 * utils.c (abort_with_message): New function.
1647 (internal_vproblem): Use abort_with_message for first level
1648 recursive internal problems, and if gdb_stderr is not set up.
1649 Protect calls to target_terminal_ours, begin_line and query.
1650
1651 2014-08-28 Doug Evans <dje@google.com>
1652
1653 * symtab.c (in_prologue): Move definition to better spot.
1654 (skip_prologue_using_sal): Ditto.
1655
1656 2014-08-28 Doug Evans <dje@google.com>
1657
1658 * symtab.c (find_function_start_sal): Move definition to better spot.
1659
1660 2014-08-28 Yao Qi <yao@codesourcery.com>
1661
1662 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1663 found_stack_adjust in forward scan. Remove condition check
1664 on found_stack_adjust which is always true. Indent the code.
1665
1666 2014-08-28 Yao Qi <yao@codesourcery.com>
1667
1668 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1669 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1670 (dwarf_decode_lines): Remove argument
1671 want_line_info. Remove condition check on want_line_info.
1672 Callers update.
1673
1674 2014-08-27 Doug Evans <dje@google.com>
1675
1676 * dwarf2read.c (dwarf_record_line): Fix typo.
1677
1678 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1679
1680 * target.h (struct target_ops::to_terminal_save_ours): Remove
1681 declaration.
1682 (target_terminal_save_ours): Remove macro.
1683 * target-delegates.c: Regenerate.
1684 * inf-child.c (inf_child_target): Don't set the nonexistent
1685 field to_terminal_save_ours.
1686 * inferior.h (child_terminal_save_ours): Remove declaration.
1687 * terminal.h (gdb_save_tty_state): New declaration.
1688 * inflow.c (child_terminal_save_ours): Rename to ...
1689 (gdb_save_tty_state): ... this.
1690 * tui/tui.c: Include terminal.h.
1691 (tui_enable): Use gdb_save_tty_state instead of
1692 target_terminal_save_ours.
1693 (tui_disable): Likewise.
1694
1695 2014-08-25 Doug Evans <dje@google.com>
1696
1697 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1698 Pass NULL instead of 0 for context pointer.
1699
1700 2014-08-25 Yao Qi <yao@codesourcery.com>
1701
1702 * dwarf2read.c: Fix grammatical error.
1703
1704 2014-08-24 Yao Qi <yao@codesourcery.com>
1705
1706 * dwarf2read.c (scan_partial_symbols): Update comments.
1707 Rename argument 'need_pc' with 'set_addrmap'.
1708 (add_partial_namespace): Rename argument 'need_pc' with
1709 'set_addrmap'.
1710 (add_partial_module): Likewise.
1711 (add_partial_subprogram): Likewise. Update comments.
1712 (dwarf2_name): Fix typo.
1713
1714 2014-08-22 Doug Evans <dje@google.com>
1715
1716 PR 17276
1717 * dwarf2read.c (dwarf_record_line_p): New function.
1718 (dwarf_decode_lines_1): Ignore subsequent line number entries
1719 for the same line if any entry had a non-zero discriminator.
1720
1721 2014-08-22 Doug Evans <dje@google.com>
1722
1723 * buildsym.h (record_line_ftype): New typedef.
1724 (record_line): Use it.
1725 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1726 (dwarf_decode_lines_1): Call them.
1727
1728 2014-08-22 Yao Qi <yao@codesourcery.com>
1729
1730 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1731 (ctf_end): Remove code.
1732
1733 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1734
1735 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1736 (linux_make_corefile_notes): call update_thread_list, protected against
1737 exceptions.
1738
1739 2014-08-21 Pedro Alves <palves@redhat.com>
1740
1741 * infcmd.c (attach_command): Remove comment.
1742
1743 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1744
1745 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1746 unsigned LONGEST to ULONGEST.
1747
1748 2014-08-20 Pedro Alves <palves@redhat.com>
1749
1750 * Makefile.in (check-read1): New rule.
1751
1752 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1753
1754 * value.c (value_from_contents_and_address): Strip resolved_type's
1755 typedef layers before checking its TYPE_DATA_LOCATION.
1756
1757 2014-08-20 Pedro Alves <palves@redhat.com>
1758
1759 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1760
1761 2014-08-20 Yao Qi <yao@codesourcery.com>
1762
1763 * amd64-tdep.c (amd64_classify): Add a blank line after the
1764 example. Move "*/" to a new line.
1765 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1766 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1767 * dwarf2read.c (psymtab_include_file_name): Likewise.
1768
1769 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1770 Pedro Alves <palves@redhat.com>
1771
1772 PR symtab/14604
1773 PR symtab/14605
1774 * ada-lang.c (coerce_unspec_val_to_type): Use
1775 value_contents_copy_raw.
1776 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1777 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1778 * cp-valprint.c (cp_print_value_fields): Let the common printing
1779 code handle optimized out values.
1780 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1781 * d-valprint.c (dynamic_array_type): Use
1782 value_bits_any_optimized_out.
1783 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1784 check_any_valid fields.
1785 (check_pieced_value_bits): Delete and inline ...
1786 (check_pieced_synthetic_pointer): ... here.
1787 (check_pieced_value_validity): Delete.
1788 (check_pieced_value_invalid): Delete.
1789 (pieced_value_funcs): Remove check_validity and check_any_valid
1790 fields.
1791 (read_pieced_value): Use mark_value_bits_optimized_out.
1792 (write_pieced_value): Switch to use
1793 mark_value_bytes_optimized_out.
1794 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1795 of assuming the whole value is optimized out.
1796 * findvar.c (read_frame_register_value): Remove special handling
1797 of optimized out registers.
1798 (value_from_register): Use mark_value_bytes_optimized_out.
1799 * frame-unwind.c (frame_unwind_got_optimized): Use
1800 mark_value_bytes_optimized_out.
1801 * jv-valprint.c (java_value_print): Adjust.
1802 (java_print_value_fields): Let the common printing code handle
1803 optimized out values.
1804 * mips-tdep.c (mips_print_register): Remove special handling of
1805 optimized out registers.
1806 * opencl-lang.c (lval_func_check_validity): Delete.
1807 (lval_func_check_any_valid): Delete.
1808 (opencl_value_funcs): Remove check_validity and check_any_valid
1809 fields.
1810 * p-valprint.c (pascal_object_print_value_fields): Let the common
1811 printing code handle optimized out values.
1812 * stack.c (read_frame_arg): Remove special handling of optimized
1813 out values. Fetch both VAL and ENTRYVAL before comparing
1814 contents. Adjust to value_available_contents_eq rename.
1815 * valprint.c (valprint_check_validity)
1816 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1817 (val_print_array_elements): Adjust.
1818 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1819 (value_bits_any_optimized_out): New function.
1820 (value_entirely_covered_by_range_vector): New function, factored
1821 out from value_entirely_unavailable.
1822 (value_entirely_unavailable): Reimplement.
1823 (value_entirely_optimized_out): New function.
1824 (insert_into_bit_range_vector): New function, factored out from
1825 mark_value_bits_unavailable.
1826 (mark_value_bits_unavailable): Reimplement.
1827 (struct ranges_and_idx): New struct.
1828 (find_first_range_overlap_and_match): New function, factored out
1829 from value_available_contents_bits_eq.
1830 (value_available_contents_bits_eq): Rename to ...
1831 (value_contents_bits_eq): ... this. Check both unavailable
1832 contents and optimized out contents.
1833 (value_available_contents_eq): Rename to ...
1834 (value_contents_eq): ... this.
1835 (allocate_value_lazy): Remove reference to the old optimized_out
1836 boolean.
1837 (allocate_optimized_out_value): Use
1838 mark_value_bytes_optimized_out.
1839 (require_not_optimized_out): Adjust to check whether the
1840 optimized_out vec is empty.
1841 (ranges_copy_adjusted): New function, factored out from
1842 value_contents_copy_raw.
1843 (value_contents_copy_raw): Also copy the optimized out ranges.
1844 Assert the destination ranges aren't optimized out.
1845 (value_contents_copy): Update comment, remove call to
1846 require_not_optimized_out.
1847 (value_contents_equal): Adjust to check whether the optimized_out
1848 vec is empty.
1849 (set_value_optimized_out, value_optimized_out_const): Delete.
1850 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1851 New functions.
1852 (value_entirely_optimized_out, value_bits_valid): Delete.
1853 (value_copy): Take a VEC copy of the 'optimized_out' field.
1854 (value_primitive_field): Remove special handling of optimized out.
1855 (value_fetch_lazy): Assert that lazy values have no unavailable
1856 regions. Use value_bits_any_optimized_out. Remove some special
1857 handling for optimized out values.
1858 * value.h: Add intro comment about <optimized out> and
1859 <unavailable>.
1860 (struct lval_funcs): Remove check_validity and check_any_valid
1861 fields.
1862 (set_value_optimized_out, value_optimized_out_const): Remove.
1863 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1864 New declarations.
1865 (value_bits_any_optimized_out): New declaration.
1866 (value_bits_valid): Delete declaration.
1867 (value_available_contents_eq): Rename to ...
1868 (value_contents_eq): ... this, and extend comments.
1869
1870 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1871
1872 Fix -fsanitize=address on unreadable inferior strings.
1873 * valprint.c (val_print_string): Fix access before BUFFER.
1874
1875 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1876
1877 * target.c (target_struct_size): Remove.
1878 (target_struct_allocsize): Remove.
1879 (DEFAULT_ALLOCSIZE): Remove.
1880 (target_ops_p): New typedef.
1881 (DEF_VEC_P (target_ops_p)): New vector type.
1882 (target_structs): Change type to VEC (target_ops_p).
1883 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1884 (find_default_run_target): Rewrite for loop following changes to
1885 target_structs.
1886
1887 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1888
1889 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1890 Adjust code accordingly. Adjust function description comment.
1891
1892 2014-08-19 Yao Qi <yao@codesourcery.com>
1893
1894 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1895 types.
1896
1897 2014-08-19 Alan Modra <amodra@gmail.com>
1898
1899 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1900 * config.in: Regenerate.
1901 * configure: Regenerate.
1902
1903 2014-08-19 Tom Tromey <tromey@redhat.com>
1904 Gary Benson <gbenson@redhat.com>
1905
1906 * common/common-debug.h: New file.
1907 * common/common-debug.c: Likewise.
1908 * debug.c: Likewise.
1909 * Makefile.in (SFILES): Add common/common-debug.c.
1910 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1911 (COMMON_OBS): Add common-debug.o and debug.o.
1912 (common-debug.o): New rule.
1913 * common/common-defs.h: Include common-debug.h.
1914 * common/agent.c (debug_agent_printf): New function.
1915 (DEBUG_AGENT): Redefine.
1916 * nat/i386-dregs.c (debug_printf): Undefine.
1917
1918 2014-08-19 Gary Benson <gbenson@redhat.com>
1919
1920 * common/common-defs.h: Include print-utils.h.
1921 * utils.h: Do not include print-utils.h.
1922
1923 2014-08-19 Tom Tromey <tromey@redhat.com>
1924 Gary Benson <gbenson@redhat.com>
1925
1926 * common/common-types.h: New file.
1927 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1928 * common/common-defs.h: Include common-types.h.
1929 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1930 (ULONGEST): Remove.
1931
1932 2014-08-19 Tom Tromey <tromey@redhat.com>
1933 Gary Benson <gbenson@redhat.com>
1934
1935 * common/errors.h: New file.
1936 * common/errors.c: Likewise.
1937 * Makefile.in (SFILES): Add common/errors.c.
1938 (HFILES_NO_SRCDIR): Add common/errors.h.
1939 (COMMON_OBS): Add errors.o.
1940 (errors.o): New rule.
1941 * common/common-defs.h: Include errors.h.
1942 * utils.h (perror_with_name, error, verror, warning, vwarning):
1943 Don't declare.
1944 * common/common-utils.h: (malloc_failure, internal_error):
1945 Likewise.
1946
1947 2014-08-19 Gary Benson <gbenson@redhat.com>
1948
1949 * utils.c (internal_vproblem): Always print the message.
1950
1951 2014-08-18 Doug Evans <dje@google.com>
1952
1953 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1954
1955 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1956
1957 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1958 Return 0 if TYPE is dynamic.
1959 (print_range): Add handling of dynamic ranges.
1960
1961 2014-08-18 Keven Boell <keven.boell@intel.com>
1962 Joel Brobecker <brobecker@adacore.com>
1963
1964 * gdbtypes.h (struct main_type): Add field "data_location".
1965 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1966 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1967 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1968 a dynamic data location.
1969 (resolve_dynamic_type): Add DW_AT_data_location handling.
1970 (copy_recursive, copy_type): Copy the data_location information
1971 when present.
1972 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1973 * value.c (value_from_contents_and_address): Add
1974 DW_AT_data_location handling.
1975
1976 2014-08-18 Keven Boell <keven.boell@intel.com>
1977 Joel Brobecker <brobecker@adacore.com>
1978
1979 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1980 field "get_object_address".
1981 * dwarf2expr.c (execute_stack_op): Add handling for
1982 DW_OP_push_object_address.
1983 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1984 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1985 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1986 (dwarf_expr_get_obj_addr): New function.
1987 (dwarf_expr_ctx_funcs): Add get_object_address field.
1988 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1989 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1990 (dwarf2_evaluate_property): Add parameter "address". Use it.
1991 (needs_get_obj_addr): New function.
1992 (needs_frame_ctx_funcs): Add get_object_address field.
1993 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1994 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1995 (resolve_dynamic_array): Likewise.
1996
1997 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1998
1999 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2000 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2001 fixed value for records and unions for which some GNAT encodings
2002 are present.
2003
2004 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2005
2006 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2007 rewrite to avoid "else if" and "else" constructs. Should be
2008 a no-op in practice.
2009
2010 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2011
2012 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2013 of lexical block.
2014
2015 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2016
2017 PR c++/17132
2018 * eval.c: Update all calls to find_overload_match.
2019 * valarith.c: Likewise.
2020 (value_user_defined_cpp_op, value_user_defined_op): New
2021 argument NOSIDE. Update all callers.
2022 * valops.c (find_overload_match): New argument NOSIDE.
2023 * value.h (find_overload_match): Update signature.
2024
2025 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2026
2027 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2028 'items' methods instead of 'iteritems' method on dictionaries.
2029
2030 2014-08-15 Doug Evans <dje@google.com>
2031
2032 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2033 closer to use.
2034
2035 2014-08-15 Doug Evans <dje@google.com>
2036
2037 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2038
2039 2014-08-15 Doug Evans <dje@google.com>
2040
2041 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2042
2043 2014-08-15 Doug Evans <dje@google.com>
2044
2045 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2046 unused.
2047
2048 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2049
2050 * dcache.h: Include target.h, to avoid compile time warnings.
2051
2052 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2053
2054 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2055 frame_info" partial declaration.
2056 * gdbarch.h: Regenerate.
2057
2058 2014-08-15 Yao Qi <yao@codesourcery.com>
2059
2060 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2061 Add parameter 'decode_for_pst_p'. Callers update.
2062
2063 2014-08-13 Yao Qi <yao@codesourcery.com>
2064
2065 PR build/17104
2066 * configure.ac: Use local variable 'pos'.
2067 * configure: Regenerated.
2068
2069 2014-08-11 Doug Evans <dje@google.com>
2070
2071 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2072 message, it is redundant with "Reading symbols from ..." message.
2073
2074 2014-08-10 Doug Evans <xdje42@gmail.com>
2075
2076 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2077
2078 2014-08-09 Yao Qi <yao@codesourcery.com>
2079
2080 PR remote/9053
2081 * remote.c (remote_xfer_partial): Remove dead code.
2082
2083 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2084
2085 * ia64-linux-tdep.c: Include "regset.h".
2086 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2087 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2088 (ia64_linux_supply_fpregset): New function.
2089 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2090 (ia64_linux_regset_from_core_section): New function.
2091 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2092 method.
2093
2094 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2095
2096 * m68klinux-tdep.c: Include "regset.h".
2097 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2098 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2099 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2100 (m68k_linux_regset_from_core_section): New function.
2101 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2102 method.
2103
2104 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2105
2106 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2107 function. Move logic to...
2108 (tilegx_linux_regmap): ... this new register map.
2109 (tilegx_linux_regset): Refer to register map, replace supply
2110 method by regcache_supply_regset, and add collect method.
2111 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2112 TILEGX_FIRST_EASY_REGNUM.
2113
2114 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2115
2116 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2117 that calls regcache_supply_regset and handles the EPC register
2118 separately. Move main logic to...
2119 (score7_linux_gregmap): ... this new register map.
2120 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2121 (score7_linux_gregset): Refer to register map. Add collect method.
2122 (score7_linux_regset_from_core_section): Replace
2123 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2124 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2125 (struct regset): Delete unused forward declaraction.
2126 (struct pt_regs): Delete structure definition.
2127 (elf_gregset_t): Delete typedef.
2128
2129 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2130
2131 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2132 (nios2_core_regset): Add collect method.
2133
2134 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2135
2136 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2137 platform-independent and don't write to read-only input buffer.
2138 (m32r_linux_collect_gregset): New function.
2139 (m32r_linux_gregset): Add collect method.
2140
2141 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2142
2143 * hppa-linux-tdep.c (greg_map): Rename to...
2144 (hppa_linux_gregmap): ... this. Also convert to
2145 regcache_map_entry format.
2146 (hppa_linux_supply_regset): Delete function.
2147 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2148 (hppa_linux_fpregmap): ... this new register map.
2149 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2150 register map, replace supply method by regcache_supply_regset, and
2151 add collect method regcache_collect_regset.
2152
2153 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2154
2155 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2156 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2157 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2158 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2159 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2160 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2161 (frv_linux_supply_gregset): Replace main logic by call to
2162 regcache_supply_regset, but keep clearing gr32-gr63.
2163 (frv_linux_supply_fpregset): Delete function.
2164 (frv_linux_gregset): Refer to appropriate register map and add
2165 regcache_collect_regset as the collect method.
2166 (frv_linux_fpregset): Likewise. Also exchange the supply method
2167 by regcache_supply_regset.
2168
2169 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2170
2171 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2172 by call to alpha_supply_int_regs.
2173 (alpha_linux_collect_gregset): New function.
2174 (alpha_linux_supply_fpregset): Replace logic by call to
2175 alpha_supply_fp_regs.
2176 (alpha_linux_collect_fpregset): New function.
2177 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2178
2179 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2180
2181 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2182 by call to regcache_collect_regset.
2183 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2184 instead of aarch64_linux_supply_gregset/_fpregset.
2185 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2186 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2187 header file instead.
2188 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2189 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2190 functions. Move logic to ...
2191 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2192 register maps.
2193 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2194 refer to new register maps, replace *_regset_from_core by
2195 regcache_supply_regset, and also use regcache_collect_regset.
2196 * aarch64-linux-tdep.h: Include "regset.h".
2197 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2198 Delete prototypes.
2199 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2200 macros, moved from C source file.
2201 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2202 variable declarations.
2203
2204 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2205
2206 * s390-linux-nat.c: Include "regset.h".
2207 (regmap_gregset): Delete macro.
2208 (s390_64_regmap_gregset): New register map for
2209 regcache_supply/_collect_regset.
2210 (s390_64_gregset): New regset.
2211 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2212 (regmap_fpregset): Delete macro.
2213 (s390_native_supply, s390_native_collect): Delete functions.
2214 (supply_gregset, fill_gregset): Replace s390-specific regmap
2215 handling by a call to regcache_supply/_collect_regset.
2216 (supply_fpregset, fill_fpregset): Call regcache_supply/
2217 _collect_regset instead of s390_native_supply/_collect.
2218 (fetch_regset, store_regset): Likewise. Also change the last
2219 parameter to a regset instead of a regmap.
2220 (s390_linux_fetch_inferior_registers)
2221 (390_linux_store_inferior_registers): Adjust last parameter in
2222 calls to fetch_regset and store_regset.
2223 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2224 (s390_gregmap): ... this. Also make static const and convert to
2225 regcache_map_entry format.
2226 (s390x_regmap_gregset): Delete.
2227 (s390_regmap_fpregset): Rename to...
2228 (s390_fpregmap): ... this. Make static const and convert to
2229 regcache_map_entry format.
2230 (s390_regmap_upper, s390_regmap_last_break)
2231 (s390x_regmap_last_break, s390_regmap_system_call)
2232 (s390_regmap_tdb): Likewise.
2233 (s390_supply_regset, s390_collect_regset): Remove functions.
2234 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2235 s390_supply_regset.
2236 (s390_gregset, s390_fpregset, s390_upper_regset)
2237 (s390_last_break_regset, s390x_last_break_regset)
2238 (s390_system_call_regset, s390_tdb_regset): Make global and
2239 replace s390_supply/_collect_regset by regcache_supply/
2240 _collect_regset.
2241 (s390x_gregset): Delete.
2242 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2243 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2244 (s390_regmap_fpregset, s390_regmap_last_break)
2245 (s390x_regmap_last_break, s390_regmap_system_call)
2246 (s390_regmap_tdb): Delete global variable declarations.
2247 (s390_gregset, s390_fpregset, s390_last_break_regset)
2248 (s390x_last_break_regset, s390_system_call_regset)
2249 (s390_tdb_regset): New global variable declarations.
2250
2251 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2252
2253 * regcache.c: Include "regset.h".
2254 (regcache_transfer_regset): New local function.
2255 (regcache_supply_regset, regcache_collect_regset): New functions.
2256 * regcache.h (struct regcache_map_entry): New structure.
2257 (REGCACHE_MAP_SKIP): New enum value.
2258 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2259
2260 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2261
2262 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2263 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2264 (ppc_linux_collect_gregset ): Likewise.
2265 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2266 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2267 (ppc_collect_vrregset): Likewise.
2268 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2269 Likewise.
2270
2271 2014-08-07 Yao Qi <yao@codesourcery.com>
2272
2273 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2274 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2275 * remote.c (remote_read_bytes): Likewise.
2276
2277 2014-08-07 Yao Qi <yao@codesourcery.com>
2278
2279 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2280
2281 2014-08-07 Yao Qi <yao@codesourcery.com>
2282
2283 PR remote/17230
2284 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2285 TARGET_XFER_OK instead of 0.
2286
2287 2014-08-07 Gary Benson <gbenson@redhat.com>
2288
2289 * common/common-defs.h: Include errno.h.
2290 * defs.h: Do not include errno.h.
2291 * ada-typeprint.c: Likewise.
2292 * c-typeprint.c: Likewise.
2293 * core-regset.c: Likewise.
2294 * corefile.c: Likewise.
2295 * corelow.c: Likewise.
2296 * event-loop.c: Likewise.
2297 * f-typeprint.c: Likewise.
2298 * gnu-nat.c: Likewise.
2299 * go32-nat.c: Likewise.
2300 * i386gnu-nat.c: Likewise.
2301 * m2-typeprint.c: Likewise.
2302 * nat/linux-btrace.c: Likewise.
2303 * p-typeprint.c: Likewise.
2304 * procfs.c: Likewise.
2305 * remote-sim.c: Likewise.
2306 * rs6000-nat.c: Likewise.
2307 * target.c: Likewise.
2308 * typeprint.c: Likewise.
2309 * ui-file.c: Likewise.
2310 * valops.c: Likewise.
2311 * valprint.c: Likewise.
2312
2313 2014-08-07 Gary Benson <gbenson@redhat.com>
2314
2315 * common/common-defs.h: Include string.h.
2316 * aarch64-tdep.c: Do not include string.h.
2317 * ada-exp.y: Likewise.
2318 * ada-lang.c: Likewise.
2319 * ada-lex.l: Likewise.
2320 * ada-typeprint.c: Likewise.
2321 * ada-valprint.c: Likewise.
2322 * aix-thread.c: Likewise.
2323 * alpha-linux-tdep.c: Likewise.
2324 * alpha-mdebug-tdep.c: Likewise.
2325 * alpha-nat.c: Likewise.
2326 * alpha-osf1-tdep.c: Likewise.
2327 * alpha-tdep.c: Likewise.
2328 * alphanbsd-tdep.c: Likewise.
2329 * amd64-dicos-tdep.c: Likewise.
2330 * amd64-linux-tdep.c: Likewise.
2331 * amd64-nat.c: Likewise.
2332 * amd64-sol2-tdep.c: Likewise.
2333 * amd64fbsd-tdep.c: Likewise.
2334 * amd64obsd-tdep.c: Likewise.
2335 * arch-utils.c: Likewise.
2336 * arm-linux-nat.c: Likewise.
2337 * arm-linux-tdep.c: Likewise.
2338 * arm-tdep.c: Likewise.
2339 * arm-wince-tdep.c: Likewise.
2340 * armbsd-tdep.c: Likewise.
2341 * armnbsd-nat.c: Likewise.
2342 * armnbsd-tdep.c: Likewise.
2343 * armobsd-tdep.c: Likewise.
2344 * avr-tdep.c: Likewise.
2345 * ax-gdb.c: Likewise.
2346 * ax-general.c: Likewise.
2347 * bcache.c: Likewise.
2348 * bfin-tdep.c: Likewise.
2349 * breakpoint.c: Likewise.
2350 * build-id.c: Likewise.
2351 * buildsym.c: Likewise.
2352 * c-exp.y: Likewise.
2353 * c-lang.c: Likewise.
2354 * c-typeprint.c: Likewise.
2355 * c-valprint.c: Likewise.
2356 * charset.c: Likewise.
2357 * cli-out.c: Likewise.
2358 * cli/cli-cmds.c: Likewise.
2359 * cli/cli-decode.c: Likewise.
2360 * cli/cli-dump.c: Likewise.
2361 * cli/cli-interp.c: Likewise.
2362 * cli/cli-logging.c: Likewise.
2363 * cli/cli-script.c: Likewise.
2364 * cli/cli-setshow.c: Likewise.
2365 * cli/cli-utils.c: Likewise.
2366 * coffread.c: Likewise.
2367 * common/agent.c: Likewise.
2368 * common/buffer.c: Likewise.
2369 * common/buffer.h: Likewise.
2370 * common/common-utils.c: Likewise.
2371 * common/filestuff.c: Likewise.
2372 * common/filestuff.c: Likewise.
2373 * common/format.c: Likewise.
2374 * common/print-utils.c: Likewise.
2375 * common/rsp-low.c: Likewise.
2376 * common/signals.c: Likewise.
2377 * common/vec.h: Likewise.
2378 * common/xml-utils.c: Likewise.
2379 * core-regset.c: Likewise.
2380 * corefile.c: Likewise.
2381 * corelow.c: Likewise.
2382 * cp-abi.c: Likewise.
2383 * cp-name-parser.y: Likewise.
2384 * cp-support.c: Likewise.
2385 * cp-valprint.c: Likewise.
2386 * cris-tdep.c: Likewise.
2387 * d-exp.y: Likewise.
2388 * darwin-nat.c: Likewise.
2389 * dbxread.c: Likewise.
2390 * dcache.c: Likewise.
2391 * demangle.c: Likewise.
2392 * dicos-tdep.c: Likewise.
2393 * disasm.c: Likewise.
2394 * doublest.c: Likewise.
2395 * dsrec.c: Likewise.
2396 * dummy-frame.c: Likewise.
2397 * dwarf2-frame.c: Likewise.
2398 * dwarf2loc.c: Likewise.
2399 * dwarf2read.c: Likewise.
2400 * elfread.c: Likewise.
2401 * environ.c: Likewise.
2402 * eval.c: Likewise.
2403 * event-loop.c: Likewise.
2404 * exceptions.c: Likewise.
2405 * exec.c: Likewise.
2406 * expprint.c: Likewise.
2407 * f-exp.y: Likewise.
2408 * f-lang.c: Likewise.
2409 * f-typeprint.c: Likewise.
2410 * f-valprint.c: Likewise.
2411 * fbsd-nat.c: Likewise.
2412 * findcmd.c: Likewise.
2413 * findvar.c: Likewise.
2414 * fork-child.c: Likewise.
2415 * frame.c: Likewise.
2416 * frv-linux-tdep.c: Likewise.
2417 * frv-tdep.c: Likewise.
2418 * gdb.c: Likewise.
2419 * gdb_bfd.c: Likewise.
2420 * gdbarch.c: Likewise.
2421 * gdbarch.sh: Likewise.
2422 * gdbtypes.c: Likewise.
2423 * gnu-nat.c: Likewise.
2424 * gnu-v2-abi.c: Likewise.
2425 * gnu-v3-abi.c: Likewise.
2426 * go-exp.y: Likewise.
2427 * go-lang.c: Likewise.
2428 * go32-nat.c: Likewise.
2429 * guile/guile.c: Likewise.
2430 * guile/scm-auto-load.c: Likewise.
2431 * hppa-hpux-tdep.c: Likewise.
2432 * hppa-linux-nat.c: Likewise.
2433 * hppanbsd-tdep.c: Likewise.
2434 * hppaobsd-tdep.c: Likewise.
2435 * i386-cygwin-tdep.c: Likewise.
2436 * i386-dicos-tdep.c: Likewise.
2437 * i386-linux-tdep.c: Likewise.
2438 * i386-nto-tdep.c: Likewise.
2439 * i386-sol2-tdep.c: Likewise.
2440 * i386-tdep.c: Likewise.
2441 * i386bsd-tdep.c: Likewise.
2442 * i386gnu-nat.c: Likewise.
2443 * i386nbsd-tdep.c: Likewise.
2444 * i386obsd-tdep.c: Likewise.
2445 * i387-tdep.c: Likewise.
2446 * ia64-libunwind-tdep.c: Likewise.
2447 * ia64-linux-nat.c: Likewise.
2448 * inf-child.c: Likewise.
2449 * inf-ptrace.c: Likewise.
2450 * inf-ttrace.c: Likewise.
2451 * infcall.c: Likewise.
2452 * infcmd.c: Likewise.
2453 * inflow.c: Likewise.
2454 * infrun.c: Likewise.
2455 * interps.c: Likewise.
2456 * iq2000-tdep.c: Likewise.
2457 * irix5-nat.c: Likewise.
2458 * jv-exp.y: Likewise.
2459 * jv-lang.c: Likewise.
2460 * jv-typeprint.c: Likewise.
2461 * jv-valprint.c: Likewise.
2462 * language.c: Likewise.
2463 * linux-fork.c: Likewise.
2464 * linux-nat.c: Likewise.
2465 * lm32-tdep.c: Likewise.
2466 * m2-exp.y: Likewise.
2467 * m2-typeprint.c: Likewise.
2468 * m32c-tdep.c: Likewise.
2469 * m32r-linux-nat.c: Likewise.
2470 * m32r-linux-tdep.c: Likewise.
2471 * m32r-rom.c: Likewise.
2472 * m32r-tdep.c: Likewise.
2473 * m68hc11-tdep.c: Likewise.
2474 * m68k-tdep.c: Likewise.
2475 * m68kbsd-tdep.c: Likewise.
2476 * m68klinux-nat.c: Likewise.
2477 * m68klinux-tdep.c: Likewise.
2478 * m88k-tdep.c: Likewise.
2479 * machoread.c: Likewise.
2480 * macrocmd.c: Likewise.
2481 * main.c: Likewise.
2482 * mdebugread.c: Likewise.
2483 * mem-break.c: Likewise.
2484 * memattr.c: Likewise.
2485 * memory-map.c: Likewise.
2486 * mep-tdep.c: Likewise.
2487 * mi/mi-cmd-break.c: Likewise.
2488 * mi/mi-cmd-disas.c: Likewise.
2489 * mi/mi-cmd-env.c: Likewise.
2490 * mi/mi-cmd-stack.c: Likewise.
2491 * mi/mi-cmd-var.c: Likewise.
2492 * mi/mi-cmds.c: Likewise.
2493 * mi/mi-console.c: Likewise.
2494 * mi/mi-getopt.c: Likewise.
2495 * mi/mi-interp.c: Likewise.
2496 * mi/mi-main.c: Likewise.
2497 * mi/mi-parse.c: Likewise.
2498 * microblaze-rom.c: Likewise.
2499 * microblaze-tdep.c: Likewise.
2500 * mingw-hdep.c: Likewise.
2501 * minidebug.c: Likewise.
2502 * minsyms.c: Likewise.
2503 * mips-irix-tdep.c: Likewise.
2504 * mips-linux-tdep.c: Likewise.
2505 * mips-tdep.c: Likewise.
2506 * mips64obsd-tdep.c: Likewise.
2507 * mipsnbsd-tdep.c: Likewise.
2508 * mipsread.c: Likewise.
2509 * mn10300-linux-tdep.c: Likewise.
2510 * mn10300-tdep.c: Likewise.
2511 * monitor.c: Likewise.
2512 * moxie-tdep.c: Likewise.
2513 * mt-tdep.c: Likewise.
2514 * nat/linux-btrace.c: Likewise.
2515 * nat/linux-osdata.c: Likewise.
2516 * nat/linux-procfs.c: Likewise.
2517 * nat/linux-ptrace.c: Likewise.
2518 * nat/linux-waitpid.c: Likewise.
2519 * nbsd-tdep.c: Likewise.
2520 * nios2-linux-tdep.c: Likewise.
2521 * nto-procfs.c: Likewise.
2522 * nto-tdep.c: Likewise.
2523 * objc-lang.c: Likewise.
2524 * objfiles.c: Likewise.
2525 * opencl-lang.c: Likewise.
2526 * osabi.c: Likewise.
2527 * osdata.c: Likewise.
2528 * p-exp.y: Likewise.
2529 * p-lang.c: Likewise.
2530 * p-typeprint.c: Likewise.
2531 * parse.c: Likewise.
2532 * posix-hdep.c: Likewise.
2533 * ppc-linux-nat.c: Likewise.
2534 * ppc-sysv-tdep.c: Likewise.
2535 * ppcfbsd-tdep.c: Likewise.
2536 * ppcnbsd-tdep.c: Likewise.
2537 * ppcobsd-tdep.c: Likewise.
2538 * printcmd.c: Likewise.
2539 * procfs.c: Likewise.
2540 * prologue-value.c: Likewise.
2541 * python/py-auto-load.c: Likewise.
2542 * python/py-gdb-readline.c: Likewise.
2543 * ravenscar-thread.c: Likewise.
2544 * regcache.c: Likewise.
2545 * registry.c: Likewise.
2546 * remote-fileio.c: Likewise.
2547 * remote-m32r-sdi.c: Likewise.
2548 * remote-mips.c: Likewise.
2549 * remote-notif.c: Likewise.
2550 * remote-sim.c: Likewise.
2551 * remote.c: Likewise.
2552 * reverse.c: Likewise.
2553 * rs6000-aix-tdep.c: Likewise.
2554 * ser-base.c: Likewise.
2555 * ser-go32.c: Likewise.
2556 * ser-mingw.c: Likewise.
2557 * ser-pipe.c: Likewise.
2558 * ser-tcp.c: Likewise.
2559 * ser-unix.c: Likewise.
2560 * serial.c: Likewise.
2561 * sh-tdep.c: Likewise.
2562 * sh64-tdep.c: Likewise.
2563 * shnbsd-tdep.c: Likewise.
2564 * skip.c: Likewise.
2565 * sol-thread.c: Likewise.
2566 * solib-dsbt.c: Likewise.
2567 * solib-frv.c: Likewise.
2568 * solib-osf.c: Likewise.
2569 * solib-som.c: Likewise.
2570 * solib-spu.c: Likewise.
2571 * solib-target.c: Likewise.
2572 * solib.c: Likewise.
2573 * somread.c: Likewise.
2574 * source.c: Likewise.
2575 * sparc-nat.c: Likewise.
2576 * sparc-sol2-tdep.c: Likewise.
2577 * sparc-tdep.c: Likewise.
2578 * sparc64-tdep.c: Likewise.
2579 * sparc64fbsd-tdep.c: Likewise.
2580 * sparc64nbsd-tdep.c: Likewise.
2581 * sparcnbsd-tdep.c: Likewise.
2582 * spu-linux-nat.c: Likewise.
2583 * spu-multiarch.c: Likewise.
2584 * spu-tdep.c: Likewise.
2585 * stabsread.c: Likewise.
2586 * stack.c: Likewise.
2587 * std-regs.c: Likewise.
2588 * symfile.c: Likewise.
2589 * symmisc.c: Likewise.
2590 * symtab.c: Likewise.
2591 * target.c: Likewise.
2592 * thread.c: Likewise.
2593 * tilegx-linux-nat.c: Likewise.
2594 * tilegx-tdep.c: Likewise.
2595 * top.c: Likewise.
2596 * tracepoint.c: Likewise.
2597 * tui/tui-command.c: Likewise.
2598 * tui/tui-data.c: Likewise.
2599 * tui/tui-disasm.c: Likewise.
2600 * tui/tui-file.c: Likewise.
2601 * tui/tui-layout.c: Likewise.
2602 * tui/tui-out.c: Likewise.
2603 * tui/tui-regs.c: Likewise.
2604 * tui/tui-source.c: Likewise.
2605 * tui/tui-stack.c: Likewise.
2606 * tui/tui-win.c: Likewise.
2607 * tui/tui-windata.c: Likewise.
2608 * tui/tui-winsource.c: Likewise.
2609 * typeprint.c: Likewise.
2610 * ui-file.c: Likewise.
2611 * ui-out.c: Likewise.
2612 * user-regs.c: Likewise.
2613 * utils.c: Likewise.
2614 * v850-tdep.c: Likewise.
2615 * valarith.c: Likewise.
2616 * valops.c: Likewise.
2617 * valprint.c: Likewise.
2618 * value.c: Likewise.
2619 * varobj.c: Likewise.
2620 * vax-tdep.c: Likewise.
2621 * vaxnbsd-tdep.c: Likewise.
2622 * vaxobsd-tdep.c: Likewise.
2623 * windows-nat.c: Likewise.
2624 * xcoffread.c: Likewise.
2625 * xml-support.c: Likewise.
2626 * xstormy16-tdep.c: Likewise.
2627 * xtensa-linux-nat.c: Likewise.
2628
2629 2014-08-07 Gary Benson <gbenson@redhat.com>
2630
2631 * common/common-defs.h: Include gdb_assert.h.
2632 * aarch64-tdep.c: Do not include gdb_assert.h.
2633 * addrmap.c: Likewise.
2634 * aix-thread.c: Likewise.
2635 * alpha-linux-tdep.c: Likewise.
2636 * alpha-mdebug-tdep.c: Likewise.
2637 * alphanbsd-tdep.c: Likewise.
2638 * amd64-nat.c: Likewise.
2639 * amd64-tdep.c: Likewise.
2640 * amd64bsd-nat.c: Likewise.
2641 * amd64fbsd-nat.c: Likewise.
2642 * amd64fbsd-tdep.c: Likewise.
2643 * amd64nbsd-nat.c: Likewise.
2644 * amd64nbsd-tdep.c: Likewise.
2645 * amd64obsd-nat.c: Likewise.
2646 * amd64obsd-tdep.c: Likewise.
2647 * arch-utils.c: Likewise.
2648 * arm-tdep.c: Likewise.
2649 * armbsd-tdep.c: Likewise.
2650 * auxv.c: Likewise.
2651 * bcache.c: Likewise.
2652 * bfin-tdep.c: Likewise.
2653 * blockframe.c: Likewise.
2654 * breakpoint.c: Likewise.
2655 * bsd-kvm.c: Likewise.
2656 * bsd-uthread.c: Likewise.
2657 * buildsym.c: Likewise.
2658 * c-exp.y: Likewise.
2659 * c-lang.c: Likewise.
2660 * charset.c: Likewise.
2661 * cleanups.c: Likewise.
2662 * cli-out.c: Likewise.
2663 * cli/cli-decode.c: Likewise.
2664 * cli/cli-dump.c: Likewise.
2665 * cli/cli-logging.c: Likewise.
2666 * cli/cli-script.c: Likewise.
2667 * cli/cli-utils.c: Likewise.
2668 * coffread.c: Likewise.
2669 * common/common-utils.c: Likewise.
2670 * common/queue.h: Likewise.
2671 * common/signals.c: Likewise.
2672 * common/vec.h: Likewise.
2673 * complaints.c: Likewise.
2674 * completer.c: Likewise.
2675 * corelow.c: Likewise.
2676 * cp-abi.c: Likewise.
2677 * cp-name-parser.y: Likewise.
2678 * cp-namespace.c: Likewise.
2679 * cp-support.c: Likewise.
2680 * cris-tdep.c: Likewise.
2681 * dbxread.c: Likewise.
2682 * dictionary.c: Likewise.
2683 * doublest.c: Likewise.
2684 * dsrec.c: Likewise.
2685 * dummy-frame.c: Likewise.
2686 * dwarf2-frame-tailcall.c: Likewise.
2687 * dwarf2-frame.c: Likewise.
2688 * dwarf2expr.c: Likewise.
2689 * dwarf2loc.c: Likewise.
2690 * dwarf2read.c: Likewise.
2691 * eval.c: Likewise.
2692 * event-loop.c: Likewise.
2693 * exceptions.c: Likewise.
2694 * expprint.c: Likewise.
2695 * f-valprint.c: Likewise.
2696 * fbsd-nat.c: Likewise.
2697 * findvar.c: Likewise.
2698 * frame-unwind.c: Likewise.
2699 * frame.c: Likewise.
2700 * frv-tdep.c: Likewise.
2701 * gcore.c: Likewise.
2702 * gdb-dlfcn.c: Likewise.
2703 * gdb_bfd.c: Likewise.
2704 * gdbarch.c: Likewise.
2705 * gdbarch.sh: Likewise.
2706 * gdbtypes.c: Likewise.
2707 * gnu-nat.c: Likewise.
2708 * gnu-v3-abi.c: Likewise.
2709 * go-lang.c: Likewise.
2710 * guile/scm-exception.c: Likewise.
2711 * guile/scm-gsmob.c: Likewise.
2712 * guile/scm-lazy-string.c: Likewise.
2713 * guile/scm-math.c: Likewise.
2714 * guile/scm-pretty-print.c: Likewise.
2715 * guile/scm-safe-call.c: Likewise.
2716 * guile/scm-utils.c: Likewise.
2717 * guile/scm-value.c: Likewise.
2718 * h8300-tdep.c: Likewise.
2719 * hppa-hpux-nat.c: Likewise.
2720 * hppa-tdep.c: Likewise.
2721 * hppanbsd-tdep.c: Likewise.
2722 * hppaobsd-tdep.c: Likewise.
2723 * i386-darwin-nat.c: Likewise.
2724 * i386-darwin-tdep.c: Likewise.
2725 * i386-nto-tdep.c: Likewise.
2726 * i386-tdep.c: Likewise.
2727 * i386bsd-nat.c: Likewise.
2728 * i386fbsd-tdep.c: Likewise.
2729 * i386gnu-nat.c: Likewise.
2730 * i386nbsd-tdep.c: Likewise.
2731 * i386obsd-tdep.c: Likewise.
2732 * i387-tdep.c: Likewise.
2733 * ia64-libunwind-tdep.c: Likewise.
2734 * ia64-tdep.c: Likewise.
2735 * inf-ptrace.c: Likewise.
2736 * inf-ttrace.c: Likewise.
2737 * infcall.c: Likewise.
2738 * infcmd.c: Likewise.
2739 * infrun.c: Likewise.
2740 * inline-frame.c: Likewise.
2741 * interps.c: Likewise.
2742 * jv-lang.c: Likewise.
2743 * jv-typeprint.c: Likewise.
2744 * linux-fork.c: Likewise.
2745 * linux-nat.c: Likewise.
2746 * linux-thread-db.c: Likewise.
2747 * m32c-tdep.c: Likewise.
2748 * m32r-linux-nat.c: Likewise.
2749 * m32r-tdep.c: Likewise.
2750 * m68k-tdep.c: Likewise.
2751 * m68kbsd-nat.c: Likewise.
2752 * m68kbsd-tdep.c: Likewise.
2753 * m88k-tdep.c: Likewise.
2754 * machoread.c: Likewise.
2755 * macroexp.c: Likewise.
2756 * macrotab.c: Likewise.
2757 * maint.c: Likewise.
2758 * mdebugread.c: Likewise.
2759 * memory-map.c: Likewise.
2760 * mep-tdep.c: Likewise.
2761 * mi/mi-common.c: Likewise.
2762 * microblaze-tdep.c: Likewise.
2763 * mingw-hdep.c: Likewise.
2764 * mips-linux-nat.c: Likewise.
2765 * mips-linux-tdep.c: Likewise.
2766 * mips-tdep.c: Likewise.
2767 * mips64obsd-tdep.c: Likewise.
2768 * mipsnbsd-tdep.c: Likewise.
2769 * mn10300-linux-tdep.c: Likewise.
2770 * mn10300-tdep.c: Likewise.
2771 * moxie-tdep.c: Likewise.
2772 * mt-tdep.c: Likewise.
2773 * nat/linux-btrace.c: Likewise.
2774 * nat/linux-osdata.c: Likewise.
2775 * nat/linux-ptrace.c: Likewise.
2776 * nat/mips-linux-watch.c: Likewise.
2777 * nios2-linux-tdep.c: Likewise.
2778 * nios2-tdep.c: Likewise.
2779 * objc-lang.c: Likewise.
2780 * objfiles.c: Likewise.
2781 * obsd-nat.c: Likewise.
2782 * opencl-lang.c: Likewise.
2783 * osabi.c: Likewise.
2784 * parse.c: Likewise.
2785 * ppc-linux-nat.c: Likewise.
2786 * ppc-sysv-tdep.c: Likewise.
2787 * ppcfbsd-nat.c: Likewise.
2788 * ppcfbsd-tdep.c: Likewise.
2789 * ppcnbsd-nat.c: Likewise.
2790 * ppcnbsd-tdep.c: Likewise.
2791 * ppcobsd-nat.c: Likewise.
2792 * ppcobsd-tdep.c: Likewise.
2793 * printcmd.c: Likewise.
2794 * procfs.c: Likewise.
2795 * prologue-value.c: Likewise.
2796 * psymtab.c: Likewise.
2797 * python/py-lazy-string.c: Likewise.
2798 * python/py-value.c: Likewise.
2799 * regcache.c: Likewise.
2800 * reggroups.c: Likewise.
2801 * registry.c: Likewise.
2802 * remote-sim.c: Likewise.
2803 * remote.c: Likewise.
2804 * rs6000-aix-tdep.c: Likewise.
2805 * rs6000-tdep.c: Likewise.
2806 * s390-linux-tdep.c: Likewise.
2807 * score-tdep.c: Likewise.
2808 * ser-base.c: Likewise.
2809 * ser-mingw.c: Likewise.
2810 * sh-tdep.c: Likewise.
2811 * sh64-tdep.c: Likewise.
2812 * solib-darwin.c: Likewise.
2813 * solib-spu.c: Likewise.
2814 * solib-svr4.c: Likewise.
2815 * source.c: Likewise.
2816 * sparc-nat.c: Likewise.
2817 * sparc-sol2-tdep.c: Likewise.
2818 * sparc-tdep.c: Likewise.
2819 * sparc64-sol2-tdep.c: Likewise.
2820 * sparc64-tdep.c: Likewise.
2821 * sparc64fbsd-tdep.c: Likewise.
2822 * sparc64nbsd-tdep.c: Likewise.
2823 * sparc64obsd-tdep.c: Likewise.
2824 * sparcnbsd-tdep.c: Likewise.
2825 * sparcobsd-tdep.c: Likewise.
2826 * spu-multiarch.c: Likewise.
2827 * spu-tdep.c: Likewise.
2828 * stabsread.c: Likewise.
2829 * stack.c: Likewise.
2830 * symfile.c: Likewise.
2831 * symtab.c: Likewise.
2832 * target-descriptions.c: Likewise.
2833 * target-memory.c: Likewise.
2834 * target.c: Likewise.
2835 * tic6x-linux-tdep.c: Likewise.
2836 * tic6x-tdep.c: Likewise.
2837 * tilegx-linux-nat.c: Likewise.
2838 * tilegx-tdep.c: Likewise.
2839 * top.c: Likewise.
2840 * tramp-frame.c: Likewise.
2841 * tui/tui-out.c: Likewise.
2842 * tui/tui-winsource.c: Likewise.
2843 * ui-out.c: Likewise.
2844 * user-regs.c: Likewise.
2845 * utils.c: Likewise.
2846 * v850-tdep.c: Likewise.
2847 * valops.c: Likewise.
2848 * value.c: Likewise.
2849 * varobj.c: Likewise.
2850 * vax-nat.c: Likewise.
2851 * xml-syscall.c: Likewise.
2852 * xml-tdesc.c: Likewise.
2853 * xstormy16-tdep.c: Likewise.
2854 * xtensa-linux-nat.c: Likewise.
2855 * xtensa-tdep.c: Likewise.
2856
2857 2014-08-07 Gary Benson <gbenson@redhat.com>
2858
2859 * common/common-defs.h: Include common-utils.h.
2860 * defs.h: Do not include common-utils.h.
2861 * common/gdb_assert.h: Likewise.
2862 * darwin-nat.h: Likewise.
2863 * nat/linux-btrace.c: Likewise.
2864 * target/waitstatus.h: Likewise.
2865
2866 2014-08-07 Gary Benson <gbenson@redhat.com>
2867
2868 * common/common-defs.h: Include ptid.h.
2869 * defs.h: Do not include ptid.h.
2870 * inferior.h: Likewise.
2871 * infrun.h: Likewise.
2872 * nat/linux-btrace.h: Likewise.
2873 * nat/linux-osdata.h: Likewise.
2874 * target/waitstatus.h: Likewise.
2875
2876 2014-08-07 Gary Benson <gbenson@redhat.com>
2877
2878 * common/common-defs.h: Include gdb_locale.h.
2879 * defs.h: Do not include gdb_locale.h.
2880
2881 2014-08-07 Gary Benson <gbenson@redhat.com>
2882
2883 * common/common-defs.h: Include gdb/signals.h.
2884 * defs.h: Do not include gdb/signals.h.
2885
2886 2014-08-07 Gary Benson <gbenson@redhat.com>
2887
2888 * common/common-defs.h: Include pathmax.h.
2889 * defs.h: Do not include pathmax.h.
2890
2891 2014-08-07 Gary Benson <gbenson@redhat.com>
2892
2893 * common/common-defs.h: Include libiberty.h.
2894 * defs.h: Do not include libiberty.h.
2895 * common/queue.h: Likewise.
2896 * cp-name-parser.y: Likewise.
2897 * mi/mi-cmd-catch.c: Likewise.
2898 * python/python.c: Likewise.
2899
2900 2014-08-07 Gary Benson <gbenson@redhat.com>
2901
2902 * common/common-defs.h: Include ansidecl.h.
2903 * defs.h: Do not include ansidecl.h.
2904 * common/buffer.h: Likewise.
2905 * common/common-utils.h: Likewise.
2906
2907 2014-08-07 Gary Benson <gbenson@redhat.com>
2908
2909 * common/common-defs.h: Include stddef.h.
2910 * defs.h: Do not include stddef.h.
2911 * common/common-utils.h: Likewise.
2912 * amd64fbsd-nat.c: Likewise.
2913 * bcache.c: Likewise.
2914 * charset.c: Likewise.
2915 * common/buffer.h: Likewise.
2916 * common/vec.h: Likewise.
2917 * i386bsd-nat.c: Likewise.
2918 * nat/linux-btrace.h: Likewise.
2919 * ppcfbsd-nat.c: Likewise.
2920 * ppcnbsd-tdep.h: Likewise.
2921 * ppcobsd-nat.c: Likewise.
2922 * ppcobsd-tdep.h: Likewise.
2923 * python/py-gdb-readline.c: Likewise.
2924
2925 2014-08-07 Gary Benson <gbenson@redhat.com>
2926
2927 * common/common-defs.h: Include stdarg.h.
2928 * defs.h: Do not include stdarg.h.
2929 * ada-lang.c: Likewise.
2930 * common/common-utils.h: Likewise.
2931 * guile/scm-string.c: Likewise.
2932 * guile/scm-utils.c: Likewise.
2933 * m32c-tdep.c: Likewise.
2934
2935 2014-08-07 Gary Benson <gbenson@redhat.com>
2936
2937 * common/common-defs.h: Include stdlib.h.
2938 * defs.h: Do not include stdlib.h.
2939 * addrmap.c: Likewise.
2940 * bcache.c: Likewise.
2941 * common/buffer.c: Likewise.
2942 * common/common-utils.c: Likewise.
2943 * cp-name-parser.y: Likewise.
2944 * go32-nat.c: Likewise.
2945 * mn10300-linux-tdep.c: Likewise.
2946 * nat/linux-osdata.c: Likewise.
2947 * tui/tui.c: Likewise.
2948 * windows-nat.c: Likewise.
2949
2950 2014-08-07 Gary Benson <gbenson@redhat.com>
2951
2952 * common/common-defs.h: Include stdio.h.
2953 * defs.h: Do not include stdio.h.
2954 * ada-lang.c: Likewise.
2955 * common/buffer.c: Likewise.
2956 * common/common-utils.c: Likewise.
2957 * cp-name-parser.y: Likewise.
2958 * gnu-nat.c: Likewise.
2959 * go32-nat.c: Likewise.
2960 * i386gnu-nat.c: Likewise.
2961 * proc-api.c: Likewise.
2962 * proc-events.c: Likewise.
2963 * proc-flags.c: Likewise.
2964 * proc-why.c: Likewise.
2965 * python/python-internal.h: Likewise.
2966 * target-memory.c: Likewise.
2967 * tui/tui-io.c: Likewise.
2968 * tui/tui.c: Likewise.
2969
2970 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2971
2972 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2973 (scan_dyntag_auxv): Same.
2974
2975 2014-08-06 Yao Qi <yao@codesourcery.com>
2976
2977 * amd64-linux-nat.c: Remove duplicated include
2978 "x86-linux-nat.h".
2979 * i386-linux-nat.c: Likewise.
2980
2981 2014-08-06 Yao Qi <yao@codesourcery.com>
2982
2983 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2984 operand" with "Special opcode" in comments.
2985
2986 2014-08-05 Gary Benson <gbenson@redhat.com>
2987
2988 * interps.c (initialize_interps): Remove prototype.
2989 (interpreter_initialized): Remove static global.
2990 (interp_add): Do not call initialize_interps.
2991 (initialize_interps): Remove function.
2992
2993 2014-08-05 Gary Benson <gbenson@redhat.com>
2994
2995 * utils.c (vwarning): Remove spurious va_end.
2996
2997 2014-08-05 Alan Modra <amodra@gmail.com>
2998
2999 * charset.c (convert_between_encodings): Cast result of obstack_base.
3000 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3001 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3002 (read_unwind_info): Use size_t for some locals.
3003 * jit.c (finalize_symtab): Likewise.
3004 * utils.c (hashtab_obstack_allocate): Likewise.
3005 * symmisc.c (print_objfile_statistics): Update format strings.
3006
3007 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3008
3009 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3010 (Changes in GDB 7.8): ... here.
3011
3012 2014-08-04 Tom Tromey <tromey@redhat.com>
3013
3014 * target.c (set_targetdebug): New function.
3015 (initialize_targets): Pass set_targetdebug when creating "set
3016 debug target".
3017
3018 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3019
3020 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3021 if detecting a variable-sized field that is not the last field.
3022 Fix struct type length computation.
3023
3024 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3025
3026 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3027 Add debug trace.
3028
3029 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3030
3031 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3032 Remove "+ 8" offset in computation of CHAIN_VMA.
3033
3034 2014-07-31 Doug Evans <dje@google.com>
3035
3036 * inflow.c (child_terminal_inferior): Add comment.
3037 (child_terminal_ours_for_output): Add comment.
3038 (child_terminal_ours): Add comment.
3039 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3040 (linux_nat_terminal_ours): Add comment.
3041
3042 2014-07-31 Gary Benson <gbenson@redhat.com>
3043
3044 * common/btrace-common.h: Do not include defs.h or server.h.
3045 * nat/mips-linux-watch.h: Likewise.
3046 * gdb-dlfcn.h: Do not include defs.h.
3047 * tracefile.h: Likewise.
3048
3049 2014-07-30 Roland McGrath <mcgrathr@google.com>
3050
3051 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3052
3053 2014-07-30 Tom Tromey <tromey@redhat.com>
3054
3055 * bsd-kvm.c (bsd_kvm_open): Constify.
3056 * corelow.c (core_open): Constify.
3057 * ctf.c (ctf_open): Constify.
3058 * dbug-rom.c (dbug_open): Constify.
3059 * exec.c (exec_open): Constify.
3060 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3061 * microblaze-rom.c (picobug_open): Constify.
3062 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3063 Constify.
3064 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3065 * record-btrace.c (record_btrace_open): Constify.
3066 * record-full.c (record_full_core_open_1, record_full_open_1)
3067 (record_full_open): Constify.
3068 * remote-m32r-sdi.c (m32r_open): Constify.
3069 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3070 (rockhopper_open, lsi_open): Constify.
3071 * remote-sim.c (gdbsim_open): Constify.
3072 * remote.c (remote_open, extended_remote_open, remote_open_1):
3073 Constify.
3074 * target.h (struct target_ops) <to_open>: Make "arg" const.
3075 * tracefile-tfile.c (tfile_open): Constify.
3076
3077 2014-07-30 Tom Tromey <tromey@redhat.com>
3078
3079 * breakpoint.c (map_breakpoint_numbers): Update.
3080 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3081 (get_number_const): New function.
3082 (get_number): Rewrite using get_number_const.
3083 (init_number_or_range): Make "string" const.
3084 (number_is_in_list): Make "list" const.
3085 * cli/cli-utils.h (get_number_const): Declare.
3086 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3087 (init_number_or_range, number_is_in_list): Update.
3088 * printcmd.c (map_display_numbers): Update.
3089 * value.c (value_from_history_ref): Constify.
3090 * value.h (value_from_history_ref): Update.
3091
3092 2014-07-30 Tom Tromey <tromey@redhat.com>
3093
3094 * corefile.c (hook_type, call_extra_exec_file_hooks)
3095 (specify_exec_file_hook): Constify.
3096 * exec.c (exec_file_attach): Make "filename" const.
3097 * gdbcore.h (deprecated_exec_file_display_hook)
3098 (specify_exec_file_hook, exec_file_attach): Constify.
3099 * main.c (captured_main): Use catch_command_errors_const.
3100
3101 2014-07-30 Tom Tromey <tromey@redhat.com>
3102
3103 * target.c (open_target): New function.
3104 (add_target_with_completer, add_deprecated_target_alias): Use
3105 set_cmd_sfunc, set_cmd_context.
3106 (debug_to_open): Remove.
3107 (setup_target_debug): Update.
3108
3109 2014-07-30 Yao Qi <yao@codesourcery.com>
3110
3111 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3112 comments.
3113 * parse.c (exp_iterate): Update comments.
3114
3115 2014-07-30 Gary Benson <gbenson@redhat.com>
3116
3117 * common/common-defs.h: New file.
3118 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3119 * defs.h: Include common-defs.h.
3120 Do not include config.h or build-gnulib/config.h.
3121
3122 2014-07-30 Gary Benson <gbenson@redhat.com>
3123
3124 * common/common-utils.h: Do not include config.h.
3125 * nat/linux-btrace.h: Likewise.
3126
3127 2014-07-30 Gary Benson <gbenson@redhat.com>
3128
3129 * btrace.c: Include defs.h.
3130 * common/ptid.c: Include defs.h or server.h as appropriate.
3131 * nat/mips-linux-watch.c: Likewise.
3132
3133 2014-07-29 Tom Tromey <tromey@redhat.com>
3134
3135 * target.c (target_is_pushed): Simplify.
3136
3137 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3138
3139 GDB 7.8 released.
3140
3141 2014-07-29 Yao Qi <yao@codesourcery.com>
3142
3143 PR gdb/17206
3144 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3145
3146 2014-07-28 Doug Evans <xdje42@gmail.com>
3147
3148 PR guile/17203
3149 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3150 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3151 parameters.
3152
3153 2014-07-28 Will Newton <will.newton@linaro.org>
3154
3155 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3156 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3157 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3158 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3159 (THUMB2_EABI_SYSCALL): Likewise.
3160 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3161 struct tramp_frame.
3162 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3163 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3164
3165 2014-07-27 Doug Evans <xdje42@gmail.com>
3166
3167 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3168
3169 2014-07-27 Doug Evans <xdje42@gmail.com>
3170
3171 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3172
3173 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3174 Doug Evans <xdje42@gmail.com>
3175
3176 PR guile/17146
3177 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3178 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3179 * configure.ac: Try to use guild to compile an scm file, if it fails
3180 then disable guile support.
3181 * configure: Regenerate.
3182 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3183 GUILE_FILE_LIST.
3184 (GUILE_COMPILED_FILES): New variable.
3185 (GUILE_FILES) Update.
3186 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3187 (stamp-guile): Compile scm files.
3188 * guile/guile.c (boot_guile_support): New function.
3189 (standard_throw_args_p): New function.
3190 (print_standard_throw_error, print_throw_error): New functions.
3191 (handle_boot_error): New function.
3192 (initialize_scheme_side): Rewrite to call boot_guile_support.
3193 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3194 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3195
3196 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3197 Doug Evans <xdje42@gmail.com>
3198
3199 PR guile/17146
3200 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3201 * guile/lib/gdb/support.scm: New file.
3202 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3203 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3204 All uses updated.
3205 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3206 All uses updated.
3207 (%assert-type): Ditto, and renamed to assert-type.
3208 (%exception-print-style): Delete.
3209
3210 2014-07-26 Doug Evans <xdje42@gmail.com>
3211
3212 PR build/17105
3213 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3214 * configure: Regenerate.
3215 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3216 PYTHON_FILES.
3217 (PYTHON_FILES): New variable.
3218 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3219 (GUILE_FILES): New variable.
3220 (stamp-python, install-python, uninstall-python): Handle empty
3221 file list.
3222 (stamp-guile, install-guile, uninstall-guile): Ditto.
3223
3224 2014-07-26 Doug Evans <xdje42@gmail.com>
3225
3226 PR guile/17177
3227 * guile/lib/gdb.scm (pretty-printers): Export.
3228 (set-pretty-printers!): Export.
3229 * guile/lib/gdb/printing.scm (gdb module): Update.
3230 (prepend-pretty-printer!, append-pretty-printer!): Update.
3231 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3232 (pretty_printer_list_var): Delete.
3233 (pretty_printer_list): New static global.
3234 (gdbscm_pretty_printers): New function.
3235 (gdbscm_set_pretty_printers_x): New function.
3236 (ppscm_find_pretty_printer_from_gdb): Update.
3237 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3238 (gdbscm_initialize_pretty_printers): Update.
3239
3240 2014-07-26 Doug Evans <xdje42@gmail.com>
3241
3242 PR 17185
3243 * configure.ac: Add check for header gc/gc.h.
3244 Add check for function setenv.
3245 * configure: Regenerate.
3246 * config.in: Regenerate.
3247 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3248
3249 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3250
3251 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3252 variation in gdbarch matching.
3253
3254 2014-07-25 Tom Tromey <tromey@redhat.com>
3255
3256 * exec.c (using_exec_ops): Remove.
3257 (exec_close_1): Update. Remove extraneous block, reindent.
3258 (add_target_sections): Use target_is_pushed.
3259
3260 2014-07-25 Pedro Alves <palves@redhat.com>
3261
3262 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3263 * monitor.c (monitor_create_inferior): Likewise.
3264 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3265 * remote-sim.c (gdbsim_create_inferior): Likewise.
3266 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3267 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3268 * windows-nat.c (do_initial_windows_stuff): Likewise.
3269
3270 2014-07-25 Pedro Alves <palves@redhat.com>
3271
3272 * NEWS: Mention signal passing and "signal" command changes.
3273 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3274 comment.
3275 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3276 call.
3277 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3278 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3279 (jump_command): Adjust clear_proceed_status call.
3280 (signal_command): Warn if other thread that are resumed have
3281 signals that will be delivered. Adjust clear_proceed_status call.
3282 (until_next_command, finish_command)
3283 (proceed_after_attach_callback, attach_command_post_wait)
3284 (attach_command): Adjust clear_proceed_status call.
3285 * infrun.c (proceed_after_vfork_done): Likewise.
3286 (proceed_after_attach_callback): Adjust comment.
3287 (clear_proceed_status_thread): Clear stop_signal if not in pass
3288 state.
3289 (clear_proceed_status_callback): Delete.
3290 (clear_proceed_status): New 'step' parameter. Only clear the
3291 proceed status of threads the command being prepared is about to
3292 resume.
3293 (proceed): If passed in an explicit signal, override stop_signal
3294 with it. Don't pass the last stop signal to the thread we're
3295 resuming.
3296 (init_wait_for_inferior): Adjust clear_proceed_status call.
3297 (switch_back_to_stepped_thread): Clear the signal if it should not
3298 be passed.
3299 * infrun.h (clear_proceed_status): New 'step' parameter.
3300 (user_visible_resume_ptid): Add comment.
3301 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3302 signal is in pass state.
3303 * remote.c (append_pending_thread_resumptions): Likewise.
3304 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3305
3306 2014-07-25 Tom Tromey <tromey@redhat.com>
3307
3308 * target.h (target_stopped_data_address)
3309 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3310 parentheses.
3311
3312 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3313
3314 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3315 comments.
3316 (avr_pointer_to_address): Likewise.
3317
3318 2014-07-24 Tom Tromey <tromey@redhat.com>
3319
3320 * monitor.c (compile_pattern): Update.
3321 * target.h (struct target_ops) <to_shortname, to_longname,
3322 to_doc>: Now const.
3323
3324 2014-07-24 Tom Tromey <tromey@redhat.com>
3325
3326 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3327 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3328 (add_info_alias, add_com): Make "doc" const.
3329 (print_doc_line): Make "str" const.
3330 (delete_cmd): Update.
3331 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3332 (print_doc_line): Update.
3333 * cli/cli-script.c (document_command): Update.
3334 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3335 (add_com, add_info, add_info_alias): Update.
3336 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3337 * python/py-cmd.c (cmdpy_destroyer): Update.
3338
3339 2014-07-24 Tom Tromey <tromey@redhat.com>
3340
3341 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3342 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3343 (help_cmd_list): Constify.
3344 (lookup_cmd): Update.
3345 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3346 const.
3347 (help_cmd_list, apropos_cmd): Update.
3348 * cli/cli-script.c (show_user): Update.
3349 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3350 * cli/cli-setshow.h (cmd_show_list): Update.
3351 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3352 (cmd_show_list): Update.
3353 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3354 * python/py-cmd.c (cmdpy_destroyer): Update.
3355
3356 2014-07-24 Tom Tromey <tromey@redhat.com>
3357
3358 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3359 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3360 const.
3361 * command.h (deprecate_cmd): Update.
3362 * maint.c (maintenance_do_deprecate): Add casts.
3363
3364 2014-07-24 Tom Tromey <tromey@redhat.com>
3365
3366 * cli/cli-decode.c (help_cmd): Make parameter "const".
3367 * cli/cli-decode.h (help_cmd): Update.
3368
3369 2014-07-24 Tom Tromey <tromey@redhat.com>
3370
3371 * stack.c (up_silently_base, down_silently_base): Make argument
3372 const.
3373
3374 2014-07-24 Tom Tromey <tromey@redhat.com>
3375
3376 * solib.c (solib_add): Make "pattern" const.
3377 * solib.h (solib_add): Update.
3378
3379 2014-07-24 Tom Tromey <tromey@redhat.com>
3380
3381 * remote.c (remote_serial_open, print_packet, putpkt)
3382 (putpkt_binary): Constify.
3383 * remote.h (putpkt): Update.
3384
3385 2014-07-24 Tom Tromey <tromey@redhat.com>
3386
3387 * monitor.c (monitor_open): Make "args" const.
3388 * monitor.h (monitor_open): Update.
3389
3390 2014-07-24 Tom Tromey <tromey@redhat.com>
3391
3392 * maint.c (match_bfd_flags): Make "string" const.
3393 (print_bfd_section_info): Remove casts.
3394 (print_objfile_section_info): Make "string" const.
3395
3396 2014-07-24 Tom Tromey <tromey@redhat.com>
3397
3398 * inf-child.c (inf_child_open_target): Make "arg" const.
3399 * inf-child.h (inf_child_open_target): Update.
3400
3401 2014-07-24 Tom Tromey <tromey@redhat.com>
3402
3403 * environ.c (unset_in_environ): Make "var" const.
3404 * environ.h (unset_in_environ): Update.
3405
3406 2014-07-24 Tom Tromey <tromey@redhat.com>
3407
3408 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3409 Make "cmd" const.
3410 (scan_filename_with_cleanup): Likewise.
3411 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3412 Make arguments const.
3413 (restore_command): Update.
3414
3415 2014-07-24 Pedro Alves <palves@redhat.com>
3416
3417 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3418
3419 2014-07-24 Tom Tromey <tromey@redhat.com>
3420 Gary Benson <gbenson@redhat.com>
3421
3422 * nat/linux-ptrace.c (additional_flags): New global.
3423 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3424 additional_flags; don't check GDBSERVER.
3425 (linux_ptrace_set_additional_flags): New function.
3426 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3427 Declare.
3428 * linux-nat.c (_initialize_linux_nat): Call
3429 linux_ptrace_set_additional_flags.
3430
3431 2014-07-24 Tom Tromey <tromey@redhat.com>
3432
3433 * make-target-delegates (munge_type, write_debugmethod): New
3434 functions.
3435 (debug_names): New global.
3436 ($TARGET_DEBUG_PRINTER): New global.
3437 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3438 name.
3439 Write debug methods. Generate init_debug_target.
3440 * target-debug.h: New file.
3441 * target-delegates.c: Rebuild.
3442 * target.c: Include target-debug.h.
3443 (debug_target): Hoist definition.
3444 (target_kill, target_get_section_table, target_memory_map)
3445 (target_flash_erase, target_flash_done, target_detach)
3446 (target_disconnect, target_wait, target_resume)
3447 (target_pass_signals, target_program_signals, target_follow_fork)
3448 (target_mourn_inferior, target_search_memory)
3449 (target_thread_address_space, target_close)
3450 (target_find_new_threads, target_core_of_thread)
3451 (target_verify_memory, target_insert_mask_watchpoint)
3452 (target_remove_mask_watchpoint): Remove targetdebug code.
3453 (debug_to_post_attach, debug_to_prepare_to_store)
3454 (debug_to_files_info, debug_to_insert_breakpoint)
3455 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3456 (debug_to_region_ok_for_hw_watchpoint)
3457 (debug_to_can_accel_watchpoint_condition)
3458 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3459 (debug_to_watchpoint_addr_within_range)
3460 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3461 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3462 (debug_to_terminal_init, debug_to_terminal_inferior)
3463 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3464 (debug_to_terminal_save_ours, debug_to_terminal_info)
3465 (debug_to_load, debug_to_post_startup_inferior)
3466 (debug_to_insert_fork_catchpoint)
3467 (debug_to_remove_fork_catchpoint)
3468 (debug_to_insert_vfork_catchpoint)
3469 (debug_to_remove_vfork_catchpoint)
3470 (debug_to_insert_exec_catchpoint)
3471 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3472 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3473 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3474 (setup_target_debug): Call init_debug_target.
3475 * target.h (TARGET_DEBUG_PRINTER): New macro.
3476 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3477 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3478
3479 2014-07-24 Gary Benson <gbenson@redhat.com>
3480
3481 * exceptions.h (throw_vfatal): Renamed to...
3482 (throw_vquit): New declaration.
3483 (throw_quit): Likewise.
3484 * exceptions.c (throw_vfatal): Renamed to...
3485 (throw_vquit): New function.
3486 (throw_quit): Likewise.
3487 (throw_error): Call throw_verror rather than throw_it.
3488 * utils.h (vfatal): Removed.
3489 (fatal): Likewise.
3490 * utils.c (vfatal): Removed.
3491 (fatal): Likewise.
3492 (internal_verror): Replaced call to fatal with call to throw_quit.
3493 (quit): Replaced calls to fatal with calls to throw_quit.
3494
3495 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3496
3497 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3498 target_read_code.
3499
3500 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3501
3502 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3503 less than zero in conditional expression.
3504
3505 2014-07-23 Tom Tromey <tromey@redhat.com>
3506
3507 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3508 ($INTRO_PART): Don't match whitespace.
3509 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3510 argument matching.
3511 ($METHOD): Add $METHOD_TRAILER.
3512 (trim): Rewrite.
3513 (scan_target_h): New sub.
3514 Change main loop not to collect state.
3515 * target-delegates.c: Rebuild.
3516
3517 2014-07-23 Gary Benson <gbenson@redhat.com>
3518
3519 * cp-support.c (gdb_demangle): Fix build on systems without
3520 sigaltstack.
3521
3522 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3523
3524 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3525 for reference entry value target data value.
3526
3527 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3528
3529 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3530 value_available_contents_eq.
3531
3532 2014-07-22 Pedro Alves <palves@redhat.com>
3533
3534 * value.c (allocate_optimized_out_value): Don't mark value as
3535 non-lazy.
3536
3537 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3538
3539 * MAINTAINERS (Write After Approval): Update my email address.
3540
3541 2014-07-20 Doug Evans <dje@google.com>
3542
3543 PR server/17147
3544 * remote.c (putpkt_binary): Add text to error message.
3545
3546 2014-07-20 Yao Qi <yao@codesourcery.com>
3547
3548 * eval.c: Remove "Chill" from comments.
3549 * gdbtypes.h: Likewise.
3550 * symtab.h: Likewise.
3551
3552 2014-07-20 Yao Qi <yao@codesourcery.com>
3553
3554 * std-operator.def: Update comments to TERNOP_SLICE.
3555
3556 2014-07-20 Yao Qi <yao@codesourcery.com>
3557
3558 * std-operator.def: Remove BINOP_RANGE.
3559 * breakpoint.c (watchpoint_exp_is_const): Update.
3560 * expprint.c (dump_subexp_body_standard): Likewise.
3561 * eval.c (init_array_element): Remove dead code.
3562 (evaluate_subexp_standard): Likewise.
3563
3564 2014-07-20 Yao Qi <yao@codesourcery.com>
3565
3566 * std-operator.def: Remove BINOP_IN.
3567 * breakpoint.c (watchpoint_exp_is_const): Update.
3568 * eval.c (evaluate_subexp_standard): Likewise.
3569 * expprint.c (dump_subexp_body_standard): Likewise.
3570
3571 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3572
3573 * microblaze-tdep.c (microblaze_register_names): Add
3574 the rshr and rslr register names.
3575 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3576 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3577 Use of tdesc_numbered_register. Use of
3578 microblaze_register_g_packet_guesses. Use of
3579 tdesc_use_registers. Use of set_gdbarch_register_type.
3580 (microblaze_register_g_packet_guesses): New.
3581 * microblaze-tdep.h (microblaze_reg_num): Add
3582 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3583 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3584 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3585 * features/microblaze-core.xml: New file.
3586 * features/microblaze-stack-protect.xml: New file.
3587 * features/microblaze-with-stack-protect.c: New file.
3588 * features/microblaze-with-stack-protect.xml: New file.
3589 * features/microblaze.xml: New file.
3590 * features/microblaze.c: New file.
3591 * features/Makefile (microblaze-with-stack-protect): Add
3592 microblaze-with-stack-protect microblaze and microblaze-expedite.
3593 * regformats/microblaze-with-stack-protect.dat: New file.
3594 * regformats/microblaze.dat: New file.
3595 * doc/gdb.texinfo (MicroBlaze Features): Added.
3596
3597 2014-07-18 Tom Tromey <tromey@redhat.com>
3598
3599 * exec.c (exec_ops): Now static.
3600 * exec.h (exec_ops): Don't declare.
3601
3602 2014-07-18 Tom Tromey <tromey@redhat.com>
3603
3604 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3605 to find_target_beneath.
3606 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3607 find_target_beneath.
3608 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3609
3610 2014-07-18 Tom Tromey <tromey@redhat.com>
3611
3612 PR gdb/17130:
3613 * utils.c (quit): Use target_supports_terminal_ours.
3614 * target.h (target_supports_terminal_ours): Declare.
3615 * target.c (target_supports_delete_record): Don't check
3616 to_delete_record against NULL.
3617 (target_supports_terminal_ours): New function.
3618
3619 2014-07-18 Tom Tromey <tromey@redhat.com>
3620
3621 PR gdb/17130:
3622 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3623 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3624 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3625 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3626 * windows-nat.c (windows_xfer_partial): Always delegate.
3627 * record-btrace.c (record_btrace_xfer_partial): Simplify
3628 delegation.
3629 (record_btrace_fetch_registers, record_btrace_store_registers)
3630 (record_btrace_prepare_to_store, record_btrace_resume)
3631 (record_btrace_wait, record_btrace_find_new_threads)
3632 (record_btrace_thread_alive): Likewise.
3633 * procfs.c (procfs_xfer_partial): Always delegate.
3634 * corelow.c (core_xfer_partial): Always delegate.
3635 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3636
3637 2014-07-18 Tom Tromey <tromey@redhat.com>
3638
3639 * exec.c (exec_make_note_section): Move earlier.
3640
3641 2014-07-17 Doug Evans <dje@google.com>
3642
3643 PR gdb/17170
3644 * maint.c (count_symtabs_and_blocks): Handle NULL
3645 current_program_space.
3646 (report_command_stats): Check global enabled flag in addition to
3647 recorded enabled flag.
3648 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3649
3650 2014-07-16 Pedro Alves <palves@redhat.com>
3651
3652 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3653
3654 2014-07-16 Tom Tromey <tromey@redhat.com>
3655
3656 * target.h (struct target_ops) <to_delete_record>: Reformat
3657 comment.
3658
3659 2014-07-16 Tom Tromey <tromey@redhat.com>
3660
3661 * target-delegates.c: Rebuild.
3662
3663 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3664
3665 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3666 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3667 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3668 (avr_pointer_to_address): Likewise.
3669 (avr_address_class_type_flags): New function.
3670 (avr_address_class_type_flags_to_name): Likewise.
3671 (avr_address_class_name_to_type_flags): Likewise.
3672 (avr_gdbarch_init): Set address_class_type_flags,
3673 address_class_type_flags_to_name and
3674 address_class_name_to_type_flags.
3675
3676 2014-07-15 Pedro Alves <palves@redhat.com>
3677
3678 * linux-nat.c (kill_callback): Save errno and work with saved
3679 copy.
3680
3681 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3682
3683 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3684
3685 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3686
3687 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3688 breakpoint support correctly.
3689
3690 2014-07-14 Pedro Alves <palves@redhat.com>
3691
3692 * utils.c (prompt_for_continue): Call target_terminal_ours.
3693
3694 2014-07-14 Pedro Alves <palves@redhat.com>
3695
3696 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3697 catch_errors. Don't re-enable stdin or notify observers where,
3698 and rethrow error.
3699 (fetch_inferior_event_wrapper): Delete.
3700
3701 2014-07-14 Pedro Alves <palves@redhat.com>
3702
3703 PR gdb/17072
3704 * top.c: Include "inf-loop.h".
3705 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3706 field.
3707 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3708 was async before.
3709 (gdb_readline_wrapper): Store whether the target is async, and
3710 make it sync.
3711
3712 2014-07-14 Pedro Alves <palves@redhat.com>
3713
3714 PR gdb/17072
3715 * top.c (gdb_readline_wrapper_line): Tweak comment.
3716 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3717 the input handler callback.
3718
3719 2014-07-14 Pedro Alves <palves@redhat.com>
3720
3721 PR gdb/17072
3722 * main.c: Include event-top.h.
3723 (handle_command_errors): New function.
3724 (catch_command_errors, catch_command_errors_const): Use it.
3725
3726 2014-07-14 Pedro Alves <palves@redhat.com>
3727
3728 * exceptions.c (catch_command_errors, catch_command_errors_const):
3729 Moved to main.c.
3730 * exceptions.h (catch_command_errors_ftype)
3731 (catch_command_errors_const_ftype): Moved to main.c.
3732 (catch_command_errors, catch_command_errors_const): Delete
3733 declarations.
3734 * main.c (catch_command_errors_ftype)
3735 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3736 (catch_command_errors, catch_command_errors_const)): Moved here
3737 from exceptions.c and make static.
3738
3739 2014-07-14 Pedro Alves <palves@redhat.com>
3740
3741 * exceptions.c (print_any_exception): Delete.
3742 (catch_exceptions_with_msg): Use exception_print instead of
3743 print_any_exception.
3744 (catch_errors): Use exception_fprintf instead of
3745 print_any_exception.
3746 (catch_command_errors, catch_command_errors_const): Use
3747 exception_print instead of print_any_exception.
3748
3749 2014-07-14 Pedro Alves <palves@redhat.com>
3750
3751 * infcall.c (run_inferior_call): Set 'sync_execution' while
3752 running the inferior call.
3753
3754 2014-07-14 Pedro Alves <palves@redhat.com>
3755
3756 * value.c (value_contents_equal): Delete function.
3757 * value.h (value_contents_equal): Delete declaration.
3758
3759 2014-07-14 Tom Tromey <tromey@redhat.com>
3760
3761 PR exp/17106:
3762 * gdbtypes.c (is_dynamic_type_internal): New function, from
3763 is_dynamic_type.
3764 (is_dynamic_type): Rewrite.
3765 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3766 (resolve_dynamic_struct): Likewise.
3767 (resolve_dynamic_type_internal): New function, from
3768 resolve_dynamic_type.
3769 (resolve_dynamic_type): Rewrite.
3770
3771 2014-07-14 Tom Tromey <tromey@redhat.com>
3772
3773 * target.c (target_require_runnable): Also check record_stratum.
3774 Update comment.
3775
3776 2014-07-11 Yao Qi <yao@codesourcery.com>
3777
3778 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3779 thumb_instruction_restores_sp return true.
3780
3781 2014-07-11 Yao Qi <yao@codesourcery.com>
3782
3783 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3784 (thumb_in_function_epilogue_p): Call
3785 thumb_instruction_restores_sp.
3786
3787 2014-07-11 Yao Qi <yao@codesourcery.com>
3788
3789 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3790 'add sp, #imm'.
3791 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3792
3793 2014-07-11 Gary Benson <gbenson@redhat.com>
3794
3795 * amd64-linux-nat.c (gdbcore.h): Remove include.
3796 (regset.h): Likewise.
3797 (nat/linux-btrace.h): Likewise.
3798 (btrace.h): Likewise.
3799 (gdb_assert.h): Likewise.
3800 (string.h): Likewise.
3801 (sys/uio.h): Likewise.
3802 (sys/debugreg.h): Likewise.
3803 (sys/syscall.h): Likewise.
3804 (sys/procfs.h): Likewise.
3805 (sys/user.h): Likewise.
3806 (asm/ptrace.h): Likewise.
3807 (i386-nat.h): Likewise.
3808 * i386-linux-nat.c (i386-nat.h): Likewise.
3809 (regset.h): Likewise.
3810 (target.h): Likewise.
3811 (linux-nat.h): Likewise.
3812 (nat/linux-btrace.h): Likewise.
3813 (btrace.h): Likewise.
3814 (gdb_assert.h): Likewise.
3815 (string.h): Likewise.
3816 (sys/uio.h): Likewise.
3817 (sys/user.h): Likewise.
3818 (sys/procfs.h): Likewise.
3819 (sys/reg.h): Likewise.
3820 (sys/debugreg.h): Likewise.
3821 (ORIG_EAX): Remove definition.
3822
3823 2014-07-11 Gary Benson <gbenson@redhat.com>
3824
3825 * i386-linux-nat.h: New file.
3826 * x86-linux-nat.h: Likewise.
3827 * x86-linux-nat.c: Likewise.
3828 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3829 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3830 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3831 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3832 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3833 (PTRACE_SETREGSET): Likewise.
3834 (arch_lwp_info): Now in x86-linux-nat.c.
3835 (have_ptrace_getregset): Now in x86-linux-nat.h.
3836 (x86_linux_dr_get): Now in x86-linux-nat.c.
3837 (x86_linux_dr_set): Likewise.
3838 (x86_linux_dr_get_addr): Likewise.
3839 (x86_linux_dr_get_control): Likewise.
3840 (x86_linux_dr_get_status): Likewise.
3841 (update_debug_registers_callback): Likewise.
3842 (x86_linux_dr_set_control): Likewise.
3843 (x86_linux_dr_set_addr): Likewise.
3844 (x86_linux_prepare_to_resume): Likewise.
3845 (x86_linux_new_thread): Likewise.
3846 (x86_linux_new_fork): Likewise.
3847 (x86_linux_get_thread_area): Likewise.
3848 (super_post_startup_inferior): Likewise.
3849 (x86_linux_child_post_startup_inferior): Likewise.
3850 (AMD64_LINUX_USER64_CS): Likewise.
3851 (AMD64_LINUX_X32_DS): Likewise.
3852 (x86_linux_read_description): Likewise.
3853 (x86_linux_enable_btrace): Likewise.
3854 (x86_linux_disable_btrace): Likewise.
3855 (x86_linux_teardown_btrace): Likewise.
3856 (x86_linux_read_btrace): Likewise.
3857 (x86_linux_create_target): Likewise.
3858 (x86_linux_add_target): Likewise.
3859 * i386-linux-nat.c (x86-linux-nat.h): New include.
3860 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3861 (PTRACE_SETREGSET): Likewise.
3862 (arch_lwp_info): Now in x86-linux-nat.c.
3863 (have_ptrace_getregset): Now in x86-linux-nat.h.
3864 (x86_linux_dr_get): Now in x86-linux-nat.c.
3865 (x86_linux_dr_set): Likewise.
3866 (x86_linux_dr_get_addr): Likewise.
3867 (x86_linux_dr_get_control): Likewise.
3868 (x86_linux_dr_get_status): Likewise.
3869 (update_debug_registers_callback): Likewise.
3870 (x86_linux_dr_set_control): Likewise.
3871 (x86_linux_dr_set_addr): Likewise.
3872 (x86_linux_prepare_to_resume): Likewise.
3873 (x86_linux_new_thread): Likewise.
3874 (x86_linux_new_fork): Likewise.
3875 (x86_linux_get_thread_area): Likewise.
3876 (super_post_startup_inferior): Likewise.
3877 (x86_linux_child_post_startup_inferior): Likewise.
3878 (AMD64_LINUX_USER64_CS): Likewise.
3879 (AMD64_LINUX_X32_DS): Likewise.
3880 (x86_linux_read_description): Likewise.
3881 (x86_linux_enable_btrace): Likewise.
3882 (x86_linux_disable_btrace): Likewise.
3883 (x86_linux_teardown_btrace): Likewise.
3884 (x86_linux_read_btrace): Likewise.
3885 (x86_linux_create_target): Likewise.
3886 (x86_linux_add_target): Likewise.
3887
3888 2014-07-11 Gary Benson <gbenson@redhat.com>
3889
3890 * amd64-linux-nat.c: Comment and whitespace changes.
3891 * i386-linux-nat.c: Comment and whitespace changes.
3892
3893 2014-07-11 Gary Benson <gbenson@redhat.com>
3894
3895 * amd64-linux-nat.c (x86_linux_create_target): New function.
3896 (x86_linux_add_target): Likewise.
3897 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3898 * i386-linux-nat.c (x86_linux_create_target): New function.
3899 (x86_linux_add_target): Likewise.
3900 (_initialize_i386_linux_nat): Delegate to the above new functions.
3901
3902 2014-07-11 Gary Benson <gbenson@redhat.com>
3903
3904 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3905 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3906 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3907 (ps_get_thread_area): Delegate to the above.
3908
3909 2014-07-11 Gary Benson <gbenson@redhat.com>
3910
3911 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3912 x86_linux_read_description. All uses updated. amd64-specific
3913 code conditionalized. Conditionalized i386-specific code added.
3914 Redundant cast removed.
3915 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3916 x86_linux_read_description. All uses updated. i386-specific
3917 code conditionalized. Conditionalized amd64-specific code added.
3918 One sizeof replaced with the actual type it is describing.
3919
3920 2014-07-11 Gary Benson <gbenson@redhat.com>
3921
3922 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3923 x86_linux_dr_get. All uses updated.
3924 (amd64_linux_dr_set): Renamed to
3925 x86_linux_dr_set. All uses updated.
3926 (amd64_linux_dr_get_addr): Renamed to
3927 x86_linux_dr_get_addr. All uses updated.
3928 (amd64_linux_dr_get_control): Renamed to
3929 x86_linux_dr_get_control. All uses updated.
3930 (amd64_linux_dr_get_status): Renamed to
3931 x86_linux_dr_get_status. All uses updated.
3932 (amd64_linux_dr_set_control): Renamed to
3933 x86_linux_dr_set_control. All uses updated.
3934 (amd64_linux_dr_set_addr): Renamed to
3935 x86_linux_dr_set_addr. All uses updated.
3936 (amd64_linux_prepare_to_resume): Renamed to
3937 x86_linux_prepare_to_resume. All uses updated.
3938 (amd64_linux_new_thread): Renamed to
3939 x86_linux_new_thread. All uses updated.
3940 (amd64_linux_new_fork): Renamed to
3941 x86_linux_new_fork. All uses updated.
3942 (amd64_linux_child_post_startup_inferior): Renamed to
3943 x86_linux_child_post_startup_inferior. All uses updated.
3944 (amd64_linux_enable_btrace): Renamed to
3945 x86_linux_enable_btrace. All uses updated.
3946 (amd64_linux_disable_btrace): Renamed to
3947 x86_linux_disable_btrace. All uses updated.
3948 (amd64_linux_teardown_btrace): Renamed to
3949 x86_linux_teardown_btrace. All uses updated.
3950 (amd64_linux_read_btrace): Renamed to
3951 x86_linux_read_btrace. All uses updated.
3952 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3953 x86_linux_dr_get. All uses updated.
3954 (i386_linux_dr_set): Renamed to
3955 x86_linux_dr_set. All uses updated.
3956 (i386_linux_dr_get_addr): Renamed to
3957 x86_linux_dr_get_addr. All uses updated.
3958 (i386_linux_dr_get_control): Renamed to
3959 x86_linux_dr_get_control. All uses updated.
3960 (i386_linux_dr_get_status): Renamed to
3961 x86_linux_dr_get_status. All uses updated.
3962 (i386_linux_dr_set_control): Renamed to
3963 x86_linux_dr_set_control. All uses updated.
3964 (i386_linux_dr_set_addr): Renamed to
3965 x86_linux_dr_set_addr. All uses updated.
3966 (i386_linux_prepare_to_resume): Renamed to
3967 x86_linux_prepare_to_resume. All uses updated.
3968 (i386_linux_new_thread): Renamed to
3969 x86_linux_new_thread. All uses updated.
3970 (i386_linux_new_fork): Renamed to
3971 x86_linux_new_fork. All uses updated.
3972 (i386_linux_child_post_startup_inferior): Renamed to
3973 x86_linux_child_post_startup_inferior. All uses updated.
3974 (i386_linux_enable_btrace): Renamed to
3975 x86_linux_enable_btrace. All uses updated.
3976 (i386_linux_disable_btrace): Renamed to
3977 x86_linux_disable_btrace. All uses updated.
3978 (i386_linux_teardown_btrace): Renamed to
3979 x86_linux_teardown_btrace. All uses updated.
3980 (i386_linux_read_btrace): Renamed to
3981 x86_linux_read_btrace. All uses updated.
3982
3983 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3984
3985 * remote.c (extended_remote_post_attach): New function.
3986 (init_extended_remote_ops): Install it as to_post_attach method.
3987
3988 2014-07-09 Pedro Alves <palves@redhat.com>
3989
3990 * infcmd.c (attach_command_post_wait): Don't call
3991 target_terminal_inferior here.
3992 (attach_command): Call it here instead.
3993
3994 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3997 field.
3998 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3999 from varobj.c, with additional checks.
4000 (c_varobj_ops): Fill in is_path_expr_parent field.
4001 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4002 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4003 field.
4004 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4005 ops method.
4006 (varobj_default_is_path_expr_parent): New function.
4007 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4008 (varobj_default_is_path_expr_parent): Declare new function.
4009
4010 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4011
4012 * infcmd.c (finish_backward): Turn internal error into normal error.
4013
4014 2014-07-07 Pedro Alves <palves@redhat.com>
4015
4016 PR gdb/17096
4017 * remote.c (async_handle_remote_sigint)
4018 (async_handle_remote_sigint_twice): Call
4019 gdb_call_async_signal_handler instead of
4020 mark_async_signal_handler.
4021
4022 2014-07-07 Tom Tromey <tromey@redhat.com>
4023
4024 * target-delegates.c: Rebuild.
4025 * target.c (target_info_record): Remove.
4026 * record.c (info_record_command): Unconditionally call
4027 to_info_record.
4028 * target.h (struct target_ops) <to_info_record>: Use
4029 TARGET_DEFAULT_IGNORE.
4030 (target_info_record): Remove.
4031
4032 2014-07-07 Tom Tromey <tromey@redhat.com>
4033
4034 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4035 TARGET_DEFAULT_NORETURN.
4036 * target.c (generic_tls_error): New function.
4037 (target_translate_tls_address): Don't search target stack.
4038 * target-delegates.c: Rebuild.
4039 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4040 stack.
4041 * linux-thread-db.c (thread_db_get_thread_local_address):
4042 Unconditionally call beneath target.
4043
4044 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4045
4046 * cli/cli-logging.c (pop_output_files): Assign targerr to
4047 gdb_stdtargerr.
4048
4049 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4050
4051 * MAINTAINERS (Write After Approval): Update my email address.
4052
4053 2014-07-02 Gary Benson <gbenson@redhat.com>
4054
4055 * proc-service.c (ps_xfer_memory): Update comment.
4056 (ps_pstop): Remove unused function.
4057 (ps_pcontinue): Likewise.
4058 (ps_lstop): Likewise.
4059 (ps_lcontinue): Likewise.
4060 (ps_lgetxregsize): Likewise.
4061 (ps_lgetxregs): Likewise.
4062 (ps_lsetxregs): Likewise.
4063 (ps_plog): Likewise.
4064 (ps_ptread): Likewise.
4065 (ps_ptwrite): Likewise.
4066
4067 2014-07-01 Mark Wielaard <mjw@redhat.com>
4068
4069 * dwarf2read.c (add_array_cv_type): New function.
4070 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4071 (read_tag_volatile_type): Likewise.
4072
4073 2014-07-01 Tom Tromey <tromey@redhat.com>
4074
4075 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4076 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4077 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4078 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4079 * command.h (cmd_cfunc_ftype): Move earlier.
4080 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4081 (add_com, add_info): Use cmd_cfunc_ftype.
4082
4083 2014-06-30 Tom Tromey <tromey@redhat.com>
4084
4085 * symtab.c (operator_chars): Make parameters and return type
4086 const.
4087 (file_matches): Make "files" const.
4088 (struct search_symbols_data) <files>: Now const.
4089 (search_symbols): Make "regexp" and "files" parameters const.
4090 Update.
4091 (symtab_symbol_info): Remove cast.
4092 (rbreak_command): Update.
4093 * symtab.h (search_symbols): Update.
4094
4095 2014-06-27 Yao Qi <yao@codesourcery.com>
4096
4097 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4098 Change parameter type to 'struct thread_info *'. Caller
4099 updated.
4100 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4101 Update declaration.
4102 * dummy-frame.c (struct dummy_frame_id): New.
4103 (dummy_frame_id_eq): New function.
4104 (struct dummy_frame) <id>: Change its type to 'struct
4105 dummy_frame_id'.
4106 (dummy_frame_push): Add parameter ptid and save it in
4107 dummy_frame_id.
4108 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4109 inferior_ptid.
4110 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4111 to inferior_ptid.
4112 (lookup_dummy_frame): Change parameter type to 'struct
4113 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4114 instead of frame_id_eq.
4115 (dummy_frame_pop): Add parameter ptid. Callers updated.
4116 Update comments. Compose dummy_frame_id and pass it to
4117 lookup_dummy_frame.
4118 (dummy_frame_discard): Add parameter ptid.
4119 (dummy_frame_sniffer): Compose dummy_frame_id and call
4120 dummy_frame_id_eq instead of frame_id_eq.
4121 (fprint_dummy_frames): Print ptid.
4122 * dummy-frame.h: Remove comments.
4123 (dummy_frame_push): Add ptid in declaration.
4124 (dummy_frame_pop, dummy_frame_discard): Likewise.
4125
4126 2014-06-26 Tom Tromey <tromey@redhat.com>
4127
4128 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4129 * command.h (error_no_arg): Update.
4130
4131 2014-06-26 Tom Tromey <tromey@redhat.com>
4132
4133 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4134 (do_show_command): Make "arg" const.
4135 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4136
4137 2014-06-26 Tom Tromey <tromey@redhat.com>
4138
4139 * record-full.c (record_full_get_bookmark): Make "args" const.
4140 (record_full_goto_bookmark): Make "raw_bookmark" const.
4141 * record.c (record_goto): New function.
4142 (cmd_record_goto): Use it. Now static.
4143 * record.h (record_goto): Declare.
4144 (cmd_record_goto): Remove declaration.
4145 * target-delegates.c: Rebuild.
4146 * target.h (struct target_ops) <to_get_bookmark,
4147 to_goto_bookmark>: Make parameter const.
4148
4149 2014-06-26 Tom Tromey <tromey@redhat.com>
4150
4151 * defs.h (generic_load): Update.
4152 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4153 * monitor.c (monitor_load): Make "args" const.
4154 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4155 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4156 const.
4157 (mips_load): Make "file" const.
4158 * remote-sim.c (gdbsim_load): Make "args" const.
4159 * remote.c (remote_load): Make "name" const.
4160 * symfile.c (generic_load): Make "args" const.
4161 * target-delegates.c: Rebuild.
4162 * target.c (target_load): Make "arg" const.
4163 (debug_to_load): Make "args" const.
4164 * target.h (struct target_ops) <to_load>: Make parameter const.
4165 (target_load): Update.
4166
4167 2014-06-26 Tom Tromey <tromey@redhat.com>
4168
4169 PR symtab/16902:
4170 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4171 (dwarf2_physname, read_partial_die)
4172 (guess_partial_die_structure_name, fixup_partial_die)
4173 (guess_full_die_structure_name, anonymous_struct_prefix)
4174 (dwarf2_name): Use per-BFD obstack.
4175
4176 2014-06-26 Yao Qi <yao@codesourcery.com>
4177
4178 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4179 dummyframe and this_id into inner block below.
4180
4181 2014-06-26 Yao Qi <yao@codesourcery.com>
4182
4183 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4184 with "signal_pass[0]" in the initialization of signal_pass.
4185
4186 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4187
4188 * record-btrace.c (record_btrace_generating_corefile)
4189 (record_btrace_prepare_to_generate_core)
4190 (record_btrace_done_generating_core): New.
4191 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4192 (record_btrace_store_registers, record_btrace_prepare_to_store):
4193 Forward request when generating a core file.
4194 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4195 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4196 to_done_generating_core.
4197
4198 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4199
4200 * target.h (target_ops) <to_prepare_to_generate_core>
4201 <to_done_generating_core>: New.
4202 (target_prepare_to_generate_core, target_done_generating_core): New.
4203 * target.c (target_prepare_to_generate_core)
4204 (target_done_generating_core): New.
4205 * target-delegates.c: Regenerate.
4206 * gcore.c: (write_gcore_file): Rename to ...
4207 (write_gcore_file_1): ...this.
4208 (write_gcore_file): Call target_prepare_to_generate_core
4209 and target_done_generating_core.
4210
4211 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4212
4213 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4214 * gcore.c (write_gcore_file): Free memory returned from
4215 make_corefile_notes.
4216 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4217 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4218
4219 2014-06-24 Yao Qi <yao@codesourcery.com>
4220
4221 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4222 (arm_linux_init_abi): Set skip_trampoline_code with
4223 gdbarch_skip_trampoline_code instead of
4224 find_solib_trampoline_target.
4225
4226 2014-06-24 Yao Qi <yao@codesourcery.com>
4227
4228 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4229 arm_skip_bx_reg returns non-zero.
4230
4231 2014-06-24 Yao Qi <yao@codesourcery.com>
4232
4233 * arm-tdep.c (arm_skip_bx_reg): New function.
4234 (arm_skip_stub): Call arm_skip_bx_reg.
4235
4236 2014-06-23 Don Breazeal <donb@codesourcery.com>
4237
4238 * MAINTAINERS: Add myself as write-after-approval maintainer.
4239
4240 2014-06-23 Pedro Alves <palves@redhat.com>
4241
4242 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4243 DR_CONTROL before setting DR0..DR3.
4244 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4245 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4246 bits of DR_CONTROL related to the debug register slot being
4247 disabled. If all slots are vacant, clear local slowdown as well,
4248 and assert DR_CONTROL is 0.
4249
4250 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4251
4252 * python/lib/gdb/command/xmethods.py
4253 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4254 current progspace only if the string "progspace" matches LOCUS_RE.
4255
4256 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4257
4258 Fix --with-system-readline with readline-6.3 patch 5.
4259 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4260 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4261 types.
4262
4263 2014-06-20 Tom Tromey <tromey@redhat.com>
4264
4265 * dwarf2read.c (dw2_get_real_path): Use correct type in
4266 OBSTACK_CALLOC.
4267 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4268
4269 2014-06-20 Gary Benson <gbenson@redhat.com>
4270
4271 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4272 * common/glibc_thread_db.h: Likewise.
4273 * common/i386-cpuid.h: Likewise.
4274 * common/i386-gcc-cpuid.h: Likewise.
4275 * common/linux-btrace.h: Likewise.
4276 * common/linux-osdata.h: Likewise.
4277 * common/linux-procfs.h: Likewise.
4278 * common/linux-ptrace.h: Likewise.
4279 * common/mips-linux-watch.h: Likewise.
4280 * common/linux-btrace.c: Moved to nat.
4281 * common/linux-osdata.c: Likewise.
4282 * common/linux-procfs.c: Likewise.
4283 * common/linux-ptrace.c: Likewise.
4284 * common/mips-linux-watch.c: Likewise.
4285 * nat/gdb_thread_db.h: Moved from common.
4286 * nat/glibc_thread_db.h: Likewise.
4287 * nat/i386-cpuid.h: Likewise.
4288 * nat/i386-gcc-cpuid.h: Likewise.
4289 * nat/linux-btrace.c: Likewise.
4290 * nat/linux-btrace.h: Likewise.
4291 * nat/linux-osdata.c: Likewise.
4292 * nat/linux-osdata.h: Likewise.
4293 * nat/linux-procfs.c: Likewise.
4294 * nat/linux-procfs.h: Likewise.
4295 * nat/linux-ptrace.c: Likewise.
4296 * nat/linux-ptrace.h: Likewise.
4297 * nat/mips-linux-watch.c: Likewise.
4298 * nat/mips-linux-watch.h: Likewise.
4299 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4300 (object file files): Reordered.
4301 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4302 of glibc_thread_db.h.
4303
4304 2014-06-20 Gary Benson <gbenson@redhat.com>
4305
4306 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4307 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4308 (i386_dr_low): Likewise.
4309 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4310 (i386_dr_low_set_addr): Likewise.
4311 (i386_dr_low_get_addr): Likewise.
4312 (i386_dr_low_can_set_control): Likewise.
4313 (i386_dr_low_set_control): Likewise.
4314 (i386_dr_low_get_control): Likewise.
4315 (i386_dr_low_get_status): Likewise.
4316 (i386_get_debug_register_length): Likewise.
4317 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4318 (i386_dr_low): Likewise.
4319 * nat/i386-dregs.c (i386-low.h): Remove include.
4320 (i386-nat.h): Likewise.
4321 (nat/i386-dregs.h): New include.
4322 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4323 (i386_dr_low_set_addr): Likewise.
4324 (i386_dr_low_get_addr): Likewise.
4325 (i386_dr_low_can_set_control): Likewise.
4326 (i386_dr_low_set_control): Likewise.
4327 (i386_dr_low_get_control): Likewise.
4328 (i386_dr_low_get_status): Likewise.
4329 (i386_get_debug_register_length): Likewise.
4330 (debug_hw_points): Likewise.
4331
4332 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4333
4334 * Makefile.in (SFILES): Add d-exp.y.
4335 (YYFILES): Add d-exp.c.
4336 (YYOBJ): Add d-exp.o.
4337 (local-maintainer-clean): Delete d-exp.c.
4338 * d-exp.y: New file.
4339 * d-lang.h (d_parse): New declaration.
4340 (d_error): New declaration.
4341 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4342 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4343 PREC_ORDER operators.
4344 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4345
4346 2014-06-19 Yao Qi <yao@codesourcery.com>
4347
4348 * gdbthread.h (any_running): Remove the declaration.
4349 * thread.c (any_running): Remove.
4350
4351 2014-06-19 Yao Qi <yao@codesourcery.com>
4352
4353 * gdbthread.h (struct thread_info) <state>: Change its type to
4354 'enum thread_state'. Update comments.
4355
4356 2014-06-19 Pedro Alves <palves@redhat.com>
4357
4358 * gdbthread.h (ALL_THREADS): Delete.
4359 (ALL_NON_EXITED_THREADS): New macro.
4360 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4361 instead of ALL_THREADS.
4362 * infrun.c (find_thread_needs_step_over)
4363 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4364 instead of ALL_THREADS.
4365 * record-btrace.c (record_btrace_open)
4366 (record_btrace_stop_recording, record_btrace_close)
4367 (record_btrace_is_replaying, record_btrace_resume)
4368 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4369 * remote.c (append_pending_thread_resumptions): Likewise.
4370 * thread.c (thread_apply_all_command): Likewise.
4371
4372 2014-06-19 Gary Benson <gbenson@redhat.com>
4373
4374 * i386-nat.c (i386_stopped_by_watchpoint):
4375 Use i386_dr_stopped_by_watchpoint.
4376 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4377 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4378
4379 2014-06-19 Gary Benson <gbenson@redhat.com>
4380
4381 * nat/i386-dregs.c: New file.
4382 * Makefile.in (i386-dregs.o): New rule.
4383 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4384 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4385 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4386 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4387 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4388 * config/i386/go32.mh (NATDEPFILES): Likewise.
4389 * config/i386/linux.mh (NATDEPFILES): Likewise.
4390 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4391 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4392 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4393 * i386-nat.h (debug_hw_points): New declaration.
4394 * i386-nat.c (breakpoint.h): Remove include.
4395 (command.h): Likewise.
4396 (target.h): Likewise.
4397 (gdb_assert.h): Likewise.
4398 (debug_hw_points): Made nonstatic.
4399 (debug_printf): Now in i386-dregs.c.
4400 (TARGET_HAS_DR_LEN_8): Likewise.
4401 (DR_CONTROL_SHIFT): Likewise.
4402 (DR_CONTROL_SIZE): Likewise.
4403 (DR_RW_EXECUTE): Likewise.
4404 (DR_RW_WRITE): Likewise.
4405 (DR_RW_READ): Likewise.
4406 (DR_RW_IORW): Likewise.
4407 (DR_LEN_1): Likewise.
4408 (DR_LEN_2): Likewise.
4409 (DR_LEN_4): Likewise.
4410 (DR_LEN_8): Likewise.
4411 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4412 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4413 (DR_ENABLE_SIZE): Likewise.
4414 (DR_LOCAL_SLOWDOWN): Likewise.
4415 (DR_GLOBAL_SLOWDOWN): Likewise.
4416 (DR_CONTROL_RESERVED): Likewise.
4417 (I386_DR_CONTROL_MASK): Likewise.
4418 (I386_DR_VACANT): Likewise.
4419 (I386_DR_LOCAL_ENABLE): Likewise.
4420 (I386_DR_GLOBAL_ENABLE): Likewise.
4421 (I386_DR_DISABLE): Likewise.
4422 (I386_DR_SET_RW_LEN): Likewise.
4423 (I386_DR_GET_RW_LEN): Likewise.
4424 (I386_DR_WATCH_HIT): Likewise.
4425 (i386_wp_op_t): Likewise.
4426 (i386_show_dr): Likewise.
4427 (i386_length_and_rw_bits): Likewise.
4428 (i386_insert_aligned_watchpoint): Likewise.
4429 (i386_remove_aligned_watchpoint): Likewise.
4430 (i386_handle_nonaligned_watchpoint): Likewise.
4431 (i386_update_inferior_debug_regs): Likewise.
4432 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4433 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4434 (i386_region_ok_for_watchpoint):
4435 Use i386_dr_region_ok_for_watchpoint.
4436 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4437
4438 2014-06-19 Gary Benson <gbenson@redhat.com>
4439
4440 * i386-nat.c (i386_insert_hw_breakpoint): Use
4441 i386_insert_watchpoint.
4442 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4443
4444 2014-06-19 Gary Benson <gbenson@redhat.com>
4445
4446 * i386-nat.c (i386_dr_show): Renamed to
4447 i386_show_dr and made static. All uses updated.
4448 (i386_dr_length_and_rw_bits): Renamed to
4449 i386_length_and_rw_bits and made static.
4450 All uses updated.
4451 (i386_dr_insert_aligned_watchpoint): Renamed to
4452 i386_insert_aligned_watchpoint and made static.
4453 All uses updated.
4454 (i386_dr_remove_aligned_watchpoint): Renamed to
4455 i386_remove_aligned_watchpoint and made static.
4456 All uses updated.
4457 (i386_dr_update_inferior_debug_regs): Renamed to
4458 i386_update_inferior_debug_regs and made static.
4459 All uses updated.
4460 * nat/i386-dregs.h (i386_dr_show): Removed.
4461 (i386_dr_length_and_rw_bits): Likewise.
4462 (i386_dr_insert_aligned_watchpoint): Likewise.
4463 (i386_dr_remove_aligned_watchpoint): Likewise.
4464 (i386_dr_update_inferior_debug_regs): Likewise.
4465
4466 2014-06-19 Gary Benson <gbenson@redhat.com>
4467
4468 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4469 * configure: Regenerate.
4470 * config.in: Likewise.
4471 * main.c (signal.h): New include.
4472 (setup_alternate_signal_stack): New function.
4473 (captured_main): Call the above.
4474 * cp-support.c (signal.h): New include.
4475 (catch_demangler_crashes): New flag.
4476 (SIGJMP_BUF): New define.
4477 (SIGSETJMP): Likewise.
4478 (SIGLONGJMP): Likewise.
4479 (gdb_demangle_jmp_buf): New static global.
4480 (gdb_demangle_attempt_core_dump): Likewise.
4481 (gdb_demangle_signal_handler): New function.
4482 (gdb_demangle): If catch_demangler_crashes is set, install the
4483 above signal handler before calling bfd_demangle, and restore
4484 the original signal handler afterwards. Display the offending
4485 symbol and call demangler_warning the first time a segmentation
4486 fault is caught.
4487 (_initialize_cp_support): New maint set/show command.
4488
4489 2014-06-19 Gary Benson <gbenson@redhat.com>
4490
4491 * utils.h (resource_limit_kind): New enum.
4492 (can_dump_core): New declaration.
4493 (warn_cant_dump_core): Likewise.
4494 (dump_core): Likewise.
4495 * utils.c (dump_core): Made nonstatic. Added new
4496 parameter "limit_kind".
4497 (can_dump_core): Made nonstatic. Moved printing code to...
4498 (warn_cant_dump_core): New function.
4499 (can_dump_core_warn): Likewise.
4500 (internal_vproblem): Replace calls to can_dump_core with
4501 calls to can_dump_core_warn. Supply new argument to each.
4502
4503 2014-06-19 Gary Benson <gbenson@redhat.com>
4504
4505 * utils.h (demangler_vwarning): New declaration.
4506 (demangler_warning): Likewise.
4507 * utils.c (struct internal_problem)
4508 <user_settable_should_quit>: New field.
4509 <user_settable_should_dump_core>: Likewise
4510 (internal_error_problem): Add values for above new fields.
4511 (internal_warning_problem): Likewise.
4512 (demangler_warning_problem): New static global.
4513 (demangler_vwarning): New function.
4514 (demangler_warning): Likewise.
4515 (add_internal_problem_command): Selectively add commands.
4516 (_initialize_utils): New internal problem command.
4517 * maint.c (maintenance_demangler_warning): New function.
4518 (_initialize_maint_cmds): New command.
4519
4520 2014-06-18 Tom Tromey <tromey@redhat.com>
4521
4522 * f-valprint.c (info_common_command_for_block): Update.
4523 * symtab.h (struct general_symbol_info) <common_block>: Now
4524 const.
4525
4526 2014-06-18 Tom Tromey <tromey@redhat.com>
4527
4528 * symtab.h (struct symtab) <blockvector>: Now const.
4529 * ada-lang.c (ada_add_global_exceptions): Update.
4530 * buildsym.c (augment_type_symtab): Update.
4531 * dwarf2read.c (dw2_lookup_symbol): Update.
4532 * jit.c (finalize_symtab): Update.
4533 * jv-lang.c (add_class_symtab_symbol): Update.
4534 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4535 Update.
4536 * objfiles.c (objfile_relocate1): Update.
4537 * psymtab.c (lookup_symbol_aux_psymtabs)
4538 (maintenance_check_psymtabs): Update.
4539 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4540 Update.
4541 * spu-tdep.c (spu_catch_start): Update.
4542 * symmisc.c (dump_symtab_1): Update.
4543 * symtab.c (lookup_global_symbol_from_objfile)
4544 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4545 (basic_lookup_transparent_type_quick)
4546 (basic_lookup_transparent_type, find_pc_sect_symtab)
4547 (find_pc_sect_line, search_symbols): Update.
4548 * block.c (find_block_in_blockvector): Make "bl" const.
4549 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4550 const.
4551 (blockvector_contains_pc): Make "bv" const.
4552 (block_for_pc_sect): Update.
4553 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4554 (blockvector_contains_pc): Update.
4555 * breakpoint.c (resolve_sal_pc): Update.
4556 * inline-frame.c (block_starting_point_at): Update.
4557
4558 2014-06-18 Tom Tromey <tromey@redhat.com>
4559
4560 * completer.c (complete_line): Make "line_buffer" const.
4561 * completer.h (complete_line): Update.
4562
4563 2014-06-18 Tom Tromey <tromey@redhat.com>
4564
4565 * symtab.c (add_macro_name): Remove unneeded cast.
4566
4567 2014-06-18 Tom Tromey <tromey@redhat.com>
4568
4569 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4570 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4571
4572 2014-06-18 Tom Tromey <tromey@redhat.com>
4573
4574 * probe.c (info_probes_for_ops): Make "arg" const.
4575 * probe.h (info_probes_for_ops): Update.
4576
4577 2014-06-18 Tom Tromey <tromey@redhat.com>
4578
4579 * varobj.c (varobj_create): Update.
4580 * valops.c (value_of_this): Update.
4581 * tracepoint.c (add_local_symbols, scope_info): Update.
4582 * symtab.h (struct general_symbol_info) <block>: Now const.
4583 * symtab.c (skip_prologue_sal)
4584 (default_make_symbol_completion_list_break_on)
4585 (skip_prologue_using_sal): Update.
4586 * stack.h (iterate_over_block_locals)
4587 (iterate_over_block_local_vars): Update.
4588 * stack.c (print_frame_args): Update.
4589 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4590 parameter const.
4591 (get_selected_block): Make return type const.
4592 * python/py-frame.c (frapy_block): Update.
4593 * python/py-block.c (gdbpy_block_for_pc): Update.
4594 * p-exp.y (%union) <bval>: Now const.
4595 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4596 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4597 * m2-exp.y (%union) <bval>: Now const.
4598 * linespec.c (get_current_search_block): Make return type const.
4599 (create_sals_line_offset, find_label_symbols): Update.
4600 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4601 Update.
4602 (block_starting_point_at): Make "block" const.
4603 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4604 (check_exception_resume): Update.
4605 * guile/scm-frame.c (gdbscm_frame_block): Update.
4606 * guile/scm-block.c (gdbscm_lookup_block): Update.
4607 * frame.h (get_frame_block): Update.
4608 (get_selected_block): Make return type const.
4609 * frame.c (frame_id_inner): Update.
4610 * f-valprint.c (info_common_command_for_block)
4611 (info_common_command): Update.
4612 * dwarf2loc.c (dwarf2_find_location_expression)
4613 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4614 (locexpr_describe_location_piece): Update.
4615 * c-exp.y (%union) <bval>: Now const.
4616 * breakpoint.c (resolve_sal_pc): Update.
4617 * blockframe.c (get_frame_block):Make return type const.
4618 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4619 (block_innermost_frame): Update.
4620 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4621 (block_for_pc, block_for_pc_sect): Update.
4622 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4623 'pblock' const.
4624 (block_for_pc_sect, block_for_pc): Make return type const.
4625 * ax-gdb.c (gen_expr): Update.
4626 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4627 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4628 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4629 (ada_read_var_value): Update.
4630 * ada-exp.y (struct name_info) <block>: Now const.
4631 (%union): Likewise.
4632 (block_lookup): Constify.
4633
4634 2014-06-18 Gary Benson <gbenson@redhat.com>
4635
4636 * nat/i386-dregs.h: New file.
4637 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4638 * i386-nat.h (i386-dregs.h): New include.
4639 (DR_FIRSTADDR): Now in i386-dregs.h.
4640 (DR_LASTADDR): Likewise.
4641 (DR_NADDR): Likewise.
4642 (DR_STATUS): Likewise.
4643 (DR_CONTROL): Likewise.
4644 (i386_debug_reg_state): Likewise.
4645 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4646
4647 2014-06-18 Don Breazeal <donb@codesourcery.com>
4648
4649 * breakpoint.c (set_longjmp_breakpoint): Call
4650 momentary_breakpoint_from_master with additional argument.
4651 (set_longjmp_breakpoint_for_call_dummy): Call
4652 momentary_breakpoint_from_master with additional argument.
4653 (set_std_terminate_breakpoint): Call
4654 momentary_breakpoint_from_master with additional argument.
4655 (momentary_breakpoint_from_master): Add argument to function
4656 definition and use it to initialize structure member flag.
4657 (clone_momentary_breakpoint): Call
4658 momentary_breakpoint_from_master with additional argument.
4659 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4660 member flags set in momentary_breakpoint_from_master.
4661
4662 2014-06-18 Gary Benson <gbenson@redhat.com>
4663
4664 * i386-nat.c (i386_show_dr): Renamed to
4665 i386_dr_show and made nonstatic. All uses updated.
4666 (i386_length_and_rw_bits): Renamed to
4667 i386_dr_length_and_rw_bits and made nonstatic.
4668 All uses updated.
4669 (i386_insert_aligned_watchpoint): Renamed to
4670 i386_dr_insert_aligned_watchpoint and made nonstatic.
4671 All uses updated.
4672 (i386_remove_aligned_watchpoint): Renamed to
4673 i386_dr_remove_aligned_watchpoint and made nonstatic.
4674 All uses updated.
4675 (i386_update_inferior_debug_regs): Renamed to
4676 i386_dr_update_inferior_debug_regs and made nonstatic.
4677 All uses updated.
4678
4679 2014-06-18 Gary Benson <gbenson@redhat.com>
4680
4681 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4682 (i386_dr_low_can_set_control): Likewise.
4683 (i386_dr_low_set_addr): Likewise.
4684 (i386_dr_low_set_control): Likewise.
4685 (i386_dr_low_get_addr): Likewise.
4686 (i386_dr_low_get_status): Likewise.
4687 (i386_dr_low_get_control): Likewise.
4688 (i386_insert_aligned_watchpoint): Use new macros.
4689 (i386_update_inferior_debug_regs): Likewise.
4690 (i386_stopped_data_address): Likewise.
4691
4692 2014-06-18 Gary Benson <gbenson@redhat.com>
4693
4694 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4695 New parameter. All uses updated.
4696
4697 2014-06-18 Gary Benson <gbenson@redhat.com>
4698
4699 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4700 All uses updated.
4701
4702 2014-06-18 Gary Benson <gbenson@redhat.com>
4703
4704 * i386-nat.c (debug_printf): New macro.
4705 (i386_get_debug_register_length): Likewise.
4706 (TARGET_HAS_DR_LEN_8): Use above macro.
4707 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4708 and printf_unfiltered. Use phex to format values.
4709
4710 2014-06-18 Gary Benson <gbenson@redhat.com>
4711
4712 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4713 Make const.
4714
4715 2014-06-18 Gary Benson <gbenson@redhat.com>
4716
4717 * i386-nat.c: Comment changes.
4718
4719 2014-06-18 Gary Benson <gbenson@redhat.com>
4720
4721 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4722
4723 2014-06-18 Gary Benson <gbenson@redhat.com>
4724
4725 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4726 (i386_insert_aligned_watchpoint): Likewise.
4727 (i386_remove_aligned_watchpoint): Likewise.
4728 (i386_handle_nonaligned_watchpoint): Likewise.
4729
4730 2014-06-18 Gary Benson <gbenson@redhat.com>
4731
4732 * i386-nat.c: Whitespace changes.
4733
4734 2014-06-17 Samuel Bronson <naesten@gmail.com>
4735
4736 * MAINTAINERS: Update Roland McGrath's email address.
4737 Thanks to Sergio Durigan Junior for pointing out that he left
4738 Red Hat a while ago, and giving me a current address.
4739
4740 2014-06-17 Tom Tromey <tromey@redhat.com>
4741
4742 * utils.h (savestring): Remove declaration.
4743
4744 2014-06-17 Tom Tromey <tromey@redhat.com>
4745
4746 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4747
4748 2014-06-16 Keith Seitz <keiths@redhat.com>
4749
4750 PR mi/15863
4751 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4752 to update the varobj if inferior_ptid is null_ptid.
4753
4754 2014-06-16 Tom Tromey <tromey@redhat.com>
4755
4756 * target.h (struct target_ops) <to_info_proc>: Make parameter
4757 const.
4758 (target_info_proc): Update.
4759 * target.c (target_info_proc): Make "args" const.
4760 * procfs.c (procfs_info_proc): Update.
4761 * linux-tdep.c (linux_info_proc): Update.
4762 (linux_core_info_proc_mappings): Make "args" const.
4763 (linux_core_info_proc): Update.
4764 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4765 * gdbarch.c: Rebuild.
4766 * gdbarch.h: Rebuild.
4767 * corelow.c (core_info_proc): Update.
4768
4769 2014-06-16 Tom Tromey <tromey@redhat.com>
4770
4771 * target.h (struct target_ops) <to_disconnect>: Make parameter
4772 const.
4773 (target_disconnect): Update.
4774 * target.c (target_disconnect): Make "args" const.
4775 * target-delegates.c: Rebuild.
4776 * remote.c (remote_disconnect): Update.
4777 * record.h (record_disconnect): Update.
4778 * record.c (record_disconnect): Update.
4779 * inf-child.c (inf_child_disconnect): Update.
4780
4781 2014-06-16 Tom Tromey <tromey@redhat.com>
4782
4783 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4784 * target.c (debug_to_rcmd, default_rcmd): Update.
4785 * target-delegates.c: Rebuild.
4786 * remote.c (remote_rcmd): Update.
4787 * monitor.c (monitor_rcmd): Update.
4788
4789 2014-06-16 Pedro Alves <palves@redhat.com>
4790
4791 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4792 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4793 have OBJF_SHARED set.
4794 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4795 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4796 instead of OBJF_USERLOADED.
4797 * objfiles.h (OBJF_SHARED): Update comment.
4798 (userloaded_objfile_contains_address_p): Rename to ...
4799 (shared_objfile_contains_address_p): ... this, and update
4800 comments.
4801 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4802 new objfile.
4803 (remove_symbol_file_command): Skip objfiles that don't have
4804 OBJF_SHARED set.
4805
4806 2014-06-16 Tom Tromey <tromey@redhat.com>
4807
4808 * minsyms.h (prim_record_minimal_symbol)
4809 (prim_record_minimal_symbol_and_info): Update comments.
4810
4811 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4812
4813 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4814 or --without-guile, according to how GDB was built.
4815
4816 2014-06-13 Tom Tromey <tromey@redhat.com>
4817
4818 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4819 to help_list.
4820 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4821 to help_list.
4822 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4823 help_list.
4824 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4825 help_list.Pass all_commands, not -1, to help_list.
4826 * cli/cli-dump.c (dump_command, append_command)
4827 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4828 (binary_dump_command, binary_append_command): Pass all_commands,
4829 not -1, to help_list.
4830 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4831 -1, to help_list.
4832 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4833 -1, to help_list.
4834 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4835 help_list.
4836 * top.c (set_history): Pass all_commands, not -1, to help_list.
4837 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4838 all_commands, not -1, to help_list.
4839 * symfile.c (overlay_command): Pass all_commands, not -1, to
4840 help_list.
4841 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4842 help_list.
4843 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4844 help_list.
4845 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4846 -1, to help_list.
4847 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4848 not -1, to help_list.
4849 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4850 not -1, to help_list.
4851 * maint.c (maintenance_command, maintenance_info_command)
4852 (maintenance_print_command, maintenance_set_cmd): Pass
4853 all_commands, not -1, to help_list.
4854 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4855 help_list.
4856 * language.c (set_check): Pass all_commands, not -1, to help_list.
4857 * infcmd.c (unset_command): Pass all_commands, not -1, to
4858 help_list.
4859 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4860 help_list.
4861 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4862 help_list.
4863 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4864 help_list.
4865 * breakpoint.c (save_command): Pass all_commands, not -1, to
4866 help_list.
4867 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4868 all_commands, not -1, to help_list.
4869
4870 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4871
4872 * regcache.c (struct register_to_invalidate): New structure.
4873 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4874 functions.
4875 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4876
4877 2014-06-12 Yao Qi <yao@codesourcery.com>
4878
4879 * varobj.c (varobj_get_num_children): Call
4880 varobj_is_dynamic_p.
4881 (varobj_list_children): Likewise.
4882 (varobj_update): Likewise. Update comments.
4883
4884 2014-06-12 Yao Qi <yao@codesourcery.com>
4885
4886 * varobj.c (varobj_pretty_printed_p): Rename to ...
4887 (varobj_is_dynamic_p): ... this. New function.
4888 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4889 (varobj_is_dynamic_p): Declare.
4890 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4891 (mi_print_value_p, varobj_update_one): Likewise.
4892
4893 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4894 Yao Qi <yao@codesourcery.com>
4895
4896 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4897 (varobj_get_iterator): Wrap up code for pretty-printer by
4898 "#if HAVE_PYTHON" and "#endif".
4899 (update_dynamic_varobj_children): Likewise.
4900
4901 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4902 Yao Qi <yao@codesourcery.com>
4903
4904 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4905 gdb_python_initialized is false. Move some code from varobj.c.
4906 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4907 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4908 (struct varobj_item): Moved to varobj-iter.h".
4909 (varobj_clear_saved_item): New function.
4910 (update_dynamic_varobj_children): Move python-related code to
4911 py-varobj.c.
4912 (free_variable): Call varobj_clear_saved_item and
4913 varobj_iter_delete.
4914
4915 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4916 Yao Qi <yao@codesourcery.com>
4917
4918 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4919 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4920 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4921 (py-varobj.o): New rule.
4922 * python/py-varobj.c: New file.
4923 * python/python-internal.h (py_varobj_get_iterator): Declare.
4924 * varobj-iter.h: New file.
4925 * varobj.c: Include "varobj-iter.h"
4926 (struct varobj) <child_iter>: Change its type from "PyObject *"
4927 to "struct varobj_iter *".
4928 <saved_item>: Likewise.
4929 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4930 [HAVE_PYTHON] (varobj_get_iterator): New function.
4931 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4932 python-specific code to python/py-varobj.c.
4933 (install_visualizer): Call varobj_iter_delete instead of
4934 Py_XDECREF.
4935 * varobj.h (varobj_ensure_python_env): Declare.
4936
4937 2014-06-12 Yao Qi <yao@codesourcery.com>
4938
4939 * varobj.c (struct varobj_item): New structure.
4940 (create_child_with_value): Update declaration.
4941 (varobj_add_child): Replace arguments 'name' and 'value' with
4942 'item'. All callers updated.
4943 (install_dynamic_child): Likewise.
4944 (update_dynamic_varobj_children): Likewise.
4945 (varobj_add_child): Likewise.
4946 (create_child_with_value): Likewise.
4947
4948 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4949
4950 * NEWS: Create a new section for the next release branch.
4951 Rename the section of the current branch, now that it has
4952 been cut.
4953
4954 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4955
4956 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4957 * version.in: Bump version to 7.8.50.DATE-cvs.
4958
4959 2014-06-11 Pedro Alves <palves@redhat.com>
4960
4961 PR remote/17028
4962 * ser-mingw.c (net_windows_socket_check_pending): New function.
4963 (net_windows_select_thread): Ignore spurious wakeups. Use
4964 net_windows_socket_check_pending.
4965 (net_windows_wait_handle): Check for pending events with
4966 ioctlsocket, through net_windows_socket_check_pending, instead of
4967 checking the socket's event.
4968
4969 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4970
4971 * python/python-internal.h (gdb_PyObject_GetAttrString)
4972 (gdb_PyObject_HasAttrString): New inline function definitions.
4973 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4974 char * of the second argument to PyObject_GetAttrString.
4975
4976 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4977
4978 * serial.c (serial_write): Fix index of character to be printed
4979 in call to serial_logchar when serial debug traces are enabled.
4980
4981 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4982
4983 * gdbtypes (resolve_dynamic_range): Add function description.
4984
4985 2014-06-09 Pedro Alves <palves@redhat.com>
4986
4987 * linux-nat.c (linux_child_follow_fork): Initialize status with
4988 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4989 inner block. Only pass the signal to PTRACE_DETACH if in pass
4990 state.
4991
4992 2014-06-09 Gary Benson <gbenson@redhat.com>
4993
4994 * common/signals.c (gdb_signal_from_host): Reorder to separate
4995 the always-available ANSI-standard signals from the signals that
4996 require checking.
4997 (do_gdb_signal_to_host): Likewise.
4998 * proc-events.c (signal_table): Likewise.
4999
5000 2014-06-08 Hui Zhu <hui@codesourcery.com>
5001
5002 * common/linux-ptrace.c (linux_disable_event_reporting): New
5003 function.
5004 * common/linux-ptrace.h (linux_disable_event_reporting): New
5005 declaration.
5006 * linux-nat.c (linux_child_follow_fork): Do a single step before
5007 detach.
5008
5009 2014-06-07 Keith Seitz <keiths@redhat.com>
5010
5011 Revert:
5012 PR c++/16253
5013 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5014 from symbol_matches_domain in symtab.c. All local callers
5015 of symbol_matches_domain updated.
5016 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5017 search STRUCT_DOMAIN.
5018 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5019 independently. standard_lookup will do that automatically.
5020 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5021 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5022 (cp_lookup_symbol_in_namespace): Likewise.
5023 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5024 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5025 may return a STRUCT_DOMAIN match.
5026 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5027 * cp-support.c: Include language.h.
5028 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5029 VAR_DOMAIN.
5030 * psymtab.c (match_partial_symbol): Compare the requested
5031 domain with the symbol's domain directly.
5032 (lookup_partial_symbol): Likewise.
5033 * symtab.c (lookup_symbol_in_language): Explain when/why
5034 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5035 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5036 appropriate languages.
5037 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5038 and moved to ada-lang.c
5039 (lookup_block_symbol): Explain that this function only returns
5040 symbol matching the requested DOMAIN.
5041 Compare the requested domain with the symbol's domain directly.
5042 (iterate_over_symbols): Compare the requested domain with the
5043 symbol's domain directly.
5044 * symtab.h (symbol_matches_domain): Remove.
5045
5046 2014-06-06 Doug Evans <xdje42@gmail.com>
5047
5048 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5049 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5050 (gdbscm_guile_version_is_at_least): Declare.
5051 (gdbscm_scm_string_to_int): Declare.
5052 * guile/guile.c (gdbscm_guile_major_version): New global.
5053 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5054 (guile_datadir): New static global.
5055 (gdbscm_guile_data_directory): New function.
5056 (initialize_scheme_side): Update.
5057 (misc_guile_functions): Add guile-data-directory.
5058 (initialize_gdb_module): Fetch guile version number.
5059 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5060 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5061 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5062 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5063 comments.
5064 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5065 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5066 * guile/scm-value.c (gdbscm_value_to_string): Only call
5067 scm_port_conversion_strategy if Guile version >= 2.0.6.
5068
5069 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5070
5071 * main.c (print_gdb_help): Add -q and --silent.
5072
5073 2014-06-06 Gary Benson <gbenson@redhat.com>
5074
5075 * common/signals.c: Remove preprocessor conditionals for
5076 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5077 SIGSEGV and SIGTERM.
5078 * proc-events.c: Likewise.
5079
5080 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5081
5082 * symfile.c (symfile_free_objfile): Remove restriction to
5083 OBJF_USERLOADED.
5084 * symfile-mem.c (symbol_file_add_from_memory): Call
5085 add_target_sections_of_objfile.
5086
5087 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5088
5089 * guile/scm-value.c (gdbscm_history_append_x): Use
5090 'vlscm_get_value_smob_arg_unsafe' instead of
5091 'vlscm_scm_to_value'.
5092
5093 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5094
5095 PR mi/15806
5096 * utils.c (printchar): Don't escape at all if quoter is NUL.
5097 Update function documentation to clarify effect of parameter
5098 QUOTER.
5099 * remote.c (escape_buffer): Pass '\\' as the quoter to
5100 fputstrn_unfiltered.
5101 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5102 generate the output.
5103 (mi_solib_unloaded): Same.
5104
5105 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5106
5107 * development.sh: Delete.
5108 * Makefile.in (config.status): Adjust dependency on development.sh.
5109 * configure.ac: Adjust development.sh source call.
5110 * configure: Regenerate.
5111
5112 2014-06-04 Doug Evans <xdje42@gmail.com>
5113
5114 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5115 is_scheme_bkpt, spec.
5116 (bpscm_make_breakpoint_smob): Initialize new members.
5117 (gdbscm_create_breakpoint_x): Split into two ...
5118 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5119 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5120 (scheme_function breakpoint_functions): Update.
5121 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5122 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5123 register-breakpoint!.
5124
5125 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5126
5127 PR server/17023
5128 * mem-break.c (z_type_supported): Return zero if
5129 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5130
5131 2014-06-04 Tom Tromey <tromey@redhat.com>
5132
5133 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5134 value_from_contents_and_address_unresolved.
5135 (ada_template_to_fixed_record_type_1): Likewise.
5136 (ada_which_variant_applies): Likewise.
5137 * value.h (value_from_contents_and_address_unresolved): Declare.
5138 * value.c (value_from_contents_and_address_unresolved): New
5139 function.
5140 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5141 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5142 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5143
5144 2014-06-04 Tom Tromey <tromey@redhat.com>
5145
5146 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5147
5148 2014-06-04 Tom Tromey <tromey@redhat.com>
5149
5150 * procfs.c (procfs_attach): Make "args" const.
5151 * windows-nat.c (windows_attach): Make "args" const.
5152 * nto-procfs.c (procfs_attach): Make "args" const.
5153 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5154 * go32-nat.c (go32_attach): Make "args" const.
5155 * gnu-nat.c (gnu_attach): Make "args" const.
5156 * darwin-nat.c (darwin_attach): Make "args" const.
5157 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5158 * linux-nat.c (linux_nat_attach): Make "args" const.
5159 * remote.c (extended_remote_attach_1, extended_remote_attach):
5160 Make "args" const.
5161 * target.h (struct target_ops) <to_attach>: Make "args" const.
5162 (find_default_attach): Likewise.
5163 * utils.c (parse_pid_to_attach): Make "args" const.
5164 * utils.h (parse_pid_to_attach): Update.
5165
5166 2014-06-04 Tom Tromey <tromey@redhat.com>
5167
5168 * target-delegates.c: Rebuild.
5169 * target.c (default_thread_address_space): New function.
5170 (target_thread_address_space): Simplify.
5171 * target.h (struct target_ops) <to_thread_address_space>: Add
5172 TARGET_DEFAULT_FUNC.
5173
5174 2014-06-04 Doug Evans <xdje42@gmail.com>
5175
5176 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5177
5178 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5179
5180 * record-btrace.c: Include event-loop.h and inf-loop.h.
5181 (record_btrace_resume_exec_dir)
5182 (record_btrace_async_inferior_event_handler)
5183 (record_btrace_handle_async_inferior_event): New.
5184 (record_btrace_open): Create async event handler.
5185 (record_btrace_close): Delete async event handler.
5186 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5187 Mark async event handler.
5188 (record_btrace_execution_direction): New.
5189 (init_record_btrace_ops): Initialize to_execution_direction.
5190
5191 2014-06-03 Doug Evans <xdje42@gmail.com>
5192
5193 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5194 (gdbscm_make_parameter): Ditto.
5195
5196 2014-06-03 Doug Evans <dje@google.com>
5197
5198 * exec.c (exec_close_1): Call clear_section_table instead of
5199 resize_section_table.
5200 (clear_section_table): New function.
5201 (resize_section_table): Make static. Rename arg num_added to
5202 adjustment.
5203 * exec.h (clear_section_table): Declare.
5204 (resize_section_table): Delete.
5205 * progspace.c (release_program_space): Call clear_section_table
5206 instead of resize_section_table.
5207
5208 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5209
5210 * NEWS (Python Scripting): Add entry about the new xmethods
5211 feature.
5212
5213 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5214
5215 * python/py-xmethods.c: New file.
5216 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5217 (objfpy_dealloc): XDECREF on the new xmethods field.
5218 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5219 field.
5220 (objfpy_get_xmethods): New function.
5221 (objfile_getset): New entry 'xmethods'.
5222 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5223 (pspy_dealloc): XDECREF on the new xmethods field.
5224 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5225 field.
5226 (pspy_get_xmethods): New function.
5227 (pspace_getset): New entry 'xmethods'.
5228 * python/python-internal.h: Add declarations for new functions.
5229 * python/python.c (_initialize_python): Invoke
5230 gdbpy_initialize_xmethods.
5231 * python/lib/gdb/__init__.py (xmethods): New
5232 attribute.
5233 * python/lib/gdb/xmethod.py: New file.
5234 * python/lib/gdb/command/xmethods.py: New file.
5235
5236 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5237
5238 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5239 best match method returned by find_overload_match is an xmethod.
5240 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5241 the best matching operator returned by find_overload_match is an
5242 xmethod.
5243 * valops.c: #include "extension.h".
5244 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5245 Return void. The list of matching source methods is returned in
5246 "fn_list" and a vector of matching debug method workers is
5247 returned in "xm_worker_vec". Update all callers.
5248 (value_find_oload_method_list): Likewise.
5249 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5250 non-NULL, then the index of the best matching method in this
5251 vector is returned. Update all callers.
5252 (find_overload_match): Include xmethods while performing overload
5253 resolution.
5254
5255 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5256
5257 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5258 * extension-priv.h (struct extension_language_ops): Add the
5259 xmethod interface.
5260 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5261 get_matching_xmethod_workers, get_xmethod_argtypes,
5262 invoke_xmethod, free_xmethod_worker,
5263 free_xmethod_worker_vec): New functions.
5264 * extension.h: #include "common/vec.h".
5265 New function declarations.
5266 (struct xmethod_worker): New struct.
5267 (VEC (xmethod_worker_ptr)): New vector type.
5268 (xmethod_worker_ptr): New typedef.
5269 (xmethod_worker_vec): Likewise.
5270 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5271 builtin_type.
5272 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5273 (struct builtin_type): New field "xmethod".
5274 * valarith.c (value_ptradd): Assert that the value argument is not
5275 lval_xcallable.
5276 * valops.c (value_must_coerce_to_target): Return 0 for
5277 lval_xcallable values.
5278 * value.c (struct value): New field XM_WORKER in the field
5279 LOCATION.
5280 (value_address, value_raw_address): Return 0 for lval_xcallable
5281 values.
5282 (set_value_address): Assert that the value is not an
5283 lval_xcallable.
5284 (value_free): Free the associated xmethod worker when freeing
5285 lval_xcallable values.
5286 (set_value_component_location): Assert that the WHOLE value is not
5287 lval_xcallable.
5288 (value_of_xmethod, call_xmethod): New functions.
5289 * value.h: Declare "struct xmethod_worker".
5290 Declare new functions value_of_xmethod, call_xmethod.
5291
5292 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5293 Pedro Alves <palves@redhat.com>
5294
5295 PR breakpoints/17000
5296 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5297 New function, extracted from software_breakpoint_inserted_here_p.
5298 (software_breakpoint_inserted_here_p): Replace factored out code
5299 by call to find_non_raw_software_breakpoint_inserted_here.
5300 (bp_target_info_copy_insertion_state): New function.
5301 (bkpt_insert_location): Handle the case of a single-step
5302 breakpoint already inserted at the same address.
5303 (bkpt_remove_location): Handle the case of a single-step
5304 breakpoint still inserted at the same address.
5305 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5306 breakpoint already inserted at the same address.
5307 (deprecated_remove_raw_breakpoint): Handle the case of a
5308 non-raw breakpoint still inserted at the same address.
5309 (find_single_step_breakpoint): New function, extracted from
5310 single_step_breakpoint_inserted_here_p.
5311 (find_single_step_breakpoint): New function,
5312 factored out from single_step_breakpoint_inserted_here_p.
5313 (single_step_breakpoint_inserted_here_p): Reimplement.
5314
5315 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5316
5317 Pushed by Joel Brobecker <brobecker@adacore.com>
5318 * source.c (show_substitute_path_command): Fix display of matching
5319 substitution rules.
5320
5321 2014-06-03 Gary Benson <gbenson@redhat.com>
5322
5323 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5324
5325 2014-06-02 Doug Evans <xdje42@gmail.com>
5326
5327 Add parameter support for Guile.
5328 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5329 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5330 (scm-param.o): New rule.
5331 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5332 (gdbscm_misc_error): Declare.
5333 (gdbscm_canonicalize_command_name): Declare.
5334 (gdbscm_scm_to_host_string): Declare.
5335 (gdbscm_scm_from_host_string): Declare.
5336 (gdbscm_initialize_parameters): Declare.
5337 * guile/guile.c (initialize_gdb_module): Call
5338 gdbscm_initialize_parameters.
5339 * guile/lib/gdb.scm: Export parameter symbols.
5340 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5341 cmdscm_canonicalize_name and made public. All callers updated.
5342 * guile/scm-exception.c (gdbscm_misc_error): New function.
5343 * guile/scm-param.c: New file.
5344 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5345 (gdbscm_scm_to_host_string): New function.
5346 (gdbscm_scm_from_host_string): New function.
5347 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5348
5349 2014-06-02 Doug Evans <xdje42@gmail.com>
5350
5351 Add command support for Guile.
5352 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5353 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5354 (scm-cmd.o): New rule.
5355 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5356 (gdbscm_user_error_p): Declare.
5357 (gdbscm_parse_command_name): Declare.
5358 (gdbscm_valid_command_class_p): Declare.
5359 (gdbscm_initialize_commands): Declare.
5360 * guile/guile.c (initialize_gdb_module): Call
5361 gdbscm_initialize_commands.
5362 * guile/lib/gdb.scm: Export command symbols.
5363 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5364 (throw-user-error): New function.
5365 * guile/scm-cmd.c: New file.
5366 * guile/scm-exception.c (user_error_symbol): New static global.
5367 (gdbscm_user_error_p): New function.
5368 (gdbscm_initialize_exceptions): Set user_error_symbol.
5369 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5370
5371 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5372
5373 * top.c (command_loop): Handle comments here...
5374 (command_line_input): ... not here.
5375
5376 2014-06-02 Doug Evans <xdje42@gmail.com>
5377
5378 Add progspace support for Guile.
5379 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5380 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5381 (scm-progspace.o): New rule.
5382 * guile/guile-internal.h (pspace_smob): New typedef.
5383 (psscm_pspace_smob_pretty_printers): Declare.
5384 (psscm_pspace_smob_from_pspace): Declare.
5385 (psscm_scm_from_pspace): Declare.
5386 * guile/guile.c (initialize_gdb_module): Call
5387 gdbscm_initialize_pspaces.
5388 * guile/lib/gdb.scm: Export progspace symbols.
5389 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5390 support.
5391 (append-pretty-printer!): Ditto.
5392 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5393 Implement.
5394 * guile/scm-progspace.c: New file.
5395
5396 2014-06-03 Alan Modra <amodra@gmail.com>
5397
5398 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5399 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5400
5401 2014-06-02 Doug Evans <dje@google.com>
5402
5403 Add support for skeletonless type units.
5404 * dwarf2read.c (struct dwarf2_per_objfile): New member
5405 n_allocated_type_units.
5406 (struct dwarf2_per_objfile) <tu_stats>: New member
5407 nr_all_type_units_reallocs.
5408 (create_signatured_type_table_from_index): Initialize
5409 n_allocated_type_units
5410 (create_all_type_units): Ditto.
5411 (add_type_unit): Move up in file. New arg slot.
5412 All callers updated. Increase space for all_type_units more
5413 efficiently.
5414 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5415 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5416 (lookup_dwp_signatured_type): Ditto.
5417 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5418 All callers updated.
5419 (build_type_psymtabs_1): Leave type_unit_groups as
5420 NULL if no TUs present.
5421 (print_tu_stats): New function.
5422 (process_skeletonless_type_unit): New function.
5423 (process_dwo_file_for_skeletonless_type_units): New
5424 function.
5425 (process_skeletonless_type_units): New function.
5426 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5427 Call print tu_stats if debugging enabled.
5428
5429 2014-06-02 Pedro Alves <palves@redhat.com>
5430
5431 * breakpoint.c (build_target_command_list): Don't build a command
5432 list if we have any duplicate location that isn't a dprintf.
5433
5434 2014-06-02 Pedro Alves <palves@redhat.com>
5435
5436 * breakpoint.c (dprintf_breakpoint_hit): New function.
5437 (initialize_breakpoint_ops): Install it as dprintf's
5438 breakpoint_hit method.
5439
5440 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5441
5442 * source.c (substitute_path_rule_matches): Simplify using
5443 filename_ncmp instead of FILENAME_CMP.
5444
5445 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5446
5447 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5448
5449 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5450
5451 * configure.ac: When Guile is available, check for the
5452 availability of 'scm_new_smob'.
5453 * configure, config.h.in: Regenerate.
5454 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5455 function.
5456
5457 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5458
5459 * frame.c (struct frame_info): Add stop_string field.
5460 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5461 (get_prev_frame_always): Old content moved into
5462 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5463 TRY_CATCH, handle MEMORY_ERROR exceptions.
5464 (frame_stop_reason_string): New function definition.
5465 * frame.h (unwind_stop_reason_to_string): Extend comment to
5466 mention frame_stop_reason_string.
5467 (frame_stop_reason_string): New function declaration.
5468 * stack.c (frame_info): Switch to frame_stop_reason_string.
5469 (backtrace_command_1): Switch to frame_stop_reason_string.
5470 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5471 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5472 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5473
5474 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5475
5476 * frame.c (frame_stop_reason_string): Rename to ...
5477 (unwind_stop_reason_to_string): this.
5478 * frame.h (frame_stop_reason_string): Rename to ...
5479 (unwind_stop_reason_to_string): this.
5480 * stack.c (frame_info): Update call to frame_stop_reason_string.
5481 (backtrace_command_1): Likewise.
5482 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5483 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5484
5485 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5486
5487 * frame.c (remove_prev_frame): New function.
5488 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5489 remove_prev_frame.
5490
5491 2014-05-29 Pedro Alves <palves@redhat.com>
5492
5493 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5494 and make it const. When a single-step decays to a continue,
5495 clear 'step', not 'hw_step'. Pass whether the caller wanted
5496 to step to user_visible_resume_ptid, not what we ask the
5497 target to do.
5498
5499 2014-05-29 Pedro Alves <palves@redhat.com>
5500
5501 * infrun.c (process_event_stop_test, handle_step_into_function)
5502 (handle_step_into_function_backward): Adjust.
5503 Don't set the even thread's stop_step and call stop_waiting before
5504 calling end_stepping_range. Instead do that ...
5505 (end_stepping_range): ... here. Take an ecs pointer parameter.
5506
5507 2014-05-29 Pedro Alves <palves@redhat.com>
5508
5509 * infrun.c (stop_stepping): Rename to ...
5510 (stop_waiting): ... this.
5511 (proceed): Update comment.
5512 (process_event_stop_test, handle_inferior_event)
5513 (handle_signal_stop, handle_step_into_function)
5514 (handle_step_into_function_backward): Update.
5515
5516 2014-05-29 Pedro Alves <palves@redhat.com>
5517
5518 * infcall.c (run_inferior_call): Don't check whether the current
5519 thread is running after the proceed call.
5520
5521 2014-05-29 Pedro Alves <palves@redhat.com>
5522 Tom Tromey <tromey@redhat.com>
5523
5524 * NEWS: Mention "maint set target-async", "set mi-async", and that
5525 background execution commands are now always available.
5526 * target.h (target_async_permitted): Update comment.
5527 * target.c (target_async_permitted, target_async_permitted_1):
5528 Default to 1.
5529 (set_target_async_command): Rename to ...
5530 (maint_set_target_async_command): ... this.
5531 (show_target_async_command): Rename to ...
5532 (maint_show_target_async_command): ... this.
5533 (_initialize_target): Adjust.
5534 * infcmd.c (prepare_execution_command): Make extern.
5535 * inferior.h (prepare_execution_command): Declare.
5536 * infrun.c (set_observer_mode): Leave target async alone.
5537 * mi/mi-interp.c (mi_interpreter_init): Install
5538 mi_on_sync_execution_done as sync_execution_done observer.
5539 (mi_on_sync_execution_done): New function.
5540 (mi_execute_command_input_handler): Don't print the prompt if we
5541 just started a synchronous command with an async target.
5542 (mi_on_resume): Check sync_execution before printing prompt.
5543 * mi/mi-main.h (mi_async_p): Declare.
5544 * mi/mi-main.c: Include gdbcmd.h.
5545 (mi_async_p): New function.
5546 (mi_async, mi_async_1): New globals.
5547 (set_mi_async_command, show_mi_async_command, mi_async): New
5548 functions.
5549 (exec_continue): Call prepare_execution_command.
5550 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5551 (mi_execute_async_cli_command): Use mi_async_p.
5552 (_initialize_mi_main): Install "set mi-async". Make
5553 "target-async" a deprecated alias.
5554
5555 2014-05-29 Pedro Alves <palves@redhat.com>
5556
5557 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5558 (_initialize_cli_interp): Adjust.
5559 * event-loop.c: Include "observer.h".
5560 (start_event_loop): Notify 'command_error' observers instead of
5561 calling display_gdb_prompt. Remove FIXME comment.
5562 * event-top.c (display_gdb_prompt): Remove call into the
5563 interpreters.
5564 * inf-loop.c: Include "observer.h".
5565 (inferior_event_handler): Notify 'command_error' observers instead
5566 of calling display_gdb_prompt.
5567 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5568 observers instead of calling display_gdb_prompt.
5569 * interps.c (interp_set): Don't call display_gdb_prompt.
5570 (current_interp_display_prompt_p): Delete.
5571 * interps.h (interp_prompt_p): Delete declaration.
5572 (interp_prompt_p_ftype): Delete.
5573 (struct interp_procs) <prompt_proc_p>: Delete field.
5574 (current_interp_display_prompt_p): Delete declaration.
5575 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5576 (_initialize_mi_interp): Adjust.
5577 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5578 'command_error' observers.
5579 (tui_on_sync_execution_done, tui_on_command_error): New
5580 functions.
5581 (tui_display_prompt_p): Delete.
5582 (_initialize_tui_interp): Adjust.
5583
5584 2014-05-29 Pedro Alves <palves@redhat.com>
5585
5586 PR gdb/13860
5587 * cli/cli-interp.c: Include infrun.h and observer.h.
5588 (cli_uiout, cli_interp): New globals.
5589 (cli_on_signal_received, cli_on_end_stepping_range)
5590 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5591 functions.
5592 (cli_interpreter_init): Install them as 'end_stepping_range',
5593 'signal_received' 'signal_exited', 'exited' and 'no_history'
5594 observers.
5595 (_initialize_cli_interp): Remove cli_interp local.
5596 * infrun.c (handle_inferior_event): Call the several stop reason
5597 observers instead of printing the stop reason directly.
5598 (end_stepping_range): New function.
5599 (print_end_stepping_range_reason, print_signal_exited_reason)
5600 (print_exited_reason, print_signal_received_reason)
5601 (print_no_history_reason): Make static, and add an uiout
5602 parameter. Print to that instead of to CURRENT_UIOUT.
5603 * infrun.h (print_end_stepping_range_reason)
5604 (print_signal_exited_reason, print_exited_reason)
5605 (print_signal_received_reason print_no_history_reason): New
5606 declarations.
5607 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5608 'mi_uiout'.
5609 <cli_uiout>: New field.
5610 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5611 uiout for CLI output. Install 'signal_received',
5612 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5613 observers.
5614 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5615 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5616 (mi_on_no_history): New functions.
5617 (ui_out_free_cleanup): Delete function.
5618 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5619 instead use the one already stored in the MI interpreter data.
5620 (mi_ui_out): Adjust.
5621 * tui/tui-interp.c: Include infrun.h and observer.h.
5622 (tui_interp): New global.
5623 (tui_on_signal_received, tui_on_end_stepping_range)
5624 (tui_on_signal_exited, tui_on_exited)
5625 (tui_on_no_history): New functions.
5626 (tui_init): Install them as 'end_stepping_range',
5627 'signal_received' 'signal_exited', 'exited' and 'no_history'
5628 observers.
5629 (_initialize_tui_interp): Delete tui_interp local.
5630
5631 2014-05-29 Pedro Alves <palves@redhat.com>
5632
5633 PR gdb/15713
5634 * linux-nat.c (linux_nat_resume_callback): Rename the second
5635 parameter to 'except'. Skip LP if it points to EXCEPT.
5636 (linux_nat_resume): Don't mark the event lwp as not stopped
5637 before resuming sibling lwps. Instead ask
5638 linux_nat_resume_callback to skip the event lwp. Mark it as not
5639 stopped after actually resuming it.
5640 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5641 resuming it.
5642 (wait_lwp): Mark the lwp as stopped here.
5643 (stop_wait_callback): Mark the lwp as not stopped right after
5644 resuming it. Don't mark lwps as stopped here.
5645 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5646 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5647
5648 2014-05-29 Pedro Alves <palves@redhat.com>
5649
5650 PR PR15693
5651 * infrun.c (resume): Determine how much to resume depending on
5652 whether the caller wanted a step, not whether we can hardware step
5653 the target. Mark all threads that we intend to run as running,
5654 unless we're calling an inferior function.
5655 (normal_stop): If the thread is running an infcall, don't finish
5656 thread state.
5657 * target.c (target_resume): Don't mark threads as running here.
5658
5659 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5660
5661 * serial.c (_initialize_serial): Remove support for
5662 the "set remotebaud" and "show remotebaud" commands.
5663 * NEWS: Add entry documenting the removal of that command.
5664
5665 2014-05-28 Yao Qi <yao@codesourcery.com>
5666
5667 * charset.c: Fix typo in comments.
5668
5669 2014-05-27 Gary Benson <gbenson@redhat.com>
5670
5671 * utils.c (internal_vproblem): Prompt for a bug report.
5672
5673 2014-05-26 Andy Wingo <wingo@igalia.com>
5674
5675 * guile/scm-arch.c (arscm_mark_arch_smob):
5676 * guile/scm-block.c (bkscm_mark_block_smob)
5677 (bkscm_mark_block_syms_progress_smob):
5678 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5679 * guile/scm-exception.c (exscm_mark_exception_smob):
5680 * guile/scm-frame.c (frscm_mark_frame_smob):
5681 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5682 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5683 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5684 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5685 (ppscm_mark_pretty_printer_worker_smob):
5686 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5687 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5688 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5689 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5690 mark functions.
5691 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5692 function.
5693
5694 2014-05-26 Andy Wingo <wingo@igalia.com>
5695 Doug Evans <xdje42@gmail.com>
5696
5697 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5698 empty_base_class. All uses updated.
5699 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5700 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5701 Adapt all callers.
5702 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5703 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5704 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5705 (gdbscm_gsmob_has_property_p, add_property_name)
5706 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5707 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5708 (gdb-object-has-property?, gdb-object-properties): Remove.
5709 (gdb-object-kind): Renamed from gsmob-kind.
5710
5711 2014-05-26 Andy Wingo <wingo@igalia.com>
5712
5713 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5714 * configure: Regenerate.
5715
5716 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5717
5718 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5719
5720 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5721
5722 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5723 (replay_memory_access_read_only, replay_memory_access_read_write)
5724 (replay_memory_access_types, replay_memory_access)
5725 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5726 (cmd_set_record_btrace, cmd_show_record_btrace)
5727 (cmd_show_replay_memory_access): New.
5728 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5729 (record_btrace_remove_breakpoint): Replace
5730 record_btrace_allow_memory_access with replay_memory_access.
5731 (_initialize_record_btrace): Add commands.
5732 * NEWS: Announce it.
5733
5734 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5735
5736 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5737
5738 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5739
5740 * MAINTAINERS (Write After Approval): Move self back from
5741 paper trail.
5742
5743 2014-05-22 Pedro Alves <palves@redhat.com>
5744
5745 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5746 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5747 (disable_randomization, enum exec_direction_kind)
5748 (execution_direction, stop_registers, start_remote)
5749 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5750 (wait_for_inferior, normal_stop, get_last_target_status)
5751 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5752 (insert_step_resume_breakpoint_at_sal)
5753 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5754 (set_step_info, print_stop_event, signal_stop_state)
5755 (signal_print_state, signal_pass_state, signal_stop_update)
5756 (signal_print_update, signal_pass_update)
5757 (update_signals_program_target, clear_exit_convenience_vars)
5758 (displaced_step_dump_bytes, update_observer_mode)
5759 (signal_catch_update, gdb_signal_from_command): Move
5760 declarations ...
5761 * infrun.h: ... to this new file.
5762 * amd64-tdep.c: Include infrun.h.
5763 * annotate.c: Include infrun.h.
5764 * arch-utils.c: Include infrun.h.
5765 * arm-linux-tdep.c: Include infrun.h.
5766 * arm-tdep.c: Include infrun.h.
5767 * break-catch-sig.c: Include infrun.h.
5768 * breakpoint.c: Include infrun.h.
5769 * common/agent.c: Include infrun.h instead of inferior.h.
5770 * corelow.c: Include infrun.h.
5771 * event-top.c: Include infrun.h.
5772 * go32-nat.c: Include infrun.h.
5773 * i386-tdep.c: Include infrun.h.
5774 * inf-loop.c: Include infrun.h.
5775 * infcall.c: Include infrun.h.
5776 * infcmd.c: Include infrun.h.
5777 * infrun.c: Include infrun.h.
5778 * linux-fork.c: Include infrun.h.
5779 * linux-nat.c: Include infrun.h.
5780 * linux-thread-db.c: Include infrun.h.
5781 * monitor.c: Include infrun.h.
5782 * nto-tdep.c: Include infrun.h.
5783 * procfs.c: Include infrun.h.
5784 * record-btrace.c: Include infrun.h.
5785 * record-full.c: Include infrun.h.
5786 * remote-m32r-sdi.c: Include infrun.h.
5787 * remote-mips.c: Include infrun.h.
5788 * remote-notif.c: Include infrun.h.
5789 * remote-sim.c: Include infrun.h.
5790 * remote.c: Include infrun.h.
5791 * reverse.c: Include infrun.h.
5792 * rs6000-tdep.c: Include infrun.h.
5793 * s390-linux-tdep.c: Include infrun.h.
5794 * solib-irix.c: Include infrun.h.
5795 * solib-osf.c: Include infrun.h.
5796 * solib-svr4.c: Include infrun.h.
5797 * target.c: Include infrun.h.
5798 * top.c: Include infrun.h.
5799 * windows-nat.c: Include infrun.h.
5800 * mi/mi-interp.c: Include infrun.h.
5801 * mi/mi-main.c: Include infrun.h.
5802 * python/py-threadevent.c: Include infrun.h.
5803
5804 2014-05-22 Pedro Alves <palves@redhat.com>
5805
5806 * infrun.c (handle_inferior_event): Store the exit code for
5807 --return-child-result here, instead of ...
5808 (print_exited_reason): ... here.
5809
5810 2014-05-21 Pedro Alves <palves@redhat.com>
5811
5812 PR gdb/13860
5813 * gdbthread.h (struct thread_control_state): New field
5814 `command_interp'.
5815 * infrun.c (follow_fork): Copy the new thread control field to the
5816 child fork thread.
5817 (clear_proceed_status_thread): Clear the new thread control field.
5818 (proceed): Set the new thread control field.
5819 * interps.h (command_interp): Declare.
5820 * interps.c (command_interpreter): New global.
5821 (command_interp): New function.
5822 (interp_exec): Set `command_interpreter' while here.
5823 * cli-out.c (cli_uiout_dtor): New function.
5824 (cli_ui_out_impl): Install it.
5825 * mi/mi-interp.c: Include cli-out.h.
5826 (mi_cmd_interpreter_exec): Add comment.
5827 (restore_current_uiout_cleanup): New function.
5828 (ui_out_free_cleanup): New function.
5829 (mi_on_normal_stop): If finishing an execution command started by
5830 a CLI command, or any kind of breakpoint-like event triggered,
5831 print the stop event to the output (CLI) stream.
5832 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5833
5834 2014-05-21 Pedro Alves <palves@redhat.com>
5835
5836 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5837 current source line having changed.
5838 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5839 * infrun.c (normal_stop): Adjust call to
5840 set_current_sal_from_frame.
5841 * source.c (clear_lines_listed_range): New function.
5842 (set_current_source_symtab_and_line, identify_source_line): Clear
5843 the lines listed range.
5844 (line_info): Handle the first "info line" after the current source
5845 line having changed.
5846 * stack.c (print_stack_frame): Remove center handling.
5847 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5848 center sal.line.
5849
5850 2014-05-21 Pedro Alves <palves@redhat.com>
5851
5852 * inf-child.c (inf_child_mourn_inferior): New function.
5853 * inf-child.h (inf_child_mourn_inferior): New declaration.
5854 * darwin-nat.c (darwin_mourn_inferior): Use
5855 inf_child_mourn_inferior.
5856 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5857 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5858 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5859 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5860 * windows-nat.c (windows_mourn_inferior): Likewise.
5861
5862 2014-05-21 Doug Evans <xdje42@gmail.com>
5863
5864 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5865
5866 2014-05-21 Doug Evans <xdje42@gmail.com>
5867
5868 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5869 (gdbscm_out_of_range_error): Ditto.
5870 (gdbscm_memory_error): Ditto.
5871 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5872 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5873 (gdbscm_out_of_range_error): Update.
5874 (gdbscm_memory_error): Update.
5875 (gdbscm_scm_to_target_string_unsafe): Delete.
5876
5877 2014-05-21 Pedro Alves <palves@redhat.com>
5878
5879 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5880 globals.
5881 (inf_child_open_target): New function.
5882 (inf_child_open): Use inf_child_open_target to push the target
5883 instead of erroring out.
5884 (inf_child_disconnect, inf_child_close)
5885 (inf_child_maybe_unpush_target): New functions.
5886 (inf_child_target): Install inf_child_disconnect and
5887 inf_child_close. Store a pointer to the returned object.
5888 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5889 declarations.
5890 * target.c (auto_connect_native_target): New global.
5891 (show_default_run_target): New function.
5892 (find_default_run_target): Return NULL if automatically connecting
5893 to the native target is disabled.
5894 (_initialize_target): Install set/show auto-connect-native-target.
5895 * NEWS: Mention "set auto-connect-native-target", and "target
5896 native".
5897 * linux-nat.c (super_close): New global.
5898 (linux_nat_close): Call super_close.
5899 (linux_nat_add_target): Store a pointer to the base class's
5900 to_close method.
5901 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5902 inf_child_maybe_unpush.
5903 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5904 already pushed.
5905 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5906 the inferior. Use inf_child_maybe_unpush_target.
5907 (inf_ttrace_attach): Don't push the target if it is already
5908 pushed.
5909 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5910 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5911 after mourning the inferior. Use inf_child_maybe_unpush_target.
5912 (darwin_attach_pid): Don't push the target if it is already
5913 pushed.
5914 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5915 mourning the inferior. Use inf_child_maybe_unpush_target.
5916 (gnu_detach): Use inf_child_maybe_unpush_target.
5917 * go32-nat.c (go32_create_inferior): Don't push the target if it
5918 is already pushed.
5919 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5920 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5921 (procfs_open): Rename to ...
5922 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5923 comments. Can target_preopen before changing node. Call
5924 inf_child_open_target to push the target explicitly.
5925 (procfs_attach): Don't push the target if it is already pushed.
5926 (procfs_detach): Use inf_child_maybe_unpush_target.
5927 (procfs_create_inferior): Don't push the target if it is already
5928 pushed.
5929 (nto_native_ops): New global.
5930 (procfs_open): Reimplement.
5931 (procfs_native_open): New function.
5932 (init_procfs_targets): Install procfs_native_open as to_open of
5933 "target native". Store a pointer to the "native" target in
5934 nto_native_ops.
5935 * procfs.c (procfs_attach): Don't push the target if it is already
5936 pushed.
5937 (procfs_detach): Use inf_child_maybe_unpush_target.
5938 (procfs_mourn_inferior): Only unpush the target after mourning the
5939 inferior. Use inf_child_maybe_unpush_target.
5940 (procfs_init_inferior): Don't push the target if it is already
5941 pushed.
5942 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5943 if it is already pushed.
5944
5945 2014-05-21 Pedro Alves <palves@redhat.com>
5946
5947 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5948 and "procfs" targets are now called "native" instead.
5949
5950 2014-05-21 Pedro Alves <palves@redhat.com>
5951
5952 * go32-nat.c (go32_open): Delete.
5953 (go32_target): Don't override the to_open method.
5954
5955 2014-05-21 Pedro Alves <palves@redhat.com>
5956
5957 * nto-procfs.c (procfs_can_run): New function.
5958 (nto_procfs_ops): New global.
5959 (init_procfs_targets): New, based on procfs_target. Install
5960 "target native" in addition to "target procfs".
5961 (_initialize_procfs): Call init_procfs_targets instead of adding
5962 the target here.
5963
5964 2014-05-21 Pedro Alves <palves@redhat.com>
5965
5966 * windows-nat.c (windows_target): Don't override to_shortname,
5967 to_longname or to_doc.
5968
5969 2014-05-21 Pedro Alves <palves@redhat.com>
5970
5971 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5972 to_doc.
5973
5974 2014-05-21 Pedro Alves <palves@redhat.com>
5975
5976 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5977 to_shortname, to_longname or to_doc.
5978
5979 2014-05-21 Pedro Alves <palves@redhat.com>
5980
5981 * go32-nat.c (go32_target): Don't override to_shortname,
5982 to_longname or to_doc.
5983
5984 2014-05-21 Pedro Alves <palves@redhat.com>
5985
5986 * inf-child.c (inf_child_open): Remove mention of "child".
5987 (inf_child_target): Rename target to "native" instead of "child".
5988
5989 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5990
5991 * Makefile.in (SFILES): Delete "regset.c".
5992 (COMMON_OBS): Delete "regset.o".
5993 * regset.c: Remove.
5994 * regset.h (regset_alloc): Delete prototype.
5995
5996 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5997
5998 * sparc-linux-tdep.c (sparc32_linux_gregset)
5999 (sparc32_linux_fpregset): New static regset structures.
6000 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6001 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6002 'fpregset' fields.
6003 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6004 (sparc64_linux_fpregset): New static regset structures.
6005 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6006 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6007 New static regset structures.
6008 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6009 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6010 New static regset structures.
6011 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6012 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6013 New static regset structures.
6014 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6015 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6016 New static regset structures.
6017 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6018
6019 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6020
6021 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6022 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6023 register maps ("regmaps") from "*regset" to "*regmap". Do this
6024 for all regmap types and variables.
6025 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6026 (sparc32_linux_supply_core_gregset)
6027 (sparc32_linux_collect_core_gregset)
6028 (sparc32_linux_supply_core_fpregset)
6029 (sparc32_linux_collect_core_fpregset): Likewise.
6030 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6031 (sparc_gregmap, sparc_fpregmap): ... these.
6032 (sparc_supply_gregset, sparc_collect_gregset)
6033 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6034 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6035 (_initialize_sparc_nat): Rename regmaps.
6036 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6037 (sparc_gregmap, sparc_fpregmap): ... these.
6038 (sparc_supply_gregset, sparc_collect_gregset)
6039 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6040 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6041 Rename macros to...
6042 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6043 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6044 Likewise.
6045 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6046 Rename to...
6047 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6048 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6049 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6050 regmaps.
6051 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6052 (sparc32_bsd_fpregset): Rename to...
6053 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6054 (sparc32_bsd_fpregmap): ... these.
6055 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6056 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6057 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6058 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6059 (struct sparc_gregmap, struct sparc_fpregmap)
6060 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6061 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6062 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6063 (sparc32_supply_regset, sparc32_collect_gregset)
6064 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6065 prototypes.
6066 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6067 (sparc64_linux_ptrace_gregmap): ... this.
6068 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6069 (_initialize_sparc64_linux_nat): Rename regmaps.
6070 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6071 (sparc64_linux_core_gregmap): ... this.
6072 (sparc64_linux_supply_core_gregset)
6073 (sparc64_linux_collect_core_gregset)
6074 (sparc64_linux_supply_core_fpregset)
6075 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6076 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6077 (sparc64_sol2_fpregset): Rename to...
6078 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6079 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6080 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6081 regmaps.
6082 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6083 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6084 (sparc64_bsd_fpregset): Rename to...
6085 (struct sparc_gregmap, sparc64_sol2_gregmap)
6086 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6087 (sparc64_bsd_fpregmap): ... these.
6088 (sparc64_supply_gregset, sparc64_collect_gregset)
6089 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6090 prototypes.
6091 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6092 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6093 (sparc64fbsd_gregmap): ... this.
6094 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6095 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6096 Rename regmaps.
6097 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6098 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6099 (sparc64nbsd_collect_fpregset): Likewise.
6100 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6101 (sparc64nbsd_gregmap): ... this.
6102 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6103 regmaps.
6104 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6105 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6106 (sparc64obsd_gregmap): ... this.
6107 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6108 regmaps.
6109 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6110 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6111 (sparc32nbsd_gregmap): ... this.
6112 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6113 regmaps.
6114
6115 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6116
6117 * score-tdep.c (score7_linux_gregset): New static regset
6118 structure.
6119 (score7_linux_regset_from_core_section): Remove dynamic regset
6120 allocation.
6121 (score_gdbarch_init): Drop allocation of tdep structure.
6122 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6123
6124 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6125
6126 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6127 regset structures.
6128 (am33_regset_from_core_section): Remove dynamic regset
6129 allocations.
6130
6131 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6132
6133 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6134 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6135 structures.
6136 (mips_linux_regset_from_core_section): Remove dynamic regset
6137 allocations.
6138 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6139 'gregset64', 'fpregset', and 'fpregset64'.
6140 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6141 deleted tdep fields.
6142
6143 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6144
6145 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6146 regset structures.
6147 (amd64_regset_from_core_section): Remove dynamic regset
6148 allocations.
6149 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6150 structure.
6151 (amd64obsd_regset_from_core_section): Remove dynamic regset
6152 allocation.
6153 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6154 Likewise.
6155 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6156 x86-common regset supply function.
6157 * i386-tdep.c (i386_collect_gregset): Make static.
6158 (i386_gregset): New global regset structure.
6159 (i386_fpregset, i386_xstateregset): New static regset structures.
6160 (i386_regset_from_core_section): Remove dynamic regset
6161 allocations.
6162 (i386_gdbarch_init): Remove initialization of tdep fields
6163 'gregset', 'fpregset', and 'xstateregset'.
6164 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6165 'fpregset', and 'xstateregset'.
6166 (i386_collect_gregset): Remove prototype.
6167 (i386_gregset): New declaration.
6168 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6169 structure.
6170 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6171 allocation.
6172
6173 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6174
6175 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6176 (arm_linux_vfpregset): New static regset structures.
6177 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6178 regset structures.
6179 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6180 and 'vfpregset' fields.
6181
6182 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6183
6184 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6185 (aarch64_linux_fpregset): New static regset structures.
6186 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6187 of regset structures.
6188 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6189 'fpregset' fields.
6190
6191 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6192
6193 * regset.h (struct regset): Remove gdbarch field.
6194 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6195 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6196 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6197 Likewise.
6198 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6199 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6200 (ppc32_linux_vsxregset): Likewise.
6201 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6202 via the regcache instead of the regset.
6203 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6204 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6205 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6206 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6207 Likewise.
6208
6209 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6210
6211 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6212 Constify structures.
6213 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6214 (alphanbsd_aout_gregset): Likewise.
6215 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6216 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6217 Likewise.
6218 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6219 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6220 Likewise.
6221 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6222 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6223 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6224 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6225 * m88k-tdep.c (m88k_gregset): Likewise.
6226 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6227 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6228 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6229 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6230 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6231 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6232 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6233 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6234 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6235 Likewise.
6236 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6237 * sh-tdep.h (sh_corefile_gregset): Likewise.
6238 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6239 * vax-tdep.c (vax_gregset): Likewise.
6240
6241 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6242
6243 Fix TLS access for -static -pthread.
6244 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6245 (try_thread_db_load_1): Initialize it.
6246 (thread_db_get_thread_local_address): Call it if LM is zero.
6247 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6248 * target.h (struct target_ops) (to_get_thread_local_address): Add
6249 load_module_addr comment.
6250
6251 2014-05-21 Pedro Alves <palves@redhat.com>
6252
6253 * dcache.c (dcache_read_memory_partial): If reading the cache line
6254 fails, fallback to reading just the memory the caller wanted.
6255
6256 2014-05-20 Doug Evans <dje@google.com>
6257
6258 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6259 instead of get_current_arch.
6260
6261 2014-05-20 Pedro Alves <palves@redhat.com>
6262
6263 * NEWS: Mention that compare-sections now works with all targets.
6264
6265 * remote.c (PACKET_qCRC): New enum value.
6266 (remote_verify_memory): Don't send qCRC if the target has no
6267 execution. Use packet_support/packet_ok. If the target doesn't
6268 support the qCRC packet, fallback to a deep memory copy.
6269 (compare_sections_command): Say "target image" instead of "remote
6270 executable".
6271 (_initialize_remote): Add PACKET_qCRC to the list of config
6272 packets that have no associated command. Extend comment.
6273 * target.c (simple_verify_memory, default_verify_memory): New
6274 function.
6275 * target.h (struct target_ops) <to_verify_memory>: Default to
6276 default_verify_memory.
6277 (simple_verify_memory): New declaration.
6278 * target-delegates.c: Regenerate.
6279
6280 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6281
6282 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6283
6284 2014-05-20 Hui Zhu <hui@codesourcery.com>
6285 Yao Qi <yao@codesourcery.com>
6286
6287 PR backtrace/16558
6288 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6289 and change address of sp and pc.
6290
6291 2014-05-19 Tom Tromey <tromey@redhat.com>
6292
6293 * gdbtypes.c (rank_function): Use XNEWVEC.
6294 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6295
6296 2014-05-19 Doug Evans <dje@google.com>
6297
6298 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6299 build_type_unit_groups and moved closer to only caller. Remove
6300 arguments. All references updated. Remove outdated .gdb_index
6301 comment.
6302 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6303 build_type_psymtabs_1.
6304
6305 2014-05-19 Doug Evans <dje@google.com>
6306
6307 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6308 n_type_unit_groups, all_type_unit_groups. All uses removed.
6309 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6310 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6311 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6312 (add_type_unit_group_to_table): Delete.
6313
6314 2014-05-19 Doug Evans <dje@google.com>
6315
6316 * eval.c (evaluate_subexp_standard): Add some comments.
6317
6318 2014-05-17 Doug Evans <xdje42@gmail.com>
6319
6320 * progspace.c (remove_program_space): Delete, unused.
6321 * progspace.h (remove_program_space): Ditto.
6322
6323 2014-05-17 Doug Evans <xdje42@gmail.com>
6324
6325 * inferior.c (prune_inferiors): Fix comment.
6326 (remove_inferior_command): Call prune_program_spaces.
6327
6328 2014-05-16 Doug Evans <dje@google.com>
6329
6330 New command line option -D.
6331 * NEWS: Mention it.
6332 * main.c (set_gdb_data_directory): New function.
6333 (captured_main): Recognize -D. Flag error for --data-directory "".
6334 Call set_gdb_data_directory.
6335 (print_gdb_help): Print --data-directory, -D.
6336 * main.h (set_gdb_data_directory): Declare.
6337 * top.c (staged_gdb_datadir): New static global.
6338 (set_gdb_datadir): Call set_gdb_data_directory
6339 (show_gdb_datadir): New function.
6340 (init_main): Update init of data-directory parameter.
6341
6342 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6343
6344 Import the "dirfd" gnulib module.
6345 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6346 * gnulib/aclocal.m4: Update.
6347 * gnulib/config.in: Update.
6348 * gnulib/configure: Update.
6349 * gnulib/import/Makefile.am: Update.
6350 * gnulib/import/Makefile.in: Update.
6351 * gnulib/import/dirfd.c: New.
6352 * gnulib/import/m4/dirfd.m4: New.
6353 * gnulib/import/m4/gnulib-cache.m4: Update.
6354 * gnulib/import/m4/gnulib-comp.m4: Update.
6355
6356 2014-05-16 Pierre Muller <muller@sourceware.org>
6357 Yao Qi <yao@codesourcery.com>
6358
6359 * valprint.c (print_wchar): Move the code on checking whether
6360 W is a printable wide char to the default branch of switch
6361 statement below. Call wchar_printable instead of gdb_iswprint.
6362
6363 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6364
6365 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6366 ldr.w and ldrd instructions.
6367
6368 2014-05-15 Doug Evans <dje@google.com>
6369
6370 * dwarf2read.c (read_structure_type): Delete outdated comments.
6371
6372 2014-05-14 Tom Tromey <tromey@redhat.com>
6373
6374 * macrocmd.c (print_macro_definition): Reindent.
6375
6376 2014-05-13 Doug Evans <xdje42@gmail.com>
6377
6378 * python/py-cmd.c (cmdpy_completer): Add comment.
6379 (completers): Make const.
6380
6381 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6382
6383 * infrun.c (resume): Remove should_resume (unused). Move up
6384 declaration of resume_ptid.
6385
6386 2014-05-13 Tom Tromey <tromey@redhat.com>
6387
6388 * language.h (unop_type_check): Remove.
6389 (binop_type_check): Don't declare.
6390
6391 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6392
6393 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6394 call to regcache_raw_collect.
6395
6396 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6397
6398 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6399 mi_console->quote as the quoting character.
6400
6401 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6402
6403 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6404
6405 2014-04-29 Tom Tromey <tromey@redhat.com>
6406
6407 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6408 "show debug varobj".
6409
6410 2014-05-07 Kyle McMartin <kyle@redhat.com>
6411
6412 Pushed by Joel Brobecker <brobecker@adacore.com>.
6413 * aarch64-tdep.c (aarch64_software_single_step): New function.
6414 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6415 with aarch64_software_single_step.
6416
6417 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6418
6419 GDB 7.7.1 released.
6420
6421 2014-05-05 Keith Seitz <keiths@redhat.com>
6422
6423 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6424 variable or history value is successfully parsed.
6425
6426 2014-05-05 Yao Qi <yao@codesourcery.com>
6427 Pedro Alves <palves@redhat.com>
6428
6429 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6430 address of blocks that intersects the requested range. Trim
6431 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6432 sections.
6433 * ctf.c (ctf_xfer_partial): Likewise.
6434
6435 2014-05-05 Yao Qi <yao@codesourcery.com>
6436
6437 * printcmd.c (display_command): Remove the check to
6438 target_has_execution.
6439
6440 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6441
6442 * ppcobsd-nat.c: Include "obsd-nat.h".
6443 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6444 add_target.
6445 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6446
6447 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6448
6449 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6450 and 16-bit signed and unsigned arguments. Update comment.
6451 (stap_parse_probe_arguments): Extend code to handle such
6452 arguments. Use warning instead of complaint to notify about
6453 unrecognized bitness.
6454
6455 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6456
6457 PR breakpoints/16889
6458 * stap-probe.c (stap_parse_probe_arguments): Simplify
6459 check for non-prefixed probes (i.e., probes whose
6460 arguments do not start with "N@"). Always set the
6461 argument type to a sane value.
6462
6463 2014-05-01 David Taylor <dtaylor@emc.com>
6464
6465 * remote.c (compare_sections_command): Add -r option to compare
6466 all loadable read-only sections.
6467
6468 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6469
6470 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6471 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6472 Update all callers.
6473 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6474 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6475 Remove unused CORE_ADDR argument. Update all callers.
6476
6477 2014-04-29 Pedro Alves <palves@redhat.com>
6478
6479 * remote.c (struct packet_config) <detect>: Extend comment.
6480 (add_packet_config_cmd): Don't set the config's detect or support
6481 fields here.
6482 (init_all_packet_configs): Also initialize the config's 'detect'
6483 field.
6484 (reset_all_packet_configs_support): New function.
6485 (remote_open_1): Call reset_all_packet_configs_support instead of
6486 init_all_packet_configs.
6487 (_initialize_remote): Initialize all packet configs. Assert that
6488 all packets have an associated command, except a few known
6489 outliers.
6490
6491 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6492
6493 * dwarf2read.c (read_subrange_type): Handle dynamic
6494 DW_AT_lower_bound attributes.
6495
6496 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6497
6498 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6499 dynamic bounds before computing its upper bound.
6500 (ada_discrete_type_low_bound): Same as above with the lower bound.
6501
6502 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6503
6504 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6505 range types. Adjust the array handling implementation to
6506 take advantage of this change.
6507 (resolve_dynamic_range): New function, mostly extracted from
6508 resolve_dynamic_bounds.
6509 (resolve_dynamic_array): New function, mostly extracted from
6510 resolve_dynamic_bounds.
6511 (resolve_dynamic_bounds): Delete.
6512 (resolve_dynamic_type): Reimplement. Add handling of
6513 TYPE_CODE_RANGE types.
6514
6515 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6516
6517 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6518 handling of parallel ___XA types.
6519
6520 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6521
6522 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6523 unnecessary second call to static_unwrap_type.
6524
6525 2014-04-27 Hui Zhu <hui@codesourcery.com>
6526
6527 * stack.c (print_frame_info): Call do_gdb_disassembly with
6528 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6529
6530 2014-04-26 Doug Evans <xdje42@gmail.com>
6531
6532 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6533
6534 2014-04-25 Pedro Alves <palves@redhat.com>
6535
6536 PR server/16255
6537 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6538 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6539 and newline from built string.
6540 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6541 (linux_ptrace_attach_fail_reason): ... this.
6542 * linux-nat.c (linux_nat_attach): Adjust to use
6543 linux_ptrace_attach_fail_reason.
6544
6545 2014-04-25 Pedro Alves <palves@redhat.com>
6546
6547 * remote.c (struct remote_state): Remove multi_process_aware,
6548 non_stop_aware, cond_tracepoints, cond_breakpoints,
6549 breakpoint_commands, fast_tracepoints, static_tracepoints,
6550 install_in_trace, disconnected_tracing,
6551 enable_disable_tracepoints, string_tracing, and
6552 augmented_libraries_svr4_read fields.
6553 (remote_multi_process_p): Move further below in the file.
6554 (struct packet_config): Add comments.
6555 (update_packet_config): Delete function.
6556 (show_packet_config_cmd): Use packet_config_support.
6557 (add_packet_config_cmd): Use NULL as set callback.
6558 (packet_ok): "set remote foo-packet"-style commands no longer
6559 change config->supported -- adjust.
6560 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6561 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6562 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6563 (PACKET_QNonStop, PACKET_multiprocess_feature)
6564 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6565 (PACKET_DisconnectedTracing_feature)
6566 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6567 (set_remote_protocol_packet_cmd): Delete function.
6568 (packet_config_support, packet_support): New functions.
6569 (set_remote_protocol_Z_packet_cmd): Don't call
6570 update_packet_config.
6571 (remote_query_attached, remote_pass_signals)
6572 (remote_program_signals, remote_threads_info)
6573 (remote_threads_extra_info, remote_start_remote): Use
6574 packet_support.
6575 (remote_start_remote): Use packet_config_support and
6576 packet_support.
6577 (init_all_packet_configs): Set all packets to unknown support,
6578 instead of calling update_packet_config.
6579 (remote_check_symbols): Use packet_support.
6580 (remote_supported_packet): Unconditionally set the packet config's
6581 support status.
6582 (remote_multi_process_feature, remote_non_stop_feature)
6583 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6584 (remote_breakpoint_commands_feature)
6585 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6586 (remote_install_in_trace_feature)
6587 (remote_disconnected_tracing_feature)
6588 (remote_enable_disable_tracepoint_feature)
6589 (remote_string_tracing_feature)
6590 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6591 (remote_protocol_features): Adjust to use remote_supported_packet
6592 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6593 "ConditionalTracepoints", "ConditionalBreakpoints",
6594 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6595 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6596 "EnableDisableTracepoints", and "tracenz".
6597 (remote_query_supported): Use packet_support.
6598 (remote_open_1): Adjust.
6599 (extended_remote_attach_1): Use packet_support. Switch on the
6600 result of packet_ok instead of checking whether the packet ended
6601 up disabled.
6602 (remote_vcont_resume): Use packet_support.
6603 (remote_resume, remote_stop_ns, fetch_register_using_p)
6604 (remote_prepare_to_store, store_register_using_P)
6605 (check_binary_download, remote_write_bytes): Use packet_support.
6606 (remote_vkill): Use packet_support. Switch on the result of
6607 packet_ok instead of checking whether the packet ended up
6608 disabled.
6609 (extended_remote_supports_disable_randomization): Use
6610 packet_support.
6611 (extended_remote_run): Switch on the result of packet_ok instead
6612 of checking whether the packet ended up disabled.
6613 (remote_insert_breakpoint, remote_remove_breakpoint)
6614 (remote_insert_watchpoint, remote_remove_watchpoint)
6615 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6616 packet_support.
6617 (remote_search_memory): Use packet_config_support.
6618 (remote_get_thread_local_address, remote_get_tib_address)
6619 (remote_hostio_send_command, remote_can_execute_reverse): Use
6620 packet_support.
6621 (remote_supports_cond_tracepoints)
6622 (remote_supports_cond_breakpoints)
6623 (remote_supports_fast_tracepoints)
6624 (remote_supports_static_tracepoints)
6625 (remote_supports_install_in_trace)
6626 (remote_supports_enable_disable_tracepoint)
6627 (remote_supports_string_tracing)
6628 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6629 the packet config says the feature is enabled or disabled.
6630 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6631 (remote_get_trace_status): Use packet_support.
6632 (remote_set_disconnected_tracing): Adjust to check whether the
6633 feature is enabled with packet_support.
6634 (remote_set_trace_buffer_size, remote_use_agent)
6635 (remote_can_use_agent, remote_supports_btrace): Use
6636 packet_support.
6637 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6638 Use packet_config_support.
6639 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6640 the packet config says the feature is enabled or disabled.
6641 (set_range_stepping): Use packet_support.
6642
6643 2014-04-25 Tom Tromey <tromey@redhat.com>
6644
6645 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6646 argument.
6647
6648 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6649
6650 * NEWS: Mention support for C99 variable length arrays.
6651
6652 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6653
6654 * ada-lang.c (standard_exc): Expand introductory comment.
6655
6656 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6657 Walfred Tedeschi <walfred.tedeschi@intel.com>
6658
6659 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6660 AVX512 registers.
6661 (amd64_linux_read_description): Add code to handle AVX512 xstate
6662 mask and return respective tdesc.
6663 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6664 and features/i386/x32-avx512-linux.c.
6665 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6666 (amd64_linux_core_read_description): Add code to handle AVX512
6667 xstate mask and return respective tdesc.
6668 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6669 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6670 calculation.
6671 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6672 (tdesc_amd64_avx512_linux): New prototype.
6673 (tdesc_x32_avx512_linux): Likewise.
6674 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6675 features/i386/x32-avx512.c.
6676 (amd64_ymm_avx512_names): New register names for pseudo
6677 registers YMM16-31.
6678 (amd64_ymmh_avx512_names): New register names for raw registers
6679 YMMH16-31.
6680 (amd64_k_names): New register names for K registers.
6681 (amd64_zmmh_names): New register names for ZMM raw registers.
6682 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6683 (amd64_xmm_avx512_names): New register names for XMM16-31
6684 registers.
6685 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6686 registers.
6687 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6688 if feature is present.
6689 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6690 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6691 (AMD64_NUM_REGS): Adjust to new number of registers.
6692 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6693 registers supplied via XSTATE by AVX512 registers.
6694 (i386_linux_read_description): Add case for AVX512.
6695 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6696 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6697 (i386_linux_core_read_description): Add case for AVX512.
6698 (i386_linux_init_abi): Install supported register note section
6699 for AVX512.
6700 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6701 AVX512.
6702 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6703 registers to be number of zmm7h + 1.
6704 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6705 * i386-tdep.c: Include features/i386/i386-avx512.c.
6706 (i386_zmm_names): Add ZMM pseudo register names array.
6707 (i386_zmmh_names): Add ZMM raw register names array.
6708 (i386_k_names): Add K raw register names array.
6709 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6710 registers. AVX512 has 16 more ZMM registers than there are YMM
6711 registers.
6712 (i386_zmmh_regnum_p): Add function to look up register number of
6713 ZMM raw registers.
6714 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6715 (i386_k_regnum_p): Likewise for K raw registers.
6716 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6717 registers added by AVX512.
6718 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6719 registers added by AVX512.
6720 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6721 added by AVX512.
6722 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6723 (i386_pseudo_register_name): Add ZMM pseudo registers.
6724 (i386_zmm_type): Construct and return vector registers type for ZMM
6725 registers.
6726 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6727 ZMM0-31 pseudo registers and K registers.
6728 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6729 and YMM16-31 registers from register cache.
6730 (i386_pseudo_register_write): Add code to write K, ZMM and
6731 YMM16-31 registers.
6732 (i386_register_reggroup_p): Add code to include/exclude AVX512
6733 registers in/from respective register groups.
6734 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6735 registers if feature is present in xcr0.
6736 (i386_gdbarch_init): Add code to initialize AVX512 feature
6737 variables in tdep structure, wire in pseudo registers and call
6738 initialize_tdesc_i386_avx512.
6739 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6740 variables.
6741 (i386_regnum): Add AVX512 registers.
6742 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6743 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6744 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6745 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6746 512 bits wide.
6747 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6748 (i386_ymm_avx512_regnum_p): Likewise.
6749 (i386_k_regnum_p): Likewise.
6750 (i386_zmm_regnum_p): Likewise.
6751 (i386_zmmh_regnum_p): Likewise.
6752 * i387-tdep.c : Update year in copyright notice.
6753 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6754 XSAVE buffer.
6755 (XSAVE_YMM_AVX512_ADDR): New macro.
6756 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6757 XSAVE buffer.
6758 (XSAVE_XMM_AVX512_ADDR): New macro.
6759 (xsave_avx512_k_offset): New table for K register offsets in
6760 XSAVE buffer.
6761 (XSAVE_AVX512_K_ADDR): New macro.
6762 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6763 in XSAVE buffer.
6764 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6765 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6766 buffer.
6767 (i387_collect_xsave): Add code to collect AVX512 registers from
6768 XSAVE buffer.
6769 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6770 of XMM16-31 registers.
6771 (I387_NUM_K_REGS): New define for number of K registers.
6772 (I387_K0_REGNUM): New define for K0 register number.
6773 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6774 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6775 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6776 registers.
6777 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6778 (I387_XMM16_REGNUM): New define for XMM16 register number.
6779 (I387_YMM0_REGNUM): New define for YMM0 register number.
6780 (I387_KEND_REGNUM): New define for last K register number.
6781 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6782 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6783 number.
6784 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6785 number.
6786 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6787 size.
6788 * features/Makefile: Add AVX512 related files.
6789 * features/i386/32bit-avx512.xml: New file.
6790 * features/i386/64bit-avx512.xml: Likewise.
6791 * features/i386/amd64-avx512-linux.c: Likewise.
6792 * features/i386/amd64-avx512-linux.xml: Likewise.
6793 * features/i386/amd64-avx512.c: Likewise.
6794 * features/i386/amd64-avx512.xml: Likewise.
6795 * features/i386/i386-avx512-linux.c: Likewise.
6796 * features/i386/i386-avx512-linux.xml: Likewise.
6797 * features/i386/i386-avx512.c: Likewise.
6798 * features/i386/i386-avx512.xml: Likewise.
6799 * features/i386/x32-avx512-linux.c: Likewise.
6800 * features/i386/x32-avx512-linux.xml: Likewise.
6801 * features/i386/x32-avx512.c: Likewise.
6802 * features/i386/x32-avx512.xml: Likewise.
6803 * regformats/i386/amd64-avx512-linux.dat: New file.
6804 * regformats/i386/amd64-avx512.dat: Likewise.
6805 * regformats/i386/i386-avx512-linux.dat: Likewise.
6806 * regformats/i386/i386-avx512.dat: Likewise.
6807 * regformats/i386/x32-avx512-linux.dat: Likewise.
6808 * regformats/i386/x32-avx512.dat: Likewise.
6809 * NEWS: Add note about new support for AVX512.
6810
6811
6812 2014-04-23 Pedro Alves <palves@redhat.com>
6813
6814 * breakpoint.c (insert_bp_location): Tolerate errors if the
6815 breakpoint is set in a user-loaded objfile.
6816 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6817 location is marked shlib_disabled. If the breakpoint is set in a
6818 user-loaded objfile is a GDB-side memory breakpoint, validate it
6819 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6820 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6821 flag.
6822 * mem-break.c (memory_validate_breakpoint): New function.
6823 * objfiles.c (userloaded_objfile_contains_address_p): New
6824 function.
6825 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6826 * target.h (memory_validate_breakpoint): New declaration.
6827
6828 2014-04-23 Pedro Alves <palves@redhat.com>
6829
6830 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6831 the breakpoint is set in a shared library, only suppress
6832 errors for software breakpoints, not hardware breakpoints.
6833
6834 2014-04-22 Pedro Alves <palves@redhat.com>
6835
6836 * infrun.c (schedlock_applies): New function, factored out from
6837 find_thread_needs_step_over.
6838 (find_thread_needs_step_over): Use it.
6839 (switch_back_to_stepped_thread): Always clear trap_expected if the
6840 step over is finished. Return early if scheduler locking applies.
6841 Look for the stepping thread and a potential step-over thread with
6842 a single loop.
6843 (currently_stepping_or_nexting_callback): Delete.
6844
6845 2014-04-22 Nick Clifton <nickc@redhat.com>
6846
6847 * NEWS: Mention that ARM sim now supports tracing.
6848
6849 2014-04-22 Yao Qi <yao@codesourcery.com>
6850
6851 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6852 to ...
6853 * tracefile.c (tracefile_fetch_registers): ... it. New
6854 function.
6855 * tracefile.h (tracefile_fetch_registers): Declare.
6856 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6857 tracefile_fetch_registers.
6858
6859 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6860
6861 PR gdb/14018
6862 * windows-nat.c (thread_rec): Don't display a warning when
6863 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6864 fails for any reason, set th->suspended to -1, so that we don't
6865 try to resume such a thread. Also, don't return NULL in these
6866 cases, to avoid completely ruin the session due to "PC register is
6867 not available" error.
6868 (do_windows_fetch_inferior_registers): Check errors in
6869 GetThreadContext call.
6870 (windows_continue): Accept an additional argument KILLED; if not
6871 zero, ignore errors in the SetThreadContext call, since the
6872 inferior was killed and is shutting down.
6873 (windows_resume, get_windows_debug_event)
6874 (windows_create_inferior, windows_mourn_inferior)
6875 (windows_kill_inferior): All callers of windows_continue changed
6876 to adjust to its new calling sequence.
6877
6878 2014-04-19 Yao Qi <yao@codesourcery.com>
6879
6880 * ctf.c (ctf_open): Call post_create_inferior.
6881
6882 2014-04-19 Yao Qi <yao@codesourcery.com>
6883
6884 * ctf.c (handle_id): New static variable.
6885 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6886 value. Get the declaration of event "register" and get length
6887 of field "contents".
6888
6889 2014-04-19 Yao Qi <yao@codesourcery.com>
6890
6891 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6892
6893 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6894
6895 * valops.c (oload_method_static): Remove unnecessary argument
6896 METHOD. Update all callers.
6897
6898 2014-04-18 Pedro alves <palves@redhat.com>
6899 Tom Tromey <tromey@redhat.com>
6900
6901 PR backtrace/15558
6902 * frame.c (get_prev_frame_1): Rename to ...
6903 (get_prev_frame_always): ... this, and make extern. Adjust.
6904 (skip_artificial_frames): Use get_prev_frame_always.
6905 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6906 (get_frame_unwind_stop_reason): Adjust to rename.
6907 * frame.h (get_prev_frame_always): Declare.
6908 * inline-frame.c: Include frame.h.
6909 (inline_frame_this_id): Use get_prev_frame_always.
6910
6911 2014-04-18 Tristan Gingold <gingold@adacore.com>
6912
6913 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6914 code by using bfd_mach_o_get_base_address.
6915
6916 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6917
6918 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6919 (spu_ax_pseudo_register_collect): New function.
6920 (spu_ax_pseudo_register_push_stack): Likewise.
6921 (spu_dwarf_reg_to_regnum): Likewise.
6922 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6923
6924 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6925
6926 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6927 Replace FRAME argument with FRAME_ID.
6928 * gdbarch.c, gdbarch.h: Regenerate.
6929 * findvar.c (default_value_from_register): Add GDBARCH argument;
6930 replace FRAME by FRAME_ID. No longer call get_frame_id.
6931 (value_from_register): Update call to gdbarch_value_from_register.
6932 * value.h (default_value_from_register): Update prototype.
6933 * s390-linux-tdep.c (s390_value_from_register): Update interface
6934 and call to default_value_from_register.
6935 * spu-tdep.c (spu_value_from_register): Likewise.
6936
6937 * findvar.c (address_from_register): Remove TYPE argument.
6938 Do not call value_from_register; use gdbarch_value_from_register
6939 with null_frame_id instead.
6940 * value.h (address_from_register): Update prototype.
6941 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6942 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6943 address_from_register interface change.
6944
6945 2014-04-17 Yao Qi <yao@codesourcery.com>
6946
6947 * gdbtypes.h: Update comments to link to types and macros'
6948 definitions.
6949
6950 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6951
6952 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6953
6954 2014-04-16 Keith Seitz <keiths@redhat.com>
6955
6956 PR gdb/15827
6957 * dwarf2read.c (skip_one_die): Check that all relative-offset
6958 sibling DIEs fall within range of the current reader's buffer.
6959 (read_partial_die): Likewise.
6960
6961 2014-04-16 Keith Seitz <keiths@redhat.com>
6962
6963 PR c++/16597
6964 * cp-namespace.c (lookup_symbol_file): If the type name of
6965 `this' is NULL, return immediately.
6966
6967 2014-04-14 Keith Seitz <keiths@redhat.com>
6968
6969 PR c++/16253
6970 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6971 from symbol_matches_domain in symtab.c. All local callers
6972 of symbol_matches_domain updated.
6973 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6974 search STRUCT_DOMAIN.
6975 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6976 independently. standard_lookup will do that automatically.
6977 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6978 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6979 (cp_lookup_symbol_in_namespace): Likewise.
6980 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6981 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6982 may return a STRUCT_DOMAIN match.
6983 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6984 * cp-support.c: Include language.h.
6985 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6986 VAR_DOMAIN.
6987 * psymtab.c (match_partial_symbol): Compare the requested
6988 domain with the symbol's domain directly.
6989 (lookup_partial_symbol): Likewise.
6990 * symtab.c (lookup_symbol_in_language): Explain when/why
6991 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6992 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6993 appropriate languages.
6994 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6995 and moved to ada-lang.c
6996 (lookup_block_symbol): Explain that this function only returns
6997 symbol matching the requested DOMAIN.
6998 Compare the requested domain with the symbol's domain directly.
6999 (iterate_over_symbols): Compare the requested domain with the
7000 symbol's domain directly.
7001 * symtab.h (symbol_matches_domain): Remove.
7002
7003 2014-04-14 Tom Tromey <tromey@redhat.com>
7004
7005 PR c++/15246:
7006 * c-exp.y (type_aggregate_p): New function.
7007 (qualified_name, classify_inner_name): Use it.
7008 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7009 and TYPE_TARGET_TYPE of an enum type.
7010 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7011 an enum type.
7012 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7013 handle TYPE_DECLARED_CLASS.
7014 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7015 types.
7016 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7017 * valops.c (enum_constant_from_type): New function.
7018 (value_aggregate_elt): Use it.
7019 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7020 TYPE_CODE_ENUM.
7021
7022 2014-04-14 Tom Tromey <tromey@redhat.com>
7023
7024 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7025 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7026 const.
7027 * value.h (value_aggregate_elt): Update.
7028
7029 2014-04-14 Tom Tromey <tromey@redhat.com>
7030
7031 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7032
7033 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7034
7035 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7036 (evaluate_subexp_standard): Pass noside argument.
7037 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7038 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7039 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7040 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7041 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7042
7043 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7044
7045 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7046 points to a constant blob.
7047
7048 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7049
7050 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7051 property and store it as the high bound and flag the range accordingly.
7052 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7053 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7054 * gdbtypes.h (enum range_flags): New enum.
7055 (struct range_bounds): Add flags member.
7056
7057 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7058
7059 * c-typeprint.c (c_type_print_varspec_suffix): Added
7060 check for not yet resolved high bound. If unresolved, print
7061 "variable length" string to the console instead of random
7062 length.
7063
7064 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7065
7066 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7067 value.
7068 (ada_template_to_fixed_record_type_1): Likewise.
7069 (ada_to_fixed_type_1): Likewise.
7070 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7071 (cp_print_value): Likewise.
7072 * d-valprint.c (dynamic_array_type): Likewise.
7073 * findvar.c (address_of_variable): Likewise.
7074 * jv-valprint.c (java_value_print): Likewise.
7075 * valops.c (value_ind): Likewise.
7076 * value.c (coerce_ref): Likewise.
7077
7078 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7079
7080 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7081 value and retrieve the dynamic type size.
7082
7083 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7084
7085 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7086 passed to sizeof is dynamic evaluate the argument to compute the length.
7087
7088 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7089 Joel Brobecker <brobecker@adacore.com>
7090
7091 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7092 (dwarf2_evaluate_property): New function.
7093 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7094 * dwarf2read.c (attr_to_dynamic_prop): New function.
7095 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7096 attribute.
7097 * gdbtypes.c: Include dwarf2loc.h.
7098 (is_dynamic_type): New function.
7099 (resolve_dynamic_type): New function.
7100 (resolve_dynamic_bounds): New function.
7101 (get_type_length): New function.
7102 (check_typedef): Use get_type_length to compute type length.
7103 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7104 (TYPE_LOW_BOUND_KIND): New macro.
7105 (is_dynamic_type): New function prototype.
7106 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7107 to resolve dynamic properties of the type. Update comment.
7108 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7109
7110 2014-04-14 Richard Henderson <rth@redhat.com>
7111
7112 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7113
7114 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7115 Doug Evans <xdje42@gmail.com>
7116
7117 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7118 dereference TYPE_CODE_REF values.
7119
7120 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7121
7122 Revert the following changes due to regressions:
7123
7124 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7125 (dwarf2_evaluate_property): New function.
7126 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7127 * dwarf2read.c (attr_to_dynamic_prop): New function.
7128 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7129 attribute.
7130 * gdbtypes.c: Include dwarf2loc.h.
7131 (is_dynamic_type): New function.
7132 (resolve_dynamic_type): New function.
7133 (resolve_dynamic_bounds): New function.
7134 (get_type_length): New function.
7135 (check_typedef): Use get_type_length to compute type length.
7136 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7137 (TYPE_LOW_BOUND_KIND): New macro.
7138 (is_dynamic_type): New function prototype.
7139 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7140 to resolve dynamic properties of the type. Update comment.
7141 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7142
7143 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7144 passed to sizeof is dynamic evaluate the argument to compute the length.
7145
7146 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7147 value and retrieve the dynamic type size.
7148
7149 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7150 (ada_template_to_fixed_record_type_1): Likewise.
7151 (ada_to_fixed_type_1): Likewise.
7152 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7153 (cp_print_value): Likewise.
7154 * d-valprint.c (dynamic_array_type): Likewise.
7155 * eval.c (evaluate_subexp_with_coercion): Likewise.
7156 * findvar.c (address_of_variable): Likewise.
7157 * jv-valprint.c (java_value_print): Likewise.
7158 * valops.c (value_ind): Likewise.
7159 * value.c (coerce_ref): Likewise.
7160
7161 * c-typeprint.c (c_type_print_varspec_suffix): Added
7162 check for not yet resolved high bound. If unresolved, print
7163 "variable length" string to the console instead of random
7164 length.
7165
7166 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7167 property and store it as the high bound and flag the range accordingly.
7168 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7169 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7170 * gdbtypes.h (enum range_flags): New enum.
7171 (struct range_bounds): Add flags member.
7172
7173 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7174 points to a constant blob.
7175
7176 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7177 (evaluate_subexp_standard): Pass noside argument.
7178 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7179 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7180 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7181 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7182 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7183
7184 2014-04-11 Keith Seitz <keiths@redhat.com>
7185
7186 PR c++/16675
7187 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7188 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7189 reference types.
7190
7191 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7192
7193 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7194 (evaluate_subexp_standard): Pass noside argument.
7195 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7196 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7197 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7198 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7199 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7200
7201 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7202
7203 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7204 points to a constant blob.
7205
7206 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7207
7208 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7209 property and store it as the high bound and flag the range accordingly.
7210 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7211 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7212 * gdbtypes.h (enum range_flags): New enum.
7213 (struct range_bounds): Add flags member.
7214
7215 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7216
7217 * c-typeprint.c (c_type_print_varspec_suffix): Added
7218 check for not yet resolved high bound. If unresolved, print
7219 "variable length" string to the console instead of random
7220 length.
7221
7222 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7223
7224 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7225 (ada_template_to_fixed_record_type_1): Likewise.
7226 (ada_to_fixed_type_1): Likewise.
7227 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7228 (cp_print_value): Likewise.
7229 * d-valprint.c (dynamic_array_type): Likewise.
7230 * eval.c (evaluate_subexp_with_coercion): Likewise.
7231 * findvar.c (address_of_variable): Likewise.
7232 * jv-valprint.c (java_value_print): Likewise.
7233 * valops.c (value_ind): Likewise.
7234 * value.c (coerce_ref): Likewise.
7235
7236 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7237
7238 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7239 value and retrieve the dynamic type size.
7240
7241 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7242
7243 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7244 passed to sizeof is dynamic evaluate the argument to compute the length.
7245
7246 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7247
7248 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7249 (dwarf2_evaluate_property): New function.
7250 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7251 * dwarf2read.c (attr_to_dynamic_prop): New function.
7252 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7253 attribute.
7254 * gdbtypes.c: Include dwarf2loc.h.
7255 (is_dynamic_type): New function.
7256 (resolve_dynamic_type): New function.
7257 (resolve_dynamic_bounds): New function.
7258 (get_type_length): New function.
7259 (check_typedef): Use get_type_length to compute type length.
7260 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7261 (TYPE_LOW_BOUND_KIND): New macro.
7262 (is_dynamic_type): New function prototype.
7263 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7264 to resolve dynamic properties of the type. Update comment.
7265 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7266
7267 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7268
7269 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7270 declaring high/low bounds and change uses accordingly. Call
7271 create_range_type instead of create_static_range_type.
7272 * gdbtypes.c (create_range_type): New function.
7273 (create_range_type): Convert bounds into struct bound_prop and pass
7274 them to create_range_type.
7275 * gdbtypes.h (struct bound_prop): New struct.
7276 (create_range_type): New function prototype.
7277 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7278 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7279 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7280 part of the bound.
7281 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7282
7283 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7284
7285 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7286 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7287 * ada-lang.c: All uses of create_range_type updated.
7288 * coffread.c: All uses of create_range_type updated.
7289 * dwarf2read.c: All uses of create_range_type updated.
7290 * f-exp.y: All uses of create_range_type updated.
7291 * m2-valprint.c: All uses of create_range_type updated.
7292 * mdebugread.c: All uses of create_range_type updated.
7293 * stabsread.c: All uses of create_range_type updated.
7294 * valops.c: All uses of create_range_type updated.
7295 * valprint.c: All uses of create_range_type updated.
7296
7297 2014-04-10 Pedro Alves <palves@redhat.com>
7298
7299 * breakpoint.c (single_step_breakpoints)
7300 (single_step_gdbarch): Move up in the file.
7301 (one_breakpoint_xfer_memory): New function, factored out from ...
7302 (breakpoint_xfer_memory): ... here. Also process single-step
7303 breakpoints.
7304
7305 2014-04-09 Tristan Gingold <gingold@adacore.com>
7306
7307 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7308 comments.
7309 (darwin_decode_exception_message): Free port only after use.
7310
7311 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7312
7313 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7314 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7315 when setting the size of call_length.
7316
7317 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7318
7319 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7320 dereference TYPE_CODE_REF values.
7321
7322 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7323
7324 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7325 end of warning message.
7326
7327 2014-04-03 Doug Evans <dje@google.com>
7328
7329 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7330 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7331
7332 2014-04-02 Alan Modra <amodra@gmail.com>
7333
7334 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7335 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7336 (struct symbol_file_add_from_memory_args): Add size field.
7337 (find_vdso_size): New function.
7338 (add_vsyscall_page): Attempt to find vdso size.
7339
7340 2014-04-01 Doug Evans <dje@google.com>
7341
7342 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7343
7344 2014-04-01 Tristan Gingold <gingold@adacore.com>
7345
7346 * darwin-nat.c (darwin_encode_reply): Add prototype.
7347 (darwin_decode_exception_message): Reply to unknown inferiors.
7348 (darwin_decode_message): Handle message by id. Ignore message
7349 to unknown inferior.
7350 (darwin_wait): Discard unknown messages, add debug trace.
7351
7352 2014-03-31 Doug Evans <dje@google.com>
7353
7354 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7355 comp_dir_string.
7356
7357 2014-03-31 Doug Evans <dje@google.com>
7358
7359 New option "set print symbol-loading".
7360 * NEWS: Mention it.
7361 * solib.c (solib_read_symbols): Only print symbol loading messages
7362 if requested.
7363 (solib_add): If symbol loading is in "brief" mode, notify user
7364 symbols are being loaded.
7365 (reload_shared_libraries_1): Ditto.
7366 * symfile.c (print_symbol_loading_off): New static global.
7367 (print_symbol_loading_brief): New static global.
7368 (print_symbol_loading_full): New static global.
7369 (print_symbol_loading_enums): New static global.
7370 (print_symbol_loading): New static global.
7371 (print_symbol_loading_p): New function.
7372 (symbol_file_add_with_addrs): Only print symbol loading messages
7373 if requested.
7374 (_initialize_symfile): Register "print symbol-loading" set/show
7375 command.
7376 * symfile.h (print_symbol_loading_p): Declare.
7377
7378 2014-03-30 Doug Evans <xdje42@gmail.com>
7379
7380 * infrun.c (set_last_target_status): New function.
7381 (handle_inferior_event): Call it.
7382
7383 2014-03-30 Doug Evans <xdje42@gmail.com>
7384
7385 * inferior.h (enum stop_kind): Improve comment.
7386
7387 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7388
7389 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7390 a reference, strip the reference layer before calling
7391 the lang_ops value_has_mutated callback.
7392
7393 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7394
7395 Remove some globals from our parser.
7396 * language.c (unk_lang_parser): Add "struct parser_state"
7397 argument.
7398 * language.h (struct language_defn) <la_parser>: Likewise.
7399 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7400 (initialize_expout): Add "struct parser_state" argument.
7401 Rewrite function to use the parser state.
7402 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7403 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7404 write_exp_elt_longcst, write_exp_elt_dblcst,
7405 write_exp_elt_decfloatcst, write_exp_elt_type,
7406 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7407 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7408 write_dollar_variable): Likewise.
7409 (parse_exp_in_context_1): Use parser state.
7410 (insert_type_address_space): Add "struct parser_state" argument.
7411 Use parser state.
7412 (increase_expout_size): New function.
7413 * parser-defs.h: Forward declare "struct language_defn" and
7414 "struct parser_state".
7415 (expout, expout_size, expout_ptr): Remove extern declarations.
7416 (parse_gdbarch, parse_language): Rewrite macro declarations to
7417 accept the parser state.
7418 (struct parser_state): New struct.
7419 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7420 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7421 write_exp_elt_decfloatcst, write_exp_elt_type,
7422 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7423 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7424 write_exp_msymbol, write_dollar_variable,
7425 mark_struct_expression, insert_type_address_space): Add "struct
7426 parser_state" argument.
7427 (increase_expout_size): New function.
7428 * utils.c (do_clear_parser_state): New function.
7429 (make_cleanup_clear_parser_state): Likewise.
7430 * utils.h (make_cleanup_clear_parser_state): New function
7431 prototype.
7432 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7433 Update calls to write_exp* in order to pass the parser state.
7434 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7435 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7436 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7437 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7438 * stap-probe.c (stap_parse_register_operand): Likewise.
7439 (stap_parse_single_operand): Likewise.
7440 (stap_parse_argument_1): Likewise.
7441 (stap_parse_argument): Use parser state.
7442 * stap-probe.h: Include "parser-defs.h".
7443 (struct stap_parse_info) <pstate>: New field.
7444 * c-exp.y (parse_type): Rewrite to use parser state.
7445 (yyparse): Redefine to c_parse_internal.
7446 (pstate): New global variable.
7447 (parse_number): Add "struct parser_state" argument.
7448 (write_destructor_name): Likewise.
7449 (type_exp): Update calls to write_exp* and similars in order to
7450 use parser state.
7451 (exp1, exp, variable, qualified_name, space_identifier,
7452 typename, typebase): Likewise.
7453 (write_destructor_name, parse_number, lex_one_token,
7454 classify_name, classify_inner_name, c_parse): Add "struct
7455 parser_state" argument. Update function to use parser state.
7456 * c-lang.h: Forward declare "struct parser_state".
7457 (c_parse): Add "struct parser_state" argument.
7458 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7459 (yyparse): Redefine macro to ada_parse_internal.
7460 (pstate): New variable.
7461 (write_int, write_object_renaming, write_var_or_type,
7462 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7463 type_int, type_long, type_long_long, type_float, type_double,
7464 type_long_double, type_char, type_boolean, type_system_address):
7465 Add "struct parser_state" argument.
7466 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7467 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7468 var_or_type, aggregate, aggregate_component_list,
7469 positional_list, others, component_group,
7470 component_associations): Update calls to write_exp* and similar
7471 functions in order to use parser state.
7472 (ada_parse, write_var_from_sym, write_int,
7473 write_exp_op_with_string, write_object_renaming,
7474 find_primitive_type, write_selectors, write_ambiguous_var,
7475 write_var_or_type, write_name_assoc, type_int, type_long,
7476 type_long_long, type_float, type_double, type_long_double,
7477 type_char, type_boolean, type_system_address): Add "struct
7478 parser_state" argument. Adjust function to use parser state.
7479 * ada-lang.c (parse): Likewise.
7480 * ada-lang.h: Forward declare "struct parser_state".
7481 (ada_parse): Add "struct parser_state" argument.
7482 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7483 calls to both functions.
7484 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7485 parser state.
7486 (yyparse): Redefine macro to f_parse_internal.
7487 (pstate): New variable.
7488 (parse_number): Add "struct parser_state" argument.
7489 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7490 and similars in order to use parser state.
7491 (parse_number): Adjust code to use parser state.
7492 (yylex): Likewise.
7493 (f_parse): New function.
7494 * f-lang.h: Forward declare "struct parser_state".
7495 (f_parse): Add "struct parser_state" argument.
7496 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7497 parser state.
7498 (yyparse): Redefine macro for java_parse_internal.
7499 (pstate): New variable.
7500 (push_expression_name, push_expression_name, insert_exp): Add
7501 "struct parser_state" argument.
7502 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7503 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7504 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7505 PostIncrementExpression, PostDecrementExpression,
7506 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7507 UnaryExpressionNotPlusMinus, CastExpression,
7508 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7509 RelationalExpression, EqualityExpression, AndExpression,
7510 ExclusiveOrExpression, InclusiveOrExpression,
7511 ConditionalAndExpression, ConditionalOrExpression,
7512 ConditionalExpression, Assignment, LeftHandSide): Update
7513 calls to write_exp* and similars in order to use parser state.
7514 (parse_number): Ajust code to use parser state.
7515 (yylex): Likewise.
7516 (java_parse): New function.
7517 (push_variable): Add "struct parser_state" argument. Adjust
7518 code to user parser state.
7519 (push_fieldnames, push_qualified_expression_name,
7520 push_expression_name, insert_exp): Likewise.
7521 * jv-lang.h: Forward declare "struct parser_state".
7522 (java_parse): Add "struct parser_state" argument.
7523 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7524 parser state.
7525 (yyparse): Redefine macro to m2_parse_internal.
7526 (pstate): New variable.
7527 (type_exp, exp, fblock, variable, type): Update calls to
7528 write_exp* and similars to use parser state.
7529 (yylex): Likewise.
7530 (m2_parse): New function.
7531 * m2-lang.h: Forward declare "struct parser_state".
7532 (m2_parse): Add "struct parser_state" argument.
7533 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7534 * objc-lang.h: Forward declare "struct parser_state".
7535 (end_msglist): Add "struct parser_state" argument.
7536 * p-exp.y (parse_type): Rewrite macro to use parser state.
7537 (yyparse): Redefine macro to pascal_parse_internal.
7538 (pstate): New variable.
7539 (parse_number): Add "struct parser_state" argument.
7540 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7541 write_exp* and similars in order to use parser state.
7542 (parse_number, yylex): Adjust code to use parser state.
7543 (pascal_parse): New function.
7544 * p-lang.h: Forward declare "struct parser_state".
7545 (pascal_parse): Add "struct parser_state" argument.
7546 * go-exp.y (parse_type): Rewrite macro to use parser state.
7547 (yyparse): Redefine macro to go_parse_internal.
7548 (pstate): New variable.
7549 (parse_number): Add "struct parser_state" argument.
7550 (type_exp, exp1, exp, variable, type): Update calls to
7551 write_exp* and similars in order to use parser state.
7552 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7553 to use parser state.
7554 (go_parse): Likewise.
7555 * go-lang.h: Forward declare "struct parser_state".
7556 (go_parse): Add "struct parser_state" argument.
7557
7558 2014-03-27 Doug Evans <dje@google.com>
7559
7560 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7561
7562 2014-03-27 Doug Evans <dje@google.com>
7563
7564 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7565 Remove argument abbrev_section. All callers updated.
7566
7567 2014-03-27 Doug Evans <dje@google.com>
7568
7569 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7570 addr_base, ranges_base.
7571
7572 2014-03-26 Keith Seitz <keiths@redhat.com>
7573
7574 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7575 types, not VAR_DOMAIN.
7576
7577 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7578
7579 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7580 "ra" registers.
7581 * features/nios2-linux.c: Regenerated.
7582 * features/nios2.c: Regenerated.
7583
7584 2014-03-25 Pedro Alves <palves@redhat.com>
7585
7586 * cli/cli-script.c (script_from_file): Force the interpreter to
7587 sync mode.
7588
7589 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7590
7591 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7592 small stack allocation.
7593
7594 2014-03-24 Tristan Gingold <gingold@adacore.com>
7595
7596 * darwin-nat.c (exc_server): Remove unused prototype.
7597 (darwin_dump_message): Correctly display data on x86_64.
7598 (darwin_encode_reply): Fix style.
7599 Add comments and fix indentation.
7600
7601 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7602
7603 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7604
7605 2014-03-22 Doug Evans <xdje42@gmail.com>
7606
7607 * infcmd.c: Whitespace fixes.
7608 (interrupt_command): Merge two function comments into one.
7609
7610 2014-03-22 Doug Evans <xdje42@gmail.com>
7611
7612 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7613 All uses updated.
7614
7615 2014-03-22 Yao Qi <yao@codesourcery.com>
7616
7617 * remote.c (target_read_live_memory): Remove.
7618 (memory_xfer_live_readonly_partial): Rename it to
7619 remote_xfer_live_readonly_partial. Remove argument 'object'.
7620 All callers updated. Call remote_read_bytes_1
7621 instead of target_read_live_memory.
7622 * tracepoint.c (set_traceframe_number): Remove.
7623 (make_cleanup_restore_traceframe_number): Likewise .
7624 * tracepoint.h (set_traceframe_number): Remove declaration.
7625 (make_cleanup_restore_traceframe_number): Likewise.
7626
7627 2014-03-22 Yao Qi <yao@codesourcery.com>
7628
7629 * remote.c (remote_read_bytes): Move code on reading from the
7630 remote stub to ...
7631 (remote_read_bytes_1): ... here. New function.
7632
7633 2014-03-22 Yao Qi <yao@codesourcery.com>
7634
7635 * ctf.c (ctf_xfer_partial): Check the return value of
7636 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7637 return TARGET_XFER_UNAVAILABLE.
7638 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7639 * target.c (target_read_live_memory): Move it to remote.c.
7640 (memory_xfer_live_readonly_partial): Likewise.
7641 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7642 * remote.c (target_read_live_memory): Moved from target.c.
7643 (memory_xfer_live_readonly_partial): Likewise.
7644 (remote_read_bytes): Factored out from
7645 memory_xfer_partial_1.
7646
7647 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7648
7649 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7650 NULL pointer.
7651
7652 2014-03-21 Pedro Alves <palves@redhat.com>
7653
7654 * infrun.c (normal_stop): Extend comment.
7655
7656 2014-03-21 Hui Zhu <hui@codesourcery.com>
7657 Pedro Alves <palves@redhat.com>
7658
7659 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7660 static buffer.
7661 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7662 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7663 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7664
7665 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7666
7667 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7668 `z' formatted output modifier.
7669
7670 2014-03-20 Tom Tromey <tromey@redhat.com>
7671 Sergio Durigan Junior <sergiodj@redhat.com>
7672
7673 * probe.c (parse_probes): Turn assert into an ordinary error.
7674 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7675 exceptions when parsing probes. Rearrange the code for clarity.
7676
7677 2014-03-20 Tom Tromey <tromey@redhat.com>
7678
7679 PR gdb/14135
7680 * top.c (execute_command): Only dispatch events if the command
7681 started the target.
7682
7683 2014-03-20 Tom Tromey <tromey@redhat.com>
7684
7685 PR cli/15718
7686 * infcall.c: Include event-top.h.
7687 (run_inferior_call): Call async_disable_stdin if needed.
7688
7689 2014-03-20 Pedro Alves <palves@redhat.com>
7690
7691 * infrun.c (prepare_to_proceed): Delete.
7692 (thread_still_needs_step_over): New function.
7693 (find_thread_needs_step_over): New function.
7694 (proceed): If the current thread needs a step-over, set its
7695 steping_over_breakpoint flag. Adjust to use
7696 find_thread_needs_step_over instead of prepare_to_proceed.
7697 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7698 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7699 breakpoint.
7700 (switch_back_to_stepped_thread): Step over breakpoints of all
7701 threads not the stepping thread, before switching back to the
7702 stepping thread.
7703
7704 2014-03-20 Pedro Alves <palves@redhat.com>
7705
7706 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7707 extern.
7708 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7709 * infrun.c (saved_singlestep_ptid)
7710 (stepping_past_singlestep_breakpoint): Delete.
7711 (resume): Remove stepping_past_singlestep_breakpoint handling.
7712 (proceed): Store the prev_pc of the stepping thread too.
7713 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7714 singlestep_pc.
7715 (enum infwait_states): Delete infwait_thread_hop_state.
7716 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7717 field.
7718 (handle_inferior_event): Adjust.
7719 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7720 handling and the thread-hop code. Before removing single-step
7721 breakpoints, check whether the thread hit a single-step breakpoint
7722 of another thread. If it did, the trap is not a random signal.
7723 (switch_back_to_stepped_thread): If the event thread hit a
7724 single-step breakpoint, unblock it before switching to the
7725 stepping thread. Handle the case of the stepped thread having
7726 advanced already.
7727 (keep_going): Handle the case of the current thread moving past a
7728 single-step breakpoint.
7729
7730 2014-03-20 Pedro Alves <palves@redhat.com>
7731
7732 PR breakpoints/7143
7733 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7734 are being stepped over.
7735 (breakpoint_address_match): Make extern.
7736 * breakpoint.h (breakpoint_address_match): New declaration.
7737 * inferior.h (stepping_past_instruction_at): New declaration.
7738 * infrun.c (struct step_over_info): New type.
7739 (step_over_info): New global.
7740 (set_step_over_info, clear_step_over_info)
7741 (stepping_past_instruction_at): New functions.
7742 (handle_inferior_event): Clear the step-over info when
7743 trap_expected is cleared.
7744 (resume): Remove now stale comment.
7745 (clear_proceed_status): Clear step-over info.
7746 (proceed): Adjust step-over handling to set or clear the step-over
7747 info instead of removing all breakpoints.
7748 (handle_signal_stop): When setting up a thread-hop, don't remove
7749 breakpoints here.
7750 (stop_stepping): Clear step-over info.
7751 (keep_going): Adjust step-over handling to set or clear step-over
7752 info and then always inserting breakpoints, instead of removing
7753 all breakpoints when stepping over one.
7754
7755 2014-03-20 Pedro Alves <palves@redhat.com>
7756
7757 * infrun.c (previous_inferior_ptid): Adjust comment.
7758 (deferred_step_ptid): Delete.
7759 (infrun_thread_ptid_changed, prepare_to_proceed)
7760 (init_wait_for_inferior): Adjust.
7761 (handle_signal_stop): Delete deferred_step_ptid handling.
7762
7763 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7764
7765 PR gdb/15358
7766 * defs.h (sync_quit_force_run): New declaration.
7767 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7768 * event-top.c (async_sigterm_handler): New declaration.
7769 (async_sigterm_token): New variable.
7770 (async_init_signals): Create also async_sigterm_token.
7771 (async_sigterm_handler): New function.
7772 (sync_quit_force_run): New variable.
7773 (handle_sigterm): Replace quit_force call by other calls.
7774 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7775
7776 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7777
7778 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7779 offset into SPE pseudo registers.
7780
7781 2014-03-18 Pedro Alves <palves@redhat.com>
7782
7783 PR gdb/13860
7784 * inferior.h (print_stop_event): Declare.
7785 * infrun.c (print_stop_event): New, factored out from ...
7786 (normal_stop): ... this.
7787 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7788 of bpstat_print/print_stack_frame.
7789
7790 2014-03-17 Tom Tromey <tromey@redhat.com>
7791
7792 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7793
7794 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7795
7796 * ada-lang.c (decode_constrained_packed_array): Perform a
7797 minimal coercion for reference with coerce_ref instead of
7798 ada_coerce_ref.
7799
7800 2014-03-17 Tristan Gingold <gingold@adacore.com>
7801
7802 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7803 (darwin_solib_create_inferior_hook): Emit a warning if version
7804 is unhandled.
7805
7806 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7807
7808 * python/py-value.c (get_field_flag): Cast flag_name argument to
7809 PyObject_GetAttrString to support Python 2.4.
7810
7811 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7812
7813 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7814 (Global Maintainers): Remove Jan Kratochvil.
7815
7816 2014-03-14 Pedro Alves <palves@redhat.com>
7817
7818 * inferior.h (terminal_ours_for_output): Rename to ...
7819 (child_terminal_ours_for_output): ... this.
7820 (terminal_save_ours): Rename to ...
7821 (child_terminal_save_ours): ... this.
7822 (terminal_ours): Rename to ...
7823 (child_terminal_ours): ... this.
7824 (terminal_inferior): Rename to ...
7825 (child_terminal_inferior): ... this.
7826 (terminal_init_inferior): Rename to ...
7827 (child_terminal_init_inferior): ... this.
7828 (terminal_init_inferior_with_pgrp): Rename to ...
7829 (child_terminal_init_inferior_with_pgrp): ... this.
7830 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7831 (child_terminal_init_with_pgrp): ... this.
7832 (terminal_save_ours): Rename to ...
7833 (child_terminal_save_ours): ... this.
7834 (terminal_init_inferior): Rename to ...
7835 (child_terminal_init): ... this. Adjust.
7836 (terminal_inferior): Rename to ...
7837 (child_terminal_inferior): ... this.
7838 (terminal_ours_for_output): Rename to ...
7839 (child_terminal_ours_for_output): ... this. Adjust.
7840 (terminal_ours): Rename to ...
7841 (child_terminal_ours): ... this.
7842 (terminal_ours_1): Rename to ...
7843 (child_terminal_ours_1): ... this. Adjust.
7844 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7845 * windows-nat.c (do_initial_windows_stuff): Adjust.
7846 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7847 (gnu_terminal_init): ... this. Adjust.
7848 (gnu_target): Adjust.
7849 * inf-child.c (inf_child_target): Adjust.
7850
7851 2014-03-13 Doug Evans <xdje42@gmail.com>
7852
7853 PR guile/16612
7854 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7855 new eq?-hashtab.
7856
7857 2014-03-13 Doug Evans <xdje42@gmail.com>
7858
7859 * value.c (record_latest_value): Call release_value_or_incref
7860 instead of release_value.
7861
7862 2014-03-13 Pedro Alves <palves@redhat.com>
7863
7864 * procfs.c (procfs_target): Don't override to_shortname,
7865 to_longname or to_doc.
7866
7867 2014-03-13 Pedro Alves <palves@redhat.com>
7868
7869 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7870 Unix in user visible strings.
7871
7872 2014-03-12 Stan Shebs <stan@codesourcery.com>
7873
7874 * gdbtypes.h: Annotate comments for Doxygen, add a page
7875 block comment with some general info.
7876
7877 2014-03-12 Pedro Alves <palves@redhat.com>
7878
7879 * infcmd.c (prepare_execution_command): New function, factored out
7880 from several execution commands.
7881 (run_command_1, continue_command, step_1, jump_command)
7882 (signal_command, until_command, advance_command, finish_command)
7883 (attach_command): Use prepare_execution_command.
7884
7885 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7886
7887 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7888 (MAX_BPTS): Define.
7889 (MAX_WPTS): Define.
7890 (struct arm_linux_thread_points): Removed.
7891 (struct arm_linux_process_info): New.
7892 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7893 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7894 (arm_linux_find_breakpoints_by_tid): Removed.
7895 (struct arch_lwp_info): New.
7896 (arm_linux_find_process_pid): New functions.
7897 (arm_linux_add_process): New functions.
7898 (arm_linux_process_info_get): New functions.
7899 (arm_linux_forget_process): New function.
7900 (arm_linux_get_debug_reg_state): New function.
7901 (struct update_registers_data): New.
7902 (update_registers_callback): New function.
7903 (arm_linux_insert_hw_breakpoint1): Updated.
7904 (arm_linux_remove_hw_breakpoint1): Updated.
7905 (arm_linux_insert_hw_breakpoint): Updated.
7906 (arm_linux_remove_hw_breakpoint): Updated.
7907 (arm_linux_insert_watchpoint): Updated.
7908 (arm_linux_remove_watchpoint): Updated.
7909 (arm_linux_new_thread): Updated.
7910 (arm_linux_prepare_to_resume): New function.
7911 (arm_linux_new_fork): New function.
7912 (_initialize_arm_linux_nat): Updated.
7913
7914 2014-03-12 Pedro Alves <palves@redhat.com>
7915
7916 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7917
7918 2014-03-12 Tom Tromey <tromey@redhat.com>
7919
7920 * inf-child.c (return_zero): New function.
7921 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7922 * aix-thread.c (aix_thread_inferior_created): New function.
7923 (aix_thread_attach): Remove.
7924 (init_aix_thread_ops): Don't set to_attach.
7925 (_initialize_aix_thread): Register inferior_created observer.
7926 * corelow.c (init_core_ops): Don't set to_attach or
7927 to_create_inferior.
7928 * exec.c (init_exec_ops): Don't set to_attach or
7929 to_create_inferior.
7930 * infcmd.c (run_command_1): Use find_run_target. Make direct
7931 target calls.
7932 (attach_command): Use find_attach_target. Make direct target
7933 calls.
7934 * record-btrace.c (init_record_btrace_ops): Don't set
7935 to_create_inferior.
7936 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7937 Remove.
7938 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7939 set to_create_inferior.
7940 * target.c (complete_target_initialization): Add assertion.
7941 (target_create_inferior): Remove.
7942 (find_default_attach, find_default_create_inferior): Remove.
7943 (find_attach_target, find_run_target): New functions.
7944 (find_default_is_async_p, find_default_can_async_p)
7945 (target_supports_non_stop, target_attach): Remove.
7946 (init_dummy_target): Don't set to_create_inferior or
7947 to_supports_non_stop.
7948 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7949 TARGET_DEFAULT_FUNC.
7950 <to_create_inferior>: Add comment.
7951 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7952 TARGET_DEFAULT_RETURN.
7953 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7954 (find_attach_target, find_run_target): Declare.
7955 (target_create_inferior): Remove.
7956 (target_has_execution_1): Update comment.
7957 (target_supports_non_stop): Remove.
7958 * target-delegates.c: Rebuild.
7959
7960 2014-03-12 Pedro Alves <palves@redhat.com>
7961
7962 * inf-child.h: Update comment to not mention Unix.
7963
7964 2014-03-12 Pedro Alves <palves@redhat.com>
7965
7966 * inf-child.c: Update top comment to not mention Unix. Add
7967 generic comment describing how this target is meant to be used.
7968 (inf_child_post_attach, inf_child_post_startup_inferior)
7969 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7970 Unix in comment.
7971
7972 2014-03-12 Pedro Alves <palves@redhat.com>
7973
7974 * nto-procfs.c: Include inf-child.h.
7975 (procfs_ops): Delete global.
7976 (procfs_can_run): Delete method.
7977 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7978 target pointer instead of referencing procfs_ops.
7979 (procfs_prepare_to_store): Delete.
7980 (init_procfs_ops): Delete function.
7981 (procfs_target): New function, based on init_procfs_ops, but
7982 inherit inf_child_target.
7983 (_initialize_procfs): Use procfs_target.
7984
7985 2014-03-12 Pedro Alves <palves@redhat.com>
7986
7987 * windows-nat.c: Include inf-child.h.
7988 (windows_ops): Delete global.
7989 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7990 methods.
7991 (init_windows_ops): Delete function.
7992 (windows_target): New function, based on init_windows_ops, but
7993 inherit inf_child_target.
7994 (_initialize_windows_nat): Use windows_target. Install x86
7995 specific target methods here.
7996
7997 2014-03-10 Doug Evans <xdje42@gmail.com>
7998
7999 * guile/guile.c (call_initialize_gdb_module): New function.
8000 (initialize_guile): Replace call to scm_init_guile with call to
8001 scm_with_guile.
8002
8003 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8004
8005 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8006 in call to TYPE_CODE macro.
8007
8008 2014-03-10 Jerome Guitton <guitton@adacore.com>
8009
8010 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8011 Resolve tagged types to full view.
8012
8013 2014-03-10 Hui Zhu <hui@codesourcery.com>
8014
8015 * target.h (target_insert_breakpoint): Remove "hardware" from its
8016 comments.
8017
8018 2014-03-07 Doug Evans <dje@google.com>
8019
8020 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8021
8022 2014-03-07 Doug Evans <dje@google.com>
8023
8024 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8025 Remove unused local comp_dir_attr. Assert exactly one of
8026 stub_comp_unit_die, stub_comp_dir is non-NULL.
8027
8028 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8029
8030 * target.h (complete_target_initialization, add_target):
8031 Add comment.
8032
8033 2014-03-07 Pedro Alves <palves@redhat.com>
8034
8035 * go32-nat.c: Include inf-child.h.
8036 (go32_ops): Delete global.
8037 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8038 Delete methods.
8039 (go32_create_inferior): Push the passed in target pointer instead
8040 of referencing go32_ops.
8041 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8042 (go32_target): New function, based on init_go32_ops, but inherit
8043 inf_child_target.
8044 (_initialize_go32_nat): Use go32_target. Move parts of
8045 init_go32_ops here.
8046
8047 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8048
8049 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8050 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8051 SYMBOL_VALUE_ADDRESS.
8052 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8053
8054 2014-03-06 Yao Qi <yao@codesourcery.com>
8055
8056 * breakpoint.c (get_tracepoint_by_number): Remove argument
8057 optional_p. All callers updated. Adjust comments. Update
8058 output message.
8059 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8060
8061 2014-03-06 Yao Qi <yao@codesourcery.com>
8062
8063 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8064 early if get_number returns zero. Use 'p' instead of 'args'.
8065
8066 2014-03-06 Yao Qi <yao@codesourcery.com>
8067
8068 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8069 message.
8070
8071 2014-03-06 Yao Qi <yao@codesourcery.com>
8072
8073 PR breakpoints/16508
8074 * tracepoint.c (check_trace_running): New function.
8075 (trace_find_command): Move code to check_trace_running and
8076 call check_trace_running.
8077 (trace_find_pc_command): Likewise.
8078 (trace_find_tracepoint_command): Likewise.
8079 (trace_find_line_command): Likewise.
8080 (trace_find_range_command): Likewise.
8081 * tracepoint.h (check_trace_running): Likewise.
8082 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8083
8084 2014-03-06 Yao Qi <yao@codesourcery.com>
8085
8086 * target.h (struct target_ops) <to_traceframe_info>: Use
8087 TARGET_DEFAULT_NORETURN (tcomplain ()).
8088 * target-delegates.c: Regenerated.
8089
8090 2014-03-05 Pedro Alves <palves@redhat.com>
8091
8092 PR gdb/16575
8093 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8094 void. Update comment.
8095 (dcache_xfer_memory): Delete.
8096 (dcache_read_memory_partial): New, based on the read bits of
8097 dcache_xfer_memory.
8098 (dcache_update): Add status parameter. Use ULONGEST for len, and
8099 adjust. Discard cache lines if the reason for the update was
8100 error.
8101 * dcache.h (dcache_xfer_memory): Delete declaration.
8102 (dcache_read_memory_partial): New declaration.
8103 (dcache_update): Update prototype.
8104 * target.c (raw_memory_xfer_partial): Update the dcache here.
8105 (memory_xfer_partial_1): Don't handle dcache writes here.
8106
8107 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8108
8109 * remote-sim.c (gdbsim_load): Add const to prog.
8110
8111 2014-03-03 Tom Tromey <tromey@redhat.com>
8112
8113 * elfread.c (probe_key): Change to bfd_data.
8114 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8115 now per-BFD, not per-objfile.
8116 * stap-probe.c (stap_probe_destroy): Update comment.
8117 (handle_stap_probe): Allocate on the per-BFD obstack.
8118
8119 2014-03-03 Tom Tromey <tromey@redhat.com>
8120
8121 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8122 * breakpoint.c (create_longjmp_master_breakpoint): Use
8123 get_probe_address.
8124 (add_location_to_breakpoint, bkpt_probe_insert_location)
8125 (bkpt_probe_remove_location): Update.
8126 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8127 * elfread.c (elf_symfile_relocate_probe): Remove.
8128 (elf_probe_fns): Update.
8129 (insert_exception_resume_breakpoint): Change type of "probe"
8130 parameter to bound_probe.
8131 (check_exception_resume): Update.
8132 * objfiles.c (objfile_relocate1): Don't relocate probes.
8133 * probe.c (bound_probe_s): New typedef.
8134 (parse_probes): Use get_probe_address. Set sal's objfile.
8135 (find_probe_by_pc): Return a bound_probe.
8136 (collect_probes): Return a VEC(bound_probe_s).
8137 (compare_probes): Update.
8138 (gen_ui_out_table_header_info): Change type of "probes"
8139 parameter. Update.
8140 (info_probes_for_ops): Update.
8141 (get_probe_address): New function.
8142 (probe_safe_evaluate_at_pc): Update.
8143 * probe.h (struct probe_ops) <get_probe_address>: New field.
8144 <set_semaphore, clear_semaphore>: Add objfile parameter.
8145 (struct probe) <objfile>: Remove field.
8146 <arch>: New field.
8147 <address>: Update comment.
8148 (struct bound_probe): New.
8149 (find_probe_by_pc): Return a bound_probe.
8150 (get_probe_address): Declare.
8151 * solib-svr4.c (struct probe_and_action) <address>: New field.
8152 (hash_probe_and_action, equal_probe_and_action): Update.
8153 (register_solib_event_probe): Add address parameter.
8154 (solib_event_probe_at): Update.
8155 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8156 get_probe_address.
8157 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8158 (stap_get_probe_address): New function.
8159 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8160 (compile_probe_arg): Update.
8161 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8162 address.
8163 (handle_stap_probe): Don't relocate the probe.
8164 (stap_relocate): Remove.
8165 (stap_gen_info_probes_table_values): Update.
8166 (stap_probe_ops): Remove stap_relocate.
8167 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8168 (debug_sym_probe_fns): Update.
8169 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8170 * symtab.c (init_sal): Use memset.
8171 * symtab.h (struct symtab_and_line) <objfile>: New field.
8172 * tracepoint.c (start_tracing, stop_tracing): Update.
8173
8174 2014-03-03 Tom Tromey <tromey@redhat.com>
8175
8176 * probe.h (parse_probes, find_probe_by_pc)
8177 (find_probes_in_objfile): Fix comments.
8178
8179 2014-03-02 Doug Evans <xdje42@gmail.com>
8180
8181 * infrun.c (handle_signal_stop): Replace test for
8182 TARGET_WAITKIND_STOPPED with an assert.
8183
8184 2014-03-02 Doug Evans <xdje42@gmail.com>
8185
8186 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8187
8188 2014-03-02 Doug Evans <xdje42@gmail.com>
8189
8190 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8191
8192 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8193
8194 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8195
8196 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8197
8198 * i386obsd-nat.c: Include "obsd-nat.h".
8199 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8200 add_target.
8201 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8202
8203 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8204
8205 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8206
8207 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8208
8209 * mips64obsd-nat.c: Include "obsd-nath".
8210 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8211 add_target
8212 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8213
8214 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8215
8216 * amd64obsd-nat.c: Include "obsd-nat,h.
8217 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8218 add_target.
8219 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8220
8221 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8222
8223 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8224 (find_overload_match): Update call to find_oload_champ.
8225 (find_oload_champ_namespace_loop): Likewise
8226
8227 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8228
8229 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8230
8231 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8232 * config/sparc/obsd64.mh: New file.
8233 * sparc64obsd-nat.c: New file.
8234
8235 * obsd-nat.h: New file.
8236 * obsd-nat.c: New file.
8237 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8238 (ALLDEPFILES): Add obsd-nat.c.
8239
8240 2014-02-28 Tom Tromey <tromey@redhat.com>
8241
8242 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8243 * cli-out.h (cli_ui_out_impl): Now const.
8244 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8245 * ui-out.c (struct ui_out) <impl>: Now const.
8246 (default_ui_out_impl): Now const.
8247 (ui_out_new): Make 'impl' parameter const.
8248 * ui-out.h (ui_out_new): Update.
8249
8250 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8251
8252 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8253
8254 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8255
8256 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8257
8258 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8259
8260 Additional PR 8882 fix.
8261 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8262
8263 2014-02-27 Pedro Alves <palves@redhat.com>
8264
8265 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8266 isn't set.
8267
8268 2014-02-27 Pedro Alves <palves@redhat.com>
8269
8270 PR 12702
8271 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8272 * nat/linux-waitpid.c: Include string.h.
8273 (status_to_str): Moved here and made extern.
8274 * nat/linux-waitpid.h (status_to_str): New declaration.
8275
8276 2014-02-27 Hui Zhu <hui@codesourcery.com>
8277
8278 PR 12702
8279 * infrun.c (ptid_match): Move ...
8280 * common/ptid.c (ptid_match): ... here.
8281 * inferior.h (ptid_match): Move ...
8282 * common/ptid.h (ptid_match): ... here.
8283
8284 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8285
8286 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8287 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8288 gdb_target_obs.
8289
8290 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8291
8292 * obsd-tdep.c (obsd_auxv_parse): New function.
8293 (obsd_init_abi): Set auxv_parse.
8294
8295 * gdbarch.sh (auxv_parse): New.
8296 * gdbarch.h: Regenerated.
8297 * gdbarch.c: Regenerated.
8298 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8299
8300 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8301
8302 * guile/scm-value.c (gdbscm_history_append_x): New function.
8303 (value_functions): Add it.
8304
8305 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8306
8307 * dwarf2read.c (attr_value_as_address): New function.
8308 (dwarf2_find_base_address, read_call_site_scope): Use
8309 attr_value_as_address in place of DW_ADDR.
8310 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8311 the low and high addresses. Slight rework of the handling
8312 of the high pc being a constant form, and limit it to
8313 DWARF verson 4 or higher.
8314 (dwarf2_record_block_ranges): Likewise.
8315 (read_partial_die): Likewise.
8316 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8317
8318 2014-02-26 Tom Tromey <tromey@redhat.com>
8319
8320 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8321
8322 2014-02-26 Tom Tromey <tromey@redhat.com>
8323
8324 * elfread.c (elf_read_minimal_symbols): Return early if
8325 minimal symbols have already been read. Add "ei" parameter.
8326 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8327 * minsyms.c (prim_record_minimal_symbol_full): Update.
8328 * objfiles.h (struct objstats) <n_minsyms>: Move...
8329 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8330 * symmisc.c (print_objfile_statistics): Update.
8331
8332 2014-02-26 Tom Tromey <tromey@redhat.com>
8333
8334 * elfread.c (elf_read_minimal_symbols): New function, from
8335 elf_symfile_read.
8336 (elf_symfile_read): Call it.
8337
8338 2014-02-26 Tom Tromey <tromey@redhat.com>
8339
8340 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8341 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8342 (lookup_minimal_symbol_solib_trampoline)
8343 (lookup_minimal_symbol_by_pc_section_1)
8344 (lookup_minimal_symbol_and_objfile): Update.
8345 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8346 Don't allocate a minimal symbol if minsyms have already been read.
8347 (build_minimal_symbol_hash_tables): Update.
8348 (install_minimal_symbols): Do nothing if minsyms already read.
8349 Use the per-BFD obstack.
8350 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8351 * objfiles.c (allocate_objfile): Call
8352 terminate_minimal_symbol_table later.
8353 (have_minimal_symbols): Update.
8354 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8355 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8356 Move from struct objfile.
8357 <minsyms_read>: New field.
8358 (struct objfile) <msymbols, minimal_symbol_count,
8359 msymbol_hash, msymbol_demangled_hash>: Move.
8360 (ALL_OBJFILE_MSYMBOLS): Update.
8361 * symfile.c (read_symbols): Set minsyms_read.
8362 (reread_symbols): Update.
8363 * symmisc.c (dump_objfile, dump_msymbols): Update.
8364
8365 2014-02-26 Tom Tromey <tromey@redhat.com>
8366
8367 * minsyms.c (msymbols_sort): Remove.
8368 * minsyms.h (msymbols_sort): Remove.
8369 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8370 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8371 * elfread.c (elf_symtab_read): Don't add section offsets.
8372 * xcoffread.c (record_minimal_symbol): Don't add section offset
8373 to minimal symbol address.
8374 * somread.c (text_offset, data_offset): Remove.
8375 (som_symtab_read): Don't add section offsets to minimal symbol
8376 addresses.
8377 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8378 Don't add section offsets to minimal symbols.
8379 * coffread.c (coff_symtab_read): Don't add section offsets
8380 to minimal symbol addresses.
8381 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8382 to minimal symbol addresses.
8383 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8384 section offset to minimal symbol addresses.
8385 * mdebugread.c (parse_partial_symbols): Don't add section
8386 offset to minimal symbol addresses.
8387 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8388 offset to minimal symbol addresses.
8389
8390 2014-02-26 Tom Tromey <tromey@redhat.com>
8391
8392 * ada-lang.c (ada_main_name): Update.
8393 (ada_add_standard_exceptions): Update.
8394 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8395 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8396 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8397 * auxv.c (ld_so_xfer_auxv): Update.
8398 * avr-tdep.c (avr_scan_prologue): Update.
8399 * ax-gdb.c (gen_var_ref): Update.
8400 * blockframe.c (get_pc_function_start)
8401 (find_pc_partial_function_gnu_ifunc): Update.
8402 * breakpoint.c (create_overlay_event_breakpoint)
8403 (create_longjmp_master_breakpoint)
8404 (create_std_terminate_master_breakpoint)
8405 (create_exception_master_breakpoint): Update.
8406 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8407 * c-valprint.c (c_val_print): Update.
8408 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8409 * common/agent.c (agent_look_up_symbols): Update.
8410 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8411 * dwarf2loc.c (call_site_to_target_addr): Update.
8412 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8413 * elfread.c (elf_gnu_ifunc_record_cache)
8414 (elf_gnu_ifunc_resolve_by_got): Update.
8415 * findvar.c (default_read_var_value): Update.
8416 * frame.c (inside_main_func): Update.
8417 * frv-tdep.c (frv_frame_this_id): Update.
8418 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8419 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8420 Update.
8421 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8422 (hppa_hpux_find_dummy_bpaddr): Update.
8423 * hppa-tdep.c (hppa_symbol_address): Update.
8424 * infcmd.c (until_next_command): Update.
8425 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8426 Update.
8427 * linespec.c (minsym_found, add_minsym): Update.
8428 * linux-nat.c (get_signo): Update.
8429 * linux-thread-db.c (inferior_has_bug): Update.
8430 * m32c-tdep.c (m32c_return_value)
8431 (m32c_m16c_address_to_pointer): Update.
8432 * m32r-tdep.c (m32r_frame_this_id): Update.
8433 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8434 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8435 * maint.c (maintenance_translate_address): Update.
8436 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8437 (frob_address): New function.
8438 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8439 frob_address. Rename parameter to "pc_in".
8440 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8441 addresses.
8442 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8443 Update.
8444 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8445 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8446 * objc-lang.c (find_objc_msgsend): Update.
8447 * objfiles.c (objfile_relocate1): Update.
8448 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8449 * p-valprint.c (pascal_val_print): Update.
8450 * parse.c (write_exp_msymbol): Update.
8451 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8452 (ppc_elfv2_skip_entrypoint): Update.
8453 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8454 * printcmd.c (build_address_symbolic, msym_info)
8455 (address_info): Update.
8456 * proc-service.c (ps_pglobal_lookup): Update.
8457 * psymtab.c (find_pc_sect_psymtab_closer)
8458 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8459 Change msymbol parameter to bound_minimal_symbol.
8460 * ravenscar-thread.c (get_running_thread_id): Update.
8461 * remote.c (remote_check_symbols): Update.
8462 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8463 address.
8464 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8465 * solib-dsbt.c (lm_base): Update.
8466 * solib-frv.c (lm_base, main_got): Update.
8467 * solib-irix.c (locate_base): Update.
8468 * solib-som.c (som_solib_create_inferior_hook)
8469 (link_map_start): Update.
8470 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8471 * solib-svr4.c (elf_locate_base, enable_break): Update.
8472 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8473 (flush_ea_cache): Update.
8474 * stabsread.c (define_symbol, scan_file_globals): Update.
8475 * stack.c (find_frame_funname): Update.
8476 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8477 (debug_qf_find_pc_sect_symtab): Update.
8478 * symfile.c (simple_read_overlay_table)
8479 (simple_overlay_update): Update.
8480 * symfile.h (struct quick_symbol_functions)
8481 <find_pc_sect_symtab>: Change type of msymbol to
8482 bound_minimal_symbol.
8483 * symmisc.c (dump_msymbols): Update.
8484 * symtab.c (find_pc_sect_symtab_via_partial)
8485 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8486 (search_symbols, print_msymbol_info): Update.
8487 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8488 (MSYMBOL_VALUE_ADDRESS): Redefine.
8489 (BMSYMBOL_VALUE_ADDRESS): New macro.
8490 * tracepoint.c (scope_info): Update.
8491 * tui/tui-disasm.c (tui_find_disassembly_address)
8492 (tui_get_begin_asm_address): Update.
8493 * valops.c (find_function_in_inferior): Update.
8494 * value.c (value_static_field, value_fn_field): Update.
8495
8496 2014-02-26 Tom Tromey <tromey@redhat.com>
8497
8498 * ada-lang.c (ada_update_initial_language): Update.
8499 (ada_main_name, ada_has_this_exception_support): Update.
8500 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8501 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8502 * arm-tdep.c (arm_skip_stub): Update.
8503 * auxv.c (ld_so_xfer_auxv): Update.
8504 * avr-tdep.c (avr_scan_prologue): Update.
8505 * ax-gdb.c (gen_var_ref): Update.
8506 * breakpoint.c (struct breakpoint_objfile_data)
8507 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8508 type to bound_minimal_symbol.
8509 (create_overlay_event_breakpoint)
8510 (create_longjmp_master_breakpoint)
8511 (create_std_terminate_master_breakpoint)
8512 (create_exception_master_breakpoint): Update.
8513 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8514 * c-exp.y (classify_name): Update.
8515 * coffread.c (coff_symfile_read): Update.
8516 * common/agent.c (agent_look_up_symbols): Update.
8517 * d-lang.c (d_main_name): Update.
8518 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8519 * dec-thread.c (enable_dec_thread): Update.
8520 * dwarf2loc.c (call_site_to_target_addr): Update.
8521 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8522 * eval.c (evaluate_subexp_standard): Update.
8523 * findvar.c (struct minsym_lookup_data) <result>: Change type
8524 to bound_minimal_symbol.
8525 <objfile>: Remove.
8526 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8527 * frame.c (inside_main_func): Update.
8528 * frv-tdep.c (frv_frame_this_id): Update.
8529 * gcore.c (call_target_sbrk): Update.
8530 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8531 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8532 Update.
8533 * go-lang.c (go_main_name): Update.
8534 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8535 (hppa_hpux_find_import_stub_for_addr): Update.
8536 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8537 Update. Change return type.
8538 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8539 type.
8540 * jit.c (jit_breakpoint_re_set_internal): Update.
8541 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8542 Update.
8543 * linux-nat.c (get_signo): Update.
8544 * linux-thread-db.c (inferior_has_bug): Update
8545 * m32c-tdep.c (m32c_return_value)
8546 (m32c_m16c_address_to_pointer): Update.
8547 * m32r-tdep.c (m32r_frame_this_id): Update.
8548 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8549 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8550 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8551 lookup_minimal_symbol. Change return type.
8552 (lookup_minimal_symbol): Remove.
8553 (lookup_bound_minimal_symbol): Update.
8554 (lookup_minimal_symbol_text): Change return type.
8555 (lookup_minimal_symbol_solib_trampoline): Change return type.
8556 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8557 (lookup_minimal_symbol_solib_trampoline): Change return type.
8558 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8559 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8560 (value_nsstring, find_imps): Update.
8561 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8562 * p-lang.c (pascal_main_name): Update.
8563 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8564 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8565 * proc-service.c (ps_pglobal_lookup): Update.
8566 * ravenscar-thread.c (get_running_thread_msymbol): Change
8567 return type.
8568 (has_ravenscar_runtime, get_running_thread_id): Update.
8569 * remote.c (remote_check_symbols): Update.
8570 * sol-thread.c (ps_pglobal_lookup): Update.
8571 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8572 * solib-dsbt.c (lm_base): Update.
8573 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8574 Update.
8575 * solib-irix.c (locate_base): Update.
8576 * solib-som.c (som_solib_create_inferior_hook)
8577 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8578 Update.
8579 * solib-spu.c (spu_enable_break): Update.
8580 * solib-svr4.c (elf_locate_base, enable_break): Update.
8581 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8582 (flush_ea_cache): Update.
8583 * stabsread.c (define_symbol): Update.
8584 * symfile.c (simple_read_overlay_table): Update.
8585 * symtab.c (find_pc_sect_line): Update.
8586 * tracepoint.c (scope_info): Update.
8587 * tui-disasm.c (tui_get_begin_asm_address): Update.
8588 * value.c (value_static_field): Update.
8589
8590 2014-02-26 Tom Tromey <tromey@redhat.com>
8591
8592 * minsyms.c (prim_record_minimal_symbol_full): Use
8593 SET_MSYMBOL_VALUE_ADDRESS.
8594 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8595 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8596 SET_MSYMBOL_VALUE_ADDRESS.
8597 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8598 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8599
8600 2014-02-26 Tom Tromey <tromey@redhat.com>
8601
8602 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8603 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8604 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8605 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8606 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8607 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8608 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8609 * ada-lang.c (ada_main_name): Update.
8610 (ada_lookup_simple_minsym): Update.
8611 (ada_make_symbol_completion_list): Update.
8612 (ada_add_standard_exceptions): Update.
8613 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8614 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8615 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8616 * arm-tdep.c (skip_prologue_function): Update.
8617 (arm_skip_stack_protector, arm_skip_stub): Update.
8618 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8619 (arm_wince_skip_main_prologue): Update.
8620 * auxv.c (ld_so_xfer_auxv): Update.
8621 * avr-tdep.c (avr_scan_prologue): Update.
8622 * ax-gdb.c (gen_var_ref): Update.
8623 * block.c (call_site_for_pc): Update.
8624 * blockframe.c (get_pc_function_start): Update.
8625 (find_pc_partial_function_gnu_ifunc): Update.
8626 * breakpoint.c (create_overlay_event_breakpoint): Update.
8627 (create_longjmp_master_breakpoint): Update.
8628 (create_std_terminate_master_breakpoint): Update.
8629 (create_exception_master_breakpoint): Update.
8630 (resolve_sal_pc): Update.
8631 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8632 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8633 Update.
8634 * c-valprint.c (c_val_print): Update.
8635 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8636 * coffread.c (coff_symfile_read): Update.
8637 * common/agent.c (agent_look_up_symbols): Update.
8638 * dbxread.c (find_stab_function_addr): Update.
8639 (end_psymtab): Update.
8640 * dwarf2loc.c (call_site_to_target_addr): Update.
8641 (func_verify_no_selftailcall): Update.
8642 (tailcall_dump): Update.
8643 (call_site_find_chain_1): Update.
8644 (dwarf_expr_reg_to_entry_parameter): Update.
8645 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8646 (elf_gnu_ifunc_resolve_by_got): Update.
8647 * f-valprint.c (info_common_command): Update.
8648 * findvar.c (read_var_value): Update.
8649 * frame.c (get_prev_frame_1): Update.
8650 (inside_main_func): Update.
8651 * frv-tdep.c (frv_skip_main_prologue): Update.
8652 (frv_frame_this_id): Update.
8653 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8654 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8655 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8656 (gnuv3_skip_trampoline): Update.
8657 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8658 (hppa64_hpux_in_solib_call_trampoline): Update.
8659 (hppa_hpux_skip_trampoline_code): Update.
8660 (hppa64_hpux_search_dummy_call_sequence): Update.
8661 (hppa_hpux_find_import_stub_for_addr): Update.
8662 (hppa_hpux_find_dummy_bpaddr): Update.
8663 * hppa-tdep.c (hppa_symbol_address)
8664 (hppa_lookup_stub_minimal_symbol): Update.
8665 * i386-tdep.c (i386_skip_main_prologue): Update.
8666 (i386_pe_skip_trampoline_code): Update.
8667 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8668 * infcall.c (get_function_name): Update.
8669 * infcmd.c (until_next_command): Update.
8670 * jit.c (jit_breakpoint_re_set_internal): Update.
8671 (jit_inferior_init): Update.
8672 * linespec.c (minsym_found): Update.
8673 (add_minsym): Update.
8674 * linux-fork.c (info_checkpoints_command): Update.
8675 * linux-nat.c (get_signo): Update.
8676 * linux-thread-db.c (inferior_has_bug): Update.
8677 * m32c-tdep.c (m32c_return_value): Update.
8678 (m32c_m16c_address_to_pointer): Update.
8679 (m32c_m16c_pointer_to_address): Update.
8680 * m32r-tdep.c (m32r_frame_this_id): Update.
8681 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8682 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8683 * maint.c (maintenance_translate_address): Update.
8684 * minsyms.c (add_minsym_to_hash_table): Update.
8685 (add_minsym_to_demangled_hash_table): Update.
8686 (msymbol_objfile): Update.
8687 (lookup_minimal_symbol): Update.
8688 (iterate_over_minimal_symbols): Update.
8689 (lookup_minimal_symbol_text): Update.
8690 (lookup_minimal_symbol_by_pc_name): Update.
8691 (lookup_minimal_symbol_solib_trampoline): Update.
8692 (lookup_minimal_symbol_by_pc_section_1): Update.
8693 (lookup_minimal_symbol_and_objfile): Update.
8694 (prim_record_minimal_symbol_full): Update.
8695 (compare_minimal_symbols): Update.
8696 (compact_minimal_symbols): Update.
8697 (build_minimal_symbol_hash_tables): Update.
8698 (install_minimal_symbols): Update.
8699 (terminate_minimal_symbol_table): Update.
8700 (find_solib_trampoline_target): Update.
8701 (minimal_symbol_upper_bound): Update.
8702 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8703 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8704 (mips_skip_pic_trampoline_code): Update.
8705 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8706 * objc-lang.c (selectors_info): Update.
8707 (classes_info): Update.
8708 (find_methods): Update.
8709 (find_imps): Update.
8710 (find_objc_msgsend): Update.
8711 * objfiles.c (objfile_relocate1): Update.
8712 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8713 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8714 * p-valprint.c (pascal_val_print): Update.
8715 * parse.c (write_exp_msymbol): Update.
8716 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8717 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8718 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8719 * printcmd.c (build_address_symbolic): Update.
8720 (sym_info): Update.
8721 (address_info): Update.
8722 * proc-service.c (ps_pglobal_lookup): Update.
8723 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8724 (find_pc_sect_psymtab): Update.
8725 * python/py-framefilter.c (py_print_frame): Update.
8726 * ravenscar-thread.c (get_running_thread_id): Update.
8727 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8728 Update.
8729 * remote.c (remote_check_symbols): Update.
8730 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8731 (rs6000_skip_trampoline_code): Update.
8732 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8733 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8734 * solib-dsbt.c (lm_base): Update.
8735 * solib-frv.c (lm_base): Update.
8736 (main_got): Update.
8737 * solib-irix.c (locate_base): Update.
8738 * solib-som.c (som_solib_create_inferior_hook): Update.
8739 (som_solib_desire_dynamic_linker_symbols): Update.
8740 (link_map_start): Update.
8741 * solib-spu.c (spu_enable_break): Update.
8742 (ocl_enable_break): Update.
8743 * solib-svr4.c (elf_locate_base): Update.
8744 (enable_break): Update.
8745 * spu-tdep.c (spu_get_overlay_table): Update.
8746 (spu_catch_start): Update.
8747 (flush_ea_cache): Update.
8748 * stabsread.c (define_symbol): Update.
8749 (scan_file_globals): Update.
8750 * stack.c (find_frame_funname): Update.
8751 (frame_info): Update.
8752 * symfile.c (simple_read_overlay_table): Update.
8753 (simple_overlay_update): Update.
8754 * symmisc.c (dump_msymbols): Update.
8755 * symtab.c (fixup_section): Update.
8756 (find_pc_sect_line): Update.
8757 (skip_prologue_sal): Update.
8758 (search_symbols): Update.
8759 (print_msymbol_info): Update.
8760 (rbreak_command): Update.
8761 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8762 (completion_list_objc_symbol): Update.
8763 (default_make_symbol_completion_list_break_on): Update.
8764 * tracepoint.c (scope_info): Update.
8765 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8766 (tui_get_begin_asm_address): Update.
8767 * valops.c (find_function_in_inferior): Update.
8768 * value.c (value_static_field): Update.
8769 (value_fn_field): Update.
8770
8771 2014-02-26 Tom Tromey <tromey@redhat.com>
8772
8773 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8774 bound minimal symbols. Move code that knows about minsym
8775 table layout...
8776 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8777 function.
8778 * minsyms.h (minimal_symbol_upper_bound): Declare.
8779 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8780 minimal_symbol_upper_bound.
8781
8782 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8783
8784 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8785 Use the type's name if its basic type does not have a tag.
8786
8787 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8788
8789 * dwarf2read.c (read_subrange_type): Add comment.
8790
8791 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8792
8793 * dwarf2read.c (update_enumeration_type_from_children): New
8794 function, mostly extracted from process_structure_scope.
8795 (read_enumeration_type): Call update_enumeration_type_from_children.
8796 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8797 and flag_flag_enum fields.
8798
8799 2014-02-26 Pedro Alves <palves@redhat.com>
8800
8801 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8802 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8803 to_xfer_partial method.
8804
8805 2014-02-26 Pedro Alves <palves@redhat.com>
8806
8807 * target.c (complete_target_initialization): Don't install
8808 default_xfer_partial as to_xfer_partial hook.
8809 (nomemory): Delete.
8810 (update_current_target): Don't INHERIT nor de_fault
8811 deprecated_xfer_memory. Delete de_fault macro.
8812 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8813 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8814 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8815 field.
8816
8817 2014-02-26 Pedro Alves <palves@redhat.com>
8818
8819 * go32-nat.c (my_write_child): New function.
8820 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8821 (go32_xfer_partial): New function.
8822 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8823 Instead install a to_xfer_partial hook.
8824
8825 2014-02-26 Pedro Alves <palves@redhat.com>
8826
8827 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8828 to_xfer_partial helper. Rewrite.
8829 (procfs_xfer_partial): New function.
8830 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8831 Install a to_xfer_partial hook.
8832
8833 2014-02-26 Pedro Alves <palves@redhat.com>
8834
8835 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8836 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8837 (m32r_xfer_partial): New function.
8838 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8839 Install a to_xfer_partial hook.
8840
8841 2014-02-26 Pedro Alves <palves@redhat.com>
8842
8843 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8844 helper.
8845 (mips_xfer_partial): New function.
8846 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8847 hook. Install a to_xfer_partial hook.
8848
8849 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8850
8851 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8852 * gdbtypes.c (create_array_type_with_stride): New function,
8853 renaming create_array_type, but with an added parameter
8854 called "bit_stride".
8855 (create_array_type): Re-implement using
8856 create_array_type_with_stride.
8857 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8858 and DW_AT_bit_stride attributes.
8859
8860 2014-02-26 Pedro Alves <palves@redhat.com>
8861
8862 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8863 task-specific breakpoints.
8864
8865 2014-02-25 Pedro Alves <palves@redhat.com>
8866
8867 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8868 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8869
8870 2014-02-25 Stan Shebs <stan@codesourcery.com>
8871
8872 * defs.h: Annotate comments for Doxygen.
8873
8874 2014-02-25 Tom Tromey <tromey@redhat.com>
8875
8876 * target.h (target_ignore): Don't declare.
8877 * target.c (target_ignore): Remove.
8878
8879 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8880
8881 PR gdb/16626
8882 * auto-load.c (auto_load_objfile_script_1): Change filename to
8883 debugfile.
8884
8885 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8886
8887 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8888 documentation. Adjust prototype to match the target_ops
8889 to_xfer_partial method. Adjust implementation accordingly.
8890
8891 2014-02-25 Hui Zhu <hui@codesourcery.com>
8892
8893 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8894 to_traceframe_info.
8895
8896 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8897
8898 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8899 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8900 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8901 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8902 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8903 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8904 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8905 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8906 New constants.
8907 (rl78_register_type): Use a data pointer type for SP and
8908 new pseudo registers mentioned above. Use a 16 bit integer
8909 type for all other register pairs.
8910 (rl78_register_name, rl78_g10_register_name): Update for
8911 new pseudo registers.
8912 (rl78_pseudo_register_read): Likewise.
8913 (rl78_pseudo_register_write): Likewise.
8914 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8915 to the newly added pseudo registers.
8916
8917 2014-02-24 Doug Evans <dje@google.com>
8918
8919 * value.c (record_latest_value): Fix comment.
8920 * printcmd.c (print_command_1): Remove code to handle -1 return from
8921 record_latest_value.
8922
8923 2014-02-24 Pedro Alves <palves@redhat.com>
8924
8925 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8926 deprecated_xfer_memory hook.
8927 (procfs_xfer_partial): Call procfs_xfer_memory instead
8928 of the deprecated_xfer_memory target hook.
8929 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8930 helper.
8931
8932 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8933
8934 * windows-nat.c (windows_xfer_shared_libraries): Return
8935 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8936 requested object is TARGET_OBJECT_LIBRARIES.
8937
8938 2014-02-24 Yao Qi <yao@codesourcery.com>
8939
8940 * target.h (enum target_xfer_status)
8941 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8942 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8943 explicitly. New.
8944 * corefile.c (memory_error_message): User updated.
8945 * exec.c (section_table_read_available_memory): Likewise.
8946 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8947 * target.c (target_xfer_status_to_string): Likewise.
8948 (raw_memory_xfer_partial): Likewise.
8949 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8950 * valops.c (read_value_memory): Likewise.
8951 * exec.h: Update comments.
8952
8953 2014-02-24 Yao Qi <yao@codesourcery.com>
8954
8955 * target.c (target_xfer_status_to_string): Rename argument err
8956 to status.
8957 * target.h (target_xfer_status_to_string): Update declaration.
8958 Replace target_xfer_error_to_string with
8959 target_xfer_status_to_string in comment.
8960
8961 2014-02-24 Yao Qi <yao@codesourcery.com>
8962
8963 * mips-linux-nat.c (super_close): Update its type.
8964 (mips_linux_close): Pass 'self' to super_close.
8965
8966 2014-02-24 Yao Qi <yao@codesourcery.com>
8967
8968 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8969 * corefile.c (read_memory): Adjusted.
8970 * target.c (target_write_with_progress): Adjusted.
8971
8972 2014-02-23 Yao Qi <yao@codesourcery.com>
8973
8974 Revert two patches:
8975
8976 2013-10-25 Yao Qi <yao@codesourcery.com>
8977
8978 * remote.c (remote_traceframe_info): Return early if
8979 traceframe is not selected.
8980
8981 2013-07-19 Yao Qi <yao@codesourcery.com>
8982
8983 * target.c (update_current_target): Change the default action
8984 of 'to_traceframe_info' from tcomplain to return_zero.
8985 * target.h (struct target_ops) <to_traceframe_info>: Add more
8986 comments.
8987
8988 2014-02-23 Yao Qi <yao@codesourcery.com>
8989
8990 * valops.c (read_value_memory): Rewrite it. Call
8991 target_xfer_partial in a loop.
8992 * exec.h (section_table_available_memory): Remove declaration.
8993 Move comments to ...
8994 * exec.c (section_table_available_memory): ... here. Make it
8995 static.
8996
8997 2014-02-23 Yao Qi <yao@codesourcery.com>
8998
8999 * exec.c (section_table_read_available_memory): New function.
9000 * exec.h (section_table_read_available_memory): Declare.
9001 * ctf.c (ctf_xfer_partial): Call
9002 section_table_read_available_memory.
9003 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9004
9005 2014-02-23 Yao Qi <yao@codesourcery.com>
9006
9007 * ctf.c (ctf_xfer_partial): Move code to ...
9008 * exec.c (exec_read_partial_read_only): ... it. New function.
9009 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9010 * tracefile.c: Include "exec.h".
9011 * exec.h (exec_read_partial_read_only): Declare.
9012
9013 2014-02-23 Yao Qi <yao@codesourcery.com>
9014
9015 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9016 (tfile_has_memory): Remove.
9017 (init_tfile_ops): Don't set fields to_has_all_memory and
9018 to_has_memory of tfile_ops.
9019 * tracefile.c (tracefile_has_all_memory): New function.
9020 (tracefile_has_memory): New function.
9021 (init_tracefile_ops): Initialize fields to_has_all_memory and
9022 to_has_memory of 'ops'.
9023
9024 2014-02-23 Yao Qi <yao@codesourcery.com>
9025
9026 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9027 (ctf_thread_alive, ctf_get_trace_status): Remove.
9028 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9029 init_tracefile_ops.
9030 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9031 (tfile_has_stack, tfile_has_registers): Remove.
9032 (tfile_thread_alive): Remove.
9033 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9034 init_tracefile_ops.
9035 * tracefile.c (tracefile_has_stack): New function.
9036 (tracefile_has_registers): New function.
9037 (tracefile_thread_alive): New function.
9038 (tracefile_get_trace_status): New function.
9039 (init_tracefile_ops): New function.
9040 * tracefile.h (init_tracefile_ops): Declare.
9041
9042 2014-02-23 Yao Qi <yao@codesourcery.com>
9043
9044 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9045 (O_LARGEFILE): Likewise.
9046 (tfile_ops): Likewise.
9047 (TRACE_HEADER_SIZE): Likewise.
9048 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9049 (cur_data_size): Likewise.
9050 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9051 (tfile_close, tfile_files_info): Likewise.
9052 (tfile_get_trace_status): Likewise.
9053 (tfile_get_tracepoint_status): Likewise.
9054 (tfile_get_traceframe_address): Likewise.
9055 (tfile_trace_find, match_blocktype): Likewise.
9056 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9057 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9058 (tfile_get_trace_state_variable_value): Likewise.
9059 (tfile_has_all_memory, tfile_has_memory): Likewise.
9060 (tfile_has_stack, tfile_has_registers): Likewise.
9061 (tfile_thread_alive, build_traceframe_info): Likewise.
9062 (tfile_traceframe_info, init_tfile_ops): Likewise.
9063 (_initialize_tracepoint): Don't call init_tfile_ops
9064 and add_target_with_completer.
9065 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9066 exec.h, completer.h and filenames.h.
9067 (_initialize_tracefile_tfile): New function.
9068
9069 2014-02-23 Yao Qi <yao@codesourcery.com>
9070
9071 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9072 tracefile-tfile.o.
9073 (HFILES_NO_SRCDIR): Add tracefile.h.
9074 * ctf.c: Include "tracefile.h".
9075 * tracefile.h: New file.
9076 * tracefile.c: New file
9077 * tracefile-tfile.c: New file.
9078 * tracepoint.c: Include "tracefile.h".
9079 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9080 (stop_reason_names): Add const.
9081 (trace_file_writer_xfree): Move it to tracefile.c.
9082 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9083 (trace_save_ctf): Likewise.
9084 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9085 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9086 (tfile_write_header, tfile_write_regblock_type): Likewise.
9087 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9088 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9089 (tfile_write_raw_data, tfile_end): Likewise.
9090 (tfile_trace_file_writer_new): Likewise.
9091 (free_uploaded_tp): Make it extern.
9092 (free_uploaded_tsv): Make it extern.
9093 (_initialize_tracepoint): Move code to register command 'tsave'
9094 to tracefile.c.
9095 * tracepoint.h (stop_reason_names): Declare.
9096 (struct trace_frame_write_ops): Move it to tracefile.h.
9097 (struct trace_file_write_ops): Likewise.
9098 (struct trace_file_writer): Likewise.
9099 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9100
9101 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9102
9103 PR gdb/16594
9104 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9105 process name.
9106 (get_cores_used_by_process): New parameter num_cores, use it.
9107 (linux_xfer_osdata_processes): Pass num_cores to it.
9108 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9109 process name.
9110
9111 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9112
9113 * target.c (memory_xfer_partial): Fix length arg in call to
9114 breakpoint_xfer_memory.
9115
9116 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9117
9118 PR tdep/16397
9119 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9120 number comes after the + or - signs. Adjust length of register
9121 name to be extracted.
9122
9123 2014-02-20 Tom Tromey <tromey@redhat.com>
9124
9125 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9126 (ada_varobj_ops): Mark "extern".
9127
9128 2014-02-20 Tom Tromey <tromey@redhat.com>
9129
9130 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9131
9132 2014-02-20 Doug Evans <xdje42@gmail.com>
9133
9134 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9135 All callers updated.
9136 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9137 All callers updated.
9138 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9139 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9140
9141 2014-02-20 lin zuojian <manjian2006@gmail.com>
9142 Joel Brobecker <brobecker@adacore.com>
9143 Doug Evans <xdje42@gmail.com>
9144
9145 PR symtab/16581
9146 * dwarf2read.c (struct die_info): New member in_process.
9147 (reset_die_in_process): New function.
9148 (process_die): Set it at the start, reset when returning.
9149 (inherit_abstract_dies): Only call process_die if origin_child_die
9150 not already being processed.
9151
9152 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9153
9154 * windows-nat.c (handle_unload_dll): Add function documentation.
9155 (do_initial_windows_stuff): Add comment explaining why we wait
9156 until after inferior initialization has finished before
9157 processing all DLLs.
9158
9159 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9160
9161 * windows-nat.c (get_module_name): Delete.
9162 (windows_get_exec_module_filename): New function, mostly
9163 inspired from get_module_name.
9164 (windows_pid_to_exec_file): Replace call to get_module_name
9165 by call to windows_get_exec_module_filename.
9166
9167 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9168
9169 * windows-nat.c (handle_load_dll): Rewrite this function's
9170 introductory comment. Remove code using get_module_name
9171 to get the DLL's name.
9172
9173 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9174
9175 * windows-nat.c (get_windows_debug_event): Ignore
9176 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9177 if windows_initialization_done == 0.
9178 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9179 Adjust implementation to always load all DLLs.
9180 (do_initial_windows_stuff): Replace call to
9181 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9182
9183 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9184
9185 * windows-nat.c (_initialize_windows_nat): Deprecate the
9186 "dll-symbols" command. Turn the "add-shared-symbol-files"
9187 and "assf" aliases into commands, and deprecate them as well.
9188 * NEWS: Add entry explaining that "dll-symbols" and its two
9189 aliases are now deprecated.
9190
9191 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9192
9193 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9194 new-line in debug string. Remove trailing spaces.
9195
9196 2014-02-19 Stan Shebs <stan@codesourcery.com>
9197
9198 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9199
9200 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9201
9202 * NEWS: Add entry for the new feature
9203 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9204 and class values.
9205
9206 2014-02-19 Stan Shebs <stan@codesourcery.com>
9207
9208 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9209
9210 2014-02-19 Pedro Alves <palves@redhat.com>
9211
9212 * common/ptid.h (struct ptid): Mention that process_stratum
9213 targets should prefer ptid.lwp.
9214
9215 2014-02-19 Pedro Alves <palves@redhat.com>
9216
9217 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9218 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9219 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9220 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9221 store remote thread ids rather than ptid.tid.
9222 (_initialize_remote): Adjust.
9223
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9225
9226 * target.c (target_get_unwinder): Rewrite.
9227 (target_get_tailcall_unwinder): Rewrite.
9228 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9229 (record_btrace_to_get_tailcall_unwinder): New function.
9230 (init_record_btrace_ops): Update.
9231 * target.h (struct target_ops) <to_get_unwinder,
9232 to_get_tailcall_unwinder>: Now function pointers. Use
9233 TARGET_DEFAULT_RETURN.
9234
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9236
9237 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9238 argument.
9239 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9240
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9244 directly.
9245 * target-delegates.c: Rebuild.
9246 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9247 TARGET_DEFAULT_FUNC.
9248 * target.c (default_target_decr_pc_after_break): Rename from
9249 forward_target_decr_pc_after_break. Simplify.
9250 (target_decr_pc_after_break): Rely on delegation.
9251
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9253
9254 * target.c (update_current_target): Do not INHERIT to_doc or
9255 to_magic. Do not de_fault to_open or to_close.
9256
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9258
9259 * gcore.h (objfile_find_memory_regions): Declare.
9260 * gcore.c (objfile_find_memory_regions): No longer static. Add
9261 "self" argument.
9262 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9263 * exec.c: Include gcore.h.
9264 (exec_set_find_memory_regions): Remove.
9265 (exec_find_memory_regions): Remove.
9266 (exec_do_find_memory_regions): Remove.
9267 (init_exec_ops): Update.
9268 * defs.h (exec_set_find_memory_regions): Remove.
9269
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * target-delegates.c: Rebuild.
9273 * target.h (struct target_ops) <to_extra_thread_info,
9274 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9275 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9276 not 0, in TARGET_DEFAULT_RETURN.
9277
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target.c (complete_target_initialization): Remove casts. Use
9281 return_zero_has_execution.
9282 (return_zero): Add "ignore" argument.
9283 (return_zero_has_execution): New function.
9284 (init_dummy_target): Remove casts. Use
9285 return_zero_has_execution.
9286
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * target.c (update_current_target): Update comments. Do not
9290 INHERIT to_stratum.
9291
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9293
9294 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9295 needed.
9296 * corelow.c (core_read_description): Delegate when needed.
9297 * remote.c (remote_read_description): Delegate when needed.
9298 * target-delegates.c: Rebuild.
9299 * target.c (target_read_description): Rewrite.
9300 * target.h (struct target_ops) <to_read_description>: Update
9301 comment. Use TARGET_DEFAULT_RETURN.
9302
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target-delegates.c: Rebuild.
9306 * target.c (update_current_target): Don't inherit or default
9307 to_can_run.
9308 (find_default_run_target): Check against delegate_can_run.
9309 * target.h (struct target_ops) <to_can_run>: Use
9310 TARGET_DEFAULT_RETURN.
9311
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target-delegates.c: Rebuild.
9315 * target.c (target_disconnect): Unconditionally delegate.
9316 * target.h (struct target_ops) <to_disconnect>: Use
9317 TARGET_DEFAULT_NORETURN.
9318
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * record.c (record_stop): Unconditionally delegate.
9322 * target-delegates.c: Rebuild.
9323 * target.c (target_stop_recording): Unconditionally delegate.
9324 * target.h (struct target_ops) <to_stop_recording>: Use
9325 TARGET_DEFAULT_IGNORE.
9326
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9328
9329 * target-delegates.c: Rebuild.
9330 * target.c (target_enable_btrace): Unconditionally delegate.
9331 * target.h (struct target_ops) <to_enable_btrace>: Use
9332 TARGET_DEFAULT_NORETURN.
9333
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * target-delegates.c: Rebuild.
9337 * target.c (target_read_btrace): Unconditionally delegate.
9338 * target.h (struct target_ops) <to_read_btrace>: Use
9339 TARGET_DEFAULT_NORETURN.
9340
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * target-delegates.c: Rebuild.
9344 * target.c (target_teardown_btrace): Unconditionally delegate.
9345 * target.h (struct target_ops) <to_teardown_btrace>: Use
9346 TARGET_DEFAULT_NORETURN.
9347
9348 2014-02-19 Tom Tromey <tromey@redhat.com>
9349
9350 * target-delegates.c: Rebuild.
9351 * target.c (target_disable_btrace): Unconditionally delegate.
9352 * target.h (struct target_ops) <to_disable_btrace>: Use
9353 TARGET_DEFAULT_NORETURN.
9354
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9356
9357 * target-delegates.c: Rebuild.
9358 * target.c (default_search_memory): New function.
9359 (simple_search_memory): Update comment.
9360 (target_search_memory): Unconditionally delegate.
9361 * target.h (struct target_ops) <to_search_memory>: Use
9362 TARGET_DEFAULT_FUNC.
9363
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9365
9366 * auxv.c (default_auxv_parse): No longer static.
9367 (target_auxv_parse): Unconditionally delegate.
9368 * auxv.h (default_auxv_parse): Declare.
9369 * target-delegates.c: Rebuild.
9370 * target.c: Include auxv.h.
9371 * target.h (struct target_ops) <to_auxv_parse>: Use
9372 TARGET_DEFAULT_FUNC.
9373
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9375
9376 * target-delegates.c: Rebuild.
9377 * target.c (target_memory_map): Unconditionally delegate.
9378 * target.h (struct target_ops) <to_memory_map>: Use
9379 TARGET_DEFAULT_RETURN.
9380
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9382
9383 * target-delegates.c: Rebuild.
9384 * target.c (target_thread_alive): Unconditionally delegate.
9385 * target.h (struct target_ops) <to_thread_alive>: Use
9386 TARGET_DEFAULT_RETURN.
9387
9388 2014-02-19 Tom Tromey <tromey@redhat.com>
9389
9390 * target-delegates.c: Rebuild.
9391 * target.c (target_save_record): Unconditionally delegate.
9392 * target.h (struct target_ops) <to_save_record>: Use
9393 TARGET_DEFAULT_NORETURN.
9394
9395 2014-02-19 Tom Tromey <tromey@redhat.com>
9396
9397 * target-delegates.c: Rebuild.
9398 * target.c (target_delete_record): Unconditionally delegate.
9399 * target.h (struct target_ops) <to_delete_record>: Use
9400 TARGET_DEFAULT_NORETURN.
9401
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9403
9404 * target-delegates.c: Rebuild.
9405 * target.c (target_record_is_replaying): Unconditionally
9406 delegate.
9407 * target.h (struct target_ops) <to_record_is_replaying>: Use
9408 TARGET_DEFAULT_RETURN.
9409
9410 2014-02-19 Tom Tromey <tromey@redhat.com>
9411
9412 * target-delegates.c: Rebuild.
9413 * target.c (target_goto_record_begin): Unconditionally delegate.
9414 * target.h (struct target_ops) <to_goto_record_begin>: Use
9415 TARGET_DEFAULT_NORETURN.
9416
9417 2014-02-19 Tom Tromey <tromey@redhat.com>
9418
9419 * target-delegates.c: Rebuild.
9420 * target.c (target_goto_record_end): Unconditionally delegate.
9421 * target.h (struct target_ops) <to_goto_record_end>: Use
9422 TARGET_DEFAULT_NORETURN.
9423
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target-delegates.c: Rebuild.
9427 * target.c (target_goto_record): Unconditionally delegate.
9428 * target.h (struct target_ops) <to_goto_record>: Use
9429 TARGET_DEFAULT_NORETURN.
9430
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target-delegates.c: Rebuild.
9434 * target.c (target_insn_history): Unconditionally delegate.
9435 * target.h (struct target_ops) <to_insn_history>: Use
9436 TARGET_DEFAULT_NORETURN.
9437
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9439
9440 * target-delegates.c: Rebuild.
9441 * target.c (target_insn_history_from): Unconditionally delegate.
9442 * target.h (struct target_ops) <to_insn_history_from>: Use
9443 TARGET_DEFAULT_NORETURN.
9444
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9446
9447 * target-delegates.c: Rebuild.
9448 * target.c (target_insn_history_range): Unconditionally delegate.
9449 * target.h (struct target_ops) <to_insn_history_range>: Use
9450 TARGET_DEFAULT_NORETURN.
9451
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9453
9454 * target-delegates.c: Rebuild.
9455 * target.c (target_call_history): Unconditionally delegate.
9456 * target.h (struct target_ops) <to_call_history>: Use
9457 TARGET_DEFAULT_NORETURN.
9458
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9460
9461 * target-delegates.c: Rebuild.
9462 * target.c (target_call_history_from): Unconditionally delegate.
9463 * target.h (struct target_ops) <to_call_history_from>: Use
9464 TARGET_DEFAULT_NORETURN.
9465
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * target-delegates.c: Rebuild.
9469 * target.c (target_call_history_range): Unconditionally delegate.
9470 * target.h (struct target_ops) <to_call_history_range>: Use
9471 TARGET_DEFAULT_NORETURN.
9472
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 * target-delegates.c: Rebuild.
9476 * target.c (target_verify_memory): Unconditionally delegate.
9477 * target.h (struct target_ops) <to_verify_memory>: Use
9478 TARGET_DEFAULT_NORETURN.
9479
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9481
9482 * target-delegates.c: Rebuild.
9483 * target.c (target_core_of_thread): Unconditionally delegate.
9484 * target.h (struct target_ops) <to_core_of_thread>: Use
9485 TARGET_DEFAULT_RETURN.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target-delegates.c: Rebuild.
9490 * target.c (target_flash_done): Unconditionally delegate.
9491 * target.h (struct target_ops) <to_flash_done>: Use
9492 TARGET_DEFAULT_NORETURN.
9493
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9495
9496 * target-delegates.c: Rebuild.
9497 * target.c (target_flash_erase): Unconditionally delegate.
9498 * target.h (struct target_ops) <to_flash_erase>: Use
9499 TARGET_DEFAULT_NORETURN.
9500
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9502
9503 * target-delegates.c: Rebuild.
9504 * target.c (target_get_section_table): Unconditionally delegate.
9505 * target.h (struct target_ops) <to_get_section_table>: Use
9506 TARGET_DEFAULT_RETURN.
9507
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target-delegates.c: Rebuild.
9511 * target.c (target_pid_to_str): Unconditionally delegate.
9512 (init_dummy_target): Don't initialize to_pid_to_str.
9513 (default_pid_to_str): Rename from dummy_pid_to_str.
9514 * target.h (struct target_ops) <to_pid_to_str>: Use
9515 TARGET_DEFAULT_FUNC.
9516
9517 2014-02-19 Tom Tromey <tromey@redhat.com>
9518
9519 * target-delegates.c: Rebuild.
9520 * target.c (target_find_new_threads): Unconditionally delegate.
9521 * target.h (struct target_ops) <to_find_new_threads>: Use
9522 TARGET_DEFAULT_RETURN.
9523
9524 2014-02-19 Tom Tromey <tromey@redhat.com>
9525
9526 * target-delegates.c: Rebuild.
9527 * target.c (target_program_signals): Unconditionally delegate.
9528 * target.h (struct target_ops) <to_program_signals>: Use
9529 TARGET_DEFAULT_IGNORE.
9530
9531 2014-02-19 Tom Tromey <tromey@redhat.com>
9532
9533 * target-delegates.c: Rebuild.
9534 * target.c (target_pass_signals): Unconditionally delegate.
9535 * target.h (struct target_ops) <to_pass_signals>: Use
9536 TARGET_DEFAULT_IGNORE.
9537
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9539
9540 * target-delegates.c: Rebuild.
9541 * target.c (default_mourn_inferior): New function.
9542 (target_mourn_inferior): Unconditionally delegate.
9543 * target.h (struct target_ops) <to_mourn_inferior>: Use
9544 TARGET_DEFAULT_FUNC.
9545
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9547
9548 * target-delegates.c: Rebuild.
9549 * target.c (default_follow_fork): New function.
9550 (target_follow_fork): Unconditionally delegate.
9551 * target.h (struct target_ops) <to_follow_fork>: Use
9552 TARGET_DEFAULT_FUNC.
9553
9554 2014-02-19 Tom Tromey <tromey@redhat.com>
9555
9556 * target-delegates.c: Rebuild.
9557 * target.c (target_kill): Unconditionally delegate.
9558 * target.h (struct target_ops) <to_kill>: Use
9559 TARGET_DEFAULT_NORETURN.
9560
9561 2014-02-19 Tom Tromey <tromey@redhat.com>
9562
9563 * target-delegates.c: Rebuild.
9564 * target.c (target_masked_watch_num_registers): Unconditionally
9565 delegate.
9566 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9567 Use TARGET_DEFAULT_RETURN.
9568
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target-delegates.c: Rebuild.
9572 * target.c (target_remove_mask_watchpoint): Unconditionally
9573 delegate.
9574 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9575 TARGET_DEFAULT_RETURN.
9576
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9578
9579 * target-delegates.c: Rebuild.
9580 * target.c (target_insert_mask_watchpoint): Unconditionally
9581 delegate.
9582 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9583 TARGET_DEFAULT_RETURN.
9584
9585 2014-02-19 Tom Tromey <tromey@redhat.com>
9586
9587 * target-delegates.c: Rebuild.
9588 * target.c (target_ranged_break_num_registers): Unconditionally
9589 delegate.
9590 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9591 Use TARGET_DEFAULT_RETURN.
9592
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * target-delegates.c: Rebuild.
9596 * target.c (target_fetch_registers): Unconditionally delegate.
9597 * target.h (struct target_ops) <to_fetch_registers>: Use
9598 TARGET_DEFAULT_NORETURN.
9599
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9601
9602 * target-delegates.c: Rebuild.
9603 * target.c (update_current_target): Don't inherit or default
9604 to_stop.
9605 * target.h (struct target_ops) <to_stop>: Use
9606 TARGET_DEFAULT_IGNORE.
9607
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * target-delegates.c: Rebuild.
9611 * target.c (update_current_target): Don't inherit or default
9612 to_can_run_breakpoint_commands.
9613 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9614 Use TARGET_DEFAULT_RETURN.
9615
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * target-delegates.c: Rebuild.
9619 * target.c (update_current_target): Don't inherit or default
9620 to_supports_evaluation_of_breakpoint_conditions.
9621 * target.h (struct target_ops)
9622 <to_supports_evaluation_of_breakpoint_conditions>: Use
9623 TARGET_DEFAULT_RETURN.
9624
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9626
9627 * target-delegates.c: Rebuild.
9628 * target.c (update_current_target): Don't inherit or default
9629 to_augmented_libraries_svr4_read.
9630 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9631 Use TARGET_DEFAULT_RETURN.
9632
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9634
9635 * target-delegates.c: Rebuild.
9636 * target.c (update_current_target): Don't inherit or default
9637 to_can_use_agent.
9638 * target.h (struct target_ops) <to_can_use_agent>: Use
9639 TARGET_DEFAULT_RETURN.
9640
9641 2014-02-19 Tom Tromey <tromey@redhat.com>
9642
9643 * target-delegates.c: Rebuild.
9644 * target.c (update_current_target): Don't inherit or default
9645 to_use_agent.
9646 * target.h (struct target_ops) <to_use_agent>: Use
9647 TARGET_DEFAULT_NORETURN.
9648
9649 2014-02-19 Tom Tromey <tromey@redhat.com>
9650
9651 * target-delegates.c: Rebuild.
9652 * target.c (update_current_target): Don't inherit or default
9653 to_traceframe_info.
9654 (return_null): Remove.
9655 * target.h (struct target_ops) <to_traceframe_info>: Use
9656 TARGET_DEFAULT_RETURN.
9657
9658 2014-02-19 Tom Tromey <tromey@redhat.com>
9659
9660 * target-delegates.c: Rebuild.
9661 * target.c (update_current_target): Don't inherit or default
9662 to_static_tracepoint_markers_by_strid.
9663 * target.h (struct target_ops)
9664 <to_static_tracepoint_markers_by_strid>: Use
9665 TARGET_DEFAULT_NORETURN.
9666
9667 2014-02-19 Tom Tromey <tromey@redhat.com>
9668
9669 * target-delegates.c: Rebuild.
9670 * target.c (update_current_target): Don't inherit or default
9671 to_static_tracepoint_marker_at.
9672 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9673 Use TARGET_DEFAULT_RETURN.
9674
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * target-delegates.c: Rebuild.
9678 * target.c (update_current_target): Don't inherit or default
9679 to_set_permissions.
9680 * target.h (struct target_ops) <to_set_permissions>: Use
9681 TARGET_DEFAULT_IGNORE.
9682
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target-delegates.c: Rebuild.
9686 * target.c (update_current_target): Don't inherit or default
9687 to_get_tib_address.
9688 * target.h (struct target_ops) <to_get_tib_address>: Use
9689 TARGET_DEFAULT_NORETURN.
9690
9691 2014-02-19 Tom Tromey <tromey@redhat.com>
9692
9693 * target-delegates.c: Rebuild.
9694 * target.c (update_current_target): Don't inherit or default
9695 to_set_trace_notes.
9696 * target.h (struct target_ops) <to_set_trace_notes>: Use
9697 TARGET_DEFAULT_RETURN.
9698
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target-delegates.c: Rebuild.
9702 * target.c (update_current_target): Don't initialize
9703 to_set_trace_buffer_size.
9704 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9705 TARGET_DEFAULT_IGNORE.
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_circular_trace_buffer.
9712 * target.h (struct target_ops) <to_set_circular_trace_buffer>: 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_set_disconnected_tracing.
9720 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9721 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
9728 (return_minus_one): Remove.
9729 * target.h (struct target_ops)
9730 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9731
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target-delegates.c: Rebuild.
9735 * target.c (update_current_target): Don't inherit or default
9736 to_get_raw_trace_data.
9737 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9738 TARGET_DEFAULT_NORETURN.
9739
9740 2014-02-19 Tom Tromey <tromey@redhat.com>
9741
9742 * target-delegates.c: Rebuild.
9743 * target.c (update_current_target): Don't inherit or default
9744 to_upload_trace_state_variables.
9745 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9746 Use TARGET_DEFAULT_RETURN.
9747
9748 2014-02-19 Tom Tromey <tromey@redhat.com>
9749
9750 * target-delegates.c: Rebuild.
9751 * target.c (update_current_target): Don't inherit or default
9752 to_upload_tracepoints.
9753 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9754 TARGET_DEFAULT_RETURN.
9755
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * target-delegates.c: Rebuild.
9759 * target.c (update_current_target): Don't inherit or default
9760 to_save_trace_data.
9761 * target.h (struct target_ops) <to_save_trace_data>: Use
9762 TARGET_DEFAULT_NORETURN.
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_trace_state_variable_value.
9769 * target.h (struct target_ops)
9770 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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_trace_find.
9777 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9778
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target-delegates.c: Rebuild.
9782 * target.c (update_current_target): Don't inherit or default
9783 to_trace_stop.
9784 * target.h (struct target_ops) <to_trace_stop>: Use
9785 TARGET_DEFAULT_NORETURN.
9786
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target-delegates.c: Rebuild.
9790 * target.c (update_current_target): Don't inherit or default
9791 to_get_tracepoint_status.
9792 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9793 TARGET_DEFAULT_NORETURN.
9794
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * target-delegates.c: Rebuild.
9798 * target.c (update_current_target): Don't inherit or default
9799 to_get_trace_status.
9800 * target.h (struct target_ops) <to_get_trace_status>: Use
9801 TARGET_DEFAULT_RETURN.
9802
9803 2014-02-19 Tom Tromey <tromey@redhat.com>
9804
9805 * target-delegates.c: Rebuild.
9806 * target.c (update_current_target): Don't inherit or default
9807 to_trace_start.
9808 * target.h (struct target_ops) <to_trace_start>: Use
9809 TARGET_DEFAULT_NORETURN.
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_set_readonly_regions.
9816 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9817 Use 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_disable_tracepoint.
9824 * target.h (struct target_ops) <to_disable_tracepoint>: 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_enable_tracepoint.
9832 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9833 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
9840 * target.h (struct target_ops) <to_download_trace_state_variable>:
9841 Use 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_can_download_tracepoint.
9848 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9849 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
9856 * target.h (struct target_ops) <to_download_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_trace_init.
9864 * target.h (struct target_ops) <to_trace_init>: Use
9865 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
9872 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9873 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
9880 * target.h (struct target_ops)
9881 <to_supports_enable_disable_tracepoint>: Use
9882 TARGET_DEFAULT_RETURN.
9883
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9885
9886 * target-delegates.c: Rebuild.
9887 * target.c (update_current_target): Don't inherit or default
9888 to_supports_multi_process.
9889 * target.h (struct target_ops) <to_supports_multi_process>: Use
9890 TARGET_DEFAULT_RETURN.
9891
9892 2014-02-19 Tom Tromey <tromey@redhat.com>
9893
9894 * target-delegates.c: Rebuild.
9895 * target.c (update_current_target): Don't inherit or default
9896 to_get_ada_task_ptid.
9897 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9898 TARGET_DEFAULT_FUNC.
9899
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * target-delegates.c: Rebuild.
9903 * target.c (update_current_target): Don't inherit or default
9904 to_thread_architecture.
9905 * target.h (struct target_ops) <to_thread_architecture>: Use
9906 TARGET_DEFAULT_FUNC.
9907
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target-delegates.c: Rebuild.
9911 * target.c (update_current_target): Don't inherit or default
9912 to_execution_direction.
9913 * target.h (struct target_ops) <to_execution_direction>: Use
9914 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
9921 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9922 TARGET_DEFAULT_RETURN.
9923 (target_can_execute_reverse): Unconditionally delegate.
9924
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target-delegates.c: Rebuild.
9928 * target.c (update_current_target): Don't inherit or default
9929 to_goto_bookmark.
9930 (dummy_goto_bookmark): Remove.
9931 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9932 * target.h (struct target_ops) <to_goto_bookmark>: Use
9933 TARGET_DEFAULT_NORETURN.
9934
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * target-delegates.c: Rebuild.
9938 * target.c (update_current_target): Don't inherit or default
9939 to_get_bookmark.
9940 (dummy_get_bookmark): Remove.
9941 (init_dummy_target): Don't inherit or default to_get_bookmark.
9942 * target.h (struct target_ops) <to_get_bookmark>: Use
9943 TARGET_DEFAULT_NORETURN
9944
9945 2014-02-19 Tom Tromey <tromey@redhat.com>
9946
9947 * target-delegates.c: Rebuild.
9948 * target.c (update_current_target): Don't inherit or default
9949 to_make_corefile_notes.
9950 (init_dummy_target): Don't initialize to_make_corefile_notes.
9951 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9952 TARGET_DEFAULT_FUNC.
9953
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target-delegates.c: Rebuild.
9957 * target.c (update_current_target): Don't inherit or default
9958 to_find_memory_regions.
9959 (init_dummy_target): Don't initialize to_find_memory_regions.
9960 * target.h (struct target_ops) <to_find_memory_regions>: Use
9961 TARGET_DEFAULT_FUNC.
9962
9963 2014-02-19 Tom Tromey <tromey@redhat.com>
9964
9965 * target-delegates.c: Rebuild.
9966 * target.c (update_current_target): Don't inherit or default
9967 to_log_command.
9968 * target.h (struct target_ops) <to_log_command>: Use
9969 TARGET_DEFAULT_IGNORE.
9970 (target_log_command): Unconditionally delegate.
9971
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9973
9974 * target-delegates.c: Rebuild.
9975 * target.c (update_current_target): Don't inherit or default
9976 to_pid_to_exec_file.
9977 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9978 TARGET_DEFAULT_RETURN.
9979
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * target-delegates.c: Rebuild.
9983 * target.c (update_current_target): Don't inherit or default
9984 to_thread_name.
9985 (target_thread_name): Unconditionally delegate.
9986 * target.h (struct target_ops) <to_thread_name>: Use
9987 TARGET_DEFAULT_RETURN.
9988
9989 2014-02-19 Tom Tromey <tromey@redhat.com>
9990
9991 * target-delegates.c: Rebuild.
9992 * target.c (update_current_target): Don't inherit or default
9993 to_extra_thread_info.
9994 * target.h (struct target_ops) <to_extra_thread_info>: Use
9995 TARGET_DEFAULT_RETURN.
9996
9997 2014-02-19 Tom Tromey <tromey@redhat.com>
9998
9999 * target-delegates.c: Rebuild.
10000 * target.c (update_current_target): Don't inherit or default
10001 to_has_exited.
10002 * target.h (struct target_ops) <to_has_exited>: Use
10003 TARGET_DEFAULT_RETURN..
10004
10005 2014-02-19 Tom Tromey <tromey@redhat.com>
10006
10007 * target-delegates.c: Rebuild.
10008 * target.c (update_current_target): Don't inherit or default
10009 to_set_syscall_catchpoint.
10010 (return_one): Remove.
10011 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10012 TARGET_DEFAULT_RETURN.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target-delegates.c: Rebuild.
10017 * target.c (update_current_target): Don't inherit or default
10018 to_insert_exec_catchpoint.
10019 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10020 TARGET_DEFAULT_RETURN.
10021
10022 2014-01-08 Tom Tromey <tromey@redhat.com>
10023
10024 * target-delegates.c: Rebuild.
10025 * target.c (update_current_target): Don't inherit or default
10026 to_insert_exec_catchpoint.
10027 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10028 TARGET_DEFAULT_RETURN.
10029
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * target-delegates.c: Rebuild.
10033 * target.c (update_current_target): Don't inherit or default
10034 to_remove_vfork_catchpoint.
10035 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10036 TARGET_DEFAULT_RETURN.
10037
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10039
10040 * target-delegates.c: Rebuild.
10041 * target.c (update_current_target): Don't inherit or default
10042 to_insert_vfork_catchpoint.
10043 * target.h (struct target_ops) <to_insert_vfork_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_remove_fork_catchpoint.
10051 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10052 TARGET_DEFAULT_RETURN.
10053
10054 2014-02-19 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_fork_catchpoint.
10059 * target.h (struct target_ops) <to_insert_fork_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_post_startup_inferior.
10067 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10068 TARGET_DEFAULT_IGNORE.
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_load.
10075 * target.h (struct target_ops) <to_load>: Use
10076 TARGET_DEFAULT_NORETURN.
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_terminal_info.
10083 * target.h (struct target_ops) <to_terminal_info>: Use
10084 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
10091 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10092 TARGET_DEFAULT_IGNORE.
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_terminal_ours.
10099 * target.h (struct target_ops) <to_terminal_ours>: 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_terminal_ours_for_output.
10107 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10108 TARGET_DEFAULT_IGNORE.
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_inferior.
10115 * target.h (struct target_ops) <to_terminal_inferior>: Use
10116 TARGET_DEFAULT_IGNORE.
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_init.
10123 * target.h (struct target_ops) <to_terminal_init>: 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_can_accel_watchpoint_condition.
10131 * target.h (struct target_ops)
10132 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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_region_ok_for_hw_watchpoint.
10139 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10140 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
10147 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10148 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
10155 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10156 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
10163 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10164 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_remove_hw_breakpoint.
10171 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10172 TARGET_DEFAULT_RETURN.
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_insert_hw_breakpoint.
10179 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10180 TARGET_DEFAULT_RETURN.
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_can_use_hw_breakpoint.
10187 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10188 TARGET_DEFAULT_RETURN.
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_files_info.
10195 * target.h (struct target_ops) <to_files_info>: Use
10196 TARGET_DEFAULT_IGNORE.
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_store.
10203 * target.h (struct target_ops) <to_store>: Use
10204 TARGET_DEFAULT_NORETURN.
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_post_attach.
10211 * target.h (struct target_ops) <to_post_attach>: Use
10212 TARGET_DEFAULT_IGNORE.
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_rcmd.
10219 (default_rcmd): New function.
10220 (do_monitor_command): Unconditionally delegate.
10221 * target.h (struct target_ops) <to_rmcd>: Use
10222 TARGET_DEFAULT_FUNC.
10223
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (init_dummy_target): Don't initialize to_attach.
10228 (target_attach): Unconditionally delegate.
10229 * target.h (struct target_ops) <to_attach>: Use
10230 TARGET_DEFAULT_FUNC.
10231
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target-delegates.c: Rebuild.
10235 * target.c (target_detach): Unconditionally delegate.
10236 (init_dummy_target): Don't initialize to_detach.
10237 * target.h (struct target_ops) <to_detach>: Use
10238 TARGET_DEFAULT_IGNORE.
10239
10240 2014-02-19 Tom Tromey <tromey@redhat.com>
10241
10242 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10243 Add argument.
10244 (target_augmented_libraries_svr4_read): Add argument.
10245 * target.c (update_current_target): Update.
10246 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10247 argument.
10248
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target.h (struct target_ops) <to_call_history_range>: Add
10252 argument.
10253 * target.c (target_call_history_range): Add argument.
10254 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10255 argument.
10256 (record_btrace_call_history_from): Update.
10257
10258 2014-02-19 Tom Tromey <tromey@redhat.com>
10259
10260 * target.h (struct target_ops) <to_call_history_from>: Add
10261 argument.
10262 * target.c (target_call_history_from): Add argument.
10263 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10264 argument.
10265
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * target.h (struct target_ops) <to_call_history>: Add argument.
10269 * target.c (target_call_history): Add argument.
10270 * record-btrace.c (record_btrace_call_history): Add 'self'
10271 argument.
10272
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target.h (struct target_ops) <to_insn_history_range>: Add
10276 argument.
10277 * target.c (target_insn_history_range): Add argument.
10278 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10279 argument.
10280 (record_btrace_insn_history_from): Update.
10281
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10283
10284 * target.h (struct target_ops) <to_insn_history_from>: Add
10285 argument.
10286 * target.c (target_insn_history_from): Add argument.
10287 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10288 argument.
10289
10290 2014-02-19 Tom Tromey <tromey@redhat.com>
10291
10292 * target.h (struct target_ops) <to_insn_history>: Add argument.
10293 * target.c (target_insn_history): Add argument.
10294 * record-btrace.c (record_btrace_insn_history): Add 'self'
10295 argument.
10296
10297 2014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target.h (struct target_ops) <to_goto_record>: Add argument.
10300 * target.c (target_goto_record): Add argument.
10301 * record-full.c (record_full_goto): Add 'self' argument.
10302 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10303
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10305
10306 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10307 * target.c (target_goto_record_end): Add argument.
10308 * record-full.c (record_full_goto_end): Add 'self' argument.
10309 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10310
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10312
10313 * target.h (struct target_ops) <to_goto_record_begin>: Add
10314 argument.
10315 * target.c (target_goto_record_begin): Add argument.
10316 * record-full.c (record_full_goto_begin): Add 'self' argument.
10317 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10318 argument.
10319
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10321
10322 * target.h (struct target_ops) <to_record_is_replaying>: Add
10323 argument.
10324 * target.c (target_record_is_replaying): Add argument.
10325 * record-full.c (record_full_is_replaying): Add 'self' argument.
10326 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10327 argument.
10328 (record_btrace_xfer_partial, record_btrace_store_registers)
10329 (record_btrace_prepare_to_store, record_btrace_resume)
10330 (record_btrace_wait, record_btrace_decr_pc_after_break)
10331 (record_btrace_find_new_threads, record_btrace_thread_alive):
10332 Update.
10333
10334 2014-02-19 Tom Tromey <tromey@redhat.com>
10335
10336 * target.h (struct target_ops) <to_delete_record>: Add argument.
10337 * target.c (target_delete_record): Add argument.
10338 * record-full.c (record_full_delete): Add 'self' argument.
10339
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10341
10342 * target.h (struct target_ops) <to_save_record>: Add argument.
10343 * target.c (target_save_record): Add argument.
10344 * record-full.c (record_full_save): Add 'self' argument.
10345 (record_full_save): Add 'self' argument.
10346
10347 2014-02-19 Tom Tromey <tromey@redhat.com>
10348
10349 * target.h (struct target_ops) <to_info_record>: Add argument.
10350 * target.c (target_info_record): Add argument.
10351 * record.c (info_record_command): Add argument.
10352 * record-full.c (record_full_info): Add 'self' argument.
10353 * record-btrace.c (record_btrace_info): Add 'self' argument.
10354
10355 2014-02-19 Tom Tromey <tromey@redhat.com>
10356
10357 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10358 * target.c (target_stop_recording): Add argument.
10359 * record.c (record_stop): Add argument.
10360 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10361 argument.
10362
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10364
10365 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10366 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10367 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10368 argument.
10369 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10370 (_initialize_amd64_linux_nat): Use it.
10371 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10372 (_initialize_i386_linux_nat): Use it.
10373
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10375
10376 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10377 * target.c (target_teardown_btrace): Add argument.
10378 * remote.c (remote_teardown_btrace): Add 'self' argument.
10379 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10380 argument.
10381 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10382 argument.
10383
10384 2014-02-19 Tom Tromey <tromey@redhat.com>
10385
10386 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10387 * target.c (target_disable_btrace): Add argument.
10388 * remote.c (remote_disable_btrace): Add 'self' argument.
10389 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10390 argument.
10391 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10392 argument.
10393
10394 2014-02-19 Tom Tromey <tromey@redhat.com>
10395
10396 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10397 * target.c (target_enable_btrace): Add argument.
10398 * remote.c (remote_enable_btrace): Add 'self' argument.
10399 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10400 argument.
10401 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10402 argument.
10403
10404 2014-02-19 Tom Tromey <tromey@redhat.com>
10405
10406 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10407 (target_can_use_agent): Add argument.
10408 * target.c (update_current_target): Update.
10409 * remote.c (remote_can_use_agent): Add 'self' argument.
10410 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10411
10412 2014-02-19 Tom Tromey <tromey@redhat.com>
10413
10414 * target.h (struct target_ops) <to_use_agent>: Add argument.
10415 (target_use_agent): Add argument.
10416 * target.c (update_current_target): Update.
10417 * remote.c (remote_use_agent): Add 'self' argument.
10418 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10419
10420 2014-02-19 Tom Tromey <tromey@redhat.com>
10421
10422 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10423 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10424 (target_traceframe_info): Add argument.
10425 * target.c (update_current_target): Update.
10426 * remote.c (remote_traceframe_info): Add 'self' argument.
10427 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10428
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * target.h (target_static_tracepoint_markers_by_strid): Add
10432 argument.
10433 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10434 'self' argument.
10435 * target.c (update_current_target): Update.
10436 * remote.c (struct target_ops)
10437 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10438 * linux-nat.c (struct target_ops)
10439 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10440
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10442
10443 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10444 Add argument.
10445 (target_static_tracepoint_marker_at): Add argument.
10446 * target.c (update_current_target): Update.
10447 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10448 argument.
10449
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10453 (target_set_permissions): Add argument.
10454 * target.c (update_current_target): Update.
10455 * remote.c (remote_set_permissions): Add 'self' argument.
10456 (remote_start_remote): Update.
10457
10458 2014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10461 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10462 (target_get_tib_address): Add argument.
10463 * target.c (update_current_target): Update.
10464 * remote.c (remote_get_tib_address): Add 'self' argument.
10465
10466 2014-02-19 Tom Tromey <tromey@redhat.com>
10467
10468 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10469 (target_set_trace_notes): Add argument.
10470 * target.c (update_current_target): Update.
10471 * remote.c (remote_set_trace_notes): Add 'self' argument.
10472
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10476 argument.
10477 (target_set_trace_buffer_size): Add argument.
10478 * target.c (update_current_target): Update.
10479 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10480
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10484 argument.
10485 (target_set_circular_trace_buffer): Add argument.
10486 * target.c (update_current_target): Update.
10487 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10488 argument.
10489
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10493 argument.
10494 (target_set_disconnected_tracing): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10497
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target.h (struct target_ops)
10501 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10502 (target_get_min_fast_tracepoint_insn_len): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10505 argument.
10506
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10510 argument.
10511 (target_get_raw_trace_data): Add argument.
10512 * target.c (update_current_target): Update.
10513 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10514
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10518 Add argument.
10519 (target_upload_trace_state_variables): Add argument.
10520 * target.c (update_current_target): Update.
10521 * remote.c (remote_upload_trace_state_variables): Add 'self'
10522 argument.
10523 (remote_start_remote): Update.
10524
10525 2014-02-19 Tom Tromey <tromey@redhat.com>
10526
10527 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10528 argument.
10529 (target_upload_tracepoints): Add argument.
10530 * target.c (update_current_target): Update.
10531 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10532 (remote_start_remote): Update.
10533
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10535
10536 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10537 (target_save_trace_data): Add argument.
10538 * target.c (update_current_target): Update.
10539 * remote.c (remote_save_trace_data): Add 'self' argument.
10540
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10542
10543 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10544 argument.
10545 * target.h (struct target_ops)
10546 <to_get_trace_state_variable_value>: Add argument.
10547 (target_get_trace_state_variable_value): Add argument.
10548 * target.c (update_current_target): Update.
10549 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10550 argument.
10551 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10552
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10554
10555 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10556 * target.h (struct target_ops) <to_trace_find>: Add argument.
10557 (target_trace_find): Add argument.
10558 * target.c (update_current_target): Update.
10559 * remote.c (remote_trace_find): Add 'self' argument.
10560 * ctf.c (ctf_trace_find): Add 'self' argument.
10561
10562 2014-02-19 Tom Tromey <tromey@redhat.com>
10563
10564 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10565 (target_trace_stop): Add argument.
10566 * target.c (update_current_target): Update.
10567 * remote.c (remote_trace_stop): Add 'self' argument.
10568
10569 2014-02-19 Tom Tromey <tromey@redhat.com>
10570
10571 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10572 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10573 argument.
10574 (target_get_tracepoint_status): Add argument.
10575 * target.c (update_current_target): Update.
10576 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10577
10578 2014-02-19 Tom Tromey <tromey@redhat.com>
10579
10580 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10581 * target.h (struct target_ops) <to_get_trace_status>: Add
10582 argument.
10583 (target_get_trace_status): Add argument.
10584 * target.c (update_current_target): Update.
10585 * remote.c (remote_get_trace_status): Add 'self' argument.
10586 (remote_start_remote, remote_can_download_tracepoint): Update.
10587 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10588
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10590
10591 * target.h (struct target_ops) <to_trace_start>: Add argument.
10592 (target_trace_start): Add argument.
10593 * target.c (update_current_target): Update.
10594 * remote.c (remote_trace_start): Add 'self' argument.
10595
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10597
10598 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10599 Add argument.
10600 (target_trace_set_readonly_regions): Add argument.
10601 * target.c (update_current_target): Update.
10602 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10603 argument.
10604
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10606
10607 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10608 argument.
10609 (target_disable_tracepoint): Add argument.
10610 * target.c (update_current_target): Update.
10611 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10612
10613 2014-02-19 Tom Tromey <tromey@redhat.com>
10614
10615 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10616 argument.
10617 (target_enable_tracepoint): Add argument.
10618 * target.c (update_current_target): Update.
10619 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10620
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10622
10623 * target.h (struct target_ops) <to_download_trace_state_variable>:
10624 Add argument.
10625 (target_download_trace_state_variable): Add argument.
10626 * target.c (update_current_target): Update.
10627 * remote.c (remote_download_trace_state_variable): Add 'self'
10628 argument.
10629
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10631
10632 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10633 argument.
10634 (target_can_download_tracepoint): Add argument.
10635 * target.c (update_current_target): Update.
10636 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10637
10638 2014-02-19 Tom Tromey <tromey@redhat.com>
10639
10640 * target.h (struct target_ops) <to_download_tracepoint>: Add
10641 argument.
10642 (target_download_tracepoint): Add argument.
10643 * target.c (update_current_target): Update.
10644 * remote.c (remote_download_tracepoint): Add 'self' argument.
10645
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10647
10648 * target.h (struct target_ops) <to_trace_init>: Add argument.
10649 (target_trace_init): Add argument.
10650 * target.c (update_current_target): Update.
10651 * remote.c (remote_trace_init): Add 'self' argument.
10652
10653 2014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10656 * target.c (target_fileio_readlink): Add argument.
10657 * remote.c (remote_hostio_readlink): Add 'self' argument.
10658 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10659
10660 2014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10663 * target.c (target_fileio_unlink): Add argument.
10664 * remote.c (remote_hostio_unlink): Add 'self' argument.
10665 (remote_file_delete): Update.
10666 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10667
10668 2014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10671 * target.c (target_fileio_close): Add argument.
10672 * remote.c (remote_hostio_close): Add 'self' argument.
10673 (remote_hostio_close_cleanup): Update.
10674 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10675 Update.
10676 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10677
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10681 * target.c (target_fileio_pread): Add argument.
10682 * remote.c (remote_hostio_pread): Add 'self' argument.
10683 (remote_bfd_iovec_pread, remote_file_get): Update.
10684 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10685
10686 2014-02-19 Tom Tromey <tromey@redhat.com>
10687
10688 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10689 * target.c (target_fileio_pwrite): Add argument.
10690 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10691 (remote_file_put): Update.
10692 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10693
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10697 * target.c (target_fileio_open): Add argument.
10698 * remote.c (remote_hostio_open): Add 'self' argument.
10699 (remote_bfd_iovec_open): Add 'self' argument.
10700 (remote_file_put): Add 'self' argument.
10701 (remote_file_get): Add 'self' argument.
10702 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10703
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10705
10706 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10707 Add argument.
10708 (target_can_run_breakpoint_commands): Add argument.
10709 * target.c (update_current_target): Update.
10710 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10711 argument.
10712 (remote_insert_breakpoint): Add 'self' argument.
10713 (remote_insert_hw_breakpoint): Add 'self' argument.
10714 (remote_can_run_breakpoint_commands): Add 'self' argument.
10715
10716 2014-02-19 Tom Tromey <tromey@redhat.com>
10717
10718 * target.h (struct target_ops)
10719 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10720 (target_supports_evaluation_of_breakpoint_conditions): Add
10721 argument.
10722 * target.c (update_current_target): Update.
10723 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10724 argument.
10725 (remote_insert_breakpoint): Add 'self' argument.
10726 (remote_insert_hw_breakpoint): Add 'self' argument.
10727 (remote_supports_cond_breakpoints): Add 'self' argument.
10728
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10730
10731 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10732 argument.
10733 (target_supports_string_tracing): Add argument.
10734 * target.c (update_current_target): Update.
10735 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10736
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10738
10739 * target.h (struct target_ops)
10740 <to_supports_disable_randomization>: Add argument.
10741 * target.c (find_default_supports_disable_randomization): Add
10742 argument.
10743 (target_supports_disable_randomization): Add argument.
10744 (find_default_supports_disable_randomization): Add 'self'
10745 argument.
10746 * remote.c (extended_remote_supports_disable_randomization): Add
10747 'self' argument.
10748 (remote_supports_disable_randomization): Add 'self' argument.
10749 (extended_remote_create_inferior): Update.
10750 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10751 'self' argument.
10752
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10754
10755 * target.h (struct target_ops)
10756 <to_supports_enable_disable_tracepoint>: Add argument.
10757 (target_supports_enable_disable_tracepoint): Add argument.
10758 * target.c (update_current_target): Update.
10759 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10760 argument.
10761
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10763
10764 * target.h (struct target_ops) <to_supports_multi_process>: Add
10765 argument.
10766 (target_supports_multi_process): Add argument.
10767 * target.c (update_current_target): Update.
10768 * remote.c (remote_supports_multi_process): Add 'self' argument.
10769 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10770 argument.
10771 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10772 argument.
10773
10774 2014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target.h (struct target_ops) <to_execution_direction>: Add
10777 argument.
10778 (target_execution_direction): Add argument.
10779 * target.c (default_execution_direction): Add 'self' argument.
10780 * record-full.c (record_full_execution_direction): Add 'self'
10781 argument.
10782
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10784
10785 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10786 argument.
10787 (target_can_execute_reverse): Add argument.
10788 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10789 * record-full.c (record_full_can_execute_reverse): Add 'self'
10790 argument.
10791 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10792 argument.
10793
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10795
10796 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10797 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10798 argument.
10799 (target_get_ada_task_ptid): Add argument.
10800 * target.c (update_current_target): Update.
10801 (default_get_ada_task_ptid): Add 'self' argument.
10802 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10803 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10804 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10805 argument.
10806 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10807 argument.
10808 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10809 argument.
10810 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10811 argument.
10812 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10813 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10814 argument.
10815
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10819 (target_goto_bookmark): Add argument.
10820 * target.c (dummy_goto_bookmark): Add 'self' argument.
10821 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10822
10823 2014-02-19 Tom Tromey <tromey@redhat.com>
10824
10825 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10826 (target_get_bookmark): Add argument.
10827 * target.c (dummy_get_bookmark): Add 'self' argument.
10828 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10829
10830 2014-02-19 Tom Tromey <tromey@redhat.com>
10831
10832 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10833 argument.
10834 (target_make_corefile_notes): Add argument.
10835 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10836 * procfs.c (procfs_make_note_section): Add 'self' argument.
10837 (procfs_make_note_section): Add 'self' argument.
10838 (procfs_make_note_section): Add 'self' argument.
10839 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10840 argument.
10841 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10842 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10843 * exec.c (exec_make_note_section): Add 'self' argument.
10844 (exec_make_note_section): Add 'self' argument.
10845
10846 2014-02-19 Tom Tromey <tromey@redhat.com>
10847
10848 * target.h (struct target_ops) <to_find_memory_regions>: Add
10849 argument.
10850 (target_find_memory_regions): Add argument.
10851 * target.c (dummy_find_memory_regions): Add 'self' argument.
10852 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10853 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10854 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10855 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10856 * exec. (exec_do_find_memory_regions): New global.
10857 (exec_set_find_memory_regions): Rewrite.
10858 (exec_find_memory_regions): New function.
10859 (init_exec_ops): Use exec_find_memory_regions.
10860
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * target.h (struct target_ops) <to_supports_non_stop>: Add
10864 argument.
10865 * target.c (find_default_supports_non_stop): Add argument.
10866 (target_supports_non_stop): Add argument.
10867 (find_default_supports_non_stop): Add 'self' argument.
10868 * remote.c (remote_supports_non_stop): Add 'self' argument.
10869 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10870
10871 2014-02-19 Tom Tromey <tromey@redhat.com>
10872
10873 * target.h (struct target_ops) <to_log_command>: Add argument.
10874 (target_log_command): Add argument.
10875 * serial.h (serial_log_command): Add 'self' argument.
10876 * serial.c (serial_log_command): Add 'self' argument.
10877
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10881 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10882 argument.
10883 (target_pid_to_exec_file): Add argument.
10884 * target.c (debug_to_pid_to_exec_file): Add argument.
10885 (update_current_target): Update.
10886 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10887 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10888 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10889 (linux_handle_extended_wait): Update.
10890 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10891 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10892 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10893 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10894
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10896
10897 * target.h (struct target_ops) <to_rcmd>: Add argument.
10898 (target_rcmd): Add argument.
10899 * target.c (debug_to_rcmd): Add argument.
10900 (update_current_target, do_monitor_command): Update.
10901 * remote.c (remote_rcmd): Add 'self' argument.
10902 * monitor.c (monitor_rcmd): Add 'self' argument.
10903
10904 2014-02-19 Tom Tromey <tromey@redhat.com>
10905
10906 * windows-nat.c (windows_stop): Add 'self' argument.
10907 * target.h (struct target_ops) <to_stop>: Add argument.
10908 * target.c (target_stop): Add argument.
10909 (debug_to_stop): Add argument.
10910 (update_current_target): Update.
10911 * remote.c (remote_stop): Add 'self' argument.
10912 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10913 (gdbsim_cntrl_c): Update.
10914 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10915 * procfs.c (procfs_stop): Add 'self' argument.
10916 * nto-procfs.c (procfs_stop): Add 'self' argument.
10917 * monitor.c (monitor_stop): Add 'self' argument.
10918 (monitor_open): Update.
10919 * linux-nat.c (linux_nat_stop): Add argument.
10920 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10921 * gnu-nat.c (gnu_stop): Add 'self' argument.
10922 * darwin-nat.c (darwin_stop): Add 'self' argument.
10923
10924 2014-02-19 Tom Tromey <tromey@redhat.com>
10925
10926 * target.h (struct target_ops) <to_thread_name>: Add argument.
10927 * target.c (target_thread_name): Add argument.
10928 (update_current_target): Update.
10929 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10930
10931 2014-02-19 Tom Tromey <tromey@redhat.com>
10932
10933 * target.h (struct target_ops) <to_extra_thread_info>: Add
10934 argument.
10935 (target_extra_thread_info): Add argument.
10936 * target.c (update_current_target): Update.
10937 * remote.c (remote_threads_extra_info): Add 'self' argument.
10938 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10939 argument.
10940 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10941 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10942 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10943 argument.
10944 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10945 argument.
10946 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10947 argument.
10948 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10949 argument.
10950
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target.h (struct target_ops) <to_program_signals>: Add argument.
10954 * target.c (target_program_signals): Add argument.
10955 * remote.c (remote_program_signals): Add 'self' argument.
10956
10957 2014-02-19 Tom Tromey <tromey@redhat.com>
10958
10959 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10960 * target.c (target_pass_signals): Add argument.
10961 * remote.c (remote_pass_signals): Add 'self' argument.
10962 (remote_start_remote): Update.
10963 * procfs.c (procfs_pass_signals): Add 'self' argument.
10964 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10965 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10966 (linux_nat_create_inferior, linux_nat_attach): Update.
10967
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10969
10970 * windows-nat.c (windows_can_run): Add 'self' argument.
10971 * target.h (struct target_ops) <to_can_run>: Add argument.
10972 (target_can_run): Add argument.
10973 * target.c (debug_to_can_run): Add argument.
10974 (update_current_target): Update.
10975 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10976 * inf-child.c (inf_child_can_run): Add 'self' argument.
10977 * go32-nat.c (go32_can_run): Add 'self' argument.
10978
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10980
10981 * target.h (struct target_ops) <to_has_exited>: Add argument.
10982 (target_has_exited): Add argument.
10983 * target.c (debug_to_has_exited): Add argument.
10984 (update_current_target): Update.
10985
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10989 argument.
10990 (target_set_syscall_catchpoint): Add argument.
10991 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10992 argument.
10993 * target.c (update_current_target): Update.
10994
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10996
10997 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10998 argument.
10999 (target_remove_exec_catchpoint): Add argument.
11000 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11001 (update_current_target): Update.
11002 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11003 argument.
11004
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11006
11007 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11008 argument.
11009 (target_insert_exec_catchpoint): Add argument.
11010 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11011 (update_current_target): Update.
11012 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11013 argument.
11014
11015 2014-02-19 Tom Tromey <tromey@redhat.com>
11016
11017 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11018 argument.
11019 (target_remove_vfork_catchpoint): Add argument.
11020 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11021 (update_current_target): Update.
11022 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11023 argument.
11024
11025 2014-02-19 Tom Tromey <tromey@redhat.com>
11026
11027 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11028 argument.
11029 (target_insert_vfork_catchpoint): Add argument.
11030 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11031 (update_current_target): Update.
11032 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11033 argument.
11034
11035 2014-02-19 Tom Tromey <tromey@redhat.com>
11036
11037 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11038 argument.
11039 (target_remove_fork_catchpoint): Add argument.
11040 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11041 (update_current_target): Update.
11042 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11043 argument.
11044
11045 2014-02-19 Tom Tromey <tromey@redhat.com>
11046
11047 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11048 argument.
11049 (target_insert_fork_catchpoint): Add argument.
11050 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11051 (update_current_target): Update.
11052 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11053 argument.
11054
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11058 argument.
11059 (target_post_startup_inferior): Add argument.
11060 * target.c (debug_to_post_startup_inferior): Add argument.
11061 (update_current_target): Update.
11062 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11063 argument.
11064 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11065 argument.
11066 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11067 argument.
11068 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11069 argument.
11070 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11071 'self' argument.
11072 (super_post_startup_inferior): Likewise.
11073 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11074 'self' argument.
11075 (super_post_startup_inferior): Likewise.
11076 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11077 Add 'self' argument.
11078 (super_post_startup_inferior): Likewise.
11079
11080 2014-02-19 Tom Tromey <tromey@redhat.com>
11081
11082 * target.h (struct target_ops) <to_load>: Add argument.
11083 * target.c (target_load): Add argument.
11084 (debug_to_load): Add argument.
11085 (update_current_target): Update.
11086 * remote.c (remote_load): Add 'self' argument.
11087 * remote-sim.c (gdbsim_load): Add 'self' argument.
11088 * remote-mips.c (mips_load): Add 'self' argument.
11089 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11090 * monitor.c (monitor_load): Add 'self' argument.
11091 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11092
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11096 (target_terminal_info): Add argument.
11097 * target.c (debug_to_terminal_info): Add argument.
11098 (default_terminal_info): Likewise.
11099 * inflow.c (child_terminal_info): Add 'self' argument.
11100 * inferior.h (child_terminal_info): Add 'self' argument.
11101 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11102
11103 2014-02-19 Tom Tromey <tromey@redhat.com>
11104
11105 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11106 argument.
11107 (target_terminal_save_ours): Add argument.
11108 * target.c (debug_to_terminal_save_ours): Add argument.
11109 (update_current_target): Update.
11110 * inflow.c (terminal_save_ours): Add 'self' argument.
11111 * inferior.h (terminal_save_ours): Add 'self' argument.
11112
11113 2014-02-19 Tom Tromey <tromey@redhat.com>
11114
11115 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11116 (target_terminal_ours): Add argument.
11117 * target.c (debug_to_terminal_ours): Add argument.
11118 (update_current_target): Update.
11119 * remote.c (remote_terminal_ours): Add 'self' argument.
11120 (remote_close): Update.
11121 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11122 * inflow.c (terminal_ours): Add 'self' argument.
11123 * inferior.h (terminal_ours): Add 'self' argument.
11124 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11125
11126 2014-02-19 Pedro Alves <palves@redhat.com>
11127 Tom Tromey <tromey@redhat.com>
11128
11129 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11130 argument.
11131 (target_terminal_ours_for_output): Add argument.
11132 * target.c (debug_to_terminal_ours_for_output): Add argument.
11133 (update_current_target): Update.
11134 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11135 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11136 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11137
11138 2014-02-19 Tom Tromey <tromey@redhat.com>
11139
11140 * target.h (struct target_ops) <to_terminal_inferior>: Add
11141 argument.
11142 * target.c (target_terminal_inferior): Add argument.
11143 (update_current_target): Update.
11144 * remote.c (remote_terminal_inferior): Add 'self' argument.
11145 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11146 * inflow.c (terminal_inferior): Add 'self' argument.
11147 * inferior.h (terminal_inferior): Add 'self' argument.
11148 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11149 (go32_terminal_inferior): Add 'self' argument.
11150
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11152
11153 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11154 (target_terminal_init): Add argument.
11155 * target.c (debug_to_terminal_init): Add argument.
11156 (update_current_target): Update.
11157 * inflow.c (terminal_init_inferior): Add 'self' argument.
11158 * inferior.h (terminal_init_inferior): Add 'self' argument.
11159 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11160 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11161
11162 2014-02-19 Tom Tromey <tromey@redhat.com>
11163
11164 * target.h (struct target_ops)
11165 <to_can_accel_watchpoint_condition>: Add argument.
11166 (target_can_accel_watchpoint_condition): Add argument.
11167 * target.c (debug_to_can_accel_watchpoint_condition): Add
11168 argument.
11169 (update_current_target): Update.
11170 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11171 'self' argument.
11172
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11174
11175 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11176 Add argument.
11177 (target_region_ok_for_hw_watchpoint): Add argument.
11178 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11179 (default_region_ok_for_hw_watchpoint): Add argument.
11180 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11181 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11182 argument.
11183 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11184 argument.
11185 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11186 argument.
11187 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11188 'self' argument.
11189 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11190 'self' argument.
11191 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11192 'self' argument.
11193 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11194 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11195 'self' argument.
11196 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11197 Add 'self' argument.
11198
11199 2014-02-19 Tom Tromey <tromey@redhat.com>
11200
11201 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11202 argument.
11203 (target_insert_watchpoint): Add argument.
11204 * target.c (debug_to_insert_watchpoint): Add argument.
11205 (update_current_target): Update.
11206 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11207 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11208 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11209 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11210 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11211 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11212 argument.
11213 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11214 (procfs_insert_hw_watchpoint): Add 'self' argument.
11215 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11216 argument.
11217 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11218 argument.
11219 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11220 argument.
11221 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11222 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11223 argument.
11224 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11225 'self' argument.
11226
11227 2014-02-19 Tom Tromey <tromey@redhat.com>
11228
11229 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11230 argument.
11231 (target_remove_watchpoint): Add argument.
11232 * target.c (debug_to_remove_watchpoint): Add argument.
11233 (update_current_target): Update.
11234 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11235 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11236 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11237 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11238 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11239 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11240 argument.
11241 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11242 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11243 argument.
11244 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11245 argument.
11246 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11247 argument.
11248 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11249 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11250 argument.
11251 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11252 'self' argument.
11253
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11257 argument.
11258 (target_remove_hw_breakpoint): Add argument.
11259 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11260 (update_current_target): Update.
11261 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11262 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11263 argument.
11264 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11265 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11266 argument.
11267 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11268 'self' argument.
11269
11270 2014-02-19 Tom Tromey <tromey@redhat.com>
11271
11272 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11273 argument.
11274 (target_insert_hw_breakpoint): Add argument.
11275 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11276 (update_current_target): Update.
11277 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11278 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11279 argument.
11280 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11281 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11282 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11283 argument.
11284 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11285 'self' argument.
11286
11287 2014-02-19 Tom Tromey <tromey@redhat.com>
11288
11289 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11290 argument.
11291 (target_can_use_hardware_watchpoint): Add argument.
11292 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11293 (update_current_target): Update.
11294 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11295 argument.
11296 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11297 argument.
11298 * remote.c (remote_check_watch_resources): Add 'self' argument.
11299 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11300 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11301 argument.
11302 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11303 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11304 argument.
11305 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11306 argument.
11307 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11308 argument.
11309 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11310 argument.
11311 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11312 argument.
11313 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11314 argument.
11315 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11316 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11317 argument.
11318 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11319 'self' argument.
11320
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target.h (struct target_ops) <to_post_attach>: Add argument.
11324 (target_post_attach): Add argument.
11325 * target.c (debug_to_post_attach): Add argument.
11326 (update_current_target): Update.
11327 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11328 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11329 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11330 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11331 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11332
11333 2014-02-19 Tom Tromey <tromey@redhat.com>
11334
11335 * windows-nat.c (windows_close): Add 'self' argument.
11336 * tracepoint.c (tfile_close): Add 'self' argument.
11337 * target.h (struct target_ops) <to_close>: Add argument.
11338 * target.c (target_close): Add argument.
11339 (update_current_target): Update.
11340 * remote.c (remote_close): Add 'self' argument.
11341 * remote-sim.c (gdbsim_close): Add 'self' argument.
11342 * remote-mips.c (mips_close): Add 'self' argument.
11343 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11344 * record-full.c (record_full_close): Add 'self' argument.
11345 * record-btrace.c (record_btrace_close): Add 'self' argument.
11346 * monitor.h (monitor_close): Add 'self' argument.
11347 * monitor.c (monitor_close): Add 'self' argument.
11348 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11349 * linux-nat.c (linux_nat_close): Add argument.
11350 * go32-nat.c (go32_close): Add 'self' argument.
11351 * exec.c (exec_close_1): Add 'self' argument.
11352 * ctf.c (ctf_close): Add 'self' argument.
11353 * corelow.c (core_close): Add 'self' argument.
11354 (core_close_cleanup): Update.
11355 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11356 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11357
11358 2014-02-19 Tom Tromey <tromey@redhat.com>
11359
11360 * remote.c (remote_load): New function.
11361 (init_remote_ops): Use it.
11362
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11366 argument.
11367 * common/linux-btrace.h (linux_supports_btrace): Update.
11368 * remote.c (remote_supports_btrace): Add "self" argument.
11369 * target-delegates.c: Rebuild.
11370 * target.c (target_supports_btrace): Remove.
11371 * target.h (struct target_ops) <to_supports_btrace>: Add
11372 target_ops argument.
11373 (target_supports_btrace): New define.
11374
11375 2014-02-19 Tom Tromey <tromey@redhat.com>
11376
11377 * record-full.c (record_full_beneath_to_resume_ops)
11378 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11379 (record_full_beneath_to_wait)
11380 (record_full_beneath_to_store_registers_ops)
11381 (record_full_beneath_to_store_registers)
11382 (record_full_beneath_to_xfer_partial_ops)
11383 (record_full_beneath_to_xfer_partial)
11384 (record_full_beneath_to_insert_breakpoint_ops)
11385 (record_full_beneath_to_insert_breakpoint)
11386 (record_full_beneath_to_remove_breakpoint_ops)
11387 (record_full_beneath_to_remove_breakpoint)
11388 (record_full_beneath_to_stopped_by_watchpoint)
11389 (record_full_beneath_to_stopped_data_address)
11390 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11391 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11392 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11393 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11394 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11395 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11396 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11397 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11398 (record_full_resume, record_full_wait_1)
11399 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11400 (record_full_store_registers, record_full_xfer_partial)
11401 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11402 (record_full_async, record_full_core_xfer_partial): Use target
11403 delegation.
11404 * target-delegates.c: Rebuild.
11405 * target.c (current_xfer_partial): Remove.
11406 (update_current_target): Do not INHERIT or de_fault
11407 to_insert_breakpoint, to_remove_breakpoint,
11408 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11409 to_is_async_p, to_async. Do not set to_xfer_partial field.
11410 (default_xfer_partial): Simplify.
11411 (current_xfer_partial): Remove.
11412 (target_wait, target_resume): Simplify.
11413 (find_default_can_async_p, find_default_is_async_p): Update.
11414 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11415 to_xfer_partial, to_stopped_by_watchpoint,
11416 to_stopped_data_address.
11417 (target_store_registers): Simplify.
11418 (forward_target_remove_breakpoint)
11419 (forward_target_insert_breakpoint): Remove.
11420 (target_remove_breakpoint, target_insert_breakpoint)
11421 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11422 * target.h (struct target_ops) <to_resume, to_wait,
11423 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11424 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11425 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11426 markup.
11427 (forward_target_remove_breakpoint)
11428 (forward_target_insert_breakpoint): Remove.
11429 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11430 directly.
11431 (record_btrace_insert_breakpoint): Delegate directly.
11432
11433 2014-02-19 Tom Tromey <tromey@redhat.com>
11434
11435 PR build/7701:
11436 * target-delegates.c: New file.
11437 * target.c: Include target-delegates.c.
11438 (init_dummy_target): Call install_dummy_methods.
11439 (complete_target_initialization): Call install_delegators.
11440 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11441 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11442 * make-target-delegates: New file.
11443
11444 2014-02-19 Tom Tromey <tromey@redhat.com>
11445
11446 * record.c (find_record_target): Use find_target_at.
11447 * target.c (find_target_at): New function.
11448 * target.h (find_target_at): Declare.
11449
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11453 Add 'ops' argument.
11454 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11455 'ops' argument.
11456 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11457 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11458 'ops' argument.
11459 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11460 argument.
11461 * linux-nat.c (save_sigtrap): Update.
11462 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11463 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11464 (linux_nat_close): Update.
11465 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11466 argument.
11467 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11468 argument.
11469 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11470 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11471 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11472 (tmp_to_async): Add 'ops' argument.
11473 (record_full_stopped_by_watchpoint, record_full_async)
11474 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11475 argument.
11476 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11477 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11478 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11479 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11480 (remote_is_async_p, remote_async): Add 'ops' argument.
11481 (remote_stopped_data_address): Update.
11482 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11483 * target.c (update_current_target)
11484 (find_default_can_async_p, find_default_is_async_p): Update.
11485 (init_dummy_target): Update.
11486 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11487 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11488 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11489 (target_can_async_p, target_is_async_p, target_async)
11490 (target_stopped_by_watchpoint): Update.
11491
11492 2014-02-19 Yao Qi <yao@codesourcery.com>
11493
11494 PR gdb/16220
11495 * gdbarch.sh: Remove startup_gdbarch.
11496 * gdbarch.c: Regenerated.
11497 * gdbarch.h: Likewise.
11498
11499 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11500
11501 * rl78-tdep.c (rl78_g10_register_name): New function.
11502 (rl78_return_value): Add g10 support.
11503 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11504 g10.
11505
11506 2014-02-17 Doug Evans <xdje42@gmail.com>
11507
11508 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11509 (SUBDIR_GUILE_SRCS): Ditto.
11510 (scm-gsmob.o): Ditto.
11511
11512 2014-02-17 Yao Qi <yao@codesourcery.com>
11513
11514 * gnu-nat.c (ILL_RPC): Declare defined function.
11515
11516 2014-02-17 Yao Qi <yao@codesourcery.com>
11517
11518 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11519 mach_msg_type_number_t.
11520 (gnu_write_inferior): Likewise.
11521
11522 2014-02-17 Yao Qi <yao@codesourcery.com>
11523
11524 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11525 in format string.
11526 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11527 (inf_validate_procs, inf_signal): Likewise.
11528 (S_exception_raise_request): Likewise.
11529 (do_mach_notify_dead_name): Likewise.
11530 (steal_exc_port): Likewise.
11531 (gnu_read_inferior): Change 'copy_count''s type to
11532 mach_msg_type_number_t.
11533 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11534 format string.
11535
11536 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11537
11538 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11539 flag. Adjust all users; in particular...
11540 (gnu_wait): ..., don't decrement its value in here...
11541 (gnu_create_inferior): ..., and instead set the flag in here,
11542 around the startup_inferior call, and call that one with
11543 START_INFERIOR_TRAPS_EXPECTED.
11544
11545 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11546 (ILL_RPC): ... new macro.
11547 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11548 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11549 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11550 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11551 functions with ILL_RPC macro.
11552 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11553 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11554 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11555 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11556 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11557 (S_proc_getlogin_reply, S_proc_getsid_reply)
11558 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11559 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11560 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11561 (S_proc_getnports_reply, S_proc_is_important_reply)
11562 (S_proc_get_code_reply): New stub functions, generated with
11563 ILL_RPC macro.
11564
11565 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11566 collected the type check structures.
11567
11568 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11569
11570 2014-02-14 Doug Evans <dje@google.com>
11571
11572 * target.c (target_write_partial): Fix result type.
11573
11574 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11575
11576 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11577 the proper offsets to access fpregset_t.
11578
11579 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11580
11581 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11582 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11583 * h8300-tdep.c (setmachinelist): Remove global.
11584 * hppa-tdep.c (hppa_sigtramp): Remove global.
11585 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11586 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11587 * ravenscar-thread.c (update_target_observer): Remove global.
11588 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11589
11590 2014-02-12 Tom Tromey <tromey@redhat.com>
11591
11592 * common/rsp-low.c: Update comments.
11593 * common/rsp-low.h: Update comments.
11594
11595 2014-02-12 Tom Tromey <tromey@redhat.com>
11596
11597 * common/rsp-low.c (convert_ascii_to_int): Remove.
11598 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11599
11600 2014-02-12 Tom Tromey <tromey@redhat.com>
11601
11602 * common/rsp-low.h (unhexify): Don't declare.
11603 * common/rsp-low.c (unhexify): Remove.
11604
11605 2014-02-12 Tom Tromey <tromey@redhat.com>
11606
11607 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11608 * common/rsp-low.c (convert_int_to_ascii): Remove.
11609
11610 2014-02-12 Tom Tromey <tromey@redhat.com>
11611
11612 * common/rsp-low.h (hexify): Don't declare.
11613 * common/rsp-low.c (hexify): Remove.
11614
11615 2014-02-12 Tom Tromey <tromey@redhat.com>
11616
11617 * common/rsp-low.c (hexify): Never take strlen of argument.
11618
11619 2014-02-12 Tom Tromey <tromey@redhat.com>
11620
11621 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11622 * remote.c (extended_remote_run, remote_rcmd)
11623 (remote_download_trace_state_variable, remote_save_trace_data)
11624 (remote_set_trace_notes): Update.
11625 * tracepoint.c (encode_source_string, tfile_write_status)
11626 (tfile_write_uploaded_tsv): Update.
11627
11628 2014-02-12 Tom Tromey <tromey@redhat.com>
11629
11630 * tracepoint.c: Include rsp-low.h.
11631 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11632 * remote.c: Include rsp-low.h.
11633 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11634 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11635 (remote_unescape_input): Move to common/rsp-low.c.
11636 * common/rsp-low.h: New file.
11637 * common/rsp-low.c: New file.
11638 * Makefile.in (SFILES): Add common/rsp-low.c.
11639 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11640 (COMMON_OBS): Add rsp-low.o.
11641 (rsp-low.o): New target.
11642
11643 2014-02-12 Tom Tromey <tromey@redhat.com>
11644
11645 * utils.h: Include print-utils.h.
11646 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11647 (int_string, core_addr_to_string, core_addr_to_string_nz)
11648 (hex_string, hex_string_custom): Don't declare.
11649 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11650 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11651 (hex_string_custom, int_string, core_addr_to_string)
11652 (core_addr_to_string_nz, host_address_to_string): Move to
11653 common/print-utils.c.
11654 * common/print-utils.h: New file.
11655 * common/print-utils.c: New file
11656 * Makefile.in (SFILES): Add common/print-utils.c.
11657 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11658 (COMMON_OBS): Add print-utils.o.
11659 (print-utils.o): New target.
11660
11661 2014-02-12 Tom Tromey <tromey@redhat.com>
11662
11663 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11664
11665 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11666
11667 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11668
11669 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11670
11671 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11672 if a PT_IO ptrace request returns sucessfully but indicates that 0
11673 bytes were transferred.
11674
11675 2014-02-12 Pedro Alves <palves@redhat.com>
11676 Kevin Buettner <kevinb@redhat.com>
11677
11678 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11679 TYPE_INSTANCE_FLAG_CODE_SPACE.
11680
11681 2014-02-12 Pedro Alves <palves@redhat.com>
11682
11683 * h8300-tdep.c (pseudo_from_raw_register)
11684 (raw_from_pseudo_register): New functions.
11685 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11686 them.
11687
11688 2014-02-12 Pedro Alves <palves@redhat.com>
11689
11690 * h8300-tdep.c (h8300_register_sim_regno): New function.
11691 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11692 gdbarch_register_sim_regno hook.
11693
11694 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11695
11696 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11697
11698 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11699
11700 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11701
11702 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11703
11704 * obsd-tdep.h (obsd_init_abi): New prototype.
11705 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11706 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11707 (obsd_init_abi): New functions.
11708 * i386obsd-tdep.c: Include "obsd-tdep.h".
11709 (i386obsd_init_abi): Call obsd_init_abi.
11710 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11711 (amd64obsd_init_abi): Call obsd_init_abi.
11712 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11713 obsd-tdep.c to gdb_target_obs.
11714
11715 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11716
11717 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11718 double float arguments to 16-byte in the argument slots.
11719
11720 2014-02-11 Doug Evans <xdje42@gmail.com>
11721
11722 * configure.ac: Don't crash if pkg-config is not found and guile
11723 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11724 in guile checks.
11725 * configure: Regenerate.
11726
11727 2014-02-11 Yao Qi <yao@codesourcery.com>
11728
11729 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11730 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11731 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11732 * gnu-nat.c (gnu_xfer_memory): Likewise.
11733 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11734 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11735 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11736 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11737
11738 2014-02-11 Yao Qi <yao@codesourcery.com>
11739
11740 * target.h (enum target_xfer_error): Rename to ...
11741 (enum target_xfer_status): ... it. New. All users updated.
11742 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11743 New.
11744 (TARGET_XFER_STATUS_ERROR_P): New macro.
11745 (target_xfer_error_to_string): Remove declaration.
11746 (target_xfer_status_to_string): Declare.
11747 (target_xfer_partial_ftype): Adjust it.
11748 (struct target_ops) <to_xfer_partial>: Return
11749 target_xfer_status. Add argument xfered_len. Update
11750 comments.
11751 * target.c (target_xfer_error_to_string): Rename to ...
11752 (target_xfer_status_to_string): ... it. New. All callers
11753 updated.
11754 (target_read_live_memory): Likewise. Call target_xfer_partial
11755 instead of target_read.
11756 (memory_xfer_live_readonly_partial): Return
11757 target_xfer_status. Add argument xfered_len.
11758 (raw_memory_xfer_partial): Likewise.
11759 (memory_xfer_partial_1): Likewise.
11760 (memory_xfer_partial): Likewise.
11761 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11762 properly. Update debug message.
11763 (default_xfer_partial, current_xfer_partial): Likewise.
11764 (target_write_partial): Likewise.
11765 (target_read_partial): Likewise. All callers updated.
11766 (read_whatever_is_readable): Likewise.
11767 (target_write_with_progress): Likewise.
11768 (target_read_alloc_1): Likewise.
11769
11770 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11771 * auxv.c (procfs_xfer_auxv): Likewise.
11772 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11773 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11774 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11775 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11776 * corefile.c (read_memory): Adjust.
11777 * corelow.c (core_xfer_partial): Likewise.
11778 * ctf.c (ctf_xfer_partial): Likewise.
11779 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11780 updated.
11781 (darwin_xfer_partial): Likewise.
11782 * exec.c (section_table_xfer_memory_partial): Likewise. All
11783 callers updated.
11784 (exec_xfer_partial): Likewise.
11785 * exec.h (section_table_xfer_memory_partial): Update
11786 declaration.
11787 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11788 negative.
11789 (gnu_xfer_partial): Likewise.
11790 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11791 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11792 (ia64_hpux_xfer_solib_got): Likewise.
11793 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11794 type of 'partial_len' to ULONGEST.
11795 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11796 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11797 (linux_nat_xfer_partial): Likewise.
11798 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11799 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11800 * monitor.c (monitor_xfer_memory): Likewise.
11801 (monitor_xfer_partial): Likewise.
11802 * procfs.c (procfs_xfer_partial): Likewise.
11803 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11804 * record-full.c (record_full_xfer_partial): Likewise.
11805 (record_full_core_xfer_partial): Likewise.
11806 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11807 (gdbsim_xfer_partial): Likewise.
11808 * remote.c (remote_write_bytes_aux): Likewise. All callers
11809 updated.
11810 (remote_write_bytes, remote_read_bytes): Likewise. All
11811 callers updated.
11812 (remote_flash_erase): Likewise. All callers updated.
11813 (remote_write_qxfer): Likewise. All callers updated.
11814 (remote_read_qxfer): Likewise. All callers updated.
11815 (remote_xfer_partial): Likewise.
11816 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11817 (rs6000_xfer_shared_libraries): Likewise.
11818 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11819 (sol_thread_xfer_partial): Likewise.
11820 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11821 (sparc_xfer_partial): Likewise.
11822 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11823 updated.
11824 (spu_xfer_partial): Likewise.
11825 * spu-multiarch.c (spu_xfer_partial): Likewise.
11826 * tracepoint.c (tfile_xfer_partial): Likewise.
11827 * windows-nat.c (windows_xfer_memory): Likewise.
11828 (windows_xfer_shared_libraries): Likewise.
11829 (windows_xfer_partial): Likewise.
11830 * valprint.c: Replace 'target_xfer_error' with
11831 'target_xfer_status' in comments.
11832
11833 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11834
11835 Checked in by Joel Brobecker <brobecker@adacore.com>.
11836 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11837
11838 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11839
11840 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11841 function parameters.
11842
11843 2014-02-10 Will Newton <will.newton@linaro.org>
11844
11845 * elfread.c (elf_rel_plt_read): Look for a .got section if
11846 looking up .got.plt fails.
11847 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11848 on address passed to elf_gnu_ifunc_record_cache.
11849 (elf_gnu_ifunc_resolve_addr): Likewise.
11850 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11851
11852 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11853
11854 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11855 (X_RETTURN): New macro.
11856 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11857
11858 * sparc64-tdep.c (sparc64_init_abi): Hook
11859 sparc_in_function_epilogue_p.
11860
11861 2014-02-10 Gary Benson <gbenson@redhat.com>
11862
11863 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11864 Rename name_matcher to symbol_matcher.
11865
11866 2014-02-10 Gary Benson <gbenson@redhat.com>
11867
11868 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11869 Use expand_symtabs_file_matcher_ftype and
11870 expand_symtabs_symbol_matcher_ftype.
11871
11872 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11873
11874 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11875 (struct ada_symbol_cache): New.
11876 (ada_free_symbol_cache): Forward declare.
11877 (struct ada_pspace_data): New.
11878 (ada_pspace_data_handle): New static global.
11879 (get_ada_pspace_data, ada_pspace_data_cleanup)
11880 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11881 (cache_space, cache): Delete, now folded inside struct
11882 ada_pspace_data.
11883 (ada_get_symbol_cache): New function.
11884 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11885 implementation.
11886 (_initialize_ada_language): Remove initialization of cache_space.
11887 Move call to observer_attach_inferior_exit up, grouping it
11888 with the other observer registrations inside this function.
11889 Rename command to be more general. Add call to
11890 register_program_space_data_with_cleanup.
11891
11892 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11893
11894 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11895 ada_new_objfile_observer.
11896 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11897 (_initialize_tasks): Update uses of ada_new_objfile_observer
11898 and ada_tasks_normal_stop_observer.
11899
11900 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11901
11902 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11903 returned by the 'Length attribute to integer.
11904
11905 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11906
11907 * ada-lang.c (_initialize_ada_language): Initialize
11908 cache_space obstack.
11909
11910 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11911
11912 * ada-lang.c (HASH_SIZE): New macro.
11913 (struct cache_entry): New type.
11914 (cache_space, cache): New static globals.
11915 (ada_clear_symbol_cache, find_entry): New functions.
11916 (lookup_cached_symbol, cache_symbol): Implement.
11917 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11918 (_initialize_ada_language): Attach ada_new_objfile_observer
11919 and ada_free_objfile_observer.
11920
11921 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11922
11923 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11924 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11925 struct block * parameter.
11926 (ada_lookup_symbol_list_worker): Constify local variable "block".
11927 Remove cast which is no longer necessary.
11928
11929 2014-02-10 Doug Evans <xdje42@gmail.com>
11930
11931 Add Guile as an extension language.
11932 * NEWS: Mention Guile scripting.
11933 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11934 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11935 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11936 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11937 (CLIBS): Add GUILE_LIBS.
11938 (install-guile): New rule.
11939 (guile.o): New rule.
11940 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11941 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11942 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11943 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11944 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11945 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11946 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11947 * configure.ac: New option --with-guile.
11948 * configure: Regenerate.
11949 * config.in: Regenerate.
11950 * auto-load.c: Remove #include "python/python.h". Add #include
11951 "gdb/section-scripts.h".
11952 (source_section_scripts): Handle Guile scripts.
11953 (_initialize_auto_load): Add name of Guile objfile script to
11954 scripts-directory help text.
11955 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11956 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11957 (struct breakpoint): New member scm_bp_object.
11958 * defs.h (enum command_control_type): New value guile_control.
11959 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11960 "extension.h".
11961 (show_user): Update comment.
11962 (_initialize_cli_cmds): Update help text for "show user". Update help
11963 text for max-user-call-depth.
11964 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11965 "extension.h".
11966 (multi_line_command_p): Add guile_control.
11967 (print_command_lines): Handle guile_control.
11968 (execute_control_command, recurse_read_control_structure): Ditto.
11969 (process_next_line): Recognize "guile" commands.
11970 * disasm.c (gdb_disassemble_info): Make non-static.
11971 * disasm.h: #include "dis-asm.h".
11972 (struct gdbarch): Add forward decl.
11973 (gdb_disassemble_info): Declare.
11974 * extension.c: #include "guile/guile.h".
11975 (extension_languages): Add guile.
11976 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11977 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11978 * gdbtypes.c (get_unsigned_type_max): New function.
11979 (get_signed_type_minmax): New function.
11980 * gdbtypes.h (get_unsigned_type_max): Declare.
11981 (get_signed_type_minmax): Declare.
11982 * guile/README: New file.
11983 * guile/guile-internal.h: New file.
11984 * guile/guile.c: New file.
11985 * guile/guile.h: New file.
11986 * guile/scm-arch.c: New file.
11987 * guile/scm-auto-load.c: New file.
11988 * guile/scm-block.c: New file.
11989 * guile/scm-breakpoint.c: New file.
11990 * guile/scm-disasm.c: New file.
11991 * guile/scm-exception.c: New file.
11992 * guile/scm-frame.c: New file.
11993 * guile/scm-gsmob.c: New file.
11994 * guile/scm-iterator.c: New file.
11995 * guile/scm-lazy-string.c: New file.
11996 * guile/scm-math.c: New file.
11997 * guile/scm-objfile.c: New file.
11998 * guile/scm-ports.c: New file.
11999 * guile/scm-pretty-print.c: New file.
12000 * guile/scm-safe-call.c: New file.
12001 * guile/scm-string.c: New file.
12002 * guile/scm-symbol.c: New file.
12003 * guile/scm-symtab.c: New file.
12004 * guile/scm-type.c: New file.
12005 * guile/scm-utils.c: New file.
12006 * guile/scm-value.c: New file.
12007 * guile/lib/gdb.scm: New file.
12008 * guile/lib/gdb/boot.scm: New file.
12009 * guile/lib/gdb/experimental.scm: New file.
12010 * guile/lib/gdb/init.scm: New file.
12011 * guile/lib/gdb/iterator.scm: New file.
12012 * guile/lib/gdb/printing.scm: New file.
12013 * guile/lib/gdb/types.scm: New file.
12014 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12015 (VPATH): Add $(GUILE_SRCDIR).
12016 (GUILE_DIR): New variable.
12017 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12018 (all): Add stamp-guile dependency.
12019 (stamp-guile): New rule.
12020 (clean-guile, install-guile, uninstall-guile): New rules.
12021 (install-only): Add install-guile dependency.
12022 (uninstall): Add uninstall-guile dependency.
12023 (clean): Add clean-guile dependency.
12024
12025 2014-02-09 Doug Evans <xdje42@gmail.com>
12026
12027 Revert this patch (which I approved, mea culpa).
12028
12029 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12030
12031 * Makefile.in (all-lib): Remove.
12032 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12033
12034 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12035
12036 Fix Python stack corruption.
12037 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12038 gdb_py_longest.
12039
12040 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12041
12042 * Makefile.in (all-lib): Remove.
12043 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12044
12045 2014-02-07 Doug Evans <dje@google.com>
12046
12047 * extension-priv.h (extension_language_script_ops): Add comment.
12048 (extension_language_ops): Add comment.
12049 (active_ext_lang_state): Fix typo in comment.
12050
12051 2014-02-07 Pedro Alves <palves@redhat.com>
12052
12053 PR breakpoints/16292
12054 * infrun.c (handle_signal_stop) <signal arrives while stepping
12055 over a breakpoint>: Switch back to the stepping thread.
12056
12057 2014-02-07 Yao Qi <yao@codesourcery.com>
12058
12059 * target.c (target_xfer_partial): Return zero if LEN is zero.
12060
12061 2014-02-07 Yao Qi <yao@codesourcery.com>
12062
12063 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12064 (ld_so_xfer_auxv): Likewise.
12065 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12066 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12067 * corelow.c (core_xfer_partial): Likewise.
12068 * ctf.c (ctf_xfer_partial): Likewise.
12069 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12070 (darwin_xfer_partial): Likewise.
12071 * exec.c (exec_xfer_partial): Likewise.
12072 * gnu-nat.c (gnu_xfer_partial): Likewise.
12073 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12074 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12075 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12076 * linux-nat.c (linux_xfer_siginfo): Likewise.
12077 (linux_proc_xfer_spu): Likewise.
12078 * procfs.c (procfs_xfer_partial): Likewise.
12079 * record-full.c (record_full_xfer_partial): Likewise.
12080 (record_full_core_xfer_partial): Likewise.
12081 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12082 * remote.c (remote_write_qxfer): Likewise.
12083 (remote_write_qxfer, remote_read_qxfer): Likewise.
12084 (remote_xfer_partial): Likewise.
12085 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12086 (rs6000_xfer_shared_libraries): Likewise.
12087 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12088 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12089 (spu_xfer_partial): Likewise.
12090 * target.c (memory_xfer_partial_1): Likewise.
12091 * tracepoint.c (tfile_xfer_partial): Likewise.
12092 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12093 (windows_xfer_partial): Likewise.
12094
12095 2014-02-07 Yao Qi <yao@codesourcery.com>
12096
12097 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12098 comments.
12099 (core_xfer_shared_libraries_aix): Likewise.
12100 * gdbarch.c, gdbarch.h: Regenerated.
12101 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12102 ULONGEST. Change 'len_avail' type to ULONGEST.
12103 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12104 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12105 declaration.
12106 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12107
12108 2014-02-07 Yao Qi <yao@codesourcery.com>
12109
12110 * corefile.c (memory_error): Get 'exception' from ERR and pass
12111 'exception' to throw_error.
12112
12113 2014-02-06 Doug Evans <xdje42@gmail.com>
12114
12115 * configure.ac (libpython checking): Remove all but python.o from
12116 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12117 * configure: Regenerate.
12118
12119 * Makefile.in (SFILES): Add extension.c.
12120 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12121 (COMMON_OBS): Add extension.o.
12122 * extension.h: New file.
12123 * extension-priv.h: New file.
12124 * extension.c: New file.
12125
12126 * python/python-internal.h: #include "extension.h".
12127 (gdbpy_auto_load_enabled): Declare.
12128 (gdbpy_apply_val_pretty_printer): Declare.
12129 (gdbpy_apply_frame_filter): Declare.
12130 (gdbpy_preserve_values): Declare.
12131 (gdbpy_breakpoint_cond_says_stop): Declare.
12132 (gdbpy_breakpoint_has_cond): Declare.
12133 (void source_python_script_for_objfile): Delete.
12134 * python/python.c: #include "extension-priv.h".
12135 Delete inclusion of "observer.h".
12136 (extension_language_python): Moved here and renamed from
12137 script_language_python in py-auto-load.c.
12138 Redefined to be of type extension_language_defn.
12139 (python_extension_script_ops): New global.
12140 (python_extension_ops): New global.
12141 (struct python_env): New member previous_active.
12142 (restore_python_env): Call restore_active_ext_lang.
12143 (ensure_python_env): Call set_active_ext_lang.
12144 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12145 New arg extlang.
12146 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12147 New arg extlang.
12148 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12149 New arg extlang.
12150 (gdbpy_eval_from_control_command): Renamed from
12151 eval_python_from_control_command, made static. New arg extlang.
12152 (gdbpy_source_script) Renamed from source_python_script, made static.
12153 New arg extlang.
12154 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12155 result to int. New arg extlang.
12156 (gdbpy_source_objfile_script): Renamed from
12157 source_python_script_for_objfile, made static. New arg extlang.
12158 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12159 static. New args extlang, extlang_printers. Change result type to
12160 "void".
12161 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12162 static. New arg extlang. Rename arg printers to extlang_printers
12163 and change type to ext_lang_type_printers *.
12164 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12165 static. Replace argument arg with extlang, extlang_printers.
12166 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12167 (!HAVE_PYTHON, source_python_script): Delete.
12168 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12169 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12170 (!HAVE_PYTHON, start_type_printers): Delete.
12171 (!HAVE_PYTHON, apply_type_printers): Delete.
12172 (!HAVE_PYTHON, free_type_printers): Delete.
12173 (_initialize_python): Delete call to observer_attach_before_prompt.
12174 (finalize_python): Set/restore active extension language.
12175 (gdbpy_finish_initialization) Renamed from
12176 finish_python_initialization, made static. New arg extlang.
12177 (gdbpy_initialized): New function.
12178 * python/python.h: #include "extension.h". Delete #include
12179 "value.h", "mi/mi-cmds.h".
12180 (extension_language_python): Declare.
12181 (GDBPY_AUTO_FILE_NAME): Delete.
12182 (enum py_bt_status): Moved to extension.h and renamed to
12183 ext_lang_bt_status.
12184 (enum frame_filter_flags): Moved to extension.h.
12185 (enum py_frame_args): Moved to extension.h and renamed to
12186 ext_lang_frame_args.
12187 (finish_python_initialization): Delete.
12188 (eval_python_from_control_command): Delete.
12189 (source_python_script): Delete.
12190 (apply_val_pretty_printer): Delete.
12191 (apply_frame_filter): Delete.
12192 (preserve_python_values): Delete.
12193 (gdbpy_script_language_defn): Delete.
12194 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12195 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12196
12197 * auto-load.c: #include "extension.h".
12198 (GDB_AUTO_FILE_NAME): Delete.
12199 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12200 (script_language_gdb): Delete, moved to extension.c and renamed to
12201 extension_language_gdb.
12202 (source_gdb_script_for_objfile): Delete.
12203 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12204 (loaded_script): Change type of language member to
12205 struct extension_language_defn *.
12206 (init_loaded_scripts_info): Initialize
12207 unsupported_script_warning_printed.
12208 (maybe_add_script): Make static. Change type of language arg to
12209 struct extension_language_defn *.
12210 (clear_section_scripts): Reset unsupported_script_warning_printed.
12211 (auto_load_objfile_script_1): Rewrite to use extension language API.
12212 (auto_load_objfile_script): Make public. Remove support-compiled-in
12213 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12214 (source_section_scripts): Rewrite to use extension language API.
12215 (load_auto_scripts_for_objfile): Rewrite to use
12216 auto_load_scripts_for_objfile.
12217 (collect_matching_scripts_data): Change type of language member to
12218 struct extension_language_defn *.
12219 (auto_load_info_scripts): Change type of language arg to
12220 struct extension_language_defn *.
12221 (unsupported_script_warning_print): New function.
12222 (script_not_found_warning_print): Make static.
12223 (_initialize_auto_load): Rewrite construction of scripts-directory
12224 help.
12225 * auto-load.h (struct objfile): Add forward decl.
12226 (struct script_language): Delete.
12227 (struct auto_load_pspace_info): Add forward decl.
12228 (struct extension_language_defn): Add forward decl.
12229 (maybe_add_script): Delete.
12230 (auto_load_objfile_script): Declare.
12231 (script_not_found_warning_print): Delete.
12232 (auto_load_info_scripts): Update prototype.
12233 (auto_load_gdb_scripts_enabled): Declare.
12234 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12235 auto_load_python_scripts_enabled and made public.
12236 (script_language_python): Delete, moved to python.c.
12237 (gdbpy_script_language_defn): Delete.
12238 (info_auto_load_python_scripts): Update to use
12239 extension_language_python.
12240
12241 * breakpoint.c (condition_command): Replace call to
12242 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12243 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12244 with call to breakpoint_ext_lang_cond_says_stop.
12245 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12246 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12247 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12248 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12249 New arg slang.
12250 (local_setattro): Print name of extension language with existing
12251 stop condition.
12252
12253 * valprint.c (val_print, value_print): Update to call
12254 apply_ext_lang_val_pretty_printer.
12255 * cp-valprint.c (cp_print_value): Update call to
12256 apply_ext_lang_val_pretty_printer.
12257 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12258 (gdbpy_apply_val_pretty_printer): Renamed from
12259 apply_val_pretty_printer. New arg extlang.
12260 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12261
12262 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12263 extension language API.
12264 * cli/cli-script.c (execute_control_command): Update to call
12265 eval_ext_lang_from_control_command.
12266
12267 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12268 enum ext_lang_bt_status values. Update call to
12269 apply_ext_lang_frame_filter.
12270 (mi_cmd_stack_list_locals): Ditto.
12271 (mi_cmd_stack_list_args): Ditto.
12272 (mi_cmd_stack_list_variables): Ditto.
12273 * mi/mi-main.c: Delete #include "python/python-internal.h".
12274 Add #include "extension.h".
12275 (mi_cmd_list_features): Replace reference to python internal variable
12276 gdb_python_initialized with call to ext_lang_initialized_p.
12277
12278 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12279 Update to use enum ext_lang_frame_args. Update to call
12280 apply_ext_lang_frame_filter.
12281 * python/py-framefilter.c (extract_sym): Update to use enum
12282 ext_lang_bt_status.
12283 (extract_value, py_print_type, py_print_value): Ditto.
12284 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12285 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12286 (py_print_frame): Ditto.
12287 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12288 New arg extlang. Update to use enum ext_lang_bt_status.
12289
12290 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12291 finish_python_initialization. Replace with call to
12292 finish_ext_lang_initialization.
12293
12294 * typeprint.c (do_free_global_table): Update to call
12295 free_ext_lang_type_printers.
12296 (create_global_typedef_table): Update to call
12297 start_ext_lang_type_printers.
12298 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12299 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12300 (type_print_options): Change type of global_printers from "void *"
12301 to "struct ext_lang_type_printers *".
12302
12303 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12304 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12305 (gdbpy_preserve_values): Renamed from preserve_python_values.
12306 New arg extlang.
12307 (!HAVE_PYTHON, preserve_python_values): Delete.
12308
12309 * utils.c (quit_flag): Delete, moved to extension.c.
12310 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12311 extension.c.
12312
12313 * eval.c: Delete #include "python/python.h".
12314 * main.c: Delete #include "python/python.h".
12315
12316 * defs.h: Update comment.
12317
12318 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12319
12320 GDB 7.7 released.
12321
12322 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12323
12324 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12325 defined.
12326
12327 2014-02-05 Yao Qi <yao@codesourcery.com>
12328
12329 * remote.c (remote_pass_signals): Remove local 'buf' and use
12330 rs->buf.
12331 (remote_program_signals): Likewise.
12332
12333 2014-02-05 Yao Qi <yao@codesourcery.com>
12334
12335 * ctf.c: Include "inferior.h" and "gdbthread.h".
12336 (CTF_PID): A new macro.
12337 (ctf_open): Call inferior_appeared and add_thread_silent.
12338 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12339 (ctf_thread_alive): New function.
12340 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12341
12342 2014-02-05 Yao Qi <yao@codesourcery.com>
12343
12344 Revert this patch:
12345
12346 2013-05-24 Yao Qi <yao@codesourcery.com>
12347
12348 * tracepoint.c (TFILE_PID): Remove.
12349 (tfile_open): Don't add thread and inferior.
12350 (tfile_close): Don't set 'inferior_ptid'. Don't call
12351 exit_inferior_silent.
12352 (tfile_thread_alive): Remove.
12353 (init_tfile_ops): Don't set field 'to_thread_alive' of
12354 tfile_ops.
12355
12356 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12357
12358 * remote.c (remote_start_remote): Call remote_check_symbols even
12359 if only symbol-file (not file) has been given.
12360
12361 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12362
12363 * gdbarch.sh (skip_entrypoint): New callback.
12364 * gdbarch.c, gdbarch.h: Regenerate.
12365 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12366 * infrun.c (fill_in_stop_func): Likewise.
12367 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12368 (ppc_elfv2_elf_make_msymbol_special): New function.
12369 (ppc_elfv2_skip_entrypoint): Likewise.
12370 (ppc_linux_init_abi): Install them for ELFv2.
12371
12372 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12373
12374 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12375 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12376 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12377 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12378 structures returned in GPRs.
12379
12380 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12381
12382 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12383 offset to the stack parameter list for the ELFv2 ABI.
12384
12385 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12386
12387 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12388 set_gdbarch_convert_from_func_ptr_addr and
12389 set_gdbarch_elf_make_msymbol_special for ELFv1.
12390 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12391 function descriptors on ELFv1.
12392 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12393 set up r12 at function entry.
12394
12395 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12396
12397 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12398 (struct gdbarch_tdep): New member elf_abi.
12399
12400 * rs6000-tdep.c: Include "elf/ppc64.h".
12401 (rs6000_gdbarch_init): Detect ELF ABI version.
12402
12403 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12404
12405 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12406 within a register pair holding a DFP 128-bit value on little-endian.
12407 (ppc64_sysv_abi_return_value_base): Likewise.
12408 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12409 (dfp_pseudo_register_write): Likewise.
12410
12411 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12412
12413 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12414 offset on little-endian when passing _Decimal32.
12415 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12416
12417 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12418
12419 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12420 of the overlapped FP register within the VSX register on little-
12421 endian platforms.
12422 (efpr_pseudo_register_write): Likewise.
12423
12424 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12425
12426 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12427 offset on little-endian when passing small structures.
12428
12429 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12430
12431 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12432 (struct ppc64_sysv_argpos): New data structure.
12433 (ppc64_sysv_abi_push_float): Remove.
12434 (ppc64_sysv_abi_push_val): New function.
12435 (ppc64_sysv_abi_push_integer): Likewise.
12436 (ppc64_sysv_abi_push_freg): Likewise.
12437 (ppc64_sysv_abi_push_vreg): Likewise.
12438 (ppc64_sysv_abi_push_param): Likewise.
12439 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12440 (ppc64_sysv_abi_return_value_base): New function.
12441 (ppc64_sysv_abi_return_value): Refactor to use it.
12442
12443 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12444
12445 * NEWS: Document new target powerpc64le-*-linux*.
12446
12447 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12448
12449 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12450 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12451 core dumps.
12452 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12453 register set used in ELF core dumps. Add floating-point register set.
12454
12455 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12456
12457 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12458 dwarf2_to_gdb[] table using symbolic constants. Adjust
12459 penultimate entry from number representing the PC register
12460 to symbolic constant representing the MDR register. Add
12461 constant for the PC register to the end of the table.
12462
12463 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12464
12465 * bsd-kvm.c: Include <sys/param.h>
12466
12467 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12468
12469 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12470
12471 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12472
12473 * ada-lang.h (clear_ada_sym_cache): Delete.
12474
12475 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12476
12477 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12478
12479 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12480
12481 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12482 the sigreturn register save area only if the syscall is
12483 sigreturn.
12484
12485 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12486
12487 * valops.c (value_slice): Minor reformatting.
12488
12489 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12490
12491 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12492
12493 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12494
12495 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12496 New static globals.
12497 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12498 (ada_ignore_descriptive_types_p): New static global.
12499 (find_parallel_type_by_descriptive_type): Return immediately
12500 if ada_ignore_descriptive_types_p is set.
12501 (_initialize_ada_language): Register new commands "maintenance
12502 set ada", "maintenance show ada", "maintenance set ada
12503 ignore-descriptive-types" and "maintenance show ada
12504 ignore-descriptive-types".
12505 * NEWS: Add entry for new "maint ada set/show
12506 ignore-descriptive-types" commands.
12507
12508 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12509
12510 * record-btrace.c (record_btrace_close): Call btrace_teardown
12511 for all threads.
12512
12513 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12514
12515 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12516 "ui-out.h".
12517
12518 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12519
12520 * ada-typeprint (type_is_full_subrange_of_target_type):
12521 New function.
12522 (print_range): Add parameter bounds_prefered_p. If not set,
12523 try printing range types using the name of their base type.
12524 (print_range_type): Add parameter bounds_prefered_p.
12525 Use it in call to print_range.
12526 (print_array_type, ada_print_type): Update calls to print_range
12527 and print_range_type.
12528
12529 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12530
12531 * ada-typeprint.c (print_array_type, print_choices, print_range)
12532 (print_range_bound, print_dynamic_range_bound, print_range_type):
12533 Remove declaration.
12534
12535 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12536
12537 * ada-typeprint.c (print_range): Add missing empty line
12538 after local declaration.
12539
12540 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12541
12542 * ada-valprint.c (print_optional_low_bound): Get index_type's
12543 target type for as long as it is a TYPE_CODE_RANGE.
12544
12545 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12546
12547 * procfs.c (procfs_make_note_section): Remove assertion and
12548 associated comment.
12549
12550 2014-01-24 Yao Qi <yao@codesourcery.com>
12551
12552 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12553 * corelow.c (get_core_siginfo): Likewise.
12554
12555 2014-01-24 Yao Qi <yao@codesourcery.com>
12556
12557 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12558 ULONGEST. Don't check 'len' is negative.
12559 (remote_write_bytes): Change type of 'len' to ULONGEST.
12560
12561 2014-01-23 Tom Tromey <tromey@redhat.com>
12562
12563 PR python/16485:
12564 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12565 Handle exception from frame.block.
12566 (FrameVars.fetch_frame_locals): Likewise.
12567
12568 2014-01-23 Tom Tromey <tromey@redhat.com>
12569
12570 PR python/16487:
12571 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12572 on a NULL pointer. Move "goto error" to correct place.
12573
12574 2014-01-23 Tom Tromey <tromey@redhat.com>
12575
12576 PR python/16491:
12577 * python/py-framefilter.c (apply_frame_filter): Call
12578 ensure_python_env after computing gdbarch.
12579
12580 2014-01-23 Yao Qi <yao@codesourcery.com>
12581
12582 * target.c (raw_memory_xfer_partial): Change argument type
12583 from void * to gdb_byte *.
12584 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12585
12586 2014-01-22 Doug Evans <dje@google.com>
12587
12588 New gdbserver option --debug-format=timestamp.
12589 * NEWS: Mention it.
12590
12591 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12592
12593 * syscalls/s390x-linux.xml: New file.
12594 * syscalls/s390-linux.xml: New file.
12595 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12596 (XML_SYSCALL_FILENAME_S390X): Likewise.
12597 (op_svc): New enum value for SVC opcode.
12598 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12599 (s390_linux_get_syscall_number): New function.
12600 (s390_gdbarch_init): Register '*get_syscall_number' and the
12601 syscall xml file name.
12602 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12603 "s390-linux.xml" and "s390x-linux.xml".
12604 * NEWS: Announce new feature.
12605
12606 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12607
12608 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12609
12610 2014-01-22 Pedro Alves <palves@redhat.com>
12611
12612 * xtensa-config.c: Include defs.h.
12613
12614 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12615
12616 * common/common-utils.h: Add "ARI:" comment beside __func__
12617 reference.
12618
12619 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12620
12621 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12622 documentation a bit.
12623
12624 2014-01-21 Roland McGrath <mcgrathr@google.com>
12625
12626 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12627 * configure: Regenerate.
12628 * aclocal.m4: Regenerate.
12629 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12630 New substituted variables.
12631 (install-strip): New target.
12632 (INSTALL_SCRIPT): New substituted variable.
12633 (FLAGS_TO_PASS): Add it.
12634 (install-only): Use $(INSTALL_SCRIPT) rather than
12635 $(INSTALL_PROGRAM) for gcore.
12636
12637 2014-01-20 Tom Tromey <tromey@redhat.com>
12638
12639 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12640 together.
12641
12642 2014-01-20 Tom Tromey <tromey@redhat.com>
12643
12644 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12645 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12646 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12647 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12648 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12649 (struct cmd_list_element) <flags>: Remove.
12650 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12651 doc_allocated>: New fields.
12652 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12653 bitfields.
12654 * maint.c (maintenance_do_deprecate): Update.
12655 * top.c (execute_command): Update.
12656
12657 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12658
12659 * xtensa-linux-nat.c: Include asm/ptrace.h.
12660
12661 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12662
12663 * Makefile.in (SFILES): Add d-support.c.
12664 (COMMON_OBS): Add d-support.o.
12665 * d-lang.h (d_parse_symbol): Add comment, now defined in
12666 d-support.c.
12667 * d-lang.c (parse_call_convention)
12668 (parse_attributes, parse_function_types)
12669 (parse_function_args, parse_type, parse_identifier)
12670 (call_convention_p, d_parse_symbol): Move functions to ...
12671 * d-support.c: ... New file.
12672
12673 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12674
12675 * d-lang.h (d_parse_symbol): Add declaration.
12676 * d-lang.c (extract_identifiers)
12677 (extract_type_info): Remove functions.
12678 (parse_call_convention, parse_attributes)
12679 (parse_function_types, parse_function_args)
12680 (parse_type, parse_identifier, call_convention_p)
12681 (d_parse_symbol): New functions.
12682 (d_demangle): Use d_parse_symbol to demangle D symbols.
12683
12684 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12685
12686 * d-lang.h (struct builtin_d_type): New data type.
12687 (builtin_d_type): Add declaration.
12688 * d-lang.c (d_language_arch_info, build_d_types)
12689 (builtin_d_type): New functions.
12690 (enum d_primitive_types): New data type.
12691 (d_language_defn): Change c_language_arch_info to
12692 d_language_arch_info.
12693 (d_type_data): New static variable.
12694 (_initialize_d_language): Initialize d_type_data.
12695
12696 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12697
12698 * d-lang.h (d_main_name): Add declaration.
12699 * d-lang.c (d_main_name): New function.
12700 * symtab.c (find_main_name): Add call to d_main_name.
12701
12702 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12703
12704 * d-lang.c (d_language_defn): Change macro_expansion_c to
12705 macro_expansion_no.
12706
12707 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12708
12709 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12710
12711 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12712
12713 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12714 gdb_exception" declaration.
12715 * remote.c (getpkt_or_notif_sane): Likewise.
12716
12717 2014-01-17 Doug Evans <dje@google.com>
12718
12719 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12720 function, contents of dirnames_to_char_ptr_vec_append moved here.
12721 (delim_string_to_char_ptr_vec): New function.
12722 (dirnames_to_char_ptr_vec_append): Rewrite.
12723 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12724
12725 2014-01-17 Doug Evans <dje@google.com>
12726
12727 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12728 and moved here ...
12729 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12730 #include "common-utils.h".
12731 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12732 * common/vec.h (VEC_ASSERT_PASS): Update.
12733 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12734 (MACH_CHECK_ERROR): Update.
12735
12736 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12737
12738 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12739 comments.
12740 * gdbarch.h: Regenerate.
12741
12742 2014-01-16 Tom Tromey <tromey@redhat.com>
12743
12744 * value.c (struct value) <regnum>: Move earlier.
12745
12746 2014-01-16 Tom Tromey <tromey@redhat.com>
12747
12748 * remote.c (extended_remote_create_inferior): Rename from
12749 extended_remote_create_inferior_1. Add "ops" argument. Remove
12750 old implementation.
12751
12752 2014-01-16 Pedro Alves <palves@redhat.com>
12753
12754 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12755 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12756 the backchain.
12757
12758 2014-01-16 Doug Evans <dje@google.com>
12759
12760 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12761
12762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12763
12764 * btrace.h (btrace_thread_flag): New.
12765 (struct btrace_thread_info) <flags>: New.
12766 * record-btrace.c (record_btrace_resume_thread)
12767 (record_btrace_find_thread_to_move, btrace_step_no_history)
12768 (btrace_step_stopped, record_btrace_start_replaying)
12769 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12770 (record_btrace_find_resume_thread): New.
12771 (record_btrace_resume, record_btrace_wait): Extend.
12772 (record_btrace_can_execute_reverse): New.
12773 (record_btrace_open): Fail in non-stop mode.
12774 (record_btrace_set_replay): Split into this, ...
12775 (record_btrace_stop_replaying): ... this, ...
12776 (record_btrace_clear_histories): ... and this.
12777 (init_record_btrace_ops): Init to_can_execute_reverse.
12778 * NEWS: Announce it.
12779
12780 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12781
12782 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12783 (forward_target_decr_pc_after_break)
12784 (target_decr_pc_after_break): New.
12785 * target.c (forward_target_decr_pc_after_break)
12786 (target_decr_pc_after_break): New.
12787 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12788 instead of gdbarch_decr_pc_after_break.
12789 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12790 instead of gdbarch_decr_pc_after_break.
12791 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12792 instead of gdbarch_decr_pc_after_break.
12793 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12794 instead of gdbarch_decr_pc_after_break.
12795 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12796 instead of gdbarch_decr_pc_after_break.
12797 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12798 instead of gdbarch_decr_pc_after_break.
12799
12800 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12801
12802 * btrace.c: Include regcache.h.
12803 (btrace_add_pc): New.
12804 (btrace_enable): Call btrace_add_pc.
12805 (btrace_is_empty): New.
12806 * btrace.h (btrace_is_empty): New.
12807 * record-btrace.c (require_btrace, record_btrace_info): Call
12808 btrace_is_empty.
12809
12810 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12811
12812 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12813 Support delta reads.
12814 (linux_disable_btrace): Change return type.
12815 * common/linux-btrace.h (linux_read_btrace): Change parameters
12816 and return type to allow error reporting. Update users.
12817 (linux_disable_btrace): Change return type. Update users.
12818 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12819 New.
12820 (btrace_error): New.
12821 (btrace_block) <begin>: Comment on BEGIN == 0.
12822 * btrace.c (btrace_compute_ftrace): Start from the end of
12823 the current trace.
12824 (btrace_stitch_trace, btrace_clear_history): New.
12825 (btrace_fetch): Read delta trace, return if replaying.
12826 (btrace_clear): Move clear history code to btrace_clear_history.
12827 (parse_xml_btrace): Throw an error if parsing failed.
12828 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12829 and return type to allow error reporting.
12830 (target_read_btrace): Change parameters and return type to allow
12831 error reporting.
12832 * target.c (target_read_btrace): Update.
12833 * remote.c (remote_read_btrace): Support delta reads. Pass
12834 errors on.
12835 * NEWS: Announce it.
12836
12837 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12838
12839 * record.h (record_btrace_frame_unwind)
12840 (record_btrace_tailcall_frame_unwind): New declarations.
12841 * dwarf2-frame: Include record.h
12842 (dwarf2_frame_cfa): Throw an error for btrace frames.
12843 * record-btrace.c: Include hashtab.h.
12844 (btrace_get_bfun_name): New.
12845 (btrace_call_history): Call btrace_get_bfun_name.
12846 (struct btrace_frame_cache): New.
12847 (bfcache): New.
12848 (bfcache_hash, bfcache_eq, bfcache_new): New.
12849 (btrace_get_frame_function): New.
12850 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12851 (record_btrace_frame_this_id): Compute own id.
12852 (record_btrace_frame_prev_register): Provide PC, throw_error
12853 for all other registers.
12854 (record_btrace_frame_sniffer): Detect btrace frames.
12855 (record_btrace_tailcall_frame_sniffer): New.
12856 (record_btrace_frame_dealloc_cache): New.
12857 (record_btrace_frame_unwind): Add new functions.
12858 (record_btrace_tailcall_frame_unwind): New.
12859 (_initialize_record_btrace): Allocate cache.
12860 * btrace.c (btrace_clear): Call reinit_frame_cache.
12861 * NEWS: Announce it.
12862
12863 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12864
12865 * record-btrace.c (record_btrace_set_replay)
12866 (record_btrace_goto_begin, record_btrace_goto_end)
12867 (record_btrace_goto): New.
12868 (init_record_btrace_ops): Initialize them.
12869 * NEWS: Announce it.
12870
12871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12872
12873 * record-btrace.c (record_btrace_find_new_threads)
12874 (record_btrace_thread_alive): New.
12875 (init_record_btrace_ops): Initialize to_find_new_threads and
12876 to_thread_alive.
12877
12878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12879
12880 * record-btrace.c (record_btrace_resume): New.
12881 (record_btrace_wait): New.
12882 (init_record_btrace_ops): Initialize to_wait and to_resume.
12883
12884 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12885
12886 * record-btrace.c (record_btrace_xfer_partial)
12887 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12888 (record_btrace_allow_memory_access): New.
12889 (init_record_btrace_ops): Initialize new methods.
12890 * target.c (raw_memory_xfer_partial): Bail out if target reports
12891 that this memory is not available.
12892
12893 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12894
12895 * target.h (target_ops) <to_insert_breakpoint>
12896 <to_remove_breakpoint>: Add target_ops parameter.
12897 (forward_target_insert_breakpoint): New.
12898 (forward_target_remove_breakpoint): New.
12899 (memory_remove_breakpoint, memory_insert_breakpoint):
12900 Add target_ops parameter.
12901 * target.c (target_insert_breakpoint): Split into this and ...
12902 (forward_target_insert_breakpoint): ... this.
12903 (target_remove_breakpoint): Split into this and ...
12904 (forward_target_remove_breakpoint): ... this.
12905 (debug_to_insert_breakpoint): Add target_ops parameter.
12906 Call forward_target_insert_breakpoint.
12907 (debug_to_remove_breakpoint): Add target_ops parameter.
12908 Call forward_target_remove_breakpoint.
12909 (update_current_target): Do not inherit or default to_insert_breakpoint
12910 and to_remove_breakpoint.
12911 * corelow.c (ignore): Add target_ops parameter.
12912 * exec.c (ignore): Add target_ops parameter.
12913 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12914 Add target_ops parameter.
12915 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12916 Add target_ops parameter.
12917 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12918 Add target_ops parameter.
12919 * record-full.c (record_full_beneath_to_insert_breakpoint)
12920 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12921 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12922 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12923 (record_full_core_remove_breakpoint): Add target_ops parameter.
12924 Update users.
12925 (record_full_beneath_to_insert_breakpoint_ops)
12926 (record_full_beneath_to_remove_breakpoint_ops)
12927 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12928 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12929 tmp_to_remove_breakpoint_ops,
12930 record_full_beneath_to_insert_breakpoint_ops, and
12931 record_full_beneath_to_remove_breakpoint_ops.
12932 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12933 (m32r_remove_breakpoint): Add target_ops parameter.
12934 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12935 Add target_ops parameter.
12936 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12937 Add target_ops parameter.
12938
12939 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12940 Markus Metzger <markus.t.metzger@intel.com>
12941
12942 * record-btrace.c: Include frame-unwind.h.
12943 (record_btrace_frame_unwind_stop_reason)
12944 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12945 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12946 New.
12947 (init_record_btrace_ops): Install it.
12948
12949 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12950
12951 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12952 get_prev_frame_1.
12953
12954 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12955
12956 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12957 earlier.
12958
12959 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12960
12961 * frame-unwind.c: Include target.h.
12962 (frame_unwind_try_unwinder): New function with code from ...
12963 (frame_unwind_find_by_frame): ... here. New variable
12964 unwinder_from_target, call also target_get_unwinder)
12965 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12966 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12967 * target.h (struct target_ops): New fields to_get_unwinder and
12968 to_get_tailcall_unwinder.
12969 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12970
12971 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12972
12973 * record-btrace.c (record_btrace_fetch_registers)
12974 (record_btrace_store_registers)
12975 (record_btrace_to_prepare_to_store): New.
12976 (init_record_btrace_ops): Add the above.
12977
12978 2014-01-16 Tom Tromey <tromey@redhat.com>
12979
12980 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12981 * target.h (struct target_ops) <to_prepare_to_store>: Add
12982 argument.
12983 (target_prepare_to_store): Add argument.
12984 * target.c (debug_to_prepare_to_store): Add argument.
12985 (update_current_target): Update.
12986 * remote.c (remote_prepare_to_store): Add 'self' argument.
12987 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12988 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12989 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12990 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12991 argument.
12992 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12993 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12994 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12995 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12996 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12997
12998 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12999
13000 * btrace.h (replay) <replay>: New.
13001 (btrace_is_replaying): New.
13002 * btrace.c (btrace_clear): Free replay iterator.
13003 (btrace_is_replaying): New.
13004 * record-btrace.c (record_btrace_is_replaying): New.
13005 (record_btrace_info): Print insn number if replaying.
13006 (record_btrace_insn_history): Start at replay position.
13007 (record_btrace_call_history): Start at replay position.
13008 (init_record_btrace_ops): Init to_record_is_replaying.
13009
13010 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13011
13012 * record-btrace.c (record_btrace_insn_history_range): Include
13013 end.
13014 (record_btrace_insn_history_from): Adjust range.
13015 (record_btrace_call_history_range): Include
13016 end.
13017 (record_btrace_call_history_from): Adjust range.
13018 * NEWS: Announce changes.
13019
13020 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13021
13022 * record.h (enum record_print_flag)
13023 <record_print_indent_calls>: New.
13024 * record.c (get_call_history_modifiers): Recognize /c modifier.
13025 (_initialize_record): Document /c modifier.
13026 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13027 Reorder fields. Optionally indent the function name. Update
13028 all users.
13029 * NEWS: Announce changes.
13030
13031 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13032
13033 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13034
13035 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13036
13037 * btrace.c (ftrace_new_function): Start counting at one.
13038 * record-btrace.c (record_btrace_info): Adjust number of calls
13039 and insns.
13040 * NEWS: Announce it.
13041
13042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13043
13044 * record-btrace.c (btrace_call_history_insn_range): Print
13045 insn range as [begin, end].
13046
13047 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13048
13049 * btrace.h (struct btrace_func_link): New.
13050 (enum btrace_function_flag): New.
13051 (struct btrace_inst): Rename to ...
13052 (struct btrace_insn): ...this. Update all users.
13053 (struct btrace_func) <ibegin, iend>: Remove.
13054 (struct btrace_func_link): New.
13055 (struct btrace_func): Rename to ...
13056 (struct btrace_function): ...this. Update all users.
13057 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13058 (number, level, flags>: New.
13059 (struct btrace_insn_iterator): Rename to ...
13060 (struct btrace_insn_history): ...this.
13061 Update all users.
13062 (struct btrace_insn_iterator, btrace_call_iterator): New.
13063 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13064 (struct btrace_target_info) <begin, end, level>
13065 <insn_history, call_history>: New.
13066 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13067 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13068 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13069 (btrace_call_number, btrace_call_begin, btrace_call_end)
13070 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13071 (btrace_find_function_by_number, btrace_set_insn_history)
13072 (btrace_set_call_history): New.
13073 * btrace.c (btrace_init_insn_iterator)
13074 (btrace_init_func_iterator, compute_itrace): Remove.
13075 (ftrace_print_function_name, ftrace_print_filename)
13076 (ftrace_skip_file): Change
13077 parameter to const.
13078 (ftrace_init_func): Remove.
13079 (ftrace_debug): Use new btrace_function fields.
13080 (ftrace_function_switched): Also consider gaining and
13081 losing symbol information).
13082 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13083 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13084 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13085 New.
13086 (ftrace_new_function): Move. Remove debug print.
13087 (ftrace_update_lines, ftrace_update_insns): New.
13088 (ftrace_update_function): Check for call, ret, and jump.
13089 (compute_ftrace): Renamed to ...
13090 (btrace_compute_ftrace): ...this. Rewritten to compute call
13091 stack.
13092 (btrace_fetch, btrace_clear): Updated.
13093 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13094 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13095 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13096 (btrace_call_number, btrace_call_begin, btrace_call_end)
13097 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13098 (btrace_find_function_by_number, btrace_set_insn_history)
13099 (btrace_set_call_history): New.
13100 * record-btrace.c (require_btrace): Use new btrace thread
13101 info fields.
13102 (record_btrace_info, btrace_insn_history)
13103 (record_btrace_insn_history, record_btrace_insn_history_range):
13104 Use new btrace thread info fields and new iterator.
13105 (btrace_func_history_src_line): Rename to ...
13106 (btrace_call_history_src_line): ...this. Use new btrace
13107 thread info fields.
13108 (btrace_func_history): Rename to ...
13109 (btrace_call_history): ...this. Use new btrace thread info
13110 fields and new iterator.
13111 (record_btrace_call_history, record_btrace_call_history_range):
13112 Use new btrace thread info fields and new iterator.
13113
13114 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13115
13116 * frame.h (frame_id_build_unavailable_stack_special): New.
13117 * frame.c (frame_id_build_unavailable_stack_special): New.
13118
13119 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13120
13121 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13122 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13123 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13124 to gdbarch.
13125 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13126 (i386_insn_is_jump, i386_jmp_p): New.
13127 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13128 insn_is_jump to gdbarch.
13129 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13130 * gdbarch.h: Regenerated.
13131 * gdbarch.c: Regenerated.
13132 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13133 (default_insn_is_jump): New.
13134 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13135 (default_insn_is_jump): New.
13136
13137 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13138
13139 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13140 Change to ...
13141 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13142 (btrace_read_type) <btrace_read_new>: Change to ...
13143 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13144
13145 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13146
13147 * common/linux-btrace.c (linux_read_btrace): Free trace from
13148 previous iteration.
13149
13150 2014-01-15 Doug Evans <dje@google.com>
13151
13152 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13153 uint32_t.
13154
13155 2014-01-15 Tom Tromey <tromey@redhat.com>
13156
13157 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13158 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13159 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13160 (set_objfile_main_name): New function.
13161 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13162 language_of_main>: New fields.
13163 (set_objfile_main_name): Declare.
13164 * symtab.c (find_main_name): Loop over objfiles to find the main
13165 name and language.
13166 (set_main_name): Now static.
13167 (get_main_info): Add comment.
13168 * symtab.h (set_main_name): Don't declare.
13169
13170 2014-01-15 Tom Tromey <tromey@redhat.com>
13171
13172 * symtab.c (main_progspace_key): New global.
13173 (struct main_info): New.
13174 (name_of_main, language_of_main): Remove.
13175 (get_main_info, main_info_cleanup): New function.
13176 (set_main_name, main_name, main_language): Use get_main_info.
13177 (_initialize_symtab): Initialize main_progspace_key.
13178
13179 2014-01-15 Tom Tromey <tromey@redhat.com>
13180
13181 * dbxread.c (process_one_symbol): Update.
13182 * dwarf2read.c (read_partial_die): Update.
13183 * symfile.c (set_initial_language): Call main_language.
13184 * symtab.c (language_of_main): Now static.
13185 (set_main_name): Add 'lang' parameter.
13186 (find_main_name): Update.
13187 (main_language): New function.
13188 (symtab_observer_executable_changed): Update.
13189 * symtab.h (set_main_name): Update.
13190 (language_of_main): Remove.
13191 (main_language): Declare.
13192
13193 2014-01-15 Tom Tromey <tromey@redhat.com>
13194
13195 * symfile.c (init_entry_point_info): Use new "initialized" field.
13196 Update.
13197 * objfiles.h (struct entry_point) <initialized>: New field.
13198 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13199 (struct objfile) <ei>: ...here. Remove.
13200 * objfiles.c (entry_point_address_query): Update.
13201
13202 2014-01-15 Tom Tromey <tromey@redhat.com>
13203
13204 * objfiles.c (entry_point_address_query): Relocate entry point
13205 address.
13206 (objfile_relocate1): Do not relocate entry point address.
13207 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13208 <the_bfd_section_index>: New field.
13209 * symfile.c (init_entry_point_info): Find the entry point's
13210 section.
13211
13212 2014-01-15 Tom Tromey <tromey@redhat.com>
13213
13214 * solib-frv.c (enable_break): Use entry_point_address_query.
13215
13216 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13217
13218 * NEWS: Add note on improved process record-replay on
13219 arm*-linux* targets.
13220
13221 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13222
13223 * arm-tdep.c (enum arm_record_result): New enum.
13224 (arm_record_unsupported_insn): New function.
13225 (arm_record_coproc_data_proc): Removed.
13226 (thumb2_record_ld_st_multiple): New function.
13227 (thumb2_record_ld_st_dual_ex_tbb): New function.
13228 (thumb2_record_data_proc_sreg_mimm): New function.
13229 (thumb2_record_ps_dest_generic): New function.
13230 (thumb2_record_branch_misc_cntrl): New function.
13231 (thumb2_record_str_single_data): New function.
13232 (thumb2_record_ld_mem_hints): New function.
13233 (thumb2_record_ld_word): New function.
13234 (thumb2_record_lmul_lmla_div): New function.
13235 (thumb2_record_decode_insn_handler): New function.
13236 (decode_insn): Add thumb32 instruction handlers.
13237
13238 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13239
13240 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13241 (struct arm_linux_record_tdep): Declare.
13242 (arm_canonicalize_syscall): New function.
13243 (arm_all_but_pc_registers_record): New function.
13244 (arm_linux_syscall_record): New function.
13245 (arm_linux_init_abi): Add syscall recording constructs.
13246 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13247 decoding. (arm_record_coproc_data_proc): Update arm syscall
13248 decoding.
13249 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13250 <arm_syscall_record>: New field.
13251 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13252 gdb_target_obs.
13253
13254 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13255
13256 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13257 register for push instruction recording.
13258
13259 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13260
13261 * arm-tdep.c (thumb_record_misc): Update to correct logical
13262 error while recording ldm, ldmia and pop instructions.
13263
13264 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13265
13266 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13267
13268 2014-01-15 Pedro Alves <palves@redhat.com>
13269
13270 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13271 (go32_resume, go32_fetch_registers, store_register)
13272 (go32_store_registers, go32_prepare_to_store)
13273 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13274 (go32_create_inferior, go32_can_run, go32_terminal_init)
13275 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13276 declarations.
13277
13278 2014-01-15 Tom Tromey <tromey@redhat.com>
13279
13280 * target.h (async_callback_ftype): New typedef.
13281 (struct target_ops) <to_async>: Use it.
13282
13283 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13284
13285 * python/py-value.c (get_field_type): Remove unnecessary curly
13286 braces for single-statement if block.
13287
13288 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13289
13290 * python/py-type.c (convert_field): Add missing empty line
13291 after declarations.
13292
13293 2014-01-14 Doug Evans <dje@google.com>
13294
13295 * symfile.h (expand_symtabs_matching): Renamed from
13296 expand_partial_symbol_names. Update prototype.
13297 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13298 * symfile.c (expand_symtabs_matching): Renamed from
13299 expand_partial_symbol_names. New args file_matcher, kind.
13300 Rename arg fun to symbol_matcher.
13301 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13302 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13303 ada_expand_partial_symbol_name.
13304 (ada_make_symbol_completion_list): Update to call
13305 expand_symtabs_matching.
13306 (ada_add_global_exceptions): Call expand_symtabs_matching.
13307 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13308 call map_symbol_filenames.
13309 * symtab.c (sources_info): Update to call map_symbol_filenames.
13310 (search_symbols): Call expand_symtabs_matching.
13311 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13312 (default_make_symbol_completion_list_break_on): Update to call
13313 expand_symtabs_matching.
13314 (make_source_files_completion_list): Update to call
13315 map_symbol_filenames.
13316
13317 2014-01-14 Doug Evans <dje@google.com>
13318
13319 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13320 (expand_symtabs_symbol_matcher_ftype): New typedef.
13321 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13322 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13323 * symfile.c (expand_partial_symbol_names): Update to use
13324 expand_symtabs_symbol_matcher_ftype.
13325 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13326 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13327 Arg name_matcher renamed to symbol_matcher.
13328 * psymtab.c (recursively_search_psymtabs): Update to use
13329 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13330 sym_matcher.
13331 (expand_symtabs_matching_via_partial): Update to use
13332 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13333 Arg name_matcher renamed to symbol_matcher.
13334
13335 2014-01-14 Doug Evans <dje@google.com>
13336
13337 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13338 (map_partial_symbol_filenames): Ditto.
13339 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13340 (map_partial_symbol_filenames): Ditto.
13341 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13342 (map_partial_symbol_filenames): Ditto.
13343 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13344 (map_partial_symbol_filenames): Ditto.
13345 * symtab.c: Delete #include "psymtab.h".
13346
13347 2014-01-14 Pedro Alves <palves@redhat.com>
13348 Tom Tromey <tromey@redhat.com>
13349
13350 * infrun.c (use_displaced_stepping): Use find_record_target
13351 instead of RECORD_IS_USED.
13352 (adjust_pc_after_break): Use record_full_is_used instead of
13353 RECORD_IS_USED.
13354 * record-btrace.c (record_btrace_open): Call record_preopen
13355 instead of checking RECORD_IS_USED.
13356 * record-full.c (record_full_shortname)
13357 (record_full_core_shortname): New globals.
13358 (record_full_is_used): New function.
13359 (find_full_open): Call record_preopen instead of checking
13360 RECORD_IS_USED.
13361 (init_record_full_ops): Set the target's shortname to
13362 record_full_shortname.
13363 (init_record_full_core_ops): Set the target's shortname to
13364 record_full_core_shortname.
13365 * record-full.h (record_full_is_used): Declare.
13366 * record.c (find_record_target): Make extern.
13367 (record_preopen): New function.
13368 * record.h (RECORD_IS_USED): Delete macro.
13369 (find_record_target, record_preopen): Declare functions.
13370
13371 2014-01-14 Yao Qi <yao@codesourcery.com>
13372
13373 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13374 'len''s type to ULONGEST.
13375 (core_xfer_shared_libraries_aix): Likewise.
13376 * gdbarch.c, gdbarch.h: Regenerated.
13377 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13378 Change type of 'len' to ULONGEST.
13379 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13380 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13381
13382 2014-01-14 Yao Qi <yao@codesourcery.com>
13383
13384 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13385 type of 'len' to ULONGEST.
13386 (linux_xfer_osdata_processgroups): Likewise.
13387 (linux_xfer_osdata_threads): Likewise.
13388 (linux_xfer_osdata_fds): Likewise.
13389 (linux_xfer_osdata_isockets): Likewise.
13390 (linux_xfer_osdata_shm): Likewise.
13391 (linux_xfer_osdata_sem): Likewise.
13392 (linux_xfer_osdata_msg): Likewise.
13393 (linux_common_xfer_osdata): Likewise.
13394 (struct osdata_type) <getter>: Likewise.
13395 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13396 the declaration.
13397
13398 2014-01-14 Yao Qi <yao@codesourcery.com>
13399
13400 * target.h (target_xfer_partial_ftype): Update.
13401 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13402 ULONGEST.
13403 * aix-thread.c (aix_thread_xfer_partial): Change type of
13404 argument 'len' to ULONGEST.
13405 * auxv.c (procfs_xfer_auxv): Likewise.
13406 (ld_so_xfer_auxv): Likewise.
13407 (memory_xfer_auxv): Likewise.
13408 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13409 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13410 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13411 * corelow.c (core_xfer_partial): Likewise.
13412 * ctf.c (ctf_xfer_partial): Likewise.
13413 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13414 '%u'.
13415 (darwin_read_dyld_info): Likewise.
13416 (darwin_xfer_partial): Likewise.
13417 * exec.c (section_table_xfer_memory_partial): Likewise.
13418 (exec_xfer_partial): Likewise.
13419 * exec.h (section_table_xfer_memory_partial): Update
13420 declaration.
13421 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13422 instead of plongest.
13423 (gnu_xfer_partial): Likewise.
13424 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13425 (ia64_hpux_xfer_solib_got): Likewise.
13426 (ia64_hpux_xfer_partial): Likewise.
13427 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13428 * inf-ptrace.c (inf_ptrace_xfer_partial):
13429 * inf-ttrace.c (inf_ttrace_xfer_partial):
13430 * linux-nat.c (linux_xfer_siginfo): Likewise.
13431 (linux_nat_xfer_partial): Likewise.
13432 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13433 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13434 * monitor.c (monitor_xfer_memory): Likewise.
13435 (monitor_xfer_partial): Likewise.
13436 * procfs.c (procfs_xfer_partial): Likewise.
13437 * record-full.c (record_full_xfer_partial): Likewise.
13438 (record_full_core_xfer_partial): Likewise.
13439 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13440 instead of plongest.
13441 (gdbsim_xfer_partial): Likewise.
13442 * remote.c (remote_xfer_partial): Likewise.
13443 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13444 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13445 declaration.
13446 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13447 (rs6000_xfer_shared_libraries): Likewise.
13448 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13449 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13450 (sparc_xfer_partial): Likewise.
13451 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13452 (spu_xfer_partial): Likewise.
13453 * spu-multiarch.c (spu_xfer_partial): Likewise.
13454 * target.c (target_read_live_memory): Likewise.
13455 (memory_xfer_live_readonly_partial): Likewise.
13456 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13457 (target_xfer_partial, default_xfer_partial): Likewise.
13458 (current_xfer_partial): Likewise.
13459 * tracepoint.c (tfile_xfer_partial): Likewise.
13460 * windows-nat.c (windows_xfer_memory): Likewise. Call
13461 pulongest instead of plongest.
13462 (windows_xfer_partial): Likewise.
13463 (windows_xfer_shared_libraries): Likewise.
13464
13465 2014-01-14 Yao Qi <yao@codesourcery.com>
13466
13467 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13468 target_xfer_partial_ftype.
13469
13470 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13471
13472 PR python/15464
13473 PR python/16113
13474 * valops.c (value_struct_elt_bitpos): New function
13475 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13476 object to 'None' if the field name is an empty string ("").
13477 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13478 attribute to look for a field when 'name' is 'None'.
13479 (get_field_type): New function
13480
13481 2014-01-13 Doug Evans <dje@google.com>
13482
13483 PR symtab/16426
13484 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13485 (try_open_dwop_file): Ditto.
13486 * gdb_bfd.c: #include "vec.h".
13487 (bfdp): New typedef.
13488 (struct gdb_bfd_data): New member included_bfds.
13489 (gdb_bfd_unref): Unref all included bfds.
13490 (gdb_bfd_record_inclusion): New function.
13491 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13492
13493 2014-01-13 Tom Tromey <tromey@redhat.com>
13494
13495 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13496
13497 2014-01-13 Tom Tromey <tromey@redhat.com>
13498
13499 * defs.h (use_windows): Remove.
13500 * gdb.c (main): Update.
13501 * main.c (captured_main, gdb_main): Update.
13502 * main.h (struct captured_main_args) <use_windows>: Remove.
13503 * top.c (use_windows): Remove.
13504
13505 2014-01-13 Tom Tromey <tromey@redhat.com>
13506
13507 * defs.h (deprecated_flush_hook): Remove.
13508
13509 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13510
13511 PR threads/16216
13512 * linux-thread-db.c (try_thread_db_load): Add parameter
13513 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13514 (try_thread_db_load_from_pdir_1): Move it there from here.
13515 (try_thread_db_load_from_sdir): Update caller.
13516 (try_thread_db_load_from_dir): Move it there from here.
13517
13518 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13519
13520 * regformats/regdat.sh: Always rewrite the register file.
13521
13522 2014-01-13 Pedro Alves <palves@redhat.com>
13523
13524 * Makefile.in (CHECK_HEADERS): New variable.
13525 (check-headers:): New rule.
13526
13527 2014-01-13 Tom Tromey <tromey@redhat.com>
13528
13529 * cli/cli-setshow.c (do_set_command): Update.
13530 * defs.h (deprecated_set_hook): Remove.
13531 * top.c (deprecated_set_hook): Remove.
13532
13533 2014-01-13 Pedro Alves <palves@redhat.com>
13534
13535 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13536 the tracepoint if the PC is a pseudo-register.
13537
13538 2014-01-13 Tom Tromey <tromey@redhat.com>
13539
13540 * defs.h (XCALLOC): Remove.
13541 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13542 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13543 * dwarf2loc.c (allocate_piece_closure): Likewise.
13544 * elfread.c (elf_symfile_segments): Likewise.
13545 (elf_symfile_segments): Likewise.
13546 * gdbtypes.c (copy_type_recursive): Likewise.
13547 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13548 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13549 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13550 XCALLOC.
13551 * mt-tdep.c (mt_gdbarch_init): Likewise.
13552 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13553 XCALLOC.
13554 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13555 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13556 * registry.c (registry_alloc_data): Likewise.
13557 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13558 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13559 * serial.c (serial_fdopen_ops): Likewise.
13560 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13561 XCALLOC.
13562 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13563 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13564 not XCALLOC.
13565
13566 2014-01-13 Tom Tromey <tromey@redhat.com>
13567
13568 * defs.h (XMALLOC): Remove.
13569 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13570 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13571 * cli-out.c (struct ui_out *): Likewise.
13572 * cli/cli-dump.c (add_dump_command): Likewise.
13573 (add_dump_command): Likewise.
13574 * complaints.c (get_complaints): Likewise.
13575 (find_complaint): Likewise.
13576 * dwarf2-frame.c (execute_cfa_program): Likewise.
13577 * dwarf2read.c (abbrev_table_read_table): Likewise.
13578 * gdbarch.sh: Likewise.
13579 * gdbarch.c: Rebuild.
13580 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13581 * interps.c (interp_new): Likewise.
13582 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13583 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13584 * mi/mi-console.c (mi_console_file_new): Likewise.
13585 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13586 * mi/mi-out.c (mi_out_new): Likewise.
13587 * mi/mi-parse.c (mi_parse): Likewise.
13588 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13589 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13590 * observer.c (xalloc_observer_list_node): Likewise.
13591 * regcache.c (regcache_xmalloc_1): Likewise.
13592 * reggroups.c (reggroup_new): Likewise.
13593 (_initialize_reggroup): Likewise.
13594 * registry.c (register_data_with_cleanup): Likewise.
13595 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13596 * ser-base.c (serial_ttystate): Likewise.
13597 * ser-mingw.c (make_pipe_state): Likewise.
13598 * ser-pipe.c (pipe_open): Likewise.
13599 * serial.c (serial_open): Likewise.
13600 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13601 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13602 (tui_alloc_win_info): Likewise.
13603 (tui_add_content_elements): Likewise.
13604 * tui/tui-file.c (tui_file_new): Likewise.
13605 * tui/tui-out.c (tui_out_new): Likewise.
13606 * ui-file.c (mem_file_new): Likewise.
13607 * ui-out.c (push_level): Likewise.
13608 (make_cleanup_ui_out_end): Likewise.
13609 (append_header_to_list): Likewise.
13610 (ui_out_new): Likewise.
13611 * user-regs.c (user_reg_add_builtin): Likewise.
13612
13613 2014-01-13 Tom Tromey <tromey@redhat.com>
13614
13615 * defs.h (XZALLOC): Remove.
13616 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13617 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13618 (get_ada_tasks_inferior_data): Likewise.
13619 * auto-load.c (get_auto_load_pspace_data): Likewise.
13620 * auxv.c (get_auxv_inferior_data): Likewise.
13621 * bfd-target.c (target_bfd_reopen): Likewise.
13622 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13623 (deprecated_insert_raw_breakpoint): Likewise.
13624 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13625 * corelow.c (core_open): Likewise.
13626 * darwin-nat.c (darwin_check_new_threads): Likewise.
13627 (darwin_attach_pid): Likewise.
13628 * dummy-frame.c (dummy_frame_push): Likewise.
13629 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13630 * dwarf2loc.c (allocate_piece_closure): Likewise.
13631 * elfread.c (elf_symfile_segments): Likewise.
13632 * eval.c (ptrmath_type_p): Likewise.
13633 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13634 * gdbtypes.c (alloc_type_arch): Likewise.
13635 (alloc_type_instance): Likewise.
13636 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13637 * inf-child.c (inf_child_can_use_agent): Likewise.
13638 * inflow.c (get_inflow_inferior_data): Likewise.
13639 * infrun.c (save_infcall_suspend_state): Likewise.
13640 * jit.c (jit_reader_load): Likewise.
13641 (get_jit_objfile_data): Likewise.
13642 (get_jit_program_space_data): Likewise.
13643 (jit_object_open_impl): Likewise.
13644 (jit_symtab_open_impl): Likewise.
13645 (jit_block_open_impl): Likewise.
13646 (jit_frame_sniffer): Likewise.
13647 * linux-fork.c (add_fork): Likewise.
13648 * maint.c (make_command_stats_cleanup): Likewise.
13649 * objfiles.c (get_objfile_pspace_data): Likewise.
13650 * opencl-lang.c (struct lval_closure): Likewise.
13651 * osdata.c (osdata_start_osdata): Likewise.
13652 * progspace.c (new_address_space): Likewise.
13653 (add_program_space): Likewise.
13654 * remote-sim.c (get_sim_inferior_data): Likewise.
13655 * sh-tdep.c (sh_gdbarch_init): Likewise.
13656 * skip.c (Ignore): Likewise.
13657 (skip_delete_command): Likewise.
13658 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13659 (library_list_start_library): Likewise.
13660 (solib_aix_current_sos): Likewise.
13661 * solib-darwin.c (get_darwin_info): Likewise.
13662 (darwin_current_sos): Likewise.
13663 * solib-dsbt.c (get_dsbt_info): Likewise.
13664 * solib-ia64-hpux.c (new_so_list): Likewise.
13665 (ia64_hpux_get_solib_linkage_addr): Likewise.
13666 * solib-spu.c (append_ocl_sos): Likewise.
13667 (spu_current_sos): Likewise.
13668 * solib-svr4.c (get_svr4_info): Likewise.
13669 (svr4_keep_data_in_core): Likewise.
13670 (library_list_start_library): Likewise.
13671 (svr4_default_sos): Likewise.
13672 (svr4_read_so_list): Likewise.
13673 * solib-target.c (library_list_start_library): Likewise.
13674 (solib_target_current_sos): Likewise.
13675 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13676 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13677 * symfile.c (default_symfile_segments): Likewise.
13678 * target-descriptions.c (tdesc_data_init): Likewise.
13679 (tdesc_create_reg): Likewise.
13680 (struct tdesc_type *): Likewise.
13681 (tdesc_create_vector): Likewise.
13682 (tdesc_set_struct_size): Likewise.
13683 (struct tdesc_type *): Likewise.
13684 (tdesc_free_feature): Likewise.
13685 (tdesc_create_feature): Likewise.
13686 * windows-nat.c (windows_add_thread): Likewise.
13687 (windows_make_so): Likewise.
13688 * xml-support.c (gdb_xml_body_text): Likewise.
13689 (gdb_xml_create_parser_and_cleanup): Likewise.
13690 (xml_process_xincludes): Likewise.
13691 * xml-syscall.c (allocate_syscalls_info): Likewise.
13692 (syscall_create_syscall_desc): Likewise.
13693
13694 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13695
13696 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13697 function, with code from i386_stap_parse_special_token.
13698 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13699 (i386_stap_parse_special_token): Move code to the two functions
13700 above; simplify it.
13701
13702 2014-01-09 Pedro Alves <palves@redhat.com>
13703 Hui Zhu <hui@codesourcery.com>
13704
13705 PR gdb/16101
13706 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13707 bp_err_string. Don't mark the location shlib_disabled if the
13708 error thrown wasn't a generic or memory error. Catch errors
13709 thrown while inserting breakpoints in overlayed code. Output
13710 error message of software breakpoints.
13711 * remote.c (remote_insert_breakpoint): If this breakpoint has
13712 target-side commands but this stub doesn't support Z0 packets,
13713 throw NOT_SUPPORTED_ERROR error.
13714 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13715 * target.h (target_insert_breakpoint): Extend comment.
13716 (target_insert_hw_breakpoint): Add comment.
13717
13718 2014-01-08 Pedro Alves <palves@redhat.com>
13719
13720 * remote.c (remote_add_thread): Add threads silently if starting
13721 up.
13722 (remote_notice_new_inferior): If in all-stop, and starting up,
13723 don't call notice_new_inferior.
13724 (get_current_thread): New function, factored out from ...
13725 (add_current_inferior_and_thread): ... this. Adjust.
13726 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13727 found any thread, then select the remote's current thread as GDB's
13728 current thread too.
13729
13730 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13731
13732 * NEWS: Create a new section for the next release branch.
13733 Rename the section of the current branch, now that it has
13734 been cut.
13735
13736 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13737
13738 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13739 * version.in: Bump version to 7.7.50.DATE-cvs.
13740
13741 2014-01-08 Yao Qi <yao@codesourcery.com>
13742
13743 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13744 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13745 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13746
13747 2014-01-08 Yao Qi <yao@codesourcery.com>
13748
13749 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13750 return value of bfd_get_filename to symbol_file_add_from_bfd.
13751
13752 2014-01-08 Pierre Muller <muller@sourceware.org>
13753
13754 Fix PR16201.
13755 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13756 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13757 to prim_record_mininal_symbol_and_info.
13758 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13759 in call to prim_record_minimal_symbol_and_info.
13760 (read_pe_exported_syms): Set index field of section_data.
13761
13762 2014-01-07 Andrew Pinski <apinski@cavium.com>
13763
13764 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13765 * features/aarch64.c: Regenerate.
13766
13767 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13768
13769 * target.c (return_null): Define.
13770 (update_current_target): Use it instead of return_zero for
13771 functions that return a pointer.
13772
13773 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13774
13775 * source.c (add_path): Fix check for duplicated paths in the previously
13776 included paths.
13777
13778 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13779
13780 * ada-lang.c: Remove duplicated include statements.
13781 * alphabsd-nat.c: Ditto.
13782 * amd64-darwin-tdep.c: Ditto.
13783 * amd64fbsd-nat.c: Ditto.
13784 * auto-load.c: Ditto.
13785 * ax-gdb.c: Ditto.
13786 * breakpoint.c: Ditto.
13787 * dbxread.c: Ditto.
13788 * fork-child.c: Ditto.
13789 * gdb_usleep.c: Ditto.
13790 * i386-darwin-tdep.c: Ditto.
13791 * i386fbsd-nat.c: Ditto.
13792 * infcmd.c: Ditto.
13793 * inferior.c: Ditto.
13794 * jv-lang.c: Ditto.
13795 * linux-nat.c: Ditto.
13796 * linux-tdep.c: Ditto.
13797 * m68kbsd-nat.c: Ditto.
13798 * m68klinux-nat.c: Ditto.
13799 * microblaze-tdep.c: Ditto.
13800 * mips-linux-tdep.c: Ditto.
13801 * mn10300-tdep.c: Ditto.
13802 * nto-tdep.c: Ditto.
13803 * opencl-lang.c: Ditto.
13804 * osdata.c: Ditto.
13805 * printcmd.c: Ditto.
13806 * regcache.c: Ditto.
13807 * remote-m32r-sdi.c: Ditto.
13808 * remote.c: Ditto.
13809 * symfile.c: Ditto.
13810 * symtab.c: Ditto.
13811 * tilegx-linux-nat.c: Ditto.
13812 * tilegx-tdep.c: Ditto.
13813 * tracepoint.c: Ditto.
13814 * valops.c: Ditto.
13815 * vaxbsd-nat.c: Ditto.
13816 * windows-nat.c: Ditto.
13817 * xtensa-tdep.c: Ditto.
13818
13819 2014-01-07 Yao Qi <yao@codesourcery.com>
13820
13821 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13822
13823 2014-01-07 Yao Qi <yao@codesourcery.com>
13824 Joel Brobecker <brobecker@adacore.com>
13825
13826 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13827 (pdc_write_regs): Likewise.
13828 (fetch_regs_kernel_thread): Likewise.
13829 (store_regs_kernel_thread): Likewise.
13830
13831 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13832
13833 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13834 tagged type objects to their actual type.
13835
13836 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13837
13838 * ada-valprint.c (print_field_values): Add "language" parameter.
13839 Update calls to print_field_values and print_variant_part.
13840 Pass new parameter "language" in call to val_print instead
13841 of "current_language". Replace call to ada_val_print by call
13842 to val_print.
13843 (print_variant_part): Add "language" parameter.
13844 (ada_val_print_struct_union): Update call to print_field_values.
13845
13846 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13847
13848 * ada-valprint.c (ui_memcpy): Delete.
13849 (ada_print_floating): Update documentation. Add empty line
13850 between between function documentation and implementation.
13851 Delete variable "buffer". Use ui_file_xstrdup in place of
13852 ui_file_put. Minor adjustments following this change.
13853
13854 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13855
13856 * ada-valprint.c (ada_val_print_string): New function,
13857 extracted from ada_val_print_array.
13858 (ada_val_print_array): Replace extracted code by call
13859 to ada_val_print_string followed by a return. Move
13860 "else" branch to the function's top block.
13861
13862 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13863
13864 * ada-valprint.c (ada_val_print_array): Move implementation
13865 down. Rename parameter "offset" and "val" into "offset_aligned"
13866 and "original_value" respectively. Add parameter "offset".
13867
13868 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13869
13870 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13871 re-organizing the code. Change the "???" message printed
13872 when target type is a TYPE_CODE_UNDEF into
13873 "<ref to undefined type>".
13874
13875 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13876
13877 * ada-valprint.c (print_record): Delete, implementation inlined...
13878 (ada_val_print_struct_union): ... here. Remove call to
13879 ada_check_typedef in inlined implementation.
13880
13881 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13882
13883 * ada-valprint.c (ada_val_print_gnat_array): New function,
13884 extracted from ada_val_print_1;
13885 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13886 (ada_val_print_flt, ada_val_print_struct_union)
13887 (ada_val_print_ref): Likewise.
13888 (ada_val_print_1): Delete variables i and elttype.
13889 Replace extracted-out code by call to corresponding
13890 new functions.
13891
13892 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13893
13894 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13895
13896 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13897
13898 * ada-valprint.c (ada_val_print_1): Replace calls to
13899 ada_val_print_1 by calls to val_print.
13900
13901 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13902
13903 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13904 Update calls to self accordingly. Replace calls to c_val_print
13905 by calls to val_print.
13906
13907 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13908
13909 * ada-valprint.c (print_record): Delete declaration.
13910 (adjust_type_signedness, ada_val_print_1): Likewise.
13911 (ada_val_print): Move function implementation down.
13912 (print_variant_part, print_field_values, print_record):
13913 Move function implementation up.
13914
13915 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13916
13917 * python/py-type.c (typy_get_name): New function.
13918 (type_object_getset): Add entry for attribute "name".
13919 * NEWS: Add entry mentioning this new attribute.
13920
13921 2014-01-07 Yao Qi <yao@codesourcery.com>
13922
13923 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13924 statement.
13925
13926 2014-01-07 Yao Qi <yao@codesourcery.com>
13927
13928 * gnu-nat.c (info_port_rights): Add qualifier const to
13929 argument args.
13930
13931 2014-01-07 Yao Qi <yao@codesourcery.com>
13932
13933 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13934
13935 2014-01-07 Yao Qi <yao@codesourcery.com>
13936
13937 * gnu-nat.c (make_inf) Update declaration.
13938 (make_inf): Make it static.
13939 (inf_set_traced): Likewise.
13940 (inf_port_to_thread, inf_task_died_status): Likewise.
13941
13942 2014-01-07 Yao Qi <yao@codesourcery.com>
13943
13944 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13945
13946 2014-01-07 Yao Qi <yao@codesourcery.com>
13947
13948 * gnu-nat.c (_initialize_gnu_nat): Declare.
13949
13950 2014-01-07 Yao Qi <yao@codesourcery.com>
13951
13952 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13953 'enum bfd_endian'.
13954 (struct gdbarch_info) <byte_order>: Change type to
13955 'enum bfd_endian'.
13956 <byte_order_for_code>: Likewise.
13957 * gdbarch.c, gdbarch.h: Regenerated.
13958
13959 2014-01-06 Sasha Smundak <asmundak@google.com>
13960
13961 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13962
13963 2014-01-06 Tom Tromey <tromey@redhat.com>
13964
13965 * doublest.c (convert_doublest_to_floatformat): Use const, not
13966 CONST.
13967 * somread.c (som_symtab_read): Likewise.
13968
13969 2014-01-07 Hui Zhu <hui@codesourcery.com>
13970
13971 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13972 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13973 (gdb_bfd_fopen): Ditto.
13974 (gdb_bfd_openr): Ditto.
13975 (gdb_bfd_openw): Ditto.
13976 (gdb_bfd_openr_iovec): Ditto.
13977 (gdb_bfd_fdopenr): Ditto.
13978 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13979 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13980 with xstrdup.
13981 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13982 with xstrdup.
13983 * symfile-mem.c (symbol_file_add_from_memory): Removed
13984 gdb_bfd_stash_filename.
13985
13986 2014-01-03 Doug Evans <dje@google.com>
13987
13988 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13989 output.
13990
13991 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13992
13993 Update year range in copyright notice of all files.
13994
13995 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13996
13997 * top.c (print_gdb_version): Set copyright year to 2014.
13998
13999 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14000
14001 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14002
14003 For older changes see ChangeLog-2013.
14004 \f
14005 Local Variables:
14006 mode: change-log
14007 left-margin: 8
14008 fill-column: 74
14009 version-control: never
14010 coding: utf-8
14011 End:
This page took 0.390722 seconds and 5 git commands to generate.