Merge bfd_find_nearest_line variants
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ebb8ece2
SC
12014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2
3 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
4 as non-trivial.
5
82c48ac7
SC
62014-10-15 Siva Chandra Reddy <sivachandra@google.com>
7
8 PR c++/13403
9 PR c++/15154
10 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
11 with qualified args.
12
c40cc657
JB
132014-10-14 Joel Brobecker <brobecker@adacore.com>
14
15 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
16 of the case where the second operand is a pointer.
17 <BINOP_SUB>: Likewise.
18
0ea5cda8
SDJ
192014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
20
21 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
22 only if it is not NULL.
23 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
24 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
25 (struct probe_ops) <clear_semaphore>: Likewise.
26 * tracepoint.c (start_tracing): Call set_semaphore only if it is
27 not NULL.
28 (stop_tracing): Likewise, for clear_semaphore.
29
f7088df3
SDJ
302014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
31
32 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
33 using language_c, instead of current_language.
34
4e1bbde0
DE
352014-10-13 Doug Evans <dje@google.com>
36
6ff5a0f6 37 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 38 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 39 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
40 (pspy_new, pspace_to_pspace_object): Call it.
41
c780cc2f
JK
422014-10-13 Miroslav Franc <mfranc@redhat.com>
43 Jan Kratochvil <jan.kratochvil@redhat.com>
44
45 Fix "save breakpoints" for "catch" command.
46 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
47 newline.
48
99894e11
JK
492014-10-12 Miroslav Franc <mfranc@redhat.com>
50
51 Fix "save breakpoints" for "disable $bpnum" command.
52 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
53
3831839c
PA
542014-10-10 Pedro Alves <palves@redhat.com>
55
56 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
57 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
58 (HFILES_NO_SRCDIR): Remove solib-irix.h.
59 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
60 and been removed.
61 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
62 * configure.ac: Remove references to IRIX.
63 * configure.host: Add *-*-irix* to the obsolete hosts section.
64 Remove all other references to irix.
65 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
66 Delete files.
67
cc3afae2
AKA
682014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
69
70 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
71 isn't valid, release the tdesc arch data and return NULL.
72
cdfa0b0a
PA
732014-10-10 Pedro Alves <palves@redhat.com>
74
75 * linux-tdep.c: Include observer.h.
76 (linux_inferior_data): New global.
77 (struct linux_info): New structure.
78 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
79 (get_linux_inferior_data): New functions.
80 (linux_vsyscall_range): Rename to ...
81 (linux_vsyscall_range_raw): ... this.
82 (linux_vsyscall_range): New function; handles caching.
83 (_initialize_linux_tdep): Register linux_inferior_data. Install
84 inferior_exit and inferior_appeared observers.
85
8b9a549d
PA
862014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
87 Pedro Alves <palves@redhat.com>
88
89 PR symtab/14466
90 * solib-svr4.c (svr4_read_so_list): Rename to ...
91 (svr4_current_sos_1): ... this and change the function comment.
92 (svr4_current_sos): New function.
93
3437254d
PA
942014-10-10 Pedro Alves <palves@redhat.com>
95
96 * arch-utils.c (default_vsyscall_range): New function.
97 * arch-utils.h (default_vsyscall_range): New declaration.
98 * gdbarch.sh (vsyscall_range): New hook.
99 * gdbarch.h, gdbarch.c: Regenerate.
100 * linux-tdep.c (linux_vsyscall_range): New function.
101 (linux_init_abi): Install linux_vsyscall_range as
102 vsyscall_range gdbarch hook.
103 * memrange.c (address_in_mem_range): New function.
104 * memrange.h (address_in_mem_range): New declaration.
105 * symfile-mem.c (find_vdso_size): Delete function.
106 (add_vsyscall_page): Use gdbarch_vsyscall_range.
107
31cc0b80
PA
1082014-10-10 Pedro Alves <palves@redhat.com>
109
110 * infrun.c (normal_stop): Fix typo in comment.
111
3e3286a2
SDJ
1122014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
113
114 PR tdep/9390
115 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
116 typo when using logical AND to determine instruction type.
117
fcbdedf8
YQ
1182014-10-09 Yao Qi <yao@codesourcery.com>
119
120 * infrun.c (handle_signal_stop): Remove local variable
121 'printed'.
122
db984616
SS
1232014-10-08 Stan Shebs <stan@codesourcery.com>
124
125 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
126
3ba37e6c
GB
1272014-10-08 Gary Benson <gbenson@redhat.com>
128
129 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
130
a442d071
GB
1312014-10-08 Gary Benson <gbenson@redhat.com>
132
133 * common/common-defs.h: Include common-exceptions.h.
134 * exceptions.h: Do not include common-exceptions.h.
135
6f1947e8
GB
1362014-10-08 Gary Benson <gbenson@redhat.com>
137
138 * common/common-defs.h: Include cleanups.h.
139 * common/common-exceptions.c: Do not include cleanups.h.
140 * utils.h: Likewise.
141
c765fdb9
GB
1422014-10-08 Gary Benson <gbenson@redhat.com>
143
144 * ada-lang.c: Do not include exceptions.h.
145 * ada-valprint.c: Likewise.
146 * amd64-tdep.c: Likewise.
147 * auto-load.c: Likewise.
148 * block.c: Likewise.
149 * break-catch-throw.c: Likewise.
150 * breakpoint.c: Likewise.
151 * btrace.c: Likewise.
152 * c-lang.c: Likewise.
153 * cli/cli-cmds.c: Likewise.
154 * cli/cli-interp.c: Likewise.
155 * cli/cli-script.c: Likewise.
156 * completer.c: Likewise.
157 * corefile.c: Likewise.
158 * corelow.c: Likewise.
159 * cp-abi.c: Likewise.
160 * cp-support.c: Likewise.
161 * cp-valprint.c: Likewise.
162 * darwin-nat.c: Likewise.
163 * dwarf2-frame-tailcall.c: Likewise.
164 * dwarf2-frame.c: Likewise.
165 * dwarf2loc.c: Likewise.
166 * dwarf2read.c: Likewise.
167 * eval.c: Likewise.
168 * event-loop.c: Likewise.
169 * event-top.c: Likewise.
170 * f-valprint.c: Likewise.
171 * frame-unwind.c: Likewise.
172 * frame.c: Likewise.
173 * gdbtypes.c: Likewise.
174 * gnu-v2-abi.c: Likewise.
175 * gnu-v3-abi.c: Likewise.
176 * guile/scm-auto-load.c: Likewise.
177 * guile/scm-breakpoint.c: Likewise.
178 * guile/scm-cmd.c: Likewise.
179 * guile/scm-frame.c: Likewise.
180 * guile/scm-lazy-string.c: Likewise.
181 * guile/scm-param.c: Likewise.
182 * guile/scm-symbol.c: Likewise.
183 * guile/scm-type.c: Likewise.
184 * hppa-hpux-tdep.c: Likewise.
185 * i386-tdep.c: Likewise.
186 * inf-loop.c: Likewise.
187 * infcall.c: Likewise.
188 * infcmd.c: Likewise.
189 * infrun.c: Likewise.
190 * interps.c: Likewise.
191 * interps.h: Likewise.
192 * jit.c: Likewise.
193 * linespec.c: Likewise.
194 * linux-nat.c: Likewise.
195 * linux-thread-db.c: Likewise.
196 * m32r-rom.c: Likewise.
197 * main.c: Likewise.
198 * memory-map.c: Likewise.
199 * mi/mi-cmd-break.c: Likewise.
200 * mi/mi-cmd-stack.c: Likewise.
201 * mi/mi-interp.c: Likewise.
202 * mi/mi-main.c: Likewise.
203 * monitor.c: Likewise.
204 * nto-procfs.c: Likewise.
205 * objc-lang.c: Likewise.
206 * p-valprint.c: Likewise.
207 * parse.c: Likewise.
208 * ppc-linux-tdep.c: Likewise.
209 * printcmd.c: Likewise.
210 * probe.c: Likewise.
211 * python/py-auto-load.c: Likewise.
212 * python/py-breakpoint.c: Likewise.
213 * python/py-cmd.c: Likewise.
214 * python/py-finishbreakpoint.c: Likewise.
215 * python/py-frame.c: Likewise.
216 * python/py-framefilter.c: Likewise.
217 * python/py-function.c: Likewise.
218 * python/py-gdb-readline.c: Likewise.
219 * python/py-inferior.c: Likewise.
220 * python/py-infthread.c: Likewise.
221 * python/py-lazy-string.c: Likewise.
222 * python/py-linetable.c: Likewise.
223 * python/py-param.c: Likewise.
224 * python/py-prettyprint.c: Likewise.
225 * python/py-symbol.c: Likewise.
226 * python/py-type.c: Likewise.
227 * python/py-value.c: Likewise.
228 * python/python-internal.h: Likewise.
229 * python/python.c: Likewise.
230 * record-btrace.c: Likewise.
231 * record-full.c: Likewise.
232 * regcache.c: Likewise.
233 * remote-fileio.c: Likewise.
234 * remote-mips.c: Likewise.
235 * remote.c: Likewise.
236 * rs6000-aix-tdep.c: Likewise.
237 * rs6000-nat.c: Likewise.
238 * skip.c: Likewise.
239 * solib-darwin.c: Likewise.
240 * solib-dsbt.c: Likewise.
241 * solib-frv.c: Likewise.
242 * solib-ia64-hpux.c: Likewise.
243 * solib-spu.c: Likewise.
244 * solib-svr4.c: Likewise.
245 * solib.c: Likewise.
246 * spu-tdep.c: Likewise.
247 * stack.c: Likewise.
248 * stap-probe.c: Likewise.
249 * symfile-mem.c: Likewise.
250 * symmisc.c: Likewise.
251 * target.c: Likewise.
252 * thread.c: Likewise.
253 * top.c: Likewise.
254 * tracepoint.c: Likewise.
255 * tui/tui-interp.c: Likewise.
256 * typeprint.c: Likewise.
257 * utils.c: Likewise.
258 * valarith.c: Likewise.
259 * valops.c: Likewise.
260 * valprint.c: Likewise.
261 * value.c: Likewise.
262 * varobj.c: Likewise.
263 * windows-nat.c: Likewise.
264 * xml-support.c: Likewise.
265
484933d1
MR
2662014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
267
268 * mips-tdep.c (add_offset_16): Rewrite to implement what the
269 name implies.
270 (extended_mips16_next_pc): Update accordingly.
271
ab50adb6
MR
2722014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
273
274 * mips-tdep.c (mips16_instruction_is_compact_branch): New
275 function.
276 (micromips_instruction_is_compact_branch): Likewise.
277 (mips16_scan_prologue): Terminate scanning upon seeing a branch
278 or a compact jump, reaching a jump delay slot, or seeing a
279 second non-prologue instruction.
280 (micromips_scan_prologue): Also terminate scanning upon seeing a
281 compact branch or jump, or reaching a branch or jump delay slot.
282 (mips32_scan_prologue): Terminate scanning upon reaching a branch
283 or jump delay slot, or seeing a second non-prologue instruction.
284 (mips32_instruction_has_delay_slot): Retain instruction
285 examination code only, update arguments accordingly and move
286 instruction fetch pieces to...
287 (mips32_insn_at_pc_has_delay_slot): ... this new function.
288 (micromips_instruction_has_delay_slot): Likewise and to...
289 (micromips_insn_at_pc_has_delay_slot): ... this new function.
290 (mips16_instruction_has_delay_slot): Likewise and to...
291 (mips16_insn_at_pc_has_delay_slot): ... this new function.
292 (mips_single_step_through_delay): Update accordingly.
293 (mips_adjust_breakpoint_address): Likewise.
294
ae790652
MR
2952014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
296
297 * mips-tdep.c (micromips_instruction_has_delay_slot): When
298 !mustbe32 also return 1 for 32-bit instructions.
299 (mips16_instruction_has_delay_slot): Likewise. Add an
300 explanatory comment.
301
9b807e7b
MR
3022014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
303
304 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
305 symbols special.
306
0d5ed153
MR
3072014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
308
309 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
310 update comments.
311 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
312 for the breakpoint's address. Don't preinitialize `placed_size'.
313 (insert_bp_location): Set `reqstd_address' rather than
314 `placed_address'.
315 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
316 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
317 address.
318 (bkpt_remove_location): Likewise.
319 (deprecated_insert_raw_breakpoint): Likewise.
320 (deprecated_remove_raw_breakpoint): Likewise.
321 (find_single_step_breakpoint): Likewise.
322 * mem-break.c (default_memory_insert_breakpoint): Use
323 `reqstd_address' for the breakpoint's address. Don't set
324 `placed_address' or `placed_size' if breakpoint contents couldn't
325 have been determined.
326 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
327 the breakpoint's address.
328 (remote_insert_hw_breakpoint): Likewise. Don't set
329 `placed_address' or `placed_size' if breakpoint couldn't have been
330 set.
331 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
332 `reqstd_address' for the breakpoint's address.
333 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
334 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
335 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
336 * microblaze-linux-tdep.c
337 (microblaze_linux_memory_remove_breakpoint): Likewise.
338 * monitor.c (monitor_insert_breakpoint): Likewise.
339 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
340 (procfs_insert_hw_breakpoint): Likewise.
341 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
342 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
343 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
344 * remote-mips.c (mips_insert_breakpoint): Likewise.
345 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
346
3e871532
LM
3472014-10-03 Luis Machado <lgustavo@codesourcery.com>
348
349 * valops.c (value_assign): Check for bit field assignments
350 before calling architecture-specific register value
351 conversion functions.
352
ec48dc8b
PM
3532014-10-03 Pierre Muller <muller@sourceware.org>
354
355 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
356
b57bacec
PA
3572014-10-02 Pedro Alves <palves@redhat.com>
358
359 * breakpoint.c (breakpoints_should_be_inserted_now): Use
360 threads_are_executing.
361 * breakpoint.h (breakpoints_should_be_inserted_now): Add
362 describing comment.
363 * gdbthread.h (threads_are_executing): Declare.
364 (handle_signal_stop) <random signals>: Don't print about the
365 signal here if stopping.
366 (end_stepping_range): Don't notify observers here.
367 (normal_stop): Update the thread list. If stopped by a random
368 signal or a stepping range ended, notify observers.
369 * thread.c (threads_executing): New global.
370 (init_thread_list): Clear 'threads_executing'.
371 (set_executing): Set or clear 'threads_executing'.
372 (threads_are_executing): New function.
373 (update_threads_executing): New function.
374 (update_thread_list): Use it.
375
13fd3ff3
PA
3762014-10-02 Pedro Alves <palves@redhat.com>
377
378 PR breakpoints/17431
379 * breakpoint.c (update_breakpoints_after_exec): Don't create
380 overlay, longjmp, std terminate nor exception breakpoints here.
381
32990ada
PA
3822014-10-02 Pedro Alves <palves@redhat.com>
383
384 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
385 Adjust comments.
386 * inferior.c (find_inferior_for_program_space): Give preference to
387 the current inferior.
388 * inferior.h (find_inferior_for_program_space): Update comment.
389 * progspace.c (switch_to_program_space_and_thread): Prefer the
390 current inferior if it's bound to the program space requested. If
391 the inferior found doesn't have a PID yet, don't bother looking up
392 a thread.
393 * progspace.h (switch_to_program_space_and_thread): Adjust
394 comment.
395 * thread.c (any_thread_of_process, any_live_thread_of_process):
396 Give preference to the current thread.
397
0fec99e8
PA
3982014-10-01 Pedro Alves <palves@redhat.com>
399
400 * breakpoint.c (insert_bp_location): Error out if inserting a
401 software breakpoint at a read-only address.
402 * target.c (memory_xfer_check_region): New function, factored out
403 from ...
404 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
405 ULONGEST.
406 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
407 against the memory region attributes.
408
2ddf4301
SM
4092014-10-01 Simon Marchi <simon.marchi@ericsson.com>
410
411 * NEWS: Announce new exit-code field in -list-thread-groups
412 output.
413 * inferior.c (exit_inferior_1): Don't clear exit code.
414 (inferior_appeared): Clear exit code.
415 * mi/mi-main.c (print_one_inferior): Add printing of the exit
416 code.
417
5fdeec1d
PA
4182014-10-01 Pedro Alves <palves@redhat.com>
419
420 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
421 GENERATED" along with emacs/vi read-only markers.
422 * regformats/aarch64.dat: Regenerate.
423 * regformats/arm-with-iwmmxt.dat: Regenerate.
424 * regformats/arm-with-neon.dat: Regenerate.
425 * regformats/arm-with-vfpv2.dat: Regenerate.
426 * regformats/arm-with-vfpv3.dat: Regenerate.
427 * regformats/i386/amd64-avx-linux.dat: Regenerate.
428 * regformats/i386/amd64-avx.dat: Regenerate.
429 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
430 * regformats/i386/amd64-avx512.dat: Regenerate.
431 * regformats/i386/amd64-linux.dat: Regenerate.
432 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
433 * regformats/i386/amd64-mpx.dat: Regenerate.
434 * regformats/i386/amd64.dat: Regenerate.
435 * regformats/i386/i386-avx-linux.dat: Regenerate.
436 * regformats/i386/i386-avx.dat: Regenerate.
437 * regformats/i386/i386-avx512-linux.dat: Regenerate.
438 * regformats/i386/i386-avx512.dat: Regenerate.
439 * regformats/i386/i386-linux.dat: Regenerate.
440 * regformats/i386/i386-mmx-linux.dat: Regenerate.
441 * regformats/i386/i386-mmx.dat: Regenerate.
442 * regformats/i386/i386-mpx-linux.dat: Regenerate.
443 * regformats/i386/i386-mpx.dat: Regenerate.
444 * regformats/i386/i386.dat: Regenerate.
445 * regformats/i386/x32-avx-linux.dat: Regenerate.
446 * regformats/i386/x32-avx.dat: Regenerate.
447 * regformats/i386/x32-avx512-linux.dat: Regenerate.
448 * regformats/i386/x32-avx512.dat: Regenerate.
449 * regformats/i386/x32-linux.dat: Regenerate.
450 * regformats/i386/x32.dat: Regenerate.
451 * regformats/microblaze-with-stack-protect.dat: Regenerate.
452 * regformats/mips-dsp-linux.dat: Regenerate.
453 * regformats/mips-linux.dat: Regenerate.
454 * regformats/mips64-dsp-linux.dat: Regenerate.
455 * regformats/mips64-linux.dat: Regenerate.
456 * regformats/nios2-linux.dat: Regenerate.
457 * regformats/rs6000/powerpc-32.dat: Regenerate.
458 * regformats/rs6000/powerpc-32l.dat: Regenerate.
459 * regformats/rs6000/powerpc-64l.dat: Regenerate.
460 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
461 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
462 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
463 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
464 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
465 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
466 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
467 * regformats/s390-linux32.dat: Regenerate.
468 * regformats/s390-linux32v1.dat: Regenerate.
469 * regformats/s390-linux32v2.dat: Regenerate.
470 * regformats/s390-linux64.dat: Regenerate.
471 * regformats/s390-linux64v1.dat: Regenerate.
472 * regformats/s390-linux64v2.dat: Regenerate.
473 * regformats/s390-te-linux64.dat: Regenerate.
474 * regformats/s390x-linux64.dat: Regenerate.
475 * regformats/s390x-linux64v1.dat: Regenerate.
476 * regformats/s390x-linux64v2.dat: Regenerate.
477 * regformats/s390x-te-linux64.dat: Regenerate.
478 * regformats/tic6x-c62x-linux.dat: Regenerate.
479 * regformats/tic6x-c62x.dat: Regenerate.
480 * regformats/tic6x-c64x-linux.dat: Regenerate.
481 * regformats/tic6x-c64x.dat: Regenerate.
482 * regformats/tic6x-c64xp-linux.dat: Regenerate.
483 * regformats/tic6x-c64xp.dat: Regenerate.
484
db74e4ba
PA
4852014-10-01 Pedro Alves <palves@redhat.com>
486
487 * features/Makefile: Update comments.
488 (XMLTOC): List all xml files we build C files from.
489 (clean-cfiles): New rule.
490
d63f2f84
PA
4912014-10-01 Pedro Alves <palves@redhat.com>
492
493 * features/i386/amd64-avx512-linux.c: Regenerate.
494 * features/i386/amd64-avx512.c: Regenerate.
495 * features/i386/x32-avx512-linux.c: Regenerate.
496 * features/i386/x32-avx512.c: Regenerate.
497
20ad026d
PA
4982014-10-01 Pedro Alves <palves@redhat.com>
499
500 * features/Makefile (WHICH): Remove arm-with-m,
501 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
502
acc9fe45
PA
5032014-10-01 Pedro Alves <palves@redhat.com>
504
505 * features/Makefile (clean): New rule.
506
e001e535
PA
5072014-10-01 Pedro Alves <palves@redhat.com>
508
509 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
510 (zmm14h): Add missing end quotes.
511
bdc14417
PA
5122014-10-01 Pedro Alves <palves@redhat.com>
513
514 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
515 * features/aarch64.c: Regenerate.
516
d83ad864
DB
5172014-09-30 Don Breazeal <donb@codesourcery.com>
518
519 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
520 code so as to work with follow_fork_inferior.
521 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
522 (inf_ttrace_create_inferior): Remove reference to
523 inf_ttrace_vfork_ppid.
524 (inf_ttrace_attach): Ditto.
525 (inf_ttrace_detach): Ditto.
526 (inf_ttrace_kill): Use current_inferior instead of
527 inf_ttrace_vfork_ppid.
528 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
529 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
530 inferior away from the parent.
531 * infrun.c (follow_fork): Call follow_fork_inferior instead of
532 target_follow_fork.
533 (follow_fork_inferior): New function.
534 (follow_inferior_reset_breakpoints): Make function static.
535 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
536 * linux-nat.c (linux_child_follow_fork): Move target-independent
537 code to infrun.c:follow_fork_inferior.
538
29082443
AA
5392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
540
541 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
542 * gdbarch.c: Regenerate.
543 * gdbarch.h: Likewise.
544 * corelow.c (sniff_core_bfd): Drop presence check for deleted
545 gdbarch method 'regset_from_core_section'.
546 (get_core_register_section): Remove handling for the case that
547 regset == NULL and regset_from_core_section is defined.
548 (get_core_registers): Drop check for deleted method.
549 * procfs.c (procfs_do_thread_registers): Adjust comment.
550
f968fe80
AA
5512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
552
553 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
554 (linux_nat_make_corefile_notes): Remove.
555 (linux_target_install_ops): Do not set target method
556 'make_corefile_notes'.
557 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
558 Remove field.
559 (linux_corefile_thread_callback): Instead of args->collect, call
560 linux_collect_thread_registers.
561 (linux_make_corefile_notes): Remove 'collect' parameter. Return
562 NULL unless there is a regset iterator.
563 (linux_make_corefile_notes_1): Remove.
564 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
565 by linux_make_corefile_notes.
566 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
567
174ad59a
AA
5682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
569
570 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
571 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
572 Remove.
573 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
574
97094034
AA
5752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
576
577 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
578 (xtensa_iterate_over_regset_sections): New.
579 (xtensa_gdbarch_init): Adjust gdbarch initialization.
580
f73d3ce7
AA
5812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
582
583 * vax-tdep.c (vax_regset_from_core_section): Remove.
584 (vax_iterate_over_regset_sections): New.
585 (vax_gdbarch_init): Adjust gdbarch initialization.
586
cb24567a
AA
5872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
588
589 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
590 (tilegx_regset_from_core_section): Remove.
591 (tilegx_iterate_over_regset_sections): New.
592 (tilegx_linux_init_abi): Adjust gdbarch initialization.
593
e5139de8
AA
5942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
595
596 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
597 (sparc_iterate_over_regset_sections): New.
598 (sparc32_gdbarch_init): Adjust gdbarch initialization.
599 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
600 targets.
601 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
602 (sparc64fbsd_init_abi): Call fbsd_init_abi.
603 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
604 target method 'make_corefile_notes'.
605
c6d41a6f
AA
6062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
607
608 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
609 'sizeof_gregset' and 'sizeof_fpregset'.
610 * sh-tdep.c (sh_regset_from_core_section): Remove.
611 (sh_iterate_over_regset_sections): New.
612 (sh_gdbarch_init): Adjust gdbarch initialization.
613 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
614 sizeof_fpregset.
615 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
616 'sizeof_gregset'.
617
9845a0b5
AA
6182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
619
620 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
621 (score7_linux_iterate_over_regset_sections): New.
622 (score_gdbarch_init): Adjust gdbarch initialization.
623
23ea9aeb
AA
6242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
625
626 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
627 FreeBSD targets.
628 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
629 method 'make_corefile_notes'.
630 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
631 (ppcfbsd_regset_from_core_section): Remove.
632 (ppcfbsd_iterate_over_regset_sections): New.
633 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
634 initialization.
635 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
636 (ppcnbsd_iterate_over_regset_sections): New.
637 (ppcnbsd_init_abi): Adjust.
638 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
639 (ppcobsd_iterate_over_regset_sections): New.
640 (ppcobsd_init_abi): Adjust.
641 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
642 (rs6000_aix_iterate_over_regset_sections): New.
643 (rs6000_aix_init_osabi): Adjust.
644
c5b8d704
AA
6452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
646
647 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
648 (nios2_regset_from_core_section): Remove.
649 (nios2_iterate_over_regset_sections): New.
650 (nios2_linux_init_abi): Adjust gdbarch initialization.
651
3636e608
AA
6522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
653
654 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
655 (am33_iterate_over_regset_sections): New.
656 (am33_linux_init_osabi): Adjust gdbarch initialization.
657
d4036235
AA
6582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
659
660 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
661 (mips_linux_iterate_over_regset_sections): New.
662 (mips_linux_init_abi): Adjust gdbarch initialization.
663 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
664 (mips64obsd_iterate_over_regset_sections): New.
665 (mips64obsd_init_abi): Adjust.
666 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
667 (mipsnbsd_iterate_over_regset_sections): New.
668 (mipsnbsd_init_abi): Adjust.
669
b61ddd6e
AA
6702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
671
672 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
673 (m88k_iterate_over_regset_sections): New.
674 (m88k_gdbarch_init): Adjust gdbarch initialization.
675
55a2906a
AA
6762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
677
678 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
679 (ia64_linux_iterate_over_regset_sections): New.
680 (ia64_linux_init_abi): Adjust gdbarch initialization.
681
022c98ab
AA
6822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
683
684 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
685 (m68kbsd_iterate_over_regset_sections): New.
686 (m68kbsd_init_abi): Adjust gdbarch initialization.
687 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
688 (m68k_linux_iterate_over_regset_sections): New.
689 (m68k_linux_init_abi): Adjust gdbarch initialization.
690
5fac247f
AA
6912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
692
693 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
694 (m32r_linux_regset_from_core_section): Remove.
695 (m32r_linux_iterate_over_regset_sections): New.
696 (m32r_linux_init_abi): Adjust gdbarch initialization.
697
490496c3
AA
6982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
699
700 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
701 (amd64obsd_iterate_over_regset_sections): New.
702 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
703 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
704 Remove.
705 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
706 regset_from_core_section initialization.
707 * i386-tdep.c (i386_regset_from_core_section): Remove.
708 (i386_iterate_over_regset_sections): New.
709 (i386_gdbarch_init): Adjust gdbarch initialization.
710 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
711 (i386_iterate_over_regset_sections): New prototype.
712 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
713 Remove.
714 (i386obsd_aout_iterate_over_regset_sections): New.
715 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
716 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
717 targets.
718 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
719 (amd64fbsd_init_abi): Call fbsd_init_abi.
720 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
721 (i386fbsd4_init_abi): Call fbsd_init_abi.
722 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
723 target method 'make_corefile_notes'.
724 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
725
50c5eb53
AA
7262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
727
728 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
729 (hppa_hpux_iterate_over_regset_sections): New.
730 (hppa_hpux_init_abi): Adjust gdbarch initialization.
731 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
732 (hppa_linux_iterate_over_regset_sections): New.
733 (hppa_linux_init_abi): Adjust.
734 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
735 (hppanbsd_iterate_over_regset_sections): New.
736 (hppanbsd_init_abi): Adjust.
737 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
738 (hppaobsd_iterate_over_regset_sections): New.
739 (hppaobsd_init_abi): Adjust.
740
66afae4f
AA
7412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
742
743 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
744 (frv_linux_iterate_over_regset_sections): New.
745 (frv_linux_init_abi): Adjust gdbarch initialization.
746
ed09174e
AA
7472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
748
749 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
750 (armbsd_iterate_over_regset_sections): New prototype.
751 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
752 (armbsd_iterate_over_regset_sections): New.
753 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
754 initialization.
755
dff2166e
AA
7562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
757
758 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
759 (alpha_linux_iterate_over_regset_sections): New.
760 (alpha_linux_init_abi): Adjust gdbarch initialization.
761 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
762 prototype.
763 (alphanbsd_iterate_over_regset_sections): New prototype.
764
4108500a
AA
7652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
766
767 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
768 Remove.
769 (aarch64_linux_iterate_over_regset_sections): New.
770 (aarch64_linux_init_abi): Adjust gdbarch initialization.
771
a904c024
AA
7722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
773
774 * fbsd-tdep.c: New file.
775 * fbsd-tdep.h: New file.
776 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
777 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
778 (ALLDEPFILES): Add fbsd-tdep.c.
779
8f0435f7
AA
7802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
781
782 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
783 parameter.
784 * gdbarch.h: Regenerate.
785 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
786 iterator.
787 (get_core_register_section): Add parameter 'regset' and use it, if
788 set. Add parameter 'min_size' and verify the bfd section size
789 against it.
790 (get_core_registers_cb): Add parameter 'regset' and pass it to
791 get_core_register section. For the "standard" register sections
792 ".reg" and ".reg2", set an appropriate default for human_name.
793 (get_core_registers): Don't abort when the gdbarch has an iterator
794 but no regset_from_core_section. Add NULL/0 for parameters
795 'regset'/'min_size' in calls to get_core_register_section.
796 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
797 'regset' and use it instead of calling the
798 regset_from_core_section gdbarch method.
799 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
800 * i386-tdep.c (i386_supply_xstateregset)
801 (i386_collect_xstateregset, i386_xstateregset): Moved to
802 i386-linux-tdep.c.
803 (i386_regset_from_core_section): Drop handling for .reg-xfp and
804 .reg-xstate.
805 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
806 core file support only if the regset iterator hasn't been set.
807 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
808 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
809 Moved from i386-tdep.c and renamed to *_linux*.
810 (i386_linux_iterate_over_regset_sections): Add regset parameter to
811 each callback invocation. Allow any .reg-xstate size when reading
812 from a core file.
813 * amd64-tdep.c (amd64_supply_xstateregset)
814 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
815 amd64-linux-tdep.c.
816 (amd64_regset_from_core_section): Remove.
817 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
818 install an amd64-specific regset_from_core_section gdbarch method.
819 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
820 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
821 Moved from amd64-tdep.c and renamed to *_linux*.
822 (amd64_linux_iterate_over_regset_sections): Add regset parameter
823 to each callback invocation. Allow any .reg-xstate size when
824 reading from a core file.
825 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
826 (arm_linux_iterate_over_regset_sections): Add regset parameter to
827 each callback invocation.
828 (arm_linux_init_abi): No longer set the regset_from_core_section
829 gdbarch method.
830 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
831 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
832 each callback invocation.
833 (ppc_linux_init_abi): No longer set the regset_from_core_section
834 gdbarch method.
835 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
836 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
837 (s390_regset_from_core_section): Remove.
838 (s390_iterate_over_regset_sections): Add regset parameter to each
839 callback invocation.
840 (s390_gdbarch_init): No longer set the regset_from_core_section
841 gdbarch method. Drop initialization of deleted tdep fields.
842
5aa82d05
AA
8432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
844
845 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
846 (amd64_linux_iterate_over_regset_sections): New.
847 (amd64_linux_init_abi_common): Don't install the regset section
848 list, but the new iterator in gdbarch.
849 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
850 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
851 (arm_linux_iterate_over_regset_sections): ...here. New function.
852 (arm_linux_init_abi): Set iterator instead of section list.
853 * corelow.c (get_core_registers_cb): New function, logic moved
854 from...
855 (get_core_registers): ...loop body here. Use new iterator method
856 instead of walking through the regset section list.
857 * gdbarch.sh: Remove 'core_regset_sections'. New method
858 'iterate_over_regset_sections'. New typedef
859 'iterate_over_regset_sections_cb'.
860 * gdbarch.c: Regenerate.
861 * gdbarch.h: Likewise.
862 * i386-linux-tdep.c (i386_linux_regset_sections)
863 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
864 Remove.
865 (i386_linux_iterate_over_regset_sections): New.
866 (i386_linux_init_abi): Don't choose a regset section list, but
867 install new iterator in gdbarch.
868 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
869 (linux_collect_regset_section_cb): New function, logic moved
870 from...
871 (linux_collect_thread_registers): ...loop body here. Use iterator
872 method instead of walking through list.
873 (linux_make_corefile_notes_1): Check for presence of iterator
874 method instead of regset section list.
875 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
876 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
877 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
878 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
879 (ppc_linux_iterate_over_regset_sections): ...here. New function.
880 (ppc_linux_init_abi): Don't choose from above regset section
881 lists, but install new iterator in gdbarch.
882 * regset.h (struct core_regset_section): Remove.
883 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
884 have_linux_v1, have_linux_v2, and have_tdb.
885 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
886 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
887 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
888 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
889 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
890 (s390_iterate_over_regset_sections): ...here. New function. Use
891 new tdep fields.
892 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
893 regset section lists, but install new iterator.
894
2eca4a8d
JK
8952014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
896
897 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
898
a73c2b56
SM
8992014-09-26 Simon Marchi <simon.marchi@ericsson.com>
900
901 * progspace.c (print_program_space): Don't prune program spaces
902 before printing them.
903
03d46957
PA
9042014-09-25 Pedro Alves <palves@redhat.com>
905
906 * infrun.c (user_visible_resume_ptid): Don't check
907 singlestep_breakpoints_inserted_p.
908
e558d7c1
PA
9092014-09-25 Pedro Alves <palves@redhat.com>
910
911 * breakpoint.c (should_be_inserted): Add debug output.
912
7f89fd65
PA
9132014-09-25 Pedro Alves <palves@redhat.com>
914
915 * infrun.c (stepping_past_instruction_at)
916 (clear_exit_convenience_vars): Point at infrun.h instead of
917 inferior.h.
918 (handle_signal_stop): Fix typo.
919
b7576e5c
YQ
9202014-09-24 Yao Qi <yao@codesourcery.com>
921
922 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
923 bitmask.
924
9a6cf368
GB
9252014-09-22 Gary Benson <gbenson@redhat.com>
926
927 * target.c (target_stop): Updated comment.
928
03f4463b
GB
9292014-09-22 Gary Benson <gbenson@redhat.com>
930
931 * target/target.h (target_stop_ptid): Renamed as...
932 (target_stop_and_wait): New function. Updated comment.
933 All uses updated.
934 (target_continue_ptid): Renamed as...
935 (target_continue_no_signal): New function. Updated comment.
936 All uses updated.
937
a25a5a45
PA
9382014-09-22 Pedro Alves <palves@redhat.com>
939
940 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
941 and "auto" merged.
942 * breakpoint.c (enum ugll_insert_mode): New enum.
943 (always_inserted_mode): Now a plain boolean.
944 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
945 (breakpoints_always_inserted_mode): Delete.
946 (breakpoints_should_be_inserted_now): New function.
947 (insert_breakpoints): Pass UGLL_INSERT to
948 update_global_location_list instead of calling
949 insert_breakpoint_locations manually.
950 (create_solib_event_breakpoint_1): New, factored out from ...
951 (create_solib_event_breakpoint): ... this.
952 (create_and_insert_solib_event_breakpoint): Use
953 create_solib_event_breakpoint_1 instead of calling
954 insert_breakpoint_locations manually.
955 (update_global_location_list): Change parameter type from boolean
956 to enum ugll_insert_mode. All callers adjusted. Adjust to use
957 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
958 (update_global_location_list_nothrow): Change parameter type from
959 boolean to enum ugll_insert_mode.
960 (_initialize_breakpoint): "breakpoint always-inserted" option is
961 now a boolean command. Update help text.
962 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
963 (breakpoints_should_be_inserted_now): New declaration.
964 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
965 Remove breakpoints_always_inserted_mode check.
966 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
967 * remote.c (remote_start_remote): Likewise.
968
04086b45
PA
9692014-09-22 Pedro Alves <palves@redhat.com>
970
971 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
972 (insert_breakpoints): Don't call insert_breakpoint_locations here.
973 Instead, pass UGLL_INSERT to update_global_location_list.
974 (update_global_location_list): Change parameter type from boolean
975 to enum ugll_insert_mode. All callers adjusted. Adjust to use
976 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
977 (create_solib_event_breakpoint_1): New, factored out from ...
978 (create_solib_event_breakpoint): ... this.
979 (create_and_insert_solib_event_breakpoint): Use
980 create_solib_event_breakpoint_1 instead of calling
981 insert_breakpoint_locations manually.
982 (update_global_location_list): Handle UGLL_INSERT.
983
44702360
PA
9842014-09-22 Pedro Alves <palves@redhat.com>
985
986 * breakpoint.c (enum ugll_insert_mode): New enum.
987 (update_global_location_list)
988 (update_global_location_list_nothrow): Change parameter type from
989 boolean to enum ugll_insert_mode. All callers adjusted.
990
93c6145a
JB
9912014-09-19 Joel Brobecker <brobecker@adacore.com>
992
993 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
994 SystemTap support in GDB.
995
89a5711c
DB
9962014-09-19 Don Breazeal <donb@codesourcery.com>
997
998 * linux-nat.c (linux_handle_extended_wait): Call
999 linux_ptrace_get_extended_event.
1000 (wait_lwp): Call linux_is_extended_waitstatus.
1001 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1002 and linux_is_extended_waitstatus.
1003 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1004 linux_ptrace_get_extended_event.
1005 (linux_ptrace_get_extended_event): New function.
1006 (linux_is_extended_waitstatus): New function.
1007 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1008 (linux_is_extended_waitstatus): New declarations.
1009
c3b7b696
YQ
10102014-09-19 Yao Qi <yao@codesourcery.com>
1011
1012 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1013 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1014 comments. Callers update.
1015 (dwarf_decode_lines): Likewise.
1016 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1017 comments. Skip the line table if 'lowpc' is greater than
1018 'address'. Don't check
1019 dwarf2_per_objfile->has_section_at_zero.
1020
2b4fd423
DE
10212014-09-18 Doug Evans <dje@google.com>
1022
1023 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1024 * python/py-symtab.c (stpy_get_producer): New function.
1025 (symtab_object_getset): Add "producer" attribute.
1026
5e43d467
UW
10272014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1028
1029 PR gdb/17384
1030 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1031 (do_captured_read_memory_integer): Remove.
1032 (safe_read_memory_integer): Use target_read_memory directly instead
1033 of catching errors in do_captured_read_memory_integer.
1034
04e79979
MR
10352014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1036
1037 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1038 not gdb/doc.
1039
76aeec5b
SDJ
10402014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1041
1042 * objc-lang.c (find_implementation_from_class): Remove dead code.
1043
2f693f9d
SDJ
10442014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1045
1046 PR cli/7233
1047 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1048 "fprintf_unfiltered (gdb_stdlog...)".
1049
bb9d5f81
PP
10502014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1051
1052 PR breakpoints/12526
1053 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1054 val_bitsize.
1055 * breakpoint.c (watch_command_1): Use these fields to retain
1056 bitfield information.
1057 (extract_bitfield_from_watchpoint_value): New function.
1058 (watchpoint_check): Use it.
1059 (update_watchpoint): Use it. Optimize the address and length of a
1060 HW watchpoint pointing to a bitfield.
1061 * value.h (unpack_value_bitfield): New prototype.
1062 * value.c (unpack_value_bitfield): Make extern.
1063
05db5edd
ST
10642014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1065
1066 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1067 x86-dregs.o.
1068 * gnu-nat.c (inf_threads): New function.
1069 * gnu-nat.h (inf_threads_ftype): New typedef.
1070 (inf_threads): New declaration.
1071 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1072 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1073 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1074 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1075 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1076 (i386_gnu_dr_get_control): New functions.
1077 (reg_addr): New structure.
1078 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1079 i386 debugging register hooks.
1080 * NEWS: Mention this.
1081
5a578da5
OJ
10822014-08-13 Omair Javaid <omair.javaid@linaro.org>
1083
1084 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1085 vector data transfer instructions.
1086 (arm_record_coproc_data_proc): Updated.
1087
f20f80dd
OJ
10882014-08-13 Omair Javaid <omair.javaid@linaro.org>
1089
1090 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1091 arm_record_exreg_ld_st_insn.
1092 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1093 load/store insns.
1094
851f26ae
OJ
10952014-08-13 Omair Javaid <omair.javaid@linaro.org>
1096
1097 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1098 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1099 processing instructions.
1100
1e1b6563
OJ
11012014-08-13 Omair Javaid <omair.javaid@linaro.org>
1102
1103 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1104 for advance SIMD struct ld/st insn.
1105 (thumb2_record_decode_insn_handler): Replace stub handler with
1106 thumb2_record_asimd_struct_ld_st.
1107
60cc5e93
OJ
11082014-08-13 Omair Javaid <omair.javaid@linaro.org>
1109
1110 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1111 for asimd, vfp and coprocessor insns.
1112 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1113 and coprocessor insns.
1114 (thumb2_record_coproc_insn): New function.
1115 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1116 handlers.
1117 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1118 opcode 110 insns.
1119
81219e53
DE
11202014-09-13 Doug Evans <xdje42@gmail.com>
1121
1122 * NEWS: Mention new "queue-signal" command.
1123 * infcmd.c (queue_signal_command): New function.
1124 (_initialize_infcmd): Add new queue-signal command.
1125
d36bf488
DE
11262014-09-13 Doug Evans <xdje42@gmail.com>
1127
1128 * linux-nat.c (wait_lwp): Add debugging printf.
1129 (linux_nat_wait_1): Ditto.
1130
f37f681c
PA
11312014-09-12 Pedro Alves <palves@redhat.com>
1132
1133 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1134 (create_and_insert_solib_event_breakpoint): New functions.
1135 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1136 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1137 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1138 (remove_dbx_link_breakpoint): Delete function.
1139 (insert_dbx_link_bpt_in_file): Use
1140 create_and_insert_solib_event_breakpoint instead of
1141 deprecated_insert_raw_breakpoint.
1142 (procfs_wait): Don't check whether we hit __dbx_link here.
1143 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1144 here.
1145 * solib-irix.c (base_breakpoint): Delete global.
1146 (disable_break): Delete function.
1147 (enable_break): Use create_solib_event_breakpoint
1148 instead of deprecated_insert_raw_breakpoint.
1149 (irix_solib_handle_event): New function.
1150 (irix_solib_create_inferior_hook): Don't run the target or disable
1151 the mapping-complete breakpoint here.
1152 (_initialize_irix_solib): Install irix_solib_handle_event as
1153 so_ops->handle_event hook.
1154
9d9bf2df
EBM
11552014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1156 Ulrich Weigand  <uweigand@de.ibm.com>
1157
1158 PR tdep/17379
1159 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1160 instead of read_memory_unsigned_integer.
1161
b006a80e
GB
11622014-09-12 Gary Benson <gbenson@redhat.com>
1163
1164 * nat/linux-waitpid.c: Include common-defs.h.
1165 [GDBSERVER]: Add FIXME comment.
1166 [!GDBSERVER]: Don't include defs.h or signal.h.
1167 (linux_debug) [!GDBSERVER]: Remove empty block.
1168
296b1496
GB
11692014-09-12 Gary Benson <gbenson@redhat.com>
1170
1171 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1172 Don't include defs.h or server.h.
1173
53f81362
GB
11742014-09-12 Gary Benson <gbenson@redhat.com>
1175
1176 * nat/linux-btrace.c: Include common-defs.h.
1177 Don't include defs.h, server.h or gdbthread.h.
1178 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1179
727605ca
GB
11802014-09-12 Gary Benson <gbenson@redhat.com>
1181
1182 * common/agent.c: Include common-defs.h.
1183 Don't include defs.h or server.h.
1184 * common/buffer.c: Likewise.
1185 * common/common-debug.c: Likewise.
1186 * common/common-utils.c: Likewise.
1187 * common/errors.c: Likewise.
1188 * common/filestuff.c: Likewise.
1189 * common/format.c: Likewise.
1190 * common/gdb_vecs.c: Likewise.
1191 * common/print-utils.c: Likewise.
1192 * common/ptid.c: Likewise.
1193 * common/rsp-low.c: Likewise.
1194 * common/signals.c: Likewise.
1195 * common/vec.c: Likewise.
1196 * common/xml-utils.c: Likewise.
1197 * nat/linux-osdata.c: Likewise.
1198 * nat/linux-procfs.c: Likewise.
1199 * nat/linux-ptrace.c: Likewise.
1200 * nat/mips-linux-watch.c: Likewise.
1201 * target/waitstatus.c: Likewise.
1202
361c8ade
GB
12032014-09-12 Tom Tromey <tromey@redhat.com>
1204 Gary Benson <gbenson@redhat.com>
1205
1206 * common/common-regcache.h: New file.
1207 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1208 * regcache.h: Include common-regcache.h.
1209 (regcache_read_pc): Don't declare.
1210 * regcache.c (get_thread_regcache_for_ptid): New function.
1211 * nat/linux-btrace.c: Don't include regcache.h.
1212 Include common-regcache.h.
1213 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1214
a01cbb49
TS
12152014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1216
1217 * regcache.h (struct regset): Declare.
1218
98880d46
PA
12192014-09-11 Pedro Alves <palves@redhat.com>
1220
1221 PR gdb/17347
1222 * main.c: Include "infrun.h".
1223 (catch_command_errors, catch_command_errors_const): Wait for the
1224 foreground command to complete.
1225 * top.c (maybe_wait_sync_command_done): New function, factored out
1226 from ...
1227 (maybe_wait_sync_command_done): ... here.
1228 * top.h (maybe_wait_sync_command_done): New declaration.
1229
bd9269f7
GB
12302014-09-11 Tom Tromey <tromey@redhat.com>
1231 Gary Benson <gbenson@redhat.com>
1232
1233 * common/symbol.h: New file.
1234 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1235 * minsyms.c (find_minimal_symbol_address): New function.
1236 * common/agent.c: Include common/symbol.h.
1237 [!GDBSERVER]: Don't include objfiles.h.
1238 (agent_look_up_symbols): Use find_minimal_symbol_address.
1239
f8c1d06b
GB
12402014-09-11 Gary Benson <gbenson@redhat.com>
1241
1242 * target/target.h (target_stop_ptid, target_continue_ptid):
1243 Declare.
1244 * target.c (target_stop_ptid, target_continue_ptid): New
1245 functions.
1246 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1247 (agent_run_command): Always use target_stop_ptid and
1248 target_continue_ptid.
1249
721ec300
GB
12502014-09-11 Tom Tromey <tromey@redhat.com>
1251 Gary Benson <gbenson@redhat.com>
1252
1253 * target/target.h: New file.
1254 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1255 * target.h: Include target/target.h.
1256 (target_read_memory, target_write_memory): Don't declare.
1257 * target.c (target_read_uint32): New function.
1258 * common/agent.c: Include target/target.h.
1259 [!GDBSERVER]: Don't include target.h.
1260 (helper_thread_id): Type changed to uint32_t.
1261 (agent_get_helper_thread_id): Use target_read_uint32.
1262 (agent_run_command): Always use target_read_memory and
1263 target_write_memory.
1264 (agent_capability): Type changed to uint32_t.
1265 (agent_capability_check): Use target_read_uint32.
1266
c5e92cca
GB
12672014-09-11 Gary Benson <gbenson@redhat.com>
1268
1269 * common/common-debug.h (show_debug_regs): Declare.
1270 * common/common-debug.c (show_debug_regs): Define.
1271 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1272 all uses with show_debug_regs. Replace all uses that considered
1273 debug_hw_points as a multi-value integer with straight boolean
1274 uses.
1275 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1276 with show_debug_regs.
1277 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1278 all uses with show_debug_regs.
1279 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1280 uses with show_debug_regs.
1281
eeef931a
UW
12822014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1283
1284 * findvar.c (address_from_register): Handle targets requiring
1285 a special conversion routine even for plain pointer types.
1286
8efa9855
UW
12872014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1288
1289 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1290 (store_register): Do not call exec_one_dummy_insn.
1291
eb479039
JB
12922014-09-10 Joel Brobecker <brobecker@adacore.com>
1293
1294 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1295 dereference it first. Use value_enclosing_type instead of
1296 value_type.
1297 (ada_array_length): Likewise.
1298
deede10c
JB
12992014-09-10 Joel Brobecker <brobecker@adacore.com>
1300
1301 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1302 Adjust function implementation and documentation accordingly.
1303 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1304 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1305 Update call to ada_value_ptr_subscript.
1306
7828a5f5
JB
13072014-09-10 Joel Brobecker <brobecker@adacore.com>
1308
1309 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1310 instead of VAL's type.
1311
35782f14
JB
13122014-09-10 Joel Brobecker <brobecker@adacore.com>
1313
1314 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1315
d342a0da
DE
13162014-09-09 Doug Evans <xdje42@gmail.com>
1317
1318 PR guile/17367
1319 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1320 last parameter to pkg-config, not first.
1321 * configure.ac: Pass --with-guile provided pkg-config path to
1322 GDB_GUILE_PROGRAM_NAMES.
1323 * configure: Regenerate.
1324
b4a3d263
GKB
13252014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1326
1327 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1328 Bertazi".
1329
6e466374
MR
13302014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1331
1332 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1333 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1334 the list of sections determining GDB_OSABI_IRIX.
1335
a1ada89a
JH
13362014-09-09 James Hogan <james.hogan@imgtec.com>
1337
1338 * MAINTAINERS (Write After Approval): Add "James Hogan".
1339
86db008d
JH
13402014-09-09 James Hogan <james.hogan@imgtec.com>
1341
1342 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1343
72fde3df
JB
13442014-09-09 Joel Brobecker <brobecker@adacore.com>
1345
1346 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1347
92d8d229
DE
13482014-09-08 Doug Evans <xdje42@gmail.com>
1349
1350 PR 17247
1351 * guile.c: #include <signal.h>.
1352 (_initialize_guile): Block SIGCHLD while initializing Guile.
1353
1354 Replaces the following, which is reverted.
1355
1356 2014-07-26 Doug Evans <xdje42@gmail.com>
1357
1358 PR 17185
1359 * configure.ac: Add check for header gc/gc.h.
1360 Add check for function setenv.
1361 * configure: Regenerate.
1362 * config.in: Regenerate.
1363 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1364
d81412aa
DE
13652014-09-08 Doug Evans <xdje42@gmail.com>
1366
1367 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1368 with named constant. Fix style of pointer comparison.
1369 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1370
a9f116cb
GKB
13712014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1372
1373 PR gdb/17035
1374 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1375 decide whether we display the command on "show user".
1376 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1377 printing command name.
1378 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1379 * cli/cli-decode.c (cli_user_command_p): Create helper function
1380 to verify whether cmd_list_element is a user-defined command.
1381
c75bd3a2
JK
13822014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1383
1384 PR python/17355
1385 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1386 Fix goto out of TRY_CATCH.
1387
faa42425 13882014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1389 Tom Tromey <tromey@redhat.com>
faa42425
DE
1390
1391 PR 15276
1392 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1393 $_any_caller_matches.
1394 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1395 * python/lib/gdb/function/caller_is.py: New file.
1396
0d41ba00
DE
13972014-09-06 Doug Evans <xdje42@gmail.com>
1398
1399 * infcmd.c (program_info): Fix typo.
1400
474ca4f6
SDJ
14012014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1402
1403 PR gdb/17235
1404 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1405 'number'. New variable 'has_digit'. Rewrite code to deal with
1406 subexpressions on SDT probes.
1407
ebf13736
PA
14082014-09-04 Pedro Alves <palves@redhat.com>
1409
1410 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1411 the input is only one character long.
1412
eb0b0463
SDJ
14132014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1414
1415 PR fortran/17237
1416 * f-valprint.c (f_val_print): Specify the correct print option to
1417 use when printing integer values.
1418
5ee44bfa
GB
14192014-09-04 Gary Benson <gbenson@redhat.com>
1420
1421 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1422 Remove code to cope with LWPs wrapped as PIDs.
1423 Add assertions to ensure no wrapped LWPs are passed.
1424
4875ffdb
PA
14252014-09-04 Pedro Alves <palves@redhat.com>
1426
1427 * value.c (value_ranges_copy_adjusted): New function, factored out
1428 from ...
1429 (value_contents_copy_raw): ... here.
1430 (unpack_value_bits_as_long_1): Rename back to ...
1431 (unpack_bits_as_long): ... this. Remove 'original_value' and
1432 'result' parameters. Change return type to LONGEST.
1433 (unpack_value_bits_as_long): Delete.
1434 (unpack_value_field_as_long_1): Delete.
1435 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1436 (unpack_value_bitfield): New function.
1437 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1438 (value_fetch_lazy): Use unpack_value_bitfield.
1439 * value.h (unpack_value_bits_as_long): Delete declaration.
1440
5f3b99cf
SS
14412014-09-03 Sasha Smundak <asmundak@google.com>
1442
1443 * python/py-frame.c (frapy_read_register): New function.
1444
ac740bc7
JH
14452014-09-03 James Hogan <james.hogan@imgtec.com>
1446
1447 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1448 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1449
7d793aa9
SDJ
14502014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1451
1452 PR python/16699
1453 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1454 function.
1455 (add_cmd): Set "completer_handle_brkchars" to NULL.
1456 * cli/cli-decode.h (struct cmd_list_element)
1457 <completer_handle_brkchars>: New field.
1458 * command.h (completer_ftype_void): New typedef.
1459 (set_cmd_completer_handle_brkchars): New prototype.
1460 * completer.c (set_gdb_completion_word_break_characters): New
1461 function.
1462 (complete_line_internal): Call "completer_handle_brkchars"
1463 callback from command.
1464 * completer.h: Include "command.h".
1465 (set_gdb_completion_word_break_characters): New prototype.
1466 * python/py-cmd.c (cmdpy_completer_helper): New function.
1467 (cmdpy_completer_handle_brkchars): New function.
1468 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1469 (cmdpy_init): Set completer_handle_brkchars to
1470 cmdpy_completer_handle_brkchars.
1471
97ea6506
GB
14722014-09-03 Gary Benson <gbenson@redhat.com>
1473
1474 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1475 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1476 Loop conditions changed to equivalent form.
1477 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1478 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1479 ALL_DEBUG_ADDRESS_REGISTERS.
1480
d1437815
JB
14812014-09-03 Joel Brobecker <brobecker@adacore.com>
1482
1483 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1484 description fix.
1485
9b94fcf1
DE
14862014-09-02 Doug Evans <dje@google.com>
1487
1488 * typeprint.c (find_global_typedef): Fix comment.
1489
df7e5265
GB
14902014-09-02 Gary Benson <gbenson@redhat.com>
1491
1492 * i386-nat.h: Renamed as...
1493 * x86-nat.h: New file. All type, function and variable name
1494 prefixes changed from "i386_" to "x86_". All references updated.
1495 * i386-nat.c: Renamed as...
1496 * x86-nat.c: New file. All type, function and variable name
1497 prefixes changed from "i386_" to "x86_". All references updated.
1498 * common/i386-xstate.h: Renamed as...
1499 * common/x86-xstate.h: New file. All type, function and variable
1500 name prefixes changed from "i386_" to "x86_". All references
1501 updated.
1502 * nat/i386-cpuid.h: Renamed as...
1503 * nat/x86-cpuid.h: New file. All type, function and variable name
1504 prefixes changed from "i386_" to "x86_". All references updated.
1505 * nat/i386-gcc-cpuid.h: Renamed as...
1506 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1507 name prefixes changed from "i386_" to "x86_". All references
1508 updated.
1509 * nat/i386-dregs.h: Renamed as...
1510 * nat/x86-dregs.h: New file. All type, function and variable name
1511 prefixes changed from "i386_" to "x86_". All references updated.
1512 * nat/i386-dregs.c: Renamed as...
1513 * nat/x86-dregs.c: New file. All type, function and variable name
1514 prefixes changed from "i386_" to "x86_". All references updated.
1515
1c3569d4
MR
15162014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1517
1518 * varobj.c (_initialize_varobj): Move to the end of file.
1519
ff55e1b5
GB
15202014-08-29 Gary Benson <gbenson@redhat.com>
1521
1522 * common/common-exceptions.h: New file.
1523 * common/common-exceptions.c: Likewise.
1524 * Makefile.in (SFILES): Add common/common-exceptions.c.
1525 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1526 (COMMON_OBS): Add common-exceptions.o.
1527 (common-exceptions.o): New rule.
1528 * exceptions.h (common-exceptions.h): Include.
1529 (gdb_setjmp.h): Do not include.
1530 (return_reason): Moved to common-exceptions.h.
1531 (enum return_reason): Likewise.
1532 (RETURN_MASK): Likewise.
1533 (typedef return_mask): Likewise.
1534 (enum errors): Likewise.
1535 (struct gdb_exception): Likewise.
1536 (exceptions_state_mc_init): Likewise.
1537 (exceptions_state_mc_action_iter): Likewise.
1538 (exceptions_state_mc_action_iter_1): Likewise.
1539 (TRY_CATCH): Likewise.
1540 (throw_exception): Likewise.
1541 (throw_verror): Likewise.
1542 (throw_vquit): Likewise.
1543 (throw_error): Likewise.
1544 (throw_quit): Likewise.
1545 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1546 (enum catcher_action): Likewise.
1547 (struct catcher): Likewise.
1548 (current_catcher): Likewise.
1549 (catcher_list_size): Likewise.
1550 (exceptions_state_mc_init): Likewise.
1551 (catcher_pop): Likewise.
1552 (exceptions_state_mc): Likewise.
1553 (exceptions_state_mc_action_iter): Likewise.
1554 (exceptions_state_mc_action_iter_1): Likewise.
1555 (throw_exception): Likewise.
1556 (exception_messages): Likewise.
1557 (exception_messages_size): Likewise.
1558 (throw_it): Likewise.
1559 (throw_verror): Likewise.
1560 (throw_vquit): Likewise.
1561 (throw_error): Likewise.
1562 (throw_quit): Likewise.
1563 (prepare_to_throw_exception): New function.
1564
e9bcb658
GB
15652014-08-29 Gary Benson <gbenson@redhat.com>
1566
1567 * common/gdb_setjmp.h: New file.
1568 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1569 * configure.ac: Move sigsetjmp check...
1570 * common/common.m4: ...here.
1571 * configure: Regenerate.
1572 * cp-support.c (SIGJMP_BUF): Delete.
1573 (SIGSETJMP): Likewise.
1574 (SIGLONGJMP): Likewise.
1575 * exceptions.h (gdb_setjmp.h): Include.
1576 (setjmp.h): Do not include.
1577 (EXCEPTIONS_SIGJMP_BUF): Delete.
1578 (EXCEPTIONS_SIGSETJMP): Likewise.
1579 (EXCEPTIONS_SIGLONGJMP): Likewise.
1580 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1581 from gdb_setjmp.h.
1582 * exceptions.c: Likewise.
1583
e3180625
GB
15842014-08-29 Gary Benson <gbenson@redhat.com>
1585
1586 * cleanups.h: Moved to...
1587 * common/cleanups.h: New file.
1588 * cleanups.c: Moved to...
1589 * common/cleanups.c: New file. Include common-defs.h and
1590 cleanups.h. Do not include defs.h.
1591 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1592 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1593 (cleanups.o): New rule.
1594
e3d6ba5d
GB
15952014-08-29 Gary Benson <gbenson@redhat.com>
1596
1597 * common/errors.h (internal_warning): New declaration.
1598 (internal_vwarning): Likewise.
1599 * common/errors.c (internal_warning): New function.
1600 * utils.h (internal_warning): Don't declare.
1601 (internal_vwarning): Likewise.
1602 * utils.c (internal_warning): Removed.
1603
075c7033
GB
16042014-08-29 Gary Benson <gbenson@redhat.com>
1605
1606 * main.c (captured_main): Use warning during startup.
1607 Prefix startup warning messages with command name.
1608
91b35fd0
GB
16092014-08-29 Gary Benson <gbenson@redhat.com>
1610
1611 * main.c (captured_main): Handle usage errors with error.
1612
b1ec390e
GB
16132014-08-29 Gary Benson <gbenson@redhat.com>
1614
1615 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1616 exit pair with a call to error. Wrap the message with _().
1617
fd0ef3dd
GB
16182014-08-29 Gary Benson <gbenson@redhat.com>
1619
1620 * main.c (captured_main): Replace a fprintf/exit
1621 pair with a call to error. Wrap the message with _().
1622
e0e6bcab
GB
16232014-08-29 Gary Benson <gbenson@redhat.com>
1624
1625 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1626 pairs with calls to error. Wrap the message with _().
1627
0d2f5c07
GB
16282014-08-29 Gary Benson <gbenson@redhat.com>
1629
1630 * utils.c (vwarning): Protect calls to target_terminal_ours
1631 and wrap_here.
1632
5df43998
GB
16332014-08-29 Gary Benson <gbenson@redhat.com>
1634
1635 * exceptions.c (print_flush): Protect calls to
1636 target_terminal_ours and wrap_here.
1637
2437fd32
GB
16382014-08-29 Gary Benson <gbenson@redhat.com>
1639
1640 * utils.h (filtered_printing_initialized): New declaration.
1641 * utils.c (abort_with_message): New function.
1642 (internal_vproblem): Use abort_with_message for first level
1643 recursive internal problems, and if gdb_stderr is not set up.
1644 Protect calls to target_terminal_ours, begin_line and query.
1645
f1f58506
DE
16462014-08-28 Doug Evans <dje@google.com>
1647
1648 * symtab.c (in_prologue): Move definition to better spot.
1649 (skip_prologue_using_sal): Ditto.
1650
aab2f208
DE
16512014-08-28 Doug Evans <dje@google.com>
1652
1653 * symtab.c (find_function_start_sal): Move definition to better spot.
1654
6b65d1b6
YQ
16552014-08-28 Yao Qi <yao@codesourcery.com>
1656
1657 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1658 found_stack_adjust in forward scan. Remove condition check
1659 on found_stack_adjust which is always true. Indent the code.
1660
a1b34d15
YQ
16612014-08-28 Yao Qi <yao@codesourcery.com>
1662
1663 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1664 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1665 (dwarf_decode_lines): Remove argument
1666 want_line_info. Remove condition check on want_line_info.
1667 Callers update.
1668
d5962de5
DE
16692014-08-27 Doug Evans <dje@google.com>
1670
1671 * dwarf2read.c (dwarf_record_line): Fix typo.
1672
9b139002
SDJ
16732014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1674
1675 * target.h (struct target_ops::to_terminal_save_ours): Remove
1676 declaration.
1677 (target_terminal_save_ours): Remove macro.
1678 * target-delegates.c: Regenerate.
1679 * inf-child.c (inf_child_target): Don't set the nonexistent
1680 field to_terminal_save_ours.
1681 * inferior.h (child_terminal_save_ours): Remove declaration.
1682 * terminal.h (gdb_save_tty_state): New declaration.
1683 * inflow.c (child_terminal_save_ours): Rename to ...
1684 (gdb_save_tty_state): ... this.
1685 * tui/tui.c: Include terminal.h.
1686 (tui_enable): Use gdb_save_tty_state instead of
1687 target_terminal_save_ours.
1688 (tui_disable): Likewise.
1689
9debeba0
DE
16902014-08-25 Doug Evans <dje@google.com>
1691
1692 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1693 Pass NULL instead of 0 for context pointer.
1694
428fc5fc
YQ
16952014-08-25 Yao Qi <yao@codesourcery.com>
1696
1697 * dwarf2read.c: Fix grammatical error.
1698
cdc07690
YQ
16992014-08-24 Yao Qi <yao@codesourcery.com>
1700
1701 * dwarf2read.c (scan_partial_symbols): Update comments.
1702 Rename argument 'need_pc' with 'set_addrmap'.
1703 (add_partial_namespace): Rename argument 'need_pc' with
1704 'set_addrmap'.
1705 (add_partial_module): Likewise.
1706 (add_partial_subprogram): Likewise. Update comments.
1707 (dwarf2_name): Fix typo.
1708
a05a36a5
DE
17092014-08-22 Doug Evans <dje@google.com>
1710
1711 PR 17276
1712 * dwarf2read.c (dwarf_record_line_p): New function.
1713 (dwarf_decode_lines_1): Ignore subsequent line number entries
1714 for the same line if any entry had a non-zero discriminator.
1715
252a6764
DE
17162014-08-22 Doug Evans <dje@google.com>
1717
1718 * buildsym.h (record_line_ftype): New typedef.
1719 (record_line): Use it.
1720 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1721 (dwarf_decode_lines_1): Call them.
1722
510db052
YQ
17232014-08-22 Yao Qi <yao@codesourcery.com>
1724
1725 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1726 (ctf_end): Remove code.
1727
22fd09ae
JK
17282014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1729
1730 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1731 (linux_make_corefile_notes): call update_thread_list, protected against
1732 exceptions.
1733
656e8868
PA
17342014-08-21 Pedro Alves <palves@redhat.com>
1735
1736 * infcmd.c (attach_command): Remove comment.
1737
de589d04
WN
17382014-08-21 Bin Cheng <bin.cheng@arm.com>
1739
1740 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1741 unsigned LONGEST to ULONGEST.
1742
2a31c623
PA
17432014-08-20 Pedro Alves <palves@redhat.com>
1744
1745 * Makefile.in (check-read1): New rule.
1746
d36430db
JB
17472014-08-20 Joel Brobecker <brobecker@adacore.com>
1748
1749 * value.c (value_from_contents_and_address): Strip resolved_type's
1750 typedef layers before checking its TYPE_DATA_LOCATION.
1751
000339af
PA
17522014-08-20 Pedro Alves <palves@redhat.com>
1753
1754 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1755
5f52445b
YQ
17562014-08-20 Yao Qi <yao@codesourcery.com>
1757
1758 * amd64-tdep.c (amd64_classify): Add a blank line after the
1759 example. Move "*/" to a new line.
1760 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1761 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1762 * dwarf2read.c (psymtab_include_file_name): Likewise.
1763
9a0dc9e3
PA
17642014-08-19 Andrew Burgess <aburgess@broadcom.com>
1765 Pedro Alves <palves@redhat.com>
1766
1767 PR symtab/14604
1768 PR symtab/14605
1769 * ada-lang.c (coerce_unspec_val_to_type): Use
1770 value_contents_copy_raw.
1771 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1772 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1773 * cp-valprint.c (cp_print_value_fields): Let the common printing
1774 code handle optimized out values.
1775 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1776 * d-valprint.c (dynamic_array_type): Use
1777 value_bits_any_optimized_out.
1778 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1779 check_any_valid fields.
1780 (check_pieced_value_bits): Delete and inline ...
1781 (check_pieced_synthetic_pointer): ... here.
1782 (check_pieced_value_validity): Delete.
1783 (check_pieced_value_invalid): Delete.
1784 (pieced_value_funcs): Remove check_validity and check_any_valid
1785 fields.
1786 (read_pieced_value): Use mark_value_bits_optimized_out.
1787 (write_pieced_value): Switch to use
1788 mark_value_bytes_optimized_out.
1789 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1790 of assuming the whole value is optimized out.
1791 * findvar.c (read_frame_register_value): Remove special handling
1792 of optimized out registers.
1793 (value_from_register): Use mark_value_bytes_optimized_out.
1794 * frame-unwind.c (frame_unwind_got_optimized): Use
1795 mark_value_bytes_optimized_out.
1796 * jv-valprint.c (java_value_print): Adjust.
1797 (java_print_value_fields): Let the common printing code handle
1798 optimized out values.
1799 * mips-tdep.c (mips_print_register): Remove special handling of
1800 optimized out registers.
1801 * opencl-lang.c (lval_func_check_validity): Delete.
1802 (lval_func_check_any_valid): Delete.
1803 (opencl_value_funcs): Remove check_validity and check_any_valid
1804 fields.
1805 * p-valprint.c (pascal_object_print_value_fields): Let the common
1806 printing code handle optimized out values.
1807 * stack.c (read_frame_arg): Remove special handling of optimized
1808 out values. Fetch both VAL and ENTRYVAL before comparing
1809 contents. Adjust to value_available_contents_eq rename.
1810 * valprint.c (valprint_check_validity)
1811 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1812 (val_print_array_elements): Adjust.
1813 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1814 (value_bits_any_optimized_out): New function.
1815 (value_entirely_covered_by_range_vector): New function, factored
1816 out from value_entirely_unavailable.
1817 (value_entirely_unavailable): Reimplement.
1818 (value_entirely_optimized_out): New function.
1819 (insert_into_bit_range_vector): New function, factored out from
1820 mark_value_bits_unavailable.
1821 (mark_value_bits_unavailable): Reimplement.
1822 (struct ranges_and_idx): New struct.
1823 (find_first_range_overlap_and_match): New function, factored out
1824 from value_available_contents_bits_eq.
1825 (value_available_contents_bits_eq): Rename to ...
1826 (value_contents_bits_eq): ... this. Check both unavailable
1827 contents and optimized out contents.
1828 (value_available_contents_eq): Rename to ...
1829 (value_contents_eq): ... this.
1830 (allocate_value_lazy): Remove reference to the old optimized_out
1831 boolean.
1832 (allocate_optimized_out_value): Use
1833 mark_value_bytes_optimized_out.
1834 (require_not_optimized_out): Adjust to check whether the
1835 optimized_out vec is empty.
1836 (ranges_copy_adjusted): New function, factored out from
1837 value_contents_copy_raw.
1838 (value_contents_copy_raw): Also copy the optimized out ranges.
1839 Assert the destination ranges aren't optimized out.
1840 (value_contents_copy): Update comment, remove call to
1841 require_not_optimized_out.
1842 (value_contents_equal): Adjust to check whether the optimized_out
1843 vec is empty.
1844 (set_value_optimized_out, value_optimized_out_const): Delete.
1845 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1846 New functions.
1847 (value_entirely_optimized_out, value_bits_valid): Delete.
1848 (value_copy): Take a VEC copy of the 'optimized_out' field.
1849 (value_primitive_field): Remove special handling of optimized out.
1850 (value_fetch_lazy): Assert that lazy values have no unavailable
1851 regions. Use value_bits_any_optimized_out. Remove some special
1852 handling for optimized out values.
1853 * value.h: Add intro comment about <optimized out> and
1854 <unavailable>.
1855 (struct lval_funcs): Remove check_validity and check_any_valid
1856 fields.
1857 (set_value_optimized_out, value_optimized_out_const): Remove.
1858 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1859 New declarations.
1860 (value_bits_any_optimized_out): New declaration.
1861 (value_bits_valid): Delete declaration.
1862 (value_available_contents_eq): Rename to ...
1863 (value_contents_eq): ... this, and extend comments.
1864
6694c411
JK
18652014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1866
1867 Fix -fsanitize=address on unreadable inferior strings.
1868 * valprint.c (val_print_string): Fix access before BUFFER.
1869
89a1c21a
SM
18702014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1871
1872 * target.c (target_struct_size): Remove.
1873 (target_struct_allocsize): Remove.
1874 (DEFAULT_ALLOCSIZE): Remove.
1875 (target_ops_p): New typedef.
1876 (DEF_VEC_P (target_ops_p)): New vector type.
1877 (target_structs): Change type to VEC (target_ops_p).
1878 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1879 (find_default_run_target): Rewrite for loop following changes to
1880 target_structs.
1881
cb417230
JB
18822014-08-19 Joel Brobecker <brobecker@adacore.com>
1883
1884 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1885 Adjust code accordingly. Adjust function description comment.
1886
817e0957
YQ
18872014-08-19 Yao Qi <yao@codesourcery.com>
1888
1889 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1890 types.
1891
2974be62
AM
18922014-08-19 Alan Modra <amodra@gmail.com>
1893
1894 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1895 * config.in: Regenerate.
1896 * configure: Regenerate.
1897
34abf635
GB
18982014-08-19 Tom Tromey <tromey@redhat.com>
1899 Gary Benson <gbenson@redhat.com>
1900
1901 * common/common-debug.h: New file.
1902 * common/common-debug.c: Likewise.
1903 * debug.c: Likewise.
1904 * Makefile.in (SFILES): Add common/common-debug.c.
1905 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1906 (COMMON_OBS): Add common-debug.o and debug.o.
1907 (common-debug.o): New rule.
1908 * common/common-defs.h: Include common-debug.h.
1909 * common/agent.c (debug_agent_printf): New function.
1910 (DEBUG_AGENT): Redefine.
1911 * nat/i386-dregs.c (debug_printf): Undefine.
1912
f6e94d78
GB
19132014-08-19 Gary Benson <gbenson@redhat.com>
1914
1915 * common/common-defs.h: Include print-utils.h.
1916 * utils.h: Do not include print-utils.h.
1917
9239eeab
GB
19182014-08-19 Tom Tromey <tromey@redhat.com>
1919 Gary Benson <gbenson@redhat.com>
1920
1921 * common/common-types.h: New file.
1922 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1923 * common/common-defs.h: Include common-types.h.
1924 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1925 (ULONGEST): Remove.
1926
ef87c8bb
GB
19272014-08-19 Tom Tromey <tromey@redhat.com>
1928 Gary Benson <gbenson@redhat.com>
1929
1930 * common/errors.h: New file.
1931 * common/errors.c: Likewise.
1932 * Makefile.in (SFILES): Add common/errors.c.
1933 (HFILES_NO_SRCDIR): Add common/errors.h.
1934 (COMMON_OBS): Add errors.o.
1935 (errors.o): New rule.
1936 * common/common-defs.h: Include errors.h.
1937 * utils.h (perror_with_name, error, verror, warning, vwarning):
1938 Don't declare.
1939 * common/common-utils.h: (malloc_failure, internal_error):
1940 Likewise.
1941
196a707b
GB
19422014-08-19 Gary Benson <gbenson@redhat.com>
1943
1944 * utils.c (internal_vproblem): Always print the message.
1945
ded4fc8f
DE
19462014-08-18 Doug Evans <dje@google.com>
1947
1948 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1949
950c97d8
JB
19502014-08-18 Joel Brobecker <brobecker@adacore.com>
1951
1952 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1953 Return 0 if TYPE is dynamic.
1954 (print_range): Add handling of dynamic ranges.
1955
3cdcd0ce
JB
19562014-08-18 Keven Boell <keven.boell@intel.com>
1957 Joel Brobecker <brobecker@adacore.com>
1958
1959 * gdbtypes.h (struct main_type): Add field "data_location".
1960 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1961 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1962 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1963 a dynamic data location.
1964 (resolve_dynamic_type): Add DW_AT_data_location handling.
1965 (copy_recursive, copy_type): Copy the data_location information
1966 when present.
1967 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1968 * value.c (value_from_contents_and_address): Add
1969 DW_AT_data_location handling.
1970
08412b07
JB
19712014-08-18 Keven Boell <keven.boell@intel.com>
1972 Joel Brobecker <brobecker@adacore.com>
1973
1974 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1975 field "get_object_address".
1976 * dwarf2expr.c (execute_stack_op): Add handling for
1977 DW_OP_push_object_address.
1978 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1979 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1980 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1981 (dwarf_expr_get_obj_addr): New function.
1982 (dwarf_expr_ctx_funcs): Add get_object_address field.
1983 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1984 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1985 (dwarf2_evaluate_property): Add parameter "address". Use it.
1986 (needs_get_obj_addr): New function.
1987 (needs_frame_ctx_funcs): Add get_object_address field.
1988 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1989 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1990 (resolve_dynamic_array): Likewise.
1991
84754697
JB
19922014-08-18 Joel Brobecker <brobecker@adacore.com>
1993
1994 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1995 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1996 fixed value for records and unions for which some GNAT encodings
1997 are present.
1998
da5c522f
JB
19992014-08-18 Joel Brobecker <brobecker@adacore.com>
2000
2001 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2002 rewrite to avoid "else if" and "else" constructs. Should be
2003 a no-op in practice.
2004
0d72a7c3
JB
20052014-08-18 Joel Brobecker <brobecker@adacore.com>
2006
2007 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2008 of lexical block.
2009
e66d4446
SC
20102014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2011
2012 PR c++/17132
2013 * eval.c: Update all calls to find_overload_match.
2014 * valarith.c: Likewise.
2015 (value_user_defined_cpp_op, value_user_defined_op): New
2016 argument NOSIDE. Update all callers.
2017 * valops.c (find_overload_match): New argument NOSIDE.
2018 * value.h (find_overload_match): Update signature.
2019
940df408
SC
20202014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2021
2022 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2023 'items' methods instead of 'iteritems' method on dictionaries.
2024
699ca60a
DE
20252014-08-15 Doug Evans <dje@google.com>
2026
2027 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2028 closer to use.
2029
37780ee5
DE
20302014-08-15 Doug Evans <dje@google.com>
2031
2032 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2033
0ad93d4f
DE
20342014-08-15 Doug Evans <dje@google.com>
2035
2036 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2037
20d8c372
DE
20382014-08-15 Doug Evans <dje@google.com>
2039
2040 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2041 unused.
2042
cb039ba4
EZ
20432014-08-15 Eli Zaretskii <eliz@gnu.org>
2044
2045 * dcache.h: Include target.h, to avoid compile time warnings.
2046
eb7a547a
JB
20472014-08-15 Joel Brobecker <brobecker@adacore.com>
2048
2049 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2050 frame_info" partial declaration.
2051 * gdbarch.h: Regenerate.
2052
783cecc8
YQ
20532014-08-15 Yao Qi <yao@codesourcery.com>
2054
2055 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2056 Add parameter 'decode_for_pst_p'. Callers update.
2057
65c749e7
YQ
20582014-08-13 Yao Qi <yao@codesourcery.com>
2059
2060 PR build/17104
2061 * configure.ac: Use local variable 'pos'.
2062 * configure: Regenerated.
2063
d769e349
DE
20642014-08-11 Doug Evans <dje@google.com>
2065
2066 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2067 message, it is redundant with "Reading symbols from ..." message.
2068
24f1235e
DE
20692014-08-10 Doug Evans <xdje42@gmail.com>
2070
2071 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2072
dcd2e6ef
YQ
20732014-08-09 Yao Qi <yao@codesourcery.com>
2074
2075 PR remote/9053
2076 * remote.c (remote_xfer_partial): Remove dead code.
2077
070bdf0b
AA
20782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2079
2080 * ia64-linux-tdep.c: Include "regset.h".
2081 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2082 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2083 (ia64_linux_supply_fpregset): New function.
2084 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2085 (ia64_linux_regset_from_core_section): New function.
2086 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2087 method.
2088
08f9f542
AA
20892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2090
2091 * m68klinux-tdep.c: Include "regset.h".
2092 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2093 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2094 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2095 (m68k_linux_regset_from_core_section): New function.
2096 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2097 method.
2098
8f1cee41
AA
20992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2100
2101 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2102 function. Move logic to...
2103 (tilegx_linux_regmap): ... this new register map.
2104 (tilegx_linux_regset): Refer to register map, replace supply
2105 method by regcache_supply_regset, and add collect method.
2106 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2107 TILEGX_FIRST_EASY_REGNUM.
2108
c5741217
AA
21092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2110
2111 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2112 that calls regcache_supply_regset and handles the EPC register
2113 separately. Move main logic to...
2114 (score7_linux_gregmap): ... this new register map.
2115 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2116 (score7_linux_gregset): Refer to register map. Add collect method.
2117 (score7_linux_regset_from_core_section): Replace
2118 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2119 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2120 (struct regset): Delete unused forward declaraction.
2121 (struct pt_regs): Delete structure definition.
2122 (elf_gregset_t): Delete typedef.
2123
81580573
AA
21242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2125
2126 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2127 (nios2_core_regset): Add collect method.
2128
ba199d7d
AA
21292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2130
2131 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2132 platform-independent and don't write to read-only input buffer.
2133 (m32r_linux_collect_gregset): New function.
2134 (m32r_linux_gregset): Add collect method.
2135
0006a9da
AA
21362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2137
2138 * hppa-linux-tdep.c (greg_map): Rename to...
2139 (hppa_linux_gregmap): ... this. Also convert to
2140 regcache_map_entry format.
2141 (hppa_linux_supply_regset): Delete function.
2142 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2143 (hppa_linux_fpregmap): ... this new register map.
2144 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2145 register map, replace supply method by regcache_supply_regset, and
2146 add collect method regcache_collect_regset.
2147
901e1b23
AA
21482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2149
2150 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2151 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2152 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2153 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2154 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2155 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2156 (frv_linux_supply_gregset): Replace main logic by call to
2157 regcache_supply_regset, but keep clearing gr32-gr63.
2158 (frv_linux_supply_fpregset): Delete function.
2159 (frv_linux_gregset): Refer to appropriate register map and add
2160 regcache_collect_regset as the collect method.
2161 (frv_linux_fpregset): Likewise. Also exchange the supply method
2162 by regcache_supply_regset.
2163
1d6e7555
AA
21642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2165
2166 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2167 by call to alpha_supply_int_regs.
2168 (alpha_linux_collect_gregset): New function.
2169 (alpha_linux_supply_fpregset): Replace logic by call to
2170 alpha_supply_fp_regs.
2171 (alpha_linux_collect_fpregset): New function.
2172 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2173
d4d793bf
AA
21742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2175
2176 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2177 by call to regcache_collect_regset.
2178 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2179 instead of aarch64_linux_supply_gregset/_fpregset.
2180 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2181 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2182 header file instead.
2183 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2184 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2185 functions. Move logic to ...
2186 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2187 register maps.
2188 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2189 refer to new register maps, replace *_regset_from_core by
2190 regcache_supply_regset, and also use regcache_collect_regset.
2191 * aarch64-linux-tdep.h: Include "regset.h".
2192 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2193 Delete prototypes.
2194 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2195 macros, moved from C source file.
2196 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2197 variable declarations.
2198
99b7da5d
AA
21992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2200
2201 * s390-linux-nat.c: Include "regset.h".
2202 (regmap_gregset): Delete macro.
2203 (s390_64_regmap_gregset): New register map for
2204 regcache_supply/_collect_regset.
2205 (s390_64_gregset): New regset.
2206 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2207 (regmap_fpregset): Delete macro.
2208 (s390_native_supply, s390_native_collect): Delete functions.
2209 (supply_gregset, fill_gregset): Replace s390-specific regmap
2210 handling by a call to regcache_supply/_collect_regset.
2211 (supply_fpregset, fill_fpregset): Call regcache_supply/
2212 _collect_regset instead of s390_native_supply/_collect.
2213 (fetch_regset, store_regset): Likewise. Also change the last
2214 parameter to a regset instead of a regmap.
2215 (s390_linux_fetch_inferior_registers)
2216 (390_linux_store_inferior_registers): Adjust last parameter in
2217 calls to fetch_regset and store_regset.
2218 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2219 (s390_gregmap): ... this. Also make static const and convert to
2220 regcache_map_entry format.
2221 (s390x_regmap_gregset): Delete.
2222 (s390_regmap_fpregset): Rename to...
2223 (s390_fpregmap): ... this. Make static const and convert to
2224 regcache_map_entry format.
2225 (s390_regmap_upper, s390_regmap_last_break)
2226 (s390x_regmap_last_break, s390_regmap_system_call)
2227 (s390_regmap_tdb): Likewise.
2228 (s390_supply_regset, s390_collect_regset): Remove functions.
2229 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2230 s390_supply_regset.
2231 (s390_gregset, s390_fpregset, s390_upper_regset)
2232 (s390_last_break_regset, s390x_last_break_regset)
2233 (s390_system_call_regset, s390_tdb_regset): Make global and
2234 replace s390_supply/_collect_regset by regcache_supply/
2235 _collect_regset.
2236 (s390x_gregset): Delete.
2237 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2238 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2239 (s390_regmap_fpregset, s390_regmap_last_break)
2240 (s390x_regmap_last_break, s390_regmap_system_call)
2241 (s390_regmap_tdb): Delete global variable declarations.
2242 (s390_gregset, s390_fpregset, s390_last_break_regset)
2243 (s390x_last_break_regset, s390_system_call_regset)
2244 (s390_tdb_regset): New global variable declarations.
2245
0b309272
AA
22462014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2247
2248 * regcache.c: Include "regset.h".
2249 (regcache_transfer_regset): New local function.
2250 (regcache_supply_regset, regcache_collect_regset): New functions.
2251 * regcache.h (struct regcache_map_entry): New structure.
2252 (REGCACHE_MAP_SKIP): New enum value.
2253 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2254
7fefa8d7
AA
22552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2256
2257 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2258 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2259 (ppc_linux_collect_gregset ): Likewise.
2260 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2261 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2262 (ppc_collect_vrregset): Likewise.
2263 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2264 Likewise.
2265
96c4f946
YQ
22662014-08-07 Yao Qi <yao@codesourcery.com>
2267
2268 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2269 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2270 * remote.c (remote_read_bytes): Likewise.
2271
fffbe6a8
YQ
22722014-08-07 Yao Qi <yao@codesourcery.com>
2273
2274 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2275
5ee8a82c
YQ
22762014-08-07 Yao Qi <yao@codesourcery.com>
2277
2278 PR remote/17230
2279 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2280 TARGET_XFER_OK instead of 0.
2281
bb974a24
GB
22822014-08-07 Gary Benson <gbenson@redhat.com>
2283
2284 * common/common-defs.h: Include errno.h.
2285 * defs.h: Do not include errno.h.
2286 * ada-typeprint.c: Likewise.
2287 * c-typeprint.c: Likewise.
2288 * core-regset.c: Likewise.
2289 * corefile.c: Likewise.
2290 * corelow.c: Likewise.
2291 * event-loop.c: Likewise.
2292 * f-typeprint.c: Likewise.
2293 * gnu-nat.c: Likewise.
2294 * go32-nat.c: Likewise.
2295 * i386gnu-nat.c: Likewise.
2296 * m2-typeprint.c: Likewise.
2297 * nat/linux-btrace.c: Likewise.
2298 * p-typeprint.c: Likewise.
2299 * procfs.c: Likewise.
2300 * remote-sim.c: Likewise.
2301 * rs6000-nat.c: Likewise.
2302 * target.c: Likewise.
2303 * typeprint.c: Likewise.
2304 * ui-file.c: Likewise.
2305 * valops.c: Likewise.
2306 * valprint.c: Likewise.
2307
6d3d12eb
GB
23082014-08-07 Gary Benson <gbenson@redhat.com>
2309
2310 * common/common-defs.h: Include string.h.
2311 * aarch64-tdep.c: Do not include string.h.
2312 * ada-exp.y: Likewise.
2313 * ada-lang.c: Likewise.
2314 * ada-lex.l: Likewise.
2315 * ada-typeprint.c: Likewise.
2316 * ada-valprint.c: Likewise.
2317 * aix-thread.c: Likewise.
2318 * alpha-linux-tdep.c: Likewise.
2319 * alpha-mdebug-tdep.c: Likewise.
2320 * alpha-nat.c: Likewise.
2321 * alpha-osf1-tdep.c: Likewise.
2322 * alpha-tdep.c: Likewise.
2323 * alphanbsd-tdep.c: Likewise.
2324 * amd64-dicos-tdep.c: Likewise.
2325 * amd64-linux-tdep.c: Likewise.
2326 * amd64-nat.c: Likewise.
2327 * amd64-sol2-tdep.c: Likewise.
2328 * amd64fbsd-tdep.c: Likewise.
2329 * amd64obsd-tdep.c: Likewise.
2330 * arch-utils.c: Likewise.
2331 * arm-linux-nat.c: Likewise.
2332 * arm-linux-tdep.c: Likewise.
2333 * arm-tdep.c: Likewise.
2334 * arm-wince-tdep.c: Likewise.
2335 * armbsd-tdep.c: Likewise.
2336 * armnbsd-nat.c: Likewise.
2337 * armnbsd-tdep.c: Likewise.
2338 * armobsd-tdep.c: Likewise.
2339 * avr-tdep.c: Likewise.
2340 * ax-gdb.c: Likewise.
2341 * ax-general.c: Likewise.
2342 * bcache.c: Likewise.
2343 * bfin-tdep.c: Likewise.
2344 * breakpoint.c: Likewise.
2345 * build-id.c: Likewise.
2346 * buildsym.c: Likewise.
2347 * c-exp.y: Likewise.
2348 * c-lang.c: Likewise.
2349 * c-typeprint.c: Likewise.
2350 * c-valprint.c: Likewise.
2351 * charset.c: Likewise.
2352 * cli-out.c: Likewise.
2353 * cli/cli-cmds.c: Likewise.
2354 * cli/cli-decode.c: Likewise.
2355 * cli/cli-dump.c: Likewise.
2356 * cli/cli-interp.c: Likewise.
2357 * cli/cli-logging.c: Likewise.
2358 * cli/cli-script.c: Likewise.
2359 * cli/cli-setshow.c: Likewise.
2360 * cli/cli-utils.c: Likewise.
2361 * coffread.c: Likewise.
2362 * common/agent.c: Likewise.
2363 * common/buffer.c: Likewise.
2364 * common/buffer.h: Likewise.
2365 * common/common-utils.c: Likewise.
2366 * common/filestuff.c: Likewise.
2367 * common/filestuff.c: Likewise.
2368 * common/format.c: Likewise.
2369 * common/print-utils.c: Likewise.
2370 * common/rsp-low.c: Likewise.
2371 * common/signals.c: Likewise.
2372 * common/vec.h: Likewise.
2373 * common/xml-utils.c: Likewise.
2374 * core-regset.c: Likewise.
2375 * corefile.c: Likewise.
2376 * corelow.c: Likewise.
2377 * cp-abi.c: Likewise.
2378 * cp-name-parser.y: Likewise.
2379 * cp-support.c: Likewise.
2380 * cp-valprint.c: Likewise.
2381 * cris-tdep.c: Likewise.
2382 * d-exp.y: Likewise.
2383 * darwin-nat.c: Likewise.
2384 * dbxread.c: Likewise.
2385 * dcache.c: Likewise.
2386 * demangle.c: Likewise.
2387 * dicos-tdep.c: Likewise.
2388 * disasm.c: Likewise.
2389 * doublest.c: Likewise.
2390 * dsrec.c: Likewise.
2391 * dummy-frame.c: Likewise.
2392 * dwarf2-frame.c: Likewise.
2393 * dwarf2loc.c: Likewise.
2394 * dwarf2read.c: Likewise.
2395 * elfread.c: Likewise.
2396 * environ.c: Likewise.
2397 * eval.c: Likewise.
2398 * event-loop.c: Likewise.
2399 * exceptions.c: Likewise.
2400 * exec.c: Likewise.
2401 * expprint.c: Likewise.
2402 * f-exp.y: Likewise.
2403 * f-lang.c: Likewise.
2404 * f-typeprint.c: Likewise.
2405 * f-valprint.c: Likewise.
2406 * fbsd-nat.c: Likewise.
2407 * findcmd.c: Likewise.
2408 * findvar.c: Likewise.
2409 * fork-child.c: Likewise.
2410 * frame.c: Likewise.
2411 * frv-linux-tdep.c: Likewise.
2412 * frv-tdep.c: Likewise.
2413 * gdb.c: Likewise.
2414 * gdb_bfd.c: Likewise.
2415 * gdbarch.c: Likewise.
2416 * gdbarch.sh: Likewise.
2417 * gdbtypes.c: Likewise.
2418 * gnu-nat.c: Likewise.
2419 * gnu-v2-abi.c: Likewise.
2420 * gnu-v3-abi.c: Likewise.
2421 * go-exp.y: Likewise.
2422 * go-lang.c: Likewise.
2423 * go32-nat.c: Likewise.
2424 * guile/guile.c: Likewise.
2425 * guile/scm-auto-load.c: Likewise.
2426 * hppa-hpux-tdep.c: Likewise.
2427 * hppa-linux-nat.c: Likewise.
2428 * hppanbsd-tdep.c: Likewise.
2429 * hppaobsd-tdep.c: Likewise.
2430 * i386-cygwin-tdep.c: Likewise.
2431 * i386-dicos-tdep.c: Likewise.
2432 * i386-linux-tdep.c: Likewise.
2433 * i386-nto-tdep.c: Likewise.
2434 * i386-sol2-tdep.c: Likewise.
2435 * i386-tdep.c: Likewise.
2436 * i386bsd-tdep.c: Likewise.
2437 * i386gnu-nat.c: Likewise.
2438 * i386nbsd-tdep.c: Likewise.
2439 * i386obsd-tdep.c: Likewise.
2440 * i387-tdep.c: Likewise.
2441 * ia64-libunwind-tdep.c: Likewise.
2442 * ia64-linux-nat.c: Likewise.
2443 * inf-child.c: Likewise.
2444 * inf-ptrace.c: Likewise.
2445 * inf-ttrace.c: Likewise.
2446 * infcall.c: Likewise.
2447 * infcmd.c: Likewise.
2448 * inflow.c: Likewise.
2449 * infrun.c: Likewise.
2450 * interps.c: Likewise.
2451 * iq2000-tdep.c: Likewise.
2452 * irix5-nat.c: Likewise.
2453 * jv-exp.y: Likewise.
2454 * jv-lang.c: Likewise.
2455 * jv-typeprint.c: Likewise.
2456 * jv-valprint.c: Likewise.
2457 * language.c: Likewise.
2458 * linux-fork.c: Likewise.
2459 * linux-nat.c: Likewise.
2460 * lm32-tdep.c: Likewise.
2461 * m2-exp.y: Likewise.
2462 * m2-typeprint.c: Likewise.
2463 * m32c-tdep.c: Likewise.
2464 * m32r-linux-nat.c: Likewise.
2465 * m32r-linux-tdep.c: Likewise.
2466 * m32r-rom.c: Likewise.
2467 * m32r-tdep.c: Likewise.
2468 * m68hc11-tdep.c: Likewise.
2469 * m68k-tdep.c: Likewise.
2470 * m68kbsd-tdep.c: Likewise.
2471 * m68klinux-nat.c: Likewise.
2472 * m68klinux-tdep.c: Likewise.
2473 * m88k-tdep.c: Likewise.
2474 * machoread.c: Likewise.
2475 * macrocmd.c: Likewise.
2476 * main.c: Likewise.
2477 * mdebugread.c: Likewise.
2478 * mem-break.c: Likewise.
2479 * memattr.c: Likewise.
2480 * memory-map.c: Likewise.
2481 * mep-tdep.c: Likewise.
2482 * mi/mi-cmd-break.c: Likewise.
2483 * mi/mi-cmd-disas.c: Likewise.
2484 * mi/mi-cmd-env.c: Likewise.
2485 * mi/mi-cmd-stack.c: Likewise.
2486 * mi/mi-cmd-var.c: Likewise.
2487 * mi/mi-cmds.c: Likewise.
2488 * mi/mi-console.c: Likewise.
2489 * mi/mi-getopt.c: Likewise.
2490 * mi/mi-interp.c: Likewise.
2491 * mi/mi-main.c: Likewise.
2492 * mi/mi-parse.c: Likewise.
2493 * microblaze-rom.c: Likewise.
2494 * microblaze-tdep.c: Likewise.
2495 * mingw-hdep.c: Likewise.
2496 * minidebug.c: Likewise.
2497 * minsyms.c: Likewise.
2498 * mips-irix-tdep.c: Likewise.
2499 * mips-linux-tdep.c: Likewise.
2500 * mips-tdep.c: Likewise.
2501 * mips64obsd-tdep.c: Likewise.
2502 * mipsnbsd-tdep.c: Likewise.
2503 * mipsread.c: Likewise.
2504 * mn10300-linux-tdep.c: Likewise.
2505 * mn10300-tdep.c: Likewise.
2506 * monitor.c: Likewise.
2507 * moxie-tdep.c: Likewise.
2508 * mt-tdep.c: Likewise.
2509 * nat/linux-btrace.c: Likewise.
2510 * nat/linux-osdata.c: Likewise.
2511 * nat/linux-procfs.c: Likewise.
2512 * nat/linux-ptrace.c: Likewise.
2513 * nat/linux-waitpid.c: Likewise.
2514 * nbsd-tdep.c: Likewise.
2515 * nios2-linux-tdep.c: Likewise.
2516 * nto-procfs.c: Likewise.
2517 * nto-tdep.c: Likewise.
2518 * objc-lang.c: Likewise.
2519 * objfiles.c: Likewise.
2520 * opencl-lang.c: Likewise.
2521 * osabi.c: Likewise.
2522 * osdata.c: Likewise.
2523 * p-exp.y: Likewise.
2524 * p-lang.c: Likewise.
2525 * p-typeprint.c: Likewise.
2526 * parse.c: Likewise.
2527 * posix-hdep.c: Likewise.
2528 * ppc-linux-nat.c: Likewise.
2529 * ppc-sysv-tdep.c: Likewise.
2530 * ppcfbsd-tdep.c: Likewise.
2531 * ppcnbsd-tdep.c: Likewise.
2532 * ppcobsd-tdep.c: Likewise.
2533 * printcmd.c: Likewise.
2534 * procfs.c: Likewise.
2535 * prologue-value.c: Likewise.
2536 * python/py-auto-load.c: Likewise.
2537 * python/py-gdb-readline.c: Likewise.
2538 * ravenscar-thread.c: Likewise.
2539 * regcache.c: Likewise.
2540 * registry.c: Likewise.
2541 * remote-fileio.c: Likewise.
2542 * remote-m32r-sdi.c: Likewise.
2543 * remote-mips.c: Likewise.
2544 * remote-notif.c: Likewise.
2545 * remote-sim.c: Likewise.
2546 * remote.c: Likewise.
2547 * reverse.c: Likewise.
2548 * rs6000-aix-tdep.c: Likewise.
2549 * ser-base.c: Likewise.
2550 * ser-go32.c: Likewise.
2551 * ser-mingw.c: Likewise.
2552 * ser-pipe.c: Likewise.
2553 * ser-tcp.c: Likewise.
2554 * ser-unix.c: Likewise.
2555 * serial.c: Likewise.
2556 * sh-tdep.c: Likewise.
2557 * sh64-tdep.c: Likewise.
2558 * shnbsd-tdep.c: Likewise.
2559 * skip.c: Likewise.
2560 * sol-thread.c: Likewise.
2561 * solib-dsbt.c: Likewise.
2562 * solib-frv.c: Likewise.
2563 * solib-osf.c: Likewise.
2564 * solib-som.c: Likewise.
2565 * solib-spu.c: Likewise.
2566 * solib-target.c: Likewise.
2567 * solib.c: Likewise.
2568 * somread.c: Likewise.
2569 * source.c: Likewise.
2570 * sparc-nat.c: Likewise.
2571 * sparc-sol2-tdep.c: Likewise.
2572 * sparc-tdep.c: Likewise.
2573 * sparc64-tdep.c: Likewise.
2574 * sparc64fbsd-tdep.c: Likewise.
2575 * sparc64nbsd-tdep.c: Likewise.
2576 * sparcnbsd-tdep.c: Likewise.
2577 * spu-linux-nat.c: Likewise.
2578 * spu-multiarch.c: Likewise.
2579 * spu-tdep.c: Likewise.
2580 * stabsread.c: Likewise.
2581 * stack.c: Likewise.
2582 * std-regs.c: Likewise.
2583 * symfile.c: Likewise.
2584 * symmisc.c: Likewise.
2585 * symtab.c: Likewise.
2586 * target.c: Likewise.
2587 * thread.c: Likewise.
2588 * tilegx-linux-nat.c: Likewise.
2589 * tilegx-tdep.c: Likewise.
2590 * top.c: Likewise.
2591 * tracepoint.c: Likewise.
2592 * tui/tui-command.c: Likewise.
2593 * tui/tui-data.c: Likewise.
2594 * tui/tui-disasm.c: Likewise.
2595 * tui/tui-file.c: Likewise.
2596 * tui/tui-layout.c: Likewise.
2597 * tui/tui-out.c: Likewise.
2598 * tui/tui-regs.c: Likewise.
2599 * tui/tui-source.c: Likewise.
2600 * tui/tui-stack.c: Likewise.
2601 * tui/tui-win.c: Likewise.
2602 * tui/tui-windata.c: Likewise.
2603 * tui/tui-winsource.c: Likewise.
2604 * typeprint.c: Likewise.
2605 * ui-file.c: Likewise.
2606 * ui-out.c: Likewise.
2607 * user-regs.c: Likewise.
2608 * utils.c: Likewise.
2609 * v850-tdep.c: Likewise.
2610 * valarith.c: Likewise.
2611 * valops.c: Likewise.
2612 * valprint.c: Likewise.
2613 * value.c: Likewise.
2614 * varobj.c: Likewise.
2615 * vax-tdep.c: Likewise.
2616 * vaxnbsd-tdep.c: Likewise.
2617 * vaxobsd-tdep.c: Likewise.
2618 * windows-nat.c: Likewise.
2619 * xcoffread.c: Likewise.
2620 * xml-support.c: Likewise.
2621 * xstormy16-tdep.c: Likewise.
2622 * xtensa-linux-nat.c: Likewise.
2623
dccbb609
GB
26242014-08-07 Gary Benson <gbenson@redhat.com>
2625
2626 * common/common-defs.h: Include gdb_assert.h.
2627 * aarch64-tdep.c: Do not include gdb_assert.h.
2628 * addrmap.c: Likewise.
2629 * aix-thread.c: Likewise.
2630 * alpha-linux-tdep.c: Likewise.
2631 * alpha-mdebug-tdep.c: Likewise.
2632 * alphanbsd-tdep.c: Likewise.
2633 * amd64-nat.c: Likewise.
2634 * amd64-tdep.c: Likewise.
2635 * amd64bsd-nat.c: Likewise.
2636 * amd64fbsd-nat.c: Likewise.
2637 * amd64fbsd-tdep.c: Likewise.
2638 * amd64nbsd-nat.c: Likewise.
2639 * amd64nbsd-tdep.c: Likewise.
2640 * amd64obsd-nat.c: Likewise.
2641 * amd64obsd-tdep.c: Likewise.
2642 * arch-utils.c: Likewise.
2643 * arm-tdep.c: Likewise.
2644 * armbsd-tdep.c: Likewise.
2645 * auxv.c: Likewise.
2646 * bcache.c: Likewise.
2647 * bfin-tdep.c: Likewise.
2648 * blockframe.c: Likewise.
2649 * breakpoint.c: Likewise.
2650 * bsd-kvm.c: Likewise.
2651 * bsd-uthread.c: Likewise.
2652 * buildsym.c: Likewise.
2653 * c-exp.y: Likewise.
2654 * c-lang.c: Likewise.
2655 * charset.c: Likewise.
2656 * cleanups.c: Likewise.
2657 * cli-out.c: Likewise.
2658 * cli/cli-decode.c: Likewise.
2659 * cli/cli-dump.c: Likewise.
2660 * cli/cli-logging.c: Likewise.
2661 * cli/cli-script.c: Likewise.
2662 * cli/cli-utils.c: Likewise.
2663 * coffread.c: Likewise.
2664 * common/common-utils.c: Likewise.
2665 * common/queue.h: Likewise.
2666 * common/signals.c: Likewise.
2667 * common/vec.h: Likewise.
2668 * complaints.c: Likewise.
2669 * completer.c: Likewise.
2670 * corelow.c: Likewise.
2671 * cp-abi.c: Likewise.
2672 * cp-name-parser.y: Likewise.
2673 * cp-namespace.c: Likewise.
2674 * cp-support.c: Likewise.
2675 * cris-tdep.c: Likewise.
2676 * dbxread.c: Likewise.
2677 * dictionary.c: Likewise.
2678 * doublest.c: Likewise.
2679 * dsrec.c: Likewise.
2680 * dummy-frame.c: Likewise.
2681 * dwarf2-frame-tailcall.c: Likewise.
2682 * dwarf2-frame.c: Likewise.
2683 * dwarf2expr.c: Likewise.
2684 * dwarf2loc.c: Likewise.
2685 * dwarf2read.c: Likewise.
2686 * eval.c: Likewise.
2687 * event-loop.c: Likewise.
2688 * exceptions.c: Likewise.
2689 * expprint.c: Likewise.
2690 * f-valprint.c: Likewise.
2691 * fbsd-nat.c: Likewise.
2692 * findvar.c: Likewise.
2693 * frame-unwind.c: Likewise.
2694 * frame.c: Likewise.
2695 * frv-tdep.c: Likewise.
2696 * gcore.c: Likewise.
2697 * gdb-dlfcn.c: Likewise.
2698 * gdb_bfd.c: Likewise.
2699 * gdbarch.c: Likewise.
2700 * gdbarch.sh: Likewise.
2701 * gdbtypes.c: Likewise.
2702 * gnu-nat.c: Likewise.
2703 * gnu-v3-abi.c: Likewise.
2704 * go-lang.c: Likewise.
2705 * guile/scm-exception.c: Likewise.
2706 * guile/scm-gsmob.c: Likewise.
2707 * guile/scm-lazy-string.c: Likewise.
2708 * guile/scm-math.c: Likewise.
2709 * guile/scm-pretty-print.c: Likewise.
2710 * guile/scm-safe-call.c: Likewise.
2711 * guile/scm-utils.c: Likewise.
2712 * guile/scm-value.c: Likewise.
2713 * h8300-tdep.c: Likewise.
2714 * hppa-hpux-nat.c: Likewise.
2715 * hppa-tdep.c: Likewise.
2716 * hppanbsd-tdep.c: Likewise.
2717 * hppaobsd-tdep.c: Likewise.
2718 * i386-darwin-nat.c: Likewise.
2719 * i386-darwin-tdep.c: Likewise.
2720 * i386-nto-tdep.c: Likewise.
2721 * i386-tdep.c: Likewise.
2722 * i386bsd-nat.c: Likewise.
2723 * i386fbsd-tdep.c: Likewise.
2724 * i386gnu-nat.c: Likewise.
2725 * i386nbsd-tdep.c: Likewise.
2726 * i386obsd-tdep.c: Likewise.
2727 * i387-tdep.c: Likewise.
2728 * ia64-libunwind-tdep.c: Likewise.
2729 * ia64-tdep.c: Likewise.
2730 * inf-ptrace.c: Likewise.
2731 * inf-ttrace.c: Likewise.
2732 * infcall.c: Likewise.
2733 * infcmd.c: Likewise.
2734 * infrun.c: Likewise.
2735 * inline-frame.c: Likewise.
2736 * interps.c: Likewise.
2737 * jv-lang.c: Likewise.
2738 * jv-typeprint.c: Likewise.
2739 * linux-fork.c: Likewise.
2740 * linux-nat.c: Likewise.
2741 * linux-thread-db.c: Likewise.
2742 * m32c-tdep.c: Likewise.
2743 * m32r-linux-nat.c: Likewise.
2744 * m32r-tdep.c: Likewise.
2745 * m68k-tdep.c: Likewise.
2746 * m68kbsd-nat.c: Likewise.
2747 * m68kbsd-tdep.c: Likewise.
2748 * m88k-tdep.c: Likewise.
2749 * machoread.c: Likewise.
2750 * macroexp.c: Likewise.
2751 * macrotab.c: Likewise.
2752 * maint.c: Likewise.
2753 * mdebugread.c: Likewise.
2754 * memory-map.c: Likewise.
2755 * mep-tdep.c: Likewise.
2756 * mi/mi-common.c: Likewise.
2757 * microblaze-tdep.c: Likewise.
2758 * mingw-hdep.c: Likewise.
2759 * mips-linux-nat.c: Likewise.
2760 * mips-linux-tdep.c: Likewise.
2761 * mips-tdep.c: Likewise.
2762 * mips64obsd-tdep.c: Likewise.
2763 * mipsnbsd-tdep.c: Likewise.
2764 * mn10300-linux-tdep.c: Likewise.
2765 * mn10300-tdep.c: Likewise.
2766 * moxie-tdep.c: Likewise.
2767 * mt-tdep.c: Likewise.
2768 * nat/linux-btrace.c: Likewise.
2769 * nat/linux-osdata.c: Likewise.
2770 * nat/linux-ptrace.c: Likewise.
2771 * nat/mips-linux-watch.c: Likewise.
2772 * nios2-linux-tdep.c: Likewise.
2773 * nios2-tdep.c: Likewise.
2774 * objc-lang.c: Likewise.
2775 * objfiles.c: Likewise.
2776 * obsd-nat.c: Likewise.
2777 * opencl-lang.c: Likewise.
2778 * osabi.c: Likewise.
2779 * parse.c: Likewise.
2780 * ppc-linux-nat.c: Likewise.
2781 * ppc-sysv-tdep.c: Likewise.
2782 * ppcfbsd-nat.c: Likewise.
2783 * ppcfbsd-tdep.c: Likewise.
2784 * ppcnbsd-nat.c: Likewise.
2785 * ppcnbsd-tdep.c: Likewise.
2786 * ppcobsd-nat.c: Likewise.
2787 * ppcobsd-tdep.c: Likewise.
2788 * printcmd.c: Likewise.
2789 * procfs.c: Likewise.
2790 * prologue-value.c: Likewise.
2791 * psymtab.c: Likewise.
2792 * python/py-lazy-string.c: Likewise.
2793 * python/py-value.c: Likewise.
2794 * regcache.c: Likewise.
2795 * reggroups.c: Likewise.
2796 * registry.c: Likewise.
2797 * remote-sim.c: Likewise.
2798 * remote.c: Likewise.
2799 * rs6000-aix-tdep.c: Likewise.
2800 * rs6000-tdep.c: Likewise.
2801 * s390-linux-tdep.c: Likewise.
2802 * score-tdep.c: Likewise.
2803 * ser-base.c: Likewise.
2804 * ser-mingw.c: Likewise.
2805 * sh-tdep.c: Likewise.
2806 * sh64-tdep.c: Likewise.
2807 * solib-darwin.c: Likewise.
2808 * solib-spu.c: Likewise.
2809 * solib-svr4.c: Likewise.
2810 * source.c: Likewise.
2811 * sparc-nat.c: Likewise.
2812 * sparc-sol2-tdep.c: Likewise.
2813 * sparc-tdep.c: Likewise.
2814 * sparc64-sol2-tdep.c: Likewise.
2815 * sparc64-tdep.c: Likewise.
2816 * sparc64fbsd-tdep.c: Likewise.
2817 * sparc64nbsd-tdep.c: Likewise.
2818 * sparc64obsd-tdep.c: Likewise.
2819 * sparcnbsd-tdep.c: Likewise.
2820 * sparcobsd-tdep.c: Likewise.
2821 * spu-multiarch.c: Likewise.
2822 * spu-tdep.c: Likewise.
2823 * stabsread.c: Likewise.
2824 * stack.c: Likewise.
2825 * symfile.c: Likewise.
2826 * symtab.c: Likewise.
2827 * target-descriptions.c: Likewise.
2828 * target-memory.c: Likewise.
2829 * target.c: Likewise.
2830 * tic6x-linux-tdep.c: Likewise.
2831 * tic6x-tdep.c: Likewise.
2832 * tilegx-linux-nat.c: Likewise.
2833 * tilegx-tdep.c: Likewise.
2834 * top.c: Likewise.
2835 * tramp-frame.c: Likewise.
2836 * tui/tui-out.c: Likewise.
2837 * tui/tui-winsource.c: Likewise.
2838 * ui-out.c: Likewise.
2839 * user-regs.c: Likewise.
2840 * utils.c: Likewise.
2841 * v850-tdep.c: Likewise.
2842 * valops.c: Likewise.
2843 * value.c: Likewise.
2844 * varobj.c: Likewise.
2845 * vax-nat.c: Likewise.
2846 * xml-syscall.c: Likewise.
2847 * xml-tdesc.c: Likewise.
2848 * xstormy16-tdep.c: Likewise.
2849 * xtensa-linux-nat.c: Likewise.
2850 * xtensa-tdep.c: Likewise.
2851
e76df0d0
GB
28522014-08-07 Gary Benson <gbenson@redhat.com>
2853
2854 * common/common-defs.h: Include common-utils.h.
2855 * defs.h: Do not include common-utils.h.
2856 * common/gdb_assert.h: Likewise.
2857 * darwin-nat.h: Likewise.
2858 * nat/linux-btrace.c: Likewise.
2859 * target/waitstatus.h: Likewise.
2860
4cb9c816
GB
28612014-08-07 Gary Benson <gbenson@redhat.com>
2862
2863 * common/common-defs.h: Include ptid.h.
2864 * defs.h: Do not include ptid.h.
2865 * inferior.h: Likewise.
2866 * infrun.h: Likewise.
2867 * nat/linux-btrace.h: Likewise.
2868 * nat/linux-osdata.h: Likewise.
2869 * target/waitstatus.h: Likewise.
2870
3995eeee
GB
28712014-08-07 Gary Benson <gbenson@redhat.com>
2872
2873 * common/common-defs.h: Include gdb_locale.h.
2874 * defs.h: Do not include gdb_locale.h.
2875
cb9f1a9b
GB
28762014-08-07 Gary Benson <gbenson@redhat.com>
2877
2878 * common/common-defs.h: Include gdb/signals.h.
2879 * defs.h: Do not include gdb/signals.h.
2880
a5fceff8
GB
28812014-08-07 Gary Benson <gbenson@redhat.com>
2882
2883 * common/common-defs.h: Include pathmax.h.
2884 * defs.h: Do not include pathmax.h.
2885
b9391142
GB
28862014-08-07 Gary Benson <gbenson@redhat.com>
2887
2888 * common/common-defs.h: Include libiberty.h.
2889 * defs.h: Do not include libiberty.h.
2890 * common/queue.h: Likewise.
2891 * cp-name-parser.y: Likewise.
2892 * mi/mi-cmd-catch.c: Likewise.
2893 * python/python.c: Likewise.
2894
0e443c87
GB
28952014-08-07 Gary Benson <gbenson@redhat.com>
2896
2897 * common/common-defs.h: Include ansidecl.h.
2898 * defs.h: Do not include ansidecl.h.
2899 * common/buffer.h: Likewise.
2900 * common/common-utils.h: Likewise.
2901
8ebb3f56
GB
29022014-08-07 Gary Benson <gbenson@redhat.com>
2903
2904 * common/common-defs.h: Include stddef.h.
2905 * defs.h: Do not include stddef.h.
2906 * common/common-utils.h: Likewise.
2907 * amd64fbsd-nat.c: Likewise.
2908 * bcache.c: Likewise.
2909 * charset.c: Likewise.
2910 * common/buffer.h: Likewise.
2911 * common/vec.h: Likewise.
2912 * i386bsd-nat.c: Likewise.
2913 * nat/linux-btrace.h: Likewise.
2914 * ppcfbsd-nat.c: Likewise.
2915 * ppcnbsd-tdep.h: Likewise.
2916 * ppcobsd-nat.c: Likewise.
2917 * ppcobsd-tdep.h: Likewise.
2918 * python/py-gdb-readline.c: Likewise.
2919
8980bdf6
GB
29202014-08-07 Gary Benson <gbenson@redhat.com>
2921
2922 * common/common-defs.h: Include stdarg.h.
2923 * defs.h: Do not include stdarg.h.
2924 * ada-lang.c: Likewise.
2925 * common/common-utils.h: Likewise.
2926 * guile/scm-string.c: Likewise.
2927 * guile/scm-utils.c: Likewise.
2928 * m32c-tdep.c: Likewise.
2929
d7096f71
GB
29302014-08-07 Gary Benson <gbenson@redhat.com>
2931
2932 * common/common-defs.h: Include stdlib.h.
2933 * defs.h: Do not include stdlib.h.
2934 * addrmap.c: Likewise.
2935 * bcache.c: Likewise.
2936 * common/buffer.c: Likewise.
2937 * common/common-utils.c: Likewise.
2938 * cp-name-parser.y: Likewise.
2939 * go32-nat.c: Likewise.
2940 * mn10300-linux-tdep.c: Likewise.
2941 * nat/linux-osdata.c: Likewise.
2942 * tui/tui.c: Likewise.
2943 * windows-nat.c: Likewise.
2944
d02f550d
GB
29452014-08-07 Gary Benson <gbenson@redhat.com>
2946
2947 * common/common-defs.h: Include stdio.h.
2948 * defs.h: Do not include stdio.h.
2949 * ada-lang.c: Likewise.
2950 * common/buffer.c: Likewise.
2951 * common/common-utils.c: Likewise.
2952 * cp-name-parser.y: Likewise.
2953 * gnu-nat.c: Likewise.
2954 * go32-nat.c: Likewise.
2955 * i386gnu-nat.c: Likewise.
2956 * proc-api.c: Likewise.
2957 * proc-events.c: Likewise.
2958 * proc-flags.c: Likewise.
2959 * proc-why.c: Likewise.
2960 * python/python-internal.h: Likewise.
2961 * target-memory.c: Likewise.
2962 * tui/tui-io.c: Likewise.
2963 * tui/tui.c: Likewise.
2964
b6d7a4bf
SM
29652014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2966
2967 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2968 (scan_dyntag_auxv): Same.
2969
af19829b
YQ
29702014-08-06 Yao Qi <yao@codesourcery.com>
2971
2972 * amd64-linux-nat.c: Remove duplicated include
2973 "x86-linux-nat.h".
2974 * i386-linux-nat.c: Likewise.
2975
8e07a239
YQ
29762014-08-06 Yao Qi <yao@codesourcery.com>
2977
2978 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2979 operand" with "Special opcode" in comments.
2980
7bfe8241
GB
29812014-08-05 Gary Benson <gbenson@redhat.com>
2982
2983 * interps.c (initialize_interps): Remove prototype.
2984 (interpreter_initialized): Remove static global.
2985 (interp_add): Do not call initialize_interps.
2986 (initialize_interps): Remove function.
2987
d6c95504
GB
29882014-08-05 Gary Benson <gbenson@redhat.com>
2989
2990 * utils.c (vwarning): Remove spurious va_end.
2991
241fd515
AM
29922014-08-05 Alan Modra <amodra@gmail.com>
2993
2994 * charset.c (convert_between_encodings): Cast result of obstack_base.
2995 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2996 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2997 (read_unwind_info): Use size_t for some locals.
2998 * jit.c (finalize_symtab): Likewise.
2999 * utils.c (hashtab_obstack_allocate): Likewise.
3000 * symmisc.c (print_objfile_statistics): Update format strings.
3001
dc304a94
JK
30022014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3003
3004 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3005 (Changes in GDB 7.8): ... here.
3006
3cecbbbe
TT
30072014-08-04 Tom Tromey <tromey@redhat.com>
3008
3009 * target.c (set_targetdebug): New function.
3010 (initialize_targets): Pass set_targetdebug when creating "set
3011 debug target".
3012
6908c509
JB
30132014-08-01 Joel Brobecker <brobecker@adacore.com>
3014
3015 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3016 if detecting a variable-sized field that is not the last field.
3017 Fix struct type length computation.
3018
53e8f97d
JB
30192014-08-01 Joel Brobecker <brobecker@adacore.com>
3020
3021 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3022 Add debug trace.
3023
e068c55d
JB
30242014-08-01 Joel Brobecker <brobecker@adacore.com>
3025
3026 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3027 Remove "+ 8" offset in computation of CHAIN_VMA.
3028
4d4ca2a1
DE
30292014-07-31 Doug Evans <dje@google.com>
3030
3031 * inflow.c (child_terminal_inferior): Add comment.
3032 (child_terminal_ours_for_output): Add comment.
3033 (child_terminal_ours): Add comment.
3034 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3035 (linux_nat_terminal_ours): Add comment.
3036
462f517e
GB
30372014-07-31 Gary Benson <gbenson@redhat.com>
3038
3039 * common/btrace-common.h: Do not include defs.h or server.h.
3040 * nat/mips-linux-watch.h: Likewise.
3041 * gdb-dlfcn.h: Do not include defs.h.
3042 * tracefile.h: Likewise.
3043
74228e77
RM
30442014-07-30 Roland McGrath <mcgrathr@google.com>
3045
3046 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3047
014f9477
TT
30482014-07-30 Tom Tromey <tromey@redhat.com>
3049
3050 * bsd-kvm.c (bsd_kvm_open): Constify.
3051 * corelow.c (core_open): Constify.
3052 * ctf.c (ctf_open): Constify.
3053 * dbug-rom.c (dbug_open): Constify.
3054 * exec.c (exec_open): Constify.
3055 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3056 * microblaze-rom.c (picobug_open): Constify.
3057 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3058 Constify.
3059 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3060 * record-btrace.c (record_btrace_open): Constify.
3061 * record-full.c (record_full_core_open_1, record_full_open_1)
3062 (record_full_open): Constify.
3063 * remote-m32r-sdi.c (m32r_open): Constify.
3064 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3065 (rockhopper_open, lsi_open): Constify.
3066 * remote-sim.c (gdbsim_open): Constify.
3067 * remote.c (remote_open, extended_remote_open, remote_open_1):
3068 Constify.
3069 * target.h (struct target_ops) <to_open>: Make "arg" const.
3070 * tracefile-tfile.c (tfile_open): Constify.
3071
e799154c
TT
30722014-07-30 Tom Tromey <tromey@redhat.com>
3073
3074 * breakpoint.c (map_breakpoint_numbers): Update.
3075 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3076 (get_number_const): New function.
3077 (get_number): Rewrite using get_number_const.
3078 (init_number_or_range): Make "string" const.
3079 (number_is_in_list): Make "list" const.
3080 * cli/cli-utils.h (get_number_const): Declare.
3081 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3082 (init_number_or_range, number_is_in_list): Update.
3083 * printcmd.c (map_display_numbers): Update.
3084 * value.c (value_from_history_ref): Constify.
3085 * value.h (value_from_history_ref): Update.
3086
5f08566b
TT
30872014-07-30 Tom Tromey <tromey@redhat.com>
3088
3089 * corefile.c (hook_type, call_extra_exec_file_hooks)
3090 (specify_exec_file_hook): Constify.
3091 * exec.c (exec_file_attach): Make "filename" const.
3092 * gdbcore.h (deprecated_exec_file_display_hook)
3093 (specify_exec_file_hook, exec_file_attach): Constify.
3094 * main.c (captured_main): Use catch_command_errors_const.
3095
8981c758
TT
30962014-07-30 Tom Tromey <tromey@redhat.com>
3097
3098 * target.c (open_target): New function.
3099 (add_target_with_completer, add_deprecated_target_alias): Use
3100 set_cmd_sfunc, set_cmd_context.
3101 (debug_to_open): Remove.
3102 (setup_target_debug): Update.
3103
a1c7835a
YQ
31042014-07-30 Yao Qi <yao@codesourcery.com>
3105
3106 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3107 comments.
3108 * parse.c (exp_iterate): Update comments.
3109
976411d6
GB
31102014-07-30 Gary Benson <gbenson@redhat.com>
3111
3112 * common/common-defs.h: New file.
3113 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3114 * defs.h: Include common-defs.h.
3115 Do not include config.h or build-gnulib/config.h.
3116
5d4848a4
GB
31172014-07-30 Gary Benson <gbenson@redhat.com>
3118
3119 * common/common-utils.h: Do not include config.h.
3120 * nat/linux-btrace.h: Likewise.
3121
d41f6d8e
GB
31222014-07-30 Gary Benson <gbenson@redhat.com>
3123
3124 * btrace.c: Include defs.h.
3125 * common/ptid.c: Include defs.h or server.h as appropriate.
3126 * nat/mips-linux-watch.c: Likewise.
3127
84202f9c
TT
31282014-07-29 Tom Tromey <tromey@redhat.com>
3129
3130 * target.c (target_is_pushed): Simplify.
3131
2530441c
JB
31322014-07-29 Joel Brobecker <brobecker@adacore.com>
3133
3134 GDB 7.8 released.
3135
7e09a223
YQ
31362014-07-29 Yao Qi <yao@codesourcery.com>
3137
3138 PR gdb/17206
3139 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3140
7ebdbe92
DE
31412014-07-28 Doug Evans <xdje42@gmail.com>
3142
3143 PR guile/17203
3144 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3145 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3146 parameters.
3147
f347ffc9
WN
31482014-07-28 Will Newton <will.newton@linaro.org>
3149
3150 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3151 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3152 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3153 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3154 (THUMB2_EABI_SYSCALL): Likewise.
3155 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3156 struct tramp_frame.
3157 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3158 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3159
37c5f1f7
DE
31602014-07-27 Doug Evans <xdje42@gmail.com>
3161
3162 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3163
0c3abbc7
DE
31642014-07-27 Doug Evans <xdje42@gmail.com>
3165
3166 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3167
e76c5d17
DE
31682014-07-26 Ludovic Courtès <ludo@gnu.org>
3169 Doug Evans <xdje42@gmail.com>
3170
3171 PR guile/17146
3172 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3173 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3174 * configure.ac: Try to use guild to compile an scm file, if it fails
3175 then disable guile support.
3176 * configure: Regenerate.
3177 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3178 GUILE_FILE_LIST.
3179 (GUILE_COMPILED_FILES): New variable.
3180 (GUILE_FILES) Update.
3181 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3182 (stamp-guile): Compile scm files.
3183 * guile/guile.c (boot_guile_support): New function.
3184 (standard_throw_args_p): New function.
3185 (print_standard_throw_error, print_throw_error): New functions.
3186 (handle_boot_error): New function.
3187 (initialize_scheme_side): Rewrite to call boot_guile_support.
3188 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3189 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3190
186fcde0
DE
31912014-07-26 Ludovic Courtès <ludo@gnu.org>
3192 Doug Evans <xdje42@gmail.com>
3193
3194 PR guile/17146
3195 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3196 * guile/lib/gdb/support.scm: New file.
3197 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3198 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3199 All uses updated.
3200 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3201 All uses updated.
3202 (%assert-type): Ditto, and renamed to assert-type.
3203 (%exception-print-style): Delete.
3204
4df42755
DE
32052014-07-26 Doug Evans <xdje42@gmail.com>
3206
3207 PR build/17105
3208 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3209 * configure: Regenerate.
3210 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3211 PYTHON_FILES.
3212 (PYTHON_FILES): New variable.
3213 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3214 (GUILE_FILES): New variable.
3215 (stamp-python, install-python, uninstall-python): Handle empty
3216 file list.
3217 (stamp-guile, install-guile, uninstall-guile): Ditto.
3218
ee7333ae
DE
32192014-07-26 Doug Evans <xdje42@gmail.com>
3220
3221 PR guile/17177
3222 * guile/lib/gdb.scm (pretty-printers): Export.
3223 (set-pretty-printers!): Export.
3224 * guile/lib/gdb/printing.scm (gdb module): Update.
3225 (prepend-pretty-printer!, append-pretty-printer!): Update.
3226 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3227 (pretty_printer_list_var): Delete.
3228 (pretty_printer_list): New static global.
3229 (gdbscm_pretty_printers): New function.
3230 (gdbscm_set_pretty_printers_x): New function.
3231 (ppscm_find_pretty_printer_from_gdb): Update.
3232 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3233 (gdbscm_initialize_pretty_printers): Update.
3234
74edf516
DE
32352014-07-26 Doug Evans <xdje42@gmail.com>
3236
3237 PR 17185
3238 * configure.ac: Add check for header gc/gc.h.
3239 Add check for function setenv.
3240 * configure: Regenerate.
3241 * config.in: Regenerate.
3242 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3243
d54398a7
MR
32442014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3245
3246 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3247 variation in gdbarch matching.
3248
ab16fce8
TT
32492014-07-25 Tom Tromey <tromey@redhat.com>
3250
3251 * exec.c (using_exec_ops): Remove.
3252 (exec_close_1): Update. Remove extraneous block, reindent.
3253 (add_target_sections): Use target_is_pushed.
3254
88056fbb
PA
32552014-07-25 Pedro Alves <palves@redhat.com>
3256
3257 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3258 * monitor.c (monitor_create_inferior): Likewise.
3259 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3260 * remote-sim.c (gdbsim_create_inferior): Likewise.
3261 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3262 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3263 * windows-nat.c (do_initial_windows_stuff): Likewise.
3264
70509625
PA
32652014-07-25 Pedro Alves <palves@redhat.com>
3266
3267 * NEWS: Mention signal passing and "signal" command changes.
3268 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3269 comment.
3270 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3271 call.
3272 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3273 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3274 (jump_command): Adjust clear_proceed_status call.
3275 (signal_command): Warn if other thread that are resumed have
3276 signals that will be delivered. Adjust clear_proceed_status call.
3277 (until_next_command, finish_command)
3278 (proceed_after_attach_callback, attach_command_post_wait)
3279 (attach_command): Adjust clear_proceed_status call.
3280 * infrun.c (proceed_after_vfork_done): Likewise.
3281 (proceed_after_attach_callback): Adjust comment.
3282 (clear_proceed_status_thread): Clear stop_signal if not in pass
3283 state.
3284 (clear_proceed_status_callback): Delete.
3285 (clear_proceed_status): New 'step' parameter. Only clear the
3286 proceed status of threads the command being prepared is about to
3287 resume.
3288 (proceed): If passed in an explicit signal, override stop_signal
3289 with it. Don't pass the last stop signal to the thread we're
3290 resuming.
3291 (init_wait_for_inferior): Adjust clear_proceed_status call.
3292 (switch_back_to_stepped_thread): Clear the signal if it should not
3293 be passed.
3294 * infrun.h (clear_proceed_status): New 'step' parameter.
3295 (user_visible_resume_ptid): Add comment.
3296 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3297 signal is in pass state.
3298 * remote.c (append_pending_thread_resumptions): Likewise.
3299 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3300
d8be2939
TT
33012014-07-25 Tom Tromey <tromey@redhat.com>
3302
3303 * target.h (target_stopped_data_address)
3304 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3305 parentheses.
3306
7d0d9d2b
PL
33072014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3308
3309 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3310 comments.
3311 (avr_pointer_to_address): Likewise.
3312
e9e7f724
TT
33132014-07-24 Tom Tromey <tromey@redhat.com>
3314
3315 * monitor.c (compile_pattern): Update.
3316 * target.h (struct target_ops) <to_shortname, to_longname,
3317 to_doc>: Now const.
3318
1947513d
TT
33192014-07-24 Tom Tromey <tromey@redhat.com>
3320
3321 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3322 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3323 (add_info_alias, add_com): Make "doc" const.
3324 (print_doc_line): Make "str" const.
3325 (delete_cmd): Update.
3326 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3327 (print_doc_line): Update.
3328 * cli/cli-script.c (document_command): Update.
3329 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3330 (add_com, add_info, add_info_alias): Update.
3331 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3332 * python/py-cmd.c (cmdpy_destroyer): Update.
3333
64e61d29
TT
33342014-07-24 Tom Tromey <tromey@redhat.com>
3335
3336 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3337 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3338 (help_cmd_list): Constify.
3339 (lookup_cmd): Update.
3340 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3341 const.
3342 (help_cmd_list, apropos_cmd): Update.
3343 * cli/cli-script.c (show_user): Update.
3344 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3345 * cli/cli-setshow.h (cmd_show_list): Update.
3346 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3347 (cmd_show_list): Update.
3348 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3349 * python/py-cmd.c (cmdpy_destroyer): Update.
3350
429e55ea
TT
33512014-07-24 Tom Tromey <tromey@redhat.com>
3352
3353 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3354 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3355 const.
3356 * command.h (deprecate_cmd): Update.
3357 * maint.c (maintenance_do_deprecate): Add casts.
3358
64669f3b
TT
33592014-07-24 Tom Tromey <tromey@redhat.com>
3360
3361 * cli/cli-decode.c (help_cmd): Make parameter "const".
3362 * cli/cli-decode.h (help_cmd): Update.
3363
d3d3328b
TT
33642014-07-24 Tom Tromey <tromey@redhat.com>
3365
3366 * stack.c (up_silently_base, down_silently_base): Make argument
3367 const.
3368
414842dc
TT
33692014-07-24 Tom Tromey <tromey@redhat.com>
3370
3371 * solib.c (solib_add): Make "pattern" const.
3372 * solib.h (solib_add): Update.
3373
baa336ce
TT
33742014-07-24 Tom Tromey <tromey@redhat.com>
3375
3376 * remote.c (remote_serial_open, print_packet, putpkt)
3377 (putpkt_binary): Constify.
3378 * remote.h (putpkt): Update.
3379
5a19e2d0
TT
33802014-07-24 Tom Tromey <tromey@redhat.com>
3381
3382 * monitor.c (monitor_open): Make "args" const.
3383 * monitor.h (monitor_open): Update.
3384
fc4baa5e
TT
33852014-07-24 Tom Tromey <tromey@redhat.com>
3386
3387 * maint.c (match_bfd_flags): Make "string" const.
3388 (print_bfd_section_info): Remove casts.
3389 (print_objfile_section_info): Make "string" const.
3390
0d5f0dbe
TT
33912014-07-24 Tom Tromey <tromey@redhat.com>
3392
3393 * inf-child.c (inf_child_open_target): Make "arg" const.
3394 * inf-child.h (inf_child_open_target): Update.
3395
41c77899
TT
33962014-07-24 Tom Tromey <tromey@redhat.com>
3397
3398 * environ.c (unset_in_environ): Make "var" const.
3399 * environ.h (unset_in_environ): Update.
3400
93db0d79
TT
34012014-07-24 Tom Tromey <tromey@redhat.com>
3402
3403 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3404 Make "cmd" const.
3405 (scan_filename_with_cleanup): Likewise.
3406 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3407 Make arguments const.
3408 (restore_command): Update.
3409
36d6eb95
PA
34102014-07-24 Pedro Alves <palves@redhat.com>
3411
3412 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3413
8009206a
TT
34142014-07-24 Tom Tromey <tromey@redhat.com>
3415 Gary Benson <gbenson@redhat.com>
3416
3417 * nat/linux-ptrace.c (additional_flags): New global.
3418 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3419 additional_flags; don't check GDBSERVER.
3420 (linux_ptrace_set_additional_flags): New function.
3421 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3422 Declare.
3423 * linux-nat.c (_initialize_linux_nat): Call
3424 linux_ptrace_set_additional_flags.
3425
a7068b60
TT
34262014-07-24 Tom Tromey <tromey@redhat.com>
3427
3428 * make-target-delegates (munge_type, write_debugmethod): New
3429 functions.
3430 (debug_names): New global.
3431 ($TARGET_DEBUG_PRINTER): New global.
3432 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3433 name.
3434 Write debug methods. Generate init_debug_target.
3435 * target-debug.h: New file.
3436 * target-delegates.c: Rebuild.
3437 * target.c: Include target-debug.h.
3438 (debug_target): Hoist definition.
3439 (target_kill, target_get_section_table, target_memory_map)
3440 (target_flash_erase, target_flash_done, target_detach)
3441 (target_disconnect, target_wait, target_resume)
3442 (target_pass_signals, target_program_signals, target_follow_fork)
3443 (target_mourn_inferior, target_search_memory)
3444 (target_thread_address_space, target_close)
3445 (target_find_new_threads, target_core_of_thread)
3446 (target_verify_memory, target_insert_mask_watchpoint)
3447 (target_remove_mask_watchpoint): Remove targetdebug code.
3448 (debug_to_post_attach, debug_to_prepare_to_store)
3449 (debug_to_files_info, debug_to_insert_breakpoint)
3450 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3451 (debug_to_region_ok_for_hw_watchpoint)
3452 (debug_to_can_accel_watchpoint_condition)
3453 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3454 (debug_to_watchpoint_addr_within_range)
3455 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3456 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3457 (debug_to_terminal_init, debug_to_terminal_inferior)
3458 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3459 (debug_to_terminal_save_ours, debug_to_terminal_info)
3460 (debug_to_load, debug_to_post_startup_inferior)
3461 (debug_to_insert_fork_catchpoint)
3462 (debug_to_remove_fork_catchpoint)
3463 (debug_to_insert_vfork_catchpoint)
3464 (debug_to_remove_vfork_catchpoint)
3465 (debug_to_insert_exec_catchpoint)
3466 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3467 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3468 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3469 (setup_target_debug): Call init_debug_target.
3470 * target.h (TARGET_DEBUG_PRINTER): New macro.
3471 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3472 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3473
2c51604d
GB
34742014-07-24 Gary Benson <gbenson@redhat.com>
3475
3476 * exceptions.h (throw_vfatal): Renamed to...
3477 (throw_vquit): New declaration.
3478 (throw_quit): Likewise.
3479 * exceptions.c (throw_vfatal): Renamed to...
3480 (throw_vquit): New function.
3481 (throw_quit): Likewise.
3482 (throw_error): Call throw_verror rather than throw_it.
3483 * utils.h (vfatal): Removed.
3484 (fatal): Likewise.
3485 * utils.c (vfatal): Removed.
3486 (fatal): Likewise.
3487 (internal_verror): Replaced call to fatal with call to throw_quit.
3488 (quit): Replaced calls to fatal with calls to throw_quit.
3489
34211963
ME
34902014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3491
3492 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3493 target_read_code.
3494
a52b4d3e
ME
34952014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3496
3497 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3498 less than zero in conditional expression.
3499
a8bdc56b
TT
35002014-07-23 Tom Tromey <tromey@redhat.com>
3501
3502 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3503 ($INTRO_PART): Don't match whitespace.
3504 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3505 argument matching.
3506 ($METHOD): Add $METHOD_TRAILER.
3507 (trim): Rewrite.
3508 (scan_target_h): New sub.
3509 Change main loop not to collect state.
3510 * target-delegates.c: Rebuild.
3511
91b52240
GB
35122014-07-23 Gary Benson <gbenson@redhat.com>
3513
3514 * cp-support.c (gdb_demangle): Fix build on systems without
3515 sigaltstack.
3516
45326f6f
JK
35172014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3518
3519 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3520 for reference entry value target data value.
3521
e214cf6c
JK
35222014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3523
3524 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3525 value_available_contents_eq.
3526
bddbbedd
PA
35272014-07-22 Pedro Alves <palves@redhat.com>
3528
3529 * value.c (allocate_optimized_out_value): Don't mark value as
3530 non-lazy.
3531
45c71484
JW
35322014-07-22 Jiong Wang <jiong.wang@arm.com>
3533
3534 * MAINTAINERS (Write After Approval): Update my email address.
3535
9597b22a
DE
35362014-07-20 Doug Evans <dje@google.com>
3537
3538 PR server/17147
3539 * remote.c (putpkt_binary): Add text to error message.
3540
91101fe5
YQ
35412014-07-20 Yao Qi <yao@codesourcery.com>
3542
3543 * eval.c: Remove "Chill" from comments.
3544 * gdbtypes.h: Likewise.
3545 * symtab.h: Likewise.
3546
c9402c95
YQ
35472014-07-20 Yao Qi <yao@codesourcery.com>
3548
3549 * std-operator.def: Update comments to TERNOP_SLICE.
3550
ae8fddda
YQ
35512014-07-20 Yao Qi <yao@codesourcery.com>
3552
3553 * std-operator.def: Remove BINOP_RANGE.
3554 * breakpoint.c (watchpoint_exp_is_const): Update.
3555 * expprint.c (dump_subexp_body_standard): Likewise.
3556 * eval.c (init_array_element): Remove dead code.
3557 (evaluate_subexp_standard): Likewise.
3558
9c816640
YQ
35592014-07-20 Yao Qi <yao@codesourcery.com>
3560
3561 * std-operator.def: Remove BINOP_IN.
3562 * breakpoint.c (watchpoint_exp_is_const): Update.
3563 * eval.c (evaluate_subexp_standard): Likewise.
3564 * expprint.c (dump_subexp_body_standard): Likewise.
3565
164224e9
ME
35662014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3567
3568 * microblaze-tdep.c (microblaze_register_names): Add
3569 the rshr and rslr register names.
3570 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3571 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3572 Use of tdesc_numbered_register. Use of
3573 microblaze_register_g_packet_guesses. Use of
3574 tdesc_use_registers. Use of set_gdbarch_register_type.
3575 (microblaze_register_g_packet_guesses): New.
3576 * microblaze-tdep.h (microblaze_reg_num): Add
3577 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3578 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3579 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3580 * features/microblaze-core.xml: New file.
3581 * features/microblaze-stack-protect.xml: New file.
3582 * features/microblaze-with-stack-protect.c: New file.
3583 * features/microblaze-with-stack-protect.xml: New file.
3584 * features/microblaze.xml: New file.
3585 * features/microblaze.c: New file.
3586 * features/Makefile (microblaze-with-stack-protect): Add
3587 microblaze-with-stack-protect microblaze and microblaze-expedite.
3588 * regformats/microblaze-with-stack-protect.dat: New file.
3589 * regformats/microblaze.dat: New file.
3590 * doc/gdb.texinfo (MicroBlaze Features): Added.
3591
e8b2341c
TT
35922014-07-18 Tom Tromey <tromey@redhat.com>
3593
3594 * exec.c (exec_ops): Now static.
3595 * exec.h (exec_ops): Don't declare.
3596
44e89118
TT
35972014-07-18 Tom Tromey <tromey@redhat.com>
3598
3599 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3600 to find_target_beneath.
3601 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3602 find_target_beneath.
3603 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3604
b0ed115f
TT
36052014-07-18 Tom Tromey <tromey@redhat.com>
3606
3607 PR gdb/17130:
3608 * utils.c (quit): Use target_supports_terminal_ours.
3609 * target.h (target_supports_terminal_ours): Declare.
3610 * target.c (target_supports_delete_record): Don't check
3611 to_delete_record against NULL.
3612 (target_supports_terminal_ours): New function.
3613
e75fdfca
TT
36142014-07-18 Tom Tromey <tromey@redhat.com>
3615
3616 PR gdb/17130:
3617 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3618 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3619 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3620 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3621 * windows-nat.c (windows_xfer_partial): Always delegate.
3622 * record-btrace.c (record_btrace_xfer_partial): Simplify
3623 delegation.
3624 (record_btrace_fetch_registers, record_btrace_store_registers)
3625 (record_btrace_prepare_to_store, record_btrace_resume)
3626 (record_btrace_wait, record_btrace_find_new_threads)
3627 (record_btrace_thread_alive): Likewise.
3628 * procfs.c (procfs_xfer_partial): Always delegate.
3629 * corelow.c (core_xfer_partial): Always delegate.
3630 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3631
83814951
TT
36322014-07-18 Tom Tromey <tromey@redhat.com>
3633
3634 * exec.c (exec_make_note_section): Move earlier.
3635
b8b8facf
DE
36362014-07-17 Doug Evans <dje@google.com>
3637
74b49205 3638 PR gdb/17170
b8b8facf
DE
3639 * maint.c (count_symtabs_and_blocks): Handle NULL
3640 current_program_space.
3641 (report_command_stats): Check global enabled flag in addition to
3642 recorded enabled flag.
3643 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3644
69ff6be5
PA
36452014-07-16 Pedro Alves <palves@redhat.com>
3646
3647 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3648
252db1b5
TT
36492014-07-16 Tom Tromey <tromey@redhat.com>
3650
3651 * target.h (struct target_ops) <to_delete_record>: Reformat
3652 comment.
3653
a432721e
TT
36542014-07-16 Tom Tromey <tromey@redhat.com>
3655
3656 * target-delegates.c: Rebuild.
3657
487d9753
PL
36582014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3659
3660 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3661 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3662 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3663 (avr_pointer_to_address): Likewise.
3664 (avr_address_class_type_flags): New function.
3665 (avr_address_class_type_flags_to_name): Likewise.
3666 (avr_address_class_name_to_type_flags): Likewise.
3667 (avr_gdbarch_init): Set address_class_type_flags,
3668 address_class_type_flags_to_name and
3669 address_class_name_to_type_flags.
3670
57745c90
PA
36712014-07-15 Pedro Alves <palves@redhat.com>
3672
3673 * linux-nat.c (kill_callback): Save errno and work with saved
3674 copy.
3675
2d40be18
SM
36762014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3677
3678 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3679
572f6555
EBM
36802014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3681
3682 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3683 breakpoint support correctly.
3684
cc1c52ad
PA
36852014-07-14 Pedro Alves <palves@redhat.com>
3686
3687 * utils.c (prompt_for_continue): Call target_terminal_ours.
3688
1e973570
PA
36892014-07-14 Pedro Alves <palves@redhat.com>
3690
3691 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3692 catch_errors. Don't re-enable stdin or notify observers where,
3693 and rethrow error.
3694 (fetch_inferior_event_wrapper): Delete.
3695
93d6eb10
PA
36962014-07-14 Pedro Alves <palves@redhat.com>
3697
3698 PR gdb/17072
3699 * top.c: Include "inf-loop.h".
3700 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3701 field.
3702 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3703 was async before.
3704 (gdb_readline_wrapper): Store whether the target is async, and
3705 make it sync.
3706
0017922d
PA
37072014-07-14 Pedro Alves <palves@redhat.com>
3708
3709 PR gdb/17072
3710 * top.c (gdb_readline_wrapper_line): Tweak comment.
3711 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3712 the input handler callback.
3713
94696ad3
PA
37142014-07-14 Pedro Alves <palves@redhat.com>
3715
3716 PR gdb/17072
3717 * main.c: Include event-top.h.
3718 (handle_command_errors): New function.
3719 (catch_command_errors, catch_command_errors_const): Use it.
3720
9d1e69a2
PA
37212014-07-14 Pedro Alves <palves@redhat.com>
3722
3723 * exceptions.c (catch_command_errors, catch_command_errors_const):
3724 Moved to main.c.
3725 * exceptions.h (catch_command_errors_ftype)
3726 (catch_command_errors_const_ftype): Moved to main.c.
3727 (catch_command_errors, catch_command_errors_const): Delete
3728 declarations.
3729 * main.c (catch_command_errors_ftype)
3730 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3731 (catch_command_errors, catch_command_errors_const)): Moved here
3732 from exceptions.c and make static.
3733
feefc97b
PA
37342014-07-14 Pedro Alves <palves@redhat.com>
3735
3736 * exceptions.c (print_any_exception): Delete.
3737 (catch_exceptions_with_msg): Use exception_print instead of
3738 print_any_exception.
3739 (catch_errors): Use exception_fprintf instead of
3740 print_any_exception.
3741 (catch_command_errors, catch_command_errors_const): Use
3742 exception_print instead of print_any_exception.
3743
c933f875
PA
37442014-07-14 Pedro Alves <palves@redhat.com>
3745
3746 * infcall.c (run_inferior_call): Set 'sync_execution' while
3747 running the inferior call.
3748
feb6f816
PA
37492014-07-14 Pedro Alves <palves@redhat.com>
3750
3751 * value.c (value_contents_equal): Delete function.
3752 * value.h (value_contents_equal): Delete declaration.
3753
d98b7a16
TT
37542014-07-14 Tom Tromey <tromey@redhat.com>
3755
3756 PR exp/17106:
3757 * gdbtypes.c (is_dynamic_type_internal): New function, from
3758 is_dynamic_type.
3759 (is_dynamic_type): Rewrite.
3760 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3761 (resolve_dynamic_struct): Likewise.
3762 (resolve_dynamic_type_internal): New function, from
3763 resolve_dynamic_type.
3764 (resolve_dynamic_type): Rewrite.
3765
548740d6
TT
37662014-07-14 Tom Tromey <tromey@redhat.com>
3767
3768 * target.c (target_require_runnable): Also check record_stratum.
3769 Update comment.
3770
808f7ab1
YQ
37712014-07-11 Yao Qi <yao@codesourcery.com>
3772
3773 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3774 thumb_instruction_restores_sp return true.
3775
540314bd
YQ
37762014-07-11 Yao Qi <yao@codesourcery.com>
3777
3778 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3779 (thumb_in_function_epilogue_p): Call
3780 thumb_instruction_restores_sp.
3781
1db01f22
YQ
37822014-07-11 Yao Qi <yao@codesourcery.com>
3783
3784 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3785 'add sp, #imm'.
3786 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3787
3116063b
GB
37882014-07-11 Gary Benson <gbenson@redhat.com>
3789
3790 * amd64-linux-nat.c (gdbcore.h): Remove include.
3791 (regset.h): Likewise.
3792 (nat/linux-btrace.h): Likewise.
3793 (btrace.h): Likewise.
3794 (gdb_assert.h): Likewise.
3795 (string.h): Likewise.
3796 (sys/uio.h): Likewise.
3797 (sys/debugreg.h): Likewise.
3798 (sys/syscall.h): Likewise.
3799 (sys/procfs.h): Likewise.
3800 (sys/user.h): Likewise.
3801 (asm/ptrace.h): Likewise.
3802 (i386-nat.h): Likewise.
3803 * i386-linux-nat.c (i386-nat.h): Likewise.
3804 (regset.h): Likewise.
3805 (target.h): Likewise.
3806 (linux-nat.h): Likewise.
3807 (nat/linux-btrace.h): Likewise.
3808 (btrace.h): Likewise.
3809 (gdb_assert.h): Likewise.
3810 (string.h): Likewise.
3811 (sys/uio.h): Likewise.
3812 (sys/user.h): Likewise.
3813 (sys/procfs.h): Likewise.
3814 (sys/reg.h): Likewise.
3815 (sys/debugreg.h): Likewise.
3816 (ORIG_EAX): Remove definition.
3817
040baaf6
GB
38182014-07-11 Gary Benson <gbenson@redhat.com>
3819
3820 * i386-linux-nat.h: New file.
3821 * x86-linux-nat.h: Likewise.
3822 * x86-linux-nat.c: Likewise.
3823 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3824 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3825 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3826 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3827 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3828 (PTRACE_SETREGSET): Likewise.
3829 (arch_lwp_info): Now in x86-linux-nat.c.
3830 (have_ptrace_getregset): Now in x86-linux-nat.h.
3831 (x86_linux_dr_get): Now in x86-linux-nat.c.
3832 (x86_linux_dr_set): Likewise.
3833 (x86_linux_dr_get_addr): Likewise.
3834 (x86_linux_dr_get_control): Likewise.
3835 (x86_linux_dr_get_status): Likewise.
3836 (update_debug_registers_callback): Likewise.
3837 (x86_linux_dr_set_control): Likewise.
3838 (x86_linux_dr_set_addr): Likewise.
3839 (x86_linux_prepare_to_resume): Likewise.
3840 (x86_linux_new_thread): Likewise.
3841 (x86_linux_new_fork): Likewise.
3842 (x86_linux_get_thread_area): Likewise.
3843 (super_post_startup_inferior): Likewise.
3844 (x86_linux_child_post_startup_inferior): Likewise.
3845 (AMD64_LINUX_USER64_CS): Likewise.
3846 (AMD64_LINUX_X32_DS): Likewise.
3847 (x86_linux_read_description): Likewise.
3848 (x86_linux_enable_btrace): Likewise.
3849 (x86_linux_disable_btrace): Likewise.
3850 (x86_linux_teardown_btrace): Likewise.
3851 (x86_linux_read_btrace): Likewise.
3852 (x86_linux_create_target): Likewise.
3853 (x86_linux_add_target): Likewise.
3854 * i386-linux-nat.c (x86-linux-nat.h): New include.
3855 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3856 (PTRACE_SETREGSET): Likewise.
3857 (arch_lwp_info): Now in x86-linux-nat.c.
3858 (have_ptrace_getregset): Now in x86-linux-nat.h.
3859 (x86_linux_dr_get): Now in x86-linux-nat.c.
3860 (x86_linux_dr_set): Likewise.
3861 (x86_linux_dr_get_addr): Likewise.
3862 (x86_linux_dr_get_control): Likewise.
3863 (x86_linux_dr_get_status): Likewise.
3864 (update_debug_registers_callback): Likewise.
3865 (x86_linux_dr_set_control): Likewise.
3866 (x86_linux_dr_set_addr): Likewise.
3867 (x86_linux_prepare_to_resume): Likewise.
3868 (x86_linux_new_thread): Likewise.
3869 (x86_linux_new_fork): Likewise.
3870 (x86_linux_get_thread_area): Likewise.
3871 (super_post_startup_inferior): Likewise.
3872 (x86_linux_child_post_startup_inferior): Likewise.
3873 (AMD64_LINUX_USER64_CS): Likewise.
3874 (AMD64_LINUX_X32_DS): Likewise.
3875 (x86_linux_read_description): Likewise.
3876 (x86_linux_enable_btrace): Likewise.
3877 (x86_linux_disable_btrace): Likewise.
3878 (x86_linux_teardown_btrace): Likewise.
3879 (x86_linux_read_btrace): Likewise.
3880 (x86_linux_create_target): Likewise.
3881 (x86_linux_add_target): Likewise.
3882
1aa7e42c
GB
38832014-07-11 Gary Benson <gbenson@redhat.com>
3884
3885 * amd64-linux-nat.c: Comment and whitespace changes.
3886 * i386-linux-nat.c: Comment and whitespace changes.
3887
c1e246a0
GB
38882014-07-11 Gary Benson <gbenson@redhat.com>
3889
3890 * amd64-linux-nat.c (x86_linux_create_target): New function.
3891 (x86_linux_add_target): Likewise.
3892 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3893 * i386-linux-nat.c (x86_linux_create_target): New function.
3894 (x86_linux_add_target): Likewise.
3895 (_initialize_i386_linux_nat): Delegate to the above new functions.
3896
8c420b8d
GB
38972014-07-11 Gary Benson <gbenson@redhat.com>
3898
3899 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3900 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3901 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3902 (ps_get_thread_area): Delegate to the above.
3903
cb1da100
GB
39042014-07-11 Gary Benson <gbenson@redhat.com>
3905
3906 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3907 x86_linux_read_description. All uses updated. amd64-specific
3908 code conditionalized. Conditionalized i386-specific code added.
3909 Redundant cast removed.
3910 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3911 x86_linux_read_description. All uses updated. i386-specific
3912 code conditionalized. Conditionalized amd64-specific code added.
3913 One sizeof replaced with the actual type it is describing.
3914
2acf3cd0
GB
39152014-07-11 Gary Benson <gbenson@redhat.com>
3916
3917 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3918 x86_linux_dr_get. All uses updated.
3919 (amd64_linux_dr_set): Renamed to
3920 x86_linux_dr_set. All uses updated.
3921 (amd64_linux_dr_get_addr): Renamed to
3922 x86_linux_dr_get_addr. All uses updated.
3923 (amd64_linux_dr_get_control): Renamed to
3924 x86_linux_dr_get_control. All uses updated.
3925 (amd64_linux_dr_get_status): Renamed to
3926 x86_linux_dr_get_status. All uses updated.
3927 (amd64_linux_dr_set_control): Renamed to
3928 x86_linux_dr_set_control. All uses updated.
3929 (amd64_linux_dr_set_addr): Renamed to
3930 x86_linux_dr_set_addr. All uses updated.
3931 (amd64_linux_prepare_to_resume): Renamed to
3932 x86_linux_prepare_to_resume. All uses updated.
3933 (amd64_linux_new_thread): Renamed to
3934 x86_linux_new_thread. All uses updated.
3935 (amd64_linux_new_fork): Renamed to
3936 x86_linux_new_fork. All uses updated.
3937 (amd64_linux_child_post_startup_inferior): Renamed to
3938 x86_linux_child_post_startup_inferior. All uses updated.
3939 (amd64_linux_enable_btrace): Renamed to
3940 x86_linux_enable_btrace. All uses updated.
3941 (amd64_linux_disable_btrace): Renamed to
3942 x86_linux_disable_btrace. All uses updated.
3943 (amd64_linux_teardown_btrace): Renamed to
3944 x86_linux_teardown_btrace. All uses updated.
3945 (amd64_linux_read_btrace): Renamed to
3946 x86_linux_read_btrace. All uses updated.
3947 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3948 x86_linux_dr_get. All uses updated.
3949 (i386_linux_dr_set): Renamed to
3950 x86_linux_dr_set. All uses updated.
3951 (i386_linux_dr_get_addr): Renamed to
3952 x86_linux_dr_get_addr. All uses updated.
3953 (i386_linux_dr_get_control): Renamed to
3954 x86_linux_dr_get_control. All uses updated.
3955 (i386_linux_dr_get_status): Renamed to
3956 x86_linux_dr_get_status. All uses updated.
3957 (i386_linux_dr_set_control): Renamed to
3958 x86_linux_dr_set_control. All uses updated.
3959 (i386_linux_dr_set_addr): Renamed to
3960 x86_linux_dr_set_addr. All uses updated.
3961 (i386_linux_prepare_to_resume): Renamed to
3962 x86_linux_prepare_to_resume. All uses updated.
3963 (i386_linux_new_thread): Renamed to
3964 x86_linux_new_thread. All uses updated.
3965 (i386_linux_new_fork): Renamed to
3966 x86_linux_new_fork. All uses updated.
3967 (i386_linux_child_post_startup_inferior): Renamed to
3968 x86_linux_child_post_startup_inferior. All uses updated.
3969 (i386_linux_enable_btrace): Renamed to
3970 x86_linux_enable_btrace. All uses updated.
3971 (i386_linux_disable_btrace): Renamed to
3972 x86_linux_disable_btrace. All uses updated.
3973 (i386_linux_teardown_btrace): Renamed to
3974 x86_linux_teardown_btrace. All uses updated.
3975 (i386_linux_read_btrace): Renamed to
3976 x86_linux_read_btrace. All uses updated.
3977
b9c1d481
AS
39782014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3979
3980 * remote.c (extended_remote_post_attach): New function.
3981 (init_extended_remote_ops): Install it as to_post_attach method.
3982
7180e04a
PA
39832014-07-09 Pedro Alves <palves@redhat.com>
3984
3985 * infcmd.c (attach_command_post_wait): Don't call
3986 target_terminal_inferior here.
3987 (attach_command): Call it here instead.
3988
9a9a7608
AB
39892014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3990
3991 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3992 field.
3993 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3994 from varobj.c, with additional checks.
3995 (c_varobj_ops): Fill in is_path_expr_parent field.
3996 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3997 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3998 field.
3999 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4000 ops method.
4001 (varobj_default_is_path_expr_parent): New function.
4002 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4003 (varobj_default_is_path_expr_parent): Declare new function.
4004
1f267ae3
MM
40052014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4006
4007 * infcmd.c (finish_backward): Turn internal error into normal error.
4008
b2ee242b
PA
40092014-07-07 Pedro Alves <palves@redhat.com>
4010
8a869bca 4011 PR gdb/17096
b2ee242b
PA
4012 * remote.c (async_handle_remote_sigint)
4013 (async_handle_remote_sigint_twice): Call
4014 gdb_call_async_signal_handler instead of
4015 mark_async_signal_handler.
4016
38e229b2
TT
40172014-07-07 Tom Tromey <tromey@redhat.com>
4018
4019 * target-delegates.c: Rebuild.
4020 * target.c (target_info_record): Remove.
4021 * record.c (info_record_command): Unconditionally call
4022 to_info_record.
4023 * target.h (struct target_ops) <to_info_record>: Use
4024 TARGET_DEFAULT_IGNORE.
4025 (target_info_record): Remove.
4026
f0f9ff95
TT
40272014-07-07 Tom Tromey <tromey@redhat.com>
4028
4029 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4030 TARGET_DEFAULT_NORETURN.
4031 * target.c (generic_tls_error): New function.
4032 (target_translate_tls_address): Don't search target stack.
4033 * target-delegates.c: Rebuild.
4034 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4035 stack.
4036 * linux-thread-db.c (thread_db_get_thread_local_address):
4037 Unconditionally call beneath target.
4038
4a5be5ee
MK
40392014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4040
4041 * cli/cli-logging.c (pop_output_files): Assign targerr to
4042 gdb_stdtargerr.
4043
92c3b204
AB
40442014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4045
4046 * MAINTAINERS (Write After Approval): Update my email address.
4047
9b11e3a7
GB
40482014-07-02 Gary Benson <gbenson@redhat.com>
4049
4050 * proc-service.c (ps_xfer_memory): Update comment.
4051 (ps_pstop): Remove unused function.
4052 (ps_pcontinue): Likewise.
4053 (ps_lstop): Likewise.
4054 (ps_lcontinue): Likewise.
4055 (ps_lgetxregsize): Likewise.
4056 (ps_lgetxregs): Likewise.
4057 (ps_lsetxregs): Likewise.
4058 (ps_plog): Likewise.
4059 (ps_ptread): Likewise.
4060 (ps_ptwrite): Likewise.
4061
cf363f18
MW
40622014-07-01 Mark Wielaard <mjw@redhat.com>
4063
4064 * dwarf2read.c (add_array_cv_type): New function.
4065 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4066 (read_tag_volatile_type): Likewise.
4067
82ae6c8d
TT
40682014-07-01 Tom Tromey <tromey@redhat.com>
4069
4070 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4071 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4072 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4073 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4074 * command.h (cmd_cfunc_ftype): Move earlier.
4075 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4076 (add_com, add_info): Use cmd_cfunc_ftype.
4077
96142726
TT
40782014-06-30 Tom Tromey <tromey@redhat.com>
4079
4080 * symtab.c (operator_chars): Make parameters and return type
4081 const.
4082 (file_matches): Make "files" const.
4083 (struct search_symbols_data) <files>: Now const.
4084 (search_symbols): Make "regexp" and "files" parameters const.
4085 Update.
4086 (symtab_symbol_info): Remove cast.
4087 (rbreak_command): Update.
4088 * symtab.h (search_symbols): Update.
4089
b67a2c6f
YQ
40902014-06-27 Yao Qi <yao@codesourcery.com>
4091
4092 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4093 Change parameter type to 'struct thread_info *'. Caller
4094 updated.
4095 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4096 Update declaration.
4097 * dummy-frame.c (struct dummy_frame_id): New.
4098 (dummy_frame_id_eq): New function.
4099 (struct dummy_frame) <id>: Change its type to 'struct
4100 dummy_frame_id'.
4101 (dummy_frame_push): Add parameter ptid and save it in
4102 dummy_frame_id.
4103 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4104 inferior_ptid.
4105 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4106 to inferior_ptid.
4107 (lookup_dummy_frame): Change parameter type to 'struct
4108 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4109 instead of frame_id_eq.
4110 (dummy_frame_pop): Add parameter ptid. Callers updated.
4111 Update comments. Compose dummy_frame_id and pass it to
4112 lookup_dummy_frame.
4113 (dummy_frame_discard): Add parameter ptid.
4114 (dummy_frame_sniffer): Compose dummy_frame_id and call
4115 dummy_frame_id_eq instead of frame_id_eq.
4116 (fprint_dummy_frames): Print ptid.
4117 * dummy-frame.h: Remove comments.
4118 (dummy_frame_push): Add ptid in declaration.
4119 (dummy_frame_pop, dummy_frame_discard): Likewise.
4120
5b10184c
TT
41212014-06-26 Tom Tromey <tromey@redhat.com>
4122
4123 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4124 * command.h (error_no_arg): Update.
4125
06900326
TT
41262014-06-26 Tom Tromey <tromey@redhat.com>
4127
4128 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4129 (do_show_command): Make "arg" const.
4130 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4131
c2bcbb1d
TT
41322014-06-26 Tom Tromey <tromey@redhat.com>
4133
4134 * record-full.c (record_full_get_bookmark): Make "args" const.
4135 (record_full_goto_bookmark): Make "raw_bookmark" const.
4136 * record.c (record_goto): New function.
4137 (cmd_record_goto): Use it. Now static.
4138 * record.h (record_goto): Declare.
4139 (cmd_record_goto): Remove declaration.
4140 * target-delegates.c: Rebuild.
4141 * target.h (struct target_ops) <to_get_bookmark,
4142 to_goto_bookmark>: Make parameter const.
4143
9cbe5fff
TT
41442014-06-26 Tom Tromey <tromey@redhat.com>
4145
4146 * defs.h (generic_load): Update.
4147 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4148 * monitor.c (monitor_load): Make "args" const.
4149 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4150 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4151 const.
4152 (mips_load): Make "file" const.
4153 * remote-sim.c (gdbsim_load): Make "args" const.
4154 * remote.c (remote_load): Make "name" const.
4155 * symfile.c (generic_load): Make "args" const.
4156 * target-delegates.c: Rebuild.
4157 * target.c (target_load): Make "arg" const.
4158 (debug_to_load): Make "args" const.
4159 * target.h (struct target_ops) <to_load>: Make parameter const.
4160 (target_load): Update.
4161
34a68019
TT
41622014-06-26 Tom Tromey <tromey@redhat.com>
4163
4164 PR symtab/16902:
4165 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4166 (dwarf2_physname, read_partial_die)
4167 (guess_partial_die_structure_name, fixup_partial_die)
4168 (guess_full_die_structure_name, anonymous_struct_prefix)
4169 (dwarf2_name): Use per-BFD obstack.
4170
efc889c1
YQ
41712014-06-26 Yao Qi <yao@codesourcery.com>
4172
4173 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4174 dummyframe and this_id into inner block below.
4175
4395285e
YQ
41762014-06-26 Yao Qi <yao@codesourcery.com>
4177
4178 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4179 with "signal_pass[0]" in the initialization of signal_pass.
4180
aef92902
MM
41812014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4182
4183 * record-btrace.c (record_btrace_generating_corefile)
4184 (record_btrace_prepare_to_generate_core)
4185 (record_btrace_done_generating_core): New.
4186 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4187 (record_btrace_store_registers, record_btrace_prepare_to_store):
4188 Forward request when generating a core file.
4189 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4190 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4191 to_done_generating_core.
4192
5fff78c4
MM
41932014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4194
4195 * target.h (target_ops) <to_prepare_to_generate_core>
4196 <to_done_generating_core>: New.
4197 (target_prepare_to_generate_core, target_done_generating_core): New.
4198 * target.c (target_prepare_to_generate_core)
4199 (target_done_generating_core): New.
4200 * target-delegates.c: Regenerate.
4201 * gcore.c: (write_gcore_file): Rename to ...
4202 (write_gcore_file_1): ...this.
4203 (write_gcore_file): Call target_prepare_to_generate_core
4204 and target_done_generating_core.
4205
1d1f1ccb
MM
42062014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4207
4208 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4209 * gcore.c (write_gcore_file): Free memory returned from
4210 make_corefile_notes.
4211 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4212 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4213
3343ef86
YQ
42142014-06-24 Yao Qi <yao@codesourcery.com>
4215
4216 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4217 (arm_linux_init_abi): Set skip_trampoline_code with
4218 gdbarch_skip_trampoline_code instead of
4219 find_solib_trampoline_target.
4220
18d18ac8
YQ
42212014-06-24 Yao Qi <yao@codesourcery.com>
4222
4223 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4224 arm_skip_bx_reg returns non-zero.
4225
80d8d390
YQ
42262014-06-24 Yao Qi <yao@codesourcery.com>
4227
4228 * arm-tdep.c (arm_skip_bx_reg): New function.
4229 (arm_skip_stub): Call arm_skip_bx_reg.
4230
6a18a01c
DB
42312014-06-23 Don Breazeal <donb@codesourcery.com>
4232
4233 * MAINTAINERS: Add myself as write-after-approval maintainer.
4234
8e9db26e
PA
42352014-06-23 Pedro Alves <palves@redhat.com>
4236
4237 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4238 DR_CONTROL before setting DR0..DR3.
4239 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4240 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4241 bits of DR_CONTROL related to the debug register slot being
4242 disabled. If all slots are vacant, clear local slowdown as well,
4243 and assert DR_CONTROL is 0.
4244
70afc5b7
SC
42452014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4246
4247 * python/lib/gdb/command/xmethods.py
4248 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4249 current progspace only if the string "progspace" matches LOCUS_RE.
4250
840ed64d
JK
42512014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4252
4253 Fix --with-system-readline with readline-6.3 patch 5.
4254 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4255 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4256 types.
4257
26f2dc30
TT
42582014-06-20 Tom Tromey <tromey@redhat.com>
4259
4260 * dwarf2read.c (dw2_get_real_path): Use correct type in
4261 OBSTACK_CALLOC.
4262 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4263
125f8a3d
GB
42642014-06-20 Gary Benson <gbenson@redhat.com>
4265
4266 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4267 * common/glibc_thread_db.h: Likewise.
4268 * common/i386-cpuid.h: Likewise.
4269 * common/i386-gcc-cpuid.h: Likewise.
4270 * common/linux-btrace.h: Likewise.
4271 * common/linux-osdata.h: Likewise.
4272 * common/linux-procfs.h: Likewise.
4273 * common/linux-ptrace.h: Likewise.
4274 * common/mips-linux-watch.h: Likewise.
4275 * common/linux-btrace.c: Moved to nat.
4276 * common/linux-osdata.c: Likewise.
4277 * common/linux-procfs.c: Likewise.
4278 * common/linux-ptrace.c: Likewise.
4279 * common/mips-linux-watch.c: Likewise.
4280 * nat/gdb_thread_db.h: Moved from common.
4281 * nat/glibc_thread_db.h: Likewise.
4282 * nat/i386-cpuid.h: Likewise.
4283 * nat/i386-gcc-cpuid.h: Likewise.
4284 * nat/linux-btrace.c: Likewise.
4285 * nat/linux-btrace.h: Likewise.
4286 * nat/linux-osdata.c: Likewise.
4287 * nat/linux-osdata.h: Likewise.
4288 * nat/linux-procfs.c: Likewise.
4289 * nat/linux-procfs.h: Likewise.
4290 * nat/linux-ptrace.c: Likewise.
4291 * nat/linux-ptrace.h: Likewise.
4292 * nat/mips-linux-watch.c: Likewise.
4293 * nat/mips-linux-watch.h: Likewise.
4294 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4295 (object file files): Reordered.
4296 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4297 of glibc_thread_db.h.
4298
42995dbd
GB
42992014-06-20 Gary Benson <gbenson@redhat.com>
4300
4301 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4302 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4303 (i386_dr_low): Likewise.
4304 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4305 (i386_dr_low_set_addr): Likewise.
4306 (i386_dr_low_get_addr): Likewise.
4307 (i386_dr_low_can_set_control): Likewise.
4308 (i386_dr_low_set_control): Likewise.
4309 (i386_dr_low_get_control): Likewise.
4310 (i386_dr_low_get_status): Likewise.
4311 (i386_get_debug_register_length): Likewise.
4312 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4313 (i386_dr_low): Likewise.
4314 * nat/i386-dregs.c (i386-low.h): Remove include.
4315 (i386-nat.h): Likewise.
4316 (nat/i386-dregs.h): New include.
4317 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4318 (i386_dr_low_set_addr): Likewise.
4319 (i386_dr_low_get_addr): Likewise.
4320 (i386_dr_low_can_set_control): Likewise.
4321 (i386_dr_low_set_control): Likewise.
4322 (i386_dr_low_get_control): Likewise.
4323 (i386_dr_low_get_status): Likewise.
4324 (i386_get_debug_register_length): Likewise.
4325 (debug_hw_points): Likewise.
4326
3ed9baed
IB
43272014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4328
4329 * Makefile.in (SFILES): Add d-exp.y.
4330 (YYFILES): Add d-exp.c.
4331 (YYOBJ): Add d-exp.o.
4332 (local-maintainer-clean): Delete d-exp.c.
4333 * d-exp.y: New file.
4334 * d-lang.h (d_parse): New declaration.
4335 (d_error): New declaration.
4336 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4337 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4338 PREC_ORDER operators.
4339 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4340
78c164b0
YQ
43412014-06-19 Yao Qi <yao@codesourcery.com>
4342
4343 * gdbthread.h (any_running): Remove the declaration.
4344 * thread.c (any_running): Remove.
4345
f6e29b6e
YQ
43462014-06-19 Yao Qi <yao@codesourcery.com>
4347
4348 * gdbthread.h (struct thread_info) <state>: Change its type to
4349 'enum thread_state'. Update comments.
4350
034f788c
PA
43512014-06-19 Pedro Alves <palves@redhat.com>
4352
4353 * gdbthread.h (ALL_THREADS): Delete.
4354 (ALL_NON_EXITED_THREADS): New macro.
4355 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4356 instead of ALL_THREADS.
4357 * infrun.c (find_thread_needs_step_over)
4358 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4359 instead of ALL_THREADS.
4360 * record-btrace.c (record_btrace_open)
4361 (record_btrace_stop_recording, record_btrace_close)
4362 (record_btrace_is_replaying, record_btrace_resume)
4363 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4364 * remote.c (append_pending_thread_resumptions): Likewise.
4365 * thread.c (thread_apply_all_command): Likewise.
4366
46e33252
GB
43672014-06-19 Gary Benson <gbenson@redhat.com>
4368
4369 * i386-nat.c (i386_stopped_by_watchpoint):
4370 Use i386_dr_stopped_by_watchpoint.
4371 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4372 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4373
3a8ee006
GB
43742014-06-19 Gary Benson <gbenson@redhat.com>
4375
4376 * nat/i386-dregs.c: New file.
4377 * Makefile.in (i386-dregs.o): New rule.
4378 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4379 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4380 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4381 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4382 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4383 * config/i386/go32.mh (NATDEPFILES): Likewise.
4384 * config/i386/linux.mh (NATDEPFILES): Likewise.
4385 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4386 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4387 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4388 * i386-nat.h (debug_hw_points): New declaration.
4389 * i386-nat.c (breakpoint.h): Remove include.
4390 (command.h): Likewise.
4391 (target.h): Likewise.
4392 (gdb_assert.h): Likewise.
4393 (debug_hw_points): Made nonstatic.
4394 (debug_printf): Now in i386-dregs.c.
4395 (TARGET_HAS_DR_LEN_8): Likewise.
4396 (DR_CONTROL_SHIFT): Likewise.
4397 (DR_CONTROL_SIZE): Likewise.
4398 (DR_RW_EXECUTE): Likewise.
4399 (DR_RW_WRITE): Likewise.
4400 (DR_RW_READ): Likewise.
4401 (DR_RW_IORW): Likewise.
4402 (DR_LEN_1): Likewise.
4403 (DR_LEN_2): Likewise.
4404 (DR_LEN_4): Likewise.
4405 (DR_LEN_8): Likewise.
4406 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4407 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4408 (DR_ENABLE_SIZE): Likewise.
4409 (DR_LOCAL_SLOWDOWN): Likewise.
4410 (DR_GLOBAL_SLOWDOWN): Likewise.
4411 (DR_CONTROL_RESERVED): Likewise.
4412 (I386_DR_CONTROL_MASK): Likewise.
4413 (I386_DR_VACANT): Likewise.
4414 (I386_DR_LOCAL_ENABLE): Likewise.
4415 (I386_DR_GLOBAL_ENABLE): Likewise.
4416 (I386_DR_DISABLE): Likewise.
4417 (I386_DR_SET_RW_LEN): Likewise.
4418 (I386_DR_GET_RW_LEN): Likewise.
4419 (I386_DR_WATCH_HIT): Likewise.
4420 (i386_wp_op_t): Likewise.
4421 (i386_show_dr): Likewise.
4422 (i386_length_and_rw_bits): Likewise.
4423 (i386_insert_aligned_watchpoint): Likewise.
4424 (i386_remove_aligned_watchpoint): Likewise.
4425 (i386_handle_nonaligned_watchpoint): Likewise.
4426 (i386_update_inferior_debug_regs): Likewise.
4427 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4428 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4429 (i386_region_ok_for_watchpoint):
4430 Use i386_dr_region_ok_for_watchpoint.
4431 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4432
322a8e06
GB
44332014-06-19 Gary Benson <gbenson@redhat.com>
4434
4435 * i386-nat.c (i386_insert_hw_breakpoint): Use
4436 i386_insert_watchpoint.
4437 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4438
8f26655c
GB
44392014-06-19 Gary Benson <gbenson@redhat.com>
4440
4441 * i386-nat.c (i386_dr_show): Renamed to
4442 i386_show_dr and made static. All uses updated.
4443 (i386_dr_length_and_rw_bits): Renamed to
4444 i386_length_and_rw_bits and made static.
4445 All uses updated.
4446 (i386_dr_insert_aligned_watchpoint): Renamed to
4447 i386_insert_aligned_watchpoint and made static.
4448 All uses updated.
4449 (i386_dr_remove_aligned_watchpoint): Renamed to
4450 i386_remove_aligned_watchpoint and made static.
4451 All uses updated.
4452 (i386_dr_update_inferior_debug_regs): Renamed to
4453 i386_update_inferior_debug_regs and made static.
4454 All uses updated.
4455 * nat/i386-dregs.h (i386_dr_show): Removed.
4456 (i386_dr_length_and_rw_bits): Likewise.
4457 (i386_dr_insert_aligned_watchpoint): Likewise.
4458 (i386_dr_remove_aligned_watchpoint): Likewise.
4459 (i386_dr_update_inferior_debug_regs): Likewise.
4460
992c7d70
GB
44612014-06-19 Gary Benson <gbenson@redhat.com>
4462
4463 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4464 * configure: Regenerate.
4465 * config.in: Likewise.
4466 * main.c (signal.h): New include.
4467 (setup_alternate_signal_stack): New function.
4468 (captured_main): Call the above.
4469 * cp-support.c (signal.h): New include.
4470 (catch_demangler_crashes): New flag.
4471 (SIGJMP_BUF): New define.
4472 (SIGSETJMP): Likewise.
4473 (SIGLONGJMP): Likewise.
4474 (gdb_demangle_jmp_buf): New static global.
4475 (gdb_demangle_attempt_core_dump): Likewise.
4476 (gdb_demangle_signal_handler): New function.
4477 (gdb_demangle): If catch_demangler_crashes is set, install the
4478 above signal handler before calling bfd_demangle, and restore
4479 the original signal handler afterwards. Display the offending
4480 symbol and call demangler_warning the first time a segmentation
4481 fault is caught.
4482 (_initialize_cp_support): New maint set/show command.
4483
eae7090b
GB
44842014-06-19 Gary Benson <gbenson@redhat.com>
4485
4486 * utils.h (resource_limit_kind): New enum.
4487 (can_dump_core): New declaration.
4488 (warn_cant_dump_core): Likewise.
4489 (dump_core): Likewise.
4490 * utils.c (dump_core): Made nonstatic. Added new
4491 parameter "limit_kind".
4492 (can_dump_core): Made nonstatic. Moved printing code to...
4493 (warn_cant_dump_core): New function.
4494 (can_dump_core_warn): Likewise.
4495 (internal_vproblem): Replace calls to can_dump_core with
4496 calls to can_dump_core_warn. Supply new argument to each.
4497
57fcfb1b
GB
44982014-06-19 Gary Benson <gbenson@redhat.com>
4499
4500 * utils.h (demangler_vwarning): New declaration.
4501 (demangler_warning): Likewise.
4502 * utils.c (struct internal_problem)
4503 <user_settable_should_quit>: New field.
4504 <user_settable_should_dump_core>: Likewise
4505 (internal_error_problem): Add values for above new fields.
4506 (internal_warning_problem): Likewise.
4507 (demangler_warning_problem): New static global.
4508 (demangler_vwarning): New function.
4509 (demangler_warning): Likewise.
4510 (add_internal_problem_command): Selectively add commands.
4511 (_initialize_utils): New internal problem command.
4512 * maint.c (maintenance_demangler_warning): New function.
4513 (_initialize_maint_cmds): New command.
4514
17a40b44
TT
45152014-06-18 Tom Tromey <tromey@redhat.com>
4516
4517 * f-valprint.c (info_common_command_for_block): Update.
4518 * symtab.h (struct general_symbol_info) <common_block>: Now
4519 const.
4520
346d1dfe
TT
45212014-06-18 Tom Tromey <tromey@redhat.com>
4522
4523 * symtab.h (struct symtab) <blockvector>: Now const.
4524 * ada-lang.c (ada_add_global_exceptions): Update.
4525 * buildsym.c (augment_type_symtab): Update.
4526 * dwarf2read.c (dw2_lookup_symbol): Update.
4527 * jit.c (finalize_symtab): Update.
4528 * jv-lang.c (add_class_symtab_symbol): Update.
4529 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4530 Update.
4531 * objfiles.c (objfile_relocate1): Update.
4532 * psymtab.c (lookup_symbol_aux_psymtabs)
4533 (maintenance_check_psymtabs): Update.
4534 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4535 Update.
4536 * spu-tdep.c (spu_catch_start): Update.
4537 * symmisc.c (dump_symtab_1): Update.
4538 * symtab.c (lookup_global_symbol_from_objfile)
4539 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4540 (basic_lookup_transparent_type_quick)
4541 (basic_lookup_transparent_type, find_pc_sect_symtab)
4542 (find_pc_sect_line, search_symbols): Update.
4543 * block.c (find_block_in_blockvector): Make "bl" const.
4544 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4545 const.
4546 (blockvector_contains_pc): Make "bv" const.
4547 (block_for_pc_sect): Update.
4548 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4549 (blockvector_contains_pc): Update.
4550 * breakpoint.c (resolve_sal_pc): Update.
4551 * inline-frame.c (block_starting_point_at): Update.
4552
1834676b
TT
45532014-06-18 Tom Tromey <tromey@redhat.com>
4554
4555 * completer.c (complete_line): Make "line_buffer" const.
4556 * completer.h (complete_line): Update.
4557
ac1a991b
TT
45582014-06-18 Tom Tromey <tromey@redhat.com>
4559
4560 * symtab.c (add_macro_name): Remove unneeded cast.
4561
5bc98e52
TT
45622014-06-18 Tom Tromey <tromey@redhat.com>
4563
4564 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4565 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4566
8236def8
TT
45672014-06-18 Tom Tromey <tromey@redhat.com>
4568
4569 * probe.c (info_probes_for_ops): Make "arg" const.
4570 * probe.h (info_probes_for_ops): Update.
4571
3977b71f
TT
45722014-06-18 Tom Tromey <tromey@redhat.com>
4573
4574 * varobj.c (varobj_create): Update.
4575 * valops.c (value_of_this): Update.
4576 * tracepoint.c (add_local_symbols, scope_info): Update.
4577 * symtab.h (struct general_symbol_info) <block>: Now const.
4578 * symtab.c (skip_prologue_sal)
4579 (default_make_symbol_completion_list_break_on)
4580 (skip_prologue_using_sal): Update.
4581 * stack.h (iterate_over_block_locals)
4582 (iterate_over_block_local_vars): Update.
4583 * stack.c (print_frame_args): Update.
4584 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4585 parameter const.
4586 (get_selected_block): Make return type const.
4587 * python/py-frame.c (frapy_block): Update.
4588 * python/py-block.c (gdbpy_block_for_pc): Update.
4589 * p-exp.y (%union) <bval>: Now const.
4590 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4591 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4592 * m2-exp.y (%union) <bval>: Now const.
4593 * linespec.c (get_current_search_block): Make return type const.
4594 (create_sals_line_offset, find_label_symbols): Update.
4595 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4596 Update.
4597 (block_starting_point_at): Make "block" const.
4598 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4599 (check_exception_resume): Update.
4600 * guile/scm-frame.c (gdbscm_frame_block): Update.
4601 * guile/scm-block.c (gdbscm_lookup_block): Update.
4602 * frame.h (get_frame_block): Update.
4603 (get_selected_block): Make return type const.
4604 * frame.c (frame_id_inner): Update.
4605 * f-valprint.c (info_common_command_for_block)
4606 (info_common_command): Update.
4607 * dwarf2loc.c (dwarf2_find_location_expression)
4608 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4609 (locexpr_describe_location_piece): Update.
4610 * c-exp.y (%union) <bval>: Now const.
4611 * breakpoint.c (resolve_sal_pc): Update.
4612 * blockframe.c (get_frame_block):Make return type const.
4613 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4614 (block_innermost_frame): Update.
4615 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4616 (block_for_pc, block_for_pc_sect): Update.
4617 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4618 'pblock' const.
4619 (block_for_pc_sect, block_for_pc): Make return type const.
4620 * ax-gdb.c (gen_expr): Update.
4621 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4622 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4623 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4624 (ada_read_var_value): Update.
4625 * ada-exp.y (struct name_info) <block>: Now const.
4626 (%union): Likewise.
4627 (block_lookup): Constify.
4628
b9228891
GB
46292014-06-18 Gary Benson <gbenson@redhat.com>
4630
4631 * nat/i386-dregs.h: New file.
4632 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4633 * i386-nat.h (i386-dregs.h): New include.
4634 (DR_FIRSTADDR): Now in i386-dregs.h.
4635 (DR_LASTADDR): Likewise.
4636 (DR_NADDR): Likewise.
4637 (DR_STATUS): Likewise.
4638 (DR_CONTROL): Likewise.
4639 (i386_debug_reg_state): Likewise.
4640 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4641
a1aa2221
LM
46422014-06-18 Don Breazeal <donb@codesourcery.com>
4643
4644 * breakpoint.c (set_longjmp_breakpoint): Call
4645 momentary_breakpoint_from_master with additional argument.
4646 (set_longjmp_breakpoint_for_call_dummy): Call
4647 momentary_breakpoint_from_master with additional argument.
4648 (set_std_terminate_breakpoint): Call
4649 momentary_breakpoint_from_master with additional argument.
4650 (momentary_breakpoint_from_master): Add argument to function
4651 definition and use it to initialize structure member flag.
74228e77 4652 (clone_momentary_breakpoint): Call
a1aa2221
LM
4653 momentary_breakpoint_from_master with additional argument.
4654 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4655 member flags set in momentary_breakpoint_from_master.
4656
4be83cc2
GB
46572014-06-18 Gary Benson <gbenson@redhat.com>
4658
4659 * i386-nat.c (i386_show_dr): Renamed to
4660 i386_dr_show and made nonstatic. All uses updated.
4661 (i386_length_and_rw_bits): Renamed to
4662 i386_dr_length_and_rw_bits and made nonstatic.
4663 All uses updated.
4664 (i386_insert_aligned_watchpoint): Renamed to
4665 i386_dr_insert_aligned_watchpoint and made nonstatic.
4666 All uses updated.
4667 (i386_remove_aligned_watchpoint): Renamed to
4668 i386_dr_remove_aligned_watchpoint and made nonstatic.
4669 All uses updated.
4670 (i386_update_inferior_debug_regs): Renamed to
4671 i386_dr_update_inferior_debug_regs and made nonstatic.
4672 All uses updated.
4673
131aa0d4
GB
46742014-06-18 Gary Benson <gbenson@redhat.com>
4675
4676 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4677 (i386_dr_low_can_set_control): Likewise.
4678 (i386_dr_low_set_addr): Likewise.
4679 (i386_dr_low_set_control): Likewise.
4680 (i386_dr_low_get_addr): Likewise.
4681 (i386_dr_low_get_status): Likewise.
4682 (i386_dr_low_get_control): Likewise.
4683 (i386_insert_aligned_watchpoint): Use new macros.
4684 (i386_update_inferior_debug_regs): Likewise.
4685 (i386_stopped_data_address): Likewise.
4686
d9305f7f
GB
46872014-06-18 Gary Benson <gbenson@redhat.com>
4688
4689 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4690 New parameter. All uses updated.
4691
ea008da4
GB
46922014-06-18 Gary Benson <gbenson@redhat.com>
4693
4694 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4695 All uses updated.
4696
1b6d4134
GB
46972014-06-18 Gary Benson <gbenson@redhat.com>
4698
4699 * i386-nat.c (debug_printf): New macro.
4700 (i386_get_debug_register_length): Likewise.
4701 (TARGET_HAS_DR_LEN_8): Use above macro.
4702 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4703 and printf_unfiltered. Use phex to format values.
4704
9b4550ef
GB
47052014-06-18 Gary Benson <gbenson@redhat.com>
4706
4707 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4708 Make const.
4709
6e62758f
GB
47102014-06-18 Gary Benson <gbenson@redhat.com>
4711
4712 * i386-nat.c: Comment changes.
4713
51c79e94
GB
47142014-06-18 Gary Benson <gbenson@redhat.com>
4715
4716 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4717
3e11889a
GB
47182014-06-18 Gary Benson <gbenson@redhat.com>
4719
4720 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4721 (i386_insert_aligned_watchpoint): Likewise.
4722 (i386_remove_aligned_watchpoint): Likewise.
4723 (i386_handle_nonaligned_watchpoint): Likewise.
4724
fc6e2f03
GB
47252014-06-18 Gary Benson <gbenson@redhat.com>
4726
4727 * i386-nat.c: Whitespace changes.
4728
2afe7d50
SB
47292014-06-17 Samuel Bronson <naesten@gmail.com>
4730
4731 * MAINTAINERS: Update Roland McGrath's email address.
4732 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4733 Red Hat a while ago, and giving me a current address.
2afe7d50 4734
3bca49ee
TT
47352014-06-17 Tom Tromey <tromey@redhat.com>
4736
4737 * utils.h (savestring): Remove declaration.
4738
6e366df1
TT
47392014-06-17 Tom Tromey <tromey@redhat.com>
4740
4741 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4742
6be47f0c
KS
47432014-06-16 Keith Seitz <keiths@redhat.com>
4744
4745 PR mi/15863
4746 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4747 to update the varobj if inferior_ptid is null_ptid.
4748
7bc112c1
TT
47492014-06-16 Tom Tromey <tromey@redhat.com>
4750
4751 * target.h (struct target_ops) <to_info_proc>: Make parameter
4752 const.
4753 (target_info_proc): Update.
4754 * target.c (target_info_proc): Make "args" const.
4755 * procfs.c (procfs_info_proc): Update.
4756 * linux-tdep.c (linux_info_proc): Update.
4757 (linux_core_info_proc_mappings): Make "args" const.
4758 (linux_core_info_proc): Update.
4759 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4760 * gdbarch.c: Rebuild.
4761 * gdbarch.h: Rebuild.
4762 * corelow.c (core_info_proc): Update.
4763
fee354ee
TT
47642014-06-16 Tom Tromey <tromey@redhat.com>
4765
4766 * target.h (struct target_ops) <to_disconnect>: Make parameter
4767 const.
4768 (target_disconnect): Update.
4769 * target.c (target_disconnect): Make "args" const.
4770 * target-delegates.c: Rebuild.
4771 * remote.c (remote_disconnect): Update.
4772 * record.h (record_disconnect): Update.
4773 * record.c (record_disconnect): Update.
4774 * inf-child.c (inf_child_disconnect): Update.
4775
a30bf1f1
TT
47762014-06-16 Tom Tromey <tromey@redhat.com>
4777
4778 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4779 * target.c (debug_to_rcmd, default_rcmd): Update.
4780 * target-delegates.c: Rebuild.
4781 * remote.c (remote_rcmd): Update.
4782 * monitor.c (monitor_rcmd): Update.
4783
d03de421
PA
47842014-06-16 Pedro Alves <palves@redhat.com>
4785
4786 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4787 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4788 have OBJF_SHARED set.
4789 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4790 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4791 instead of OBJF_USERLOADED.
4792 * objfiles.h (OBJF_SHARED): Update comment.
4793 (userloaded_objfile_contains_address_p): Rename to ...
4794 (shared_objfile_contains_address_p): ... this, and update
4795 comments.
4796 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4797 new objfile.
4798 (remove_symbol_file_command): Skip objfiles that don't have
4799 OBJF_SHARED set.
4800
99f4262f
TT
48012014-06-16 Tom Tromey <tromey@redhat.com>
4802
4803 * minsyms.h (prim_record_minimal_symbol)
4804 (prim_record_minimal_symbol_and_info): Update comments.
4805
97d66cc6
EZ
48062014-06-14 Eli Zaretskii <eliz@gnu.org>
4807
4808 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4809 or --without-guile, according to how GDB was built.
4810
635c7e8a
TT
48112014-06-13 Tom Tromey <tromey@redhat.com>
4812
4813 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4814 to help_list.
4815 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4816 to help_list.
4817 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4818 help_list.
4819 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4820 help_list.Pass all_commands, not -1, to help_list.
4821 * cli/cli-dump.c (dump_command, append_command)
4822 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4823 (binary_dump_command, binary_append_command): Pass all_commands,
4824 not -1, to help_list.
4825 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4826 -1, to help_list.
4827 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4828 -1, to help_list.
4829 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4830 help_list.
4831 * top.c (set_history): Pass all_commands, not -1, to help_list.
4832 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4833 all_commands, not -1, to help_list.
4834 * symfile.c (overlay_command): Pass all_commands, not -1, to
4835 help_list.
4836 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4837 help_list.
4838 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4839 help_list.
4840 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4841 -1, to help_list.
4842 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4843 not -1, to help_list.
4844 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4845 not -1, to help_list.
4846 * maint.c (maintenance_command, maintenance_info_command)
4847 (maintenance_print_command, maintenance_set_cmd): Pass
4848 all_commands, not -1, to help_list.
4849 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4850 help_list.
4851 * language.c (set_check): Pass all_commands, not -1, to help_list.
4852 * infcmd.c (unset_command): Pass all_commands, not -1, to
4853 help_list.
4854 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4855 help_list.
4856 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4857 help_list.
4858 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4859 help_list.
4860 * breakpoint.c (save_command): Pass all_commands, not -1, to
4861 help_list.
4862 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4863 all_commands, not -1, to help_list.
4864
b94ade42
PL
48652014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4866
4867 * regcache.c (struct register_to_invalidate): New structure.
4868 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4869 functions.
4870 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4871
31f628ae
YQ
48722014-06-12 Yao Qi <yao@codesourcery.com>
4873
4874 * varobj.c (varobj_get_num_children): Call
4875 varobj_is_dynamic_p.
4876 (varobj_list_children): Likewise.
4877 (varobj_update): Likewise. Update comments.
4878
cde5ef40
YQ
48792014-06-12 Yao Qi <yao@codesourcery.com>
4880
4881 * varobj.c (varobj_pretty_printed_p): Rename to ...
4882 (varobj_is_dynamic_p): ... this. New function.
4883 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4884 (varobj_is_dynamic_p): Declare.
4885 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4886 (mi_print_value_p, varobj_update_one): Likewise.
4887
576ea091
YQ
48882014-06-12 Pedro Alves <pedro@codesourcery.com>
4889 Yao Qi <yao@codesourcery.com>
4890
4891 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4892 (varobj_get_iterator): Wrap up code for pretty-printer by
4893 "#if HAVE_PYTHON" and "#endif".
4894 (update_dynamic_varobj_children): Likewise.
4895
827f100c
YQ
48962014-06-12 Pedro Alves <pedro@codesourcery.com>
4897 Yao Qi <yao@codesourcery.com>
4898
4899 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4900 gdb_python_initialized is false. Move some code from varobj.c.
4901 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4902 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4903 (struct varobj_item): Moved to varobj-iter.h".
4904 (varobj_clear_saved_item): New function.
4905 (update_dynamic_varobj_children): Move python-related code to
4906 py-varobj.c.
4907 (free_variable): Call varobj_clear_saved_item and
4908 varobj_iter_delete.
4909
e5250216
YQ
49102014-06-12 Pedro Alves <pedro@codesourcery.com>
4911 Yao Qi <yao@codesourcery.com>
4912
4913 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4914 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4915 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4916 (py-varobj.o): New rule.
4917 * python/py-varobj.c: New file.
4918 * python/python-internal.h (py_varobj_get_iterator): Declare.
4919 * varobj-iter.h: New file.
4920 * varobj.c: Include "varobj-iter.h"
4921 (struct varobj) <child_iter>: Change its type from "PyObject *"
4922 to "struct varobj_iter *".
4923 <saved_item>: Likewise.
4924 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4925 [HAVE_PYTHON] (varobj_get_iterator): New function.
4926 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4927 python-specific code to python/py-varobj.c.
4928 (install_visualizer): Call varobj_iter_delete instead of
4929 Py_XDECREF.
4930 * varobj.h (varobj_ensure_python_env): Declare.
4931
5a2e0d6e
YQ
49322014-06-12 Yao Qi <yao@codesourcery.com>
4933
4934 * varobj.c (struct varobj_item): New structure.
4935 (create_child_with_value): Update declaration.
4936 (varobj_add_child): Replace arguments 'name' and 'value' with
4937 'item'. All callers updated.
4938 (install_dynamic_child): Likewise.
4939 (update_dynamic_varobj_children): Likewise.
4940 (varobj_add_child): Likewise.
4941 (create_child_with_value): Likewise.
4942
919b9a93
JB
49432014-06-11 Joel Brobecker <brobecker@adacore.com>
4944
4945 * NEWS: Create a new section for the next release branch.
4946 Rename the section of the current branch, now that it has
4947 been cut.
4948
71a55bdf
JB
49492014-06-11 Joel Brobecker <brobecker@adacore.com>
4950
4951 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4952 * version.in: Bump version to 7.8.50.DATE-cvs.
4953
364fe1f7
PA
49542014-06-11 Pedro Alves <palves@redhat.com>
4955
4956 PR remote/17028
4957 * ser-mingw.c (net_windows_socket_check_pending): New function.
4958 (net_windows_select_thread): Ignore spurious wakeups. Use
4959 net_windows_socket_check_pending.
4960 (net_windows_wait_handle): Check for pending events with
4961 ioctlsocket, through net_windows_socket_check_pending, instead of
4962 checking the socket's event.
4963
5a6c7709
SC
49642014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4965
4966 * python/python-internal.h (gdb_PyObject_GetAttrString)
4967 (gdb_PyObject_HasAttrString): New inline function definitions.
4968 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4969 char * of the second argument to PyObject_GetAttrString.
74228e77 4970
0e58ee40
JB
49712014-06-10 Joel Brobecker <brobecker@adacore.com>
4972
4973 * serial.c (serial_write): Fix index of character to be printed
4974 in call to serial_logchar when serial debug traces are enabled.
4975
d190df30
JB
49762014-06-10 Joel Brobecker <brobecker@adacore.com>
4977
4978 * gdbtypes (resolve_dynamic_range): Add function description.
4979
b4b01d36
PA
49802014-06-09 Pedro Alves <palves@redhat.com>
4981
4982 * linux-nat.c (linux_child_follow_fork): Initialize status with
4983 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4984 inner block. Only pass the signal to PTRACE_DETACH if in pass
4985 state.
4986
3657956b
GB
49872014-06-09 Gary Benson <gbenson@redhat.com>
4988
4989 * common/signals.c (gdb_signal_from_host): Reorder to separate
4990 the always-available ANSI-standard signals from the signals that
4991 require checking.
4992 (do_gdb_signal_to_host): Likewise.
4993 * proc-events.c (signal_table): Likewise.
4994
c077881a
HZ
49952014-06-08 Hui Zhu <hui@codesourcery.com>
4996
4997 * common/linux-ptrace.c (linux_disable_event_reporting): New
4998 function.
4999 * common/linux-ptrace.h (linux_disable_event_reporting): New
5000 declaration.
5001 * linux-nat.c (linux_child_follow_fork): Do a single step before
5002 detach.
5003
4186eb54
KS
50042014-06-07 Keith Seitz <keiths@redhat.com>
5005
5006 Revert:
5007 PR c++/16253
5008 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5009 from symbol_matches_domain in symtab.c. All local callers
5010 of symbol_matches_domain updated.
5011 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5012 search STRUCT_DOMAIN.
5013 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5014 independently. standard_lookup will do that automatically.
5015 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5016 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5017 (cp_lookup_symbol_in_namespace): Likewise.
5018 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5019 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5020 may return a STRUCT_DOMAIN match.
5021 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5022 * cp-support.c: Include language.h.
5023 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5024 VAR_DOMAIN.
5025 * psymtab.c (match_partial_symbol): Compare the requested
5026 domain with the symbol's domain directly.
5027 (lookup_partial_symbol): Likewise.
5028 * symtab.c (lookup_symbol_in_language): Explain when/why
5029 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5030 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5031 appropriate languages.
5032 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5033 and moved to ada-lang.c
5034 (lookup_block_symbol): Explain that this function only returns
5035 symbol matching the requested DOMAIN.
5036 Compare the requested domain with the symbol's domain directly.
5037 (iterate_over_symbols): Compare the requested domain with the
5038 symbol's domain directly.
5039 * symtab.h (symbol_matches_domain): Remove.
5040
25326a28 50412014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5042
5043 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5044 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5045 (gdbscm_guile_version_is_at_least): Declare.
5046 (gdbscm_scm_string_to_int): Declare.
5047 * guile/guile.c (gdbscm_guile_major_version): New global.
5048 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5049 (guile_datadir): New static global.
5050 (gdbscm_guile_data_directory): New function.
5051 (initialize_scheme_side): Update.
5052 (misc_guile_functions): Add guile-data-directory.
5053 (initialize_gdb_module): Fetch guile version number.
5054 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5055 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5056 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5057 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5058 comments.
5059 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5060 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5061 * guile/scm-value.c (gdbscm_value_to_string): Only call
5062 scm_port_conversion_strategy if Guile version >= 2.0.6.
5063
0a770bb2 50642014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5065
5066 * main.c (print_gdb_help): Add -q and --silent.
5067
73ba372c
GB
50682014-06-06 Gary Benson <gbenson@redhat.com>
5069
5070 * common/signals.c: Remove preprocessor conditionals for
5071 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5072 SIGSEGV and SIGTERM.
5073 * proc-events.c: Likewise.
5074
c33b2f12
MM
50752014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5076
5077 * symfile.c (symfile_free_objfile): Remove restriction to
5078 OBJF_USERLOADED.
5079 * symfile-mem.c (symbol_file_add_from_memory): Call
5080 add_target_sections_of_objfile.
5081
fb934770
LC
50822014-06-05 Ludovic Courtès <ludo@gnu.org>
5083
5084 * guile/scm-value.c (gdbscm_history_append_x): Use
5085 'vlscm_get_value_smob_arg_unsafe' instead of
5086 'vlscm_scm_to_value'.
5087
6ef284bd
SM
50882014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5089
5090 PR mi/15806
5091 * utils.c (printchar): Don't escape at all if quoter is NUL.
5092 Update function documentation to clarify effect of parameter
5093 QUOTER.
5094 * remote.c (escape_buffer): Pass '\\' as the quoter to
5095 fputstrn_unfiltered.
5096 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5097 generate the output.
5098 (mi_solib_unloaded): Same.
5099
270c9937
JB
51002014-06-05 Joel Brobecker <brobecker@adacore.com>
5101
5102 * development.sh: Delete.
5103 * Makefile.in (config.status): Adjust dependency on development.sh.
5104 * configure.ac: Adjust development.sh source call.
5105 * configure: Regenerate.
5106
16f691fb
DE
51072014-06-04 Doug Evans <xdje42@gmail.com>
5108
5109 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5110 is_scheme_bkpt, spec.
5111 (bpscm_make_breakpoint_smob): Initialize new members.
5112 (gdbscm_create_breakpoint_x): Split into two ...
5113 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5114 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5115 (scheme_function breakpoint_functions): Update.
5116 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5117 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5118 register-breakpoint!.
5119
ef7cab6b
JB
51202014-06-04 Joel Brobecker <brobecker@adacorer.com>
5121
5122 PR server/17023
5123 * mem-break.c (z_type_supported): Return zero if
5124 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5125
012370f6
TT
51262014-06-04 Tom Tromey <tromey@redhat.com>
5127
5128 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5129 value_from_contents_and_address_unresolved.
5130 (ada_template_to_fixed_record_type_1): Likewise.
5131 (ada_which_variant_applies): Likewise.
5132 * value.h (value_from_contents_and_address_unresolved): Declare.
5133 * value.c (value_from_contents_and_address_unresolved): New
5134 function.
5135 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5136 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5137 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5138
92e2a17f
TT
51392014-06-04 Tom Tromey <tromey@redhat.com>
5140
5141 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5142
c0939df1
TT
51432014-06-04 Tom Tromey <tromey@redhat.com>
5144
5145 * procfs.c (procfs_attach): Make "args" const.
5146 * windows-nat.c (windows_attach): Make "args" const.
5147 * nto-procfs.c (procfs_attach): Make "args" const.
5148 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5149 * go32-nat.c (go32_attach): Make "args" const.
5150 * gnu-nat.c (gnu_attach): Make "args" const.
5151 * darwin-nat.c (darwin_attach): Make "args" const.
5152 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5153 * linux-nat.c (linux_nat_attach): Make "args" const.
5154 * remote.c (extended_remote_attach_1, extended_remote_attach):
5155 Make "args" const.
5156 * target.h (struct target_ops) <to_attach>: Make "args" const.
5157 (find_default_attach): Likewise.
5158 * utils.c (parse_pid_to_attach): Make "args" const.
5159 * utils.h (parse_pid_to_attach): Update.
5160
8eaff7cd
TT
51612014-06-04 Tom Tromey <tromey@redhat.com>
5162
5163 * target-delegates.c: Rebuild.
5164 * target.c (default_thread_address_space): New function.
5165 (target_thread_address_space): Simplify.
5166 * target.h (struct target_ops) <to_thread_address_space>: Add
5167 TARGET_DEFAULT_FUNC.
5168
1913f160
DE
51692014-06-04 Doug Evans <xdje42@gmail.com>
5170
5171 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5172
70ad5bff
MM
51732014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5174
5175 * record-btrace.c: Include event-loop.h and inf-loop.h.
5176 (record_btrace_resume_exec_dir)
5177 (record_btrace_async_inferior_event_handler)
5178 (record_btrace_handle_async_inferior_event): New.
5179 (record_btrace_open): Create async event handler.
5180 (record_btrace_close): Delete async event handler.
5181 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5182 Mark async event handler.
5183 (record_btrace_execution_direction): New.
5184 (init_record_btrace_ops): Initialize to_execution_direction.
5185
b6210538
DE
51862014-06-03 Doug Evans <xdje42@gmail.com>
5187
5188 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5189 (gdbscm_make_parameter): Ditto.
5190
a5b1fd27
DE
51912014-06-03 Doug Evans <dje@google.com>
5192
5193 * exec.c (exec_close_1): Call clear_section_table instead of
5194 resize_section_table.
5195 (clear_section_table): New function.
5196 (resize_section_table): Make static. Rename arg num_added to
5197 adjustment.
5198 * exec.h (clear_section_table): Declare.
5199 (resize_section_table): Delete.
5200 * progspace.c (release_program_space): Call clear_section_table
5201 instead of resize_section_table.
5202
0c6e92a5
SC
52032014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5204
5205 * NEWS (Python Scripting): Add entry about the new xmethods
5206 feature.
5207
883964a7
SC
52082014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5209
5210 * python/py-xmethods.c: New file.
5211 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5212 (objfpy_dealloc): XDECREF on the new xmethods field.
5213 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5214 field.
5215 (objfpy_get_xmethods): New function.
5216 (objfile_getset): New entry 'xmethods'.
5217 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5218 (pspy_dealloc): XDECREF on the new xmethods field.
5219 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5220 field.
5221 (pspy_get_xmethods): New function.
5222 (pspace_getset): New entry 'xmethods'.
5223 * python/python-internal.h: Add declarations for new functions.
5224 * python/python.c (_initialize_python): Invoke
5225 gdbpy_initialize_xmethods.
5226 * python/lib/gdb/__init__.py (xmethods): New
5227 attribute.
5228 * python/lib/gdb/xmethod.py: New file.
5229 * python/lib/gdb/command/xmethods.py: New file.
5230
58992dc5
SC
52312014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5232
5233 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5234 best match method returned by find_overload_match is an xmethod.
5235 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5236 the best matching operator returned by find_overload_match is an
5237 xmethod.
5238 * valops.c: #include "extension.h".
5239 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5240 Return void. The list of matching source methods is returned in
5241 "fn_list" and a vector of matching debug method workers is
5242 returned in "xm_worker_vec". Update all callers.
5243 (value_find_oload_method_list): Likewise.
5244 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5245 non-NULL, then the index of the best matching method in this
5246 vector is returned. Update all callers.
5247 (find_overload_match): Include xmethods while performing overload
5248 resolution.
5249
e81e7f5e
SC
52502014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5251
5252 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5253 * extension-priv.h (struct extension_language_ops): Add the
5254 xmethod interface.
5255 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5256 get_matching_xmethod_workers, get_xmethod_argtypes,
5257 invoke_xmethod, free_xmethod_worker,
5258 free_xmethod_worker_vec): New functions.
5259 * extension.h: #include "common/vec.h".
5260 New function declarations.
5261 (struct xmethod_worker): New struct.
5262 (VEC (xmethod_worker_ptr)): New vector type.
5263 (xmethod_worker_ptr): New typedef.
5264 (xmethod_worker_vec): Likewise.
5265 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5266 builtin_type.
5267 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5268 (struct builtin_type): New field "xmethod".
5269 * valarith.c (value_ptradd): Assert that the value argument is not
5270 lval_xcallable.
5271 * valops.c (value_must_coerce_to_target): Return 0 for
5272 lval_xcallable values.
5273 * value.c (struct value): New field XM_WORKER in the field
5274 LOCATION.
5275 (value_address, value_raw_address): Return 0 for lval_xcallable
5276 values.
5277 (set_value_address): Assert that the value is not an
5278 lval_xcallable.
5279 (value_free): Free the associated xmethod worker when freeing
5280 lval_xcallable values.
5281 (set_value_component_location): Assert that the WHOLE value is not
5282 lval_xcallable.
5283 (value_of_xmethod, call_xmethod): New functions.
5284 * value.h: Declare "struct xmethod_worker".
5285 Declare new functions value_of_xmethod, call_xmethod.
5286
ef370185
JB
52872014-06-03 Joel Brobecker <brobecker@adacore.com>
5288 Pedro Alves <palves@redhat.com>
5289
5290 PR breakpoints/17000
5291 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5292 New function, extracted from software_breakpoint_inserted_here_p.
5293 (software_breakpoint_inserted_here_p): Replace factored out code
5294 by call to find_non_raw_software_breakpoint_inserted_here.
5295 (bp_target_info_copy_insertion_state): New function.
5296 (bkpt_insert_location): Handle the case of a single-step
5297 breakpoint already inserted at the same address.
5298 (bkpt_remove_location): Handle the case of a single-step
5299 breakpoint still inserted at the same address.
5300 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5301 breakpoint already inserted at the same address.
5302 (deprecated_remove_raw_breakpoint): Handle the case of a
5303 non-raw breakpoint still inserted at the same address.
5304 (find_single_step_breakpoint): New function, extracted from
5305 single_step_breakpoint_inserted_here_p.
5306 (find_single_step_breakpoint): New function,
5307 factored out from single_step_breakpoint_inserted_here_p.
5308 (single_step_breakpoint_inserted_here_p): Reimplement.
5309
1e2ccb61
BM
53102014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5311
5312 Pushed by Joel Brobecker <brobecker@adacore.com>
5313 * source.c (show_substitute_path_command): Fix display of matching
5314 substitution rules.
5315
d3448d85
GB
53162014-06-03 Gary Benson <gbenson@redhat.com>
5317
5318 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5319
06eb1586
DE
53202014-06-02 Doug Evans <xdje42@gmail.com>
5321
5322 Add parameter support for Guile.
5323 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5324 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5325 (scm-param.o): New rule.
5326 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5327 (gdbscm_misc_error): Declare.
5328 (gdbscm_canonicalize_command_name): Declare.
5329 (gdbscm_scm_to_host_string): Declare.
5330 (gdbscm_scm_from_host_string): Declare.
5331 (gdbscm_initialize_parameters): Declare.
5332 * guile/guile.c (initialize_gdb_module): Call
5333 gdbscm_initialize_parameters.
5334 * guile/lib/gdb.scm: Export parameter symbols.
5335 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5336 cmdscm_canonicalize_name and made public. All callers updated.
5337 * guile/scm-exception.c (gdbscm_misc_error): New function.
5338 * guile/scm-param.c: New file.
5339 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5340 (gdbscm_scm_to_host_string): New function.
5341 (gdbscm_scm_from_host_string): New function.
5342 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5343
e698b8c4
DE
53442014-06-02 Doug Evans <xdje42@gmail.com>
5345
5346 Add command support for Guile.
5347 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5348 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5349 (scm-cmd.o): New rule.
5350 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5351 (gdbscm_user_error_p): Declare.
5352 (gdbscm_parse_command_name): Declare.
5353 (gdbscm_valid_command_class_p): Declare.
5354 (gdbscm_initialize_commands): Declare.
5355 * guile/guile.c (initialize_gdb_module): Call
5356 gdbscm_initialize_commands.
5357 * guile/lib/gdb.scm: Export command symbols.
5358 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5359 (throw-user-error): New function.
5360 * guile/scm-cmd.c: New file.
5361 * guile/scm-exception.c (user_error_symbol): New static global.
5362 (gdbscm_user_error_p): New function.
5363 (gdbscm_initialize_exceptions): Set user_error_symbol.
5364 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5365
fb1f94b0
PM
53662014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5367
5368 * top.c (command_loop): Handle comments here...
5369 (command_line_input): ... not here.
5370
ded03782
DE
53712014-06-02 Doug Evans <xdje42@gmail.com>
5372
5373 Add progspace support for Guile.
5374 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5375 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5376 (scm-progspace.o): New rule.
5377 * guile/guile-internal.h (pspace_smob): New typedef.
5378 (psscm_pspace_smob_pretty_printers): Declare.
5379 (psscm_pspace_smob_from_pspace): Declare.
5380 (psscm_scm_from_pspace): Declare.
5381 * guile/guile.c (initialize_gdb_module): Call
5382 gdbscm_initialize_pspaces.
5383 * guile/lib/gdb.scm: Export progspace symbols.
5384 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5385 support.
5386 (append-pretty-printer!): Ditto.
5387 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5388 Implement.
5389 * guile/scm-progspace.c: New file.
5390
397998fc
AM
53912014-06-03 Alan Modra <amodra@gmail.com>
5392
5393 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5394 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5395
6aa5f3a6
DE
53962014-06-02 Doug Evans <dje@google.com>
5397
5398 Add support for skeletonless type units.
5399 * dwarf2read.c (struct dwarf2_per_objfile): New member
5400 n_allocated_type_units.
5401 (struct dwarf2_per_objfile) <tu_stats>: New member
5402 nr_all_type_units_reallocs.
5403 (create_signatured_type_table_from_index): Initialize
5404 n_allocated_type_units
5405 (create_all_type_units): Ditto.
5406 (add_type_unit): Move up in file. New arg slot.
5407 All callers updated. Increase space for all_type_units more
5408 efficiently.
5409 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5410 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5411 (lookup_dwp_signatured_type): Ditto.
5412 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5413 All callers updated.
5414 (build_type_psymtabs_1): Leave type_unit_groups as
5415 NULL if no TUs present.
5416 (print_tu_stats): New function.
5417 (process_skeletonless_type_unit): New function.
5418 (process_dwo_file_for_skeletonless_type_units): New
5419 function.
5420 (process_skeletonless_type_units): New function.
5421 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5422 Call print tu_stats if debugging enabled.
5423
41fac0cf
PA
54242014-06-02 Pedro Alves <palves@redhat.com>
5425
5426 * breakpoint.c (build_target_command_list): Don't build a command
5427 list if we have any duplicate location that isn't a dprintf.
5428
cd1608cc
PA
54292014-06-02 Pedro Alves <palves@redhat.com>
5430
5431 * breakpoint.c (dprintf_breakpoint_hit): New function.
5432 (initialize_breakpoint_ops): Install it as dprintf's
5433 breakpoint_hit method.
5434
486ef3b9
JB
54352014-06-02 Joel Brobecker <brobecker@adacore.com>
5436
5437 * source.c (substitute_path_rule_matches): Simplify using
5438 filename_ncmp instead of FILENAME_CMP.
5439
230cd560
JB
54402014-06-02 Joel Brobecker <brobecker@adacore.com>
5441
5442 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5443
16954d5d
LC
54442014-06-01 Ludovic Courtès <ludo@gnu.org>
5445
5446 * configure.ac: When Guile is available, check for the
5447 availability of 'scm_new_smob'.
5448 * configure, config.h.in: Regenerate.
5449 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5450 function.
5451
53e8a631
AB
54522014-05-30 Andrew Burgess <aburgess@broadcom.com>
5453
5454 * frame.c (struct frame_info): Add stop_string field.
5455 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5456 (get_prev_frame_always): Old content moved into
5457 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5458 TRY_CATCH, handle MEMORY_ERROR exceptions.
5459 (frame_stop_reason_string): New function definition.
5460 * frame.h (unwind_stop_reason_to_string): Extend comment to
5461 mention frame_stop_reason_string.
5462 (frame_stop_reason_string): New function declaration.
5463 * stack.c (frame_info): Switch to frame_stop_reason_string.
5464 (backtrace_command_1): Switch to frame_stop_reason_string.
5465 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5466 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5467 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5468
70e38b8e
AB
54692014-05-30 Andrew Burgess <aburgess@broadcom.com>
5470
5471 * frame.c (frame_stop_reason_string): Rename to ...
5472 (unwind_stop_reason_to_string): this.
5473 * frame.h (frame_stop_reason_string): Rename to ...
5474 (unwind_stop_reason_to_string): this.
5475 * stack.c (frame_info): Update call to frame_stop_reason_string.
5476 (backtrace_command_1): Likewise.
5477 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5478 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5479
938f0e2f
AB
54802014-05-30 Andrew Burgess <aburgess@broadcom.com>
5481
5482 * frame.c (remove_prev_frame): New function.
5483 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5484 remove_prev_frame.
5485
a09dd441
PA
54862014-05-29 Pedro Alves <palves@redhat.com>
5487
5488 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5489 and make it const. When a single-step decays to a continue,
5490 clear 'step', not 'hw_step'. Pass whether the caller wanted
5491 to step to user_visible_resume_ptid, not what we ask the
5492 target to do.
5493
bdc36728
PA
54942014-05-29 Pedro Alves <palves@redhat.com>
5495
5496 * infrun.c (process_event_stop_test, handle_step_into_function)
5497 (handle_step_into_function_backward): Adjust.
5498 Don't set the even thread's stop_step and call stop_waiting before
5499 calling end_stepping_range. Instead do that ...
5500 (end_stepping_range): ... here. Take an ecs pointer parameter.
5501
22bcd14b
PA
55022014-05-29 Pedro Alves <palves@redhat.com>
5503
5504 * infrun.c (stop_stepping): Rename to ...
5505 (stop_waiting): ... this.
5506 (proceed): Update comment.
5507 (process_event_stop_test, handle_inferior_event)
5508 (handle_signal_stop, handle_step_into_function)
5509 (handle_step_into_function_backward): Update.
5510
4ae57c05
PA
55112014-05-29 Pedro Alves <palves@redhat.com>
5512
5513 * infcall.c (run_inferior_call): Don't check whether the current
5514 thread is running after the proceed call.
5515
329ea579
PA
55162014-05-29 Pedro Alves <palves@redhat.com>
5517 Tom Tromey <tromey@redhat.com>
5518
5519 * NEWS: Mention "maint set target-async", "set mi-async", and that
5520 background execution commands are now always available.
5521 * target.h (target_async_permitted): Update comment.
5522 * target.c (target_async_permitted, target_async_permitted_1):
5523 Default to 1.
5524 (set_target_async_command): Rename to ...
5525 (maint_set_target_async_command): ... this.
5526 (show_target_async_command): Rename to ...
5527 (maint_show_target_async_command): ... this.
5528 (_initialize_target): Adjust.
5529 * infcmd.c (prepare_execution_command): Make extern.
5530 * inferior.h (prepare_execution_command): Declare.
5531 * infrun.c (set_observer_mode): Leave target async alone.
5532 * mi/mi-interp.c (mi_interpreter_init): Install
5533 mi_on_sync_execution_done as sync_execution_done observer.
5534 (mi_on_sync_execution_done): New function.
5535 (mi_execute_command_input_handler): Don't print the prompt if we
5536 just started a synchronous command with an async target.
5537 (mi_on_resume): Check sync_execution before printing prompt.
5538 * mi/mi-main.h (mi_async_p): Declare.
5539 * mi/mi-main.c: Include gdbcmd.h.
5540 (mi_async_p): New function.
5541 (mi_async, mi_async_1): New globals.
5542 (set_mi_async_command, show_mi_async_command, mi_async): New
5543 functions.
5544 (exec_continue): Call prepare_execution_command.
5545 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5546 (mi_execute_async_cli_command): Use mi_async_p.
5547 (_initialize_mi_main): Install "set mi-async". Make
5548 "target-async" a deprecated alias.
5549
92bcb5f9
PA
55502014-05-29 Pedro Alves <palves@redhat.com>
5551
5552 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5553 (_initialize_cli_interp): Adjust.
5554 * event-loop.c: Include "observer.h".
5555 (start_event_loop): Notify 'command_error' observers instead of
5556 calling display_gdb_prompt. Remove FIXME comment.
5557 * event-top.c (display_gdb_prompt): Remove call into the
5558 interpreters.
5559 * inf-loop.c: Include "observer.h".
5560 (inferior_event_handler): Notify 'command_error' observers instead
5561 of calling display_gdb_prompt.
5562 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5563 observers instead of calling display_gdb_prompt.
5564 * interps.c (interp_set): Don't call display_gdb_prompt.
5565 (current_interp_display_prompt_p): Delete.
5566 * interps.h (interp_prompt_p): Delete declaration.
5567 (interp_prompt_p_ftype): Delete.
5568 (struct interp_procs) <prompt_proc_p>: Delete field.
5569 (current_interp_display_prompt_p): Delete declaration.
5570 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5571 (_initialize_mi_interp): Adjust.
5572 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5573 'command_error' observers.
5574 (tui_on_sync_execution_done, tui_on_command_error): New
5575 functions.
5576 (tui_display_prompt_p): Delete.
5577 (_initialize_tui_interp): Adjust.
5578
fd664c91
PA
55792014-05-29 Pedro Alves <palves@redhat.com>
5580
5581 PR gdb/13860
5582 * cli/cli-interp.c: Include infrun.h and observer.h.
5583 (cli_uiout, cli_interp): New globals.
5584 (cli_on_signal_received, cli_on_end_stepping_range)
5585 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5586 functions.
5587 (cli_interpreter_init): Install them as 'end_stepping_range',
5588 'signal_received' 'signal_exited', 'exited' and 'no_history'
5589 observers.
5590 (_initialize_cli_interp): Remove cli_interp local.
5591 * infrun.c (handle_inferior_event): Call the several stop reason
5592 observers instead of printing the stop reason directly.
5593 (end_stepping_range): New function.
5594 (print_end_stepping_range_reason, print_signal_exited_reason)
5595 (print_exited_reason, print_signal_received_reason)
5596 (print_no_history_reason): Make static, and add an uiout
5597 parameter. Print to that instead of to CURRENT_UIOUT.
5598 * infrun.h (print_end_stepping_range_reason)
5599 (print_signal_exited_reason, print_exited_reason)
5600 (print_signal_received_reason print_no_history_reason): New
5601 declarations.
5602 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5603 'mi_uiout'.
5604 <cli_uiout>: New field.
5605 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5606 uiout for CLI output. Install 'signal_received',
5607 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5608 observers.
5609 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5610 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5611 (mi_on_no_history): New functions.
5612 (ui_out_free_cleanup): Delete function.
5613 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5614 instead use the one already stored in the MI interpreter data.
5615 (mi_ui_out): Adjust.
5616 * tui/tui-interp.c: Include infrun.h and observer.h.
5617 (tui_interp): New global.
5618 (tui_on_signal_received, tui_on_end_stepping_range)
5619 (tui_on_signal_exited, tui_on_exited)
5620 (tui_on_no_history): New functions.
5621 (tui_init): Install them as 'end_stepping_range',
5622 'signal_received' 'signal_exited', 'exited' and 'no_history'
5623 observers.
5624 (_initialize_tui_interp): Delete tui_interp local.
5625
8817a6f2
PA
56262014-05-29 Pedro Alves <palves@redhat.com>
5627
5628 PR gdb/15713
5629 * linux-nat.c (linux_nat_resume_callback): Rename the second
5630 parameter to 'except'. Skip LP if it points to EXCEPT.
5631 (linux_nat_resume): Don't mark the event lwp as not stopped
5632 before resuming sibling lwps. Instead ask
5633 linux_nat_resume_callback to skip the event lwp. Mark it as not
5634 stopped after actually resuming it.
5635 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5636 resuming it.
5637 (wait_lwp): Mark the lwp as stopped here.
5638 (stop_wait_callback): Mark the lwp as not stopped right after
5639 resuming it. Don't mark lwps as stopped here.
5640 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5641 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5642
251bde03
PA
56432014-05-29 Pedro Alves <palves@redhat.com>
5644
5645 PR PR15693
5646 * infrun.c (resume): Determine how much to resume depending on
5647 whether the caller wanted a step, not whether we can hardware step
5648 the target. Mark all threads that we intend to run as running,
5649 unless we're calling an inferior function.
5650 (normal_stop): If the thread is running an infcall, don't finish
5651 thread state.
5652 * target.c (target_resume): Don't mark threads as running here.
5653
7f3c0343
JB
56542014-05-28 Joel Brobecker <brobecker@adacore.com>
5655
5656 * serial.c (_initialize_serial): Remove support for
5657 the "set remotebaud" and "show remotebaud" commands.
5658 * NEWS: Add entry documenting the removal of that command.
5659
ee34b3f9
YQ
56602014-05-28 Yao Qi <yao@codesourcery.com>
5661
5662 * charset.c: Fix typo in comments.
5663
add6c04d
GB
56642014-05-27 Gary Benson <gbenson@redhat.com>
5665
5666 * utils.c (internal_vproblem): Prompt for a bug report.
5667
92c48fc5
AW
56682014-05-26 Andy Wingo <wingo@igalia.com>
5669
5670 * guile/scm-arch.c (arscm_mark_arch_smob):
5671 * guile/scm-block.c (bkscm_mark_block_smob)
5672 (bkscm_mark_block_syms_progress_smob):
5673 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5674 * guile/scm-exception.c (exscm_mark_exception_smob):
5675 * guile/scm-frame.c (frscm_mark_frame_smob):
5676 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5677 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5678 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5679 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5680 (ppscm_mark_pretty_printer_worker_smob):
5681 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5682 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5683 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5684 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5685 mark functions.
5686 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5687 function.
5688
b2715b27
AW
56892014-05-26 Andy Wingo <wingo@igalia.com>
5690 Doug Evans <xdje42@gmail.com>
5691
5692 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5693 empty_base_class. All uses updated.
5694 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5695 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5696 Adapt all callers.
5697 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5698 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5699 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5700 (gdbscm_gsmob_has_property_p, add_property_name)
5701 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5702 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5703 (gdb-object-has-property?, gdb-object-properties): Remove.
5704 (gdb-object-kind): Renamed from gsmob-kind.
5705
214ab2da
AW
57062014-05-26 Andy Wingo <wingo@igalia.com>
5707
5708 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5709 * configure: Regenerate.
5710
589fdceb
MM
57112014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5712
5713 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5714
67b5c0c1
MM
57152014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5716
5717 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5718 (replay_memory_access_read_only, replay_memory_access_read_write)
5719 (replay_memory_access_types, replay_memory_access)
5720 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5721 (cmd_set_record_btrace, cmd_show_record_btrace)
5722 (cmd_show_replay_memory_access): New.
5723 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5724 (record_btrace_remove_breakpoint): Replace
5725 record_btrace_allow_memory_access with replay_memory_access.
5726 (_initialize_record_btrace): Add commands.
5727 * NEWS: Announce it.
5728
036cd381
RR
57292014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5730
5731 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5732
c77c1e42
RR
57332014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5734
5735 * MAINTAINERS (Write After Approval): Move self back from
5736 paper trail.
5737
45741a9c
PA
57382014-05-22 Pedro Alves <palves@redhat.com>
5739
5740 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5741 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5742 (disable_randomization, enum exec_direction_kind)
5743 (execution_direction, stop_registers, start_remote)
5744 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5745 (wait_for_inferior, normal_stop, get_last_target_status)
5746 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5747 (insert_step_resume_breakpoint_at_sal)
5748 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5749 (set_step_info, print_stop_event, signal_stop_state)
5750 (signal_print_state, signal_pass_state, signal_stop_update)
5751 (signal_print_update, signal_pass_update)
5752 (update_signals_program_target, clear_exit_convenience_vars)
5753 (displaced_step_dump_bytes, update_observer_mode)
5754 (signal_catch_update, gdb_signal_from_command): Move
5755 declarations ...
5756 * infrun.h: ... to this new file.
5757 * amd64-tdep.c: Include infrun.h.
5758 * annotate.c: Include infrun.h.
5759 * arch-utils.c: Include infrun.h.
5760 * arm-linux-tdep.c: Include infrun.h.
5761 * arm-tdep.c: Include infrun.h.
5762 * break-catch-sig.c: Include infrun.h.
5763 * breakpoint.c: Include infrun.h.
5764 * common/agent.c: Include infrun.h instead of inferior.h.
5765 * corelow.c: Include infrun.h.
5766 * event-top.c: Include infrun.h.
5767 * go32-nat.c: Include infrun.h.
5768 * i386-tdep.c: Include infrun.h.
5769 * inf-loop.c: Include infrun.h.
5770 * infcall.c: Include infrun.h.
5771 * infcmd.c: Include infrun.h.
5772 * infrun.c: Include infrun.h.
5773 * linux-fork.c: Include infrun.h.
5774 * linux-nat.c: Include infrun.h.
5775 * linux-thread-db.c: Include infrun.h.
5776 * monitor.c: Include infrun.h.
5777 * nto-tdep.c: Include infrun.h.
5778 * procfs.c: Include infrun.h.
5779 * record-btrace.c: Include infrun.h.
5780 * record-full.c: Include infrun.h.
5781 * remote-m32r-sdi.c: Include infrun.h.
5782 * remote-mips.c: Include infrun.h.
5783 * remote-notif.c: Include infrun.h.
5784 * remote-sim.c: Include infrun.h.
5785 * remote.c: Include infrun.h.
5786 * reverse.c: Include infrun.h.
5787 * rs6000-tdep.c: Include infrun.h.
5788 * s390-linux-tdep.c: Include infrun.h.
5789 * solib-irix.c: Include infrun.h.
5790 * solib-osf.c: Include infrun.h.
5791 * solib-svr4.c: Include infrun.h.
5792 * target.c: Include infrun.h.
5793 * top.c: Include infrun.h.
5794 * windows-nat.c: Include infrun.h.
5795 * mi/mi-interp.c: Include infrun.h.
5796 * mi/mi-main.c: Include infrun.h.
5797 * python/py-threadevent.c: Include infrun.h.
5798
98eb56a4
PA
57992014-05-22 Pedro Alves <palves@redhat.com>
5800
5801 * infrun.c (handle_inferior_event): Store the exit code for
5802 --return-child-result here, instead of ...
5803 (print_exited_reason): ... here.
5804
17b2616c
PA
58052014-05-21 Pedro Alves <palves@redhat.com>
5806
5807 PR gdb/13860
5808 * gdbthread.h (struct thread_control_state): New field
5809 `command_interp'.
5810 * infrun.c (follow_fork): Copy the new thread control field to the
5811 child fork thread.
5812 (clear_proceed_status_thread): Clear the new thread control field.
5813 (proceed): Set the new thread control field.
5814 * interps.h (command_interp): Declare.
5815 * interps.c (command_interpreter): New global.
5816 (command_interp): New function.
5817 (interp_exec): Set `command_interpreter' while here.
5818 * cli-out.c (cli_uiout_dtor): New function.
5819 (cli_ui_out_impl): Install it.
5820 * mi/mi-interp.c: Include cli-out.h.
5821 (mi_cmd_interpreter_exec): Add comment.
5822 (restore_current_uiout_cleanup): New function.
5823 (ui_out_free_cleanup): New function.
5824 (mi_on_normal_stop): If finishing an execution command started by
5825 a CLI command, or any kind of breakpoint-like event triggered,
5826 print the stop event to the output (CLI) stream.
5827 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5828
5166082f
PA
58292014-05-21 Pedro Alves <palves@redhat.com>
5830
5831 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5832 current source line having changed.
5833 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5834 * infrun.c (normal_stop): Adjust call to
5835 set_current_sal_from_frame.
5836 * source.c (clear_lines_listed_range): New function.
5837 (set_current_source_symtab_and_line, identify_source_line): Clear
5838 the lines listed range.
5839 (line_info): Handle the first "info line" after the current source
5840 line having changed.
5841 * stack.c (print_stack_frame): Remove center handling.
5842 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5843 center sal.line.
5844
c1ee2fb3
PA
58452014-05-21 Pedro Alves <palves@redhat.com>
5846
5847 * inf-child.c (inf_child_mourn_inferior): New function.
5848 * inf-child.h (inf_child_mourn_inferior): New declaration.
5849 * darwin-nat.c (darwin_mourn_inferior): Use
5850 inf_child_mourn_inferior.
5851 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5852 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5853 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5854 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5855 * windows-nat.c (windows_mourn_inferior): Likewise.
5856
5c6d4fb2
DE
58572014-05-21 Doug Evans <xdje42@gmail.com>
5858
250748cb 5859 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5860
4a2722c5
DE
58612014-05-21 Doug Evans <xdje42@gmail.com>
5862
17292b30 5863 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5864 (gdbscm_out_of_range_error): Ditto.
5865 (gdbscm_memory_error): Ditto.
250748cb
DE
5866 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5867 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5868 (gdbscm_out_of_range_error): Update.
5869 (gdbscm_memory_error): Update.
5870 (gdbscm_scm_to_target_string_unsafe): Delete.
5871
6a3cb8e8
PA
58722014-05-21 Pedro Alves <palves@redhat.com>
5873
5874 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5875 globals.
5876 (inf_child_open_target): New function.
5877 (inf_child_open): Use inf_child_open_target to push the target
5878 instead of erroring out.
5879 (inf_child_disconnect, inf_child_close)
5880 (inf_child_maybe_unpush_target): New functions.
5881 (inf_child_target): Install inf_child_disconnect and
5882 inf_child_close. Store a pointer to the returned object.
5883 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5884 declarations.
5885 * target.c (auto_connect_native_target): New global.
5886 (show_default_run_target): New function.
5887 (find_default_run_target): Return NULL if automatically connecting
5888 to the native target is disabled.
5889 (_initialize_target): Install set/show auto-connect-native-target.
5890 * NEWS: Mention "set auto-connect-native-target", and "target
5891 native".
5892 * linux-nat.c (super_close): New global.
5893 (linux_nat_close): Call super_close.
5894 (linux_nat_add_target): Store a pointer to the base class's
5895 to_close method.
5896 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5897 inf_child_maybe_unpush.
5898 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5899 already pushed.
5900 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5901 the inferior. Use inf_child_maybe_unpush_target.
5902 (inf_ttrace_attach): Don't push the target if it is already
5903 pushed.
5904 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5905 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5906 after mourning the inferior. Use inf_child_maybe_unpush_target.
5907 (darwin_attach_pid): Don't push the target if it is already
5908 pushed.
5909 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5910 mourning the inferior. Use inf_child_maybe_unpush_target.
5911 (gnu_detach): Use inf_child_maybe_unpush_target.
5912 * go32-nat.c (go32_create_inferior): Don't push the target if it
5913 is already pushed.
5914 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5915 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5916 (procfs_open): Rename to ...
5917 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5918 comments. Can target_preopen before changing node. Call
5919 inf_child_open_target to push the target explicitly.
5920 (procfs_attach): Don't push the target if it is already pushed.
5921 (procfs_detach): Use inf_child_maybe_unpush_target.
5922 (procfs_create_inferior): Don't push the target if it is already
5923 pushed.
5924 (nto_native_ops): New global.
5925 (procfs_open): Reimplement.
5926 (procfs_native_open): New function.
5927 (init_procfs_targets): Install procfs_native_open as to_open of
5928 "target native". Store a pointer to the "native" target in
5929 nto_native_ops.
5930 * procfs.c (procfs_attach): Don't push the target if it is already
5931 pushed.
5932 (procfs_detach): Use inf_child_maybe_unpush_target.
5933 (procfs_mourn_inferior): Only unpush the target after mourning the
5934 inferior. Use inf_child_maybe_unpush_target.
5935 (procfs_init_inferior): Don't push the target if it is already
5936 pushed.
5937 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5938 if it is already pushed.
5939
930ee1b1
PA
59402014-05-21 Pedro Alves <palves@redhat.com>
5941
5942 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5943 and "procfs" targets are now called "native" instead.
5944
1f5d1b13
PA
59452014-05-21 Pedro Alves <palves@redhat.com>
5946
5947 * go32-nat.c (go32_open): Delete.
5948 (go32_target): Don't override the to_open method.
5949
132f8e03
PA
59502014-05-21 Pedro Alves <palves@redhat.com>
5951
5952 * nto-procfs.c (procfs_can_run): New function.
5953 (nto_procfs_ops): New global.
5954 (init_procfs_targets): New, based on procfs_target. Install
5955 "target native" in addition to "target procfs".
5956 (_initialize_procfs): Call init_procfs_targets instead of adding
5957 the target here.
5958
03c136c3
PA
59592014-05-21 Pedro Alves <palves@redhat.com>
5960
5961 * windows-nat.c (windows_target): Don't override to_shortname,
5962 to_longname or to_doc.
5963
a635d0f3
PA
59642014-05-21 Pedro Alves <palves@redhat.com>
5965
5966 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5967 to_doc.
5968
4f9b5133
PA
59692014-05-21 Pedro Alves <palves@redhat.com>
5970
5971 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5972 to_shortname, to_longname or to_doc.
5973
bc85afde
PA
59742014-05-21 Pedro Alves <palves@redhat.com>
5975
5976 * go32-nat.c (go32_target): Don't override to_shortname,
5977 to_longname or to_doc.
5978
4ebfc96e
PA
59792014-05-21 Pedro Alves <palves@redhat.com>
5980
5981 * inf-child.c (inf_child_open): Remove mention of "child".
5982 (inf_child_target): Rename target to "native" instead of "child".
5983
2648dfed
AA
59842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5985
5986 * Makefile.in (SFILES): Delete "regset.c".
5987 (COMMON_OBS): Delete "regset.o".
5988 * regset.c: Remove.
5989 * regset.h (regset_alloc): Delete prototype.
5990
b13feb94
AA
59912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5992
5993 * sparc-linux-tdep.c (sparc32_linux_gregset)
5994 (sparc32_linux_fpregset): New static regset structures.
5995 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5996 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5997 'fpregset' fields.
5998 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5999 (sparc64_linux_fpregset): New static regset structures.
6000 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6001 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6002 New static regset structures.
6003 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6004 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6005 New static regset structures.
6006 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6007 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6008 New static regset structures.
6009 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6010 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6011 New static regset structures.
6012 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6013
b4fd25c9
AA
60142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6015
6016 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6017 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6018 register maps ("regmaps") from "*regset" to "*regmap". Do this
6019 for all regmap types and variables.
6020 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6021 (sparc32_linux_supply_core_gregset)
6022 (sparc32_linux_collect_core_gregset)
6023 (sparc32_linux_supply_core_fpregset)
6024 (sparc32_linux_collect_core_fpregset): Likewise.
6025 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6026 (sparc_gregmap, sparc_fpregmap): ... these.
6027 (sparc_supply_gregset, sparc_collect_gregset)
6028 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6029 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6030 (_initialize_sparc_nat): Rename regmaps.
6031 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6032 (sparc_gregmap, sparc_fpregmap): ... these.
6033 (sparc_supply_gregset, sparc_collect_gregset)
6034 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6035 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6036 Rename macros to...
6037 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6038 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6039 Likewise.
6040 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6041 Rename to...
6042 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6043 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6044 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6045 regmaps.
6046 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6047 (sparc32_bsd_fpregset): Rename to...
6048 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6049 (sparc32_bsd_fpregmap): ... these.
6050 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6051 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6052 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6053 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6054 (struct sparc_gregmap, struct sparc_fpregmap)
6055 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6056 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6057 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6058 (sparc32_supply_regset, sparc32_collect_gregset)
6059 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6060 prototypes.
6061 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6062 (sparc64_linux_ptrace_gregmap): ... this.
6063 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6064 (_initialize_sparc64_linux_nat): Rename regmaps.
6065 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6066 (sparc64_linux_core_gregmap): ... this.
6067 (sparc64_linux_supply_core_gregset)
6068 (sparc64_linux_collect_core_gregset)
6069 (sparc64_linux_supply_core_fpregset)
6070 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6071 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6072 (sparc64_sol2_fpregset): Rename to...
6073 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6074 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6075 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6076 regmaps.
6077 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6078 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6079 (sparc64_bsd_fpregset): Rename to...
6080 (struct sparc_gregmap, sparc64_sol2_gregmap)
6081 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6082 (sparc64_bsd_fpregmap): ... these.
6083 (sparc64_supply_gregset, sparc64_collect_gregset)
6084 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6085 prototypes.
6086 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6087 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6088 (sparc64fbsd_gregmap): ... this.
6089 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6090 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6091 Rename regmaps.
6092 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6093 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6094 (sparc64nbsd_collect_fpregset): Likewise.
6095 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6096 (sparc64nbsd_gregmap): ... this.
6097 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6098 regmaps.
6099 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6100 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6101 (sparc64obsd_gregmap): ... this.
6102 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6103 regmaps.
6104 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6105 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6106 (sparc32nbsd_gregmap): ... this.
6107 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6108 regmaps.
6109
8fea3224
AA
61102014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6111
6112 * score-tdep.c (score7_linux_gregset): New static regset
6113 structure.
6114 (score7_linux_regset_from_core_section): Remove dynamic regset
6115 allocation.
6116 (score_gdbarch_init): Drop allocation of tdep structure.
6117 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6118
24534243
AA
61192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6120
6121 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6122 regset structures.
6123 (am33_regset_from_core_section): Remove dynamic regset
6124 allocations.
6125
b7195f27
AA
61262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6127
6128 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6129 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6130 structures.
6131 (mips_linux_regset_from_core_section): Remove dynamic regset
6132 allocations.
6133 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6134 'gregset64', 'fpregset', and 'fpregset64'.
6135 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6136 deleted tdep fields.
6137
ecc37a5a
AA
61382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6139
6140 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6141 regset structures.
6142 (amd64_regset_from_core_section): Remove dynamic regset
6143 allocations.
6144 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6145 structure.
6146 (amd64obsd_regset_from_core_section): Remove dynamic regset
6147 allocation.
6148 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6149 Likewise.
6150 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6151 x86-common regset supply function.
6152 * i386-tdep.c (i386_collect_gregset): Make static.
6153 (i386_gregset): New global regset structure.
6154 (i386_fpregset, i386_xstateregset): New static regset structures.
6155 (i386_regset_from_core_section): Remove dynamic regset
6156 allocations.
6157 (i386_gdbarch_init): Remove initialization of tdep fields
6158 'gregset', 'fpregset', and 'xstateregset'.
6159 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6160 'fpregset', and 'xstateregset'.
6161 (i386_collect_gregset): Remove prototype.
6162 (i386_gregset): New declaration.
6163 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6164 structure.
6165 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6166 allocation.
6167
b7611c43
AA
61682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6169
6170 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6171 (arm_linux_vfpregset): New static regset structures.
6172 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6173 regset structures.
6174 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6175 and 'vfpregset' fields.
6176
a069a2bd
AA
61772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6178
6179 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6180 (aarch64_linux_fpregset): New static regset structures.
6181 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6182 of regset structures.
6183 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6184 'fpregset' fields.
6185
09424cff
AA
61862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6187
6188 * regset.h (struct regset): Remove gdbarch field.
6189 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6190 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6191 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6192 Likewise.
6193 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6194 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6195 (ppc32_linux_vsxregset): Likewise.
6196 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6197 via the regcache instead of the regset.
6198 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6199 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6200 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6201 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6202 Likewise.
6203
3ca7dae4
AA
62042014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6205
6206 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6207 Constify structures.
6208 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6209 (alphanbsd_aout_gregset): Likewise.
6210 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6211 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6212 Likewise.
6213 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6214 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6215 Likewise.
6216 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6217 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6218 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6219 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6220 * m88k-tdep.c (m88k_gregset): Likewise.
6221 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6222 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6223 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6224 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6225 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6226 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6227 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6228 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6229 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6230 Likewise.
6231 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6232 * sh-tdep.h (sh_corefile_gregset): Likewise.
6233 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6234 * vax-tdep.c (vax_gregset): Likewise.
6235
5876f503
JK
62362014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6237
6238 Fix TLS access for -static -pthread.
6239 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6240 (try_thread_db_load_1): Initialize it.
6241 (thread_db_get_thread_local_address): Call it if LM is zero.
6242 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6243 * target.h (struct target_ops) (to_get_thread_local_address): Add
6244 load_module_addr comment.
6245
0256a6ac
PA
62462014-05-21 Pedro Alves <palves@redhat.com>
6247
6248 * dcache.c (dcache_read_memory_partial): If reading the cache line
6249 fails, fallback to reading just the memory the caller wanted.
6250
227533ac
DE
62512014-05-20 Doug Evans <dje@google.com>
6252
6253 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6254 instead of get_current_arch.
6255
936d2992
PA
62562014-05-20 Pedro Alves <palves@redhat.com>
6257
6258 * NEWS: Mention that compare-sections now works with all targets.
6259
6260 * remote.c (PACKET_qCRC): New enum value.
6261 (remote_verify_memory): Don't send qCRC if the target has no
6262 execution. Use packet_support/packet_ok. If the target doesn't
6263 support the qCRC packet, fallback to a deep memory copy.
6264 (compare_sections_command): Say "target image" instead of "remote
6265 executable".
6266 (_initialize_remote): Add PACKET_qCRC to the list of config
6267 packets that have no associated command. Extend comment.
6268 * target.c (simple_verify_memory, default_verify_memory): New
6269 function.
6270 * target.h (struct target_ops) <to_verify_memory>: Default to
6271 default_verify_memory.
6272 (simple_verify_memory): New declaration.
6273 * target-delegates.c: Regenerate.
6274
e59fa00f
MM
62752014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6276
6277 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6278
f2205de0
HZ
62792014-05-20 Hui Zhu <hui@codesourcery.com>
6280 Yao Qi <yao@codesourcery.com>
6281
6282 PR backtrace/16558
6283 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6284 and change address of sp and pc.
6285
c4e54771
TT
62862014-05-19 Tom Tromey <tromey@redhat.com>
6287
6288 * gdbtypes.c (rank_function): Use XNEWVEC.
6289 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6290
73051182
DE
62912014-05-19 Doug Evans <dje@google.com>
6292
6293 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6294 build_type_unit_groups and moved closer to only caller. Remove
6295 arguments. All references updated. Remove outdated .gdb_index
6296 comment.
6297 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6298 build_type_psymtabs_1.
6299
8832e7e3
DE
63002014-05-19 Doug Evans <dje@google.com>
6301
6302 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6303 n_type_unit_groups, all_type_unit_groups. All uses removed.
6304 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6305 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6306 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6307 (add_type_unit_group_to_table): Delete.
6308
cd8ae15e
DE
63092014-05-19 Doug Evans <dje@google.com>
6310
6311 * eval.c (evaluate_subexp_standard): Add some comments.
6312
08f4850b
DE
63132014-05-17 Doug Evans <xdje42@gmail.com>
6314
6315 * progspace.c (remove_program_space): Delete, unused.
6316 * progspace.h (remove_program_space): Ditto.
6317
bed8455c
DE
63182014-05-17 Doug Evans <xdje42@gmail.com>
6319
6320 * inferior.c (prune_inferiors): Fix comment.
6321 (remove_inferior_command): Call prune_program_spaces.
6322
8d551b02
DE
63232014-05-16 Doug Evans <dje@google.com>
6324
6325 New command line option -D.
6326 * NEWS: Mention it.
6327 * main.c (set_gdb_data_directory): New function.
6328 (captured_main): Recognize -D. Flag error for --data-directory "".
6329 Call set_gdb_data_directory.
6330 (print_gdb_help): Print --data-directory, -D.
6331 * main.h (set_gdb_data_directory): Declare.
6332 * top.c (staged_gdb_datadir): New static global.
6333 (set_gdb_datadir): Call set_gdb_data_directory
6334 (show_gdb_datadir): New function.
6335 (init_main): Update init of data-directory parameter.
6336
18848e28
GF
63372014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6338
6339 Import the "dirfd" gnulib module.
6340 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6341 * gnulib/aclocal.m4: Update.
6342 * gnulib/config.in: Update.
6343 * gnulib/configure: Update.
6344 * gnulib/import/Makefile.am: Update.
6345 * gnulib/import/Makefile.in: Update.
6346 * gnulib/import/dirfd.c: New.
6347 * gnulib/import/m4/dirfd.m4: New.
6348 * gnulib/import/m4/gnulib-cache.m4: Update.
6349 * gnulib/import/m4/gnulib-comp.m4: Update.
6350
95c64f92
YQ
63512014-05-16 Pierre Muller <muller@sourceware.org>
6352 Yao Qi <yao@codesourcery.com>
6353
6354 * valprint.c (print_wchar): Move the code on checking whether
6355 W is a printable wide char to the default branch of switch
6356 statement below. Call wchar_printable instead of gdb_iswprint.
6357
cac395ea
TM
63582014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6359
19679eca 6360 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6361 ldr.w and ldrd instructions.
6362
83655187
DE
63632014-05-15 Doug Evans <dje@google.com>
6364
6365 * dwarf2read.c (read_structure_type): Delete outdated comments.
6366
dd756689
TT
63672014-05-14 Tom Tromey <tromey@redhat.com>
6368
6369 * macrocmd.c (print_macro_definition): Reindent.
6370
75ddda77
DE
63712014-05-13 Doug Evans <xdje42@gmail.com>
6372
6373 * python/py-cmd.c (cmdpy_completer): Add comment.
6374 (completers): Make const.
6375
b0f16a3e
SM
63762014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6377
6378 * infrun.c (resume): Remove should_resume (unused). Move up
6379 declaration of resume_ptid.
6380
033c3379
TT
63812014-05-13 Tom Tromey <tromey@redhat.com>
6382
6383 * language.h (unop_type_check): Remove.
6384 (binop_type_check): Don't declare.
6385
9b44a3a5
AA
63862014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6387
6388 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6389 call to regcache_raw_collect.
6390
303a33fa
SM
63912014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6392
6393 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6394 mi_console->quote as the quoting character.
6395
196100a0
SM
63962014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6397
6398 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6399
f989a1c8
TT
64002014-04-29 Tom Tromey <tromey@redhat.com>
6401
6402 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6403 "show debug varobj".
6404
9404b58f
KM
64052014-05-07 Kyle McMartin <kyle@redhat.com>
6406
6407 Pushed by Joel Brobecker <brobecker@adacore.com>.
6408 * aarch64-tdep.c (aarch64_software_single_step): New function.
6409 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6410 with aarch64_software_single_step.
6411
5e49ba57
JB
64122014-05-05 Joel Brobecker <brobecker@adacore.com>
6413
6414 GDB 7.7.1 released.
6415
c888a17d
KS
64162014-05-05 Keith Seitz <keiths@redhat.com>
6417
6418 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6419 variable or history value is successfully parsed.
6420
290a839c
YQ
64212014-05-05 Yao Qi <yao@codesourcery.com>
6422 Pedro Alves <palves@redhat.com>
6423
6424 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6425 address of blocks that intersects the requested range. Trim
6426 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6427 sections.
6428 * ctf.c (ctf_xfer_partial): Likewise.
6429
91256dc2
YQ
64302014-05-05 Yao Qi <yao@codesourcery.com>
6431
6432 * printcmd.c (display_command): Remove the check to
6433 target_has_execution.
6434
07284463
MK
64352014-05-03 Mark Kettenis <kettenis@gnu.org>
6436
6437 * ppcobsd-nat.c: Include "obsd-nat.h".
6438 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6439 add_target.
6440 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6441
30a1e6cc
SDJ
64422014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6443
6444 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6445 and 16-bit signed and unsigned arguments. Update comment.
6446 (stap_parse_probe_arguments): Extend code to handle such
6447 arguments. Use warning instead of complaint to notify about
6448 unrecognized bitness.
6449
f33da99a
SDJ
64502014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6451
6452 PR breakpoints/16889
6453 * stap-probe.c (stap_parse_probe_arguments): Simplify
6454 check for non-prefixed probes (i.e., probes whose
6455 arguments do not start with "N@"). Always set the
6456 argument type to a sane value.
6457
95cf3b38
DT
64582014-05-01 David Taylor <dtaylor@emc.com>
6459
6460 * remote.c (compare_sections_command): Add -r option to compare
6461 all loadable read-only sections.
6462
1cfdf534
SC
64632014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6464
6465 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6466 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6467 Update all callers.
6468 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6469 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6470 Remove unused CORE_ADDR argument. Update all callers.
6471
ca4f7f8b
PA
64722014-04-29 Pedro Alves <palves@redhat.com>
6473
6474 * remote.c (struct packet_config) <detect>: Extend comment.
6475 (add_packet_config_cmd): Don't set the config's detect or support
6476 fields here.
6477 (init_all_packet_configs): Also initialize the config's 'detect'
6478 field.
6479 (reset_all_packet_configs_support): New function.
6480 (remote_open_1): Call reset_all_packet_configs_support instead of
6481 init_all_packet_configs.
6482 (_initialize_remote): Initialize all packet configs. Assert that
6483 all packets have an associated command, except a few known
6484 outliers.
6485
11c1ba78
JB
64862014-04-28 Joel Brobecker <brobecker@adacore.com>
6487
6488 * dwarf2read.c (read_subrange_type): Handle dynamic
6489 DW_AT_lower_bound attributes.
6490
8739bc53
JB
64912014-04-28 Joel Brobecker <brobecker@adacore.com>
6492
6493 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6494 dynamic bounds before computing its upper bound.
6495 (ada_discrete_type_low_bound): Same as above with the lower bound.
6496
6f8a3220
JB
64972014-04-28 Joel Brobecker <brobecker@adacore.com>
6498
6499 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6500 range types. Adjust the array handling implementation to
6501 take advantage of this change.
6502 (resolve_dynamic_range): New function, mostly extracted from
6503 resolve_dynamic_bounds.
6504 (resolve_dynamic_array): New function, mostly extracted from
6505 resolve_dynamic_bounds.
6506 (resolve_dynamic_bounds): Delete.
6507 (resolve_dynamic_type): Reimplement. Add handling of
6508 TYPE_CODE_RANGE types.
6509
4d072ce4
JB
65102014-04-28 Joel Brobecker <brobecker@adacore.com>
6511
6512 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6513 handling of parallel ___XA types.
6514
52865325
JB
65152014-04-28 Joel Brobecker <brobecker@adacore.com>
6516
6517 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6518 unnecessary second call to static_unwrap_type.
6519
433e77fa
HZ
65202014-04-27 Hui Zhu <hui@codesourcery.com>
6521
6522 * stack.c (print_frame_info): Call do_gdb_disassembly with
6523 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6524
b51a69ee
DE
65252014-04-26 Doug Evans <xdje42@gmail.com>
6526
6527 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6528
7ae1a6a6
PA
65292014-04-25 Pedro Alves <palves@redhat.com>
6530
6531 PR server/16255
6532 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6533 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6534 and newline from built string.
6535 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6536 (linux_ptrace_attach_fail_reason): ... this.
6537 * linux-nat.c (linux_nat_attach): Adjust to use
6538 linux_ptrace_attach_fail_reason.
6539
4082afcc
PA
65402014-04-25 Pedro Alves <palves@redhat.com>
6541
6542 * remote.c (struct remote_state): Remove multi_process_aware,
6543 non_stop_aware, cond_tracepoints, cond_breakpoints,
6544 breakpoint_commands, fast_tracepoints, static_tracepoints,
6545 install_in_trace, disconnected_tracing,
6546 enable_disable_tracepoints, string_tracing, and
6547 augmented_libraries_svr4_read fields.
6548 (remote_multi_process_p): Move further below in the file.
6549 (struct packet_config): Add comments.
6550 (update_packet_config): Delete function.
6551 (show_packet_config_cmd): Use packet_config_support.
6552 (add_packet_config_cmd): Use NULL as set callback.
6553 (packet_ok): "set remote foo-packet"-style commands no longer
6554 change config->supported -- adjust.
6555 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6556 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6557 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6558 (PACKET_QNonStop, PACKET_multiprocess_feature)
6559 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6560 (PACKET_DisconnectedTracing_feature)
6561 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6562 (set_remote_protocol_packet_cmd): Delete function.
6563 (packet_config_support, packet_support): New functions.
6564 (set_remote_protocol_Z_packet_cmd): Don't call
6565 update_packet_config.
6566 (remote_query_attached, remote_pass_signals)
6567 (remote_program_signals, remote_threads_info)
6568 (remote_threads_extra_info, remote_start_remote): Use
6569 packet_support.
6570 (remote_start_remote): Use packet_config_support and
6571 packet_support.
6572 (init_all_packet_configs): Set all packets to unknown support,
6573 instead of calling update_packet_config.
6574 (remote_check_symbols): Use packet_support.
6575 (remote_supported_packet): Unconditionally set the packet config's
6576 support status.
6577 (remote_multi_process_feature, remote_non_stop_feature)
6578 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6579 (remote_breakpoint_commands_feature)
6580 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6581 (remote_install_in_trace_feature)
6582 (remote_disconnected_tracing_feature)
6583 (remote_enable_disable_tracepoint_feature)
6584 (remote_string_tracing_feature)
6585 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6586 (remote_protocol_features): Adjust to use remote_supported_packet
6587 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6588 "ConditionalTracepoints", "ConditionalBreakpoints",
6589 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6590 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6591 "EnableDisableTracepoints", and "tracenz".
6592 (remote_query_supported): Use packet_support.
6593 (remote_open_1): Adjust.
6594 (extended_remote_attach_1): Use packet_support. Switch on the
6595 result of packet_ok instead of checking whether the packet ended
6596 up disabled.
6597 (remote_vcont_resume): Use packet_support.
6598 (remote_resume, remote_stop_ns, fetch_register_using_p)
6599 (remote_prepare_to_store, store_register_using_P)
6600 (check_binary_download, remote_write_bytes): Use packet_support.
6601 (remote_vkill): Use packet_support. Switch on the result of
6602 packet_ok instead of checking whether the packet ended up
6603 disabled.
6604 (extended_remote_supports_disable_randomization): Use
6605 packet_support.
6606 (extended_remote_run): Switch on the result of packet_ok instead
6607 of checking whether the packet ended up disabled.
6608 (remote_insert_breakpoint, remote_remove_breakpoint)
6609 (remote_insert_watchpoint, remote_remove_watchpoint)
6610 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6611 packet_support.
6612 (remote_search_memory): Use packet_config_support.
6613 (remote_get_thread_local_address, remote_get_tib_address)
6614 (remote_hostio_send_command, remote_can_execute_reverse): Use
6615 packet_support.
6616 (remote_supports_cond_tracepoints)
6617 (remote_supports_cond_breakpoints)
6618 (remote_supports_fast_tracepoints)
6619 (remote_supports_static_tracepoints)
6620 (remote_supports_install_in_trace)
6621 (remote_supports_enable_disable_tracepoint)
6622 (remote_supports_string_tracing)
6623 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6624 the packet config says the feature is enabled or disabled.
6625 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6626 (remote_get_trace_status): Use packet_support.
6627 (remote_set_disconnected_tracing): Adjust to check whether the
6628 feature is enabled with packet_support.
6629 (remote_set_trace_buffer_size, remote_use_agent)
6630 (remote_can_use_agent, remote_supports_btrace): Use
6631 packet_support.
6632 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6633 Use packet_config_support.
6634 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6635 the packet config says the feature is enabled or disabled.
6636 (set_range_stepping): Use packet_support.
6637
bdb52a22
TT
66382014-04-25 Tom Tromey <tromey@redhat.com>
6639
6640 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6641 argument.
6642
e9475ead
SA
66432014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6644
6645 * NEWS: Mention support for C99 variable length arrays.
6646
82eacd52
JB
66472014-04-24 Joel Brobecker <brobecker@adacore.com>
6648
6649 * ada-lang.c (standard_exc): Expand introductory comment.
6650
01f9f808
MS
66512014-04-24 Michael Sturm <michael.sturm@mintel.com>
6652 Walfred Tedeschi <walfred.tedeschi@intel.com>
6653
6654 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6655 AVX512 registers.
6656 (amd64_linux_read_description): Add code to handle AVX512 xstate
6657 mask and return respective tdesc.
6658 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6659 and features/i386/x32-avx512-linux.c.
6660 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6661 (amd64_linux_core_read_description): Add code to handle AVX512
6662 xstate mask and return respective tdesc.
6663 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6664 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6665 calculation.
6666 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6667 (tdesc_amd64_avx512_linux): New prototype.
6668 (tdesc_x32_avx512_linux): Likewise.
6669 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6670 features/i386/x32-avx512.c.
6671 (amd64_ymm_avx512_names): New register names for pseudo
6672 registers YMM16-31.
6673 (amd64_ymmh_avx512_names): New register names for raw registers
6674 YMMH16-31.
6675 (amd64_k_names): New register names for K registers.
6676 (amd64_zmmh_names): New register names for ZMM raw registers.
6677 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6678 (amd64_xmm_avx512_names): New register names for XMM16-31
6679 registers.
6680 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6681 registers.
6682 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6683 if feature is present.
6684 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6685 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6686 (AMD64_NUM_REGS): Adjust to new number of registers.
6687 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6688 registers supplied via XSTATE by AVX512 registers.
6689 (i386_linux_read_description): Add case for AVX512.
6690 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6691 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6692 (i386_linux_core_read_description): Add case for AVX512.
6693 (i386_linux_init_abi): Install supported register note section
6694 for AVX512.
6695 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6696 AVX512.
6697 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6698 registers to be number of zmm7h + 1.
6699 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6700 * i386-tdep.c: Include features/i386/i386-avx512.c.
6701 (i386_zmm_names): Add ZMM pseudo register names array.
6702 (i386_zmmh_names): Add ZMM raw register names array.
6703 (i386_k_names): Add K raw register names array.
6704 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6705 registers. AVX512 has 16 more ZMM registers than there are YMM
6706 registers.
6707 (i386_zmmh_regnum_p): Add function to look up register number of
6708 ZMM raw registers.
6709 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6710 (i386_k_regnum_p): Likewise for K raw registers.
6711 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6712 registers added by AVX512.
6713 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6714 registers added by AVX512.
6715 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6716 added by AVX512.
6717 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6718 (i386_pseudo_register_name): Add ZMM pseudo registers.
6719 (i386_zmm_type): Construct and return vector registers type for ZMM
6720 registers.
6721 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6722 ZMM0-31 pseudo registers and K registers.
6723 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6724 and YMM16-31 registers from register cache.
6725 (i386_pseudo_register_write): Add code to write K, ZMM and
6726 YMM16-31 registers.
6727 (i386_register_reggroup_p): Add code to include/exclude AVX512
6728 registers in/from respective register groups.
6729 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6730 registers if feature is present in xcr0.
6731 (i386_gdbarch_init): Add code to initialize AVX512 feature
6732 variables in tdep structure, wire in pseudo registers and call
6733 initialize_tdesc_i386_avx512.
6734 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6735 variables.
6736 (i386_regnum): Add AVX512 registers.
6737 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6738 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6739 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6740 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6741 512 bits wide.
6742 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6743 (i386_ymm_avx512_regnum_p): Likewise.
6744 (i386_k_regnum_p): Likewise.
6745 (i386_zmm_regnum_p): Likewise.
6746 (i386_zmmh_regnum_p): Likewise.
6747 * i387-tdep.c : Update year in copyright notice.
6748 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6749 XSAVE buffer.
6750 (XSAVE_YMM_AVX512_ADDR): New macro.
6751 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6752 XSAVE buffer.
6753 (XSAVE_XMM_AVX512_ADDR): New macro.
6754 (xsave_avx512_k_offset): New table for K register offsets in
6755 XSAVE buffer.
6756 (XSAVE_AVX512_K_ADDR): New macro.
6757 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6758 in XSAVE buffer.
6759 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6760 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6761 buffer.
6762 (i387_collect_xsave): Add code to collect AVX512 registers from
6763 XSAVE buffer.
6764 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6765 of XMM16-31 registers.
6766 (I387_NUM_K_REGS): New define for number of K registers.
6767 (I387_K0_REGNUM): New define for K0 register number.
6768 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6769 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6770 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6771 registers.
6772 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6773 (I387_XMM16_REGNUM): New define for XMM16 register number.
6774 (I387_YMM0_REGNUM): New define for YMM0 register number.
6775 (I387_KEND_REGNUM): New define for last K register number.
6776 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6777 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6778 number.
6779 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6780 number.
6781 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6782 size.
6783 * features/Makefile: Add AVX512 related files.
6784 * features/i386/32bit-avx512.xml: New file.
6785 * features/i386/64bit-avx512.xml: Likewise.
6786 * features/i386/amd64-avx512-linux.c: Likewise.
6787 * features/i386/amd64-avx512-linux.xml: Likewise.
6788 * features/i386/amd64-avx512.c: Likewise.
6789 * features/i386/amd64-avx512.xml: Likewise.
6790 * features/i386/i386-avx512-linux.c: Likewise.
6791 * features/i386/i386-avx512-linux.xml: Likewise.
6792 * features/i386/i386-avx512.c: Likewise.
6793 * features/i386/i386-avx512.xml: Likewise.
6794 * features/i386/x32-avx512-linux.c: Likewise.
6795 * features/i386/x32-avx512-linux.xml: Likewise.
6796 * features/i386/x32-avx512.c: Likewise.
6797 * features/i386/x32-avx512.xml: Likewise.
6798 * regformats/i386/amd64-avx512-linux.dat: New file.
6799 * regformats/i386/amd64-avx512.dat: Likewise.
6800 * regformats/i386/i386-avx512-linux.dat: Likewise.
6801 * regformats/i386/i386-avx512.dat: Likewise.
6802 * regformats/i386/x32-avx512-linux.dat: Likewise.
6803 * regformats/i386/x32-avx512.dat: Likewise.
6804 * NEWS: Add note about new support for AVX512.
6805
6806
08351840
PA
68072014-04-23 Pedro Alves <palves@redhat.com>
6808
6809 * breakpoint.c (insert_bp_location): Tolerate errors if the
6810 breakpoint is set in a user-loaded objfile.
6811 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6812 location is marked shlib_disabled. If the breakpoint is set in a
6813 user-loaded objfile is a GDB-side memory breakpoint, validate it
6814 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6815 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6816 flag.
6817 * mem-break.c (memory_validate_breakpoint): New function.
6818 * objfiles.c (userloaded_objfile_contains_address_p): New
6819 function.
6820 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6821 * target.h (memory_validate_breakpoint): New declaration.
6822
076855f9
PA
68232014-04-23 Pedro Alves <palves@redhat.com>
6824
6825 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6826 the breakpoint is set in a shared library, only suppress
6827 errors for software breakpoints, not hardware breakpoints.
6828
483805cf
PA
68292014-04-22 Pedro Alves <palves@redhat.com>
6830
6831 * infrun.c (schedlock_applies): New function, factored out from
6832 find_thread_needs_step_over.
6833 (find_thread_needs_step_over): Use it.
6834 (switch_back_to_stepped_thread): Always clear trap_expected if the
6835 step over is finished. Return early if scheduler locking applies.
6836 Look for the stepping thread and a potential step-over thread with
6837 a single loop.
6838 (currently_stepping_or_nexting_callback): Delete.
6839
a75fef0e
NC
68402014-04-22 Nick Clifton <nickc@redhat.com>
6841
6842 * NEWS: Mention that ARM sim now supports tracing.
6843
48b6e87e
YQ
68442014-04-22 Yao Qi <yao@codesourcery.com>
6845
6846 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6847 to ...
6848 * tracefile.c (tracefile_fetch_registers): ... it. New
6849 function.
6850 * tracefile.h (tracefile_fetch_registers): Declare.
6851 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6852 tracefile_fetch_registers.
6853
17617f2d
EZ
68542014-04-19 Eli Zaretskii <eliz@gnu.org>
6855
6856 PR gdb/14018
6857 * windows-nat.c (thread_rec): Don't display a warning when
6858 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6859 fails for any reason, set th->suspended to -1, so that we don't
6860 try to resume such a thread. Also, don't return NULL in these
6861 cases, to avoid completely ruin the session due to "PC register is
6862 not available" error.
6863 (do_windows_fetch_inferior_registers): Check errors in
6864 GetThreadContext call.
6865 (windows_continue): Accept an additional argument KILLED; if not
6866 zero, ignore errors in the SetThreadContext call, since the
6867 inferior was killed and is shutting down.
6868 (windows_resume, get_windows_debug_event)
6869 (windows_create_inferior, windows_mourn_inferior)
6870 (windows_kill_inferior): All callers of windows_continue changed
6871 to adjust to its new calling sequence.
6872
5723a6fd
YQ
68732014-04-19 Yao Qi <yao@codesourcery.com>
6874
6875 * ctf.c (ctf_open): Call post_create_inferior.
6876
614d5099
YQ
68772014-04-19 Yao Qi <yao@codesourcery.com>
6878
6879 * ctf.c (handle_id): New static variable.
6880 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6881 value. Get the declaration of event "register" and get length
6882 of field "contents".
6883
dac3e710
YQ
68842014-04-19 Yao Qi <yao@codesourcery.com>
6885
6886 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6887
2bca57ba
SC
68882014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6889
6890 * valops.c (oload_method_static): Remove unnecessary argument
6891 METHOD. Update all callers.
6892
51d48146
PA
68932014-04-18 Pedro alves <palves@redhat.com>
6894 Tom Tromey <tromey@redhat.com>
6895
6896 PR backtrace/15558
6897 * frame.c (get_prev_frame_1): Rename to ...
6898 (get_prev_frame_always): ... this, and make extern. Adjust.
6899 (skip_artificial_frames): Use get_prev_frame_always.
6900 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6901 (get_frame_unwind_stop_reason): Adjust to rename.
6902 * frame.h (get_prev_frame_always): Declare.
6903 * inline-frame.c: Include frame.h.
6904 (inline_frame_this_id): Use get_prev_frame_always.
6905
1bdad2e0
TG
69062014-04-18 Tristan Gingold <gingold@adacore.com>
6907
6908 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6909 code by using bfd_mach_o_get_base_address.
6910
7ce16bd4
UW
69112014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6912
6913 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6914 (spu_ax_pseudo_register_collect): New function.
6915 (spu_ax_pseudo_register_push_stack): Likewise.
6916 (spu_dwarf_reg_to_regnum): Likewise.
6917 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6918
2ed3c037
UW
69192014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6920
6921 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6922 Replace FRAME argument with FRAME_ID.
6923 * gdbarch.c, gdbarch.h: Regenerate.
6924 * findvar.c (default_value_from_register): Add GDBARCH argument;
6925 replace FRAME by FRAME_ID. No longer call get_frame_id.
6926 (value_from_register): Update call to gdbarch_value_from_register.
6927 * value.h (default_value_from_register): Update prototype.
6928 * s390-linux-tdep.c (s390_value_from_register): Update interface
6929 and call to default_value_from_register.
6930 * spu-tdep.c (spu_value_from_register): Likewise.
6931
6932 * findvar.c (address_from_register): Remove TYPE argument.
6933 Do not call value_from_register; use gdbarch_value_from_register
6934 with null_frame_id instead.
6935 * value.h (address_from_register): Update prototype.
6936 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6937 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6938 address_from_register interface change.
6939
71e50e83
YQ
69402014-04-17 Yao Qi <yao@codesourcery.com>
6941
6942 * gdbtypes.h: Update comments to link to types and macros'
6943 definitions.
6944
7a23c549
SC
69452014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6946
6947 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6948
22869d73
KS
69492014-04-16 Keith Seitz <keiths@redhat.com>
6950
6951 PR gdb/15827
6952 * dwarf2read.c (skip_one_die): Check that all relative-offset
6953 sibling DIEs fall within range of the current reader's buffer.
6954 (read_partial_die): Likewise.
6955
c4f87ca6
KS
69562014-04-16 Keith Seitz <keiths@redhat.com>
6957
6958 PR c++/16597
6959 * cp-namespace.c (lookup_symbol_file): If the type name of
6960 `this' is NULL, return immediately.
6961
b50c8614
KS
69622014-04-14 Keith Seitz <keiths@redhat.com>
6963
6964 PR c++/16253
6965 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6966 from symbol_matches_domain in symtab.c. All local callers
6967 of symbol_matches_domain updated.
6968 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6969 search STRUCT_DOMAIN.
6970 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6971 independently. standard_lookup will do that automatically.
6972 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6973 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6974 (cp_lookup_symbol_in_namespace): Likewise.
6975 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6976 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6977 may return a STRUCT_DOMAIN match.
6978 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6979 * cp-support.c: Include language.h.
6980 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6981 VAR_DOMAIN.
6982 * psymtab.c (match_partial_symbol): Compare the requested
6983 domain with the symbol's domain directly.
6984 (lookup_partial_symbol): Likewise.
6985 * symtab.c (lookup_symbol_in_language): Explain when/why
6986 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6987 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6988 appropriate languages.
6989 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6990 and moved to ada-lang.c
6991 (lookup_block_symbol): Explain that this function only returns
6992 symbol matching the requested DOMAIN.
6993 Compare the requested domain with the symbol's domain directly.
6994 (iterate_over_symbols): Compare the requested domain with the
6995 symbol's domain directly.
6996 * symtab.h (symbol_matches_domain): Remove.
6997
3d567982
TT
69982014-04-14 Tom Tromey <tromey@redhat.com>
6999
7000 PR c++/15246:
7001 * c-exp.y (type_aggregate_p): New function.
7002 (qualified_name, classify_inner_name): Use it.
7003 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7004 and TYPE_TARGET_TYPE of an enum type.
7005 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7006 an enum type.
7007 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7008 handle TYPE_DECLARED_CLASS.
7009 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7010 types.
7011 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7012 * valops.c (enum_constant_from_type): New function.
7013 (value_aggregate_elt): Use it.
7014 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7015 TYPE_CODE_ENUM.
7016
c848d642
TT
70172014-04-14 Tom Tromey <tromey@redhat.com>
7018
7019 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7020 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7021 const.
7022 * value.h (value_aggregate_elt): Update.
7023
0626fc76
TT
70242014-04-14 Tom Tromey <tromey@redhat.com>
7025
7026 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7027
5ecaaa66
SA
70282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7029
7030 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7031 (evaluate_subexp_standard): Pass noside argument.
7032 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7033 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7034 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7035 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7036 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7037
1612e0c0
SA
70382014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7039
7040 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7041 points to a constant blob.
7042
c451ebe5
SA
70432014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7044
7045 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7046 property and store it as the high bound and flag the range accordingly.
7047 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7048 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7049 * gdbtypes.h (enum range_flags): New enum.
7050 (struct range_bounds): Add flags member.
7051
1d42e4c4
SA
70522014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7053
7054 * c-typeprint.c (c_type_print_varspec_suffix): Added
7055 check for not yet resolved high bound. If unresolved, print
7056 "variable length" string to the console instead of random
7057 length.
7058
9f1f738a
SA
70592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7060
7061 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7062 value.
7063 (ada_template_to_fixed_record_type_1): Likewise.
7064 (ada_to_fixed_type_1): Likewise.
7065 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7066 (cp_print_value): Likewise.
7067 * d-valprint.c (dynamic_array_type): Likewise.
7068 * findvar.c (address_of_variable): Likewise.
7069 * jv-valprint.c (java_value_print): Likewise.
7070 * valops.c (value_ind): Likewise.
7071 * value.c (coerce_ref): Likewise.
7072
3c8452d4
SA
70732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7074
7075 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7076 value and retrieve the dynamic type size.
7077
4ad88275
SA
70782014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7079
7080 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7081 passed to sizeof is dynamic evaluate the argument to compute the length.
7082
80180f79
SA
70832014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7084 Joel Brobecker <brobecker@adacore.com>
7085
7086 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7087 (dwarf2_evaluate_property): New function.
7088 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7089 * dwarf2read.c (attr_to_dynamic_prop): New function.
7090 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7091 attribute.
7092 * gdbtypes.c: Include dwarf2loc.h.
7093 (is_dynamic_type): New function.
7094 (resolve_dynamic_type): New function.
7095 (resolve_dynamic_bounds): New function.
7096 (get_type_length): New function.
7097 (check_typedef): Use get_type_length to compute type length.
7098 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7099 (TYPE_LOW_BOUND_KIND): New macro.
7100 (is_dynamic_type): New function prototype.
7101 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7102 to resolve dynamic properties of the type. Update comment.
7103 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7104
a1556843
RH
71052014-04-14 Richard Henderson <rth@redhat.com>
7106
7107 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7108
0be03e84
DE
71092014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7110 Doug Evans <xdje42@gmail.com>
7111
7112 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7113 dereference TYPE_CODE_REF values.
7114
6b662e19
JB
71152014-04-11 Joel Brobecker <brobecker@adacore.com>
7116
7117 Revert the following changes due to regressions:
7118
7119 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7120 (dwarf2_evaluate_property): New function.
7121 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7122 * dwarf2read.c (attr_to_dynamic_prop): New function.
7123 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7124 attribute.
7125 * gdbtypes.c: Include dwarf2loc.h.
7126 (is_dynamic_type): New function.
7127 (resolve_dynamic_type): New function.
7128 (resolve_dynamic_bounds): New function.
7129 (get_type_length): New function.
7130 (check_typedef): Use get_type_length to compute type length.
7131 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7132 (TYPE_LOW_BOUND_KIND): New macro.
7133 (is_dynamic_type): New function prototype.
7134 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7135 to resolve dynamic properties of the type. Update comment.
7136 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7137
7138 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7139 passed to sizeof is dynamic evaluate the argument to compute the length.
7140
7141 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7142 value and retrieve the dynamic type size.
7143
7144 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7145 (ada_template_to_fixed_record_type_1): Likewise.
7146 (ada_to_fixed_type_1): Likewise.
7147 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7148 (cp_print_value): Likewise.
7149 * d-valprint.c (dynamic_array_type): Likewise.
7150 * eval.c (evaluate_subexp_with_coercion): Likewise.
7151 * findvar.c (address_of_variable): Likewise.
7152 * jv-valprint.c (java_value_print): Likewise.
7153 * valops.c (value_ind): Likewise.
7154 * value.c (coerce_ref): Likewise.
7155
7156 * c-typeprint.c (c_type_print_varspec_suffix): Added
7157 check for not yet resolved high bound. If unresolved, print
7158 "variable length" string to the console instead of random
7159 length.
7160
7161 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7162 property and store it as the high bound and flag the range accordingly.
7163 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7164 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7165 * gdbtypes.h (enum range_flags): New enum.
7166 (struct range_bounds): Add flags member.
7167
7168 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7169 points to a constant blob.
7170
7171 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7172 (evaluate_subexp_standard): Pass noside argument.
7173 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7174 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7175 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7176 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7177 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7178
245a5f0b
KS
71792014-04-11 Keith Seitz <keiths@redhat.com>
7180
7181 PR c++/16675
7182 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7183 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7184 reference types.
7185
3bce8237
SA
71862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7187
7188 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7189 (evaluate_subexp_standard): Pass noside argument.
7190 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7191 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7192 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7193 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7194 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7195
92b09522
SA
71962014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7197
7198 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7199 points to a constant blob.
7200
e1969afb
SA
72012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7202
7203 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7204 property and store it as the high bound and flag the range accordingly.
7205 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7206 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7207 * gdbtypes.h (enum range_flags): New enum.
7208 (struct range_bounds): Add flags member.
7209
b86138fb
SA
72102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7211
7212 * c-typeprint.c (c_type_print_varspec_suffix): Added
7213 check for not yet resolved high bound. If unresolved, print
7214 "variable length" string to the console instead of random
7215 length.
7216
bcd629a4
SA
72172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7218
7219 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7220 (ada_template_to_fixed_record_type_1): Likewise.
7221 (ada_to_fixed_type_1): Likewise.
7222 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7223 (cp_print_value): Likewise.
7224 * d-valprint.c (dynamic_array_type): Likewise.
7225 * eval.c (evaluate_subexp_with_coercion): Likewise.
7226 * findvar.c (address_of_variable): Likewise.
7227 * jv-valprint.c (java_value_print): Likewise.
7228 * valops.c (value_ind): Likewise.
7229 * value.c (coerce_ref): Likewise.
7230
04b19544
SA
72312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7232
7233 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7234 value and retrieve the dynamic type size.
7235
26cb189f
SA
72362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7237
7238 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7239 passed to sizeof is dynamic evaluate the argument to compute the length.
7240
37c1ab67
SA
72412014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7242
7243 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7244 (dwarf2_evaluate_property): New function.
7245 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7246 * dwarf2read.c (attr_to_dynamic_prop): New function.
7247 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7248 attribute.
7249 * gdbtypes.c: Include dwarf2loc.h.
7250 (is_dynamic_type): New function.
7251 (resolve_dynamic_type): New function.
7252 (resolve_dynamic_bounds): New function.
7253 (get_type_length): New function.
7254 (check_typedef): Use get_type_length to compute type length.
7255 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7256 (TYPE_LOW_BOUND_KIND): New macro.
7257 (is_dynamic_type): New function prototype.
7258 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7259 to resolve dynamic properties of the type. Update comment.
7260 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7261
729efb13
SA
72622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7263
7264 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7265 declaring high/low bounds and change uses accordingly. Call
7266 create_range_type instead of create_static_range_type.
7267 * gdbtypes.c (create_range_type): New function.
7268 (create_range_type): Convert bounds into struct bound_prop and pass
7269 them to create_range_type.
7270 * gdbtypes.h (struct bound_prop): New struct.
7271 (create_range_type): New function prototype.
7272 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7273 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7274 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7275 part of the bound.
7276 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7277
0c9c3474
SA
72782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7279
7280 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7281 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7282 * ada-lang.c: All uses of create_range_type updated.
7283 * coffread.c: All uses of create_range_type updated.
7284 * dwarf2read.c: All uses of create_range_type updated.
7285 * f-exp.y: All uses of create_range_type updated.
7286 * m2-valprint.c: All uses of create_range_type updated.
7287 * mdebugread.c: All uses of create_range_type updated.
7288 * stabsread.c: All uses of create_range_type updated.
7289 * valops.c: All uses of create_range_type updated.
7290 * valprint.c: All uses of create_range_type updated.
7291
9d497a19
PA
72922014-04-10 Pedro Alves <palves@redhat.com>
7293
7294 * breakpoint.c (single_step_breakpoints)
7295 (single_step_gdbarch): Move up in the file.
7296 (one_breakpoint_xfer_memory): New function, factored out from ...
7297 (breakpoint_xfer_memory): ... here. Also process single-step
7298 breakpoints.
7299
15a9128a
TG
73002014-04-09 Tristan Gingold <gingold@adacore.com>
7301
7302 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7303 comments.
7304 (darwin_decode_exception_message): Free port only after use.
7305
9c97a070
PL
73062014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7307
7308 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7309 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7310 when setting the size of call_length.
7311
7af389b8
SC
73122014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7313
7314 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7315 dereference TYPE_CODE_REF values.
7316
86ad98c3
JB
73172014-04-07 Joel Brobecker <brobecker@adacore.com>
7318
7319 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7320 end of warning message.
7321
b0aeadb3
DE
73222014-04-03 Doug Evans <dje@google.com>
7323
7324 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7325 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7326
5979d6b6
AM
73272014-04-02 Alan Modra <amodra@gmail.com>
7328
7329 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7330 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7331 (struct symbol_file_add_from_memory_args): Add size field.
7332 (find_vdso_size): New function.
7333 (add_vsyscall_page): Attempt to find vdso size.
7334
0d60c288
DE
73352014-04-01 Doug Evans <dje@google.com>
7336
7337 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7338
a41f2563
TG
73392014-04-01 Tristan Gingold <gingold@adacore.com>
7340
7341 * darwin-nat.c (darwin_encode_reply): Add prototype.
7342 (darwin_decode_exception_message): Reply to unknown inferiors.
7343 (darwin_decode_message): Handle message by id. Ignore message
7344 to unknown inferior.
7345 (darwin_wait): Discard unknown messages, add debug trace.
7346
11a865c8
DE
73472014-03-31 Doug Evans <dje@google.com>
7348
7349 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7350 comp_dir_string.
7351
770e7fc7
DE
73522014-03-31 Doug Evans <dje@google.com>
7353
7354 New option "set print symbol-loading".
7355 * NEWS: Mention it.
7356 * solib.c (solib_read_symbols): Only print symbol loading messages
7357 if requested.
7358 (solib_add): If symbol loading is in "brief" mode, notify user
7359 symbols are being loaded.
7360 (reload_shared_libraries_1): Ditto.
7361 * symfile.c (print_symbol_loading_off): New static global.
7362 (print_symbol_loading_brief): New static global.
7363 (print_symbol_loading_full): New static global.
7364 (print_symbol_loading_enums): New static global.
7365 (print_symbol_loading): New static global.
7366 (print_symbol_loading_p): New function.
7367 (symbol_file_add_with_addrs): Only print symbol loading messages
7368 if requested.
7369 (_initialize_symfile): Register "print symbol-loading" set/show
7370 command.
7371 * symfile.h (print_symbol_loading_p): Declare.
7372
c32c64b7
DE
73732014-03-30 Doug Evans <xdje42@gmail.com>
7374
7375 * infrun.c (set_last_target_status): New function.
7376 (handle_inferior_event): Call it.
7377
7c0bc051
DE
73782014-03-30 Doug Evans <xdje42@gmail.com>
7379
7380 * inferior.h (enum stop_kind): Improve comment.
7381
8776cfe9
JB
73822014-03-28 Joel Brobecker <brobecker@adacore.com>
7383
7384 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7385 a reference, strip the reference layer before calling
7386 the lang_ops value_has_mutated callback.
7387
410a0ff2
SDJ
73882014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7389
7390 Remove some globals from our parser.
7391 * language.c (unk_lang_parser): Add "struct parser_state"
7392 argument.
7393 * language.h (struct language_defn) <la_parser>: Likewise.
7394 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7395 (initialize_expout): Add "struct parser_state" argument.
7396 Rewrite function to use the parser state.
7397 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7398 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7399 write_exp_elt_longcst, write_exp_elt_dblcst,
7400 write_exp_elt_decfloatcst, write_exp_elt_type,
7401 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7402 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7403 write_dollar_variable): Likewise.
7404 (parse_exp_in_context_1): Use parser state.
7405 (insert_type_address_space): Add "struct parser_state" argument.
7406 Use parser state.
7407 (increase_expout_size): New function.
7408 * parser-defs.h: Forward declare "struct language_defn" and
7409 "struct parser_state".
7410 (expout, expout_size, expout_ptr): Remove extern declarations.
7411 (parse_gdbarch, parse_language): Rewrite macro declarations to
7412 accept the parser state.
7413 (struct parser_state): New struct.
7414 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7415 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7416 write_exp_elt_decfloatcst, write_exp_elt_type,
7417 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7418 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7419 write_exp_msymbol, write_dollar_variable,
7420 mark_struct_expression, insert_type_address_space): Add "struct
7421 parser_state" argument.
7422 (increase_expout_size): New function.
7423 * utils.c (do_clear_parser_state): New function.
7424 (make_cleanup_clear_parser_state): Likewise.
7425 * utils.h (make_cleanup_clear_parser_state): New function
7426 prototype.
7427 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7428 Update calls to write_exp* in order to pass the parser state.
7429 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7430 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7431 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7432 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7433 * stap-probe.c (stap_parse_register_operand): Likewise.
7434 (stap_parse_single_operand): Likewise.
7435 (stap_parse_argument_1): Likewise.
7436 (stap_parse_argument): Use parser state.
7437 * stap-probe.h: Include "parser-defs.h".
7438 (struct stap_parse_info) <pstate>: New field.
7439 * c-exp.y (parse_type): Rewrite to use parser state.
7440 (yyparse): Redefine to c_parse_internal.
7441 (pstate): New global variable.
7442 (parse_number): Add "struct parser_state" argument.
7443 (write_destructor_name): Likewise.
7444 (type_exp): Update calls to write_exp* and similars in order to
7445 use parser state.
7446 (exp1, exp, variable, qualified_name, space_identifier,
7447 typename, typebase): Likewise.
7448 (write_destructor_name, parse_number, lex_one_token,
7449 classify_name, classify_inner_name, c_parse): Add "struct
7450 parser_state" argument. Update function to use parser state.
7451 * c-lang.h: Forward declare "struct parser_state".
7452 (c_parse): Add "struct parser_state" argument.
7453 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7454 (yyparse): Redefine macro to ada_parse_internal.
7455 (pstate): New variable.
7456 (write_int, write_object_renaming, write_var_or_type,
7457 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7458 type_int, type_long, type_long_long, type_float, type_double,
7459 type_long_double, type_char, type_boolean, type_system_address):
7460 Add "struct parser_state" argument.
7461 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7462 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7463 var_or_type, aggregate, aggregate_component_list,
7464 positional_list, others, component_group,
7465 component_associations): Update calls to write_exp* and similar
7466 functions in order to use parser state.
7467 (ada_parse, write_var_from_sym, write_int,
7468 write_exp_op_with_string, write_object_renaming,
7469 find_primitive_type, write_selectors, write_ambiguous_var,
7470 write_var_or_type, write_name_assoc, type_int, type_long,
7471 type_long_long, type_float, type_double, type_long_double,
7472 type_char, type_boolean, type_system_address): Add "struct
7473 parser_state" argument. Adjust function to use parser state.
7474 * ada-lang.c (parse): Likewise.
7475 * ada-lang.h: Forward declare "struct parser_state".
7476 (ada_parse): Add "struct parser_state" argument.
7477 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7478 calls to both functions.
7479 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7480 parser state.
7481 (yyparse): Redefine macro to f_parse_internal.
7482 (pstate): New variable.
7483 (parse_number): Add "struct parser_state" argument.
7484 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7485 and similars in order to use parser state.
7486 (parse_number): Adjust code to use parser state.
7487 (yylex): Likewise.
7488 (f_parse): New function.
7489 * f-lang.h: Forward declare "struct parser_state".
7490 (f_parse): Add "struct parser_state" argument.
7491 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7492 parser state.
7493 (yyparse): Redefine macro for java_parse_internal.
7494 (pstate): New variable.
7495 (push_expression_name, push_expression_name, insert_exp): Add
7496 "struct parser_state" argument.
7497 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7498 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7499 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7500 PostIncrementExpression, PostDecrementExpression,
7501 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7502 UnaryExpressionNotPlusMinus, CastExpression,
7503 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7504 RelationalExpression, EqualityExpression, AndExpression,
7505 ExclusiveOrExpression, InclusiveOrExpression,
7506 ConditionalAndExpression, ConditionalOrExpression,
7507 ConditionalExpression, Assignment, LeftHandSide): Update
7508 calls to write_exp* and similars in order to use parser state.
7509 (parse_number): Ajust code to use parser state.
7510 (yylex): Likewise.
7511 (java_parse): New function.
7512 (push_variable): Add "struct parser_state" argument. Adjust
7513 code to user parser state.
7514 (push_fieldnames, push_qualified_expression_name,
7515 push_expression_name, insert_exp): Likewise.
7516 * jv-lang.h: Forward declare "struct parser_state".
7517 (java_parse): Add "struct parser_state" argument.
7518 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7519 parser state.
7520 (yyparse): Redefine macro to m2_parse_internal.
7521 (pstate): New variable.
7522 (type_exp, exp, fblock, variable, type): Update calls to
7523 write_exp* and similars to use parser state.
7524 (yylex): Likewise.
7525 (m2_parse): New function.
7526 * m2-lang.h: Forward declare "struct parser_state".
7527 (m2_parse): Add "struct parser_state" argument.
7528 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7529 * objc-lang.h: Forward declare "struct parser_state".
7530 (end_msglist): Add "struct parser_state" argument.
7531 * p-exp.y (parse_type): Rewrite macro to use parser state.
7532 (yyparse): Redefine macro to pascal_parse_internal.
7533 (pstate): New variable.
7534 (parse_number): Add "struct parser_state" argument.
7535 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7536 write_exp* and similars in order to use parser state.
7537 (parse_number, yylex): Adjust code to use parser state.
7538 (pascal_parse): New function.
7539 * p-lang.h: Forward declare "struct parser_state".
7540 (pascal_parse): Add "struct parser_state" argument.
7541 * go-exp.y (parse_type): Rewrite macro to use parser state.
7542 (yyparse): Redefine macro to go_parse_internal.
7543 (pstate): New variable.
7544 (parse_number): Add "struct parser_state" argument.
7545 (type_exp, exp1, exp, variable, type): Update calls to
7546 write_exp* and similars in order to use parser state.
7547 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7548 to use parser state.
7549 (go_parse): Likewise.
7550 * go-lang.h: Forward declare "struct parser_state".
7551 (go_parse): Add "struct parser_state" argument.
7552
342587c4
DE
75532014-03-27 Doug Evans <dje@google.com>
7554
7555 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7556
33e80786
DE
75572014-03-27 Doug Evans <dje@google.com>
7558
7559 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7560 Remove argument abbrev_section. All callers updated.
7561
1dbab08b
DE
75622014-03-27 Doug Evans <dje@google.com>
7563
7564 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7565 addr_base, ranges_base.
7566
318d3177
KS
75672014-03-26 Keith Seitz <keiths@redhat.com>
7568
7569 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7570 types, not VAR_DOMAIN.
7571
1e54db15
SL
75722014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7573
7574 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7575 "ra" registers.
7576 * features/nios2-linux.c: Regenerated.
7577 * features/nios2.c: Regenerated.
7578
d3839ede
PA
75792014-03-25 Pedro Alves <palves@redhat.com>
7580
7581 * cli/cli-script.c (script_from_file): Force the interpreter to
7582 sync mode.
7583
7588d2ec
PL
75842014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7585
7586 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7587 small stack allocation.
7588
a6290449
TG
75892014-03-24 Tristan Gingold <gingold@adacore.com>
7590
7591 * darwin-nat.c (exc_server): Remove unused prototype.
7592 (darwin_dump_message): Correctly display data on x86_64.
7593 (darwin_encode_reply): Fix style.
7594 Add comments and fix indentation.
7595
31ae9d24 75962014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7597
7598 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7599
6339bfc4
DE
76002014-03-22 Doug Evans <xdje42@gmail.com>
7601
7602 * infcmd.c: Whitespace fixes.
7603 (interrupt_command): Merge two function comments into one.
7604
0a07590b
DE
76052014-03-22 Doug Evans <xdje42@gmail.com>
7606
7607 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7608 All uses updated.
7609
b55fbac4
YQ
76102014-03-22 Yao Qi <yao@codesourcery.com>
7611
7612 * remote.c (target_read_live_memory): Remove.
7613 (memory_xfer_live_readonly_partial): Rename it to
7614 remote_xfer_live_readonly_partial. Remove argument 'object'.
7615 All callers updated. Call remote_read_bytes_1
7616 instead of target_read_live_memory.
7617 * tracepoint.c (set_traceframe_number): Remove.
7618 (make_cleanup_restore_traceframe_number): Likewise .
7619 * tracepoint.h (set_traceframe_number): Remove declaration.
7620 (make_cleanup_restore_traceframe_number): Likewise.
7621
9217e74e
YQ
76222014-03-22 Yao Qi <yao@codesourcery.com>
7623
7624 * remote.c (remote_read_bytes): Move code on reading from the
7625 remote stub to ...
7626 (remote_read_bytes_1): ... here. New function.
7627
8acf9577
YQ
76282014-03-22 Yao Qi <yao@codesourcery.com>
7629
7630 * ctf.c (ctf_xfer_partial): Check the return value of
7631 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7632 return TARGET_XFER_UNAVAILABLE.
7633 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7634 * target.c (target_read_live_memory): Move it to remote.c.
7635 (memory_xfer_live_readonly_partial): Likewise.
7636 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7637 * remote.c (target_read_live_memory): Moved from target.c.
7638 (memory_xfer_live_readonly_partial): Likewise.
7639 (remote_read_bytes): Factored out from
7640 memory_xfer_partial_1.
7641
feef67ab
DE
76422014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7643
7644 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7645 NULL pointer.
7646
b65dc60b
PA
76472014-03-21 Pedro Alves <palves@redhat.com>
7648
7649 * infrun.c (normal_stop): Extend comment.
7650
b4ab256d
HZ
76512014-03-21 Hui Zhu <hui@codesourcery.com>
7652 Pedro Alves <palves@redhat.com>
7653
7654 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7655 static buffer.
7656 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7657 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7658 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7659
deba7593
MR
76602014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7661
7662 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7663 `z' formatted output modifier.
7664
1bff71c3
SDJ
76652014-03-20 Tom Tromey <tromey@redhat.com>
7666 Sergio Durigan Junior <sergiodj@redhat.com>
7667
7668 * probe.c (parse_probes): Turn assert into an ordinary error.
7669 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7670 exceptions when parsing probes. Rearrange the code for clarity.
7671
90e28950
TT
76722014-03-20 Tom Tromey <tromey@redhat.com>
7673
7674 PR gdb/14135
7675 * top.c (execute_command): Only dispatch events if the command
7676 started the target.
7677
beb460e8
PA
76782014-03-20 Tom Tromey <tromey@redhat.com>
7679
7680 PR cli/15718
7681 * infcall.c: Include event-top.h.
7682 (run_inferior_call): Call async_disable_stdin if needed.
7683
99619bea
PA
76842014-03-20 Pedro Alves <palves@redhat.com>
7685
7686 * infrun.c (prepare_to_proceed): Delete.
7687 (thread_still_needs_step_over): New function.
7688 (find_thread_needs_step_over): New function.
7689 (proceed): If the current thread needs a step-over, set its
7690 steping_over_breakpoint flag. Adjust to use
7691 find_thread_needs_step_over instead of prepare_to_proceed.
7692 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7693 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7694 breakpoint.
7695 (switch_back_to_stepped_thread): Step over breakpoints of all
7696 threads not the stepping thread, before switching back to the
7697 stepping thread.
7698
2adfaa28
PA
76992014-03-20 Pedro Alves <palves@redhat.com>
7700
7701 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7702 extern.
7703 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7704 * infrun.c (saved_singlestep_ptid)
7705 (stepping_past_singlestep_breakpoint): Delete.
7706 (resume): Remove stepping_past_singlestep_breakpoint handling.
7707 (proceed): Store the prev_pc of the stepping thread too.
7708 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7709 singlestep_pc.
7710 (enum infwait_states): Delete infwait_thread_hop_state.
7711 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7712 field.
7713 (handle_inferior_event): Adjust.
7714 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7715 handling and the thread-hop code. Before removing single-step
7716 breakpoints, check whether the thread hit a single-step breakpoint
7717 of another thread. If it did, the trap is not a random signal.
7718 (switch_back_to_stepped_thread): If the event thread hit a
7719 single-step breakpoint, unblock it before switching to the
7720 stepping thread. Handle the case of the stepped thread having
7721 advanced already.
7722 (keep_going): Handle the case of the current thread moving past a
7723 single-step breakpoint.
7724
31e77af2
PA
77252014-03-20 Pedro Alves <palves@redhat.com>
7726
7727 PR breakpoints/7143
7728 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7729 are being stepped over.
7730 (breakpoint_address_match): Make extern.
7731 * breakpoint.h (breakpoint_address_match): New declaration.
7732 * inferior.h (stepping_past_instruction_at): New declaration.
7733 * infrun.c (struct step_over_info): New type.
7734 (step_over_info): New global.
7735 (set_step_over_info, clear_step_over_info)
7736 (stepping_past_instruction_at): New functions.
7737 (handle_inferior_event): Clear the step-over info when
7738 trap_expected is cleared.
7739 (resume): Remove now stale comment.
7740 (clear_proceed_status): Clear step-over info.
7741 (proceed): Adjust step-over handling to set or clear the step-over
7742 info instead of removing all breakpoints.
7743 (handle_signal_stop): When setting up a thread-hop, don't remove
7744 breakpoints here.
7745 (stop_stepping): Clear step-over info.
7746 (keep_going): Adjust step-over handling to set or clear step-over
7747 info and then always inserting breakpoints, instead of removing
7748 all breakpoints when stepping over one.
7749
b9f437de
PA
77502014-03-20 Pedro Alves <palves@redhat.com>
7751
7752 * infrun.c (previous_inferior_ptid): Adjust comment.
7753 (deferred_step_ptid): Delete.
7754 (infrun_thread_ptid_changed, prepare_to_proceed)
7755 (init_wait_for_inferior): Adjust.
7756 (handle_signal_stop): Delete deferred_step_ptid handling.
7757
06c868a8
JK
77582014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7759
7760 PR gdb/15358
7761 * defs.h (sync_quit_force_run): New declaration.
7762 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7763 * event-top.c (async_sigterm_handler): New declaration.
7764 (async_sigterm_token): New variable.
7765 (async_init_signals): Create also async_sigterm_token.
7766 (async_sigterm_handler): New function.
7767 (sync_quit_force_run): New variable.
7768 (handle_sigterm): Replace quit_force call by other calls.
7769 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7770
dea80df0
MR
77712014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7772
7773 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7774 offset into SPE pseudo registers.
7775
0c7e1a46
PA
77762014-03-18 Pedro Alves <palves@redhat.com>
7777
7778 PR gdb/13860
7779 * inferior.h (print_stop_event): Declare.
7780 * infrun.c (print_stop_event): New, factored out from ...
7781 (normal_stop): ... this.
7782 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7783 of bpstat_print/print_stack_frame.
7784
9c1fcd01
TT
77852014-03-17 Tom Tromey <tromey@redhat.com>
7786
7787 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7788
11aa919a
PMR
77892014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7790
7791 * ada-lang.c (decode_constrained_packed_array): Perform a
7792 minimal coercion for reference with coerce_ref instead of
7793 ada_coerce_ref.
7794
d4ccb5e0
TG
77952014-03-17 Tristan Gingold <gingold@adacore.com>
7796
7797 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7798 (darwin_solib_create_inferior_hook): Emit a warning if version
7799 is unhandled.
7800
49840f2a
UW
78012014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7802
7803 * python/py-value.c (get_field_flag): Cast flag_name argument to
7804 PyObject_GetAttrString to support Python 2.4.
7805
ed4123e5
JK
78062014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7807
7808 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7809 (Global Maintainers): Remove Jan Kratochvil.
7810
d6b64346
PA
78112014-03-14 Pedro Alves <palves@redhat.com>
7812
7813 * inferior.h (terminal_ours_for_output): Rename to ...
7814 (child_terminal_ours_for_output): ... this.
7815 (terminal_save_ours): Rename to ...
7816 (child_terminal_save_ours): ... this.
7817 (terminal_ours): Rename to ...
7818 (child_terminal_ours): ... this.
7819 (terminal_inferior): Rename to ...
7820 (child_terminal_inferior): ... this.
7821 (terminal_init_inferior): Rename to ...
7822 (child_terminal_init_inferior): ... this.
7823 (terminal_init_inferior_with_pgrp): Rename to ...
7824 (child_terminal_init_inferior_with_pgrp): ... this.
7825 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7826 (child_terminal_init_with_pgrp): ... this.
7827 (terminal_save_ours): Rename to ...
7828 (child_terminal_save_ours): ... this.
7829 (terminal_init_inferior): Rename to ...
7830 (child_terminal_init): ... this. Adjust.
7831 (terminal_inferior): Rename to ...
7832 (child_terminal_inferior): ... this.
7833 (terminal_ours_for_output): Rename to ...
7834 (child_terminal_ours_for_output): ... this. Adjust.
7835 (terminal_ours): Rename to ...
7836 (child_terminal_ours): ... this.
7837 (terminal_ours_1): Rename to ...
7838 (child_terminal_ours_1): ... this. Adjust.
7839 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7840 * windows-nat.c (do_initial_windows_stuff): Adjust.
7841 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7842 (gnu_terminal_init): ... this. Adjust.
7843 (gnu_target): Adjust.
7844 * inf-child.c (inf_child_target): Adjust.
7845
5a1e8c7a
DE
78462014-03-13 Doug Evans <xdje42@gmail.com>
7847
7848 PR guile/16612
7849 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7850 new eq?-hashtab.
7851
350e1a76
DE
78522014-03-13 Doug Evans <xdje42@gmail.com>
7853
7854 * value.c (record_latest_value): Call release_value_or_incref
7855 instead of release_value.
7856
a69900ae
PA
78572014-03-13 Pedro Alves <palves@redhat.com>
7858
7859 * procfs.c (procfs_target): Don't override to_shortname,
7860 to_longname or to_doc.
7861
5db9f0bd
PA
78622014-03-13 Pedro Alves <palves@redhat.com>
7863
7864 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7865 Unix in user visible strings.
7866
5e3a2c38
SS
78672014-03-12 Stan Shebs <stan@codesourcery.com>
7868
7869 * gdbtypes.h: Annotate comments for Doxygen, add a page
7870 block comment with some general info.
7871
8bc2fe48
PA
78722014-03-12 Pedro Alves <palves@redhat.com>
7873
7874 * infcmd.c (prepare_execution_command): New function, factored out
7875 from several execution commands.
7876 (run_command_1, continue_command, step_1, jump_command)
7877 (signal_command, until_command, advance_command, finish_command)
7878 (attach_command): Use prepare_execution_command.
7879
638c5f49
OJ
78802014-03-12 Omair Javaid <omair.javaid@linaro.org>
7881
7882 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7883 (MAX_BPTS): Define.
7884 (MAX_WPTS): Define.
7885 (struct arm_linux_thread_points): Removed.
7886 (struct arm_linux_process_info): New.
7887 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7888 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7889 (arm_linux_find_breakpoints_by_tid): Removed.
7890 (struct arch_lwp_info): New.
7891 (arm_linux_find_process_pid): New functions.
7892 (arm_linux_add_process): New functions.
7893 (arm_linux_process_info_get): New functions.
7894 (arm_linux_forget_process): New function.
7895 (arm_linux_get_debug_reg_state): New function.
7896 (struct update_registers_data): New.
7897 (update_registers_callback): New function.
7898 (arm_linux_insert_hw_breakpoint1): Updated.
7899 (arm_linux_remove_hw_breakpoint1): Updated.
7900 (arm_linux_insert_hw_breakpoint): Updated.
7901 (arm_linux_remove_hw_breakpoint): Updated.
7902 (arm_linux_insert_watchpoint): Updated.
7903 (arm_linux_remove_watchpoint): Updated.
7904 (arm_linux_new_thread): Updated.
7905 (arm_linux_prepare_to_resume): New function.
7906 (arm_linux_new_fork): New function.
7907 (_initialize_arm_linux_nat): Updated.
7908
6d03af93
PA
79092014-03-12 Pedro Alves <palves@redhat.com>
7910
7911 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7912
b3ccfe11
TT
79132014-03-12 Tom Tromey <tromey@redhat.com>
7914
7915 * inf-child.c (return_zero): New function.
7916 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7917 * aix-thread.c (aix_thread_inferior_created): New function.
7918 (aix_thread_attach): Remove.
7919 (init_aix_thread_ops): Don't set to_attach.
7920 (_initialize_aix_thread): Register inferior_created observer.
7921 * corelow.c (init_core_ops): Don't set to_attach or
7922 to_create_inferior.
7923 * exec.c (init_exec_ops): Don't set to_attach or
7924 to_create_inferior.
7925 * infcmd.c (run_command_1): Use find_run_target. Make direct
7926 target calls.
7927 (attach_command): Use find_attach_target. Make direct target
7928 calls.
7929 * record-btrace.c (init_record_btrace_ops): Don't set
7930 to_create_inferior.
7931 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7932 Remove.
7933 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7934 set to_create_inferior.
7935 * target.c (complete_target_initialization): Add assertion.
7936 (target_create_inferior): Remove.
7937 (find_default_attach, find_default_create_inferior): Remove.
7938 (find_attach_target, find_run_target): New functions.
7939 (find_default_is_async_p, find_default_can_async_p)
7940 (target_supports_non_stop, target_attach): Remove.
7941 (init_dummy_target): Don't set to_create_inferior or
7942 to_supports_non_stop.
7943 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7944 TARGET_DEFAULT_FUNC.
7945 <to_create_inferior>: Add comment.
7946 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7947 TARGET_DEFAULT_RETURN.
7948 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7949 (find_attach_target, find_run_target): Declare.
7950 (target_create_inferior): Remove.
7951 (target_has_execution_1): Update comment.
7952 (target_supports_non_stop): Remove.
7953 * target-delegates.c: Rebuild.
7954
91f83b02
PA
79552014-03-12 Pedro Alves <palves@redhat.com>
7956
7957 * inf-child.h: Update comment to not mention Unix.
7958
f1aea813
PA
79592014-03-12 Pedro Alves <palves@redhat.com>
7960
7961 * inf-child.c: Update top comment to not mention Unix. Add
7962 generic comment describing how this target is meant to be used.
7963 (inf_child_post_attach, inf_child_post_startup_inferior)
7964 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7965 Unix in comment.
7966
ee8e9165
PA
79672014-03-12 Pedro Alves <palves@redhat.com>
7968
7969 * nto-procfs.c: Include inf-child.h.
7970 (procfs_ops): Delete global.
7971 (procfs_can_run): Delete method.
7972 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7973 target pointer instead of referencing procfs_ops.
7974 (procfs_prepare_to_store): Delete.
7975 (init_procfs_ops): Delete function.
7976 (procfs_target): New function, based on init_procfs_ops, but
7977 inherit inf_child_target.
7978 (_initialize_procfs): Use procfs_target.
7979
51a9c8c5
PA
79802014-03-12 Pedro Alves <palves@redhat.com>
7981
7982 * windows-nat.c: Include inf-child.h.
7983 (windows_ops): Delete global.
7984 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7985 methods.
7986 (init_windows_ops): Delete function.
7987 (windows_target): New function, based on init_windows_ops, but
7988 inherit inf_child_target.
7989 (_initialize_windows_nat): Use windows_target. Install x86
7990 specific target methods here.
7991
c1966e26
DE
79922014-03-10 Doug Evans <xdje42@gmail.com>
7993
7994 * guile/guile.c (call_initialize_gdb_module): New function.
7995 (initialize_guile): Replace call to scm_init_guile with call to
7996 scm_with_guile.
7997
023db19c
JB
79982014-03-10 Joel Brobecker <brobecker@adacore.com>
7999
8000 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8001 in call to TYPE_CODE macro.
8002
5ec18f2b
JG
80032014-03-10 Jerome Guitton <guitton@adacore.com>
8004
8668be63
JB
8005 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8006 Resolve tagged types to full view.
5ec18f2b 8007
7d03f2eb
HZ
80082014-03-10 Hui Zhu <hui@codesourcery.com>
8009
8010 * target.h (target_insert_breakpoint): Remove "hardware" from its
8011 comments.
8012
c5164cbc
DE
80132014-03-07 Doug Evans <dje@google.com>
8014
8015 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8016
c4a3fee2
DE
80172014-03-07 Doug Evans <dje@google.com>
8018
8019 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8020 Remove unused local comp_dir_attr. Assert exactly one of
8021 stub_comp_unit_die, stub_comp_dir is non-NULL.
8022
3156469c
JB
80232014-03-07 Joel Brobecker <brobecker@adacore.com>
8024
8025 * target.h (complete_target_initialization, add_target):
8026 Add comment.
8027
c1a7b7c6
PA
80282014-03-07 Pedro Alves <palves@redhat.com>
8029
8030 * go32-nat.c: Include inf-child.h.
8031 (go32_ops): Delete global.
8032 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8033 Delete methods.
8034 (go32_create_inferior): Push the passed in target pointer instead
8035 of referencing go32_ops.
8036 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8037 (go32_target): New function, based on init_go32_ops, but inherit
8038 inf_child_target.
8039 (_initialize_go32_nat): Use go32_target. Move parts of
8040 init_go32_ops here.
8041
d3c1a85f
JB
80422014-03-06 Joel Brobecker <brobecker@adacore.com>
8043
8044 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8045 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8046 SYMBOL_VALUE_ADDRESS.
8047 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8048
5fa1d40e
YQ
80492014-03-06 Yao Qi <yao@codesourcery.com>
8050
8051 * breakpoint.c (get_tracepoint_by_number): Remove argument
8052 optional_p. All callers updated. Adjust comments. Update
8053 output message.
8054 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8055
0c13193f
YQ
80562014-03-06 Yao Qi <yao@codesourcery.com>
8057
8058 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8059 early if get_number returns zero. Use 'p' instead of 'args'.
8060
2217da06
YQ
80612014-03-06 Yao Qi <yao@codesourcery.com>
8062
8063 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8064 message.
8065
cc3da688
YQ
80662014-03-06 Yao Qi <yao@codesourcery.com>
8067
8068 PR breakpoints/16508
8069 * tracepoint.c (check_trace_running): New function.
8070 (trace_find_command): Move code to check_trace_running and
8071 call check_trace_running.
8072 (trace_find_pc_command): Likewise.
8073 (trace_find_tracepoint_command): Likewise.
8074 (trace_find_line_command): Likewise.
8075 (trace_find_range_command): Likewise.
8076 * tracepoint.h (check_trace_running): Likewise.
8077 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8078
6a5f844b
YQ
80792014-03-06 Yao Qi <yao@codesourcery.com>
8080
8081 * target.h (struct target_ops) <to_traceframe_info>: Use
8082 TARGET_DEFAULT_NORETURN (tcomplain ()).
8083 * target-delegates.c: Regenerated.
8084
0f26cec1
PA
80852014-03-05 Pedro Alves <palves@redhat.com>
8086
8087 PR gdb/16575
8088 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8089 void. Update comment.
8090 (dcache_xfer_memory): Delete.
8091 (dcache_read_memory_partial): New, based on the read bits of
8092 dcache_xfer_memory.
8093 (dcache_update): Add status parameter. Use ULONGEST for len, and
8094 adjust. Discard cache lines if the reason for the update was
8095 error.
8096 * dcache.h (dcache_xfer_memory): Delete declaration.
8097 (dcache_read_memory_partial): New declaration.
8098 (dcache_update): Update prototype.
8099 * target.c (raw_memory_xfer_partial): Update the dcache here.
8100 (memory_xfer_partial_1): Don't handle dcache writes here.
8101
b2b255bd
MF
81022014-03-05 Mike Frysinger <vapier@gentoo.org>
8103
8104 * remote-sim.c (gdbsim_load): Add const to prog.
8105
5d9cf8a4
TT
81062014-03-03 Tom Tromey <tromey@redhat.com>
8107
8108 * elfread.c (probe_key): Change to bfd_data.
8109 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8110 now per-BFD, not per-objfile.
8111 * stap-probe.c (stap_probe_destroy): Update comment.
8112 (handle_stap_probe): Allocate on the per-BFD obstack.
8113
729662a5
TT
81142014-03-03 Tom Tromey <tromey@redhat.com>
8115
8116 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8117 * breakpoint.c (create_longjmp_master_breakpoint): Use
8118 get_probe_address.
8119 (add_location_to_breakpoint, bkpt_probe_insert_location)
8120 (bkpt_probe_remove_location): Update.
8121 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8122 * elfread.c (elf_symfile_relocate_probe): Remove.
8123 (elf_probe_fns): Update.
8124 (insert_exception_resume_breakpoint): Change type of "probe"
8125 parameter to bound_probe.
8126 (check_exception_resume): Update.
8127 * objfiles.c (objfile_relocate1): Don't relocate probes.
8128 * probe.c (bound_probe_s): New typedef.
8129 (parse_probes): Use get_probe_address. Set sal's objfile.
8130 (find_probe_by_pc): Return a bound_probe.
8131 (collect_probes): Return a VEC(bound_probe_s).
8132 (compare_probes): Update.
8133 (gen_ui_out_table_header_info): Change type of "probes"
8134 parameter. Update.
8135 (info_probes_for_ops): Update.
8136 (get_probe_address): New function.
8137 (probe_safe_evaluate_at_pc): Update.
8138 * probe.h (struct probe_ops) <get_probe_address>: New field.
8139 <set_semaphore, clear_semaphore>: Add objfile parameter.
8140 (struct probe) <objfile>: Remove field.
8141 <arch>: New field.
8142 <address>: Update comment.
8143 (struct bound_probe): New.
8144 (find_probe_by_pc): Return a bound_probe.
8145 (get_probe_address): Declare.
8146 * solib-svr4.c (struct probe_and_action) <address>: New field.
8147 (hash_probe_and_action, equal_probe_and_action): Update.
8148 (register_solib_event_probe): Add address parameter.
8149 (solib_event_probe_at): Update.
8150 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8151 get_probe_address.
8152 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8153 (stap_get_probe_address): New function.
8154 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8155 (compile_probe_arg): Update.
8156 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8157 address.
8158 (handle_stap_probe): Don't relocate the probe.
8159 (stap_relocate): Remove.
8160 (stap_gen_info_probes_table_values): Update.
8161 (stap_probe_ops): Remove stap_relocate.
8162 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8163 (debug_sym_probe_fns): Update.
8164 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8165 * symtab.c (init_sal): Use memset.
8166 * symtab.h (struct symtab_and_line) <objfile>: New field.
8167 * tracepoint.c (start_tracing, stop_tracing): Update.
8168
ff887920
TT
81692014-03-03 Tom Tromey <tromey@redhat.com>
8170
8171 * probe.h (parse_probes, find_probe_by_pc)
8172 (find_probes_in_objfile): Fix comments.
8173
f0407826
DE
81742014-03-02 Doug Evans <xdje42@gmail.com>
8175
8176 * infrun.c (handle_signal_stop): Replace test for
8177 TARGET_WAITKIND_STOPPED with an assert.
8178
35e6a711
DE
81792014-03-02 Doug Evans <xdje42@gmail.com>
8180
8181 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8182
667f9d0b
DE
81832014-03-02 Doug Evans <xdje42@gmail.com>
8184
8185 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8186
dc92ace0
MK
81872014-03-01 Mark Kettenis <kettenis@gnu.org>
8188
8189 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8190
a900370f
MK
81912014-03-01 Mark Kettenis <kettenis@gnu.org>
8192
8193 * i386obsd-nat.c: Include "obsd-nat.h".
8194 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8195 add_target.
8196 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8197
b72a7981
MK
81982014-03-01 Mark Kettenis <kettenis@gnu.org>
8199
8200 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8201
96c70aba
MK
82022014-03-01 Mark Kettenis <kettenis@gnu.org>
8203
8204 * mips64obsd-nat.c: Include "obsd-nath".
8205 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8206 add_target
8207 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8208
874a80af
MK
82092014-03-01 Mark Kettenis <kettenis@gnu.org>
8210
8fd408f1
MK
8211 * amd64obsd-nat.c: Include "obsd-nat,h.
8212 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8213 add_target.
874a80af
MK
8214 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8215
9cf95373
SC
82162014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8217
8218 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8219 (find_overload_match): Update call to find_oload_champ.
8220 (find_oload_champ_namespace_loop): Likewise
8221
863e4da4
MK
82222014-02-28 Mark Kettenis <kettenis@gnu.org>
8223
025cac40
MK
8224 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8225
1ed586ce
MK
8226 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8227 * config/sparc/obsd64.mh: New file.
8228 * sparc64obsd-nat.c: New file.
8229
863e4da4
MK
8230 * obsd-nat.h: New file.
8231 * obsd-nat.c: New file.
8232 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8233 (ALLDEPFILES): Add obsd-nat.c.
8234
89de4da4
TT
82352014-02-28 Tom Tromey <tromey@redhat.com>
8236
8237 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8238 * cli-out.h (cli_ui_out_impl): Now const.
8239 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8240 * ui-out.c (struct ui_out) <impl>: Now const.
8241 (default_ui_out_impl): Now const.
8242 (ui_out_new): Make 'impl' parameter const.
8243 * ui-out.h (ui_out_new): Update.
8244
c725e7b6
MK
82452014-02-27 Mark Kettenis <kettenis@gnu.org>
8246
8247 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8248
670b46b3
MK
82492014-02-27 Mark Kettenis <kettenis@gnu.org>
8250
8251 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8252
c91550fc
JK
82532014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8254
8255 Additional PR 8882 fix.
8256 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8257
2fa0369e
PA
82582014-02-27 Pedro Alves <palves@redhat.com>
8259
8260 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8261 isn't set.
8262
d632a097
PA
82632014-02-27 Pedro Alves <palves@redhat.com>
8264
8265 PR 12702
8266 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8267 * nat/linux-waitpid.c: Include string.h.
8268 (status_to_str): Moved here and made extern.
8269 * nat/linux-waitpid.h (status_to_str): New declaration.
8270
2ebd5a35
HZ
82712014-02-27 Hui Zhu <hui@codesourcery.com>
8272
8273 PR 12702
8274 * infrun.c (ptid_match): Move ...
8275 * common/ptid.c (ptid_match): ... here.
8276 * inferior.h (ptid_match): Move ...
8277 * common/ptid.h (ptid_match): ... here.
8278
3cdd631f
MK
82792014-02-27 Mark Kettenis <kettenis@gnu.org>
8280
8281 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8282 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8283 gdb_target_obs.
8284
bee30a64
MK
82852014-02-27 Mark Kettenis <kettenis@gnu.org>
8286
8287 * obsd-tdep.c (obsd_auxv_parse): New function.
8288 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8289
8290 * gdbarch.sh (auxv_parse): New.
8291 * gdbarch.h: Regenerated.
8292 * gdbarch.c: Regenerated.
8293 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8294
7a5a839f
LC
82952014-02-26 Ludovic Courtès <ludo@gnu.org>
8296
8297 * guile/scm-value.c (gdbscm_history_append_x): New function.
8298 (value_functions): Add it.
8299
31aa7e4e
JB
83002014-02-27 Joel Brobecker <brobecker@adacore.com>
8301
8302 * dwarf2read.c (attr_value_as_address): New function.
8303 (dwarf2_find_base_address, read_call_site_scope): Use
8304 attr_value_as_address in place of DW_ADDR.
8305 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8306 the low and high addresses. Slight rework of the handling
8307 of the high pc being a constant form, and limit it to
8308 DWARF verson 4 or higher.
8309 (dwarf2_record_block_ranges): Likewise.
8310 (read_partial_die): Likewise.
8311 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8312
9b333ba3
TT
83132014-02-26 Tom Tromey <tromey@redhat.com>
8314
8315 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8316
5f6cac40
TT
83172014-02-26 Tom Tromey <tromey@redhat.com>
8318
8319 * elfread.c (elf_read_minimal_symbols): Return early if
8320 minimal symbols have already been read. Add "ei" parameter.
8321 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8322 * minsyms.c (prim_record_minimal_symbol_full): Update.
8323 * objfiles.h (struct objstats) <n_minsyms>: Move...
8324 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8325 * symmisc.c (print_objfile_statistics): Update.
8326
2750ef27
TT
83272014-02-26 Tom Tromey <tromey@redhat.com>
8328
8329 * elfread.c (elf_read_minimal_symbols): New function, from
8330 elf_symfile_read.
8331 (elf_symfile_read): Call it.
8332
34643a32
TT
83332014-02-26 Tom Tromey <tromey@redhat.com>
8334
8335 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8336 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8337 (lookup_minimal_symbol_solib_trampoline)
8338 (lookup_minimal_symbol_by_pc_section_1)
8339 (lookup_minimal_symbol_and_objfile): Update.
8340 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8341 Don't allocate a minimal symbol if minsyms have already been read.
8342 (build_minimal_symbol_hash_tables): Update.
8343 (install_minimal_symbols): Do nothing if minsyms already read.
8344 Use the per-BFD obstack.
8345 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8346 * objfiles.c (allocate_objfile): Call
8347 terminate_minimal_symbol_table later.
8348 (have_minimal_symbols): Update.
8349 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8350 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8351 Move from struct objfile.
8352 <minsyms_read>: New field.
8353 (struct objfile) <msymbols, minimal_symbol_count,
8354 msymbol_hash, msymbol_demangled_hash>: Move.
8355 (ALL_OBJFILE_MSYMBOLS): Update.
8356 * symfile.c (read_symbols): Set minsyms_read.
8357 (reread_symbols): Update.
8358 * symmisc.c (dump_objfile, dump_msymbols): Update.
8359
2273f0ac
TT
83602014-02-26 Tom Tromey <tromey@redhat.com>
8361
8362 * minsyms.c (msymbols_sort): Remove.
8363 * minsyms.h (msymbols_sort): Remove.
8364 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8365 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8366 * elfread.c (elf_symtab_read): Don't add section offsets.
8367 * xcoffread.c (record_minimal_symbol): Don't add section offset
8368 to minimal symbol address.
8369 * somread.c (text_offset, data_offset): Remove.
8370 (som_symtab_read): Don't add section offsets to minimal symbol
8371 addresses.
8372 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8373 Don't add section offsets to minimal symbols.
8374 * coffread.c (coff_symtab_read): Don't add section offsets
8375 to minimal symbol addresses.
8376 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8377 to minimal symbol addresses.
8378 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8379 section offset to minimal symbol addresses.
8380 * mdebugread.c (parse_partial_symbols): Don't add section
8381 offset to minimal symbol addresses.
8382 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8383 offset to minimal symbol addresses.
8384
77e371c0
TT
83852014-02-26 Tom Tromey <tromey@redhat.com>
8386
8387 * ada-lang.c (ada_main_name): Update.
8388 (ada_add_standard_exceptions): Update.
8389 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8390 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8391 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8392 * auxv.c (ld_so_xfer_auxv): Update.
8393 * avr-tdep.c (avr_scan_prologue): Update.
8394 * ax-gdb.c (gen_var_ref): Update.
8395 * blockframe.c (get_pc_function_start)
8396 (find_pc_partial_function_gnu_ifunc): Update.
8397 * breakpoint.c (create_overlay_event_breakpoint)
8398 (create_longjmp_master_breakpoint)
8399 (create_std_terminate_master_breakpoint)
8400 (create_exception_master_breakpoint): Update.
8401 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8402 * c-valprint.c (c_val_print): Update.
8403 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8404 * common/agent.c (agent_look_up_symbols): Update.
8405 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8406 * dwarf2loc.c (call_site_to_target_addr): Update.
8407 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8408 * elfread.c (elf_gnu_ifunc_record_cache)
8409 (elf_gnu_ifunc_resolve_by_got): Update.
8410 * findvar.c (default_read_var_value): Update.
8411 * frame.c (inside_main_func): Update.
8412 * frv-tdep.c (frv_frame_this_id): Update.
8413 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8414 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8415 Update.
8416 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8417 (hppa_hpux_find_dummy_bpaddr): Update.
8418 * hppa-tdep.c (hppa_symbol_address): Update.
8419 * infcmd.c (until_next_command): Update.
8420 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8421 Update.
8422 * linespec.c (minsym_found, add_minsym): Update.
8423 * linux-nat.c (get_signo): Update.
8424 * linux-thread-db.c (inferior_has_bug): Update.
8425 * m32c-tdep.c (m32c_return_value)
8426 (m32c_m16c_address_to_pointer): Update.
8427 * m32r-tdep.c (m32r_frame_this_id): Update.
8428 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8429 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8430 * maint.c (maintenance_translate_address): Update.
8431 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8432 (frob_address): New function.
8433 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8434 frob_address. Rename parameter to "pc_in".
8435 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8436 addresses.
8437 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8438 Update.
8439 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8440 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8441 * objc-lang.c (find_objc_msgsend): Update.
8442 * objfiles.c (objfile_relocate1): Update.
8443 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8444 * p-valprint.c (pascal_val_print): Update.
8445 * parse.c (write_exp_msymbol): Update.
8446 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8447 (ppc_elfv2_skip_entrypoint): Update.
8448 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8449 * printcmd.c (build_address_symbolic, msym_info)
8450 (address_info): Update.
8451 * proc-service.c (ps_pglobal_lookup): Update.
8452 * psymtab.c (find_pc_sect_psymtab_closer)
8453 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8454 Change msymbol parameter to bound_minimal_symbol.
8455 * ravenscar-thread.c (get_running_thread_id): Update.
8456 * remote.c (remote_check_symbols): Update.
8457 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8458 address.
8459 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8460 * solib-dsbt.c (lm_base): Update.
8461 * solib-frv.c (lm_base, main_got): Update.
8462 * solib-irix.c (locate_base): Update.
8463 * solib-som.c (som_solib_create_inferior_hook)
8464 (link_map_start): Update.
8465 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8466 * solib-svr4.c (elf_locate_base, enable_break): Update.
8467 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8468 (flush_ea_cache): Update.
8469 * stabsread.c (define_symbol, scan_file_globals): Update.
8470 * stack.c (find_frame_funname): Update.
8471 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8472 (debug_qf_find_pc_sect_symtab): Update.
8473 * symfile.c (simple_read_overlay_table)
8474 (simple_overlay_update): Update.
8475 * symfile.h (struct quick_symbol_functions)
8476 <find_pc_sect_symtab>: Change type of msymbol to
8477 bound_minimal_symbol.
8478 * symmisc.c (dump_msymbols): Update.
8479 * symtab.c (find_pc_sect_symtab_via_partial)
8480 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8481 (search_symbols, print_msymbol_info): Update.
8482 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8483 (MSYMBOL_VALUE_ADDRESS): Redefine.
8484 (BMSYMBOL_VALUE_ADDRESS): New macro.
8485 * tracepoint.c (scope_info): Update.
8486 * tui/tui-disasm.c (tui_find_disassembly_address)
8487 (tui_get_begin_asm_address): Update.
8488 * valops.c (find_function_in_inferior): Update.
8489 * value.c (value_static_field, value_fn_field): Update.
8490
3b7344d5
TT
84912014-02-26 Tom Tromey <tromey@redhat.com>
8492
8493 * ada-lang.c (ada_update_initial_language): Update.
8494 (ada_main_name, ada_has_this_exception_support): Update.
8495 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8496 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8497 * arm-tdep.c (arm_skip_stub): Update.
8498 * auxv.c (ld_so_xfer_auxv): Update.
8499 * avr-tdep.c (avr_scan_prologue): Update.
8500 * ax-gdb.c (gen_var_ref): Update.
8501 * breakpoint.c (struct breakpoint_objfile_data)
8502 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8503 type to bound_minimal_symbol.
8504 (create_overlay_event_breakpoint)
8505 (create_longjmp_master_breakpoint)
8506 (create_std_terminate_master_breakpoint)
8507 (create_exception_master_breakpoint): Update.
8508 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8509 * c-exp.y (classify_name): Update.
8510 * coffread.c (coff_symfile_read): Update.
8511 * common/agent.c (agent_look_up_symbols): Update.
8512 * d-lang.c (d_main_name): Update.
8513 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8514 * dec-thread.c (enable_dec_thread): Update.
8515 * dwarf2loc.c (call_site_to_target_addr): Update.
8516 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8517 * eval.c (evaluate_subexp_standard): Update.
8518 * findvar.c (struct minsym_lookup_data) <result>: Change type
8519 to bound_minimal_symbol.
8520 <objfile>: Remove.
8521 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8522 * frame.c (inside_main_func): Update.
8523 * frv-tdep.c (frv_frame_this_id): Update.
8524 * gcore.c (call_target_sbrk): Update.
8525 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8526 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8527 Update.
8528 * go-lang.c (go_main_name): Update.
8529 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8530 (hppa_hpux_find_import_stub_for_addr): Update.
8531 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8532 Update. Change return type.
8533 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8534 type.
8535 * jit.c (jit_breakpoint_re_set_internal): Update.
8536 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8537 Update.
8538 * linux-nat.c (get_signo): Update.
8539 * linux-thread-db.c (inferior_has_bug): Update
8540 * m32c-tdep.c (m32c_return_value)
8541 (m32c_m16c_address_to_pointer): Update.
8542 * m32r-tdep.c (m32r_frame_this_id): Update.
8543 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8544 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8545 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8546 lookup_minimal_symbol. Change return type.
8547 (lookup_minimal_symbol): Remove.
8548 (lookup_bound_minimal_symbol): Update.
8549 (lookup_minimal_symbol_text): Change return type.
8550 (lookup_minimal_symbol_solib_trampoline): Change return type.
8551 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8552 (lookup_minimal_symbol_solib_trampoline): Change return type.
8553 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8554 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8555 (value_nsstring, find_imps): Update.
8556 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8557 * p-lang.c (pascal_main_name): Update.
8558 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8559 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8560 * proc-service.c (ps_pglobal_lookup): Update.
8561 * ravenscar-thread.c (get_running_thread_msymbol): Change
8562 return type.
8563 (has_ravenscar_runtime, get_running_thread_id): Update.
8564 * remote.c (remote_check_symbols): Update.
8565 * sol-thread.c (ps_pglobal_lookup): Update.
8566 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8567 * solib-dsbt.c (lm_base): Update.
8568 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8569 Update.
8570 * solib-irix.c (locate_base): Update.
8571 * solib-som.c (som_solib_create_inferior_hook)
8572 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8573 Update.
8574 * solib-spu.c (spu_enable_break): Update.
8575 * solib-svr4.c (elf_locate_base, enable_break): Update.
8576 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8577 (flush_ea_cache): Update.
8578 * stabsread.c (define_symbol): Update.
8579 * symfile.c (simple_read_overlay_table): Update.
8580 * symtab.c (find_pc_sect_line): Update.
8581 * tracepoint.c (scope_info): Update.
8582 * tui-disasm.c (tui_get_begin_asm_address): Update.
8583 * value.c (value_static_field): Update.
8584
40c1a007
TT
85852014-02-26 Tom Tromey <tromey@redhat.com>
8586
8587 * minsyms.c (prim_record_minimal_symbol_full): Use
8588 SET_MSYMBOL_VALUE_ADDRESS.
8589 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8590 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8591 SET_MSYMBOL_VALUE_ADDRESS.
8592 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8593 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8594
efd66ac6
TT
85952014-02-26 Tom Tromey <tromey@redhat.com>
8596
8597 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8598 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8599 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8600 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8601 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8602 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8603 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8604 * ada-lang.c (ada_main_name): Update.
8605 (ada_lookup_simple_minsym): Update.
8606 (ada_make_symbol_completion_list): Update.
8607 (ada_add_standard_exceptions): Update.
8608 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8609 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8610 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8611 * arm-tdep.c (skip_prologue_function): Update.
8612 (arm_skip_stack_protector, arm_skip_stub): Update.
8613 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8614 (arm_wince_skip_main_prologue): Update.
8615 * auxv.c (ld_so_xfer_auxv): Update.
8616 * avr-tdep.c (avr_scan_prologue): Update.
8617 * ax-gdb.c (gen_var_ref): Update.
8618 * block.c (call_site_for_pc): Update.
8619 * blockframe.c (get_pc_function_start): Update.
8620 (find_pc_partial_function_gnu_ifunc): Update.
8621 * breakpoint.c (create_overlay_event_breakpoint): Update.
8622 (create_longjmp_master_breakpoint): Update.
8623 (create_std_terminate_master_breakpoint): Update.
8624 (create_exception_master_breakpoint): Update.
8625 (resolve_sal_pc): Update.
8626 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8627 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8628 Update.
8629 * c-valprint.c (c_val_print): Update.
8630 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8631 * coffread.c (coff_symfile_read): Update.
8632 * common/agent.c (agent_look_up_symbols): Update.
8633 * dbxread.c (find_stab_function_addr): Update.
8634 (end_psymtab): Update.
8635 * dwarf2loc.c (call_site_to_target_addr): Update.
8636 (func_verify_no_selftailcall): Update.
8637 (tailcall_dump): Update.
8638 (call_site_find_chain_1): Update.
8639 (dwarf_expr_reg_to_entry_parameter): Update.
8640 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8641 (elf_gnu_ifunc_resolve_by_got): Update.
8642 * f-valprint.c (info_common_command): Update.
8643 * findvar.c (read_var_value): Update.
8644 * frame.c (get_prev_frame_1): Update.
8645 (inside_main_func): Update.
8646 * frv-tdep.c (frv_skip_main_prologue): Update.
8647 (frv_frame_this_id): Update.
8648 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8649 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8650 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8651 (gnuv3_skip_trampoline): Update.
8652 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8653 (hppa64_hpux_in_solib_call_trampoline): Update.
8654 (hppa_hpux_skip_trampoline_code): Update.
8655 (hppa64_hpux_search_dummy_call_sequence): Update.
8656 (hppa_hpux_find_import_stub_for_addr): Update.
8657 (hppa_hpux_find_dummy_bpaddr): Update.
8658 * hppa-tdep.c (hppa_symbol_address)
8659 (hppa_lookup_stub_minimal_symbol): Update.
8660 * i386-tdep.c (i386_skip_main_prologue): Update.
8661 (i386_pe_skip_trampoline_code): Update.
8662 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8663 * infcall.c (get_function_name): Update.
8664 * infcmd.c (until_next_command): Update.
8665 * jit.c (jit_breakpoint_re_set_internal): Update.
8666 (jit_inferior_init): Update.
8667 * linespec.c (minsym_found): Update.
8668 (add_minsym): Update.
8669 * linux-fork.c (info_checkpoints_command): Update.
8670 * linux-nat.c (get_signo): Update.
8671 * linux-thread-db.c (inferior_has_bug): Update.
8672 * m32c-tdep.c (m32c_return_value): Update.
8673 (m32c_m16c_address_to_pointer): Update.
8674 (m32c_m16c_pointer_to_address): Update.
8675 * m32r-tdep.c (m32r_frame_this_id): Update.
8676 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8677 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8678 * maint.c (maintenance_translate_address): Update.
8679 * minsyms.c (add_minsym_to_hash_table): Update.
8680 (add_minsym_to_demangled_hash_table): Update.
8681 (msymbol_objfile): Update.
8682 (lookup_minimal_symbol): Update.
8683 (iterate_over_minimal_symbols): Update.
8684 (lookup_minimal_symbol_text): Update.
8685 (lookup_minimal_symbol_by_pc_name): Update.
8686 (lookup_minimal_symbol_solib_trampoline): Update.
8687 (lookup_minimal_symbol_by_pc_section_1): Update.
8688 (lookup_minimal_symbol_and_objfile): Update.
8689 (prim_record_minimal_symbol_full): Update.
8690 (compare_minimal_symbols): Update.
8691 (compact_minimal_symbols): Update.
8692 (build_minimal_symbol_hash_tables): Update.
8693 (install_minimal_symbols): Update.
8694 (terminate_minimal_symbol_table): Update.
8695 (find_solib_trampoline_target): Update.
8696 (minimal_symbol_upper_bound): Update.
8697 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8698 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8699 (mips_skip_pic_trampoline_code): Update.
8700 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8701 * objc-lang.c (selectors_info): Update.
8702 (classes_info): Update.
8703 (find_methods): Update.
8704 (find_imps): Update.
8705 (find_objc_msgsend): Update.
8706 * objfiles.c (objfile_relocate1): Update.
8707 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8708 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8709 * p-valprint.c (pascal_val_print): Update.
8710 * parse.c (write_exp_msymbol): Update.
8711 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8712 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8713 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8714 * printcmd.c (build_address_symbolic): Update.
8715 (sym_info): Update.
8716 (address_info): Update.
8717 * proc-service.c (ps_pglobal_lookup): Update.
8718 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8719 (find_pc_sect_psymtab): Update.
8720 * python/py-framefilter.c (py_print_frame): Update.
8721 * ravenscar-thread.c (get_running_thread_id): Update.
8722 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8723 Update.
8724 * remote.c (remote_check_symbols): Update.
8725 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8726 (rs6000_skip_trampoline_code): Update.
8727 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8728 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8729 * solib-dsbt.c (lm_base): Update.
8730 * solib-frv.c (lm_base): Update.
8731 (main_got): Update.
8732 * solib-irix.c (locate_base): Update.
8733 * solib-som.c (som_solib_create_inferior_hook): Update.
8734 (som_solib_desire_dynamic_linker_symbols): Update.
8735 (link_map_start): Update.
8736 * solib-spu.c (spu_enable_break): Update.
8737 (ocl_enable_break): Update.
8738 * solib-svr4.c (elf_locate_base): Update.
8739 (enable_break): Update.
8740 * spu-tdep.c (spu_get_overlay_table): Update.
8741 (spu_catch_start): Update.
8742 (flush_ea_cache): Update.
8743 * stabsread.c (define_symbol): Update.
8744 (scan_file_globals): Update.
8745 * stack.c (find_frame_funname): Update.
8746 (frame_info): Update.
8747 * symfile.c (simple_read_overlay_table): Update.
8748 (simple_overlay_update): Update.
8749 * symmisc.c (dump_msymbols): Update.
8750 * symtab.c (fixup_section): Update.
8751 (find_pc_sect_line): Update.
8752 (skip_prologue_sal): Update.
8753 (search_symbols): Update.
8754 (print_msymbol_info): Update.
8755 (rbreak_command): Update.
8756 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8757 (completion_list_objc_symbol): Update.
8758 (default_make_symbol_completion_list_break_on): Update.
8759 * tracepoint.c (scope_info): Update.
8760 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8761 (tui_get_begin_asm_address): Update.
8762 * valops.c (find_function_in_inferior): Update.
8763 * value.c (value_static_field): Update.
8764 (value_fn_field): Update.
8765
50e65b17
TT
87662014-02-26 Tom Tromey <tromey@redhat.com>
8767
8768 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8769 bound minimal symbols. Move code that knows about minsym
8770 table layout...
8771 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8772 function.
8773 * minsyms.h (minimal_symbol_upper_bound): Declare.
8774 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8775 minimal_symbol_upper_bound.
8776
1b588015
JB
87772014-02-27 Joel Brobecker <brobecker@adacore.com>
8778
8779 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8780 Use the type's name if its basic type does not have a tag.
8781
dbb9c2b1
JB
87822014-02-27 Joel Brobecker <brobecker@adacore.com>
8783
8784 * dwarf2read.c (read_subrange_type): Add comment.
8785
55426c9d
JB
87862014-02-27 Joel Brobecker <brobecker@adacore.com>
8787
8788 * dwarf2read.c (update_enumeration_type_from_children): New
8789 function, mostly extracted from process_structure_scope.
8790 (read_enumeration_type): Call update_enumeration_type_from_children.
8791 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8792 and flag_flag_enum fields.
8793
f2fce0ca
PA
87942014-02-26 Pedro Alves <palves@redhat.com>
8795
8796 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8797 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8798 to_xfer_partial method.
8799
7a44e40e
PA
88002014-02-26 Pedro Alves <palves@redhat.com>
8801
8802 * target.c (complete_target_initialization): Don't install
8803 default_xfer_partial as to_xfer_partial hook.
8804 (nomemory): Delete.
8805 (update_current_target): Don't INHERIT nor de_fault
8806 deprecated_xfer_memory. Delete de_fault macro.
8807 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8808 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8809 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8810 field.
8811
bd265cd0
PA
88122014-02-26 Pedro Alves <palves@redhat.com>
8813
8814 * go32-nat.c (my_write_child): New function.
8815 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8816 (go32_xfer_partial): New function.
8817 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8818 Instead install a to_xfer_partial hook.
8819
9d46c4e5
PA
88202014-02-26 Pedro Alves <palves@redhat.com>
8821
8822 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8823 to_xfer_partial helper. Rewrite.
8824 (procfs_xfer_partial): New function.
8825 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8826 Install a to_xfer_partial hook.
8827
a1583b1f
PA
88282014-02-26 Pedro Alves <palves@redhat.com>
8829
8830 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8831 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8832 (m32r_xfer_partial): New function.
8833 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8834 Install a to_xfer_partial hook.
8835
6df1b29f
PA
88362014-02-26 Pedro Alves <palves@redhat.com>
8837
8838 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8839 helper.
8840 (mips_xfer_partial): New function.
8841 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8842 hook. Install a to_xfer_partial hook.
8843
dc53a7ad
JB
88442014-02-26 Joel Brobecker <brobecker@adacore.com>
8845
8846 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8847 * gdbtypes.c (create_array_type_with_stride): New function,
8848 renaming create_array_type, but with an added parameter
8849 called "bit_stride".
8850 (create_array_type): Re-implement using
8851 create_array_type_with_stride.
8852 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8853 and DW_AT_bit_stride attributes.
8854
12ab52e9
PA
88552014-02-26 Pedro Alves <palves@redhat.com>
8856
8857 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8858 task-specific breakpoints.
8859
d16461ae
PA
88602014-02-25 Pedro Alves <palves@redhat.com>
8861
8862 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8863 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8864
a8b16220
SS
88652014-02-25 Stan Shebs <stan@codesourcery.com>
8866
8867 * defs.h: Annotate comments for Doxygen.
8868
b9e795ee
TT
88692014-02-25 Tom Tromey <tromey@redhat.com>
8870
8871 * target.h (target_ignore): Don't declare.
8872 * target.c (target_ignore): Remove.
8873
849c862e
JK
88742014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8875
8876 PR gdb/16626
8877 * auto-load.c (auto_load_objfile_script_1): Change filename to
8878 debugfile.
8879
475109d8
JB
88802014-02-25 Joel Brobecker <brobecker@adacore.com>
8881
8882 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8883 documentation. Adjust prototype to match the target_ops
8884 to_xfer_partial method. Adjust implementation accordingly.
8885
e186c3bd
HZ
88862014-02-25 Hui Zhu <hui@codesourcery.com>
8887
8888 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8889 to_traceframe_info.
8890
6d451942
KB
88912014-02-25 Kevin Buettner <kevinb@redhat.com>
8892
041ab8b4 8893 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8894 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8895 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8896 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8897 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8898 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8899 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8900 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8901 New constants.
8902 (rl78_register_type): Use a data pointer type for SP and
8903 new pseudo registers mentioned above. Use a 16 bit integer
8904 type for all other register pairs.
8905 (rl78_register_name, rl78_g10_register_name): Update for
8906 new pseudo registers.
8907 (rl78_pseudo_register_read): Likewise.
8908 (rl78_pseudo_register_write): Likewise.
8909 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8910 to the newly added pseudo registers.
8911
eddf0bae
DE
89122014-02-24 Doug Evans <dje@google.com>
8913
8914 * value.c (record_latest_value): Fix comment.
8915 * printcmd.c (print_command_1): Remove code to handle -1 return from
8916 record_latest_value.
8917
e96027e0
PA
89182014-02-24 Pedro Alves <palves@redhat.com>
8919
8920 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8921 deprecated_xfer_memory hook.
8922 (procfs_xfer_partial): Call procfs_xfer_memory instead
8923 of the deprecated_xfer_memory target hook.
8924 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8925 helper.
8926
0837c976
YZ
89272014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8928
8929 * windows-nat.c (windows_xfer_shared_libraries): Return
8930 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8931 requested object is TARGET_OBJECT_LIBRARIES.
8932
bc113b4e
YQ
89332014-02-24 Yao Qi <yao@codesourcery.com>
8934
8935 * target.h (enum target_xfer_status)
8936 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8937 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8938 explicitly. New.
8939 * corefile.c (memory_error_message): User updated.
8940 * exec.c (section_table_read_available_memory): Likewise.
8941 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8942 * target.c (target_xfer_status_to_string): Likewise.
8943 (raw_memory_xfer_partial): Likewise.
8944 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8945 * valops.c (read_value_memory): Likewise.
8946 * exec.h: Update comments.
8947
01cb8804
YQ
89482014-02-24 Yao Qi <yao@codesourcery.com>
8949
8950 * target.c (target_xfer_status_to_string): Rename argument err
8951 to status.
8952 * target.h (target_xfer_status_to_string): Update declaration.
8953 Replace target_xfer_error_to_string with
8954 target_xfer_status_to_string in comment.
8955
93063aa6
YQ
89562014-02-24 Yao Qi <yao@codesourcery.com>
8957
8958 * mips-linux-nat.c (super_close): Update its type.
8959 (mips_linux_close): Pass 'self' to super_close.
8960
5c328c05
YQ
89612014-02-24 Yao Qi <yao@codesourcery.com>
8962
8963 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8964 * corefile.c (read_memory): Adjusted.
8965 * target.c (target_write_with_progress): Adjusted.
8966
f73023dd
YQ
89672014-02-23 Yao Qi <yao@codesourcery.com>
8968
8969 Revert two patches:
8970
8971 2013-10-25 Yao Qi <yao@codesourcery.com>
8972
8973 * remote.c (remote_traceframe_info): Return early if
8974 traceframe is not selected.
8975
8976 2013-07-19 Yao Qi <yao@codesourcery.com>
8977
8978 * target.c (update_current_target): Change the default action
8979 of 'to_traceframe_info' from tcomplain to return_zero.
8980 * target.h (struct target_ops) <to_traceframe_info>: Add more
8981 comments.
8982
5a2eb0ef
YQ
89832014-02-23 Yao Qi <yao@codesourcery.com>
8984
8985 * valops.c (read_value_memory): Rewrite it. Call
8986 target_xfer_partial in a loop.
8987 * exec.h (section_table_available_memory): Remove declaration.
8988 Move comments to ...
8989 * exec.c (section_table_available_memory): ... here. Make it
8990 static.
8991
1ee79381
YQ
89922014-02-23 Yao Qi <yao@codesourcery.com>
8993
8994 * exec.c (section_table_read_available_memory): New function.
8995 * exec.h (section_table_read_available_memory): Declare.
8996 * ctf.c (ctf_xfer_partial): Call
8997 section_table_read_available_memory.
8998 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8999
1ca49d37
YQ
90002014-02-23 Yao Qi <yao@codesourcery.com>
9001
9002 * ctf.c (ctf_xfer_partial): Move code to ...
9003 * exec.c (exec_read_partial_read_only): ... it. New function.
9004 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9005 * tracefile.c: Include "exec.h".
9006 * exec.h (exec_read_partial_read_only): Declare.
9007
a283690e
YQ
90082014-02-23 Yao Qi <yao@codesourcery.com>
9009
9010 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9011 (tfile_has_memory): Remove.
9012 (init_tfile_ops): Don't set fields to_has_all_memory and
9013 to_has_memory of tfile_ops.
9014 * tracefile.c (tracefile_has_all_memory): New function.
9015 (tracefile_has_memory): New function.
9016 (init_tracefile_ops): Initialize fields to_has_all_memory and
9017 to_has_memory of 'ops'.
9018
12e03cd0
YQ
90192014-02-23 Yao Qi <yao@codesourcery.com>
9020
9021 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9022 (ctf_thread_alive, ctf_get_trace_status): Remove.
9023 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9024 init_tracefile_ops.
9025 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9026 (tfile_has_stack, tfile_has_registers): Remove.
9027 (tfile_thread_alive): Remove.
9028 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9029 init_tracefile_ops.
9030 * tracefile.c (tracefile_has_stack): New function.
9031 (tracefile_has_registers): New function.
9032 (tracefile_thread_alive): New function.
9033 (tracefile_get_trace_status): New function.
9034 (init_tracefile_ops): New function.
9035 * tracefile.h (init_tracefile_ops): Declare.
9036
11395323
YQ
90372014-02-23 Yao Qi <yao@codesourcery.com>
9038
9039 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9040 (O_LARGEFILE): Likewise.
9041 (tfile_ops): Likewise.
9042 (TRACE_HEADER_SIZE): Likewise.
9043 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9044 (cur_data_size): Likewise.
9045 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9046 (tfile_close, tfile_files_info): Likewise.
9047 (tfile_get_trace_status): Likewise.
9048 (tfile_get_tracepoint_status): Likewise.
9049 (tfile_get_traceframe_address): Likewise.
9050 (tfile_trace_find, match_blocktype): Likewise.
9051 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9052 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9053 (tfile_get_trace_state_variable_value): Likewise.
9054 (tfile_has_all_memory, tfile_has_memory): Likewise.
9055 (tfile_has_stack, tfile_has_registers): Likewise.
9056 (tfile_thread_alive, build_traceframe_info): Likewise.
9057 (tfile_traceframe_info, init_tfile_ops): Likewise.
9058 (_initialize_tracepoint): Don't call init_tfile_ops
9059 and add_target_with_completer.
9060 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9061 exec.h, completer.h and filenames.h.
9062 (_initialize_tracefile_tfile): New function.
9063
7951c4eb
YQ
90642014-02-23 Yao Qi <yao@codesourcery.com>
9065
9066 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9067 tracefile-tfile.o.
9068 (HFILES_NO_SRCDIR): Add tracefile.h.
9069 * ctf.c: Include "tracefile.h".
9070 * tracefile.h: New file.
9071 * tracefile.c: New file
9072 * tracefile-tfile.c: New file.
9073 * tracepoint.c: Include "tracefile.h".
9074 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9075 (stop_reason_names): Add const.
9076 (trace_file_writer_xfree): Move it to tracefile.c.
9077 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9078 (trace_save_ctf): Likewise.
9079 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9080 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9081 (tfile_write_header, tfile_write_regblock_type): Likewise.
9082 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9083 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9084 (tfile_write_raw_data, tfile_end): Likewise.
9085 (tfile_trace_file_writer_new): Likewise.
9086 (free_uploaded_tp): Make it extern.
9087 (free_uploaded_tsv): Make it extern.
9088 (_initialize_tracepoint): Move code to register command 'tsave'
9089 to tracefile.c.
9090 * tracepoint.h (stop_reason_names): Declare.
9091 (struct trace_frame_write_ops): Move it to tracefile.h.
9092 (struct trace_file_write_ops): Likewise.
9093 (struct trace_file_writer): Likewise.
9094 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9095
184cd072
JK
90962014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9097
9098 PR gdb/16594
9099 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9100 process name.
9101 (get_cores_used_by_process): New parameter num_cores, use it.
9102 (linux_xfer_osdata_processes): Pass num_cores to it.
9103 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9104 process name.
9105
c63528fc
AK
91062014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9107
9108 * target.c (memory_xfer_partial): Fix length arg in call to
9109 breakpoint_xfer_memory.
9110
d7b30f67
SDJ
91112014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9112
9113 PR tdep/16397
9114 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9115 number comes after the + or - signs. Adjust length of register
9116 name to be extracted.
9117
8838afaf
TT
91182014-02-20 Tom Tromey <tromey@redhat.com>
9119
9120 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9121 (ada_varobj_ops): Mark "extern".
9122
05227d14
TT
91232014-02-20 Tom Tromey <tromey@redhat.com>
9124
9125 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9126
1254eefc
DE
91272014-02-20 Doug Evans <xdje42@gmail.com>
9128
9129 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9130 All callers updated.
9131 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9132 All callers updated.
9133 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9134 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9135
adde2bff
DE
91362014-02-20 lin zuojian <manjian2006@gmail.com>
9137 Joel Brobecker <brobecker@adacore.com>
9138 Doug Evans <xdje42@gmail.com>
9139
9140 PR symtab/16581
9141 * dwarf2read.c (struct die_info): New member in_process.
9142 (reset_die_in_process): New function.
9143 (process_die): Set it at the start, reset when returning.
9144 (inherit_abstract_dies): Only call process_die if origin_child_die
9145 not already being processed.
9146
3be75f87
JB
91472014-02-20 Joel Brobecker <brobecker@adacore.com>
9148
9149 * windows-nat.c (handle_unload_dll): Add function documentation.
9150 (do_initial_windows_stuff): Add comment explaining why we wait
9151 until after inferior initialization has finished before
9152 processing all DLLs.
9153
47f7ffdb
JB
91542014-02-20 Joel Brobecker <brobecker@adacore.com>
9155
9156 * windows-nat.c (get_module_name): Delete.
9157 (windows_get_exec_module_filename): New function, mostly
9158 inspired from get_module_name.
9159 (windows_pid_to_exec_file): Replace call to get_module_name
9160 by call to windows_get_exec_module_filename.
9161
1cd9feab
JB
91622014-02-20 Joel Brobecker <brobecker@adacore.com>
9163
9164 * windows-nat.c (handle_load_dll): Rewrite this function's
9165 introductory comment. Remove code using get_module_name
9166 to get the DLL's name.
9167
ea39ad35
JB
91682014-02-20 Joel Brobecker <brobecker@adacore.com>
9169
9170 * windows-nat.c (get_windows_debug_event): Ignore
9171 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9172 if windows_initialization_done == 0.
9173 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9174 Adjust implementation to always load all DLLs.
9175 (do_initial_windows_stuff): Replace call to
9176 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9177
95060284
JB
91782014-02-20 Joel Brobecker <brobecker@adacore.com>
9179
9180 * windows-nat.c (_initialize_windows_nat): Deprecate the
9181 "dll-symbols" command. Turn the "add-shared-symbol-files"
9182 and "assf" aliases into commands, and deprecate them as well.
9183 * NEWS: Add entry explaining that "dll-symbols" and its two
9184 aliases are now deprecated.
9185
8d4fdb12
JB
91862014-02-20 Joel Brobecker <brobecker@adacore.com>
9187
9188 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9189 new-line in debug string. Remove trailing spaces.
9190
1b281443
SS
91912014-02-19 Stan Shebs <stan@codesourcery.com>
9192
9193 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9194
f7bd0f78
SC
91952014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9196
9197 * NEWS: Add entry for the new feature
9198 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9199 and class values.
9200
399ebc3d
SS
92012014-02-19 Stan Shebs <stan@codesourcery.com>
9202
9203 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9204
c658158d
PA
92052014-02-19 Pedro Alves <palves@redhat.com>
9206
9207 * common/ptid.h (struct ptid): Mention that process_stratum
9208 targets should prefer ptid.lwp.
9209
ba348170
PA
92102014-02-19 Pedro Alves <palves@redhat.com>
9211
9212 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9213 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9214 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9215 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9216 store remote thread ids rather than ptid.tid.
9217 (_initialize_remote): Adjust.
9218
ac01945b
TT
92192014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.c (target_get_unwinder): Rewrite.
9222 (target_get_tailcall_unwinder): Rewrite.
9223 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9224 (record_btrace_to_get_tailcall_unwinder): New function.
9225 (init_record_btrace_ops): Update.
9226 * target.h (struct target_ops) <to_get_unwinder,
9227 to_get_tailcall_unwinder>: Now function pointers. Use
9228 TARGET_DEFAULT_RETURN.
9229
8476dc92
TT
92302014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9233 argument.
9234 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9235
c0eca49f
TT
92362014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9239 directly.
9240 * target-delegates.c: Rebuild.
9241 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9242 TARGET_DEFAULT_FUNC.
9243 * target.c (default_target_decr_pc_after_break): Rename from
9244 forward_target_decr_pc_after_break. Simplify.
9245 (target_decr_pc_after_break): Rely on delegation.
9246
596b6b39
TT
92472014-02-19 Tom Tromey <tromey@redhat.com>
9248
9249 * target.c (update_current_target): Do not INHERIT to_doc or
9250 to_magic. Do not de_fault to_open or to_close.
9251
b427c1bc
TT
92522014-02-19 Tom Tromey <tromey@redhat.com>
9253
9254 * gcore.h (objfile_find_memory_regions): Declare.
9255 * gcore.c (objfile_find_memory_regions): No longer static. Add
9256 "self" argument.
9257 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9258 * exec.c: Include gcore.h.
9259 (exec_set_find_memory_regions): Remove.
9260 (exec_find_memory_regions): Remove.
9261 (exec_do_find_memory_regions): Remove.
9262 (init_exec_ops): Update.
9263 * defs.h (exec_set_find_memory_regions): Remove.
9264
9b144037
TT
92652014-02-19 Tom Tromey <tromey@redhat.com>
9266
9267 * target-delegates.c: Rebuild.
9268 * target.h (struct target_ops) <to_extra_thread_info,
9269 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9270 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9271 not 0, in TARGET_DEFAULT_RETURN.
9272
555bbdeb
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target.c (complete_target_initialization): Remove casts. Use
9276 return_zero_has_execution.
9277 (return_zero): Add "ignore" argument.
9278 (return_zero_has_execution): New function.
9279 (init_dummy_target): Remove casts. Use
9280 return_zero_has_execution.
9281
be4ddd36
TT
92822014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * target.c (update_current_target): Update comments. Do not
9285 INHERIT to_stratum.
9286
2117c711
TT
92872014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9290 needed.
9291 * corelow.c (core_read_description): Delegate when needed.
9292 * remote.c (remote_read_description): Delegate when needed.
9293 * target-delegates.c: Rebuild.
9294 * target.c (target_read_description): Rewrite.
9295 * target.h (struct target_ops) <to_read_description>: Update
9296 comment. Use TARGET_DEFAULT_RETURN.
9297
e88ef65c
TT
92982014-02-19 Tom Tromey <tromey@redhat.com>
9299
9300 * target-delegates.c: Rebuild.
9301 * target.c (update_current_target): Don't inherit or default
9302 to_can_run.
9303 (find_default_run_target): Check against delegate_can_run.
9304 * target.h (struct target_ops) <to_can_run>: Use
9305 TARGET_DEFAULT_RETURN.
9306
86a0854a
TT
93072014-02-19 Tom Tromey <tromey@redhat.com>
9308
9309 * target-delegates.c: Rebuild.
9310 * target.c (target_disconnect): Unconditionally delegate.
9311 * target.h (struct target_ops) <to_disconnect>: Use
9312 TARGET_DEFAULT_NORETURN.
9313
ee97f592
TT
93142014-02-19 Tom Tromey <tromey@redhat.com>
9315
9316 * record.c (record_stop): Unconditionally delegate.
9317 * target-delegates.c: Rebuild.
9318 * target.c (target_stop_recording): Unconditionally delegate.
9319 * target.h (struct target_ops) <to_stop_recording>: Use
9320 TARGET_DEFAULT_IGNORE.
9321
6dc7fcf4
TT
93222014-02-19 Tom Tromey <tromey@redhat.com>
9323
9324 * target-delegates.c: Rebuild.
9325 * target.c (target_enable_btrace): Unconditionally delegate.
9326 * target.h (struct target_ops) <to_enable_btrace>: Use
9327 TARGET_DEFAULT_NORETURN.
9328
eb5b20d4
TT
93292014-02-19 Tom Tromey <tromey@redhat.com>
9330
9331 * target-delegates.c: Rebuild.
9332 * target.c (target_read_btrace): Unconditionally delegate.
9333 * target.h (struct target_ops) <to_read_btrace>: Use
9334 TARGET_DEFAULT_NORETURN.
9335
9ace480d
TT
93362014-02-19 Tom Tromey <tromey@redhat.com>
9337
9338 * target-delegates.c: Rebuild.
9339 * target.c (target_teardown_btrace): Unconditionally delegate.
9340 * target.h (struct target_ops) <to_teardown_btrace>: Use
9341 TARGET_DEFAULT_NORETURN.
9342
8dc292d3
TT
93432014-02-19 Tom Tromey <tromey@redhat.com>
9344
9345 * target-delegates.c: Rebuild.
9346 * target.c (target_disable_btrace): Unconditionally delegate.
9347 * target.h (struct target_ops) <to_disable_btrace>: Use
9348 TARGET_DEFAULT_NORETURN.
9349
58a5184e
TT
93502014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target-delegates.c: Rebuild.
9353 * target.c (default_search_memory): New function.
9354 (simple_search_memory): Update comment.
9355 (target_search_memory): Unconditionally delegate.
9356 * target.h (struct target_ops) <to_search_memory>: Use
9357 TARGET_DEFAULT_FUNC.
9358
8de71aab
TT
93592014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * auxv.c (default_auxv_parse): No longer static.
9362 (target_auxv_parse): Unconditionally delegate.
9363 * auxv.h (default_auxv_parse): Declare.
9364 * target-delegates.c: Rebuild.
9365 * target.c: Include auxv.h.
9366 * target.h (struct target_ops) <to_auxv_parse>: Use
9367 TARGET_DEFAULT_FUNC.
9368
6b2c5a57
TT
93692014-02-19 Tom Tromey <tromey@redhat.com>
9370
9371 * target-delegates.c: Rebuild.
9372 * target.c (target_memory_map): Unconditionally delegate.
9373 * target.h (struct target_ops) <to_memory_map>: Use
9374 TARGET_DEFAULT_RETURN.
9375
cbffc065
TT
93762014-02-19 Tom Tromey <tromey@redhat.com>
9377
9378 * target-delegates.c: Rebuild.
9379 * target.c (target_thread_alive): Unconditionally delegate.
9380 * target.h (struct target_ops) <to_thread_alive>: Use
9381 TARGET_DEFAULT_RETURN.
9382
f09e2107
TT
93832014-02-19 Tom Tromey <tromey@redhat.com>
9384
9385 * target-delegates.c: Rebuild.
9386 * target.c (target_save_record): Unconditionally delegate.
9387 * target.h (struct target_ops) <to_save_record>: Use
9388 TARGET_DEFAULT_NORETURN.
9389
07366925
TT
93902014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target-delegates.c: Rebuild.
9393 * target.c (target_delete_record): Unconditionally delegate.
9394 * target.h (struct target_ops) <to_delete_record>: Use
9395 TARGET_DEFAULT_NORETURN.
9396
dd2e9d25
TT
93972014-02-19 Tom Tromey <tromey@redhat.com>
9398
9399 * target-delegates.c: Rebuild.
9400 * target.c (target_record_is_replaying): Unconditionally
9401 delegate.
9402 * target.h (struct target_ops) <to_record_is_replaying>: Use
9403 TARGET_DEFAULT_RETURN.
9404
671e76cc
TT
94052014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target-delegates.c: Rebuild.
9408 * target.c (target_goto_record_begin): Unconditionally delegate.
9409 * target.h (struct target_ops) <to_goto_record_begin>: Use
9410 TARGET_DEFAULT_NORETURN.
9411
e9179bb3
TT
94122014-02-19 Tom Tromey <tromey@redhat.com>
9413
9414 * target-delegates.c: Rebuild.
9415 * target.c (target_goto_record_end): Unconditionally delegate.
9416 * target.h (struct target_ops) <to_goto_record_end>: Use
9417 TARGET_DEFAULT_NORETURN.
9418
05969c84
TT
94192014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target-delegates.c: Rebuild.
9422 * target.c (target_goto_record): Unconditionally delegate.
9423 * target.h (struct target_ops) <to_goto_record>: Use
9424 TARGET_DEFAULT_NORETURN.
9425
3679abfa
TT
94262014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target-delegates.c: Rebuild.
9429 * target.c (target_insn_history): Unconditionally delegate.
9430 * target.h (struct target_ops) <to_insn_history>: Use
9431 TARGET_DEFAULT_NORETURN.
9432
8444ab58
TT
94332014-02-19 Tom Tromey <tromey@redhat.com>
9434
9435 * target-delegates.c: Rebuild.
9436 * target.c (target_insn_history_from): Unconditionally delegate.
9437 * target.h (struct target_ops) <to_insn_history_from>: Use
9438 TARGET_DEFAULT_NORETURN.
9439
c29302cc
TT
94402014-02-19 Tom Tromey <tromey@redhat.com>
9441
9442 * target-delegates.c: Rebuild.
9443 * target.c (target_insn_history_range): Unconditionally delegate.
9444 * target.h (struct target_ops) <to_insn_history_range>: Use
9445 TARGET_DEFAULT_NORETURN.
9446
170049d4
TT
94472014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * target-delegates.c: Rebuild.
9450 * target.c (target_call_history): Unconditionally delegate.
9451 * target.h (struct target_ops) <to_call_history>: Use
9452 TARGET_DEFAULT_NORETURN.
9453
16fc27d6
TT
94542014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target-delegates.c: Rebuild.
9457 * target.c (target_call_history_from): Unconditionally delegate.
9458 * target.h (struct target_ops) <to_call_history_from>: Use
9459 TARGET_DEFAULT_NORETURN.
9460
115d9817
TT
94612014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * target-delegates.c: Rebuild.
9464 * target.c (target_call_history_range): Unconditionally delegate.
9465 * target.h (struct target_ops) <to_call_history_range>: Use
9466 TARGET_DEFAULT_NORETURN.
9467
eb276a6b
TT
94682014-02-19 Tom Tromey <tromey@redhat.com>
9469
9470 * target-delegates.c: Rebuild.
9471 * target.c (target_verify_memory): Unconditionally delegate.
9472 * target.h (struct target_ops) <to_verify_memory>: Use
9473 TARGET_DEFAULT_NORETURN.
9474
9e538d0d
TT
94752014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target-delegates.c: Rebuild.
9478 * target.c (target_core_of_thread): Unconditionally delegate.
9479 * target.h (struct target_ops) <to_core_of_thread>: Use
9480 TARGET_DEFAULT_RETURN.
9481
f6fb2925
TT
94822014-02-19 Tom Tromey <tromey@redhat.com>
9483
9484 * target-delegates.c: Rebuild.
9485 * target.c (target_flash_done): Unconditionally delegate.
9486 * target.h (struct target_ops) <to_flash_done>: Use
9487 TARGET_DEFAULT_NORETURN.
9488
e8a6c6ac
TT
94892014-02-19 Tom Tromey <tromey@redhat.com>
9490
9491 * target-delegates.c: Rebuild.
9492 * target.c (target_flash_erase): Unconditionally delegate.
9493 * target.h (struct target_ops) <to_flash_erase>: Use
9494 TARGET_DEFAULT_NORETURN.
9495
7e35c012
TT
94962014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * target-delegates.c: Rebuild.
9499 * target.c (target_get_section_table): Unconditionally delegate.
9500 * target.h (struct target_ops) <to_get_section_table>: Use
9501 TARGET_DEFAULT_RETURN.
9502
770234d3
TT
95032014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * target-delegates.c: Rebuild.
9506 * target.c (target_pid_to_str): Unconditionally delegate.
9507 (init_dummy_target): Don't initialize to_pid_to_str.
9508 (default_pid_to_str): Rename from dummy_pid_to_str.
9509 * target.h (struct target_ops) <to_pid_to_str>: Use
9510 TARGET_DEFAULT_FUNC.
9511
09b0dc2b
TT
95122014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target-delegates.c: Rebuild.
9515 * target.c (target_find_new_threads): Unconditionally delegate.
9516 * target.h (struct target_ops) <to_find_new_threads>: Use
9517 TARGET_DEFAULT_RETURN.
9518
7d4f8efa
TT
95192014-02-19 Tom Tromey <tromey@redhat.com>
9520
9521 * target-delegates.c: Rebuild.
9522 * target.c (target_program_signals): Unconditionally delegate.
9523 * target.h (struct target_ops) <to_program_signals>: Use
9524 TARGET_DEFAULT_IGNORE.
9525
035cad7f
TT
95262014-02-19 Tom Tromey <tromey@redhat.com>
9527
9528 * target-delegates.c: Rebuild.
9529 * target.c (target_pass_signals): Unconditionally delegate.
9530 * target.h (struct target_ops) <to_pass_signals>: Use
9531 TARGET_DEFAULT_IGNORE.
9532
8d657035
TT
95332014-02-19 Tom Tromey <tromey@redhat.com>
9534
9535 * target-delegates.c: Rebuild.
9536 * target.c (default_mourn_inferior): New function.
9537 (target_mourn_inferior): Unconditionally delegate.
9538 * target.h (struct target_ops) <to_mourn_inferior>: Use
9539 TARGET_DEFAULT_FUNC.
9540
098dba18
TT
95412014-02-19 Tom Tromey <tromey@redhat.com>
9542
9543 * target-delegates.c: Rebuild.
9544 * target.c (default_follow_fork): New function.
9545 (target_follow_fork): Unconditionally delegate.
9546 * target.h (struct target_ops) <to_follow_fork>: Use
9547 TARGET_DEFAULT_FUNC.
9548
423a4807
TT
95492014-02-19 Tom Tromey <tromey@redhat.com>
9550
9551 * target-delegates.c: Rebuild.
9552 * target.c (target_kill): Unconditionally delegate.
9553 * target.h (struct target_ops) <to_kill>: Use
9554 TARGET_DEFAULT_NORETURN.
9555
6c7e5e5c
TT
95562014-02-19 Tom Tromey <tromey@redhat.com>
9557
9558 * target-delegates.c: Rebuild.
9559 * target.c (target_masked_watch_num_registers): Unconditionally
9560 delegate.
9561 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9562 Use TARGET_DEFAULT_RETURN.
9563
8b1c364c
TT
95642014-02-19 Tom Tromey <tromey@redhat.com>
9565
9566 * target-delegates.c: Rebuild.
9567 * target.c (target_remove_mask_watchpoint): Unconditionally
9568 delegate.
9569 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9570 TARGET_DEFAULT_RETURN.
9571
cd4ae029
TT
95722014-02-19 Tom Tromey <tromey@redhat.com>
9573
9574 * target-delegates.c: Rebuild.
9575 * target.c (target_insert_mask_watchpoint): Unconditionally
9576 delegate.
9577 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9578 TARGET_DEFAULT_RETURN.
9579
a134316b
TT
95802014-02-19 Tom Tromey <tromey@redhat.com>
9581
9582 * target-delegates.c: Rebuild.
9583 * target.c (target_ranged_break_num_registers): Unconditionally
9584 delegate.
9585 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9586 Use TARGET_DEFAULT_RETURN.
9587
ad5989bd
TT
95882014-02-19 Tom Tromey <tromey@redhat.com>
9589
9590 * target-delegates.c: Rebuild.
9591 * target.c (target_fetch_registers): Unconditionally delegate.
9592 * target.h (struct target_ops) <to_fetch_registers>: Use
9593 TARGET_DEFAULT_NORETURN.
9594
46ee7e8d
TT
95952014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target-delegates.c: Rebuild.
9598 * target.c (update_current_target): Don't inherit or default
9599 to_stop.
9600 * target.h (struct target_ops) <to_stop>: Use
9601 TARGET_DEFAULT_IGNORE.
9602
843f59ed
TT
96032014-02-19 Tom Tromey <tromey@redhat.com>
9604
9605 * target-delegates.c: Rebuild.
9606 * target.c (update_current_target): Don't inherit or default
9607 to_can_run_breakpoint_commands.
9608 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9609 Use TARGET_DEFAULT_RETURN.
9610
ccfde2a0
TT
96112014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * target-delegates.c: Rebuild.
9614 * target.c (update_current_target): Don't inherit or default
9615 to_supports_evaluation_of_breakpoint_conditions.
9616 * target.h (struct target_ops)
9617 <to_supports_evaluation_of_breakpoint_conditions>: Use
9618 TARGET_DEFAULT_RETURN.
9619
0de91722
TT
96202014-02-19 Tom Tromey <tromey@redhat.com>
9621
9622 * target-delegates.c: Rebuild.
9623 * target.c (update_current_target): Don't inherit or default
9624 to_augmented_libraries_svr4_read.
9625 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9626 Use TARGET_DEFAULT_RETURN.
9627
9a7d8b48
TT
96282014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * target-delegates.c: Rebuild.
9631 * target.c (update_current_target): Don't inherit or default
9632 to_can_use_agent.
9633 * target.h (struct target_ops) <to_can_use_agent>: Use
9634 TARGET_DEFAULT_RETURN.
9635
d9db5b21
TT
96362014-02-19 Tom Tromey <tromey@redhat.com>
9637
9638 * target-delegates.c: Rebuild.
9639 * target.c (update_current_target): Don't inherit or default
9640 to_use_agent.
9641 * target.h (struct target_ops) <to_use_agent>: Use
9642 TARGET_DEFAULT_NORETURN.
9643
92155eeb
TT
96442014-02-19 Tom Tromey <tromey@redhat.com>
9645
9646 * target-delegates.c: Rebuild.
9647 * target.c (update_current_target): Don't inherit or default
9648 to_traceframe_info.
9649 (return_null): Remove.
9650 * target.h (struct target_ops) <to_traceframe_info>: Use
9651 TARGET_DEFAULT_RETURN.
9652
d6522a22
TT
96532014-02-19 Tom Tromey <tromey@redhat.com>
9654
9655 * target-delegates.c: Rebuild.
9656 * target.c (update_current_target): Don't inherit or default
9657 to_static_tracepoint_markers_by_strid.
9658 * target.h (struct target_ops)
9659 <to_static_tracepoint_markers_by_strid>: Use
9660 TARGET_DEFAULT_NORETURN.
9661
4c3e4425
TT
96622014-02-19 Tom Tromey <tromey@redhat.com>
9663
9664 * target-delegates.c: Rebuild.
9665 * target.c (update_current_target): Don't inherit or default
9666 to_static_tracepoint_marker_at.
9667 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9668 Use TARGET_DEFAULT_RETURN.
9669
dcd6917f
TT
96702014-02-19 Tom Tromey <tromey@redhat.com>
9671
9672 * target-delegates.c: Rebuild.
9673 * target.c (update_current_target): Don't inherit or default
9674 to_set_permissions.
9675 * target.h (struct target_ops) <to_set_permissions>: Use
9676 TARGET_DEFAULT_IGNORE.
9677
22bcceee
TT
96782014-02-19 Tom Tromey <tromey@redhat.com>
9679
9680 * target-delegates.c: Rebuild.
9681 * target.c (update_current_target): Don't inherit or default
9682 to_get_tib_address.
9683 * target.h (struct target_ops) <to_get_tib_address>: Use
9684 TARGET_DEFAULT_NORETURN.
9685
8586ccaa
TT
96862014-02-19 Tom Tromey <tromey@redhat.com>
9687
9688 * target-delegates.c: Rebuild.
9689 * target.c (update_current_target): Don't inherit or default
9690 to_set_trace_notes.
9691 * target.h (struct target_ops) <to_set_trace_notes>: Use
9692 TARGET_DEFAULT_RETURN.
9693
91df8d1d
TT
96942014-02-19 Tom Tromey <tromey@redhat.com>
9695
9696 * target-delegates.c: Rebuild.
9697 * target.c (update_current_target): Don't initialize
9698 to_set_trace_buffer_size.
9699 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9700 TARGET_DEFAULT_IGNORE.
9701
8d526939
TT
97022014-02-19 Tom Tromey <tromey@redhat.com>
9703
9704 * target-delegates.c: Rebuild.
9705 * target.c (update_current_target): Don't inherit or default
9706 to_set_circular_trace_buffer.
9707 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9708 TARGET_DEFAULT_IGNORE.
9709
0bcfeddf
TT
97102014-02-19 Tom Tromey <tromey@redhat.com>
9711
9712 * target-delegates.c: Rebuild.
9713 * target.c (update_current_target): Don't inherit or default
9714 to_set_disconnected_tracing.
9715 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9716 TARGET_DEFAULT_IGNORE.
9717
9249843f
TT
97182014-02-19 Tom Tromey <tromey@redhat.com>
9719
9720 * target-delegates.c: Rebuild.
9721 * target.c (update_current_target): Don't inherit or default
9722 to_get_min_fast_tracepoint_insn_len.
9723 (return_minus_one): Remove.
9724 * target.h (struct target_ops)
9725 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9726
ace92e7d
TT
97272014-02-19 Tom Tromey <tromey@redhat.com>
9728
9729 * target-delegates.c: Rebuild.
9730 * target.c (update_current_target): Don't inherit or default
9731 to_get_raw_trace_data.
9732 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9733 TARGET_DEFAULT_NORETURN.
9734
08120467
TT
97352014-02-19 Tom Tromey <tromey@redhat.com>
9736
9737 * target-delegates.c: Rebuild.
9738 * target.c (update_current_target): Don't inherit or default
9739 to_upload_trace_state_variables.
9740 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9741 Use TARGET_DEFAULT_RETURN.
9742
1e949b00
TT
97432014-02-19 Tom Tromey <tromey@redhat.com>
9744
9745 * target-delegates.c: Rebuild.
9746 * target.c (update_current_target): Don't inherit or default
9747 to_upload_tracepoints.
9748 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9749 TARGET_DEFAULT_RETURN.
9750
a2e6c147
TT
97512014-02-19 Tom Tromey <tromey@redhat.com>
9752
9753 * target-delegates.c: Rebuild.
9754 * target.c (update_current_target): Don't inherit or default
9755 to_save_trace_data.
9756 * target.h (struct target_ops) <to_save_trace_data>: Use
9757 TARGET_DEFAULT_NORETURN.
9758
959bcd0b
TT
97592014-02-19 Tom Tromey <tromey@redhat.com>
9760
9761 * target-delegates.c: Rebuild.
9762 * target.c (update_current_target): Don't inherit or default
9763 to_get_trace_state_variable_value.
9764 * target.h (struct target_ops)
9765 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9766
afc94e66
TT
97672014-02-19 Tom Tromey <tromey@redhat.com>
9768
9769 * target-delegates.c: Rebuild.
9770 * target.c (update_current_target): Don't inherit or default
9771 to_trace_find.
9772 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9773
e51c07ea
TT
97742014-02-19 Tom Tromey <tromey@redhat.com>
9775
9776 * target-delegates.c: Rebuild.
9777 * target.c (update_current_target): Don't inherit or default
9778 to_trace_stop.
9779 * target.h (struct target_ops) <to_trace_stop>: Use
9780 TARGET_DEFAULT_NORETURN.
9781
6fea14cd
TT
97822014-02-19 Tom Tromey <tromey@redhat.com>
9783
9784 * target-delegates.c: Rebuild.
9785 * target.c (update_current_target): Don't inherit or default
9786 to_get_tracepoint_status.
9787 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9788 TARGET_DEFAULT_NORETURN.
9789
4072d4ff
TT
97902014-02-19 Tom Tromey <tromey@redhat.com>
9791
9792 * target-delegates.c: Rebuild.
9793 * target.c (update_current_target): Don't inherit or default
9794 to_get_trace_status.
9795 * target.h (struct target_ops) <to_get_trace_status>: Use
9796 TARGET_DEFAULT_RETURN.
9797
25da2e80
TT
97982014-02-19 Tom Tromey <tromey@redhat.com>
9799
9800 * target-delegates.c: Rebuild.
9801 * target.c (update_current_target): Don't inherit or default
9802 to_trace_start.
9803 * target.h (struct target_ops) <to_trace_start>: Use
9804 TARGET_DEFAULT_NORETURN.
9805
86dd181d
TT
98062014-02-19 Tom Tromey <tromey@redhat.com>
9807
9808 * target-delegates.c: Rebuild.
9809 * target.c (update_current_target): Don't inherit or default
9810 to_trace_set_readonly_regions.
9811 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9812 Use TARGET_DEFAULT_NORETURN.
9813
05c41993
TT
98142014-02-19 Tom Tromey <tromey@redhat.com>
9815
9816 * target-delegates.c: Rebuild.
9817 * target.c (update_current_target): Don't inherit or default
9818 to_disable_tracepoint.
9819 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9820 TARGET_DEFAULT_NORETURN.
9821
151f70f1
TT
98222014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target-delegates.c: Rebuild.
9825 * target.c (update_current_target): Don't inherit or default
9826 to_enable_tracepoint.
9827 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9828 TARGET_DEFAULT_NORETURN.
9829
94eb98b9
TT
98302014-02-19 Tom Tromey <tromey@redhat.com>
9831
9832 * target-delegates.c: Rebuild.
9833 * target.c (update_current_target): Don't inherit or default
9834 to_download_trace_state_variable.
9835 * target.h (struct target_ops) <to_download_trace_state_variable>:
9836 Use TARGET_DEFAULT_NORETURN.
9837
719acc4a
TT
98382014-02-19 Tom Tromey <tromey@redhat.com>
9839
9840 * target-delegates.c: Rebuild.
9841 * target.c (update_current_target): Don't inherit or default
9842 to_can_download_tracepoint.
9843 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9844 TARGET_DEFAULT_RETURN.
9845
9a980a22
TT
98462014-02-19 Tom Tromey <tromey@redhat.com>
9847
9848 * target-delegates.c: Rebuild.
9849 * target.c (update_current_target): Don't inherit or default
9850 to_download_tracepoint.
9851 * target.h (struct target_ops) <to_download_tracepoint>: Use
9852 TARGET_DEFAULT_NORETURN.
9853
5536135b
TT
98542014-02-19 Tom Tromey <tromey@redhat.com>
9855
9856 * target-delegates.c: Rebuild.
9857 * target.c (update_current_target): Don't inherit or default
9858 to_trace_init.
9859 * target.h (struct target_ops) <to_trace_init>: Use
9860 TARGET_DEFAULT_RETURN.
9861
9409d39e
TT
98622014-02-19 Tom Tromey <tromey@redhat.com>
9863
9864 * target-delegates.c: Rebuild.
9865 * target.c (update_current_target): Don't inherit or default
9866 to_supports_string_tracing.
9867 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9868 TARGET_DEFAULT_RETURN.
9869
aab1b22d
TT
98702014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target-delegates.c: Rebuild.
9873 * target.c (update_current_target): Don't inherit or default
9874 to_supports_enable_disable_tracepoint.
9875 * target.h (struct target_ops)
9876 <to_supports_enable_disable_tracepoint>: Use
9877 TARGET_DEFAULT_RETURN.
9878
a7304748
TT
98792014-02-19 Tom Tromey <tromey@redhat.com>
9880
9881 * target-delegates.c: Rebuild.
9882 * target.c (update_current_target): Don't inherit or default
9883 to_supports_multi_process.
9884 * target.h (struct target_ops) <to_supports_multi_process>: Use
9885 TARGET_DEFAULT_RETURN.
9886
4229b31d
TT
98872014-02-19 Tom Tromey <tromey@redhat.com>
9888
9889 * target-delegates.c: Rebuild.
9890 * target.c (update_current_target): Don't inherit or default
9891 to_get_ada_task_ptid.
9892 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9893 TARGET_DEFAULT_FUNC.
9894
43eba180
TT
98952014-02-19 Tom Tromey <tromey@redhat.com>
9896
9897 * target-delegates.c: Rebuild.
9898 * target.c (update_current_target): Don't inherit or default
9899 to_thread_architecture.
9900 * target.h (struct target_ops) <to_thread_architecture>: Use
9901 TARGET_DEFAULT_FUNC.
9902
fe31bf5b
TT
99032014-02-19 Tom Tromey <tromey@redhat.com>
9904
9905 * target-delegates.c: Rebuild.
9906 * target.c (update_current_target): Don't inherit or default
9907 to_execution_direction.
9908 * target.h (struct target_ops) <to_execution_direction>: Use
9909 TARGET_DEFAULT_FUNC.
9910
53e1cfc7
TT
99112014-02-19 Tom Tromey <tromey@redhat.com>
9912
9913 * target-delegates.c: Rebuild.
9914 * target.c (update_current_target): Don't inherit or default
9915 to_can_execute_reverse.
9916 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9917 TARGET_DEFAULT_RETURN.
9918 (target_can_execute_reverse): Unconditionally delegate.
9919
9bb9d61d
TT
99202014-02-19 Tom Tromey <tromey@redhat.com>
9921
9922 * target-delegates.c: Rebuild.
9923 * target.c (update_current_target): Don't inherit or default
9924 to_goto_bookmark.
9925 (dummy_goto_bookmark): Remove.
9926 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9927 * target.h (struct target_ops) <to_goto_bookmark>: Use
9928 TARGET_DEFAULT_NORETURN.
9929
3dbafbbb
TT
99302014-02-19 Tom Tromey <tromey@redhat.com>
9931
9932 * target-delegates.c: Rebuild.
9933 * target.c (update_current_target): Don't inherit or default
9934 to_get_bookmark.
9935 (dummy_get_bookmark): Remove.
9936 (init_dummy_target): Don't inherit or default to_get_bookmark.
9937 * target.h (struct target_ops) <to_get_bookmark>: Use
9938 TARGET_DEFAULT_NORETURN
9939
16f796b1
TT
99402014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target-delegates.c: Rebuild.
9943 * target.c (update_current_target): Don't inherit or default
9944 to_make_corefile_notes.
9945 (init_dummy_target): Don't initialize to_make_corefile_notes.
9946 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9947 TARGET_DEFAULT_FUNC.
9948
0b5a2719
TT
99492014-02-19 Tom Tromey <tromey@redhat.com>
9950
9951 * target-delegates.c: Rebuild.
9952 * target.c (update_current_target): Don't inherit or default
9953 to_find_memory_regions.
9954 (init_dummy_target): Don't initialize to_find_memory_regions.
9955 * target.h (struct target_ops) <to_find_memory_regions>: Use
9956 TARGET_DEFAULT_FUNC.
9957
d9cb0195
TT
99582014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * target-delegates.c: Rebuild.
9961 * target.c (update_current_target): Don't inherit or default
9962 to_log_command.
9963 * target.h (struct target_ops) <to_log_command>: Use
9964 TARGET_DEFAULT_IGNORE.
9965 (target_log_command): Unconditionally delegate.
9966
830ca330
TT
99672014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target-delegates.c: Rebuild.
9970 * target.c (update_current_target): Don't inherit or default
9971 to_pid_to_exec_file.
9972 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9973 TARGET_DEFAULT_RETURN.
9974
825828fc
TT
99752014-02-19 Tom Tromey <tromey@redhat.com>
9976
9977 * target-delegates.c: Rebuild.
9978 * target.c (update_current_target): Don't inherit or default
9979 to_thread_name.
9980 (target_thread_name): Unconditionally delegate.
9981 * target.h (struct target_ops) <to_thread_name>: Use
9982 TARGET_DEFAULT_RETURN.
9983
4a7e6dda
TT
99842014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target-delegates.c: Rebuild.
9987 * target.c (update_current_target): Don't inherit or default
9988 to_extra_thread_info.
9989 * target.h (struct target_ops) <to_extra_thread_info>: Use
9990 TARGET_DEFAULT_RETURN.
9991
0db88c1d
TT
99922014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target-delegates.c: Rebuild.
9995 * target.c (update_current_target): Don't inherit or default
9996 to_has_exited.
9997 * target.h (struct target_ops) <to_has_exited>: Use
9998 TARGET_DEFAULT_RETURN..
9999
6a9fa051
TT
100002014-02-19 Tom Tromey <tromey@redhat.com>
10001
10002 * target-delegates.c: Rebuild.
10003 * target.c (update_current_target): Don't inherit or default
10004 to_set_syscall_catchpoint.
10005 (return_one): Remove.
10006 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10007 TARGET_DEFAULT_RETURN.
10008
62f64d7a
TT
100092014-02-19 Tom Tromey <tromey@redhat.com>
10010
10011 * target-delegates.c: Rebuild.
10012 * target.c (update_current_target): Don't inherit or default
10013 to_insert_exec_catchpoint.
10014 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10015 TARGET_DEFAULT_RETURN.
10016
cda0f38c
TT
100172014-01-08 Tom Tromey <tromey@redhat.com>
10018
10019 * target-delegates.c: Rebuild.
10020 * target.c (update_current_target): Don't inherit or default
10021 to_insert_exec_catchpoint.
10022 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10023 TARGET_DEFAULT_RETURN.
10024
95c3375e
TT
100252014-02-19 Tom Tromey <tromey@redhat.com>
10026
10027 * target-delegates.c: Rebuild.
10028 * target.c (update_current_target): Don't inherit or default
10029 to_remove_vfork_catchpoint.
10030 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10031 TARGET_DEFAULT_RETURN.
10032
7e18a8dc
TT
100332014-02-19 Tom Tromey <tromey@redhat.com>
10034
10035 * target-delegates.c: Rebuild.
10036 * target.c (update_current_target): Don't inherit or default
10037 to_insert_vfork_catchpoint.
10038 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10039 TARGET_DEFAULT_RETURN.
10040
e1a21fb7
TT
100412014-02-19 Tom Tromey <tromey@redhat.com>
10042
10043 * target-delegates.c: Rebuild.
10044 * target.c (update_current_target): Don't inherit or default
10045 to_remove_fork_catchpoint.
10046 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10047 TARGET_DEFAULT_RETURN.
10048
5958ebeb
TT
100492014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * target-delegates.c: Rebuild.
10052 * target.c (update_current_target): Don't inherit or default
10053 to_insert_fork_catchpoint.
10054 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10055 TARGET_DEFAULT_RETURN.
10056
340ba4bf
TT
100572014-02-19 Tom Tromey <tromey@redhat.com>
10058
10059 * target-delegates.c: Rebuild.
10060 * target.c (update_current_target): Don't inherit or default
10061 to_post_startup_inferior.
10062 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10063 TARGET_DEFAULT_IGNORE.
10064
7634da87
TT
100652014-02-19 Tom Tromey <tromey@redhat.com>
10066
10067 * target-delegates.c: Rebuild.
10068 * target.c (update_current_target): Don't inherit or default
10069 to_load.
10070 * target.h (struct target_ops) <to_load>: Use
10071 TARGET_DEFAULT_NORETURN.
10072
e19e919f
TT
100732014-02-19 Tom Tromey <tromey@redhat.com>
10074
10075 * target-delegates.c: Rebuild.
10076 * target.c (update_current_target): Don't inherit or default
10077 to_terminal_info.
10078 * target.h (struct target_ops) <to_terminal_info>: Use
10079 TARGET_DEFAULT_FUNC.
10080
c6ea8f79
TT
100812014-02-19 Tom Tromey <tromey@redhat.com>
10082
10083 * target-delegates.c: Rebuild.
10084 * target.c (update_current_target): Don't inherit or default
10085 to_terminal_save_ours.
10086 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10087 TARGET_DEFAULT_IGNORE.
10088
e4a733f1
TT
100892014-02-19 Tom Tromey <tromey@redhat.com>
10090
10091 * target-delegates.c: Rebuild.
10092 * target.c (update_current_target): Don't inherit or default
10093 to_terminal_ours.
10094 * target.h (struct target_ops) <to_terminal_ours>: Use
10095 TARGET_DEFAULT_IGNORE.
10096
74fcbef9
TT
100972014-02-19 Tom Tromey <tromey@redhat.com>
10098
10099 * target-delegates.c: Rebuild.
10100 * target.c (update_current_target): Don't inherit or default
10101 to_terminal_ours_for_output.
10102 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10103 TARGET_DEFAULT_IGNORE.
10104
ddeaacc9
TT
101052014-02-19 Tom Tromey <tromey@redhat.com>
10106
10107 * target-delegates.c: Rebuild.
10108 * target.c (update_current_target): Don't inherit or default
10109 to_terminal_inferior.
10110 * target.h (struct target_ops) <to_terminal_inferior>: Use
10111 TARGET_DEFAULT_IGNORE.
10112
0343661d
TT
101132014-02-19 Tom Tromey <tromey@redhat.com>
10114
10115 * target-delegates.c: Rebuild.
10116 * target.c (update_current_target): Don't inherit or default
10117 to_terminal_init.
10118 * target.h (struct target_ops) <to_terminal_init>: Use
10119 TARGET_DEFAULT_IGNORE.
10120
77cdffe9
TT
101212014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target-delegates.c: Rebuild.
10124 * target.c (update_current_target): Don't inherit or default
10125 to_can_accel_watchpoint_condition.
10126 * target.h (struct target_ops)
10127 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10128
d03655e4
TT
101292014-02-19 Tom Tromey <tromey@redhat.com>
10130
10131 * target-delegates.c: Rebuild.
10132 * target.c (update_current_target): Don't inherit or default
10133 to_region_ok_for_hw_watchpoint.
10134 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10135 Use TARGET_DEFAULT_FUNC.
10136
65f160a9
TT
101372014-02-19 Tom Tromey <tromey@redhat.com>
10138
10139 * target-delegates.c: Rebuild.
10140 * target.c (update_current_target): Don't inherit or default
10141 to_watchpoint_addr_within_range.
10142 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10143 Use TARGET_DEFAULT_FUNC.
10144
61dd109f
TT
101452014-02-19 Tom Tromey <tromey@redhat.com>
10146
10147 * target-delegates.c: Rebuild.
10148 * target.c (update_current_target): Don't inherit or default
10149 to_remove_watchpoint.
10150 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10151 TARGET_DEFAULT_NORETURN.
10152
016facd4
TT
101532014-02-19 Tom Tromey <tromey@redhat.com>
10154
10155 * target-delegates.c: Rebuild.
10156 * target.c (update_current_target): Don't inherit or default
10157 to_insert_watchpoint.
10158 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10159 TARGET_DEFAULT_RETURN.
10160
418dabac
TT
101612014-02-19 Tom Tromey <tromey@redhat.com>
10162
10163 * target-delegates.c: Rebuild.
10164 * target.c (update_current_target): Don't inherit or default
10165 to_remove_hw_breakpoint.
10166 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10167 TARGET_DEFAULT_RETURN.
10168
61b371f9
TT
101692014-02-19 Tom Tromey <tromey@redhat.com>
10170
10171 * target-delegates.c: Rebuild.
10172 * target.c (update_current_target): Don't inherit or default
10173 to_insert_hw_breakpoint.
10174 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10175 TARGET_DEFAULT_RETURN.
10176
52b51d06
TT
101772014-02-19 Tom Tromey <tromey@redhat.com>
10178
10179 * target-delegates.c: Rebuild.
10180 * target.c (update_current_target): Don't inherit or default
10181 to_can_use_hw_breakpoint.
10182 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10183 TARGET_DEFAULT_RETURN.
10184
f86e59b2
TT
101852014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * target-delegates.c: Rebuild.
10188 * target.c (update_current_target): Don't inherit or default
10189 to_files_info.
10190 * target.h (struct target_ops) <to_files_info>: Use
10191 TARGET_DEFAULT_IGNORE.
10192
6c628163
TT
101932014-02-19 Tom Tromey <tromey@redhat.com>
10194
10195 * target-delegates.c: Rebuild.
10196 * target.c (update_current_target): Don't inherit or default
10197 to_store.
10198 * target.h (struct target_ops) <to_store>: Use
10199 TARGET_DEFAULT_NORETURN.
10200
bebd3233
TT
102012014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target-delegates.c: Rebuild.
10204 * target.c (update_current_target): Don't inherit or default
10205 to_post_attach.
10206 * target.h (struct target_ops) <to_post_attach>: Use
10207 TARGET_DEFAULT_IGNORE.
10208
a53f3625
TT
102092014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target-delegates.c: Rebuild.
10212 * target.c (update_current_target): Don't inherit or default
10213 to_rcmd.
10214 (default_rcmd): New function.
10215 (do_monitor_command): Unconditionally delegate.
10216 * target.h (struct target_ops) <to_rmcd>: Use
10217 TARGET_DEFAULT_FUNC.
10218
e9a29200
TT
102192014-02-19 Tom Tromey <tromey@redhat.com>
10220
10221 * target-delegates.c: Rebuild.
10222 * target.c (init_dummy_target): Don't initialize to_attach.
10223 (target_attach): Unconditionally delegate.
10224 * target.h (struct target_ops) <to_attach>: Use
10225 TARGET_DEFAULT_FUNC.
10226
09da0d0a
TT
102272014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * target-delegates.c: Rebuild.
10230 * target.c (target_detach): Unconditionally delegate.
10231 (init_dummy_target): Don't initialize to_detach.
10232 * target.h (struct target_ops) <to_detach>: Use
10233 TARGET_DEFAULT_IGNORE.
10234
5436ff03
TT
102352014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10238 Add argument.
10239 (target_augmented_libraries_svr4_read): Add argument.
10240 * target.c (update_current_target): Update.
10241 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10242 argument.
10243
f0d960ea
TT
102442014-02-19 Tom Tromey <tromey@redhat.com>
10245
10246 * target.h (struct target_ops) <to_call_history_range>: Add
10247 argument.
10248 * target.c (target_call_history_range): Add argument.
10249 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10250 argument.
10251 (record_btrace_call_history_from): Update.
10252
ec0aea04
TT
102532014-02-19 Tom Tromey <tromey@redhat.com>
10254
10255 * target.h (struct target_ops) <to_call_history_from>: Add
10256 argument.
10257 * target.c (target_call_history_from): Add argument.
10258 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10259 argument.
10260
5df2fcba
TT
102612014-02-19 Tom Tromey <tromey@redhat.com>
10262
10263 * target.h (struct target_ops) <to_call_history>: Add argument.
10264 * target.c (target_call_history): Add argument.
10265 * record-btrace.c (record_btrace_call_history): Add 'self'
10266 argument.
10267
4e99c6b7
TT
102682014-02-19 Tom Tromey <tromey@redhat.com>
10269
10270 * target.h (struct target_ops) <to_insn_history_range>: Add
10271 argument.
10272 * target.c (target_insn_history_range): Add argument.
10273 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10274 argument.
10275 (record_btrace_insn_history_from): Update.
10276
9abc3ff3
TT
102772014-02-19 Tom Tromey <tromey@redhat.com>
10278
10279 * target.h (struct target_ops) <to_insn_history_from>: Add
10280 argument.
10281 * target.c (target_insn_history_from): Add argument.
10282 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10283 argument.
10284
7a6c5609
TT
102852014-02-19 Tom Tromey <tromey@redhat.com>
10286
10287 * target.h (struct target_ops) <to_insn_history>: Add argument.
10288 * target.c (target_insn_history): Add argument.
10289 * record-btrace.c (record_btrace_insn_history): Add 'self'
10290 argument.
10291
606183ac
TT
102922014-02-19 Tom Tromey <tromey@redhat.com>
10293
10294 * target.h (struct target_ops) <to_goto_record>: Add argument.
10295 * target.c (target_goto_record): Add argument.
10296 * record-full.c (record_full_goto): Add 'self' argument.
10297 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10298
307a1b91
TT
102992014-02-19 Tom Tromey <tromey@redhat.com>
10300
10301 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10302 * target.c (target_goto_record_end): Add argument.
10303 * record-full.c (record_full_goto_end): Add 'self' argument.
10304 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10305
08475817
TT
103062014-02-19 Tom Tromey <tromey@redhat.com>
10307
10308 * target.h (struct target_ops) <to_goto_record_begin>: Add
10309 argument.
10310 * target.c (target_goto_record_begin): Add argument.
10311 * record-full.c (record_full_goto_begin): Add 'self' argument.
10312 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10313 argument.
10314
1c63c994
TT
103152014-02-19 Tom Tromey <tromey@redhat.com>
10316
10317 * target.h (struct target_ops) <to_record_is_replaying>: Add
10318 argument.
10319 * target.c (target_record_is_replaying): Add argument.
10320 * record-full.c (record_full_is_replaying): Add 'self' argument.
10321 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10322 argument.
10323 (record_btrace_xfer_partial, record_btrace_store_registers)
10324 (record_btrace_prepare_to_store, record_btrace_resume)
10325 (record_btrace_wait, record_btrace_decr_pc_after_break)
10326 (record_btrace_find_new_threads, record_btrace_thread_alive):
10327 Update.
10328
d1b55219
TT
103292014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target.h (struct target_ops) <to_delete_record>: Add argument.
10332 * target.c (target_delete_record): Add argument.
10333 * record-full.c (record_full_delete): Add 'self' argument.
10334
1390f529
TT
103352014-02-19 Tom Tromey <tromey@redhat.com>
10336
10337 * target.h (struct target_ops) <to_save_record>: Add argument.
10338 * target.c (target_save_record): Add argument.
10339 * record-full.c (record_full_save): Add 'self' argument.
10340 (record_full_save): Add 'self' argument.
10341
630d6a4a
TT
103422014-02-19 Tom Tromey <tromey@redhat.com>
10343
10344 * target.h (struct target_ops) <to_info_record>: Add argument.
10345 * target.c (target_info_record): Add argument.
10346 * record.c (info_record_command): Add argument.
10347 * record-full.c (record_full_info): Add 'self' argument.
10348 * record-btrace.c (record_btrace_info): Add 'self' argument.
10349
c6cd7c02
TT
103502014-02-19 Tom Tromey <tromey@redhat.com>
10351
10352 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10353 * target.c (target_stop_recording): Add argument.
10354 * record.c (record_stop): Add argument.
10355 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10356 argument.
10357
39c49f83
TT
103582014-02-19 Tom Tromey <tromey@redhat.com>
10359
10360 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10361 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10362 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10363 argument.
10364 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10365 (_initialize_amd64_linux_nat): Use it.
10366 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10367 (_initialize_i386_linux_nat): Use it.
10368
1777056d
TT
103692014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10372 * target.c (target_teardown_btrace): Add argument.
10373 * remote.c (remote_teardown_btrace): Add 'self' argument.
10374 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10375 argument.
10376 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10377 argument.
10378
25e95349
TT
103792014-02-19 Tom Tromey <tromey@redhat.com>
10380
10381 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10382 * target.c (target_disable_btrace): Add argument.
10383 * remote.c (remote_disable_btrace): Add 'self' argument.
10384 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10385 argument.
10386 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10387 argument.
10388
e3c49f88
TT
103892014-02-19 Tom Tromey <tromey@redhat.com>
10390
10391 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10392 * target.c (target_enable_btrace): Add argument.
10393 * remote.c (remote_enable_btrace): Add 'self' argument.
10394 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10395 argument.
10396 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10397 argument.
10398
fe38f897
TT
103992014-02-19 Tom Tromey <tromey@redhat.com>
10400
10401 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10402 (target_can_use_agent): Add argument.
10403 * target.c (update_current_target): Update.
10404 * remote.c (remote_can_use_agent): Add 'self' argument.
10405 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10406
2c152180
TT
104072014-02-19 Tom Tromey <tromey@redhat.com>
10408
10409 * target.h (struct target_ops) <to_use_agent>: Add argument.
10410 (target_use_agent): Add argument.
10411 * target.c (update_current_target): Update.
10412 * remote.c (remote_use_agent): Add 'self' argument.
10413 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10414
a893e81f
TT
104152014-02-19 Tom Tromey <tromey@redhat.com>
10416
10417 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10418 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10419 (target_traceframe_info): Add argument.
10420 * target.c (update_current_target): Update.
10421 * remote.c (remote_traceframe_info): Add 'self' argument.
10422 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10423
c686c57f
TT
104242014-02-19 Tom Tromey <tromey@redhat.com>
10425
10426 * target.h (target_static_tracepoint_markers_by_strid): Add
10427 argument.
10428 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10429 'self' argument.
10430 * target.c (update_current_target): Update.
10431 * remote.c (struct target_ops)
10432 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10433 * linux-nat.c (struct target_ops)
10434 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10435
61fc905d
TT
104362014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10439 Add argument.
10440 (target_static_tracepoint_marker_at): Add argument.
10441 * target.c (update_current_target): Update.
10442 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10443 argument.
10444
c378d69d
TT
104452014-02-19 Tom Tromey <tromey@redhat.com>
10446
10447 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10448 (target_set_permissions): Add argument.
10449 * target.c (update_current_target): Update.
10450 * remote.c (remote_set_permissions): Add 'self' argument.
10451 (remote_start_remote): Update.
10452
bd7ae0f5
TT
104532014-02-19 Tom Tromey <tromey@redhat.com>
10454
10455 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10456 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10457 (target_get_tib_address): Add argument.
10458 * target.c (update_current_target): Update.
10459 * remote.c (remote_get_tib_address): Add 'self' argument.
10460
d9e68a2c
TT
104612014-02-19 Tom Tromey <tromey@redhat.com>
10462
10463 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10464 (target_set_trace_notes): Add argument.
10465 * target.c (update_current_target): Update.
10466 * remote.c (remote_set_trace_notes): Add 'self' argument.
10467
4da384be
TT
104682014-02-19 Tom Tromey <tromey@redhat.com>
10469
10470 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10471 argument.
10472 (target_set_trace_buffer_size): Add argument.
10473 * target.c (update_current_target): Update.
10474 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10475
736d5b1f
TT
104762014-02-19 Tom Tromey <tromey@redhat.com>
10477
10478 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10479 argument.
10480 (target_set_circular_trace_buffer): Add argument.
10481 * target.c (update_current_target): Update.
10482 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10483 argument.
10484
37b25738
TT
104852014-02-19 Tom Tromey <tromey@redhat.com>
10486
10487 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10488 argument.
10489 (target_set_disconnected_tracing): Add argument.
10490 * target.c (update_current_target): Update.
10491 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10492
0e67620a
TT
104932014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target.h (struct target_ops)
10496 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10497 (target_get_min_fast_tracepoint_insn_len): Add argument.
10498 * target.c (update_current_target): Update.
10499 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10500 argument.
10501
88ee6f45
TT
105022014-02-19 Tom Tromey <tromey@redhat.com>
10503
10504 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10505 argument.
10506 (target_get_raw_trace_data): Add argument.
10507 * target.c (update_current_target): Update.
10508 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10509
181e3713
TT
105102014-02-19 Tom Tromey <tromey@redhat.com>
10511
10512 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10513 Add argument.
10514 (target_upload_trace_state_variables): Add argument.
10515 * target.c (update_current_target): Update.
10516 * remote.c (remote_upload_trace_state_variables): Add 'self'
10517 argument.
10518 (remote_start_remote): Update.
10519
ab6617cc
TT
105202014-02-19 Tom Tromey <tromey@redhat.com>
10521
10522 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10523 argument.
10524 (target_upload_tracepoints): Add argument.
10525 * target.c (update_current_target): Update.
10526 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10527 (remote_start_remote): Update.
10528
dc3decaf
TT
105292014-02-19 Tom Tromey <tromey@redhat.com>
10530
10531 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10532 (target_save_trace_data): Add argument.
10533 * target.c (update_current_target): Update.
10534 * remote.c (remote_save_trace_data): Add 'self' argument.
10535
4011015b
TT
105362014-02-19 Tom Tromey <tromey@redhat.com>
10537
10538 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10539 argument.
10540 * target.h (struct target_ops)
10541 <to_get_trace_state_variable_value>: Add argument.
10542 (target_get_trace_state_variable_value): Add argument.
10543 * target.c (update_current_target): Update.
10544 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10545 argument.
10546 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10547
bd4c6793
TT
105482014-02-19 Tom Tromey <tromey@redhat.com>
10549
10550 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10551 * target.h (struct target_ops) <to_trace_find>: Add argument.
10552 (target_trace_find): Add argument.
10553 * target.c (update_current_target): Update.
10554 * remote.c (remote_trace_find): Add 'self' argument.
10555 * ctf.c (ctf_trace_find): Add 'self' argument.
10556
74499f1b
TT
105572014-02-19 Tom Tromey <tromey@redhat.com>
10558
10559 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10560 (target_trace_stop): Add argument.
10561 * target.c (update_current_target): Update.
10562 * remote.c (remote_trace_stop): Add 'self' argument.
10563
db90e85c
TT
105642014-02-19 Tom Tromey <tromey@redhat.com>
10565
10566 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10567 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10568 argument.
10569 (target_get_tracepoint_status): Add argument.
10570 * target.c (update_current_target): Update.
10571 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10572
8bd200f1
TT
105732014-02-19 Tom Tromey <tromey@redhat.com>
10574
10575 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10576 * target.h (struct target_ops) <to_get_trace_status>: Add
10577 argument.
10578 (target_get_trace_status): Add argument.
10579 * target.c (update_current_target): Update.
10580 * remote.c (remote_get_trace_status): Add 'self' argument.
10581 (remote_start_remote, remote_can_download_tracepoint): Update.
10582 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10583
e2d1aae3
TT
105842014-02-19 Tom Tromey <tromey@redhat.com>
10585
10586 * target.h (struct target_ops) <to_trace_start>: Add argument.
10587 (target_trace_start): Add argument.
10588 * target.c (update_current_target): Update.
10589 * remote.c (remote_trace_start): Add 'self' argument.
10590
583f9a86
TT
105912014-02-19 Tom Tromey <tromey@redhat.com>
10592
10593 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10594 Add argument.
10595 (target_trace_set_readonly_regions): Add argument.
10596 * target.c (update_current_target): Update.
10597 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10598 argument.
10599
780b049c
TT
106002014-02-19 Tom Tromey <tromey@redhat.com>
10601
10602 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10603 argument.
10604 (target_disable_tracepoint): Add argument.
10605 * target.c (update_current_target): Update.
10606 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10607
46670d57
TT
106082014-02-19 Tom Tromey <tromey@redhat.com>
10609
10610 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10611 argument.
10612 (target_enable_tracepoint): Add argument.
10613 * target.c (update_current_target): Update.
10614 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10615
559d2b81
TT
106162014-02-19 Tom Tromey <tromey@redhat.com>
10617
10618 * target.h (struct target_ops) <to_download_trace_state_variable>:
10619 Add argument.
10620 (target_download_trace_state_variable): Add argument.
10621 * target.c (update_current_target): Update.
10622 * remote.c (remote_download_trace_state_variable): Add 'self'
10623 argument.
10624
a52a8357
TT
106252014-02-19 Tom Tromey <tromey@redhat.com>
10626
10627 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10628 argument.
10629 (target_can_download_tracepoint): Add argument.
10630 * target.c (update_current_target): Update.
10631 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10632
548f7808
TT
106332014-02-19 Tom Tromey <tromey@redhat.com>
10634
10635 * target.h (struct target_ops) <to_download_tracepoint>: Add
10636 argument.
10637 (target_download_tracepoint): Add argument.
10638 * target.c (update_current_target): Update.
10639 * remote.c (remote_download_tracepoint): Add 'self' argument.
10640
ecae04e1
TT
106412014-02-19 Tom Tromey <tromey@redhat.com>
10642
10643 * target.h (struct target_ops) <to_trace_init>: Add argument.
10644 (target_trace_init): Add argument.
10645 * target.c (update_current_target): Update.
10646 * remote.c (remote_trace_init): Add 'self' argument.
10647
fab5aa7c
TT
106482014-02-19 Tom Tromey <tromey@redhat.com>
10649
10650 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10651 * target.c (target_fileio_readlink): Add argument.
10652 * remote.c (remote_hostio_readlink): Add 'self' argument.
10653 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10654
dbbca37d
TT
106552014-02-19 Tom Tromey <tromey@redhat.com>
10656
10657 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10658 * target.c (target_fileio_unlink): Add argument.
10659 * remote.c (remote_hostio_unlink): Add 'self' argument.
10660 (remote_file_delete): Update.
10661 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10662
df39ea25
TT
106632014-02-19 Tom Tromey <tromey@redhat.com>
10664
10665 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10666 * target.c (target_fileio_close): Add argument.
10667 * remote.c (remote_hostio_close): Add 'self' argument.
10668 (remote_hostio_close_cleanup): Update.
10669 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10670 Update.
10671 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10672
a3be983c
TT
106732014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10676 * target.c (target_fileio_pread): Add argument.
10677 * remote.c (remote_hostio_pread): Add 'self' argument.
10678 (remote_bfd_iovec_pread, remote_file_get): Update.
10679 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10680
0d866f62
TT
106812014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10684 * target.c (target_fileio_pwrite): Add argument.
10685 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10686 (remote_file_put): Update.
10687 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10688
cd897586
TT
106892014-02-19 Tom Tromey <tromey@redhat.com>
10690
10691 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10692 * target.c (target_fileio_open): Add argument.
10693 * remote.c (remote_hostio_open): Add 'self' argument.
10694 (remote_bfd_iovec_open): Add 'self' argument.
10695 (remote_file_put): Add 'self' argument.
10696 (remote_file_get): Add 'self' argument.
10697 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10698
78eff0ec
TT
106992014-02-19 Tom Tromey <tromey@redhat.com>
10700
10701 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10702 Add argument.
10703 (target_can_run_breakpoint_commands): Add argument.
10704 * target.c (update_current_target): Update.
10705 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10706 argument.
10707 (remote_insert_breakpoint): Add 'self' argument.
10708 (remote_insert_hw_breakpoint): Add 'self' argument.
10709 (remote_can_run_breakpoint_commands): Add 'self' argument.
10710
efcc2da7
TT
107112014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target.h (struct target_ops)
10714 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10715 (target_supports_evaluation_of_breakpoint_conditions): Add
10716 argument.
10717 * target.c (update_current_target): Update.
10718 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10719 argument.
10720 (remote_insert_breakpoint): Add 'self' argument.
10721 (remote_insert_hw_breakpoint): Add 'self' argument.
10722 (remote_supports_cond_breakpoints): Add 'self' argument.
10723
6de37a3a
TT
107242014-02-19 Tom Tromey <tromey@redhat.com>
10725
10726 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10727 argument.
10728 (target_supports_string_tracing): Add argument.
10729 * target.c (update_current_target): Update.
10730 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10731
2bfc0540
TT
107322014-02-19 Tom Tromey <tromey@redhat.com>
10733
10734 * target.h (struct target_ops)
10735 <to_supports_disable_randomization>: Add argument.
10736 * target.c (find_default_supports_disable_randomization): Add
10737 argument.
10738 (target_supports_disable_randomization): Add argument.
10739 (find_default_supports_disable_randomization): Add 'self'
10740 argument.
10741 * remote.c (extended_remote_supports_disable_randomization): Add
10742 'self' argument.
10743 (remote_supports_disable_randomization): Add 'self' argument.
10744 (extended_remote_create_inferior): Update.
10745 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10746 'self' argument.
10747
7d178d6a
TT
107482014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target.h (struct target_ops)
10751 <to_supports_enable_disable_tracepoint>: Add argument.
10752 (target_supports_enable_disable_tracepoint): Add argument.
10753 * target.c (update_current_target): Update.
10754 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10755 argument.
10756
86ce2668
TT
107572014-02-19 Tom Tromey <tromey@redhat.com>
10758
10759 * target.h (struct target_ops) <to_supports_multi_process>: Add
10760 argument.
10761 (target_supports_multi_process): Add argument.
10762 * target.c (update_current_target): Update.
10763 * remote.c (remote_supports_multi_process): Add 'self' argument.
10764 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10765 argument.
10766 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10767 argument.
10768
4c612759
TT
107692014-02-19 Tom Tromey <tromey@redhat.com>
10770
10771 * target.h (struct target_ops) <to_execution_direction>: Add
10772 argument.
10773 (target_execution_direction): Add argument.
10774 * target.c (default_execution_direction): Add 'self' argument.
10775 * record-full.c (record_full_execution_direction): Add 'self'
10776 argument.
10777
19db3e69
TT
107782014-02-19 Tom Tromey <tromey@redhat.com>
10779
10780 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10781 argument.
10782 (target_can_execute_reverse): Add argument.
10783 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10784 * record-full.c (record_full_can_execute_reverse): Add 'self'
10785 argument.
10786 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10787 argument.
10788
1e6b91a4
TT
107892014-02-19 Tom Tromey <tromey@redhat.com>
10790
10791 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10792 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10793 argument.
10794 (target_get_ada_task_ptid): Add argument.
10795 * target.c (update_current_target): Update.
10796 (default_get_ada_task_ptid): Add 'self' argument.
10797 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10798 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10799 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10800 argument.
10801 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10802 argument.
10803 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10804 argument.
10805 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10806 argument.
10807 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10808 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10809 argument.
10810
3c80fb48
TT
108112014-02-19 Tom Tromey <tromey@redhat.com>
10812
10813 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10814 (target_goto_bookmark): Add argument.
10815 * target.c (dummy_goto_bookmark): Add 'self' argument.
10816 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10817
dd0e2830
TT
108182014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10821 (target_get_bookmark): Add argument.
10822 * target.c (dummy_get_bookmark): Add 'self' argument.
10823 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10824
fc6691b2
TT
108252014-02-19 Tom Tromey <tromey@redhat.com>
10826
10827 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10828 argument.
10829 (target_make_corefile_notes): Add argument.
10830 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10831 * procfs.c (procfs_make_note_section): Add 'self' argument.
10832 (procfs_make_note_section): Add 'self' argument.
10833 (procfs_make_note_section): Add 'self' argument.
10834 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10835 argument.
10836 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10837 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10838 * exec.c (exec_make_note_section): Add 'self' argument.
10839 (exec_make_note_section): Add 'self' argument.
10840
2e73927c
TT
108412014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target.h (struct target_ops) <to_find_memory_regions>: Add
10844 argument.
10845 (target_find_memory_regions): Add argument.
10846 * target.c (dummy_find_memory_regions): Add 'self' argument.
10847 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10848 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10849 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10850 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10851 * exec. (exec_do_find_memory_regions): New global.
10852 (exec_set_find_memory_regions): Rewrite.
10853 (exec_find_memory_regions): New function.
10854 (init_exec_ops): Use exec_find_memory_regions.
10855
2a9a2795
TT
108562014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target.h (struct target_ops) <to_supports_non_stop>: Add
10859 argument.
10860 * target.c (find_default_supports_non_stop): Add argument.
10861 (target_supports_non_stop): Add argument.
10862 (find_default_supports_non_stop): Add 'self' argument.
10863 * remote.c (remote_supports_non_stop): Add 'self' argument.
10864 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10865
4ab76ea3
TT
108662014-02-19 Tom Tromey <tromey@redhat.com>
10867
10868 * target.h (struct target_ops) <to_log_command>: Add argument.
10869 (target_log_command): Add argument.
10870 * serial.h (serial_log_command): Add 'self' argument.
10871 * serial.c (serial_log_command): Add 'self' argument.
10872
8dd27370
TT
108732014-02-19 Tom Tromey <tromey@redhat.com>
10874
10875 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10876 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10877 argument.
10878 (target_pid_to_exec_file): Add argument.
10879 * target.c (debug_to_pid_to_exec_file): Add argument.
10880 (update_current_target): Update.
10881 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10882 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10883 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10884 (linux_handle_extended_wait): Update.
10885 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10886 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10887 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10888 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10889
1aac633b
TT
108902014-02-19 Tom Tromey <tromey@redhat.com>
10891
10892 * target.h (struct target_ops) <to_rcmd>: Add argument.
10893 (target_rcmd): Add argument.
10894 * target.c (debug_to_rcmd): Add argument.
10895 (update_current_target, do_monitor_command): Update.
10896 * remote.c (remote_rcmd): Add 'self' argument.
10897 * monitor.c (monitor_rcmd): Add 'self' argument.
10898
1eab8a48
TT
108992014-02-19 Tom Tromey <tromey@redhat.com>
10900
10901 * windows-nat.c (windows_stop): Add 'self' argument.
10902 * target.h (struct target_ops) <to_stop>: Add argument.
10903 * target.c (target_stop): Add argument.
10904 (debug_to_stop): Add argument.
10905 (update_current_target): Update.
10906 * remote.c (remote_stop): Add 'self' argument.
10907 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10908 (gdbsim_cntrl_c): Update.
10909 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10910 * procfs.c (procfs_stop): Add 'self' argument.
10911 * nto-procfs.c (procfs_stop): Add 'self' argument.
10912 * monitor.c (monitor_stop): Add 'self' argument.
10913 (monitor_open): Update.
10914 * linux-nat.c (linux_nat_stop): Add argument.
10915 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10916 * gnu-nat.c (gnu_stop): Add 'self' argument.
10917 * darwin-nat.c (darwin_stop): Add 'self' argument.
10918
503a628d
TT
109192014-02-19 Tom Tromey <tromey@redhat.com>
10920
10921 * target.h (struct target_ops) <to_thread_name>: Add argument.
10922 * target.c (target_thread_name): Add argument.
10923 (update_current_target): Update.
10924 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10925
c15906d8
TT
109262014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target.h (struct target_ops) <to_extra_thread_info>: Add
10929 argument.
10930 (target_extra_thread_info): Add argument.
10931 * target.c (update_current_target): Update.
10932 * remote.c (remote_threads_extra_info): Add 'self' argument.
10933 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10934 argument.
10935 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10936 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10937 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10938 argument.
10939 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10940 argument.
10941 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10942 argument.
10943 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10944 argument.
10945
daf5e9b6
TT
109462014-02-19 Tom Tromey <tromey@redhat.com>
10947
10948 * target.h (struct target_ops) <to_program_signals>: Add argument.
10949 * target.c (target_program_signals): Add argument.
10950 * remote.c (remote_program_signals): Add 'self' argument.
10951
94bedb42
TT
109522014-02-19 Tom Tromey <tromey@redhat.com>
10953
10954 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10955 * target.c (target_pass_signals): Add argument.
10956 * remote.c (remote_pass_signals): Add 'self' argument.
10957 (remote_start_remote): Update.
10958 * procfs.c (procfs_pass_signals): Add 'self' argument.
10959 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10960 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10961 (linux_nat_create_inferior, linux_nat_attach): Update.
10962
da82bd6b
TT
109632014-02-19 Tom Tromey <tromey@redhat.com>
10964
10965 * windows-nat.c (windows_can_run): Add 'self' argument.
10966 * target.h (struct target_ops) <to_can_run>: Add argument.
10967 (target_can_run): Add argument.
10968 * target.c (debug_to_can_run): Add argument.
10969 (update_current_target): Update.
10970 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10971 * inf-child.c (inf_child_can_run): Add 'self' argument.
10972 * go32-nat.c (go32_can_run): Add 'self' argument.
10973
d796e1d6
TT
109742014-02-19 Tom Tromey <tromey@redhat.com>
10975
10976 * target.h (struct target_ops) <to_has_exited>: Add argument.
10977 (target_has_exited): Add argument.
10978 * target.c (debug_to_has_exited): Add argument.
10979 (update_current_target): Update.
10980
ff214e67
TT
109812014-02-19 Tom Tromey <tromey@redhat.com>
10982
10983 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10984 argument.
10985 (target_set_syscall_catchpoint): Add argument.
10986 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10987 argument.
10988 * target.c (update_current_target): Update.
10989
758e29d2
TT
109902014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10993 argument.
10994 (target_remove_exec_catchpoint): Add argument.
10995 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10996 (update_current_target): Update.
10997 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10998 argument.
10999
ba025e51
TT
110002014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11003 argument.
11004 (target_insert_exec_catchpoint): Add argument.
11005 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11006 (update_current_target): Update.
11007 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11008 argument.
11009
e98cf0cd
TT
110102014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11013 argument.
11014 (target_remove_vfork_catchpoint): Add argument.
11015 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11016 (update_current_target): Update.
11017 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11018 argument.
11019
3ecc7da0
TT
110202014-02-19 Tom Tromey <tromey@redhat.com>
11021
11022 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11023 argument.
11024 (target_insert_vfork_catchpoint): Add argument.
11025 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11026 (update_current_target): Update.
11027 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11028 argument.
11029
973fc227
TT
110302014-02-19 Tom Tromey <tromey@redhat.com>
11031
11032 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11033 argument.
11034 (target_remove_fork_catchpoint): Add argument.
11035 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11036 (update_current_target): Update.
11037 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11038 argument.
11039
a863b201
TT
110402014-02-19 Tom Tromey <tromey@redhat.com>
11041
11042 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11043 argument.
11044 (target_insert_fork_catchpoint): Add argument.
11045 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11046 (update_current_target): Update.
11047 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11048 argument.
11049
2e97a79e
TT
110502014-02-19 Tom Tromey <tromey@redhat.com>
11051
11052 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11053 argument.
11054 (target_post_startup_inferior): Add argument.
11055 * target.c (debug_to_post_startup_inferior): Add argument.
11056 (update_current_target): Update.
11057 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11058 argument.
11059 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11060 argument.
11061 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11062 argument.
11063 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11064 argument.
11065 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11066 'self' argument.
11067 (super_post_startup_inferior): Likewise.
11068 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11069 'self' argument.
11070 (super_post_startup_inferior): Likewise.
11071 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11072 Add 'self' argument.
11073 (super_post_startup_inferior): Likewise.
11074
71a9f134
TT
110752014-02-19 Tom Tromey <tromey@redhat.com>
11076
11077 * target.h (struct target_ops) <to_load>: Add argument.
11078 * target.c (target_load): Add argument.
11079 (debug_to_load): Add argument.
11080 (update_current_target): Update.
11081 * remote.c (remote_load): Add 'self' argument.
11082 * remote-sim.c (gdbsim_load): Add 'self' argument.
11083 * remote-mips.c (mips_load): Add 'self' argument.
11084 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11085 * monitor.c (monitor_load): Add 'self' argument.
11086 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11087
0a4f40a2
TT
110882014-02-19 Tom Tromey <tromey@redhat.com>
11089
11090 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11091 (target_terminal_info): Add argument.
11092 * target.c (debug_to_terminal_info): Add argument.
11093 (default_terminal_info): Likewise.
11094 * inflow.c (child_terminal_info): Add 'self' argument.
11095 * inferior.h (child_terminal_info): Add 'self' argument.
11096 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11097
ae3bd431
TT
110982014-02-19 Tom Tromey <tromey@redhat.com>
11099
11100 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11101 argument.
11102 (target_terminal_save_ours): Add argument.
11103 * target.c (debug_to_terminal_save_ours): Add argument.
11104 (update_current_target): Update.
11105 * inflow.c (terminal_save_ours): Add 'self' argument.
11106 * inferior.h (terminal_save_ours): Add 'self' argument.
11107
e3594fd1
TT
111082014-02-19 Tom Tromey <tromey@redhat.com>
11109
11110 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11111 (target_terminal_ours): Add argument.
11112 * target.c (debug_to_terminal_ours): Add argument.
11113 (update_current_target): Update.
11114 * remote.c (remote_terminal_ours): Add 'self' argument.
11115 (remote_close): Update.
11116 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11117 * inflow.c (terminal_ours): Add 'self' argument.
11118 * inferior.h (terminal_ours): Add 'self' argument.
11119 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11120
2e1e1a19
TT
111212014-02-19 Pedro Alves <palves@redhat.com>
11122 Tom Tromey <tromey@redhat.com>
11123
11124 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11125 argument.
11126 (target_terminal_ours_for_output): Add argument.
11127 * target.c (debug_to_terminal_ours_for_output): Add argument.
11128 (update_current_target): Update.
11129 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11130 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11131 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11132
d2f640d4
TT
111332014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * target.h (struct target_ops) <to_terminal_inferior>: Add
11136 argument.
11137 * target.c (target_terminal_inferior): Add argument.
11138 (update_current_target): Update.
11139 * remote.c (remote_terminal_inferior): Add 'self' argument.
11140 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11141 * inflow.c (terminal_inferior): Add 'self' argument.
11142 * inferior.h (terminal_inferior): Add 'self' argument.
11143 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11144 (go32_terminal_inferior): Add 'self' argument.
11145
c42bf286
TT
111462014-02-19 Tom Tromey <tromey@redhat.com>
11147
11148 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11149 (target_terminal_init): Add argument.
11150 * target.c (debug_to_terminal_init): Add argument.
11151 (update_current_target): Update.
11152 * inflow.c (terminal_init_inferior): Add 'self' argument.
11153 * inferior.h (terminal_init_inferior): Add 'self' argument.
11154 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11155 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11156
c3a5ff89
TT
111572014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target.h (struct target_ops)
11160 <to_can_accel_watchpoint_condition>: Add argument.
11161 (target_can_accel_watchpoint_condition): Add argument.
11162 * target.c (debug_to_can_accel_watchpoint_condition): Add
11163 argument.
11164 (update_current_target): Update.
11165 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11166 'self' argument.
11167
31568a15
TT
111682014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11171 Add argument.
11172 (target_region_ok_for_hw_watchpoint): Add argument.
11173 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11174 (default_region_ok_for_hw_watchpoint): Add argument.
11175 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11176 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11177 argument.
11178 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11179 argument.
11180 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11181 argument.
11182 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11183 'self' argument.
11184 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11185 'self' argument.
11186 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11187 'self' argument.
11188 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11189 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11190 'self' argument.
11191 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11192 Add 'self' argument.
11193
7bb99c53
TT
111942014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11197 argument.
11198 (target_insert_watchpoint): Add argument.
11199 * target.c (debug_to_insert_watchpoint): Add argument.
11200 (update_current_target): Update.
11201 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11202 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11203 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11204 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11205 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11206 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11207 argument.
11208 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11209 (procfs_insert_hw_watchpoint): Add 'self' argument.
11210 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11211 argument.
11212 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11213 argument.
11214 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11215 argument.
11216 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11217 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11218 argument.
11219 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11220 'self' argument.
11221
11b5219a
TT
112222014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11225 argument.
11226 (target_remove_watchpoint): Add argument.
11227 * target.c (debug_to_remove_watchpoint): Add argument.
11228 (update_current_target): Update.
11229 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11230 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11231 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11232 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11233 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11234 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11235 argument.
11236 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11237 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11238 argument.
11239 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11240 argument.
11241 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11242 argument.
11243 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11244 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11245 argument.
11246 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11247 'self' argument.
11248
a64dc96c
TT
112492014-02-19 Tom Tromey <tromey@redhat.com>
11250
11251 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11252 argument.
11253 (target_remove_hw_breakpoint): Add argument.
11254 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11255 (update_current_target): Update.
11256 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11257 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11258 argument.
11259 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11260 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11261 argument.
11262 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11263 'self' argument.
11264
23a26771
TT
112652014-02-19 Tom Tromey <tromey@redhat.com>
11266
11267 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11268 argument.
11269 (target_insert_hw_breakpoint): Add argument.
11270 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11271 (update_current_target): Update.
11272 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11273 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11274 argument.
11275 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11276 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11277 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11278 argument.
11279 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11280 'self' argument.
11281
5461485a
TT
112822014-02-19 Tom Tromey <tromey@redhat.com>
11283
11284 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11285 argument.
11286 (target_can_use_hardware_watchpoint): Add argument.
11287 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11288 (update_current_target): Update.
11289 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11290 argument.
11291 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11292 argument.
11293 * remote.c (remote_check_watch_resources): Add 'self' argument.
11294 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11295 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11296 argument.
11297 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11298 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11299 argument.
11300 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11301 argument.
11302 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11303 argument.
11304 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11305 argument.
11306 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11307 argument.
11308 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11309 argument.
11310 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11311 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11312 argument.
11313 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11314 'self' argument.
11315
f045800c
TT
113162014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * target.h (struct target_ops) <to_post_attach>: Add argument.
11319 (target_post_attach): Add argument.
11320 * target.c (debug_to_post_attach): Add argument.
11321 (update_current_target): Update.
11322 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11323 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11324 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11325 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11326 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11327
de90e03d
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * windows-nat.c (windows_close): Add 'self' argument.
11331 * tracepoint.c (tfile_close): Add 'self' argument.
11332 * target.h (struct target_ops) <to_close>: Add argument.
11333 * target.c (target_close): Add argument.
11334 (update_current_target): Update.
11335 * remote.c (remote_close): Add 'self' argument.
11336 * remote-sim.c (gdbsim_close): Add 'self' argument.
11337 * remote-mips.c (mips_close): Add 'self' argument.
11338 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11339 * record-full.c (record_full_close): Add 'self' argument.
11340 * record-btrace.c (record_btrace_close): Add 'self' argument.
11341 * monitor.h (monitor_close): Add 'self' argument.
11342 * monitor.c (monitor_close): Add 'self' argument.
11343 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11344 * linux-nat.c (linux_nat_close): Add argument.
11345 * go32-nat.c (go32_close): Add 'self' argument.
11346 * exec.c (exec_close_1): Add 'self' argument.
11347 * ctf.c (ctf_close): Add 'self' argument.
11348 * corelow.c (core_close): Add 'self' argument.
11349 (core_close_cleanup): Update.
11350 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11351 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11352
9dd130a0
TT
113532014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * remote.c (remote_load): New function.
11356 (init_remote_ops): Use it.
11357
46917d26
TT
113582014-02-19 Tom Tromey <tromey@redhat.com>
11359
11360 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11361 argument.
11362 * common/linux-btrace.h (linux_supports_btrace): Update.
11363 * remote.c (remote_supports_btrace): Add "self" argument.
11364 * target-delegates.c: Rebuild.
11365 * target.c (target_supports_btrace): Remove.
11366 * target.h (struct target_ops) <to_supports_btrace>: Add
11367 target_ops argument.
11368 (target_supports_btrace): New define.
11369
6b84065d
TT
113702014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * record-full.c (record_full_beneath_to_resume_ops)
11373 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11374 (record_full_beneath_to_wait)
11375 (record_full_beneath_to_store_registers_ops)
11376 (record_full_beneath_to_store_registers)
11377 (record_full_beneath_to_xfer_partial_ops)
11378 (record_full_beneath_to_xfer_partial)
11379 (record_full_beneath_to_insert_breakpoint_ops)
11380 (record_full_beneath_to_insert_breakpoint)
11381 (record_full_beneath_to_remove_breakpoint_ops)
11382 (record_full_beneath_to_remove_breakpoint)
11383 (record_full_beneath_to_stopped_by_watchpoint)
11384 (record_full_beneath_to_stopped_data_address)
11385 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11386 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11387 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11388 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11389 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11390 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11391 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11392 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11393 (record_full_resume, record_full_wait_1)
11394 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11395 (record_full_store_registers, record_full_xfer_partial)
11396 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11397 (record_full_async, record_full_core_xfer_partial): Use target
11398 delegation.
11399 * target-delegates.c: Rebuild.
11400 * target.c (current_xfer_partial): Remove.
11401 (update_current_target): Do not INHERIT or de_fault
11402 to_insert_breakpoint, to_remove_breakpoint,
11403 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11404 to_is_async_p, to_async. Do not set to_xfer_partial field.
11405 (default_xfer_partial): Simplify.
11406 (current_xfer_partial): Remove.
11407 (target_wait, target_resume): Simplify.
11408 (find_default_can_async_p, find_default_is_async_p): Update.
11409 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11410 to_xfer_partial, to_stopped_by_watchpoint,
11411 to_stopped_data_address.
11412 (target_store_registers): Simplify.
11413 (forward_target_remove_breakpoint)
11414 (forward_target_insert_breakpoint): Remove.
11415 (target_remove_breakpoint, target_insert_breakpoint)
11416 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11417 * target.h (struct target_ops) <to_resume, to_wait,
11418 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11419 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11420 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11421 markup.
11422 (forward_target_remove_breakpoint)
11423 (forward_target_insert_breakpoint): Remove.
11424 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11425 directly.
11426 (record_btrace_insert_breakpoint): Delegate directly.
11427
1101cb7b
TT
114282014-02-19 Tom Tromey <tromey@redhat.com>
11429
11430 PR build/7701:
11431 * target-delegates.c: New file.
11432 * target.c: Include target-delegates.c.
11433 (init_dummy_target): Call install_dummy_methods.
11434 (complete_target_initialization): Call install_delegators.
11435 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11436 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11437 * make-target-delegates: New file.
11438
8b06beed
TT
114392014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * record.c (find_record_target): Use find_target_at.
11442 * target.c (find_target_at): New function.
11443 * target.h (find_target_at): Declare.
11444
6a109b6b
TT
114452014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11448 Add 'ops' argument.
11449 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11450 'ops' argument.
11451 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11452 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11453 'ops' argument.
11454 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11455 argument.
11456 * linux-nat.c (save_sigtrap): Update.
11457 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11458 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11459 (linux_nat_close): Update.
11460 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11461 argument.
11462 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11463 argument.
11464 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11465 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11466 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11467 (tmp_to_async): Add 'ops' argument.
11468 (record_full_stopped_by_watchpoint, record_full_async)
11469 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11470 argument.
11471 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11472 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11473 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11474 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11475 (remote_is_async_p, remote_async): Add 'ops' argument.
11476 (remote_stopped_data_address): Update.
11477 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11478 * target.c (update_current_target)
11479 (find_default_can_async_p, find_default_is_async_p): Update.
11480 (init_dummy_target): Update.
11481 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11482 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11483 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11484 (target_can_async_p, target_is_async_p, target_async)
11485 (target_stopped_by_watchpoint): Update.
11486
e095146b
YQ
114872014-02-19 Yao Qi <yao@codesourcery.com>
11488
11489 PR gdb/16220
11490 * gdbarch.sh: Remove startup_gdbarch.
11491 * gdbarch.c: Regenerated.
11492 * gdbarch.h: Likewise.
11493
bc3c6b36
KB
114942014-02-17 Kevin Buettner <kevinb@redhat.com>
11495
11496 * rl78-tdep.c (rl78_g10_register_name): New function.
11497 (rl78_return_value): Add g10 support.
11498 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11499 g10.
11500
98dc0167 115012014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11502
11503 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11504 (SUBDIR_GUILE_SRCS): Ditto.
11505 (scm-gsmob.o): Ditto.
11506
842c05cd
YQ
115072014-02-17 Yao Qi <yao@codesourcery.com>
11508
11509 * gnu-nat.c (ILL_RPC): Declare defined function.
11510
25c0bd04
YQ
115112014-02-17 Yao Qi <yao@codesourcery.com>
11512
11513 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11514 mach_msg_type_number_t.
11515 (gnu_write_inferior): Likewise.
11516
a9a758e3
YQ
115172014-02-17 Yao Qi <yao@codesourcery.com>
11518
11519 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11520 in format string.
11521 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11522 (inf_validate_procs, inf_signal): Likewise.
11523 (S_exception_raise_request): Likewise.
11524 (do_mach_notify_dead_name): Likewise.
11525 (steal_exc_port): Likewise.
11526 (gnu_read_inferior): Change 'copy_count''s type to
11527 mach_msg_type_number_t.
11528 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11529 format string.
11530
bae8023e
TS
115312014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11532
c82f56d9
TS
11533 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11534 flag. Adjust all users; in particular...
11535 (gnu_wait): ..., don't decrement its value in here...
11536 (gnu_create_inferior): ..., and instead set the flag in here,
11537 around the startup_inferior call, and call that one with
11538 START_INFERIOR_TRAPS_EXPECTED.
11539
3398af6a
TS
11540 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11541 (ILL_RPC): ... new macro.
11542 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11543 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11544 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11545 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11546 functions with ILL_RPC macro.
11547 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11548 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11549 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11550 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11551 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11552 (S_proc_getlogin_reply, S_proc_getsid_reply)
11553 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11554 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11555 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11556 (S_proc_getnports_reply, S_proc_is_important_reply)
11557 (S_proc_get_code_reply): New stub functions, generated with
11558 ILL_RPC macro.
11559
d47642c9
TS
11560 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11561 collected the type check structures.
11562
bae8023e
TS
11563 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11564
8a55ffb0
DE
115652014-02-14 Doug Evans <dje@google.com>
11566
11567 * target.c (target_write_partial): Fix result type.
11568
c2853f3d
JM
115692014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11570
11571 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11572 the proper offsets to access fpregset_t.
11573
ac61d2db
SA
115742014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11575
11576 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11577 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11578 * h8300-tdep.c (setmachinelist): Remove global.
11579 * hppa-tdep.c (hppa_sigtramp): Remove global.
11580 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11581 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11582 * ravenscar-thread.c (update_target_observer): Remove global.
11583 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11584
9d2d0b8b
TT
115852014-02-12 Tom Tromey <tromey@redhat.com>
11586
11587 * common/rsp-low.c: Update comments.
11588 * common/rsp-low.h: Update comments.
11589
a7191e8b
TT
115902014-02-12 Tom Tromey <tromey@redhat.com>
11591
11592 * common/rsp-low.c (convert_ascii_to_int): Remove.
11593 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11594
ff0e980e
TT
115952014-02-12 Tom Tromey <tromey@redhat.com>
11596
11597 * common/rsp-low.h (unhexify): Don't declare.
11598 * common/rsp-low.c (unhexify): Remove.
11599
e9371aff
TT
116002014-02-12 Tom Tromey <tromey@redhat.com>
11601
11602 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11603 * common/rsp-low.c (convert_int_to_ascii): Remove.
11604
971dc0b8
TT
116052014-02-12 Tom Tromey <tromey@redhat.com>
11606
11607 * common/rsp-low.h (hexify): Don't declare.
11608 * common/rsp-low.c (hexify): Remove.
11609
0a822afb
TT
116102014-02-12 Tom Tromey <tromey@redhat.com>
11611
11612 * common/rsp-low.c (hexify): Never take strlen of argument.
11613
9f1b45b0
TT
116142014-02-12 Tom Tromey <tromey@redhat.com>
11615
11616 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11617 * remote.c (extended_remote_run, remote_rcmd)
11618 (remote_download_trace_state_variable, remote_save_trace_data)
11619 (remote_set_trace_notes): Update.
11620 * tracepoint.c (encode_source_string, tfile_write_status)
11621 (tfile_write_uploaded_tsv): Update.
11622
9c3d6531
TT
116232014-02-12 Tom Tromey <tromey@redhat.com>
11624
11625 * tracepoint.c: Include rsp-low.h.
11626 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11627 * remote.c: Include rsp-low.h.
11628 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11629 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11630 (remote_unescape_input): Move to common/rsp-low.c.
11631 * common/rsp-low.h: New file.
11632 * common/rsp-low.c: New file.
11633 * Makefile.in (SFILES): Add common/rsp-low.c.
11634 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11635 (COMMON_OBS): Add rsp-low.o.
11636 (rsp-low.o): New target.
11637
01fd3ea5
TT
116382014-02-12 Tom Tromey <tromey@redhat.com>
11639
11640 * utils.h: Include print-utils.h.
11641 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11642 (int_string, core_addr_to_string, core_addr_to_string_nz)
11643 (hex_string, hex_string_custom): Don't declare.
11644 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11645 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11646 (hex_string_custom, int_string, core_addr_to_string)
11647 (core_addr_to_string_nz, host_address_to_string): Move to
11648 common/print-utils.c.
11649 * common/print-utils.h: New file.
11650 * common/print-utils.c: New file
11651 * Makefile.in (SFILES): Add common/print-utils.c.
11652 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11653 (COMMON_OBS): Add print-utils.o.
11654 (print-utils.o): New target.
11655
9fb50108
TT
116562014-02-12 Tom Tromey <tromey@redhat.com>
11657
11658 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11659
0548b5db
MK
116602014-02-12 Mark Kettenis <kettenis@gnu.org>
11661
11662 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11663
493443a4
MK
116642014-02-12 Mark Kettenis <kettenis@gnu.org>
11665
11666 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11667 if a PT_IO ptrace request returns sucessfully but indicates that 0
11668 bytes were transferred.
11669
706d0883
PA
116702014-02-12 Pedro Alves <palves@redhat.com>
11671 Kevin Buettner <kevinb@redhat.com>
11672
11673 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11674 TYPE_INSTANCE_FLAG_CODE_SPACE.
11675
5caa2f0b
PA
116762014-02-12 Pedro Alves <palves@redhat.com>
11677
11678 * h8300-tdep.c (pseudo_from_raw_register)
11679 (raw_from_pseudo_register): New functions.
11680 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11681 them.
11682
76fd5f74
PA
116832014-02-12 Pedro Alves <palves@redhat.com>
11684
11685 * h8300-tdep.c (h8300_register_sim_regno): New function.
11686 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11687 gdbarch_register_sim_regno hook.
11688
8f008406
SA
116892014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11690
11691 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11692
195abc10
SA
116932014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11694
11695 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11696
93ffa5b9
MK
116972014-02-12 Mark Kettenis <kettenis@gnu.org>
11698
11699 * obsd-tdep.h (obsd_init_abi): New prototype.
11700 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11701 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11702 (obsd_init_abi): New functions.
11703 * i386obsd-tdep.c: Include "obsd-tdep.h".
11704 (i386obsd_init_abi): Call obsd_init_abi.
11705 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11706 (amd64obsd_init_abi): Call obsd_init_abi.
11707 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11708 obsd-tdep.c to gdb_target_obs.
11709
49caec94
JM
117102014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11711
11712 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11713 double float arguments to 16-byte in the argument slots.
11714
e1402065
DE
117152014-02-11 Doug Evans <xdje42@gmail.com>
11716
11717 * configure.ac: Don't crash if pkg-config is not found and guile
11718 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11719 in guile checks.
11720 * configure: Regenerate.
11721
edcc890f
YQ
117222014-02-11 Yao Qi <yao@codesourcery.com>
11723
11724 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11725 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11726 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11727 * gnu-nat.c (gnu_xfer_memory): Likewise.
11728 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11729 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11730 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11731 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11732
9b409511
YQ
117332014-02-11 Yao Qi <yao@codesourcery.com>
11734
11735 * target.h (enum target_xfer_error): Rename to ...
11736 (enum target_xfer_status): ... it. New. All users updated.
11737 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11738 New.
11739 (TARGET_XFER_STATUS_ERROR_P): New macro.
11740 (target_xfer_error_to_string): Remove declaration.
11741 (target_xfer_status_to_string): Declare.
11742 (target_xfer_partial_ftype): Adjust it.
11743 (struct target_ops) <to_xfer_partial>: Return
11744 target_xfer_status. Add argument xfered_len. Update
11745 comments.
11746 * target.c (target_xfer_error_to_string): Rename to ...
11747 (target_xfer_status_to_string): ... it. New. All callers
11748 updated.
11749 (target_read_live_memory): Likewise. Call target_xfer_partial
11750 instead of target_read.
11751 (memory_xfer_live_readonly_partial): Return
11752 target_xfer_status. Add argument xfered_len.
11753 (raw_memory_xfer_partial): Likewise.
11754 (memory_xfer_partial_1): Likewise.
11755 (memory_xfer_partial): Likewise.
11756 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11757 properly. Update debug message.
11758 (default_xfer_partial, current_xfer_partial): Likewise.
11759 (target_write_partial): Likewise.
11760 (target_read_partial): Likewise. All callers updated.
11761 (read_whatever_is_readable): Likewise.
11762 (target_write_with_progress): Likewise.
11763 (target_read_alloc_1): Likewise.
11764
11765 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11766 * auxv.c (procfs_xfer_auxv): Likewise.
11767 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11768 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11769 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11770 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11771 * corefile.c (read_memory): Adjust.
11772 * corelow.c (core_xfer_partial): Likewise.
11773 * ctf.c (ctf_xfer_partial): Likewise.
11774 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11775 updated.
11776 (darwin_xfer_partial): Likewise.
11777 * exec.c (section_table_xfer_memory_partial): Likewise. All
11778 callers updated.
11779 (exec_xfer_partial): Likewise.
11780 * exec.h (section_table_xfer_memory_partial): Update
11781 declaration.
11782 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11783 negative.
11784 (gnu_xfer_partial): Likewise.
11785 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11786 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11787 (ia64_hpux_xfer_solib_got): Likewise.
11788 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11789 type of 'partial_len' to ULONGEST.
11790 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11791 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11792 (linux_nat_xfer_partial): Likewise.
11793 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11794 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11795 * monitor.c (monitor_xfer_memory): Likewise.
11796 (monitor_xfer_partial): Likewise.
11797 * procfs.c (procfs_xfer_partial): Likewise.
11798 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11799 * record-full.c (record_full_xfer_partial): Likewise.
11800 (record_full_core_xfer_partial): Likewise.
11801 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11802 (gdbsim_xfer_partial): Likewise.
11803 * remote.c (remote_write_bytes_aux): Likewise. All callers
11804 updated.
11805 (remote_write_bytes, remote_read_bytes): Likewise. All
11806 callers updated.
11807 (remote_flash_erase): Likewise. All callers updated.
11808 (remote_write_qxfer): Likewise. All callers updated.
11809 (remote_read_qxfer): Likewise. All callers updated.
11810 (remote_xfer_partial): Likewise.
11811 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11812 (rs6000_xfer_shared_libraries): Likewise.
11813 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11814 (sol_thread_xfer_partial): Likewise.
11815 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11816 (sparc_xfer_partial): Likewise.
11817 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11818 updated.
11819 (spu_xfer_partial): Likewise.
11820 * spu-multiarch.c (spu_xfer_partial): Likewise.
11821 * tracepoint.c (tfile_xfer_partial): Likewise.
11822 * windows-nat.c (windows_xfer_memory): Likewise.
11823 (windows_xfer_shared_libraries): Likewise.
11824 (windows_xfer_partial): Likewise.
11825 * valprint.c: Replace 'target_xfer_error' with
11826 'target_xfer_status' in comments.
11827
a8e63083
JB
118282014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11829
11830 Checked in by Joel Brobecker <brobecker@adacore.com>.
11831 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11832
e86b67d3
JB
118332014-02-11 Joel Brobecker <brobecker@adacore.com>
11834
11835 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11836 function parameters.
11837
4b7d1f7f
WN
118382014-02-10 Will Newton <will.newton@linaro.org>
11839
11840 * elfread.c (elf_rel_plt_read): Look for a .got section if
11841 looking up .got.plt fails.
11842 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11843 on address passed to elf_gnu_ifunc_record_cache.
11844 (elf_gnu_ifunc_resolve_addr): Likewise.
11845 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11846
961842b2
JM
118472014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11848
11849 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11850 (X_RETTURN): New macro.
11851 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11852
11853 * sparc64-tdep.c (sparc64_init_abi): Hook
11854 sparc_in_function_epilogue_p.
11855
3f03e7b1
GB
118562014-02-10 Gary Benson <gbenson@redhat.com>
11857
11858 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11859 Rename name_matcher to symbol_matcher.
11860
96f861ef
GB
118612014-02-10 Gary Benson <gbenson@redhat.com>
11862
11863 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11864 Use expand_symtabs_file_matcher_ftype and
11865 expand_symtabs_symbol_matcher_ftype.
11866
ee01b665
JB
118672014-02-10 Joel Brobecker <brobecker@adacore.com>
11868
11869 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11870 (struct ada_symbol_cache): New.
11871 (ada_free_symbol_cache): Forward declare.
11872 (struct ada_pspace_data): New.
11873 (ada_pspace_data_handle): New static global.
11874 (get_ada_pspace_data, ada_pspace_data_cleanup)
11875 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11876 (cache_space, cache): Delete, now folded inside struct
11877 ada_pspace_data.
11878 (ada_get_symbol_cache): New function.
11879 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11880 implementation.
11881 (_initialize_ada_language): Remove initialization of cache_space.
11882 Move call to observer_attach_inferior_exit up, grouping it
11883 with the other observer registrations inside this function.
11884 Rename command to be more general. Add call to
11885 register_program_space_data_with_cleanup.
11886
143adbbf
JB
118872014-02-10 Joel Brobecker <brobecker@adacore.com>
11888
11889 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11890 ada_new_objfile_observer.
11891 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11892 (_initialize_tasks): Update uses of ada_new_objfile_observer
11893 and ada_tasks_normal_stop_observer.
11894
aa4fb036
JB
118952014-02-10 Joel Brobecker <brobecker@adacore.com>
11896
11897 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11898 returned by the 'Length attribute to integer.
11899
9dee8cc6
JB
119002014-02-10 Joel Brobecker <brobecker@adacore.com>
11901
11902 * ada-lang.c (_initialize_ada_language): Initialize
11903 cache_space obstack.
11904
3d9434b5
JB
119052014-02-10 Joel Brobecker <brobecker@adacore.com>
11906
11907 * ada-lang.c (HASH_SIZE): New macro.
11908 (struct cache_entry): New type.
11909 (cache_space, cache): New static globals.
11910 (ada_clear_symbol_cache, find_entry): New functions.
11911 (lookup_cached_symbol, cache_symbol): Implement.
11912 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11913 (_initialize_ada_language): Attach ada_new_objfile_observer
11914 and ada_free_objfile_observer.
11915
f0c5f9b2
JB
119162014-02-10 Joel Brobecker <brobecker@adacore.com>
11917
11918 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11919 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11920 struct block * parameter.
11921 (ada_lookup_symbol_list_worker): Constify local variable "block".
11922 Remove cast which is no longer necessary.
11923
ed3ef339
DE
119242014-02-10 Doug Evans <xdje42@gmail.com>
11925
11926 Add Guile as an extension language.
11927 * NEWS: Mention Guile scripting.
11928 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11929 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11930 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11931 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11932 (CLIBS): Add GUILE_LIBS.
11933 (install-guile): New rule.
11934 (guile.o): New rule.
11935 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11936 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11937 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11938 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11939 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11940 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11941 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11942 * configure.ac: New option --with-guile.
11943 * configure: Regenerate.
11944 * config.in: Regenerate.
11945 * auto-load.c: Remove #include "python/python.h". Add #include
11946 "gdb/section-scripts.h".
11947 (source_section_scripts): Handle Guile scripts.
11948 (_initialize_auto_load): Add name of Guile objfile script to
11949 scripts-directory help text.
11950 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11951 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11952 (struct breakpoint): New member scm_bp_object.
11953 * defs.h (enum command_control_type): New value guile_control.
11954 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11955 "extension.h".
11956 (show_user): Update comment.
11957 (_initialize_cli_cmds): Update help text for "show user". Update help
11958 text for max-user-call-depth.
11959 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11960 "extension.h".
11961 (multi_line_command_p): Add guile_control.
11962 (print_command_lines): Handle guile_control.
11963 (execute_control_command, recurse_read_control_structure): Ditto.
11964 (process_next_line): Recognize "guile" commands.
11965 * disasm.c (gdb_disassemble_info): Make non-static.
11966 * disasm.h: #include "dis-asm.h".
11967 (struct gdbarch): Add forward decl.
11968 (gdb_disassemble_info): Declare.
11969 * extension.c: #include "guile/guile.h".
11970 (extension_languages): Add guile.
11971 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11972 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11973 * gdbtypes.c (get_unsigned_type_max): New function.
11974 (get_signed_type_minmax): New function.
11975 * gdbtypes.h (get_unsigned_type_max): Declare.
11976 (get_signed_type_minmax): Declare.
11977 * guile/README: New file.
11978 * guile/guile-internal.h: New file.
11979 * guile/guile.c: New file.
11980 * guile/guile.h: New file.
11981 * guile/scm-arch.c: New file.
11982 * guile/scm-auto-load.c: New file.
11983 * guile/scm-block.c: New file.
11984 * guile/scm-breakpoint.c: New file.
11985 * guile/scm-disasm.c: New file.
11986 * guile/scm-exception.c: New file.
11987 * guile/scm-frame.c: New file.
11988 * guile/scm-gsmob.c: New file.
11989 * guile/scm-iterator.c: New file.
11990 * guile/scm-lazy-string.c: New file.
11991 * guile/scm-math.c: New file.
11992 * guile/scm-objfile.c: New file.
11993 * guile/scm-ports.c: New file.
11994 * guile/scm-pretty-print.c: New file.
11995 * guile/scm-safe-call.c: New file.
11996 * guile/scm-string.c: New file.
11997 * guile/scm-symbol.c: New file.
11998 * guile/scm-symtab.c: New file.
11999 * guile/scm-type.c: New file.
12000 * guile/scm-utils.c: New file.
12001 * guile/scm-value.c: New file.
12002 * guile/lib/gdb.scm: New file.
12003 * guile/lib/gdb/boot.scm: New file.
12004 * guile/lib/gdb/experimental.scm: New file.
12005 * guile/lib/gdb/init.scm: New file.
12006 * guile/lib/gdb/iterator.scm: New file.
12007 * guile/lib/gdb/printing.scm: New file.
12008 * guile/lib/gdb/types.scm: New file.
12009 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12010 (VPATH): Add $(GUILE_SRCDIR).
12011 (GUILE_DIR): New variable.
12012 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12013 (all): Add stamp-guile dependency.
12014 (stamp-guile): New rule.
12015 (clean-guile, install-guile, uninstall-guile): New rules.
12016 (install-only): Add install-guile dependency.
12017 (uninstall): Add uninstall-guile dependency.
12018 (clean): Add clean-guile dependency.
12019
ac020ec5
DE
120202014-02-09 Doug Evans <xdje42@gmail.com>
12021
12022 Revert this patch (which I approved, mea culpa).
12023
12024 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12025
12026 * Makefile.in (all-lib): Remove.
12027 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12028
2a081c59
JK
120292014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12030
12031 Fix Python stack corruption.
12032 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12033 gdb_py_longest.
12034
0a6bd22d
MK
120352014-02-08 Mark Kettenis <kettenis@gnu.org>
12036
12037 * Makefile.in (all-lib): Remove.
12038 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12039
1a860409
DE
120402014-02-07 Doug Evans <dje@google.com>
12041
12042 * extension-priv.h (extension_language_script_ops): Add comment.
12043 (extension_language_ops): Add comment.
caf5a491 12044 (active_ext_lang_state): Fix typo in comment.
1a860409 12045
d137e6dc
PA
120462014-02-07 Pedro Alves <palves@redhat.com>
12047
0dcb32c3 12048 PR breakpoints/16292
d137e6dc
PA
12049 * infrun.c (handle_signal_stop) <signal arrives while stepping
12050 over a breakpoint>: Switch back to the stepping thread.
12051
ce6d0892
YQ
120522014-02-07 Yao Qi <yao@codesourcery.com>
12053
12054 * target.c (target_xfer_partial): Return zero if LEN is zero.
12055
2ed4b548
YQ
120562014-02-07 Yao Qi <yao@codesourcery.com>
12057
12058 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12059 (ld_so_xfer_auxv): Likewise.
12060 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12061 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12062 * corelow.c (core_xfer_partial): Likewise.
12063 * ctf.c (ctf_xfer_partial): Likewise.
12064 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12065 (darwin_xfer_partial): Likewise.
12066 * exec.c (exec_xfer_partial): Likewise.
12067 * gnu-nat.c (gnu_xfer_partial): Likewise.
12068 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12069 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12070 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12071 * linux-nat.c (linux_xfer_siginfo): Likewise.
12072 (linux_proc_xfer_spu): Likewise.
12073 * procfs.c (procfs_xfer_partial): Likewise.
12074 * record-full.c (record_full_xfer_partial): Likewise.
12075 (record_full_core_xfer_partial): Likewise.
12076 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12077 * remote.c (remote_write_qxfer): Likewise.
12078 (remote_write_qxfer, remote_read_qxfer): Likewise.
12079 (remote_xfer_partial): Likewise.
12080 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12081 (rs6000_xfer_shared_libraries): Likewise.
12082 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12083 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12084 (spu_xfer_partial): Likewise.
12085 * target.c (memory_xfer_partial_1): Likewise.
12086 * tracepoint.c (tfile_xfer_partial): Likewise.
12087 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12088 (windows_xfer_partial): Likewise.
12089
c09f20e4
YQ
120902014-02-07 Yao Qi <yao@codesourcery.com>
12091
12092 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12093 comments.
12094 (core_xfer_shared_libraries_aix): Likewise.
12095 * gdbarch.c, gdbarch.h: Regenerated.
12096 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12097 ULONGEST. Change 'len_avail' type to ULONGEST.
12098 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12099 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12100 declaration.
12101 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12102
8635b3bf
YQ
121032014-02-07 Yao Qi <yao@codesourcery.com>
12104
12105 * corefile.c (memory_error): Get 'exception' from ERR and pass
12106 'exception' to throw_error.
12107
6dddc817
DE
121082014-02-06 Doug Evans <xdje42@gmail.com>
12109
12110 * configure.ac (libpython checking): Remove all but python.o from
12111 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12112 * configure: Regenerate.
12113
12114 * Makefile.in (SFILES): Add extension.c.
12115 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12116 (COMMON_OBS): Add extension.o.
12117 * extension.h: New file.
12118 * extension-priv.h: New file.
12119 * extension.c: New file.
12120
12121 * python/python-internal.h: #include "extension.h".
12122 (gdbpy_auto_load_enabled): Declare.
12123 (gdbpy_apply_val_pretty_printer): Declare.
12124 (gdbpy_apply_frame_filter): Declare.
12125 (gdbpy_preserve_values): Declare.
12126 (gdbpy_breakpoint_cond_says_stop): Declare.
12127 (gdbpy_breakpoint_has_cond): Declare.
12128 (void source_python_script_for_objfile): Delete.
12129 * python/python.c: #include "extension-priv.h".
12130 Delete inclusion of "observer.h".
12131 (extension_language_python): Moved here and renamed from
12132 script_language_python in py-auto-load.c.
12133 Redefined to be of type extension_language_defn.
12134 (python_extension_script_ops): New global.
12135 (python_extension_ops): New global.
12136 (struct python_env): New member previous_active.
12137 (restore_python_env): Call restore_active_ext_lang.
12138 (ensure_python_env): Call set_active_ext_lang.
12139 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12140 New arg extlang.
12141 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12142 New arg extlang.
12143 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12144 New arg extlang.
12145 (gdbpy_eval_from_control_command): Renamed from
12146 eval_python_from_control_command, made static. New arg extlang.
12147 (gdbpy_source_script) Renamed from source_python_script, made static.
12148 New arg extlang.
12149 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12150 result to int. New arg extlang.
12151 (gdbpy_source_objfile_script): Renamed from
12152 source_python_script_for_objfile, made static. New arg extlang.
12153 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12154 static. New args extlang, extlang_printers. Change result type to
12155 "void".
12156 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12157 static. New arg extlang. Rename arg printers to extlang_printers
12158 and change type to ext_lang_type_printers *.
12159 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12160 static. Replace argument arg with extlang, extlang_printers.
12161 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12162 (!HAVE_PYTHON, source_python_script): Delete.
12163 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12164 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12165 (!HAVE_PYTHON, start_type_printers): Delete.
12166 (!HAVE_PYTHON, apply_type_printers): Delete.
12167 (!HAVE_PYTHON, free_type_printers): Delete.
12168 (_initialize_python): Delete call to observer_attach_before_prompt.
12169 (finalize_python): Set/restore active extension language.
12170 (gdbpy_finish_initialization) Renamed from
12171 finish_python_initialization, made static. New arg extlang.
12172 (gdbpy_initialized): New function.
12173 * python/python.h: #include "extension.h". Delete #include
12174 "value.h", "mi/mi-cmds.h".
12175 (extension_language_python): Declare.
12176 (GDBPY_AUTO_FILE_NAME): Delete.
12177 (enum py_bt_status): Moved to extension.h and renamed to
12178 ext_lang_bt_status.
12179 (enum frame_filter_flags): Moved to extension.h.
12180 (enum py_frame_args): Moved to extension.h and renamed to
12181 ext_lang_frame_args.
12182 (finish_python_initialization): Delete.
12183 (eval_python_from_control_command): Delete.
12184 (source_python_script): Delete.
12185 (apply_val_pretty_printer): Delete.
12186 (apply_frame_filter): Delete.
12187 (preserve_python_values): Delete.
12188 (gdbpy_script_language_defn): Delete.
12189 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12190 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12191
12192 * auto-load.c: #include "extension.h".
12193 (GDB_AUTO_FILE_NAME): Delete.
12194 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12195 (script_language_gdb): Delete, moved to extension.c and renamed to
12196 extension_language_gdb.
12197 (source_gdb_script_for_objfile): Delete.
12198 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12199 (loaded_script): Change type of language member to
12200 struct extension_language_defn *.
12201 (init_loaded_scripts_info): Initialize
12202 unsupported_script_warning_printed.
12203 (maybe_add_script): Make static. Change type of language arg to
12204 struct extension_language_defn *.
12205 (clear_section_scripts): Reset unsupported_script_warning_printed.
12206 (auto_load_objfile_script_1): Rewrite to use extension language API.
12207 (auto_load_objfile_script): Make public. Remove support-compiled-in
12208 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12209 (source_section_scripts): Rewrite to use extension language API.
12210 (load_auto_scripts_for_objfile): Rewrite to use
12211 auto_load_scripts_for_objfile.
12212 (collect_matching_scripts_data): Change type of language member to
12213 struct extension_language_defn *.
12214 (auto_load_info_scripts): Change type of language arg to
12215 struct extension_language_defn *.
12216 (unsupported_script_warning_print): New function.
12217 (script_not_found_warning_print): Make static.
12218 (_initialize_auto_load): Rewrite construction of scripts-directory
12219 help.
12220 * auto-load.h (struct objfile): Add forward decl.
12221 (struct script_language): Delete.
12222 (struct auto_load_pspace_info): Add forward decl.
12223 (struct extension_language_defn): Add forward decl.
12224 (maybe_add_script): Delete.
12225 (auto_load_objfile_script): Declare.
12226 (script_not_found_warning_print): Delete.
12227 (auto_load_info_scripts): Update prototype.
12228 (auto_load_gdb_scripts_enabled): Declare.
12229 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12230 auto_load_python_scripts_enabled and made public.
12231 (script_language_python): Delete, moved to python.c.
12232 (gdbpy_script_language_defn): Delete.
12233 (info_auto_load_python_scripts): Update to use
12234 extension_language_python.
12235
12236 * breakpoint.c (condition_command): Replace call to
12237 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12238 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12239 with call to breakpoint_ext_lang_cond_says_stop.
12240 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12241 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12242 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12243 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12244 New arg slang.
12245 (local_setattro): Print name of extension language with existing
12246 stop condition.
12247
12248 * valprint.c (val_print, value_print): Update to call
12249 apply_ext_lang_val_pretty_printer.
12250 * cp-valprint.c (cp_print_value): Update call to
12251 apply_ext_lang_val_pretty_printer.
12252 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12253 (gdbpy_apply_val_pretty_printer): Renamed from
12254 apply_val_pretty_printer. New arg extlang.
12255 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12256
12257 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12258 extension language API.
12259 * cli/cli-script.c (execute_control_command): Update to call
12260 eval_ext_lang_from_control_command.
12261
12262 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12263 enum ext_lang_bt_status values. Update call to
12264 apply_ext_lang_frame_filter.
12265 (mi_cmd_stack_list_locals): Ditto.
12266 (mi_cmd_stack_list_args): Ditto.
12267 (mi_cmd_stack_list_variables): Ditto.
12268 * mi/mi-main.c: Delete #include "python/python-internal.h".
12269 Add #include "extension.h".
12270 (mi_cmd_list_features): Replace reference to python internal variable
12271 gdb_python_initialized with call to ext_lang_initialized_p.
12272
12273 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12274 Update to use enum ext_lang_frame_args. Update to call
12275 apply_ext_lang_frame_filter.
12276 * python/py-framefilter.c (extract_sym): Update to use enum
12277 ext_lang_bt_status.
12278 (extract_value, py_print_type, py_print_value): Ditto.
12279 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12280 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12281 (py_print_frame): Ditto.
12282 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12283 New arg extlang. Update to use enum ext_lang_bt_status.
12284
12285 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12286 finish_python_initialization. Replace with call to
12287 finish_ext_lang_initialization.
12288
12289 * typeprint.c (do_free_global_table): Update to call
12290 free_ext_lang_type_printers.
12291 (create_global_typedef_table): Update to call
12292 start_ext_lang_type_printers.
12293 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12294 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12295 (type_print_options): Change type of global_printers from "void *"
12296 to "struct ext_lang_type_printers *".
12297
12298 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12299 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12300 (gdbpy_preserve_values): Renamed from preserve_python_values.
12301 New arg extlang.
12302 (!HAVE_PYTHON, preserve_python_values): Delete.
12303
12304 * utils.c (quit_flag): Delete, moved to extension.c.
12305 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12306 extension.c.
12307
12308 * eval.c: Delete #include "python/python.h".
12309 * main.c: Delete #include "python/python.h".
12310
12311 * defs.h: Update comment.
12312
6af79985
JB
123132014-02-06 Joel Brobecker <brobecker@adacore.com>
12314
12315 GDB 7.7 released.
12316
12c5175d
MK
123172014-02-05 Mark Kettenis <kettenis@gnu.org>
12318
12319 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12320 defined.
12321
8dc5b319
YQ
123222014-02-05 Yao Qi <yao@codesourcery.com>
12323
12324 * remote.c (remote_pass_signals): Remove local 'buf' and use
12325 rs->buf.
12326 (remote_program_signals): Likewise.
12327
de7b2893
YQ
123282014-02-05 Yao Qi <yao@codesourcery.com>
12329
12330 * ctf.c: Include "inferior.h" and "gdbthread.h".
12331 (CTF_PID): A new macro.
12332 (ctf_open): Call inferior_appeared and add_thread_silent.
12333 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12334 (ctf_thread_alive): New function.
12335 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12336
66d032ac
YQ
123372014-02-05 Yao Qi <yao@codesourcery.com>
12338
12339 Revert this patch:
12340
12341 2013-05-24 Yao Qi <yao@codesourcery.com>
12342
12343 * tracepoint.c (TFILE_PID): Remove.
12344 (tfile_open): Don't add thread and inferior.
12345 (tfile_close): Don't set 'inferior_ptid'. Don't call
12346 exit_inferior_silent.
12347 (tfile_thread_alive): Remove.
12348 (init_tfile_ops): Don't set field 'to_thread_alive' of
12349 tfile_ops.
12350
f4ccffad
CE
123512014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12352
12353 * remote.c (remote_start_remote): Call remote_check_symbols even
12354 if only symbol-file (not file) has been given.
12355
591a12a1
UW
123562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12357
12358 * gdbarch.sh (skip_entrypoint): New callback.
12359 * gdbarch.c, gdbarch.h: Regenerate.
12360 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12361 * infrun.c (fill_in_stop_func): Likewise.
12362 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12363 (ppc_elfv2_elf_make_msymbol_special): New function.
12364 (ppc_elfv2_skip_entrypoint): Likewise.
12365 (ppc_linux_init_abi): Install them for ELFv2.
12366
cc0e89c5
UW
123672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12368
12369 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12370 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12371 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12372 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12373 structures returned in GPRs.
12374
52f548e4
UW
123752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12376
12377 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12378 offset to the stack parameter list for the ELFv2 ABI.
12379
d4094b6a
UW
123802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12381
12382 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12383 set_gdbarch_convert_from_func_ptr_addr and
12384 set_gdbarch_elf_make_msymbol_special for ELFv1.
12385 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12386 function descriptors on ELFv1.
12387 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12388 set up r12 at function entry.
12389
cd453cd0
UW
123902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12391
12392 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12393 (struct gdbarch_tdep): New member elf_abi.
12394
12395 * rs6000-tdep.c: Include "elf/ppc64.h".
12396 (rs6000_gdbarch_init): Detect ELF ABI version.
12397
0ff3e01f
UW
123982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12399
12400 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12401 within a register pair holding a DFP 128-bit value on little-endian.
12402 (ppc64_sysv_abi_return_value_base): Likewise.
12403 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12404 (dfp_pseudo_register_write): Likewise.
12405
5b757e5d
UW
124062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12407
12408 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12409 offset on little-endian when passing _Decimal32.
12410 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12411
084ee545
UW
124122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12413
12414 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12415 of the overlapped FP register within the VSX register on little-
12416 endian platforms.
12417 (efpr_pseudo_register_write): Likewise.
12418
d63167af
UW
124192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12420
12421 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12422 offset on little-endian when passing small structures.
12423
e765b44c
UW
124242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12425
12426 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12427 (struct ppc64_sysv_argpos): New data structure.
12428 (ppc64_sysv_abi_push_float): Remove.
12429 (ppc64_sysv_abi_push_val): New function.
12430 (ppc64_sysv_abi_push_integer): Likewise.
12431 (ppc64_sysv_abi_push_freg): Likewise.
12432 (ppc64_sysv_abi_push_vreg): Likewise.
12433 (ppc64_sysv_abi_push_param): Likewise.
12434 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12435 (ppc64_sysv_abi_return_value_base): New function.
12436 (ppc64_sysv_abi_return_value): Refactor to use it.
12437
36c24d95
UW
124382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12439
12440 * NEWS: Document new target powerpc64le-*-linux*.
12441
26fd9228
MK
124422014-02-04 Mark Kettenis <kettenis@gnu.org>
12443
12444 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12445 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12446 core dumps.
12447 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12448 register set used in ELF core dumps. Add floating-point register set.
12449
c5bb7362
KB
124502014-02-03 Kevin Buettner <kevinb@redhat.com>
12451
74228e77 12452 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12453 dwarf2_to_gdb[] table using symbolic constants. Adjust
12454 penultimate entry from number representing the PC register
12455 to symbolic constant representing the MDR register. Add
12456 constant for the PC register to the end of the table.
12457
af09351e
MK
124582014-02-03 Mark Kettenis <kettenis@gnu.org>
12459
12460 * bsd-kvm.c: Include <sys/param.h>
12461
8507e05d
MK
124622014-02-03 Mark Kettenis <kettenis@gnu.org>
12463
12464 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12465
ae56bfb8
JB
124662014-01-31 Joel Brobecker <brobecker@adacore.com>
12467
12468 * ada-lang.h (clear_ada_sym_cache): Delete.
12469
718ee4dc
UW
124702014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12471
12472 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12473
401e27fd
JM
124742014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12475
12476 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12477 the sigreturn register save area only if the syscall is
12478 sigreturn.
12479
a7c88acd
JB
124802014-01-29 Joel Brobecker <brobecker@adacore.com>
12481
12482 * valops.c (value_slice): Minor reformatting.
12483
fa0079ea
UW
124842014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12485
12486 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12487
c6044dd1
JB
124882014-01-28 Joel Brobecker <brobecker@adacore.com>
12489
12490 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12491 New static globals.
12492 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12493 (ada_ignore_descriptive_types_p): New static global.
12494 (find_parallel_type_by_descriptive_type): Return immediately
12495 if ada_ignore_descriptive_types_p is set.
12496 (_initialize_ada_language): Register new commands "maintenance
12497 set ada", "maintenance show ada", "maintenance set ada
12498 ignore-descriptive-types" and "maintenance show ada
12499 ignore-descriptive-types".
12500 * NEWS: Add entry for new "maint ada set/show
12501 ignore-descriptive-types" commands.
12502
568e808b
MM
125032014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12504
12505 * record-btrace.c (record_btrace_close): Call btrace_teardown
12506 for all threads.
12507
467d141b
JB
125082014-01-27 Joel Brobecker <brobecker@adacore.com>
12509
12510 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12511 "ui-out.h".
12512
fb151210
JB
125132014-01-27 Joel Brobecker <brobecker@adacore.com>
12514
12515 * ada-typeprint (type_is_full_subrange_of_target_type):
12516 New function.
12517 (print_range): Add parameter bounds_prefered_p. If not set,
12518 try printing range types using the name of their base type.
12519 (print_range_type): Add parameter bounds_prefered_p.
12520 Use it in call to print_range.
12521 (print_array_type, ada_print_type): Update calls to print_range
12522 and print_range_type.
12523
aba02109
JB
125242014-01-27 Joel Brobecker <brobecker@adacore.com>
12525
12526 * ada-typeprint.c (print_array_type, print_choices, print_range)
12527 (print_range_bound, print_dynamic_range_bound, print_range_type):
12528 Remove declaration.
12529
e62e21fd
JB
125302014-01-27 Joel Brobecker <brobecker@adacore.com>
12531
12532 * ada-typeprint.c (print_range): Add missing empty line
12533 after local declaration.
12534
859cf5d1
JB
125352014-01-27 Joel Brobecker <brobecker@adacore.com>
12536
12537 * ada-valprint.c (print_optional_low_bound): Get index_type's
12538 target type for as long as it is a TYPE_CODE_RANGE.
12539
25790f6f
JB
125402014-01-27 Joel Brobecker <brobecker@adacore.com>
12541
12542 * procfs.c (procfs_make_note_section): Remove assertion and
12543 associated comment.
12544
6b6aa828
YQ
125452014-01-24 Yao Qi <yao@codesourcery.com>
12546
12547 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12548 * corelow.c (get_core_siginfo): Likewise.
12549
5d6df423
YQ
125502014-01-24 Yao Qi <yao@codesourcery.com>
12551
12552 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12553 ULONGEST. Don't check 'len' is negative.
12554 (remote_write_bytes): Change type of 'len' to ULONGEST.
12555
83b645b8
TT
125562014-01-23 Tom Tromey <tromey@redhat.com>
12557
12558 PR python/16485:
12559 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12560 Handle exception from frame.block.
12561 (FrameVars.fetch_frame_locals): Likewise.
12562
0740f8d8
TT
125632014-01-23 Tom Tromey <tromey@redhat.com>
12564
12565 PR python/16487:
12566 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12567 on a NULL pointer. Move "goto error" to correct place.
12568
21909fa1
TT
125692014-01-23 Tom Tromey <tromey@redhat.com>
12570
12571 PR python/16491:
12572 * python/py-framefilter.c (apply_frame_filter): Call
12573 ensure_python_env after computing gdbarch.
12574
17fde6d0
YQ
125752014-01-23 Yao Qi <yao@codesourcery.com>
12576
12577 * target.c (raw_memory_xfer_partial): Change argument type
12578 from void * to gdb_byte *.
12579 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12580
87ce2a04
DE
125812014-01-22 Doug Evans <dje@google.com>
12582
12583 New gdbserver option --debug-format=timestamp.
12584 * NEWS: Mention it.
12585
237b092b
AA
125862014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12587
12588 * syscalls/s390x-linux.xml: New file.
12589 * syscalls/s390-linux.xml: New file.
12590 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12591 (XML_SYSCALL_FILENAME_S390X): Likewise.
12592 (op_svc): New enum value for SVC opcode.
12593 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12594 (s390_linux_get_syscall_number): New function.
12595 (s390_gdbarch_init): Register '*get_syscall_number' and the
12596 syscall xml file name.
12597 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12598 "s390-linux.xml" and "s390x-linux.xml".
12599 * NEWS: Announce new feature.
12600
54bff650
BS
126012014-01-22 Baruch Siach <baruch@tkos.co.il>
12602
12603 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12604
14e361d7
PA
126052014-01-22 Pedro Alves <palves@redhat.com>
12606
12607 * xtensa-config.c: Include defs.h.
12608
46bbb3ed
JB
126092014-01-22 Joel Brobecker <brobecker@adacore.com>
12610
12611 * common/common-utils.h: Add "ARI:" comment beside __func__
12612 reference.
12613
3a80edfc
JB
126142014-01-22 Joel Brobecker <brobecker@adacore.com>
12615
12616 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12617 documentation a bit.
12618
4869db5e
RM
126192014-01-21 Roland McGrath <mcgrathr@google.com>
12620
12621 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12622 * configure: Regenerate.
12623 * aclocal.m4: Regenerate.
12624 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12625 New substituted variables.
12626 (install-strip): New target.
12627 (INSTALL_SCRIPT): New substituted variable.
12628 (FLAGS_TO_PASS): Add it.
12629 (install-only): Use $(INSTALL_SCRIPT) rather than
12630 $(INSTALL_PROGRAM) for gcore.
12631
9ea4267d
TT
126322014-01-20 Tom Tromey <tromey@redhat.com>
12633
12634 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12635 together.
12636
1f2bdf09
TT
126372014-01-20 Tom Tromey <tromey@redhat.com>
12638
12639 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12640 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12641 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12642 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12643 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12644 (struct cmd_list_element) <flags>: Remove.
12645 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12646 doc_allocated>: New fields.
12647 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12648 bitfields.
12649 * maint.c (maintenance_do_deprecate): Update.
12650 * top.c (execute_command): Update.
12651
e671835b
BS
126522014-01-20 Baruch Siach <baruch@tkos.co.il>
12653
12654 * xtensa-linux-nat.c: Include asm/ptrace.h.
12655
50367cd2
IB
126562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12657
12658 * Makefile.in (SFILES): Add d-support.c.
12659 (COMMON_OBS): Add d-support.o.
12660 * d-lang.h (d_parse_symbol): Add comment, now defined in
12661 d-support.c.
12662 * d-lang.c (parse_call_convention)
12663 (parse_attributes, parse_function_types)
12664 (parse_function_args, parse_type, parse_identifier)
12665 (call_convention_p, d_parse_symbol): Move functions to ...
12666 * d-support.c: ... New file.
12667
ec9f644a
IB
126682014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12669
12670 * d-lang.h (d_parse_symbol): Add declaration.
12671 * d-lang.c (extract_identifiers)
12672 (extract_type_info): Remove functions.
12673 (parse_call_convention, parse_attributes)
12674 (parse_function_types, parse_function_args)
12675 (parse_type, parse_identifier, call_convention_p)
12676 (d_parse_symbol): New functions.
12677 (d_demangle): Use d_parse_symbol to demangle D symbols.
12678
94b1b47e
IB
126792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12680
12681 * d-lang.h (struct builtin_d_type): New data type.
12682 (builtin_d_type): Add declaration.
12683 * d-lang.c (d_language_arch_info, build_d_types)
12684 (builtin_d_type): New functions.
12685 (enum d_primitive_types): New data type.
12686 (d_language_defn): Change c_language_arch_info to
12687 d_language_arch_info.
12688 (d_type_data): New static variable.
12689 (_initialize_d_language): Initialize d_type_data.
12690
63778547
IB
126912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12692
12693 * d-lang.h (d_main_name): Add declaration.
12694 * d-lang.c (d_main_name): New function.
12695 * symtab.c (find_main_name): Add call to d_main_name.
12696
3271ba66
IB
126972014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12698
12699 * d-lang.c (d_language_defn): Change macro_expansion_c to
12700 macro_expansion_no.
12701
d36b3012
IB
127022014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12703
12704 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12705
c90a6fb7
SDJ
127062014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12707
12708 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12709 gdb_exception" declaration.
12710 * remote.c (getpkt_or_notif_sane): Likewise.
12711
749234e5
DE
127122014-01-17 Doug Evans <dje@google.com>
12713
12714 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12715 function, contents of dirnames_to_char_ptr_vec_append moved here.
12716 (delim_string_to_char_ptr_vec): New function.
12717 (dirnames_to_char_ptr_vec_append): Rewrite.
12718 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12719
df049a58
DE
127202014-01-17 Doug Evans <dje@google.com>
12721
12722 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12723 and moved here ...
12724 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12725 #include "common-utils.h".
12726 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12727 * common/vec.h (VEC_ASSERT_PASS): Update.
12728 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12729 (MACH_CHECK_ERROR): Update.
12730
69f97648
SM
127312014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12732
12733 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12734 comments.
12735 * gdbarch.h: Regenerate.
12736
98b1cfdc
TT
127372014-01-16 Tom Tromey <tromey@redhat.com>
12738
12739 * value.c (struct value) <regnum>: Move earlier.
12740
77a19445
TT
127412014-01-16 Tom Tromey <tromey@redhat.com>
12742
12743 * remote.c (extended_remote_create_inferior): Rename from
12744 extended_remote_create_inferior_1. Add "ops" argument. Remove
12745 old implementation.
12746
62261490
PA
127472014-01-16 Pedro Alves <palves@redhat.com>
12748
12749 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12750 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12751 the backchain.
12752
4d65956b
DE
127532014-01-16 Doug Evans <dje@google.com>
12754
12755 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12756
52834460
MM
127572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12758
12759 * btrace.h (btrace_thread_flag): New.
12760 (struct btrace_thread_info) <flags>: New.
12761 * record-btrace.c (record_btrace_resume_thread)
12762 (record_btrace_find_thread_to_move, btrace_step_no_history)
12763 (btrace_step_stopped, record_btrace_start_replaying)
12764 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12765 (record_btrace_find_resume_thread): New.
12766 (record_btrace_resume, record_btrace_wait): Extend.
12767 (record_btrace_can_execute_reverse): New.
12768 (record_btrace_open): Fail in non-stop mode.
12769 (record_btrace_set_replay): Split into this, ...
12770 (record_btrace_stop_replaying): ... this, ...
12771 (record_btrace_clear_histories): ... and this.
12772 (init_record_btrace_ops): Init to_can_execute_reverse.
12773 * NEWS: Announce it.
12774
118e6252
MM
127752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12776
12777 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12778 (forward_target_decr_pc_after_break)
12779 (target_decr_pc_after_break): New.
12780 * target.c (forward_target_decr_pc_after_break)
12781 (target_decr_pc_after_break): New.
12782 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12783 instead of gdbarch_decr_pc_after_break.
12784 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12785 instead of gdbarch_decr_pc_after_break.
12786 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12787 instead of gdbarch_decr_pc_after_break.
12788 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12789 instead of gdbarch_decr_pc_after_break.
12790 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12791 instead of gdbarch_decr_pc_after_break.
12792 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12793 instead of gdbarch_decr_pc_after_break.
12794
6e07b1d2
MM
127952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12796
12797 * btrace.c: Include regcache.h.
12798 (btrace_add_pc): New.
12799 (btrace_enable): Call btrace_add_pc.
12800 (btrace_is_empty): New.
12801 * btrace.h (btrace_is_empty): New.
12802 * record-btrace.c (require_btrace, record_btrace_info): Call
12803 btrace_is_empty.
12804
969c39fb
MM
128052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12806
12807 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12808 Support delta reads.
12809 (linux_disable_btrace): Change return type.
12810 * common/linux-btrace.h (linux_read_btrace): Change parameters
12811 and return type to allow error reporting. Update users.
12812 (linux_disable_btrace): Change return type. Update users.
12813 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12814 New.
12815 (btrace_error): New.
12816 (btrace_block) <begin>: Comment on BEGIN == 0.
12817 * btrace.c (btrace_compute_ftrace): Start from the end of
12818 the current trace.
12819 (btrace_stitch_trace, btrace_clear_history): New.
12820 (btrace_fetch): Read delta trace, return if replaying.
12821 (btrace_clear): Move clear history code to btrace_clear_history.
12822 (parse_xml_btrace): Throw an error if parsing failed.
12823 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12824 and return type to allow error reporting.
12825 (target_read_btrace): Change parameters and return type to allow
12826 error reporting.
12827 * target.c (target_read_btrace): Update.
12828 * remote.c (remote_read_btrace): Support delta reads. Pass
12829 errors on.
12830 * NEWS: Announce it.
12831
0b722aec
MM
128322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12833
12834 * record.h (record_btrace_frame_unwind)
12835 (record_btrace_tailcall_frame_unwind): New declarations.
12836 * dwarf2-frame: Include record.h
12837 (dwarf2_frame_cfa): Throw an error for btrace frames.
12838 * record-btrace.c: Include hashtab.h.
12839 (btrace_get_bfun_name): New.
12840 (btrace_call_history): Call btrace_get_bfun_name.
12841 (struct btrace_frame_cache): New.
12842 (bfcache): New.
12843 (bfcache_hash, bfcache_eq, bfcache_new): New.
12844 (btrace_get_frame_function): New.
12845 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12846 (record_btrace_frame_this_id): Compute own id.
12847 (record_btrace_frame_prev_register): Provide PC, throw_error
12848 for all other registers.
12849 (record_btrace_frame_sniffer): Detect btrace frames.
12850 (record_btrace_tailcall_frame_sniffer): New.
12851 (record_btrace_frame_dealloc_cache): New.
12852 (record_btrace_frame_unwind): Add new functions.
12853 (record_btrace_tailcall_frame_unwind): New.
12854 (_initialize_record_btrace): Allocate cache.
12855 * btrace.c (btrace_clear): Call reinit_frame_cache.
12856 * NEWS: Announce it.
12857
066ce621
MM
128582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12859
12860 * record-btrace.c (record_btrace_set_replay)
12861 (record_btrace_goto_begin, record_btrace_goto_end)
12862 (record_btrace_goto): New.
12863 (init_record_btrace_ops): Initialize them.
12864 * NEWS: Announce it.
12865
e2887aa3
MM
128662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12867
12868 * record-btrace.c (record_btrace_find_new_threads)
12869 (record_btrace_thread_alive): New.
12870 (init_record_btrace_ops): Initialize to_find_new_threads and
12871 to_thread_alive.
12872
b2f4cfde
MM
128732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12874
12875 * record-btrace.c (record_btrace_resume): New.
12876 (record_btrace_wait): New.
12877 (init_record_btrace_ops): Initialize to_wait and to_resume.
12878
633785ff
MM
128792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12880
12881 * record-btrace.c (record_btrace_xfer_partial)
12882 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12883 (record_btrace_allow_memory_access): New.
12884 (init_record_btrace_ops): Initialize new methods.
12885 * target.c (raw_memory_xfer_partial): Bail out if target reports
12886 that this memory is not available.
12887
3db08215
MM
128882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12889
12890 * target.h (target_ops) <to_insert_breakpoint>
12891 <to_remove_breakpoint>: Add target_ops parameter.
12892 (forward_target_insert_breakpoint): New.
12893 (forward_target_remove_breakpoint): New.
12894 (memory_remove_breakpoint, memory_insert_breakpoint):
12895 Add target_ops parameter.
12896 * target.c (target_insert_breakpoint): Split into this and ...
12897 (forward_target_insert_breakpoint): ... this.
12898 (target_remove_breakpoint): Split into this and ...
12899 (forward_target_remove_breakpoint): ... this.
12900 (debug_to_insert_breakpoint): Add target_ops parameter.
12901 Call forward_target_insert_breakpoint.
12902 (debug_to_remove_breakpoint): Add target_ops parameter.
12903 Call forward_target_remove_breakpoint.
12904 (update_current_target): Do not inherit or default to_insert_breakpoint
12905 and to_remove_breakpoint.
12906 * corelow.c (ignore): Add target_ops parameter.
12907 * exec.c (ignore): Add target_ops parameter.
12908 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12909 Add target_ops parameter.
12910 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12911 Add target_ops parameter.
12912 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12913 Add target_ops parameter.
12914 * record-full.c (record_full_beneath_to_insert_breakpoint)
12915 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12916 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12917 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12918 (record_full_core_remove_breakpoint): Add target_ops parameter.
12919 Update users.
12920 (record_full_beneath_to_insert_breakpoint_ops)
12921 (record_full_beneath_to_remove_breakpoint_ops)
12922 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12923 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12924 tmp_to_remove_breakpoint_ops,
12925 record_full_beneath_to_insert_breakpoint_ops, and
12926 record_full_beneath_to_remove_breakpoint_ops.
12927 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12928 (m32r_remove_breakpoint): Add target_ops parameter.
12929 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12930 Add target_ops parameter.
12931 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12932 Add target_ops parameter.
12933
cecac1ab
MM
129342014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12935 Markus Metzger <markus.t.metzger@intel.com>
12936
12937 * record-btrace.c: Include frame-unwind.h.
12938 (record_btrace_frame_unwind_stop_reason)
12939 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12940 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12941 New.
12942 (init_record_btrace_ops): Install it.
12943
824344ca
MM
129442014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12945
12946 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12947 get_prev_frame_1.
12948
32261e52
MM
129492014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12950
12951 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12952 earlier.
12953
ea001bdc
MM
129542014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12955
12956 * frame-unwind.c: Include target.h.
12957 (frame_unwind_try_unwinder): New function with code from ...
12958 (frame_unwind_find_by_frame): ... here. New variable
12959 unwinder_from_target, call also target_get_unwinder)
12960 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12961 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12962 * target.h (struct target_ops): New fields to_get_unwinder and
12963 to_get_tailcall_unwinder.
12964 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12965
1f3ef581
MM
129662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12967
12968 * record-btrace.c (record_btrace_fetch_registers)
12969 (record_btrace_store_registers)
12970 (record_btrace_to_prepare_to_store): New.
12971 (init_record_btrace_ops): Add the above.
12972
f32dbf8c
MM
129732014-01-16 Tom Tromey <tromey@redhat.com>
12974
12975 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12976 * target.h (struct target_ops) <to_prepare_to_store>: Add
12977 argument.
12978 (target_prepare_to_store): Add argument.
12979 * target.c (debug_to_prepare_to_store): Add argument.
12980 (update_current_target): Update.
12981 * remote.c (remote_prepare_to_store): Add 'self' argument.
12982 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12983 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12984 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12985 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12986 argument.
12987 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12988 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12989 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12990 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12991 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12992
07bbe694
MM
129932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12994
12995 * btrace.h (replay) <replay>: New.
12996 (btrace_is_replaying): New.
12997 * btrace.c (btrace_clear): Free replay iterator.
12998 (btrace_is_replaying): New.
12999 * record-btrace.c (record_btrace_is_replaying): New.
13000 (record_btrace_info): Print insn number if replaying.
13001 (record_btrace_insn_history): Start at replay position.
13002 (record_btrace_call_history): Start at replay position.
13003 (init_record_btrace_ops): Init to_record_is_replaying.
13004
0688d04e
MM
130052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13006
13007 * record-btrace.c (record_btrace_insn_history_range): Include
13008 end.
13009 (record_btrace_insn_history_from): Adjust range.
13010 (record_btrace_call_history_range): Include
13011 end.
13012 (record_btrace_call_history_from): Adjust range.
13013 * NEWS: Announce changes.
13014
8710b709
MM
130152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13016
13017 * record.h (enum record_print_flag)
13018 <record_print_indent_calls>: New.
13019 * record.c (get_call_history_modifiers): Recognize /c modifier.
13020 (_initialize_record): Document /c modifier.
13021 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13022 Reorder fields. Optionally indent the function name. Update
13023 all users.
13024 * NEWS: Announce changes.
13025
d0fa7535
MM
130262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13027
13028 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13029
5de9129b
MM
130302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13031
13032 * btrace.c (ftrace_new_function): Start counting at one.
13033 * record-btrace.c (record_btrace_info): Adjust number of calls
13034 and insns.
13035 * NEWS: Announce it.
13036
7acbe133
MM
130372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13038
13039 * record-btrace.c (btrace_call_history_insn_range): Print
13040 insn range as [begin, end].
13041
23a7fe75
MM
130422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13043
13044 * btrace.h (struct btrace_func_link): New.
13045 (enum btrace_function_flag): New.
13046 (struct btrace_inst): Rename to ...
13047 (struct btrace_insn): ...this. Update all users.
13048 (struct btrace_func) <ibegin, iend>: Remove.
13049 (struct btrace_func_link): New.
13050 (struct btrace_func): Rename to ...
13051 (struct btrace_function): ...this. Update all users.
13052 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13053 (number, level, flags>: New.
13054 (struct btrace_insn_iterator): Rename to ...
13055 (struct btrace_insn_history): ...this.
13056 Update all users.
13057 (struct btrace_insn_iterator, btrace_call_iterator): New.
13058 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13059 (struct btrace_target_info) <begin, end, level>
13060 <insn_history, call_history>: New.
13061 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13062 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13063 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13064 (btrace_call_number, btrace_call_begin, btrace_call_end)
13065 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13066 (btrace_find_function_by_number, btrace_set_insn_history)
13067 (btrace_set_call_history): New.
13068 * btrace.c (btrace_init_insn_iterator)
13069 (btrace_init_func_iterator, compute_itrace): Remove.
13070 (ftrace_print_function_name, ftrace_print_filename)
13071 (ftrace_skip_file): Change
13072 parameter to const.
13073 (ftrace_init_func): Remove.
13074 (ftrace_debug): Use new btrace_function fields.
13075 (ftrace_function_switched): Also consider gaining and
13076 losing symbol information).
13077 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13078 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13079 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13080 New.
13081 (ftrace_new_function): Move. Remove debug print.
13082 (ftrace_update_lines, ftrace_update_insns): New.
13083 (ftrace_update_function): Check for call, ret, and jump.
13084 (compute_ftrace): Renamed to ...
13085 (btrace_compute_ftrace): ...this. Rewritten to compute call
13086 stack.
13087 (btrace_fetch, btrace_clear): Updated.
13088 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13089 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13090 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13091 (btrace_call_number, btrace_call_begin, btrace_call_end)
13092 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13093 (btrace_find_function_by_number, btrace_set_insn_history)
13094 (btrace_set_call_history): New.
13095 * record-btrace.c (require_btrace): Use new btrace thread
13096 info fields.
13097 (record_btrace_info, btrace_insn_history)
13098 (record_btrace_insn_history, record_btrace_insn_history_range):
13099 Use new btrace thread info fields and new iterator.
13100 (btrace_func_history_src_line): Rename to ...
13101 (btrace_call_history_src_line): ...this. Use new btrace
13102 thread info fields.
13103 (btrace_func_history): Rename to ...
13104 (btrace_call_history): ...this. Use new btrace thread info
13105 fields and new iterator.
13106 (record_btrace_call_history, record_btrace_call_history_range):
13107 Use new btrace thread info fields and new iterator.
13108
8372a7cb
MM
131092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13110
13111 * frame.h (frame_id_build_unavailable_stack_special): New.
13112 * frame.c (frame_id_build_unavailable_stack_special): New.
13113
c2170eef
MM
131142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13115
13116 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13117 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13118 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13119 to gdbarch.
13120 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13121 (i386_insn_is_jump, i386_jmp_p): New.
13122 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13123 insn_is_jump to gdbarch.
13124 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13125 * gdbarch.h: Regenerated.
13126 * gdbarch.c: Regenerated.
13127 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13128 (default_insn_is_jump): New.
13129 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13130 (default_insn_is_jump): New.
13131
864089d2
MM
131322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13133
13134 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13135 Change to ...
13136 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13137 (btrace_read_type) <btrace_read_new>: Change to ...
13138 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13139
ed9edfb5
MM
131402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13141
13142 * common/linux-btrace.c (linux_read_btrace): Free trace from
13143 previous iteration.
13144
fbcbc3fd
DE
131452014-01-15 Doug Evans <dje@google.com>
13146
13147 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13148 uint32_t.
13149
3d548a53
TT
131502014-01-15 Tom Tromey <tromey@redhat.com>
13151
13152 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13153 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13154 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13155 (set_objfile_main_name): New function.
13156 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13157 language_of_main>: New fields.
13158 (set_objfile_main_name): Declare.
13159 * symtab.c (find_main_name): Loop over objfiles to find the main
13160 name and language.
13161 (set_main_name): Now static.
13162 (get_main_info): Add comment.
13163 * symtab.h (set_main_name): Don't declare.
13164
32ac0d11
TT
131652014-01-15 Tom Tromey <tromey@redhat.com>
13166
13167 * symtab.c (main_progspace_key): New global.
13168 (struct main_info): New.
13169 (name_of_main, language_of_main): Remove.
13170 (get_main_info, main_info_cleanup): New function.
13171 (set_main_name, main_name, main_language): Use get_main_info.
13172 (_initialize_symtab): Initialize main_progspace_key.
13173
9e6c82ad
TT
131742014-01-15 Tom Tromey <tromey@redhat.com>
13175
13176 * dbxread.c (process_one_symbol): Update.
13177 * dwarf2read.c (read_partial_die): Update.
13178 * symfile.c (set_initial_language): Call main_language.
13179 * symtab.c (language_of_main): Now static.
13180 (set_main_name): Add 'lang' parameter.
13181 (find_main_name): Update.
13182 (main_language): New function.
13183 (symtab_observer_executable_changed): Update.
13184 * symtab.h (set_main_name): Update.
13185 (language_of_main): Remove.
13186 (main_language): Declare.
13187
6ef55de7
TT
131882014-01-15 Tom Tromey <tromey@redhat.com>
13189
13190 * symfile.c (init_entry_point_info): Use new "initialized" field.
13191 Update.
13192 * objfiles.h (struct entry_point) <initialized>: New field.
13193 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13194 (struct objfile) <ei>: ...here. Remove.
13195 * objfiles.c (entry_point_address_query): Update.
13196
53eddfa6
TT
131972014-01-15 Tom Tromey <tromey@redhat.com>
13198
13199 * objfiles.c (entry_point_address_query): Relocate entry point
13200 address.
13201 (objfile_relocate1): Do not relocate entry point address.
13202 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13203 <the_bfd_section_index>: New field.
13204 * symfile.c (init_entry_point_info): Find the entry point's
13205 section.
13206
d56e56aa
TT
132072014-01-15 Tom Tromey <tromey@redhat.com>
13208
13209 * solib-frv.c (enable_break): Use entry_point_address_query.
13210
33a97bbe
OJ
132112014-01-15 Omair Javaid <omair.javaid@linaro.org>
13212
13213 * NEWS: Add note on improved process record-replay on
13214 arm*-linux* targets.
13215
c6ec2b30
OJ
132162014-01-15 Omair Javaid <omair.javaid@linaro.org>
13217
13218 * arm-tdep.c (enum arm_record_result): New enum.
13219 (arm_record_unsupported_insn): New function.
13220 (arm_record_coproc_data_proc): Removed.
13221 (thumb2_record_ld_st_multiple): New function.
13222 (thumb2_record_ld_st_dual_ex_tbb): New function.
13223 (thumb2_record_data_proc_sreg_mimm): New function.
13224 (thumb2_record_ps_dest_generic): New function.
13225 (thumb2_record_branch_misc_cntrl): New function.
13226 (thumb2_record_str_single_data): New function.
13227 (thumb2_record_ld_mem_hints): New function.
13228 (thumb2_record_ld_word): New function.
13229 (thumb2_record_lmul_lmla_div): New function.
13230 (thumb2_record_decode_insn_handler): New function.
13231 (decode_insn): Add thumb32 instruction handlers.
13232
97dfe206
OJ
132332014-01-15 Omair Javaid <omair.javaid@linaro.org>
13234
13235 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13236 (struct arm_linux_record_tdep): Declare.
13237 (arm_canonicalize_syscall): New function.
13238 (arm_all_but_pc_registers_record): New function.
13239 (arm_linux_syscall_record): New function.
13240 (arm_linux_init_abi): Add syscall recording constructs.
13241 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13242 decoding. (arm_record_coproc_data_proc): Update arm syscall
13243 decoding.
13244 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13245 <arm_syscall_record>: New field.
13246 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13247 gdb_target_obs.
13248
9904a494
OJ
132492014-01-15 Omair Javaid <omair.javaid@linaro.org>
13250
13251 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13252 register for push instruction recording.
13253
f969241e
OJ
132542014-01-15 Omair Javaid <omair.javaid@linaro.org>
13255
13256 * arm-tdep.c (thumb_record_misc): Update to correct logical
13257 error while recording ldm, ldmia and pop instructions.
13258
bfbbec00
OJ
132592014-01-15 Omair Javaid <omair.javaid@linaro.org>
13260
13261 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13262
e40adcc9
PA
132632014-01-15 Pedro Alves <palves@redhat.com>
13264
13265 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13266 (go32_resume, go32_fetch_registers, store_register)
13267 (go32_store_registers, go32_prepare_to_store)
13268 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13269 (go32_create_inferior, go32_can_run, go32_terminal_init)
13270 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13271 declarations.
13272
b0a16e66
TT
132732014-01-15 Tom Tromey <tromey@redhat.com>
13274
13275 * target.h (async_callback_ftype): New typedef.
13276 (struct target_ops) <to_async>: Use it.
13277
bf7105a4
JB
132782014-01-15 Joel Brobecker <brobecker@adacore.com>
13279
13280 * python/py-value.c (get_field_type): Remove unnecessary curly
13281 braces for single-statement if block.
13282
a8f35c2e
JB
132832014-01-15 Joel Brobecker <brobecker@adacore.com>
13284
13285 * python/py-type.c (convert_field): Add missing empty line
13286 after declarations.
13287
bb4142cf
DE
132882014-01-14 Doug Evans <dje@google.com>
13289
13290 * symfile.h (expand_symtabs_matching): Renamed from
13291 expand_partial_symbol_names. Update prototype.
13292 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13293 * symfile.c (expand_symtabs_matching): Renamed from
13294 expand_partial_symbol_names. New args file_matcher, kind.
13295 Rename arg fun to symbol_matcher.
13296 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13297 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13298 ada_expand_partial_symbol_name.
13299 (ada_make_symbol_completion_list): Update to call
13300 expand_symtabs_matching.
13301 (ada_add_global_exceptions): Call expand_symtabs_matching.
13302 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13303 call map_symbol_filenames.
13304 * symtab.c (sources_info): Update to call map_symbol_filenames.
13305 (search_symbols): Call expand_symtabs_matching.
13306 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13307 (default_make_symbol_completion_list_break_on): Update to call
13308 expand_symtabs_matching.
13309 (make_source_files_completion_list): Update to call
13310 map_symbol_filenames.
13311
206f2a57
DE
133122014-01-14 Doug Evans <dje@google.com>
13313
13314 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13315 (expand_symtabs_symbol_matcher_ftype): New typedef.
13316 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13317 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13318 * symfile.c (expand_partial_symbol_names): Update to use
13319 expand_symtabs_symbol_matcher_ftype.
13320 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13321 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13322 Arg name_matcher renamed to symbol_matcher.
13323 * psymtab.c (recursively_search_psymtabs): Update to use
13324 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13325 sym_matcher.
13326 (expand_symtabs_matching_via_partial): Update to use
13327 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13328 Arg name_matcher renamed to symbol_matcher.
13329
540c2971
DE
133302014-01-14 Doug Evans <dje@google.com>
13331
13332 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13333 (map_partial_symbol_filenames): Ditto.
13334 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13335 (map_partial_symbol_filenames): Ditto.
13336 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13337 (map_partial_symbol_filenames): Ditto.
13338 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13339 (map_partial_symbol_filenames): Ditto.
13340 * symtab.c: Delete #include "psymtab.h".
13341
8213266a
PA
133422014-01-14 Pedro Alves <palves@redhat.com>
13343 Tom Tromey <tromey@redhat.com>
13344
13345 * infrun.c (use_displaced_stepping): Use find_record_target
13346 instead of RECORD_IS_USED.
13347 (adjust_pc_after_break): Use record_full_is_used instead of
13348 RECORD_IS_USED.
13349 * record-btrace.c (record_btrace_open): Call record_preopen
13350 instead of checking RECORD_IS_USED.
13351 * record-full.c (record_full_shortname)
13352 (record_full_core_shortname): New globals.
13353 (record_full_is_used): New function.
13354 (find_full_open): Call record_preopen instead of checking
13355 RECORD_IS_USED.
13356 (init_record_full_ops): Set the target's shortname to
13357 record_full_shortname.
13358 (init_record_full_core_ops): Set the target's shortname to
13359 record_full_core_shortname.
13360 * record-full.h (record_full_is_used): Declare.
13361 * record.c (find_record_target): Make extern.
13362 (record_preopen): New function.
13363 * record.h (RECORD_IS_USED): Delete macro.
13364 (find_record_target, record_preopen): Declare functions.
13365
7ec1862d
YQ
133662014-01-14 Yao Qi <yao@codesourcery.com>
13367
13368 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13369 'len''s type to ULONGEST.
13370 (core_xfer_shared_libraries_aix): Likewise.
13371 * gdbarch.c, gdbarch.h: Regenerated.
13372 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13373 Change type of 'len' to ULONGEST.
13374 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13375 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13376
dea80a27
YQ
133772014-01-14 Yao Qi <yao@codesourcery.com>
13378
13379 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13380 type of 'len' to ULONGEST.
13381 (linux_xfer_osdata_processgroups): Likewise.
13382 (linux_xfer_osdata_threads): Likewise.
13383 (linux_xfer_osdata_fds): Likewise.
13384 (linux_xfer_osdata_isockets): Likewise.
13385 (linux_xfer_osdata_shm): Likewise.
13386 (linux_xfer_osdata_sem): Likewise.
13387 (linux_xfer_osdata_msg): Likewise.
13388 (linux_common_xfer_osdata): Likewise.
13389 (struct osdata_type) <getter>: Likewise.
13390 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13391 the declaration.
13392
b55e14c7
YQ
133932014-01-14 Yao Qi <yao@codesourcery.com>
13394
13395 * target.h (target_xfer_partial_ftype): Update.
13396 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13397 ULONGEST.
13398 * aix-thread.c (aix_thread_xfer_partial): Change type of
13399 argument 'len' to ULONGEST.
13400 * auxv.c (procfs_xfer_auxv): Likewise.
13401 (ld_so_xfer_auxv): Likewise.
13402 (memory_xfer_auxv): Likewise.
13403 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13404 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13405 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13406 * corelow.c (core_xfer_partial): Likewise.
13407 * ctf.c (ctf_xfer_partial): Likewise.
13408 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13409 '%u'.
13410 (darwin_read_dyld_info): Likewise.
13411 (darwin_xfer_partial): Likewise.
13412 * exec.c (section_table_xfer_memory_partial): Likewise.
13413 (exec_xfer_partial): Likewise.
13414 * exec.h (section_table_xfer_memory_partial): Update
13415 declaration.
13416 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13417 instead of plongest.
13418 (gnu_xfer_partial): Likewise.
13419 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13420 (ia64_hpux_xfer_solib_got): Likewise.
13421 (ia64_hpux_xfer_partial): Likewise.
13422 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13423 * inf-ptrace.c (inf_ptrace_xfer_partial):
13424 * inf-ttrace.c (inf_ttrace_xfer_partial):
13425 * linux-nat.c (linux_xfer_siginfo): Likewise.
13426 (linux_nat_xfer_partial): Likewise.
13427 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13428 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13429 * monitor.c (monitor_xfer_memory): Likewise.
13430 (monitor_xfer_partial): Likewise.
13431 * procfs.c (procfs_xfer_partial): Likewise.
13432 * record-full.c (record_full_xfer_partial): Likewise.
13433 (record_full_core_xfer_partial): Likewise.
13434 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13435 instead of plongest.
13436 (gdbsim_xfer_partial): Likewise.
13437 * remote.c (remote_xfer_partial): Likewise.
13438 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13439 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13440 declaration.
13441 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13442 (rs6000_xfer_shared_libraries): Likewise.
13443 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13444 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13445 (sparc_xfer_partial): Likewise.
13446 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13447 (spu_xfer_partial): Likewise.
13448 * spu-multiarch.c (spu_xfer_partial): Likewise.
13449 * target.c (target_read_live_memory): Likewise.
13450 (memory_xfer_live_readonly_partial): Likewise.
13451 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13452 (target_xfer_partial, default_xfer_partial): Likewise.
13453 (current_xfer_partial): Likewise.
13454 * tracepoint.c (tfile_xfer_partial): Likewise.
13455 * windows-nat.c (windows_xfer_memory): Likewise. Call
13456 pulongest instead of plongest.
13457 (windows_xfer_partial): Likewise.
13458 (windows_xfer_shared_libraries): Likewise.
13459
05804640
YQ
134602014-01-14 Yao Qi <yao@codesourcery.com>
13461
13462 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13463 target_xfer_partial_ftype.
13464
b5b08fb4
SC
134652014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13466
13467 PR python/15464
13468 PR python/16113
13469 * valops.c (value_struct_elt_bitpos): New function
13470 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13471 object to 'None' if the field name is an empty string ("").
13472 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13473 attribute to look for a field when 'name' is 'None'.
13474 (get_field_type): New function
13475
13aaf454
DE
134762014-01-13 Doug Evans <dje@google.com>
13477
13478 PR symtab/16426
13479 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13480 (try_open_dwop_file): Ditto.
13481 * gdb_bfd.c: #include "vec.h".
13482 (bfdp): New typedef.
13483 (struct gdb_bfd_data): New member included_bfds.
13484 (gdb_bfd_unref): Unref all included bfds.
13485 (gdb_bfd_record_inclusion): New function.
13486 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13487
c2cec97c
TT
134882014-01-13 Tom Tromey <tromey@redhat.com>
13489
13490 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13491
78e5999d
TT
134922014-01-13 Tom Tromey <tromey@redhat.com>
13493
13494 * defs.h (use_windows): Remove.
13495 * gdb.c (main): Update.
13496 * main.c (captured_main, gdb_main): Update.
13497 * main.h (struct captured_main_args) <use_windows>: Remove.
13498 * top.c (use_windows): Remove.
13499
f2052bbe
TT
135002014-01-13 Tom Tromey <tromey@redhat.com>
13501
13502 * defs.h (deprecated_flush_hook): Remove.
13503
fde4f8ed
JK
135042014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13505
13506 PR threads/16216
13507 * linux-thread-db.c (try_thread_db_load): Add parameter
13508 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13509 (try_thread_db_load_from_pdir_1): Move it there from here.
13510 (try_thread_db_load_from_sdir): Update caller.
13511 (try_thread_db_load_from_dir): Move it there from here.
13512
bdf61915
PP
135132014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13514
13515 * regformats/regdat.sh: Always rewrite the register file.
13516
f71e1a8d
PA
135172014-01-13 Pedro Alves <palves@redhat.com>
13518
13519 * Makefile.in (CHECK_HEADERS): New variable.
13520 (check-headers:): New rule.
13521
42c85435
TT
135222014-01-13 Tom Tromey <tromey@redhat.com>
13523
13524 * cli/cli-setshow.c (do_set_command): Update.
13525 * defs.h (deprecated_set_hook): Remove.
13526 * top.c (deprecated_set_hook): Remove.
13527
f8de5129
PA
135282014-01-13 Pedro Alves <palves@redhat.com>
13529
13530 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13531 the tracepoint if the PC is a pseudo-register.
13532
fc270c35
TT
135332014-01-13 Tom Tromey <tromey@redhat.com>
13534
13535 * defs.h (XCALLOC): Remove.
13536 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13537 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13538 * dwarf2loc.c (allocate_piece_closure): Likewise.
13539 * elfread.c (elf_symfile_segments): Likewise.
13540 (elf_symfile_segments): Likewise.
13541 * gdbtypes.c (copy_type_recursive): Likewise.
13542 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13543 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13544 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13545 XCALLOC.
13546 * mt-tdep.c (mt_gdbarch_init): Likewise.
13547 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13548 XCALLOC.
13549 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13550 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13551 * registry.c (registry_alloc_data): Likewise.
13552 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13553 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13554 * serial.c (serial_fdopen_ops): Likewise.
13555 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13556 XCALLOC.
13557 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13558 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13559 not XCALLOC.
13560
70ba0933
TT
135612014-01-13 Tom Tromey <tromey@redhat.com>
13562
13563 * defs.h (XMALLOC): Remove.
13564 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13565 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13566 * cli-out.c (struct ui_out *): Likewise.
13567 * cli/cli-dump.c (add_dump_command): Likewise.
13568 (add_dump_command): Likewise.
13569 * complaints.c (get_complaints): Likewise.
13570 (find_complaint): Likewise.
13571 * dwarf2-frame.c (execute_cfa_program): Likewise.
13572 * dwarf2read.c (abbrev_table_read_table): Likewise.
13573 * gdbarch.sh: Likewise.
13574 * gdbarch.c: Rebuild.
13575 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13576 * interps.c (interp_new): Likewise.
13577 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13578 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13579 * mi/mi-console.c (mi_console_file_new): Likewise.
13580 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13581 * mi/mi-out.c (mi_out_new): Likewise.
13582 * mi/mi-parse.c (mi_parse): Likewise.
13583 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13584 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13585 * observer.c (xalloc_observer_list_node): Likewise.
13586 * regcache.c (regcache_xmalloc_1): Likewise.
13587 * reggroups.c (reggroup_new): Likewise.
13588 (_initialize_reggroup): Likewise.
13589 * registry.c (register_data_with_cleanup): Likewise.
13590 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13591 * ser-base.c (serial_ttystate): Likewise.
13592 * ser-mingw.c (make_pipe_state): Likewise.
13593 * ser-pipe.c (pipe_open): Likewise.
13594 * serial.c (serial_open): Likewise.
13595 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13596 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13597 (tui_alloc_win_info): Likewise.
13598 (tui_add_content_elements): Likewise.
13599 * tui/tui-file.c (tui_file_new): Likewise.
13600 * tui/tui-out.c (tui_out_new): Likewise.
13601 * ui-file.c (mem_file_new): Likewise.
13602 * ui-out.c (push_level): Likewise.
13603 (make_cleanup_ui_out_end): Likewise.
13604 (append_header_to_list): Likewise.
13605 (ui_out_new): Likewise.
13606 * user-regs.c (user_reg_add_builtin): Likewise.
13607
41bf6aca
TT
136082014-01-13 Tom Tromey <tromey@redhat.com>
13609
13610 * defs.h (XZALLOC): Remove.
13611 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13612 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13613 (get_ada_tasks_inferior_data): Likewise.
13614 * auto-load.c (get_auto_load_pspace_data): Likewise.
13615 * auxv.c (get_auxv_inferior_data): Likewise.
13616 * bfd-target.c (target_bfd_reopen): Likewise.
13617 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13618 (deprecated_insert_raw_breakpoint): Likewise.
13619 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13620 * corelow.c (core_open): Likewise.
13621 * darwin-nat.c (darwin_check_new_threads): Likewise.
13622 (darwin_attach_pid): Likewise.
13623 * dummy-frame.c (dummy_frame_push): Likewise.
13624 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13625 * dwarf2loc.c (allocate_piece_closure): Likewise.
13626 * elfread.c (elf_symfile_segments): Likewise.
13627 * eval.c (ptrmath_type_p): Likewise.
13628 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13629 * gdbtypes.c (alloc_type_arch): Likewise.
13630 (alloc_type_instance): Likewise.
13631 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13632 * inf-child.c (inf_child_can_use_agent): Likewise.
13633 * inflow.c (get_inflow_inferior_data): Likewise.
13634 * infrun.c (save_infcall_suspend_state): Likewise.
13635 * jit.c (jit_reader_load): Likewise.
13636 (get_jit_objfile_data): Likewise.
13637 (get_jit_program_space_data): Likewise.
13638 (jit_object_open_impl): Likewise.
13639 (jit_symtab_open_impl): Likewise.
13640 (jit_block_open_impl): Likewise.
13641 (jit_frame_sniffer): Likewise.
13642 * linux-fork.c (add_fork): Likewise.
13643 * maint.c (make_command_stats_cleanup): Likewise.
13644 * objfiles.c (get_objfile_pspace_data): Likewise.
13645 * opencl-lang.c (struct lval_closure): Likewise.
13646 * osdata.c (osdata_start_osdata): Likewise.
13647 * progspace.c (new_address_space): Likewise.
13648 (add_program_space): Likewise.
13649 * remote-sim.c (get_sim_inferior_data): Likewise.
13650 * sh-tdep.c (sh_gdbarch_init): Likewise.
13651 * skip.c (Ignore): Likewise.
13652 (skip_delete_command): Likewise.
13653 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13654 (library_list_start_library): Likewise.
13655 (solib_aix_current_sos): Likewise.
13656 * solib-darwin.c (get_darwin_info): Likewise.
13657 (darwin_current_sos): Likewise.
13658 * solib-dsbt.c (get_dsbt_info): Likewise.
13659 * solib-ia64-hpux.c (new_so_list): Likewise.
13660 (ia64_hpux_get_solib_linkage_addr): Likewise.
13661 * solib-spu.c (append_ocl_sos): Likewise.
13662 (spu_current_sos): Likewise.
13663 * solib-svr4.c (get_svr4_info): Likewise.
13664 (svr4_keep_data_in_core): Likewise.
13665 (library_list_start_library): Likewise.
13666 (svr4_default_sos): Likewise.
13667 (svr4_read_so_list): Likewise.
13668 * solib-target.c (library_list_start_library): Likewise.
13669 (solib_target_current_sos): Likewise.
13670 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13671 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13672 * symfile.c (default_symfile_segments): Likewise.
13673 * target-descriptions.c (tdesc_data_init): Likewise.
13674 (tdesc_create_reg): Likewise.
13675 (struct tdesc_type *): Likewise.
13676 (tdesc_create_vector): Likewise.
13677 (tdesc_set_struct_size): Likewise.
13678 (struct tdesc_type *): Likewise.
13679 (tdesc_free_feature): Likewise.
13680 (tdesc_create_feature): Likewise.
13681 * windows-nat.c (windows_add_thread): Likewise.
13682 (windows_make_so): Likewise.
13683 * xml-support.c (gdb_xml_body_text): Likewise.
13684 (gdb_xml_create_parser_and_cleanup): Likewise.
13685 (xml_process_xincludes): Likewise.
13686 * xml-syscall.c (allocate_syscalls_info): Likewise.
13687 (syscall_create_syscall_desc): Likewise.
13688
5acfdbae
SDJ
136892014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13690
13691 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13692 function, with code from i386_stap_parse_special_token.
13693 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13694 (i386_stap_parse_special_token): Move code to the two functions
13695 above; simplify it.
13696
0000e5cc
PA
136972014-01-09 Pedro Alves <palves@redhat.com>
13698 Hui Zhu <hui@codesourcery.com>
13699
13700 PR gdb/16101
13701 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13702 bp_err_string. Don't mark the location shlib_disabled if the
13703 error thrown wasn't a generic or memory error. Catch errors
13704 thrown while inserting breakpoints in overlayed code. Output
13705 error message of software breakpoints.
13706 * remote.c (remote_insert_breakpoint): If this breakpoint has
13707 target-side commands but this stub doesn't support Z0 packets,
13708 throw NOT_SUPPORTED_ERROR error.
13709 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13710 * target.h (target_insert_breakpoint): Extend comment.
13711 (target_insert_hw_breakpoint): Add comment.
13712
b7ea362b
PA
137132014-01-08 Pedro Alves <palves@redhat.com>
13714
13715 * remote.c (remote_add_thread): Add threads silently if starting
13716 up.
13717 (remote_notice_new_inferior): If in all-stop, and starting up,
13718 don't call notice_new_inferior.
13719 (get_current_thread): New function, factored out from ...
13720 (add_current_inferior_and_thread): ... this. Adjust.
13721 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13722 found any thread, then select the remote's current thread as GDB's
13723 current thread too.
13724
b7bba001
JB
137252014-01-08 Joel Brobecker <brobecker@adacore.com>
13726
13727 * NEWS: Create a new section for the next release branch.
13728 Rename the section of the current branch, now that it has
13729 been cut.
13730
16dfbded
JB
137312014-01-08 Joel Brobecker <brobecker@adacore.com>
13732
13733 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13734 * version.in: Bump version to 7.7.50.DATE-cvs.
13735
22c90ac1
YQ
137362014-01-08 Yao Qi <yao@codesourcery.com>
13737
13738 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13739 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13740 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13741
d64ad97c
YQ
137422014-01-08 Yao Qi <yao@codesourcery.com>
13743
13744 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13745 return value of bfd_get_filename to symbol_file_add_from_bfd.
13746
f93ba80c
PM
137472014-01-08 Pierre Muller <muller@sourceware.org>
13748
13749 Fix PR16201.
13750 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13751 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13752 to prim_record_mininal_symbol_and_info.
13753 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13754 in call to prim_record_minimal_symbol_and_info.
13755 (read_pe_exported_syms): Set index field of section_data.
13756
a4d9ba85
AP
137572014-01-07 Andrew Pinski <apinski@cavium.com>
13758
13759 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13760 * features/aarch64.c: Regenerate.
13761
1b67eb02
AS
137622014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13763
13764 * target.c (return_null): Define.
13765 (update_current_target): Use it instead of return_zero for
13766 functions that return a pointer.
13767
5e3f4fab
EBM
137682014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13769
13770 * source.c (add_path): Fix check for duplicated paths in the previously
13771 included paths.
13772
e2616788
HK
137732014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13774
13775 * ada-lang.c: Remove duplicated include statements.
13776 * alphabsd-nat.c: Ditto.
13777 * amd64-darwin-tdep.c: Ditto.
13778 * amd64fbsd-nat.c: Ditto.
13779 * auto-load.c: Ditto.
13780 * ax-gdb.c: Ditto.
13781 * breakpoint.c: Ditto.
13782 * dbxread.c: Ditto.
13783 * fork-child.c: Ditto.
13784 * gdb_usleep.c: Ditto.
13785 * i386-darwin-tdep.c: Ditto.
13786 * i386fbsd-nat.c: Ditto.
13787 * infcmd.c: Ditto.
13788 * inferior.c: Ditto.
13789 * jv-lang.c: Ditto.
13790 * linux-nat.c: Ditto.
13791 * linux-tdep.c: Ditto.
13792 * m68kbsd-nat.c: Ditto.
13793 * m68klinux-nat.c: Ditto.
13794 * microblaze-tdep.c: Ditto.
13795 * mips-linux-tdep.c: Ditto.
13796 * mn10300-tdep.c: Ditto.
13797 * nto-tdep.c: Ditto.
13798 * opencl-lang.c: Ditto.
13799 * osdata.c: Ditto.
13800 * printcmd.c: Ditto.
13801 * regcache.c: Ditto.
13802 * remote-m32r-sdi.c: Ditto.
13803 * remote.c: Ditto.
13804 * symfile.c: Ditto.
13805 * symtab.c: Ditto.
13806 * tilegx-linux-nat.c: Ditto.
13807 * tilegx-tdep.c: Ditto.
13808 * tracepoint.c: Ditto.
13809 * valops.c: Ditto.
13810 * vaxbsd-nat.c: Ditto.
13811 * windows-nat.c: Ditto.
13812 * xtensa-tdep.c: Ditto.
13813
bd1f7788
YQ
138142014-01-07 Yao Qi <yao@codesourcery.com>
13815
13816 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13817
79301218
JB
138182014-01-07 Yao Qi <yao@codesourcery.com>
13819 Joel Brobecker <brobecker@adacore.com>
13820
13821 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13822 (pdc_write_regs): Likewise.
13823 (fetch_regs_kernel_thread): Likewise.
13824 (store_regs_kernel_thread): Likewise.
13825
138262014-01-07 Joel Brobecker <brobecker@adacore.com>
13827
13828 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13829 tagged type objects to their actual type.
13830
8e355c5d
JB
138312014-01-07 Joel Brobecker <brobecker@adacore.com>
13832
13833 * ada-valprint.c (print_field_values): Add "language" parameter.
13834 Update calls to print_field_values and print_variant_part.
13835 Pass new parameter "language" in call to val_print instead
13836 of "current_language". Replace call to ada_val_print by call
13837 to val_print.
13838 (print_variant_part): Add "language" parameter.
13839 (ada_val_print_struct_union): Update call to print_field_values.
13840
4fbf5aa5
JB
138412014-01-07 Joel Brobecker <brobecker@adacore.com>
13842
13843 * ada-valprint.c (ui_memcpy): Delete.
13844 (ada_print_floating): Update documentation. Add empty line
13845 between between function documentation and implementation.
13846 Delete variable "buffer". Use ui_file_xstrdup in place of
13847 ui_file_put. Minor adjustments following this change.
13848
71855601
JB
138492014-01-07 Joel Brobecker <brobecker@adacore.com>
13850
13851 * ada-valprint.c (ada_val_print_string): New function,
13852 extracted from ada_val_print_array.
13853 (ada_val_print_array): Replace extracted code by call
13854 to ada_val_print_string followed by a return. Move
13855 "else" branch to the function's top block.
13856
4eb27a30
JB
138572014-01-07 Joel Brobecker <brobecker@adacore.com>
13858
13859 * ada-valprint.c (ada_val_print_array): Move implementation
13860 down. Rename parameter "offset" and "val" into "offset_aligned"
13861 and "original_value" respectively. Add parameter "offset".
13862
34b27950
JB
138632014-01-07 Joel Brobecker <brobecker@adacore.com>
13864
13865 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13866 re-organizing the code. Change the "???" message printed
13867 when target type is a TYPE_CODE_UNDEF into
13868 "<ref to undefined type>".
13869
079e4591
JB
138702014-01-07 Joel Brobecker <brobecker@adacore.com>
13871
13872 * ada-valprint.c (print_record): Delete, implementation inlined...
13873 (ada_val_print_struct_union): ... here. Remove call to
13874 ada_check_typedef in inlined implementation.
13875
8004dfd1
JB
138762014-01-07 Joel Brobecker <brobecker@adacore.com>
13877
13878 * ada-valprint.c (ada_val_print_gnat_array): New function,
13879 extracted from ada_val_print_1;
13880 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13881 (ada_val_print_flt, ada_val_print_struct_union)
13882 (ada_val_print_ref): Likewise.
13883 (ada_val_print_1): Delete variables i and elttype.
13884 Replace extracted-out code by call to corresponding
13885 new functions.
13886
760a2db0
JB
138872014-01-07 Joel Brobecker <brobecker@adacore.com>
13888
13889 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13890
3a92c861
JB
138912014-01-07 Joel Brobecker <brobecker@adacore.com>
13892
13893 * ada-valprint.c (ada_val_print_1): Replace calls to
13894 ada_val_print_1 by calls to val_print.
13895
cd1630f9
JB
138962014-01-07 Joel Brobecker <brobecker@adacore.com>
13897
13898 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13899 Update calls to self accordingly. Replace calls to c_val_print
13900 by calls to val_print.
13901
bdf779a0
JB
139022014-01-07 Joel Brobecker <brobecker@adacore.com>
13903
13904 * ada-valprint.c (print_record): Delete declaration.
13905 (adjust_type_signedness, ada_val_print_1): Likewise.
13906 (ada_val_print): Move function implementation down.
13907 (print_variant_part, print_field_values, print_record):
13908 Move function implementation up.
13909
c0d48811
JB
139102014-01-07 Joel Brobecker <brobecker@adacore.com>
13911
13912 * python/py-type.c (typy_get_name): New function.
13913 (type_object_getset): Add entry for attribute "name".
13914 * NEWS: Add entry mentioning this new attribute.
13915
c26e9cbb
YQ
139162014-01-07 Yao Qi <yao@codesourcery.com>
13917
13918 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13919 statement.
13920
0cc6f43d
YQ
139212014-01-07 Yao Qi <yao@codesourcery.com>
13922
13923 * gnu-nat.c (info_port_rights): Add qualifier const to
13924 argument args.
13925
eec03155
YQ
139262014-01-07 Yao Qi <yao@codesourcery.com>
13927
13928 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13929
f04a82ef
YQ
139302014-01-07 Yao Qi <yao@codesourcery.com>
13931
13932 * gnu-nat.c (make_inf) Update declaration.
13933 (make_inf): Make it static.
13934 (inf_set_traced): Likewise.
13935 (inf_port_to_thread, inf_task_died_status): Likewise.
13936
d57dda0a
YQ
139372014-01-07 Yao Qi <yao@codesourcery.com>
13938
13939 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13940
3aa8c969
YQ
139412014-01-07 Yao Qi <yao@codesourcery.com>
13942
13943 * gnu-nat.c (_initialize_gnu_nat): Declare.
13944
94123b4f
YQ
139452014-01-07 Yao Qi <yao@codesourcery.com>
13946
13947 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13948 'enum bfd_endian'.
13949 (struct gdbarch_info) <byte_order>: Change type to
13950 'enum bfd_endian'.
13951 <byte_order_for_code>: Likewise.
13952 * gdbarch.c, gdbarch.h: Regenerated.
13953
dc81d70a
TT
139542014-01-06 Sasha Smundak <asmundak@google.com>
13955
13956 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13957
cc2f3c35
TT
139582014-01-06 Tom Tromey <tromey@redhat.com>
13959
13960 * doublest.c (convert_doublest_to_floatformat): Use const, not
13961 CONST.
13962 * somread.c (som_symtab_read): Likewise.
13963
adcf2eed
HZ
139642014-01-07 Hui Zhu <hui@codesourcery.com>
13965
13966 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13967 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13968 (gdb_bfd_fopen): Ditto.
13969 (gdb_bfd_openr): Ditto.
13970 (gdb_bfd_openw): Ditto.
13971 (gdb_bfd_openr_iovec): Ditto.
13972 (gdb_bfd_fdopenr): Ditto.
13973 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13974 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13975 with xstrdup.
13976 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13977 with xstrdup.
13978 * symfile-mem.c (symbol_file_add_from_memory): Removed
13979 gdb_bfd_stash_filename.
13980
50722198
DE
139812014-01-03 Doug Evans <dje@google.com>
13982
13983 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13984 output.
13985
2fa4b862
JB
139862014-01-01 Joel Brobecker <brobecker@adacore.com>
13987
13988 Update year range in copyright notice of all files.
13989
28498c42
JB
139902014-01-01 Joel Brobecker <brobecker@adacore.com>
13991
13992 * top.c (print_gdb_version): Set copyright year to 2014.
13993
7b6e1046
JB
139942014-01-01 Joel Brobecker <brobecker@adacore.com>
13995
13996 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13997
df96af55 13998For older changes see ChangeLog-2013.
c906108c
SS
13999\f
14000Local Variables:
14001mode: change-log
14002left-margin: 8
14003fill-column: 74
14004version-control: never
57da7796 14005coding: utf-8
c906108c 14006End:
This page took 2.270432 seconds and 4 git commands to generate.