Run eh_frame optimisation for relocatable link
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c780cc2f
JK
12014-10-13 Miroslav Franc <mfranc@redhat.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
3
4 Fix "save breakpoints" for "catch" command.
5 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
6 newline.
7
99894e11
JK
82014-10-12 Miroslav Franc <mfranc@redhat.com>
9
10 Fix "save breakpoints" for "disable $bpnum" command.
11 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
12
3831839c
PA
132014-10-10 Pedro Alves <palves@redhat.com>
14
15 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
16 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
17 (HFILES_NO_SRCDIR): Remove solib-irix.h.
18 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
19 and been removed.
20 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
21 * configure.ac: Remove references to IRIX.
22 * configure.host: Add *-*-irix* to the obsolete hosts section.
23 Remove all other references to irix.
24 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
25 Delete files.
26
cc3afae2
AKA
272014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
28
29 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
30 isn't valid, release the tdesc arch data and return NULL.
31
cdfa0b0a
PA
322014-10-10 Pedro Alves <palves@redhat.com>
33
34 * linux-tdep.c: Include observer.h.
35 (linux_inferior_data): New global.
36 (struct linux_info): New structure.
37 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
38 (get_linux_inferior_data): New functions.
39 (linux_vsyscall_range): Rename to ...
40 (linux_vsyscall_range_raw): ... this.
41 (linux_vsyscall_range): New function; handles caching.
42 (_initialize_linux_tdep): Register linux_inferior_data. Install
43 inferior_exit and inferior_appeared observers.
44
8b9a549d
PA
452014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
46 Pedro Alves <palves@redhat.com>
47
48 PR symtab/14466
49 * solib-svr4.c (svr4_read_so_list): Rename to ...
50 (svr4_current_sos_1): ... this and change the function comment.
51 (svr4_current_sos): New function.
52
3437254d
PA
532014-10-10 Pedro Alves <palves@redhat.com>
54
55 * arch-utils.c (default_vsyscall_range): New function.
56 * arch-utils.h (default_vsyscall_range): New declaration.
57 * gdbarch.sh (vsyscall_range): New hook.
58 * gdbarch.h, gdbarch.c: Regenerate.
59 * linux-tdep.c (linux_vsyscall_range): New function.
60 (linux_init_abi): Install linux_vsyscall_range as
61 vsyscall_range gdbarch hook.
62 * memrange.c (address_in_mem_range): New function.
63 * memrange.h (address_in_mem_range): New declaration.
64 * symfile-mem.c (find_vdso_size): Delete function.
65 (add_vsyscall_page): Use gdbarch_vsyscall_range.
66
31cc0b80
PA
672014-10-10 Pedro Alves <palves@redhat.com>
68
69 * infrun.c (normal_stop): Fix typo in comment.
70
3e3286a2
SDJ
712014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
72
73 PR tdep/9390
74 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
75 typo when using logical AND to determine instruction type.
76
fcbdedf8
YQ
772014-10-09 Yao Qi <yao@codesourcery.com>
78
79 * infrun.c (handle_signal_stop): Remove local variable
80 'printed'.
81
db984616
SS
822014-10-08 Stan Shebs <stan@codesourcery.com>
83
84 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
85
3ba37e6c
GB
862014-10-08 Gary Benson <gbenson@redhat.com>
87
88 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
89
a442d071
GB
902014-10-08 Gary Benson <gbenson@redhat.com>
91
92 * common/common-defs.h: Include common-exceptions.h.
93 * exceptions.h: Do not include common-exceptions.h.
94
6f1947e8
GB
952014-10-08 Gary Benson <gbenson@redhat.com>
96
97 * common/common-defs.h: Include cleanups.h.
98 * common/common-exceptions.c: Do not include cleanups.h.
99 * utils.h: Likewise.
100
c765fdb9
GB
1012014-10-08 Gary Benson <gbenson@redhat.com>
102
103 * ada-lang.c: Do not include exceptions.h.
104 * ada-valprint.c: Likewise.
105 * amd64-tdep.c: Likewise.
106 * auto-load.c: Likewise.
107 * block.c: Likewise.
108 * break-catch-throw.c: Likewise.
109 * breakpoint.c: Likewise.
110 * btrace.c: Likewise.
111 * c-lang.c: Likewise.
112 * cli/cli-cmds.c: Likewise.
113 * cli/cli-interp.c: Likewise.
114 * cli/cli-script.c: Likewise.
115 * completer.c: Likewise.
116 * corefile.c: Likewise.
117 * corelow.c: Likewise.
118 * cp-abi.c: Likewise.
119 * cp-support.c: Likewise.
120 * cp-valprint.c: Likewise.
121 * darwin-nat.c: Likewise.
122 * dwarf2-frame-tailcall.c: Likewise.
123 * dwarf2-frame.c: Likewise.
124 * dwarf2loc.c: Likewise.
125 * dwarf2read.c: Likewise.
126 * eval.c: Likewise.
127 * event-loop.c: Likewise.
128 * event-top.c: Likewise.
129 * f-valprint.c: Likewise.
130 * frame-unwind.c: Likewise.
131 * frame.c: Likewise.
132 * gdbtypes.c: Likewise.
133 * gnu-v2-abi.c: Likewise.
134 * gnu-v3-abi.c: Likewise.
135 * guile/scm-auto-load.c: Likewise.
136 * guile/scm-breakpoint.c: Likewise.
137 * guile/scm-cmd.c: Likewise.
138 * guile/scm-frame.c: Likewise.
139 * guile/scm-lazy-string.c: Likewise.
140 * guile/scm-param.c: Likewise.
141 * guile/scm-symbol.c: Likewise.
142 * guile/scm-type.c: Likewise.
143 * hppa-hpux-tdep.c: Likewise.
144 * i386-tdep.c: Likewise.
145 * inf-loop.c: Likewise.
146 * infcall.c: Likewise.
147 * infcmd.c: Likewise.
148 * infrun.c: Likewise.
149 * interps.c: Likewise.
150 * interps.h: Likewise.
151 * jit.c: Likewise.
152 * linespec.c: Likewise.
153 * linux-nat.c: Likewise.
154 * linux-thread-db.c: Likewise.
155 * m32r-rom.c: Likewise.
156 * main.c: Likewise.
157 * memory-map.c: Likewise.
158 * mi/mi-cmd-break.c: Likewise.
159 * mi/mi-cmd-stack.c: Likewise.
160 * mi/mi-interp.c: Likewise.
161 * mi/mi-main.c: Likewise.
162 * monitor.c: Likewise.
163 * nto-procfs.c: Likewise.
164 * objc-lang.c: Likewise.
165 * p-valprint.c: Likewise.
166 * parse.c: Likewise.
167 * ppc-linux-tdep.c: Likewise.
168 * printcmd.c: Likewise.
169 * probe.c: Likewise.
170 * python/py-auto-load.c: Likewise.
171 * python/py-breakpoint.c: Likewise.
172 * python/py-cmd.c: Likewise.
173 * python/py-finishbreakpoint.c: Likewise.
174 * python/py-frame.c: Likewise.
175 * python/py-framefilter.c: Likewise.
176 * python/py-function.c: Likewise.
177 * python/py-gdb-readline.c: Likewise.
178 * python/py-inferior.c: Likewise.
179 * python/py-infthread.c: Likewise.
180 * python/py-lazy-string.c: Likewise.
181 * python/py-linetable.c: Likewise.
182 * python/py-param.c: Likewise.
183 * python/py-prettyprint.c: Likewise.
184 * python/py-symbol.c: Likewise.
185 * python/py-type.c: Likewise.
186 * python/py-value.c: Likewise.
187 * python/python-internal.h: Likewise.
188 * python/python.c: Likewise.
189 * record-btrace.c: Likewise.
190 * record-full.c: Likewise.
191 * regcache.c: Likewise.
192 * remote-fileio.c: Likewise.
193 * remote-mips.c: Likewise.
194 * remote.c: Likewise.
195 * rs6000-aix-tdep.c: Likewise.
196 * rs6000-nat.c: Likewise.
197 * skip.c: Likewise.
198 * solib-darwin.c: Likewise.
199 * solib-dsbt.c: Likewise.
200 * solib-frv.c: Likewise.
201 * solib-ia64-hpux.c: Likewise.
202 * solib-spu.c: Likewise.
203 * solib-svr4.c: Likewise.
204 * solib.c: Likewise.
205 * spu-tdep.c: Likewise.
206 * stack.c: Likewise.
207 * stap-probe.c: Likewise.
208 * symfile-mem.c: Likewise.
209 * symmisc.c: Likewise.
210 * target.c: Likewise.
211 * thread.c: Likewise.
212 * top.c: Likewise.
213 * tracepoint.c: Likewise.
214 * tui/tui-interp.c: Likewise.
215 * typeprint.c: Likewise.
216 * utils.c: Likewise.
217 * valarith.c: Likewise.
218 * valops.c: Likewise.
219 * valprint.c: Likewise.
220 * value.c: Likewise.
221 * varobj.c: Likewise.
222 * windows-nat.c: Likewise.
223 * xml-support.c: Likewise.
224
484933d1
MR
2252014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
226
227 * mips-tdep.c (add_offset_16): Rewrite to implement what the
228 name implies.
229 (extended_mips16_next_pc): Update accordingly.
230
ab50adb6
MR
2312014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
232
233 * mips-tdep.c (mips16_instruction_is_compact_branch): New
234 function.
235 (micromips_instruction_is_compact_branch): Likewise.
236 (mips16_scan_prologue): Terminate scanning upon seeing a branch
237 or a compact jump, reaching a jump delay slot, or seeing a
238 second non-prologue instruction.
239 (micromips_scan_prologue): Also terminate scanning upon seeing a
240 compact branch or jump, or reaching a branch or jump delay slot.
241 (mips32_scan_prologue): Terminate scanning upon reaching a branch
242 or jump delay slot, or seeing a second non-prologue instruction.
243 (mips32_instruction_has_delay_slot): Retain instruction
244 examination code only, update arguments accordingly and move
245 instruction fetch pieces to...
246 (mips32_insn_at_pc_has_delay_slot): ... this new function.
247 (micromips_instruction_has_delay_slot): Likewise and to...
248 (micromips_insn_at_pc_has_delay_slot): ... this new function.
249 (mips16_instruction_has_delay_slot): Likewise and to...
250 (mips16_insn_at_pc_has_delay_slot): ... this new function.
251 (mips_single_step_through_delay): Update accordingly.
252 (mips_adjust_breakpoint_address): Likewise.
253
ae790652
MR
2542014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
255
256 * mips-tdep.c (micromips_instruction_has_delay_slot): When
257 !mustbe32 also return 1 for 32-bit instructions.
258 (mips16_instruction_has_delay_slot): Likewise. Add an
259 explanatory comment.
260
9b807e7b
MR
2612014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
262
263 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
264 symbols special.
265
0d5ed153
MR
2662014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
267
268 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
269 update comments.
270 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
271 for the breakpoint's address. Don't preinitialize `placed_size'.
272 (insert_bp_location): Set `reqstd_address' rather than
273 `placed_address'.
274 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
275 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
276 address.
277 (bkpt_remove_location): Likewise.
278 (deprecated_insert_raw_breakpoint): Likewise.
279 (deprecated_remove_raw_breakpoint): Likewise.
280 (find_single_step_breakpoint): Likewise.
281 * mem-break.c (default_memory_insert_breakpoint): Use
282 `reqstd_address' for the breakpoint's address. Don't set
283 `placed_address' or `placed_size' if breakpoint contents couldn't
284 have been determined.
285 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
286 the breakpoint's address.
287 (remote_insert_hw_breakpoint): Likewise. Don't set
288 `placed_address' or `placed_size' if breakpoint couldn't have been
289 set.
290 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
291 `reqstd_address' for the breakpoint's address.
292 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
293 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
294 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
295 * microblaze-linux-tdep.c
296 (microblaze_linux_memory_remove_breakpoint): Likewise.
297 * monitor.c (monitor_insert_breakpoint): Likewise.
298 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
299 (procfs_insert_hw_breakpoint): Likewise.
300 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
301 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
302 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
303 * remote-mips.c (mips_insert_breakpoint): Likewise.
304 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
305
3e871532
LM
3062014-10-03 Luis Machado <lgustavo@codesourcery.com>
307
308 * valops.c (value_assign): Check for bit field assignments
309 before calling architecture-specific register value
310 conversion functions.
311
ec48dc8b
PM
3122014-10-03 Pierre Muller <muller@sourceware.org>
313
314 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
315
b57bacec
PA
3162014-10-02 Pedro Alves <palves@redhat.com>
317
318 * breakpoint.c (breakpoints_should_be_inserted_now): Use
319 threads_are_executing.
320 * breakpoint.h (breakpoints_should_be_inserted_now): Add
321 describing comment.
322 * gdbthread.h (threads_are_executing): Declare.
323 (handle_signal_stop) <random signals>: Don't print about the
324 signal here if stopping.
325 (end_stepping_range): Don't notify observers here.
326 (normal_stop): Update the thread list. If stopped by a random
327 signal or a stepping range ended, notify observers.
328 * thread.c (threads_executing): New global.
329 (init_thread_list): Clear 'threads_executing'.
330 (set_executing): Set or clear 'threads_executing'.
331 (threads_are_executing): New function.
332 (update_threads_executing): New function.
333 (update_thread_list): Use it.
334
13fd3ff3
PA
3352014-10-02 Pedro Alves <palves@redhat.com>
336
337 PR breakpoints/17431
338 * breakpoint.c (update_breakpoints_after_exec): Don't create
339 overlay, longjmp, std terminate nor exception breakpoints here.
340
32990ada
PA
3412014-10-02 Pedro Alves <palves@redhat.com>
342
343 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
344 Adjust comments.
345 * inferior.c (find_inferior_for_program_space): Give preference to
346 the current inferior.
347 * inferior.h (find_inferior_for_program_space): Update comment.
348 * progspace.c (switch_to_program_space_and_thread): Prefer the
349 current inferior if it's bound to the program space requested. If
350 the inferior found doesn't have a PID yet, don't bother looking up
351 a thread.
352 * progspace.h (switch_to_program_space_and_thread): Adjust
353 comment.
354 * thread.c (any_thread_of_process, any_live_thread_of_process):
355 Give preference to the current thread.
356
0fec99e8
PA
3572014-10-01 Pedro Alves <palves@redhat.com>
358
359 * breakpoint.c (insert_bp_location): Error out if inserting a
360 software breakpoint at a read-only address.
361 * target.c (memory_xfer_check_region): New function, factored out
362 from ...
363 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
364 ULONGEST.
365 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
366 against the memory region attributes.
367
2ddf4301
SM
3682014-10-01 Simon Marchi <simon.marchi@ericsson.com>
369
370 * NEWS: Announce new exit-code field in -list-thread-groups
371 output.
372 * inferior.c (exit_inferior_1): Don't clear exit code.
373 (inferior_appeared): Clear exit code.
374 * mi/mi-main.c (print_one_inferior): Add printing of the exit
375 code.
376
5fdeec1d
PA
3772014-10-01 Pedro Alves <palves@redhat.com>
378
379 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
380 GENERATED" along with emacs/vi read-only markers.
381 * regformats/aarch64.dat: Regenerate.
382 * regformats/arm-with-iwmmxt.dat: Regenerate.
383 * regformats/arm-with-neon.dat: Regenerate.
384 * regformats/arm-with-vfpv2.dat: Regenerate.
385 * regformats/arm-with-vfpv3.dat: Regenerate.
386 * regformats/i386/amd64-avx-linux.dat: Regenerate.
387 * regformats/i386/amd64-avx.dat: Regenerate.
388 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
389 * regformats/i386/amd64-avx512.dat: Regenerate.
390 * regformats/i386/amd64-linux.dat: Regenerate.
391 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
392 * regformats/i386/amd64-mpx.dat: Regenerate.
393 * regformats/i386/amd64.dat: Regenerate.
394 * regformats/i386/i386-avx-linux.dat: Regenerate.
395 * regformats/i386/i386-avx.dat: Regenerate.
396 * regformats/i386/i386-avx512-linux.dat: Regenerate.
397 * regformats/i386/i386-avx512.dat: Regenerate.
398 * regformats/i386/i386-linux.dat: Regenerate.
399 * regformats/i386/i386-mmx-linux.dat: Regenerate.
400 * regformats/i386/i386-mmx.dat: Regenerate.
401 * regformats/i386/i386-mpx-linux.dat: Regenerate.
402 * regformats/i386/i386-mpx.dat: Regenerate.
403 * regformats/i386/i386.dat: Regenerate.
404 * regformats/i386/x32-avx-linux.dat: Regenerate.
405 * regformats/i386/x32-avx.dat: Regenerate.
406 * regformats/i386/x32-avx512-linux.dat: Regenerate.
407 * regformats/i386/x32-avx512.dat: Regenerate.
408 * regformats/i386/x32-linux.dat: Regenerate.
409 * regformats/i386/x32.dat: Regenerate.
410 * regformats/microblaze-with-stack-protect.dat: Regenerate.
411 * regformats/mips-dsp-linux.dat: Regenerate.
412 * regformats/mips-linux.dat: Regenerate.
413 * regformats/mips64-dsp-linux.dat: Regenerate.
414 * regformats/mips64-linux.dat: Regenerate.
415 * regformats/nios2-linux.dat: Regenerate.
416 * regformats/rs6000/powerpc-32.dat: Regenerate.
417 * regformats/rs6000/powerpc-32l.dat: Regenerate.
418 * regformats/rs6000/powerpc-64l.dat: Regenerate.
419 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
420 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
421 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
422 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
423 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
424 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
425 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
426 * regformats/s390-linux32.dat: Regenerate.
427 * regformats/s390-linux32v1.dat: Regenerate.
428 * regformats/s390-linux32v2.dat: Regenerate.
429 * regformats/s390-linux64.dat: Regenerate.
430 * regformats/s390-linux64v1.dat: Regenerate.
431 * regformats/s390-linux64v2.dat: Regenerate.
432 * regformats/s390-te-linux64.dat: Regenerate.
433 * regformats/s390x-linux64.dat: Regenerate.
434 * regformats/s390x-linux64v1.dat: Regenerate.
435 * regformats/s390x-linux64v2.dat: Regenerate.
436 * regformats/s390x-te-linux64.dat: Regenerate.
437 * regformats/tic6x-c62x-linux.dat: Regenerate.
438 * regformats/tic6x-c62x.dat: Regenerate.
439 * regformats/tic6x-c64x-linux.dat: Regenerate.
440 * regformats/tic6x-c64x.dat: Regenerate.
441 * regformats/tic6x-c64xp-linux.dat: Regenerate.
442 * regformats/tic6x-c64xp.dat: Regenerate.
443
db74e4ba
PA
4442014-10-01 Pedro Alves <palves@redhat.com>
445
446 * features/Makefile: Update comments.
447 (XMLTOC): List all xml files we build C files from.
448 (clean-cfiles): New rule.
449
d63f2f84
PA
4502014-10-01 Pedro Alves <palves@redhat.com>
451
452 * features/i386/amd64-avx512-linux.c: Regenerate.
453 * features/i386/amd64-avx512.c: Regenerate.
454 * features/i386/x32-avx512-linux.c: Regenerate.
455 * features/i386/x32-avx512.c: Regenerate.
456
20ad026d
PA
4572014-10-01 Pedro Alves <palves@redhat.com>
458
459 * features/Makefile (WHICH): Remove arm-with-m,
460 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
461
acc9fe45
PA
4622014-10-01 Pedro Alves <palves@redhat.com>
463
464 * features/Makefile (clean): New rule.
465
e001e535
PA
4662014-10-01 Pedro Alves <palves@redhat.com>
467
468 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
469 (zmm14h): Add missing end quotes.
470
bdc14417
PA
4712014-10-01 Pedro Alves <palves@redhat.com>
472
473 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
474 * features/aarch64.c: Regenerate.
475
d83ad864
DB
4762014-09-30 Don Breazeal <donb@codesourcery.com>
477
478 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
479 code so as to work with follow_fork_inferior.
480 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
481 (inf_ttrace_create_inferior): Remove reference to
482 inf_ttrace_vfork_ppid.
483 (inf_ttrace_attach): Ditto.
484 (inf_ttrace_detach): Ditto.
485 (inf_ttrace_kill): Use current_inferior instead of
486 inf_ttrace_vfork_ppid.
487 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
488 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
489 inferior away from the parent.
490 * infrun.c (follow_fork): Call follow_fork_inferior instead of
491 target_follow_fork.
492 (follow_fork_inferior): New function.
493 (follow_inferior_reset_breakpoints): Make function static.
494 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
495 * linux-nat.c (linux_child_follow_fork): Move target-independent
496 code to infrun.c:follow_fork_inferior.
497
29082443
AA
4982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
499
500 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
501 * gdbarch.c: Regenerate.
502 * gdbarch.h: Likewise.
503 * corelow.c (sniff_core_bfd): Drop presence check for deleted
504 gdbarch method 'regset_from_core_section'.
505 (get_core_register_section): Remove handling for the case that
506 regset == NULL and regset_from_core_section is defined.
507 (get_core_registers): Drop check for deleted method.
508 * procfs.c (procfs_do_thread_registers): Adjust comment.
509
f968fe80
AA
5102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
511
512 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
513 (linux_nat_make_corefile_notes): Remove.
514 (linux_target_install_ops): Do not set target method
515 'make_corefile_notes'.
516 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
517 Remove field.
518 (linux_corefile_thread_callback): Instead of args->collect, call
519 linux_collect_thread_registers.
520 (linux_make_corefile_notes): Remove 'collect' parameter. Return
521 NULL unless there is a regset iterator.
522 (linux_make_corefile_notes_1): Remove.
523 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
524 by linux_make_corefile_notes.
525 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
526
174ad59a
AA
5272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
528
529 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
530 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
531 Remove.
532 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
533
97094034
AA
5342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
535
536 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
537 (xtensa_iterate_over_regset_sections): New.
538 (xtensa_gdbarch_init): Adjust gdbarch initialization.
539
f73d3ce7
AA
5402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
541
542 * vax-tdep.c (vax_regset_from_core_section): Remove.
543 (vax_iterate_over_regset_sections): New.
544 (vax_gdbarch_init): Adjust gdbarch initialization.
545
cb24567a
AA
5462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
547
548 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
549 (tilegx_regset_from_core_section): Remove.
550 (tilegx_iterate_over_regset_sections): New.
551 (tilegx_linux_init_abi): Adjust gdbarch initialization.
552
e5139de8
AA
5532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
554
555 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
556 (sparc_iterate_over_regset_sections): New.
557 (sparc32_gdbarch_init): Adjust gdbarch initialization.
558 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
559 targets.
560 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
561 (sparc64fbsd_init_abi): Call fbsd_init_abi.
562 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
563 target method 'make_corefile_notes'.
564
c6d41a6f
AA
5652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
566
567 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
568 'sizeof_gregset' and 'sizeof_fpregset'.
569 * sh-tdep.c (sh_regset_from_core_section): Remove.
570 (sh_iterate_over_regset_sections): New.
571 (sh_gdbarch_init): Adjust gdbarch initialization.
572 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
573 sizeof_fpregset.
574 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
575 'sizeof_gregset'.
576
9845a0b5
AA
5772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
578
579 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
580 (score7_linux_iterate_over_regset_sections): New.
581 (score_gdbarch_init): Adjust gdbarch initialization.
582
23ea9aeb
AA
5832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
584
585 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
586 FreeBSD targets.
587 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
588 method 'make_corefile_notes'.
589 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
590 (ppcfbsd_regset_from_core_section): Remove.
591 (ppcfbsd_iterate_over_regset_sections): New.
592 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
593 initialization.
594 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
595 (ppcnbsd_iterate_over_regset_sections): New.
596 (ppcnbsd_init_abi): Adjust.
597 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
598 (ppcobsd_iterate_over_regset_sections): New.
599 (ppcobsd_init_abi): Adjust.
600 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
601 (rs6000_aix_iterate_over_regset_sections): New.
602 (rs6000_aix_init_osabi): Adjust.
603
c5b8d704
AA
6042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
605
606 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
607 (nios2_regset_from_core_section): Remove.
608 (nios2_iterate_over_regset_sections): New.
609 (nios2_linux_init_abi): Adjust gdbarch initialization.
610
3636e608
AA
6112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
612
613 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
614 (am33_iterate_over_regset_sections): New.
615 (am33_linux_init_osabi): Adjust gdbarch initialization.
616
d4036235
AA
6172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
618
619 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
620 (mips_linux_iterate_over_regset_sections): New.
621 (mips_linux_init_abi): Adjust gdbarch initialization.
622 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
623 (mips64obsd_iterate_over_regset_sections): New.
624 (mips64obsd_init_abi): Adjust.
625 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
626 (mipsnbsd_iterate_over_regset_sections): New.
627 (mipsnbsd_init_abi): Adjust.
628
b61ddd6e
AA
6292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
630
631 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
632 (m88k_iterate_over_regset_sections): New.
633 (m88k_gdbarch_init): Adjust gdbarch initialization.
634
55a2906a
AA
6352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
636
637 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
638 (ia64_linux_iterate_over_regset_sections): New.
639 (ia64_linux_init_abi): Adjust gdbarch initialization.
640
022c98ab
AA
6412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
642
643 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
644 (m68kbsd_iterate_over_regset_sections): New.
645 (m68kbsd_init_abi): Adjust gdbarch initialization.
646 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
647 (m68k_linux_iterate_over_regset_sections): New.
648 (m68k_linux_init_abi): Adjust gdbarch initialization.
649
5fac247f
AA
6502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
651
652 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
653 (m32r_linux_regset_from_core_section): Remove.
654 (m32r_linux_iterate_over_regset_sections): New.
655 (m32r_linux_init_abi): Adjust gdbarch initialization.
656
490496c3
AA
6572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
658
659 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
660 (amd64obsd_iterate_over_regset_sections): New.
661 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
662 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
663 Remove.
664 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
665 regset_from_core_section initialization.
666 * i386-tdep.c (i386_regset_from_core_section): Remove.
667 (i386_iterate_over_regset_sections): New.
668 (i386_gdbarch_init): Adjust gdbarch initialization.
669 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
670 (i386_iterate_over_regset_sections): New prototype.
671 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
672 Remove.
673 (i386obsd_aout_iterate_over_regset_sections): New.
674 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
675 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
676 targets.
677 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
678 (amd64fbsd_init_abi): Call fbsd_init_abi.
679 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
680 (i386fbsd4_init_abi): Call fbsd_init_abi.
681 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
682 target method 'make_corefile_notes'.
683 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
684
50c5eb53
AA
6852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
686
687 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
688 (hppa_hpux_iterate_over_regset_sections): New.
689 (hppa_hpux_init_abi): Adjust gdbarch initialization.
690 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
691 (hppa_linux_iterate_over_regset_sections): New.
692 (hppa_linux_init_abi): Adjust.
693 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
694 (hppanbsd_iterate_over_regset_sections): New.
695 (hppanbsd_init_abi): Adjust.
696 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
697 (hppaobsd_iterate_over_regset_sections): New.
698 (hppaobsd_init_abi): Adjust.
699
66afae4f
AA
7002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
701
702 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
703 (frv_linux_iterate_over_regset_sections): New.
704 (frv_linux_init_abi): Adjust gdbarch initialization.
705
ed09174e
AA
7062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
707
708 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
709 (armbsd_iterate_over_regset_sections): New prototype.
710 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
711 (armbsd_iterate_over_regset_sections): New.
712 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
713 initialization.
714
dff2166e
AA
7152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
716
717 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
718 (alpha_linux_iterate_over_regset_sections): New.
719 (alpha_linux_init_abi): Adjust gdbarch initialization.
720 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
721 prototype.
722 (alphanbsd_iterate_over_regset_sections): New prototype.
723
4108500a
AA
7242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
725
726 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
727 Remove.
728 (aarch64_linux_iterate_over_regset_sections): New.
729 (aarch64_linux_init_abi): Adjust gdbarch initialization.
730
a904c024
AA
7312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
732
733 * fbsd-tdep.c: New file.
734 * fbsd-tdep.h: New file.
735 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
736 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
737 (ALLDEPFILES): Add fbsd-tdep.c.
738
8f0435f7
AA
7392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
740
741 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
742 parameter.
743 * gdbarch.h: Regenerate.
744 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
745 iterator.
746 (get_core_register_section): Add parameter 'regset' and use it, if
747 set. Add parameter 'min_size' and verify the bfd section size
748 against it.
749 (get_core_registers_cb): Add parameter 'regset' and pass it to
750 get_core_register section. For the "standard" register sections
751 ".reg" and ".reg2", set an appropriate default for human_name.
752 (get_core_registers): Don't abort when the gdbarch has an iterator
753 but no regset_from_core_section. Add NULL/0 for parameters
754 'regset'/'min_size' in calls to get_core_register_section.
755 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
756 'regset' and use it instead of calling the
757 regset_from_core_section gdbarch method.
758 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
759 * i386-tdep.c (i386_supply_xstateregset)
760 (i386_collect_xstateregset, i386_xstateregset): Moved to
761 i386-linux-tdep.c.
762 (i386_regset_from_core_section): Drop handling for .reg-xfp and
763 .reg-xstate.
764 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
765 core file support only if the regset iterator hasn't been set.
766 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
767 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
768 Moved from i386-tdep.c and renamed to *_linux*.
769 (i386_linux_iterate_over_regset_sections): Add regset parameter to
770 each callback invocation. Allow any .reg-xstate size when reading
771 from a core file.
772 * amd64-tdep.c (amd64_supply_xstateregset)
773 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
774 amd64-linux-tdep.c.
775 (amd64_regset_from_core_section): Remove.
776 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
777 install an amd64-specific regset_from_core_section gdbarch method.
778 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
779 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
780 Moved from amd64-tdep.c and renamed to *_linux*.
781 (amd64_linux_iterate_over_regset_sections): Add regset parameter
782 to each callback invocation. Allow any .reg-xstate size when
783 reading from a core file.
784 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
785 (arm_linux_iterate_over_regset_sections): Add regset parameter to
786 each callback invocation.
787 (arm_linux_init_abi): No longer set the regset_from_core_section
788 gdbarch method.
789 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
790 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
791 each callback invocation.
792 (ppc_linux_init_abi): No longer set the regset_from_core_section
793 gdbarch method.
794 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
795 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
796 (s390_regset_from_core_section): Remove.
797 (s390_iterate_over_regset_sections): Add regset parameter to each
798 callback invocation.
799 (s390_gdbarch_init): No longer set the regset_from_core_section
800 gdbarch method. Drop initialization of deleted tdep fields.
801
5aa82d05
AA
8022014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
803
804 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
805 (amd64_linux_iterate_over_regset_sections): New.
806 (amd64_linux_init_abi_common): Don't install the regset section
807 list, but the new iterator in gdbarch.
808 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
809 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
810 (arm_linux_iterate_over_regset_sections): ...here. New function.
811 (arm_linux_init_abi): Set iterator instead of section list.
812 * corelow.c (get_core_registers_cb): New function, logic moved
813 from...
814 (get_core_registers): ...loop body here. Use new iterator method
815 instead of walking through the regset section list.
816 * gdbarch.sh: Remove 'core_regset_sections'. New method
817 'iterate_over_regset_sections'. New typedef
818 'iterate_over_regset_sections_cb'.
819 * gdbarch.c: Regenerate.
820 * gdbarch.h: Likewise.
821 * i386-linux-tdep.c (i386_linux_regset_sections)
822 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
823 Remove.
824 (i386_linux_iterate_over_regset_sections): New.
825 (i386_linux_init_abi): Don't choose a regset section list, but
826 install new iterator in gdbarch.
827 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
828 (linux_collect_regset_section_cb): New function, logic moved
829 from...
830 (linux_collect_thread_registers): ...loop body here. Use iterator
831 method instead of walking through list.
832 (linux_make_corefile_notes_1): Check for presence of iterator
833 method instead of regset section list.
834 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
835 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
836 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
837 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
838 (ppc_linux_iterate_over_regset_sections): ...here. New function.
839 (ppc_linux_init_abi): Don't choose from above regset section
840 lists, but install new iterator in gdbarch.
841 * regset.h (struct core_regset_section): Remove.
842 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
843 have_linux_v1, have_linux_v2, and have_tdb.
844 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
845 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
846 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
847 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
848 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
849 (s390_iterate_over_regset_sections): ...here. New function. Use
850 new tdep fields.
851 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
852 regset section lists, but install new iterator.
853
2eca4a8d
JK
8542014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
855
856 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
857
a73c2b56
SM
8582014-09-26 Simon Marchi <simon.marchi@ericsson.com>
859
860 * progspace.c (print_program_space): Don't prune program spaces
861 before printing them.
862
03d46957
PA
8632014-09-25 Pedro Alves <palves@redhat.com>
864
865 * infrun.c (user_visible_resume_ptid): Don't check
866 singlestep_breakpoints_inserted_p.
867
e558d7c1
PA
8682014-09-25 Pedro Alves <palves@redhat.com>
869
870 * breakpoint.c (should_be_inserted): Add debug output.
871
7f89fd65
PA
8722014-09-25 Pedro Alves <palves@redhat.com>
873
874 * infrun.c (stepping_past_instruction_at)
875 (clear_exit_convenience_vars): Point at infrun.h instead of
876 inferior.h.
877 (handle_signal_stop): Fix typo.
878
b7576e5c
YQ
8792014-09-24 Yao Qi <yao@codesourcery.com>
880
881 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
882 bitmask.
883
9a6cf368
GB
8842014-09-22 Gary Benson <gbenson@redhat.com>
885
886 * target.c (target_stop): Updated comment.
887
03f4463b
GB
8882014-09-22 Gary Benson <gbenson@redhat.com>
889
890 * target/target.h (target_stop_ptid): Renamed as...
891 (target_stop_and_wait): New function. Updated comment.
892 All uses updated.
893 (target_continue_ptid): Renamed as...
894 (target_continue_no_signal): New function. Updated comment.
895 All uses updated.
896
a25a5a45
PA
8972014-09-22 Pedro Alves <palves@redhat.com>
898
899 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
900 and "auto" merged.
901 * breakpoint.c (enum ugll_insert_mode): New enum.
902 (always_inserted_mode): Now a plain boolean.
903 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
904 (breakpoints_always_inserted_mode): Delete.
905 (breakpoints_should_be_inserted_now): New function.
906 (insert_breakpoints): Pass UGLL_INSERT to
907 update_global_location_list instead of calling
908 insert_breakpoint_locations manually.
909 (create_solib_event_breakpoint_1): New, factored out from ...
910 (create_solib_event_breakpoint): ... this.
911 (create_and_insert_solib_event_breakpoint): Use
912 create_solib_event_breakpoint_1 instead of calling
913 insert_breakpoint_locations manually.
914 (update_global_location_list): Change parameter type from boolean
915 to enum ugll_insert_mode. All callers adjusted. Adjust to use
916 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
917 (update_global_location_list_nothrow): Change parameter type from
918 boolean to enum ugll_insert_mode.
919 (_initialize_breakpoint): "breakpoint always-inserted" option is
920 now a boolean command. Update help text.
921 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
922 (breakpoints_should_be_inserted_now): New declaration.
923 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
924 Remove breakpoints_always_inserted_mode check.
925 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
926 * remote.c (remote_start_remote): Likewise.
927
04086b45
PA
9282014-09-22 Pedro Alves <palves@redhat.com>
929
930 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
931 (insert_breakpoints): Don't call insert_breakpoint_locations here.
932 Instead, pass UGLL_INSERT to update_global_location_list.
933 (update_global_location_list): Change parameter type from boolean
934 to enum ugll_insert_mode. All callers adjusted. Adjust to use
935 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
936 (create_solib_event_breakpoint_1): New, factored out from ...
937 (create_solib_event_breakpoint): ... this.
938 (create_and_insert_solib_event_breakpoint): Use
939 create_solib_event_breakpoint_1 instead of calling
940 insert_breakpoint_locations manually.
941 (update_global_location_list): Handle UGLL_INSERT.
942
44702360
PA
9432014-09-22 Pedro Alves <palves@redhat.com>
944
945 * breakpoint.c (enum ugll_insert_mode): New enum.
946 (update_global_location_list)
947 (update_global_location_list_nothrow): Change parameter type from
948 boolean to enum ugll_insert_mode. All callers adjusted.
949
93c6145a
JB
9502014-09-19 Joel Brobecker <brobecker@adacore.com>
951
952 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
953 SystemTap support in GDB.
954
89a5711c
DB
9552014-09-19 Don Breazeal <donb@codesourcery.com>
956
957 * linux-nat.c (linux_handle_extended_wait): Call
958 linux_ptrace_get_extended_event.
959 (wait_lwp): Call linux_is_extended_waitstatus.
960 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
961 and linux_is_extended_waitstatus.
962 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
963 linux_ptrace_get_extended_event.
964 (linux_ptrace_get_extended_event): New function.
965 (linux_is_extended_waitstatus): New function.
966 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
967 (linux_is_extended_waitstatus): New declarations.
968
c3b7b696
YQ
9692014-09-19 Yao Qi <yao@codesourcery.com>
970
971 * dwarf2read.c (dwarf_decode_lines): Update declaration.
972 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
973 comments. Callers update.
974 (dwarf_decode_lines): Likewise.
975 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
976 comments. Skip the line table if 'lowpc' is greater than
977 'address'. Don't check
978 dwarf2_per_objfile->has_section_at_zero.
979
2b4fd423
DE
9802014-09-18 Doug Evans <dje@google.com>
981
982 * NEWS: Mention new "producer" attribute of gdb.Symtab.
983 * python/py-symtab.c (stpy_get_producer): New function.
984 (symtab_object_getset): Add "producer" attribute.
985
5e43d467
UW
9862014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
987
988 PR gdb/17384
989 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
990 (do_captured_read_memory_integer): Remove.
991 (safe_read_memory_integer): Use target_read_memory directly instead
992 of catching errors in do_captured_read_memory_integer.
993
04e79979
MR
9942014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
995
996 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
997 not gdb/doc.
998
76aeec5b
SDJ
9992014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1000
1001 * objc-lang.c (find_implementation_from_class): Remove dead code.
1002
2f693f9d
SDJ
10032014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1004
1005 PR cli/7233
1006 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1007 "fprintf_unfiltered (gdb_stdlog...)".
1008
bb9d5f81
PP
10092014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1010
1011 PR breakpoints/12526
1012 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1013 val_bitsize.
1014 * breakpoint.c (watch_command_1): Use these fields to retain
1015 bitfield information.
1016 (extract_bitfield_from_watchpoint_value): New function.
1017 (watchpoint_check): Use it.
1018 (update_watchpoint): Use it. Optimize the address and length of a
1019 HW watchpoint pointing to a bitfield.
1020 * value.h (unpack_value_bitfield): New prototype.
1021 * value.c (unpack_value_bitfield): Make extern.
1022
05db5edd
ST
10232014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1024
1025 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1026 x86-dregs.o.
1027 * gnu-nat.c (inf_threads): New function.
1028 * gnu-nat.h (inf_threads_ftype): New typedef.
1029 (inf_threads): New declaration.
1030 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1031 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1032 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1033 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1034 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1035 (i386_gnu_dr_get_control): New functions.
1036 (reg_addr): New structure.
1037 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1038 i386 debugging register hooks.
1039 * NEWS: Mention this.
1040
5a578da5
OJ
10412014-08-13 Omair Javaid <omair.javaid@linaro.org>
1042
1043 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1044 vector data transfer instructions.
1045 (arm_record_coproc_data_proc): Updated.
1046
f20f80dd
OJ
10472014-08-13 Omair Javaid <omair.javaid@linaro.org>
1048
1049 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1050 arm_record_exreg_ld_st_insn.
1051 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1052 load/store insns.
1053
851f26ae
OJ
10542014-08-13 Omair Javaid <omair.javaid@linaro.org>
1055
1056 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1057 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1058 processing instructions.
1059
1e1b6563
OJ
10602014-08-13 Omair Javaid <omair.javaid@linaro.org>
1061
1062 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1063 for advance SIMD struct ld/st insn.
1064 (thumb2_record_decode_insn_handler): Replace stub handler with
1065 thumb2_record_asimd_struct_ld_st.
1066
60cc5e93
OJ
10672014-08-13 Omair Javaid <omair.javaid@linaro.org>
1068
1069 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1070 for asimd, vfp and coprocessor insns.
1071 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1072 and coprocessor insns.
1073 (thumb2_record_coproc_insn): New function.
1074 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1075 handlers.
1076 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1077 opcode 110 insns.
1078
81219e53
DE
10792014-09-13 Doug Evans <xdje42@gmail.com>
1080
1081 * NEWS: Mention new "queue-signal" command.
1082 * infcmd.c (queue_signal_command): New function.
1083 (_initialize_infcmd): Add new queue-signal command.
1084
d36bf488
DE
10852014-09-13 Doug Evans <xdje42@gmail.com>
1086
1087 * linux-nat.c (wait_lwp): Add debugging printf.
1088 (linux_nat_wait_1): Ditto.
1089
f37f681c
PA
10902014-09-12 Pedro Alves <palves@redhat.com>
1091
1092 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1093 (create_and_insert_solib_event_breakpoint): New functions.
1094 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1095 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1096 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1097 (remove_dbx_link_breakpoint): Delete function.
1098 (insert_dbx_link_bpt_in_file): Use
1099 create_and_insert_solib_event_breakpoint instead of
1100 deprecated_insert_raw_breakpoint.
1101 (procfs_wait): Don't check whether we hit __dbx_link here.
1102 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1103 here.
1104 * solib-irix.c (base_breakpoint): Delete global.
1105 (disable_break): Delete function.
1106 (enable_break): Use create_solib_event_breakpoint
1107 instead of deprecated_insert_raw_breakpoint.
1108 (irix_solib_handle_event): New function.
1109 (irix_solib_create_inferior_hook): Don't run the target or disable
1110 the mapping-complete breakpoint here.
1111 (_initialize_irix_solib): Install irix_solib_handle_event as
1112 so_ops->handle_event hook.
1113
9d9bf2df
EBM
11142014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1115 Ulrich Weigand  <uweigand@de.ibm.com>
1116
1117 PR tdep/17379
1118 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1119 instead of read_memory_unsigned_integer.
1120
b006a80e
GB
11212014-09-12 Gary Benson <gbenson@redhat.com>
1122
1123 * nat/linux-waitpid.c: Include common-defs.h.
1124 [GDBSERVER]: Add FIXME comment.
1125 [!GDBSERVER]: Don't include defs.h or signal.h.
1126 (linux_debug) [!GDBSERVER]: Remove empty block.
1127
296b1496
GB
11282014-09-12 Gary Benson <gbenson@redhat.com>
1129
1130 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1131 Don't include defs.h or server.h.
1132
53f81362
GB
11332014-09-12 Gary Benson <gbenson@redhat.com>
1134
1135 * nat/linux-btrace.c: Include common-defs.h.
1136 Don't include defs.h, server.h or gdbthread.h.
1137 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1138
727605ca
GB
11392014-09-12 Gary Benson <gbenson@redhat.com>
1140
1141 * common/agent.c: Include common-defs.h.
1142 Don't include defs.h or server.h.
1143 * common/buffer.c: Likewise.
1144 * common/common-debug.c: Likewise.
1145 * common/common-utils.c: Likewise.
1146 * common/errors.c: Likewise.
1147 * common/filestuff.c: Likewise.
1148 * common/format.c: Likewise.
1149 * common/gdb_vecs.c: Likewise.
1150 * common/print-utils.c: Likewise.
1151 * common/ptid.c: Likewise.
1152 * common/rsp-low.c: Likewise.
1153 * common/signals.c: Likewise.
1154 * common/vec.c: Likewise.
1155 * common/xml-utils.c: Likewise.
1156 * nat/linux-osdata.c: Likewise.
1157 * nat/linux-procfs.c: Likewise.
1158 * nat/linux-ptrace.c: Likewise.
1159 * nat/mips-linux-watch.c: Likewise.
1160 * target/waitstatus.c: Likewise.
1161
361c8ade
GB
11622014-09-12 Tom Tromey <tromey@redhat.com>
1163 Gary Benson <gbenson@redhat.com>
1164
1165 * common/common-regcache.h: New file.
1166 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1167 * regcache.h: Include common-regcache.h.
1168 (regcache_read_pc): Don't declare.
1169 * regcache.c (get_thread_regcache_for_ptid): New function.
1170 * nat/linux-btrace.c: Don't include regcache.h.
1171 Include common-regcache.h.
1172 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1173
a01cbb49
TS
11742014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1175
1176 * regcache.h (struct regset): Declare.
1177
98880d46
PA
11782014-09-11 Pedro Alves <palves@redhat.com>
1179
1180 PR gdb/17347
1181 * main.c: Include "infrun.h".
1182 (catch_command_errors, catch_command_errors_const): Wait for the
1183 foreground command to complete.
1184 * top.c (maybe_wait_sync_command_done): New function, factored out
1185 from ...
1186 (maybe_wait_sync_command_done): ... here.
1187 * top.h (maybe_wait_sync_command_done): New declaration.
1188
bd9269f7
GB
11892014-09-11 Tom Tromey <tromey@redhat.com>
1190 Gary Benson <gbenson@redhat.com>
1191
1192 * common/symbol.h: New file.
1193 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1194 * minsyms.c (find_minimal_symbol_address): New function.
1195 * common/agent.c: Include common/symbol.h.
1196 [!GDBSERVER]: Don't include objfiles.h.
1197 (agent_look_up_symbols): Use find_minimal_symbol_address.
1198
f8c1d06b
GB
11992014-09-11 Gary Benson <gbenson@redhat.com>
1200
1201 * target/target.h (target_stop_ptid, target_continue_ptid):
1202 Declare.
1203 * target.c (target_stop_ptid, target_continue_ptid): New
1204 functions.
1205 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1206 (agent_run_command): Always use target_stop_ptid and
1207 target_continue_ptid.
1208
721ec300
GB
12092014-09-11 Tom Tromey <tromey@redhat.com>
1210 Gary Benson <gbenson@redhat.com>
1211
1212 * target/target.h: New file.
1213 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1214 * target.h: Include target/target.h.
1215 (target_read_memory, target_write_memory): Don't declare.
1216 * target.c (target_read_uint32): New function.
1217 * common/agent.c: Include target/target.h.
1218 [!GDBSERVER]: Don't include target.h.
1219 (helper_thread_id): Type changed to uint32_t.
1220 (agent_get_helper_thread_id): Use target_read_uint32.
1221 (agent_run_command): Always use target_read_memory and
1222 target_write_memory.
1223 (agent_capability): Type changed to uint32_t.
1224 (agent_capability_check): Use target_read_uint32.
1225
c5e92cca
GB
12262014-09-11 Gary Benson <gbenson@redhat.com>
1227
1228 * common/common-debug.h (show_debug_regs): Declare.
1229 * common/common-debug.c (show_debug_regs): Define.
1230 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1231 all uses with show_debug_regs. Replace all uses that considered
1232 debug_hw_points as a multi-value integer with straight boolean
1233 uses.
1234 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1235 with show_debug_regs.
1236 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1237 all uses with show_debug_regs.
1238 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1239 uses with show_debug_regs.
1240
eeef931a
UW
12412014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1242
1243 * findvar.c (address_from_register): Handle targets requiring
1244 a special conversion routine even for plain pointer types.
1245
8efa9855
UW
12462014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1247
1248 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1249 (store_register): Do not call exec_one_dummy_insn.
1250
eb479039
JB
12512014-09-10 Joel Brobecker <brobecker@adacore.com>
1252
1253 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1254 dereference it first. Use value_enclosing_type instead of
1255 value_type.
1256 (ada_array_length): Likewise.
1257
deede10c
JB
12582014-09-10 Joel Brobecker <brobecker@adacore.com>
1259
1260 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1261 Adjust function implementation and documentation accordingly.
1262 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1263 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1264 Update call to ada_value_ptr_subscript.
1265
7828a5f5
JB
12662014-09-10 Joel Brobecker <brobecker@adacore.com>
1267
1268 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1269 instead of VAL's type.
1270
35782f14
JB
12712014-09-10 Joel Brobecker <brobecker@adacore.com>
1272
1273 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1274
d342a0da
DE
12752014-09-09 Doug Evans <xdje42@gmail.com>
1276
1277 PR guile/17367
1278 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1279 last parameter to pkg-config, not first.
1280 * configure.ac: Pass --with-guile provided pkg-config path to
1281 GDB_GUILE_PROGRAM_NAMES.
1282 * configure: Regenerate.
1283
b4a3d263
GKB
12842014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1285
1286 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1287 Bertazi".
1288
6e466374
MR
12892014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1290
1291 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1292 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1293 the list of sections determining GDB_OSABI_IRIX.
1294
a1ada89a
JH
12952014-09-09 James Hogan <james.hogan@imgtec.com>
1296
1297 * MAINTAINERS (Write After Approval): Add "James Hogan".
1298
86db008d
JH
12992014-09-09 James Hogan <james.hogan@imgtec.com>
1300
1301 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1302
72fde3df
JB
13032014-09-09 Joel Brobecker <brobecker@adacore.com>
1304
1305 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1306
92d8d229
DE
13072014-09-08 Doug Evans <xdje42@gmail.com>
1308
1309 PR 17247
1310 * guile.c: #include <signal.h>.
1311 (_initialize_guile): Block SIGCHLD while initializing Guile.
1312
1313 Replaces the following, which is reverted.
1314
1315 2014-07-26 Doug Evans <xdje42@gmail.com>
1316
1317 PR 17185
1318 * configure.ac: Add check for header gc/gc.h.
1319 Add check for function setenv.
1320 * configure: Regenerate.
1321 * config.in: Regenerate.
1322 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1323
d81412aa
DE
13242014-09-08 Doug Evans <xdje42@gmail.com>
1325
1326 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1327 with named constant. Fix style of pointer comparison.
1328 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1329
a9f116cb
GKB
13302014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1331
1332 PR gdb/17035
1333 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1334 decide whether we display the command on "show user".
1335 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1336 printing command name.
1337 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1338 * cli/cli-decode.c (cli_user_command_p): Create helper function
1339 to verify whether cmd_list_element is a user-defined command.
1340
c75bd3a2
JK
13412014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1342
1343 PR python/17355
1344 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1345 Fix goto out of TRY_CATCH.
1346
faa42425 13472014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1348 Tom Tromey <tromey@redhat.com>
faa42425
DE
1349
1350 PR 15276
1351 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1352 $_any_caller_matches.
1353 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1354 * python/lib/gdb/function/caller_is.py: New file.
1355
0d41ba00
DE
13562014-09-06 Doug Evans <xdje42@gmail.com>
1357
1358 * infcmd.c (program_info): Fix typo.
1359
474ca4f6
SDJ
13602014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1361
1362 PR gdb/17235
1363 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1364 'number'. New variable 'has_digit'. Rewrite code to deal with
1365 subexpressions on SDT probes.
1366
ebf13736
PA
13672014-09-04 Pedro Alves <palves@redhat.com>
1368
1369 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1370 the input is only one character long.
1371
eb0b0463
SDJ
13722014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1373
1374 PR fortran/17237
1375 * f-valprint.c (f_val_print): Specify the correct print option to
1376 use when printing integer values.
1377
5ee44bfa
GB
13782014-09-04 Gary Benson <gbenson@redhat.com>
1379
1380 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1381 Remove code to cope with LWPs wrapped as PIDs.
1382 Add assertions to ensure no wrapped LWPs are passed.
1383
4875ffdb
PA
13842014-09-04 Pedro Alves <palves@redhat.com>
1385
1386 * value.c (value_ranges_copy_adjusted): New function, factored out
1387 from ...
1388 (value_contents_copy_raw): ... here.
1389 (unpack_value_bits_as_long_1): Rename back to ...
1390 (unpack_bits_as_long): ... this. Remove 'original_value' and
1391 'result' parameters. Change return type to LONGEST.
1392 (unpack_value_bits_as_long): Delete.
1393 (unpack_value_field_as_long_1): Delete.
1394 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1395 (unpack_value_bitfield): New function.
1396 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1397 (value_fetch_lazy): Use unpack_value_bitfield.
1398 * value.h (unpack_value_bits_as_long): Delete declaration.
1399
5f3b99cf
SS
14002014-09-03 Sasha Smundak <asmundak@google.com>
1401
1402 * python/py-frame.c (frapy_read_register): New function.
1403
ac740bc7
JH
14042014-09-03 James Hogan <james.hogan@imgtec.com>
1405
1406 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1407 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1408
7d793aa9
SDJ
14092014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1410
1411 PR python/16699
1412 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1413 function.
1414 (add_cmd): Set "completer_handle_brkchars" to NULL.
1415 * cli/cli-decode.h (struct cmd_list_element)
1416 <completer_handle_brkchars>: New field.
1417 * command.h (completer_ftype_void): New typedef.
1418 (set_cmd_completer_handle_brkchars): New prototype.
1419 * completer.c (set_gdb_completion_word_break_characters): New
1420 function.
1421 (complete_line_internal): Call "completer_handle_brkchars"
1422 callback from command.
1423 * completer.h: Include "command.h".
1424 (set_gdb_completion_word_break_characters): New prototype.
1425 * python/py-cmd.c (cmdpy_completer_helper): New function.
1426 (cmdpy_completer_handle_brkchars): New function.
1427 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1428 (cmdpy_init): Set completer_handle_brkchars to
1429 cmdpy_completer_handle_brkchars.
1430
97ea6506
GB
14312014-09-03 Gary Benson <gbenson@redhat.com>
1432
1433 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1434 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1435 Loop conditions changed to equivalent form.
1436 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1437 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1438 ALL_DEBUG_ADDRESS_REGISTERS.
1439
d1437815
JB
14402014-09-03 Joel Brobecker <brobecker@adacore.com>
1441
1442 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1443 description fix.
1444
9b94fcf1
DE
14452014-09-02 Doug Evans <dje@google.com>
1446
1447 * typeprint.c (find_global_typedef): Fix comment.
1448
df7e5265
GB
14492014-09-02 Gary Benson <gbenson@redhat.com>
1450
1451 * i386-nat.h: Renamed as...
1452 * x86-nat.h: New file. All type, function and variable name
1453 prefixes changed from "i386_" to "x86_". All references updated.
1454 * i386-nat.c: Renamed as...
1455 * x86-nat.c: New file. All type, function and variable name
1456 prefixes changed from "i386_" to "x86_". All references updated.
1457 * common/i386-xstate.h: Renamed as...
1458 * common/x86-xstate.h: New file. All type, function and variable
1459 name prefixes changed from "i386_" to "x86_". All references
1460 updated.
1461 * nat/i386-cpuid.h: Renamed as...
1462 * nat/x86-cpuid.h: New file. All type, function and variable name
1463 prefixes changed from "i386_" to "x86_". All references updated.
1464 * nat/i386-gcc-cpuid.h: Renamed as...
1465 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1466 name prefixes changed from "i386_" to "x86_". All references
1467 updated.
1468 * nat/i386-dregs.h: Renamed as...
1469 * nat/x86-dregs.h: New file. All type, function and variable name
1470 prefixes changed from "i386_" to "x86_". All references updated.
1471 * nat/i386-dregs.c: Renamed as...
1472 * nat/x86-dregs.c: New file. All type, function and variable name
1473 prefixes changed from "i386_" to "x86_". All references updated.
1474
1c3569d4
MR
14752014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1476
1477 * varobj.c (_initialize_varobj): Move to the end of file.
1478
ff55e1b5
GB
14792014-08-29 Gary Benson <gbenson@redhat.com>
1480
1481 * common/common-exceptions.h: New file.
1482 * common/common-exceptions.c: Likewise.
1483 * Makefile.in (SFILES): Add common/common-exceptions.c.
1484 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1485 (COMMON_OBS): Add common-exceptions.o.
1486 (common-exceptions.o): New rule.
1487 * exceptions.h (common-exceptions.h): Include.
1488 (gdb_setjmp.h): Do not include.
1489 (return_reason): Moved to common-exceptions.h.
1490 (enum return_reason): Likewise.
1491 (RETURN_MASK): Likewise.
1492 (typedef return_mask): Likewise.
1493 (enum errors): Likewise.
1494 (struct gdb_exception): Likewise.
1495 (exceptions_state_mc_init): Likewise.
1496 (exceptions_state_mc_action_iter): Likewise.
1497 (exceptions_state_mc_action_iter_1): Likewise.
1498 (TRY_CATCH): Likewise.
1499 (throw_exception): Likewise.
1500 (throw_verror): Likewise.
1501 (throw_vquit): Likewise.
1502 (throw_error): Likewise.
1503 (throw_quit): Likewise.
1504 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1505 (enum catcher_action): Likewise.
1506 (struct catcher): Likewise.
1507 (current_catcher): Likewise.
1508 (catcher_list_size): Likewise.
1509 (exceptions_state_mc_init): Likewise.
1510 (catcher_pop): Likewise.
1511 (exceptions_state_mc): Likewise.
1512 (exceptions_state_mc_action_iter): Likewise.
1513 (exceptions_state_mc_action_iter_1): Likewise.
1514 (throw_exception): Likewise.
1515 (exception_messages): Likewise.
1516 (exception_messages_size): Likewise.
1517 (throw_it): Likewise.
1518 (throw_verror): Likewise.
1519 (throw_vquit): Likewise.
1520 (throw_error): Likewise.
1521 (throw_quit): Likewise.
1522 (prepare_to_throw_exception): New function.
1523
e9bcb658
GB
15242014-08-29 Gary Benson <gbenson@redhat.com>
1525
1526 * common/gdb_setjmp.h: New file.
1527 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1528 * configure.ac: Move sigsetjmp check...
1529 * common/common.m4: ...here.
1530 * configure: Regenerate.
1531 * cp-support.c (SIGJMP_BUF): Delete.
1532 (SIGSETJMP): Likewise.
1533 (SIGLONGJMP): Likewise.
1534 * exceptions.h (gdb_setjmp.h): Include.
1535 (setjmp.h): Do not include.
1536 (EXCEPTIONS_SIGJMP_BUF): Delete.
1537 (EXCEPTIONS_SIGSETJMP): Likewise.
1538 (EXCEPTIONS_SIGLONGJMP): Likewise.
1539 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1540 from gdb_setjmp.h.
1541 * exceptions.c: Likewise.
1542
e3180625
GB
15432014-08-29 Gary Benson <gbenson@redhat.com>
1544
1545 * cleanups.h: Moved to...
1546 * common/cleanups.h: New file.
1547 * cleanups.c: Moved to...
1548 * common/cleanups.c: New file. Include common-defs.h and
1549 cleanups.h. Do not include defs.h.
1550 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1551 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1552 (cleanups.o): New rule.
1553
e3d6ba5d
GB
15542014-08-29 Gary Benson <gbenson@redhat.com>
1555
1556 * common/errors.h (internal_warning): New declaration.
1557 (internal_vwarning): Likewise.
1558 * common/errors.c (internal_warning): New function.
1559 * utils.h (internal_warning): Don't declare.
1560 (internal_vwarning): Likewise.
1561 * utils.c (internal_warning): Removed.
1562
075c7033
GB
15632014-08-29 Gary Benson <gbenson@redhat.com>
1564
1565 * main.c (captured_main): Use warning during startup.
1566 Prefix startup warning messages with command name.
1567
91b35fd0
GB
15682014-08-29 Gary Benson <gbenson@redhat.com>
1569
1570 * main.c (captured_main): Handle usage errors with error.
1571
b1ec390e
GB
15722014-08-29 Gary Benson <gbenson@redhat.com>
1573
1574 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1575 exit pair with a call to error. Wrap the message with _().
1576
fd0ef3dd
GB
15772014-08-29 Gary Benson <gbenson@redhat.com>
1578
1579 * main.c (captured_main): Replace a fprintf/exit
1580 pair with a call to error. Wrap the message with _().
1581
e0e6bcab
GB
15822014-08-29 Gary Benson <gbenson@redhat.com>
1583
1584 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1585 pairs with calls to error. Wrap the message with _().
1586
0d2f5c07
GB
15872014-08-29 Gary Benson <gbenson@redhat.com>
1588
1589 * utils.c (vwarning): Protect calls to target_terminal_ours
1590 and wrap_here.
1591
5df43998
GB
15922014-08-29 Gary Benson <gbenson@redhat.com>
1593
1594 * exceptions.c (print_flush): Protect calls to
1595 target_terminal_ours and wrap_here.
1596
2437fd32
GB
15972014-08-29 Gary Benson <gbenson@redhat.com>
1598
1599 * utils.h (filtered_printing_initialized): New declaration.
1600 * utils.c (abort_with_message): New function.
1601 (internal_vproblem): Use abort_with_message for first level
1602 recursive internal problems, and if gdb_stderr is not set up.
1603 Protect calls to target_terminal_ours, begin_line and query.
1604
f1f58506
DE
16052014-08-28 Doug Evans <dje@google.com>
1606
1607 * symtab.c (in_prologue): Move definition to better spot.
1608 (skip_prologue_using_sal): Ditto.
1609
aab2f208
DE
16102014-08-28 Doug Evans <dje@google.com>
1611
1612 * symtab.c (find_function_start_sal): Move definition to better spot.
1613
6b65d1b6
YQ
16142014-08-28 Yao Qi <yao@codesourcery.com>
1615
1616 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1617 found_stack_adjust in forward scan. Remove condition check
1618 on found_stack_adjust which is always true. Indent the code.
1619
a1b34d15
YQ
16202014-08-28 Yao Qi <yao@codesourcery.com>
1621
1622 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1623 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1624 (dwarf_decode_lines): Remove argument
1625 want_line_info. Remove condition check on want_line_info.
1626 Callers update.
1627
d5962de5
DE
16282014-08-27 Doug Evans <dje@google.com>
1629
1630 * dwarf2read.c (dwarf_record_line): Fix typo.
1631
9b139002
SDJ
16322014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1633
1634 * target.h (struct target_ops::to_terminal_save_ours): Remove
1635 declaration.
1636 (target_terminal_save_ours): Remove macro.
1637 * target-delegates.c: Regenerate.
1638 * inf-child.c (inf_child_target): Don't set the nonexistent
1639 field to_terminal_save_ours.
1640 * inferior.h (child_terminal_save_ours): Remove declaration.
1641 * terminal.h (gdb_save_tty_state): New declaration.
1642 * inflow.c (child_terminal_save_ours): Rename to ...
1643 (gdb_save_tty_state): ... this.
1644 * tui/tui.c: Include terminal.h.
1645 (tui_enable): Use gdb_save_tty_state instead of
1646 target_terminal_save_ours.
1647 (tui_disable): Likewise.
1648
9debeba0
DE
16492014-08-25 Doug Evans <dje@google.com>
1650
1651 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1652 Pass NULL instead of 0 for context pointer.
1653
428fc5fc
YQ
16542014-08-25 Yao Qi <yao@codesourcery.com>
1655
1656 * dwarf2read.c: Fix grammatical error.
1657
cdc07690
YQ
16582014-08-24 Yao Qi <yao@codesourcery.com>
1659
1660 * dwarf2read.c (scan_partial_symbols): Update comments.
1661 Rename argument 'need_pc' with 'set_addrmap'.
1662 (add_partial_namespace): Rename argument 'need_pc' with
1663 'set_addrmap'.
1664 (add_partial_module): Likewise.
1665 (add_partial_subprogram): Likewise. Update comments.
1666 (dwarf2_name): Fix typo.
1667
a05a36a5
DE
16682014-08-22 Doug Evans <dje@google.com>
1669
1670 PR 17276
1671 * dwarf2read.c (dwarf_record_line_p): New function.
1672 (dwarf_decode_lines_1): Ignore subsequent line number entries
1673 for the same line if any entry had a non-zero discriminator.
1674
252a6764
DE
16752014-08-22 Doug Evans <dje@google.com>
1676
1677 * buildsym.h (record_line_ftype): New typedef.
1678 (record_line): Use it.
1679 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1680 (dwarf_decode_lines_1): Call them.
1681
510db052
YQ
16822014-08-22 Yao Qi <yao@codesourcery.com>
1683
1684 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1685 (ctf_end): Remove code.
1686
22fd09ae
JK
16872014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1688
1689 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1690 (linux_make_corefile_notes): call update_thread_list, protected against
1691 exceptions.
1692
656e8868
PA
16932014-08-21 Pedro Alves <palves@redhat.com>
1694
1695 * infcmd.c (attach_command): Remove comment.
1696
de589d04
WN
16972014-08-21 Bin Cheng <bin.cheng@arm.com>
1698
1699 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1700 unsigned LONGEST to ULONGEST.
1701
2a31c623
PA
17022014-08-20 Pedro Alves <palves@redhat.com>
1703
1704 * Makefile.in (check-read1): New rule.
1705
d36430db
JB
17062014-08-20 Joel Brobecker <brobecker@adacore.com>
1707
1708 * value.c (value_from_contents_and_address): Strip resolved_type's
1709 typedef layers before checking its TYPE_DATA_LOCATION.
1710
000339af
PA
17112014-08-20 Pedro Alves <palves@redhat.com>
1712
1713 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1714
5f52445b
YQ
17152014-08-20 Yao Qi <yao@codesourcery.com>
1716
1717 * amd64-tdep.c (amd64_classify): Add a blank line after the
1718 example. Move "*/" to a new line.
1719 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1720 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1721 * dwarf2read.c (psymtab_include_file_name): Likewise.
1722
9a0dc9e3
PA
17232014-08-19 Andrew Burgess <aburgess@broadcom.com>
1724 Pedro Alves <palves@redhat.com>
1725
1726 PR symtab/14604
1727 PR symtab/14605
1728 * ada-lang.c (coerce_unspec_val_to_type): Use
1729 value_contents_copy_raw.
1730 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1731 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1732 * cp-valprint.c (cp_print_value_fields): Let the common printing
1733 code handle optimized out values.
1734 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1735 * d-valprint.c (dynamic_array_type): Use
1736 value_bits_any_optimized_out.
1737 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1738 check_any_valid fields.
1739 (check_pieced_value_bits): Delete and inline ...
1740 (check_pieced_synthetic_pointer): ... here.
1741 (check_pieced_value_validity): Delete.
1742 (check_pieced_value_invalid): Delete.
1743 (pieced_value_funcs): Remove check_validity and check_any_valid
1744 fields.
1745 (read_pieced_value): Use mark_value_bits_optimized_out.
1746 (write_pieced_value): Switch to use
1747 mark_value_bytes_optimized_out.
1748 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1749 of assuming the whole value is optimized out.
1750 * findvar.c (read_frame_register_value): Remove special handling
1751 of optimized out registers.
1752 (value_from_register): Use mark_value_bytes_optimized_out.
1753 * frame-unwind.c (frame_unwind_got_optimized): Use
1754 mark_value_bytes_optimized_out.
1755 * jv-valprint.c (java_value_print): Adjust.
1756 (java_print_value_fields): Let the common printing code handle
1757 optimized out values.
1758 * mips-tdep.c (mips_print_register): Remove special handling of
1759 optimized out registers.
1760 * opencl-lang.c (lval_func_check_validity): Delete.
1761 (lval_func_check_any_valid): Delete.
1762 (opencl_value_funcs): Remove check_validity and check_any_valid
1763 fields.
1764 * p-valprint.c (pascal_object_print_value_fields): Let the common
1765 printing code handle optimized out values.
1766 * stack.c (read_frame_arg): Remove special handling of optimized
1767 out values. Fetch both VAL and ENTRYVAL before comparing
1768 contents. Adjust to value_available_contents_eq rename.
1769 * valprint.c (valprint_check_validity)
1770 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1771 (val_print_array_elements): Adjust.
1772 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1773 (value_bits_any_optimized_out): New function.
1774 (value_entirely_covered_by_range_vector): New function, factored
1775 out from value_entirely_unavailable.
1776 (value_entirely_unavailable): Reimplement.
1777 (value_entirely_optimized_out): New function.
1778 (insert_into_bit_range_vector): New function, factored out from
1779 mark_value_bits_unavailable.
1780 (mark_value_bits_unavailable): Reimplement.
1781 (struct ranges_and_idx): New struct.
1782 (find_first_range_overlap_and_match): New function, factored out
1783 from value_available_contents_bits_eq.
1784 (value_available_contents_bits_eq): Rename to ...
1785 (value_contents_bits_eq): ... this. Check both unavailable
1786 contents and optimized out contents.
1787 (value_available_contents_eq): Rename to ...
1788 (value_contents_eq): ... this.
1789 (allocate_value_lazy): Remove reference to the old optimized_out
1790 boolean.
1791 (allocate_optimized_out_value): Use
1792 mark_value_bytes_optimized_out.
1793 (require_not_optimized_out): Adjust to check whether the
1794 optimized_out vec is empty.
1795 (ranges_copy_adjusted): New function, factored out from
1796 value_contents_copy_raw.
1797 (value_contents_copy_raw): Also copy the optimized out ranges.
1798 Assert the destination ranges aren't optimized out.
1799 (value_contents_copy): Update comment, remove call to
1800 require_not_optimized_out.
1801 (value_contents_equal): Adjust to check whether the optimized_out
1802 vec is empty.
1803 (set_value_optimized_out, value_optimized_out_const): Delete.
1804 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1805 New functions.
1806 (value_entirely_optimized_out, value_bits_valid): Delete.
1807 (value_copy): Take a VEC copy of the 'optimized_out' field.
1808 (value_primitive_field): Remove special handling of optimized out.
1809 (value_fetch_lazy): Assert that lazy values have no unavailable
1810 regions. Use value_bits_any_optimized_out. Remove some special
1811 handling for optimized out values.
1812 * value.h: Add intro comment about <optimized out> and
1813 <unavailable>.
1814 (struct lval_funcs): Remove check_validity and check_any_valid
1815 fields.
1816 (set_value_optimized_out, value_optimized_out_const): Remove.
1817 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1818 New declarations.
1819 (value_bits_any_optimized_out): New declaration.
1820 (value_bits_valid): Delete declaration.
1821 (value_available_contents_eq): Rename to ...
1822 (value_contents_eq): ... this, and extend comments.
1823
6694c411
JK
18242014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1825
1826 Fix -fsanitize=address on unreadable inferior strings.
1827 * valprint.c (val_print_string): Fix access before BUFFER.
1828
89a1c21a
SM
18292014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1830
1831 * target.c (target_struct_size): Remove.
1832 (target_struct_allocsize): Remove.
1833 (DEFAULT_ALLOCSIZE): Remove.
1834 (target_ops_p): New typedef.
1835 (DEF_VEC_P (target_ops_p)): New vector type.
1836 (target_structs): Change type to VEC (target_ops_p).
1837 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1838 (find_default_run_target): Rewrite for loop following changes to
1839 target_structs.
1840
cb417230
JB
18412014-08-19 Joel Brobecker <brobecker@adacore.com>
1842
1843 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1844 Adjust code accordingly. Adjust function description comment.
1845
817e0957
YQ
18462014-08-19 Yao Qi <yao@codesourcery.com>
1847
1848 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1849 types.
1850
2974be62
AM
18512014-08-19 Alan Modra <amodra@gmail.com>
1852
1853 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1854 * config.in: Regenerate.
1855 * configure: Regenerate.
1856
34abf635
GB
18572014-08-19 Tom Tromey <tromey@redhat.com>
1858 Gary Benson <gbenson@redhat.com>
1859
1860 * common/common-debug.h: New file.
1861 * common/common-debug.c: Likewise.
1862 * debug.c: Likewise.
1863 * Makefile.in (SFILES): Add common/common-debug.c.
1864 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1865 (COMMON_OBS): Add common-debug.o and debug.o.
1866 (common-debug.o): New rule.
1867 * common/common-defs.h: Include common-debug.h.
1868 * common/agent.c (debug_agent_printf): New function.
1869 (DEBUG_AGENT): Redefine.
1870 * nat/i386-dregs.c (debug_printf): Undefine.
1871
f6e94d78
GB
18722014-08-19 Gary Benson <gbenson@redhat.com>
1873
1874 * common/common-defs.h: Include print-utils.h.
1875 * utils.h: Do not include print-utils.h.
1876
9239eeab
GB
18772014-08-19 Tom Tromey <tromey@redhat.com>
1878 Gary Benson <gbenson@redhat.com>
1879
1880 * common/common-types.h: New file.
1881 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1882 * common/common-defs.h: Include common-types.h.
1883 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1884 (ULONGEST): Remove.
1885
ef87c8bb
GB
18862014-08-19 Tom Tromey <tromey@redhat.com>
1887 Gary Benson <gbenson@redhat.com>
1888
1889 * common/errors.h: New file.
1890 * common/errors.c: Likewise.
1891 * Makefile.in (SFILES): Add common/errors.c.
1892 (HFILES_NO_SRCDIR): Add common/errors.h.
1893 (COMMON_OBS): Add errors.o.
1894 (errors.o): New rule.
1895 * common/common-defs.h: Include errors.h.
1896 * utils.h (perror_with_name, error, verror, warning, vwarning):
1897 Don't declare.
1898 * common/common-utils.h: (malloc_failure, internal_error):
1899 Likewise.
1900
196a707b
GB
19012014-08-19 Gary Benson <gbenson@redhat.com>
1902
1903 * utils.c (internal_vproblem): Always print the message.
1904
ded4fc8f
DE
19052014-08-18 Doug Evans <dje@google.com>
1906
1907 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1908
950c97d8
JB
19092014-08-18 Joel Brobecker <brobecker@adacore.com>
1910
1911 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1912 Return 0 if TYPE is dynamic.
1913 (print_range): Add handling of dynamic ranges.
1914
3cdcd0ce
JB
19152014-08-18 Keven Boell <keven.boell@intel.com>
1916 Joel Brobecker <brobecker@adacore.com>
1917
1918 * gdbtypes.h (struct main_type): Add field "data_location".
1919 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1920 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1921 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1922 a dynamic data location.
1923 (resolve_dynamic_type): Add DW_AT_data_location handling.
1924 (copy_recursive, copy_type): Copy the data_location information
1925 when present.
1926 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1927 * value.c (value_from_contents_and_address): Add
1928 DW_AT_data_location handling.
1929
08412b07
JB
19302014-08-18 Keven Boell <keven.boell@intel.com>
1931 Joel Brobecker <brobecker@adacore.com>
1932
1933 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1934 field "get_object_address".
1935 * dwarf2expr.c (execute_stack_op): Add handling for
1936 DW_OP_push_object_address.
1937 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1938 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1939 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1940 (dwarf_expr_get_obj_addr): New function.
1941 (dwarf_expr_ctx_funcs): Add get_object_address field.
1942 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1943 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1944 (dwarf2_evaluate_property): Add parameter "address". Use it.
1945 (needs_get_obj_addr): New function.
1946 (needs_frame_ctx_funcs): Add get_object_address field.
1947 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1948 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1949 (resolve_dynamic_array): Likewise.
1950
84754697
JB
19512014-08-18 Joel Brobecker <brobecker@adacore.com>
1952
1953 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1954 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1955 fixed value for records and unions for which some GNAT encodings
1956 are present.
1957
da5c522f
JB
19582014-08-18 Joel Brobecker <brobecker@adacore.com>
1959
1960 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1961 rewrite to avoid "else if" and "else" constructs. Should be
1962 a no-op in practice.
1963
0d72a7c3
JB
19642014-08-18 Joel Brobecker <brobecker@adacore.com>
1965
1966 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1967 of lexical block.
1968
e66d4446
SC
19692014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1970
1971 PR c++/17132
1972 * eval.c: Update all calls to find_overload_match.
1973 * valarith.c: Likewise.
1974 (value_user_defined_cpp_op, value_user_defined_op): New
1975 argument NOSIDE. Update all callers.
1976 * valops.c (find_overload_match): New argument NOSIDE.
1977 * value.h (find_overload_match): Update signature.
1978
940df408
SC
19792014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1980
1981 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1982 'items' methods instead of 'iteritems' method on dictionaries.
1983
699ca60a
DE
19842014-08-15 Doug Evans <dje@google.com>
1985
1986 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1987 closer to use.
1988
37780ee5
DE
19892014-08-15 Doug Evans <dje@google.com>
1990
1991 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1992
0ad93d4f
DE
19932014-08-15 Doug Evans <dje@google.com>
1994
1995 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1996
20d8c372
DE
19972014-08-15 Doug Evans <dje@google.com>
1998
1999 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2000 unused.
2001
cb039ba4
EZ
20022014-08-15 Eli Zaretskii <eliz@gnu.org>
2003
2004 * dcache.h: Include target.h, to avoid compile time warnings.
2005
eb7a547a
JB
20062014-08-15 Joel Brobecker <brobecker@adacore.com>
2007
2008 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2009 frame_info" partial declaration.
2010 * gdbarch.h: Regenerate.
2011
783cecc8
YQ
20122014-08-15 Yao Qi <yao@codesourcery.com>
2013
2014 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2015 Add parameter 'decode_for_pst_p'. Callers update.
2016
65c749e7
YQ
20172014-08-13 Yao Qi <yao@codesourcery.com>
2018
2019 PR build/17104
2020 * configure.ac: Use local variable 'pos'.
2021 * configure: Regenerated.
2022
d769e349
DE
20232014-08-11 Doug Evans <dje@google.com>
2024
2025 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2026 message, it is redundant with "Reading symbols from ..." message.
2027
24f1235e
DE
20282014-08-10 Doug Evans <xdje42@gmail.com>
2029
2030 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2031
dcd2e6ef
YQ
20322014-08-09 Yao Qi <yao@codesourcery.com>
2033
2034 PR remote/9053
2035 * remote.c (remote_xfer_partial): Remove dead code.
2036
070bdf0b
AA
20372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2038
2039 * ia64-linux-tdep.c: Include "regset.h".
2040 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2041 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2042 (ia64_linux_supply_fpregset): New function.
2043 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2044 (ia64_linux_regset_from_core_section): New function.
2045 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2046 method.
2047
08f9f542
AA
20482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2049
2050 * m68klinux-tdep.c: Include "regset.h".
2051 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2052 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2053 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2054 (m68k_linux_regset_from_core_section): New function.
2055 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2056 method.
2057
8f1cee41
AA
20582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2059
2060 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2061 function. Move logic to...
2062 (tilegx_linux_regmap): ... this new register map.
2063 (tilegx_linux_regset): Refer to register map, replace supply
2064 method by regcache_supply_regset, and add collect method.
2065 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2066 TILEGX_FIRST_EASY_REGNUM.
2067
c5741217
AA
20682014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2069
2070 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2071 that calls regcache_supply_regset and handles the EPC register
2072 separately. Move main logic to...
2073 (score7_linux_gregmap): ... this new register map.
2074 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2075 (score7_linux_gregset): Refer to register map. Add collect method.
2076 (score7_linux_regset_from_core_section): Replace
2077 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2078 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2079 (struct regset): Delete unused forward declaraction.
2080 (struct pt_regs): Delete structure definition.
2081 (elf_gregset_t): Delete typedef.
2082
81580573
AA
20832014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2084
2085 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2086 (nios2_core_regset): Add collect method.
2087
ba199d7d
AA
20882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2089
2090 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2091 platform-independent and don't write to read-only input buffer.
2092 (m32r_linux_collect_gregset): New function.
2093 (m32r_linux_gregset): Add collect method.
2094
0006a9da
AA
20952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2096
2097 * hppa-linux-tdep.c (greg_map): Rename to...
2098 (hppa_linux_gregmap): ... this. Also convert to
2099 regcache_map_entry format.
2100 (hppa_linux_supply_regset): Delete function.
2101 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2102 (hppa_linux_fpregmap): ... this new register map.
2103 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2104 register map, replace supply method by regcache_supply_regset, and
2105 add collect method regcache_collect_regset.
2106
901e1b23
AA
21072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2108
2109 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2110 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2111 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2112 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2113 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2114 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2115 (frv_linux_supply_gregset): Replace main logic by call to
2116 regcache_supply_regset, but keep clearing gr32-gr63.
2117 (frv_linux_supply_fpregset): Delete function.
2118 (frv_linux_gregset): Refer to appropriate register map and add
2119 regcache_collect_regset as the collect method.
2120 (frv_linux_fpregset): Likewise. Also exchange the supply method
2121 by regcache_supply_regset.
2122
1d6e7555
AA
21232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2124
2125 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2126 by call to alpha_supply_int_regs.
2127 (alpha_linux_collect_gregset): New function.
2128 (alpha_linux_supply_fpregset): Replace logic by call to
2129 alpha_supply_fp_regs.
2130 (alpha_linux_collect_fpregset): New function.
2131 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2132
d4d793bf
AA
21332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2134
2135 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2136 by call to regcache_collect_regset.
2137 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2138 instead of aarch64_linux_supply_gregset/_fpregset.
2139 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2140 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2141 header file instead.
2142 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2143 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2144 functions. Move logic to ...
2145 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2146 register maps.
2147 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2148 refer to new register maps, replace *_regset_from_core by
2149 regcache_supply_regset, and also use regcache_collect_regset.
2150 * aarch64-linux-tdep.h: Include "regset.h".
2151 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2152 Delete prototypes.
2153 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2154 macros, moved from C source file.
2155 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2156 variable declarations.
2157
99b7da5d
AA
21582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2159
2160 * s390-linux-nat.c: Include "regset.h".
2161 (regmap_gregset): Delete macro.
2162 (s390_64_regmap_gregset): New register map for
2163 regcache_supply/_collect_regset.
2164 (s390_64_gregset): New regset.
2165 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2166 (regmap_fpregset): Delete macro.
2167 (s390_native_supply, s390_native_collect): Delete functions.
2168 (supply_gregset, fill_gregset): Replace s390-specific regmap
2169 handling by a call to regcache_supply/_collect_regset.
2170 (supply_fpregset, fill_fpregset): Call regcache_supply/
2171 _collect_regset instead of s390_native_supply/_collect.
2172 (fetch_regset, store_regset): Likewise. Also change the last
2173 parameter to a regset instead of a regmap.
2174 (s390_linux_fetch_inferior_registers)
2175 (390_linux_store_inferior_registers): Adjust last parameter in
2176 calls to fetch_regset and store_regset.
2177 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2178 (s390_gregmap): ... this. Also make static const and convert to
2179 regcache_map_entry format.
2180 (s390x_regmap_gregset): Delete.
2181 (s390_regmap_fpregset): Rename to...
2182 (s390_fpregmap): ... this. Make static const and convert to
2183 regcache_map_entry format.
2184 (s390_regmap_upper, s390_regmap_last_break)
2185 (s390x_regmap_last_break, s390_regmap_system_call)
2186 (s390_regmap_tdb): Likewise.
2187 (s390_supply_regset, s390_collect_regset): Remove functions.
2188 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2189 s390_supply_regset.
2190 (s390_gregset, s390_fpregset, s390_upper_regset)
2191 (s390_last_break_regset, s390x_last_break_regset)
2192 (s390_system_call_regset, s390_tdb_regset): Make global and
2193 replace s390_supply/_collect_regset by regcache_supply/
2194 _collect_regset.
2195 (s390x_gregset): Delete.
2196 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2197 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2198 (s390_regmap_fpregset, s390_regmap_last_break)
2199 (s390x_regmap_last_break, s390_regmap_system_call)
2200 (s390_regmap_tdb): Delete global variable declarations.
2201 (s390_gregset, s390_fpregset, s390_last_break_regset)
2202 (s390x_last_break_regset, s390_system_call_regset)
2203 (s390_tdb_regset): New global variable declarations.
2204
0b309272
AA
22052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2206
2207 * regcache.c: Include "regset.h".
2208 (regcache_transfer_regset): New local function.
2209 (regcache_supply_regset, regcache_collect_regset): New functions.
2210 * regcache.h (struct regcache_map_entry): New structure.
2211 (REGCACHE_MAP_SKIP): New enum value.
2212 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2213
7fefa8d7
AA
22142014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2215
2216 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2217 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2218 (ppc_linux_collect_gregset ): Likewise.
2219 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2220 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2221 (ppc_collect_vrregset): Likewise.
2222 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2223 Likewise.
2224
96c4f946
YQ
22252014-08-07 Yao Qi <yao@codesourcery.com>
2226
2227 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2228 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2229 * remote.c (remote_read_bytes): Likewise.
2230
fffbe6a8
YQ
22312014-08-07 Yao Qi <yao@codesourcery.com>
2232
2233 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2234
5ee8a82c
YQ
22352014-08-07 Yao Qi <yao@codesourcery.com>
2236
2237 PR remote/17230
2238 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2239 TARGET_XFER_OK instead of 0.
2240
bb974a24
GB
22412014-08-07 Gary Benson <gbenson@redhat.com>
2242
2243 * common/common-defs.h: Include errno.h.
2244 * defs.h: Do not include errno.h.
2245 * ada-typeprint.c: Likewise.
2246 * c-typeprint.c: Likewise.
2247 * core-regset.c: Likewise.
2248 * corefile.c: Likewise.
2249 * corelow.c: Likewise.
2250 * event-loop.c: Likewise.
2251 * f-typeprint.c: Likewise.
2252 * gnu-nat.c: Likewise.
2253 * go32-nat.c: Likewise.
2254 * i386gnu-nat.c: Likewise.
2255 * m2-typeprint.c: Likewise.
2256 * nat/linux-btrace.c: Likewise.
2257 * p-typeprint.c: Likewise.
2258 * procfs.c: Likewise.
2259 * remote-sim.c: Likewise.
2260 * rs6000-nat.c: Likewise.
2261 * target.c: Likewise.
2262 * typeprint.c: Likewise.
2263 * ui-file.c: Likewise.
2264 * valops.c: Likewise.
2265 * valprint.c: Likewise.
2266
6d3d12eb
GB
22672014-08-07 Gary Benson <gbenson@redhat.com>
2268
2269 * common/common-defs.h: Include string.h.
2270 * aarch64-tdep.c: Do not include string.h.
2271 * ada-exp.y: Likewise.
2272 * ada-lang.c: Likewise.
2273 * ada-lex.l: Likewise.
2274 * ada-typeprint.c: Likewise.
2275 * ada-valprint.c: Likewise.
2276 * aix-thread.c: Likewise.
2277 * alpha-linux-tdep.c: Likewise.
2278 * alpha-mdebug-tdep.c: Likewise.
2279 * alpha-nat.c: Likewise.
2280 * alpha-osf1-tdep.c: Likewise.
2281 * alpha-tdep.c: Likewise.
2282 * alphanbsd-tdep.c: Likewise.
2283 * amd64-dicos-tdep.c: Likewise.
2284 * amd64-linux-tdep.c: Likewise.
2285 * amd64-nat.c: Likewise.
2286 * amd64-sol2-tdep.c: Likewise.
2287 * amd64fbsd-tdep.c: Likewise.
2288 * amd64obsd-tdep.c: Likewise.
2289 * arch-utils.c: Likewise.
2290 * arm-linux-nat.c: Likewise.
2291 * arm-linux-tdep.c: Likewise.
2292 * arm-tdep.c: Likewise.
2293 * arm-wince-tdep.c: Likewise.
2294 * armbsd-tdep.c: Likewise.
2295 * armnbsd-nat.c: Likewise.
2296 * armnbsd-tdep.c: Likewise.
2297 * armobsd-tdep.c: Likewise.
2298 * avr-tdep.c: Likewise.
2299 * ax-gdb.c: Likewise.
2300 * ax-general.c: Likewise.
2301 * bcache.c: Likewise.
2302 * bfin-tdep.c: Likewise.
2303 * breakpoint.c: Likewise.
2304 * build-id.c: Likewise.
2305 * buildsym.c: Likewise.
2306 * c-exp.y: Likewise.
2307 * c-lang.c: Likewise.
2308 * c-typeprint.c: Likewise.
2309 * c-valprint.c: Likewise.
2310 * charset.c: Likewise.
2311 * cli-out.c: Likewise.
2312 * cli/cli-cmds.c: Likewise.
2313 * cli/cli-decode.c: Likewise.
2314 * cli/cli-dump.c: Likewise.
2315 * cli/cli-interp.c: Likewise.
2316 * cli/cli-logging.c: Likewise.
2317 * cli/cli-script.c: Likewise.
2318 * cli/cli-setshow.c: Likewise.
2319 * cli/cli-utils.c: Likewise.
2320 * coffread.c: Likewise.
2321 * common/agent.c: Likewise.
2322 * common/buffer.c: Likewise.
2323 * common/buffer.h: Likewise.
2324 * common/common-utils.c: Likewise.
2325 * common/filestuff.c: Likewise.
2326 * common/filestuff.c: Likewise.
2327 * common/format.c: Likewise.
2328 * common/print-utils.c: Likewise.
2329 * common/rsp-low.c: Likewise.
2330 * common/signals.c: Likewise.
2331 * common/vec.h: Likewise.
2332 * common/xml-utils.c: Likewise.
2333 * core-regset.c: Likewise.
2334 * corefile.c: Likewise.
2335 * corelow.c: Likewise.
2336 * cp-abi.c: Likewise.
2337 * cp-name-parser.y: Likewise.
2338 * cp-support.c: Likewise.
2339 * cp-valprint.c: Likewise.
2340 * cris-tdep.c: Likewise.
2341 * d-exp.y: Likewise.
2342 * darwin-nat.c: Likewise.
2343 * dbxread.c: Likewise.
2344 * dcache.c: Likewise.
2345 * demangle.c: Likewise.
2346 * dicos-tdep.c: Likewise.
2347 * disasm.c: Likewise.
2348 * doublest.c: Likewise.
2349 * dsrec.c: Likewise.
2350 * dummy-frame.c: Likewise.
2351 * dwarf2-frame.c: Likewise.
2352 * dwarf2loc.c: Likewise.
2353 * dwarf2read.c: Likewise.
2354 * elfread.c: Likewise.
2355 * environ.c: Likewise.
2356 * eval.c: Likewise.
2357 * event-loop.c: Likewise.
2358 * exceptions.c: Likewise.
2359 * exec.c: Likewise.
2360 * expprint.c: Likewise.
2361 * f-exp.y: Likewise.
2362 * f-lang.c: Likewise.
2363 * f-typeprint.c: Likewise.
2364 * f-valprint.c: Likewise.
2365 * fbsd-nat.c: Likewise.
2366 * findcmd.c: Likewise.
2367 * findvar.c: Likewise.
2368 * fork-child.c: Likewise.
2369 * frame.c: Likewise.
2370 * frv-linux-tdep.c: Likewise.
2371 * frv-tdep.c: Likewise.
2372 * gdb.c: Likewise.
2373 * gdb_bfd.c: Likewise.
2374 * gdbarch.c: Likewise.
2375 * gdbarch.sh: Likewise.
2376 * gdbtypes.c: Likewise.
2377 * gnu-nat.c: Likewise.
2378 * gnu-v2-abi.c: Likewise.
2379 * gnu-v3-abi.c: Likewise.
2380 * go-exp.y: Likewise.
2381 * go-lang.c: Likewise.
2382 * go32-nat.c: Likewise.
2383 * guile/guile.c: Likewise.
2384 * guile/scm-auto-load.c: Likewise.
2385 * hppa-hpux-tdep.c: Likewise.
2386 * hppa-linux-nat.c: Likewise.
2387 * hppanbsd-tdep.c: Likewise.
2388 * hppaobsd-tdep.c: Likewise.
2389 * i386-cygwin-tdep.c: Likewise.
2390 * i386-dicos-tdep.c: Likewise.
2391 * i386-linux-tdep.c: Likewise.
2392 * i386-nto-tdep.c: Likewise.
2393 * i386-sol2-tdep.c: Likewise.
2394 * i386-tdep.c: Likewise.
2395 * i386bsd-tdep.c: Likewise.
2396 * i386gnu-nat.c: Likewise.
2397 * i386nbsd-tdep.c: Likewise.
2398 * i386obsd-tdep.c: Likewise.
2399 * i387-tdep.c: Likewise.
2400 * ia64-libunwind-tdep.c: Likewise.
2401 * ia64-linux-nat.c: Likewise.
2402 * inf-child.c: Likewise.
2403 * inf-ptrace.c: Likewise.
2404 * inf-ttrace.c: Likewise.
2405 * infcall.c: Likewise.
2406 * infcmd.c: Likewise.
2407 * inflow.c: Likewise.
2408 * infrun.c: Likewise.
2409 * interps.c: Likewise.
2410 * iq2000-tdep.c: Likewise.
2411 * irix5-nat.c: Likewise.
2412 * jv-exp.y: Likewise.
2413 * jv-lang.c: Likewise.
2414 * jv-typeprint.c: Likewise.
2415 * jv-valprint.c: Likewise.
2416 * language.c: Likewise.
2417 * linux-fork.c: Likewise.
2418 * linux-nat.c: Likewise.
2419 * lm32-tdep.c: Likewise.
2420 * m2-exp.y: Likewise.
2421 * m2-typeprint.c: Likewise.
2422 * m32c-tdep.c: Likewise.
2423 * m32r-linux-nat.c: Likewise.
2424 * m32r-linux-tdep.c: Likewise.
2425 * m32r-rom.c: Likewise.
2426 * m32r-tdep.c: Likewise.
2427 * m68hc11-tdep.c: Likewise.
2428 * m68k-tdep.c: Likewise.
2429 * m68kbsd-tdep.c: Likewise.
2430 * m68klinux-nat.c: Likewise.
2431 * m68klinux-tdep.c: Likewise.
2432 * m88k-tdep.c: Likewise.
2433 * machoread.c: Likewise.
2434 * macrocmd.c: Likewise.
2435 * main.c: Likewise.
2436 * mdebugread.c: Likewise.
2437 * mem-break.c: Likewise.
2438 * memattr.c: Likewise.
2439 * memory-map.c: Likewise.
2440 * mep-tdep.c: Likewise.
2441 * mi/mi-cmd-break.c: Likewise.
2442 * mi/mi-cmd-disas.c: Likewise.
2443 * mi/mi-cmd-env.c: Likewise.
2444 * mi/mi-cmd-stack.c: Likewise.
2445 * mi/mi-cmd-var.c: Likewise.
2446 * mi/mi-cmds.c: Likewise.
2447 * mi/mi-console.c: Likewise.
2448 * mi/mi-getopt.c: Likewise.
2449 * mi/mi-interp.c: Likewise.
2450 * mi/mi-main.c: Likewise.
2451 * mi/mi-parse.c: Likewise.
2452 * microblaze-rom.c: Likewise.
2453 * microblaze-tdep.c: Likewise.
2454 * mingw-hdep.c: Likewise.
2455 * minidebug.c: Likewise.
2456 * minsyms.c: Likewise.
2457 * mips-irix-tdep.c: Likewise.
2458 * mips-linux-tdep.c: Likewise.
2459 * mips-tdep.c: Likewise.
2460 * mips64obsd-tdep.c: Likewise.
2461 * mipsnbsd-tdep.c: Likewise.
2462 * mipsread.c: Likewise.
2463 * mn10300-linux-tdep.c: Likewise.
2464 * mn10300-tdep.c: Likewise.
2465 * monitor.c: Likewise.
2466 * moxie-tdep.c: Likewise.
2467 * mt-tdep.c: Likewise.
2468 * nat/linux-btrace.c: Likewise.
2469 * nat/linux-osdata.c: Likewise.
2470 * nat/linux-procfs.c: Likewise.
2471 * nat/linux-ptrace.c: Likewise.
2472 * nat/linux-waitpid.c: Likewise.
2473 * nbsd-tdep.c: Likewise.
2474 * nios2-linux-tdep.c: Likewise.
2475 * nto-procfs.c: Likewise.
2476 * nto-tdep.c: Likewise.
2477 * objc-lang.c: Likewise.
2478 * objfiles.c: Likewise.
2479 * opencl-lang.c: Likewise.
2480 * osabi.c: Likewise.
2481 * osdata.c: Likewise.
2482 * p-exp.y: Likewise.
2483 * p-lang.c: Likewise.
2484 * p-typeprint.c: Likewise.
2485 * parse.c: Likewise.
2486 * posix-hdep.c: Likewise.
2487 * ppc-linux-nat.c: Likewise.
2488 * ppc-sysv-tdep.c: Likewise.
2489 * ppcfbsd-tdep.c: Likewise.
2490 * ppcnbsd-tdep.c: Likewise.
2491 * ppcobsd-tdep.c: Likewise.
2492 * printcmd.c: Likewise.
2493 * procfs.c: Likewise.
2494 * prologue-value.c: Likewise.
2495 * python/py-auto-load.c: Likewise.
2496 * python/py-gdb-readline.c: Likewise.
2497 * ravenscar-thread.c: Likewise.
2498 * regcache.c: Likewise.
2499 * registry.c: Likewise.
2500 * remote-fileio.c: Likewise.
2501 * remote-m32r-sdi.c: Likewise.
2502 * remote-mips.c: Likewise.
2503 * remote-notif.c: Likewise.
2504 * remote-sim.c: Likewise.
2505 * remote.c: Likewise.
2506 * reverse.c: Likewise.
2507 * rs6000-aix-tdep.c: Likewise.
2508 * ser-base.c: Likewise.
2509 * ser-go32.c: Likewise.
2510 * ser-mingw.c: Likewise.
2511 * ser-pipe.c: Likewise.
2512 * ser-tcp.c: Likewise.
2513 * ser-unix.c: Likewise.
2514 * serial.c: Likewise.
2515 * sh-tdep.c: Likewise.
2516 * sh64-tdep.c: Likewise.
2517 * shnbsd-tdep.c: Likewise.
2518 * skip.c: Likewise.
2519 * sol-thread.c: Likewise.
2520 * solib-dsbt.c: Likewise.
2521 * solib-frv.c: Likewise.
2522 * solib-osf.c: Likewise.
2523 * solib-som.c: Likewise.
2524 * solib-spu.c: Likewise.
2525 * solib-target.c: Likewise.
2526 * solib.c: Likewise.
2527 * somread.c: Likewise.
2528 * source.c: Likewise.
2529 * sparc-nat.c: Likewise.
2530 * sparc-sol2-tdep.c: Likewise.
2531 * sparc-tdep.c: Likewise.
2532 * sparc64-tdep.c: Likewise.
2533 * sparc64fbsd-tdep.c: Likewise.
2534 * sparc64nbsd-tdep.c: Likewise.
2535 * sparcnbsd-tdep.c: Likewise.
2536 * spu-linux-nat.c: Likewise.
2537 * spu-multiarch.c: Likewise.
2538 * spu-tdep.c: Likewise.
2539 * stabsread.c: Likewise.
2540 * stack.c: Likewise.
2541 * std-regs.c: Likewise.
2542 * symfile.c: Likewise.
2543 * symmisc.c: Likewise.
2544 * symtab.c: Likewise.
2545 * target.c: Likewise.
2546 * thread.c: Likewise.
2547 * tilegx-linux-nat.c: Likewise.
2548 * tilegx-tdep.c: Likewise.
2549 * top.c: Likewise.
2550 * tracepoint.c: Likewise.
2551 * tui/tui-command.c: Likewise.
2552 * tui/tui-data.c: Likewise.
2553 * tui/tui-disasm.c: Likewise.
2554 * tui/tui-file.c: Likewise.
2555 * tui/tui-layout.c: Likewise.
2556 * tui/tui-out.c: Likewise.
2557 * tui/tui-regs.c: Likewise.
2558 * tui/tui-source.c: Likewise.
2559 * tui/tui-stack.c: Likewise.
2560 * tui/tui-win.c: Likewise.
2561 * tui/tui-windata.c: Likewise.
2562 * tui/tui-winsource.c: Likewise.
2563 * typeprint.c: Likewise.
2564 * ui-file.c: Likewise.
2565 * ui-out.c: Likewise.
2566 * user-regs.c: Likewise.
2567 * utils.c: Likewise.
2568 * v850-tdep.c: Likewise.
2569 * valarith.c: Likewise.
2570 * valops.c: Likewise.
2571 * valprint.c: Likewise.
2572 * value.c: Likewise.
2573 * varobj.c: Likewise.
2574 * vax-tdep.c: Likewise.
2575 * vaxnbsd-tdep.c: Likewise.
2576 * vaxobsd-tdep.c: Likewise.
2577 * windows-nat.c: Likewise.
2578 * xcoffread.c: Likewise.
2579 * xml-support.c: Likewise.
2580 * xstormy16-tdep.c: Likewise.
2581 * xtensa-linux-nat.c: Likewise.
2582
dccbb609
GB
25832014-08-07 Gary Benson <gbenson@redhat.com>
2584
2585 * common/common-defs.h: Include gdb_assert.h.
2586 * aarch64-tdep.c: Do not include gdb_assert.h.
2587 * addrmap.c: Likewise.
2588 * aix-thread.c: Likewise.
2589 * alpha-linux-tdep.c: Likewise.
2590 * alpha-mdebug-tdep.c: Likewise.
2591 * alphanbsd-tdep.c: Likewise.
2592 * amd64-nat.c: Likewise.
2593 * amd64-tdep.c: Likewise.
2594 * amd64bsd-nat.c: Likewise.
2595 * amd64fbsd-nat.c: Likewise.
2596 * amd64fbsd-tdep.c: Likewise.
2597 * amd64nbsd-nat.c: Likewise.
2598 * amd64nbsd-tdep.c: Likewise.
2599 * amd64obsd-nat.c: Likewise.
2600 * amd64obsd-tdep.c: Likewise.
2601 * arch-utils.c: Likewise.
2602 * arm-tdep.c: Likewise.
2603 * armbsd-tdep.c: Likewise.
2604 * auxv.c: Likewise.
2605 * bcache.c: Likewise.
2606 * bfin-tdep.c: Likewise.
2607 * blockframe.c: Likewise.
2608 * breakpoint.c: Likewise.
2609 * bsd-kvm.c: Likewise.
2610 * bsd-uthread.c: Likewise.
2611 * buildsym.c: Likewise.
2612 * c-exp.y: Likewise.
2613 * c-lang.c: Likewise.
2614 * charset.c: Likewise.
2615 * cleanups.c: Likewise.
2616 * cli-out.c: Likewise.
2617 * cli/cli-decode.c: Likewise.
2618 * cli/cli-dump.c: Likewise.
2619 * cli/cli-logging.c: Likewise.
2620 * cli/cli-script.c: Likewise.
2621 * cli/cli-utils.c: Likewise.
2622 * coffread.c: Likewise.
2623 * common/common-utils.c: Likewise.
2624 * common/queue.h: Likewise.
2625 * common/signals.c: Likewise.
2626 * common/vec.h: Likewise.
2627 * complaints.c: Likewise.
2628 * completer.c: Likewise.
2629 * corelow.c: Likewise.
2630 * cp-abi.c: Likewise.
2631 * cp-name-parser.y: Likewise.
2632 * cp-namespace.c: Likewise.
2633 * cp-support.c: Likewise.
2634 * cris-tdep.c: Likewise.
2635 * dbxread.c: Likewise.
2636 * dictionary.c: Likewise.
2637 * doublest.c: Likewise.
2638 * dsrec.c: Likewise.
2639 * dummy-frame.c: Likewise.
2640 * dwarf2-frame-tailcall.c: Likewise.
2641 * dwarf2-frame.c: Likewise.
2642 * dwarf2expr.c: Likewise.
2643 * dwarf2loc.c: Likewise.
2644 * dwarf2read.c: Likewise.
2645 * eval.c: Likewise.
2646 * event-loop.c: Likewise.
2647 * exceptions.c: Likewise.
2648 * expprint.c: Likewise.
2649 * f-valprint.c: Likewise.
2650 * fbsd-nat.c: Likewise.
2651 * findvar.c: Likewise.
2652 * frame-unwind.c: Likewise.
2653 * frame.c: Likewise.
2654 * frv-tdep.c: Likewise.
2655 * gcore.c: Likewise.
2656 * gdb-dlfcn.c: Likewise.
2657 * gdb_bfd.c: Likewise.
2658 * gdbarch.c: Likewise.
2659 * gdbarch.sh: Likewise.
2660 * gdbtypes.c: Likewise.
2661 * gnu-nat.c: Likewise.
2662 * gnu-v3-abi.c: Likewise.
2663 * go-lang.c: Likewise.
2664 * guile/scm-exception.c: Likewise.
2665 * guile/scm-gsmob.c: Likewise.
2666 * guile/scm-lazy-string.c: Likewise.
2667 * guile/scm-math.c: Likewise.
2668 * guile/scm-pretty-print.c: Likewise.
2669 * guile/scm-safe-call.c: Likewise.
2670 * guile/scm-utils.c: Likewise.
2671 * guile/scm-value.c: Likewise.
2672 * h8300-tdep.c: Likewise.
2673 * hppa-hpux-nat.c: Likewise.
2674 * hppa-tdep.c: Likewise.
2675 * hppanbsd-tdep.c: Likewise.
2676 * hppaobsd-tdep.c: Likewise.
2677 * i386-darwin-nat.c: Likewise.
2678 * i386-darwin-tdep.c: Likewise.
2679 * i386-nto-tdep.c: Likewise.
2680 * i386-tdep.c: Likewise.
2681 * i386bsd-nat.c: Likewise.
2682 * i386fbsd-tdep.c: Likewise.
2683 * i386gnu-nat.c: Likewise.
2684 * i386nbsd-tdep.c: Likewise.
2685 * i386obsd-tdep.c: Likewise.
2686 * i387-tdep.c: Likewise.
2687 * ia64-libunwind-tdep.c: Likewise.
2688 * ia64-tdep.c: Likewise.
2689 * inf-ptrace.c: Likewise.
2690 * inf-ttrace.c: Likewise.
2691 * infcall.c: Likewise.
2692 * infcmd.c: Likewise.
2693 * infrun.c: Likewise.
2694 * inline-frame.c: Likewise.
2695 * interps.c: Likewise.
2696 * jv-lang.c: Likewise.
2697 * jv-typeprint.c: Likewise.
2698 * linux-fork.c: Likewise.
2699 * linux-nat.c: Likewise.
2700 * linux-thread-db.c: Likewise.
2701 * m32c-tdep.c: Likewise.
2702 * m32r-linux-nat.c: Likewise.
2703 * m32r-tdep.c: Likewise.
2704 * m68k-tdep.c: Likewise.
2705 * m68kbsd-nat.c: Likewise.
2706 * m68kbsd-tdep.c: Likewise.
2707 * m88k-tdep.c: Likewise.
2708 * machoread.c: Likewise.
2709 * macroexp.c: Likewise.
2710 * macrotab.c: Likewise.
2711 * maint.c: Likewise.
2712 * mdebugread.c: Likewise.
2713 * memory-map.c: Likewise.
2714 * mep-tdep.c: Likewise.
2715 * mi/mi-common.c: Likewise.
2716 * microblaze-tdep.c: Likewise.
2717 * mingw-hdep.c: Likewise.
2718 * mips-linux-nat.c: Likewise.
2719 * mips-linux-tdep.c: Likewise.
2720 * mips-tdep.c: Likewise.
2721 * mips64obsd-tdep.c: Likewise.
2722 * mipsnbsd-tdep.c: Likewise.
2723 * mn10300-linux-tdep.c: Likewise.
2724 * mn10300-tdep.c: Likewise.
2725 * moxie-tdep.c: Likewise.
2726 * mt-tdep.c: Likewise.
2727 * nat/linux-btrace.c: Likewise.
2728 * nat/linux-osdata.c: Likewise.
2729 * nat/linux-ptrace.c: Likewise.
2730 * nat/mips-linux-watch.c: Likewise.
2731 * nios2-linux-tdep.c: Likewise.
2732 * nios2-tdep.c: Likewise.
2733 * objc-lang.c: Likewise.
2734 * objfiles.c: Likewise.
2735 * obsd-nat.c: Likewise.
2736 * opencl-lang.c: Likewise.
2737 * osabi.c: Likewise.
2738 * parse.c: Likewise.
2739 * ppc-linux-nat.c: Likewise.
2740 * ppc-sysv-tdep.c: Likewise.
2741 * ppcfbsd-nat.c: Likewise.
2742 * ppcfbsd-tdep.c: Likewise.
2743 * ppcnbsd-nat.c: Likewise.
2744 * ppcnbsd-tdep.c: Likewise.
2745 * ppcobsd-nat.c: Likewise.
2746 * ppcobsd-tdep.c: Likewise.
2747 * printcmd.c: Likewise.
2748 * procfs.c: Likewise.
2749 * prologue-value.c: Likewise.
2750 * psymtab.c: Likewise.
2751 * python/py-lazy-string.c: Likewise.
2752 * python/py-value.c: Likewise.
2753 * regcache.c: Likewise.
2754 * reggroups.c: Likewise.
2755 * registry.c: Likewise.
2756 * remote-sim.c: Likewise.
2757 * remote.c: Likewise.
2758 * rs6000-aix-tdep.c: Likewise.
2759 * rs6000-tdep.c: Likewise.
2760 * s390-linux-tdep.c: Likewise.
2761 * score-tdep.c: Likewise.
2762 * ser-base.c: Likewise.
2763 * ser-mingw.c: Likewise.
2764 * sh-tdep.c: Likewise.
2765 * sh64-tdep.c: Likewise.
2766 * solib-darwin.c: Likewise.
2767 * solib-spu.c: Likewise.
2768 * solib-svr4.c: Likewise.
2769 * source.c: Likewise.
2770 * sparc-nat.c: Likewise.
2771 * sparc-sol2-tdep.c: Likewise.
2772 * sparc-tdep.c: Likewise.
2773 * sparc64-sol2-tdep.c: Likewise.
2774 * sparc64-tdep.c: Likewise.
2775 * sparc64fbsd-tdep.c: Likewise.
2776 * sparc64nbsd-tdep.c: Likewise.
2777 * sparc64obsd-tdep.c: Likewise.
2778 * sparcnbsd-tdep.c: Likewise.
2779 * sparcobsd-tdep.c: Likewise.
2780 * spu-multiarch.c: Likewise.
2781 * spu-tdep.c: Likewise.
2782 * stabsread.c: Likewise.
2783 * stack.c: Likewise.
2784 * symfile.c: Likewise.
2785 * symtab.c: Likewise.
2786 * target-descriptions.c: Likewise.
2787 * target-memory.c: Likewise.
2788 * target.c: Likewise.
2789 * tic6x-linux-tdep.c: Likewise.
2790 * tic6x-tdep.c: Likewise.
2791 * tilegx-linux-nat.c: Likewise.
2792 * tilegx-tdep.c: Likewise.
2793 * top.c: Likewise.
2794 * tramp-frame.c: Likewise.
2795 * tui/tui-out.c: Likewise.
2796 * tui/tui-winsource.c: Likewise.
2797 * ui-out.c: Likewise.
2798 * user-regs.c: Likewise.
2799 * utils.c: Likewise.
2800 * v850-tdep.c: Likewise.
2801 * valops.c: Likewise.
2802 * value.c: Likewise.
2803 * varobj.c: Likewise.
2804 * vax-nat.c: Likewise.
2805 * xml-syscall.c: Likewise.
2806 * xml-tdesc.c: Likewise.
2807 * xstormy16-tdep.c: Likewise.
2808 * xtensa-linux-nat.c: Likewise.
2809 * xtensa-tdep.c: Likewise.
2810
e76df0d0
GB
28112014-08-07 Gary Benson <gbenson@redhat.com>
2812
2813 * common/common-defs.h: Include common-utils.h.
2814 * defs.h: Do not include common-utils.h.
2815 * common/gdb_assert.h: Likewise.
2816 * darwin-nat.h: Likewise.
2817 * nat/linux-btrace.c: Likewise.
2818 * target/waitstatus.h: Likewise.
2819
4cb9c816
GB
28202014-08-07 Gary Benson <gbenson@redhat.com>
2821
2822 * common/common-defs.h: Include ptid.h.
2823 * defs.h: Do not include ptid.h.
2824 * inferior.h: Likewise.
2825 * infrun.h: Likewise.
2826 * nat/linux-btrace.h: Likewise.
2827 * nat/linux-osdata.h: Likewise.
2828 * target/waitstatus.h: Likewise.
2829
3995eeee
GB
28302014-08-07 Gary Benson <gbenson@redhat.com>
2831
2832 * common/common-defs.h: Include gdb_locale.h.
2833 * defs.h: Do not include gdb_locale.h.
2834
cb9f1a9b
GB
28352014-08-07 Gary Benson <gbenson@redhat.com>
2836
2837 * common/common-defs.h: Include gdb/signals.h.
2838 * defs.h: Do not include gdb/signals.h.
2839
a5fceff8
GB
28402014-08-07 Gary Benson <gbenson@redhat.com>
2841
2842 * common/common-defs.h: Include pathmax.h.
2843 * defs.h: Do not include pathmax.h.
2844
b9391142
GB
28452014-08-07 Gary Benson <gbenson@redhat.com>
2846
2847 * common/common-defs.h: Include libiberty.h.
2848 * defs.h: Do not include libiberty.h.
2849 * common/queue.h: Likewise.
2850 * cp-name-parser.y: Likewise.
2851 * mi/mi-cmd-catch.c: Likewise.
2852 * python/python.c: Likewise.
2853
0e443c87
GB
28542014-08-07 Gary Benson <gbenson@redhat.com>
2855
2856 * common/common-defs.h: Include ansidecl.h.
2857 * defs.h: Do not include ansidecl.h.
2858 * common/buffer.h: Likewise.
2859 * common/common-utils.h: Likewise.
2860
8ebb3f56
GB
28612014-08-07 Gary Benson <gbenson@redhat.com>
2862
2863 * common/common-defs.h: Include stddef.h.
2864 * defs.h: Do not include stddef.h.
2865 * common/common-utils.h: Likewise.
2866 * amd64fbsd-nat.c: Likewise.
2867 * bcache.c: Likewise.
2868 * charset.c: Likewise.
2869 * common/buffer.h: Likewise.
2870 * common/vec.h: Likewise.
2871 * i386bsd-nat.c: Likewise.
2872 * nat/linux-btrace.h: Likewise.
2873 * ppcfbsd-nat.c: Likewise.
2874 * ppcnbsd-tdep.h: Likewise.
2875 * ppcobsd-nat.c: Likewise.
2876 * ppcobsd-tdep.h: Likewise.
2877 * python/py-gdb-readline.c: Likewise.
2878
8980bdf6
GB
28792014-08-07 Gary Benson <gbenson@redhat.com>
2880
2881 * common/common-defs.h: Include stdarg.h.
2882 * defs.h: Do not include stdarg.h.
2883 * ada-lang.c: Likewise.
2884 * common/common-utils.h: Likewise.
2885 * guile/scm-string.c: Likewise.
2886 * guile/scm-utils.c: Likewise.
2887 * m32c-tdep.c: Likewise.
2888
d7096f71
GB
28892014-08-07 Gary Benson <gbenson@redhat.com>
2890
2891 * common/common-defs.h: Include stdlib.h.
2892 * defs.h: Do not include stdlib.h.
2893 * addrmap.c: Likewise.
2894 * bcache.c: Likewise.
2895 * common/buffer.c: Likewise.
2896 * common/common-utils.c: Likewise.
2897 * cp-name-parser.y: Likewise.
2898 * go32-nat.c: Likewise.
2899 * mn10300-linux-tdep.c: Likewise.
2900 * nat/linux-osdata.c: Likewise.
2901 * tui/tui.c: Likewise.
2902 * windows-nat.c: Likewise.
2903
d02f550d
GB
29042014-08-07 Gary Benson <gbenson@redhat.com>
2905
2906 * common/common-defs.h: Include stdio.h.
2907 * defs.h: Do not include stdio.h.
2908 * ada-lang.c: Likewise.
2909 * common/buffer.c: Likewise.
2910 * common/common-utils.c: Likewise.
2911 * cp-name-parser.y: Likewise.
2912 * gnu-nat.c: Likewise.
2913 * go32-nat.c: Likewise.
2914 * i386gnu-nat.c: Likewise.
2915 * proc-api.c: Likewise.
2916 * proc-events.c: Likewise.
2917 * proc-flags.c: Likewise.
2918 * proc-why.c: Likewise.
2919 * python/python-internal.h: Likewise.
2920 * target-memory.c: Likewise.
2921 * tui/tui-io.c: Likewise.
2922 * tui/tui.c: Likewise.
2923
b6d7a4bf
SM
29242014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2925
2926 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2927 (scan_dyntag_auxv): Same.
2928
af19829b
YQ
29292014-08-06 Yao Qi <yao@codesourcery.com>
2930
2931 * amd64-linux-nat.c: Remove duplicated include
2932 "x86-linux-nat.h".
2933 * i386-linux-nat.c: Likewise.
2934
8e07a239
YQ
29352014-08-06 Yao Qi <yao@codesourcery.com>
2936
2937 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2938 operand" with "Special opcode" in comments.
2939
7bfe8241
GB
29402014-08-05 Gary Benson <gbenson@redhat.com>
2941
2942 * interps.c (initialize_interps): Remove prototype.
2943 (interpreter_initialized): Remove static global.
2944 (interp_add): Do not call initialize_interps.
2945 (initialize_interps): Remove function.
2946
d6c95504
GB
29472014-08-05 Gary Benson <gbenson@redhat.com>
2948
2949 * utils.c (vwarning): Remove spurious va_end.
2950
241fd515
AM
29512014-08-05 Alan Modra <amodra@gmail.com>
2952
2953 * charset.c (convert_between_encodings): Cast result of obstack_base.
2954 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2955 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2956 (read_unwind_info): Use size_t for some locals.
2957 * jit.c (finalize_symtab): Likewise.
2958 * utils.c (hashtab_obstack_allocate): Likewise.
2959 * symmisc.c (print_objfile_statistics): Update format strings.
2960
dc304a94
JK
29612014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2962
2963 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2964 (Changes in GDB 7.8): ... here.
2965
3cecbbbe
TT
29662014-08-04 Tom Tromey <tromey@redhat.com>
2967
2968 * target.c (set_targetdebug): New function.
2969 (initialize_targets): Pass set_targetdebug when creating "set
2970 debug target".
2971
6908c509
JB
29722014-08-01 Joel Brobecker <brobecker@adacore.com>
2973
2974 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2975 if detecting a variable-sized field that is not the last field.
2976 Fix struct type length computation.
2977
53e8f97d
JB
29782014-08-01 Joel Brobecker <brobecker@adacore.com>
2979
2980 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2981 Add debug trace.
2982
e068c55d
JB
29832014-08-01 Joel Brobecker <brobecker@adacore.com>
2984
2985 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2986 Remove "+ 8" offset in computation of CHAIN_VMA.
2987
4d4ca2a1
DE
29882014-07-31 Doug Evans <dje@google.com>
2989
2990 * inflow.c (child_terminal_inferior): Add comment.
2991 (child_terminal_ours_for_output): Add comment.
2992 (child_terminal_ours): Add comment.
2993 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2994 (linux_nat_terminal_ours): Add comment.
2995
462f517e
GB
29962014-07-31 Gary Benson <gbenson@redhat.com>
2997
2998 * common/btrace-common.h: Do not include defs.h or server.h.
2999 * nat/mips-linux-watch.h: Likewise.
3000 * gdb-dlfcn.h: Do not include defs.h.
3001 * tracefile.h: Likewise.
3002
74228e77
RM
30032014-07-30 Roland McGrath <mcgrathr@google.com>
3004
3005 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3006
014f9477
TT
30072014-07-30 Tom Tromey <tromey@redhat.com>
3008
3009 * bsd-kvm.c (bsd_kvm_open): Constify.
3010 * corelow.c (core_open): Constify.
3011 * ctf.c (ctf_open): Constify.
3012 * dbug-rom.c (dbug_open): Constify.
3013 * exec.c (exec_open): Constify.
3014 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3015 * microblaze-rom.c (picobug_open): Constify.
3016 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3017 Constify.
3018 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3019 * record-btrace.c (record_btrace_open): Constify.
3020 * record-full.c (record_full_core_open_1, record_full_open_1)
3021 (record_full_open): Constify.
3022 * remote-m32r-sdi.c (m32r_open): Constify.
3023 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3024 (rockhopper_open, lsi_open): Constify.
3025 * remote-sim.c (gdbsim_open): Constify.
3026 * remote.c (remote_open, extended_remote_open, remote_open_1):
3027 Constify.
3028 * target.h (struct target_ops) <to_open>: Make "arg" const.
3029 * tracefile-tfile.c (tfile_open): Constify.
3030
e799154c
TT
30312014-07-30 Tom Tromey <tromey@redhat.com>
3032
3033 * breakpoint.c (map_breakpoint_numbers): Update.
3034 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3035 (get_number_const): New function.
3036 (get_number): Rewrite using get_number_const.
3037 (init_number_or_range): Make "string" const.
3038 (number_is_in_list): Make "list" const.
3039 * cli/cli-utils.h (get_number_const): Declare.
3040 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3041 (init_number_or_range, number_is_in_list): Update.
3042 * printcmd.c (map_display_numbers): Update.
3043 * value.c (value_from_history_ref): Constify.
3044 * value.h (value_from_history_ref): Update.
3045
5f08566b
TT
30462014-07-30 Tom Tromey <tromey@redhat.com>
3047
3048 * corefile.c (hook_type, call_extra_exec_file_hooks)
3049 (specify_exec_file_hook): Constify.
3050 * exec.c (exec_file_attach): Make "filename" const.
3051 * gdbcore.h (deprecated_exec_file_display_hook)
3052 (specify_exec_file_hook, exec_file_attach): Constify.
3053 * main.c (captured_main): Use catch_command_errors_const.
3054
8981c758
TT
30552014-07-30 Tom Tromey <tromey@redhat.com>
3056
3057 * target.c (open_target): New function.
3058 (add_target_with_completer, add_deprecated_target_alias): Use
3059 set_cmd_sfunc, set_cmd_context.
3060 (debug_to_open): Remove.
3061 (setup_target_debug): Update.
3062
a1c7835a
YQ
30632014-07-30 Yao Qi <yao@codesourcery.com>
3064
3065 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3066 comments.
3067 * parse.c (exp_iterate): Update comments.
3068
976411d6
GB
30692014-07-30 Gary Benson <gbenson@redhat.com>
3070
3071 * common/common-defs.h: New file.
3072 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3073 * defs.h: Include common-defs.h.
3074 Do not include config.h or build-gnulib/config.h.
3075
5d4848a4
GB
30762014-07-30 Gary Benson <gbenson@redhat.com>
3077
3078 * common/common-utils.h: Do not include config.h.
3079 * nat/linux-btrace.h: Likewise.
3080
d41f6d8e
GB
30812014-07-30 Gary Benson <gbenson@redhat.com>
3082
3083 * btrace.c: Include defs.h.
3084 * common/ptid.c: Include defs.h or server.h as appropriate.
3085 * nat/mips-linux-watch.c: Likewise.
3086
84202f9c
TT
30872014-07-29 Tom Tromey <tromey@redhat.com>
3088
3089 * target.c (target_is_pushed): Simplify.
3090
2530441c
JB
30912014-07-29 Joel Brobecker <brobecker@adacore.com>
3092
3093 GDB 7.8 released.
3094
7e09a223
YQ
30952014-07-29 Yao Qi <yao@codesourcery.com>
3096
3097 PR gdb/17206
3098 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3099
7ebdbe92
DE
31002014-07-28 Doug Evans <xdje42@gmail.com>
3101
3102 PR guile/17203
3103 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3104 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3105 parameters.
3106
f347ffc9
WN
31072014-07-28 Will Newton <will.newton@linaro.org>
3108
3109 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3110 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3111 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3112 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3113 (THUMB2_EABI_SYSCALL): Likewise.
3114 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3115 struct tramp_frame.
3116 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3117 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3118
37c5f1f7
DE
31192014-07-27 Doug Evans <xdje42@gmail.com>
3120
3121 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3122
0c3abbc7
DE
31232014-07-27 Doug Evans <xdje42@gmail.com>
3124
3125 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3126
e76c5d17
DE
31272014-07-26 Ludovic Courtès <ludo@gnu.org>
3128 Doug Evans <xdje42@gmail.com>
3129
3130 PR guile/17146
3131 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3132 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3133 * configure.ac: Try to use guild to compile an scm file, if it fails
3134 then disable guile support.
3135 * configure: Regenerate.
3136 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3137 GUILE_FILE_LIST.
3138 (GUILE_COMPILED_FILES): New variable.
3139 (GUILE_FILES) Update.
3140 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3141 (stamp-guile): Compile scm files.
3142 * guile/guile.c (boot_guile_support): New function.
3143 (standard_throw_args_p): New function.
3144 (print_standard_throw_error, print_throw_error): New functions.
3145 (handle_boot_error): New function.
3146 (initialize_scheme_side): Rewrite to call boot_guile_support.
3147 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3148 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3149
186fcde0
DE
31502014-07-26 Ludovic Courtès <ludo@gnu.org>
3151 Doug Evans <xdje42@gmail.com>
3152
3153 PR guile/17146
3154 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3155 * guile/lib/gdb/support.scm: New file.
3156 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3157 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3158 All uses updated.
3159 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3160 All uses updated.
3161 (%assert-type): Ditto, and renamed to assert-type.
3162 (%exception-print-style): Delete.
3163
4df42755
DE
31642014-07-26 Doug Evans <xdje42@gmail.com>
3165
3166 PR build/17105
3167 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3168 * configure: Regenerate.
3169 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3170 PYTHON_FILES.
3171 (PYTHON_FILES): New variable.
3172 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3173 (GUILE_FILES): New variable.
3174 (stamp-python, install-python, uninstall-python): Handle empty
3175 file list.
3176 (stamp-guile, install-guile, uninstall-guile): Ditto.
3177
ee7333ae
DE
31782014-07-26 Doug Evans <xdje42@gmail.com>
3179
3180 PR guile/17177
3181 * guile/lib/gdb.scm (pretty-printers): Export.
3182 (set-pretty-printers!): Export.
3183 * guile/lib/gdb/printing.scm (gdb module): Update.
3184 (prepend-pretty-printer!, append-pretty-printer!): Update.
3185 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3186 (pretty_printer_list_var): Delete.
3187 (pretty_printer_list): New static global.
3188 (gdbscm_pretty_printers): New function.
3189 (gdbscm_set_pretty_printers_x): New function.
3190 (ppscm_find_pretty_printer_from_gdb): Update.
3191 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3192 (gdbscm_initialize_pretty_printers): Update.
3193
74edf516
DE
31942014-07-26 Doug Evans <xdje42@gmail.com>
3195
3196 PR 17185
3197 * configure.ac: Add check for header gc/gc.h.
3198 Add check for function setenv.
3199 * configure: Regenerate.
3200 * config.in: Regenerate.
3201 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3202
d54398a7
MR
32032014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3204
3205 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3206 variation in gdbarch matching.
3207
ab16fce8
TT
32082014-07-25 Tom Tromey <tromey@redhat.com>
3209
3210 * exec.c (using_exec_ops): Remove.
3211 (exec_close_1): Update. Remove extraneous block, reindent.
3212 (add_target_sections): Use target_is_pushed.
3213
88056fbb
PA
32142014-07-25 Pedro Alves <palves@redhat.com>
3215
3216 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3217 * monitor.c (monitor_create_inferior): Likewise.
3218 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3219 * remote-sim.c (gdbsim_create_inferior): Likewise.
3220 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3221 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3222 * windows-nat.c (do_initial_windows_stuff): Likewise.
3223
70509625
PA
32242014-07-25 Pedro Alves <palves@redhat.com>
3225
3226 * NEWS: Mention signal passing and "signal" command changes.
3227 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3228 comment.
3229 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3230 call.
3231 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3232 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3233 (jump_command): Adjust clear_proceed_status call.
3234 (signal_command): Warn if other thread that are resumed have
3235 signals that will be delivered. Adjust clear_proceed_status call.
3236 (until_next_command, finish_command)
3237 (proceed_after_attach_callback, attach_command_post_wait)
3238 (attach_command): Adjust clear_proceed_status call.
3239 * infrun.c (proceed_after_vfork_done): Likewise.
3240 (proceed_after_attach_callback): Adjust comment.
3241 (clear_proceed_status_thread): Clear stop_signal if not in pass
3242 state.
3243 (clear_proceed_status_callback): Delete.
3244 (clear_proceed_status): New 'step' parameter. Only clear the
3245 proceed status of threads the command being prepared is about to
3246 resume.
3247 (proceed): If passed in an explicit signal, override stop_signal
3248 with it. Don't pass the last stop signal to the thread we're
3249 resuming.
3250 (init_wait_for_inferior): Adjust clear_proceed_status call.
3251 (switch_back_to_stepped_thread): Clear the signal if it should not
3252 be passed.
3253 * infrun.h (clear_proceed_status): New 'step' parameter.
3254 (user_visible_resume_ptid): Add comment.
3255 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3256 signal is in pass state.
3257 * remote.c (append_pending_thread_resumptions): Likewise.
3258 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3259
d8be2939
TT
32602014-07-25 Tom Tromey <tromey@redhat.com>
3261
3262 * target.h (target_stopped_data_address)
3263 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3264 parentheses.
3265
7d0d9d2b
PL
32662014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3267
3268 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3269 comments.
3270 (avr_pointer_to_address): Likewise.
3271
e9e7f724
TT
32722014-07-24 Tom Tromey <tromey@redhat.com>
3273
3274 * monitor.c (compile_pattern): Update.
3275 * target.h (struct target_ops) <to_shortname, to_longname,
3276 to_doc>: Now const.
3277
1947513d
TT
32782014-07-24 Tom Tromey <tromey@redhat.com>
3279
3280 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3281 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3282 (add_info_alias, add_com): Make "doc" const.
3283 (print_doc_line): Make "str" const.
3284 (delete_cmd): Update.
3285 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3286 (print_doc_line): Update.
3287 * cli/cli-script.c (document_command): Update.
3288 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3289 (add_com, add_info, add_info_alias): Update.
3290 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3291 * python/py-cmd.c (cmdpy_destroyer): Update.
3292
64e61d29
TT
32932014-07-24 Tom Tromey <tromey@redhat.com>
3294
3295 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3296 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3297 (help_cmd_list): Constify.
3298 (lookup_cmd): Update.
3299 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3300 const.
3301 (help_cmd_list, apropos_cmd): Update.
3302 * cli/cli-script.c (show_user): Update.
3303 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3304 * cli/cli-setshow.h (cmd_show_list): Update.
3305 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3306 (cmd_show_list): Update.
3307 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3308 * python/py-cmd.c (cmdpy_destroyer): Update.
3309
429e55ea
TT
33102014-07-24 Tom Tromey <tromey@redhat.com>
3311
3312 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3313 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3314 const.
3315 * command.h (deprecate_cmd): Update.
3316 * maint.c (maintenance_do_deprecate): Add casts.
3317
64669f3b
TT
33182014-07-24 Tom Tromey <tromey@redhat.com>
3319
3320 * cli/cli-decode.c (help_cmd): Make parameter "const".
3321 * cli/cli-decode.h (help_cmd): Update.
3322
d3d3328b
TT
33232014-07-24 Tom Tromey <tromey@redhat.com>
3324
3325 * stack.c (up_silently_base, down_silently_base): Make argument
3326 const.
3327
414842dc
TT
33282014-07-24 Tom Tromey <tromey@redhat.com>
3329
3330 * solib.c (solib_add): Make "pattern" const.
3331 * solib.h (solib_add): Update.
3332
baa336ce
TT
33332014-07-24 Tom Tromey <tromey@redhat.com>
3334
3335 * remote.c (remote_serial_open, print_packet, putpkt)
3336 (putpkt_binary): Constify.
3337 * remote.h (putpkt): Update.
3338
5a19e2d0
TT
33392014-07-24 Tom Tromey <tromey@redhat.com>
3340
3341 * monitor.c (monitor_open): Make "args" const.
3342 * monitor.h (monitor_open): Update.
3343
fc4baa5e
TT
33442014-07-24 Tom Tromey <tromey@redhat.com>
3345
3346 * maint.c (match_bfd_flags): Make "string" const.
3347 (print_bfd_section_info): Remove casts.
3348 (print_objfile_section_info): Make "string" const.
3349
0d5f0dbe
TT
33502014-07-24 Tom Tromey <tromey@redhat.com>
3351
3352 * inf-child.c (inf_child_open_target): Make "arg" const.
3353 * inf-child.h (inf_child_open_target): Update.
3354
41c77899
TT
33552014-07-24 Tom Tromey <tromey@redhat.com>
3356
3357 * environ.c (unset_in_environ): Make "var" const.
3358 * environ.h (unset_in_environ): Update.
3359
93db0d79
TT
33602014-07-24 Tom Tromey <tromey@redhat.com>
3361
3362 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3363 Make "cmd" const.
3364 (scan_filename_with_cleanup): Likewise.
3365 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3366 Make arguments const.
3367 (restore_command): Update.
3368
36d6eb95
PA
33692014-07-24 Pedro Alves <palves@redhat.com>
3370
3371 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3372
8009206a
TT
33732014-07-24 Tom Tromey <tromey@redhat.com>
3374 Gary Benson <gbenson@redhat.com>
3375
3376 * nat/linux-ptrace.c (additional_flags): New global.
3377 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3378 additional_flags; don't check GDBSERVER.
3379 (linux_ptrace_set_additional_flags): New function.
3380 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3381 Declare.
3382 * linux-nat.c (_initialize_linux_nat): Call
3383 linux_ptrace_set_additional_flags.
3384
a7068b60
TT
33852014-07-24 Tom Tromey <tromey@redhat.com>
3386
3387 * make-target-delegates (munge_type, write_debugmethod): New
3388 functions.
3389 (debug_names): New global.
3390 ($TARGET_DEBUG_PRINTER): New global.
3391 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3392 name.
3393 Write debug methods. Generate init_debug_target.
3394 * target-debug.h: New file.
3395 * target-delegates.c: Rebuild.
3396 * target.c: Include target-debug.h.
3397 (debug_target): Hoist definition.
3398 (target_kill, target_get_section_table, target_memory_map)
3399 (target_flash_erase, target_flash_done, target_detach)
3400 (target_disconnect, target_wait, target_resume)
3401 (target_pass_signals, target_program_signals, target_follow_fork)
3402 (target_mourn_inferior, target_search_memory)
3403 (target_thread_address_space, target_close)
3404 (target_find_new_threads, target_core_of_thread)
3405 (target_verify_memory, target_insert_mask_watchpoint)
3406 (target_remove_mask_watchpoint): Remove targetdebug code.
3407 (debug_to_post_attach, debug_to_prepare_to_store)
3408 (debug_to_files_info, debug_to_insert_breakpoint)
3409 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3410 (debug_to_region_ok_for_hw_watchpoint)
3411 (debug_to_can_accel_watchpoint_condition)
3412 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3413 (debug_to_watchpoint_addr_within_range)
3414 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3415 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3416 (debug_to_terminal_init, debug_to_terminal_inferior)
3417 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3418 (debug_to_terminal_save_ours, debug_to_terminal_info)
3419 (debug_to_load, debug_to_post_startup_inferior)
3420 (debug_to_insert_fork_catchpoint)
3421 (debug_to_remove_fork_catchpoint)
3422 (debug_to_insert_vfork_catchpoint)
3423 (debug_to_remove_vfork_catchpoint)
3424 (debug_to_insert_exec_catchpoint)
3425 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3426 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3427 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3428 (setup_target_debug): Call init_debug_target.
3429 * target.h (TARGET_DEBUG_PRINTER): New macro.
3430 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3431 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3432
2c51604d
GB
34332014-07-24 Gary Benson <gbenson@redhat.com>
3434
3435 * exceptions.h (throw_vfatal): Renamed to...
3436 (throw_vquit): New declaration.
3437 (throw_quit): Likewise.
3438 * exceptions.c (throw_vfatal): Renamed to...
3439 (throw_vquit): New function.
3440 (throw_quit): Likewise.
3441 (throw_error): Call throw_verror rather than throw_it.
3442 * utils.h (vfatal): Removed.
3443 (fatal): Likewise.
3444 * utils.c (vfatal): Removed.
3445 (fatal): Likewise.
3446 (internal_verror): Replaced call to fatal with call to throw_quit.
3447 (quit): Replaced calls to fatal with calls to throw_quit.
3448
34211963
ME
34492014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3450
3451 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3452 target_read_code.
3453
a52b4d3e
ME
34542014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3455
3456 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3457 less than zero in conditional expression.
3458
a8bdc56b
TT
34592014-07-23 Tom Tromey <tromey@redhat.com>
3460
3461 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3462 ($INTRO_PART): Don't match whitespace.
3463 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3464 argument matching.
3465 ($METHOD): Add $METHOD_TRAILER.
3466 (trim): Rewrite.
3467 (scan_target_h): New sub.
3468 Change main loop not to collect state.
3469 * target-delegates.c: Rebuild.
3470
91b52240
GB
34712014-07-23 Gary Benson <gbenson@redhat.com>
3472
3473 * cp-support.c (gdb_demangle): Fix build on systems without
3474 sigaltstack.
3475
45326f6f
JK
34762014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3477
3478 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3479 for reference entry value target data value.
3480
e214cf6c
JK
34812014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3482
3483 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3484 value_available_contents_eq.
3485
bddbbedd
PA
34862014-07-22 Pedro Alves <palves@redhat.com>
3487
3488 * value.c (allocate_optimized_out_value): Don't mark value as
3489 non-lazy.
3490
45c71484
JW
34912014-07-22 Jiong Wang <jiong.wang@arm.com>
3492
3493 * MAINTAINERS (Write After Approval): Update my email address.
3494
9597b22a
DE
34952014-07-20 Doug Evans <dje@google.com>
3496
3497 PR server/17147
3498 * remote.c (putpkt_binary): Add text to error message.
3499
91101fe5
YQ
35002014-07-20 Yao Qi <yao@codesourcery.com>
3501
3502 * eval.c: Remove "Chill" from comments.
3503 * gdbtypes.h: Likewise.
3504 * symtab.h: Likewise.
3505
c9402c95
YQ
35062014-07-20 Yao Qi <yao@codesourcery.com>
3507
3508 * std-operator.def: Update comments to TERNOP_SLICE.
3509
ae8fddda
YQ
35102014-07-20 Yao Qi <yao@codesourcery.com>
3511
3512 * std-operator.def: Remove BINOP_RANGE.
3513 * breakpoint.c (watchpoint_exp_is_const): Update.
3514 * expprint.c (dump_subexp_body_standard): Likewise.
3515 * eval.c (init_array_element): Remove dead code.
3516 (evaluate_subexp_standard): Likewise.
3517
9c816640
YQ
35182014-07-20 Yao Qi <yao@codesourcery.com>
3519
3520 * std-operator.def: Remove BINOP_IN.
3521 * breakpoint.c (watchpoint_exp_is_const): Update.
3522 * eval.c (evaluate_subexp_standard): Likewise.
3523 * expprint.c (dump_subexp_body_standard): Likewise.
3524
164224e9
ME
35252014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3526
3527 * microblaze-tdep.c (microblaze_register_names): Add
3528 the rshr and rslr register names.
3529 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3530 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3531 Use of tdesc_numbered_register. Use of
3532 microblaze_register_g_packet_guesses. Use of
3533 tdesc_use_registers. Use of set_gdbarch_register_type.
3534 (microblaze_register_g_packet_guesses): New.
3535 * microblaze-tdep.h (microblaze_reg_num): Add
3536 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3537 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3538 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3539 * features/microblaze-core.xml: New file.
3540 * features/microblaze-stack-protect.xml: New file.
3541 * features/microblaze-with-stack-protect.c: New file.
3542 * features/microblaze-with-stack-protect.xml: New file.
3543 * features/microblaze.xml: New file.
3544 * features/microblaze.c: New file.
3545 * features/Makefile (microblaze-with-stack-protect): Add
3546 microblaze-with-stack-protect microblaze and microblaze-expedite.
3547 * regformats/microblaze-with-stack-protect.dat: New file.
3548 * regformats/microblaze.dat: New file.
3549 * doc/gdb.texinfo (MicroBlaze Features): Added.
3550
e8b2341c
TT
35512014-07-18 Tom Tromey <tromey@redhat.com>
3552
3553 * exec.c (exec_ops): Now static.
3554 * exec.h (exec_ops): Don't declare.
3555
44e89118
TT
35562014-07-18 Tom Tromey <tromey@redhat.com>
3557
3558 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3559 to find_target_beneath.
3560 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3561 find_target_beneath.
3562 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3563
b0ed115f
TT
35642014-07-18 Tom Tromey <tromey@redhat.com>
3565
3566 PR gdb/17130:
3567 * utils.c (quit): Use target_supports_terminal_ours.
3568 * target.h (target_supports_terminal_ours): Declare.
3569 * target.c (target_supports_delete_record): Don't check
3570 to_delete_record against NULL.
3571 (target_supports_terminal_ours): New function.
3572
e75fdfca
TT
35732014-07-18 Tom Tromey <tromey@redhat.com>
3574
3575 PR gdb/17130:
3576 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3577 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3578 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3579 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3580 * windows-nat.c (windows_xfer_partial): Always delegate.
3581 * record-btrace.c (record_btrace_xfer_partial): Simplify
3582 delegation.
3583 (record_btrace_fetch_registers, record_btrace_store_registers)
3584 (record_btrace_prepare_to_store, record_btrace_resume)
3585 (record_btrace_wait, record_btrace_find_new_threads)
3586 (record_btrace_thread_alive): Likewise.
3587 * procfs.c (procfs_xfer_partial): Always delegate.
3588 * corelow.c (core_xfer_partial): Always delegate.
3589 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3590
83814951
TT
35912014-07-18 Tom Tromey <tromey@redhat.com>
3592
3593 * exec.c (exec_make_note_section): Move earlier.
3594
b8b8facf
DE
35952014-07-17 Doug Evans <dje@google.com>
3596
74b49205 3597 PR gdb/17170
b8b8facf
DE
3598 * maint.c (count_symtabs_and_blocks): Handle NULL
3599 current_program_space.
3600 (report_command_stats): Check global enabled flag in addition to
3601 recorded enabled flag.
3602 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3603
69ff6be5
PA
36042014-07-16 Pedro Alves <palves@redhat.com>
3605
3606 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3607
252db1b5
TT
36082014-07-16 Tom Tromey <tromey@redhat.com>
3609
3610 * target.h (struct target_ops) <to_delete_record>: Reformat
3611 comment.
3612
a432721e
TT
36132014-07-16 Tom Tromey <tromey@redhat.com>
3614
3615 * target-delegates.c: Rebuild.
3616
487d9753
PL
36172014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3618
3619 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3620 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3621 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3622 (avr_pointer_to_address): Likewise.
3623 (avr_address_class_type_flags): New function.
3624 (avr_address_class_type_flags_to_name): Likewise.
3625 (avr_address_class_name_to_type_flags): Likewise.
3626 (avr_gdbarch_init): Set address_class_type_flags,
3627 address_class_type_flags_to_name and
3628 address_class_name_to_type_flags.
3629
57745c90
PA
36302014-07-15 Pedro Alves <palves@redhat.com>
3631
3632 * linux-nat.c (kill_callback): Save errno and work with saved
3633 copy.
3634
2d40be18
SM
36352014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3636
3637 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3638
572f6555
EBM
36392014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3640
3641 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3642 breakpoint support correctly.
3643
cc1c52ad
PA
36442014-07-14 Pedro Alves <palves@redhat.com>
3645
3646 * utils.c (prompt_for_continue): Call target_terminal_ours.
3647
1e973570
PA
36482014-07-14 Pedro Alves <palves@redhat.com>
3649
3650 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3651 catch_errors. Don't re-enable stdin or notify observers where,
3652 and rethrow error.
3653 (fetch_inferior_event_wrapper): Delete.
3654
93d6eb10
PA
36552014-07-14 Pedro Alves <palves@redhat.com>
3656
3657 PR gdb/17072
3658 * top.c: Include "inf-loop.h".
3659 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3660 field.
3661 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3662 was async before.
3663 (gdb_readline_wrapper): Store whether the target is async, and
3664 make it sync.
3665
0017922d
PA
36662014-07-14 Pedro Alves <palves@redhat.com>
3667
3668 PR gdb/17072
3669 * top.c (gdb_readline_wrapper_line): Tweak comment.
3670 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3671 the input handler callback.
3672
94696ad3
PA
36732014-07-14 Pedro Alves <palves@redhat.com>
3674
3675 PR gdb/17072
3676 * main.c: Include event-top.h.
3677 (handle_command_errors): New function.
3678 (catch_command_errors, catch_command_errors_const): Use it.
3679
9d1e69a2
PA
36802014-07-14 Pedro Alves <palves@redhat.com>
3681
3682 * exceptions.c (catch_command_errors, catch_command_errors_const):
3683 Moved to main.c.
3684 * exceptions.h (catch_command_errors_ftype)
3685 (catch_command_errors_const_ftype): Moved to main.c.
3686 (catch_command_errors, catch_command_errors_const): Delete
3687 declarations.
3688 * main.c (catch_command_errors_ftype)
3689 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3690 (catch_command_errors, catch_command_errors_const)): Moved here
3691 from exceptions.c and make static.
3692
feefc97b
PA
36932014-07-14 Pedro Alves <palves@redhat.com>
3694
3695 * exceptions.c (print_any_exception): Delete.
3696 (catch_exceptions_with_msg): Use exception_print instead of
3697 print_any_exception.
3698 (catch_errors): Use exception_fprintf instead of
3699 print_any_exception.
3700 (catch_command_errors, catch_command_errors_const): Use
3701 exception_print instead of print_any_exception.
3702
c933f875
PA
37032014-07-14 Pedro Alves <palves@redhat.com>
3704
3705 * infcall.c (run_inferior_call): Set 'sync_execution' while
3706 running the inferior call.
3707
feb6f816
PA
37082014-07-14 Pedro Alves <palves@redhat.com>
3709
3710 * value.c (value_contents_equal): Delete function.
3711 * value.h (value_contents_equal): Delete declaration.
3712
d98b7a16
TT
37132014-07-14 Tom Tromey <tromey@redhat.com>
3714
3715 PR exp/17106:
3716 * gdbtypes.c (is_dynamic_type_internal): New function, from
3717 is_dynamic_type.
3718 (is_dynamic_type): Rewrite.
3719 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3720 (resolve_dynamic_struct): Likewise.
3721 (resolve_dynamic_type_internal): New function, from
3722 resolve_dynamic_type.
3723 (resolve_dynamic_type): Rewrite.
3724
548740d6
TT
37252014-07-14 Tom Tromey <tromey@redhat.com>
3726
3727 * target.c (target_require_runnable): Also check record_stratum.
3728 Update comment.
3729
808f7ab1
YQ
37302014-07-11 Yao Qi <yao@codesourcery.com>
3731
3732 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3733 thumb_instruction_restores_sp return true.
3734
540314bd
YQ
37352014-07-11 Yao Qi <yao@codesourcery.com>
3736
3737 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3738 (thumb_in_function_epilogue_p): Call
3739 thumb_instruction_restores_sp.
3740
1db01f22
YQ
37412014-07-11 Yao Qi <yao@codesourcery.com>
3742
3743 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3744 'add sp, #imm'.
3745 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3746
3116063b
GB
37472014-07-11 Gary Benson <gbenson@redhat.com>
3748
3749 * amd64-linux-nat.c (gdbcore.h): Remove include.
3750 (regset.h): Likewise.
3751 (nat/linux-btrace.h): Likewise.
3752 (btrace.h): Likewise.
3753 (gdb_assert.h): Likewise.
3754 (string.h): Likewise.
3755 (sys/uio.h): Likewise.
3756 (sys/debugreg.h): Likewise.
3757 (sys/syscall.h): Likewise.
3758 (sys/procfs.h): Likewise.
3759 (sys/user.h): Likewise.
3760 (asm/ptrace.h): Likewise.
3761 (i386-nat.h): Likewise.
3762 * i386-linux-nat.c (i386-nat.h): Likewise.
3763 (regset.h): Likewise.
3764 (target.h): Likewise.
3765 (linux-nat.h): Likewise.
3766 (nat/linux-btrace.h): Likewise.
3767 (btrace.h): Likewise.
3768 (gdb_assert.h): Likewise.
3769 (string.h): Likewise.
3770 (sys/uio.h): Likewise.
3771 (sys/user.h): Likewise.
3772 (sys/procfs.h): Likewise.
3773 (sys/reg.h): Likewise.
3774 (sys/debugreg.h): Likewise.
3775 (ORIG_EAX): Remove definition.
3776
040baaf6
GB
37772014-07-11 Gary Benson <gbenson@redhat.com>
3778
3779 * i386-linux-nat.h: New file.
3780 * x86-linux-nat.h: Likewise.
3781 * x86-linux-nat.c: Likewise.
3782 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3783 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3784 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3785 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3786 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3787 (PTRACE_SETREGSET): Likewise.
3788 (arch_lwp_info): Now in x86-linux-nat.c.
3789 (have_ptrace_getregset): Now in x86-linux-nat.h.
3790 (x86_linux_dr_get): Now in x86-linux-nat.c.
3791 (x86_linux_dr_set): Likewise.
3792 (x86_linux_dr_get_addr): Likewise.
3793 (x86_linux_dr_get_control): Likewise.
3794 (x86_linux_dr_get_status): Likewise.
3795 (update_debug_registers_callback): Likewise.
3796 (x86_linux_dr_set_control): Likewise.
3797 (x86_linux_dr_set_addr): Likewise.
3798 (x86_linux_prepare_to_resume): Likewise.
3799 (x86_linux_new_thread): Likewise.
3800 (x86_linux_new_fork): Likewise.
3801 (x86_linux_get_thread_area): Likewise.
3802 (super_post_startup_inferior): Likewise.
3803 (x86_linux_child_post_startup_inferior): Likewise.
3804 (AMD64_LINUX_USER64_CS): Likewise.
3805 (AMD64_LINUX_X32_DS): Likewise.
3806 (x86_linux_read_description): Likewise.
3807 (x86_linux_enable_btrace): Likewise.
3808 (x86_linux_disable_btrace): Likewise.
3809 (x86_linux_teardown_btrace): Likewise.
3810 (x86_linux_read_btrace): Likewise.
3811 (x86_linux_create_target): Likewise.
3812 (x86_linux_add_target): Likewise.
3813 * i386-linux-nat.c (x86-linux-nat.h): New include.
3814 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3815 (PTRACE_SETREGSET): Likewise.
3816 (arch_lwp_info): Now in x86-linux-nat.c.
3817 (have_ptrace_getregset): Now in x86-linux-nat.h.
3818 (x86_linux_dr_get): Now in x86-linux-nat.c.
3819 (x86_linux_dr_set): Likewise.
3820 (x86_linux_dr_get_addr): Likewise.
3821 (x86_linux_dr_get_control): Likewise.
3822 (x86_linux_dr_get_status): Likewise.
3823 (update_debug_registers_callback): Likewise.
3824 (x86_linux_dr_set_control): Likewise.
3825 (x86_linux_dr_set_addr): Likewise.
3826 (x86_linux_prepare_to_resume): Likewise.
3827 (x86_linux_new_thread): Likewise.
3828 (x86_linux_new_fork): Likewise.
3829 (x86_linux_get_thread_area): Likewise.
3830 (super_post_startup_inferior): Likewise.
3831 (x86_linux_child_post_startup_inferior): Likewise.
3832 (AMD64_LINUX_USER64_CS): Likewise.
3833 (AMD64_LINUX_X32_DS): Likewise.
3834 (x86_linux_read_description): Likewise.
3835 (x86_linux_enable_btrace): Likewise.
3836 (x86_linux_disable_btrace): Likewise.
3837 (x86_linux_teardown_btrace): Likewise.
3838 (x86_linux_read_btrace): Likewise.
3839 (x86_linux_create_target): Likewise.
3840 (x86_linux_add_target): Likewise.
3841
1aa7e42c
GB
38422014-07-11 Gary Benson <gbenson@redhat.com>
3843
3844 * amd64-linux-nat.c: Comment and whitespace changes.
3845 * i386-linux-nat.c: Comment and whitespace changes.
3846
c1e246a0
GB
38472014-07-11 Gary Benson <gbenson@redhat.com>
3848
3849 * amd64-linux-nat.c (x86_linux_create_target): New function.
3850 (x86_linux_add_target): Likewise.
3851 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3852 * i386-linux-nat.c (x86_linux_create_target): New function.
3853 (x86_linux_add_target): Likewise.
3854 (_initialize_i386_linux_nat): Delegate to the above new functions.
3855
8c420b8d
GB
38562014-07-11 Gary Benson <gbenson@redhat.com>
3857
3858 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3859 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3860 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3861 (ps_get_thread_area): Delegate to the above.
3862
cb1da100
GB
38632014-07-11 Gary Benson <gbenson@redhat.com>
3864
3865 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3866 x86_linux_read_description. All uses updated. amd64-specific
3867 code conditionalized. Conditionalized i386-specific code added.
3868 Redundant cast removed.
3869 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3870 x86_linux_read_description. All uses updated. i386-specific
3871 code conditionalized. Conditionalized amd64-specific code added.
3872 One sizeof replaced with the actual type it is describing.
3873
2acf3cd0
GB
38742014-07-11 Gary Benson <gbenson@redhat.com>
3875
3876 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3877 x86_linux_dr_get. All uses updated.
3878 (amd64_linux_dr_set): Renamed to
3879 x86_linux_dr_set. All uses updated.
3880 (amd64_linux_dr_get_addr): Renamed to
3881 x86_linux_dr_get_addr. All uses updated.
3882 (amd64_linux_dr_get_control): Renamed to
3883 x86_linux_dr_get_control. All uses updated.
3884 (amd64_linux_dr_get_status): Renamed to
3885 x86_linux_dr_get_status. All uses updated.
3886 (amd64_linux_dr_set_control): Renamed to
3887 x86_linux_dr_set_control. All uses updated.
3888 (amd64_linux_dr_set_addr): Renamed to
3889 x86_linux_dr_set_addr. All uses updated.
3890 (amd64_linux_prepare_to_resume): Renamed to
3891 x86_linux_prepare_to_resume. All uses updated.
3892 (amd64_linux_new_thread): Renamed to
3893 x86_linux_new_thread. All uses updated.
3894 (amd64_linux_new_fork): Renamed to
3895 x86_linux_new_fork. All uses updated.
3896 (amd64_linux_child_post_startup_inferior): Renamed to
3897 x86_linux_child_post_startup_inferior. All uses updated.
3898 (amd64_linux_enable_btrace): Renamed to
3899 x86_linux_enable_btrace. All uses updated.
3900 (amd64_linux_disable_btrace): Renamed to
3901 x86_linux_disable_btrace. All uses updated.
3902 (amd64_linux_teardown_btrace): Renamed to
3903 x86_linux_teardown_btrace. All uses updated.
3904 (amd64_linux_read_btrace): Renamed to
3905 x86_linux_read_btrace. All uses updated.
3906 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3907 x86_linux_dr_get. All uses updated.
3908 (i386_linux_dr_set): Renamed to
3909 x86_linux_dr_set. All uses updated.
3910 (i386_linux_dr_get_addr): Renamed to
3911 x86_linux_dr_get_addr. All uses updated.
3912 (i386_linux_dr_get_control): Renamed to
3913 x86_linux_dr_get_control. All uses updated.
3914 (i386_linux_dr_get_status): Renamed to
3915 x86_linux_dr_get_status. All uses updated.
3916 (i386_linux_dr_set_control): Renamed to
3917 x86_linux_dr_set_control. All uses updated.
3918 (i386_linux_dr_set_addr): Renamed to
3919 x86_linux_dr_set_addr. All uses updated.
3920 (i386_linux_prepare_to_resume): Renamed to
3921 x86_linux_prepare_to_resume. All uses updated.
3922 (i386_linux_new_thread): Renamed to
3923 x86_linux_new_thread. All uses updated.
3924 (i386_linux_new_fork): Renamed to
3925 x86_linux_new_fork. All uses updated.
3926 (i386_linux_child_post_startup_inferior): Renamed to
3927 x86_linux_child_post_startup_inferior. All uses updated.
3928 (i386_linux_enable_btrace): Renamed to
3929 x86_linux_enable_btrace. All uses updated.
3930 (i386_linux_disable_btrace): Renamed to
3931 x86_linux_disable_btrace. All uses updated.
3932 (i386_linux_teardown_btrace): Renamed to
3933 x86_linux_teardown_btrace. All uses updated.
3934 (i386_linux_read_btrace): Renamed to
3935 x86_linux_read_btrace. All uses updated.
3936
b9c1d481
AS
39372014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3938
3939 * remote.c (extended_remote_post_attach): New function.
3940 (init_extended_remote_ops): Install it as to_post_attach method.
3941
7180e04a
PA
39422014-07-09 Pedro Alves <palves@redhat.com>
3943
3944 * infcmd.c (attach_command_post_wait): Don't call
3945 target_terminal_inferior here.
3946 (attach_command): Call it here instead.
3947
9a9a7608
AB
39482014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3949
3950 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3951 field.
3952 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3953 from varobj.c, with additional checks.
3954 (c_varobj_ops): Fill in is_path_expr_parent field.
3955 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3956 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3957 field.
3958 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3959 ops method.
3960 (varobj_default_is_path_expr_parent): New function.
3961 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3962 (varobj_default_is_path_expr_parent): Declare new function.
3963
1f267ae3
MM
39642014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3965
3966 * infcmd.c (finish_backward): Turn internal error into normal error.
3967
b2ee242b
PA
39682014-07-07 Pedro Alves <palves@redhat.com>
3969
8a869bca 3970 PR gdb/17096
b2ee242b
PA
3971 * remote.c (async_handle_remote_sigint)
3972 (async_handle_remote_sigint_twice): Call
3973 gdb_call_async_signal_handler instead of
3974 mark_async_signal_handler.
3975
38e229b2
TT
39762014-07-07 Tom Tromey <tromey@redhat.com>
3977
3978 * target-delegates.c: Rebuild.
3979 * target.c (target_info_record): Remove.
3980 * record.c (info_record_command): Unconditionally call
3981 to_info_record.
3982 * target.h (struct target_ops) <to_info_record>: Use
3983 TARGET_DEFAULT_IGNORE.
3984 (target_info_record): Remove.
3985
f0f9ff95
TT
39862014-07-07 Tom Tromey <tromey@redhat.com>
3987
3988 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3989 TARGET_DEFAULT_NORETURN.
3990 * target.c (generic_tls_error): New function.
3991 (target_translate_tls_address): Don't search target stack.
3992 * target-delegates.c: Rebuild.
3993 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3994 stack.
3995 * linux-thread-db.c (thread_db_get_thread_local_address):
3996 Unconditionally call beneath target.
3997
4a5be5ee
MK
39982014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3999
4000 * cli/cli-logging.c (pop_output_files): Assign targerr to
4001 gdb_stdtargerr.
4002
92c3b204
AB
40032014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4004
4005 * MAINTAINERS (Write After Approval): Update my email address.
4006
9b11e3a7
GB
40072014-07-02 Gary Benson <gbenson@redhat.com>
4008
4009 * proc-service.c (ps_xfer_memory): Update comment.
4010 (ps_pstop): Remove unused function.
4011 (ps_pcontinue): Likewise.
4012 (ps_lstop): Likewise.
4013 (ps_lcontinue): Likewise.
4014 (ps_lgetxregsize): Likewise.
4015 (ps_lgetxregs): Likewise.
4016 (ps_lsetxregs): Likewise.
4017 (ps_plog): Likewise.
4018 (ps_ptread): Likewise.
4019 (ps_ptwrite): Likewise.
4020
cf363f18
MW
40212014-07-01 Mark Wielaard <mjw@redhat.com>
4022
4023 * dwarf2read.c (add_array_cv_type): New function.
4024 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4025 (read_tag_volatile_type): Likewise.
4026
82ae6c8d
TT
40272014-07-01 Tom Tromey <tromey@redhat.com>
4028
4029 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4030 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4031 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4032 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4033 * command.h (cmd_cfunc_ftype): Move earlier.
4034 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4035 (add_com, add_info): Use cmd_cfunc_ftype.
4036
96142726
TT
40372014-06-30 Tom Tromey <tromey@redhat.com>
4038
4039 * symtab.c (operator_chars): Make parameters and return type
4040 const.
4041 (file_matches): Make "files" const.
4042 (struct search_symbols_data) <files>: Now const.
4043 (search_symbols): Make "regexp" and "files" parameters const.
4044 Update.
4045 (symtab_symbol_info): Remove cast.
4046 (rbreak_command): Update.
4047 * symtab.h (search_symbols): Update.
4048
b67a2c6f
YQ
40492014-06-27 Yao Qi <yao@codesourcery.com>
4050
4051 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4052 Change parameter type to 'struct thread_info *'. Caller
4053 updated.
4054 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4055 Update declaration.
4056 * dummy-frame.c (struct dummy_frame_id): New.
4057 (dummy_frame_id_eq): New function.
4058 (struct dummy_frame) <id>: Change its type to 'struct
4059 dummy_frame_id'.
4060 (dummy_frame_push): Add parameter ptid and save it in
4061 dummy_frame_id.
4062 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4063 inferior_ptid.
4064 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4065 to inferior_ptid.
4066 (lookup_dummy_frame): Change parameter type to 'struct
4067 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4068 instead of frame_id_eq.
4069 (dummy_frame_pop): Add parameter ptid. Callers updated.
4070 Update comments. Compose dummy_frame_id and pass it to
4071 lookup_dummy_frame.
4072 (dummy_frame_discard): Add parameter ptid.
4073 (dummy_frame_sniffer): Compose dummy_frame_id and call
4074 dummy_frame_id_eq instead of frame_id_eq.
4075 (fprint_dummy_frames): Print ptid.
4076 * dummy-frame.h: Remove comments.
4077 (dummy_frame_push): Add ptid in declaration.
4078 (dummy_frame_pop, dummy_frame_discard): Likewise.
4079
5b10184c
TT
40802014-06-26 Tom Tromey <tromey@redhat.com>
4081
4082 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4083 * command.h (error_no_arg): Update.
4084
06900326
TT
40852014-06-26 Tom Tromey <tromey@redhat.com>
4086
4087 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4088 (do_show_command): Make "arg" const.
4089 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4090
c2bcbb1d
TT
40912014-06-26 Tom Tromey <tromey@redhat.com>
4092
4093 * record-full.c (record_full_get_bookmark): Make "args" const.
4094 (record_full_goto_bookmark): Make "raw_bookmark" const.
4095 * record.c (record_goto): New function.
4096 (cmd_record_goto): Use it. Now static.
4097 * record.h (record_goto): Declare.
4098 (cmd_record_goto): Remove declaration.
4099 * target-delegates.c: Rebuild.
4100 * target.h (struct target_ops) <to_get_bookmark,
4101 to_goto_bookmark>: Make parameter const.
4102
9cbe5fff
TT
41032014-06-26 Tom Tromey <tromey@redhat.com>
4104
4105 * defs.h (generic_load): Update.
4106 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4107 * monitor.c (monitor_load): Make "args" const.
4108 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4109 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4110 const.
4111 (mips_load): Make "file" const.
4112 * remote-sim.c (gdbsim_load): Make "args" const.
4113 * remote.c (remote_load): Make "name" const.
4114 * symfile.c (generic_load): Make "args" const.
4115 * target-delegates.c: Rebuild.
4116 * target.c (target_load): Make "arg" const.
4117 (debug_to_load): Make "args" const.
4118 * target.h (struct target_ops) <to_load>: Make parameter const.
4119 (target_load): Update.
4120
34a68019
TT
41212014-06-26 Tom Tromey <tromey@redhat.com>
4122
4123 PR symtab/16902:
4124 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4125 (dwarf2_physname, read_partial_die)
4126 (guess_partial_die_structure_name, fixup_partial_die)
4127 (guess_full_die_structure_name, anonymous_struct_prefix)
4128 (dwarf2_name): Use per-BFD obstack.
4129
efc889c1
YQ
41302014-06-26 Yao Qi <yao@codesourcery.com>
4131
4132 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4133 dummyframe and this_id into inner block below.
4134
4395285e
YQ
41352014-06-26 Yao Qi <yao@codesourcery.com>
4136
4137 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4138 with "signal_pass[0]" in the initialization of signal_pass.
4139
aef92902
MM
41402014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4141
4142 * record-btrace.c (record_btrace_generating_corefile)
4143 (record_btrace_prepare_to_generate_core)
4144 (record_btrace_done_generating_core): New.
4145 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4146 (record_btrace_store_registers, record_btrace_prepare_to_store):
4147 Forward request when generating a core file.
4148 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4149 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4150 to_done_generating_core.
4151
5fff78c4
MM
41522014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4153
4154 * target.h (target_ops) <to_prepare_to_generate_core>
4155 <to_done_generating_core>: New.
4156 (target_prepare_to_generate_core, target_done_generating_core): New.
4157 * target.c (target_prepare_to_generate_core)
4158 (target_done_generating_core): New.
4159 * target-delegates.c: Regenerate.
4160 * gcore.c: (write_gcore_file): Rename to ...
4161 (write_gcore_file_1): ...this.
4162 (write_gcore_file): Call target_prepare_to_generate_core
4163 and target_done_generating_core.
4164
1d1f1ccb
MM
41652014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4166
4167 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4168 * gcore.c (write_gcore_file): Free memory returned from
4169 make_corefile_notes.
4170 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4171 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4172
3343ef86
YQ
41732014-06-24 Yao Qi <yao@codesourcery.com>
4174
4175 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4176 (arm_linux_init_abi): Set skip_trampoline_code with
4177 gdbarch_skip_trampoline_code instead of
4178 find_solib_trampoline_target.
4179
18d18ac8
YQ
41802014-06-24 Yao Qi <yao@codesourcery.com>
4181
4182 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4183 arm_skip_bx_reg returns non-zero.
4184
80d8d390
YQ
41852014-06-24 Yao Qi <yao@codesourcery.com>
4186
4187 * arm-tdep.c (arm_skip_bx_reg): New function.
4188 (arm_skip_stub): Call arm_skip_bx_reg.
4189
6a18a01c
DB
41902014-06-23 Don Breazeal <donb@codesourcery.com>
4191
4192 * MAINTAINERS: Add myself as write-after-approval maintainer.
4193
8e9db26e
PA
41942014-06-23 Pedro Alves <palves@redhat.com>
4195
4196 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4197 DR_CONTROL before setting DR0..DR3.
4198 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4199 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4200 bits of DR_CONTROL related to the debug register slot being
4201 disabled. If all slots are vacant, clear local slowdown as well,
4202 and assert DR_CONTROL is 0.
4203
70afc5b7
SC
42042014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4205
4206 * python/lib/gdb/command/xmethods.py
4207 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4208 current progspace only if the string "progspace" matches LOCUS_RE.
4209
840ed64d
JK
42102014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4211
4212 Fix --with-system-readline with readline-6.3 patch 5.
4213 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4214 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4215 types.
4216
26f2dc30
TT
42172014-06-20 Tom Tromey <tromey@redhat.com>
4218
4219 * dwarf2read.c (dw2_get_real_path): Use correct type in
4220 OBSTACK_CALLOC.
4221 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4222
125f8a3d
GB
42232014-06-20 Gary Benson <gbenson@redhat.com>
4224
4225 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4226 * common/glibc_thread_db.h: Likewise.
4227 * common/i386-cpuid.h: Likewise.
4228 * common/i386-gcc-cpuid.h: Likewise.
4229 * common/linux-btrace.h: Likewise.
4230 * common/linux-osdata.h: Likewise.
4231 * common/linux-procfs.h: Likewise.
4232 * common/linux-ptrace.h: Likewise.
4233 * common/mips-linux-watch.h: Likewise.
4234 * common/linux-btrace.c: Moved to nat.
4235 * common/linux-osdata.c: Likewise.
4236 * common/linux-procfs.c: Likewise.
4237 * common/linux-ptrace.c: Likewise.
4238 * common/mips-linux-watch.c: Likewise.
4239 * nat/gdb_thread_db.h: Moved from common.
4240 * nat/glibc_thread_db.h: Likewise.
4241 * nat/i386-cpuid.h: Likewise.
4242 * nat/i386-gcc-cpuid.h: Likewise.
4243 * nat/linux-btrace.c: Likewise.
4244 * nat/linux-btrace.h: Likewise.
4245 * nat/linux-osdata.c: Likewise.
4246 * nat/linux-osdata.h: Likewise.
4247 * nat/linux-procfs.c: Likewise.
4248 * nat/linux-procfs.h: Likewise.
4249 * nat/linux-ptrace.c: Likewise.
4250 * nat/linux-ptrace.h: Likewise.
4251 * nat/mips-linux-watch.c: Likewise.
4252 * nat/mips-linux-watch.h: Likewise.
4253 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4254 (object file files): Reordered.
4255 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4256 of glibc_thread_db.h.
4257
42995dbd
GB
42582014-06-20 Gary Benson <gbenson@redhat.com>
4259
4260 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4261 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4262 (i386_dr_low): Likewise.
4263 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4264 (i386_dr_low_set_addr): Likewise.
4265 (i386_dr_low_get_addr): Likewise.
4266 (i386_dr_low_can_set_control): Likewise.
4267 (i386_dr_low_set_control): Likewise.
4268 (i386_dr_low_get_control): Likewise.
4269 (i386_dr_low_get_status): Likewise.
4270 (i386_get_debug_register_length): Likewise.
4271 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4272 (i386_dr_low): Likewise.
4273 * nat/i386-dregs.c (i386-low.h): Remove include.
4274 (i386-nat.h): Likewise.
4275 (nat/i386-dregs.h): New include.
4276 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4277 (i386_dr_low_set_addr): Likewise.
4278 (i386_dr_low_get_addr): Likewise.
4279 (i386_dr_low_can_set_control): Likewise.
4280 (i386_dr_low_set_control): Likewise.
4281 (i386_dr_low_get_control): Likewise.
4282 (i386_dr_low_get_status): Likewise.
4283 (i386_get_debug_register_length): Likewise.
4284 (debug_hw_points): Likewise.
4285
3ed9baed
IB
42862014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4287
4288 * Makefile.in (SFILES): Add d-exp.y.
4289 (YYFILES): Add d-exp.c.
4290 (YYOBJ): Add d-exp.o.
4291 (local-maintainer-clean): Delete d-exp.c.
4292 * d-exp.y: New file.
4293 * d-lang.h (d_parse): New declaration.
4294 (d_error): New declaration.
4295 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4296 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4297 PREC_ORDER operators.
4298 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4299
78c164b0
YQ
43002014-06-19 Yao Qi <yao@codesourcery.com>
4301
4302 * gdbthread.h (any_running): Remove the declaration.
4303 * thread.c (any_running): Remove.
4304
f6e29b6e
YQ
43052014-06-19 Yao Qi <yao@codesourcery.com>
4306
4307 * gdbthread.h (struct thread_info) <state>: Change its type to
4308 'enum thread_state'. Update comments.
4309
034f788c
PA
43102014-06-19 Pedro Alves <palves@redhat.com>
4311
4312 * gdbthread.h (ALL_THREADS): Delete.
4313 (ALL_NON_EXITED_THREADS): New macro.
4314 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4315 instead of ALL_THREADS.
4316 * infrun.c (find_thread_needs_step_over)
4317 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4318 instead of ALL_THREADS.
4319 * record-btrace.c (record_btrace_open)
4320 (record_btrace_stop_recording, record_btrace_close)
4321 (record_btrace_is_replaying, record_btrace_resume)
4322 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4323 * remote.c (append_pending_thread_resumptions): Likewise.
4324 * thread.c (thread_apply_all_command): Likewise.
4325
46e33252
GB
43262014-06-19 Gary Benson <gbenson@redhat.com>
4327
4328 * i386-nat.c (i386_stopped_by_watchpoint):
4329 Use i386_dr_stopped_by_watchpoint.
4330 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4331 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4332
3a8ee006
GB
43332014-06-19 Gary Benson <gbenson@redhat.com>
4334
4335 * nat/i386-dregs.c: New file.
4336 * Makefile.in (i386-dregs.o): New rule.
4337 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4338 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4339 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4340 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4341 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4342 * config/i386/go32.mh (NATDEPFILES): Likewise.
4343 * config/i386/linux.mh (NATDEPFILES): Likewise.
4344 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4345 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4346 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4347 * i386-nat.h (debug_hw_points): New declaration.
4348 * i386-nat.c (breakpoint.h): Remove include.
4349 (command.h): Likewise.
4350 (target.h): Likewise.
4351 (gdb_assert.h): Likewise.
4352 (debug_hw_points): Made nonstatic.
4353 (debug_printf): Now in i386-dregs.c.
4354 (TARGET_HAS_DR_LEN_8): Likewise.
4355 (DR_CONTROL_SHIFT): Likewise.
4356 (DR_CONTROL_SIZE): Likewise.
4357 (DR_RW_EXECUTE): Likewise.
4358 (DR_RW_WRITE): Likewise.
4359 (DR_RW_READ): Likewise.
4360 (DR_RW_IORW): Likewise.
4361 (DR_LEN_1): Likewise.
4362 (DR_LEN_2): Likewise.
4363 (DR_LEN_4): Likewise.
4364 (DR_LEN_8): Likewise.
4365 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4366 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4367 (DR_ENABLE_SIZE): Likewise.
4368 (DR_LOCAL_SLOWDOWN): Likewise.
4369 (DR_GLOBAL_SLOWDOWN): Likewise.
4370 (DR_CONTROL_RESERVED): Likewise.
4371 (I386_DR_CONTROL_MASK): Likewise.
4372 (I386_DR_VACANT): Likewise.
4373 (I386_DR_LOCAL_ENABLE): Likewise.
4374 (I386_DR_GLOBAL_ENABLE): Likewise.
4375 (I386_DR_DISABLE): Likewise.
4376 (I386_DR_SET_RW_LEN): Likewise.
4377 (I386_DR_GET_RW_LEN): Likewise.
4378 (I386_DR_WATCH_HIT): Likewise.
4379 (i386_wp_op_t): Likewise.
4380 (i386_show_dr): Likewise.
4381 (i386_length_and_rw_bits): Likewise.
4382 (i386_insert_aligned_watchpoint): Likewise.
4383 (i386_remove_aligned_watchpoint): Likewise.
4384 (i386_handle_nonaligned_watchpoint): Likewise.
4385 (i386_update_inferior_debug_regs): Likewise.
4386 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4387 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4388 (i386_region_ok_for_watchpoint):
4389 Use i386_dr_region_ok_for_watchpoint.
4390 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4391
322a8e06
GB
43922014-06-19 Gary Benson <gbenson@redhat.com>
4393
4394 * i386-nat.c (i386_insert_hw_breakpoint): Use
4395 i386_insert_watchpoint.
4396 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4397
8f26655c
GB
43982014-06-19 Gary Benson <gbenson@redhat.com>
4399
4400 * i386-nat.c (i386_dr_show): Renamed to
4401 i386_show_dr and made static. All uses updated.
4402 (i386_dr_length_and_rw_bits): Renamed to
4403 i386_length_and_rw_bits and made static.
4404 All uses updated.
4405 (i386_dr_insert_aligned_watchpoint): Renamed to
4406 i386_insert_aligned_watchpoint and made static.
4407 All uses updated.
4408 (i386_dr_remove_aligned_watchpoint): Renamed to
4409 i386_remove_aligned_watchpoint and made static.
4410 All uses updated.
4411 (i386_dr_update_inferior_debug_regs): Renamed to
4412 i386_update_inferior_debug_regs and made static.
4413 All uses updated.
4414 * nat/i386-dregs.h (i386_dr_show): Removed.
4415 (i386_dr_length_and_rw_bits): Likewise.
4416 (i386_dr_insert_aligned_watchpoint): Likewise.
4417 (i386_dr_remove_aligned_watchpoint): Likewise.
4418 (i386_dr_update_inferior_debug_regs): Likewise.
4419
992c7d70
GB
44202014-06-19 Gary Benson <gbenson@redhat.com>
4421
4422 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4423 * configure: Regenerate.
4424 * config.in: Likewise.
4425 * main.c (signal.h): New include.
4426 (setup_alternate_signal_stack): New function.
4427 (captured_main): Call the above.
4428 * cp-support.c (signal.h): New include.
4429 (catch_demangler_crashes): New flag.
4430 (SIGJMP_BUF): New define.
4431 (SIGSETJMP): Likewise.
4432 (SIGLONGJMP): Likewise.
4433 (gdb_demangle_jmp_buf): New static global.
4434 (gdb_demangle_attempt_core_dump): Likewise.
4435 (gdb_demangle_signal_handler): New function.
4436 (gdb_demangle): If catch_demangler_crashes is set, install the
4437 above signal handler before calling bfd_demangle, and restore
4438 the original signal handler afterwards. Display the offending
4439 symbol and call demangler_warning the first time a segmentation
4440 fault is caught.
4441 (_initialize_cp_support): New maint set/show command.
4442
eae7090b
GB
44432014-06-19 Gary Benson <gbenson@redhat.com>
4444
4445 * utils.h (resource_limit_kind): New enum.
4446 (can_dump_core): New declaration.
4447 (warn_cant_dump_core): Likewise.
4448 (dump_core): Likewise.
4449 * utils.c (dump_core): Made nonstatic. Added new
4450 parameter "limit_kind".
4451 (can_dump_core): Made nonstatic. Moved printing code to...
4452 (warn_cant_dump_core): New function.
4453 (can_dump_core_warn): Likewise.
4454 (internal_vproblem): Replace calls to can_dump_core with
4455 calls to can_dump_core_warn. Supply new argument to each.
4456
57fcfb1b
GB
44572014-06-19 Gary Benson <gbenson@redhat.com>
4458
4459 * utils.h (demangler_vwarning): New declaration.
4460 (demangler_warning): Likewise.
4461 * utils.c (struct internal_problem)
4462 <user_settable_should_quit>: New field.
4463 <user_settable_should_dump_core>: Likewise
4464 (internal_error_problem): Add values for above new fields.
4465 (internal_warning_problem): Likewise.
4466 (demangler_warning_problem): New static global.
4467 (demangler_vwarning): New function.
4468 (demangler_warning): Likewise.
4469 (add_internal_problem_command): Selectively add commands.
4470 (_initialize_utils): New internal problem command.
4471 * maint.c (maintenance_demangler_warning): New function.
4472 (_initialize_maint_cmds): New command.
4473
17a40b44
TT
44742014-06-18 Tom Tromey <tromey@redhat.com>
4475
4476 * f-valprint.c (info_common_command_for_block): Update.
4477 * symtab.h (struct general_symbol_info) <common_block>: Now
4478 const.
4479
346d1dfe
TT
44802014-06-18 Tom Tromey <tromey@redhat.com>
4481
4482 * symtab.h (struct symtab) <blockvector>: Now const.
4483 * ada-lang.c (ada_add_global_exceptions): Update.
4484 * buildsym.c (augment_type_symtab): Update.
4485 * dwarf2read.c (dw2_lookup_symbol): Update.
4486 * jit.c (finalize_symtab): Update.
4487 * jv-lang.c (add_class_symtab_symbol): Update.
4488 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4489 Update.
4490 * objfiles.c (objfile_relocate1): Update.
4491 * psymtab.c (lookup_symbol_aux_psymtabs)
4492 (maintenance_check_psymtabs): Update.
4493 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4494 Update.
4495 * spu-tdep.c (spu_catch_start): Update.
4496 * symmisc.c (dump_symtab_1): Update.
4497 * symtab.c (lookup_global_symbol_from_objfile)
4498 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4499 (basic_lookup_transparent_type_quick)
4500 (basic_lookup_transparent_type, find_pc_sect_symtab)
4501 (find_pc_sect_line, search_symbols): Update.
4502 * block.c (find_block_in_blockvector): Make "bl" const.
4503 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4504 const.
4505 (blockvector_contains_pc): Make "bv" const.
4506 (block_for_pc_sect): Update.
4507 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4508 (blockvector_contains_pc): Update.
4509 * breakpoint.c (resolve_sal_pc): Update.
4510 * inline-frame.c (block_starting_point_at): Update.
4511
1834676b
TT
45122014-06-18 Tom Tromey <tromey@redhat.com>
4513
4514 * completer.c (complete_line): Make "line_buffer" const.
4515 * completer.h (complete_line): Update.
4516
ac1a991b
TT
45172014-06-18 Tom Tromey <tromey@redhat.com>
4518
4519 * symtab.c (add_macro_name): Remove unneeded cast.
4520
5bc98e52
TT
45212014-06-18 Tom Tromey <tromey@redhat.com>
4522
4523 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4524 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4525
8236def8
TT
45262014-06-18 Tom Tromey <tromey@redhat.com>
4527
4528 * probe.c (info_probes_for_ops): Make "arg" const.
4529 * probe.h (info_probes_for_ops): Update.
4530
3977b71f
TT
45312014-06-18 Tom Tromey <tromey@redhat.com>
4532
4533 * varobj.c (varobj_create): Update.
4534 * valops.c (value_of_this): Update.
4535 * tracepoint.c (add_local_symbols, scope_info): Update.
4536 * symtab.h (struct general_symbol_info) <block>: Now const.
4537 * symtab.c (skip_prologue_sal)
4538 (default_make_symbol_completion_list_break_on)
4539 (skip_prologue_using_sal): Update.
4540 * stack.h (iterate_over_block_locals)
4541 (iterate_over_block_local_vars): Update.
4542 * stack.c (print_frame_args): Update.
4543 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4544 parameter const.
4545 (get_selected_block): Make return type const.
4546 * python/py-frame.c (frapy_block): Update.
4547 * python/py-block.c (gdbpy_block_for_pc): Update.
4548 * p-exp.y (%union) <bval>: Now const.
4549 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4550 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4551 * m2-exp.y (%union) <bval>: Now const.
4552 * linespec.c (get_current_search_block): Make return type const.
4553 (create_sals_line_offset, find_label_symbols): Update.
4554 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4555 Update.
4556 (block_starting_point_at): Make "block" const.
4557 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4558 (check_exception_resume): Update.
4559 * guile/scm-frame.c (gdbscm_frame_block): Update.
4560 * guile/scm-block.c (gdbscm_lookup_block): Update.
4561 * frame.h (get_frame_block): Update.
4562 (get_selected_block): Make return type const.
4563 * frame.c (frame_id_inner): Update.
4564 * f-valprint.c (info_common_command_for_block)
4565 (info_common_command): Update.
4566 * dwarf2loc.c (dwarf2_find_location_expression)
4567 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4568 (locexpr_describe_location_piece): Update.
4569 * c-exp.y (%union) <bval>: Now const.
4570 * breakpoint.c (resolve_sal_pc): Update.
4571 * blockframe.c (get_frame_block):Make return type const.
4572 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4573 (block_innermost_frame): Update.
4574 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4575 (block_for_pc, block_for_pc_sect): Update.
4576 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4577 'pblock' const.
4578 (block_for_pc_sect, block_for_pc): Make return type const.
4579 * ax-gdb.c (gen_expr): Update.
4580 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4581 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4582 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4583 (ada_read_var_value): Update.
4584 * ada-exp.y (struct name_info) <block>: Now const.
4585 (%union): Likewise.
4586 (block_lookup): Constify.
4587
b9228891
GB
45882014-06-18 Gary Benson <gbenson@redhat.com>
4589
4590 * nat/i386-dregs.h: New file.
4591 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4592 * i386-nat.h (i386-dregs.h): New include.
4593 (DR_FIRSTADDR): Now in i386-dregs.h.
4594 (DR_LASTADDR): Likewise.
4595 (DR_NADDR): Likewise.
4596 (DR_STATUS): Likewise.
4597 (DR_CONTROL): Likewise.
4598 (i386_debug_reg_state): Likewise.
4599 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4600
a1aa2221
LM
46012014-06-18 Don Breazeal <donb@codesourcery.com>
4602
4603 * breakpoint.c (set_longjmp_breakpoint): Call
4604 momentary_breakpoint_from_master with additional argument.
4605 (set_longjmp_breakpoint_for_call_dummy): Call
4606 momentary_breakpoint_from_master with additional argument.
4607 (set_std_terminate_breakpoint): Call
4608 momentary_breakpoint_from_master with additional argument.
4609 (momentary_breakpoint_from_master): Add argument to function
4610 definition and use it to initialize structure member flag.
74228e77 4611 (clone_momentary_breakpoint): Call
a1aa2221
LM
4612 momentary_breakpoint_from_master with additional argument.
4613 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4614 member flags set in momentary_breakpoint_from_master.
4615
4be83cc2
GB
46162014-06-18 Gary Benson <gbenson@redhat.com>
4617
4618 * i386-nat.c (i386_show_dr): Renamed to
4619 i386_dr_show and made nonstatic. All uses updated.
4620 (i386_length_and_rw_bits): Renamed to
4621 i386_dr_length_and_rw_bits and made nonstatic.
4622 All uses updated.
4623 (i386_insert_aligned_watchpoint): Renamed to
4624 i386_dr_insert_aligned_watchpoint and made nonstatic.
4625 All uses updated.
4626 (i386_remove_aligned_watchpoint): Renamed to
4627 i386_dr_remove_aligned_watchpoint and made nonstatic.
4628 All uses updated.
4629 (i386_update_inferior_debug_regs): Renamed to
4630 i386_dr_update_inferior_debug_regs and made nonstatic.
4631 All uses updated.
4632
131aa0d4
GB
46332014-06-18 Gary Benson <gbenson@redhat.com>
4634
4635 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4636 (i386_dr_low_can_set_control): Likewise.
4637 (i386_dr_low_set_addr): Likewise.
4638 (i386_dr_low_set_control): Likewise.
4639 (i386_dr_low_get_addr): Likewise.
4640 (i386_dr_low_get_status): Likewise.
4641 (i386_dr_low_get_control): Likewise.
4642 (i386_insert_aligned_watchpoint): Use new macros.
4643 (i386_update_inferior_debug_regs): Likewise.
4644 (i386_stopped_data_address): Likewise.
4645
d9305f7f
GB
46462014-06-18 Gary Benson <gbenson@redhat.com>
4647
4648 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4649 New parameter. All uses updated.
4650
ea008da4
GB
46512014-06-18 Gary Benson <gbenson@redhat.com>
4652
4653 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4654 All uses updated.
4655
1b6d4134
GB
46562014-06-18 Gary Benson <gbenson@redhat.com>
4657
4658 * i386-nat.c (debug_printf): New macro.
4659 (i386_get_debug_register_length): Likewise.
4660 (TARGET_HAS_DR_LEN_8): Use above macro.
4661 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4662 and printf_unfiltered. Use phex to format values.
4663
9b4550ef
GB
46642014-06-18 Gary Benson <gbenson@redhat.com>
4665
4666 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4667 Make const.
4668
6e62758f
GB
46692014-06-18 Gary Benson <gbenson@redhat.com>
4670
4671 * i386-nat.c: Comment changes.
4672
51c79e94
GB
46732014-06-18 Gary Benson <gbenson@redhat.com>
4674
4675 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4676
3e11889a
GB
46772014-06-18 Gary Benson <gbenson@redhat.com>
4678
4679 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4680 (i386_insert_aligned_watchpoint): Likewise.
4681 (i386_remove_aligned_watchpoint): Likewise.
4682 (i386_handle_nonaligned_watchpoint): Likewise.
4683
fc6e2f03
GB
46842014-06-18 Gary Benson <gbenson@redhat.com>
4685
4686 * i386-nat.c: Whitespace changes.
4687
2afe7d50
SB
46882014-06-17 Samuel Bronson <naesten@gmail.com>
4689
4690 * MAINTAINERS: Update Roland McGrath's email address.
4691 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4692 Red Hat a while ago, and giving me a current address.
2afe7d50 4693
3bca49ee
TT
46942014-06-17 Tom Tromey <tromey@redhat.com>
4695
4696 * utils.h (savestring): Remove declaration.
4697
6e366df1
TT
46982014-06-17 Tom Tromey <tromey@redhat.com>
4699
4700 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4701
6be47f0c
KS
47022014-06-16 Keith Seitz <keiths@redhat.com>
4703
4704 PR mi/15863
4705 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4706 to update the varobj if inferior_ptid is null_ptid.
4707
7bc112c1
TT
47082014-06-16 Tom Tromey <tromey@redhat.com>
4709
4710 * target.h (struct target_ops) <to_info_proc>: Make parameter
4711 const.
4712 (target_info_proc): Update.
4713 * target.c (target_info_proc): Make "args" const.
4714 * procfs.c (procfs_info_proc): Update.
4715 * linux-tdep.c (linux_info_proc): Update.
4716 (linux_core_info_proc_mappings): Make "args" const.
4717 (linux_core_info_proc): Update.
4718 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4719 * gdbarch.c: Rebuild.
4720 * gdbarch.h: Rebuild.
4721 * corelow.c (core_info_proc): Update.
4722
fee354ee
TT
47232014-06-16 Tom Tromey <tromey@redhat.com>
4724
4725 * target.h (struct target_ops) <to_disconnect>: Make parameter
4726 const.
4727 (target_disconnect): Update.
4728 * target.c (target_disconnect): Make "args" const.
4729 * target-delegates.c: Rebuild.
4730 * remote.c (remote_disconnect): Update.
4731 * record.h (record_disconnect): Update.
4732 * record.c (record_disconnect): Update.
4733 * inf-child.c (inf_child_disconnect): Update.
4734
a30bf1f1
TT
47352014-06-16 Tom Tromey <tromey@redhat.com>
4736
4737 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4738 * target.c (debug_to_rcmd, default_rcmd): Update.
4739 * target-delegates.c: Rebuild.
4740 * remote.c (remote_rcmd): Update.
4741 * monitor.c (monitor_rcmd): Update.
4742
d03de421
PA
47432014-06-16 Pedro Alves <palves@redhat.com>
4744
4745 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4746 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4747 have OBJF_SHARED set.
4748 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4749 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4750 instead of OBJF_USERLOADED.
4751 * objfiles.h (OBJF_SHARED): Update comment.
4752 (userloaded_objfile_contains_address_p): Rename to ...
4753 (shared_objfile_contains_address_p): ... this, and update
4754 comments.
4755 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4756 new objfile.
4757 (remove_symbol_file_command): Skip objfiles that don't have
4758 OBJF_SHARED set.
4759
99f4262f
TT
47602014-06-16 Tom Tromey <tromey@redhat.com>
4761
4762 * minsyms.h (prim_record_minimal_symbol)
4763 (prim_record_minimal_symbol_and_info): Update comments.
4764
97d66cc6
EZ
47652014-06-14 Eli Zaretskii <eliz@gnu.org>
4766
4767 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4768 or --without-guile, according to how GDB was built.
4769
635c7e8a
TT
47702014-06-13 Tom Tromey <tromey@redhat.com>
4771
4772 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4773 to help_list.
4774 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4775 to help_list.
4776 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4777 help_list.
4778 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4779 help_list.Pass all_commands, not -1, to help_list.
4780 * cli/cli-dump.c (dump_command, append_command)
4781 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4782 (binary_dump_command, binary_append_command): Pass all_commands,
4783 not -1, to help_list.
4784 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4785 -1, to help_list.
4786 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4787 -1, to help_list.
4788 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4789 help_list.
4790 * top.c (set_history): Pass all_commands, not -1, to help_list.
4791 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4792 all_commands, not -1, to help_list.
4793 * symfile.c (overlay_command): Pass all_commands, not -1, to
4794 help_list.
4795 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4796 help_list.
4797 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4798 help_list.
4799 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4800 -1, to help_list.
4801 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4802 not -1, to help_list.
4803 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4804 not -1, to help_list.
4805 * maint.c (maintenance_command, maintenance_info_command)
4806 (maintenance_print_command, maintenance_set_cmd): Pass
4807 all_commands, not -1, to help_list.
4808 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4809 help_list.
4810 * language.c (set_check): Pass all_commands, not -1, to help_list.
4811 * infcmd.c (unset_command): Pass all_commands, not -1, to
4812 help_list.
4813 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4814 help_list.
4815 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4816 help_list.
4817 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4818 help_list.
4819 * breakpoint.c (save_command): Pass all_commands, not -1, to
4820 help_list.
4821 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4822 all_commands, not -1, to help_list.
4823
b94ade42
PL
48242014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4825
4826 * regcache.c (struct register_to_invalidate): New structure.
4827 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4828 functions.
4829 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4830
31f628ae
YQ
48312014-06-12 Yao Qi <yao@codesourcery.com>
4832
4833 * varobj.c (varobj_get_num_children): Call
4834 varobj_is_dynamic_p.
4835 (varobj_list_children): Likewise.
4836 (varobj_update): Likewise. Update comments.
4837
cde5ef40
YQ
48382014-06-12 Yao Qi <yao@codesourcery.com>
4839
4840 * varobj.c (varobj_pretty_printed_p): Rename to ...
4841 (varobj_is_dynamic_p): ... this. New function.
4842 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4843 (varobj_is_dynamic_p): Declare.
4844 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4845 (mi_print_value_p, varobj_update_one): Likewise.
4846
576ea091
YQ
48472014-06-12 Pedro Alves <pedro@codesourcery.com>
4848 Yao Qi <yao@codesourcery.com>
4849
4850 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4851 (varobj_get_iterator): Wrap up code for pretty-printer by
4852 "#if HAVE_PYTHON" and "#endif".
4853 (update_dynamic_varobj_children): Likewise.
4854
827f100c
YQ
48552014-06-12 Pedro Alves <pedro@codesourcery.com>
4856 Yao Qi <yao@codesourcery.com>
4857
4858 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4859 gdb_python_initialized is false. Move some code from varobj.c.
4860 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4861 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4862 (struct varobj_item): Moved to varobj-iter.h".
4863 (varobj_clear_saved_item): New function.
4864 (update_dynamic_varobj_children): Move python-related code to
4865 py-varobj.c.
4866 (free_variable): Call varobj_clear_saved_item and
4867 varobj_iter_delete.
4868
e5250216
YQ
48692014-06-12 Pedro Alves <pedro@codesourcery.com>
4870 Yao Qi <yao@codesourcery.com>
4871
4872 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4873 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4874 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4875 (py-varobj.o): New rule.
4876 * python/py-varobj.c: New file.
4877 * python/python-internal.h (py_varobj_get_iterator): Declare.
4878 * varobj-iter.h: New file.
4879 * varobj.c: Include "varobj-iter.h"
4880 (struct varobj) <child_iter>: Change its type from "PyObject *"
4881 to "struct varobj_iter *".
4882 <saved_item>: Likewise.
4883 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4884 [HAVE_PYTHON] (varobj_get_iterator): New function.
4885 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4886 python-specific code to python/py-varobj.c.
4887 (install_visualizer): Call varobj_iter_delete instead of
4888 Py_XDECREF.
4889 * varobj.h (varobj_ensure_python_env): Declare.
4890
5a2e0d6e
YQ
48912014-06-12 Yao Qi <yao@codesourcery.com>
4892
4893 * varobj.c (struct varobj_item): New structure.
4894 (create_child_with_value): Update declaration.
4895 (varobj_add_child): Replace arguments 'name' and 'value' with
4896 'item'. All callers updated.
4897 (install_dynamic_child): Likewise.
4898 (update_dynamic_varobj_children): Likewise.
4899 (varobj_add_child): Likewise.
4900 (create_child_with_value): Likewise.
4901
919b9a93
JB
49022014-06-11 Joel Brobecker <brobecker@adacore.com>
4903
4904 * NEWS: Create a new section for the next release branch.
4905 Rename the section of the current branch, now that it has
4906 been cut.
4907
71a55bdf
JB
49082014-06-11 Joel Brobecker <brobecker@adacore.com>
4909
4910 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4911 * version.in: Bump version to 7.8.50.DATE-cvs.
4912
364fe1f7
PA
49132014-06-11 Pedro Alves <palves@redhat.com>
4914
4915 PR remote/17028
4916 * ser-mingw.c (net_windows_socket_check_pending): New function.
4917 (net_windows_select_thread): Ignore spurious wakeups. Use
4918 net_windows_socket_check_pending.
4919 (net_windows_wait_handle): Check for pending events with
4920 ioctlsocket, through net_windows_socket_check_pending, instead of
4921 checking the socket's event.
4922
5a6c7709
SC
49232014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4924
4925 * python/python-internal.h (gdb_PyObject_GetAttrString)
4926 (gdb_PyObject_HasAttrString): New inline function definitions.
4927 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4928 char * of the second argument to PyObject_GetAttrString.
74228e77 4929
0e58ee40
JB
49302014-06-10 Joel Brobecker <brobecker@adacore.com>
4931
4932 * serial.c (serial_write): Fix index of character to be printed
4933 in call to serial_logchar when serial debug traces are enabled.
4934
d190df30
JB
49352014-06-10 Joel Brobecker <brobecker@adacore.com>
4936
4937 * gdbtypes (resolve_dynamic_range): Add function description.
4938
b4b01d36
PA
49392014-06-09 Pedro Alves <palves@redhat.com>
4940
4941 * linux-nat.c (linux_child_follow_fork): Initialize status with
4942 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4943 inner block. Only pass the signal to PTRACE_DETACH if in pass
4944 state.
4945
3657956b
GB
49462014-06-09 Gary Benson <gbenson@redhat.com>
4947
4948 * common/signals.c (gdb_signal_from_host): Reorder to separate
4949 the always-available ANSI-standard signals from the signals that
4950 require checking.
4951 (do_gdb_signal_to_host): Likewise.
4952 * proc-events.c (signal_table): Likewise.
4953
c077881a
HZ
49542014-06-08 Hui Zhu <hui@codesourcery.com>
4955
4956 * common/linux-ptrace.c (linux_disable_event_reporting): New
4957 function.
4958 * common/linux-ptrace.h (linux_disable_event_reporting): New
4959 declaration.
4960 * linux-nat.c (linux_child_follow_fork): Do a single step before
4961 detach.
4962
4186eb54
KS
49632014-06-07 Keith Seitz <keiths@redhat.com>
4964
4965 Revert:
4966 PR c++/16253
4967 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4968 from symbol_matches_domain in symtab.c. All local callers
4969 of symbol_matches_domain updated.
4970 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4971 search STRUCT_DOMAIN.
4972 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4973 independently. standard_lookup will do that automatically.
4974 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4975 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4976 (cp_lookup_symbol_in_namespace): Likewise.
4977 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4978 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4979 may return a STRUCT_DOMAIN match.
4980 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4981 * cp-support.c: Include language.h.
4982 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4983 VAR_DOMAIN.
4984 * psymtab.c (match_partial_symbol): Compare the requested
4985 domain with the symbol's domain directly.
4986 (lookup_partial_symbol): Likewise.
4987 * symtab.c (lookup_symbol_in_language): Explain when/why
4988 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4989 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4990 appropriate languages.
4991 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4992 and moved to ada-lang.c
4993 (lookup_block_symbol): Explain that this function only returns
4994 symbol matching the requested DOMAIN.
4995 Compare the requested domain with the symbol's domain directly.
4996 (iterate_over_symbols): Compare the requested domain with the
4997 symbol's domain directly.
4998 * symtab.h (symbol_matches_domain): Remove.
4999
25326a28 50002014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5001
5002 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5003 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5004 (gdbscm_guile_version_is_at_least): Declare.
5005 (gdbscm_scm_string_to_int): Declare.
5006 * guile/guile.c (gdbscm_guile_major_version): New global.
5007 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5008 (guile_datadir): New static global.
5009 (gdbscm_guile_data_directory): New function.
5010 (initialize_scheme_side): Update.
5011 (misc_guile_functions): Add guile-data-directory.
5012 (initialize_gdb_module): Fetch guile version number.
5013 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5014 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5015 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5016 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5017 comments.
5018 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5019 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5020 * guile/scm-value.c (gdbscm_value_to_string): Only call
5021 scm_port_conversion_strategy if Guile version >= 2.0.6.
5022
0a770bb2 50232014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5024
5025 * main.c (print_gdb_help): Add -q and --silent.
5026
73ba372c
GB
50272014-06-06 Gary Benson <gbenson@redhat.com>
5028
5029 * common/signals.c: Remove preprocessor conditionals for
5030 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5031 SIGSEGV and SIGTERM.
5032 * proc-events.c: Likewise.
5033
c33b2f12
MM
50342014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5035
5036 * symfile.c (symfile_free_objfile): Remove restriction to
5037 OBJF_USERLOADED.
5038 * symfile-mem.c (symbol_file_add_from_memory): Call
5039 add_target_sections_of_objfile.
5040
fb934770
LC
50412014-06-05 Ludovic Courtès <ludo@gnu.org>
5042
5043 * guile/scm-value.c (gdbscm_history_append_x): Use
5044 'vlscm_get_value_smob_arg_unsafe' instead of
5045 'vlscm_scm_to_value'.
5046
6ef284bd
SM
50472014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5048
5049 PR mi/15806
5050 * utils.c (printchar): Don't escape at all if quoter is NUL.
5051 Update function documentation to clarify effect of parameter
5052 QUOTER.
5053 * remote.c (escape_buffer): Pass '\\' as the quoter to
5054 fputstrn_unfiltered.
5055 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5056 generate the output.
5057 (mi_solib_unloaded): Same.
5058
270c9937
JB
50592014-06-05 Joel Brobecker <brobecker@adacore.com>
5060
5061 * development.sh: Delete.
5062 * Makefile.in (config.status): Adjust dependency on development.sh.
5063 * configure.ac: Adjust development.sh source call.
5064 * configure: Regenerate.
5065
16f691fb
DE
50662014-06-04 Doug Evans <xdje42@gmail.com>
5067
5068 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5069 is_scheme_bkpt, spec.
5070 (bpscm_make_breakpoint_smob): Initialize new members.
5071 (gdbscm_create_breakpoint_x): Split into two ...
5072 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5073 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5074 (scheme_function breakpoint_functions): Update.
5075 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5076 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5077 register-breakpoint!.
5078
ef7cab6b
JB
50792014-06-04 Joel Brobecker <brobecker@adacorer.com>
5080
5081 PR server/17023
5082 * mem-break.c (z_type_supported): Return zero if
5083 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5084
012370f6
TT
50852014-06-04 Tom Tromey <tromey@redhat.com>
5086
5087 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5088 value_from_contents_and_address_unresolved.
5089 (ada_template_to_fixed_record_type_1): Likewise.
5090 (ada_which_variant_applies): Likewise.
5091 * value.h (value_from_contents_and_address_unresolved): Declare.
5092 * value.c (value_from_contents_and_address_unresolved): New
5093 function.
5094 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5095 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5096 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5097
92e2a17f
TT
50982014-06-04 Tom Tromey <tromey@redhat.com>
5099
5100 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5101
c0939df1
TT
51022014-06-04 Tom Tromey <tromey@redhat.com>
5103
5104 * procfs.c (procfs_attach): Make "args" const.
5105 * windows-nat.c (windows_attach): Make "args" const.
5106 * nto-procfs.c (procfs_attach): Make "args" const.
5107 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5108 * go32-nat.c (go32_attach): Make "args" const.
5109 * gnu-nat.c (gnu_attach): Make "args" const.
5110 * darwin-nat.c (darwin_attach): Make "args" const.
5111 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5112 * linux-nat.c (linux_nat_attach): Make "args" const.
5113 * remote.c (extended_remote_attach_1, extended_remote_attach):
5114 Make "args" const.
5115 * target.h (struct target_ops) <to_attach>: Make "args" const.
5116 (find_default_attach): Likewise.
5117 * utils.c (parse_pid_to_attach): Make "args" const.
5118 * utils.h (parse_pid_to_attach): Update.
5119
8eaff7cd
TT
51202014-06-04 Tom Tromey <tromey@redhat.com>
5121
5122 * target-delegates.c: Rebuild.
5123 * target.c (default_thread_address_space): New function.
5124 (target_thread_address_space): Simplify.
5125 * target.h (struct target_ops) <to_thread_address_space>: Add
5126 TARGET_DEFAULT_FUNC.
5127
1913f160
DE
51282014-06-04 Doug Evans <xdje42@gmail.com>
5129
5130 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5131
70ad5bff
MM
51322014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5133
5134 * record-btrace.c: Include event-loop.h and inf-loop.h.
5135 (record_btrace_resume_exec_dir)
5136 (record_btrace_async_inferior_event_handler)
5137 (record_btrace_handle_async_inferior_event): New.
5138 (record_btrace_open): Create async event handler.
5139 (record_btrace_close): Delete async event handler.
5140 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5141 Mark async event handler.
5142 (record_btrace_execution_direction): New.
5143 (init_record_btrace_ops): Initialize to_execution_direction.
5144
b6210538
DE
51452014-06-03 Doug Evans <xdje42@gmail.com>
5146
5147 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5148 (gdbscm_make_parameter): Ditto.
5149
a5b1fd27
DE
51502014-06-03 Doug Evans <dje@google.com>
5151
5152 * exec.c (exec_close_1): Call clear_section_table instead of
5153 resize_section_table.
5154 (clear_section_table): New function.
5155 (resize_section_table): Make static. Rename arg num_added to
5156 adjustment.
5157 * exec.h (clear_section_table): Declare.
5158 (resize_section_table): Delete.
5159 * progspace.c (release_program_space): Call clear_section_table
5160 instead of resize_section_table.
5161
0c6e92a5
SC
51622014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5163
5164 * NEWS (Python Scripting): Add entry about the new xmethods
5165 feature.
5166
883964a7
SC
51672014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5168
5169 * python/py-xmethods.c: New file.
5170 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5171 (objfpy_dealloc): XDECREF on the new xmethods field.
5172 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5173 field.
5174 (objfpy_get_xmethods): New function.
5175 (objfile_getset): New entry 'xmethods'.
5176 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5177 (pspy_dealloc): XDECREF on the new xmethods field.
5178 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5179 field.
5180 (pspy_get_xmethods): New function.
5181 (pspace_getset): New entry 'xmethods'.
5182 * python/python-internal.h: Add declarations for new functions.
5183 * python/python.c (_initialize_python): Invoke
5184 gdbpy_initialize_xmethods.
5185 * python/lib/gdb/__init__.py (xmethods): New
5186 attribute.
5187 * python/lib/gdb/xmethod.py: New file.
5188 * python/lib/gdb/command/xmethods.py: New file.
5189
58992dc5
SC
51902014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5191
5192 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5193 best match method returned by find_overload_match is an xmethod.
5194 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5195 the best matching operator returned by find_overload_match is an
5196 xmethod.
5197 * valops.c: #include "extension.h".
5198 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5199 Return void. The list of matching source methods is returned in
5200 "fn_list" and a vector of matching debug method workers is
5201 returned in "xm_worker_vec". Update all callers.
5202 (value_find_oload_method_list): Likewise.
5203 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5204 non-NULL, then the index of the best matching method in this
5205 vector is returned. Update all callers.
5206 (find_overload_match): Include xmethods while performing overload
5207 resolution.
5208
e81e7f5e
SC
52092014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5210
5211 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5212 * extension-priv.h (struct extension_language_ops): Add the
5213 xmethod interface.
5214 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5215 get_matching_xmethod_workers, get_xmethod_argtypes,
5216 invoke_xmethod, free_xmethod_worker,
5217 free_xmethod_worker_vec): New functions.
5218 * extension.h: #include "common/vec.h".
5219 New function declarations.
5220 (struct xmethod_worker): New struct.
5221 (VEC (xmethod_worker_ptr)): New vector type.
5222 (xmethod_worker_ptr): New typedef.
5223 (xmethod_worker_vec): Likewise.
5224 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5225 builtin_type.
5226 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5227 (struct builtin_type): New field "xmethod".
5228 * valarith.c (value_ptradd): Assert that the value argument is not
5229 lval_xcallable.
5230 * valops.c (value_must_coerce_to_target): Return 0 for
5231 lval_xcallable values.
5232 * value.c (struct value): New field XM_WORKER in the field
5233 LOCATION.
5234 (value_address, value_raw_address): Return 0 for lval_xcallable
5235 values.
5236 (set_value_address): Assert that the value is not an
5237 lval_xcallable.
5238 (value_free): Free the associated xmethod worker when freeing
5239 lval_xcallable values.
5240 (set_value_component_location): Assert that the WHOLE value is not
5241 lval_xcallable.
5242 (value_of_xmethod, call_xmethod): New functions.
5243 * value.h: Declare "struct xmethod_worker".
5244 Declare new functions value_of_xmethod, call_xmethod.
5245
ef370185
JB
52462014-06-03 Joel Brobecker <brobecker@adacore.com>
5247 Pedro Alves <palves@redhat.com>
5248
5249 PR breakpoints/17000
5250 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5251 New function, extracted from software_breakpoint_inserted_here_p.
5252 (software_breakpoint_inserted_here_p): Replace factored out code
5253 by call to find_non_raw_software_breakpoint_inserted_here.
5254 (bp_target_info_copy_insertion_state): New function.
5255 (bkpt_insert_location): Handle the case of a single-step
5256 breakpoint already inserted at the same address.
5257 (bkpt_remove_location): Handle the case of a single-step
5258 breakpoint still inserted at the same address.
5259 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5260 breakpoint already inserted at the same address.
5261 (deprecated_remove_raw_breakpoint): Handle the case of a
5262 non-raw breakpoint still inserted at the same address.
5263 (find_single_step_breakpoint): New function, extracted from
5264 single_step_breakpoint_inserted_here_p.
5265 (find_single_step_breakpoint): New function,
5266 factored out from single_step_breakpoint_inserted_here_p.
5267 (single_step_breakpoint_inserted_here_p): Reimplement.
5268
1e2ccb61
BM
52692014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5270
5271 Pushed by Joel Brobecker <brobecker@adacore.com>
5272 * source.c (show_substitute_path_command): Fix display of matching
5273 substitution rules.
5274
d3448d85
GB
52752014-06-03 Gary Benson <gbenson@redhat.com>
5276
5277 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5278
06eb1586
DE
52792014-06-02 Doug Evans <xdje42@gmail.com>
5280
5281 Add parameter support for Guile.
5282 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5283 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5284 (scm-param.o): New rule.
5285 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5286 (gdbscm_misc_error): Declare.
5287 (gdbscm_canonicalize_command_name): Declare.
5288 (gdbscm_scm_to_host_string): Declare.
5289 (gdbscm_scm_from_host_string): Declare.
5290 (gdbscm_initialize_parameters): Declare.
5291 * guile/guile.c (initialize_gdb_module): Call
5292 gdbscm_initialize_parameters.
5293 * guile/lib/gdb.scm: Export parameter symbols.
5294 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5295 cmdscm_canonicalize_name and made public. All callers updated.
5296 * guile/scm-exception.c (gdbscm_misc_error): New function.
5297 * guile/scm-param.c: New file.
5298 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5299 (gdbscm_scm_to_host_string): New function.
5300 (gdbscm_scm_from_host_string): New function.
5301 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5302
e698b8c4
DE
53032014-06-02 Doug Evans <xdje42@gmail.com>
5304
5305 Add command support for Guile.
5306 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5307 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5308 (scm-cmd.o): New rule.
5309 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5310 (gdbscm_user_error_p): Declare.
5311 (gdbscm_parse_command_name): Declare.
5312 (gdbscm_valid_command_class_p): Declare.
5313 (gdbscm_initialize_commands): Declare.
5314 * guile/guile.c (initialize_gdb_module): Call
5315 gdbscm_initialize_commands.
5316 * guile/lib/gdb.scm: Export command symbols.
5317 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5318 (throw-user-error): New function.
5319 * guile/scm-cmd.c: New file.
5320 * guile/scm-exception.c (user_error_symbol): New static global.
5321 (gdbscm_user_error_p): New function.
5322 (gdbscm_initialize_exceptions): Set user_error_symbol.
5323 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5324
fb1f94b0
PM
53252014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5326
5327 * top.c (command_loop): Handle comments here...
5328 (command_line_input): ... not here.
5329
ded03782
DE
53302014-06-02 Doug Evans <xdje42@gmail.com>
5331
5332 Add progspace support for Guile.
5333 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5334 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5335 (scm-progspace.o): New rule.
5336 * guile/guile-internal.h (pspace_smob): New typedef.
5337 (psscm_pspace_smob_pretty_printers): Declare.
5338 (psscm_pspace_smob_from_pspace): Declare.
5339 (psscm_scm_from_pspace): Declare.
5340 * guile/guile.c (initialize_gdb_module): Call
5341 gdbscm_initialize_pspaces.
5342 * guile/lib/gdb.scm: Export progspace symbols.
5343 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5344 support.
5345 (append-pretty-printer!): Ditto.
5346 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5347 Implement.
5348 * guile/scm-progspace.c: New file.
5349
397998fc
AM
53502014-06-03 Alan Modra <amodra@gmail.com>
5351
5352 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5353 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5354
6aa5f3a6
DE
53552014-06-02 Doug Evans <dje@google.com>
5356
5357 Add support for skeletonless type units.
5358 * dwarf2read.c (struct dwarf2_per_objfile): New member
5359 n_allocated_type_units.
5360 (struct dwarf2_per_objfile) <tu_stats>: New member
5361 nr_all_type_units_reallocs.
5362 (create_signatured_type_table_from_index): Initialize
5363 n_allocated_type_units
5364 (create_all_type_units): Ditto.
5365 (add_type_unit): Move up in file. New arg slot.
5366 All callers updated. Increase space for all_type_units more
5367 efficiently.
5368 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5369 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5370 (lookup_dwp_signatured_type): Ditto.
5371 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5372 All callers updated.
5373 (build_type_psymtabs_1): Leave type_unit_groups as
5374 NULL if no TUs present.
5375 (print_tu_stats): New function.
5376 (process_skeletonless_type_unit): New function.
5377 (process_dwo_file_for_skeletonless_type_units): New
5378 function.
5379 (process_skeletonless_type_units): New function.
5380 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5381 Call print tu_stats if debugging enabled.
5382
41fac0cf
PA
53832014-06-02 Pedro Alves <palves@redhat.com>
5384
5385 * breakpoint.c (build_target_command_list): Don't build a command
5386 list if we have any duplicate location that isn't a dprintf.
5387
cd1608cc
PA
53882014-06-02 Pedro Alves <palves@redhat.com>
5389
5390 * breakpoint.c (dprintf_breakpoint_hit): New function.
5391 (initialize_breakpoint_ops): Install it as dprintf's
5392 breakpoint_hit method.
5393
486ef3b9
JB
53942014-06-02 Joel Brobecker <brobecker@adacore.com>
5395
5396 * source.c (substitute_path_rule_matches): Simplify using
5397 filename_ncmp instead of FILENAME_CMP.
5398
230cd560
JB
53992014-06-02 Joel Brobecker <brobecker@adacore.com>
5400
5401 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5402
16954d5d
LC
54032014-06-01 Ludovic Courtès <ludo@gnu.org>
5404
5405 * configure.ac: When Guile is available, check for the
5406 availability of 'scm_new_smob'.
5407 * configure, config.h.in: Regenerate.
5408 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5409 function.
5410
53e8a631
AB
54112014-05-30 Andrew Burgess <aburgess@broadcom.com>
5412
5413 * frame.c (struct frame_info): Add stop_string field.
5414 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5415 (get_prev_frame_always): Old content moved into
5416 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5417 TRY_CATCH, handle MEMORY_ERROR exceptions.
5418 (frame_stop_reason_string): New function definition.
5419 * frame.h (unwind_stop_reason_to_string): Extend comment to
5420 mention frame_stop_reason_string.
5421 (frame_stop_reason_string): New function declaration.
5422 * stack.c (frame_info): Switch to frame_stop_reason_string.
5423 (backtrace_command_1): Switch to frame_stop_reason_string.
5424 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5425 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5426 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5427
70e38b8e
AB
54282014-05-30 Andrew Burgess <aburgess@broadcom.com>
5429
5430 * frame.c (frame_stop_reason_string): Rename to ...
5431 (unwind_stop_reason_to_string): this.
5432 * frame.h (frame_stop_reason_string): Rename to ...
5433 (unwind_stop_reason_to_string): this.
5434 * stack.c (frame_info): Update call to frame_stop_reason_string.
5435 (backtrace_command_1): Likewise.
5436 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5437 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5438
938f0e2f
AB
54392014-05-30 Andrew Burgess <aburgess@broadcom.com>
5440
5441 * frame.c (remove_prev_frame): New function.
5442 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5443 remove_prev_frame.
5444
a09dd441
PA
54452014-05-29 Pedro Alves <palves@redhat.com>
5446
5447 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5448 and make it const. When a single-step decays to a continue,
5449 clear 'step', not 'hw_step'. Pass whether the caller wanted
5450 to step to user_visible_resume_ptid, not what we ask the
5451 target to do.
5452
bdc36728
PA
54532014-05-29 Pedro Alves <palves@redhat.com>
5454
5455 * infrun.c (process_event_stop_test, handle_step_into_function)
5456 (handle_step_into_function_backward): Adjust.
5457 Don't set the even thread's stop_step and call stop_waiting before
5458 calling end_stepping_range. Instead do that ...
5459 (end_stepping_range): ... here. Take an ecs pointer parameter.
5460
22bcd14b
PA
54612014-05-29 Pedro Alves <palves@redhat.com>
5462
5463 * infrun.c (stop_stepping): Rename to ...
5464 (stop_waiting): ... this.
5465 (proceed): Update comment.
5466 (process_event_stop_test, handle_inferior_event)
5467 (handle_signal_stop, handle_step_into_function)
5468 (handle_step_into_function_backward): Update.
5469
4ae57c05
PA
54702014-05-29 Pedro Alves <palves@redhat.com>
5471
5472 * infcall.c (run_inferior_call): Don't check whether the current
5473 thread is running after the proceed call.
5474
329ea579
PA
54752014-05-29 Pedro Alves <palves@redhat.com>
5476 Tom Tromey <tromey@redhat.com>
5477
5478 * NEWS: Mention "maint set target-async", "set mi-async", and that
5479 background execution commands are now always available.
5480 * target.h (target_async_permitted): Update comment.
5481 * target.c (target_async_permitted, target_async_permitted_1):
5482 Default to 1.
5483 (set_target_async_command): Rename to ...
5484 (maint_set_target_async_command): ... this.
5485 (show_target_async_command): Rename to ...
5486 (maint_show_target_async_command): ... this.
5487 (_initialize_target): Adjust.
5488 * infcmd.c (prepare_execution_command): Make extern.
5489 * inferior.h (prepare_execution_command): Declare.
5490 * infrun.c (set_observer_mode): Leave target async alone.
5491 * mi/mi-interp.c (mi_interpreter_init): Install
5492 mi_on_sync_execution_done as sync_execution_done observer.
5493 (mi_on_sync_execution_done): New function.
5494 (mi_execute_command_input_handler): Don't print the prompt if we
5495 just started a synchronous command with an async target.
5496 (mi_on_resume): Check sync_execution before printing prompt.
5497 * mi/mi-main.h (mi_async_p): Declare.
5498 * mi/mi-main.c: Include gdbcmd.h.
5499 (mi_async_p): New function.
5500 (mi_async, mi_async_1): New globals.
5501 (set_mi_async_command, show_mi_async_command, mi_async): New
5502 functions.
5503 (exec_continue): Call prepare_execution_command.
5504 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5505 (mi_execute_async_cli_command): Use mi_async_p.
5506 (_initialize_mi_main): Install "set mi-async". Make
5507 "target-async" a deprecated alias.
5508
92bcb5f9
PA
55092014-05-29 Pedro Alves <palves@redhat.com>
5510
5511 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5512 (_initialize_cli_interp): Adjust.
5513 * event-loop.c: Include "observer.h".
5514 (start_event_loop): Notify 'command_error' observers instead of
5515 calling display_gdb_prompt. Remove FIXME comment.
5516 * event-top.c (display_gdb_prompt): Remove call into the
5517 interpreters.
5518 * inf-loop.c: Include "observer.h".
5519 (inferior_event_handler): Notify 'command_error' observers instead
5520 of calling display_gdb_prompt.
5521 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5522 observers instead of calling display_gdb_prompt.
5523 * interps.c (interp_set): Don't call display_gdb_prompt.
5524 (current_interp_display_prompt_p): Delete.
5525 * interps.h (interp_prompt_p): Delete declaration.
5526 (interp_prompt_p_ftype): Delete.
5527 (struct interp_procs) <prompt_proc_p>: Delete field.
5528 (current_interp_display_prompt_p): Delete declaration.
5529 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5530 (_initialize_mi_interp): Adjust.
5531 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5532 'command_error' observers.
5533 (tui_on_sync_execution_done, tui_on_command_error): New
5534 functions.
5535 (tui_display_prompt_p): Delete.
5536 (_initialize_tui_interp): Adjust.
5537
fd664c91
PA
55382014-05-29 Pedro Alves <palves@redhat.com>
5539
5540 PR gdb/13860
5541 * cli/cli-interp.c: Include infrun.h and observer.h.
5542 (cli_uiout, cli_interp): New globals.
5543 (cli_on_signal_received, cli_on_end_stepping_range)
5544 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5545 functions.
5546 (cli_interpreter_init): Install them as 'end_stepping_range',
5547 'signal_received' 'signal_exited', 'exited' and 'no_history'
5548 observers.
5549 (_initialize_cli_interp): Remove cli_interp local.
5550 * infrun.c (handle_inferior_event): Call the several stop reason
5551 observers instead of printing the stop reason directly.
5552 (end_stepping_range): New function.
5553 (print_end_stepping_range_reason, print_signal_exited_reason)
5554 (print_exited_reason, print_signal_received_reason)
5555 (print_no_history_reason): Make static, and add an uiout
5556 parameter. Print to that instead of to CURRENT_UIOUT.
5557 * infrun.h (print_end_stepping_range_reason)
5558 (print_signal_exited_reason, print_exited_reason)
5559 (print_signal_received_reason print_no_history_reason): New
5560 declarations.
5561 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5562 'mi_uiout'.
5563 <cli_uiout>: New field.
5564 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5565 uiout for CLI output. Install 'signal_received',
5566 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5567 observers.
5568 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5569 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5570 (mi_on_no_history): New functions.
5571 (ui_out_free_cleanup): Delete function.
5572 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5573 instead use the one already stored in the MI interpreter data.
5574 (mi_ui_out): Adjust.
5575 * tui/tui-interp.c: Include infrun.h and observer.h.
5576 (tui_interp): New global.
5577 (tui_on_signal_received, tui_on_end_stepping_range)
5578 (tui_on_signal_exited, tui_on_exited)
5579 (tui_on_no_history): New functions.
5580 (tui_init): Install them as 'end_stepping_range',
5581 'signal_received' 'signal_exited', 'exited' and 'no_history'
5582 observers.
5583 (_initialize_tui_interp): Delete tui_interp local.
5584
8817a6f2
PA
55852014-05-29 Pedro Alves <palves@redhat.com>
5586
5587 PR gdb/15713
5588 * linux-nat.c (linux_nat_resume_callback): Rename the second
5589 parameter to 'except'. Skip LP if it points to EXCEPT.
5590 (linux_nat_resume): Don't mark the event lwp as not stopped
5591 before resuming sibling lwps. Instead ask
5592 linux_nat_resume_callback to skip the event lwp. Mark it as not
5593 stopped after actually resuming it.
5594 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5595 resuming it.
5596 (wait_lwp): Mark the lwp as stopped here.
5597 (stop_wait_callback): Mark the lwp as not stopped right after
5598 resuming it. Don't mark lwps as stopped here.
5599 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5600 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5601
251bde03
PA
56022014-05-29 Pedro Alves <palves@redhat.com>
5603
5604 PR PR15693
5605 * infrun.c (resume): Determine how much to resume depending on
5606 whether the caller wanted a step, not whether we can hardware step
5607 the target. Mark all threads that we intend to run as running,
5608 unless we're calling an inferior function.
5609 (normal_stop): If the thread is running an infcall, don't finish
5610 thread state.
5611 * target.c (target_resume): Don't mark threads as running here.
5612
7f3c0343
JB
56132014-05-28 Joel Brobecker <brobecker@adacore.com>
5614
5615 * serial.c (_initialize_serial): Remove support for
5616 the "set remotebaud" and "show remotebaud" commands.
5617 * NEWS: Add entry documenting the removal of that command.
5618
ee34b3f9
YQ
56192014-05-28 Yao Qi <yao@codesourcery.com>
5620
5621 * charset.c: Fix typo in comments.
5622
add6c04d
GB
56232014-05-27 Gary Benson <gbenson@redhat.com>
5624
5625 * utils.c (internal_vproblem): Prompt for a bug report.
5626
92c48fc5
AW
56272014-05-26 Andy Wingo <wingo@igalia.com>
5628
5629 * guile/scm-arch.c (arscm_mark_arch_smob):
5630 * guile/scm-block.c (bkscm_mark_block_smob)
5631 (bkscm_mark_block_syms_progress_smob):
5632 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5633 * guile/scm-exception.c (exscm_mark_exception_smob):
5634 * guile/scm-frame.c (frscm_mark_frame_smob):
5635 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5636 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5637 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5638 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5639 (ppscm_mark_pretty_printer_worker_smob):
5640 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5641 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5642 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5643 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5644 mark functions.
5645 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5646 function.
5647
b2715b27
AW
56482014-05-26 Andy Wingo <wingo@igalia.com>
5649 Doug Evans <xdje42@gmail.com>
5650
5651 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5652 empty_base_class. All uses updated.
5653 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5654 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5655 Adapt all callers.
5656 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5657 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5658 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5659 (gdbscm_gsmob_has_property_p, add_property_name)
5660 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5661 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5662 (gdb-object-has-property?, gdb-object-properties): Remove.
5663 (gdb-object-kind): Renamed from gsmob-kind.
5664
214ab2da
AW
56652014-05-26 Andy Wingo <wingo@igalia.com>
5666
5667 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5668 * configure: Regenerate.
5669
589fdceb
MM
56702014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5671
5672 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5673
67b5c0c1
MM
56742014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5675
5676 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5677 (replay_memory_access_read_only, replay_memory_access_read_write)
5678 (replay_memory_access_types, replay_memory_access)
5679 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5680 (cmd_set_record_btrace, cmd_show_record_btrace)
5681 (cmd_show_replay_memory_access): New.
5682 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5683 (record_btrace_remove_breakpoint): Replace
5684 record_btrace_allow_memory_access with replay_memory_access.
5685 (_initialize_record_btrace): Add commands.
5686 * NEWS: Announce it.
5687
036cd381
RR
56882014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5689
5690 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5691
c77c1e42
RR
56922014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5693
5694 * MAINTAINERS (Write After Approval): Move self back from
5695 paper trail.
5696
45741a9c
PA
56972014-05-22 Pedro Alves <palves@redhat.com>
5698
5699 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5700 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5701 (disable_randomization, enum exec_direction_kind)
5702 (execution_direction, stop_registers, start_remote)
5703 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5704 (wait_for_inferior, normal_stop, get_last_target_status)
5705 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5706 (insert_step_resume_breakpoint_at_sal)
5707 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5708 (set_step_info, print_stop_event, signal_stop_state)
5709 (signal_print_state, signal_pass_state, signal_stop_update)
5710 (signal_print_update, signal_pass_update)
5711 (update_signals_program_target, clear_exit_convenience_vars)
5712 (displaced_step_dump_bytes, update_observer_mode)
5713 (signal_catch_update, gdb_signal_from_command): Move
5714 declarations ...
5715 * infrun.h: ... to this new file.
5716 * amd64-tdep.c: Include infrun.h.
5717 * annotate.c: Include infrun.h.
5718 * arch-utils.c: Include infrun.h.
5719 * arm-linux-tdep.c: Include infrun.h.
5720 * arm-tdep.c: Include infrun.h.
5721 * break-catch-sig.c: Include infrun.h.
5722 * breakpoint.c: Include infrun.h.
5723 * common/agent.c: Include infrun.h instead of inferior.h.
5724 * corelow.c: Include infrun.h.
5725 * event-top.c: Include infrun.h.
5726 * go32-nat.c: Include infrun.h.
5727 * i386-tdep.c: Include infrun.h.
5728 * inf-loop.c: Include infrun.h.
5729 * infcall.c: Include infrun.h.
5730 * infcmd.c: Include infrun.h.
5731 * infrun.c: Include infrun.h.
5732 * linux-fork.c: Include infrun.h.
5733 * linux-nat.c: Include infrun.h.
5734 * linux-thread-db.c: Include infrun.h.
5735 * monitor.c: Include infrun.h.
5736 * nto-tdep.c: Include infrun.h.
5737 * procfs.c: Include infrun.h.
5738 * record-btrace.c: Include infrun.h.
5739 * record-full.c: Include infrun.h.
5740 * remote-m32r-sdi.c: Include infrun.h.
5741 * remote-mips.c: Include infrun.h.
5742 * remote-notif.c: Include infrun.h.
5743 * remote-sim.c: Include infrun.h.
5744 * remote.c: Include infrun.h.
5745 * reverse.c: Include infrun.h.
5746 * rs6000-tdep.c: Include infrun.h.
5747 * s390-linux-tdep.c: Include infrun.h.
5748 * solib-irix.c: Include infrun.h.
5749 * solib-osf.c: Include infrun.h.
5750 * solib-svr4.c: Include infrun.h.
5751 * target.c: Include infrun.h.
5752 * top.c: Include infrun.h.
5753 * windows-nat.c: Include infrun.h.
5754 * mi/mi-interp.c: Include infrun.h.
5755 * mi/mi-main.c: Include infrun.h.
5756 * python/py-threadevent.c: Include infrun.h.
5757
98eb56a4
PA
57582014-05-22 Pedro Alves <palves@redhat.com>
5759
5760 * infrun.c (handle_inferior_event): Store the exit code for
5761 --return-child-result here, instead of ...
5762 (print_exited_reason): ... here.
5763
17b2616c
PA
57642014-05-21 Pedro Alves <palves@redhat.com>
5765
5766 PR gdb/13860
5767 * gdbthread.h (struct thread_control_state): New field
5768 `command_interp'.
5769 * infrun.c (follow_fork): Copy the new thread control field to the
5770 child fork thread.
5771 (clear_proceed_status_thread): Clear the new thread control field.
5772 (proceed): Set the new thread control field.
5773 * interps.h (command_interp): Declare.
5774 * interps.c (command_interpreter): New global.
5775 (command_interp): New function.
5776 (interp_exec): Set `command_interpreter' while here.
5777 * cli-out.c (cli_uiout_dtor): New function.
5778 (cli_ui_out_impl): Install it.
5779 * mi/mi-interp.c: Include cli-out.h.
5780 (mi_cmd_interpreter_exec): Add comment.
5781 (restore_current_uiout_cleanup): New function.
5782 (ui_out_free_cleanup): New function.
5783 (mi_on_normal_stop): If finishing an execution command started by
5784 a CLI command, or any kind of breakpoint-like event triggered,
5785 print the stop event to the output (CLI) stream.
5786 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5787
5166082f
PA
57882014-05-21 Pedro Alves <palves@redhat.com>
5789
5790 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5791 current source line having changed.
5792 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5793 * infrun.c (normal_stop): Adjust call to
5794 set_current_sal_from_frame.
5795 * source.c (clear_lines_listed_range): New function.
5796 (set_current_source_symtab_and_line, identify_source_line): Clear
5797 the lines listed range.
5798 (line_info): Handle the first "info line" after the current source
5799 line having changed.
5800 * stack.c (print_stack_frame): Remove center handling.
5801 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5802 center sal.line.
5803
c1ee2fb3
PA
58042014-05-21 Pedro Alves <palves@redhat.com>
5805
5806 * inf-child.c (inf_child_mourn_inferior): New function.
5807 * inf-child.h (inf_child_mourn_inferior): New declaration.
5808 * darwin-nat.c (darwin_mourn_inferior): Use
5809 inf_child_mourn_inferior.
5810 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5811 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5812 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5813 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5814 * windows-nat.c (windows_mourn_inferior): Likewise.
5815
5c6d4fb2
DE
58162014-05-21 Doug Evans <xdje42@gmail.com>
5817
250748cb 5818 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5819
4a2722c5
DE
58202014-05-21 Doug Evans <xdje42@gmail.com>
5821
17292b30 5822 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5823 (gdbscm_out_of_range_error): Ditto.
5824 (gdbscm_memory_error): Ditto.
250748cb
DE
5825 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5826 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5827 (gdbscm_out_of_range_error): Update.
5828 (gdbscm_memory_error): Update.
5829 (gdbscm_scm_to_target_string_unsafe): Delete.
5830
6a3cb8e8
PA
58312014-05-21 Pedro Alves <palves@redhat.com>
5832
5833 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5834 globals.
5835 (inf_child_open_target): New function.
5836 (inf_child_open): Use inf_child_open_target to push the target
5837 instead of erroring out.
5838 (inf_child_disconnect, inf_child_close)
5839 (inf_child_maybe_unpush_target): New functions.
5840 (inf_child_target): Install inf_child_disconnect and
5841 inf_child_close. Store a pointer to the returned object.
5842 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5843 declarations.
5844 * target.c (auto_connect_native_target): New global.
5845 (show_default_run_target): New function.
5846 (find_default_run_target): Return NULL if automatically connecting
5847 to the native target is disabled.
5848 (_initialize_target): Install set/show auto-connect-native-target.
5849 * NEWS: Mention "set auto-connect-native-target", and "target
5850 native".
5851 * linux-nat.c (super_close): New global.
5852 (linux_nat_close): Call super_close.
5853 (linux_nat_add_target): Store a pointer to the base class's
5854 to_close method.
5855 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5856 inf_child_maybe_unpush.
5857 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5858 already pushed.
5859 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5860 the inferior. Use inf_child_maybe_unpush_target.
5861 (inf_ttrace_attach): Don't push the target if it is already
5862 pushed.
5863 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5864 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5865 after mourning the inferior. Use inf_child_maybe_unpush_target.
5866 (darwin_attach_pid): Don't push the target if it is already
5867 pushed.
5868 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5869 mourning the inferior. Use inf_child_maybe_unpush_target.
5870 (gnu_detach): Use inf_child_maybe_unpush_target.
5871 * go32-nat.c (go32_create_inferior): Don't push the target if it
5872 is already pushed.
5873 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5874 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5875 (procfs_open): Rename to ...
5876 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5877 comments. Can target_preopen before changing node. Call
5878 inf_child_open_target to push the target explicitly.
5879 (procfs_attach): Don't push the target if it is already pushed.
5880 (procfs_detach): Use inf_child_maybe_unpush_target.
5881 (procfs_create_inferior): Don't push the target if it is already
5882 pushed.
5883 (nto_native_ops): New global.
5884 (procfs_open): Reimplement.
5885 (procfs_native_open): New function.
5886 (init_procfs_targets): Install procfs_native_open as to_open of
5887 "target native". Store a pointer to the "native" target in
5888 nto_native_ops.
5889 * procfs.c (procfs_attach): Don't push the target if it is already
5890 pushed.
5891 (procfs_detach): Use inf_child_maybe_unpush_target.
5892 (procfs_mourn_inferior): Only unpush the target after mourning the
5893 inferior. Use inf_child_maybe_unpush_target.
5894 (procfs_init_inferior): Don't push the target if it is already
5895 pushed.
5896 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5897 if it is already pushed.
5898
930ee1b1
PA
58992014-05-21 Pedro Alves <palves@redhat.com>
5900
5901 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5902 and "procfs" targets are now called "native" instead.
5903
1f5d1b13
PA
59042014-05-21 Pedro Alves <palves@redhat.com>
5905
5906 * go32-nat.c (go32_open): Delete.
5907 (go32_target): Don't override the to_open method.
5908
132f8e03
PA
59092014-05-21 Pedro Alves <palves@redhat.com>
5910
5911 * nto-procfs.c (procfs_can_run): New function.
5912 (nto_procfs_ops): New global.
5913 (init_procfs_targets): New, based on procfs_target. Install
5914 "target native" in addition to "target procfs".
5915 (_initialize_procfs): Call init_procfs_targets instead of adding
5916 the target here.
5917
03c136c3
PA
59182014-05-21 Pedro Alves <palves@redhat.com>
5919
5920 * windows-nat.c (windows_target): Don't override to_shortname,
5921 to_longname or to_doc.
5922
a635d0f3
PA
59232014-05-21 Pedro Alves <palves@redhat.com>
5924
5925 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5926 to_doc.
5927
4f9b5133
PA
59282014-05-21 Pedro Alves <palves@redhat.com>
5929
5930 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5931 to_shortname, to_longname or to_doc.
5932
bc85afde
PA
59332014-05-21 Pedro Alves <palves@redhat.com>
5934
5935 * go32-nat.c (go32_target): Don't override to_shortname,
5936 to_longname or to_doc.
5937
4ebfc96e
PA
59382014-05-21 Pedro Alves <palves@redhat.com>
5939
5940 * inf-child.c (inf_child_open): Remove mention of "child".
5941 (inf_child_target): Rename target to "native" instead of "child".
5942
2648dfed
AA
59432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5944
5945 * Makefile.in (SFILES): Delete "regset.c".
5946 (COMMON_OBS): Delete "regset.o".
5947 * regset.c: Remove.
5948 * regset.h (regset_alloc): Delete prototype.
5949
b13feb94
AA
59502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5951
5952 * sparc-linux-tdep.c (sparc32_linux_gregset)
5953 (sparc32_linux_fpregset): New static regset structures.
5954 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5955 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5956 'fpregset' fields.
5957 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5958 (sparc64_linux_fpregset): New static regset structures.
5959 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5960 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5961 New static regset structures.
5962 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5963 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5964 New static regset structures.
5965 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5966 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5967 New static regset structures.
5968 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5969 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5970 New static regset structures.
5971 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5972
b4fd25c9
AA
59732014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5974
5975 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5976 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5977 register maps ("regmaps") from "*regset" to "*regmap". Do this
5978 for all regmap types and variables.
5979 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5980 (sparc32_linux_supply_core_gregset)
5981 (sparc32_linux_collect_core_gregset)
5982 (sparc32_linux_supply_core_fpregset)
5983 (sparc32_linux_collect_core_fpregset): Likewise.
5984 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5985 (sparc_gregmap, sparc_fpregmap): ... these.
5986 (sparc_supply_gregset, sparc_collect_gregset)
5987 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5988 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5989 (_initialize_sparc_nat): Rename regmaps.
5990 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5991 (sparc_gregmap, sparc_fpregmap): ... these.
5992 (sparc_supply_gregset, sparc_collect_gregset)
5993 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5994 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5995 Rename macros to...
5996 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5997 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5998 Likewise.
5999 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6000 Rename to...
6001 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6002 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6003 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6004 regmaps.
6005 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6006 (sparc32_bsd_fpregset): Rename to...
6007 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6008 (sparc32_bsd_fpregmap): ... these.
6009 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6010 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6011 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6012 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6013 (struct sparc_gregmap, struct sparc_fpregmap)
6014 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6015 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6016 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6017 (sparc32_supply_regset, sparc32_collect_gregset)
6018 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6019 prototypes.
6020 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6021 (sparc64_linux_ptrace_gregmap): ... this.
6022 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6023 (_initialize_sparc64_linux_nat): Rename regmaps.
6024 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6025 (sparc64_linux_core_gregmap): ... this.
6026 (sparc64_linux_supply_core_gregset)
6027 (sparc64_linux_collect_core_gregset)
6028 (sparc64_linux_supply_core_fpregset)
6029 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6030 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6031 (sparc64_sol2_fpregset): Rename to...
6032 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6033 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6034 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6035 regmaps.
6036 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6037 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6038 (sparc64_bsd_fpregset): Rename to...
6039 (struct sparc_gregmap, sparc64_sol2_gregmap)
6040 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6041 (sparc64_bsd_fpregmap): ... these.
6042 (sparc64_supply_gregset, sparc64_collect_gregset)
6043 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6044 prototypes.
6045 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6046 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6047 (sparc64fbsd_gregmap): ... this.
6048 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6049 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6050 Rename regmaps.
6051 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6052 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6053 (sparc64nbsd_collect_fpregset): Likewise.
6054 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6055 (sparc64nbsd_gregmap): ... this.
6056 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6057 regmaps.
6058 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6059 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6060 (sparc64obsd_gregmap): ... this.
6061 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6062 regmaps.
6063 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6064 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6065 (sparc32nbsd_gregmap): ... this.
6066 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6067 regmaps.
6068
8fea3224
AA
60692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6070
6071 * score-tdep.c (score7_linux_gregset): New static regset
6072 structure.
6073 (score7_linux_regset_from_core_section): Remove dynamic regset
6074 allocation.
6075 (score_gdbarch_init): Drop allocation of tdep structure.
6076 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6077
24534243
AA
60782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6079
6080 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6081 regset structures.
6082 (am33_regset_from_core_section): Remove dynamic regset
6083 allocations.
6084
b7195f27
AA
60852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6086
6087 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6088 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6089 structures.
6090 (mips_linux_regset_from_core_section): Remove dynamic regset
6091 allocations.
6092 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6093 'gregset64', 'fpregset', and 'fpregset64'.
6094 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6095 deleted tdep fields.
6096
ecc37a5a
AA
60972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6098
6099 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6100 regset structures.
6101 (amd64_regset_from_core_section): Remove dynamic regset
6102 allocations.
6103 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6104 structure.
6105 (amd64obsd_regset_from_core_section): Remove dynamic regset
6106 allocation.
6107 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6108 Likewise.
6109 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6110 x86-common regset supply function.
6111 * i386-tdep.c (i386_collect_gregset): Make static.
6112 (i386_gregset): New global regset structure.
6113 (i386_fpregset, i386_xstateregset): New static regset structures.
6114 (i386_regset_from_core_section): Remove dynamic regset
6115 allocations.
6116 (i386_gdbarch_init): Remove initialization of tdep fields
6117 'gregset', 'fpregset', and 'xstateregset'.
6118 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6119 'fpregset', and 'xstateregset'.
6120 (i386_collect_gregset): Remove prototype.
6121 (i386_gregset): New declaration.
6122 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6123 structure.
6124 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6125 allocation.
6126
b7611c43
AA
61272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6128
6129 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6130 (arm_linux_vfpregset): New static regset structures.
6131 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6132 regset structures.
6133 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6134 and 'vfpregset' fields.
6135
a069a2bd
AA
61362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6137
6138 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6139 (aarch64_linux_fpregset): New static regset structures.
6140 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6141 of regset structures.
6142 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6143 'fpregset' fields.
6144
09424cff
AA
61452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6146
6147 * regset.h (struct regset): Remove gdbarch field.
6148 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6149 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6150 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6151 Likewise.
6152 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6153 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6154 (ppc32_linux_vsxregset): Likewise.
6155 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6156 via the regcache instead of the regset.
6157 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6158 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6159 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6160 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6161 Likewise.
6162
3ca7dae4
AA
61632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6164
6165 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6166 Constify structures.
6167 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6168 (alphanbsd_aout_gregset): Likewise.
6169 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6170 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6171 Likewise.
6172 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6173 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6174 Likewise.
6175 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6176 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6177 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6178 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6179 * m88k-tdep.c (m88k_gregset): Likewise.
6180 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6181 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6182 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6183 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6184 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6185 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6186 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6187 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6188 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6189 Likewise.
6190 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6191 * sh-tdep.h (sh_corefile_gregset): Likewise.
6192 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6193 * vax-tdep.c (vax_gregset): Likewise.
6194
5876f503
JK
61952014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6196
6197 Fix TLS access for -static -pthread.
6198 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6199 (try_thread_db_load_1): Initialize it.
6200 (thread_db_get_thread_local_address): Call it if LM is zero.
6201 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6202 * target.h (struct target_ops) (to_get_thread_local_address): Add
6203 load_module_addr comment.
6204
0256a6ac
PA
62052014-05-21 Pedro Alves <palves@redhat.com>
6206
6207 * dcache.c (dcache_read_memory_partial): If reading the cache line
6208 fails, fallback to reading just the memory the caller wanted.
6209
227533ac
DE
62102014-05-20 Doug Evans <dje@google.com>
6211
6212 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6213 instead of get_current_arch.
6214
936d2992
PA
62152014-05-20 Pedro Alves <palves@redhat.com>
6216
6217 * NEWS: Mention that compare-sections now works with all targets.
6218
6219 * remote.c (PACKET_qCRC): New enum value.
6220 (remote_verify_memory): Don't send qCRC if the target has no
6221 execution. Use packet_support/packet_ok. If the target doesn't
6222 support the qCRC packet, fallback to a deep memory copy.
6223 (compare_sections_command): Say "target image" instead of "remote
6224 executable".
6225 (_initialize_remote): Add PACKET_qCRC to the list of config
6226 packets that have no associated command. Extend comment.
6227 * target.c (simple_verify_memory, default_verify_memory): New
6228 function.
6229 * target.h (struct target_ops) <to_verify_memory>: Default to
6230 default_verify_memory.
6231 (simple_verify_memory): New declaration.
6232 * target-delegates.c: Regenerate.
6233
e59fa00f
MM
62342014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6235
6236 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6237
f2205de0
HZ
62382014-05-20 Hui Zhu <hui@codesourcery.com>
6239 Yao Qi <yao@codesourcery.com>
6240
6241 PR backtrace/16558
6242 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6243 and change address of sp and pc.
6244
c4e54771
TT
62452014-05-19 Tom Tromey <tromey@redhat.com>
6246
6247 * gdbtypes.c (rank_function): Use XNEWVEC.
6248 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6249
73051182
DE
62502014-05-19 Doug Evans <dje@google.com>
6251
6252 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6253 build_type_unit_groups and moved closer to only caller. Remove
6254 arguments. All references updated. Remove outdated .gdb_index
6255 comment.
6256 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6257 build_type_psymtabs_1.
6258
8832e7e3
DE
62592014-05-19 Doug Evans <dje@google.com>
6260
6261 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6262 n_type_unit_groups, all_type_unit_groups. All uses removed.
6263 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6264 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6265 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6266 (add_type_unit_group_to_table): Delete.
6267
cd8ae15e
DE
62682014-05-19 Doug Evans <dje@google.com>
6269
6270 * eval.c (evaluate_subexp_standard): Add some comments.
6271
08f4850b
DE
62722014-05-17 Doug Evans <xdje42@gmail.com>
6273
6274 * progspace.c (remove_program_space): Delete, unused.
6275 * progspace.h (remove_program_space): Ditto.
6276
bed8455c
DE
62772014-05-17 Doug Evans <xdje42@gmail.com>
6278
6279 * inferior.c (prune_inferiors): Fix comment.
6280 (remove_inferior_command): Call prune_program_spaces.
6281
8d551b02
DE
62822014-05-16 Doug Evans <dje@google.com>
6283
6284 New command line option -D.
6285 * NEWS: Mention it.
6286 * main.c (set_gdb_data_directory): New function.
6287 (captured_main): Recognize -D. Flag error for --data-directory "".
6288 Call set_gdb_data_directory.
6289 (print_gdb_help): Print --data-directory, -D.
6290 * main.h (set_gdb_data_directory): Declare.
6291 * top.c (staged_gdb_datadir): New static global.
6292 (set_gdb_datadir): Call set_gdb_data_directory
6293 (show_gdb_datadir): New function.
6294 (init_main): Update init of data-directory parameter.
6295
18848e28
GF
62962014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6297
6298 Import the "dirfd" gnulib module.
6299 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6300 * gnulib/aclocal.m4: Update.
6301 * gnulib/config.in: Update.
6302 * gnulib/configure: Update.
6303 * gnulib/import/Makefile.am: Update.
6304 * gnulib/import/Makefile.in: Update.
6305 * gnulib/import/dirfd.c: New.
6306 * gnulib/import/m4/dirfd.m4: New.
6307 * gnulib/import/m4/gnulib-cache.m4: Update.
6308 * gnulib/import/m4/gnulib-comp.m4: Update.
6309
95c64f92
YQ
63102014-05-16 Pierre Muller <muller@sourceware.org>
6311 Yao Qi <yao@codesourcery.com>
6312
6313 * valprint.c (print_wchar): Move the code on checking whether
6314 W is a printable wide char to the default branch of switch
6315 statement below. Call wchar_printable instead of gdb_iswprint.
6316
cac395ea
TM
63172014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6318
19679eca 6319 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6320 ldr.w and ldrd instructions.
6321
83655187
DE
63222014-05-15 Doug Evans <dje@google.com>
6323
6324 * dwarf2read.c (read_structure_type): Delete outdated comments.
6325
dd756689
TT
63262014-05-14 Tom Tromey <tromey@redhat.com>
6327
6328 * macrocmd.c (print_macro_definition): Reindent.
6329
75ddda77
DE
63302014-05-13 Doug Evans <xdje42@gmail.com>
6331
6332 * python/py-cmd.c (cmdpy_completer): Add comment.
6333 (completers): Make const.
6334
b0f16a3e
SM
63352014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6336
6337 * infrun.c (resume): Remove should_resume (unused). Move up
6338 declaration of resume_ptid.
6339
033c3379
TT
63402014-05-13 Tom Tromey <tromey@redhat.com>
6341
6342 * language.h (unop_type_check): Remove.
6343 (binop_type_check): Don't declare.
6344
9b44a3a5
AA
63452014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6346
6347 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6348 call to regcache_raw_collect.
6349
303a33fa
SM
63502014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6351
6352 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6353 mi_console->quote as the quoting character.
6354
196100a0
SM
63552014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6356
6357 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6358
f989a1c8
TT
63592014-04-29 Tom Tromey <tromey@redhat.com>
6360
6361 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6362 "show debug varobj".
6363
9404b58f
KM
63642014-05-07 Kyle McMartin <kyle@redhat.com>
6365
6366 Pushed by Joel Brobecker <brobecker@adacore.com>.
6367 * aarch64-tdep.c (aarch64_software_single_step): New function.
6368 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6369 with aarch64_software_single_step.
6370
5e49ba57
JB
63712014-05-05 Joel Brobecker <brobecker@adacore.com>
6372
6373 GDB 7.7.1 released.
6374
c888a17d
KS
63752014-05-05 Keith Seitz <keiths@redhat.com>
6376
6377 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6378 variable or history value is successfully parsed.
6379
290a839c
YQ
63802014-05-05 Yao Qi <yao@codesourcery.com>
6381 Pedro Alves <palves@redhat.com>
6382
6383 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6384 address of blocks that intersects the requested range. Trim
6385 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6386 sections.
6387 * ctf.c (ctf_xfer_partial): Likewise.
6388
91256dc2
YQ
63892014-05-05 Yao Qi <yao@codesourcery.com>
6390
6391 * printcmd.c (display_command): Remove the check to
6392 target_has_execution.
6393
07284463
MK
63942014-05-03 Mark Kettenis <kettenis@gnu.org>
6395
6396 * ppcobsd-nat.c: Include "obsd-nat.h".
6397 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6398 add_target.
6399 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6400
30a1e6cc
SDJ
64012014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6402
6403 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6404 and 16-bit signed and unsigned arguments. Update comment.
6405 (stap_parse_probe_arguments): Extend code to handle such
6406 arguments. Use warning instead of complaint to notify about
6407 unrecognized bitness.
6408
f33da99a
SDJ
64092014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6410
6411 PR breakpoints/16889
6412 * stap-probe.c (stap_parse_probe_arguments): Simplify
6413 check for non-prefixed probes (i.e., probes whose
6414 arguments do not start with "N@"). Always set the
6415 argument type to a sane value.
6416
95cf3b38
DT
64172014-05-01 David Taylor <dtaylor@emc.com>
6418
6419 * remote.c (compare_sections_command): Add -r option to compare
6420 all loadable read-only sections.
6421
1cfdf534
SC
64222014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6423
6424 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6425 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6426 Update all callers.
6427 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6428 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6429 Remove unused CORE_ADDR argument. Update all callers.
6430
ca4f7f8b
PA
64312014-04-29 Pedro Alves <palves@redhat.com>
6432
6433 * remote.c (struct packet_config) <detect>: Extend comment.
6434 (add_packet_config_cmd): Don't set the config's detect or support
6435 fields here.
6436 (init_all_packet_configs): Also initialize the config's 'detect'
6437 field.
6438 (reset_all_packet_configs_support): New function.
6439 (remote_open_1): Call reset_all_packet_configs_support instead of
6440 init_all_packet_configs.
6441 (_initialize_remote): Initialize all packet configs. Assert that
6442 all packets have an associated command, except a few known
6443 outliers.
6444
11c1ba78
JB
64452014-04-28 Joel Brobecker <brobecker@adacore.com>
6446
6447 * dwarf2read.c (read_subrange_type): Handle dynamic
6448 DW_AT_lower_bound attributes.
6449
8739bc53
JB
64502014-04-28 Joel Brobecker <brobecker@adacore.com>
6451
6452 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6453 dynamic bounds before computing its upper bound.
6454 (ada_discrete_type_low_bound): Same as above with the lower bound.
6455
6f8a3220
JB
64562014-04-28 Joel Brobecker <brobecker@adacore.com>
6457
6458 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6459 range types. Adjust the array handling implementation to
6460 take advantage of this change.
6461 (resolve_dynamic_range): New function, mostly extracted from
6462 resolve_dynamic_bounds.
6463 (resolve_dynamic_array): New function, mostly extracted from
6464 resolve_dynamic_bounds.
6465 (resolve_dynamic_bounds): Delete.
6466 (resolve_dynamic_type): Reimplement. Add handling of
6467 TYPE_CODE_RANGE types.
6468
4d072ce4
JB
64692014-04-28 Joel Brobecker <brobecker@adacore.com>
6470
6471 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6472 handling of parallel ___XA types.
6473
52865325
JB
64742014-04-28 Joel Brobecker <brobecker@adacore.com>
6475
6476 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6477 unnecessary second call to static_unwrap_type.
6478
433e77fa
HZ
64792014-04-27 Hui Zhu <hui@codesourcery.com>
6480
6481 * stack.c (print_frame_info): Call do_gdb_disassembly with
6482 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6483
b51a69ee
DE
64842014-04-26 Doug Evans <xdje42@gmail.com>
6485
6486 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6487
7ae1a6a6
PA
64882014-04-25 Pedro Alves <palves@redhat.com>
6489
6490 PR server/16255
6491 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6492 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6493 and newline from built string.
6494 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6495 (linux_ptrace_attach_fail_reason): ... this.
6496 * linux-nat.c (linux_nat_attach): Adjust to use
6497 linux_ptrace_attach_fail_reason.
6498
4082afcc
PA
64992014-04-25 Pedro Alves <palves@redhat.com>
6500
6501 * remote.c (struct remote_state): Remove multi_process_aware,
6502 non_stop_aware, cond_tracepoints, cond_breakpoints,
6503 breakpoint_commands, fast_tracepoints, static_tracepoints,
6504 install_in_trace, disconnected_tracing,
6505 enable_disable_tracepoints, string_tracing, and
6506 augmented_libraries_svr4_read fields.
6507 (remote_multi_process_p): Move further below in the file.
6508 (struct packet_config): Add comments.
6509 (update_packet_config): Delete function.
6510 (show_packet_config_cmd): Use packet_config_support.
6511 (add_packet_config_cmd): Use NULL as set callback.
6512 (packet_ok): "set remote foo-packet"-style commands no longer
6513 change config->supported -- adjust.
6514 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6515 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6516 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6517 (PACKET_QNonStop, PACKET_multiprocess_feature)
6518 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6519 (PACKET_DisconnectedTracing_feature)
6520 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6521 (set_remote_protocol_packet_cmd): Delete function.
6522 (packet_config_support, packet_support): New functions.
6523 (set_remote_protocol_Z_packet_cmd): Don't call
6524 update_packet_config.
6525 (remote_query_attached, remote_pass_signals)
6526 (remote_program_signals, remote_threads_info)
6527 (remote_threads_extra_info, remote_start_remote): Use
6528 packet_support.
6529 (remote_start_remote): Use packet_config_support and
6530 packet_support.
6531 (init_all_packet_configs): Set all packets to unknown support,
6532 instead of calling update_packet_config.
6533 (remote_check_symbols): Use packet_support.
6534 (remote_supported_packet): Unconditionally set the packet config's
6535 support status.
6536 (remote_multi_process_feature, remote_non_stop_feature)
6537 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6538 (remote_breakpoint_commands_feature)
6539 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6540 (remote_install_in_trace_feature)
6541 (remote_disconnected_tracing_feature)
6542 (remote_enable_disable_tracepoint_feature)
6543 (remote_string_tracing_feature)
6544 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6545 (remote_protocol_features): Adjust to use remote_supported_packet
6546 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6547 "ConditionalTracepoints", "ConditionalBreakpoints",
6548 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6549 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6550 "EnableDisableTracepoints", and "tracenz".
6551 (remote_query_supported): Use packet_support.
6552 (remote_open_1): Adjust.
6553 (extended_remote_attach_1): Use packet_support. Switch on the
6554 result of packet_ok instead of checking whether the packet ended
6555 up disabled.
6556 (remote_vcont_resume): Use packet_support.
6557 (remote_resume, remote_stop_ns, fetch_register_using_p)
6558 (remote_prepare_to_store, store_register_using_P)
6559 (check_binary_download, remote_write_bytes): Use packet_support.
6560 (remote_vkill): Use packet_support. Switch on the result of
6561 packet_ok instead of checking whether the packet ended up
6562 disabled.
6563 (extended_remote_supports_disable_randomization): Use
6564 packet_support.
6565 (extended_remote_run): Switch on the result of packet_ok instead
6566 of checking whether the packet ended up disabled.
6567 (remote_insert_breakpoint, remote_remove_breakpoint)
6568 (remote_insert_watchpoint, remote_remove_watchpoint)
6569 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6570 packet_support.
6571 (remote_search_memory): Use packet_config_support.
6572 (remote_get_thread_local_address, remote_get_tib_address)
6573 (remote_hostio_send_command, remote_can_execute_reverse): Use
6574 packet_support.
6575 (remote_supports_cond_tracepoints)
6576 (remote_supports_cond_breakpoints)
6577 (remote_supports_fast_tracepoints)
6578 (remote_supports_static_tracepoints)
6579 (remote_supports_install_in_trace)
6580 (remote_supports_enable_disable_tracepoint)
6581 (remote_supports_string_tracing)
6582 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6583 the packet config says the feature is enabled or disabled.
6584 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6585 (remote_get_trace_status): Use packet_support.
6586 (remote_set_disconnected_tracing): Adjust to check whether the
6587 feature is enabled with packet_support.
6588 (remote_set_trace_buffer_size, remote_use_agent)
6589 (remote_can_use_agent, remote_supports_btrace): Use
6590 packet_support.
6591 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6592 Use packet_config_support.
6593 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6594 the packet config says the feature is enabled or disabled.
6595 (set_range_stepping): Use packet_support.
6596
bdb52a22
TT
65972014-04-25 Tom Tromey <tromey@redhat.com>
6598
6599 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6600 argument.
6601
e9475ead
SA
66022014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6603
6604 * NEWS: Mention support for C99 variable length arrays.
6605
82eacd52
JB
66062014-04-24 Joel Brobecker <brobecker@adacore.com>
6607
6608 * ada-lang.c (standard_exc): Expand introductory comment.
6609
01f9f808
MS
66102014-04-24 Michael Sturm <michael.sturm@mintel.com>
6611 Walfred Tedeschi <walfred.tedeschi@intel.com>
6612
6613 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6614 AVX512 registers.
6615 (amd64_linux_read_description): Add code to handle AVX512 xstate
6616 mask and return respective tdesc.
6617 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6618 and features/i386/x32-avx512-linux.c.
6619 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6620 (amd64_linux_core_read_description): Add code to handle AVX512
6621 xstate mask and return respective tdesc.
6622 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6623 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6624 calculation.
6625 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6626 (tdesc_amd64_avx512_linux): New prototype.
6627 (tdesc_x32_avx512_linux): Likewise.
6628 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6629 features/i386/x32-avx512.c.
6630 (amd64_ymm_avx512_names): New register names for pseudo
6631 registers YMM16-31.
6632 (amd64_ymmh_avx512_names): New register names for raw registers
6633 YMMH16-31.
6634 (amd64_k_names): New register names for K registers.
6635 (amd64_zmmh_names): New register names for ZMM raw registers.
6636 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6637 (amd64_xmm_avx512_names): New register names for XMM16-31
6638 registers.
6639 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6640 registers.
6641 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6642 if feature is present.
6643 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6644 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6645 (AMD64_NUM_REGS): Adjust to new number of registers.
6646 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6647 registers supplied via XSTATE by AVX512 registers.
6648 (i386_linux_read_description): Add case for AVX512.
6649 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6650 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6651 (i386_linux_core_read_description): Add case for AVX512.
6652 (i386_linux_init_abi): Install supported register note section
6653 for AVX512.
6654 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6655 AVX512.
6656 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6657 registers to be number of zmm7h + 1.
6658 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6659 * i386-tdep.c: Include features/i386/i386-avx512.c.
6660 (i386_zmm_names): Add ZMM pseudo register names array.
6661 (i386_zmmh_names): Add ZMM raw register names array.
6662 (i386_k_names): Add K raw register names array.
6663 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6664 registers. AVX512 has 16 more ZMM registers than there are YMM
6665 registers.
6666 (i386_zmmh_regnum_p): Add function to look up register number of
6667 ZMM raw registers.
6668 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6669 (i386_k_regnum_p): Likewise for K raw registers.
6670 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6671 registers added by AVX512.
6672 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6673 registers added by AVX512.
6674 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6675 added by AVX512.
6676 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6677 (i386_pseudo_register_name): Add ZMM pseudo registers.
6678 (i386_zmm_type): Construct and return vector registers type for ZMM
6679 registers.
6680 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6681 ZMM0-31 pseudo registers and K registers.
6682 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6683 and YMM16-31 registers from register cache.
6684 (i386_pseudo_register_write): Add code to write K, ZMM and
6685 YMM16-31 registers.
6686 (i386_register_reggroup_p): Add code to include/exclude AVX512
6687 registers in/from respective register groups.
6688 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6689 registers if feature is present in xcr0.
6690 (i386_gdbarch_init): Add code to initialize AVX512 feature
6691 variables in tdep structure, wire in pseudo registers and call
6692 initialize_tdesc_i386_avx512.
6693 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6694 variables.
6695 (i386_regnum): Add AVX512 registers.
6696 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6697 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6698 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6699 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6700 512 bits wide.
6701 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6702 (i386_ymm_avx512_regnum_p): Likewise.
6703 (i386_k_regnum_p): Likewise.
6704 (i386_zmm_regnum_p): Likewise.
6705 (i386_zmmh_regnum_p): Likewise.
6706 * i387-tdep.c : Update year in copyright notice.
6707 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6708 XSAVE buffer.
6709 (XSAVE_YMM_AVX512_ADDR): New macro.
6710 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6711 XSAVE buffer.
6712 (XSAVE_XMM_AVX512_ADDR): New macro.
6713 (xsave_avx512_k_offset): New table for K register offsets in
6714 XSAVE buffer.
6715 (XSAVE_AVX512_K_ADDR): New macro.
6716 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6717 in XSAVE buffer.
6718 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6719 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6720 buffer.
6721 (i387_collect_xsave): Add code to collect AVX512 registers from
6722 XSAVE buffer.
6723 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6724 of XMM16-31 registers.
6725 (I387_NUM_K_REGS): New define for number of K registers.
6726 (I387_K0_REGNUM): New define for K0 register number.
6727 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6728 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6729 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6730 registers.
6731 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6732 (I387_XMM16_REGNUM): New define for XMM16 register number.
6733 (I387_YMM0_REGNUM): New define for YMM0 register number.
6734 (I387_KEND_REGNUM): New define for last K register number.
6735 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6736 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6737 number.
6738 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6739 number.
6740 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6741 size.
6742 * features/Makefile: Add AVX512 related files.
6743 * features/i386/32bit-avx512.xml: New file.
6744 * features/i386/64bit-avx512.xml: Likewise.
6745 * features/i386/amd64-avx512-linux.c: Likewise.
6746 * features/i386/amd64-avx512-linux.xml: Likewise.
6747 * features/i386/amd64-avx512.c: Likewise.
6748 * features/i386/amd64-avx512.xml: Likewise.
6749 * features/i386/i386-avx512-linux.c: Likewise.
6750 * features/i386/i386-avx512-linux.xml: Likewise.
6751 * features/i386/i386-avx512.c: Likewise.
6752 * features/i386/i386-avx512.xml: Likewise.
6753 * features/i386/x32-avx512-linux.c: Likewise.
6754 * features/i386/x32-avx512-linux.xml: Likewise.
6755 * features/i386/x32-avx512.c: Likewise.
6756 * features/i386/x32-avx512.xml: Likewise.
6757 * regformats/i386/amd64-avx512-linux.dat: New file.
6758 * regformats/i386/amd64-avx512.dat: Likewise.
6759 * regformats/i386/i386-avx512-linux.dat: Likewise.
6760 * regformats/i386/i386-avx512.dat: Likewise.
6761 * regformats/i386/x32-avx512-linux.dat: Likewise.
6762 * regformats/i386/x32-avx512.dat: Likewise.
6763 * NEWS: Add note about new support for AVX512.
6764
6765
08351840
PA
67662014-04-23 Pedro Alves <palves@redhat.com>
6767
6768 * breakpoint.c (insert_bp_location): Tolerate errors if the
6769 breakpoint is set in a user-loaded objfile.
6770 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6771 location is marked shlib_disabled. If the breakpoint is set in a
6772 user-loaded objfile is a GDB-side memory breakpoint, validate it
6773 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6774 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6775 flag.
6776 * mem-break.c (memory_validate_breakpoint): New function.
6777 * objfiles.c (userloaded_objfile_contains_address_p): New
6778 function.
6779 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6780 * target.h (memory_validate_breakpoint): New declaration.
6781
076855f9
PA
67822014-04-23 Pedro Alves <palves@redhat.com>
6783
6784 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6785 the breakpoint is set in a shared library, only suppress
6786 errors for software breakpoints, not hardware breakpoints.
6787
483805cf
PA
67882014-04-22 Pedro Alves <palves@redhat.com>
6789
6790 * infrun.c (schedlock_applies): New function, factored out from
6791 find_thread_needs_step_over.
6792 (find_thread_needs_step_over): Use it.
6793 (switch_back_to_stepped_thread): Always clear trap_expected if the
6794 step over is finished. Return early if scheduler locking applies.
6795 Look for the stepping thread and a potential step-over thread with
6796 a single loop.
6797 (currently_stepping_or_nexting_callback): Delete.
6798
a75fef0e
NC
67992014-04-22 Nick Clifton <nickc@redhat.com>
6800
6801 * NEWS: Mention that ARM sim now supports tracing.
6802
48b6e87e
YQ
68032014-04-22 Yao Qi <yao@codesourcery.com>
6804
6805 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6806 to ...
6807 * tracefile.c (tracefile_fetch_registers): ... it. New
6808 function.
6809 * tracefile.h (tracefile_fetch_registers): Declare.
6810 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6811 tracefile_fetch_registers.
6812
17617f2d
EZ
68132014-04-19 Eli Zaretskii <eliz@gnu.org>
6814
6815 PR gdb/14018
6816 * windows-nat.c (thread_rec): Don't display a warning when
6817 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6818 fails for any reason, set th->suspended to -1, so that we don't
6819 try to resume such a thread. Also, don't return NULL in these
6820 cases, to avoid completely ruin the session due to "PC register is
6821 not available" error.
6822 (do_windows_fetch_inferior_registers): Check errors in
6823 GetThreadContext call.
6824 (windows_continue): Accept an additional argument KILLED; if not
6825 zero, ignore errors in the SetThreadContext call, since the
6826 inferior was killed and is shutting down.
6827 (windows_resume, get_windows_debug_event)
6828 (windows_create_inferior, windows_mourn_inferior)
6829 (windows_kill_inferior): All callers of windows_continue changed
6830 to adjust to its new calling sequence.
6831
5723a6fd
YQ
68322014-04-19 Yao Qi <yao@codesourcery.com>
6833
6834 * ctf.c (ctf_open): Call post_create_inferior.
6835
614d5099
YQ
68362014-04-19 Yao Qi <yao@codesourcery.com>
6837
6838 * ctf.c (handle_id): New static variable.
6839 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6840 value. Get the declaration of event "register" and get length
6841 of field "contents".
6842
dac3e710
YQ
68432014-04-19 Yao Qi <yao@codesourcery.com>
6844
6845 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6846
2bca57ba
SC
68472014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6848
6849 * valops.c (oload_method_static): Remove unnecessary argument
6850 METHOD. Update all callers.
6851
51d48146
PA
68522014-04-18 Pedro alves <palves@redhat.com>
6853 Tom Tromey <tromey@redhat.com>
6854
6855 PR backtrace/15558
6856 * frame.c (get_prev_frame_1): Rename to ...
6857 (get_prev_frame_always): ... this, and make extern. Adjust.
6858 (skip_artificial_frames): Use get_prev_frame_always.
6859 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6860 (get_frame_unwind_stop_reason): Adjust to rename.
6861 * frame.h (get_prev_frame_always): Declare.
6862 * inline-frame.c: Include frame.h.
6863 (inline_frame_this_id): Use get_prev_frame_always.
6864
1bdad2e0
TG
68652014-04-18 Tristan Gingold <gingold@adacore.com>
6866
6867 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6868 code by using bfd_mach_o_get_base_address.
6869
7ce16bd4
UW
68702014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6871
6872 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6873 (spu_ax_pseudo_register_collect): New function.
6874 (spu_ax_pseudo_register_push_stack): Likewise.
6875 (spu_dwarf_reg_to_regnum): Likewise.
6876 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6877
2ed3c037
UW
68782014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6879
6880 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6881 Replace FRAME argument with FRAME_ID.
6882 * gdbarch.c, gdbarch.h: Regenerate.
6883 * findvar.c (default_value_from_register): Add GDBARCH argument;
6884 replace FRAME by FRAME_ID. No longer call get_frame_id.
6885 (value_from_register): Update call to gdbarch_value_from_register.
6886 * value.h (default_value_from_register): Update prototype.
6887 * s390-linux-tdep.c (s390_value_from_register): Update interface
6888 and call to default_value_from_register.
6889 * spu-tdep.c (spu_value_from_register): Likewise.
6890
6891 * findvar.c (address_from_register): Remove TYPE argument.
6892 Do not call value_from_register; use gdbarch_value_from_register
6893 with null_frame_id instead.
6894 * value.h (address_from_register): Update prototype.
6895 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6896 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6897 address_from_register interface change.
6898
71e50e83
YQ
68992014-04-17 Yao Qi <yao@codesourcery.com>
6900
6901 * gdbtypes.h: Update comments to link to types and macros'
6902 definitions.
6903
7a23c549
SC
69042014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6905
6906 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6907
22869d73
KS
69082014-04-16 Keith Seitz <keiths@redhat.com>
6909
6910 PR gdb/15827
6911 * dwarf2read.c (skip_one_die): Check that all relative-offset
6912 sibling DIEs fall within range of the current reader's buffer.
6913 (read_partial_die): Likewise.
6914
c4f87ca6
KS
69152014-04-16 Keith Seitz <keiths@redhat.com>
6916
6917 PR c++/16597
6918 * cp-namespace.c (lookup_symbol_file): If the type name of
6919 `this' is NULL, return immediately.
6920
b50c8614
KS
69212014-04-14 Keith Seitz <keiths@redhat.com>
6922
6923 PR c++/16253
6924 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6925 from symbol_matches_domain in symtab.c. All local callers
6926 of symbol_matches_domain updated.
6927 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6928 search STRUCT_DOMAIN.
6929 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6930 independently. standard_lookup will do that automatically.
6931 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6932 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6933 (cp_lookup_symbol_in_namespace): Likewise.
6934 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6935 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6936 may return a STRUCT_DOMAIN match.
6937 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6938 * cp-support.c: Include language.h.
6939 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6940 VAR_DOMAIN.
6941 * psymtab.c (match_partial_symbol): Compare the requested
6942 domain with the symbol's domain directly.
6943 (lookup_partial_symbol): Likewise.
6944 * symtab.c (lookup_symbol_in_language): Explain when/why
6945 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6946 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6947 appropriate languages.
6948 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6949 and moved to ada-lang.c
6950 (lookup_block_symbol): Explain that this function only returns
6951 symbol matching the requested DOMAIN.
6952 Compare the requested domain with the symbol's domain directly.
6953 (iterate_over_symbols): Compare the requested domain with the
6954 symbol's domain directly.
6955 * symtab.h (symbol_matches_domain): Remove.
6956
3d567982
TT
69572014-04-14 Tom Tromey <tromey@redhat.com>
6958
6959 PR c++/15246:
6960 * c-exp.y (type_aggregate_p): New function.
6961 (qualified_name, classify_inner_name): Use it.
6962 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6963 and TYPE_TARGET_TYPE of an enum type.
6964 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6965 an enum type.
6966 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6967 handle TYPE_DECLARED_CLASS.
6968 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6969 types.
6970 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6971 * valops.c (enum_constant_from_type): New function.
6972 (value_aggregate_elt): Use it.
6973 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6974 TYPE_CODE_ENUM.
6975
c848d642
TT
69762014-04-14 Tom Tromey <tromey@redhat.com>
6977
6978 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6979 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6980 const.
6981 * value.h (value_aggregate_elt): Update.
6982
0626fc76
TT
69832014-04-14 Tom Tromey <tromey@redhat.com>
6984
6985 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6986
5ecaaa66
SA
69872014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6988
6989 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6990 (evaluate_subexp_standard): Pass noside argument.
6991 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6992 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6993 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6994 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6995 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6996
1612e0c0
SA
69972014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6998
6999 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7000 points to a constant blob.
7001
c451ebe5
SA
70022014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7003
7004 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7005 property and store it as the high bound and flag the range accordingly.
7006 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7007 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7008 * gdbtypes.h (enum range_flags): New enum.
7009 (struct range_bounds): Add flags member.
7010
1d42e4c4
SA
70112014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7012
7013 * c-typeprint.c (c_type_print_varspec_suffix): Added
7014 check for not yet resolved high bound. If unresolved, print
7015 "variable length" string to the console instead of random
7016 length.
7017
9f1f738a
SA
70182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7019
7020 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7021 value.
7022 (ada_template_to_fixed_record_type_1): Likewise.
7023 (ada_to_fixed_type_1): Likewise.
7024 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7025 (cp_print_value): Likewise.
7026 * d-valprint.c (dynamic_array_type): Likewise.
7027 * findvar.c (address_of_variable): Likewise.
7028 * jv-valprint.c (java_value_print): Likewise.
7029 * valops.c (value_ind): Likewise.
7030 * value.c (coerce_ref): Likewise.
7031
3c8452d4
SA
70322014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7033
7034 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7035 value and retrieve the dynamic type size.
7036
4ad88275
SA
70372014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7038
7039 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7040 passed to sizeof is dynamic evaluate the argument to compute the length.
7041
80180f79
SA
70422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7043 Joel Brobecker <brobecker@adacore.com>
7044
7045 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7046 (dwarf2_evaluate_property): New function.
7047 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7048 * dwarf2read.c (attr_to_dynamic_prop): New function.
7049 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7050 attribute.
7051 * gdbtypes.c: Include dwarf2loc.h.
7052 (is_dynamic_type): New function.
7053 (resolve_dynamic_type): New function.
7054 (resolve_dynamic_bounds): New function.
7055 (get_type_length): New function.
7056 (check_typedef): Use get_type_length to compute type length.
7057 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7058 (TYPE_LOW_BOUND_KIND): New macro.
7059 (is_dynamic_type): New function prototype.
7060 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7061 to resolve dynamic properties of the type. Update comment.
7062 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7063
a1556843
RH
70642014-04-14 Richard Henderson <rth@redhat.com>
7065
7066 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7067
0be03e84
DE
70682014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7069 Doug Evans <xdje42@gmail.com>
7070
7071 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7072 dereference TYPE_CODE_REF values.
7073
6b662e19
JB
70742014-04-11 Joel Brobecker <brobecker@adacore.com>
7075
7076 Revert the following changes due to regressions:
7077
7078 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7079 (dwarf2_evaluate_property): New function.
7080 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7081 * dwarf2read.c (attr_to_dynamic_prop): New function.
7082 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7083 attribute.
7084 * gdbtypes.c: Include dwarf2loc.h.
7085 (is_dynamic_type): New function.
7086 (resolve_dynamic_type): New function.
7087 (resolve_dynamic_bounds): New function.
7088 (get_type_length): New function.
7089 (check_typedef): Use get_type_length to compute type length.
7090 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7091 (TYPE_LOW_BOUND_KIND): New macro.
7092 (is_dynamic_type): New function prototype.
7093 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7094 to resolve dynamic properties of the type. Update comment.
7095 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7096
7097 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7098 passed to sizeof is dynamic evaluate the argument to compute the length.
7099
7100 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7101 value and retrieve the dynamic type size.
7102
7103 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7104 (ada_template_to_fixed_record_type_1): Likewise.
7105 (ada_to_fixed_type_1): Likewise.
7106 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7107 (cp_print_value): Likewise.
7108 * d-valprint.c (dynamic_array_type): Likewise.
7109 * eval.c (evaluate_subexp_with_coercion): Likewise.
7110 * findvar.c (address_of_variable): Likewise.
7111 * jv-valprint.c (java_value_print): Likewise.
7112 * valops.c (value_ind): Likewise.
7113 * value.c (coerce_ref): Likewise.
7114
7115 * c-typeprint.c (c_type_print_varspec_suffix): Added
7116 check for not yet resolved high bound. If unresolved, print
7117 "variable length" string to the console instead of random
7118 length.
7119
7120 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7121 property and store it as the high bound and flag the range accordingly.
7122 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7123 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7124 * gdbtypes.h (enum range_flags): New enum.
7125 (struct range_bounds): Add flags member.
7126
7127 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7128 points to a constant blob.
7129
7130 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7131 (evaluate_subexp_standard): Pass noside argument.
7132 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7133 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7134 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7135 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7136 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7137
245a5f0b
KS
71382014-04-11 Keith Seitz <keiths@redhat.com>
7139
7140 PR c++/16675
7141 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7142 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7143 reference types.
7144
3bce8237
SA
71452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7146
7147 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7148 (evaluate_subexp_standard): Pass noside argument.
7149 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7150 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7151 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7152 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7153 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7154
92b09522
SA
71552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7156
7157 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7158 points to a constant blob.
7159
e1969afb
SA
71602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7161
7162 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7163 property and store it as the high bound and flag the range accordingly.
7164 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7165 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7166 * gdbtypes.h (enum range_flags): New enum.
7167 (struct range_bounds): Add flags member.
7168
b86138fb
SA
71692014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7170
7171 * c-typeprint.c (c_type_print_varspec_suffix): Added
7172 check for not yet resolved high bound. If unresolved, print
7173 "variable length" string to the console instead of random
7174 length.
7175
bcd629a4
SA
71762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7177
7178 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7179 (ada_template_to_fixed_record_type_1): Likewise.
7180 (ada_to_fixed_type_1): Likewise.
7181 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7182 (cp_print_value): Likewise.
7183 * d-valprint.c (dynamic_array_type): Likewise.
7184 * eval.c (evaluate_subexp_with_coercion): Likewise.
7185 * findvar.c (address_of_variable): Likewise.
7186 * jv-valprint.c (java_value_print): Likewise.
7187 * valops.c (value_ind): Likewise.
7188 * value.c (coerce_ref): Likewise.
7189
04b19544
SA
71902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7191
7192 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7193 value and retrieve the dynamic type size.
7194
26cb189f
SA
71952014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7196
7197 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7198 passed to sizeof is dynamic evaluate the argument to compute the length.
7199
37c1ab67
SA
72002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7201
7202 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7203 (dwarf2_evaluate_property): New function.
7204 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7205 * dwarf2read.c (attr_to_dynamic_prop): New function.
7206 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7207 attribute.
7208 * gdbtypes.c: Include dwarf2loc.h.
7209 (is_dynamic_type): New function.
7210 (resolve_dynamic_type): New function.
7211 (resolve_dynamic_bounds): New function.
7212 (get_type_length): New function.
7213 (check_typedef): Use get_type_length to compute type length.
7214 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7215 (TYPE_LOW_BOUND_KIND): New macro.
7216 (is_dynamic_type): New function prototype.
7217 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7218 to resolve dynamic properties of the type. Update comment.
7219 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7220
729efb13
SA
72212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7222
7223 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7224 declaring high/low bounds and change uses accordingly. Call
7225 create_range_type instead of create_static_range_type.
7226 * gdbtypes.c (create_range_type): New function.
7227 (create_range_type): Convert bounds into struct bound_prop and pass
7228 them to create_range_type.
7229 * gdbtypes.h (struct bound_prop): New struct.
7230 (create_range_type): New function prototype.
7231 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7232 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7233 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7234 part of the bound.
7235 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7236
0c9c3474
SA
72372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7238
7239 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7240 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7241 * ada-lang.c: All uses of create_range_type updated.
7242 * coffread.c: All uses of create_range_type updated.
7243 * dwarf2read.c: All uses of create_range_type updated.
7244 * f-exp.y: All uses of create_range_type updated.
7245 * m2-valprint.c: All uses of create_range_type updated.
7246 * mdebugread.c: All uses of create_range_type updated.
7247 * stabsread.c: All uses of create_range_type updated.
7248 * valops.c: All uses of create_range_type updated.
7249 * valprint.c: All uses of create_range_type updated.
7250
9d497a19
PA
72512014-04-10 Pedro Alves <palves@redhat.com>
7252
7253 * breakpoint.c (single_step_breakpoints)
7254 (single_step_gdbarch): Move up in the file.
7255 (one_breakpoint_xfer_memory): New function, factored out from ...
7256 (breakpoint_xfer_memory): ... here. Also process single-step
7257 breakpoints.
7258
15a9128a
TG
72592014-04-09 Tristan Gingold <gingold@adacore.com>
7260
7261 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7262 comments.
7263 (darwin_decode_exception_message): Free port only after use.
7264
9c97a070
PL
72652014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7266
7267 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7268 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7269 when setting the size of call_length.
7270
7af389b8
SC
72712014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7272
7273 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7274 dereference TYPE_CODE_REF values.
7275
86ad98c3
JB
72762014-04-07 Joel Brobecker <brobecker@adacore.com>
7277
7278 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7279 end of warning message.
7280
b0aeadb3
DE
72812014-04-03 Doug Evans <dje@google.com>
7282
7283 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7284 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7285
5979d6b6
AM
72862014-04-02 Alan Modra <amodra@gmail.com>
7287
7288 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7289 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7290 (struct symbol_file_add_from_memory_args): Add size field.
7291 (find_vdso_size): New function.
7292 (add_vsyscall_page): Attempt to find vdso size.
7293
0d60c288
DE
72942014-04-01 Doug Evans <dje@google.com>
7295
7296 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7297
a41f2563
TG
72982014-04-01 Tristan Gingold <gingold@adacore.com>
7299
7300 * darwin-nat.c (darwin_encode_reply): Add prototype.
7301 (darwin_decode_exception_message): Reply to unknown inferiors.
7302 (darwin_decode_message): Handle message by id. Ignore message
7303 to unknown inferior.
7304 (darwin_wait): Discard unknown messages, add debug trace.
7305
11a865c8
DE
73062014-03-31 Doug Evans <dje@google.com>
7307
7308 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7309 comp_dir_string.
7310
770e7fc7
DE
73112014-03-31 Doug Evans <dje@google.com>
7312
7313 New option "set print symbol-loading".
7314 * NEWS: Mention it.
7315 * solib.c (solib_read_symbols): Only print symbol loading messages
7316 if requested.
7317 (solib_add): If symbol loading is in "brief" mode, notify user
7318 symbols are being loaded.
7319 (reload_shared_libraries_1): Ditto.
7320 * symfile.c (print_symbol_loading_off): New static global.
7321 (print_symbol_loading_brief): New static global.
7322 (print_symbol_loading_full): New static global.
7323 (print_symbol_loading_enums): New static global.
7324 (print_symbol_loading): New static global.
7325 (print_symbol_loading_p): New function.
7326 (symbol_file_add_with_addrs): Only print symbol loading messages
7327 if requested.
7328 (_initialize_symfile): Register "print symbol-loading" set/show
7329 command.
7330 * symfile.h (print_symbol_loading_p): Declare.
7331
c32c64b7
DE
73322014-03-30 Doug Evans <xdje42@gmail.com>
7333
7334 * infrun.c (set_last_target_status): New function.
7335 (handle_inferior_event): Call it.
7336
7c0bc051
DE
73372014-03-30 Doug Evans <xdje42@gmail.com>
7338
7339 * inferior.h (enum stop_kind): Improve comment.
7340
8776cfe9
JB
73412014-03-28 Joel Brobecker <brobecker@adacore.com>
7342
7343 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7344 a reference, strip the reference layer before calling
7345 the lang_ops value_has_mutated callback.
7346
410a0ff2
SDJ
73472014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7348
7349 Remove some globals from our parser.
7350 * language.c (unk_lang_parser): Add "struct parser_state"
7351 argument.
7352 * language.h (struct language_defn) <la_parser>: Likewise.
7353 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7354 (initialize_expout): Add "struct parser_state" argument.
7355 Rewrite function to use the parser state.
7356 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7357 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7358 write_exp_elt_longcst, write_exp_elt_dblcst,
7359 write_exp_elt_decfloatcst, write_exp_elt_type,
7360 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7361 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7362 write_dollar_variable): Likewise.
7363 (parse_exp_in_context_1): Use parser state.
7364 (insert_type_address_space): Add "struct parser_state" argument.
7365 Use parser state.
7366 (increase_expout_size): New function.
7367 * parser-defs.h: Forward declare "struct language_defn" and
7368 "struct parser_state".
7369 (expout, expout_size, expout_ptr): Remove extern declarations.
7370 (parse_gdbarch, parse_language): Rewrite macro declarations to
7371 accept the parser state.
7372 (struct parser_state): New struct.
7373 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7374 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7375 write_exp_elt_decfloatcst, write_exp_elt_type,
7376 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7377 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7378 write_exp_msymbol, write_dollar_variable,
7379 mark_struct_expression, insert_type_address_space): Add "struct
7380 parser_state" argument.
7381 (increase_expout_size): New function.
7382 * utils.c (do_clear_parser_state): New function.
7383 (make_cleanup_clear_parser_state): Likewise.
7384 * utils.h (make_cleanup_clear_parser_state): New function
7385 prototype.
7386 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7387 Update calls to write_exp* in order to pass the parser state.
7388 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7389 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7390 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7391 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7392 * stap-probe.c (stap_parse_register_operand): Likewise.
7393 (stap_parse_single_operand): Likewise.
7394 (stap_parse_argument_1): Likewise.
7395 (stap_parse_argument): Use parser state.
7396 * stap-probe.h: Include "parser-defs.h".
7397 (struct stap_parse_info) <pstate>: New field.
7398 * c-exp.y (parse_type): Rewrite to use parser state.
7399 (yyparse): Redefine to c_parse_internal.
7400 (pstate): New global variable.
7401 (parse_number): Add "struct parser_state" argument.
7402 (write_destructor_name): Likewise.
7403 (type_exp): Update calls to write_exp* and similars in order to
7404 use parser state.
7405 (exp1, exp, variable, qualified_name, space_identifier,
7406 typename, typebase): Likewise.
7407 (write_destructor_name, parse_number, lex_one_token,
7408 classify_name, classify_inner_name, c_parse): Add "struct
7409 parser_state" argument. Update function to use parser state.
7410 * c-lang.h: Forward declare "struct parser_state".
7411 (c_parse): Add "struct parser_state" argument.
7412 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7413 (yyparse): Redefine macro to ada_parse_internal.
7414 (pstate): New variable.
7415 (write_int, write_object_renaming, write_var_or_type,
7416 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7417 type_int, type_long, type_long_long, type_float, type_double,
7418 type_long_double, type_char, type_boolean, type_system_address):
7419 Add "struct parser_state" argument.
7420 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7421 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7422 var_or_type, aggregate, aggregate_component_list,
7423 positional_list, others, component_group,
7424 component_associations): Update calls to write_exp* and similar
7425 functions in order to use parser state.
7426 (ada_parse, write_var_from_sym, write_int,
7427 write_exp_op_with_string, write_object_renaming,
7428 find_primitive_type, write_selectors, write_ambiguous_var,
7429 write_var_or_type, write_name_assoc, type_int, type_long,
7430 type_long_long, type_float, type_double, type_long_double,
7431 type_char, type_boolean, type_system_address): Add "struct
7432 parser_state" argument. Adjust function to use parser state.
7433 * ada-lang.c (parse): Likewise.
7434 * ada-lang.h: Forward declare "struct parser_state".
7435 (ada_parse): Add "struct parser_state" argument.
7436 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7437 calls to both functions.
7438 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7439 parser state.
7440 (yyparse): Redefine macro to f_parse_internal.
7441 (pstate): New variable.
7442 (parse_number): Add "struct parser_state" argument.
7443 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7444 and similars in order to use parser state.
7445 (parse_number): Adjust code to use parser state.
7446 (yylex): Likewise.
7447 (f_parse): New function.
7448 * f-lang.h: Forward declare "struct parser_state".
7449 (f_parse): Add "struct parser_state" argument.
7450 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7451 parser state.
7452 (yyparse): Redefine macro for java_parse_internal.
7453 (pstate): New variable.
7454 (push_expression_name, push_expression_name, insert_exp): Add
7455 "struct parser_state" argument.
7456 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7457 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7458 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7459 PostIncrementExpression, PostDecrementExpression,
7460 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7461 UnaryExpressionNotPlusMinus, CastExpression,
7462 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7463 RelationalExpression, EqualityExpression, AndExpression,
7464 ExclusiveOrExpression, InclusiveOrExpression,
7465 ConditionalAndExpression, ConditionalOrExpression,
7466 ConditionalExpression, Assignment, LeftHandSide): Update
7467 calls to write_exp* and similars in order to use parser state.
7468 (parse_number): Ajust code to use parser state.
7469 (yylex): Likewise.
7470 (java_parse): New function.
7471 (push_variable): Add "struct parser_state" argument. Adjust
7472 code to user parser state.
7473 (push_fieldnames, push_qualified_expression_name,
7474 push_expression_name, insert_exp): Likewise.
7475 * jv-lang.h: Forward declare "struct parser_state".
7476 (java_parse): Add "struct parser_state" argument.
7477 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7478 parser state.
7479 (yyparse): Redefine macro to m2_parse_internal.
7480 (pstate): New variable.
7481 (type_exp, exp, fblock, variable, type): Update calls to
7482 write_exp* and similars to use parser state.
7483 (yylex): Likewise.
7484 (m2_parse): New function.
7485 * m2-lang.h: Forward declare "struct parser_state".
7486 (m2_parse): Add "struct parser_state" argument.
7487 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7488 * objc-lang.h: Forward declare "struct parser_state".
7489 (end_msglist): Add "struct parser_state" argument.
7490 * p-exp.y (parse_type): Rewrite macro to use parser state.
7491 (yyparse): Redefine macro to pascal_parse_internal.
7492 (pstate): New variable.
7493 (parse_number): Add "struct parser_state" argument.
7494 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7495 write_exp* and similars in order to use parser state.
7496 (parse_number, yylex): Adjust code to use parser state.
7497 (pascal_parse): New function.
7498 * p-lang.h: Forward declare "struct parser_state".
7499 (pascal_parse): Add "struct parser_state" argument.
7500 * go-exp.y (parse_type): Rewrite macro to use parser state.
7501 (yyparse): Redefine macro to go_parse_internal.
7502 (pstate): New variable.
7503 (parse_number): Add "struct parser_state" argument.
7504 (type_exp, exp1, exp, variable, type): Update calls to
7505 write_exp* and similars in order to use parser state.
7506 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7507 to use parser state.
7508 (go_parse): Likewise.
7509 * go-lang.h: Forward declare "struct parser_state".
7510 (go_parse): Add "struct parser_state" argument.
7511
342587c4
DE
75122014-03-27 Doug Evans <dje@google.com>
7513
7514 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7515
33e80786
DE
75162014-03-27 Doug Evans <dje@google.com>
7517
7518 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7519 Remove argument abbrev_section. All callers updated.
7520
1dbab08b
DE
75212014-03-27 Doug Evans <dje@google.com>
7522
7523 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7524 addr_base, ranges_base.
7525
318d3177
KS
75262014-03-26 Keith Seitz <keiths@redhat.com>
7527
7528 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7529 types, not VAR_DOMAIN.
7530
1e54db15
SL
75312014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7532
7533 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7534 "ra" registers.
7535 * features/nios2-linux.c: Regenerated.
7536 * features/nios2.c: Regenerated.
7537
d3839ede
PA
75382014-03-25 Pedro Alves <palves@redhat.com>
7539
7540 * cli/cli-script.c (script_from_file): Force the interpreter to
7541 sync mode.
7542
7588d2ec
PL
75432014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7544
7545 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7546 small stack allocation.
7547
a6290449
TG
75482014-03-24 Tristan Gingold <gingold@adacore.com>
7549
7550 * darwin-nat.c (exc_server): Remove unused prototype.
7551 (darwin_dump_message): Correctly display data on x86_64.
7552 (darwin_encode_reply): Fix style.
7553 Add comments and fix indentation.
7554
31ae9d24 75552014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7556
7557 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7558
6339bfc4
DE
75592014-03-22 Doug Evans <xdje42@gmail.com>
7560
7561 * infcmd.c: Whitespace fixes.
7562 (interrupt_command): Merge two function comments into one.
7563
0a07590b
DE
75642014-03-22 Doug Evans <xdje42@gmail.com>
7565
7566 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7567 All uses updated.
7568
b55fbac4
YQ
75692014-03-22 Yao Qi <yao@codesourcery.com>
7570
7571 * remote.c (target_read_live_memory): Remove.
7572 (memory_xfer_live_readonly_partial): Rename it to
7573 remote_xfer_live_readonly_partial. Remove argument 'object'.
7574 All callers updated. Call remote_read_bytes_1
7575 instead of target_read_live_memory.
7576 * tracepoint.c (set_traceframe_number): Remove.
7577 (make_cleanup_restore_traceframe_number): Likewise .
7578 * tracepoint.h (set_traceframe_number): Remove declaration.
7579 (make_cleanup_restore_traceframe_number): Likewise.
7580
9217e74e
YQ
75812014-03-22 Yao Qi <yao@codesourcery.com>
7582
7583 * remote.c (remote_read_bytes): Move code on reading from the
7584 remote stub to ...
7585 (remote_read_bytes_1): ... here. New function.
7586
8acf9577
YQ
75872014-03-22 Yao Qi <yao@codesourcery.com>
7588
7589 * ctf.c (ctf_xfer_partial): Check the return value of
7590 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7591 return TARGET_XFER_UNAVAILABLE.
7592 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7593 * target.c (target_read_live_memory): Move it to remote.c.
7594 (memory_xfer_live_readonly_partial): Likewise.
7595 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7596 * remote.c (target_read_live_memory): Moved from target.c.
7597 (memory_xfer_live_readonly_partial): Likewise.
7598 (remote_read_bytes): Factored out from
7599 memory_xfer_partial_1.
7600
feef67ab
DE
76012014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7602
7603 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7604 NULL pointer.
7605
b65dc60b
PA
76062014-03-21 Pedro Alves <palves@redhat.com>
7607
7608 * infrun.c (normal_stop): Extend comment.
7609
b4ab256d
HZ
76102014-03-21 Hui Zhu <hui@codesourcery.com>
7611 Pedro Alves <palves@redhat.com>
7612
7613 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7614 static buffer.
7615 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7616 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7617 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7618
deba7593
MR
76192014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7620
7621 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7622 `z' formatted output modifier.
7623
1bff71c3
SDJ
76242014-03-20 Tom Tromey <tromey@redhat.com>
7625 Sergio Durigan Junior <sergiodj@redhat.com>
7626
7627 * probe.c (parse_probes): Turn assert into an ordinary error.
7628 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7629 exceptions when parsing probes. Rearrange the code for clarity.
7630
90e28950
TT
76312014-03-20 Tom Tromey <tromey@redhat.com>
7632
7633 PR gdb/14135
7634 * top.c (execute_command): Only dispatch events if the command
7635 started the target.
7636
beb460e8
PA
76372014-03-20 Tom Tromey <tromey@redhat.com>
7638
7639 PR cli/15718
7640 * infcall.c: Include event-top.h.
7641 (run_inferior_call): Call async_disable_stdin if needed.
7642
99619bea
PA
76432014-03-20 Pedro Alves <palves@redhat.com>
7644
7645 * infrun.c (prepare_to_proceed): Delete.
7646 (thread_still_needs_step_over): New function.
7647 (find_thread_needs_step_over): New function.
7648 (proceed): If the current thread needs a step-over, set its
7649 steping_over_breakpoint flag. Adjust to use
7650 find_thread_needs_step_over instead of prepare_to_proceed.
7651 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7652 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7653 breakpoint.
7654 (switch_back_to_stepped_thread): Step over breakpoints of all
7655 threads not the stepping thread, before switching back to the
7656 stepping thread.
7657
2adfaa28
PA
76582014-03-20 Pedro Alves <palves@redhat.com>
7659
7660 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7661 extern.
7662 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7663 * infrun.c (saved_singlestep_ptid)
7664 (stepping_past_singlestep_breakpoint): Delete.
7665 (resume): Remove stepping_past_singlestep_breakpoint handling.
7666 (proceed): Store the prev_pc of the stepping thread too.
7667 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7668 singlestep_pc.
7669 (enum infwait_states): Delete infwait_thread_hop_state.
7670 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7671 field.
7672 (handle_inferior_event): Adjust.
7673 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7674 handling and the thread-hop code. Before removing single-step
7675 breakpoints, check whether the thread hit a single-step breakpoint
7676 of another thread. If it did, the trap is not a random signal.
7677 (switch_back_to_stepped_thread): If the event thread hit a
7678 single-step breakpoint, unblock it before switching to the
7679 stepping thread. Handle the case of the stepped thread having
7680 advanced already.
7681 (keep_going): Handle the case of the current thread moving past a
7682 single-step breakpoint.
7683
31e77af2
PA
76842014-03-20 Pedro Alves <palves@redhat.com>
7685
7686 PR breakpoints/7143
7687 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7688 are being stepped over.
7689 (breakpoint_address_match): Make extern.
7690 * breakpoint.h (breakpoint_address_match): New declaration.
7691 * inferior.h (stepping_past_instruction_at): New declaration.
7692 * infrun.c (struct step_over_info): New type.
7693 (step_over_info): New global.
7694 (set_step_over_info, clear_step_over_info)
7695 (stepping_past_instruction_at): New functions.
7696 (handle_inferior_event): Clear the step-over info when
7697 trap_expected is cleared.
7698 (resume): Remove now stale comment.
7699 (clear_proceed_status): Clear step-over info.
7700 (proceed): Adjust step-over handling to set or clear the step-over
7701 info instead of removing all breakpoints.
7702 (handle_signal_stop): When setting up a thread-hop, don't remove
7703 breakpoints here.
7704 (stop_stepping): Clear step-over info.
7705 (keep_going): Adjust step-over handling to set or clear step-over
7706 info and then always inserting breakpoints, instead of removing
7707 all breakpoints when stepping over one.
7708
b9f437de
PA
77092014-03-20 Pedro Alves <palves@redhat.com>
7710
7711 * infrun.c (previous_inferior_ptid): Adjust comment.
7712 (deferred_step_ptid): Delete.
7713 (infrun_thread_ptid_changed, prepare_to_proceed)
7714 (init_wait_for_inferior): Adjust.
7715 (handle_signal_stop): Delete deferred_step_ptid handling.
7716
06c868a8
JK
77172014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7718
7719 PR gdb/15358
7720 * defs.h (sync_quit_force_run): New declaration.
7721 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7722 * event-top.c (async_sigterm_handler): New declaration.
7723 (async_sigterm_token): New variable.
7724 (async_init_signals): Create also async_sigterm_token.
7725 (async_sigterm_handler): New function.
7726 (sync_quit_force_run): New variable.
7727 (handle_sigterm): Replace quit_force call by other calls.
7728 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7729
dea80df0
MR
77302014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7731
7732 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7733 offset into SPE pseudo registers.
7734
0c7e1a46
PA
77352014-03-18 Pedro Alves <palves@redhat.com>
7736
7737 PR gdb/13860
7738 * inferior.h (print_stop_event): Declare.
7739 * infrun.c (print_stop_event): New, factored out from ...
7740 (normal_stop): ... this.
7741 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7742 of bpstat_print/print_stack_frame.
7743
9c1fcd01
TT
77442014-03-17 Tom Tromey <tromey@redhat.com>
7745
7746 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7747
11aa919a
PMR
77482014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7749
7750 * ada-lang.c (decode_constrained_packed_array): Perform a
7751 minimal coercion for reference with coerce_ref instead of
7752 ada_coerce_ref.
7753
d4ccb5e0
TG
77542014-03-17 Tristan Gingold <gingold@adacore.com>
7755
7756 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7757 (darwin_solib_create_inferior_hook): Emit a warning if version
7758 is unhandled.
7759
49840f2a
UW
77602014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7761
7762 * python/py-value.c (get_field_flag): Cast flag_name argument to
7763 PyObject_GetAttrString to support Python 2.4.
7764
ed4123e5
JK
77652014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7766
7767 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7768 (Global Maintainers): Remove Jan Kratochvil.
7769
d6b64346
PA
77702014-03-14 Pedro Alves <palves@redhat.com>
7771
7772 * inferior.h (terminal_ours_for_output): Rename to ...
7773 (child_terminal_ours_for_output): ... this.
7774 (terminal_save_ours): Rename to ...
7775 (child_terminal_save_ours): ... this.
7776 (terminal_ours): Rename to ...
7777 (child_terminal_ours): ... this.
7778 (terminal_inferior): Rename to ...
7779 (child_terminal_inferior): ... this.
7780 (terminal_init_inferior): Rename to ...
7781 (child_terminal_init_inferior): ... this.
7782 (terminal_init_inferior_with_pgrp): Rename to ...
7783 (child_terminal_init_inferior_with_pgrp): ... this.
7784 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7785 (child_terminal_init_with_pgrp): ... this.
7786 (terminal_save_ours): Rename to ...
7787 (child_terminal_save_ours): ... this.
7788 (terminal_init_inferior): Rename to ...
7789 (child_terminal_init): ... this. Adjust.
7790 (terminal_inferior): Rename to ...
7791 (child_terminal_inferior): ... this.
7792 (terminal_ours_for_output): Rename to ...
7793 (child_terminal_ours_for_output): ... this. Adjust.
7794 (terminal_ours): Rename to ...
7795 (child_terminal_ours): ... this.
7796 (terminal_ours_1): Rename to ...
7797 (child_terminal_ours_1): ... this. Adjust.
7798 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7799 * windows-nat.c (do_initial_windows_stuff): Adjust.
7800 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7801 (gnu_terminal_init): ... this. Adjust.
7802 (gnu_target): Adjust.
7803 * inf-child.c (inf_child_target): Adjust.
7804
5a1e8c7a
DE
78052014-03-13 Doug Evans <xdje42@gmail.com>
7806
7807 PR guile/16612
7808 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7809 new eq?-hashtab.
7810
350e1a76
DE
78112014-03-13 Doug Evans <xdje42@gmail.com>
7812
7813 * value.c (record_latest_value): Call release_value_or_incref
7814 instead of release_value.
7815
a69900ae
PA
78162014-03-13 Pedro Alves <palves@redhat.com>
7817
7818 * procfs.c (procfs_target): Don't override to_shortname,
7819 to_longname or to_doc.
7820
5db9f0bd
PA
78212014-03-13 Pedro Alves <palves@redhat.com>
7822
7823 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7824 Unix in user visible strings.
7825
5e3a2c38
SS
78262014-03-12 Stan Shebs <stan@codesourcery.com>
7827
7828 * gdbtypes.h: Annotate comments for Doxygen, add a page
7829 block comment with some general info.
7830
8bc2fe48
PA
78312014-03-12 Pedro Alves <palves@redhat.com>
7832
7833 * infcmd.c (prepare_execution_command): New function, factored out
7834 from several execution commands.
7835 (run_command_1, continue_command, step_1, jump_command)
7836 (signal_command, until_command, advance_command, finish_command)
7837 (attach_command): Use prepare_execution_command.
7838
638c5f49
OJ
78392014-03-12 Omair Javaid <omair.javaid@linaro.org>
7840
7841 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7842 (MAX_BPTS): Define.
7843 (MAX_WPTS): Define.
7844 (struct arm_linux_thread_points): Removed.
7845 (struct arm_linux_process_info): New.
7846 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7847 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7848 (arm_linux_find_breakpoints_by_tid): Removed.
7849 (struct arch_lwp_info): New.
7850 (arm_linux_find_process_pid): New functions.
7851 (arm_linux_add_process): New functions.
7852 (arm_linux_process_info_get): New functions.
7853 (arm_linux_forget_process): New function.
7854 (arm_linux_get_debug_reg_state): New function.
7855 (struct update_registers_data): New.
7856 (update_registers_callback): New function.
7857 (arm_linux_insert_hw_breakpoint1): Updated.
7858 (arm_linux_remove_hw_breakpoint1): Updated.
7859 (arm_linux_insert_hw_breakpoint): Updated.
7860 (arm_linux_remove_hw_breakpoint): Updated.
7861 (arm_linux_insert_watchpoint): Updated.
7862 (arm_linux_remove_watchpoint): Updated.
7863 (arm_linux_new_thread): Updated.
7864 (arm_linux_prepare_to_resume): New function.
7865 (arm_linux_new_fork): New function.
7866 (_initialize_arm_linux_nat): Updated.
7867
6d03af93
PA
78682014-03-12 Pedro Alves <palves@redhat.com>
7869
7870 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7871
b3ccfe11
TT
78722014-03-12 Tom Tromey <tromey@redhat.com>
7873
7874 * inf-child.c (return_zero): New function.
7875 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7876 * aix-thread.c (aix_thread_inferior_created): New function.
7877 (aix_thread_attach): Remove.
7878 (init_aix_thread_ops): Don't set to_attach.
7879 (_initialize_aix_thread): Register inferior_created observer.
7880 * corelow.c (init_core_ops): Don't set to_attach or
7881 to_create_inferior.
7882 * exec.c (init_exec_ops): Don't set to_attach or
7883 to_create_inferior.
7884 * infcmd.c (run_command_1): Use find_run_target. Make direct
7885 target calls.
7886 (attach_command): Use find_attach_target. Make direct target
7887 calls.
7888 * record-btrace.c (init_record_btrace_ops): Don't set
7889 to_create_inferior.
7890 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7891 Remove.
7892 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7893 set to_create_inferior.
7894 * target.c (complete_target_initialization): Add assertion.
7895 (target_create_inferior): Remove.
7896 (find_default_attach, find_default_create_inferior): Remove.
7897 (find_attach_target, find_run_target): New functions.
7898 (find_default_is_async_p, find_default_can_async_p)
7899 (target_supports_non_stop, target_attach): Remove.
7900 (init_dummy_target): Don't set to_create_inferior or
7901 to_supports_non_stop.
7902 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7903 TARGET_DEFAULT_FUNC.
7904 <to_create_inferior>: Add comment.
7905 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7906 TARGET_DEFAULT_RETURN.
7907 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7908 (find_attach_target, find_run_target): Declare.
7909 (target_create_inferior): Remove.
7910 (target_has_execution_1): Update comment.
7911 (target_supports_non_stop): Remove.
7912 * target-delegates.c: Rebuild.
7913
91f83b02
PA
79142014-03-12 Pedro Alves <palves@redhat.com>
7915
7916 * inf-child.h: Update comment to not mention Unix.
7917
f1aea813
PA
79182014-03-12 Pedro Alves <palves@redhat.com>
7919
7920 * inf-child.c: Update top comment to not mention Unix. Add
7921 generic comment describing how this target is meant to be used.
7922 (inf_child_post_attach, inf_child_post_startup_inferior)
7923 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7924 Unix in comment.
7925
ee8e9165
PA
79262014-03-12 Pedro Alves <palves@redhat.com>
7927
7928 * nto-procfs.c: Include inf-child.h.
7929 (procfs_ops): Delete global.
7930 (procfs_can_run): Delete method.
7931 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7932 target pointer instead of referencing procfs_ops.
7933 (procfs_prepare_to_store): Delete.
7934 (init_procfs_ops): Delete function.
7935 (procfs_target): New function, based on init_procfs_ops, but
7936 inherit inf_child_target.
7937 (_initialize_procfs): Use procfs_target.
7938
51a9c8c5
PA
79392014-03-12 Pedro Alves <palves@redhat.com>
7940
7941 * windows-nat.c: Include inf-child.h.
7942 (windows_ops): Delete global.
7943 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7944 methods.
7945 (init_windows_ops): Delete function.
7946 (windows_target): New function, based on init_windows_ops, but
7947 inherit inf_child_target.
7948 (_initialize_windows_nat): Use windows_target. Install x86
7949 specific target methods here.
7950
c1966e26
DE
79512014-03-10 Doug Evans <xdje42@gmail.com>
7952
7953 * guile/guile.c (call_initialize_gdb_module): New function.
7954 (initialize_guile): Replace call to scm_init_guile with call to
7955 scm_with_guile.
7956
023db19c
JB
79572014-03-10 Joel Brobecker <brobecker@adacore.com>
7958
7959 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7960 in call to TYPE_CODE macro.
7961
5ec18f2b
JG
79622014-03-10 Jerome Guitton <guitton@adacore.com>
7963
8668be63
JB
7964 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7965 Resolve tagged types to full view.
5ec18f2b 7966
7d03f2eb
HZ
79672014-03-10 Hui Zhu <hui@codesourcery.com>
7968
7969 * target.h (target_insert_breakpoint): Remove "hardware" from its
7970 comments.
7971
c5164cbc
DE
79722014-03-07 Doug Evans <dje@google.com>
7973
7974 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7975
c4a3fee2
DE
79762014-03-07 Doug Evans <dje@google.com>
7977
7978 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7979 Remove unused local comp_dir_attr. Assert exactly one of
7980 stub_comp_unit_die, stub_comp_dir is non-NULL.
7981
3156469c
JB
79822014-03-07 Joel Brobecker <brobecker@adacore.com>
7983
7984 * target.h (complete_target_initialization, add_target):
7985 Add comment.
7986
c1a7b7c6
PA
79872014-03-07 Pedro Alves <palves@redhat.com>
7988
7989 * go32-nat.c: Include inf-child.h.
7990 (go32_ops): Delete global.
7991 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7992 Delete methods.
7993 (go32_create_inferior): Push the passed in target pointer instead
7994 of referencing go32_ops.
7995 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7996 (go32_target): New function, based on init_go32_ops, but inherit
7997 inf_child_target.
7998 (_initialize_go32_nat): Use go32_target. Move parts of
7999 init_go32_ops here.
8000
d3c1a85f
JB
80012014-03-06 Joel Brobecker <brobecker@adacore.com>
8002
8003 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8004 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8005 SYMBOL_VALUE_ADDRESS.
8006 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8007
5fa1d40e
YQ
80082014-03-06 Yao Qi <yao@codesourcery.com>
8009
8010 * breakpoint.c (get_tracepoint_by_number): Remove argument
8011 optional_p. All callers updated. Adjust comments. Update
8012 output message.
8013 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8014
0c13193f
YQ
80152014-03-06 Yao Qi <yao@codesourcery.com>
8016
8017 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8018 early if get_number returns zero. Use 'p' instead of 'args'.
8019
2217da06
YQ
80202014-03-06 Yao Qi <yao@codesourcery.com>
8021
8022 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8023 message.
8024
cc3da688
YQ
80252014-03-06 Yao Qi <yao@codesourcery.com>
8026
8027 PR breakpoints/16508
8028 * tracepoint.c (check_trace_running): New function.
8029 (trace_find_command): Move code to check_trace_running and
8030 call check_trace_running.
8031 (trace_find_pc_command): Likewise.
8032 (trace_find_tracepoint_command): Likewise.
8033 (trace_find_line_command): Likewise.
8034 (trace_find_range_command): Likewise.
8035 * tracepoint.h (check_trace_running): Likewise.
8036 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8037
6a5f844b
YQ
80382014-03-06 Yao Qi <yao@codesourcery.com>
8039
8040 * target.h (struct target_ops) <to_traceframe_info>: Use
8041 TARGET_DEFAULT_NORETURN (tcomplain ()).
8042 * target-delegates.c: Regenerated.
8043
0f26cec1
PA
80442014-03-05 Pedro Alves <palves@redhat.com>
8045
8046 PR gdb/16575
8047 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8048 void. Update comment.
8049 (dcache_xfer_memory): Delete.
8050 (dcache_read_memory_partial): New, based on the read bits of
8051 dcache_xfer_memory.
8052 (dcache_update): Add status parameter. Use ULONGEST for len, and
8053 adjust. Discard cache lines if the reason for the update was
8054 error.
8055 * dcache.h (dcache_xfer_memory): Delete declaration.
8056 (dcache_read_memory_partial): New declaration.
8057 (dcache_update): Update prototype.
8058 * target.c (raw_memory_xfer_partial): Update the dcache here.
8059 (memory_xfer_partial_1): Don't handle dcache writes here.
8060
b2b255bd
MF
80612014-03-05 Mike Frysinger <vapier@gentoo.org>
8062
8063 * remote-sim.c (gdbsim_load): Add const to prog.
8064
5d9cf8a4
TT
80652014-03-03 Tom Tromey <tromey@redhat.com>
8066
8067 * elfread.c (probe_key): Change to bfd_data.
8068 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8069 now per-BFD, not per-objfile.
8070 * stap-probe.c (stap_probe_destroy): Update comment.
8071 (handle_stap_probe): Allocate on the per-BFD obstack.
8072
729662a5
TT
80732014-03-03 Tom Tromey <tromey@redhat.com>
8074
8075 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8076 * breakpoint.c (create_longjmp_master_breakpoint): Use
8077 get_probe_address.
8078 (add_location_to_breakpoint, bkpt_probe_insert_location)
8079 (bkpt_probe_remove_location): Update.
8080 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8081 * elfread.c (elf_symfile_relocate_probe): Remove.
8082 (elf_probe_fns): Update.
8083 (insert_exception_resume_breakpoint): Change type of "probe"
8084 parameter to bound_probe.
8085 (check_exception_resume): Update.
8086 * objfiles.c (objfile_relocate1): Don't relocate probes.
8087 * probe.c (bound_probe_s): New typedef.
8088 (parse_probes): Use get_probe_address. Set sal's objfile.
8089 (find_probe_by_pc): Return a bound_probe.
8090 (collect_probes): Return a VEC(bound_probe_s).
8091 (compare_probes): Update.
8092 (gen_ui_out_table_header_info): Change type of "probes"
8093 parameter. Update.
8094 (info_probes_for_ops): Update.
8095 (get_probe_address): New function.
8096 (probe_safe_evaluate_at_pc): Update.
8097 * probe.h (struct probe_ops) <get_probe_address>: New field.
8098 <set_semaphore, clear_semaphore>: Add objfile parameter.
8099 (struct probe) <objfile>: Remove field.
8100 <arch>: New field.
8101 <address>: Update comment.
8102 (struct bound_probe): New.
8103 (find_probe_by_pc): Return a bound_probe.
8104 (get_probe_address): Declare.
8105 * solib-svr4.c (struct probe_and_action) <address>: New field.
8106 (hash_probe_and_action, equal_probe_and_action): Update.
8107 (register_solib_event_probe): Add address parameter.
8108 (solib_event_probe_at): Update.
8109 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8110 get_probe_address.
8111 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8112 (stap_get_probe_address): New function.
8113 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8114 (compile_probe_arg): Update.
8115 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8116 address.
8117 (handle_stap_probe): Don't relocate the probe.
8118 (stap_relocate): Remove.
8119 (stap_gen_info_probes_table_values): Update.
8120 (stap_probe_ops): Remove stap_relocate.
8121 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8122 (debug_sym_probe_fns): Update.
8123 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8124 * symtab.c (init_sal): Use memset.
8125 * symtab.h (struct symtab_and_line) <objfile>: New field.
8126 * tracepoint.c (start_tracing, stop_tracing): Update.
8127
ff887920
TT
81282014-03-03 Tom Tromey <tromey@redhat.com>
8129
8130 * probe.h (parse_probes, find_probe_by_pc)
8131 (find_probes_in_objfile): Fix comments.
8132
f0407826
DE
81332014-03-02 Doug Evans <xdje42@gmail.com>
8134
8135 * infrun.c (handle_signal_stop): Replace test for
8136 TARGET_WAITKIND_STOPPED with an assert.
8137
35e6a711
DE
81382014-03-02 Doug Evans <xdje42@gmail.com>
8139
8140 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8141
667f9d0b
DE
81422014-03-02 Doug Evans <xdje42@gmail.com>
8143
8144 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8145
dc92ace0
MK
81462014-03-01 Mark Kettenis <kettenis@gnu.org>
8147
8148 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8149
a900370f
MK
81502014-03-01 Mark Kettenis <kettenis@gnu.org>
8151
8152 * i386obsd-nat.c: Include "obsd-nat.h".
8153 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8154 add_target.
8155 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8156
b72a7981
MK
81572014-03-01 Mark Kettenis <kettenis@gnu.org>
8158
8159 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8160
96c70aba
MK
81612014-03-01 Mark Kettenis <kettenis@gnu.org>
8162
8163 * mips64obsd-nat.c: Include "obsd-nath".
8164 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8165 add_target
8166 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8167
874a80af
MK
81682014-03-01 Mark Kettenis <kettenis@gnu.org>
8169
8fd408f1
MK
8170 * amd64obsd-nat.c: Include "obsd-nat,h.
8171 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8172 add_target.
874a80af
MK
8173 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8174
9cf95373
SC
81752014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8176
8177 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8178 (find_overload_match): Update call to find_oload_champ.
8179 (find_oload_champ_namespace_loop): Likewise
8180
863e4da4
MK
81812014-02-28 Mark Kettenis <kettenis@gnu.org>
8182
025cac40
MK
8183 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8184
1ed586ce
MK
8185 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8186 * config/sparc/obsd64.mh: New file.
8187 * sparc64obsd-nat.c: New file.
8188
863e4da4
MK
8189 * obsd-nat.h: New file.
8190 * obsd-nat.c: New file.
8191 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8192 (ALLDEPFILES): Add obsd-nat.c.
8193
89de4da4
TT
81942014-02-28 Tom Tromey <tromey@redhat.com>
8195
8196 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8197 * cli-out.h (cli_ui_out_impl): Now const.
8198 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8199 * ui-out.c (struct ui_out) <impl>: Now const.
8200 (default_ui_out_impl): Now const.
8201 (ui_out_new): Make 'impl' parameter const.
8202 * ui-out.h (ui_out_new): Update.
8203
c725e7b6
MK
82042014-02-27 Mark Kettenis <kettenis@gnu.org>
8205
8206 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8207
670b46b3
MK
82082014-02-27 Mark Kettenis <kettenis@gnu.org>
8209
8210 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8211
c91550fc
JK
82122014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8213
8214 Additional PR 8882 fix.
8215 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8216
2fa0369e
PA
82172014-02-27 Pedro Alves <palves@redhat.com>
8218
8219 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8220 isn't set.
8221
d632a097
PA
82222014-02-27 Pedro Alves <palves@redhat.com>
8223
8224 PR 12702
8225 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8226 * nat/linux-waitpid.c: Include string.h.
8227 (status_to_str): Moved here and made extern.
8228 * nat/linux-waitpid.h (status_to_str): New declaration.
8229
2ebd5a35
HZ
82302014-02-27 Hui Zhu <hui@codesourcery.com>
8231
8232 PR 12702
8233 * infrun.c (ptid_match): Move ...
8234 * common/ptid.c (ptid_match): ... here.
8235 * inferior.h (ptid_match): Move ...
8236 * common/ptid.h (ptid_match): ... here.
8237
3cdd631f
MK
82382014-02-27 Mark Kettenis <kettenis@gnu.org>
8239
8240 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8241 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8242 gdb_target_obs.
8243
bee30a64
MK
82442014-02-27 Mark Kettenis <kettenis@gnu.org>
8245
8246 * obsd-tdep.c (obsd_auxv_parse): New function.
8247 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8248
8249 * gdbarch.sh (auxv_parse): New.
8250 * gdbarch.h: Regenerated.
8251 * gdbarch.c: Regenerated.
8252 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8253
7a5a839f
LC
82542014-02-26 Ludovic Courtès <ludo@gnu.org>
8255
8256 * guile/scm-value.c (gdbscm_history_append_x): New function.
8257 (value_functions): Add it.
8258
31aa7e4e
JB
82592014-02-27 Joel Brobecker <brobecker@adacore.com>
8260
8261 * dwarf2read.c (attr_value_as_address): New function.
8262 (dwarf2_find_base_address, read_call_site_scope): Use
8263 attr_value_as_address in place of DW_ADDR.
8264 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8265 the low and high addresses. Slight rework of the handling
8266 of the high pc being a constant form, and limit it to
8267 DWARF verson 4 or higher.
8268 (dwarf2_record_block_ranges): Likewise.
8269 (read_partial_die): Likewise.
8270 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8271
9b333ba3
TT
82722014-02-26 Tom Tromey <tromey@redhat.com>
8273
8274 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8275
5f6cac40
TT
82762014-02-26 Tom Tromey <tromey@redhat.com>
8277
8278 * elfread.c (elf_read_minimal_symbols): Return early if
8279 minimal symbols have already been read. Add "ei" parameter.
8280 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8281 * minsyms.c (prim_record_minimal_symbol_full): Update.
8282 * objfiles.h (struct objstats) <n_minsyms>: Move...
8283 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8284 * symmisc.c (print_objfile_statistics): Update.
8285
2750ef27
TT
82862014-02-26 Tom Tromey <tromey@redhat.com>
8287
8288 * elfread.c (elf_read_minimal_symbols): New function, from
8289 elf_symfile_read.
8290 (elf_symfile_read): Call it.
8291
34643a32
TT
82922014-02-26 Tom Tromey <tromey@redhat.com>
8293
8294 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8295 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8296 (lookup_minimal_symbol_solib_trampoline)
8297 (lookup_minimal_symbol_by_pc_section_1)
8298 (lookup_minimal_symbol_and_objfile): Update.
8299 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8300 Don't allocate a minimal symbol if minsyms have already been read.
8301 (build_minimal_symbol_hash_tables): Update.
8302 (install_minimal_symbols): Do nothing if minsyms already read.
8303 Use the per-BFD obstack.
8304 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8305 * objfiles.c (allocate_objfile): Call
8306 terminate_minimal_symbol_table later.
8307 (have_minimal_symbols): Update.
8308 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8309 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8310 Move from struct objfile.
8311 <minsyms_read>: New field.
8312 (struct objfile) <msymbols, minimal_symbol_count,
8313 msymbol_hash, msymbol_demangled_hash>: Move.
8314 (ALL_OBJFILE_MSYMBOLS): Update.
8315 * symfile.c (read_symbols): Set minsyms_read.
8316 (reread_symbols): Update.
8317 * symmisc.c (dump_objfile, dump_msymbols): Update.
8318
2273f0ac
TT
83192014-02-26 Tom Tromey <tromey@redhat.com>
8320
8321 * minsyms.c (msymbols_sort): Remove.
8322 * minsyms.h (msymbols_sort): Remove.
8323 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8324 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8325 * elfread.c (elf_symtab_read): Don't add section offsets.
8326 * xcoffread.c (record_minimal_symbol): Don't add section offset
8327 to minimal symbol address.
8328 * somread.c (text_offset, data_offset): Remove.
8329 (som_symtab_read): Don't add section offsets to minimal symbol
8330 addresses.
8331 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8332 Don't add section offsets to minimal symbols.
8333 * coffread.c (coff_symtab_read): Don't add section offsets
8334 to minimal symbol addresses.
8335 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8336 to minimal symbol addresses.
8337 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8338 section offset to minimal symbol addresses.
8339 * mdebugread.c (parse_partial_symbols): Don't add section
8340 offset to minimal symbol addresses.
8341 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8342 offset to minimal symbol addresses.
8343
77e371c0
TT
83442014-02-26 Tom Tromey <tromey@redhat.com>
8345
8346 * ada-lang.c (ada_main_name): Update.
8347 (ada_add_standard_exceptions): Update.
8348 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8349 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8350 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8351 * auxv.c (ld_so_xfer_auxv): Update.
8352 * avr-tdep.c (avr_scan_prologue): Update.
8353 * ax-gdb.c (gen_var_ref): Update.
8354 * blockframe.c (get_pc_function_start)
8355 (find_pc_partial_function_gnu_ifunc): Update.
8356 * breakpoint.c (create_overlay_event_breakpoint)
8357 (create_longjmp_master_breakpoint)
8358 (create_std_terminate_master_breakpoint)
8359 (create_exception_master_breakpoint): Update.
8360 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8361 * c-valprint.c (c_val_print): Update.
8362 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8363 * common/agent.c (agent_look_up_symbols): Update.
8364 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8365 * dwarf2loc.c (call_site_to_target_addr): Update.
8366 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8367 * elfread.c (elf_gnu_ifunc_record_cache)
8368 (elf_gnu_ifunc_resolve_by_got): Update.
8369 * findvar.c (default_read_var_value): Update.
8370 * frame.c (inside_main_func): Update.
8371 * frv-tdep.c (frv_frame_this_id): Update.
8372 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8373 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8374 Update.
8375 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8376 (hppa_hpux_find_dummy_bpaddr): Update.
8377 * hppa-tdep.c (hppa_symbol_address): Update.
8378 * infcmd.c (until_next_command): Update.
8379 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8380 Update.
8381 * linespec.c (minsym_found, add_minsym): Update.
8382 * linux-nat.c (get_signo): Update.
8383 * linux-thread-db.c (inferior_has_bug): Update.
8384 * m32c-tdep.c (m32c_return_value)
8385 (m32c_m16c_address_to_pointer): Update.
8386 * m32r-tdep.c (m32r_frame_this_id): Update.
8387 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8388 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8389 * maint.c (maintenance_translate_address): Update.
8390 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8391 (frob_address): New function.
8392 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8393 frob_address. Rename parameter to "pc_in".
8394 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8395 addresses.
8396 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8397 Update.
8398 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8399 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8400 * objc-lang.c (find_objc_msgsend): Update.
8401 * objfiles.c (objfile_relocate1): Update.
8402 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8403 * p-valprint.c (pascal_val_print): Update.
8404 * parse.c (write_exp_msymbol): Update.
8405 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8406 (ppc_elfv2_skip_entrypoint): Update.
8407 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8408 * printcmd.c (build_address_symbolic, msym_info)
8409 (address_info): Update.
8410 * proc-service.c (ps_pglobal_lookup): Update.
8411 * psymtab.c (find_pc_sect_psymtab_closer)
8412 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8413 Change msymbol parameter to bound_minimal_symbol.
8414 * ravenscar-thread.c (get_running_thread_id): Update.
8415 * remote.c (remote_check_symbols): Update.
8416 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8417 address.
8418 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8419 * solib-dsbt.c (lm_base): Update.
8420 * solib-frv.c (lm_base, main_got): Update.
8421 * solib-irix.c (locate_base): Update.
8422 * solib-som.c (som_solib_create_inferior_hook)
8423 (link_map_start): Update.
8424 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8425 * solib-svr4.c (elf_locate_base, enable_break): Update.
8426 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8427 (flush_ea_cache): Update.
8428 * stabsread.c (define_symbol, scan_file_globals): Update.
8429 * stack.c (find_frame_funname): Update.
8430 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8431 (debug_qf_find_pc_sect_symtab): Update.
8432 * symfile.c (simple_read_overlay_table)
8433 (simple_overlay_update): Update.
8434 * symfile.h (struct quick_symbol_functions)
8435 <find_pc_sect_symtab>: Change type of msymbol to
8436 bound_minimal_symbol.
8437 * symmisc.c (dump_msymbols): Update.
8438 * symtab.c (find_pc_sect_symtab_via_partial)
8439 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8440 (search_symbols, print_msymbol_info): Update.
8441 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8442 (MSYMBOL_VALUE_ADDRESS): Redefine.
8443 (BMSYMBOL_VALUE_ADDRESS): New macro.
8444 * tracepoint.c (scope_info): Update.
8445 * tui/tui-disasm.c (tui_find_disassembly_address)
8446 (tui_get_begin_asm_address): Update.
8447 * valops.c (find_function_in_inferior): Update.
8448 * value.c (value_static_field, value_fn_field): Update.
8449
3b7344d5
TT
84502014-02-26 Tom Tromey <tromey@redhat.com>
8451
8452 * ada-lang.c (ada_update_initial_language): Update.
8453 (ada_main_name, ada_has_this_exception_support): Update.
8454 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8455 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8456 * arm-tdep.c (arm_skip_stub): Update.
8457 * auxv.c (ld_so_xfer_auxv): Update.
8458 * avr-tdep.c (avr_scan_prologue): Update.
8459 * ax-gdb.c (gen_var_ref): Update.
8460 * breakpoint.c (struct breakpoint_objfile_data)
8461 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8462 type to bound_minimal_symbol.
8463 (create_overlay_event_breakpoint)
8464 (create_longjmp_master_breakpoint)
8465 (create_std_terminate_master_breakpoint)
8466 (create_exception_master_breakpoint): Update.
8467 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8468 * c-exp.y (classify_name): Update.
8469 * coffread.c (coff_symfile_read): Update.
8470 * common/agent.c (agent_look_up_symbols): Update.
8471 * d-lang.c (d_main_name): Update.
8472 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8473 * dec-thread.c (enable_dec_thread): Update.
8474 * dwarf2loc.c (call_site_to_target_addr): Update.
8475 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8476 * eval.c (evaluate_subexp_standard): Update.
8477 * findvar.c (struct minsym_lookup_data) <result>: Change type
8478 to bound_minimal_symbol.
8479 <objfile>: Remove.
8480 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8481 * frame.c (inside_main_func): Update.
8482 * frv-tdep.c (frv_frame_this_id): Update.
8483 * gcore.c (call_target_sbrk): Update.
8484 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8485 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8486 Update.
8487 * go-lang.c (go_main_name): Update.
8488 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8489 (hppa_hpux_find_import_stub_for_addr): Update.
8490 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8491 Update. Change return type.
8492 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8493 type.
8494 * jit.c (jit_breakpoint_re_set_internal): Update.
8495 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8496 Update.
8497 * linux-nat.c (get_signo): Update.
8498 * linux-thread-db.c (inferior_has_bug): Update
8499 * m32c-tdep.c (m32c_return_value)
8500 (m32c_m16c_address_to_pointer): Update.
8501 * m32r-tdep.c (m32r_frame_this_id): Update.
8502 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8503 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8504 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8505 lookup_minimal_symbol. Change return type.
8506 (lookup_minimal_symbol): Remove.
8507 (lookup_bound_minimal_symbol): Update.
8508 (lookup_minimal_symbol_text): Change return type.
8509 (lookup_minimal_symbol_solib_trampoline): Change return type.
8510 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8511 (lookup_minimal_symbol_solib_trampoline): Change return type.
8512 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8513 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8514 (value_nsstring, find_imps): Update.
8515 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8516 * p-lang.c (pascal_main_name): Update.
8517 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8518 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8519 * proc-service.c (ps_pglobal_lookup): Update.
8520 * ravenscar-thread.c (get_running_thread_msymbol): Change
8521 return type.
8522 (has_ravenscar_runtime, get_running_thread_id): Update.
8523 * remote.c (remote_check_symbols): Update.
8524 * sol-thread.c (ps_pglobal_lookup): Update.
8525 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8526 * solib-dsbt.c (lm_base): Update.
8527 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8528 Update.
8529 * solib-irix.c (locate_base): Update.
8530 * solib-som.c (som_solib_create_inferior_hook)
8531 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8532 Update.
8533 * solib-spu.c (spu_enable_break): Update.
8534 * solib-svr4.c (elf_locate_base, enable_break): Update.
8535 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8536 (flush_ea_cache): Update.
8537 * stabsread.c (define_symbol): Update.
8538 * symfile.c (simple_read_overlay_table): Update.
8539 * symtab.c (find_pc_sect_line): Update.
8540 * tracepoint.c (scope_info): Update.
8541 * tui-disasm.c (tui_get_begin_asm_address): Update.
8542 * value.c (value_static_field): Update.
8543
40c1a007
TT
85442014-02-26 Tom Tromey <tromey@redhat.com>
8545
8546 * minsyms.c (prim_record_minimal_symbol_full): Use
8547 SET_MSYMBOL_VALUE_ADDRESS.
8548 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8549 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8550 SET_MSYMBOL_VALUE_ADDRESS.
8551 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8552 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8553
efd66ac6
TT
85542014-02-26 Tom Tromey <tromey@redhat.com>
8555
8556 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8557 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8558 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8559 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8560 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8561 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8562 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8563 * ada-lang.c (ada_main_name): Update.
8564 (ada_lookup_simple_minsym): Update.
8565 (ada_make_symbol_completion_list): Update.
8566 (ada_add_standard_exceptions): Update.
8567 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8568 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8569 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8570 * arm-tdep.c (skip_prologue_function): Update.
8571 (arm_skip_stack_protector, arm_skip_stub): Update.
8572 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8573 (arm_wince_skip_main_prologue): Update.
8574 * auxv.c (ld_so_xfer_auxv): Update.
8575 * avr-tdep.c (avr_scan_prologue): Update.
8576 * ax-gdb.c (gen_var_ref): Update.
8577 * block.c (call_site_for_pc): Update.
8578 * blockframe.c (get_pc_function_start): Update.
8579 (find_pc_partial_function_gnu_ifunc): Update.
8580 * breakpoint.c (create_overlay_event_breakpoint): Update.
8581 (create_longjmp_master_breakpoint): Update.
8582 (create_std_terminate_master_breakpoint): Update.
8583 (create_exception_master_breakpoint): Update.
8584 (resolve_sal_pc): Update.
8585 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8586 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8587 Update.
8588 * c-valprint.c (c_val_print): Update.
8589 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8590 * coffread.c (coff_symfile_read): Update.
8591 * common/agent.c (agent_look_up_symbols): Update.
8592 * dbxread.c (find_stab_function_addr): Update.
8593 (end_psymtab): Update.
8594 * dwarf2loc.c (call_site_to_target_addr): Update.
8595 (func_verify_no_selftailcall): Update.
8596 (tailcall_dump): Update.
8597 (call_site_find_chain_1): Update.
8598 (dwarf_expr_reg_to_entry_parameter): Update.
8599 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8600 (elf_gnu_ifunc_resolve_by_got): Update.
8601 * f-valprint.c (info_common_command): Update.
8602 * findvar.c (read_var_value): Update.
8603 * frame.c (get_prev_frame_1): Update.
8604 (inside_main_func): Update.
8605 * frv-tdep.c (frv_skip_main_prologue): Update.
8606 (frv_frame_this_id): Update.
8607 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8608 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8609 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8610 (gnuv3_skip_trampoline): Update.
8611 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8612 (hppa64_hpux_in_solib_call_trampoline): Update.
8613 (hppa_hpux_skip_trampoline_code): Update.
8614 (hppa64_hpux_search_dummy_call_sequence): Update.
8615 (hppa_hpux_find_import_stub_for_addr): Update.
8616 (hppa_hpux_find_dummy_bpaddr): Update.
8617 * hppa-tdep.c (hppa_symbol_address)
8618 (hppa_lookup_stub_minimal_symbol): Update.
8619 * i386-tdep.c (i386_skip_main_prologue): Update.
8620 (i386_pe_skip_trampoline_code): Update.
8621 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8622 * infcall.c (get_function_name): Update.
8623 * infcmd.c (until_next_command): Update.
8624 * jit.c (jit_breakpoint_re_set_internal): Update.
8625 (jit_inferior_init): Update.
8626 * linespec.c (minsym_found): Update.
8627 (add_minsym): Update.
8628 * linux-fork.c (info_checkpoints_command): Update.
8629 * linux-nat.c (get_signo): Update.
8630 * linux-thread-db.c (inferior_has_bug): Update.
8631 * m32c-tdep.c (m32c_return_value): Update.
8632 (m32c_m16c_address_to_pointer): Update.
8633 (m32c_m16c_pointer_to_address): Update.
8634 * m32r-tdep.c (m32r_frame_this_id): Update.
8635 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8636 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8637 * maint.c (maintenance_translate_address): Update.
8638 * minsyms.c (add_minsym_to_hash_table): Update.
8639 (add_minsym_to_demangled_hash_table): Update.
8640 (msymbol_objfile): Update.
8641 (lookup_minimal_symbol): Update.
8642 (iterate_over_minimal_symbols): Update.
8643 (lookup_minimal_symbol_text): Update.
8644 (lookup_minimal_symbol_by_pc_name): Update.
8645 (lookup_minimal_symbol_solib_trampoline): Update.
8646 (lookup_minimal_symbol_by_pc_section_1): Update.
8647 (lookup_minimal_symbol_and_objfile): Update.
8648 (prim_record_minimal_symbol_full): Update.
8649 (compare_minimal_symbols): Update.
8650 (compact_minimal_symbols): Update.
8651 (build_minimal_symbol_hash_tables): Update.
8652 (install_minimal_symbols): Update.
8653 (terminate_minimal_symbol_table): Update.
8654 (find_solib_trampoline_target): Update.
8655 (minimal_symbol_upper_bound): Update.
8656 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8657 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8658 (mips_skip_pic_trampoline_code): Update.
8659 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8660 * objc-lang.c (selectors_info): Update.
8661 (classes_info): Update.
8662 (find_methods): Update.
8663 (find_imps): Update.
8664 (find_objc_msgsend): Update.
8665 * objfiles.c (objfile_relocate1): Update.
8666 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8667 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8668 * p-valprint.c (pascal_val_print): Update.
8669 * parse.c (write_exp_msymbol): Update.
8670 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8671 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8672 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8673 * printcmd.c (build_address_symbolic): Update.
8674 (sym_info): Update.
8675 (address_info): Update.
8676 * proc-service.c (ps_pglobal_lookup): Update.
8677 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8678 (find_pc_sect_psymtab): Update.
8679 * python/py-framefilter.c (py_print_frame): Update.
8680 * ravenscar-thread.c (get_running_thread_id): Update.
8681 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8682 Update.
8683 * remote.c (remote_check_symbols): Update.
8684 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8685 (rs6000_skip_trampoline_code): Update.
8686 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8687 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8688 * solib-dsbt.c (lm_base): Update.
8689 * solib-frv.c (lm_base): Update.
8690 (main_got): Update.
8691 * solib-irix.c (locate_base): Update.
8692 * solib-som.c (som_solib_create_inferior_hook): Update.
8693 (som_solib_desire_dynamic_linker_symbols): Update.
8694 (link_map_start): Update.
8695 * solib-spu.c (spu_enable_break): Update.
8696 (ocl_enable_break): Update.
8697 * solib-svr4.c (elf_locate_base): Update.
8698 (enable_break): Update.
8699 * spu-tdep.c (spu_get_overlay_table): Update.
8700 (spu_catch_start): Update.
8701 (flush_ea_cache): Update.
8702 * stabsread.c (define_symbol): Update.
8703 (scan_file_globals): Update.
8704 * stack.c (find_frame_funname): Update.
8705 (frame_info): Update.
8706 * symfile.c (simple_read_overlay_table): Update.
8707 (simple_overlay_update): Update.
8708 * symmisc.c (dump_msymbols): Update.
8709 * symtab.c (fixup_section): Update.
8710 (find_pc_sect_line): Update.
8711 (skip_prologue_sal): Update.
8712 (search_symbols): Update.
8713 (print_msymbol_info): Update.
8714 (rbreak_command): Update.
8715 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8716 (completion_list_objc_symbol): Update.
8717 (default_make_symbol_completion_list_break_on): Update.
8718 * tracepoint.c (scope_info): Update.
8719 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8720 (tui_get_begin_asm_address): Update.
8721 * valops.c (find_function_in_inferior): Update.
8722 * value.c (value_static_field): Update.
8723 (value_fn_field): Update.
8724
50e65b17
TT
87252014-02-26 Tom Tromey <tromey@redhat.com>
8726
8727 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8728 bound minimal symbols. Move code that knows about minsym
8729 table layout...
8730 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8731 function.
8732 * minsyms.h (minimal_symbol_upper_bound): Declare.
8733 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8734 minimal_symbol_upper_bound.
8735
1b588015
JB
87362014-02-27 Joel Brobecker <brobecker@adacore.com>
8737
8738 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8739 Use the type's name if its basic type does not have a tag.
8740
dbb9c2b1
JB
87412014-02-27 Joel Brobecker <brobecker@adacore.com>
8742
8743 * dwarf2read.c (read_subrange_type): Add comment.
8744
55426c9d
JB
87452014-02-27 Joel Brobecker <brobecker@adacore.com>
8746
8747 * dwarf2read.c (update_enumeration_type_from_children): New
8748 function, mostly extracted from process_structure_scope.
8749 (read_enumeration_type): Call update_enumeration_type_from_children.
8750 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8751 and flag_flag_enum fields.
8752
f2fce0ca
PA
87532014-02-26 Pedro Alves <palves@redhat.com>
8754
8755 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8756 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8757 to_xfer_partial method.
8758
7a44e40e
PA
87592014-02-26 Pedro Alves <palves@redhat.com>
8760
8761 * target.c (complete_target_initialization): Don't install
8762 default_xfer_partial as to_xfer_partial hook.
8763 (nomemory): Delete.
8764 (update_current_target): Don't INHERIT nor de_fault
8765 deprecated_xfer_memory. Delete de_fault macro.
8766 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8767 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8768 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8769 field.
8770
bd265cd0
PA
87712014-02-26 Pedro Alves <palves@redhat.com>
8772
8773 * go32-nat.c (my_write_child): New function.
8774 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8775 (go32_xfer_partial): New function.
8776 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8777 Instead install a to_xfer_partial hook.
8778
9d46c4e5
PA
87792014-02-26 Pedro Alves <palves@redhat.com>
8780
8781 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8782 to_xfer_partial helper. Rewrite.
8783 (procfs_xfer_partial): New function.
8784 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8785 Install a to_xfer_partial hook.
8786
a1583b1f
PA
87872014-02-26 Pedro Alves <palves@redhat.com>
8788
8789 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8790 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8791 (m32r_xfer_partial): New function.
8792 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8793 Install a to_xfer_partial hook.
8794
6df1b29f
PA
87952014-02-26 Pedro Alves <palves@redhat.com>
8796
8797 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8798 helper.
8799 (mips_xfer_partial): New function.
8800 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8801 hook. Install a to_xfer_partial hook.
8802
dc53a7ad
JB
88032014-02-26 Joel Brobecker <brobecker@adacore.com>
8804
8805 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8806 * gdbtypes.c (create_array_type_with_stride): New function,
8807 renaming create_array_type, but with an added parameter
8808 called "bit_stride".
8809 (create_array_type): Re-implement using
8810 create_array_type_with_stride.
8811 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8812 and DW_AT_bit_stride attributes.
8813
12ab52e9
PA
88142014-02-26 Pedro Alves <palves@redhat.com>
8815
8816 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8817 task-specific breakpoints.
8818
d16461ae
PA
88192014-02-25 Pedro Alves <palves@redhat.com>
8820
8821 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8822 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8823
a8b16220
SS
88242014-02-25 Stan Shebs <stan@codesourcery.com>
8825
8826 * defs.h: Annotate comments for Doxygen.
8827
b9e795ee
TT
88282014-02-25 Tom Tromey <tromey@redhat.com>
8829
8830 * target.h (target_ignore): Don't declare.
8831 * target.c (target_ignore): Remove.
8832
849c862e
JK
88332014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8834
8835 PR gdb/16626
8836 * auto-load.c (auto_load_objfile_script_1): Change filename to
8837 debugfile.
8838
475109d8
JB
88392014-02-25 Joel Brobecker <brobecker@adacore.com>
8840
8841 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8842 documentation. Adjust prototype to match the target_ops
8843 to_xfer_partial method. Adjust implementation accordingly.
8844
e186c3bd
HZ
88452014-02-25 Hui Zhu <hui@codesourcery.com>
8846
8847 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8848 to_traceframe_info.
8849
6d451942
KB
88502014-02-25 Kevin Buettner <kevinb@redhat.com>
8851
041ab8b4 8852 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8853 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8854 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8855 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8856 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8857 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8858 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8859 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8860 New constants.
8861 (rl78_register_type): Use a data pointer type for SP and
8862 new pseudo registers mentioned above. Use a 16 bit integer
8863 type for all other register pairs.
8864 (rl78_register_name, rl78_g10_register_name): Update for
8865 new pseudo registers.
8866 (rl78_pseudo_register_read): Likewise.
8867 (rl78_pseudo_register_write): Likewise.
8868 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8869 to the newly added pseudo registers.
8870
eddf0bae
DE
88712014-02-24 Doug Evans <dje@google.com>
8872
8873 * value.c (record_latest_value): Fix comment.
8874 * printcmd.c (print_command_1): Remove code to handle -1 return from
8875 record_latest_value.
8876
e96027e0
PA
88772014-02-24 Pedro Alves <palves@redhat.com>
8878
8879 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8880 deprecated_xfer_memory hook.
8881 (procfs_xfer_partial): Call procfs_xfer_memory instead
8882 of the deprecated_xfer_memory target hook.
8883 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8884 helper.
8885
0837c976
YZ
88862014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8887
8888 * windows-nat.c (windows_xfer_shared_libraries): Return
8889 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8890 requested object is TARGET_OBJECT_LIBRARIES.
8891
bc113b4e
YQ
88922014-02-24 Yao Qi <yao@codesourcery.com>
8893
8894 * target.h (enum target_xfer_status)
8895 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8896 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8897 explicitly. New.
8898 * corefile.c (memory_error_message): User updated.
8899 * exec.c (section_table_read_available_memory): Likewise.
8900 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8901 * target.c (target_xfer_status_to_string): Likewise.
8902 (raw_memory_xfer_partial): Likewise.
8903 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8904 * valops.c (read_value_memory): Likewise.
8905 * exec.h: Update comments.
8906
01cb8804
YQ
89072014-02-24 Yao Qi <yao@codesourcery.com>
8908
8909 * target.c (target_xfer_status_to_string): Rename argument err
8910 to status.
8911 * target.h (target_xfer_status_to_string): Update declaration.
8912 Replace target_xfer_error_to_string with
8913 target_xfer_status_to_string in comment.
8914
93063aa6
YQ
89152014-02-24 Yao Qi <yao@codesourcery.com>
8916
8917 * mips-linux-nat.c (super_close): Update its type.
8918 (mips_linux_close): Pass 'self' to super_close.
8919
5c328c05
YQ
89202014-02-24 Yao Qi <yao@codesourcery.com>
8921
8922 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8923 * corefile.c (read_memory): Adjusted.
8924 * target.c (target_write_with_progress): Adjusted.
8925
f73023dd
YQ
89262014-02-23 Yao Qi <yao@codesourcery.com>
8927
8928 Revert two patches:
8929
8930 2013-10-25 Yao Qi <yao@codesourcery.com>
8931
8932 * remote.c (remote_traceframe_info): Return early if
8933 traceframe is not selected.
8934
8935 2013-07-19 Yao Qi <yao@codesourcery.com>
8936
8937 * target.c (update_current_target): Change the default action
8938 of 'to_traceframe_info' from tcomplain to return_zero.
8939 * target.h (struct target_ops) <to_traceframe_info>: Add more
8940 comments.
8941
5a2eb0ef
YQ
89422014-02-23 Yao Qi <yao@codesourcery.com>
8943
8944 * valops.c (read_value_memory): Rewrite it. Call
8945 target_xfer_partial in a loop.
8946 * exec.h (section_table_available_memory): Remove declaration.
8947 Move comments to ...
8948 * exec.c (section_table_available_memory): ... here. Make it
8949 static.
8950
1ee79381
YQ
89512014-02-23 Yao Qi <yao@codesourcery.com>
8952
8953 * exec.c (section_table_read_available_memory): New function.
8954 * exec.h (section_table_read_available_memory): Declare.
8955 * ctf.c (ctf_xfer_partial): Call
8956 section_table_read_available_memory.
8957 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8958
1ca49d37
YQ
89592014-02-23 Yao Qi <yao@codesourcery.com>
8960
8961 * ctf.c (ctf_xfer_partial): Move code to ...
8962 * exec.c (exec_read_partial_read_only): ... it. New function.
8963 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8964 * tracefile.c: Include "exec.h".
8965 * exec.h (exec_read_partial_read_only): Declare.
8966
a283690e
YQ
89672014-02-23 Yao Qi <yao@codesourcery.com>
8968
8969 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8970 (tfile_has_memory): Remove.
8971 (init_tfile_ops): Don't set fields to_has_all_memory and
8972 to_has_memory of tfile_ops.
8973 * tracefile.c (tracefile_has_all_memory): New function.
8974 (tracefile_has_memory): New function.
8975 (init_tracefile_ops): Initialize fields to_has_all_memory and
8976 to_has_memory of 'ops'.
8977
12e03cd0
YQ
89782014-02-23 Yao Qi <yao@codesourcery.com>
8979
8980 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8981 (ctf_thread_alive, ctf_get_trace_status): Remove.
8982 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8983 init_tracefile_ops.
8984 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8985 (tfile_has_stack, tfile_has_registers): Remove.
8986 (tfile_thread_alive): Remove.
8987 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8988 init_tracefile_ops.
8989 * tracefile.c (tracefile_has_stack): New function.
8990 (tracefile_has_registers): New function.
8991 (tracefile_thread_alive): New function.
8992 (tracefile_get_trace_status): New function.
8993 (init_tracefile_ops): New function.
8994 * tracefile.h (init_tracefile_ops): Declare.
8995
11395323
YQ
89962014-02-23 Yao Qi <yao@codesourcery.com>
8997
8998 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8999 (O_LARGEFILE): Likewise.
9000 (tfile_ops): Likewise.
9001 (TRACE_HEADER_SIZE): Likewise.
9002 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9003 (cur_data_size): Likewise.
9004 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9005 (tfile_close, tfile_files_info): Likewise.
9006 (tfile_get_trace_status): Likewise.
9007 (tfile_get_tracepoint_status): Likewise.
9008 (tfile_get_traceframe_address): Likewise.
9009 (tfile_trace_find, match_blocktype): Likewise.
9010 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9011 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9012 (tfile_get_trace_state_variable_value): Likewise.
9013 (tfile_has_all_memory, tfile_has_memory): Likewise.
9014 (tfile_has_stack, tfile_has_registers): Likewise.
9015 (tfile_thread_alive, build_traceframe_info): Likewise.
9016 (tfile_traceframe_info, init_tfile_ops): Likewise.
9017 (_initialize_tracepoint): Don't call init_tfile_ops
9018 and add_target_with_completer.
9019 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9020 exec.h, completer.h and filenames.h.
9021 (_initialize_tracefile_tfile): New function.
9022
7951c4eb
YQ
90232014-02-23 Yao Qi <yao@codesourcery.com>
9024
9025 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9026 tracefile-tfile.o.
9027 (HFILES_NO_SRCDIR): Add tracefile.h.
9028 * ctf.c: Include "tracefile.h".
9029 * tracefile.h: New file.
9030 * tracefile.c: New file
9031 * tracefile-tfile.c: New file.
9032 * tracepoint.c: Include "tracefile.h".
9033 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9034 (stop_reason_names): Add const.
9035 (trace_file_writer_xfree): Move it to tracefile.c.
9036 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9037 (trace_save_ctf): Likewise.
9038 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9039 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9040 (tfile_write_header, tfile_write_regblock_type): Likewise.
9041 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9042 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9043 (tfile_write_raw_data, tfile_end): Likewise.
9044 (tfile_trace_file_writer_new): Likewise.
9045 (free_uploaded_tp): Make it extern.
9046 (free_uploaded_tsv): Make it extern.
9047 (_initialize_tracepoint): Move code to register command 'tsave'
9048 to tracefile.c.
9049 * tracepoint.h (stop_reason_names): Declare.
9050 (struct trace_frame_write_ops): Move it to tracefile.h.
9051 (struct trace_file_write_ops): Likewise.
9052 (struct trace_file_writer): Likewise.
9053 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9054
184cd072
JK
90552014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9056
9057 PR gdb/16594
9058 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9059 process name.
9060 (get_cores_used_by_process): New parameter num_cores, use it.
9061 (linux_xfer_osdata_processes): Pass num_cores to it.
9062 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9063 process name.
9064
c63528fc
AK
90652014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9066
9067 * target.c (memory_xfer_partial): Fix length arg in call to
9068 breakpoint_xfer_memory.
9069
d7b30f67
SDJ
90702014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9071
9072 PR tdep/16397
9073 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9074 number comes after the + or - signs. Adjust length of register
9075 name to be extracted.
9076
8838afaf
TT
90772014-02-20 Tom Tromey <tromey@redhat.com>
9078
9079 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9080 (ada_varobj_ops): Mark "extern".
9081
05227d14
TT
90822014-02-20 Tom Tromey <tromey@redhat.com>
9083
9084 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9085
1254eefc
DE
90862014-02-20 Doug Evans <xdje42@gmail.com>
9087
9088 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9089 All callers updated.
9090 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9091 All callers updated.
9092 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9093 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9094
adde2bff
DE
90952014-02-20 lin zuojian <manjian2006@gmail.com>
9096 Joel Brobecker <brobecker@adacore.com>
9097 Doug Evans <xdje42@gmail.com>
9098
9099 PR symtab/16581
9100 * dwarf2read.c (struct die_info): New member in_process.
9101 (reset_die_in_process): New function.
9102 (process_die): Set it at the start, reset when returning.
9103 (inherit_abstract_dies): Only call process_die if origin_child_die
9104 not already being processed.
9105
3be75f87
JB
91062014-02-20 Joel Brobecker <brobecker@adacore.com>
9107
9108 * windows-nat.c (handle_unload_dll): Add function documentation.
9109 (do_initial_windows_stuff): Add comment explaining why we wait
9110 until after inferior initialization has finished before
9111 processing all DLLs.
9112
47f7ffdb
JB
91132014-02-20 Joel Brobecker <brobecker@adacore.com>
9114
9115 * windows-nat.c (get_module_name): Delete.
9116 (windows_get_exec_module_filename): New function, mostly
9117 inspired from get_module_name.
9118 (windows_pid_to_exec_file): Replace call to get_module_name
9119 by call to windows_get_exec_module_filename.
9120
1cd9feab
JB
91212014-02-20 Joel Brobecker <brobecker@adacore.com>
9122
9123 * windows-nat.c (handle_load_dll): Rewrite this function's
9124 introductory comment. Remove code using get_module_name
9125 to get the DLL's name.
9126
ea39ad35
JB
91272014-02-20 Joel Brobecker <brobecker@adacore.com>
9128
9129 * windows-nat.c (get_windows_debug_event): Ignore
9130 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9131 if windows_initialization_done == 0.
9132 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9133 Adjust implementation to always load all DLLs.
9134 (do_initial_windows_stuff): Replace call to
9135 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9136
95060284
JB
91372014-02-20 Joel Brobecker <brobecker@adacore.com>
9138
9139 * windows-nat.c (_initialize_windows_nat): Deprecate the
9140 "dll-symbols" command. Turn the "add-shared-symbol-files"
9141 and "assf" aliases into commands, and deprecate them as well.
9142 * NEWS: Add entry explaining that "dll-symbols" and its two
9143 aliases are now deprecated.
9144
8d4fdb12
JB
91452014-02-20 Joel Brobecker <brobecker@adacore.com>
9146
9147 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9148 new-line in debug string. Remove trailing spaces.
9149
1b281443
SS
91502014-02-19 Stan Shebs <stan@codesourcery.com>
9151
9152 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9153
f7bd0f78
SC
91542014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9155
9156 * NEWS: Add entry for the new feature
9157 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9158 and class values.
9159
399ebc3d
SS
91602014-02-19 Stan Shebs <stan@codesourcery.com>
9161
9162 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9163
c658158d
PA
91642014-02-19 Pedro Alves <palves@redhat.com>
9165
9166 * common/ptid.h (struct ptid): Mention that process_stratum
9167 targets should prefer ptid.lwp.
9168
ba348170
PA
91692014-02-19 Pedro Alves <palves@redhat.com>
9170
9171 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9172 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9173 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9174 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9175 store remote thread ids rather than ptid.tid.
9176 (_initialize_remote): Adjust.
9177
ac01945b
TT
91782014-02-19 Tom Tromey <tromey@redhat.com>
9179
9180 * target.c (target_get_unwinder): Rewrite.
9181 (target_get_tailcall_unwinder): Rewrite.
9182 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9183 (record_btrace_to_get_tailcall_unwinder): New function.
9184 (init_record_btrace_ops): Update.
9185 * target.h (struct target_ops) <to_get_unwinder,
9186 to_get_tailcall_unwinder>: Now function pointers. Use
9187 TARGET_DEFAULT_RETURN.
9188
8476dc92
TT
91892014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9192 argument.
9193 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9194
c0eca49f
TT
91952014-02-19 Tom Tromey <tromey@redhat.com>
9196
9197 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9198 directly.
9199 * target-delegates.c: Rebuild.
9200 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9201 TARGET_DEFAULT_FUNC.
9202 * target.c (default_target_decr_pc_after_break): Rename from
9203 forward_target_decr_pc_after_break. Simplify.
9204 (target_decr_pc_after_break): Rely on delegation.
9205
596b6b39
TT
92062014-02-19 Tom Tromey <tromey@redhat.com>
9207
9208 * target.c (update_current_target): Do not INHERIT to_doc or
9209 to_magic. Do not de_fault to_open or to_close.
9210
b427c1bc
TT
92112014-02-19 Tom Tromey <tromey@redhat.com>
9212
9213 * gcore.h (objfile_find_memory_regions): Declare.
9214 * gcore.c (objfile_find_memory_regions): No longer static. Add
9215 "self" argument.
9216 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9217 * exec.c: Include gcore.h.
9218 (exec_set_find_memory_regions): Remove.
9219 (exec_find_memory_regions): Remove.
9220 (exec_do_find_memory_regions): Remove.
9221 (init_exec_ops): Update.
9222 * defs.h (exec_set_find_memory_regions): Remove.
9223
9b144037
TT
92242014-02-19 Tom Tromey <tromey@redhat.com>
9225
9226 * target-delegates.c: Rebuild.
9227 * target.h (struct target_ops) <to_extra_thread_info,
9228 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9229 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9230 not 0, in TARGET_DEFAULT_RETURN.
9231
555bbdeb
TT
92322014-02-19 Tom Tromey <tromey@redhat.com>
9233
9234 * target.c (complete_target_initialization): Remove casts. Use
9235 return_zero_has_execution.
9236 (return_zero): Add "ignore" argument.
9237 (return_zero_has_execution): New function.
9238 (init_dummy_target): Remove casts. Use
9239 return_zero_has_execution.
9240
be4ddd36
TT
92412014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * target.c (update_current_target): Update comments. Do not
9244 INHERIT to_stratum.
9245
2117c711
TT
92462014-02-19 Tom Tromey <tromey@redhat.com>
9247
9248 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9249 needed.
9250 * corelow.c (core_read_description): Delegate when needed.
9251 * remote.c (remote_read_description): Delegate when needed.
9252 * target-delegates.c: Rebuild.
9253 * target.c (target_read_description): Rewrite.
9254 * target.h (struct target_ops) <to_read_description>: Update
9255 comment. Use TARGET_DEFAULT_RETURN.
9256
e88ef65c
TT
92572014-02-19 Tom Tromey <tromey@redhat.com>
9258
9259 * target-delegates.c: Rebuild.
9260 * target.c (update_current_target): Don't inherit or default
9261 to_can_run.
9262 (find_default_run_target): Check against delegate_can_run.
9263 * target.h (struct target_ops) <to_can_run>: Use
9264 TARGET_DEFAULT_RETURN.
9265
86a0854a
TT
92662014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * target-delegates.c: Rebuild.
9269 * target.c (target_disconnect): Unconditionally delegate.
9270 * target.h (struct target_ops) <to_disconnect>: Use
9271 TARGET_DEFAULT_NORETURN.
9272
ee97f592
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * record.c (record_stop): Unconditionally delegate.
9276 * target-delegates.c: Rebuild.
9277 * target.c (target_stop_recording): Unconditionally delegate.
9278 * target.h (struct target_ops) <to_stop_recording>: Use
9279 TARGET_DEFAULT_IGNORE.
9280
6dc7fcf4
TT
92812014-02-19 Tom Tromey <tromey@redhat.com>
9282
9283 * target-delegates.c: Rebuild.
9284 * target.c (target_enable_btrace): Unconditionally delegate.
9285 * target.h (struct target_ops) <to_enable_btrace>: Use
9286 TARGET_DEFAULT_NORETURN.
9287
eb5b20d4
TT
92882014-02-19 Tom Tromey <tromey@redhat.com>
9289
9290 * target-delegates.c: Rebuild.
9291 * target.c (target_read_btrace): Unconditionally delegate.
9292 * target.h (struct target_ops) <to_read_btrace>: Use
9293 TARGET_DEFAULT_NORETURN.
9294
9ace480d
TT
92952014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target-delegates.c: Rebuild.
9298 * target.c (target_teardown_btrace): Unconditionally delegate.
9299 * target.h (struct target_ops) <to_teardown_btrace>: Use
9300 TARGET_DEFAULT_NORETURN.
9301
8dc292d3
TT
93022014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target-delegates.c: Rebuild.
9305 * target.c (target_disable_btrace): Unconditionally delegate.
9306 * target.h (struct target_ops) <to_disable_btrace>: Use
9307 TARGET_DEFAULT_NORETURN.
9308
58a5184e
TT
93092014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target-delegates.c: Rebuild.
9312 * target.c (default_search_memory): New function.
9313 (simple_search_memory): Update comment.
9314 (target_search_memory): Unconditionally delegate.
9315 * target.h (struct target_ops) <to_search_memory>: Use
9316 TARGET_DEFAULT_FUNC.
9317
8de71aab
TT
93182014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * auxv.c (default_auxv_parse): No longer static.
9321 (target_auxv_parse): Unconditionally delegate.
9322 * auxv.h (default_auxv_parse): Declare.
9323 * target-delegates.c: Rebuild.
9324 * target.c: Include auxv.h.
9325 * target.h (struct target_ops) <to_auxv_parse>: Use
9326 TARGET_DEFAULT_FUNC.
9327
6b2c5a57
TT
93282014-02-19 Tom Tromey <tromey@redhat.com>
9329
9330 * target-delegates.c: Rebuild.
9331 * target.c (target_memory_map): Unconditionally delegate.
9332 * target.h (struct target_ops) <to_memory_map>: Use
9333 TARGET_DEFAULT_RETURN.
9334
cbffc065
TT
93352014-02-19 Tom Tromey <tromey@redhat.com>
9336
9337 * target-delegates.c: Rebuild.
9338 * target.c (target_thread_alive): Unconditionally delegate.
9339 * target.h (struct target_ops) <to_thread_alive>: Use
9340 TARGET_DEFAULT_RETURN.
9341
f09e2107
TT
93422014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target-delegates.c: Rebuild.
9345 * target.c (target_save_record): Unconditionally delegate.
9346 * target.h (struct target_ops) <to_save_record>: Use
9347 TARGET_DEFAULT_NORETURN.
9348
07366925
TT
93492014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * target-delegates.c: Rebuild.
9352 * target.c (target_delete_record): Unconditionally delegate.
9353 * target.h (struct target_ops) <to_delete_record>: Use
9354 TARGET_DEFAULT_NORETURN.
9355
dd2e9d25
TT
93562014-02-19 Tom Tromey <tromey@redhat.com>
9357
9358 * target-delegates.c: Rebuild.
9359 * target.c (target_record_is_replaying): Unconditionally
9360 delegate.
9361 * target.h (struct target_ops) <to_record_is_replaying>: Use
9362 TARGET_DEFAULT_RETURN.
9363
671e76cc
TT
93642014-02-19 Tom Tromey <tromey@redhat.com>
9365
9366 * target-delegates.c: Rebuild.
9367 * target.c (target_goto_record_begin): Unconditionally delegate.
9368 * target.h (struct target_ops) <to_goto_record_begin>: Use
9369 TARGET_DEFAULT_NORETURN.
9370
e9179bb3
TT
93712014-02-19 Tom Tromey <tromey@redhat.com>
9372
9373 * target-delegates.c: Rebuild.
9374 * target.c (target_goto_record_end): Unconditionally delegate.
9375 * target.h (struct target_ops) <to_goto_record_end>: Use
9376 TARGET_DEFAULT_NORETURN.
9377
05969c84
TT
93782014-02-19 Tom Tromey <tromey@redhat.com>
9379
9380 * target-delegates.c: Rebuild.
9381 * target.c (target_goto_record): Unconditionally delegate.
9382 * target.h (struct target_ops) <to_goto_record>: Use
9383 TARGET_DEFAULT_NORETURN.
9384
3679abfa
TT
93852014-02-19 Tom Tromey <tromey@redhat.com>
9386
9387 * target-delegates.c: Rebuild.
9388 * target.c (target_insn_history): Unconditionally delegate.
9389 * target.h (struct target_ops) <to_insn_history>: Use
9390 TARGET_DEFAULT_NORETURN.
9391
8444ab58
TT
93922014-02-19 Tom Tromey <tromey@redhat.com>
9393
9394 * target-delegates.c: Rebuild.
9395 * target.c (target_insn_history_from): Unconditionally delegate.
9396 * target.h (struct target_ops) <to_insn_history_from>: Use
9397 TARGET_DEFAULT_NORETURN.
9398
c29302cc
TT
93992014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target-delegates.c: Rebuild.
9402 * target.c (target_insn_history_range): Unconditionally delegate.
9403 * target.h (struct target_ops) <to_insn_history_range>: Use
9404 TARGET_DEFAULT_NORETURN.
9405
170049d4
TT
94062014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * target-delegates.c: Rebuild.
9409 * target.c (target_call_history): Unconditionally delegate.
9410 * target.h (struct target_ops) <to_call_history>: Use
9411 TARGET_DEFAULT_NORETURN.
9412
16fc27d6
TT
94132014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target-delegates.c: Rebuild.
9416 * target.c (target_call_history_from): Unconditionally delegate.
9417 * target.h (struct target_ops) <to_call_history_from>: Use
9418 TARGET_DEFAULT_NORETURN.
9419
115d9817
TT
94202014-02-19 Tom Tromey <tromey@redhat.com>
9421
9422 * target-delegates.c: Rebuild.
9423 * target.c (target_call_history_range): Unconditionally delegate.
9424 * target.h (struct target_ops) <to_call_history_range>: Use
9425 TARGET_DEFAULT_NORETURN.
9426
eb276a6b
TT
94272014-02-19 Tom Tromey <tromey@redhat.com>
9428
9429 * target-delegates.c: Rebuild.
9430 * target.c (target_verify_memory): Unconditionally delegate.
9431 * target.h (struct target_ops) <to_verify_memory>: Use
9432 TARGET_DEFAULT_NORETURN.
9433
9e538d0d
TT
94342014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target-delegates.c: Rebuild.
9437 * target.c (target_core_of_thread): Unconditionally delegate.
9438 * target.h (struct target_ops) <to_core_of_thread>: Use
9439 TARGET_DEFAULT_RETURN.
9440
f6fb2925
TT
94412014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * target-delegates.c: Rebuild.
9444 * target.c (target_flash_done): Unconditionally delegate.
9445 * target.h (struct target_ops) <to_flash_done>: Use
9446 TARGET_DEFAULT_NORETURN.
9447
e8a6c6ac
TT
94482014-02-19 Tom Tromey <tromey@redhat.com>
9449
9450 * target-delegates.c: Rebuild.
9451 * target.c (target_flash_erase): Unconditionally delegate.
9452 * target.h (struct target_ops) <to_flash_erase>: Use
9453 TARGET_DEFAULT_NORETURN.
9454
7e35c012
TT
94552014-02-19 Tom Tromey <tromey@redhat.com>
9456
9457 * target-delegates.c: Rebuild.
9458 * target.c (target_get_section_table): Unconditionally delegate.
9459 * target.h (struct target_ops) <to_get_section_table>: Use
9460 TARGET_DEFAULT_RETURN.
9461
770234d3
TT
94622014-02-19 Tom Tromey <tromey@redhat.com>
9463
9464 * target-delegates.c: Rebuild.
9465 * target.c (target_pid_to_str): Unconditionally delegate.
9466 (init_dummy_target): Don't initialize to_pid_to_str.
9467 (default_pid_to_str): Rename from dummy_pid_to_str.
9468 * target.h (struct target_ops) <to_pid_to_str>: Use
9469 TARGET_DEFAULT_FUNC.
9470
09b0dc2b
TT
94712014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target-delegates.c: Rebuild.
9474 * target.c (target_find_new_threads): Unconditionally delegate.
9475 * target.h (struct target_ops) <to_find_new_threads>: Use
9476 TARGET_DEFAULT_RETURN.
9477
7d4f8efa
TT
94782014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * target-delegates.c: Rebuild.
9481 * target.c (target_program_signals): Unconditionally delegate.
9482 * target.h (struct target_ops) <to_program_signals>: Use
9483 TARGET_DEFAULT_IGNORE.
9484
035cad7f
TT
94852014-02-19 Tom Tromey <tromey@redhat.com>
9486
9487 * target-delegates.c: Rebuild.
9488 * target.c (target_pass_signals): Unconditionally delegate.
9489 * target.h (struct target_ops) <to_pass_signals>: Use
9490 TARGET_DEFAULT_IGNORE.
9491
8d657035
TT
94922014-02-19 Tom Tromey <tromey@redhat.com>
9493
9494 * target-delegates.c: Rebuild.
9495 * target.c (default_mourn_inferior): New function.
9496 (target_mourn_inferior): Unconditionally delegate.
9497 * target.h (struct target_ops) <to_mourn_inferior>: Use
9498 TARGET_DEFAULT_FUNC.
9499
098dba18
TT
95002014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target-delegates.c: Rebuild.
9503 * target.c (default_follow_fork): New function.
9504 (target_follow_fork): Unconditionally delegate.
9505 * target.h (struct target_ops) <to_follow_fork>: Use
9506 TARGET_DEFAULT_FUNC.
9507
423a4807
TT
95082014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target-delegates.c: Rebuild.
9511 * target.c (target_kill): Unconditionally delegate.
9512 * target.h (struct target_ops) <to_kill>: Use
9513 TARGET_DEFAULT_NORETURN.
9514
6c7e5e5c
TT
95152014-02-19 Tom Tromey <tromey@redhat.com>
9516
9517 * target-delegates.c: Rebuild.
9518 * target.c (target_masked_watch_num_registers): Unconditionally
9519 delegate.
9520 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9521 Use TARGET_DEFAULT_RETURN.
9522
8b1c364c
TT
95232014-02-19 Tom Tromey <tromey@redhat.com>
9524
9525 * target-delegates.c: Rebuild.
9526 * target.c (target_remove_mask_watchpoint): Unconditionally
9527 delegate.
9528 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9529 TARGET_DEFAULT_RETURN.
9530
cd4ae029
TT
95312014-02-19 Tom Tromey <tromey@redhat.com>
9532
9533 * target-delegates.c: Rebuild.
9534 * target.c (target_insert_mask_watchpoint): Unconditionally
9535 delegate.
9536 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9537 TARGET_DEFAULT_RETURN.
9538
a134316b
TT
95392014-02-19 Tom Tromey <tromey@redhat.com>
9540
9541 * target-delegates.c: Rebuild.
9542 * target.c (target_ranged_break_num_registers): Unconditionally
9543 delegate.
9544 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9545 Use TARGET_DEFAULT_RETURN.
9546
ad5989bd
TT
95472014-02-19 Tom Tromey <tromey@redhat.com>
9548
9549 * target-delegates.c: Rebuild.
9550 * target.c (target_fetch_registers): Unconditionally delegate.
9551 * target.h (struct target_ops) <to_fetch_registers>: Use
9552 TARGET_DEFAULT_NORETURN.
9553
46ee7e8d
TT
95542014-02-19 Tom Tromey <tromey@redhat.com>
9555
9556 * target-delegates.c: Rebuild.
9557 * target.c (update_current_target): Don't inherit or default
9558 to_stop.
9559 * target.h (struct target_ops) <to_stop>: Use
9560 TARGET_DEFAULT_IGNORE.
9561
843f59ed
TT
95622014-02-19 Tom Tromey <tromey@redhat.com>
9563
9564 * target-delegates.c: Rebuild.
9565 * target.c (update_current_target): Don't inherit or default
9566 to_can_run_breakpoint_commands.
9567 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9568 Use TARGET_DEFAULT_RETURN.
9569
ccfde2a0
TT
95702014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target-delegates.c: Rebuild.
9573 * target.c (update_current_target): Don't inherit or default
9574 to_supports_evaluation_of_breakpoint_conditions.
9575 * target.h (struct target_ops)
9576 <to_supports_evaluation_of_breakpoint_conditions>: Use
9577 TARGET_DEFAULT_RETURN.
9578
0de91722
TT
95792014-02-19 Tom Tromey <tromey@redhat.com>
9580
9581 * target-delegates.c: Rebuild.
9582 * target.c (update_current_target): Don't inherit or default
9583 to_augmented_libraries_svr4_read.
9584 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9585 Use TARGET_DEFAULT_RETURN.
9586
9a7d8b48
TT
95872014-02-19 Tom Tromey <tromey@redhat.com>
9588
9589 * target-delegates.c: Rebuild.
9590 * target.c (update_current_target): Don't inherit or default
9591 to_can_use_agent.
9592 * target.h (struct target_ops) <to_can_use_agent>: Use
9593 TARGET_DEFAULT_RETURN.
9594
d9db5b21
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_use_agent.
9600 * target.h (struct target_ops) <to_use_agent>: Use
9601 TARGET_DEFAULT_NORETURN.
9602
92155eeb
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_traceframe_info.
9608 (return_null): Remove.
9609 * target.h (struct target_ops) <to_traceframe_info>: Use
9610 TARGET_DEFAULT_RETURN.
9611
d6522a22
TT
96122014-02-19 Tom Tromey <tromey@redhat.com>
9613
9614 * target-delegates.c: Rebuild.
9615 * target.c (update_current_target): Don't inherit or default
9616 to_static_tracepoint_markers_by_strid.
9617 * target.h (struct target_ops)
9618 <to_static_tracepoint_markers_by_strid>: Use
9619 TARGET_DEFAULT_NORETURN.
9620
4c3e4425
TT
96212014-02-19 Tom Tromey <tromey@redhat.com>
9622
9623 * target-delegates.c: Rebuild.
9624 * target.c (update_current_target): Don't inherit or default
9625 to_static_tracepoint_marker_at.
9626 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9627 Use TARGET_DEFAULT_RETURN.
9628
dcd6917f
TT
96292014-02-19 Tom Tromey <tromey@redhat.com>
9630
9631 * target-delegates.c: Rebuild.
9632 * target.c (update_current_target): Don't inherit or default
9633 to_set_permissions.
9634 * target.h (struct target_ops) <to_set_permissions>: Use
9635 TARGET_DEFAULT_IGNORE.
9636
22bcceee
TT
96372014-02-19 Tom Tromey <tromey@redhat.com>
9638
9639 * target-delegates.c: Rebuild.
9640 * target.c (update_current_target): Don't inherit or default
9641 to_get_tib_address.
9642 * target.h (struct target_ops) <to_get_tib_address>: Use
9643 TARGET_DEFAULT_NORETURN.
9644
8586ccaa
TT
96452014-02-19 Tom Tromey <tromey@redhat.com>
9646
9647 * target-delegates.c: Rebuild.
9648 * target.c (update_current_target): Don't inherit or default
9649 to_set_trace_notes.
9650 * target.h (struct target_ops) <to_set_trace_notes>: Use
9651 TARGET_DEFAULT_RETURN.
9652
91df8d1d
TT
96532014-02-19 Tom Tromey <tromey@redhat.com>
9654
9655 * target-delegates.c: Rebuild.
9656 * target.c (update_current_target): Don't initialize
9657 to_set_trace_buffer_size.
9658 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9659 TARGET_DEFAULT_IGNORE.
9660
8d526939
TT
96612014-02-19 Tom Tromey <tromey@redhat.com>
9662
9663 * target-delegates.c: Rebuild.
9664 * target.c (update_current_target): Don't inherit or default
9665 to_set_circular_trace_buffer.
9666 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9667 TARGET_DEFAULT_IGNORE.
9668
0bcfeddf
TT
96692014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * target-delegates.c: Rebuild.
9672 * target.c (update_current_target): Don't inherit or default
9673 to_set_disconnected_tracing.
9674 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9675 TARGET_DEFAULT_IGNORE.
9676
9249843f
TT
96772014-02-19 Tom Tromey <tromey@redhat.com>
9678
9679 * target-delegates.c: Rebuild.
9680 * target.c (update_current_target): Don't inherit or default
9681 to_get_min_fast_tracepoint_insn_len.
9682 (return_minus_one): Remove.
9683 * target.h (struct target_ops)
9684 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9685
ace92e7d
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_get_raw_trace_data.
9691 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9692 TARGET_DEFAULT_NORETURN.
9693
08120467
TT
96942014-02-19 Tom Tromey <tromey@redhat.com>
9695
9696 * target-delegates.c: Rebuild.
9697 * target.c (update_current_target): Don't inherit or default
9698 to_upload_trace_state_variables.
9699 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9700 Use TARGET_DEFAULT_RETURN.
9701
1e949b00
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_upload_tracepoints.
9707 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9708 TARGET_DEFAULT_RETURN.
9709
a2e6c147
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_save_trace_data.
9715 * target.h (struct target_ops) <to_save_trace_data>: Use
9716 TARGET_DEFAULT_NORETURN.
9717
959bcd0b
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_trace_state_variable_value.
9723 * target.h (struct target_ops)
9724 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9725
afc94e66
TT
97262014-02-19 Tom Tromey <tromey@redhat.com>
9727
9728 * target-delegates.c: Rebuild.
9729 * target.c (update_current_target): Don't inherit or default
9730 to_trace_find.
9731 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9732
e51c07ea
TT
97332014-02-19 Tom Tromey <tromey@redhat.com>
9734
9735 * target-delegates.c: Rebuild.
9736 * target.c (update_current_target): Don't inherit or default
9737 to_trace_stop.
9738 * target.h (struct target_ops) <to_trace_stop>: Use
9739 TARGET_DEFAULT_NORETURN.
9740
6fea14cd
TT
97412014-02-19 Tom Tromey <tromey@redhat.com>
9742
9743 * target-delegates.c: Rebuild.
9744 * target.c (update_current_target): Don't inherit or default
9745 to_get_tracepoint_status.
9746 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9747 TARGET_DEFAULT_NORETURN.
9748
4072d4ff
TT
97492014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * target-delegates.c: Rebuild.
9752 * target.c (update_current_target): Don't inherit or default
9753 to_get_trace_status.
9754 * target.h (struct target_ops) <to_get_trace_status>: Use
9755 TARGET_DEFAULT_RETURN.
9756
25da2e80
TT
97572014-02-19 Tom Tromey <tromey@redhat.com>
9758
9759 * target-delegates.c: Rebuild.
9760 * target.c (update_current_target): Don't inherit or default
9761 to_trace_start.
9762 * target.h (struct target_ops) <to_trace_start>: Use
9763 TARGET_DEFAULT_NORETURN.
9764
86dd181d
TT
97652014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target-delegates.c: Rebuild.
9768 * target.c (update_current_target): Don't inherit or default
9769 to_trace_set_readonly_regions.
9770 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9771 Use TARGET_DEFAULT_NORETURN.
9772
05c41993
TT
97732014-02-19 Tom Tromey <tromey@redhat.com>
9774
9775 * target-delegates.c: Rebuild.
9776 * target.c (update_current_target): Don't inherit or default
9777 to_disable_tracepoint.
9778 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9779 TARGET_DEFAULT_NORETURN.
9780
151f70f1
TT
97812014-02-19 Tom Tromey <tromey@redhat.com>
9782
9783 * target-delegates.c: Rebuild.
9784 * target.c (update_current_target): Don't inherit or default
9785 to_enable_tracepoint.
9786 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9787 TARGET_DEFAULT_NORETURN.
9788
94eb98b9
TT
97892014-02-19 Tom Tromey <tromey@redhat.com>
9790
9791 * target-delegates.c: Rebuild.
9792 * target.c (update_current_target): Don't inherit or default
9793 to_download_trace_state_variable.
9794 * target.h (struct target_ops) <to_download_trace_state_variable>:
9795 Use TARGET_DEFAULT_NORETURN.
9796
719acc4a
TT
97972014-02-19 Tom Tromey <tromey@redhat.com>
9798
9799 * target-delegates.c: Rebuild.
9800 * target.c (update_current_target): Don't inherit or default
9801 to_can_download_tracepoint.
9802 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9803 TARGET_DEFAULT_RETURN.
9804
9a980a22
TT
98052014-02-19 Tom Tromey <tromey@redhat.com>
9806
9807 * target-delegates.c: Rebuild.
9808 * target.c (update_current_target): Don't inherit or default
9809 to_download_tracepoint.
9810 * target.h (struct target_ops) <to_download_tracepoint>: Use
9811 TARGET_DEFAULT_NORETURN.
9812
5536135b
TT
98132014-02-19 Tom Tromey <tromey@redhat.com>
9814
9815 * target-delegates.c: Rebuild.
9816 * target.c (update_current_target): Don't inherit or default
9817 to_trace_init.
9818 * target.h (struct target_ops) <to_trace_init>: Use
9819 TARGET_DEFAULT_RETURN.
9820
9409d39e
TT
98212014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target-delegates.c: Rebuild.
9824 * target.c (update_current_target): Don't inherit or default
9825 to_supports_string_tracing.
9826 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9827 TARGET_DEFAULT_RETURN.
9828
aab1b22d
TT
98292014-02-19 Tom Tromey <tromey@redhat.com>
9830
9831 * target-delegates.c: Rebuild.
9832 * target.c (update_current_target): Don't inherit or default
9833 to_supports_enable_disable_tracepoint.
9834 * target.h (struct target_ops)
9835 <to_supports_enable_disable_tracepoint>: Use
9836 TARGET_DEFAULT_RETURN.
9837
a7304748
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_supports_multi_process.
9843 * target.h (struct target_ops) <to_supports_multi_process>: Use
9844 TARGET_DEFAULT_RETURN.
9845
4229b31d
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_get_ada_task_ptid.
9851 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9852 TARGET_DEFAULT_FUNC.
9853
43eba180
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_thread_architecture.
9859 * target.h (struct target_ops) <to_thread_architecture>: Use
9860 TARGET_DEFAULT_FUNC.
9861
fe31bf5b
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_execution_direction.
9867 * target.h (struct target_ops) <to_execution_direction>: Use
9868 TARGET_DEFAULT_FUNC.
9869
53e1cfc7
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_can_execute_reverse.
9875 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9876 TARGET_DEFAULT_RETURN.
9877 (target_can_execute_reverse): Unconditionally delegate.
9878
9bb9d61d
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_goto_bookmark.
9884 (dummy_goto_bookmark): Remove.
9885 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9886 * target.h (struct target_ops) <to_goto_bookmark>: Use
9887 TARGET_DEFAULT_NORETURN.
9888
3dbafbbb
TT
98892014-02-19 Tom Tromey <tromey@redhat.com>
9890
9891 * target-delegates.c: Rebuild.
9892 * target.c (update_current_target): Don't inherit or default
9893 to_get_bookmark.
9894 (dummy_get_bookmark): Remove.
9895 (init_dummy_target): Don't inherit or default to_get_bookmark.
9896 * target.h (struct target_ops) <to_get_bookmark>: Use
9897 TARGET_DEFAULT_NORETURN
9898
16f796b1
TT
98992014-02-19 Tom Tromey <tromey@redhat.com>
9900
9901 * target-delegates.c: Rebuild.
9902 * target.c (update_current_target): Don't inherit or default
9903 to_make_corefile_notes.
9904 (init_dummy_target): Don't initialize to_make_corefile_notes.
9905 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9906 TARGET_DEFAULT_FUNC.
9907
0b5a2719
TT
99082014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target-delegates.c: Rebuild.
9911 * target.c (update_current_target): Don't inherit or default
9912 to_find_memory_regions.
9913 (init_dummy_target): Don't initialize to_find_memory_regions.
9914 * target.h (struct target_ops) <to_find_memory_regions>: Use
9915 TARGET_DEFAULT_FUNC.
9916
d9cb0195
TT
99172014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target-delegates.c: Rebuild.
9920 * target.c (update_current_target): Don't inherit or default
9921 to_log_command.
9922 * target.h (struct target_ops) <to_log_command>: Use
9923 TARGET_DEFAULT_IGNORE.
9924 (target_log_command): Unconditionally delegate.
9925
830ca330
TT
99262014-02-19 Tom Tromey <tromey@redhat.com>
9927
9928 * target-delegates.c: Rebuild.
9929 * target.c (update_current_target): Don't inherit or default
9930 to_pid_to_exec_file.
9931 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9932 TARGET_DEFAULT_RETURN.
9933
825828fc
TT
99342014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target-delegates.c: Rebuild.
9937 * target.c (update_current_target): Don't inherit or default
9938 to_thread_name.
9939 (target_thread_name): Unconditionally delegate.
9940 * target.h (struct target_ops) <to_thread_name>: Use
9941 TARGET_DEFAULT_RETURN.
9942
4a7e6dda
TT
99432014-02-19 Tom Tromey <tromey@redhat.com>
9944
9945 * target-delegates.c: Rebuild.
9946 * target.c (update_current_target): Don't inherit or default
9947 to_extra_thread_info.
9948 * target.h (struct target_ops) <to_extra_thread_info>: Use
9949 TARGET_DEFAULT_RETURN.
9950
0db88c1d
TT
99512014-02-19 Tom Tromey <tromey@redhat.com>
9952
9953 * target-delegates.c: Rebuild.
9954 * target.c (update_current_target): Don't inherit or default
9955 to_has_exited.
9956 * target.h (struct target_ops) <to_has_exited>: Use
9957 TARGET_DEFAULT_RETURN..
9958
6a9fa051
TT
99592014-02-19 Tom Tromey <tromey@redhat.com>
9960
9961 * target-delegates.c: Rebuild.
9962 * target.c (update_current_target): Don't inherit or default
9963 to_set_syscall_catchpoint.
9964 (return_one): Remove.
9965 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9966 TARGET_DEFAULT_RETURN.
9967
62f64d7a
TT
99682014-02-19 Tom Tromey <tromey@redhat.com>
9969
9970 * target-delegates.c: Rebuild.
9971 * target.c (update_current_target): Don't inherit or default
9972 to_insert_exec_catchpoint.
9973 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9974 TARGET_DEFAULT_RETURN.
9975
cda0f38c
TT
99762014-01-08 Tom Tromey <tromey@redhat.com>
9977
9978 * target-delegates.c: Rebuild.
9979 * target.c (update_current_target): Don't inherit or default
9980 to_insert_exec_catchpoint.
9981 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9982 TARGET_DEFAULT_RETURN.
9983
95c3375e
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_remove_vfork_catchpoint.
9989 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9990 TARGET_DEFAULT_RETURN.
9991
7e18a8dc
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_insert_vfork_catchpoint.
9997 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9998 TARGET_DEFAULT_RETURN.
9999
e1a21fb7
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_remove_fork_catchpoint.
10005 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10006 TARGET_DEFAULT_RETURN.
10007
5958ebeb
TT
100082014-02-19 Tom Tromey <tromey@redhat.com>
10009
10010 * target-delegates.c: Rebuild.
10011 * target.c (update_current_target): Don't inherit or default
10012 to_insert_fork_catchpoint.
10013 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10014 TARGET_DEFAULT_RETURN.
10015
340ba4bf
TT
100162014-02-19 Tom Tromey <tromey@redhat.com>
10017
10018 * target-delegates.c: Rebuild.
10019 * target.c (update_current_target): Don't inherit or default
10020 to_post_startup_inferior.
10021 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10022 TARGET_DEFAULT_IGNORE.
10023
7634da87
TT
100242014-02-19 Tom Tromey <tromey@redhat.com>
10025
10026 * target-delegates.c: Rebuild.
10027 * target.c (update_current_target): Don't inherit or default
10028 to_load.
10029 * target.h (struct target_ops) <to_load>: Use
10030 TARGET_DEFAULT_NORETURN.
10031
e19e919f
TT
100322014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target-delegates.c: Rebuild.
10035 * target.c (update_current_target): Don't inherit or default
10036 to_terminal_info.
10037 * target.h (struct target_ops) <to_terminal_info>: Use
10038 TARGET_DEFAULT_FUNC.
10039
c6ea8f79
TT
100402014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 * target-delegates.c: Rebuild.
10043 * target.c (update_current_target): Don't inherit or default
10044 to_terminal_save_ours.
10045 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10046 TARGET_DEFAULT_IGNORE.
10047
e4a733f1
TT
100482014-02-19 Tom Tromey <tromey@redhat.com>
10049
10050 * target-delegates.c: Rebuild.
10051 * target.c (update_current_target): Don't inherit or default
10052 to_terminal_ours.
10053 * target.h (struct target_ops) <to_terminal_ours>: Use
10054 TARGET_DEFAULT_IGNORE.
10055
74fcbef9
TT
100562014-02-19 Tom Tromey <tromey@redhat.com>
10057
10058 * target-delegates.c: Rebuild.
10059 * target.c (update_current_target): Don't inherit or default
10060 to_terminal_ours_for_output.
10061 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10062 TARGET_DEFAULT_IGNORE.
10063
ddeaacc9
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * target-delegates.c: Rebuild.
10067 * target.c (update_current_target): Don't inherit or default
10068 to_terminal_inferior.
10069 * target.h (struct target_ops) <to_terminal_inferior>: Use
10070 TARGET_DEFAULT_IGNORE.
10071
0343661d
TT
100722014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * target-delegates.c: Rebuild.
10075 * target.c (update_current_target): Don't inherit or default
10076 to_terminal_init.
10077 * target.h (struct target_ops) <to_terminal_init>: Use
10078 TARGET_DEFAULT_IGNORE.
10079
77cdffe9
TT
100802014-02-19 Tom Tromey <tromey@redhat.com>
10081
10082 * target-delegates.c: Rebuild.
10083 * target.c (update_current_target): Don't inherit or default
10084 to_can_accel_watchpoint_condition.
10085 * target.h (struct target_ops)
10086 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10087
d03655e4
TT
100882014-02-19 Tom Tromey <tromey@redhat.com>
10089
10090 * target-delegates.c: Rebuild.
10091 * target.c (update_current_target): Don't inherit or default
10092 to_region_ok_for_hw_watchpoint.
10093 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10094 Use TARGET_DEFAULT_FUNC.
10095
65f160a9
TT
100962014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * target-delegates.c: Rebuild.
10099 * target.c (update_current_target): Don't inherit or default
10100 to_watchpoint_addr_within_range.
10101 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10102 Use TARGET_DEFAULT_FUNC.
10103
61dd109f
TT
101042014-02-19 Tom Tromey <tromey@redhat.com>
10105
10106 * target-delegates.c: Rebuild.
10107 * target.c (update_current_target): Don't inherit or default
10108 to_remove_watchpoint.
10109 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10110 TARGET_DEFAULT_NORETURN.
10111
016facd4
TT
101122014-02-19 Tom Tromey <tromey@redhat.com>
10113
10114 * target-delegates.c: Rebuild.
10115 * target.c (update_current_target): Don't inherit or default
10116 to_insert_watchpoint.
10117 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10118 TARGET_DEFAULT_RETURN.
10119
418dabac
TT
101202014-02-19 Tom Tromey <tromey@redhat.com>
10121
10122 * target-delegates.c: Rebuild.
10123 * target.c (update_current_target): Don't inherit or default
10124 to_remove_hw_breakpoint.
10125 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10126 TARGET_DEFAULT_RETURN.
10127
61b371f9
TT
101282014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target-delegates.c: Rebuild.
10131 * target.c (update_current_target): Don't inherit or default
10132 to_insert_hw_breakpoint.
10133 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10134 TARGET_DEFAULT_RETURN.
10135
52b51d06
TT
101362014-02-19 Tom Tromey <tromey@redhat.com>
10137
10138 * target-delegates.c: Rebuild.
10139 * target.c (update_current_target): Don't inherit or default
10140 to_can_use_hw_breakpoint.
10141 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10142 TARGET_DEFAULT_RETURN.
10143
f86e59b2
TT
101442014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * target-delegates.c: Rebuild.
10147 * target.c (update_current_target): Don't inherit or default
10148 to_files_info.
10149 * target.h (struct target_ops) <to_files_info>: Use
10150 TARGET_DEFAULT_IGNORE.
10151
6c628163
TT
101522014-02-19 Tom Tromey <tromey@redhat.com>
10153
10154 * target-delegates.c: Rebuild.
10155 * target.c (update_current_target): Don't inherit or default
10156 to_store.
10157 * target.h (struct target_ops) <to_store>: Use
10158 TARGET_DEFAULT_NORETURN.
10159
bebd3233
TT
101602014-02-19 Tom Tromey <tromey@redhat.com>
10161
10162 * target-delegates.c: Rebuild.
10163 * target.c (update_current_target): Don't inherit or default
10164 to_post_attach.
10165 * target.h (struct target_ops) <to_post_attach>: Use
10166 TARGET_DEFAULT_IGNORE.
10167
a53f3625
TT
101682014-02-19 Tom Tromey <tromey@redhat.com>
10169
10170 * target-delegates.c: Rebuild.
10171 * target.c (update_current_target): Don't inherit or default
10172 to_rcmd.
10173 (default_rcmd): New function.
10174 (do_monitor_command): Unconditionally delegate.
10175 * target.h (struct target_ops) <to_rmcd>: Use
10176 TARGET_DEFAULT_FUNC.
10177
e9a29200
TT
101782014-02-19 Tom Tromey <tromey@redhat.com>
10179
10180 * target-delegates.c: Rebuild.
10181 * target.c (init_dummy_target): Don't initialize to_attach.
10182 (target_attach): Unconditionally delegate.
10183 * target.h (struct target_ops) <to_attach>: Use
10184 TARGET_DEFAULT_FUNC.
10185
09da0d0a
TT
101862014-02-19 Tom Tromey <tromey@redhat.com>
10187
10188 * target-delegates.c: Rebuild.
10189 * target.c (target_detach): Unconditionally delegate.
10190 (init_dummy_target): Don't initialize to_detach.
10191 * target.h (struct target_ops) <to_detach>: Use
10192 TARGET_DEFAULT_IGNORE.
10193
5436ff03
TT
101942014-02-19 Tom Tromey <tromey@redhat.com>
10195
10196 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10197 Add argument.
10198 (target_augmented_libraries_svr4_read): Add argument.
10199 * target.c (update_current_target): Update.
10200 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10201 argument.
10202
f0d960ea
TT
102032014-02-19 Tom Tromey <tromey@redhat.com>
10204
10205 * target.h (struct target_ops) <to_call_history_range>: Add
10206 argument.
10207 * target.c (target_call_history_range): Add argument.
10208 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10209 argument.
10210 (record_btrace_call_history_from): Update.
10211
ec0aea04
TT
102122014-02-19 Tom Tromey <tromey@redhat.com>
10213
10214 * target.h (struct target_ops) <to_call_history_from>: Add
10215 argument.
10216 * target.c (target_call_history_from): Add argument.
10217 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10218 argument.
10219
5df2fcba
TT
102202014-02-19 Tom Tromey <tromey@redhat.com>
10221
10222 * target.h (struct target_ops) <to_call_history>: Add argument.
10223 * target.c (target_call_history): Add argument.
10224 * record-btrace.c (record_btrace_call_history): Add 'self'
10225 argument.
10226
4e99c6b7
TT
102272014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * target.h (struct target_ops) <to_insn_history_range>: Add
10230 argument.
10231 * target.c (target_insn_history_range): Add argument.
10232 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10233 argument.
10234 (record_btrace_insn_history_from): Update.
10235
9abc3ff3
TT
102362014-02-19 Tom Tromey <tromey@redhat.com>
10237
10238 * target.h (struct target_ops) <to_insn_history_from>: Add
10239 argument.
10240 * target.c (target_insn_history_from): Add argument.
10241 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10242 argument.
10243
7a6c5609
TT
102442014-02-19 Tom Tromey <tromey@redhat.com>
10245
10246 * target.h (struct target_ops) <to_insn_history>: Add argument.
10247 * target.c (target_insn_history): Add argument.
10248 * record-btrace.c (record_btrace_insn_history): Add 'self'
10249 argument.
10250
606183ac
TT
102512014-02-19 Tom Tromey <tromey@redhat.com>
10252
10253 * target.h (struct target_ops) <to_goto_record>: Add argument.
10254 * target.c (target_goto_record): Add argument.
10255 * record-full.c (record_full_goto): Add 'self' argument.
10256 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10257
307a1b91
TT
102582014-02-19 Tom Tromey <tromey@redhat.com>
10259
10260 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10261 * target.c (target_goto_record_end): Add argument.
10262 * record-full.c (record_full_goto_end): Add 'self' argument.
10263 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10264
08475817
TT
102652014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * target.h (struct target_ops) <to_goto_record_begin>: Add
10268 argument.
10269 * target.c (target_goto_record_begin): Add argument.
10270 * record-full.c (record_full_goto_begin): Add 'self' argument.
10271 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10272 argument.
10273
1c63c994
TT
102742014-02-19 Tom Tromey <tromey@redhat.com>
10275
10276 * target.h (struct target_ops) <to_record_is_replaying>: Add
10277 argument.
10278 * target.c (target_record_is_replaying): Add argument.
10279 * record-full.c (record_full_is_replaying): Add 'self' argument.
10280 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10281 argument.
10282 (record_btrace_xfer_partial, record_btrace_store_registers)
10283 (record_btrace_prepare_to_store, record_btrace_resume)
10284 (record_btrace_wait, record_btrace_decr_pc_after_break)
10285 (record_btrace_find_new_threads, record_btrace_thread_alive):
10286 Update.
10287
d1b55219
TT
102882014-02-19 Tom Tromey <tromey@redhat.com>
10289
10290 * target.h (struct target_ops) <to_delete_record>: Add argument.
10291 * target.c (target_delete_record): Add argument.
10292 * record-full.c (record_full_delete): Add 'self' argument.
10293
1390f529
TT
102942014-02-19 Tom Tromey <tromey@redhat.com>
10295
10296 * target.h (struct target_ops) <to_save_record>: Add argument.
10297 * target.c (target_save_record): Add argument.
10298 * record-full.c (record_full_save): Add 'self' argument.
10299 (record_full_save): Add 'self' argument.
10300
630d6a4a
TT
103012014-02-19 Tom Tromey <tromey@redhat.com>
10302
10303 * target.h (struct target_ops) <to_info_record>: Add argument.
10304 * target.c (target_info_record): Add argument.
10305 * record.c (info_record_command): Add argument.
10306 * record-full.c (record_full_info): Add 'self' argument.
10307 * record-btrace.c (record_btrace_info): Add 'self' argument.
10308
c6cd7c02
TT
103092014-02-19 Tom Tromey <tromey@redhat.com>
10310
10311 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10312 * target.c (target_stop_recording): Add argument.
10313 * record.c (record_stop): Add argument.
10314 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10315 argument.
10316
39c49f83
TT
103172014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10320 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10321 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10322 argument.
10323 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10324 (_initialize_amd64_linux_nat): Use it.
10325 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10326 (_initialize_i386_linux_nat): Use it.
10327
1777056d
TT
103282014-02-19 Tom Tromey <tromey@redhat.com>
10329
10330 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10331 * target.c (target_teardown_btrace): Add argument.
10332 * remote.c (remote_teardown_btrace): Add 'self' argument.
10333 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10334 argument.
10335 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10336 argument.
10337
25e95349
TT
103382014-02-19 Tom Tromey <tromey@redhat.com>
10339
10340 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10341 * target.c (target_disable_btrace): Add argument.
10342 * remote.c (remote_disable_btrace): Add 'self' argument.
10343 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10344 argument.
10345 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10346 argument.
10347
e3c49f88
TT
103482014-02-19 Tom Tromey <tromey@redhat.com>
10349
10350 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10351 * target.c (target_enable_btrace): Add argument.
10352 * remote.c (remote_enable_btrace): Add 'self' argument.
10353 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10354 argument.
10355 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10356 argument.
10357
fe38f897
TT
103582014-02-19 Tom Tromey <tromey@redhat.com>
10359
10360 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10361 (target_can_use_agent): Add argument.
10362 * target.c (update_current_target): Update.
10363 * remote.c (remote_can_use_agent): Add 'self' argument.
10364 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10365
2c152180
TT
103662014-02-19 Tom Tromey <tromey@redhat.com>
10367
10368 * target.h (struct target_ops) <to_use_agent>: Add argument.
10369 (target_use_agent): Add argument.
10370 * target.c (update_current_target): Update.
10371 * remote.c (remote_use_agent): Add 'self' argument.
10372 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10373
a893e81f
TT
103742014-02-19 Tom Tromey <tromey@redhat.com>
10375
10376 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10377 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10378 (target_traceframe_info): Add argument.
10379 * target.c (update_current_target): Update.
10380 * remote.c (remote_traceframe_info): Add 'self' argument.
10381 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10382
c686c57f
TT
103832014-02-19 Tom Tromey <tromey@redhat.com>
10384
10385 * target.h (target_static_tracepoint_markers_by_strid): Add
10386 argument.
10387 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10388 'self' argument.
10389 * target.c (update_current_target): Update.
10390 * remote.c (struct target_ops)
10391 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10392 * linux-nat.c (struct target_ops)
10393 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10394
61fc905d
TT
103952014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10398 Add argument.
10399 (target_static_tracepoint_marker_at): Add argument.
10400 * target.c (update_current_target): Update.
10401 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10402 argument.
10403
c378d69d
TT
104042014-02-19 Tom Tromey <tromey@redhat.com>
10405
10406 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10407 (target_set_permissions): Add argument.
10408 * target.c (update_current_target): Update.
10409 * remote.c (remote_set_permissions): Add 'self' argument.
10410 (remote_start_remote): Update.
10411
bd7ae0f5
TT
104122014-02-19 Tom Tromey <tromey@redhat.com>
10413
10414 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10415 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10416 (target_get_tib_address): Add argument.
10417 * target.c (update_current_target): Update.
10418 * remote.c (remote_get_tib_address): Add 'self' argument.
10419
d9e68a2c
TT
104202014-02-19 Tom Tromey <tromey@redhat.com>
10421
10422 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10423 (target_set_trace_notes): Add argument.
10424 * target.c (update_current_target): Update.
10425 * remote.c (remote_set_trace_notes): Add 'self' argument.
10426
4da384be
TT
104272014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10430 argument.
10431 (target_set_trace_buffer_size): Add argument.
10432 * target.c (update_current_target): Update.
10433 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10434
736d5b1f
TT
104352014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10438 argument.
10439 (target_set_circular_trace_buffer): Add argument.
10440 * target.c (update_current_target): Update.
10441 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10442 argument.
10443
37b25738
TT
104442014-02-19 Tom Tromey <tromey@redhat.com>
10445
10446 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10447 argument.
10448 (target_set_disconnected_tracing): Add argument.
10449 * target.c (update_current_target): Update.
10450 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10451
0e67620a
TT
104522014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * target.h (struct target_ops)
10455 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10456 (target_get_min_fast_tracepoint_insn_len): Add argument.
10457 * target.c (update_current_target): Update.
10458 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10459 argument.
10460
88ee6f45
TT
104612014-02-19 Tom Tromey <tromey@redhat.com>
10462
10463 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10464 argument.
10465 (target_get_raw_trace_data): Add argument.
10466 * target.c (update_current_target): Update.
10467 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10468
181e3713
TT
104692014-02-19 Tom Tromey <tromey@redhat.com>
10470
10471 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10472 Add argument.
10473 (target_upload_trace_state_variables): Add argument.
10474 * target.c (update_current_target): Update.
10475 * remote.c (remote_upload_trace_state_variables): Add 'self'
10476 argument.
10477 (remote_start_remote): Update.
10478
ab6617cc
TT
104792014-02-19 Tom Tromey <tromey@redhat.com>
10480
10481 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10482 argument.
10483 (target_upload_tracepoints): Add argument.
10484 * target.c (update_current_target): Update.
10485 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10486 (remote_start_remote): Update.
10487
dc3decaf
TT
104882014-02-19 Tom Tromey <tromey@redhat.com>
10489
10490 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10491 (target_save_trace_data): Add argument.
10492 * target.c (update_current_target): Update.
10493 * remote.c (remote_save_trace_data): Add 'self' argument.
10494
4011015b
TT
104952014-02-19 Tom Tromey <tromey@redhat.com>
10496
10497 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10498 argument.
10499 * target.h (struct target_ops)
10500 <to_get_trace_state_variable_value>: Add argument.
10501 (target_get_trace_state_variable_value): Add argument.
10502 * target.c (update_current_target): Update.
10503 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10504 argument.
10505 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10506
bd4c6793
TT
105072014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10510 * target.h (struct target_ops) <to_trace_find>: Add argument.
10511 (target_trace_find): Add argument.
10512 * target.c (update_current_target): Update.
10513 * remote.c (remote_trace_find): Add 'self' argument.
10514 * ctf.c (ctf_trace_find): Add 'self' argument.
10515
74499f1b
TT
105162014-02-19 Tom Tromey <tromey@redhat.com>
10517
10518 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10519 (target_trace_stop): Add argument.
10520 * target.c (update_current_target): Update.
10521 * remote.c (remote_trace_stop): Add 'self' argument.
10522
db90e85c
TT
105232014-02-19 Tom Tromey <tromey@redhat.com>
10524
10525 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10526 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10527 argument.
10528 (target_get_tracepoint_status): Add argument.
10529 * target.c (update_current_target): Update.
10530 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10531
8bd200f1
TT
105322014-02-19 Tom Tromey <tromey@redhat.com>
10533
10534 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10535 * target.h (struct target_ops) <to_get_trace_status>: Add
10536 argument.
10537 (target_get_trace_status): Add argument.
10538 * target.c (update_current_target): Update.
10539 * remote.c (remote_get_trace_status): Add 'self' argument.
10540 (remote_start_remote, remote_can_download_tracepoint): Update.
10541 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10542
e2d1aae3
TT
105432014-02-19 Tom Tromey <tromey@redhat.com>
10544
10545 * target.h (struct target_ops) <to_trace_start>: Add argument.
10546 (target_trace_start): Add argument.
10547 * target.c (update_current_target): Update.
10548 * remote.c (remote_trace_start): Add 'self' argument.
10549
583f9a86
TT
105502014-02-19 Tom Tromey <tromey@redhat.com>
10551
10552 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10553 Add argument.
10554 (target_trace_set_readonly_regions): Add argument.
10555 * target.c (update_current_target): Update.
10556 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10557 argument.
10558
780b049c
TT
105592014-02-19 Tom Tromey <tromey@redhat.com>
10560
10561 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10562 argument.
10563 (target_disable_tracepoint): Add argument.
10564 * target.c (update_current_target): Update.
10565 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10566
46670d57
TT
105672014-02-19 Tom Tromey <tromey@redhat.com>
10568
10569 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10570 argument.
10571 (target_enable_tracepoint): Add argument.
10572 * target.c (update_current_target): Update.
10573 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10574
559d2b81
TT
105752014-02-19 Tom Tromey <tromey@redhat.com>
10576
10577 * target.h (struct target_ops) <to_download_trace_state_variable>:
10578 Add argument.
10579 (target_download_trace_state_variable): Add argument.
10580 * target.c (update_current_target): Update.
10581 * remote.c (remote_download_trace_state_variable): Add 'self'
10582 argument.
10583
a52a8357
TT
105842014-02-19 Tom Tromey <tromey@redhat.com>
10585
10586 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10587 argument.
10588 (target_can_download_tracepoint): Add argument.
10589 * target.c (update_current_target): Update.
10590 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10591
548f7808
TT
105922014-02-19 Tom Tromey <tromey@redhat.com>
10593
10594 * target.h (struct target_ops) <to_download_tracepoint>: Add
10595 argument.
10596 (target_download_tracepoint): Add argument.
10597 * target.c (update_current_target): Update.
10598 * remote.c (remote_download_tracepoint): Add 'self' argument.
10599
ecae04e1
TT
106002014-02-19 Tom Tromey <tromey@redhat.com>
10601
10602 * target.h (struct target_ops) <to_trace_init>: Add argument.
10603 (target_trace_init): Add argument.
10604 * target.c (update_current_target): Update.
10605 * remote.c (remote_trace_init): Add 'self' argument.
10606
fab5aa7c
TT
106072014-02-19 Tom Tromey <tromey@redhat.com>
10608
10609 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10610 * target.c (target_fileio_readlink): Add argument.
10611 * remote.c (remote_hostio_readlink): Add 'self' argument.
10612 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10613
dbbca37d
TT
106142014-02-19 Tom Tromey <tromey@redhat.com>
10615
10616 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10617 * target.c (target_fileio_unlink): Add argument.
10618 * remote.c (remote_hostio_unlink): Add 'self' argument.
10619 (remote_file_delete): Update.
10620 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10621
df39ea25
TT
106222014-02-19 Tom Tromey <tromey@redhat.com>
10623
10624 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10625 * target.c (target_fileio_close): Add argument.
10626 * remote.c (remote_hostio_close): Add 'self' argument.
10627 (remote_hostio_close_cleanup): Update.
10628 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10629 Update.
10630 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10631
a3be983c
TT
106322014-02-19 Tom Tromey <tromey@redhat.com>
10633
10634 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10635 * target.c (target_fileio_pread): Add argument.
10636 * remote.c (remote_hostio_pread): Add 'self' argument.
10637 (remote_bfd_iovec_pread, remote_file_get): Update.
10638 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10639
0d866f62
TT
106402014-02-19 Tom Tromey <tromey@redhat.com>
10641
10642 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10643 * target.c (target_fileio_pwrite): Add argument.
10644 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10645 (remote_file_put): Update.
10646 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10647
cd897586
TT
106482014-02-19 Tom Tromey <tromey@redhat.com>
10649
10650 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10651 * target.c (target_fileio_open): Add argument.
10652 * remote.c (remote_hostio_open): Add 'self' argument.
10653 (remote_bfd_iovec_open): Add 'self' argument.
10654 (remote_file_put): Add 'self' argument.
10655 (remote_file_get): Add 'self' argument.
10656 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10657
78eff0ec
TT
106582014-02-19 Tom Tromey <tromey@redhat.com>
10659
10660 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10661 Add argument.
10662 (target_can_run_breakpoint_commands): Add argument.
10663 * target.c (update_current_target): Update.
10664 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10665 argument.
10666 (remote_insert_breakpoint): Add 'self' argument.
10667 (remote_insert_hw_breakpoint): Add 'self' argument.
10668 (remote_can_run_breakpoint_commands): Add 'self' argument.
10669
efcc2da7
TT
106702014-02-19 Tom Tromey <tromey@redhat.com>
10671
10672 * target.h (struct target_ops)
10673 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10674 (target_supports_evaluation_of_breakpoint_conditions): Add
10675 argument.
10676 * target.c (update_current_target): Update.
10677 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10678 argument.
10679 (remote_insert_breakpoint): Add 'self' argument.
10680 (remote_insert_hw_breakpoint): Add 'self' argument.
10681 (remote_supports_cond_breakpoints): Add 'self' argument.
10682
6de37a3a
TT
106832014-02-19 Tom Tromey <tromey@redhat.com>
10684
10685 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10686 argument.
10687 (target_supports_string_tracing): Add argument.
10688 * target.c (update_current_target): Update.
10689 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10690
2bfc0540
TT
106912014-02-19 Tom Tromey <tromey@redhat.com>
10692
10693 * target.h (struct target_ops)
10694 <to_supports_disable_randomization>: Add argument.
10695 * target.c (find_default_supports_disable_randomization): Add
10696 argument.
10697 (target_supports_disable_randomization): Add argument.
10698 (find_default_supports_disable_randomization): Add 'self'
10699 argument.
10700 * remote.c (extended_remote_supports_disable_randomization): Add
10701 'self' argument.
10702 (remote_supports_disable_randomization): Add 'self' argument.
10703 (extended_remote_create_inferior): Update.
10704 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10705 'self' argument.
10706
7d178d6a
TT
107072014-02-19 Tom Tromey <tromey@redhat.com>
10708
10709 * target.h (struct target_ops)
10710 <to_supports_enable_disable_tracepoint>: Add argument.
10711 (target_supports_enable_disable_tracepoint): Add argument.
10712 * target.c (update_current_target): Update.
10713 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10714 argument.
10715
86ce2668
TT
107162014-02-19 Tom Tromey <tromey@redhat.com>
10717
10718 * target.h (struct target_ops) <to_supports_multi_process>: Add
10719 argument.
10720 (target_supports_multi_process): Add argument.
10721 * target.c (update_current_target): Update.
10722 * remote.c (remote_supports_multi_process): Add 'self' argument.
10723 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10724 argument.
10725 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10726 argument.
10727
4c612759
TT
107282014-02-19 Tom Tromey <tromey@redhat.com>
10729
10730 * target.h (struct target_ops) <to_execution_direction>: Add
10731 argument.
10732 (target_execution_direction): Add argument.
10733 * target.c (default_execution_direction): Add 'self' argument.
10734 * record-full.c (record_full_execution_direction): Add 'self'
10735 argument.
10736
19db3e69
TT
107372014-02-19 Tom Tromey <tromey@redhat.com>
10738
10739 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10740 argument.
10741 (target_can_execute_reverse): Add argument.
10742 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10743 * record-full.c (record_full_can_execute_reverse): Add 'self'
10744 argument.
10745 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10746 argument.
10747
1e6b91a4
TT
107482014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10751 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10752 argument.
10753 (target_get_ada_task_ptid): Add argument.
10754 * target.c (update_current_target): Update.
10755 (default_get_ada_task_ptid): Add 'self' argument.
10756 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10757 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10758 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10759 argument.
10760 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10761 argument.
10762 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10763 argument.
10764 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10765 argument.
10766 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10767 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10768 argument.
10769
3c80fb48
TT
107702014-02-19 Tom Tromey <tromey@redhat.com>
10771
10772 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10773 (target_goto_bookmark): Add argument.
10774 * target.c (dummy_goto_bookmark): Add 'self' argument.
10775 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10776
dd0e2830
TT
107772014-02-19 Tom Tromey <tromey@redhat.com>
10778
10779 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10780 (target_get_bookmark): Add argument.
10781 * target.c (dummy_get_bookmark): Add 'self' argument.
10782 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10783
fc6691b2
TT
107842014-02-19 Tom Tromey <tromey@redhat.com>
10785
10786 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10787 argument.
10788 (target_make_corefile_notes): Add argument.
10789 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10790 * procfs.c (procfs_make_note_section): Add 'self' argument.
10791 (procfs_make_note_section): Add 'self' argument.
10792 (procfs_make_note_section): Add 'self' argument.
10793 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10794 argument.
10795 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10796 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10797 * exec.c (exec_make_note_section): Add 'self' argument.
10798 (exec_make_note_section): Add 'self' argument.
10799
2e73927c
TT
108002014-02-19 Tom Tromey <tromey@redhat.com>
10801
10802 * target.h (struct target_ops) <to_find_memory_regions>: Add
10803 argument.
10804 (target_find_memory_regions): Add argument.
10805 * target.c (dummy_find_memory_regions): Add 'self' argument.
10806 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10807 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10808 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10809 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10810 * exec. (exec_do_find_memory_regions): New global.
10811 (exec_set_find_memory_regions): Rewrite.
10812 (exec_find_memory_regions): New function.
10813 (init_exec_ops): Use exec_find_memory_regions.
10814
2a9a2795
TT
108152014-02-19 Tom Tromey <tromey@redhat.com>
10816
10817 * target.h (struct target_ops) <to_supports_non_stop>: Add
10818 argument.
10819 * target.c (find_default_supports_non_stop): Add argument.
10820 (target_supports_non_stop): Add argument.
10821 (find_default_supports_non_stop): Add 'self' argument.
10822 * remote.c (remote_supports_non_stop): Add 'self' argument.
10823 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10824
4ab76ea3
TT
108252014-02-19 Tom Tromey <tromey@redhat.com>
10826
10827 * target.h (struct target_ops) <to_log_command>: Add argument.
10828 (target_log_command): Add argument.
10829 * serial.h (serial_log_command): Add 'self' argument.
10830 * serial.c (serial_log_command): Add 'self' argument.
10831
8dd27370
TT
108322014-02-19 Tom Tromey <tromey@redhat.com>
10833
10834 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10835 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10836 argument.
10837 (target_pid_to_exec_file): Add argument.
10838 * target.c (debug_to_pid_to_exec_file): Add argument.
10839 (update_current_target): Update.
10840 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10841 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10842 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10843 (linux_handle_extended_wait): Update.
10844 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10845 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10846 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10847 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10848
1aac633b
TT
108492014-02-19 Tom Tromey <tromey@redhat.com>
10850
10851 * target.h (struct target_ops) <to_rcmd>: Add argument.
10852 (target_rcmd): Add argument.
10853 * target.c (debug_to_rcmd): Add argument.
10854 (update_current_target, do_monitor_command): Update.
10855 * remote.c (remote_rcmd): Add 'self' argument.
10856 * monitor.c (monitor_rcmd): Add 'self' argument.
10857
1eab8a48
TT
108582014-02-19 Tom Tromey <tromey@redhat.com>
10859
10860 * windows-nat.c (windows_stop): Add 'self' argument.
10861 * target.h (struct target_ops) <to_stop>: Add argument.
10862 * target.c (target_stop): Add argument.
10863 (debug_to_stop): Add argument.
10864 (update_current_target): Update.
10865 * remote.c (remote_stop): Add 'self' argument.
10866 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10867 (gdbsim_cntrl_c): Update.
10868 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10869 * procfs.c (procfs_stop): Add 'self' argument.
10870 * nto-procfs.c (procfs_stop): Add 'self' argument.
10871 * monitor.c (monitor_stop): Add 'self' argument.
10872 (monitor_open): Update.
10873 * linux-nat.c (linux_nat_stop): Add argument.
10874 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10875 * gnu-nat.c (gnu_stop): Add 'self' argument.
10876 * darwin-nat.c (darwin_stop): Add 'self' argument.
10877
503a628d
TT
108782014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * target.h (struct target_ops) <to_thread_name>: Add argument.
10881 * target.c (target_thread_name): Add argument.
10882 (update_current_target): Update.
10883 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10884
c15906d8
TT
108852014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target.h (struct target_ops) <to_extra_thread_info>: Add
10888 argument.
10889 (target_extra_thread_info): Add argument.
10890 * target.c (update_current_target): Update.
10891 * remote.c (remote_threads_extra_info): Add 'self' argument.
10892 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10893 argument.
10894 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10895 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10896 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10897 argument.
10898 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10899 argument.
10900 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10901 argument.
10902 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10903 argument.
10904
daf5e9b6
TT
109052014-02-19 Tom Tromey <tromey@redhat.com>
10906
10907 * target.h (struct target_ops) <to_program_signals>: Add argument.
10908 * target.c (target_program_signals): Add argument.
10909 * remote.c (remote_program_signals): Add 'self' argument.
10910
94bedb42
TT
109112014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10914 * target.c (target_pass_signals): Add argument.
10915 * remote.c (remote_pass_signals): Add 'self' argument.
10916 (remote_start_remote): Update.
10917 * procfs.c (procfs_pass_signals): Add 'self' argument.
10918 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10919 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10920 (linux_nat_create_inferior, linux_nat_attach): Update.
10921
da82bd6b
TT
109222014-02-19 Tom Tromey <tromey@redhat.com>
10923
10924 * windows-nat.c (windows_can_run): Add 'self' argument.
10925 * target.h (struct target_ops) <to_can_run>: Add argument.
10926 (target_can_run): Add argument.
10927 * target.c (debug_to_can_run): Add argument.
10928 (update_current_target): Update.
10929 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10930 * inf-child.c (inf_child_can_run): Add 'self' argument.
10931 * go32-nat.c (go32_can_run): Add 'self' argument.
10932
d796e1d6
TT
109332014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target.h (struct target_ops) <to_has_exited>: Add argument.
10936 (target_has_exited): Add argument.
10937 * target.c (debug_to_has_exited): Add argument.
10938 (update_current_target): Update.
10939
ff214e67
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10943 argument.
10944 (target_set_syscall_catchpoint): Add argument.
10945 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10946 argument.
10947 * target.c (update_current_target): Update.
10948
758e29d2
TT
109492014-02-19 Tom Tromey <tromey@redhat.com>
10950
10951 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10952 argument.
10953 (target_remove_exec_catchpoint): Add argument.
10954 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10955 (update_current_target): Update.
10956 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10957 argument.
10958
ba025e51
TT
109592014-02-19 Tom Tromey <tromey@redhat.com>
10960
10961 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10962 argument.
10963 (target_insert_exec_catchpoint): Add argument.
10964 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10965 (update_current_target): Update.
10966 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10967 argument.
10968
e98cf0cd
TT
109692014-02-19 Tom Tromey <tromey@redhat.com>
10970
10971 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10972 argument.
10973 (target_remove_vfork_catchpoint): Add argument.
10974 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10975 (update_current_target): Update.
10976 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10977 argument.
10978
3ecc7da0
TT
109792014-02-19 Tom Tromey <tromey@redhat.com>
10980
10981 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10982 argument.
10983 (target_insert_vfork_catchpoint): Add argument.
10984 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10985 (update_current_target): Update.
10986 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10987 argument.
10988
973fc227
TT
109892014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10992 argument.
10993 (target_remove_fork_catchpoint): Add argument.
10994 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10995 (update_current_target): Update.
10996 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10997 argument.
10998
a863b201
TT
109992014-02-19 Tom Tromey <tromey@redhat.com>
11000
11001 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11002 argument.
11003 (target_insert_fork_catchpoint): Add argument.
11004 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11005 (update_current_target): Update.
11006 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11007 argument.
11008
2e97a79e
TT
110092014-02-19 Tom Tromey <tromey@redhat.com>
11010
11011 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11012 argument.
11013 (target_post_startup_inferior): Add argument.
11014 * target.c (debug_to_post_startup_inferior): Add argument.
11015 (update_current_target): Update.
11016 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11017 argument.
11018 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11019 argument.
11020 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11021 argument.
11022 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11023 argument.
11024 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11025 'self' argument.
11026 (super_post_startup_inferior): Likewise.
11027 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11028 'self' argument.
11029 (super_post_startup_inferior): Likewise.
11030 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11031 Add 'self' argument.
11032 (super_post_startup_inferior): Likewise.
11033
71a9f134
TT
110342014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * target.h (struct target_ops) <to_load>: Add argument.
11037 * target.c (target_load): Add argument.
11038 (debug_to_load): Add argument.
11039 (update_current_target): Update.
11040 * remote.c (remote_load): Add 'self' argument.
11041 * remote-sim.c (gdbsim_load): Add 'self' argument.
11042 * remote-mips.c (mips_load): Add 'self' argument.
11043 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11044 * monitor.c (monitor_load): Add 'self' argument.
11045 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11046
0a4f40a2
TT
110472014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11050 (target_terminal_info): Add argument.
11051 * target.c (debug_to_terminal_info): Add argument.
11052 (default_terminal_info): Likewise.
11053 * inflow.c (child_terminal_info): Add 'self' argument.
11054 * inferior.h (child_terminal_info): Add 'self' argument.
11055 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11056
ae3bd431
TT
110572014-02-19 Tom Tromey <tromey@redhat.com>
11058
11059 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11060 argument.
11061 (target_terminal_save_ours): Add argument.
11062 * target.c (debug_to_terminal_save_ours): Add argument.
11063 (update_current_target): Update.
11064 * inflow.c (terminal_save_ours): Add 'self' argument.
11065 * inferior.h (terminal_save_ours): Add 'self' argument.
11066
e3594fd1
TT
110672014-02-19 Tom Tromey <tromey@redhat.com>
11068
11069 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11070 (target_terminal_ours): Add argument.
11071 * target.c (debug_to_terminal_ours): Add argument.
11072 (update_current_target): Update.
11073 * remote.c (remote_terminal_ours): Add 'self' argument.
11074 (remote_close): Update.
11075 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11076 * inflow.c (terminal_ours): Add 'self' argument.
11077 * inferior.h (terminal_ours): Add 'self' argument.
11078 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11079
2e1e1a19
TT
110802014-02-19 Pedro Alves <palves@redhat.com>
11081 Tom Tromey <tromey@redhat.com>
11082
11083 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11084 argument.
11085 (target_terminal_ours_for_output): Add argument.
11086 * target.c (debug_to_terminal_ours_for_output): Add argument.
11087 (update_current_target): Update.
11088 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11089 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11090 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11091
d2f640d4
TT
110922014-02-19 Tom Tromey <tromey@redhat.com>
11093
11094 * target.h (struct target_ops) <to_terminal_inferior>: Add
11095 argument.
11096 * target.c (target_terminal_inferior): Add argument.
11097 (update_current_target): Update.
11098 * remote.c (remote_terminal_inferior): Add 'self' argument.
11099 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11100 * inflow.c (terminal_inferior): Add 'self' argument.
11101 * inferior.h (terminal_inferior): Add 'self' argument.
11102 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11103 (go32_terminal_inferior): Add 'self' argument.
11104
c42bf286
TT
111052014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11108 (target_terminal_init): Add argument.
11109 * target.c (debug_to_terminal_init): Add argument.
11110 (update_current_target): Update.
11111 * inflow.c (terminal_init_inferior): Add 'self' argument.
11112 * inferior.h (terminal_init_inferior): Add 'self' argument.
11113 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11114 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11115
c3a5ff89
TT
111162014-02-19 Tom Tromey <tromey@redhat.com>
11117
11118 * target.h (struct target_ops)
11119 <to_can_accel_watchpoint_condition>: Add argument.
11120 (target_can_accel_watchpoint_condition): Add argument.
11121 * target.c (debug_to_can_accel_watchpoint_condition): Add
11122 argument.
11123 (update_current_target): Update.
11124 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11125 'self' argument.
11126
31568a15
TT
111272014-02-19 Tom Tromey <tromey@redhat.com>
11128
11129 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11130 Add argument.
11131 (target_region_ok_for_hw_watchpoint): Add argument.
11132 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11133 (default_region_ok_for_hw_watchpoint): Add argument.
11134 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11135 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11136 argument.
11137 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11138 argument.
11139 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11140 argument.
11141 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11142 'self' argument.
11143 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11144 'self' argument.
11145 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11146 'self' argument.
11147 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11148 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11149 'self' argument.
11150 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11151 Add 'self' argument.
11152
7bb99c53
TT
111532014-02-19 Tom Tromey <tromey@redhat.com>
11154
11155 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11156 argument.
11157 (target_insert_watchpoint): Add argument.
11158 * target.c (debug_to_insert_watchpoint): Add argument.
11159 (update_current_target): Update.
11160 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11161 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11162 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11163 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11164 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11165 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11166 argument.
11167 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11168 (procfs_insert_hw_watchpoint): Add 'self' argument.
11169 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11170 argument.
11171 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11172 argument.
11173 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11174 argument.
11175 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11176 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11177 argument.
11178 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11179 'self' argument.
11180
11b5219a
TT
111812014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11184 argument.
11185 (target_remove_watchpoint): Add argument.
11186 * target.c (debug_to_remove_watchpoint): Add argument.
11187 (update_current_target): Update.
11188 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11189 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11190 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11191 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11192 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11193 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11194 argument.
11195 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11196 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11197 argument.
11198 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11199 argument.
11200 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11201 argument.
11202 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11203 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11204 argument.
11205 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11206 'self' argument.
11207
a64dc96c
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11211 argument.
11212 (target_remove_hw_breakpoint): Add argument.
11213 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11214 (update_current_target): Update.
11215 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11216 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11217 argument.
11218 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11219 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11220 argument.
11221 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11222 'self' argument.
11223
23a26771
TT
112242014-02-19 Tom Tromey <tromey@redhat.com>
11225
11226 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11227 argument.
11228 (target_insert_hw_breakpoint): Add argument.
11229 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11230 (update_current_target): Update.
11231 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11232 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11233 argument.
11234 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11235 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11236 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11237 argument.
11238 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11239 'self' argument.
11240
5461485a
TT
112412014-02-19 Tom Tromey <tromey@redhat.com>
11242
11243 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11244 argument.
11245 (target_can_use_hardware_watchpoint): Add argument.
11246 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11247 (update_current_target): Update.
11248 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11249 argument.
11250 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11251 argument.
11252 * remote.c (remote_check_watch_resources): Add 'self' argument.
11253 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11254 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11255 argument.
11256 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11257 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11258 argument.
11259 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11260 argument.
11261 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11262 argument.
11263 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11264 argument.
11265 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11266 argument.
11267 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11268 argument.
11269 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11270 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11271 argument.
11272 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11273 'self' argument.
11274
f045800c
TT
112752014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.h (struct target_ops) <to_post_attach>: Add argument.
11278 (target_post_attach): Add argument.
11279 * target.c (debug_to_post_attach): Add argument.
11280 (update_current_target): Update.
11281 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11282 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11283 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11284 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11285 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11286
de90e03d
TT
112872014-02-19 Tom Tromey <tromey@redhat.com>
11288
11289 * windows-nat.c (windows_close): Add 'self' argument.
11290 * tracepoint.c (tfile_close): Add 'self' argument.
11291 * target.h (struct target_ops) <to_close>: Add argument.
11292 * target.c (target_close): Add argument.
11293 (update_current_target): Update.
11294 * remote.c (remote_close): Add 'self' argument.
11295 * remote-sim.c (gdbsim_close): Add 'self' argument.
11296 * remote-mips.c (mips_close): Add 'self' argument.
11297 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11298 * record-full.c (record_full_close): Add 'self' argument.
11299 * record-btrace.c (record_btrace_close): Add 'self' argument.
11300 * monitor.h (monitor_close): Add 'self' argument.
11301 * monitor.c (monitor_close): Add 'self' argument.
11302 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11303 * linux-nat.c (linux_nat_close): Add argument.
11304 * go32-nat.c (go32_close): Add 'self' argument.
11305 * exec.c (exec_close_1): Add 'self' argument.
11306 * ctf.c (ctf_close): Add 'self' argument.
11307 * corelow.c (core_close): Add 'self' argument.
11308 (core_close_cleanup): Update.
11309 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11310 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11311
9dd130a0
TT
113122014-02-19 Tom Tromey <tromey@redhat.com>
11313
11314 * remote.c (remote_load): New function.
11315 (init_remote_ops): Use it.
11316
46917d26
TT
113172014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11320 argument.
11321 * common/linux-btrace.h (linux_supports_btrace): Update.
11322 * remote.c (remote_supports_btrace): Add "self" argument.
11323 * target-delegates.c: Rebuild.
11324 * target.c (target_supports_btrace): Remove.
11325 * target.h (struct target_ops) <to_supports_btrace>: Add
11326 target_ops argument.
11327 (target_supports_btrace): New define.
11328
6b84065d
TT
113292014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * record-full.c (record_full_beneath_to_resume_ops)
11332 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11333 (record_full_beneath_to_wait)
11334 (record_full_beneath_to_store_registers_ops)
11335 (record_full_beneath_to_store_registers)
11336 (record_full_beneath_to_xfer_partial_ops)
11337 (record_full_beneath_to_xfer_partial)
11338 (record_full_beneath_to_insert_breakpoint_ops)
11339 (record_full_beneath_to_insert_breakpoint)
11340 (record_full_beneath_to_remove_breakpoint_ops)
11341 (record_full_beneath_to_remove_breakpoint)
11342 (record_full_beneath_to_stopped_by_watchpoint)
11343 (record_full_beneath_to_stopped_data_address)
11344 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11345 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11346 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11347 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11348 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11349 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11350 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11351 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11352 (record_full_resume, record_full_wait_1)
11353 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11354 (record_full_store_registers, record_full_xfer_partial)
11355 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11356 (record_full_async, record_full_core_xfer_partial): Use target
11357 delegation.
11358 * target-delegates.c: Rebuild.
11359 * target.c (current_xfer_partial): Remove.
11360 (update_current_target): Do not INHERIT or de_fault
11361 to_insert_breakpoint, to_remove_breakpoint,
11362 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11363 to_is_async_p, to_async. Do not set to_xfer_partial field.
11364 (default_xfer_partial): Simplify.
11365 (current_xfer_partial): Remove.
11366 (target_wait, target_resume): Simplify.
11367 (find_default_can_async_p, find_default_is_async_p): Update.
11368 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11369 to_xfer_partial, to_stopped_by_watchpoint,
11370 to_stopped_data_address.
11371 (target_store_registers): Simplify.
11372 (forward_target_remove_breakpoint)
11373 (forward_target_insert_breakpoint): Remove.
11374 (target_remove_breakpoint, target_insert_breakpoint)
11375 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11376 * target.h (struct target_ops) <to_resume, to_wait,
11377 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11378 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11379 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11380 markup.
11381 (forward_target_remove_breakpoint)
11382 (forward_target_insert_breakpoint): Remove.
11383 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11384 directly.
11385 (record_btrace_insert_breakpoint): Delegate directly.
11386
1101cb7b
TT
113872014-02-19 Tom Tromey <tromey@redhat.com>
11388
11389 PR build/7701:
11390 * target-delegates.c: New file.
11391 * target.c: Include target-delegates.c.
11392 (init_dummy_target): Call install_dummy_methods.
11393 (complete_target_initialization): Call install_delegators.
11394 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11395 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11396 * make-target-delegates: New file.
11397
8b06beed
TT
113982014-02-19 Tom Tromey <tromey@redhat.com>
11399
11400 * record.c (find_record_target): Use find_target_at.
11401 * target.c (find_target_at): New function.
11402 * target.h (find_target_at): Declare.
11403
6a109b6b
TT
114042014-02-19 Tom Tromey <tromey@redhat.com>
11405
11406 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11407 Add 'ops' argument.
11408 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11409 'ops' argument.
11410 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11411 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11412 'ops' argument.
11413 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11414 argument.
11415 * linux-nat.c (save_sigtrap): Update.
11416 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11417 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11418 (linux_nat_close): Update.
11419 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11420 argument.
11421 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11422 argument.
11423 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11424 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11425 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11426 (tmp_to_async): Add 'ops' argument.
11427 (record_full_stopped_by_watchpoint, record_full_async)
11428 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11429 argument.
11430 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11431 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11432 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11433 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11434 (remote_is_async_p, remote_async): Add 'ops' argument.
11435 (remote_stopped_data_address): Update.
11436 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11437 * target.c (update_current_target)
11438 (find_default_can_async_p, find_default_is_async_p): Update.
11439 (init_dummy_target): Update.
11440 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11441 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11442 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11443 (target_can_async_p, target_is_async_p, target_async)
11444 (target_stopped_by_watchpoint): Update.
11445
e095146b
YQ
114462014-02-19 Yao Qi <yao@codesourcery.com>
11447
11448 PR gdb/16220
11449 * gdbarch.sh: Remove startup_gdbarch.
11450 * gdbarch.c: Regenerated.
11451 * gdbarch.h: Likewise.
11452
bc3c6b36
KB
114532014-02-17 Kevin Buettner <kevinb@redhat.com>
11454
11455 * rl78-tdep.c (rl78_g10_register_name): New function.
11456 (rl78_return_value): Add g10 support.
11457 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11458 g10.
11459
98dc0167 114602014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11461
11462 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11463 (SUBDIR_GUILE_SRCS): Ditto.
11464 (scm-gsmob.o): Ditto.
11465
842c05cd
YQ
114662014-02-17 Yao Qi <yao@codesourcery.com>
11467
11468 * gnu-nat.c (ILL_RPC): Declare defined function.
11469
25c0bd04
YQ
114702014-02-17 Yao Qi <yao@codesourcery.com>
11471
11472 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11473 mach_msg_type_number_t.
11474 (gnu_write_inferior): Likewise.
11475
a9a758e3
YQ
114762014-02-17 Yao Qi <yao@codesourcery.com>
11477
11478 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11479 in format string.
11480 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11481 (inf_validate_procs, inf_signal): Likewise.
11482 (S_exception_raise_request): Likewise.
11483 (do_mach_notify_dead_name): Likewise.
11484 (steal_exc_port): Likewise.
11485 (gnu_read_inferior): Change 'copy_count''s type to
11486 mach_msg_type_number_t.
11487 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11488 format string.
11489
bae8023e
TS
114902014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11491
c82f56d9
TS
11492 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11493 flag. Adjust all users; in particular...
11494 (gnu_wait): ..., don't decrement its value in here...
11495 (gnu_create_inferior): ..., and instead set the flag in here,
11496 around the startup_inferior call, and call that one with
11497 START_INFERIOR_TRAPS_EXPECTED.
11498
3398af6a
TS
11499 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11500 (ILL_RPC): ... new macro.
11501 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11502 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11503 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11504 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11505 functions with ILL_RPC macro.
11506 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11507 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11508 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11509 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11510 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11511 (S_proc_getlogin_reply, S_proc_getsid_reply)
11512 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11513 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11514 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11515 (S_proc_getnports_reply, S_proc_is_important_reply)
11516 (S_proc_get_code_reply): New stub functions, generated with
11517 ILL_RPC macro.
11518
d47642c9
TS
11519 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11520 collected the type check structures.
11521
bae8023e
TS
11522 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11523
8a55ffb0
DE
115242014-02-14 Doug Evans <dje@google.com>
11525
11526 * target.c (target_write_partial): Fix result type.
11527
c2853f3d
JM
115282014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11529
11530 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11531 the proper offsets to access fpregset_t.
11532
ac61d2db
SA
115332014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11534
11535 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11536 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11537 * h8300-tdep.c (setmachinelist): Remove global.
11538 * hppa-tdep.c (hppa_sigtramp): Remove global.
11539 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11540 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11541 * ravenscar-thread.c (update_target_observer): Remove global.
11542 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11543
9d2d0b8b
TT
115442014-02-12 Tom Tromey <tromey@redhat.com>
11545
11546 * common/rsp-low.c: Update comments.
11547 * common/rsp-low.h: Update comments.
11548
a7191e8b
TT
115492014-02-12 Tom Tromey <tromey@redhat.com>
11550
11551 * common/rsp-low.c (convert_ascii_to_int): Remove.
11552 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11553
ff0e980e
TT
115542014-02-12 Tom Tromey <tromey@redhat.com>
11555
11556 * common/rsp-low.h (unhexify): Don't declare.
11557 * common/rsp-low.c (unhexify): Remove.
11558
e9371aff
TT
115592014-02-12 Tom Tromey <tromey@redhat.com>
11560
11561 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11562 * common/rsp-low.c (convert_int_to_ascii): Remove.
11563
971dc0b8
TT
115642014-02-12 Tom Tromey <tromey@redhat.com>
11565
11566 * common/rsp-low.h (hexify): Don't declare.
11567 * common/rsp-low.c (hexify): Remove.
11568
0a822afb
TT
115692014-02-12 Tom Tromey <tromey@redhat.com>
11570
11571 * common/rsp-low.c (hexify): Never take strlen of argument.
11572
9f1b45b0
TT
115732014-02-12 Tom Tromey <tromey@redhat.com>
11574
11575 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11576 * remote.c (extended_remote_run, remote_rcmd)
11577 (remote_download_trace_state_variable, remote_save_trace_data)
11578 (remote_set_trace_notes): Update.
11579 * tracepoint.c (encode_source_string, tfile_write_status)
11580 (tfile_write_uploaded_tsv): Update.
11581
9c3d6531
TT
115822014-02-12 Tom Tromey <tromey@redhat.com>
11583
11584 * tracepoint.c: Include rsp-low.h.
11585 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11586 * remote.c: Include rsp-low.h.
11587 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11588 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11589 (remote_unescape_input): Move to common/rsp-low.c.
11590 * common/rsp-low.h: New file.
11591 * common/rsp-low.c: New file.
11592 * Makefile.in (SFILES): Add common/rsp-low.c.
11593 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11594 (COMMON_OBS): Add rsp-low.o.
11595 (rsp-low.o): New target.
11596
01fd3ea5
TT
115972014-02-12 Tom Tromey <tromey@redhat.com>
11598
11599 * utils.h: Include print-utils.h.
11600 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11601 (int_string, core_addr_to_string, core_addr_to_string_nz)
11602 (hex_string, hex_string_custom): Don't declare.
11603 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11604 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11605 (hex_string_custom, int_string, core_addr_to_string)
11606 (core_addr_to_string_nz, host_address_to_string): Move to
11607 common/print-utils.c.
11608 * common/print-utils.h: New file.
11609 * common/print-utils.c: New file
11610 * Makefile.in (SFILES): Add common/print-utils.c.
11611 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11612 (COMMON_OBS): Add print-utils.o.
11613 (print-utils.o): New target.
11614
9fb50108
TT
116152014-02-12 Tom Tromey <tromey@redhat.com>
11616
11617 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11618
0548b5db
MK
116192014-02-12 Mark Kettenis <kettenis@gnu.org>
11620
11621 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11622
493443a4
MK
116232014-02-12 Mark Kettenis <kettenis@gnu.org>
11624
11625 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11626 if a PT_IO ptrace request returns sucessfully but indicates that 0
11627 bytes were transferred.
11628
706d0883
PA
116292014-02-12 Pedro Alves <palves@redhat.com>
11630 Kevin Buettner <kevinb@redhat.com>
11631
11632 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11633 TYPE_INSTANCE_FLAG_CODE_SPACE.
11634
5caa2f0b
PA
116352014-02-12 Pedro Alves <palves@redhat.com>
11636
11637 * h8300-tdep.c (pseudo_from_raw_register)
11638 (raw_from_pseudo_register): New functions.
11639 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11640 them.
11641
76fd5f74
PA
116422014-02-12 Pedro Alves <palves@redhat.com>
11643
11644 * h8300-tdep.c (h8300_register_sim_regno): New function.
11645 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11646 gdbarch_register_sim_regno hook.
11647
8f008406
SA
116482014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11649
11650 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11651
195abc10
SA
116522014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11653
11654 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11655
93ffa5b9
MK
116562014-02-12 Mark Kettenis <kettenis@gnu.org>
11657
11658 * obsd-tdep.h (obsd_init_abi): New prototype.
11659 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11660 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11661 (obsd_init_abi): New functions.
11662 * i386obsd-tdep.c: Include "obsd-tdep.h".
11663 (i386obsd_init_abi): Call obsd_init_abi.
11664 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11665 (amd64obsd_init_abi): Call obsd_init_abi.
11666 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11667 obsd-tdep.c to gdb_target_obs.
11668
49caec94
JM
116692014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11670
11671 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11672 double float arguments to 16-byte in the argument slots.
11673
e1402065
DE
116742014-02-11 Doug Evans <xdje42@gmail.com>
11675
11676 * configure.ac: Don't crash if pkg-config is not found and guile
11677 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11678 in guile checks.
11679 * configure: Regenerate.
11680
edcc890f
YQ
116812014-02-11 Yao Qi <yao@codesourcery.com>
11682
11683 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11684 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11685 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11686 * gnu-nat.c (gnu_xfer_memory): Likewise.
11687 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11688 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11689 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11690 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11691
9b409511
YQ
116922014-02-11 Yao Qi <yao@codesourcery.com>
11693
11694 * target.h (enum target_xfer_error): Rename to ...
11695 (enum target_xfer_status): ... it. New. All users updated.
11696 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11697 New.
11698 (TARGET_XFER_STATUS_ERROR_P): New macro.
11699 (target_xfer_error_to_string): Remove declaration.
11700 (target_xfer_status_to_string): Declare.
11701 (target_xfer_partial_ftype): Adjust it.
11702 (struct target_ops) <to_xfer_partial>: Return
11703 target_xfer_status. Add argument xfered_len. Update
11704 comments.
11705 * target.c (target_xfer_error_to_string): Rename to ...
11706 (target_xfer_status_to_string): ... it. New. All callers
11707 updated.
11708 (target_read_live_memory): Likewise. Call target_xfer_partial
11709 instead of target_read.
11710 (memory_xfer_live_readonly_partial): Return
11711 target_xfer_status. Add argument xfered_len.
11712 (raw_memory_xfer_partial): Likewise.
11713 (memory_xfer_partial_1): Likewise.
11714 (memory_xfer_partial): Likewise.
11715 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11716 properly. Update debug message.
11717 (default_xfer_partial, current_xfer_partial): Likewise.
11718 (target_write_partial): Likewise.
11719 (target_read_partial): Likewise. All callers updated.
11720 (read_whatever_is_readable): Likewise.
11721 (target_write_with_progress): Likewise.
11722 (target_read_alloc_1): Likewise.
11723
11724 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11725 * auxv.c (procfs_xfer_auxv): Likewise.
11726 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11727 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11728 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11729 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11730 * corefile.c (read_memory): Adjust.
11731 * corelow.c (core_xfer_partial): Likewise.
11732 * ctf.c (ctf_xfer_partial): Likewise.
11733 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11734 updated.
11735 (darwin_xfer_partial): Likewise.
11736 * exec.c (section_table_xfer_memory_partial): Likewise. All
11737 callers updated.
11738 (exec_xfer_partial): Likewise.
11739 * exec.h (section_table_xfer_memory_partial): Update
11740 declaration.
11741 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11742 negative.
11743 (gnu_xfer_partial): Likewise.
11744 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11745 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11746 (ia64_hpux_xfer_solib_got): Likewise.
11747 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11748 type of 'partial_len' to ULONGEST.
11749 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11750 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11751 (linux_nat_xfer_partial): Likewise.
11752 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11753 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11754 * monitor.c (monitor_xfer_memory): Likewise.
11755 (monitor_xfer_partial): Likewise.
11756 * procfs.c (procfs_xfer_partial): Likewise.
11757 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11758 * record-full.c (record_full_xfer_partial): Likewise.
11759 (record_full_core_xfer_partial): Likewise.
11760 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11761 (gdbsim_xfer_partial): Likewise.
11762 * remote.c (remote_write_bytes_aux): Likewise. All callers
11763 updated.
11764 (remote_write_bytes, remote_read_bytes): Likewise. All
11765 callers updated.
11766 (remote_flash_erase): Likewise. All callers updated.
11767 (remote_write_qxfer): Likewise. All callers updated.
11768 (remote_read_qxfer): Likewise. All callers updated.
11769 (remote_xfer_partial): Likewise.
11770 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11771 (rs6000_xfer_shared_libraries): Likewise.
11772 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11773 (sol_thread_xfer_partial): Likewise.
11774 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11775 (sparc_xfer_partial): Likewise.
11776 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11777 updated.
11778 (spu_xfer_partial): Likewise.
11779 * spu-multiarch.c (spu_xfer_partial): Likewise.
11780 * tracepoint.c (tfile_xfer_partial): Likewise.
11781 * windows-nat.c (windows_xfer_memory): Likewise.
11782 (windows_xfer_shared_libraries): Likewise.
11783 (windows_xfer_partial): Likewise.
11784 * valprint.c: Replace 'target_xfer_error' with
11785 'target_xfer_status' in comments.
11786
a8e63083
JB
117872014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11788
11789 Checked in by Joel Brobecker <brobecker@adacore.com>.
11790 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11791
e86b67d3
JB
117922014-02-11 Joel Brobecker <brobecker@adacore.com>
11793
11794 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11795 function parameters.
11796
4b7d1f7f
WN
117972014-02-10 Will Newton <will.newton@linaro.org>
11798
11799 * elfread.c (elf_rel_plt_read): Look for a .got section if
11800 looking up .got.plt fails.
11801 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11802 on address passed to elf_gnu_ifunc_record_cache.
11803 (elf_gnu_ifunc_resolve_addr): Likewise.
11804 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11805
961842b2
JM
118062014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11807
11808 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11809 (X_RETTURN): New macro.
11810 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11811
11812 * sparc64-tdep.c (sparc64_init_abi): Hook
11813 sparc_in_function_epilogue_p.
11814
3f03e7b1
GB
118152014-02-10 Gary Benson <gbenson@redhat.com>
11816
11817 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11818 Rename name_matcher to symbol_matcher.
11819
96f861ef
GB
118202014-02-10 Gary Benson <gbenson@redhat.com>
11821
11822 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11823 Use expand_symtabs_file_matcher_ftype and
11824 expand_symtabs_symbol_matcher_ftype.
11825
ee01b665
JB
118262014-02-10 Joel Brobecker <brobecker@adacore.com>
11827
11828 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11829 (struct ada_symbol_cache): New.
11830 (ada_free_symbol_cache): Forward declare.
11831 (struct ada_pspace_data): New.
11832 (ada_pspace_data_handle): New static global.
11833 (get_ada_pspace_data, ada_pspace_data_cleanup)
11834 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11835 (cache_space, cache): Delete, now folded inside struct
11836 ada_pspace_data.
11837 (ada_get_symbol_cache): New function.
11838 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11839 implementation.
11840 (_initialize_ada_language): Remove initialization of cache_space.
11841 Move call to observer_attach_inferior_exit up, grouping it
11842 with the other observer registrations inside this function.
11843 Rename command to be more general. Add call to
11844 register_program_space_data_with_cleanup.
11845
143adbbf
JB
118462014-02-10 Joel Brobecker <brobecker@adacore.com>
11847
11848 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11849 ada_new_objfile_observer.
11850 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11851 (_initialize_tasks): Update uses of ada_new_objfile_observer
11852 and ada_tasks_normal_stop_observer.
11853
aa4fb036
JB
118542014-02-10 Joel Brobecker <brobecker@adacore.com>
11855
11856 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11857 returned by the 'Length attribute to integer.
11858
9dee8cc6
JB
118592014-02-10 Joel Brobecker <brobecker@adacore.com>
11860
11861 * ada-lang.c (_initialize_ada_language): Initialize
11862 cache_space obstack.
11863
3d9434b5
JB
118642014-02-10 Joel Brobecker <brobecker@adacore.com>
11865
11866 * ada-lang.c (HASH_SIZE): New macro.
11867 (struct cache_entry): New type.
11868 (cache_space, cache): New static globals.
11869 (ada_clear_symbol_cache, find_entry): New functions.
11870 (lookup_cached_symbol, cache_symbol): Implement.
11871 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11872 (_initialize_ada_language): Attach ada_new_objfile_observer
11873 and ada_free_objfile_observer.
11874
f0c5f9b2
JB
118752014-02-10 Joel Brobecker <brobecker@adacore.com>
11876
11877 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11878 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11879 struct block * parameter.
11880 (ada_lookup_symbol_list_worker): Constify local variable "block".
11881 Remove cast which is no longer necessary.
11882
ed3ef339
DE
118832014-02-10 Doug Evans <xdje42@gmail.com>
11884
11885 Add Guile as an extension language.
11886 * NEWS: Mention Guile scripting.
11887 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11888 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11889 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11890 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11891 (CLIBS): Add GUILE_LIBS.
11892 (install-guile): New rule.
11893 (guile.o): New rule.
11894 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11895 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11896 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11897 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11898 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11899 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11900 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11901 * configure.ac: New option --with-guile.
11902 * configure: Regenerate.
11903 * config.in: Regenerate.
11904 * auto-load.c: Remove #include "python/python.h". Add #include
11905 "gdb/section-scripts.h".
11906 (source_section_scripts): Handle Guile scripts.
11907 (_initialize_auto_load): Add name of Guile objfile script to
11908 scripts-directory help text.
11909 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11910 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11911 (struct breakpoint): New member scm_bp_object.
11912 * defs.h (enum command_control_type): New value guile_control.
11913 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11914 "extension.h".
11915 (show_user): Update comment.
11916 (_initialize_cli_cmds): Update help text for "show user". Update help
11917 text for max-user-call-depth.
11918 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11919 "extension.h".
11920 (multi_line_command_p): Add guile_control.
11921 (print_command_lines): Handle guile_control.
11922 (execute_control_command, recurse_read_control_structure): Ditto.
11923 (process_next_line): Recognize "guile" commands.
11924 * disasm.c (gdb_disassemble_info): Make non-static.
11925 * disasm.h: #include "dis-asm.h".
11926 (struct gdbarch): Add forward decl.
11927 (gdb_disassemble_info): Declare.
11928 * extension.c: #include "guile/guile.h".
11929 (extension_languages): Add guile.
11930 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11931 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11932 * gdbtypes.c (get_unsigned_type_max): New function.
11933 (get_signed_type_minmax): New function.
11934 * gdbtypes.h (get_unsigned_type_max): Declare.
11935 (get_signed_type_minmax): Declare.
11936 * guile/README: New file.
11937 * guile/guile-internal.h: New file.
11938 * guile/guile.c: New file.
11939 * guile/guile.h: New file.
11940 * guile/scm-arch.c: New file.
11941 * guile/scm-auto-load.c: New file.
11942 * guile/scm-block.c: New file.
11943 * guile/scm-breakpoint.c: New file.
11944 * guile/scm-disasm.c: New file.
11945 * guile/scm-exception.c: New file.
11946 * guile/scm-frame.c: New file.
11947 * guile/scm-gsmob.c: New file.
11948 * guile/scm-iterator.c: New file.
11949 * guile/scm-lazy-string.c: New file.
11950 * guile/scm-math.c: New file.
11951 * guile/scm-objfile.c: New file.
11952 * guile/scm-ports.c: New file.
11953 * guile/scm-pretty-print.c: New file.
11954 * guile/scm-safe-call.c: New file.
11955 * guile/scm-string.c: New file.
11956 * guile/scm-symbol.c: New file.
11957 * guile/scm-symtab.c: New file.
11958 * guile/scm-type.c: New file.
11959 * guile/scm-utils.c: New file.
11960 * guile/scm-value.c: New file.
11961 * guile/lib/gdb.scm: New file.
11962 * guile/lib/gdb/boot.scm: New file.
11963 * guile/lib/gdb/experimental.scm: New file.
11964 * guile/lib/gdb/init.scm: New file.
11965 * guile/lib/gdb/iterator.scm: New file.
11966 * guile/lib/gdb/printing.scm: New file.
11967 * guile/lib/gdb/types.scm: New file.
11968 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11969 (VPATH): Add $(GUILE_SRCDIR).
11970 (GUILE_DIR): New variable.
11971 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11972 (all): Add stamp-guile dependency.
11973 (stamp-guile): New rule.
11974 (clean-guile, install-guile, uninstall-guile): New rules.
11975 (install-only): Add install-guile dependency.
11976 (uninstall): Add uninstall-guile dependency.
11977 (clean): Add clean-guile dependency.
11978
ac020ec5
DE
119792014-02-09 Doug Evans <xdje42@gmail.com>
11980
11981 Revert this patch (which I approved, mea culpa).
11982
11983 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11984
11985 * Makefile.in (all-lib): Remove.
11986 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11987
2a081c59
JK
119882014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11989
11990 Fix Python stack corruption.
11991 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11992 gdb_py_longest.
11993
0a6bd22d
MK
119942014-02-08 Mark Kettenis <kettenis@gnu.org>
11995
11996 * Makefile.in (all-lib): Remove.
11997 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11998
1a860409
DE
119992014-02-07 Doug Evans <dje@google.com>
12000
12001 * extension-priv.h (extension_language_script_ops): Add comment.
12002 (extension_language_ops): Add comment.
caf5a491 12003 (active_ext_lang_state): Fix typo in comment.
1a860409 12004
d137e6dc
PA
120052014-02-07 Pedro Alves <palves@redhat.com>
12006
0dcb32c3 12007 PR breakpoints/16292
d137e6dc
PA
12008 * infrun.c (handle_signal_stop) <signal arrives while stepping
12009 over a breakpoint>: Switch back to the stepping thread.
12010
ce6d0892
YQ
120112014-02-07 Yao Qi <yao@codesourcery.com>
12012
12013 * target.c (target_xfer_partial): Return zero if LEN is zero.
12014
2ed4b548
YQ
120152014-02-07 Yao Qi <yao@codesourcery.com>
12016
12017 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12018 (ld_so_xfer_auxv): Likewise.
12019 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12020 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12021 * corelow.c (core_xfer_partial): Likewise.
12022 * ctf.c (ctf_xfer_partial): Likewise.
12023 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12024 (darwin_xfer_partial): Likewise.
12025 * exec.c (exec_xfer_partial): Likewise.
12026 * gnu-nat.c (gnu_xfer_partial): Likewise.
12027 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12028 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12029 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12030 * linux-nat.c (linux_xfer_siginfo): Likewise.
12031 (linux_proc_xfer_spu): Likewise.
12032 * procfs.c (procfs_xfer_partial): Likewise.
12033 * record-full.c (record_full_xfer_partial): Likewise.
12034 (record_full_core_xfer_partial): Likewise.
12035 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12036 * remote.c (remote_write_qxfer): Likewise.
12037 (remote_write_qxfer, remote_read_qxfer): Likewise.
12038 (remote_xfer_partial): Likewise.
12039 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12040 (rs6000_xfer_shared_libraries): Likewise.
12041 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12042 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12043 (spu_xfer_partial): Likewise.
12044 * target.c (memory_xfer_partial_1): Likewise.
12045 * tracepoint.c (tfile_xfer_partial): Likewise.
12046 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12047 (windows_xfer_partial): Likewise.
12048
c09f20e4
YQ
120492014-02-07 Yao Qi <yao@codesourcery.com>
12050
12051 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12052 comments.
12053 (core_xfer_shared_libraries_aix): Likewise.
12054 * gdbarch.c, gdbarch.h: Regenerated.
12055 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12056 ULONGEST. Change 'len_avail' type to ULONGEST.
12057 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12058 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12059 declaration.
12060 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12061
8635b3bf
YQ
120622014-02-07 Yao Qi <yao@codesourcery.com>
12063
12064 * corefile.c (memory_error): Get 'exception' from ERR and pass
12065 'exception' to throw_error.
12066
6dddc817
DE
120672014-02-06 Doug Evans <xdje42@gmail.com>
12068
12069 * configure.ac (libpython checking): Remove all but python.o from
12070 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12071 * configure: Regenerate.
12072
12073 * Makefile.in (SFILES): Add extension.c.
12074 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12075 (COMMON_OBS): Add extension.o.
12076 * extension.h: New file.
12077 * extension-priv.h: New file.
12078 * extension.c: New file.
12079
12080 * python/python-internal.h: #include "extension.h".
12081 (gdbpy_auto_load_enabled): Declare.
12082 (gdbpy_apply_val_pretty_printer): Declare.
12083 (gdbpy_apply_frame_filter): Declare.
12084 (gdbpy_preserve_values): Declare.
12085 (gdbpy_breakpoint_cond_says_stop): Declare.
12086 (gdbpy_breakpoint_has_cond): Declare.
12087 (void source_python_script_for_objfile): Delete.
12088 * python/python.c: #include "extension-priv.h".
12089 Delete inclusion of "observer.h".
12090 (extension_language_python): Moved here and renamed from
12091 script_language_python in py-auto-load.c.
12092 Redefined to be of type extension_language_defn.
12093 (python_extension_script_ops): New global.
12094 (python_extension_ops): New global.
12095 (struct python_env): New member previous_active.
12096 (restore_python_env): Call restore_active_ext_lang.
12097 (ensure_python_env): Call set_active_ext_lang.
12098 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12099 New arg extlang.
12100 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12101 New arg extlang.
12102 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12103 New arg extlang.
12104 (gdbpy_eval_from_control_command): Renamed from
12105 eval_python_from_control_command, made static. New arg extlang.
12106 (gdbpy_source_script) Renamed from source_python_script, made static.
12107 New arg extlang.
12108 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12109 result to int. New arg extlang.
12110 (gdbpy_source_objfile_script): Renamed from
12111 source_python_script_for_objfile, made static. New arg extlang.
12112 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12113 static. New args extlang, extlang_printers. Change result type to
12114 "void".
12115 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12116 static. New arg extlang. Rename arg printers to extlang_printers
12117 and change type to ext_lang_type_printers *.
12118 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12119 static. Replace argument arg with extlang, extlang_printers.
12120 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12121 (!HAVE_PYTHON, source_python_script): Delete.
12122 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12123 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12124 (!HAVE_PYTHON, start_type_printers): Delete.
12125 (!HAVE_PYTHON, apply_type_printers): Delete.
12126 (!HAVE_PYTHON, free_type_printers): Delete.
12127 (_initialize_python): Delete call to observer_attach_before_prompt.
12128 (finalize_python): Set/restore active extension language.
12129 (gdbpy_finish_initialization) Renamed from
12130 finish_python_initialization, made static. New arg extlang.
12131 (gdbpy_initialized): New function.
12132 * python/python.h: #include "extension.h". Delete #include
12133 "value.h", "mi/mi-cmds.h".
12134 (extension_language_python): Declare.
12135 (GDBPY_AUTO_FILE_NAME): Delete.
12136 (enum py_bt_status): Moved to extension.h and renamed to
12137 ext_lang_bt_status.
12138 (enum frame_filter_flags): Moved to extension.h.
12139 (enum py_frame_args): Moved to extension.h and renamed to
12140 ext_lang_frame_args.
12141 (finish_python_initialization): Delete.
12142 (eval_python_from_control_command): Delete.
12143 (source_python_script): Delete.
12144 (apply_val_pretty_printer): Delete.
12145 (apply_frame_filter): Delete.
12146 (preserve_python_values): Delete.
12147 (gdbpy_script_language_defn): Delete.
12148 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12149 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12150
12151 * auto-load.c: #include "extension.h".
12152 (GDB_AUTO_FILE_NAME): Delete.
12153 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12154 (script_language_gdb): Delete, moved to extension.c and renamed to
12155 extension_language_gdb.
12156 (source_gdb_script_for_objfile): Delete.
12157 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12158 (loaded_script): Change type of language member to
12159 struct extension_language_defn *.
12160 (init_loaded_scripts_info): Initialize
12161 unsupported_script_warning_printed.
12162 (maybe_add_script): Make static. Change type of language arg to
12163 struct extension_language_defn *.
12164 (clear_section_scripts): Reset unsupported_script_warning_printed.
12165 (auto_load_objfile_script_1): Rewrite to use extension language API.
12166 (auto_load_objfile_script): Make public. Remove support-compiled-in
12167 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12168 (source_section_scripts): Rewrite to use extension language API.
12169 (load_auto_scripts_for_objfile): Rewrite to use
12170 auto_load_scripts_for_objfile.
12171 (collect_matching_scripts_data): Change type of language member to
12172 struct extension_language_defn *.
12173 (auto_load_info_scripts): Change type of language arg to
12174 struct extension_language_defn *.
12175 (unsupported_script_warning_print): New function.
12176 (script_not_found_warning_print): Make static.
12177 (_initialize_auto_load): Rewrite construction of scripts-directory
12178 help.
12179 * auto-load.h (struct objfile): Add forward decl.
12180 (struct script_language): Delete.
12181 (struct auto_load_pspace_info): Add forward decl.
12182 (struct extension_language_defn): Add forward decl.
12183 (maybe_add_script): Delete.
12184 (auto_load_objfile_script): Declare.
12185 (script_not_found_warning_print): Delete.
12186 (auto_load_info_scripts): Update prototype.
12187 (auto_load_gdb_scripts_enabled): Declare.
12188 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12189 auto_load_python_scripts_enabled and made public.
12190 (script_language_python): Delete, moved to python.c.
12191 (gdbpy_script_language_defn): Delete.
12192 (info_auto_load_python_scripts): Update to use
12193 extension_language_python.
12194
12195 * breakpoint.c (condition_command): Replace call to
12196 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12197 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12198 with call to breakpoint_ext_lang_cond_says_stop.
12199 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12200 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12201 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12202 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12203 New arg slang.
12204 (local_setattro): Print name of extension language with existing
12205 stop condition.
12206
12207 * valprint.c (val_print, value_print): Update to call
12208 apply_ext_lang_val_pretty_printer.
12209 * cp-valprint.c (cp_print_value): Update call to
12210 apply_ext_lang_val_pretty_printer.
12211 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12212 (gdbpy_apply_val_pretty_printer): Renamed from
12213 apply_val_pretty_printer. New arg extlang.
12214 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12215
12216 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12217 extension language API.
12218 * cli/cli-script.c (execute_control_command): Update to call
12219 eval_ext_lang_from_control_command.
12220
12221 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12222 enum ext_lang_bt_status values. Update call to
12223 apply_ext_lang_frame_filter.
12224 (mi_cmd_stack_list_locals): Ditto.
12225 (mi_cmd_stack_list_args): Ditto.
12226 (mi_cmd_stack_list_variables): Ditto.
12227 * mi/mi-main.c: Delete #include "python/python-internal.h".
12228 Add #include "extension.h".
12229 (mi_cmd_list_features): Replace reference to python internal variable
12230 gdb_python_initialized with call to ext_lang_initialized_p.
12231
12232 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12233 Update to use enum ext_lang_frame_args. Update to call
12234 apply_ext_lang_frame_filter.
12235 * python/py-framefilter.c (extract_sym): Update to use enum
12236 ext_lang_bt_status.
12237 (extract_value, py_print_type, py_print_value): Ditto.
12238 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12239 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12240 (py_print_frame): Ditto.
12241 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12242 New arg extlang. Update to use enum ext_lang_bt_status.
12243
12244 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12245 finish_python_initialization. Replace with call to
12246 finish_ext_lang_initialization.
12247
12248 * typeprint.c (do_free_global_table): Update to call
12249 free_ext_lang_type_printers.
12250 (create_global_typedef_table): Update to call
12251 start_ext_lang_type_printers.
12252 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12253 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12254 (type_print_options): Change type of global_printers from "void *"
12255 to "struct ext_lang_type_printers *".
12256
12257 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12258 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12259 (gdbpy_preserve_values): Renamed from preserve_python_values.
12260 New arg extlang.
12261 (!HAVE_PYTHON, preserve_python_values): Delete.
12262
12263 * utils.c (quit_flag): Delete, moved to extension.c.
12264 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12265 extension.c.
12266
12267 * eval.c: Delete #include "python/python.h".
12268 * main.c: Delete #include "python/python.h".
12269
12270 * defs.h: Update comment.
12271
6af79985
JB
122722014-02-06 Joel Brobecker <brobecker@adacore.com>
12273
12274 GDB 7.7 released.
12275
12c5175d
MK
122762014-02-05 Mark Kettenis <kettenis@gnu.org>
12277
12278 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12279 defined.
12280
8dc5b319
YQ
122812014-02-05 Yao Qi <yao@codesourcery.com>
12282
12283 * remote.c (remote_pass_signals): Remove local 'buf' and use
12284 rs->buf.
12285 (remote_program_signals): Likewise.
12286
de7b2893
YQ
122872014-02-05 Yao Qi <yao@codesourcery.com>
12288
12289 * ctf.c: Include "inferior.h" and "gdbthread.h".
12290 (CTF_PID): A new macro.
12291 (ctf_open): Call inferior_appeared and add_thread_silent.
12292 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12293 (ctf_thread_alive): New function.
12294 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12295
66d032ac
YQ
122962014-02-05 Yao Qi <yao@codesourcery.com>
12297
12298 Revert this patch:
12299
12300 2013-05-24 Yao Qi <yao@codesourcery.com>
12301
12302 * tracepoint.c (TFILE_PID): Remove.
12303 (tfile_open): Don't add thread and inferior.
12304 (tfile_close): Don't set 'inferior_ptid'. Don't call
12305 exit_inferior_silent.
12306 (tfile_thread_alive): Remove.
12307 (init_tfile_ops): Don't set field 'to_thread_alive' of
12308 tfile_ops.
12309
f4ccffad
CE
123102014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12311
12312 * remote.c (remote_start_remote): Call remote_check_symbols even
12313 if only symbol-file (not file) has been given.
12314
591a12a1
UW
123152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12316
12317 * gdbarch.sh (skip_entrypoint): New callback.
12318 * gdbarch.c, gdbarch.h: Regenerate.
12319 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12320 * infrun.c (fill_in_stop_func): Likewise.
12321 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12322 (ppc_elfv2_elf_make_msymbol_special): New function.
12323 (ppc_elfv2_skip_entrypoint): Likewise.
12324 (ppc_linux_init_abi): Install them for ELFv2.
12325
cc0e89c5
UW
123262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12327
12328 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12329 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12330 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12331 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12332 structures returned in GPRs.
12333
52f548e4
UW
123342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12335
12336 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12337 offset to the stack parameter list for the ELFv2 ABI.
12338
d4094b6a
UW
123392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12340
12341 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12342 set_gdbarch_convert_from_func_ptr_addr and
12343 set_gdbarch_elf_make_msymbol_special for ELFv1.
12344 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12345 function descriptors on ELFv1.
12346 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12347 set up r12 at function entry.
12348
cd453cd0
UW
123492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12350
12351 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12352 (struct gdbarch_tdep): New member elf_abi.
12353
12354 * rs6000-tdep.c: Include "elf/ppc64.h".
12355 (rs6000_gdbarch_init): Detect ELF ABI version.
12356
0ff3e01f
UW
123572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12358
12359 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12360 within a register pair holding a DFP 128-bit value on little-endian.
12361 (ppc64_sysv_abi_return_value_base): Likewise.
12362 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12363 (dfp_pseudo_register_write): Likewise.
12364
5b757e5d
UW
123652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12366
12367 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12368 offset on little-endian when passing _Decimal32.
12369 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12370
084ee545
UW
123712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12372
12373 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12374 of the overlapped FP register within the VSX register on little-
12375 endian platforms.
12376 (efpr_pseudo_register_write): Likewise.
12377
d63167af
UW
123782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12379
12380 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12381 offset on little-endian when passing small structures.
12382
e765b44c
UW
123832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12384
12385 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12386 (struct ppc64_sysv_argpos): New data structure.
12387 (ppc64_sysv_abi_push_float): Remove.
12388 (ppc64_sysv_abi_push_val): New function.
12389 (ppc64_sysv_abi_push_integer): Likewise.
12390 (ppc64_sysv_abi_push_freg): Likewise.
12391 (ppc64_sysv_abi_push_vreg): Likewise.
12392 (ppc64_sysv_abi_push_param): Likewise.
12393 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12394 (ppc64_sysv_abi_return_value_base): New function.
12395 (ppc64_sysv_abi_return_value): Refactor to use it.
12396
36c24d95
UW
123972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12398
12399 * NEWS: Document new target powerpc64le-*-linux*.
12400
26fd9228
MK
124012014-02-04 Mark Kettenis <kettenis@gnu.org>
12402
12403 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12404 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12405 core dumps.
12406 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12407 register set used in ELF core dumps. Add floating-point register set.
12408
c5bb7362
KB
124092014-02-03 Kevin Buettner <kevinb@redhat.com>
12410
74228e77 12411 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12412 dwarf2_to_gdb[] table using symbolic constants. Adjust
12413 penultimate entry from number representing the PC register
12414 to symbolic constant representing the MDR register. Add
12415 constant for the PC register to the end of the table.
12416
af09351e
MK
124172014-02-03 Mark Kettenis <kettenis@gnu.org>
12418
12419 * bsd-kvm.c: Include <sys/param.h>
12420
8507e05d
MK
124212014-02-03 Mark Kettenis <kettenis@gnu.org>
12422
12423 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12424
ae56bfb8
JB
124252014-01-31 Joel Brobecker <brobecker@adacore.com>
12426
12427 * ada-lang.h (clear_ada_sym_cache): Delete.
12428
718ee4dc
UW
124292014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12430
12431 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12432
401e27fd
JM
124332014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12434
12435 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12436 the sigreturn register save area only if the syscall is
12437 sigreturn.
12438
a7c88acd
JB
124392014-01-29 Joel Brobecker <brobecker@adacore.com>
12440
12441 * valops.c (value_slice): Minor reformatting.
12442
fa0079ea
UW
124432014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12444
12445 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12446
c6044dd1
JB
124472014-01-28 Joel Brobecker <brobecker@adacore.com>
12448
12449 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12450 New static globals.
12451 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12452 (ada_ignore_descriptive_types_p): New static global.
12453 (find_parallel_type_by_descriptive_type): Return immediately
12454 if ada_ignore_descriptive_types_p is set.
12455 (_initialize_ada_language): Register new commands "maintenance
12456 set ada", "maintenance show ada", "maintenance set ada
12457 ignore-descriptive-types" and "maintenance show ada
12458 ignore-descriptive-types".
12459 * NEWS: Add entry for new "maint ada set/show
12460 ignore-descriptive-types" commands.
12461
568e808b
MM
124622014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12463
12464 * record-btrace.c (record_btrace_close): Call btrace_teardown
12465 for all threads.
12466
467d141b
JB
124672014-01-27 Joel Brobecker <brobecker@adacore.com>
12468
12469 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12470 "ui-out.h".
12471
fb151210
JB
124722014-01-27 Joel Brobecker <brobecker@adacore.com>
12473
12474 * ada-typeprint (type_is_full_subrange_of_target_type):
12475 New function.
12476 (print_range): Add parameter bounds_prefered_p. If not set,
12477 try printing range types using the name of their base type.
12478 (print_range_type): Add parameter bounds_prefered_p.
12479 Use it in call to print_range.
12480 (print_array_type, ada_print_type): Update calls to print_range
12481 and print_range_type.
12482
aba02109
JB
124832014-01-27 Joel Brobecker <brobecker@adacore.com>
12484
12485 * ada-typeprint.c (print_array_type, print_choices, print_range)
12486 (print_range_bound, print_dynamic_range_bound, print_range_type):
12487 Remove declaration.
12488
e62e21fd
JB
124892014-01-27 Joel Brobecker <brobecker@adacore.com>
12490
12491 * ada-typeprint.c (print_range): Add missing empty line
12492 after local declaration.
12493
859cf5d1
JB
124942014-01-27 Joel Brobecker <brobecker@adacore.com>
12495
12496 * ada-valprint.c (print_optional_low_bound): Get index_type's
12497 target type for as long as it is a TYPE_CODE_RANGE.
12498
25790f6f
JB
124992014-01-27 Joel Brobecker <brobecker@adacore.com>
12500
12501 * procfs.c (procfs_make_note_section): Remove assertion and
12502 associated comment.
12503
6b6aa828
YQ
125042014-01-24 Yao Qi <yao@codesourcery.com>
12505
12506 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12507 * corelow.c (get_core_siginfo): Likewise.
12508
5d6df423
YQ
125092014-01-24 Yao Qi <yao@codesourcery.com>
12510
12511 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12512 ULONGEST. Don't check 'len' is negative.
12513 (remote_write_bytes): Change type of 'len' to ULONGEST.
12514
83b645b8
TT
125152014-01-23 Tom Tromey <tromey@redhat.com>
12516
12517 PR python/16485:
12518 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12519 Handle exception from frame.block.
12520 (FrameVars.fetch_frame_locals): Likewise.
12521
0740f8d8
TT
125222014-01-23 Tom Tromey <tromey@redhat.com>
12523
12524 PR python/16487:
12525 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12526 on a NULL pointer. Move "goto error" to correct place.
12527
21909fa1
TT
125282014-01-23 Tom Tromey <tromey@redhat.com>
12529
12530 PR python/16491:
12531 * python/py-framefilter.c (apply_frame_filter): Call
12532 ensure_python_env after computing gdbarch.
12533
17fde6d0
YQ
125342014-01-23 Yao Qi <yao@codesourcery.com>
12535
12536 * target.c (raw_memory_xfer_partial): Change argument type
12537 from void * to gdb_byte *.
12538 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12539
87ce2a04
DE
125402014-01-22 Doug Evans <dje@google.com>
12541
12542 New gdbserver option --debug-format=timestamp.
12543 * NEWS: Mention it.
12544
237b092b
AA
125452014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12546
12547 * syscalls/s390x-linux.xml: New file.
12548 * syscalls/s390-linux.xml: New file.
12549 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12550 (XML_SYSCALL_FILENAME_S390X): Likewise.
12551 (op_svc): New enum value for SVC opcode.
12552 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12553 (s390_linux_get_syscall_number): New function.
12554 (s390_gdbarch_init): Register '*get_syscall_number' and the
12555 syscall xml file name.
12556 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12557 "s390-linux.xml" and "s390x-linux.xml".
12558 * NEWS: Announce new feature.
12559
54bff650
BS
125602014-01-22 Baruch Siach <baruch@tkos.co.il>
12561
12562 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12563
14e361d7
PA
125642014-01-22 Pedro Alves <palves@redhat.com>
12565
12566 * xtensa-config.c: Include defs.h.
12567
46bbb3ed
JB
125682014-01-22 Joel Brobecker <brobecker@adacore.com>
12569
12570 * common/common-utils.h: Add "ARI:" comment beside __func__
12571 reference.
12572
3a80edfc
JB
125732014-01-22 Joel Brobecker <brobecker@adacore.com>
12574
12575 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12576 documentation a bit.
12577
4869db5e
RM
125782014-01-21 Roland McGrath <mcgrathr@google.com>
12579
12580 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12581 * configure: Regenerate.
12582 * aclocal.m4: Regenerate.
12583 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12584 New substituted variables.
12585 (install-strip): New target.
12586 (INSTALL_SCRIPT): New substituted variable.
12587 (FLAGS_TO_PASS): Add it.
12588 (install-only): Use $(INSTALL_SCRIPT) rather than
12589 $(INSTALL_PROGRAM) for gcore.
12590
9ea4267d
TT
125912014-01-20 Tom Tromey <tromey@redhat.com>
12592
12593 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12594 together.
12595
1f2bdf09
TT
125962014-01-20 Tom Tromey <tromey@redhat.com>
12597
12598 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12599 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12600 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12601 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12602 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12603 (struct cmd_list_element) <flags>: Remove.
12604 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12605 doc_allocated>: New fields.
12606 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12607 bitfields.
12608 * maint.c (maintenance_do_deprecate): Update.
12609 * top.c (execute_command): Update.
12610
e671835b
BS
126112014-01-20 Baruch Siach <baruch@tkos.co.il>
12612
12613 * xtensa-linux-nat.c: Include asm/ptrace.h.
12614
50367cd2
IB
126152014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12616
12617 * Makefile.in (SFILES): Add d-support.c.
12618 (COMMON_OBS): Add d-support.o.
12619 * d-lang.h (d_parse_symbol): Add comment, now defined in
12620 d-support.c.
12621 * d-lang.c (parse_call_convention)
12622 (parse_attributes, parse_function_types)
12623 (parse_function_args, parse_type, parse_identifier)
12624 (call_convention_p, d_parse_symbol): Move functions to ...
12625 * d-support.c: ... New file.
12626
ec9f644a
IB
126272014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12628
12629 * d-lang.h (d_parse_symbol): Add declaration.
12630 * d-lang.c (extract_identifiers)
12631 (extract_type_info): Remove functions.
12632 (parse_call_convention, parse_attributes)
12633 (parse_function_types, parse_function_args)
12634 (parse_type, parse_identifier, call_convention_p)
12635 (d_parse_symbol): New functions.
12636 (d_demangle): Use d_parse_symbol to demangle D symbols.
12637
94b1b47e
IB
126382014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12639
12640 * d-lang.h (struct builtin_d_type): New data type.
12641 (builtin_d_type): Add declaration.
12642 * d-lang.c (d_language_arch_info, build_d_types)
12643 (builtin_d_type): New functions.
12644 (enum d_primitive_types): New data type.
12645 (d_language_defn): Change c_language_arch_info to
12646 d_language_arch_info.
12647 (d_type_data): New static variable.
12648 (_initialize_d_language): Initialize d_type_data.
12649
63778547
IB
126502014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12651
12652 * d-lang.h (d_main_name): Add declaration.
12653 * d-lang.c (d_main_name): New function.
12654 * symtab.c (find_main_name): Add call to d_main_name.
12655
3271ba66
IB
126562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12657
12658 * d-lang.c (d_language_defn): Change macro_expansion_c to
12659 macro_expansion_no.
12660
d36b3012
IB
126612014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12662
12663 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12664
c90a6fb7
SDJ
126652014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12666
12667 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12668 gdb_exception" declaration.
12669 * remote.c (getpkt_or_notif_sane): Likewise.
12670
749234e5
DE
126712014-01-17 Doug Evans <dje@google.com>
12672
12673 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12674 function, contents of dirnames_to_char_ptr_vec_append moved here.
12675 (delim_string_to_char_ptr_vec): New function.
12676 (dirnames_to_char_ptr_vec_append): Rewrite.
12677 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12678
df049a58
DE
126792014-01-17 Doug Evans <dje@google.com>
12680
12681 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12682 and moved here ...
12683 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12684 #include "common-utils.h".
12685 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12686 * common/vec.h (VEC_ASSERT_PASS): Update.
12687 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12688 (MACH_CHECK_ERROR): Update.
12689
69f97648
SM
126902014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12691
12692 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12693 comments.
12694 * gdbarch.h: Regenerate.
12695
98b1cfdc
TT
126962014-01-16 Tom Tromey <tromey@redhat.com>
12697
12698 * value.c (struct value) <regnum>: Move earlier.
12699
77a19445
TT
127002014-01-16 Tom Tromey <tromey@redhat.com>
12701
12702 * remote.c (extended_remote_create_inferior): Rename from
12703 extended_remote_create_inferior_1. Add "ops" argument. Remove
12704 old implementation.
12705
62261490
PA
127062014-01-16 Pedro Alves <palves@redhat.com>
12707
12708 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12709 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12710 the backchain.
12711
4d65956b
DE
127122014-01-16 Doug Evans <dje@google.com>
12713
12714 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12715
52834460
MM
127162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12717
12718 * btrace.h (btrace_thread_flag): New.
12719 (struct btrace_thread_info) <flags>: New.
12720 * record-btrace.c (record_btrace_resume_thread)
12721 (record_btrace_find_thread_to_move, btrace_step_no_history)
12722 (btrace_step_stopped, record_btrace_start_replaying)
12723 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12724 (record_btrace_find_resume_thread): New.
12725 (record_btrace_resume, record_btrace_wait): Extend.
12726 (record_btrace_can_execute_reverse): New.
12727 (record_btrace_open): Fail in non-stop mode.
12728 (record_btrace_set_replay): Split into this, ...
12729 (record_btrace_stop_replaying): ... this, ...
12730 (record_btrace_clear_histories): ... and this.
12731 (init_record_btrace_ops): Init to_can_execute_reverse.
12732 * NEWS: Announce it.
12733
118e6252
MM
127342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12735
12736 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12737 (forward_target_decr_pc_after_break)
12738 (target_decr_pc_after_break): New.
12739 * target.c (forward_target_decr_pc_after_break)
12740 (target_decr_pc_after_break): New.
12741 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12742 instead of gdbarch_decr_pc_after_break.
12743 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12744 instead of gdbarch_decr_pc_after_break.
12745 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12746 instead of gdbarch_decr_pc_after_break.
12747 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12748 instead of gdbarch_decr_pc_after_break.
12749 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12750 instead of gdbarch_decr_pc_after_break.
12751 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12752 instead of gdbarch_decr_pc_after_break.
12753
6e07b1d2
MM
127542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12755
12756 * btrace.c: Include regcache.h.
12757 (btrace_add_pc): New.
12758 (btrace_enable): Call btrace_add_pc.
12759 (btrace_is_empty): New.
12760 * btrace.h (btrace_is_empty): New.
12761 * record-btrace.c (require_btrace, record_btrace_info): Call
12762 btrace_is_empty.
12763
969c39fb
MM
127642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12765
12766 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12767 Support delta reads.
12768 (linux_disable_btrace): Change return type.
12769 * common/linux-btrace.h (linux_read_btrace): Change parameters
12770 and return type to allow error reporting. Update users.
12771 (linux_disable_btrace): Change return type. Update users.
12772 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12773 New.
12774 (btrace_error): New.
12775 (btrace_block) <begin>: Comment on BEGIN == 0.
12776 * btrace.c (btrace_compute_ftrace): Start from the end of
12777 the current trace.
12778 (btrace_stitch_trace, btrace_clear_history): New.
12779 (btrace_fetch): Read delta trace, return if replaying.
12780 (btrace_clear): Move clear history code to btrace_clear_history.
12781 (parse_xml_btrace): Throw an error if parsing failed.
12782 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12783 and return type to allow error reporting.
12784 (target_read_btrace): Change parameters and return type to allow
12785 error reporting.
12786 * target.c (target_read_btrace): Update.
12787 * remote.c (remote_read_btrace): Support delta reads. Pass
12788 errors on.
12789 * NEWS: Announce it.
12790
0b722aec
MM
127912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12792
12793 * record.h (record_btrace_frame_unwind)
12794 (record_btrace_tailcall_frame_unwind): New declarations.
12795 * dwarf2-frame: Include record.h
12796 (dwarf2_frame_cfa): Throw an error for btrace frames.
12797 * record-btrace.c: Include hashtab.h.
12798 (btrace_get_bfun_name): New.
12799 (btrace_call_history): Call btrace_get_bfun_name.
12800 (struct btrace_frame_cache): New.
12801 (bfcache): New.
12802 (bfcache_hash, bfcache_eq, bfcache_new): New.
12803 (btrace_get_frame_function): New.
12804 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12805 (record_btrace_frame_this_id): Compute own id.
12806 (record_btrace_frame_prev_register): Provide PC, throw_error
12807 for all other registers.
12808 (record_btrace_frame_sniffer): Detect btrace frames.
12809 (record_btrace_tailcall_frame_sniffer): New.
12810 (record_btrace_frame_dealloc_cache): New.
12811 (record_btrace_frame_unwind): Add new functions.
12812 (record_btrace_tailcall_frame_unwind): New.
12813 (_initialize_record_btrace): Allocate cache.
12814 * btrace.c (btrace_clear): Call reinit_frame_cache.
12815 * NEWS: Announce it.
12816
066ce621
MM
128172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12818
12819 * record-btrace.c (record_btrace_set_replay)
12820 (record_btrace_goto_begin, record_btrace_goto_end)
12821 (record_btrace_goto): New.
12822 (init_record_btrace_ops): Initialize them.
12823 * NEWS: Announce it.
12824
e2887aa3
MM
128252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12826
12827 * record-btrace.c (record_btrace_find_new_threads)
12828 (record_btrace_thread_alive): New.
12829 (init_record_btrace_ops): Initialize to_find_new_threads and
12830 to_thread_alive.
12831
b2f4cfde
MM
128322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12833
12834 * record-btrace.c (record_btrace_resume): New.
12835 (record_btrace_wait): New.
12836 (init_record_btrace_ops): Initialize to_wait and to_resume.
12837
633785ff
MM
128382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12839
12840 * record-btrace.c (record_btrace_xfer_partial)
12841 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12842 (record_btrace_allow_memory_access): New.
12843 (init_record_btrace_ops): Initialize new methods.
12844 * target.c (raw_memory_xfer_partial): Bail out if target reports
12845 that this memory is not available.
12846
3db08215
MM
128472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12848
12849 * target.h (target_ops) <to_insert_breakpoint>
12850 <to_remove_breakpoint>: Add target_ops parameter.
12851 (forward_target_insert_breakpoint): New.
12852 (forward_target_remove_breakpoint): New.
12853 (memory_remove_breakpoint, memory_insert_breakpoint):
12854 Add target_ops parameter.
12855 * target.c (target_insert_breakpoint): Split into this and ...
12856 (forward_target_insert_breakpoint): ... this.
12857 (target_remove_breakpoint): Split into this and ...
12858 (forward_target_remove_breakpoint): ... this.
12859 (debug_to_insert_breakpoint): Add target_ops parameter.
12860 Call forward_target_insert_breakpoint.
12861 (debug_to_remove_breakpoint): Add target_ops parameter.
12862 Call forward_target_remove_breakpoint.
12863 (update_current_target): Do not inherit or default to_insert_breakpoint
12864 and to_remove_breakpoint.
12865 * corelow.c (ignore): Add target_ops parameter.
12866 * exec.c (ignore): Add target_ops parameter.
12867 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12868 Add target_ops parameter.
12869 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12870 Add target_ops parameter.
12871 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12872 Add target_ops parameter.
12873 * record-full.c (record_full_beneath_to_insert_breakpoint)
12874 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12875 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12876 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12877 (record_full_core_remove_breakpoint): Add target_ops parameter.
12878 Update users.
12879 (record_full_beneath_to_insert_breakpoint_ops)
12880 (record_full_beneath_to_remove_breakpoint_ops)
12881 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12882 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12883 tmp_to_remove_breakpoint_ops,
12884 record_full_beneath_to_insert_breakpoint_ops, and
12885 record_full_beneath_to_remove_breakpoint_ops.
12886 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12887 (m32r_remove_breakpoint): Add target_ops parameter.
12888 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12889 Add target_ops parameter.
12890 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12891 Add target_ops parameter.
12892
cecac1ab
MM
128932014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12894 Markus Metzger <markus.t.metzger@intel.com>
12895
12896 * record-btrace.c: Include frame-unwind.h.
12897 (record_btrace_frame_unwind_stop_reason)
12898 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12899 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12900 New.
12901 (init_record_btrace_ops): Install it.
12902
824344ca
MM
129032014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12904
12905 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12906 get_prev_frame_1.
12907
32261e52
MM
129082014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12909
12910 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12911 earlier.
12912
ea001bdc
MM
129132014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12914
12915 * frame-unwind.c: Include target.h.
12916 (frame_unwind_try_unwinder): New function with code from ...
12917 (frame_unwind_find_by_frame): ... here. New variable
12918 unwinder_from_target, call also target_get_unwinder)
12919 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12920 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12921 * target.h (struct target_ops): New fields to_get_unwinder and
12922 to_get_tailcall_unwinder.
12923 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12924
1f3ef581
MM
129252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12926
12927 * record-btrace.c (record_btrace_fetch_registers)
12928 (record_btrace_store_registers)
12929 (record_btrace_to_prepare_to_store): New.
12930 (init_record_btrace_ops): Add the above.
12931
f32dbf8c
MM
129322014-01-16 Tom Tromey <tromey@redhat.com>
12933
12934 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12935 * target.h (struct target_ops) <to_prepare_to_store>: Add
12936 argument.
12937 (target_prepare_to_store): Add argument.
12938 * target.c (debug_to_prepare_to_store): Add argument.
12939 (update_current_target): Update.
12940 * remote.c (remote_prepare_to_store): Add 'self' argument.
12941 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12942 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12943 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12944 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12945 argument.
12946 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12947 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12948 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12949 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12950 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12951
07bbe694
MM
129522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12953
12954 * btrace.h (replay) <replay>: New.
12955 (btrace_is_replaying): New.
12956 * btrace.c (btrace_clear): Free replay iterator.
12957 (btrace_is_replaying): New.
12958 * record-btrace.c (record_btrace_is_replaying): New.
12959 (record_btrace_info): Print insn number if replaying.
12960 (record_btrace_insn_history): Start at replay position.
12961 (record_btrace_call_history): Start at replay position.
12962 (init_record_btrace_ops): Init to_record_is_replaying.
12963
0688d04e
MM
129642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12965
12966 * record-btrace.c (record_btrace_insn_history_range): Include
12967 end.
12968 (record_btrace_insn_history_from): Adjust range.
12969 (record_btrace_call_history_range): Include
12970 end.
12971 (record_btrace_call_history_from): Adjust range.
12972 * NEWS: Announce changes.
12973
8710b709
MM
129742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12975
12976 * record.h (enum record_print_flag)
12977 <record_print_indent_calls>: New.
12978 * record.c (get_call_history_modifiers): Recognize /c modifier.
12979 (_initialize_record): Document /c modifier.
12980 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12981 Reorder fields. Optionally indent the function name. Update
12982 all users.
12983 * NEWS: Announce changes.
12984
d0fa7535
MM
129852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12986
12987 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12988
5de9129b
MM
129892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12990
12991 * btrace.c (ftrace_new_function): Start counting at one.
12992 * record-btrace.c (record_btrace_info): Adjust number of calls
12993 and insns.
12994 * NEWS: Announce it.
12995
7acbe133
MM
129962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12997
12998 * record-btrace.c (btrace_call_history_insn_range): Print
12999 insn range as [begin, end].
13000
23a7fe75
MM
130012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13002
13003 * btrace.h (struct btrace_func_link): New.
13004 (enum btrace_function_flag): New.
13005 (struct btrace_inst): Rename to ...
13006 (struct btrace_insn): ...this. Update all users.
13007 (struct btrace_func) <ibegin, iend>: Remove.
13008 (struct btrace_func_link): New.
13009 (struct btrace_func): Rename to ...
13010 (struct btrace_function): ...this. Update all users.
13011 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13012 (number, level, flags>: New.
13013 (struct btrace_insn_iterator): Rename to ...
13014 (struct btrace_insn_history): ...this.
13015 Update all users.
13016 (struct btrace_insn_iterator, btrace_call_iterator): New.
13017 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13018 (struct btrace_target_info) <begin, end, level>
13019 <insn_history, call_history>: New.
13020 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13021 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13022 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13023 (btrace_call_number, btrace_call_begin, btrace_call_end)
13024 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13025 (btrace_find_function_by_number, btrace_set_insn_history)
13026 (btrace_set_call_history): New.
13027 * btrace.c (btrace_init_insn_iterator)
13028 (btrace_init_func_iterator, compute_itrace): Remove.
13029 (ftrace_print_function_name, ftrace_print_filename)
13030 (ftrace_skip_file): Change
13031 parameter to const.
13032 (ftrace_init_func): Remove.
13033 (ftrace_debug): Use new btrace_function fields.
13034 (ftrace_function_switched): Also consider gaining and
13035 losing symbol information).
13036 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13037 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13038 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13039 New.
13040 (ftrace_new_function): Move. Remove debug print.
13041 (ftrace_update_lines, ftrace_update_insns): New.
13042 (ftrace_update_function): Check for call, ret, and jump.
13043 (compute_ftrace): Renamed to ...
13044 (btrace_compute_ftrace): ...this. Rewritten to compute call
13045 stack.
13046 (btrace_fetch, btrace_clear): Updated.
13047 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13048 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13049 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13050 (btrace_call_number, btrace_call_begin, btrace_call_end)
13051 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13052 (btrace_find_function_by_number, btrace_set_insn_history)
13053 (btrace_set_call_history): New.
13054 * record-btrace.c (require_btrace): Use new btrace thread
13055 info fields.
13056 (record_btrace_info, btrace_insn_history)
13057 (record_btrace_insn_history, record_btrace_insn_history_range):
13058 Use new btrace thread info fields and new iterator.
13059 (btrace_func_history_src_line): Rename to ...
13060 (btrace_call_history_src_line): ...this. Use new btrace
13061 thread info fields.
13062 (btrace_func_history): Rename to ...
13063 (btrace_call_history): ...this. Use new btrace thread info
13064 fields and new iterator.
13065 (record_btrace_call_history, record_btrace_call_history_range):
13066 Use new btrace thread info fields and new iterator.
13067
8372a7cb
MM
130682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13069
13070 * frame.h (frame_id_build_unavailable_stack_special): New.
13071 * frame.c (frame_id_build_unavailable_stack_special): New.
13072
c2170eef
MM
130732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13074
13075 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13076 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13077 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13078 to gdbarch.
13079 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13080 (i386_insn_is_jump, i386_jmp_p): New.
13081 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13082 insn_is_jump to gdbarch.
13083 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13084 * gdbarch.h: Regenerated.
13085 * gdbarch.c: Regenerated.
13086 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13087 (default_insn_is_jump): New.
13088 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13089 (default_insn_is_jump): New.
13090
864089d2
MM
130912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13092
13093 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13094 Change to ...
13095 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13096 (btrace_read_type) <btrace_read_new>: Change to ...
13097 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13098
ed9edfb5
MM
130992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13100
13101 * common/linux-btrace.c (linux_read_btrace): Free trace from
13102 previous iteration.
13103
fbcbc3fd
DE
131042014-01-15 Doug Evans <dje@google.com>
13105
13106 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13107 uint32_t.
13108
3d548a53
TT
131092014-01-15 Tom Tromey <tromey@redhat.com>
13110
13111 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13112 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13113 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13114 (set_objfile_main_name): New function.
13115 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13116 language_of_main>: New fields.
13117 (set_objfile_main_name): Declare.
13118 * symtab.c (find_main_name): Loop over objfiles to find the main
13119 name and language.
13120 (set_main_name): Now static.
13121 (get_main_info): Add comment.
13122 * symtab.h (set_main_name): Don't declare.
13123
32ac0d11
TT
131242014-01-15 Tom Tromey <tromey@redhat.com>
13125
13126 * symtab.c (main_progspace_key): New global.
13127 (struct main_info): New.
13128 (name_of_main, language_of_main): Remove.
13129 (get_main_info, main_info_cleanup): New function.
13130 (set_main_name, main_name, main_language): Use get_main_info.
13131 (_initialize_symtab): Initialize main_progspace_key.
13132
9e6c82ad
TT
131332014-01-15 Tom Tromey <tromey@redhat.com>
13134
13135 * dbxread.c (process_one_symbol): Update.
13136 * dwarf2read.c (read_partial_die): Update.
13137 * symfile.c (set_initial_language): Call main_language.
13138 * symtab.c (language_of_main): Now static.
13139 (set_main_name): Add 'lang' parameter.
13140 (find_main_name): Update.
13141 (main_language): New function.
13142 (symtab_observer_executable_changed): Update.
13143 * symtab.h (set_main_name): Update.
13144 (language_of_main): Remove.
13145 (main_language): Declare.
13146
6ef55de7
TT
131472014-01-15 Tom Tromey <tromey@redhat.com>
13148
13149 * symfile.c (init_entry_point_info): Use new "initialized" field.
13150 Update.
13151 * objfiles.h (struct entry_point) <initialized>: New field.
13152 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13153 (struct objfile) <ei>: ...here. Remove.
13154 * objfiles.c (entry_point_address_query): Update.
13155
53eddfa6
TT
131562014-01-15 Tom Tromey <tromey@redhat.com>
13157
13158 * objfiles.c (entry_point_address_query): Relocate entry point
13159 address.
13160 (objfile_relocate1): Do not relocate entry point address.
13161 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13162 <the_bfd_section_index>: New field.
13163 * symfile.c (init_entry_point_info): Find the entry point's
13164 section.
13165
d56e56aa
TT
131662014-01-15 Tom Tromey <tromey@redhat.com>
13167
13168 * solib-frv.c (enable_break): Use entry_point_address_query.
13169
33a97bbe
OJ
131702014-01-15 Omair Javaid <omair.javaid@linaro.org>
13171
13172 * NEWS: Add note on improved process record-replay on
13173 arm*-linux* targets.
13174
c6ec2b30
OJ
131752014-01-15 Omair Javaid <omair.javaid@linaro.org>
13176
13177 * arm-tdep.c (enum arm_record_result): New enum.
13178 (arm_record_unsupported_insn): New function.
13179 (arm_record_coproc_data_proc): Removed.
13180 (thumb2_record_ld_st_multiple): New function.
13181 (thumb2_record_ld_st_dual_ex_tbb): New function.
13182 (thumb2_record_data_proc_sreg_mimm): New function.
13183 (thumb2_record_ps_dest_generic): New function.
13184 (thumb2_record_branch_misc_cntrl): New function.
13185 (thumb2_record_str_single_data): New function.
13186 (thumb2_record_ld_mem_hints): New function.
13187 (thumb2_record_ld_word): New function.
13188 (thumb2_record_lmul_lmla_div): New function.
13189 (thumb2_record_decode_insn_handler): New function.
13190 (decode_insn): Add thumb32 instruction handlers.
13191
97dfe206
OJ
131922014-01-15 Omair Javaid <omair.javaid@linaro.org>
13193
13194 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13195 (struct arm_linux_record_tdep): Declare.
13196 (arm_canonicalize_syscall): New function.
13197 (arm_all_but_pc_registers_record): New function.
13198 (arm_linux_syscall_record): New function.
13199 (arm_linux_init_abi): Add syscall recording constructs.
13200 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13201 decoding. (arm_record_coproc_data_proc): Update arm syscall
13202 decoding.
13203 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13204 <arm_syscall_record>: New field.
13205 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13206 gdb_target_obs.
13207
9904a494
OJ
132082014-01-15 Omair Javaid <omair.javaid@linaro.org>
13209
13210 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13211 register for push instruction recording.
13212
f969241e
OJ
132132014-01-15 Omair Javaid <omair.javaid@linaro.org>
13214
13215 * arm-tdep.c (thumb_record_misc): Update to correct logical
13216 error while recording ldm, ldmia and pop instructions.
13217
bfbbec00
OJ
132182014-01-15 Omair Javaid <omair.javaid@linaro.org>
13219
13220 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13221
e40adcc9
PA
132222014-01-15 Pedro Alves <palves@redhat.com>
13223
13224 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13225 (go32_resume, go32_fetch_registers, store_register)
13226 (go32_store_registers, go32_prepare_to_store)
13227 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13228 (go32_create_inferior, go32_can_run, go32_terminal_init)
13229 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13230 declarations.
13231
b0a16e66
TT
132322014-01-15 Tom Tromey <tromey@redhat.com>
13233
13234 * target.h (async_callback_ftype): New typedef.
13235 (struct target_ops) <to_async>: Use it.
13236
bf7105a4
JB
132372014-01-15 Joel Brobecker <brobecker@adacore.com>
13238
13239 * python/py-value.c (get_field_type): Remove unnecessary curly
13240 braces for single-statement if block.
13241
a8f35c2e
JB
132422014-01-15 Joel Brobecker <brobecker@adacore.com>
13243
13244 * python/py-type.c (convert_field): Add missing empty line
13245 after declarations.
13246
bb4142cf
DE
132472014-01-14 Doug Evans <dje@google.com>
13248
13249 * symfile.h (expand_symtabs_matching): Renamed from
13250 expand_partial_symbol_names. Update prototype.
13251 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13252 * symfile.c (expand_symtabs_matching): Renamed from
13253 expand_partial_symbol_names. New args file_matcher, kind.
13254 Rename arg fun to symbol_matcher.
13255 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13256 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13257 ada_expand_partial_symbol_name.
13258 (ada_make_symbol_completion_list): Update to call
13259 expand_symtabs_matching.
13260 (ada_add_global_exceptions): Call expand_symtabs_matching.
13261 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13262 call map_symbol_filenames.
13263 * symtab.c (sources_info): Update to call map_symbol_filenames.
13264 (search_symbols): Call expand_symtabs_matching.
13265 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13266 (default_make_symbol_completion_list_break_on): Update to call
13267 expand_symtabs_matching.
13268 (make_source_files_completion_list): Update to call
13269 map_symbol_filenames.
13270
206f2a57
DE
132712014-01-14 Doug Evans <dje@google.com>
13272
13273 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13274 (expand_symtabs_symbol_matcher_ftype): New typedef.
13275 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13276 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13277 * symfile.c (expand_partial_symbol_names): Update to use
13278 expand_symtabs_symbol_matcher_ftype.
13279 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13280 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13281 Arg name_matcher renamed to symbol_matcher.
13282 * psymtab.c (recursively_search_psymtabs): Update to use
13283 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13284 sym_matcher.
13285 (expand_symtabs_matching_via_partial): Update to use
13286 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13287 Arg name_matcher renamed to symbol_matcher.
13288
540c2971
DE
132892014-01-14 Doug Evans <dje@google.com>
13290
13291 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13292 (map_partial_symbol_filenames): Ditto.
13293 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13294 (map_partial_symbol_filenames): Ditto.
13295 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13296 (map_partial_symbol_filenames): Ditto.
13297 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13298 (map_partial_symbol_filenames): Ditto.
13299 * symtab.c: Delete #include "psymtab.h".
13300
8213266a
PA
133012014-01-14 Pedro Alves <palves@redhat.com>
13302 Tom Tromey <tromey@redhat.com>
13303
13304 * infrun.c (use_displaced_stepping): Use find_record_target
13305 instead of RECORD_IS_USED.
13306 (adjust_pc_after_break): Use record_full_is_used instead of
13307 RECORD_IS_USED.
13308 * record-btrace.c (record_btrace_open): Call record_preopen
13309 instead of checking RECORD_IS_USED.
13310 * record-full.c (record_full_shortname)
13311 (record_full_core_shortname): New globals.
13312 (record_full_is_used): New function.
13313 (find_full_open): Call record_preopen instead of checking
13314 RECORD_IS_USED.
13315 (init_record_full_ops): Set the target's shortname to
13316 record_full_shortname.
13317 (init_record_full_core_ops): Set the target's shortname to
13318 record_full_core_shortname.
13319 * record-full.h (record_full_is_used): Declare.
13320 * record.c (find_record_target): Make extern.
13321 (record_preopen): New function.
13322 * record.h (RECORD_IS_USED): Delete macro.
13323 (find_record_target, record_preopen): Declare functions.
13324
7ec1862d
YQ
133252014-01-14 Yao Qi <yao@codesourcery.com>
13326
13327 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13328 'len''s type to ULONGEST.
13329 (core_xfer_shared_libraries_aix): Likewise.
13330 * gdbarch.c, gdbarch.h: Regenerated.
13331 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13332 Change type of 'len' to ULONGEST.
13333 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13334 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13335
dea80a27
YQ
133362014-01-14 Yao Qi <yao@codesourcery.com>
13337
13338 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13339 type of 'len' to ULONGEST.
13340 (linux_xfer_osdata_processgroups): Likewise.
13341 (linux_xfer_osdata_threads): Likewise.
13342 (linux_xfer_osdata_fds): Likewise.
13343 (linux_xfer_osdata_isockets): Likewise.
13344 (linux_xfer_osdata_shm): Likewise.
13345 (linux_xfer_osdata_sem): Likewise.
13346 (linux_xfer_osdata_msg): Likewise.
13347 (linux_common_xfer_osdata): Likewise.
13348 (struct osdata_type) <getter>: Likewise.
13349 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13350 the declaration.
13351
b55e14c7
YQ
133522014-01-14 Yao Qi <yao@codesourcery.com>
13353
13354 * target.h (target_xfer_partial_ftype): Update.
13355 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13356 ULONGEST.
13357 * aix-thread.c (aix_thread_xfer_partial): Change type of
13358 argument 'len' to ULONGEST.
13359 * auxv.c (procfs_xfer_auxv): Likewise.
13360 (ld_so_xfer_auxv): Likewise.
13361 (memory_xfer_auxv): Likewise.
13362 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13363 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13364 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13365 * corelow.c (core_xfer_partial): Likewise.
13366 * ctf.c (ctf_xfer_partial): Likewise.
13367 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13368 '%u'.
13369 (darwin_read_dyld_info): Likewise.
13370 (darwin_xfer_partial): Likewise.
13371 * exec.c (section_table_xfer_memory_partial): Likewise.
13372 (exec_xfer_partial): Likewise.
13373 * exec.h (section_table_xfer_memory_partial): Update
13374 declaration.
13375 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13376 instead of plongest.
13377 (gnu_xfer_partial): Likewise.
13378 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13379 (ia64_hpux_xfer_solib_got): Likewise.
13380 (ia64_hpux_xfer_partial): Likewise.
13381 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13382 * inf-ptrace.c (inf_ptrace_xfer_partial):
13383 * inf-ttrace.c (inf_ttrace_xfer_partial):
13384 * linux-nat.c (linux_xfer_siginfo): Likewise.
13385 (linux_nat_xfer_partial): Likewise.
13386 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13387 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13388 * monitor.c (monitor_xfer_memory): Likewise.
13389 (monitor_xfer_partial): Likewise.
13390 * procfs.c (procfs_xfer_partial): Likewise.
13391 * record-full.c (record_full_xfer_partial): Likewise.
13392 (record_full_core_xfer_partial): Likewise.
13393 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13394 instead of plongest.
13395 (gdbsim_xfer_partial): Likewise.
13396 * remote.c (remote_xfer_partial): Likewise.
13397 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13398 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13399 declaration.
13400 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13401 (rs6000_xfer_shared_libraries): Likewise.
13402 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13403 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13404 (sparc_xfer_partial): Likewise.
13405 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13406 (spu_xfer_partial): Likewise.
13407 * spu-multiarch.c (spu_xfer_partial): Likewise.
13408 * target.c (target_read_live_memory): Likewise.
13409 (memory_xfer_live_readonly_partial): Likewise.
13410 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13411 (target_xfer_partial, default_xfer_partial): Likewise.
13412 (current_xfer_partial): Likewise.
13413 * tracepoint.c (tfile_xfer_partial): Likewise.
13414 * windows-nat.c (windows_xfer_memory): Likewise. Call
13415 pulongest instead of plongest.
13416 (windows_xfer_partial): Likewise.
13417 (windows_xfer_shared_libraries): Likewise.
13418
05804640
YQ
134192014-01-14 Yao Qi <yao@codesourcery.com>
13420
13421 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13422 target_xfer_partial_ftype.
13423
b5b08fb4
SC
134242014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13425
13426 PR python/15464
13427 PR python/16113
13428 * valops.c (value_struct_elt_bitpos): New function
13429 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13430 object to 'None' if the field name is an empty string ("").
13431 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13432 attribute to look for a field when 'name' is 'None'.
13433 (get_field_type): New function
13434
13aaf454
DE
134352014-01-13 Doug Evans <dje@google.com>
13436
13437 PR symtab/16426
13438 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13439 (try_open_dwop_file): Ditto.
13440 * gdb_bfd.c: #include "vec.h".
13441 (bfdp): New typedef.
13442 (struct gdb_bfd_data): New member included_bfds.
13443 (gdb_bfd_unref): Unref all included bfds.
13444 (gdb_bfd_record_inclusion): New function.
13445 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13446
c2cec97c
TT
134472014-01-13 Tom Tromey <tromey@redhat.com>
13448
13449 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13450
78e5999d
TT
134512014-01-13 Tom Tromey <tromey@redhat.com>
13452
13453 * defs.h (use_windows): Remove.
13454 * gdb.c (main): Update.
13455 * main.c (captured_main, gdb_main): Update.
13456 * main.h (struct captured_main_args) <use_windows>: Remove.
13457 * top.c (use_windows): Remove.
13458
f2052bbe
TT
134592014-01-13 Tom Tromey <tromey@redhat.com>
13460
13461 * defs.h (deprecated_flush_hook): Remove.
13462
fde4f8ed
JK
134632014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13464
13465 PR threads/16216
13466 * linux-thread-db.c (try_thread_db_load): Add parameter
13467 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13468 (try_thread_db_load_from_pdir_1): Move it there from here.
13469 (try_thread_db_load_from_sdir): Update caller.
13470 (try_thread_db_load_from_dir): Move it there from here.
13471
bdf61915
PP
134722014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13473
13474 * regformats/regdat.sh: Always rewrite the register file.
13475
f71e1a8d
PA
134762014-01-13 Pedro Alves <palves@redhat.com>
13477
13478 * Makefile.in (CHECK_HEADERS): New variable.
13479 (check-headers:): New rule.
13480
42c85435
TT
134812014-01-13 Tom Tromey <tromey@redhat.com>
13482
13483 * cli/cli-setshow.c (do_set_command): Update.
13484 * defs.h (deprecated_set_hook): Remove.
13485 * top.c (deprecated_set_hook): Remove.
13486
f8de5129
PA
134872014-01-13 Pedro Alves <palves@redhat.com>
13488
13489 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13490 the tracepoint if the PC is a pseudo-register.
13491
fc270c35
TT
134922014-01-13 Tom Tromey <tromey@redhat.com>
13493
13494 * defs.h (XCALLOC): Remove.
13495 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13496 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13497 * dwarf2loc.c (allocate_piece_closure): Likewise.
13498 * elfread.c (elf_symfile_segments): Likewise.
13499 (elf_symfile_segments): Likewise.
13500 * gdbtypes.c (copy_type_recursive): Likewise.
13501 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13502 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13503 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13504 XCALLOC.
13505 * mt-tdep.c (mt_gdbarch_init): Likewise.
13506 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13507 XCALLOC.
13508 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13509 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13510 * registry.c (registry_alloc_data): Likewise.
13511 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13512 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13513 * serial.c (serial_fdopen_ops): Likewise.
13514 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13515 XCALLOC.
13516 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13517 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13518 not XCALLOC.
13519
70ba0933
TT
135202014-01-13 Tom Tromey <tromey@redhat.com>
13521
13522 * defs.h (XMALLOC): Remove.
13523 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13524 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13525 * cli-out.c (struct ui_out *): Likewise.
13526 * cli/cli-dump.c (add_dump_command): Likewise.
13527 (add_dump_command): Likewise.
13528 * complaints.c (get_complaints): Likewise.
13529 (find_complaint): Likewise.
13530 * dwarf2-frame.c (execute_cfa_program): Likewise.
13531 * dwarf2read.c (abbrev_table_read_table): Likewise.
13532 * gdbarch.sh: Likewise.
13533 * gdbarch.c: Rebuild.
13534 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13535 * interps.c (interp_new): Likewise.
13536 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13537 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13538 * mi/mi-console.c (mi_console_file_new): Likewise.
13539 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13540 * mi/mi-out.c (mi_out_new): Likewise.
13541 * mi/mi-parse.c (mi_parse): Likewise.
13542 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13543 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13544 * observer.c (xalloc_observer_list_node): Likewise.
13545 * regcache.c (regcache_xmalloc_1): Likewise.
13546 * reggroups.c (reggroup_new): Likewise.
13547 (_initialize_reggroup): Likewise.
13548 * registry.c (register_data_with_cleanup): Likewise.
13549 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13550 * ser-base.c (serial_ttystate): Likewise.
13551 * ser-mingw.c (make_pipe_state): Likewise.
13552 * ser-pipe.c (pipe_open): Likewise.
13553 * serial.c (serial_open): Likewise.
13554 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13555 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13556 (tui_alloc_win_info): Likewise.
13557 (tui_add_content_elements): Likewise.
13558 * tui/tui-file.c (tui_file_new): Likewise.
13559 * tui/tui-out.c (tui_out_new): Likewise.
13560 * ui-file.c (mem_file_new): Likewise.
13561 * ui-out.c (push_level): Likewise.
13562 (make_cleanup_ui_out_end): Likewise.
13563 (append_header_to_list): Likewise.
13564 (ui_out_new): Likewise.
13565 * user-regs.c (user_reg_add_builtin): Likewise.
13566
41bf6aca
TT
135672014-01-13 Tom Tromey <tromey@redhat.com>
13568
13569 * defs.h (XZALLOC): Remove.
13570 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13571 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13572 (get_ada_tasks_inferior_data): Likewise.
13573 * auto-load.c (get_auto_load_pspace_data): Likewise.
13574 * auxv.c (get_auxv_inferior_data): Likewise.
13575 * bfd-target.c (target_bfd_reopen): Likewise.
13576 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13577 (deprecated_insert_raw_breakpoint): Likewise.
13578 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13579 * corelow.c (core_open): Likewise.
13580 * darwin-nat.c (darwin_check_new_threads): Likewise.
13581 (darwin_attach_pid): Likewise.
13582 * dummy-frame.c (dummy_frame_push): Likewise.
13583 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13584 * dwarf2loc.c (allocate_piece_closure): Likewise.
13585 * elfread.c (elf_symfile_segments): Likewise.
13586 * eval.c (ptrmath_type_p): Likewise.
13587 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13588 * gdbtypes.c (alloc_type_arch): Likewise.
13589 (alloc_type_instance): Likewise.
13590 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13591 * inf-child.c (inf_child_can_use_agent): Likewise.
13592 * inflow.c (get_inflow_inferior_data): Likewise.
13593 * infrun.c (save_infcall_suspend_state): Likewise.
13594 * jit.c (jit_reader_load): Likewise.
13595 (get_jit_objfile_data): Likewise.
13596 (get_jit_program_space_data): Likewise.
13597 (jit_object_open_impl): Likewise.
13598 (jit_symtab_open_impl): Likewise.
13599 (jit_block_open_impl): Likewise.
13600 (jit_frame_sniffer): Likewise.
13601 * linux-fork.c (add_fork): Likewise.
13602 * maint.c (make_command_stats_cleanup): Likewise.
13603 * objfiles.c (get_objfile_pspace_data): Likewise.
13604 * opencl-lang.c (struct lval_closure): Likewise.
13605 * osdata.c (osdata_start_osdata): Likewise.
13606 * progspace.c (new_address_space): Likewise.
13607 (add_program_space): Likewise.
13608 * remote-sim.c (get_sim_inferior_data): Likewise.
13609 * sh-tdep.c (sh_gdbarch_init): Likewise.
13610 * skip.c (Ignore): Likewise.
13611 (skip_delete_command): Likewise.
13612 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13613 (library_list_start_library): Likewise.
13614 (solib_aix_current_sos): Likewise.
13615 * solib-darwin.c (get_darwin_info): Likewise.
13616 (darwin_current_sos): Likewise.
13617 * solib-dsbt.c (get_dsbt_info): Likewise.
13618 * solib-ia64-hpux.c (new_so_list): Likewise.
13619 (ia64_hpux_get_solib_linkage_addr): Likewise.
13620 * solib-spu.c (append_ocl_sos): Likewise.
13621 (spu_current_sos): Likewise.
13622 * solib-svr4.c (get_svr4_info): Likewise.
13623 (svr4_keep_data_in_core): Likewise.
13624 (library_list_start_library): Likewise.
13625 (svr4_default_sos): Likewise.
13626 (svr4_read_so_list): Likewise.
13627 * solib-target.c (library_list_start_library): Likewise.
13628 (solib_target_current_sos): Likewise.
13629 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13630 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13631 * symfile.c (default_symfile_segments): Likewise.
13632 * target-descriptions.c (tdesc_data_init): Likewise.
13633 (tdesc_create_reg): Likewise.
13634 (struct tdesc_type *): Likewise.
13635 (tdesc_create_vector): Likewise.
13636 (tdesc_set_struct_size): Likewise.
13637 (struct tdesc_type *): Likewise.
13638 (tdesc_free_feature): Likewise.
13639 (tdesc_create_feature): Likewise.
13640 * windows-nat.c (windows_add_thread): Likewise.
13641 (windows_make_so): Likewise.
13642 * xml-support.c (gdb_xml_body_text): Likewise.
13643 (gdb_xml_create_parser_and_cleanup): Likewise.
13644 (xml_process_xincludes): Likewise.
13645 * xml-syscall.c (allocate_syscalls_info): Likewise.
13646 (syscall_create_syscall_desc): Likewise.
13647
5acfdbae
SDJ
136482014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13649
13650 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13651 function, with code from i386_stap_parse_special_token.
13652 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13653 (i386_stap_parse_special_token): Move code to the two functions
13654 above; simplify it.
13655
0000e5cc
PA
136562014-01-09 Pedro Alves <palves@redhat.com>
13657 Hui Zhu <hui@codesourcery.com>
13658
13659 PR gdb/16101
13660 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13661 bp_err_string. Don't mark the location shlib_disabled if the
13662 error thrown wasn't a generic or memory error. Catch errors
13663 thrown while inserting breakpoints in overlayed code. Output
13664 error message of software breakpoints.
13665 * remote.c (remote_insert_breakpoint): If this breakpoint has
13666 target-side commands but this stub doesn't support Z0 packets,
13667 throw NOT_SUPPORTED_ERROR error.
13668 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13669 * target.h (target_insert_breakpoint): Extend comment.
13670 (target_insert_hw_breakpoint): Add comment.
13671
b7ea362b
PA
136722014-01-08 Pedro Alves <palves@redhat.com>
13673
13674 * remote.c (remote_add_thread): Add threads silently if starting
13675 up.
13676 (remote_notice_new_inferior): If in all-stop, and starting up,
13677 don't call notice_new_inferior.
13678 (get_current_thread): New function, factored out from ...
13679 (add_current_inferior_and_thread): ... this. Adjust.
13680 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13681 found any thread, then select the remote's current thread as GDB's
13682 current thread too.
13683
b7bba001
JB
136842014-01-08 Joel Brobecker <brobecker@adacore.com>
13685
13686 * NEWS: Create a new section for the next release branch.
13687 Rename the section of the current branch, now that it has
13688 been cut.
13689
16dfbded
JB
136902014-01-08 Joel Brobecker <brobecker@adacore.com>
13691
13692 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13693 * version.in: Bump version to 7.7.50.DATE-cvs.
13694
22c90ac1
YQ
136952014-01-08 Yao Qi <yao@codesourcery.com>
13696
13697 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13698 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13699 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13700
d64ad97c
YQ
137012014-01-08 Yao Qi <yao@codesourcery.com>
13702
13703 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13704 return value of bfd_get_filename to symbol_file_add_from_bfd.
13705
f93ba80c
PM
137062014-01-08 Pierre Muller <muller@sourceware.org>
13707
13708 Fix PR16201.
13709 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13710 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13711 to prim_record_mininal_symbol_and_info.
13712 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13713 in call to prim_record_minimal_symbol_and_info.
13714 (read_pe_exported_syms): Set index field of section_data.
13715
a4d9ba85
AP
137162014-01-07 Andrew Pinski <apinski@cavium.com>
13717
13718 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13719 * features/aarch64.c: Regenerate.
13720
1b67eb02
AS
137212014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13722
13723 * target.c (return_null): Define.
13724 (update_current_target): Use it instead of return_zero for
13725 functions that return a pointer.
13726
5e3f4fab
EBM
137272014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13728
13729 * source.c (add_path): Fix check for duplicated paths in the previously
13730 included paths.
13731
e2616788
HK
137322014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13733
13734 * ada-lang.c: Remove duplicated include statements.
13735 * alphabsd-nat.c: Ditto.
13736 * amd64-darwin-tdep.c: Ditto.
13737 * amd64fbsd-nat.c: Ditto.
13738 * auto-load.c: Ditto.
13739 * ax-gdb.c: Ditto.
13740 * breakpoint.c: Ditto.
13741 * dbxread.c: Ditto.
13742 * fork-child.c: Ditto.
13743 * gdb_usleep.c: Ditto.
13744 * i386-darwin-tdep.c: Ditto.
13745 * i386fbsd-nat.c: Ditto.
13746 * infcmd.c: Ditto.
13747 * inferior.c: Ditto.
13748 * jv-lang.c: Ditto.
13749 * linux-nat.c: Ditto.
13750 * linux-tdep.c: Ditto.
13751 * m68kbsd-nat.c: Ditto.
13752 * m68klinux-nat.c: Ditto.
13753 * microblaze-tdep.c: Ditto.
13754 * mips-linux-tdep.c: Ditto.
13755 * mn10300-tdep.c: Ditto.
13756 * nto-tdep.c: Ditto.
13757 * opencl-lang.c: Ditto.
13758 * osdata.c: Ditto.
13759 * printcmd.c: Ditto.
13760 * regcache.c: Ditto.
13761 * remote-m32r-sdi.c: Ditto.
13762 * remote.c: Ditto.
13763 * symfile.c: Ditto.
13764 * symtab.c: Ditto.
13765 * tilegx-linux-nat.c: Ditto.
13766 * tilegx-tdep.c: Ditto.
13767 * tracepoint.c: Ditto.
13768 * valops.c: Ditto.
13769 * vaxbsd-nat.c: Ditto.
13770 * windows-nat.c: Ditto.
13771 * xtensa-tdep.c: Ditto.
13772
bd1f7788
YQ
137732014-01-07 Yao Qi <yao@codesourcery.com>
13774
13775 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13776
79301218
JB
137772014-01-07 Yao Qi <yao@codesourcery.com>
13778 Joel Brobecker <brobecker@adacore.com>
13779
13780 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13781 (pdc_write_regs): Likewise.
13782 (fetch_regs_kernel_thread): Likewise.
13783 (store_regs_kernel_thread): Likewise.
13784
137852014-01-07 Joel Brobecker <brobecker@adacore.com>
13786
13787 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13788 tagged type objects to their actual type.
13789
8e355c5d
JB
137902014-01-07 Joel Brobecker <brobecker@adacore.com>
13791
13792 * ada-valprint.c (print_field_values): Add "language" parameter.
13793 Update calls to print_field_values and print_variant_part.
13794 Pass new parameter "language" in call to val_print instead
13795 of "current_language". Replace call to ada_val_print by call
13796 to val_print.
13797 (print_variant_part): Add "language" parameter.
13798 (ada_val_print_struct_union): Update call to print_field_values.
13799
4fbf5aa5
JB
138002014-01-07 Joel Brobecker <brobecker@adacore.com>
13801
13802 * ada-valprint.c (ui_memcpy): Delete.
13803 (ada_print_floating): Update documentation. Add empty line
13804 between between function documentation and implementation.
13805 Delete variable "buffer". Use ui_file_xstrdup in place of
13806 ui_file_put. Minor adjustments following this change.
13807
71855601
JB
138082014-01-07 Joel Brobecker <brobecker@adacore.com>
13809
13810 * ada-valprint.c (ada_val_print_string): New function,
13811 extracted from ada_val_print_array.
13812 (ada_val_print_array): Replace extracted code by call
13813 to ada_val_print_string followed by a return. Move
13814 "else" branch to the function's top block.
13815
4eb27a30
JB
138162014-01-07 Joel Brobecker <brobecker@adacore.com>
13817
13818 * ada-valprint.c (ada_val_print_array): Move implementation
13819 down. Rename parameter "offset" and "val" into "offset_aligned"
13820 and "original_value" respectively. Add parameter "offset".
13821
34b27950
JB
138222014-01-07 Joel Brobecker <brobecker@adacore.com>
13823
13824 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13825 re-organizing the code. Change the "???" message printed
13826 when target type is a TYPE_CODE_UNDEF into
13827 "<ref to undefined type>".
13828
079e4591
JB
138292014-01-07 Joel Brobecker <brobecker@adacore.com>
13830
13831 * ada-valprint.c (print_record): Delete, implementation inlined...
13832 (ada_val_print_struct_union): ... here. Remove call to
13833 ada_check_typedef in inlined implementation.
13834
8004dfd1
JB
138352014-01-07 Joel Brobecker <brobecker@adacore.com>
13836
13837 * ada-valprint.c (ada_val_print_gnat_array): New function,
13838 extracted from ada_val_print_1;
13839 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13840 (ada_val_print_flt, ada_val_print_struct_union)
13841 (ada_val_print_ref): Likewise.
13842 (ada_val_print_1): Delete variables i and elttype.
13843 Replace extracted-out code by call to corresponding
13844 new functions.
13845
760a2db0
JB
138462014-01-07 Joel Brobecker <brobecker@adacore.com>
13847
13848 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13849
3a92c861
JB
138502014-01-07 Joel Brobecker <brobecker@adacore.com>
13851
13852 * ada-valprint.c (ada_val_print_1): Replace calls to
13853 ada_val_print_1 by calls to val_print.
13854
cd1630f9
JB
138552014-01-07 Joel Brobecker <brobecker@adacore.com>
13856
13857 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13858 Update calls to self accordingly. Replace calls to c_val_print
13859 by calls to val_print.
13860
bdf779a0
JB
138612014-01-07 Joel Brobecker <brobecker@adacore.com>
13862
13863 * ada-valprint.c (print_record): Delete declaration.
13864 (adjust_type_signedness, ada_val_print_1): Likewise.
13865 (ada_val_print): Move function implementation down.
13866 (print_variant_part, print_field_values, print_record):
13867 Move function implementation up.
13868
c0d48811
JB
138692014-01-07 Joel Brobecker <brobecker@adacore.com>
13870
13871 * python/py-type.c (typy_get_name): New function.
13872 (type_object_getset): Add entry for attribute "name".
13873 * NEWS: Add entry mentioning this new attribute.
13874
c26e9cbb
YQ
138752014-01-07 Yao Qi <yao@codesourcery.com>
13876
13877 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13878 statement.
13879
0cc6f43d
YQ
138802014-01-07 Yao Qi <yao@codesourcery.com>
13881
13882 * gnu-nat.c (info_port_rights): Add qualifier const to
13883 argument args.
13884
eec03155
YQ
138852014-01-07 Yao Qi <yao@codesourcery.com>
13886
13887 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13888
f04a82ef
YQ
138892014-01-07 Yao Qi <yao@codesourcery.com>
13890
13891 * gnu-nat.c (make_inf) Update declaration.
13892 (make_inf): Make it static.
13893 (inf_set_traced): Likewise.
13894 (inf_port_to_thread, inf_task_died_status): Likewise.
13895
d57dda0a
YQ
138962014-01-07 Yao Qi <yao@codesourcery.com>
13897
13898 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13899
3aa8c969
YQ
139002014-01-07 Yao Qi <yao@codesourcery.com>
13901
13902 * gnu-nat.c (_initialize_gnu_nat): Declare.
13903
94123b4f
YQ
139042014-01-07 Yao Qi <yao@codesourcery.com>
13905
13906 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13907 'enum bfd_endian'.
13908 (struct gdbarch_info) <byte_order>: Change type to
13909 'enum bfd_endian'.
13910 <byte_order_for_code>: Likewise.
13911 * gdbarch.c, gdbarch.h: Regenerated.
13912
dc81d70a
TT
139132014-01-06 Sasha Smundak <asmundak@google.com>
13914
13915 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13916
cc2f3c35
TT
139172014-01-06 Tom Tromey <tromey@redhat.com>
13918
13919 * doublest.c (convert_doublest_to_floatformat): Use const, not
13920 CONST.
13921 * somread.c (som_symtab_read): Likewise.
13922
adcf2eed
HZ
139232014-01-07 Hui Zhu <hui@codesourcery.com>
13924
13925 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13926 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13927 (gdb_bfd_fopen): Ditto.
13928 (gdb_bfd_openr): Ditto.
13929 (gdb_bfd_openw): Ditto.
13930 (gdb_bfd_openr_iovec): Ditto.
13931 (gdb_bfd_fdopenr): Ditto.
13932 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13933 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13934 with xstrdup.
13935 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13936 with xstrdup.
13937 * symfile-mem.c (symbol_file_add_from_memory): Removed
13938 gdb_bfd_stash_filename.
13939
50722198
DE
139402014-01-03 Doug Evans <dje@google.com>
13941
13942 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13943 output.
13944
2fa4b862
JB
139452014-01-01 Joel Brobecker <brobecker@adacore.com>
13946
13947 Update year range in copyright notice of all files.
13948
28498c42
JB
139492014-01-01 Joel Brobecker <brobecker@adacore.com>
13950
13951 * top.c (print_gdb_version): Set copyright year to 2014.
13952
7b6e1046
JB
139532014-01-01 Joel Brobecker <brobecker@adacore.com>
13954
13955 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13956
df96af55 13957For older changes see ChangeLog-2013.
c906108c
SS
13958\f
13959Local Variables:
13960mode: change-log
13961left-margin: 8
13962fill-column: 74
13963version-control: never
57da7796 13964coding: utf-8
c906108c 13965End:
This page took 2.33914 seconds and 4 git commands to generate.