Fix py-parameter.exp for remote host
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c40cc657
JB
12014-10-14 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
4 of the case where the second operand is a pointer.
5 <BINOP_SUB>: Likewise.
6
0ea5cda8
SDJ
72014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
8
9 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
10 only if it is not NULL.
11 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
12 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
13 (struct probe_ops) <clear_semaphore>: Likewise.
14 * tracepoint.c (start_tracing): Call set_semaphore only if it is
15 not NULL.
16 (stop_tracing): Likewise, for clear_semaphore.
17
f7088df3
SDJ
182014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
19
20 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
21 using language_c, instead of current_language.
22
4e1bbde0
DE
232014-10-13 Doug Evans <dje@google.com>
24
6ff5a0f6 25 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 26 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 27 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
28 (pspy_new, pspace_to_pspace_object): Call it.
29
c780cc2f
JK
302014-10-13 Miroslav Franc <mfranc@redhat.com>
31 Jan Kratochvil <jan.kratochvil@redhat.com>
32
33 Fix "save breakpoints" for "catch" command.
34 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
35 newline.
36
99894e11
JK
372014-10-12 Miroslav Franc <mfranc@redhat.com>
38
39 Fix "save breakpoints" for "disable $bpnum" command.
40 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
41
3831839c
PA
422014-10-10 Pedro Alves <palves@redhat.com>
43
44 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
45 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
46 (HFILES_NO_SRCDIR): Remove solib-irix.h.
47 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
48 and been removed.
49 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
50 * configure.ac: Remove references to IRIX.
51 * configure.host: Add *-*-irix* to the obsolete hosts section.
52 Remove all other references to irix.
53 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
54 Delete files.
55
cc3afae2
AKA
562014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
57
58 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
59 isn't valid, release the tdesc arch data and return NULL.
60
cdfa0b0a
PA
612014-10-10 Pedro Alves <palves@redhat.com>
62
63 * linux-tdep.c: Include observer.h.
64 (linux_inferior_data): New global.
65 (struct linux_info): New structure.
66 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
67 (get_linux_inferior_data): New functions.
68 (linux_vsyscall_range): Rename to ...
69 (linux_vsyscall_range_raw): ... this.
70 (linux_vsyscall_range): New function; handles caching.
71 (_initialize_linux_tdep): Register linux_inferior_data. Install
72 inferior_exit and inferior_appeared observers.
73
8b9a549d
PA
742014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
75 Pedro Alves <palves@redhat.com>
76
77 PR symtab/14466
78 * solib-svr4.c (svr4_read_so_list): Rename to ...
79 (svr4_current_sos_1): ... this and change the function comment.
80 (svr4_current_sos): New function.
81
3437254d
PA
822014-10-10 Pedro Alves <palves@redhat.com>
83
84 * arch-utils.c (default_vsyscall_range): New function.
85 * arch-utils.h (default_vsyscall_range): New declaration.
86 * gdbarch.sh (vsyscall_range): New hook.
87 * gdbarch.h, gdbarch.c: Regenerate.
88 * linux-tdep.c (linux_vsyscall_range): New function.
89 (linux_init_abi): Install linux_vsyscall_range as
90 vsyscall_range gdbarch hook.
91 * memrange.c (address_in_mem_range): New function.
92 * memrange.h (address_in_mem_range): New declaration.
93 * symfile-mem.c (find_vdso_size): Delete function.
94 (add_vsyscall_page): Use gdbarch_vsyscall_range.
95
31cc0b80
PA
962014-10-10 Pedro Alves <palves@redhat.com>
97
98 * infrun.c (normal_stop): Fix typo in comment.
99
3e3286a2
SDJ
1002014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
101
102 PR tdep/9390
103 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
104 typo when using logical AND to determine instruction type.
105
fcbdedf8
YQ
1062014-10-09 Yao Qi <yao@codesourcery.com>
107
108 * infrun.c (handle_signal_stop): Remove local variable
109 'printed'.
110
db984616
SS
1112014-10-08 Stan Shebs <stan@codesourcery.com>
112
113 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
114
3ba37e6c
GB
1152014-10-08 Gary Benson <gbenson@redhat.com>
116
117 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
118
a442d071
GB
1192014-10-08 Gary Benson <gbenson@redhat.com>
120
121 * common/common-defs.h: Include common-exceptions.h.
122 * exceptions.h: Do not include common-exceptions.h.
123
6f1947e8
GB
1242014-10-08 Gary Benson <gbenson@redhat.com>
125
126 * common/common-defs.h: Include cleanups.h.
127 * common/common-exceptions.c: Do not include cleanups.h.
128 * utils.h: Likewise.
129
c765fdb9
GB
1302014-10-08 Gary Benson <gbenson@redhat.com>
131
132 * ada-lang.c: Do not include exceptions.h.
133 * ada-valprint.c: Likewise.
134 * amd64-tdep.c: Likewise.
135 * auto-load.c: Likewise.
136 * block.c: Likewise.
137 * break-catch-throw.c: Likewise.
138 * breakpoint.c: Likewise.
139 * btrace.c: Likewise.
140 * c-lang.c: Likewise.
141 * cli/cli-cmds.c: Likewise.
142 * cli/cli-interp.c: Likewise.
143 * cli/cli-script.c: Likewise.
144 * completer.c: Likewise.
145 * corefile.c: Likewise.
146 * corelow.c: Likewise.
147 * cp-abi.c: Likewise.
148 * cp-support.c: Likewise.
149 * cp-valprint.c: Likewise.
150 * darwin-nat.c: Likewise.
151 * dwarf2-frame-tailcall.c: Likewise.
152 * dwarf2-frame.c: Likewise.
153 * dwarf2loc.c: Likewise.
154 * dwarf2read.c: Likewise.
155 * eval.c: Likewise.
156 * event-loop.c: Likewise.
157 * event-top.c: Likewise.
158 * f-valprint.c: Likewise.
159 * frame-unwind.c: Likewise.
160 * frame.c: Likewise.
161 * gdbtypes.c: Likewise.
162 * gnu-v2-abi.c: Likewise.
163 * gnu-v3-abi.c: Likewise.
164 * guile/scm-auto-load.c: Likewise.
165 * guile/scm-breakpoint.c: Likewise.
166 * guile/scm-cmd.c: Likewise.
167 * guile/scm-frame.c: Likewise.
168 * guile/scm-lazy-string.c: Likewise.
169 * guile/scm-param.c: Likewise.
170 * guile/scm-symbol.c: Likewise.
171 * guile/scm-type.c: Likewise.
172 * hppa-hpux-tdep.c: Likewise.
173 * i386-tdep.c: Likewise.
174 * inf-loop.c: Likewise.
175 * infcall.c: Likewise.
176 * infcmd.c: Likewise.
177 * infrun.c: Likewise.
178 * interps.c: Likewise.
179 * interps.h: Likewise.
180 * jit.c: Likewise.
181 * linespec.c: Likewise.
182 * linux-nat.c: Likewise.
183 * linux-thread-db.c: Likewise.
184 * m32r-rom.c: Likewise.
185 * main.c: Likewise.
186 * memory-map.c: Likewise.
187 * mi/mi-cmd-break.c: Likewise.
188 * mi/mi-cmd-stack.c: Likewise.
189 * mi/mi-interp.c: Likewise.
190 * mi/mi-main.c: Likewise.
191 * monitor.c: Likewise.
192 * nto-procfs.c: Likewise.
193 * objc-lang.c: Likewise.
194 * p-valprint.c: Likewise.
195 * parse.c: Likewise.
196 * ppc-linux-tdep.c: Likewise.
197 * printcmd.c: Likewise.
198 * probe.c: Likewise.
199 * python/py-auto-load.c: Likewise.
200 * python/py-breakpoint.c: Likewise.
201 * python/py-cmd.c: Likewise.
202 * python/py-finishbreakpoint.c: Likewise.
203 * python/py-frame.c: Likewise.
204 * python/py-framefilter.c: Likewise.
205 * python/py-function.c: Likewise.
206 * python/py-gdb-readline.c: Likewise.
207 * python/py-inferior.c: Likewise.
208 * python/py-infthread.c: Likewise.
209 * python/py-lazy-string.c: Likewise.
210 * python/py-linetable.c: Likewise.
211 * python/py-param.c: Likewise.
212 * python/py-prettyprint.c: Likewise.
213 * python/py-symbol.c: Likewise.
214 * python/py-type.c: Likewise.
215 * python/py-value.c: Likewise.
216 * python/python-internal.h: Likewise.
217 * python/python.c: Likewise.
218 * record-btrace.c: Likewise.
219 * record-full.c: Likewise.
220 * regcache.c: Likewise.
221 * remote-fileio.c: Likewise.
222 * remote-mips.c: Likewise.
223 * remote.c: Likewise.
224 * rs6000-aix-tdep.c: Likewise.
225 * rs6000-nat.c: Likewise.
226 * skip.c: Likewise.
227 * solib-darwin.c: Likewise.
228 * solib-dsbt.c: Likewise.
229 * solib-frv.c: Likewise.
230 * solib-ia64-hpux.c: Likewise.
231 * solib-spu.c: Likewise.
232 * solib-svr4.c: Likewise.
233 * solib.c: Likewise.
234 * spu-tdep.c: Likewise.
235 * stack.c: Likewise.
236 * stap-probe.c: Likewise.
237 * symfile-mem.c: Likewise.
238 * symmisc.c: Likewise.
239 * target.c: Likewise.
240 * thread.c: Likewise.
241 * top.c: Likewise.
242 * tracepoint.c: Likewise.
243 * tui/tui-interp.c: Likewise.
244 * typeprint.c: Likewise.
245 * utils.c: Likewise.
246 * valarith.c: Likewise.
247 * valops.c: Likewise.
248 * valprint.c: Likewise.
249 * value.c: Likewise.
250 * varobj.c: Likewise.
251 * windows-nat.c: Likewise.
252 * xml-support.c: Likewise.
253
484933d1
MR
2542014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
255
256 * mips-tdep.c (add_offset_16): Rewrite to implement what the
257 name implies.
258 (extended_mips16_next_pc): Update accordingly.
259
ab50adb6
MR
2602014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
261
262 * mips-tdep.c (mips16_instruction_is_compact_branch): New
263 function.
264 (micromips_instruction_is_compact_branch): Likewise.
265 (mips16_scan_prologue): Terminate scanning upon seeing a branch
266 or a compact jump, reaching a jump delay slot, or seeing a
267 second non-prologue instruction.
268 (micromips_scan_prologue): Also terminate scanning upon seeing a
269 compact branch or jump, or reaching a branch or jump delay slot.
270 (mips32_scan_prologue): Terminate scanning upon reaching a branch
271 or jump delay slot, or seeing a second non-prologue instruction.
272 (mips32_instruction_has_delay_slot): Retain instruction
273 examination code only, update arguments accordingly and move
274 instruction fetch pieces to...
275 (mips32_insn_at_pc_has_delay_slot): ... this new function.
276 (micromips_instruction_has_delay_slot): Likewise and to...
277 (micromips_insn_at_pc_has_delay_slot): ... this new function.
278 (mips16_instruction_has_delay_slot): Likewise and to...
279 (mips16_insn_at_pc_has_delay_slot): ... this new function.
280 (mips_single_step_through_delay): Update accordingly.
281 (mips_adjust_breakpoint_address): Likewise.
282
ae790652
MR
2832014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
284
285 * mips-tdep.c (micromips_instruction_has_delay_slot): When
286 !mustbe32 also return 1 for 32-bit instructions.
287 (mips16_instruction_has_delay_slot): Likewise. Add an
288 explanatory comment.
289
9b807e7b
MR
2902014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
291
292 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
293 symbols special.
294
0d5ed153
MR
2952014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
296
297 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
298 update comments.
299 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
300 for the breakpoint's address. Don't preinitialize `placed_size'.
301 (insert_bp_location): Set `reqstd_address' rather than
302 `placed_address'.
303 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
304 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
305 address.
306 (bkpt_remove_location): Likewise.
307 (deprecated_insert_raw_breakpoint): Likewise.
308 (deprecated_remove_raw_breakpoint): Likewise.
309 (find_single_step_breakpoint): Likewise.
310 * mem-break.c (default_memory_insert_breakpoint): Use
311 `reqstd_address' for the breakpoint's address. Don't set
312 `placed_address' or `placed_size' if breakpoint contents couldn't
313 have been determined.
314 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
315 the breakpoint's address.
316 (remote_insert_hw_breakpoint): Likewise. Don't set
317 `placed_address' or `placed_size' if breakpoint couldn't have been
318 set.
319 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
320 `reqstd_address' for the breakpoint's address.
321 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
322 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
323 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
324 * microblaze-linux-tdep.c
325 (microblaze_linux_memory_remove_breakpoint): Likewise.
326 * monitor.c (monitor_insert_breakpoint): Likewise.
327 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
328 (procfs_insert_hw_breakpoint): Likewise.
329 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
330 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
331 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
332 * remote-mips.c (mips_insert_breakpoint): Likewise.
333 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
334
3e871532
LM
3352014-10-03 Luis Machado <lgustavo@codesourcery.com>
336
337 * valops.c (value_assign): Check for bit field assignments
338 before calling architecture-specific register value
339 conversion functions.
340
ec48dc8b
PM
3412014-10-03 Pierre Muller <muller@sourceware.org>
342
343 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
344
b57bacec
PA
3452014-10-02 Pedro Alves <palves@redhat.com>
346
347 * breakpoint.c (breakpoints_should_be_inserted_now): Use
348 threads_are_executing.
349 * breakpoint.h (breakpoints_should_be_inserted_now): Add
350 describing comment.
351 * gdbthread.h (threads_are_executing): Declare.
352 (handle_signal_stop) <random signals>: Don't print about the
353 signal here if stopping.
354 (end_stepping_range): Don't notify observers here.
355 (normal_stop): Update the thread list. If stopped by a random
356 signal or a stepping range ended, notify observers.
357 * thread.c (threads_executing): New global.
358 (init_thread_list): Clear 'threads_executing'.
359 (set_executing): Set or clear 'threads_executing'.
360 (threads_are_executing): New function.
361 (update_threads_executing): New function.
362 (update_thread_list): Use it.
363
13fd3ff3
PA
3642014-10-02 Pedro Alves <palves@redhat.com>
365
366 PR breakpoints/17431
367 * breakpoint.c (update_breakpoints_after_exec): Don't create
368 overlay, longjmp, std terminate nor exception breakpoints here.
369
32990ada
PA
3702014-10-02 Pedro Alves <palves@redhat.com>
371
372 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
373 Adjust comments.
374 * inferior.c (find_inferior_for_program_space): Give preference to
375 the current inferior.
376 * inferior.h (find_inferior_for_program_space): Update comment.
377 * progspace.c (switch_to_program_space_and_thread): Prefer the
378 current inferior if it's bound to the program space requested. If
379 the inferior found doesn't have a PID yet, don't bother looking up
380 a thread.
381 * progspace.h (switch_to_program_space_and_thread): Adjust
382 comment.
383 * thread.c (any_thread_of_process, any_live_thread_of_process):
384 Give preference to the current thread.
385
0fec99e8
PA
3862014-10-01 Pedro Alves <palves@redhat.com>
387
388 * breakpoint.c (insert_bp_location): Error out if inserting a
389 software breakpoint at a read-only address.
390 * target.c (memory_xfer_check_region): New function, factored out
391 from ...
392 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
393 ULONGEST.
394 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
395 against the memory region attributes.
396
2ddf4301
SM
3972014-10-01 Simon Marchi <simon.marchi@ericsson.com>
398
399 * NEWS: Announce new exit-code field in -list-thread-groups
400 output.
401 * inferior.c (exit_inferior_1): Don't clear exit code.
402 (inferior_appeared): Clear exit code.
403 * mi/mi-main.c (print_one_inferior): Add printing of the exit
404 code.
405
5fdeec1d
PA
4062014-10-01 Pedro Alves <palves@redhat.com>
407
408 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
409 GENERATED" along with emacs/vi read-only markers.
410 * regformats/aarch64.dat: Regenerate.
411 * regformats/arm-with-iwmmxt.dat: Regenerate.
412 * regformats/arm-with-neon.dat: Regenerate.
413 * regformats/arm-with-vfpv2.dat: Regenerate.
414 * regformats/arm-with-vfpv3.dat: Regenerate.
415 * regformats/i386/amd64-avx-linux.dat: Regenerate.
416 * regformats/i386/amd64-avx.dat: Regenerate.
417 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
418 * regformats/i386/amd64-avx512.dat: Regenerate.
419 * regformats/i386/amd64-linux.dat: Regenerate.
420 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
421 * regformats/i386/amd64-mpx.dat: Regenerate.
422 * regformats/i386/amd64.dat: Regenerate.
423 * regformats/i386/i386-avx-linux.dat: Regenerate.
424 * regformats/i386/i386-avx.dat: Regenerate.
425 * regformats/i386/i386-avx512-linux.dat: Regenerate.
426 * regformats/i386/i386-avx512.dat: Regenerate.
427 * regformats/i386/i386-linux.dat: Regenerate.
428 * regformats/i386/i386-mmx-linux.dat: Regenerate.
429 * regformats/i386/i386-mmx.dat: Regenerate.
430 * regformats/i386/i386-mpx-linux.dat: Regenerate.
431 * regformats/i386/i386-mpx.dat: Regenerate.
432 * regformats/i386/i386.dat: Regenerate.
433 * regformats/i386/x32-avx-linux.dat: Regenerate.
434 * regformats/i386/x32-avx.dat: Regenerate.
435 * regformats/i386/x32-avx512-linux.dat: Regenerate.
436 * regformats/i386/x32-avx512.dat: Regenerate.
437 * regformats/i386/x32-linux.dat: Regenerate.
438 * regformats/i386/x32.dat: Regenerate.
439 * regformats/microblaze-with-stack-protect.dat: Regenerate.
440 * regformats/mips-dsp-linux.dat: Regenerate.
441 * regformats/mips-linux.dat: Regenerate.
442 * regformats/mips64-dsp-linux.dat: Regenerate.
443 * regformats/mips64-linux.dat: Regenerate.
444 * regformats/nios2-linux.dat: Regenerate.
445 * regformats/rs6000/powerpc-32.dat: Regenerate.
446 * regformats/rs6000/powerpc-32l.dat: Regenerate.
447 * regformats/rs6000/powerpc-64l.dat: Regenerate.
448 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
449 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
450 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
451 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
452 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
453 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
454 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
455 * regformats/s390-linux32.dat: Regenerate.
456 * regformats/s390-linux32v1.dat: Regenerate.
457 * regformats/s390-linux32v2.dat: Regenerate.
458 * regformats/s390-linux64.dat: Regenerate.
459 * regformats/s390-linux64v1.dat: Regenerate.
460 * regformats/s390-linux64v2.dat: Regenerate.
461 * regformats/s390-te-linux64.dat: Regenerate.
462 * regformats/s390x-linux64.dat: Regenerate.
463 * regformats/s390x-linux64v1.dat: Regenerate.
464 * regformats/s390x-linux64v2.dat: Regenerate.
465 * regformats/s390x-te-linux64.dat: Regenerate.
466 * regformats/tic6x-c62x-linux.dat: Regenerate.
467 * regformats/tic6x-c62x.dat: Regenerate.
468 * regformats/tic6x-c64x-linux.dat: Regenerate.
469 * regformats/tic6x-c64x.dat: Regenerate.
470 * regformats/tic6x-c64xp-linux.dat: Regenerate.
471 * regformats/tic6x-c64xp.dat: Regenerate.
472
db74e4ba
PA
4732014-10-01 Pedro Alves <palves@redhat.com>
474
475 * features/Makefile: Update comments.
476 (XMLTOC): List all xml files we build C files from.
477 (clean-cfiles): New rule.
478
d63f2f84
PA
4792014-10-01 Pedro Alves <palves@redhat.com>
480
481 * features/i386/amd64-avx512-linux.c: Regenerate.
482 * features/i386/amd64-avx512.c: Regenerate.
483 * features/i386/x32-avx512-linux.c: Regenerate.
484 * features/i386/x32-avx512.c: Regenerate.
485
20ad026d
PA
4862014-10-01 Pedro Alves <palves@redhat.com>
487
488 * features/Makefile (WHICH): Remove arm-with-m,
489 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
490
acc9fe45
PA
4912014-10-01 Pedro Alves <palves@redhat.com>
492
493 * features/Makefile (clean): New rule.
494
e001e535
PA
4952014-10-01 Pedro Alves <palves@redhat.com>
496
497 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
498 (zmm14h): Add missing end quotes.
499
bdc14417
PA
5002014-10-01 Pedro Alves <palves@redhat.com>
501
502 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
503 * features/aarch64.c: Regenerate.
504
d83ad864
DB
5052014-09-30 Don Breazeal <donb@codesourcery.com>
506
507 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
508 code so as to work with follow_fork_inferior.
509 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
510 (inf_ttrace_create_inferior): Remove reference to
511 inf_ttrace_vfork_ppid.
512 (inf_ttrace_attach): Ditto.
513 (inf_ttrace_detach): Ditto.
514 (inf_ttrace_kill): Use current_inferior instead of
515 inf_ttrace_vfork_ppid.
516 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
517 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
518 inferior away from the parent.
519 * infrun.c (follow_fork): Call follow_fork_inferior instead of
520 target_follow_fork.
521 (follow_fork_inferior): New function.
522 (follow_inferior_reset_breakpoints): Make function static.
523 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
524 * linux-nat.c (linux_child_follow_fork): Move target-independent
525 code to infrun.c:follow_fork_inferior.
526
29082443
AA
5272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
528
529 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
530 * gdbarch.c: Regenerate.
531 * gdbarch.h: Likewise.
532 * corelow.c (sniff_core_bfd): Drop presence check for deleted
533 gdbarch method 'regset_from_core_section'.
534 (get_core_register_section): Remove handling for the case that
535 regset == NULL and regset_from_core_section is defined.
536 (get_core_registers): Drop check for deleted method.
537 * procfs.c (procfs_do_thread_registers): Adjust comment.
538
f968fe80
AA
5392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
540
541 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
542 (linux_nat_make_corefile_notes): Remove.
543 (linux_target_install_ops): Do not set target method
544 'make_corefile_notes'.
545 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
546 Remove field.
547 (linux_corefile_thread_callback): Instead of args->collect, call
548 linux_collect_thread_registers.
549 (linux_make_corefile_notes): Remove 'collect' parameter. Return
550 NULL unless there is a regset iterator.
551 (linux_make_corefile_notes_1): Remove.
552 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
553 by linux_make_corefile_notes.
554 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
555
174ad59a
AA
5562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
557
558 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
559 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
560 Remove.
561 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
562
97094034
AA
5632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
564
565 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
566 (xtensa_iterate_over_regset_sections): New.
567 (xtensa_gdbarch_init): Adjust gdbarch initialization.
568
f73d3ce7
AA
5692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
570
571 * vax-tdep.c (vax_regset_from_core_section): Remove.
572 (vax_iterate_over_regset_sections): New.
573 (vax_gdbarch_init): Adjust gdbarch initialization.
574
cb24567a
AA
5752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
576
577 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
578 (tilegx_regset_from_core_section): Remove.
579 (tilegx_iterate_over_regset_sections): New.
580 (tilegx_linux_init_abi): Adjust gdbarch initialization.
581
e5139de8
AA
5822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
583
584 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
585 (sparc_iterate_over_regset_sections): New.
586 (sparc32_gdbarch_init): Adjust gdbarch initialization.
587 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
588 targets.
589 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
590 (sparc64fbsd_init_abi): Call fbsd_init_abi.
591 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
592 target method 'make_corefile_notes'.
593
c6d41a6f
AA
5942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
595
596 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
597 'sizeof_gregset' and 'sizeof_fpregset'.
598 * sh-tdep.c (sh_regset_from_core_section): Remove.
599 (sh_iterate_over_regset_sections): New.
600 (sh_gdbarch_init): Adjust gdbarch initialization.
601 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
602 sizeof_fpregset.
603 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
604 'sizeof_gregset'.
605
9845a0b5
AA
6062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
607
608 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
609 (score7_linux_iterate_over_regset_sections): New.
610 (score_gdbarch_init): Adjust gdbarch initialization.
611
23ea9aeb
AA
6122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
613
614 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
615 FreeBSD targets.
616 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
617 method 'make_corefile_notes'.
618 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
619 (ppcfbsd_regset_from_core_section): Remove.
620 (ppcfbsd_iterate_over_regset_sections): New.
621 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
622 initialization.
623 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
624 (ppcnbsd_iterate_over_regset_sections): New.
625 (ppcnbsd_init_abi): Adjust.
626 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
627 (ppcobsd_iterate_over_regset_sections): New.
628 (ppcobsd_init_abi): Adjust.
629 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
630 (rs6000_aix_iterate_over_regset_sections): New.
631 (rs6000_aix_init_osabi): Adjust.
632
c5b8d704
AA
6332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
634
635 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
636 (nios2_regset_from_core_section): Remove.
637 (nios2_iterate_over_regset_sections): New.
638 (nios2_linux_init_abi): Adjust gdbarch initialization.
639
3636e608
AA
6402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
641
642 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
643 (am33_iterate_over_regset_sections): New.
644 (am33_linux_init_osabi): Adjust gdbarch initialization.
645
d4036235
AA
6462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
647
648 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
649 (mips_linux_iterate_over_regset_sections): New.
650 (mips_linux_init_abi): Adjust gdbarch initialization.
651 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
652 (mips64obsd_iterate_over_regset_sections): New.
653 (mips64obsd_init_abi): Adjust.
654 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
655 (mipsnbsd_iterate_over_regset_sections): New.
656 (mipsnbsd_init_abi): Adjust.
657
b61ddd6e
AA
6582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
659
660 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
661 (m88k_iterate_over_regset_sections): New.
662 (m88k_gdbarch_init): Adjust gdbarch initialization.
663
55a2906a
AA
6642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
665
666 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
667 (ia64_linux_iterate_over_regset_sections): New.
668 (ia64_linux_init_abi): Adjust gdbarch initialization.
669
022c98ab
AA
6702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
671
672 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
673 (m68kbsd_iterate_over_regset_sections): New.
674 (m68kbsd_init_abi): Adjust gdbarch initialization.
675 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
676 (m68k_linux_iterate_over_regset_sections): New.
677 (m68k_linux_init_abi): Adjust gdbarch initialization.
678
5fac247f
AA
6792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
680
681 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
682 (m32r_linux_regset_from_core_section): Remove.
683 (m32r_linux_iterate_over_regset_sections): New.
684 (m32r_linux_init_abi): Adjust gdbarch initialization.
685
490496c3
AA
6862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
687
688 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
689 (amd64obsd_iterate_over_regset_sections): New.
690 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
691 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
692 Remove.
693 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
694 regset_from_core_section initialization.
695 * i386-tdep.c (i386_regset_from_core_section): Remove.
696 (i386_iterate_over_regset_sections): New.
697 (i386_gdbarch_init): Adjust gdbarch initialization.
698 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
699 (i386_iterate_over_regset_sections): New prototype.
700 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
701 Remove.
702 (i386obsd_aout_iterate_over_regset_sections): New.
703 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
704 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
705 targets.
706 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
707 (amd64fbsd_init_abi): Call fbsd_init_abi.
708 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
709 (i386fbsd4_init_abi): Call fbsd_init_abi.
710 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
711 target method 'make_corefile_notes'.
712 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
713
50c5eb53
AA
7142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
715
716 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
717 (hppa_hpux_iterate_over_regset_sections): New.
718 (hppa_hpux_init_abi): Adjust gdbarch initialization.
719 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
720 (hppa_linux_iterate_over_regset_sections): New.
721 (hppa_linux_init_abi): Adjust.
722 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
723 (hppanbsd_iterate_over_regset_sections): New.
724 (hppanbsd_init_abi): Adjust.
725 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
726 (hppaobsd_iterate_over_regset_sections): New.
727 (hppaobsd_init_abi): Adjust.
728
66afae4f
AA
7292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
730
731 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
732 (frv_linux_iterate_over_regset_sections): New.
733 (frv_linux_init_abi): Adjust gdbarch initialization.
734
ed09174e
AA
7352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
736
737 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
738 (armbsd_iterate_over_regset_sections): New prototype.
739 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
740 (armbsd_iterate_over_regset_sections): New.
741 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
742 initialization.
743
dff2166e
AA
7442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
745
746 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
747 (alpha_linux_iterate_over_regset_sections): New.
748 (alpha_linux_init_abi): Adjust gdbarch initialization.
749 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
750 prototype.
751 (alphanbsd_iterate_over_regset_sections): New prototype.
752
4108500a
AA
7532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
754
755 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
756 Remove.
757 (aarch64_linux_iterate_over_regset_sections): New.
758 (aarch64_linux_init_abi): Adjust gdbarch initialization.
759
a904c024
AA
7602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
761
762 * fbsd-tdep.c: New file.
763 * fbsd-tdep.h: New file.
764 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
765 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
766 (ALLDEPFILES): Add fbsd-tdep.c.
767
8f0435f7
AA
7682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
769
770 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
771 parameter.
772 * gdbarch.h: Regenerate.
773 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
774 iterator.
775 (get_core_register_section): Add parameter 'regset' and use it, if
776 set. Add parameter 'min_size' and verify the bfd section size
777 against it.
778 (get_core_registers_cb): Add parameter 'regset' and pass it to
779 get_core_register section. For the "standard" register sections
780 ".reg" and ".reg2", set an appropriate default for human_name.
781 (get_core_registers): Don't abort when the gdbarch has an iterator
782 but no regset_from_core_section. Add NULL/0 for parameters
783 'regset'/'min_size' in calls to get_core_register_section.
784 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
785 'regset' and use it instead of calling the
786 regset_from_core_section gdbarch method.
787 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
788 * i386-tdep.c (i386_supply_xstateregset)
789 (i386_collect_xstateregset, i386_xstateregset): Moved to
790 i386-linux-tdep.c.
791 (i386_regset_from_core_section): Drop handling for .reg-xfp and
792 .reg-xstate.
793 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
794 core file support only if the regset iterator hasn't been set.
795 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
796 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
797 Moved from i386-tdep.c and renamed to *_linux*.
798 (i386_linux_iterate_over_regset_sections): Add regset parameter to
799 each callback invocation. Allow any .reg-xstate size when reading
800 from a core file.
801 * amd64-tdep.c (amd64_supply_xstateregset)
802 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
803 amd64-linux-tdep.c.
804 (amd64_regset_from_core_section): Remove.
805 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
806 install an amd64-specific regset_from_core_section gdbarch method.
807 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
808 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
809 Moved from amd64-tdep.c and renamed to *_linux*.
810 (amd64_linux_iterate_over_regset_sections): Add regset parameter
811 to each callback invocation. Allow any .reg-xstate size when
812 reading from a core file.
813 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
814 (arm_linux_iterate_over_regset_sections): Add regset parameter to
815 each callback invocation.
816 (arm_linux_init_abi): No longer set the regset_from_core_section
817 gdbarch method.
818 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
819 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
820 each callback invocation.
821 (ppc_linux_init_abi): No longer set the regset_from_core_section
822 gdbarch method.
823 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
824 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
825 (s390_regset_from_core_section): Remove.
826 (s390_iterate_over_regset_sections): Add regset parameter to each
827 callback invocation.
828 (s390_gdbarch_init): No longer set the regset_from_core_section
829 gdbarch method. Drop initialization of deleted tdep fields.
830
5aa82d05
AA
8312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
832
833 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
834 (amd64_linux_iterate_over_regset_sections): New.
835 (amd64_linux_init_abi_common): Don't install the regset section
836 list, but the new iterator in gdbarch.
837 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
838 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
839 (arm_linux_iterate_over_regset_sections): ...here. New function.
840 (arm_linux_init_abi): Set iterator instead of section list.
841 * corelow.c (get_core_registers_cb): New function, logic moved
842 from...
843 (get_core_registers): ...loop body here. Use new iterator method
844 instead of walking through the regset section list.
845 * gdbarch.sh: Remove 'core_regset_sections'. New method
846 'iterate_over_regset_sections'. New typedef
847 'iterate_over_regset_sections_cb'.
848 * gdbarch.c: Regenerate.
849 * gdbarch.h: Likewise.
850 * i386-linux-tdep.c (i386_linux_regset_sections)
851 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
852 Remove.
853 (i386_linux_iterate_over_regset_sections): New.
854 (i386_linux_init_abi): Don't choose a regset section list, but
855 install new iterator in gdbarch.
856 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
857 (linux_collect_regset_section_cb): New function, logic moved
858 from...
859 (linux_collect_thread_registers): ...loop body here. Use iterator
860 method instead of walking through list.
861 (linux_make_corefile_notes_1): Check for presence of iterator
862 method instead of regset section list.
863 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
864 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
865 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
866 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
867 (ppc_linux_iterate_over_regset_sections): ...here. New function.
868 (ppc_linux_init_abi): Don't choose from above regset section
869 lists, but install new iterator in gdbarch.
870 * regset.h (struct core_regset_section): Remove.
871 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
872 have_linux_v1, have_linux_v2, and have_tdb.
873 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
874 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
875 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
876 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
877 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
878 (s390_iterate_over_regset_sections): ...here. New function. Use
879 new tdep fields.
880 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
881 regset section lists, but install new iterator.
882
2eca4a8d
JK
8832014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
884
885 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
886
a73c2b56
SM
8872014-09-26 Simon Marchi <simon.marchi@ericsson.com>
888
889 * progspace.c (print_program_space): Don't prune program spaces
890 before printing them.
891
03d46957
PA
8922014-09-25 Pedro Alves <palves@redhat.com>
893
894 * infrun.c (user_visible_resume_ptid): Don't check
895 singlestep_breakpoints_inserted_p.
896
e558d7c1
PA
8972014-09-25 Pedro Alves <palves@redhat.com>
898
899 * breakpoint.c (should_be_inserted): Add debug output.
900
7f89fd65
PA
9012014-09-25 Pedro Alves <palves@redhat.com>
902
903 * infrun.c (stepping_past_instruction_at)
904 (clear_exit_convenience_vars): Point at infrun.h instead of
905 inferior.h.
906 (handle_signal_stop): Fix typo.
907
b7576e5c
YQ
9082014-09-24 Yao Qi <yao@codesourcery.com>
909
910 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
911 bitmask.
912
9a6cf368
GB
9132014-09-22 Gary Benson <gbenson@redhat.com>
914
915 * target.c (target_stop): Updated comment.
916
03f4463b
GB
9172014-09-22 Gary Benson <gbenson@redhat.com>
918
919 * target/target.h (target_stop_ptid): Renamed as...
920 (target_stop_and_wait): New function. Updated comment.
921 All uses updated.
922 (target_continue_ptid): Renamed as...
923 (target_continue_no_signal): New function. Updated comment.
924 All uses updated.
925
a25a5a45
PA
9262014-09-22 Pedro Alves <palves@redhat.com>
927
928 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
929 and "auto" merged.
930 * breakpoint.c (enum ugll_insert_mode): New enum.
931 (always_inserted_mode): Now a plain boolean.
932 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
933 (breakpoints_always_inserted_mode): Delete.
934 (breakpoints_should_be_inserted_now): New function.
935 (insert_breakpoints): Pass UGLL_INSERT to
936 update_global_location_list instead of calling
937 insert_breakpoint_locations manually.
938 (create_solib_event_breakpoint_1): New, factored out from ...
939 (create_solib_event_breakpoint): ... this.
940 (create_and_insert_solib_event_breakpoint): Use
941 create_solib_event_breakpoint_1 instead of calling
942 insert_breakpoint_locations manually.
943 (update_global_location_list): Change parameter type from boolean
944 to enum ugll_insert_mode. All callers adjusted. Adjust to use
945 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
946 (update_global_location_list_nothrow): Change parameter type from
947 boolean to enum ugll_insert_mode.
948 (_initialize_breakpoint): "breakpoint always-inserted" option is
949 now a boolean command. Update help text.
950 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
951 (breakpoints_should_be_inserted_now): New declaration.
952 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
953 Remove breakpoints_always_inserted_mode check.
954 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
955 * remote.c (remote_start_remote): Likewise.
956
04086b45
PA
9572014-09-22 Pedro Alves <palves@redhat.com>
958
959 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
960 (insert_breakpoints): Don't call insert_breakpoint_locations here.
961 Instead, pass UGLL_INSERT to update_global_location_list.
962 (update_global_location_list): Change parameter type from boolean
963 to enum ugll_insert_mode. All callers adjusted. Adjust to use
964 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
965 (create_solib_event_breakpoint_1): New, factored out from ...
966 (create_solib_event_breakpoint): ... this.
967 (create_and_insert_solib_event_breakpoint): Use
968 create_solib_event_breakpoint_1 instead of calling
969 insert_breakpoint_locations manually.
970 (update_global_location_list): Handle UGLL_INSERT.
971
44702360
PA
9722014-09-22 Pedro Alves <palves@redhat.com>
973
974 * breakpoint.c (enum ugll_insert_mode): New enum.
975 (update_global_location_list)
976 (update_global_location_list_nothrow): Change parameter type from
977 boolean to enum ugll_insert_mode. All callers adjusted.
978
93c6145a
JB
9792014-09-19 Joel Brobecker <brobecker@adacore.com>
980
981 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
982 SystemTap support in GDB.
983
89a5711c
DB
9842014-09-19 Don Breazeal <donb@codesourcery.com>
985
986 * linux-nat.c (linux_handle_extended_wait): Call
987 linux_ptrace_get_extended_event.
988 (wait_lwp): Call linux_is_extended_waitstatus.
989 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
990 and linux_is_extended_waitstatus.
991 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
992 linux_ptrace_get_extended_event.
993 (linux_ptrace_get_extended_event): New function.
994 (linux_is_extended_waitstatus): New function.
995 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
996 (linux_is_extended_waitstatus): New declarations.
997
c3b7b696
YQ
9982014-09-19 Yao Qi <yao@codesourcery.com>
999
1000 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1001 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1002 comments. Callers update.
1003 (dwarf_decode_lines): Likewise.
1004 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1005 comments. Skip the line table if 'lowpc' is greater than
1006 'address'. Don't check
1007 dwarf2_per_objfile->has_section_at_zero.
1008
2b4fd423
DE
10092014-09-18 Doug Evans <dje@google.com>
1010
1011 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1012 * python/py-symtab.c (stpy_get_producer): New function.
1013 (symtab_object_getset): Add "producer" attribute.
1014
5e43d467
UW
10152014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1016
1017 PR gdb/17384
1018 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1019 (do_captured_read_memory_integer): Remove.
1020 (safe_read_memory_integer): Use target_read_memory directly instead
1021 of catching errors in do_captured_read_memory_integer.
1022
04e79979
MR
10232014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1024
1025 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1026 not gdb/doc.
1027
76aeec5b
SDJ
10282014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1029
1030 * objc-lang.c (find_implementation_from_class): Remove dead code.
1031
2f693f9d
SDJ
10322014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1033
1034 PR cli/7233
1035 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1036 "fprintf_unfiltered (gdb_stdlog...)".
1037
bb9d5f81
PP
10382014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1039
1040 PR breakpoints/12526
1041 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1042 val_bitsize.
1043 * breakpoint.c (watch_command_1): Use these fields to retain
1044 bitfield information.
1045 (extract_bitfield_from_watchpoint_value): New function.
1046 (watchpoint_check): Use it.
1047 (update_watchpoint): Use it. Optimize the address and length of a
1048 HW watchpoint pointing to a bitfield.
1049 * value.h (unpack_value_bitfield): New prototype.
1050 * value.c (unpack_value_bitfield): Make extern.
1051
05db5edd
ST
10522014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1053
1054 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1055 x86-dregs.o.
1056 * gnu-nat.c (inf_threads): New function.
1057 * gnu-nat.h (inf_threads_ftype): New typedef.
1058 (inf_threads): New declaration.
1059 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1060 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1061 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1062 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1063 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1064 (i386_gnu_dr_get_control): New functions.
1065 (reg_addr): New structure.
1066 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1067 i386 debugging register hooks.
1068 * NEWS: Mention this.
1069
5a578da5
OJ
10702014-08-13 Omair Javaid <omair.javaid@linaro.org>
1071
1072 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1073 vector data transfer instructions.
1074 (arm_record_coproc_data_proc): Updated.
1075
f20f80dd
OJ
10762014-08-13 Omair Javaid <omair.javaid@linaro.org>
1077
1078 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1079 arm_record_exreg_ld_st_insn.
1080 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1081 load/store insns.
1082
851f26ae
OJ
10832014-08-13 Omair Javaid <omair.javaid@linaro.org>
1084
1085 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1086 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1087 processing instructions.
1088
1e1b6563
OJ
10892014-08-13 Omair Javaid <omair.javaid@linaro.org>
1090
1091 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1092 for advance SIMD struct ld/st insn.
1093 (thumb2_record_decode_insn_handler): Replace stub handler with
1094 thumb2_record_asimd_struct_ld_st.
1095
60cc5e93
OJ
10962014-08-13 Omair Javaid <omair.javaid@linaro.org>
1097
1098 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1099 for asimd, vfp and coprocessor insns.
1100 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1101 and coprocessor insns.
1102 (thumb2_record_coproc_insn): New function.
1103 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1104 handlers.
1105 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1106 opcode 110 insns.
1107
81219e53
DE
11082014-09-13 Doug Evans <xdje42@gmail.com>
1109
1110 * NEWS: Mention new "queue-signal" command.
1111 * infcmd.c (queue_signal_command): New function.
1112 (_initialize_infcmd): Add new queue-signal command.
1113
d36bf488
DE
11142014-09-13 Doug Evans <xdje42@gmail.com>
1115
1116 * linux-nat.c (wait_lwp): Add debugging printf.
1117 (linux_nat_wait_1): Ditto.
1118
f37f681c
PA
11192014-09-12 Pedro Alves <palves@redhat.com>
1120
1121 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1122 (create_and_insert_solib_event_breakpoint): New functions.
1123 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1124 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1125 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1126 (remove_dbx_link_breakpoint): Delete function.
1127 (insert_dbx_link_bpt_in_file): Use
1128 create_and_insert_solib_event_breakpoint instead of
1129 deprecated_insert_raw_breakpoint.
1130 (procfs_wait): Don't check whether we hit __dbx_link here.
1131 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1132 here.
1133 * solib-irix.c (base_breakpoint): Delete global.
1134 (disable_break): Delete function.
1135 (enable_break): Use create_solib_event_breakpoint
1136 instead of deprecated_insert_raw_breakpoint.
1137 (irix_solib_handle_event): New function.
1138 (irix_solib_create_inferior_hook): Don't run the target or disable
1139 the mapping-complete breakpoint here.
1140 (_initialize_irix_solib): Install irix_solib_handle_event as
1141 so_ops->handle_event hook.
1142
9d9bf2df
EBM
11432014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1144 Ulrich Weigand  <uweigand@de.ibm.com>
1145
1146 PR tdep/17379
1147 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1148 instead of read_memory_unsigned_integer.
1149
b006a80e
GB
11502014-09-12 Gary Benson <gbenson@redhat.com>
1151
1152 * nat/linux-waitpid.c: Include common-defs.h.
1153 [GDBSERVER]: Add FIXME comment.
1154 [!GDBSERVER]: Don't include defs.h or signal.h.
1155 (linux_debug) [!GDBSERVER]: Remove empty block.
1156
296b1496
GB
11572014-09-12 Gary Benson <gbenson@redhat.com>
1158
1159 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1160 Don't include defs.h or server.h.
1161
53f81362
GB
11622014-09-12 Gary Benson <gbenson@redhat.com>
1163
1164 * nat/linux-btrace.c: Include common-defs.h.
1165 Don't include defs.h, server.h or gdbthread.h.
1166 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1167
727605ca
GB
11682014-09-12 Gary Benson <gbenson@redhat.com>
1169
1170 * common/agent.c: Include common-defs.h.
1171 Don't include defs.h or server.h.
1172 * common/buffer.c: Likewise.
1173 * common/common-debug.c: Likewise.
1174 * common/common-utils.c: Likewise.
1175 * common/errors.c: Likewise.
1176 * common/filestuff.c: Likewise.
1177 * common/format.c: Likewise.
1178 * common/gdb_vecs.c: Likewise.
1179 * common/print-utils.c: Likewise.
1180 * common/ptid.c: Likewise.
1181 * common/rsp-low.c: Likewise.
1182 * common/signals.c: Likewise.
1183 * common/vec.c: Likewise.
1184 * common/xml-utils.c: Likewise.
1185 * nat/linux-osdata.c: Likewise.
1186 * nat/linux-procfs.c: Likewise.
1187 * nat/linux-ptrace.c: Likewise.
1188 * nat/mips-linux-watch.c: Likewise.
1189 * target/waitstatus.c: Likewise.
1190
361c8ade
GB
11912014-09-12 Tom Tromey <tromey@redhat.com>
1192 Gary Benson <gbenson@redhat.com>
1193
1194 * common/common-regcache.h: New file.
1195 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1196 * regcache.h: Include common-regcache.h.
1197 (regcache_read_pc): Don't declare.
1198 * regcache.c (get_thread_regcache_for_ptid): New function.
1199 * nat/linux-btrace.c: Don't include regcache.h.
1200 Include common-regcache.h.
1201 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1202
a01cbb49
TS
12032014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1204
1205 * regcache.h (struct regset): Declare.
1206
98880d46
PA
12072014-09-11 Pedro Alves <palves@redhat.com>
1208
1209 PR gdb/17347
1210 * main.c: Include "infrun.h".
1211 (catch_command_errors, catch_command_errors_const): Wait for the
1212 foreground command to complete.
1213 * top.c (maybe_wait_sync_command_done): New function, factored out
1214 from ...
1215 (maybe_wait_sync_command_done): ... here.
1216 * top.h (maybe_wait_sync_command_done): New declaration.
1217
bd9269f7
GB
12182014-09-11 Tom Tromey <tromey@redhat.com>
1219 Gary Benson <gbenson@redhat.com>
1220
1221 * common/symbol.h: New file.
1222 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1223 * minsyms.c (find_minimal_symbol_address): New function.
1224 * common/agent.c: Include common/symbol.h.
1225 [!GDBSERVER]: Don't include objfiles.h.
1226 (agent_look_up_symbols): Use find_minimal_symbol_address.
1227
f8c1d06b
GB
12282014-09-11 Gary Benson <gbenson@redhat.com>
1229
1230 * target/target.h (target_stop_ptid, target_continue_ptid):
1231 Declare.
1232 * target.c (target_stop_ptid, target_continue_ptid): New
1233 functions.
1234 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1235 (agent_run_command): Always use target_stop_ptid and
1236 target_continue_ptid.
1237
721ec300
GB
12382014-09-11 Tom Tromey <tromey@redhat.com>
1239 Gary Benson <gbenson@redhat.com>
1240
1241 * target/target.h: New file.
1242 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1243 * target.h: Include target/target.h.
1244 (target_read_memory, target_write_memory): Don't declare.
1245 * target.c (target_read_uint32): New function.
1246 * common/agent.c: Include target/target.h.
1247 [!GDBSERVER]: Don't include target.h.
1248 (helper_thread_id): Type changed to uint32_t.
1249 (agent_get_helper_thread_id): Use target_read_uint32.
1250 (agent_run_command): Always use target_read_memory and
1251 target_write_memory.
1252 (agent_capability): Type changed to uint32_t.
1253 (agent_capability_check): Use target_read_uint32.
1254
c5e92cca
GB
12552014-09-11 Gary Benson <gbenson@redhat.com>
1256
1257 * common/common-debug.h (show_debug_regs): Declare.
1258 * common/common-debug.c (show_debug_regs): Define.
1259 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1260 all uses with show_debug_regs. Replace all uses that considered
1261 debug_hw_points as a multi-value integer with straight boolean
1262 uses.
1263 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1264 with show_debug_regs.
1265 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1266 all uses with show_debug_regs.
1267 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1268 uses with show_debug_regs.
1269
eeef931a
UW
12702014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1271
1272 * findvar.c (address_from_register): Handle targets requiring
1273 a special conversion routine even for plain pointer types.
1274
8efa9855
UW
12752014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1276
1277 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1278 (store_register): Do not call exec_one_dummy_insn.
1279
eb479039
JB
12802014-09-10 Joel Brobecker <brobecker@adacore.com>
1281
1282 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1283 dereference it first. Use value_enclosing_type instead of
1284 value_type.
1285 (ada_array_length): Likewise.
1286
deede10c
JB
12872014-09-10 Joel Brobecker <brobecker@adacore.com>
1288
1289 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1290 Adjust function implementation and documentation accordingly.
1291 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1292 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1293 Update call to ada_value_ptr_subscript.
1294
7828a5f5
JB
12952014-09-10 Joel Brobecker <brobecker@adacore.com>
1296
1297 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1298 instead of VAL's type.
1299
35782f14
JB
13002014-09-10 Joel Brobecker <brobecker@adacore.com>
1301
1302 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1303
d342a0da
DE
13042014-09-09 Doug Evans <xdje42@gmail.com>
1305
1306 PR guile/17367
1307 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1308 last parameter to pkg-config, not first.
1309 * configure.ac: Pass --with-guile provided pkg-config path to
1310 GDB_GUILE_PROGRAM_NAMES.
1311 * configure: Regenerate.
1312
b4a3d263
GKB
13132014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1314
1315 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1316 Bertazi".
1317
6e466374
MR
13182014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1319
1320 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1321 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1322 the list of sections determining GDB_OSABI_IRIX.
1323
a1ada89a
JH
13242014-09-09 James Hogan <james.hogan@imgtec.com>
1325
1326 * MAINTAINERS (Write After Approval): Add "James Hogan".
1327
86db008d
JH
13282014-09-09 James Hogan <james.hogan@imgtec.com>
1329
1330 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1331
72fde3df
JB
13322014-09-09 Joel Brobecker <brobecker@adacore.com>
1333
1334 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1335
92d8d229
DE
13362014-09-08 Doug Evans <xdje42@gmail.com>
1337
1338 PR 17247
1339 * guile.c: #include <signal.h>.
1340 (_initialize_guile): Block SIGCHLD while initializing Guile.
1341
1342 Replaces the following, which is reverted.
1343
1344 2014-07-26 Doug Evans <xdje42@gmail.com>
1345
1346 PR 17185
1347 * configure.ac: Add check for header gc/gc.h.
1348 Add check for function setenv.
1349 * configure: Regenerate.
1350 * config.in: Regenerate.
1351 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1352
d81412aa
DE
13532014-09-08 Doug Evans <xdje42@gmail.com>
1354
1355 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1356 with named constant. Fix style of pointer comparison.
1357 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1358
a9f116cb
GKB
13592014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1360
1361 PR gdb/17035
1362 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1363 decide whether we display the command on "show user".
1364 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1365 printing command name.
1366 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1367 * cli/cli-decode.c (cli_user_command_p): Create helper function
1368 to verify whether cmd_list_element is a user-defined command.
1369
c75bd3a2
JK
13702014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1371
1372 PR python/17355
1373 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1374 Fix goto out of TRY_CATCH.
1375
faa42425 13762014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1377 Tom Tromey <tromey@redhat.com>
faa42425
DE
1378
1379 PR 15276
1380 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1381 $_any_caller_matches.
1382 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1383 * python/lib/gdb/function/caller_is.py: New file.
1384
0d41ba00
DE
13852014-09-06 Doug Evans <xdje42@gmail.com>
1386
1387 * infcmd.c (program_info): Fix typo.
1388
474ca4f6
SDJ
13892014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1390
1391 PR gdb/17235
1392 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1393 'number'. New variable 'has_digit'. Rewrite code to deal with
1394 subexpressions on SDT probes.
1395
ebf13736
PA
13962014-09-04 Pedro Alves <palves@redhat.com>
1397
1398 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1399 the input is only one character long.
1400
eb0b0463
SDJ
14012014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1402
1403 PR fortran/17237
1404 * f-valprint.c (f_val_print): Specify the correct print option to
1405 use when printing integer values.
1406
5ee44bfa
GB
14072014-09-04 Gary Benson <gbenson@redhat.com>
1408
1409 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1410 Remove code to cope with LWPs wrapped as PIDs.
1411 Add assertions to ensure no wrapped LWPs are passed.
1412
4875ffdb
PA
14132014-09-04 Pedro Alves <palves@redhat.com>
1414
1415 * value.c (value_ranges_copy_adjusted): New function, factored out
1416 from ...
1417 (value_contents_copy_raw): ... here.
1418 (unpack_value_bits_as_long_1): Rename back to ...
1419 (unpack_bits_as_long): ... this. Remove 'original_value' and
1420 'result' parameters. Change return type to LONGEST.
1421 (unpack_value_bits_as_long): Delete.
1422 (unpack_value_field_as_long_1): Delete.
1423 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1424 (unpack_value_bitfield): New function.
1425 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1426 (value_fetch_lazy): Use unpack_value_bitfield.
1427 * value.h (unpack_value_bits_as_long): Delete declaration.
1428
5f3b99cf
SS
14292014-09-03 Sasha Smundak <asmundak@google.com>
1430
1431 * python/py-frame.c (frapy_read_register): New function.
1432
ac740bc7
JH
14332014-09-03 James Hogan <james.hogan@imgtec.com>
1434
1435 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1436 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1437
7d793aa9
SDJ
14382014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1439
1440 PR python/16699
1441 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1442 function.
1443 (add_cmd): Set "completer_handle_brkchars" to NULL.
1444 * cli/cli-decode.h (struct cmd_list_element)
1445 <completer_handle_brkchars>: New field.
1446 * command.h (completer_ftype_void): New typedef.
1447 (set_cmd_completer_handle_brkchars): New prototype.
1448 * completer.c (set_gdb_completion_word_break_characters): New
1449 function.
1450 (complete_line_internal): Call "completer_handle_brkchars"
1451 callback from command.
1452 * completer.h: Include "command.h".
1453 (set_gdb_completion_word_break_characters): New prototype.
1454 * python/py-cmd.c (cmdpy_completer_helper): New function.
1455 (cmdpy_completer_handle_brkchars): New function.
1456 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1457 (cmdpy_init): Set completer_handle_brkchars to
1458 cmdpy_completer_handle_brkchars.
1459
97ea6506
GB
14602014-09-03 Gary Benson <gbenson@redhat.com>
1461
1462 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1463 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1464 Loop conditions changed to equivalent form.
1465 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1466 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1467 ALL_DEBUG_ADDRESS_REGISTERS.
1468
d1437815
JB
14692014-09-03 Joel Brobecker <brobecker@adacore.com>
1470
1471 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1472 description fix.
1473
9b94fcf1
DE
14742014-09-02 Doug Evans <dje@google.com>
1475
1476 * typeprint.c (find_global_typedef): Fix comment.
1477
df7e5265
GB
14782014-09-02 Gary Benson <gbenson@redhat.com>
1479
1480 * i386-nat.h: Renamed as...
1481 * x86-nat.h: New file. All type, function and variable name
1482 prefixes changed from "i386_" to "x86_". All references updated.
1483 * i386-nat.c: Renamed as...
1484 * x86-nat.c: New file. All type, function and variable name
1485 prefixes changed from "i386_" to "x86_". All references updated.
1486 * common/i386-xstate.h: Renamed as...
1487 * common/x86-xstate.h: New file. All type, function and variable
1488 name prefixes changed from "i386_" to "x86_". All references
1489 updated.
1490 * nat/i386-cpuid.h: Renamed as...
1491 * nat/x86-cpuid.h: New file. All type, function and variable name
1492 prefixes changed from "i386_" to "x86_". All references updated.
1493 * nat/i386-gcc-cpuid.h: Renamed as...
1494 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1495 name prefixes changed from "i386_" to "x86_". All references
1496 updated.
1497 * nat/i386-dregs.h: Renamed as...
1498 * nat/x86-dregs.h: New file. All type, function and variable name
1499 prefixes changed from "i386_" to "x86_". All references updated.
1500 * nat/i386-dregs.c: Renamed as...
1501 * nat/x86-dregs.c: New file. All type, function and variable name
1502 prefixes changed from "i386_" to "x86_". All references updated.
1503
1c3569d4
MR
15042014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1505
1506 * varobj.c (_initialize_varobj): Move to the end of file.
1507
ff55e1b5
GB
15082014-08-29 Gary Benson <gbenson@redhat.com>
1509
1510 * common/common-exceptions.h: New file.
1511 * common/common-exceptions.c: Likewise.
1512 * Makefile.in (SFILES): Add common/common-exceptions.c.
1513 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1514 (COMMON_OBS): Add common-exceptions.o.
1515 (common-exceptions.o): New rule.
1516 * exceptions.h (common-exceptions.h): Include.
1517 (gdb_setjmp.h): Do not include.
1518 (return_reason): Moved to common-exceptions.h.
1519 (enum return_reason): Likewise.
1520 (RETURN_MASK): Likewise.
1521 (typedef return_mask): Likewise.
1522 (enum errors): Likewise.
1523 (struct gdb_exception): Likewise.
1524 (exceptions_state_mc_init): Likewise.
1525 (exceptions_state_mc_action_iter): Likewise.
1526 (exceptions_state_mc_action_iter_1): Likewise.
1527 (TRY_CATCH): Likewise.
1528 (throw_exception): Likewise.
1529 (throw_verror): Likewise.
1530 (throw_vquit): Likewise.
1531 (throw_error): Likewise.
1532 (throw_quit): Likewise.
1533 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1534 (enum catcher_action): Likewise.
1535 (struct catcher): Likewise.
1536 (current_catcher): Likewise.
1537 (catcher_list_size): Likewise.
1538 (exceptions_state_mc_init): Likewise.
1539 (catcher_pop): Likewise.
1540 (exceptions_state_mc): Likewise.
1541 (exceptions_state_mc_action_iter): Likewise.
1542 (exceptions_state_mc_action_iter_1): Likewise.
1543 (throw_exception): Likewise.
1544 (exception_messages): Likewise.
1545 (exception_messages_size): Likewise.
1546 (throw_it): Likewise.
1547 (throw_verror): Likewise.
1548 (throw_vquit): Likewise.
1549 (throw_error): Likewise.
1550 (throw_quit): Likewise.
1551 (prepare_to_throw_exception): New function.
1552
e9bcb658
GB
15532014-08-29 Gary Benson <gbenson@redhat.com>
1554
1555 * common/gdb_setjmp.h: New file.
1556 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1557 * configure.ac: Move sigsetjmp check...
1558 * common/common.m4: ...here.
1559 * configure: Regenerate.
1560 * cp-support.c (SIGJMP_BUF): Delete.
1561 (SIGSETJMP): Likewise.
1562 (SIGLONGJMP): Likewise.
1563 * exceptions.h (gdb_setjmp.h): Include.
1564 (setjmp.h): Do not include.
1565 (EXCEPTIONS_SIGJMP_BUF): Delete.
1566 (EXCEPTIONS_SIGSETJMP): Likewise.
1567 (EXCEPTIONS_SIGLONGJMP): Likewise.
1568 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1569 from gdb_setjmp.h.
1570 * exceptions.c: Likewise.
1571
e3180625
GB
15722014-08-29 Gary Benson <gbenson@redhat.com>
1573
1574 * cleanups.h: Moved to...
1575 * common/cleanups.h: New file.
1576 * cleanups.c: Moved to...
1577 * common/cleanups.c: New file. Include common-defs.h and
1578 cleanups.h. Do not include defs.h.
1579 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1580 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1581 (cleanups.o): New rule.
1582
e3d6ba5d
GB
15832014-08-29 Gary Benson <gbenson@redhat.com>
1584
1585 * common/errors.h (internal_warning): New declaration.
1586 (internal_vwarning): Likewise.
1587 * common/errors.c (internal_warning): New function.
1588 * utils.h (internal_warning): Don't declare.
1589 (internal_vwarning): Likewise.
1590 * utils.c (internal_warning): Removed.
1591
075c7033
GB
15922014-08-29 Gary Benson <gbenson@redhat.com>
1593
1594 * main.c (captured_main): Use warning during startup.
1595 Prefix startup warning messages with command name.
1596
91b35fd0
GB
15972014-08-29 Gary Benson <gbenson@redhat.com>
1598
1599 * main.c (captured_main): Handle usage errors with error.
1600
b1ec390e
GB
16012014-08-29 Gary Benson <gbenson@redhat.com>
1602
1603 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1604 exit pair with a call to error. Wrap the message with _().
1605
fd0ef3dd
GB
16062014-08-29 Gary Benson <gbenson@redhat.com>
1607
1608 * main.c (captured_main): Replace a fprintf/exit
1609 pair with a call to error. Wrap the message with _().
1610
e0e6bcab
GB
16112014-08-29 Gary Benson <gbenson@redhat.com>
1612
1613 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1614 pairs with calls to error. Wrap the message with _().
1615
0d2f5c07
GB
16162014-08-29 Gary Benson <gbenson@redhat.com>
1617
1618 * utils.c (vwarning): Protect calls to target_terminal_ours
1619 and wrap_here.
1620
5df43998
GB
16212014-08-29 Gary Benson <gbenson@redhat.com>
1622
1623 * exceptions.c (print_flush): Protect calls to
1624 target_terminal_ours and wrap_here.
1625
2437fd32
GB
16262014-08-29 Gary Benson <gbenson@redhat.com>
1627
1628 * utils.h (filtered_printing_initialized): New declaration.
1629 * utils.c (abort_with_message): New function.
1630 (internal_vproblem): Use abort_with_message for first level
1631 recursive internal problems, and if gdb_stderr is not set up.
1632 Protect calls to target_terminal_ours, begin_line and query.
1633
f1f58506
DE
16342014-08-28 Doug Evans <dje@google.com>
1635
1636 * symtab.c (in_prologue): Move definition to better spot.
1637 (skip_prologue_using_sal): Ditto.
1638
aab2f208
DE
16392014-08-28 Doug Evans <dje@google.com>
1640
1641 * symtab.c (find_function_start_sal): Move definition to better spot.
1642
6b65d1b6
YQ
16432014-08-28 Yao Qi <yao@codesourcery.com>
1644
1645 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1646 found_stack_adjust in forward scan. Remove condition check
1647 on found_stack_adjust which is always true. Indent the code.
1648
a1b34d15
YQ
16492014-08-28 Yao Qi <yao@codesourcery.com>
1650
1651 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1652 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1653 (dwarf_decode_lines): Remove argument
1654 want_line_info. Remove condition check on want_line_info.
1655 Callers update.
1656
d5962de5
DE
16572014-08-27 Doug Evans <dje@google.com>
1658
1659 * dwarf2read.c (dwarf_record_line): Fix typo.
1660
9b139002
SDJ
16612014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1662
1663 * target.h (struct target_ops::to_terminal_save_ours): Remove
1664 declaration.
1665 (target_terminal_save_ours): Remove macro.
1666 * target-delegates.c: Regenerate.
1667 * inf-child.c (inf_child_target): Don't set the nonexistent
1668 field to_terminal_save_ours.
1669 * inferior.h (child_terminal_save_ours): Remove declaration.
1670 * terminal.h (gdb_save_tty_state): New declaration.
1671 * inflow.c (child_terminal_save_ours): Rename to ...
1672 (gdb_save_tty_state): ... this.
1673 * tui/tui.c: Include terminal.h.
1674 (tui_enable): Use gdb_save_tty_state instead of
1675 target_terminal_save_ours.
1676 (tui_disable): Likewise.
1677
9debeba0
DE
16782014-08-25 Doug Evans <dje@google.com>
1679
1680 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1681 Pass NULL instead of 0 for context pointer.
1682
428fc5fc
YQ
16832014-08-25 Yao Qi <yao@codesourcery.com>
1684
1685 * dwarf2read.c: Fix grammatical error.
1686
cdc07690
YQ
16872014-08-24 Yao Qi <yao@codesourcery.com>
1688
1689 * dwarf2read.c (scan_partial_symbols): Update comments.
1690 Rename argument 'need_pc' with 'set_addrmap'.
1691 (add_partial_namespace): Rename argument 'need_pc' with
1692 'set_addrmap'.
1693 (add_partial_module): Likewise.
1694 (add_partial_subprogram): Likewise. Update comments.
1695 (dwarf2_name): Fix typo.
1696
a05a36a5
DE
16972014-08-22 Doug Evans <dje@google.com>
1698
1699 PR 17276
1700 * dwarf2read.c (dwarf_record_line_p): New function.
1701 (dwarf_decode_lines_1): Ignore subsequent line number entries
1702 for the same line if any entry had a non-zero discriminator.
1703
252a6764
DE
17042014-08-22 Doug Evans <dje@google.com>
1705
1706 * buildsym.h (record_line_ftype): New typedef.
1707 (record_line): Use it.
1708 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1709 (dwarf_decode_lines_1): Call them.
1710
510db052
YQ
17112014-08-22 Yao Qi <yao@codesourcery.com>
1712
1713 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1714 (ctf_end): Remove code.
1715
22fd09ae
JK
17162014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1717
1718 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1719 (linux_make_corefile_notes): call update_thread_list, protected against
1720 exceptions.
1721
656e8868
PA
17222014-08-21 Pedro Alves <palves@redhat.com>
1723
1724 * infcmd.c (attach_command): Remove comment.
1725
de589d04
WN
17262014-08-21 Bin Cheng <bin.cheng@arm.com>
1727
1728 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1729 unsigned LONGEST to ULONGEST.
1730
2a31c623
PA
17312014-08-20 Pedro Alves <palves@redhat.com>
1732
1733 * Makefile.in (check-read1): New rule.
1734
d36430db
JB
17352014-08-20 Joel Brobecker <brobecker@adacore.com>
1736
1737 * value.c (value_from_contents_and_address): Strip resolved_type's
1738 typedef layers before checking its TYPE_DATA_LOCATION.
1739
000339af
PA
17402014-08-20 Pedro Alves <palves@redhat.com>
1741
1742 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1743
5f52445b
YQ
17442014-08-20 Yao Qi <yao@codesourcery.com>
1745
1746 * amd64-tdep.c (amd64_classify): Add a blank line after the
1747 example. Move "*/" to a new line.
1748 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1749 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1750 * dwarf2read.c (psymtab_include_file_name): Likewise.
1751
9a0dc9e3
PA
17522014-08-19 Andrew Burgess <aburgess@broadcom.com>
1753 Pedro Alves <palves@redhat.com>
1754
1755 PR symtab/14604
1756 PR symtab/14605
1757 * ada-lang.c (coerce_unspec_val_to_type): Use
1758 value_contents_copy_raw.
1759 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1760 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1761 * cp-valprint.c (cp_print_value_fields): Let the common printing
1762 code handle optimized out values.
1763 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1764 * d-valprint.c (dynamic_array_type): Use
1765 value_bits_any_optimized_out.
1766 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1767 check_any_valid fields.
1768 (check_pieced_value_bits): Delete and inline ...
1769 (check_pieced_synthetic_pointer): ... here.
1770 (check_pieced_value_validity): Delete.
1771 (check_pieced_value_invalid): Delete.
1772 (pieced_value_funcs): Remove check_validity and check_any_valid
1773 fields.
1774 (read_pieced_value): Use mark_value_bits_optimized_out.
1775 (write_pieced_value): Switch to use
1776 mark_value_bytes_optimized_out.
1777 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1778 of assuming the whole value is optimized out.
1779 * findvar.c (read_frame_register_value): Remove special handling
1780 of optimized out registers.
1781 (value_from_register): Use mark_value_bytes_optimized_out.
1782 * frame-unwind.c (frame_unwind_got_optimized): Use
1783 mark_value_bytes_optimized_out.
1784 * jv-valprint.c (java_value_print): Adjust.
1785 (java_print_value_fields): Let the common printing code handle
1786 optimized out values.
1787 * mips-tdep.c (mips_print_register): Remove special handling of
1788 optimized out registers.
1789 * opencl-lang.c (lval_func_check_validity): Delete.
1790 (lval_func_check_any_valid): Delete.
1791 (opencl_value_funcs): Remove check_validity and check_any_valid
1792 fields.
1793 * p-valprint.c (pascal_object_print_value_fields): Let the common
1794 printing code handle optimized out values.
1795 * stack.c (read_frame_arg): Remove special handling of optimized
1796 out values. Fetch both VAL and ENTRYVAL before comparing
1797 contents. Adjust to value_available_contents_eq rename.
1798 * valprint.c (valprint_check_validity)
1799 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1800 (val_print_array_elements): Adjust.
1801 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1802 (value_bits_any_optimized_out): New function.
1803 (value_entirely_covered_by_range_vector): New function, factored
1804 out from value_entirely_unavailable.
1805 (value_entirely_unavailable): Reimplement.
1806 (value_entirely_optimized_out): New function.
1807 (insert_into_bit_range_vector): New function, factored out from
1808 mark_value_bits_unavailable.
1809 (mark_value_bits_unavailable): Reimplement.
1810 (struct ranges_and_idx): New struct.
1811 (find_first_range_overlap_and_match): New function, factored out
1812 from value_available_contents_bits_eq.
1813 (value_available_contents_bits_eq): Rename to ...
1814 (value_contents_bits_eq): ... this. Check both unavailable
1815 contents and optimized out contents.
1816 (value_available_contents_eq): Rename to ...
1817 (value_contents_eq): ... this.
1818 (allocate_value_lazy): Remove reference to the old optimized_out
1819 boolean.
1820 (allocate_optimized_out_value): Use
1821 mark_value_bytes_optimized_out.
1822 (require_not_optimized_out): Adjust to check whether the
1823 optimized_out vec is empty.
1824 (ranges_copy_adjusted): New function, factored out from
1825 value_contents_copy_raw.
1826 (value_contents_copy_raw): Also copy the optimized out ranges.
1827 Assert the destination ranges aren't optimized out.
1828 (value_contents_copy): Update comment, remove call to
1829 require_not_optimized_out.
1830 (value_contents_equal): Adjust to check whether the optimized_out
1831 vec is empty.
1832 (set_value_optimized_out, value_optimized_out_const): Delete.
1833 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1834 New functions.
1835 (value_entirely_optimized_out, value_bits_valid): Delete.
1836 (value_copy): Take a VEC copy of the 'optimized_out' field.
1837 (value_primitive_field): Remove special handling of optimized out.
1838 (value_fetch_lazy): Assert that lazy values have no unavailable
1839 regions. Use value_bits_any_optimized_out. Remove some special
1840 handling for optimized out values.
1841 * value.h: Add intro comment about <optimized out> and
1842 <unavailable>.
1843 (struct lval_funcs): Remove check_validity and check_any_valid
1844 fields.
1845 (set_value_optimized_out, value_optimized_out_const): Remove.
1846 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1847 New declarations.
1848 (value_bits_any_optimized_out): New declaration.
1849 (value_bits_valid): Delete declaration.
1850 (value_available_contents_eq): Rename to ...
1851 (value_contents_eq): ... this, and extend comments.
1852
6694c411
JK
18532014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1854
1855 Fix -fsanitize=address on unreadable inferior strings.
1856 * valprint.c (val_print_string): Fix access before BUFFER.
1857
89a1c21a
SM
18582014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1859
1860 * target.c (target_struct_size): Remove.
1861 (target_struct_allocsize): Remove.
1862 (DEFAULT_ALLOCSIZE): Remove.
1863 (target_ops_p): New typedef.
1864 (DEF_VEC_P (target_ops_p)): New vector type.
1865 (target_structs): Change type to VEC (target_ops_p).
1866 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1867 (find_default_run_target): Rewrite for loop following changes to
1868 target_structs.
1869
cb417230
JB
18702014-08-19 Joel Brobecker <brobecker@adacore.com>
1871
1872 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1873 Adjust code accordingly. Adjust function description comment.
1874
817e0957
YQ
18752014-08-19 Yao Qi <yao@codesourcery.com>
1876
1877 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1878 types.
1879
2974be62
AM
18802014-08-19 Alan Modra <amodra@gmail.com>
1881
1882 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1883 * config.in: Regenerate.
1884 * configure: Regenerate.
1885
34abf635
GB
18862014-08-19 Tom Tromey <tromey@redhat.com>
1887 Gary Benson <gbenson@redhat.com>
1888
1889 * common/common-debug.h: New file.
1890 * common/common-debug.c: Likewise.
1891 * debug.c: Likewise.
1892 * Makefile.in (SFILES): Add common/common-debug.c.
1893 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1894 (COMMON_OBS): Add common-debug.o and debug.o.
1895 (common-debug.o): New rule.
1896 * common/common-defs.h: Include common-debug.h.
1897 * common/agent.c (debug_agent_printf): New function.
1898 (DEBUG_AGENT): Redefine.
1899 * nat/i386-dregs.c (debug_printf): Undefine.
1900
f6e94d78
GB
19012014-08-19 Gary Benson <gbenson@redhat.com>
1902
1903 * common/common-defs.h: Include print-utils.h.
1904 * utils.h: Do not include print-utils.h.
1905
9239eeab
GB
19062014-08-19 Tom Tromey <tromey@redhat.com>
1907 Gary Benson <gbenson@redhat.com>
1908
1909 * common/common-types.h: New file.
1910 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1911 * common/common-defs.h: Include common-types.h.
1912 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1913 (ULONGEST): Remove.
1914
ef87c8bb
GB
19152014-08-19 Tom Tromey <tromey@redhat.com>
1916 Gary Benson <gbenson@redhat.com>
1917
1918 * common/errors.h: New file.
1919 * common/errors.c: Likewise.
1920 * Makefile.in (SFILES): Add common/errors.c.
1921 (HFILES_NO_SRCDIR): Add common/errors.h.
1922 (COMMON_OBS): Add errors.o.
1923 (errors.o): New rule.
1924 * common/common-defs.h: Include errors.h.
1925 * utils.h (perror_with_name, error, verror, warning, vwarning):
1926 Don't declare.
1927 * common/common-utils.h: (malloc_failure, internal_error):
1928 Likewise.
1929
196a707b
GB
19302014-08-19 Gary Benson <gbenson@redhat.com>
1931
1932 * utils.c (internal_vproblem): Always print the message.
1933
ded4fc8f
DE
19342014-08-18 Doug Evans <dje@google.com>
1935
1936 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1937
950c97d8
JB
19382014-08-18 Joel Brobecker <brobecker@adacore.com>
1939
1940 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1941 Return 0 if TYPE is dynamic.
1942 (print_range): Add handling of dynamic ranges.
1943
3cdcd0ce
JB
19442014-08-18 Keven Boell <keven.boell@intel.com>
1945 Joel Brobecker <brobecker@adacore.com>
1946
1947 * gdbtypes.h (struct main_type): Add field "data_location".
1948 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1949 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1950 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1951 a dynamic data location.
1952 (resolve_dynamic_type): Add DW_AT_data_location handling.
1953 (copy_recursive, copy_type): Copy the data_location information
1954 when present.
1955 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1956 * value.c (value_from_contents_and_address): Add
1957 DW_AT_data_location handling.
1958
08412b07
JB
19592014-08-18 Keven Boell <keven.boell@intel.com>
1960 Joel Brobecker <brobecker@adacore.com>
1961
1962 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1963 field "get_object_address".
1964 * dwarf2expr.c (execute_stack_op): Add handling for
1965 DW_OP_push_object_address.
1966 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1967 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1968 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1969 (dwarf_expr_get_obj_addr): New function.
1970 (dwarf_expr_ctx_funcs): Add get_object_address field.
1971 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1972 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1973 (dwarf2_evaluate_property): Add parameter "address". Use it.
1974 (needs_get_obj_addr): New function.
1975 (needs_frame_ctx_funcs): Add get_object_address field.
1976 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1977 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1978 (resolve_dynamic_array): Likewise.
1979
84754697
JB
19802014-08-18 Joel Brobecker <brobecker@adacore.com>
1981
1982 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1983 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1984 fixed value for records and unions for which some GNAT encodings
1985 are present.
1986
da5c522f
JB
19872014-08-18 Joel Brobecker <brobecker@adacore.com>
1988
1989 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1990 rewrite to avoid "else if" and "else" constructs. Should be
1991 a no-op in practice.
1992
0d72a7c3
JB
19932014-08-18 Joel Brobecker <brobecker@adacore.com>
1994
1995 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1996 of lexical block.
1997
e66d4446
SC
19982014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1999
2000 PR c++/17132
2001 * eval.c: Update all calls to find_overload_match.
2002 * valarith.c: Likewise.
2003 (value_user_defined_cpp_op, value_user_defined_op): New
2004 argument NOSIDE. Update all callers.
2005 * valops.c (find_overload_match): New argument NOSIDE.
2006 * value.h (find_overload_match): Update signature.
2007
940df408
SC
20082014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2009
2010 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2011 'items' methods instead of 'iteritems' method on dictionaries.
2012
699ca60a
DE
20132014-08-15 Doug Evans <dje@google.com>
2014
2015 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2016 closer to use.
2017
37780ee5
DE
20182014-08-15 Doug Evans <dje@google.com>
2019
2020 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2021
0ad93d4f
DE
20222014-08-15 Doug Evans <dje@google.com>
2023
2024 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2025
20d8c372
DE
20262014-08-15 Doug Evans <dje@google.com>
2027
2028 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2029 unused.
2030
cb039ba4
EZ
20312014-08-15 Eli Zaretskii <eliz@gnu.org>
2032
2033 * dcache.h: Include target.h, to avoid compile time warnings.
2034
eb7a547a
JB
20352014-08-15 Joel Brobecker <brobecker@adacore.com>
2036
2037 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2038 frame_info" partial declaration.
2039 * gdbarch.h: Regenerate.
2040
783cecc8
YQ
20412014-08-15 Yao Qi <yao@codesourcery.com>
2042
2043 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2044 Add parameter 'decode_for_pst_p'. Callers update.
2045
65c749e7
YQ
20462014-08-13 Yao Qi <yao@codesourcery.com>
2047
2048 PR build/17104
2049 * configure.ac: Use local variable 'pos'.
2050 * configure: Regenerated.
2051
d769e349
DE
20522014-08-11 Doug Evans <dje@google.com>
2053
2054 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2055 message, it is redundant with "Reading symbols from ..." message.
2056
24f1235e
DE
20572014-08-10 Doug Evans <xdje42@gmail.com>
2058
2059 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2060
dcd2e6ef
YQ
20612014-08-09 Yao Qi <yao@codesourcery.com>
2062
2063 PR remote/9053
2064 * remote.c (remote_xfer_partial): Remove dead code.
2065
070bdf0b
AA
20662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2067
2068 * ia64-linux-tdep.c: Include "regset.h".
2069 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2070 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2071 (ia64_linux_supply_fpregset): New function.
2072 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2073 (ia64_linux_regset_from_core_section): New function.
2074 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2075 method.
2076
08f9f542
AA
20772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2078
2079 * m68klinux-tdep.c: Include "regset.h".
2080 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2081 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2082 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2083 (m68k_linux_regset_from_core_section): New function.
2084 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2085 method.
2086
8f1cee41
AA
20872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2088
2089 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2090 function. Move logic to...
2091 (tilegx_linux_regmap): ... this new register map.
2092 (tilegx_linux_regset): Refer to register map, replace supply
2093 method by regcache_supply_regset, and add collect method.
2094 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2095 TILEGX_FIRST_EASY_REGNUM.
2096
c5741217
AA
20972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2098
2099 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2100 that calls regcache_supply_regset and handles the EPC register
2101 separately. Move main logic to...
2102 (score7_linux_gregmap): ... this new register map.
2103 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2104 (score7_linux_gregset): Refer to register map. Add collect method.
2105 (score7_linux_regset_from_core_section): Replace
2106 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2107 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2108 (struct regset): Delete unused forward declaraction.
2109 (struct pt_regs): Delete structure definition.
2110 (elf_gregset_t): Delete typedef.
2111
81580573
AA
21122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2113
2114 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2115 (nios2_core_regset): Add collect method.
2116
ba199d7d
AA
21172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2118
2119 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2120 platform-independent and don't write to read-only input buffer.
2121 (m32r_linux_collect_gregset): New function.
2122 (m32r_linux_gregset): Add collect method.
2123
0006a9da
AA
21242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2125
2126 * hppa-linux-tdep.c (greg_map): Rename to...
2127 (hppa_linux_gregmap): ... this. Also convert to
2128 regcache_map_entry format.
2129 (hppa_linux_supply_regset): Delete function.
2130 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2131 (hppa_linux_fpregmap): ... this new register map.
2132 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2133 register map, replace supply method by regcache_supply_regset, and
2134 add collect method regcache_collect_regset.
2135
901e1b23
AA
21362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2137
2138 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2139 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2140 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2141 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2142 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2143 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2144 (frv_linux_supply_gregset): Replace main logic by call to
2145 regcache_supply_regset, but keep clearing gr32-gr63.
2146 (frv_linux_supply_fpregset): Delete function.
2147 (frv_linux_gregset): Refer to appropriate register map and add
2148 regcache_collect_regset as the collect method.
2149 (frv_linux_fpregset): Likewise. Also exchange the supply method
2150 by regcache_supply_regset.
2151
1d6e7555
AA
21522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2153
2154 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2155 by call to alpha_supply_int_regs.
2156 (alpha_linux_collect_gregset): New function.
2157 (alpha_linux_supply_fpregset): Replace logic by call to
2158 alpha_supply_fp_regs.
2159 (alpha_linux_collect_fpregset): New function.
2160 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2161
d4d793bf
AA
21622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163
2164 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2165 by call to regcache_collect_regset.
2166 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2167 instead of aarch64_linux_supply_gregset/_fpregset.
2168 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2169 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2170 header file instead.
2171 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2172 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2173 functions. Move logic to ...
2174 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2175 register maps.
2176 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2177 refer to new register maps, replace *_regset_from_core by
2178 regcache_supply_regset, and also use regcache_collect_regset.
2179 * aarch64-linux-tdep.h: Include "regset.h".
2180 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2181 Delete prototypes.
2182 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2183 macros, moved from C source file.
2184 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2185 variable declarations.
2186
99b7da5d
AA
21872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2188
2189 * s390-linux-nat.c: Include "regset.h".
2190 (regmap_gregset): Delete macro.
2191 (s390_64_regmap_gregset): New register map for
2192 regcache_supply/_collect_regset.
2193 (s390_64_gregset): New regset.
2194 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2195 (regmap_fpregset): Delete macro.
2196 (s390_native_supply, s390_native_collect): Delete functions.
2197 (supply_gregset, fill_gregset): Replace s390-specific regmap
2198 handling by a call to regcache_supply/_collect_regset.
2199 (supply_fpregset, fill_fpregset): Call regcache_supply/
2200 _collect_regset instead of s390_native_supply/_collect.
2201 (fetch_regset, store_regset): Likewise. Also change the last
2202 parameter to a regset instead of a regmap.
2203 (s390_linux_fetch_inferior_registers)
2204 (390_linux_store_inferior_registers): Adjust last parameter in
2205 calls to fetch_regset and store_regset.
2206 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2207 (s390_gregmap): ... this. Also make static const and convert to
2208 regcache_map_entry format.
2209 (s390x_regmap_gregset): Delete.
2210 (s390_regmap_fpregset): Rename to...
2211 (s390_fpregmap): ... this. Make static const and convert to
2212 regcache_map_entry format.
2213 (s390_regmap_upper, s390_regmap_last_break)
2214 (s390x_regmap_last_break, s390_regmap_system_call)
2215 (s390_regmap_tdb): Likewise.
2216 (s390_supply_regset, s390_collect_regset): Remove functions.
2217 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2218 s390_supply_regset.
2219 (s390_gregset, s390_fpregset, s390_upper_regset)
2220 (s390_last_break_regset, s390x_last_break_regset)
2221 (s390_system_call_regset, s390_tdb_regset): Make global and
2222 replace s390_supply/_collect_regset by regcache_supply/
2223 _collect_regset.
2224 (s390x_gregset): Delete.
2225 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2226 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2227 (s390_regmap_fpregset, s390_regmap_last_break)
2228 (s390x_regmap_last_break, s390_regmap_system_call)
2229 (s390_regmap_tdb): Delete global variable declarations.
2230 (s390_gregset, s390_fpregset, s390_last_break_regset)
2231 (s390x_last_break_regset, s390_system_call_regset)
2232 (s390_tdb_regset): New global variable declarations.
2233
0b309272
AA
22342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2235
2236 * regcache.c: Include "regset.h".
2237 (regcache_transfer_regset): New local function.
2238 (regcache_supply_regset, regcache_collect_regset): New functions.
2239 * regcache.h (struct regcache_map_entry): New structure.
2240 (REGCACHE_MAP_SKIP): New enum value.
2241 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2242
7fefa8d7
AA
22432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2244
2245 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2246 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2247 (ppc_linux_collect_gregset ): Likewise.
2248 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2249 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2250 (ppc_collect_vrregset): Likewise.
2251 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2252 Likewise.
2253
96c4f946
YQ
22542014-08-07 Yao Qi <yao@codesourcery.com>
2255
2256 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2257 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2258 * remote.c (remote_read_bytes): Likewise.
2259
fffbe6a8
YQ
22602014-08-07 Yao Qi <yao@codesourcery.com>
2261
2262 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2263
5ee8a82c
YQ
22642014-08-07 Yao Qi <yao@codesourcery.com>
2265
2266 PR remote/17230
2267 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2268 TARGET_XFER_OK instead of 0.
2269
bb974a24
GB
22702014-08-07 Gary Benson <gbenson@redhat.com>
2271
2272 * common/common-defs.h: Include errno.h.
2273 * defs.h: Do not include errno.h.
2274 * ada-typeprint.c: Likewise.
2275 * c-typeprint.c: Likewise.
2276 * core-regset.c: Likewise.
2277 * corefile.c: Likewise.
2278 * corelow.c: Likewise.
2279 * event-loop.c: Likewise.
2280 * f-typeprint.c: Likewise.
2281 * gnu-nat.c: Likewise.
2282 * go32-nat.c: Likewise.
2283 * i386gnu-nat.c: Likewise.
2284 * m2-typeprint.c: Likewise.
2285 * nat/linux-btrace.c: Likewise.
2286 * p-typeprint.c: Likewise.
2287 * procfs.c: Likewise.
2288 * remote-sim.c: Likewise.
2289 * rs6000-nat.c: Likewise.
2290 * target.c: Likewise.
2291 * typeprint.c: Likewise.
2292 * ui-file.c: Likewise.
2293 * valops.c: Likewise.
2294 * valprint.c: Likewise.
2295
6d3d12eb
GB
22962014-08-07 Gary Benson <gbenson@redhat.com>
2297
2298 * common/common-defs.h: Include string.h.
2299 * aarch64-tdep.c: Do not include string.h.
2300 * ada-exp.y: Likewise.
2301 * ada-lang.c: Likewise.
2302 * ada-lex.l: Likewise.
2303 * ada-typeprint.c: Likewise.
2304 * ada-valprint.c: Likewise.
2305 * aix-thread.c: Likewise.
2306 * alpha-linux-tdep.c: Likewise.
2307 * alpha-mdebug-tdep.c: Likewise.
2308 * alpha-nat.c: Likewise.
2309 * alpha-osf1-tdep.c: Likewise.
2310 * alpha-tdep.c: Likewise.
2311 * alphanbsd-tdep.c: Likewise.
2312 * amd64-dicos-tdep.c: Likewise.
2313 * amd64-linux-tdep.c: Likewise.
2314 * amd64-nat.c: Likewise.
2315 * amd64-sol2-tdep.c: Likewise.
2316 * amd64fbsd-tdep.c: Likewise.
2317 * amd64obsd-tdep.c: Likewise.
2318 * arch-utils.c: Likewise.
2319 * arm-linux-nat.c: Likewise.
2320 * arm-linux-tdep.c: Likewise.
2321 * arm-tdep.c: Likewise.
2322 * arm-wince-tdep.c: Likewise.
2323 * armbsd-tdep.c: Likewise.
2324 * armnbsd-nat.c: Likewise.
2325 * armnbsd-tdep.c: Likewise.
2326 * armobsd-tdep.c: Likewise.
2327 * avr-tdep.c: Likewise.
2328 * ax-gdb.c: Likewise.
2329 * ax-general.c: Likewise.
2330 * bcache.c: Likewise.
2331 * bfin-tdep.c: Likewise.
2332 * breakpoint.c: Likewise.
2333 * build-id.c: Likewise.
2334 * buildsym.c: Likewise.
2335 * c-exp.y: Likewise.
2336 * c-lang.c: Likewise.
2337 * c-typeprint.c: Likewise.
2338 * c-valprint.c: Likewise.
2339 * charset.c: Likewise.
2340 * cli-out.c: Likewise.
2341 * cli/cli-cmds.c: Likewise.
2342 * cli/cli-decode.c: Likewise.
2343 * cli/cli-dump.c: Likewise.
2344 * cli/cli-interp.c: Likewise.
2345 * cli/cli-logging.c: Likewise.
2346 * cli/cli-script.c: Likewise.
2347 * cli/cli-setshow.c: Likewise.
2348 * cli/cli-utils.c: Likewise.
2349 * coffread.c: Likewise.
2350 * common/agent.c: Likewise.
2351 * common/buffer.c: Likewise.
2352 * common/buffer.h: Likewise.
2353 * common/common-utils.c: Likewise.
2354 * common/filestuff.c: Likewise.
2355 * common/filestuff.c: Likewise.
2356 * common/format.c: Likewise.
2357 * common/print-utils.c: Likewise.
2358 * common/rsp-low.c: Likewise.
2359 * common/signals.c: Likewise.
2360 * common/vec.h: Likewise.
2361 * common/xml-utils.c: Likewise.
2362 * core-regset.c: Likewise.
2363 * corefile.c: Likewise.
2364 * corelow.c: Likewise.
2365 * cp-abi.c: Likewise.
2366 * cp-name-parser.y: Likewise.
2367 * cp-support.c: Likewise.
2368 * cp-valprint.c: Likewise.
2369 * cris-tdep.c: Likewise.
2370 * d-exp.y: Likewise.
2371 * darwin-nat.c: Likewise.
2372 * dbxread.c: Likewise.
2373 * dcache.c: Likewise.
2374 * demangle.c: Likewise.
2375 * dicos-tdep.c: Likewise.
2376 * disasm.c: Likewise.
2377 * doublest.c: Likewise.
2378 * dsrec.c: Likewise.
2379 * dummy-frame.c: Likewise.
2380 * dwarf2-frame.c: Likewise.
2381 * dwarf2loc.c: Likewise.
2382 * dwarf2read.c: Likewise.
2383 * elfread.c: Likewise.
2384 * environ.c: Likewise.
2385 * eval.c: Likewise.
2386 * event-loop.c: Likewise.
2387 * exceptions.c: Likewise.
2388 * exec.c: Likewise.
2389 * expprint.c: Likewise.
2390 * f-exp.y: Likewise.
2391 * f-lang.c: Likewise.
2392 * f-typeprint.c: Likewise.
2393 * f-valprint.c: Likewise.
2394 * fbsd-nat.c: Likewise.
2395 * findcmd.c: Likewise.
2396 * findvar.c: Likewise.
2397 * fork-child.c: Likewise.
2398 * frame.c: Likewise.
2399 * frv-linux-tdep.c: Likewise.
2400 * frv-tdep.c: Likewise.
2401 * gdb.c: Likewise.
2402 * gdb_bfd.c: Likewise.
2403 * gdbarch.c: Likewise.
2404 * gdbarch.sh: Likewise.
2405 * gdbtypes.c: Likewise.
2406 * gnu-nat.c: Likewise.
2407 * gnu-v2-abi.c: Likewise.
2408 * gnu-v3-abi.c: Likewise.
2409 * go-exp.y: Likewise.
2410 * go-lang.c: Likewise.
2411 * go32-nat.c: Likewise.
2412 * guile/guile.c: Likewise.
2413 * guile/scm-auto-load.c: Likewise.
2414 * hppa-hpux-tdep.c: Likewise.
2415 * hppa-linux-nat.c: Likewise.
2416 * hppanbsd-tdep.c: Likewise.
2417 * hppaobsd-tdep.c: Likewise.
2418 * i386-cygwin-tdep.c: Likewise.
2419 * i386-dicos-tdep.c: Likewise.
2420 * i386-linux-tdep.c: Likewise.
2421 * i386-nto-tdep.c: Likewise.
2422 * i386-sol2-tdep.c: Likewise.
2423 * i386-tdep.c: Likewise.
2424 * i386bsd-tdep.c: Likewise.
2425 * i386gnu-nat.c: Likewise.
2426 * i386nbsd-tdep.c: Likewise.
2427 * i386obsd-tdep.c: Likewise.
2428 * i387-tdep.c: Likewise.
2429 * ia64-libunwind-tdep.c: Likewise.
2430 * ia64-linux-nat.c: Likewise.
2431 * inf-child.c: Likewise.
2432 * inf-ptrace.c: Likewise.
2433 * inf-ttrace.c: Likewise.
2434 * infcall.c: Likewise.
2435 * infcmd.c: Likewise.
2436 * inflow.c: Likewise.
2437 * infrun.c: Likewise.
2438 * interps.c: Likewise.
2439 * iq2000-tdep.c: Likewise.
2440 * irix5-nat.c: Likewise.
2441 * jv-exp.y: Likewise.
2442 * jv-lang.c: Likewise.
2443 * jv-typeprint.c: Likewise.
2444 * jv-valprint.c: Likewise.
2445 * language.c: Likewise.
2446 * linux-fork.c: Likewise.
2447 * linux-nat.c: Likewise.
2448 * lm32-tdep.c: Likewise.
2449 * m2-exp.y: Likewise.
2450 * m2-typeprint.c: Likewise.
2451 * m32c-tdep.c: Likewise.
2452 * m32r-linux-nat.c: Likewise.
2453 * m32r-linux-tdep.c: Likewise.
2454 * m32r-rom.c: Likewise.
2455 * m32r-tdep.c: Likewise.
2456 * m68hc11-tdep.c: Likewise.
2457 * m68k-tdep.c: Likewise.
2458 * m68kbsd-tdep.c: Likewise.
2459 * m68klinux-nat.c: Likewise.
2460 * m68klinux-tdep.c: Likewise.
2461 * m88k-tdep.c: Likewise.
2462 * machoread.c: Likewise.
2463 * macrocmd.c: Likewise.
2464 * main.c: Likewise.
2465 * mdebugread.c: Likewise.
2466 * mem-break.c: Likewise.
2467 * memattr.c: Likewise.
2468 * memory-map.c: Likewise.
2469 * mep-tdep.c: Likewise.
2470 * mi/mi-cmd-break.c: Likewise.
2471 * mi/mi-cmd-disas.c: Likewise.
2472 * mi/mi-cmd-env.c: Likewise.
2473 * mi/mi-cmd-stack.c: Likewise.
2474 * mi/mi-cmd-var.c: Likewise.
2475 * mi/mi-cmds.c: Likewise.
2476 * mi/mi-console.c: Likewise.
2477 * mi/mi-getopt.c: Likewise.
2478 * mi/mi-interp.c: Likewise.
2479 * mi/mi-main.c: Likewise.
2480 * mi/mi-parse.c: Likewise.
2481 * microblaze-rom.c: Likewise.
2482 * microblaze-tdep.c: Likewise.
2483 * mingw-hdep.c: Likewise.
2484 * minidebug.c: Likewise.
2485 * minsyms.c: Likewise.
2486 * mips-irix-tdep.c: Likewise.
2487 * mips-linux-tdep.c: Likewise.
2488 * mips-tdep.c: Likewise.
2489 * mips64obsd-tdep.c: Likewise.
2490 * mipsnbsd-tdep.c: Likewise.
2491 * mipsread.c: Likewise.
2492 * mn10300-linux-tdep.c: Likewise.
2493 * mn10300-tdep.c: Likewise.
2494 * monitor.c: Likewise.
2495 * moxie-tdep.c: Likewise.
2496 * mt-tdep.c: Likewise.
2497 * nat/linux-btrace.c: Likewise.
2498 * nat/linux-osdata.c: Likewise.
2499 * nat/linux-procfs.c: Likewise.
2500 * nat/linux-ptrace.c: Likewise.
2501 * nat/linux-waitpid.c: Likewise.
2502 * nbsd-tdep.c: Likewise.
2503 * nios2-linux-tdep.c: Likewise.
2504 * nto-procfs.c: Likewise.
2505 * nto-tdep.c: Likewise.
2506 * objc-lang.c: Likewise.
2507 * objfiles.c: Likewise.
2508 * opencl-lang.c: Likewise.
2509 * osabi.c: Likewise.
2510 * osdata.c: Likewise.
2511 * p-exp.y: Likewise.
2512 * p-lang.c: Likewise.
2513 * p-typeprint.c: Likewise.
2514 * parse.c: Likewise.
2515 * posix-hdep.c: Likewise.
2516 * ppc-linux-nat.c: Likewise.
2517 * ppc-sysv-tdep.c: Likewise.
2518 * ppcfbsd-tdep.c: Likewise.
2519 * ppcnbsd-tdep.c: Likewise.
2520 * ppcobsd-tdep.c: Likewise.
2521 * printcmd.c: Likewise.
2522 * procfs.c: Likewise.
2523 * prologue-value.c: Likewise.
2524 * python/py-auto-load.c: Likewise.
2525 * python/py-gdb-readline.c: Likewise.
2526 * ravenscar-thread.c: Likewise.
2527 * regcache.c: Likewise.
2528 * registry.c: Likewise.
2529 * remote-fileio.c: Likewise.
2530 * remote-m32r-sdi.c: Likewise.
2531 * remote-mips.c: Likewise.
2532 * remote-notif.c: Likewise.
2533 * remote-sim.c: Likewise.
2534 * remote.c: Likewise.
2535 * reverse.c: Likewise.
2536 * rs6000-aix-tdep.c: Likewise.
2537 * ser-base.c: Likewise.
2538 * ser-go32.c: Likewise.
2539 * ser-mingw.c: Likewise.
2540 * ser-pipe.c: Likewise.
2541 * ser-tcp.c: Likewise.
2542 * ser-unix.c: Likewise.
2543 * serial.c: Likewise.
2544 * sh-tdep.c: Likewise.
2545 * sh64-tdep.c: Likewise.
2546 * shnbsd-tdep.c: Likewise.
2547 * skip.c: Likewise.
2548 * sol-thread.c: Likewise.
2549 * solib-dsbt.c: Likewise.
2550 * solib-frv.c: Likewise.
2551 * solib-osf.c: Likewise.
2552 * solib-som.c: Likewise.
2553 * solib-spu.c: Likewise.
2554 * solib-target.c: Likewise.
2555 * solib.c: Likewise.
2556 * somread.c: Likewise.
2557 * source.c: Likewise.
2558 * sparc-nat.c: Likewise.
2559 * sparc-sol2-tdep.c: Likewise.
2560 * sparc-tdep.c: Likewise.
2561 * sparc64-tdep.c: Likewise.
2562 * sparc64fbsd-tdep.c: Likewise.
2563 * sparc64nbsd-tdep.c: Likewise.
2564 * sparcnbsd-tdep.c: Likewise.
2565 * spu-linux-nat.c: Likewise.
2566 * spu-multiarch.c: Likewise.
2567 * spu-tdep.c: Likewise.
2568 * stabsread.c: Likewise.
2569 * stack.c: Likewise.
2570 * std-regs.c: Likewise.
2571 * symfile.c: Likewise.
2572 * symmisc.c: Likewise.
2573 * symtab.c: Likewise.
2574 * target.c: Likewise.
2575 * thread.c: Likewise.
2576 * tilegx-linux-nat.c: Likewise.
2577 * tilegx-tdep.c: Likewise.
2578 * top.c: Likewise.
2579 * tracepoint.c: Likewise.
2580 * tui/tui-command.c: Likewise.
2581 * tui/tui-data.c: Likewise.
2582 * tui/tui-disasm.c: Likewise.
2583 * tui/tui-file.c: Likewise.
2584 * tui/tui-layout.c: Likewise.
2585 * tui/tui-out.c: Likewise.
2586 * tui/tui-regs.c: Likewise.
2587 * tui/tui-source.c: Likewise.
2588 * tui/tui-stack.c: Likewise.
2589 * tui/tui-win.c: Likewise.
2590 * tui/tui-windata.c: Likewise.
2591 * tui/tui-winsource.c: Likewise.
2592 * typeprint.c: Likewise.
2593 * ui-file.c: Likewise.
2594 * ui-out.c: Likewise.
2595 * user-regs.c: Likewise.
2596 * utils.c: Likewise.
2597 * v850-tdep.c: Likewise.
2598 * valarith.c: Likewise.
2599 * valops.c: Likewise.
2600 * valprint.c: Likewise.
2601 * value.c: Likewise.
2602 * varobj.c: Likewise.
2603 * vax-tdep.c: Likewise.
2604 * vaxnbsd-tdep.c: Likewise.
2605 * vaxobsd-tdep.c: Likewise.
2606 * windows-nat.c: Likewise.
2607 * xcoffread.c: Likewise.
2608 * xml-support.c: Likewise.
2609 * xstormy16-tdep.c: Likewise.
2610 * xtensa-linux-nat.c: Likewise.
2611
dccbb609
GB
26122014-08-07 Gary Benson <gbenson@redhat.com>
2613
2614 * common/common-defs.h: Include gdb_assert.h.
2615 * aarch64-tdep.c: Do not include gdb_assert.h.
2616 * addrmap.c: Likewise.
2617 * aix-thread.c: Likewise.
2618 * alpha-linux-tdep.c: Likewise.
2619 * alpha-mdebug-tdep.c: Likewise.
2620 * alphanbsd-tdep.c: Likewise.
2621 * amd64-nat.c: Likewise.
2622 * amd64-tdep.c: Likewise.
2623 * amd64bsd-nat.c: Likewise.
2624 * amd64fbsd-nat.c: Likewise.
2625 * amd64fbsd-tdep.c: Likewise.
2626 * amd64nbsd-nat.c: Likewise.
2627 * amd64nbsd-tdep.c: Likewise.
2628 * amd64obsd-nat.c: Likewise.
2629 * amd64obsd-tdep.c: Likewise.
2630 * arch-utils.c: Likewise.
2631 * arm-tdep.c: Likewise.
2632 * armbsd-tdep.c: Likewise.
2633 * auxv.c: Likewise.
2634 * bcache.c: Likewise.
2635 * bfin-tdep.c: Likewise.
2636 * blockframe.c: Likewise.
2637 * breakpoint.c: Likewise.
2638 * bsd-kvm.c: Likewise.
2639 * bsd-uthread.c: Likewise.
2640 * buildsym.c: Likewise.
2641 * c-exp.y: Likewise.
2642 * c-lang.c: Likewise.
2643 * charset.c: Likewise.
2644 * cleanups.c: Likewise.
2645 * cli-out.c: Likewise.
2646 * cli/cli-decode.c: Likewise.
2647 * cli/cli-dump.c: Likewise.
2648 * cli/cli-logging.c: Likewise.
2649 * cli/cli-script.c: Likewise.
2650 * cli/cli-utils.c: Likewise.
2651 * coffread.c: Likewise.
2652 * common/common-utils.c: Likewise.
2653 * common/queue.h: Likewise.
2654 * common/signals.c: Likewise.
2655 * common/vec.h: Likewise.
2656 * complaints.c: Likewise.
2657 * completer.c: Likewise.
2658 * corelow.c: Likewise.
2659 * cp-abi.c: Likewise.
2660 * cp-name-parser.y: Likewise.
2661 * cp-namespace.c: Likewise.
2662 * cp-support.c: Likewise.
2663 * cris-tdep.c: Likewise.
2664 * dbxread.c: Likewise.
2665 * dictionary.c: Likewise.
2666 * doublest.c: Likewise.
2667 * dsrec.c: Likewise.
2668 * dummy-frame.c: Likewise.
2669 * dwarf2-frame-tailcall.c: Likewise.
2670 * dwarf2-frame.c: Likewise.
2671 * dwarf2expr.c: Likewise.
2672 * dwarf2loc.c: Likewise.
2673 * dwarf2read.c: Likewise.
2674 * eval.c: Likewise.
2675 * event-loop.c: Likewise.
2676 * exceptions.c: Likewise.
2677 * expprint.c: Likewise.
2678 * f-valprint.c: Likewise.
2679 * fbsd-nat.c: Likewise.
2680 * findvar.c: Likewise.
2681 * frame-unwind.c: Likewise.
2682 * frame.c: Likewise.
2683 * frv-tdep.c: Likewise.
2684 * gcore.c: Likewise.
2685 * gdb-dlfcn.c: Likewise.
2686 * gdb_bfd.c: Likewise.
2687 * gdbarch.c: Likewise.
2688 * gdbarch.sh: Likewise.
2689 * gdbtypes.c: Likewise.
2690 * gnu-nat.c: Likewise.
2691 * gnu-v3-abi.c: Likewise.
2692 * go-lang.c: Likewise.
2693 * guile/scm-exception.c: Likewise.
2694 * guile/scm-gsmob.c: Likewise.
2695 * guile/scm-lazy-string.c: Likewise.
2696 * guile/scm-math.c: Likewise.
2697 * guile/scm-pretty-print.c: Likewise.
2698 * guile/scm-safe-call.c: Likewise.
2699 * guile/scm-utils.c: Likewise.
2700 * guile/scm-value.c: Likewise.
2701 * h8300-tdep.c: Likewise.
2702 * hppa-hpux-nat.c: Likewise.
2703 * hppa-tdep.c: Likewise.
2704 * hppanbsd-tdep.c: Likewise.
2705 * hppaobsd-tdep.c: Likewise.
2706 * i386-darwin-nat.c: Likewise.
2707 * i386-darwin-tdep.c: Likewise.
2708 * i386-nto-tdep.c: Likewise.
2709 * i386-tdep.c: Likewise.
2710 * i386bsd-nat.c: Likewise.
2711 * i386fbsd-tdep.c: Likewise.
2712 * i386gnu-nat.c: Likewise.
2713 * i386nbsd-tdep.c: Likewise.
2714 * i386obsd-tdep.c: Likewise.
2715 * i387-tdep.c: Likewise.
2716 * ia64-libunwind-tdep.c: Likewise.
2717 * ia64-tdep.c: Likewise.
2718 * inf-ptrace.c: Likewise.
2719 * inf-ttrace.c: Likewise.
2720 * infcall.c: Likewise.
2721 * infcmd.c: Likewise.
2722 * infrun.c: Likewise.
2723 * inline-frame.c: Likewise.
2724 * interps.c: Likewise.
2725 * jv-lang.c: Likewise.
2726 * jv-typeprint.c: Likewise.
2727 * linux-fork.c: Likewise.
2728 * linux-nat.c: Likewise.
2729 * linux-thread-db.c: Likewise.
2730 * m32c-tdep.c: Likewise.
2731 * m32r-linux-nat.c: Likewise.
2732 * m32r-tdep.c: Likewise.
2733 * m68k-tdep.c: Likewise.
2734 * m68kbsd-nat.c: Likewise.
2735 * m68kbsd-tdep.c: Likewise.
2736 * m88k-tdep.c: Likewise.
2737 * machoread.c: Likewise.
2738 * macroexp.c: Likewise.
2739 * macrotab.c: Likewise.
2740 * maint.c: Likewise.
2741 * mdebugread.c: Likewise.
2742 * memory-map.c: Likewise.
2743 * mep-tdep.c: Likewise.
2744 * mi/mi-common.c: Likewise.
2745 * microblaze-tdep.c: Likewise.
2746 * mingw-hdep.c: Likewise.
2747 * mips-linux-nat.c: Likewise.
2748 * mips-linux-tdep.c: Likewise.
2749 * mips-tdep.c: Likewise.
2750 * mips64obsd-tdep.c: Likewise.
2751 * mipsnbsd-tdep.c: Likewise.
2752 * mn10300-linux-tdep.c: Likewise.
2753 * mn10300-tdep.c: Likewise.
2754 * moxie-tdep.c: Likewise.
2755 * mt-tdep.c: Likewise.
2756 * nat/linux-btrace.c: Likewise.
2757 * nat/linux-osdata.c: Likewise.
2758 * nat/linux-ptrace.c: Likewise.
2759 * nat/mips-linux-watch.c: Likewise.
2760 * nios2-linux-tdep.c: Likewise.
2761 * nios2-tdep.c: Likewise.
2762 * objc-lang.c: Likewise.
2763 * objfiles.c: Likewise.
2764 * obsd-nat.c: Likewise.
2765 * opencl-lang.c: Likewise.
2766 * osabi.c: Likewise.
2767 * parse.c: Likewise.
2768 * ppc-linux-nat.c: Likewise.
2769 * ppc-sysv-tdep.c: Likewise.
2770 * ppcfbsd-nat.c: Likewise.
2771 * ppcfbsd-tdep.c: Likewise.
2772 * ppcnbsd-nat.c: Likewise.
2773 * ppcnbsd-tdep.c: Likewise.
2774 * ppcobsd-nat.c: Likewise.
2775 * ppcobsd-tdep.c: Likewise.
2776 * printcmd.c: Likewise.
2777 * procfs.c: Likewise.
2778 * prologue-value.c: Likewise.
2779 * psymtab.c: Likewise.
2780 * python/py-lazy-string.c: Likewise.
2781 * python/py-value.c: Likewise.
2782 * regcache.c: Likewise.
2783 * reggroups.c: Likewise.
2784 * registry.c: Likewise.
2785 * remote-sim.c: Likewise.
2786 * remote.c: Likewise.
2787 * rs6000-aix-tdep.c: Likewise.
2788 * rs6000-tdep.c: Likewise.
2789 * s390-linux-tdep.c: Likewise.
2790 * score-tdep.c: Likewise.
2791 * ser-base.c: Likewise.
2792 * ser-mingw.c: Likewise.
2793 * sh-tdep.c: Likewise.
2794 * sh64-tdep.c: Likewise.
2795 * solib-darwin.c: Likewise.
2796 * solib-spu.c: Likewise.
2797 * solib-svr4.c: Likewise.
2798 * source.c: Likewise.
2799 * sparc-nat.c: Likewise.
2800 * sparc-sol2-tdep.c: Likewise.
2801 * sparc-tdep.c: Likewise.
2802 * sparc64-sol2-tdep.c: Likewise.
2803 * sparc64-tdep.c: Likewise.
2804 * sparc64fbsd-tdep.c: Likewise.
2805 * sparc64nbsd-tdep.c: Likewise.
2806 * sparc64obsd-tdep.c: Likewise.
2807 * sparcnbsd-tdep.c: Likewise.
2808 * sparcobsd-tdep.c: Likewise.
2809 * spu-multiarch.c: Likewise.
2810 * spu-tdep.c: Likewise.
2811 * stabsread.c: Likewise.
2812 * stack.c: Likewise.
2813 * symfile.c: Likewise.
2814 * symtab.c: Likewise.
2815 * target-descriptions.c: Likewise.
2816 * target-memory.c: Likewise.
2817 * target.c: Likewise.
2818 * tic6x-linux-tdep.c: Likewise.
2819 * tic6x-tdep.c: Likewise.
2820 * tilegx-linux-nat.c: Likewise.
2821 * tilegx-tdep.c: Likewise.
2822 * top.c: Likewise.
2823 * tramp-frame.c: Likewise.
2824 * tui/tui-out.c: Likewise.
2825 * tui/tui-winsource.c: Likewise.
2826 * ui-out.c: Likewise.
2827 * user-regs.c: Likewise.
2828 * utils.c: Likewise.
2829 * v850-tdep.c: Likewise.
2830 * valops.c: Likewise.
2831 * value.c: Likewise.
2832 * varobj.c: Likewise.
2833 * vax-nat.c: Likewise.
2834 * xml-syscall.c: Likewise.
2835 * xml-tdesc.c: Likewise.
2836 * xstormy16-tdep.c: Likewise.
2837 * xtensa-linux-nat.c: Likewise.
2838 * xtensa-tdep.c: Likewise.
2839
e76df0d0
GB
28402014-08-07 Gary Benson <gbenson@redhat.com>
2841
2842 * common/common-defs.h: Include common-utils.h.
2843 * defs.h: Do not include common-utils.h.
2844 * common/gdb_assert.h: Likewise.
2845 * darwin-nat.h: Likewise.
2846 * nat/linux-btrace.c: Likewise.
2847 * target/waitstatus.h: Likewise.
2848
4cb9c816
GB
28492014-08-07 Gary Benson <gbenson@redhat.com>
2850
2851 * common/common-defs.h: Include ptid.h.
2852 * defs.h: Do not include ptid.h.
2853 * inferior.h: Likewise.
2854 * infrun.h: Likewise.
2855 * nat/linux-btrace.h: Likewise.
2856 * nat/linux-osdata.h: Likewise.
2857 * target/waitstatus.h: Likewise.
2858
3995eeee
GB
28592014-08-07 Gary Benson <gbenson@redhat.com>
2860
2861 * common/common-defs.h: Include gdb_locale.h.
2862 * defs.h: Do not include gdb_locale.h.
2863
cb9f1a9b
GB
28642014-08-07 Gary Benson <gbenson@redhat.com>
2865
2866 * common/common-defs.h: Include gdb/signals.h.
2867 * defs.h: Do not include gdb/signals.h.
2868
a5fceff8
GB
28692014-08-07 Gary Benson <gbenson@redhat.com>
2870
2871 * common/common-defs.h: Include pathmax.h.
2872 * defs.h: Do not include pathmax.h.
2873
b9391142
GB
28742014-08-07 Gary Benson <gbenson@redhat.com>
2875
2876 * common/common-defs.h: Include libiberty.h.
2877 * defs.h: Do not include libiberty.h.
2878 * common/queue.h: Likewise.
2879 * cp-name-parser.y: Likewise.
2880 * mi/mi-cmd-catch.c: Likewise.
2881 * python/python.c: Likewise.
2882
0e443c87
GB
28832014-08-07 Gary Benson <gbenson@redhat.com>
2884
2885 * common/common-defs.h: Include ansidecl.h.
2886 * defs.h: Do not include ansidecl.h.
2887 * common/buffer.h: Likewise.
2888 * common/common-utils.h: Likewise.
2889
8ebb3f56
GB
28902014-08-07 Gary Benson <gbenson@redhat.com>
2891
2892 * common/common-defs.h: Include stddef.h.
2893 * defs.h: Do not include stddef.h.
2894 * common/common-utils.h: Likewise.
2895 * amd64fbsd-nat.c: Likewise.
2896 * bcache.c: Likewise.
2897 * charset.c: Likewise.
2898 * common/buffer.h: Likewise.
2899 * common/vec.h: Likewise.
2900 * i386bsd-nat.c: Likewise.
2901 * nat/linux-btrace.h: Likewise.
2902 * ppcfbsd-nat.c: Likewise.
2903 * ppcnbsd-tdep.h: Likewise.
2904 * ppcobsd-nat.c: Likewise.
2905 * ppcobsd-tdep.h: Likewise.
2906 * python/py-gdb-readline.c: Likewise.
2907
8980bdf6
GB
29082014-08-07 Gary Benson <gbenson@redhat.com>
2909
2910 * common/common-defs.h: Include stdarg.h.
2911 * defs.h: Do not include stdarg.h.
2912 * ada-lang.c: Likewise.
2913 * common/common-utils.h: Likewise.
2914 * guile/scm-string.c: Likewise.
2915 * guile/scm-utils.c: Likewise.
2916 * m32c-tdep.c: Likewise.
2917
d7096f71
GB
29182014-08-07 Gary Benson <gbenson@redhat.com>
2919
2920 * common/common-defs.h: Include stdlib.h.
2921 * defs.h: Do not include stdlib.h.
2922 * addrmap.c: Likewise.
2923 * bcache.c: Likewise.
2924 * common/buffer.c: Likewise.
2925 * common/common-utils.c: Likewise.
2926 * cp-name-parser.y: Likewise.
2927 * go32-nat.c: Likewise.
2928 * mn10300-linux-tdep.c: Likewise.
2929 * nat/linux-osdata.c: Likewise.
2930 * tui/tui.c: Likewise.
2931 * windows-nat.c: Likewise.
2932
d02f550d
GB
29332014-08-07 Gary Benson <gbenson@redhat.com>
2934
2935 * common/common-defs.h: Include stdio.h.
2936 * defs.h: Do not include stdio.h.
2937 * ada-lang.c: Likewise.
2938 * common/buffer.c: Likewise.
2939 * common/common-utils.c: Likewise.
2940 * cp-name-parser.y: Likewise.
2941 * gnu-nat.c: Likewise.
2942 * go32-nat.c: Likewise.
2943 * i386gnu-nat.c: Likewise.
2944 * proc-api.c: Likewise.
2945 * proc-events.c: Likewise.
2946 * proc-flags.c: Likewise.
2947 * proc-why.c: Likewise.
2948 * python/python-internal.h: Likewise.
2949 * target-memory.c: Likewise.
2950 * tui/tui-io.c: Likewise.
2951 * tui/tui.c: Likewise.
2952
b6d7a4bf
SM
29532014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2954
2955 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2956 (scan_dyntag_auxv): Same.
2957
af19829b
YQ
29582014-08-06 Yao Qi <yao@codesourcery.com>
2959
2960 * amd64-linux-nat.c: Remove duplicated include
2961 "x86-linux-nat.h".
2962 * i386-linux-nat.c: Likewise.
2963
8e07a239
YQ
29642014-08-06 Yao Qi <yao@codesourcery.com>
2965
2966 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2967 operand" with "Special opcode" in comments.
2968
7bfe8241
GB
29692014-08-05 Gary Benson <gbenson@redhat.com>
2970
2971 * interps.c (initialize_interps): Remove prototype.
2972 (interpreter_initialized): Remove static global.
2973 (interp_add): Do not call initialize_interps.
2974 (initialize_interps): Remove function.
2975
d6c95504
GB
29762014-08-05 Gary Benson <gbenson@redhat.com>
2977
2978 * utils.c (vwarning): Remove spurious va_end.
2979
241fd515
AM
29802014-08-05 Alan Modra <amodra@gmail.com>
2981
2982 * charset.c (convert_between_encodings): Cast result of obstack_base.
2983 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2984 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2985 (read_unwind_info): Use size_t for some locals.
2986 * jit.c (finalize_symtab): Likewise.
2987 * utils.c (hashtab_obstack_allocate): Likewise.
2988 * symmisc.c (print_objfile_statistics): Update format strings.
2989
dc304a94
JK
29902014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2991
2992 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2993 (Changes in GDB 7.8): ... here.
2994
3cecbbbe
TT
29952014-08-04 Tom Tromey <tromey@redhat.com>
2996
2997 * target.c (set_targetdebug): New function.
2998 (initialize_targets): Pass set_targetdebug when creating "set
2999 debug target".
3000
6908c509
JB
30012014-08-01 Joel Brobecker <brobecker@adacore.com>
3002
3003 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3004 if detecting a variable-sized field that is not the last field.
3005 Fix struct type length computation.
3006
53e8f97d
JB
30072014-08-01 Joel Brobecker <brobecker@adacore.com>
3008
3009 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3010 Add debug trace.
3011
e068c55d
JB
30122014-08-01 Joel Brobecker <brobecker@adacore.com>
3013
3014 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3015 Remove "+ 8" offset in computation of CHAIN_VMA.
3016
4d4ca2a1
DE
30172014-07-31 Doug Evans <dje@google.com>
3018
3019 * inflow.c (child_terminal_inferior): Add comment.
3020 (child_terminal_ours_for_output): Add comment.
3021 (child_terminal_ours): Add comment.
3022 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3023 (linux_nat_terminal_ours): Add comment.
3024
462f517e
GB
30252014-07-31 Gary Benson <gbenson@redhat.com>
3026
3027 * common/btrace-common.h: Do not include defs.h or server.h.
3028 * nat/mips-linux-watch.h: Likewise.
3029 * gdb-dlfcn.h: Do not include defs.h.
3030 * tracefile.h: Likewise.
3031
74228e77
RM
30322014-07-30 Roland McGrath <mcgrathr@google.com>
3033
3034 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3035
014f9477
TT
30362014-07-30 Tom Tromey <tromey@redhat.com>
3037
3038 * bsd-kvm.c (bsd_kvm_open): Constify.
3039 * corelow.c (core_open): Constify.
3040 * ctf.c (ctf_open): Constify.
3041 * dbug-rom.c (dbug_open): Constify.
3042 * exec.c (exec_open): Constify.
3043 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3044 * microblaze-rom.c (picobug_open): Constify.
3045 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3046 Constify.
3047 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3048 * record-btrace.c (record_btrace_open): Constify.
3049 * record-full.c (record_full_core_open_1, record_full_open_1)
3050 (record_full_open): Constify.
3051 * remote-m32r-sdi.c (m32r_open): Constify.
3052 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3053 (rockhopper_open, lsi_open): Constify.
3054 * remote-sim.c (gdbsim_open): Constify.
3055 * remote.c (remote_open, extended_remote_open, remote_open_1):
3056 Constify.
3057 * target.h (struct target_ops) <to_open>: Make "arg" const.
3058 * tracefile-tfile.c (tfile_open): Constify.
3059
e799154c
TT
30602014-07-30 Tom Tromey <tromey@redhat.com>
3061
3062 * breakpoint.c (map_breakpoint_numbers): Update.
3063 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3064 (get_number_const): New function.
3065 (get_number): Rewrite using get_number_const.
3066 (init_number_or_range): Make "string" const.
3067 (number_is_in_list): Make "list" const.
3068 * cli/cli-utils.h (get_number_const): Declare.
3069 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3070 (init_number_or_range, number_is_in_list): Update.
3071 * printcmd.c (map_display_numbers): Update.
3072 * value.c (value_from_history_ref): Constify.
3073 * value.h (value_from_history_ref): Update.
3074
5f08566b
TT
30752014-07-30 Tom Tromey <tromey@redhat.com>
3076
3077 * corefile.c (hook_type, call_extra_exec_file_hooks)
3078 (specify_exec_file_hook): Constify.
3079 * exec.c (exec_file_attach): Make "filename" const.
3080 * gdbcore.h (deprecated_exec_file_display_hook)
3081 (specify_exec_file_hook, exec_file_attach): Constify.
3082 * main.c (captured_main): Use catch_command_errors_const.
3083
8981c758
TT
30842014-07-30 Tom Tromey <tromey@redhat.com>
3085
3086 * target.c (open_target): New function.
3087 (add_target_with_completer, add_deprecated_target_alias): Use
3088 set_cmd_sfunc, set_cmd_context.
3089 (debug_to_open): Remove.
3090 (setup_target_debug): Update.
3091
a1c7835a
YQ
30922014-07-30 Yao Qi <yao@codesourcery.com>
3093
3094 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3095 comments.
3096 * parse.c (exp_iterate): Update comments.
3097
976411d6
GB
30982014-07-30 Gary Benson <gbenson@redhat.com>
3099
3100 * common/common-defs.h: New file.
3101 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3102 * defs.h: Include common-defs.h.
3103 Do not include config.h or build-gnulib/config.h.
3104
5d4848a4
GB
31052014-07-30 Gary Benson <gbenson@redhat.com>
3106
3107 * common/common-utils.h: Do not include config.h.
3108 * nat/linux-btrace.h: Likewise.
3109
d41f6d8e
GB
31102014-07-30 Gary Benson <gbenson@redhat.com>
3111
3112 * btrace.c: Include defs.h.
3113 * common/ptid.c: Include defs.h or server.h as appropriate.
3114 * nat/mips-linux-watch.c: Likewise.
3115
84202f9c
TT
31162014-07-29 Tom Tromey <tromey@redhat.com>
3117
3118 * target.c (target_is_pushed): Simplify.
3119
2530441c
JB
31202014-07-29 Joel Brobecker <brobecker@adacore.com>
3121
3122 GDB 7.8 released.
3123
7e09a223
YQ
31242014-07-29 Yao Qi <yao@codesourcery.com>
3125
3126 PR gdb/17206
3127 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3128
7ebdbe92
DE
31292014-07-28 Doug Evans <xdje42@gmail.com>
3130
3131 PR guile/17203
3132 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3133 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3134 parameters.
3135
f347ffc9
WN
31362014-07-28 Will Newton <will.newton@linaro.org>
3137
3138 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3139 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3140 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3141 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3142 (THUMB2_EABI_SYSCALL): Likewise.
3143 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3144 struct tramp_frame.
3145 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3146 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3147
37c5f1f7
DE
31482014-07-27 Doug Evans <xdje42@gmail.com>
3149
3150 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3151
0c3abbc7
DE
31522014-07-27 Doug Evans <xdje42@gmail.com>
3153
3154 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3155
e76c5d17
DE
31562014-07-26 Ludovic Courtès <ludo@gnu.org>
3157 Doug Evans <xdje42@gmail.com>
3158
3159 PR guile/17146
3160 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3161 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3162 * configure.ac: Try to use guild to compile an scm file, if it fails
3163 then disable guile support.
3164 * configure: Regenerate.
3165 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3166 GUILE_FILE_LIST.
3167 (GUILE_COMPILED_FILES): New variable.
3168 (GUILE_FILES) Update.
3169 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3170 (stamp-guile): Compile scm files.
3171 * guile/guile.c (boot_guile_support): New function.
3172 (standard_throw_args_p): New function.
3173 (print_standard_throw_error, print_throw_error): New functions.
3174 (handle_boot_error): New function.
3175 (initialize_scheme_side): Rewrite to call boot_guile_support.
3176 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3177 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3178
186fcde0
DE
31792014-07-26 Ludovic Courtès <ludo@gnu.org>
3180 Doug Evans <xdje42@gmail.com>
3181
3182 PR guile/17146
3183 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3184 * guile/lib/gdb/support.scm: New file.
3185 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3186 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3187 All uses updated.
3188 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3189 All uses updated.
3190 (%assert-type): Ditto, and renamed to assert-type.
3191 (%exception-print-style): Delete.
3192
4df42755
DE
31932014-07-26 Doug Evans <xdje42@gmail.com>
3194
3195 PR build/17105
3196 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3197 * configure: Regenerate.
3198 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3199 PYTHON_FILES.
3200 (PYTHON_FILES): New variable.
3201 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3202 (GUILE_FILES): New variable.
3203 (stamp-python, install-python, uninstall-python): Handle empty
3204 file list.
3205 (stamp-guile, install-guile, uninstall-guile): Ditto.
3206
ee7333ae
DE
32072014-07-26 Doug Evans <xdje42@gmail.com>
3208
3209 PR guile/17177
3210 * guile/lib/gdb.scm (pretty-printers): Export.
3211 (set-pretty-printers!): Export.
3212 * guile/lib/gdb/printing.scm (gdb module): Update.
3213 (prepend-pretty-printer!, append-pretty-printer!): Update.
3214 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3215 (pretty_printer_list_var): Delete.
3216 (pretty_printer_list): New static global.
3217 (gdbscm_pretty_printers): New function.
3218 (gdbscm_set_pretty_printers_x): New function.
3219 (ppscm_find_pretty_printer_from_gdb): Update.
3220 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3221 (gdbscm_initialize_pretty_printers): Update.
3222
74edf516
DE
32232014-07-26 Doug Evans <xdje42@gmail.com>
3224
3225 PR 17185
3226 * configure.ac: Add check for header gc/gc.h.
3227 Add check for function setenv.
3228 * configure: Regenerate.
3229 * config.in: Regenerate.
3230 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3231
d54398a7
MR
32322014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3233
3234 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3235 variation in gdbarch matching.
3236
ab16fce8
TT
32372014-07-25 Tom Tromey <tromey@redhat.com>
3238
3239 * exec.c (using_exec_ops): Remove.
3240 (exec_close_1): Update. Remove extraneous block, reindent.
3241 (add_target_sections): Use target_is_pushed.
3242
88056fbb
PA
32432014-07-25 Pedro Alves <palves@redhat.com>
3244
3245 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3246 * monitor.c (monitor_create_inferior): Likewise.
3247 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3248 * remote-sim.c (gdbsim_create_inferior): Likewise.
3249 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3250 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3251 * windows-nat.c (do_initial_windows_stuff): Likewise.
3252
70509625
PA
32532014-07-25 Pedro Alves <palves@redhat.com>
3254
3255 * NEWS: Mention signal passing and "signal" command changes.
3256 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3257 comment.
3258 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3259 call.
3260 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3261 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3262 (jump_command): Adjust clear_proceed_status call.
3263 (signal_command): Warn if other thread that are resumed have
3264 signals that will be delivered. Adjust clear_proceed_status call.
3265 (until_next_command, finish_command)
3266 (proceed_after_attach_callback, attach_command_post_wait)
3267 (attach_command): Adjust clear_proceed_status call.
3268 * infrun.c (proceed_after_vfork_done): Likewise.
3269 (proceed_after_attach_callback): Adjust comment.
3270 (clear_proceed_status_thread): Clear stop_signal if not in pass
3271 state.
3272 (clear_proceed_status_callback): Delete.
3273 (clear_proceed_status): New 'step' parameter. Only clear the
3274 proceed status of threads the command being prepared is about to
3275 resume.
3276 (proceed): If passed in an explicit signal, override stop_signal
3277 with it. Don't pass the last stop signal to the thread we're
3278 resuming.
3279 (init_wait_for_inferior): Adjust clear_proceed_status call.
3280 (switch_back_to_stepped_thread): Clear the signal if it should not
3281 be passed.
3282 * infrun.h (clear_proceed_status): New 'step' parameter.
3283 (user_visible_resume_ptid): Add comment.
3284 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3285 signal is in pass state.
3286 * remote.c (append_pending_thread_resumptions): Likewise.
3287 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3288
d8be2939
TT
32892014-07-25 Tom Tromey <tromey@redhat.com>
3290
3291 * target.h (target_stopped_data_address)
3292 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3293 parentheses.
3294
7d0d9d2b
PL
32952014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3296
3297 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3298 comments.
3299 (avr_pointer_to_address): Likewise.
3300
e9e7f724
TT
33012014-07-24 Tom Tromey <tromey@redhat.com>
3302
3303 * monitor.c (compile_pattern): Update.
3304 * target.h (struct target_ops) <to_shortname, to_longname,
3305 to_doc>: Now const.
3306
1947513d
TT
33072014-07-24 Tom Tromey <tromey@redhat.com>
3308
3309 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3310 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3311 (add_info_alias, add_com): Make "doc" const.
3312 (print_doc_line): Make "str" const.
3313 (delete_cmd): Update.
3314 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3315 (print_doc_line): Update.
3316 * cli/cli-script.c (document_command): Update.
3317 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3318 (add_com, add_info, add_info_alias): Update.
3319 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3320 * python/py-cmd.c (cmdpy_destroyer): Update.
3321
64e61d29
TT
33222014-07-24 Tom Tromey <tromey@redhat.com>
3323
3324 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3325 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3326 (help_cmd_list): Constify.
3327 (lookup_cmd): Update.
3328 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3329 const.
3330 (help_cmd_list, apropos_cmd): Update.
3331 * cli/cli-script.c (show_user): Update.
3332 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3333 * cli/cli-setshow.h (cmd_show_list): Update.
3334 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3335 (cmd_show_list): Update.
3336 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3337 * python/py-cmd.c (cmdpy_destroyer): Update.
3338
429e55ea
TT
33392014-07-24 Tom Tromey <tromey@redhat.com>
3340
3341 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3342 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3343 const.
3344 * command.h (deprecate_cmd): Update.
3345 * maint.c (maintenance_do_deprecate): Add casts.
3346
64669f3b
TT
33472014-07-24 Tom Tromey <tromey@redhat.com>
3348
3349 * cli/cli-decode.c (help_cmd): Make parameter "const".
3350 * cli/cli-decode.h (help_cmd): Update.
3351
d3d3328b
TT
33522014-07-24 Tom Tromey <tromey@redhat.com>
3353
3354 * stack.c (up_silently_base, down_silently_base): Make argument
3355 const.
3356
414842dc
TT
33572014-07-24 Tom Tromey <tromey@redhat.com>
3358
3359 * solib.c (solib_add): Make "pattern" const.
3360 * solib.h (solib_add): Update.
3361
baa336ce
TT
33622014-07-24 Tom Tromey <tromey@redhat.com>
3363
3364 * remote.c (remote_serial_open, print_packet, putpkt)
3365 (putpkt_binary): Constify.
3366 * remote.h (putpkt): Update.
3367
5a19e2d0
TT
33682014-07-24 Tom Tromey <tromey@redhat.com>
3369
3370 * monitor.c (monitor_open): Make "args" const.
3371 * monitor.h (monitor_open): Update.
3372
fc4baa5e
TT
33732014-07-24 Tom Tromey <tromey@redhat.com>
3374
3375 * maint.c (match_bfd_flags): Make "string" const.
3376 (print_bfd_section_info): Remove casts.
3377 (print_objfile_section_info): Make "string" const.
3378
0d5f0dbe
TT
33792014-07-24 Tom Tromey <tromey@redhat.com>
3380
3381 * inf-child.c (inf_child_open_target): Make "arg" const.
3382 * inf-child.h (inf_child_open_target): Update.
3383
41c77899
TT
33842014-07-24 Tom Tromey <tromey@redhat.com>
3385
3386 * environ.c (unset_in_environ): Make "var" const.
3387 * environ.h (unset_in_environ): Update.
3388
93db0d79
TT
33892014-07-24 Tom Tromey <tromey@redhat.com>
3390
3391 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3392 Make "cmd" const.
3393 (scan_filename_with_cleanup): Likewise.
3394 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3395 Make arguments const.
3396 (restore_command): Update.
3397
36d6eb95
PA
33982014-07-24 Pedro Alves <palves@redhat.com>
3399
3400 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3401
8009206a
TT
34022014-07-24 Tom Tromey <tromey@redhat.com>
3403 Gary Benson <gbenson@redhat.com>
3404
3405 * nat/linux-ptrace.c (additional_flags): New global.
3406 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3407 additional_flags; don't check GDBSERVER.
3408 (linux_ptrace_set_additional_flags): New function.
3409 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3410 Declare.
3411 * linux-nat.c (_initialize_linux_nat): Call
3412 linux_ptrace_set_additional_flags.
3413
a7068b60
TT
34142014-07-24 Tom Tromey <tromey@redhat.com>
3415
3416 * make-target-delegates (munge_type, write_debugmethod): New
3417 functions.
3418 (debug_names): New global.
3419 ($TARGET_DEBUG_PRINTER): New global.
3420 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3421 name.
3422 Write debug methods. Generate init_debug_target.
3423 * target-debug.h: New file.
3424 * target-delegates.c: Rebuild.
3425 * target.c: Include target-debug.h.
3426 (debug_target): Hoist definition.
3427 (target_kill, target_get_section_table, target_memory_map)
3428 (target_flash_erase, target_flash_done, target_detach)
3429 (target_disconnect, target_wait, target_resume)
3430 (target_pass_signals, target_program_signals, target_follow_fork)
3431 (target_mourn_inferior, target_search_memory)
3432 (target_thread_address_space, target_close)
3433 (target_find_new_threads, target_core_of_thread)
3434 (target_verify_memory, target_insert_mask_watchpoint)
3435 (target_remove_mask_watchpoint): Remove targetdebug code.
3436 (debug_to_post_attach, debug_to_prepare_to_store)
3437 (debug_to_files_info, debug_to_insert_breakpoint)
3438 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3439 (debug_to_region_ok_for_hw_watchpoint)
3440 (debug_to_can_accel_watchpoint_condition)
3441 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3442 (debug_to_watchpoint_addr_within_range)
3443 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3444 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3445 (debug_to_terminal_init, debug_to_terminal_inferior)
3446 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3447 (debug_to_terminal_save_ours, debug_to_terminal_info)
3448 (debug_to_load, debug_to_post_startup_inferior)
3449 (debug_to_insert_fork_catchpoint)
3450 (debug_to_remove_fork_catchpoint)
3451 (debug_to_insert_vfork_catchpoint)
3452 (debug_to_remove_vfork_catchpoint)
3453 (debug_to_insert_exec_catchpoint)
3454 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3455 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3456 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3457 (setup_target_debug): Call init_debug_target.
3458 * target.h (TARGET_DEBUG_PRINTER): New macro.
3459 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3460 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3461
2c51604d
GB
34622014-07-24 Gary Benson <gbenson@redhat.com>
3463
3464 * exceptions.h (throw_vfatal): Renamed to...
3465 (throw_vquit): New declaration.
3466 (throw_quit): Likewise.
3467 * exceptions.c (throw_vfatal): Renamed to...
3468 (throw_vquit): New function.
3469 (throw_quit): Likewise.
3470 (throw_error): Call throw_verror rather than throw_it.
3471 * utils.h (vfatal): Removed.
3472 (fatal): Likewise.
3473 * utils.c (vfatal): Removed.
3474 (fatal): Likewise.
3475 (internal_verror): Replaced call to fatal with call to throw_quit.
3476 (quit): Replaced calls to fatal with calls to throw_quit.
3477
34211963
ME
34782014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3479
3480 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3481 target_read_code.
3482
a52b4d3e
ME
34832014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3484
3485 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3486 less than zero in conditional expression.
3487
a8bdc56b
TT
34882014-07-23 Tom Tromey <tromey@redhat.com>
3489
3490 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3491 ($INTRO_PART): Don't match whitespace.
3492 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3493 argument matching.
3494 ($METHOD): Add $METHOD_TRAILER.
3495 (trim): Rewrite.
3496 (scan_target_h): New sub.
3497 Change main loop not to collect state.
3498 * target-delegates.c: Rebuild.
3499
91b52240
GB
35002014-07-23 Gary Benson <gbenson@redhat.com>
3501
3502 * cp-support.c (gdb_demangle): Fix build on systems without
3503 sigaltstack.
3504
45326f6f
JK
35052014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3506
3507 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3508 for reference entry value target data value.
3509
e214cf6c
JK
35102014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3511
3512 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3513 value_available_contents_eq.
3514
bddbbedd
PA
35152014-07-22 Pedro Alves <palves@redhat.com>
3516
3517 * value.c (allocate_optimized_out_value): Don't mark value as
3518 non-lazy.
3519
45c71484
JW
35202014-07-22 Jiong Wang <jiong.wang@arm.com>
3521
3522 * MAINTAINERS (Write After Approval): Update my email address.
3523
9597b22a
DE
35242014-07-20 Doug Evans <dje@google.com>
3525
3526 PR server/17147
3527 * remote.c (putpkt_binary): Add text to error message.
3528
91101fe5
YQ
35292014-07-20 Yao Qi <yao@codesourcery.com>
3530
3531 * eval.c: Remove "Chill" from comments.
3532 * gdbtypes.h: Likewise.
3533 * symtab.h: Likewise.
3534
c9402c95
YQ
35352014-07-20 Yao Qi <yao@codesourcery.com>
3536
3537 * std-operator.def: Update comments to TERNOP_SLICE.
3538
ae8fddda
YQ
35392014-07-20 Yao Qi <yao@codesourcery.com>
3540
3541 * std-operator.def: Remove BINOP_RANGE.
3542 * breakpoint.c (watchpoint_exp_is_const): Update.
3543 * expprint.c (dump_subexp_body_standard): Likewise.
3544 * eval.c (init_array_element): Remove dead code.
3545 (evaluate_subexp_standard): Likewise.
3546
9c816640
YQ
35472014-07-20 Yao Qi <yao@codesourcery.com>
3548
3549 * std-operator.def: Remove BINOP_IN.
3550 * breakpoint.c (watchpoint_exp_is_const): Update.
3551 * eval.c (evaluate_subexp_standard): Likewise.
3552 * expprint.c (dump_subexp_body_standard): Likewise.
3553
164224e9
ME
35542014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3555
3556 * microblaze-tdep.c (microblaze_register_names): Add
3557 the rshr and rslr register names.
3558 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3559 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3560 Use of tdesc_numbered_register. Use of
3561 microblaze_register_g_packet_guesses. Use of
3562 tdesc_use_registers. Use of set_gdbarch_register_type.
3563 (microblaze_register_g_packet_guesses): New.
3564 * microblaze-tdep.h (microblaze_reg_num): Add
3565 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3566 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3567 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3568 * features/microblaze-core.xml: New file.
3569 * features/microblaze-stack-protect.xml: New file.
3570 * features/microblaze-with-stack-protect.c: New file.
3571 * features/microblaze-with-stack-protect.xml: New file.
3572 * features/microblaze.xml: New file.
3573 * features/microblaze.c: New file.
3574 * features/Makefile (microblaze-with-stack-protect): Add
3575 microblaze-with-stack-protect microblaze and microblaze-expedite.
3576 * regformats/microblaze-with-stack-protect.dat: New file.
3577 * regformats/microblaze.dat: New file.
3578 * doc/gdb.texinfo (MicroBlaze Features): Added.
3579
e8b2341c
TT
35802014-07-18 Tom Tromey <tromey@redhat.com>
3581
3582 * exec.c (exec_ops): Now static.
3583 * exec.h (exec_ops): Don't declare.
3584
44e89118
TT
35852014-07-18 Tom Tromey <tromey@redhat.com>
3586
3587 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3588 to find_target_beneath.
3589 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3590 find_target_beneath.
3591 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3592
b0ed115f
TT
35932014-07-18 Tom Tromey <tromey@redhat.com>
3594
3595 PR gdb/17130:
3596 * utils.c (quit): Use target_supports_terminal_ours.
3597 * target.h (target_supports_terminal_ours): Declare.
3598 * target.c (target_supports_delete_record): Don't check
3599 to_delete_record against NULL.
3600 (target_supports_terminal_ours): New function.
3601
e75fdfca
TT
36022014-07-18 Tom Tromey <tromey@redhat.com>
3603
3604 PR gdb/17130:
3605 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3606 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3607 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3608 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3609 * windows-nat.c (windows_xfer_partial): Always delegate.
3610 * record-btrace.c (record_btrace_xfer_partial): Simplify
3611 delegation.
3612 (record_btrace_fetch_registers, record_btrace_store_registers)
3613 (record_btrace_prepare_to_store, record_btrace_resume)
3614 (record_btrace_wait, record_btrace_find_new_threads)
3615 (record_btrace_thread_alive): Likewise.
3616 * procfs.c (procfs_xfer_partial): Always delegate.
3617 * corelow.c (core_xfer_partial): Always delegate.
3618 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3619
83814951
TT
36202014-07-18 Tom Tromey <tromey@redhat.com>
3621
3622 * exec.c (exec_make_note_section): Move earlier.
3623
b8b8facf
DE
36242014-07-17 Doug Evans <dje@google.com>
3625
74b49205 3626 PR gdb/17170
b8b8facf
DE
3627 * maint.c (count_symtabs_and_blocks): Handle NULL
3628 current_program_space.
3629 (report_command_stats): Check global enabled flag in addition to
3630 recorded enabled flag.
3631 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3632
69ff6be5
PA
36332014-07-16 Pedro Alves <palves@redhat.com>
3634
3635 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3636
252db1b5
TT
36372014-07-16 Tom Tromey <tromey@redhat.com>
3638
3639 * target.h (struct target_ops) <to_delete_record>: Reformat
3640 comment.
3641
a432721e
TT
36422014-07-16 Tom Tromey <tromey@redhat.com>
3643
3644 * target-delegates.c: Rebuild.
3645
487d9753
PL
36462014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3647
3648 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3649 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3650 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3651 (avr_pointer_to_address): Likewise.
3652 (avr_address_class_type_flags): New function.
3653 (avr_address_class_type_flags_to_name): Likewise.
3654 (avr_address_class_name_to_type_flags): Likewise.
3655 (avr_gdbarch_init): Set address_class_type_flags,
3656 address_class_type_flags_to_name and
3657 address_class_name_to_type_flags.
3658
57745c90
PA
36592014-07-15 Pedro Alves <palves@redhat.com>
3660
3661 * linux-nat.c (kill_callback): Save errno and work with saved
3662 copy.
3663
2d40be18
SM
36642014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3665
3666 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3667
572f6555
EBM
36682014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3669
3670 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3671 breakpoint support correctly.
3672
cc1c52ad
PA
36732014-07-14 Pedro Alves <palves@redhat.com>
3674
3675 * utils.c (prompt_for_continue): Call target_terminal_ours.
3676
1e973570
PA
36772014-07-14 Pedro Alves <palves@redhat.com>
3678
3679 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3680 catch_errors. Don't re-enable stdin or notify observers where,
3681 and rethrow error.
3682 (fetch_inferior_event_wrapper): Delete.
3683
93d6eb10
PA
36842014-07-14 Pedro Alves <palves@redhat.com>
3685
3686 PR gdb/17072
3687 * top.c: Include "inf-loop.h".
3688 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3689 field.
3690 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3691 was async before.
3692 (gdb_readline_wrapper): Store whether the target is async, and
3693 make it sync.
3694
0017922d
PA
36952014-07-14 Pedro Alves <palves@redhat.com>
3696
3697 PR gdb/17072
3698 * top.c (gdb_readline_wrapper_line): Tweak comment.
3699 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3700 the input handler callback.
3701
94696ad3
PA
37022014-07-14 Pedro Alves <palves@redhat.com>
3703
3704 PR gdb/17072
3705 * main.c: Include event-top.h.
3706 (handle_command_errors): New function.
3707 (catch_command_errors, catch_command_errors_const): Use it.
3708
9d1e69a2
PA
37092014-07-14 Pedro Alves <palves@redhat.com>
3710
3711 * exceptions.c (catch_command_errors, catch_command_errors_const):
3712 Moved to main.c.
3713 * exceptions.h (catch_command_errors_ftype)
3714 (catch_command_errors_const_ftype): Moved to main.c.
3715 (catch_command_errors, catch_command_errors_const): Delete
3716 declarations.
3717 * main.c (catch_command_errors_ftype)
3718 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3719 (catch_command_errors, catch_command_errors_const)): Moved here
3720 from exceptions.c and make static.
3721
feefc97b
PA
37222014-07-14 Pedro Alves <palves@redhat.com>
3723
3724 * exceptions.c (print_any_exception): Delete.
3725 (catch_exceptions_with_msg): Use exception_print instead of
3726 print_any_exception.
3727 (catch_errors): Use exception_fprintf instead of
3728 print_any_exception.
3729 (catch_command_errors, catch_command_errors_const): Use
3730 exception_print instead of print_any_exception.
3731
c933f875
PA
37322014-07-14 Pedro Alves <palves@redhat.com>
3733
3734 * infcall.c (run_inferior_call): Set 'sync_execution' while
3735 running the inferior call.
3736
feb6f816
PA
37372014-07-14 Pedro Alves <palves@redhat.com>
3738
3739 * value.c (value_contents_equal): Delete function.
3740 * value.h (value_contents_equal): Delete declaration.
3741
d98b7a16
TT
37422014-07-14 Tom Tromey <tromey@redhat.com>
3743
3744 PR exp/17106:
3745 * gdbtypes.c (is_dynamic_type_internal): New function, from
3746 is_dynamic_type.
3747 (is_dynamic_type): Rewrite.
3748 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3749 (resolve_dynamic_struct): Likewise.
3750 (resolve_dynamic_type_internal): New function, from
3751 resolve_dynamic_type.
3752 (resolve_dynamic_type): Rewrite.
3753
548740d6
TT
37542014-07-14 Tom Tromey <tromey@redhat.com>
3755
3756 * target.c (target_require_runnable): Also check record_stratum.
3757 Update comment.
3758
808f7ab1
YQ
37592014-07-11 Yao Qi <yao@codesourcery.com>
3760
3761 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3762 thumb_instruction_restores_sp return true.
3763
540314bd
YQ
37642014-07-11 Yao Qi <yao@codesourcery.com>
3765
3766 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3767 (thumb_in_function_epilogue_p): Call
3768 thumb_instruction_restores_sp.
3769
1db01f22
YQ
37702014-07-11 Yao Qi <yao@codesourcery.com>
3771
3772 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3773 'add sp, #imm'.
3774 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3775
3116063b
GB
37762014-07-11 Gary Benson <gbenson@redhat.com>
3777
3778 * amd64-linux-nat.c (gdbcore.h): Remove include.
3779 (regset.h): Likewise.
3780 (nat/linux-btrace.h): Likewise.
3781 (btrace.h): Likewise.
3782 (gdb_assert.h): Likewise.
3783 (string.h): Likewise.
3784 (sys/uio.h): Likewise.
3785 (sys/debugreg.h): Likewise.
3786 (sys/syscall.h): Likewise.
3787 (sys/procfs.h): Likewise.
3788 (sys/user.h): Likewise.
3789 (asm/ptrace.h): Likewise.
3790 (i386-nat.h): Likewise.
3791 * i386-linux-nat.c (i386-nat.h): Likewise.
3792 (regset.h): Likewise.
3793 (target.h): Likewise.
3794 (linux-nat.h): Likewise.
3795 (nat/linux-btrace.h): Likewise.
3796 (btrace.h): Likewise.
3797 (gdb_assert.h): Likewise.
3798 (string.h): Likewise.
3799 (sys/uio.h): Likewise.
3800 (sys/user.h): Likewise.
3801 (sys/procfs.h): Likewise.
3802 (sys/reg.h): Likewise.
3803 (sys/debugreg.h): Likewise.
3804 (ORIG_EAX): Remove definition.
3805
040baaf6
GB
38062014-07-11 Gary Benson <gbenson@redhat.com>
3807
3808 * i386-linux-nat.h: New file.
3809 * x86-linux-nat.h: Likewise.
3810 * x86-linux-nat.c: Likewise.
3811 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3812 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3813 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3814 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3815 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3816 (PTRACE_SETREGSET): Likewise.
3817 (arch_lwp_info): Now in x86-linux-nat.c.
3818 (have_ptrace_getregset): Now in x86-linux-nat.h.
3819 (x86_linux_dr_get): Now in x86-linux-nat.c.
3820 (x86_linux_dr_set): Likewise.
3821 (x86_linux_dr_get_addr): Likewise.
3822 (x86_linux_dr_get_control): Likewise.
3823 (x86_linux_dr_get_status): Likewise.
3824 (update_debug_registers_callback): Likewise.
3825 (x86_linux_dr_set_control): Likewise.
3826 (x86_linux_dr_set_addr): Likewise.
3827 (x86_linux_prepare_to_resume): Likewise.
3828 (x86_linux_new_thread): Likewise.
3829 (x86_linux_new_fork): Likewise.
3830 (x86_linux_get_thread_area): Likewise.
3831 (super_post_startup_inferior): Likewise.
3832 (x86_linux_child_post_startup_inferior): Likewise.
3833 (AMD64_LINUX_USER64_CS): Likewise.
3834 (AMD64_LINUX_X32_DS): Likewise.
3835 (x86_linux_read_description): Likewise.
3836 (x86_linux_enable_btrace): Likewise.
3837 (x86_linux_disable_btrace): Likewise.
3838 (x86_linux_teardown_btrace): Likewise.
3839 (x86_linux_read_btrace): Likewise.
3840 (x86_linux_create_target): Likewise.
3841 (x86_linux_add_target): Likewise.
3842 * i386-linux-nat.c (x86-linux-nat.h): New include.
3843 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3844 (PTRACE_SETREGSET): Likewise.
3845 (arch_lwp_info): Now in x86-linux-nat.c.
3846 (have_ptrace_getregset): Now in x86-linux-nat.h.
3847 (x86_linux_dr_get): Now in x86-linux-nat.c.
3848 (x86_linux_dr_set): Likewise.
3849 (x86_linux_dr_get_addr): Likewise.
3850 (x86_linux_dr_get_control): Likewise.
3851 (x86_linux_dr_get_status): Likewise.
3852 (update_debug_registers_callback): Likewise.
3853 (x86_linux_dr_set_control): Likewise.
3854 (x86_linux_dr_set_addr): Likewise.
3855 (x86_linux_prepare_to_resume): Likewise.
3856 (x86_linux_new_thread): Likewise.
3857 (x86_linux_new_fork): Likewise.
3858 (x86_linux_get_thread_area): Likewise.
3859 (super_post_startup_inferior): Likewise.
3860 (x86_linux_child_post_startup_inferior): Likewise.
3861 (AMD64_LINUX_USER64_CS): Likewise.
3862 (AMD64_LINUX_X32_DS): Likewise.
3863 (x86_linux_read_description): Likewise.
3864 (x86_linux_enable_btrace): Likewise.
3865 (x86_linux_disable_btrace): Likewise.
3866 (x86_linux_teardown_btrace): Likewise.
3867 (x86_linux_read_btrace): Likewise.
3868 (x86_linux_create_target): Likewise.
3869 (x86_linux_add_target): Likewise.
3870
1aa7e42c
GB
38712014-07-11 Gary Benson <gbenson@redhat.com>
3872
3873 * amd64-linux-nat.c: Comment and whitespace changes.
3874 * i386-linux-nat.c: Comment and whitespace changes.
3875
c1e246a0
GB
38762014-07-11 Gary Benson <gbenson@redhat.com>
3877
3878 * amd64-linux-nat.c (x86_linux_create_target): New function.
3879 (x86_linux_add_target): Likewise.
3880 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3881 * i386-linux-nat.c (x86_linux_create_target): New function.
3882 (x86_linux_add_target): Likewise.
3883 (_initialize_i386_linux_nat): Delegate to the above new functions.
3884
8c420b8d
GB
38852014-07-11 Gary Benson <gbenson@redhat.com>
3886
3887 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3888 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3889 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3890 (ps_get_thread_area): Delegate to the above.
3891
cb1da100
GB
38922014-07-11 Gary Benson <gbenson@redhat.com>
3893
3894 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3895 x86_linux_read_description. All uses updated. amd64-specific
3896 code conditionalized. Conditionalized i386-specific code added.
3897 Redundant cast removed.
3898 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3899 x86_linux_read_description. All uses updated. i386-specific
3900 code conditionalized. Conditionalized amd64-specific code added.
3901 One sizeof replaced with the actual type it is describing.
3902
2acf3cd0
GB
39032014-07-11 Gary Benson <gbenson@redhat.com>
3904
3905 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3906 x86_linux_dr_get. All uses updated.
3907 (amd64_linux_dr_set): Renamed to
3908 x86_linux_dr_set. All uses updated.
3909 (amd64_linux_dr_get_addr): Renamed to
3910 x86_linux_dr_get_addr. All uses updated.
3911 (amd64_linux_dr_get_control): Renamed to
3912 x86_linux_dr_get_control. All uses updated.
3913 (amd64_linux_dr_get_status): Renamed to
3914 x86_linux_dr_get_status. All uses updated.
3915 (amd64_linux_dr_set_control): Renamed to
3916 x86_linux_dr_set_control. All uses updated.
3917 (amd64_linux_dr_set_addr): Renamed to
3918 x86_linux_dr_set_addr. All uses updated.
3919 (amd64_linux_prepare_to_resume): Renamed to
3920 x86_linux_prepare_to_resume. All uses updated.
3921 (amd64_linux_new_thread): Renamed to
3922 x86_linux_new_thread. All uses updated.
3923 (amd64_linux_new_fork): Renamed to
3924 x86_linux_new_fork. All uses updated.
3925 (amd64_linux_child_post_startup_inferior): Renamed to
3926 x86_linux_child_post_startup_inferior. All uses updated.
3927 (amd64_linux_enable_btrace): Renamed to
3928 x86_linux_enable_btrace. All uses updated.
3929 (amd64_linux_disable_btrace): Renamed to
3930 x86_linux_disable_btrace. All uses updated.
3931 (amd64_linux_teardown_btrace): Renamed to
3932 x86_linux_teardown_btrace. All uses updated.
3933 (amd64_linux_read_btrace): Renamed to
3934 x86_linux_read_btrace. All uses updated.
3935 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3936 x86_linux_dr_get. All uses updated.
3937 (i386_linux_dr_set): Renamed to
3938 x86_linux_dr_set. All uses updated.
3939 (i386_linux_dr_get_addr): Renamed to
3940 x86_linux_dr_get_addr. All uses updated.
3941 (i386_linux_dr_get_control): Renamed to
3942 x86_linux_dr_get_control. All uses updated.
3943 (i386_linux_dr_get_status): Renamed to
3944 x86_linux_dr_get_status. All uses updated.
3945 (i386_linux_dr_set_control): Renamed to
3946 x86_linux_dr_set_control. All uses updated.
3947 (i386_linux_dr_set_addr): Renamed to
3948 x86_linux_dr_set_addr. All uses updated.
3949 (i386_linux_prepare_to_resume): Renamed to
3950 x86_linux_prepare_to_resume. All uses updated.
3951 (i386_linux_new_thread): Renamed to
3952 x86_linux_new_thread. All uses updated.
3953 (i386_linux_new_fork): Renamed to
3954 x86_linux_new_fork. All uses updated.
3955 (i386_linux_child_post_startup_inferior): Renamed to
3956 x86_linux_child_post_startup_inferior. All uses updated.
3957 (i386_linux_enable_btrace): Renamed to
3958 x86_linux_enable_btrace. All uses updated.
3959 (i386_linux_disable_btrace): Renamed to
3960 x86_linux_disable_btrace. All uses updated.
3961 (i386_linux_teardown_btrace): Renamed to
3962 x86_linux_teardown_btrace. All uses updated.
3963 (i386_linux_read_btrace): Renamed to
3964 x86_linux_read_btrace. All uses updated.
3965
b9c1d481
AS
39662014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3967
3968 * remote.c (extended_remote_post_attach): New function.
3969 (init_extended_remote_ops): Install it as to_post_attach method.
3970
7180e04a
PA
39712014-07-09 Pedro Alves <palves@redhat.com>
3972
3973 * infcmd.c (attach_command_post_wait): Don't call
3974 target_terminal_inferior here.
3975 (attach_command): Call it here instead.
3976
9a9a7608
AB
39772014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3980 field.
3981 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3982 from varobj.c, with additional checks.
3983 (c_varobj_ops): Fill in is_path_expr_parent field.
3984 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3985 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3986 field.
3987 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3988 ops method.
3989 (varobj_default_is_path_expr_parent): New function.
3990 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3991 (varobj_default_is_path_expr_parent): Declare new function.
3992
1f267ae3
MM
39932014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3994
3995 * infcmd.c (finish_backward): Turn internal error into normal error.
3996
b2ee242b
PA
39972014-07-07 Pedro Alves <palves@redhat.com>
3998
8a869bca 3999 PR gdb/17096
b2ee242b
PA
4000 * remote.c (async_handle_remote_sigint)
4001 (async_handle_remote_sigint_twice): Call
4002 gdb_call_async_signal_handler instead of
4003 mark_async_signal_handler.
4004
38e229b2
TT
40052014-07-07 Tom Tromey <tromey@redhat.com>
4006
4007 * target-delegates.c: Rebuild.
4008 * target.c (target_info_record): Remove.
4009 * record.c (info_record_command): Unconditionally call
4010 to_info_record.
4011 * target.h (struct target_ops) <to_info_record>: Use
4012 TARGET_DEFAULT_IGNORE.
4013 (target_info_record): Remove.
4014
f0f9ff95
TT
40152014-07-07 Tom Tromey <tromey@redhat.com>
4016
4017 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4018 TARGET_DEFAULT_NORETURN.
4019 * target.c (generic_tls_error): New function.
4020 (target_translate_tls_address): Don't search target stack.
4021 * target-delegates.c: Rebuild.
4022 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4023 stack.
4024 * linux-thread-db.c (thread_db_get_thread_local_address):
4025 Unconditionally call beneath target.
4026
4a5be5ee
MK
40272014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4028
4029 * cli/cli-logging.c (pop_output_files): Assign targerr to
4030 gdb_stdtargerr.
4031
92c3b204
AB
40322014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * MAINTAINERS (Write After Approval): Update my email address.
4035
9b11e3a7
GB
40362014-07-02 Gary Benson <gbenson@redhat.com>
4037
4038 * proc-service.c (ps_xfer_memory): Update comment.
4039 (ps_pstop): Remove unused function.
4040 (ps_pcontinue): Likewise.
4041 (ps_lstop): Likewise.
4042 (ps_lcontinue): Likewise.
4043 (ps_lgetxregsize): Likewise.
4044 (ps_lgetxregs): Likewise.
4045 (ps_lsetxregs): Likewise.
4046 (ps_plog): Likewise.
4047 (ps_ptread): Likewise.
4048 (ps_ptwrite): Likewise.
4049
cf363f18
MW
40502014-07-01 Mark Wielaard <mjw@redhat.com>
4051
4052 * dwarf2read.c (add_array_cv_type): New function.
4053 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4054 (read_tag_volatile_type): Likewise.
4055
82ae6c8d
TT
40562014-07-01 Tom Tromey <tromey@redhat.com>
4057
4058 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4059 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4060 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4061 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4062 * command.h (cmd_cfunc_ftype): Move earlier.
4063 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4064 (add_com, add_info): Use cmd_cfunc_ftype.
4065
96142726
TT
40662014-06-30 Tom Tromey <tromey@redhat.com>
4067
4068 * symtab.c (operator_chars): Make parameters and return type
4069 const.
4070 (file_matches): Make "files" const.
4071 (struct search_symbols_data) <files>: Now const.
4072 (search_symbols): Make "regexp" and "files" parameters const.
4073 Update.
4074 (symtab_symbol_info): Remove cast.
4075 (rbreak_command): Update.
4076 * symtab.h (search_symbols): Update.
4077
b67a2c6f
YQ
40782014-06-27 Yao Qi <yao@codesourcery.com>
4079
4080 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4081 Change parameter type to 'struct thread_info *'. Caller
4082 updated.
4083 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4084 Update declaration.
4085 * dummy-frame.c (struct dummy_frame_id): New.
4086 (dummy_frame_id_eq): New function.
4087 (struct dummy_frame) <id>: Change its type to 'struct
4088 dummy_frame_id'.
4089 (dummy_frame_push): Add parameter ptid and save it in
4090 dummy_frame_id.
4091 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4092 inferior_ptid.
4093 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4094 to inferior_ptid.
4095 (lookup_dummy_frame): Change parameter type to 'struct
4096 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4097 instead of frame_id_eq.
4098 (dummy_frame_pop): Add parameter ptid. Callers updated.
4099 Update comments. Compose dummy_frame_id and pass it to
4100 lookup_dummy_frame.
4101 (dummy_frame_discard): Add parameter ptid.
4102 (dummy_frame_sniffer): Compose dummy_frame_id and call
4103 dummy_frame_id_eq instead of frame_id_eq.
4104 (fprint_dummy_frames): Print ptid.
4105 * dummy-frame.h: Remove comments.
4106 (dummy_frame_push): Add ptid in declaration.
4107 (dummy_frame_pop, dummy_frame_discard): Likewise.
4108
5b10184c
TT
41092014-06-26 Tom Tromey <tromey@redhat.com>
4110
4111 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4112 * command.h (error_no_arg): Update.
4113
06900326
TT
41142014-06-26 Tom Tromey <tromey@redhat.com>
4115
4116 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4117 (do_show_command): Make "arg" const.
4118 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4119
c2bcbb1d
TT
41202014-06-26 Tom Tromey <tromey@redhat.com>
4121
4122 * record-full.c (record_full_get_bookmark): Make "args" const.
4123 (record_full_goto_bookmark): Make "raw_bookmark" const.
4124 * record.c (record_goto): New function.
4125 (cmd_record_goto): Use it. Now static.
4126 * record.h (record_goto): Declare.
4127 (cmd_record_goto): Remove declaration.
4128 * target-delegates.c: Rebuild.
4129 * target.h (struct target_ops) <to_get_bookmark,
4130 to_goto_bookmark>: Make parameter const.
4131
9cbe5fff
TT
41322014-06-26 Tom Tromey <tromey@redhat.com>
4133
4134 * defs.h (generic_load): Update.
4135 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4136 * monitor.c (monitor_load): Make "args" const.
4137 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4138 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4139 const.
4140 (mips_load): Make "file" const.
4141 * remote-sim.c (gdbsim_load): Make "args" const.
4142 * remote.c (remote_load): Make "name" const.
4143 * symfile.c (generic_load): Make "args" const.
4144 * target-delegates.c: Rebuild.
4145 * target.c (target_load): Make "arg" const.
4146 (debug_to_load): Make "args" const.
4147 * target.h (struct target_ops) <to_load>: Make parameter const.
4148 (target_load): Update.
4149
34a68019
TT
41502014-06-26 Tom Tromey <tromey@redhat.com>
4151
4152 PR symtab/16902:
4153 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4154 (dwarf2_physname, read_partial_die)
4155 (guess_partial_die_structure_name, fixup_partial_die)
4156 (guess_full_die_structure_name, anonymous_struct_prefix)
4157 (dwarf2_name): Use per-BFD obstack.
4158
efc889c1
YQ
41592014-06-26 Yao Qi <yao@codesourcery.com>
4160
4161 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4162 dummyframe and this_id into inner block below.
4163
4395285e
YQ
41642014-06-26 Yao Qi <yao@codesourcery.com>
4165
4166 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4167 with "signal_pass[0]" in the initialization of signal_pass.
4168
aef92902
MM
41692014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4170
4171 * record-btrace.c (record_btrace_generating_corefile)
4172 (record_btrace_prepare_to_generate_core)
4173 (record_btrace_done_generating_core): New.
4174 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4175 (record_btrace_store_registers, record_btrace_prepare_to_store):
4176 Forward request when generating a core file.
4177 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4178 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4179 to_done_generating_core.
4180
5fff78c4
MM
41812014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4182
4183 * target.h (target_ops) <to_prepare_to_generate_core>
4184 <to_done_generating_core>: New.
4185 (target_prepare_to_generate_core, target_done_generating_core): New.
4186 * target.c (target_prepare_to_generate_core)
4187 (target_done_generating_core): New.
4188 * target-delegates.c: Regenerate.
4189 * gcore.c: (write_gcore_file): Rename to ...
4190 (write_gcore_file_1): ...this.
4191 (write_gcore_file): Call target_prepare_to_generate_core
4192 and target_done_generating_core.
4193
1d1f1ccb
MM
41942014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4195
4196 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4197 * gcore.c (write_gcore_file): Free memory returned from
4198 make_corefile_notes.
4199 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4200 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4201
3343ef86
YQ
42022014-06-24 Yao Qi <yao@codesourcery.com>
4203
4204 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4205 (arm_linux_init_abi): Set skip_trampoline_code with
4206 gdbarch_skip_trampoline_code instead of
4207 find_solib_trampoline_target.
4208
18d18ac8
YQ
42092014-06-24 Yao Qi <yao@codesourcery.com>
4210
4211 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4212 arm_skip_bx_reg returns non-zero.
4213
80d8d390
YQ
42142014-06-24 Yao Qi <yao@codesourcery.com>
4215
4216 * arm-tdep.c (arm_skip_bx_reg): New function.
4217 (arm_skip_stub): Call arm_skip_bx_reg.
4218
6a18a01c
DB
42192014-06-23 Don Breazeal <donb@codesourcery.com>
4220
4221 * MAINTAINERS: Add myself as write-after-approval maintainer.
4222
8e9db26e
PA
42232014-06-23 Pedro Alves <palves@redhat.com>
4224
4225 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4226 DR_CONTROL before setting DR0..DR3.
4227 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4228 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4229 bits of DR_CONTROL related to the debug register slot being
4230 disabled. If all slots are vacant, clear local slowdown as well,
4231 and assert DR_CONTROL is 0.
4232
70afc5b7
SC
42332014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4234
4235 * python/lib/gdb/command/xmethods.py
4236 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4237 current progspace only if the string "progspace" matches LOCUS_RE.
4238
840ed64d
JK
42392014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4240
4241 Fix --with-system-readline with readline-6.3 patch 5.
4242 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4243 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4244 types.
4245
26f2dc30
TT
42462014-06-20 Tom Tromey <tromey@redhat.com>
4247
4248 * dwarf2read.c (dw2_get_real_path): Use correct type in
4249 OBSTACK_CALLOC.
4250 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4251
125f8a3d
GB
42522014-06-20 Gary Benson <gbenson@redhat.com>
4253
4254 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4255 * common/glibc_thread_db.h: Likewise.
4256 * common/i386-cpuid.h: Likewise.
4257 * common/i386-gcc-cpuid.h: Likewise.
4258 * common/linux-btrace.h: Likewise.
4259 * common/linux-osdata.h: Likewise.
4260 * common/linux-procfs.h: Likewise.
4261 * common/linux-ptrace.h: Likewise.
4262 * common/mips-linux-watch.h: Likewise.
4263 * common/linux-btrace.c: Moved to nat.
4264 * common/linux-osdata.c: Likewise.
4265 * common/linux-procfs.c: Likewise.
4266 * common/linux-ptrace.c: Likewise.
4267 * common/mips-linux-watch.c: Likewise.
4268 * nat/gdb_thread_db.h: Moved from common.
4269 * nat/glibc_thread_db.h: Likewise.
4270 * nat/i386-cpuid.h: Likewise.
4271 * nat/i386-gcc-cpuid.h: Likewise.
4272 * nat/linux-btrace.c: Likewise.
4273 * nat/linux-btrace.h: Likewise.
4274 * nat/linux-osdata.c: Likewise.
4275 * nat/linux-osdata.h: Likewise.
4276 * nat/linux-procfs.c: Likewise.
4277 * nat/linux-procfs.h: Likewise.
4278 * nat/linux-ptrace.c: Likewise.
4279 * nat/linux-ptrace.h: Likewise.
4280 * nat/mips-linux-watch.c: Likewise.
4281 * nat/mips-linux-watch.h: Likewise.
4282 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4283 (object file files): Reordered.
4284 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4285 of glibc_thread_db.h.
4286
42995dbd
GB
42872014-06-20 Gary Benson <gbenson@redhat.com>
4288
4289 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4290 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4291 (i386_dr_low): Likewise.
4292 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4293 (i386_dr_low_set_addr): Likewise.
4294 (i386_dr_low_get_addr): Likewise.
4295 (i386_dr_low_can_set_control): Likewise.
4296 (i386_dr_low_set_control): Likewise.
4297 (i386_dr_low_get_control): Likewise.
4298 (i386_dr_low_get_status): Likewise.
4299 (i386_get_debug_register_length): Likewise.
4300 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4301 (i386_dr_low): Likewise.
4302 * nat/i386-dregs.c (i386-low.h): Remove include.
4303 (i386-nat.h): Likewise.
4304 (nat/i386-dregs.h): New include.
4305 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4306 (i386_dr_low_set_addr): Likewise.
4307 (i386_dr_low_get_addr): Likewise.
4308 (i386_dr_low_can_set_control): Likewise.
4309 (i386_dr_low_set_control): Likewise.
4310 (i386_dr_low_get_control): Likewise.
4311 (i386_dr_low_get_status): Likewise.
4312 (i386_get_debug_register_length): Likewise.
4313 (debug_hw_points): Likewise.
4314
3ed9baed
IB
43152014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4316
4317 * Makefile.in (SFILES): Add d-exp.y.
4318 (YYFILES): Add d-exp.c.
4319 (YYOBJ): Add d-exp.o.
4320 (local-maintainer-clean): Delete d-exp.c.
4321 * d-exp.y: New file.
4322 * d-lang.h (d_parse): New declaration.
4323 (d_error): New declaration.
4324 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4325 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4326 PREC_ORDER operators.
4327 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4328
78c164b0
YQ
43292014-06-19 Yao Qi <yao@codesourcery.com>
4330
4331 * gdbthread.h (any_running): Remove the declaration.
4332 * thread.c (any_running): Remove.
4333
f6e29b6e
YQ
43342014-06-19 Yao Qi <yao@codesourcery.com>
4335
4336 * gdbthread.h (struct thread_info) <state>: Change its type to
4337 'enum thread_state'. Update comments.
4338
034f788c
PA
43392014-06-19 Pedro Alves <palves@redhat.com>
4340
4341 * gdbthread.h (ALL_THREADS): Delete.
4342 (ALL_NON_EXITED_THREADS): New macro.
4343 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4344 instead of ALL_THREADS.
4345 * infrun.c (find_thread_needs_step_over)
4346 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4347 instead of ALL_THREADS.
4348 * record-btrace.c (record_btrace_open)
4349 (record_btrace_stop_recording, record_btrace_close)
4350 (record_btrace_is_replaying, record_btrace_resume)
4351 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4352 * remote.c (append_pending_thread_resumptions): Likewise.
4353 * thread.c (thread_apply_all_command): Likewise.
4354
46e33252
GB
43552014-06-19 Gary Benson <gbenson@redhat.com>
4356
4357 * i386-nat.c (i386_stopped_by_watchpoint):
4358 Use i386_dr_stopped_by_watchpoint.
4359 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4360 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4361
3a8ee006
GB
43622014-06-19 Gary Benson <gbenson@redhat.com>
4363
4364 * nat/i386-dregs.c: New file.
4365 * Makefile.in (i386-dregs.o): New rule.
4366 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4367 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4368 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4369 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4370 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4371 * config/i386/go32.mh (NATDEPFILES): Likewise.
4372 * config/i386/linux.mh (NATDEPFILES): Likewise.
4373 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4374 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4375 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4376 * i386-nat.h (debug_hw_points): New declaration.
4377 * i386-nat.c (breakpoint.h): Remove include.
4378 (command.h): Likewise.
4379 (target.h): Likewise.
4380 (gdb_assert.h): Likewise.
4381 (debug_hw_points): Made nonstatic.
4382 (debug_printf): Now in i386-dregs.c.
4383 (TARGET_HAS_DR_LEN_8): Likewise.
4384 (DR_CONTROL_SHIFT): Likewise.
4385 (DR_CONTROL_SIZE): Likewise.
4386 (DR_RW_EXECUTE): Likewise.
4387 (DR_RW_WRITE): Likewise.
4388 (DR_RW_READ): Likewise.
4389 (DR_RW_IORW): Likewise.
4390 (DR_LEN_1): Likewise.
4391 (DR_LEN_2): Likewise.
4392 (DR_LEN_4): Likewise.
4393 (DR_LEN_8): Likewise.
4394 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4395 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4396 (DR_ENABLE_SIZE): Likewise.
4397 (DR_LOCAL_SLOWDOWN): Likewise.
4398 (DR_GLOBAL_SLOWDOWN): Likewise.
4399 (DR_CONTROL_RESERVED): Likewise.
4400 (I386_DR_CONTROL_MASK): Likewise.
4401 (I386_DR_VACANT): Likewise.
4402 (I386_DR_LOCAL_ENABLE): Likewise.
4403 (I386_DR_GLOBAL_ENABLE): Likewise.
4404 (I386_DR_DISABLE): Likewise.
4405 (I386_DR_SET_RW_LEN): Likewise.
4406 (I386_DR_GET_RW_LEN): Likewise.
4407 (I386_DR_WATCH_HIT): Likewise.
4408 (i386_wp_op_t): Likewise.
4409 (i386_show_dr): Likewise.
4410 (i386_length_and_rw_bits): Likewise.
4411 (i386_insert_aligned_watchpoint): Likewise.
4412 (i386_remove_aligned_watchpoint): Likewise.
4413 (i386_handle_nonaligned_watchpoint): Likewise.
4414 (i386_update_inferior_debug_regs): Likewise.
4415 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4416 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4417 (i386_region_ok_for_watchpoint):
4418 Use i386_dr_region_ok_for_watchpoint.
4419 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4420
322a8e06
GB
44212014-06-19 Gary Benson <gbenson@redhat.com>
4422
4423 * i386-nat.c (i386_insert_hw_breakpoint): Use
4424 i386_insert_watchpoint.
4425 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4426
8f26655c
GB
44272014-06-19 Gary Benson <gbenson@redhat.com>
4428
4429 * i386-nat.c (i386_dr_show): Renamed to
4430 i386_show_dr and made static. All uses updated.
4431 (i386_dr_length_and_rw_bits): Renamed to
4432 i386_length_and_rw_bits and made static.
4433 All uses updated.
4434 (i386_dr_insert_aligned_watchpoint): Renamed to
4435 i386_insert_aligned_watchpoint and made static.
4436 All uses updated.
4437 (i386_dr_remove_aligned_watchpoint): Renamed to
4438 i386_remove_aligned_watchpoint and made static.
4439 All uses updated.
4440 (i386_dr_update_inferior_debug_regs): Renamed to
4441 i386_update_inferior_debug_regs and made static.
4442 All uses updated.
4443 * nat/i386-dregs.h (i386_dr_show): Removed.
4444 (i386_dr_length_and_rw_bits): Likewise.
4445 (i386_dr_insert_aligned_watchpoint): Likewise.
4446 (i386_dr_remove_aligned_watchpoint): Likewise.
4447 (i386_dr_update_inferior_debug_regs): Likewise.
4448
992c7d70
GB
44492014-06-19 Gary Benson <gbenson@redhat.com>
4450
4451 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4452 * configure: Regenerate.
4453 * config.in: Likewise.
4454 * main.c (signal.h): New include.
4455 (setup_alternate_signal_stack): New function.
4456 (captured_main): Call the above.
4457 * cp-support.c (signal.h): New include.
4458 (catch_demangler_crashes): New flag.
4459 (SIGJMP_BUF): New define.
4460 (SIGSETJMP): Likewise.
4461 (SIGLONGJMP): Likewise.
4462 (gdb_demangle_jmp_buf): New static global.
4463 (gdb_demangle_attempt_core_dump): Likewise.
4464 (gdb_demangle_signal_handler): New function.
4465 (gdb_demangle): If catch_demangler_crashes is set, install the
4466 above signal handler before calling bfd_demangle, and restore
4467 the original signal handler afterwards. Display the offending
4468 symbol and call demangler_warning the first time a segmentation
4469 fault is caught.
4470 (_initialize_cp_support): New maint set/show command.
4471
eae7090b
GB
44722014-06-19 Gary Benson <gbenson@redhat.com>
4473
4474 * utils.h (resource_limit_kind): New enum.
4475 (can_dump_core): New declaration.
4476 (warn_cant_dump_core): Likewise.
4477 (dump_core): Likewise.
4478 * utils.c (dump_core): Made nonstatic. Added new
4479 parameter "limit_kind".
4480 (can_dump_core): Made nonstatic. Moved printing code to...
4481 (warn_cant_dump_core): New function.
4482 (can_dump_core_warn): Likewise.
4483 (internal_vproblem): Replace calls to can_dump_core with
4484 calls to can_dump_core_warn. Supply new argument to each.
4485
57fcfb1b
GB
44862014-06-19 Gary Benson <gbenson@redhat.com>
4487
4488 * utils.h (demangler_vwarning): New declaration.
4489 (demangler_warning): Likewise.
4490 * utils.c (struct internal_problem)
4491 <user_settable_should_quit>: New field.
4492 <user_settable_should_dump_core>: Likewise
4493 (internal_error_problem): Add values for above new fields.
4494 (internal_warning_problem): Likewise.
4495 (demangler_warning_problem): New static global.
4496 (demangler_vwarning): New function.
4497 (demangler_warning): Likewise.
4498 (add_internal_problem_command): Selectively add commands.
4499 (_initialize_utils): New internal problem command.
4500 * maint.c (maintenance_demangler_warning): New function.
4501 (_initialize_maint_cmds): New command.
4502
17a40b44
TT
45032014-06-18 Tom Tromey <tromey@redhat.com>
4504
4505 * f-valprint.c (info_common_command_for_block): Update.
4506 * symtab.h (struct general_symbol_info) <common_block>: Now
4507 const.
4508
346d1dfe
TT
45092014-06-18 Tom Tromey <tromey@redhat.com>
4510
4511 * symtab.h (struct symtab) <blockvector>: Now const.
4512 * ada-lang.c (ada_add_global_exceptions): Update.
4513 * buildsym.c (augment_type_symtab): Update.
4514 * dwarf2read.c (dw2_lookup_symbol): Update.
4515 * jit.c (finalize_symtab): Update.
4516 * jv-lang.c (add_class_symtab_symbol): Update.
4517 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4518 Update.
4519 * objfiles.c (objfile_relocate1): Update.
4520 * psymtab.c (lookup_symbol_aux_psymtabs)
4521 (maintenance_check_psymtabs): Update.
4522 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4523 Update.
4524 * spu-tdep.c (spu_catch_start): Update.
4525 * symmisc.c (dump_symtab_1): Update.
4526 * symtab.c (lookup_global_symbol_from_objfile)
4527 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4528 (basic_lookup_transparent_type_quick)
4529 (basic_lookup_transparent_type, find_pc_sect_symtab)
4530 (find_pc_sect_line, search_symbols): Update.
4531 * block.c (find_block_in_blockvector): Make "bl" const.
4532 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4533 const.
4534 (blockvector_contains_pc): Make "bv" const.
4535 (block_for_pc_sect): Update.
4536 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4537 (blockvector_contains_pc): Update.
4538 * breakpoint.c (resolve_sal_pc): Update.
4539 * inline-frame.c (block_starting_point_at): Update.
4540
1834676b
TT
45412014-06-18 Tom Tromey <tromey@redhat.com>
4542
4543 * completer.c (complete_line): Make "line_buffer" const.
4544 * completer.h (complete_line): Update.
4545
ac1a991b
TT
45462014-06-18 Tom Tromey <tromey@redhat.com>
4547
4548 * symtab.c (add_macro_name): Remove unneeded cast.
4549
5bc98e52
TT
45502014-06-18 Tom Tromey <tromey@redhat.com>
4551
4552 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4553 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4554
8236def8
TT
45552014-06-18 Tom Tromey <tromey@redhat.com>
4556
4557 * probe.c (info_probes_for_ops): Make "arg" const.
4558 * probe.h (info_probes_for_ops): Update.
4559
3977b71f
TT
45602014-06-18 Tom Tromey <tromey@redhat.com>
4561
4562 * varobj.c (varobj_create): Update.
4563 * valops.c (value_of_this): Update.
4564 * tracepoint.c (add_local_symbols, scope_info): Update.
4565 * symtab.h (struct general_symbol_info) <block>: Now const.
4566 * symtab.c (skip_prologue_sal)
4567 (default_make_symbol_completion_list_break_on)
4568 (skip_prologue_using_sal): Update.
4569 * stack.h (iterate_over_block_locals)
4570 (iterate_over_block_local_vars): Update.
4571 * stack.c (print_frame_args): Update.
4572 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4573 parameter const.
4574 (get_selected_block): Make return type const.
4575 * python/py-frame.c (frapy_block): Update.
4576 * python/py-block.c (gdbpy_block_for_pc): Update.
4577 * p-exp.y (%union) <bval>: Now const.
4578 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4579 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4580 * m2-exp.y (%union) <bval>: Now const.
4581 * linespec.c (get_current_search_block): Make return type const.
4582 (create_sals_line_offset, find_label_symbols): Update.
4583 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4584 Update.
4585 (block_starting_point_at): Make "block" const.
4586 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4587 (check_exception_resume): Update.
4588 * guile/scm-frame.c (gdbscm_frame_block): Update.
4589 * guile/scm-block.c (gdbscm_lookup_block): Update.
4590 * frame.h (get_frame_block): Update.
4591 (get_selected_block): Make return type const.
4592 * frame.c (frame_id_inner): Update.
4593 * f-valprint.c (info_common_command_for_block)
4594 (info_common_command): Update.
4595 * dwarf2loc.c (dwarf2_find_location_expression)
4596 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4597 (locexpr_describe_location_piece): Update.
4598 * c-exp.y (%union) <bval>: Now const.
4599 * breakpoint.c (resolve_sal_pc): Update.
4600 * blockframe.c (get_frame_block):Make return type const.
4601 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4602 (block_innermost_frame): Update.
4603 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4604 (block_for_pc, block_for_pc_sect): Update.
4605 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4606 'pblock' const.
4607 (block_for_pc_sect, block_for_pc): Make return type const.
4608 * ax-gdb.c (gen_expr): Update.
4609 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4610 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4611 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4612 (ada_read_var_value): Update.
4613 * ada-exp.y (struct name_info) <block>: Now const.
4614 (%union): Likewise.
4615 (block_lookup): Constify.
4616
b9228891
GB
46172014-06-18 Gary Benson <gbenson@redhat.com>
4618
4619 * nat/i386-dregs.h: New file.
4620 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4621 * i386-nat.h (i386-dregs.h): New include.
4622 (DR_FIRSTADDR): Now in i386-dregs.h.
4623 (DR_LASTADDR): Likewise.
4624 (DR_NADDR): Likewise.
4625 (DR_STATUS): Likewise.
4626 (DR_CONTROL): Likewise.
4627 (i386_debug_reg_state): Likewise.
4628 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4629
a1aa2221
LM
46302014-06-18 Don Breazeal <donb@codesourcery.com>
4631
4632 * breakpoint.c (set_longjmp_breakpoint): Call
4633 momentary_breakpoint_from_master with additional argument.
4634 (set_longjmp_breakpoint_for_call_dummy): Call
4635 momentary_breakpoint_from_master with additional argument.
4636 (set_std_terminate_breakpoint): Call
4637 momentary_breakpoint_from_master with additional argument.
4638 (momentary_breakpoint_from_master): Add argument to function
4639 definition and use it to initialize structure member flag.
74228e77 4640 (clone_momentary_breakpoint): Call
a1aa2221
LM
4641 momentary_breakpoint_from_master with additional argument.
4642 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4643 member flags set in momentary_breakpoint_from_master.
4644
4be83cc2
GB
46452014-06-18 Gary Benson <gbenson@redhat.com>
4646
4647 * i386-nat.c (i386_show_dr): Renamed to
4648 i386_dr_show and made nonstatic. All uses updated.
4649 (i386_length_and_rw_bits): Renamed to
4650 i386_dr_length_and_rw_bits and made nonstatic.
4651 All uses updated.
4652 (i386_insert_aligned_watchpoint): Renamed to
4653 i386_dr_insert_aligned_watchpoint and made nonstatic.
4654 All uses updated.
4655 (i386_remove_aligned_watchpoint): Renamed to
4656 i386_dr_remove_aligned_watchpoint and made nonstatic.
4657 All uses updated.
4658 (i386_update_inferior_debug_regs): Renamed to
4659 i386_dr_update_inferior_debug_regs and made nonstatic.
4660 All uses updated.
4661
131aa0d4
GB
46622014-06-18 Gary Benson <gbenson@redhat.com>
4663
4664 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4665 (i386_dr_low_can_set_control): Likewise.
4666 (i386_dr_low_set_addr): Likewise.
4667 (i386_dr_low_set_control): Likewise.
4668 (i386_dr_low_get_addr): Likewise.
4669 (i386_dr_low_get_status): Likewise.
4670 (i386_dr_low_get_control): Likewise.
4671 (i386_insert_aligned_watchpoint): Use new macros.
4672 (i386_update_inferior_debug_regs): Likewise.
4673 (i386_stopped_data_address): Likewise.
4674
d9305f7f
GB
46752014-06-18 Gary Benson <gbenson@redhat.com>
4676
4677 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4678 New parameter. All uses updated.
4679
ea008da4
GB
46802014-06-18 Gary Benson <gbenson@redhat.com>
4681
4682 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4683 All uses updated.
4684
1b6d4134
GB
46852014-06-18 Gary Benson <gbenson@redhat.com>
4686
4687 * i386-nat.c (debug_printf): New macro.
4688 (i386_get_debug_register_length): Likewise.
4689 (TARGET_HAS_DR_LEN_8): Use above macro.
4690 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4691 and printf_unfiltered. Use phex to format values.
4692
9b4550ef
GB
46932014-06-18 Gary Benson <gbenson@redhat.com>
4694
4695 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4696 Make const.
4697
6e62758f
GB
46982014-06-18 Gary Benson <gbenson@redhat.com>
4699
4700 * i386-nat.c: Comment changes.
4701
51c79e94
GB
47022014-06-18 Gary Benson <gbenson@redhat.com>
4703
4704 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4705
3e11889a
GB
47062014-06-18 Gary Benson <gbenson@redhat.com>
4707
4708 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4709 (i386_insert_aligned_watchpoint): Likewise.
4710 (i386_remove_aligned_watchpoint): Likewise.
4711 (i386_handle_nonaligned_watchpoint): Likewise.
4712
fc6e2f03
GB
47132014-06-18 Gary Benson <gbenson@redhat.com>
4714
4715 * i386-nat.c: Whitespace changes.
4716
2afe7d50
SB
47172014-06-17 Samuel Bronson <naesten@gmail.com>
4718
4719 * MAINTAINERS: Update Roland McGrath's email address.
4720 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4721 Red Hat a while ago, and giving me a current address.
2afe7d50 4722
3bca49ee
TT
47232014-06-17 Tom Tromey <tromey@redhat.com>
4724
4725 * utils.h (savestring): Remove declaration.
4726
6e366df1
TT
47272014-06-17 Tom Tromey <tromey@redhat.com>
4728
4729 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4730
6be47f0c
KS
47312014-06-16 Keith Seitz <keiths@redhat.com>
4732
4733 PR mi/15863
4734 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4735 to update the varobj if inferior_ptid is null_ptid.
4736
7bc112c1
TT
47372014-06-16 Tom Tromey <tromey@redhat.com>
4738
4739 * target.h (struct target_ops) <to_info_proc>: Make parameter
4740 const.
4741 (target_info_proc): Update.
4742 * target.c (target_info_proc): Make "args" const.
4743 * procfs.c (procfs_info_proc): Update.
4744 * linux-tdep.c (linux_info_proc): Update.
4745 (linux_core_info_proc_mappings): Make "args" const.
4746 (linux_core_info_proc): Update.
4747 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4748 * gdbarch.c: Rebuild.
4749 * gdbarch.h: Rebuild.
4750 * corelow.c (core_info_proc): Update.
4751
fee354ee
TT
47522014-06-16 Tom Tromey <tromey@redhat.com>
4753
4754 * target.h (struct target_ops) <to_disconnect>: Make parameter
4755 const.
4756 (target_disconnect): Update.
4757 * target.c (target_disconnect): Make "args" const.
4758 * target-delegates.c: Rebuild.
4759 * remote.c (remote_disconnect): Update.
4760 * record.h (record_disconnect): Update.
4761 * record.c (record_disconnect): Update.
4762 * inf-child.c (inf_child_disconnect): Update.
4763
a30bf1f1
TT
47642014-06-16 Tom Tromey <tromey@redhat.com>
4765
4766 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4767 * target.c (debug_to_rcmd, default_rcmd): Update.
4768 * target-delegates.c: Rebuild.
4769 * remote.c (remote_rcmd): Update.
4770 * monitor.c (monitor_rcmd): Update.
4771
d03de421
PA
47722014-06-16 Pedro Alves <palves@redhat.com>
4773
4774 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4775 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4776 have OBJF_SHARED set.
4777 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4778 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4779 instead of OBJF_USERLOADED.
4780 * objfiles.h (OBJF_SHARED): Update comment.
4781 (userloaded_objfile_contains_address_p): Rename to ...
4782 (shared_objfile_contains_address_p): ... this, and update
4783 comments.
4784 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4785 new objfile.
4786 (remove_symbol_file_command): Skip objfiles that don't have
4787 OBJF_SHARED set.
4788
99f4262f
TT
47892014-06-16 Tom Tromey <tromey@redhat.com>
4790
4791 * minsyms.h (prim_record_minimal_symbol)
4792 (prim_record_minimal_symbol_and_info): Update comments.
4793
97d66cc6
EZ
47942014-06-14 Eli Zaretskii <eliz@gnu.org>
4795
4796 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4797 or --without-guile, according to how GDB was built.
4798
635c7e8a
TT
47992014-06-13 Tom Tromey <tromey@redhat.com>
4800
4801 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4802 to help_list.
4803 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4804 to help_list.
4805 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4806 help_list.
4807 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4808 help_list.Pass all_commands, not -1, to help_list.
4809 * cli/cli-dump.c (dump_command, append_command)
4810 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4811 (binary_dump_command, binary_append_command): Pass all_commands,
4812 not -1, to help_list.
4813 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4814 -1, to help_list.
4815 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4816 -1, to help_list.
4817 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4818 help_list.
4819 * top.c (set_history): Pass all_commands, not -1, to help_list.
4820 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4821 all_commands, not -1, to help_list.
4822 * symfile.c (overlay_command): Pass all_commands, not -1, to
4823 help_list.
4824 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4825 help_list.
4826 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4827 help_list.
4828 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4829 -1, to help_list.
4830 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4831 not -1, to help_list.
4832 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4833 not -1, to help_list.
4834 * maint.c (maintenance_command, maintenance_info_command)
4835 (maintenance_print_command, maintenance_set_cmd): Pass
4836 all_commands, not -1, to help_list.
4837 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4838 help_list.
4839 * language.c (set_check): Pass all_commands, not -1, to help_list.
4840 * infcmd.c (unset_command): Pass all_commands, not -1, to
4841 help_list.
4842 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4843 help_list.
4844 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4845 help_list.
4846 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4847 help_list.
4848 * breakpoint.c (save_command): Pass all_commands, not -1, to
4849 help_list.
4850 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4851 all_commands, not -1, to help_list.
4852
b94ade42
PL
48532014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4854
4855 * regcache.c (struct register_to_invalidate): New structure.
4856 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4857 functions.
4858 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4859
31f628ae
YQ
48602014-06-12 Yao Qi <yao@codesourcery.com>
4861
4862 * varobj.c (varobj_get_num_children): Call
4863 varobj_is_dynamic_p.
4864 (varobj_list_children): Likewise.
4865 (varobj_update): Likewise. Update comments.
4866
cde5ef40
YQ
48672014-06-12 Yao Qi <yao@codesourcery.com>
4868
4869 * varobj.c (varobj_pretty_printed_p): Rename to ...
4870 (varobj_is_dynamic_p): ... this. New function.
4871 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4872 (varobj_is_dynamic_p): Declare.
4873 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4874 (mi_print_value_p, varobj_update_one): Likewise.
4875
576ea091
YQ
48762014-06-12 Pedro Alves <pedro@codesourcery.com>
4877 Yao Qi <yao@codesourcery.com>
4878
4879 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4880 (varobj_get_iterator): Wrap up code for pretty-printer by
4881 "#if HAVE_PYTHON" and "#endif".
4882 (update_dynamic_varobj_children): Likewise.
4883
827f100c
YQ
48842014-06-12 Pedro Alves <pedro@codesourcery.com>
4885 Yao Qi <yao@codesourcery.com>
4886
4887 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4888 gdb_python_initialized is false. Move some code from varobj.c.
4889 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4890 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4891 (struct varobj_item): Moved to varobj-iter.h".
4892 (varobj_clear_saved_item): New function.
4893 (update_dynamic_varobj_children): Move python-related code to
4894 py-varobj.c.
4895 (free_variable): Call varobj_clear_saved_item and
4896 varobj_iter_delete.
4897
e5250216
YQ
48982014-06-12 Pedro Alves <pedro@codesourcery.com>
4899 Yao Qi <yao@codesourcery.com>
4900
4901 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4902 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4903 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4904 (py-varobj.o): New rule.
4905 * python/py-varobj.c: New file.
4906 * python/python-internal.h (py_varobj_get_iterator): Declare.
4907 * varobj-iter.h: New file.
4908 * varobj.c: Include "varobj-iter.h"
4909 (struct varobj) <child_iter>: Change its type from "PyObject *"
4910 to "struct varobj_iter *".
4911 <saved_item>: Likewise.
4912 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4913 [HAVE_PYTHON] (varobj_get_iterator): New function.
4914 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4915 python-specific code to python/py-varobj.c.
4916 (install_visualizer): Call varobj_iter_delete instead of
4917 Py_XDECREF.
4918 * varobj.h (varobj_ensure_python_env): Declare.
4919
5a2e0d6e
YQ
49202014-06-12 Yao Qi <yao@codesourcery.com>
4921
4922 * varobj.c (struct varobj_item): New structure.
4923 (create_child_with_value): Update declaration.
4924 (varobj_add_child): Replace arguments 'name' and 'value' with
4925 'item'. All callers updated.
4926 (install_dynamic_child): Likewise.
4927 (update_dynamic_varobj_children): Likewise.
4928 (varobj_add_child): Likewise.
4929 (create_child_with_value): Likewise.
4930
919b9a93
JB
49312014-06-11 Joel Brobecker <brobecker@adacore.com>
4932
4933 * NEWS: Create a new section for the next release branch.
4934 Rename the section of the current branch, now that it has
4935 been cut.
4936
71a55bdf
JB
49372014-06-11 Joel Brobecker <brobecker@adacore.com>
4938
4939 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4940 * version.in: Bump version to 7.8.50.DATE-cvs.
4941
364fe1f7
PA
49422014-06-11 Pedro Alves <palves@redhat.com>
4943
4944 PR remote/17028
4945 * ser-mingw.c (net_windows_socket_check_pending): New function.
4946 (net_windows_select_thread): Ignore spurious wakeups. Use
4947 net_windows_socket_check_pending.
4948 (net_windows_wait_handle): Check for pending events with
4949 ioctlsocket, through net_windows_socket_check_pending, instead of
4950 checking the socket's event.
4951
5a6c7709
SC
49522014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4953
4954 * python/python-internal.h (gdb_PyObject_GetAttrString)
4955 (gdb_PyObject_HasAttrString): New inline function definitions.
4956 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4957 char * of the second argument to PyObject_GetAttrString.
74228e77 4958
0e58ee40
JB
49592014-06-10 Joel Brobecker <brobecker@adacore.com>
4960
4961 * serial.c (serial_write): Fix index of character to be printed
4962 in call to serial_logchar when serial debug traces are enabled.
4963
d190df30
JB
49642014-06-10 Joel Brobecker <brobecker@adacore.com>
4965
4966 * gdbtypes (resolve_dynamic_range): Add function description.
4967
b4b01d36
PA
49682014-06-09 Pedro Alves <palves@redhat.com>
4969
4970 * linux-nat.c (linux_child_follow_fork): Initialize status with
4971 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4972 inner block. Only pass the signal to PTRACE_DETACH if in pass
4973 state.
4974
3657956b
GB
49752014-06-09 Gary Benson <gbenson@redhat.com>
4976
4977 * common/signals.c (gdb_signal_from_host): Reorder to separate
4978 the always-available ANSI-standard signals from the signals that
4979 require checking.
4980 (do_gdb_signal_to_host): Likewise.
4981 * proc-events.c (signal_table): Likewise.
4982
c077881a
HZ
49832014-06-08 Hui Zhu <hui@codesourcery.com>
4984
4985 * common/linux-ptrace.c (linux_disable_event_reporting): New
4986 function.
4987 * common/linux-ptrace.h (linux_disable_event_reporting): New
4988 declaration.
4989 * linux-nat.c (linux_child_follow_fork): Do a single step before
4990 detach.
4991
4186eb54
KS
49922014-06-07 Keith Seitz <keiths@redhat.com>
4993
4994 Revert:
4995 PR c++/16253
4996 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4997 from symbol_matches_domain in symtab.c. All local callers
4998 of symbol_matches_domain updated.
4999 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5000 search STRUCT_DOMAIN.
5001 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5002 independently. standard_lookup will do that automatically.
5003 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5004 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5005 (cp_lookup_symbol_in_namespace): Likewise.
5006 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5007 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5008 may return a STRUCT_DOMAIN match.
5009 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5010 * cp-support.c: Include language.h.
5011 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5012 VAR_DOMAIN.
5013 * psymtab.c (match_partial_symbol): Compare the requested
5014 domain with the symbol's domain directly.
5015 (lookup_partial_symbol): Likewise.
5016 * symtab.c (lookup_symbol_in_language): Explain when/why
5017 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5018 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5019 appropriate languages.
5020 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5021 and moved to ada-lang.c
5022 (lookup_block_symbol): Explain that this function only returns
5023 symbol matching the requested DOMAIN.
5024 Compare the requested domain with the symbol's domain directly.
5025 (iterate_over_symbols): Compare the requested domain with the
5026 symbol's domain directly.
5027 * symtab.h (symbol_matches_domain): Remove.
5028
25326a28 50292014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5030
5031 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5032 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5033 (gdbscm_guile_version_is_at_least): Declare.
5034 (gdbscm_scm_string_to_int): Declare.
5035 * guile/guile.c (gdbscm_guile_major_version): New global.
5036 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5037 (guile_datadir): New static global.
5038 (gdbscm_guile_data_directory): New function.
5039 (initialize_scheme_side): Update.
5040 (misc_guile_functions): Add guile-data-directory.
5041 (initialize_gdb_module): Fetch guile version number.
5042 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5043 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5044 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5045 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5046 comments.
5047 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5048 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5049 * guile/scm-value.c (gdbscm_value_to_string): Only call
5050 scm_port_conversion_strategy if Guile version >= 2.0.6.
5051
0a770bb2 50522014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5053
5054 * main.c (print_gdb_help): Add -q and --silent.
5055
73ba372c
GB
50562014-06-06 Gary Benson <gbenson@redhat.com>
5057
5058 * common/signals.c: Remove preprocessor conditionals for
5059 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5060 SIGSEGV and SIGTERM.
5061 * proc-events.c: Likewise.
5062
c33b2f12
MM
50632014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5064
5065 * symfile.c (symfile_free_objfile): Remove restriction to
5066 OBJF_USERLOADED.
5067 * symfile-mem.c (symbol_file_add_from_memory): Call
5068 add_target_sections_of_objfile.
5069
fb934770
LC
50702014-06-05 Ludovic Courtès <ludo@gnu.org>
5071
5072 * guile/scm-value.c (gdbscm_history_append_x): Use
5073 'vlscm_get_value_smob_arg_unsafe' instead of
5074 'vlscm_scm_to_value'.
5075
6ef284bd
SM
50762014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5077
5078 PR mi/15806
5079 * utils.c (printchar): Don't escape at all if quoter is NUL.
5080 Update function documentation to clarify effect of parameter
5081 QUOTER.
5082 * remote.c (escape_buffer): Pass '\\' as the quoter to
5083 fputstrn_unfiltered.
5084 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5085 generate the output.
5086 (mi_solib_unloaded): Same.
5087
270c9937
JB
50882014-06-05 Joel Brobecker <brobecker@adacore.com>
5089
5090 * development.sh: Delete.
5091 * Makefile.in (config.status): Adjust dependency on development.sh.
5092 * configure.ac: Adjust development.sh source call.
5093 * configure: Regenerate.
5094
16f691fb
DE
50952014-06-04 Doug Evans <xdje42@gmail.com>
5096
5097 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5098 is_scheme_bkpt, spec.
5099 (bpscm_make_breakpoint_smob): Initialize new members.
5100 (gdbscm_create_breakpoint_x): Split into two ...
5101 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5102 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5103 (scheme_function breakpoint_functions): Update.
5104 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5105 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5106 register-breakpoint!.
5107
ef7cab6b
JB
51082014-06-04 Joel Brobecker <brobecker@adacorer.com>
5109
5110 PR server/17023
5111 * mem-break.c (z_type_supported): Return zero if
5112 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5113
012370f6
TT
51142014-06-04 Tom Tromey <tromey@redhat.com>
5115
5116 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5117 value_from_contents_and_address_unresolved.
5118 (ada_template_to_fixed_record_type_1): Likewise.
5119 (ada_which_variant_applies): Likewise.
5120 * value.h (value_from_contents_and_address_unresolved): Declare.
5121 * value.c (value_from_contents_and_address_unresolved): New
5122 function.
5123 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5124 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5125 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5126
92e2a17f
TT
51272014-06-04 Tom Tromey <tromey@redhat.com>
5128
5129 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5130
c0939df1
TT
51312014-06-04 Tom Tromey <tromey@redhat.com>
5132
5133 * procfs.c (procfs_attach): Make "args" const.
5134 * windows-nat.c (windows_attach): Make "args" const.
5135 * nto-procfs.c (procfs_attach): Make "args" const.
5136 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5137 * go32-nat.c (go32_attach): Make "args" const.
5138 * gnu-nat.c (gnu_attach): Make "args" const.
5139 * darwin-nat.c (darwin_attach): Make "args" const.
5140 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5141 * linux-nat.c (linux_nat_attach): Make "args" const.
5142 * remote.c (extended_remote_attach_1, extended_remote_attach):
5143 Make "args" const.
5144 * target.h (struct target_ops) <to_attach>: Make "args" const.
5145 (find_default_attach): Likewise.
5146 * utils.c (parse_pid_to_attach): Make "args" const.
5147 * utils.h (parse_pid_to_attach): Update.
5148
8eaff7cd
TT
51492014-06-04 Tom Tromey <tromey@redhat.com>
5150
5151 * target-delegates.c: Rebuild.
5152 * target.c (default_thread_address_space): New function.
5153 (target_thread_address_space): Simplify.
5154 * target.h (struct target_ops) <to_thread_address_space>: Add
5155 TARGET_DEFAULT_FUNC.
5156
1913f160
DE
51572014-06-04 Doug Evans <xdje42@gmail.com>
5158
5159 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5160
70ad5bff
MM
51612014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5162
5163 * record-btrace.c: Include event-loop.h and inf-loop.h.
5164 (record_btrace_resume_exec_dir)
5165 (record_btrace_async_inferior_event_handler)
5166 (record_btrace_handle_async_inferior_event): New.
5167 (record_btrace_open): Create async event handler.
5168 (record_btrace_close): Delete async event handler.
5169 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5170 Mark async event handler.
5171 (record_btrace_execution_direction): New.
5172 (init_record_btrace_ops): Initialize to_execution_direction.
5173
b6210538
DE
51742014-06-03 Doug Evans <xdje42@gmail.com>
5175
5176 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5177 (gdbscm_make_parameter): Ditto.
5178
a5b1fd27
DE
51792014-06-03 Doug Evans <dje@google.com>
5180
5181 * exec.c (exec_close_1): Call clear_section_table instead of
5182 resize_section_table.
5183 (clear_section_table): New function.
5184 (resize_section_table): Make static. Rename arg num_added to
5185 adjustment.
5186 * exec.h (clear_section_table): Declare.
5187 (resize_section_table): Delete.
5188 * progspace.c (release_program_space): Call clear_section_table
5189 instead of resize_section_table.
5190
0c6e92a5
SC
51912014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5192
5193 * NEWS (Python Scripting): Add entry about the new xmethods
5194 feature.
5195
883964a7
SC
51962014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5197
5198 * python/py-xmethods.c: New file.
5199 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5200 (objfpy_dealloc): XDECREF on the new xmethods field.
5201 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5202 field.
5203 (objfpy_get_xmethods): New function.
5204 (objfile_getset): New entry 'xmethods'.
5205 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5206 (pspy_dealloc): XDECREF on the new xmethods field.
5207 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5208 field.
5209 (pspy_get_xmethods): New function.
5210 (pspace_getset): New entry 'xmethods'.
5211 * python/python-internal.h: Add declarations for new functions.
5212 * python/python.c (_initialize_python): Invoke
5213 gdbpy_initialize_xmethods.
5214 * python/lib/gdb/__init__.py (xmethods): New
5215 attribute.
5216 * python/lib/gdb/xmethod.py: New file.
5217 * python/lib/gdb/command/xmethods.py: New file.
5218
58992dc5
SC
52192014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5220
5221 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5222 best match method returned by find_overload_match is an xmethod.
5223 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5224 the best matching operator returned by find_overload_match is an
5225 xmethod.
5226 * valops.c: #include "extension.h".
5227 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5228 Return void. The list of matching source methods is returned in
5229 "fn_list" and a vector of matching debug method workers is
5230 returned in "xm_worker_vec". Update all callers.
5231 (value_find_oload_method_list): Likewise.
5232 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5233 non-NULL, then the index of the best matching method in this
5234 vector is returned. Update all callers.
5235 (find_overload_match): Include xmethods while performing overload
5236 resolution.
5237
e81e7f5e
SC
52382014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5239
5240 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5241 * extension-priv.h (struct extension_language_ops): Add the
5242 xmethod interface.
5243 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5244 get_matching_xmethod_workers, get_xmethod_argtypes,
5245 invoke_xmethod, free_xmethod_worker,
5246 free_xmethod_worker_vec): New functions.
5247 * extension.h: #include "common/vec.h".
5248 New function declarations.
5249 (struct xmethod_worker): New struct.
5250 (VEC (xmethod_worker_ptr)): New vector type.
5251 (xmethod_worker_ptr): New typedef.
5252 (xmethod_worker_vec): Likewise.
5253 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5254 builtin_type.
5255 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5256 (struct builtin_type): New field "xmethod".
5257 * valarith.c (value_ptradd): Assert that the value argument is not
5258 lval_xcallable.
5259 * valops.c (value_must_coerce_to_target): Return 0 for
5260 lval_xcallable values.
5261 * value.c (struct value): New field XM_WORKER in the field
5262 LOCATION.
5263 (value_address, value_raw_address): Return 0 for lval_xcallable
5264 values.
5265 (set_value_address): Assert that the value is not an
5266 lval_xcallable.
5267 (value_free): Free the associated xmethod worker when freeing
5268 lval_xcallable values.
5269 (set_value_component_location): Assert that the WHOLE value is not
5270 lval_xcallable.
5271 (value_of_xmethod, call_xmethod): New functions.
5272 * value.h: Declare "struct xmethod_worker".
5273 Declare new functions value_of_xmethod, call_xmethod.
5274
ef370185
JB
52752014-06-03 Joel Brobecker <brobecker@adacore.com>
5276 Pedro Alves <palves@redhat.com>
5277
5278 PR breakpoints/17000
5279 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5280 New function, extracted from software_breakpoint_inserted_here_p.
5281 (software_breakpoint_inserted_here_p): Replace factored out code
5282 by call to find_non_raw_software_breakpoint_inserted_here.
5283 (bp_target_info_copy_insertion_state): New function.
5284 (bkpt_insert_location): Handle the case of a single-step
5285 breakpoint already inserted at the same address.
5286 (bkpt_remove_location): Handle the case of a single-step
5287 breakpoint still inserted at the same address.
5288 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5289 breakpoint already inserted at the same address.
5290 (deprecated_remove_raw_breakpoint): Handle the case of a
5291 non-raw breakpoint still inserted at the same address.
5292 (find_single_step_breakpoint): New function, extracted from
5293 single_step_breakpoint_inserted_here_p.
5294 (find_single_step_breakpoint): New function,
5295 factored out from single_step_breakpoint_inserted_here_p.
5296 (single_step_breakpoint_inserted_here_p): Reimplement.
5297
1e2ccb61
BM
52982014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5299
5300 Pushed by Joel Brobecker <brobecker@adacore.com>
5301 * source.c (show_substitute_path_command): Fix display of matching
5302 substitution rules.
5303
d3448d85
GB
53042014-06-03 Gary Benson <gbenson@redhat.com>
5305
5306 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5307
06eb1586
DE
53082014-06-02 Doug Evans <xdje42@gmail.com>
5309
5310 Add parameter support for Guile.
5311 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5312 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5313 (scm-param.o): New rule.
5314 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5315 (gdbscm_misc_error): Declare.
5316 (gdbscm_canonicalize_command_name): Declare.
5317 (gdbscm_scm_to_host_string): Declare.
5318 (gdbscm_scm_from_host_string): Declare.
5319 (gdbscm_initialize_parameters): Declare.
5320 * guile/guile.c (initialize_gdb_module): Call
5321 gdbscm_initialize_parameters.
5322 * guile/lib/gdb.scm: Export parameter symbols.
5323 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5324 cmdscm_canonicalize_name and made public. All callers updated.
5325 * guile/scm-exception.c (gdbscm_misc_error): New function.
5326 * guile/scm-param.c: New file.
5327 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5328 (gdbscm_scm_to_host_string): New function.
5329 (gdbscm_scm_from_host_string): New function.
5330 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5331
e698b8c4
DE
53322014-06-02 Doug Evans <xdje42@gmail.com>
5333
5334 Add command support for Guile.
5335 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5336 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5337 (scm-cmd.o): New rule.
5338 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5339 (gdbscm_user_error_p): Declare.
5340 (gdbscm_parse_command_name): Declare.
5341 (gdbscm_valid_command_class_p): Declare.
5342 (gdbscm_initialize_commands): Declare.
5343 * guile/guile.c (initialize_gdb_module): Call
5344 gdbscm_initialize_commands.
5345 * guile/lib/gdb.scm: Export command symbols.
5346 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5347 (throw-user-error): New function.
5348 * guile/scm-cmd.c: New file.
5349 * guile/scm-exception.c (user_error_symbol): New static global.
5350 (gdbscm_user_error_p): New function.
5351 (gdbscm_initialize_exceptions): Set user_error_symbol.
5352 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5353
fb1f94b0
PM
53542014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5355
5356 * top.c (command_loop): Handle comments here...
5357 (command_line_input): ... not here.
5358
ded03782
DE
53592014-06-02 Doug Evans <xdje42@gmail.com>
5360
5361 Add progspace support for Guile.
5362 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5363 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5364 (scm-progspace.o): New rule.
5365 * guile/guile-internal.h (pspace_smob): New typedef.
5366 (psscm_pspace_smob_pretty_printers): Declare.
5367 (psscm_pspace_smob_from_pspace): Declare.
5368 (psscm_scm_from_pspace): Declare.
5369 * guile/guile.c (initialize_gdb_module): Call
5370 gdbscm_initialize_pspaces.
5371 * guile/lib/gdb.scm: Export progspace symbols.
5372 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5373 support.
5374 (append-pretty-printer!): Ditto.
5375 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5376 Implement.
5377 * guile/scm-progspace.c: New file.
5378
397998fc
AM
53792014-06-03 Alan Modra <amodra@gmail.com>
5380
5381 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5382 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5383
6aa5f3a6
DE
53842014-06-02 Doug Evans <dje@google.com>
5385
5386 Add support for skeletonless type units.
5387 * dwarf2read.c (struct dwarf2_per_objfile): New member
5388 n_allocated_type_units.
5389 (struct dwarf2_per_objfile) <tu_stats>: New member
5390 nr_all_type_units_reallocs.
5391 (create_signatured_type_table_from_index): Initialize
5392 n_allocated_type_units
5393 (create_all_type_units): Ditto.
5394 (add_type_unit): Move up in file. New arg slot.
5395 All callers updated. Increase space for all_type_units more
5396 efficiently.
5397 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5398 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5399 (lookup_dwp_signatured_type): Ditto.
5400 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5401 All callers updated.
5402 (build_type_psymtabs_1): Leave type_unit_groups as
5403 NULL if no TUs present.
5404 (print_tu_stats): New function.
5405 (process_skeletonless_type_unit): New function.
5406 (process_dwo_file_for_skeletonless_type_units): New
5407 function.
5408 (process_skeletonless_type_units): New function.
5409 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5410 Call print tu_stats if debugging enabled.
5411
41fac0cf
PA
54122014-06-02 Pedro Alves <palves@redhat.com>
5413
5414 * breakpoint.c (build_target_command_list): Don't build a command
5415 list if we have any duplicate location that isn't a dprintf.
5416
cd1608cc
PA
54172014-06-02 Pedro Alves <palves@redhat.com>
5418
5419 * breakpoint.c (dprintf_breakpoint_hit): New function.
5420 (initialize_breakpoint_ops): Install it as dprintf's
5421 breakpoint_hit method.
5422
486ef3b9
JB
54232014-06-02 Joel Brobecker <brobecker@adacore.com>
5424
5425 * source.c (substitute_path_rule_matches): Simplify using
5426 filename_ncmp instead of FILENAME_CMP.
5427
230cd560
JB
54282014-06-02 Joel Brobecker <brobecker@adacore.com>
5429
5430 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5431
16954d5d
LC
54322014-06-01 Ludovic Courtès <ludo@gnu.org>
5433
5434 * configure.ac: When Guile is available, check for the
5435 availability of 'scm_new_smob'.
5436 * configure, config.h.in: Regenerate.
5437 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5438 function.
5439
53e8a631
AB
54402014-05-30 Andrew Burgess <aburgess@broadcom.com>
5441
5442 * frame.c (struct frame_info): Add stop_string field.
5443 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5444 (get_prev_frame_always): Old content moved into
5445 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5446 TRY_CATCH, handle MEMORY_ERROR exceptions.
5447 (frame_stop_reason_string): New function definition.
5448 * frame.h (unwind_stop_reason_to_string): Extend comment to
5449 mention frame_stop_reason_string.
5450 (frame_stop_reason_string): New function declaration.
5451 * stack.c (frame_info): Switch to frame_stop_reason_string.
5452 (backtrace_command_1): Switch to frame_stop_reason_string.
5453 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5454 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5455 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5456
70e38b8e
AB
54572014-05-30 Andrew Burgess <aburgess@broadcom.com>
5458
5459 * frame.c (frame_stop_reason_string): Rename to ...
5460 (unwind_stop_reason_to_string): this.
5461 * frame.h (frame_stop_reason_string): Rename to ...
5462 (unwind_stop_reason_to_string): this.
5463 * stack.c (frame_info): Update call to frame_stop_reason_string.
5464 (backtrace_command_1): Likewise.
5465 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5466 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5467
938f0e2f
AB
54682014-05-30 Andrew Burgess <aburgess@broadcom.com>
5469
5470 * frame.c (remove_prev_frame): New function.
5471 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5472 remove_prev_frame.
5473
a09dd441
PA
54742014-05-29 Pedro Alves <palves@redhat.com>
5475
5476 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5477 and make it const. When a single-step decays to a continue,
5478 clear 'step', not 'hw_step'. Pass whether the caller wanted
5479 to step to user_visible_resume_ptid, not what we ask the
5480 target to do.
5481
bdc36728
PA
54822014-05-29 Pedro Alves <palves@redhat.com>
5483
5484 * infrun.c (process_event_stop_test, handle_step_into_function)
5485 (handle_step_into_function_backward): Adjust.
5486 Don't set the even thread's stop_step and call stop_waiting before
5487 calling end_stepping_range. Instead do that ...
5488 (end_stepping_range): ... here. Take an ecs pointer parameter.
5489
22bcd14b
PA
54902014-05-29 Pedro Alves <palves@redhat.com>
5491
5492 * infrun.c (stop_stepping): Rename to ...
5493 (stop_waiting): ... this.
5494 (proceed): Update comment.
5495 (process_event_stop_test, handle_inferior_event)
5496 (handle_signal_stop, handle_step_into_function)
5497 (handle_step_into_function_backward): Update.
5498
4ae57c05
PA
54992014-05-29 Pedro Alves <palves@redhat.com>
5500
5501 * infcall.c (run_inferior_call): Don't check whether the current
5502 thread is running after the proceed call.
5503
329ea579
PA
55042014-05-29 Pedro Alves <palves@redhat.com>
5505 Tom Tromey <tromey@redhat.com>
5506
5507 * NEWS: Mention "maint set target-async", "set mi-async", and that
5508 background execution commands are now always available.
5509 * target.h (target_async_permitted): Update comment.
5510 * target.c (target_async_permitted, target_async_permitted_1):
5511 Default to 1.
5512 (set_target_async_command): Rename to ...
5513 (maint_set_target_async_command): ... this.
5514 (show_target_async_command): Rename to ...
5515 (maint_show_target_async_command): ... this.
5516 (_initialize_target): Adjust.
5517 * infcmd.c (prepare_execution_command): Make extern.
5518 * inferior.h (prepare_execution_command): Declare.
5519 * infrun.c (set_observer_mode): Leave target async alone.
5520 * mi/mi-interp.c (mi_interpreter_init): Install
5521 mi_on_sync_execution_done as sync_execution_done observer.
5522 (mi_on_sync_execution_done): New function.
5523 (mi_execute_command_input_handler): Don't print the prompt if we
5524 just started a synchronous command with an async target.
5525 (mi_on_resume): Check sync_execution before printing prompt.
5526 * mi/mi-main.h (mi_async_p): Declare.
5527 * mi/mi-main.c: Include gdbcmd.h.
5528 (mi_async_p): New function.
5529 (mi_async, mi_async_1): New globals.
5530 (set_mi_async_command, show_mi_async_command, mi_async): New
5531 functions.
5532 (exec_continue): Call prepare_execution_command.
5533 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5534 (mi_execute_async_cli_command): Use mi_async_p.
5535 (_initialize_mi_main): Install "set mi-async". Make
5536 "target-async" a deprecated alias.
5537
92bcb5f9
PA
55382014-05-29 Pedro Alves <palves@redhat.com>
5539
5540 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5541 (_initialize_cli_interp): Adjust.
5542 * event-loop.c: Include "observer.h".
5543 (start_event_loop): Notify 'command_error' observers instead of
5544 calling display_gdb_prompt. Remove FIXME comment.
5545 * event-top.c (display_gdb_prompt): Remove call into the
5546 interpreters.
5547 * inf-loop.c: Include "observer.h".
5548 (inferior_event_handler): Notify 'command_error' observers instead
5549 of calling display_gdb_prompt.
5550 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5551 observers instead of calling display_gdb_prompt.
5552 * interps.c (interp_set): Don't call display_gdb_prompt.
5553 (current_interp_display_prompt_p): Delete.
5554 * interps.h (interp_prompt_p): Delete declaration.
5555 (interp_prompt_p_ftype): Delete.
5556 (struct interp_procs) <prompt_proc_p>: Delete field.
5557 (current_interp_display_prompt_p): Delete declaration.
5558 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5559 (_initialize_mi_interp): Adjust.
5560 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5561 'command_error' observers.
5562 (tui_on_sync_execution_done, tui_on_command_error): New
5563 functions.
5564 (tui_display_prompt_p): Delete.
5565 (_initialize_tui_interp): Adjust.
5566
fd664c91
PA
55672014-05-29 Pedro Alves <palves@redhat.com>
5568
5569 PR gdb/13860
5570 * cli/cli-interp.c: Include infrun.h and observer.h.
5571 (cli_uiout, cli_interp): New globals.
5572 (cli_on_signal_received, cli_on_end_stepping_range)
5573 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5574 functions.
5575 (cli_interpreter_init): Install them as 'end_stepping_range',
5576 'signal_received' 'signal_exited', 'exited' and 'no_history'
5577 observers.
5578 (_initialize_cli_interp): Remove cli_interp local.
5579 * infrun.c (handle_inferior_event): Call the several stop reason
5580 observers instead of printing the stop reason directly.
5581 (end_stepping_range): New function.
5582 (print_end_stepping_range_reason, print_signal_exited_reason)
5583 (print_exited_reason, print_signal_received_reason)
5584 (print_no_history_reason): Make static, and add an uiout
5585 parameter. Print to that instead of to CURRENT_UIOUT.
5586 * infrun.h (print_end_stepping_range_reason)
5587 (print_signal_exited_reason, print_exited_reason)
5588 (print_signal_received_reason print_no_history_reason): New
5589 declarations.
5590 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5591 'mi_uiout'.
5592 <cli_uiout>: New field.
5593 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5594 uiout for CLI output. Install 'signal_received',
5595 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5596 observers.
5597 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5598 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5599 (mi_on_no_history): New functions.
5600 (ui_out_free_cleanup): Delete function.
5601 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5602 instead use the one already stored in the MI interpreter data.
5603 (mi_ui_out): Adjust.
5604 * tui/tui-interp.c: Include infrun.h and observer.h.
5605 (tui_interp): New global.
5606 (tui_on_signal_received, tui_on_end_stepping_range)
5607 (tui_on_signal_exited, tui_on_exited)
5608 (tui_on_no_history): New functions.
5609 (tui_init): Install them as 'end_stepping_range',
5610 'signal_received' 'signal_exited', 'exited' and 'no_history'
5611 observers.
5612 (_initialize_tui_interp): Delete tui_interp local.
5613
8817a6f2
PA
56142014-05-29 Pedro Alves <palves@redhat.com>
5615
5616 PR gdb/15713
5617 * linux-nat.c (linux_nat_resume_callback): Rename the second
5618 parameter to 'except'. Skip LP if it points to EXCEPT.
5619 (linux_nat_resume): Don't mark the event lwp as not stopped
5620 before resuming sibling lwps. Instead ask
5621 linux_nat_resume_callback to skip the event lwp. Mark it as not
5622 stopped after actually resuming it.
5623 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5624 resuming it.
5625 (wait_lwp): Mark the lwp as stopped here.
5626 (stop_wait_callback): Mark the lwp as not stopped right after
5627 resuming it. Don't mark lwps as stopped here.
5628 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5629 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5630
251bde03
PA
56312014-05-29 Pedro Alves <palves@redhat.com>
5632
5633 PR PR15693
5634 * infrun.c (resume): Determine how much to resume depending on
5635 whether the caller wanted a step, not whether we can hardware step
5636 the target. Mark all threads that we intend to run as running,
5637 unless we're calling an inferior function.
5638 (normal_stop): If the thread is running an infcall, don't finish
5639 thread state.
5640 * target.c (target_resume): Don't mark threads as running here.
5641
7f3c0343
JB
56422014-05-28 Joel Brobecker <brobecker@adacore.com>
5643
5644 * serial.c (_initialize_serial): Remove support for
5645 the "set remotebaud" and "show remotebaud" commands.
5646 * NEWS: Add entry documenting the removal of that command.
5647
ee34b3f9
YQ
56482014-05-28 Yao Qi <yao@codesourcery.com>
5649
5650 * charset.c: Fix typo in comments.
5651
add6c04d
GB
56522014-05-27 Gary Benson <gbenson@redhat.com>
5653
5654 * utils.c (internal_vproblem): Prompt for a bug report.
5655
92c48fc5
AW
56562014-05-26 Andy Wingo <wingo@igalia.com>
5657
5658 * guile/scm-arch.c (arscm_mark_arch_smob):
5659 * guile/scm-block.c (bkscm_mark_block_smob)
5660 (bkscm_mark_block_syms_progress_smob):
5661 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5662 * guile/scm-exception.c (exscm_mark_exception_smob):
5663 * guile/scm-frame.c (frscm_mark_frame_smob):
5664 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5665 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5666 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5667 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5668 (ppscm_mark_pretty_printer_worker_smob):
5669 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5670 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5671 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5672 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5673 mark functions.
5674 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5675 function.
5676
b2715b27
AW
56772014-05-26 Andy Wingo <wingo@igalia.com>
5678 Doug Evans <xdje42@gmail.com>
5679
5680 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5681 empty_base_class. All uses updated.
5682 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5683 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5684 Adapt all callers.
5685 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5686 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5687 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5688 (gdbscm_gsmob_has_property_p, add_property_name)
5689 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5690 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5691 (gdb-object-has-property?, gdb-object-properties): Remove.
5692 (gdb-object-kind): Renamed from gsmob-kind.
5693
214ab2da
AW
56942014-05-26 Andy Wingo <wingo@igalia.com>
5695
5696 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5697 * configure: Regenerate.
5698
589fdceb
MM
56992014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5700
5701 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5702
67b5c0c1
MM
57032014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5704
5705 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5706 (replay_memory_access_read_only, replay_memory_access_read_write)
5707 (replay_memory_access_types, replay_memory_access)
5708 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5709 (cmd_set_record_btrace, cmd_show_record_btrace)
5710 (cmd_show_replay_memory_access): New.
5711 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5712 (record_btrace_remove_breakpoint): Replace
5713 record_btrace_allow_memory_access with replay_memory_access.
5714 (_initialize_record_btrace): Add commands.
5715 * NEWS: Announce it.
5716
036cd381
RR
57172014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5718
5719 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5720
c77c1e42
RR
57212014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5722
5723 * MAINTAINERS (Write After Approval): Move self back from
5724 paper trail.
5725
45741a9c
PA
57262014-05-22 Pedro Alves <palves@redhat.com>
5727
5728 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5729 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5730 (disable_randomization, enum exec_direction_kind)
5731 (execution_direction, stop_registers, start_remote)
5732 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5733 (wait_for_inferior, normal_stop, get_last_target_status)
5734 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5735 (insert_step_resume_breakpoint_at_sal)
5736 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5737 (set_step_info, print_stop_event, signal_stop_state)
5738 (signal_print_state, signal_pass_state, signal_stop_update)
5739 (signal_print_update, signal_pass_update)
5740 (update_signals_program_target, clear_exit_convenience_vars)
5741 (displaced_step_dump_bytes, update_observer_mode)
5742 (signal_catch_update, gdb_signal_from_command): Move
5743 declarations ...
5744 * infrun.h: ... to this new file.
5745 * amd64-tdep.c: Include infrun.h.
5746 * annotate.c: Include infrun.h.
5747 * arch-utils.c: Include infrun.h.
5748 * arm-linux-tdep.c: Include infrun.h.
5749 * arm-tdep.c: Include infrun.h.
5750 * break-catch-sig.c: Include infrun.h.
5751 * breakpoint.c: Include infrun.h.
5752 * common/agent.c: Include infrun.h instead of inferior.h.
5753 * corelow.c: Include infrun.h.
5754 * event-top.c: Include infrun.h.
5755 * go32-nat.c: Include infrun.h.
5756 * i386-tdep.c: Include infrun.h.
5757 * inf-loop.c: Include infrun.h.
5758 * infcall.c: Include infrun.h.
5759 * infcmd.c: Include infrun.h.
5760 * infrun.c: Include infrun.h.
5761 * linux-fork.c: Include infrun.h.
5762 * linux-nat.c: Include infrun.h.
5763 * linux-thread-db.c: Include infrun.h.
5764 * monitor.c: Include infrun.h.
5765 * nto-tdep.c: Include infrun.h.
5766 * procfs.c: Include infrun.h.
5767 * record-btrace.c: Include infrun.h.
5768 * record-full.c: Include infrun.h.
5769 * remote-m32r-sdi.c: Include infrun.h.
5770 * remote-mips.c: Include infrun.h.
5771 * remote-notif.c: Include infrun.h.
5772 * remote-sim.c: Include infrun.h.
5773 * remote.c: Include infrun.h.
5774 * reverse.c: Include infrun.h.
5775 * rs6000-tdep.c: Include infrun.h.
5776 * s390-linux-tdep.c: Include infrun.h.
5777 * solib-irix.c: Include infrun.h.
5778 * solib-osf.c: Include infrun.h.
5779 * solib-svr4.c: Include infrun.h.
5780 * target.c: Include infrun.h.
5781 * top.c: Include infrun.h.
5782 * windows-nat.c: Include infrun.h.
5783 * mi/mi-interp.c: Include infrun.h.
5784 * mi/mi-main.c: Include infrun.h.
5785 * python/py-threadevent.c: Include infrun.h.
5786
98eb56a4
PA
57872014-05-22 Pedro Alves <palves@redhat.com>
5788
5789 * infrun.c (handle_inferior_event): Store the exit code for
5790 --return-child-result here, instead of ...
5791 (print_exited_reason): ... here.
5792
17b2616c
PA
57932014-05-21 Pedro Alves <palves@redhat.com>
5794
5795 PR gdb/13860
5796 * gdbthread.h (struct thread_control_state): New field
5797 `command_interp'.
5798 * infrun.c (follow_fork): Copy the new thread control field to the
5799 child fork thread.
5800 (clear_proceed_status_thread): Clear the new thread control field.
5801 (proceed): Set the new thread control field.
5802 * interps.h (command_interp): Declare.
5803 * interps.c (command_interpreter): New global.
5804 (command_interp): New function.
5805 (interp_exec): Set `command_interpreter' while here.
5806 * cli-out.c (cli_uiout_dtor): New function.
5807 (cli_ui_out_impl): Install it.
5808 * mi/mi-interp.c: Include cli-out.h.
5809 (mi_cmd_interpreter_exec): Add comment.
5810 (restore_current_uiout_cleanup): New function.
5811 (ui_out_free_cleanup): New function.
5812 (mi_on_normal_stop): If finishing an execution command started by
5813 a CLI command, or any kind of breakpoint-like event triggered,
5814 print the stop event to the output (CLI) stream.
5815 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5816
5166082f
PA
58172014-05-21 Pedro Alves <palves@redhat.com>
5818
5819 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5820 current source line having changed.
5821 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5822 * infrun.c (normal_stop): Adjust call to
5823 set_current_sal_from_frame.
5824 * source.c (clear_lines_listed_range): New function.
5825 (set_current_source_symtab_and_line, identify_source_line): Clear
5826 the lines listed range.
5827 (line_info): Handle the first "info line" after the current source
5828 line having changed.
5829 * stack.c (print_stack_frame): Remove center handling.
5830 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5831 center sal.line.
5832
c1ee2fb3
PA
58332014-05-21 Pedro Alves <palves@redhat.com>
5834
5835 * inf-child.c (inf_child_mourn_inferior): New function.
5836 * inf-child.h (inf_child_mourn_inferior): New declaration.
5837 * darwin-nat.c (darwin_mourn_inferior): Use
5838 inf_child_mourn_inferior.
5839 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5840 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5841 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5842 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5843 * windows-nat.c (windows_mourn_inferior): Likewise.
5844
5c6d4fb2
DE
58452014-05-21 Doug Evans <xdje42@gmail.com>
5846
250748cb 5847 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5848
4a2722c5
DE
58492014-05-21 Doug Evans <xdje42@gmail.com>
5850
17292b30 5851 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5852 (gdbscm_out_of_range_error): Ditto.
5853 (gdbscm_memory_error): Ditto.
250748cb
DE
5854 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5855 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5856 (gdbscm_out_of_range_error): Update.
5857 (gdbscm_memory_error): Update.
5858 (gdbscm_scm_to_target_string_unsafe): Delete.
5859
6a3cb8e8
PA
58602014-05-21 Pedro Alves <palves@redhat.com>
5861
5862 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5863 globals.
5864 (inf_child_open_target): New function.
5865 (inf_child_open): Use inf_child_open_target to push the target
5866 instead of erroring out.
5867 (inf_child_disconnect, inf_child_close)
5868 (inf_child_maybe_unpush_target): New functions.
5869 (inf_child_target): Install inf_child_disconnect and
5870 inf_child_close. Store a pointer to the returned object.
5871 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5872 declarations.
5873 * target.c (auto_connect_native_target): New global.
5874 (show_default_run_target): New function.
5875 (find_default_run_target): Return NULL if automatically connecting
5876 to the native target is disabled.
5877 (_initialize_target): Install set/show auto-connect-native-target.
5878 * NEWS: Mention "set auto-connect-native-target", and "target
5879 native".
5880 * linux-nat.c (super_close): New global.
5881 (linux_nat_close): Call super_close.
5882 (linux_nat_add_target): Store a pointer to the base class's
5883 to_close method.
5884 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5885 inf_child_maybe_unpush.
5886 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5887 already pushed.
5888 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5889 the inferior. Use inf_child_maybe_unpush_target.
5890 (inf_ttrace_attach): Don't push the target if it is already
5891 pushed.
5892 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5893 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5894 after mourning the inferior. Use inf_child_maybe_unpush_target.
5895 (darwin_attach_pid): Don't push the target if it is already
5896 pushed.
5897 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5898 mourning the inferior. Use inf_child_maybe_unpush_target.
5899 (gnu_detach): Use inf_child_maybe_unpush_target.
5900 * go32-nat.c (go32_create_inferior): Don't push the target if it
5901 is already pushed.
5902 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5903 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5904 (procfs_open): Rename to ...
5905 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5906 comments. Can target_preopen before changing node. Call
5907 inf_child_open_target to push the target explicitly.
5908 (procfs_attach): Don't push the target if it is already pushed.
5909 (procfs_detach): Use inf_child_maybe_unpush_target.
5910 (procfs_create_inferior): Don't push the target if it is already
5911 pushed.
5912 (nto_native_ops): New global.
5913 (procfs_open): Reimplement.
5914 (procfs_native_open): New function.
5915 (init_procfs_targets): Install procfs_native_open as to_open of
5916 "target native". Store a pointer to the "native" target in
5917 nto_native_ops.
5918 * procfs.c (procfs_attach): Don't push the target if it is already
5919 pushed.
5920 (procfs_detach): Use inf_child_maybe_unpush_target.
5921 (procfs_mourn_inferior): Only unpush the target after mourning the
5922 inferior. Use inf_child_maybe_unpush_target.
5923 (procfs_init_inferior): Don't push the target if it is already
5924 pushed.
5925 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5926 if it is already pushed.
5927
930ee1b1
PA
59282014-05-21 Pedro Alves <palves@redhat.com>
5929
5930 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5931 and "procfs" targets are now called "native" instead.
5932
1f5d1b13
PA
59332014-05-21 Pedro Alves <palves@redhat.com>
5934
5935 * go32-nat.c (go32_open): Delete.
5936 (go32_target): Don't override the to_open method.
5937
132f8e03
PA
59382014-05-21 Pedro Alves <palves@redhat.com>
5939
5940 * nto-procfs.c (procfs_can_run): New function.
5941 (nto_procfs_ops): New global.
5942 (init_procfs_targets): New, based on procfs_target. Install
5943 "target native" in addition to "target procfs".
5944 (_initialize_procfs): Call init_procfs_targets instead of adding
5945 the target here.
5946
03c136c3
PA
59472014-05-21 Pedro Alves <palves@redhat.com>
5948
5949 * windows-nat.c (windows_target): Don't override to_shortname,
5950 to_longname or to_doc.
5951
a635d0f3
PA
59522014-05-21 Pedro Alves <palves@redhat.com>
5953
5954 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5955 to_doc.
5956
4f9b5133
PA
59572014-05-21 Pedro Alves <palves@redhat.com>
5958
5959 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5960 to_shortname, to_longname or to_doc.
5961
bc85afde
PA
59622014-05-21 Pedro Alves <palves@redhat.com>
5963
5964 * go32-nat.c (go32_target): Don't override to_shortname,
5965 to_longname or to_doc.
5966
4ebfc96e
PA
59672014-05-21 Pedro Alves <palves@redhat.com>
5968
5969 * inf-child.c (inf_child_open): Remove mention of "child".
5970 (inf_child_target): Rename target to "native" instead of "child".
5971
2648dfed
AA
59722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5973
5974 * Makefile.in (SFILES): Delete "regset.c".
5975 (COMMON_OBS): Delete "regset.o".
5976 * regset.c: Remove.
5977 * regset.h (regset_alloc): Delete prototype.
5978
b13feb94
AA
59792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5980
5981 * sparc-linux-tdep.c (sparc32_linux_gregset)
5982 (sparc32_linux_fpregset): New static regset structures.
5983 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5984 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5985 'fpregset' fields.
5986 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5987 (sparc64_linux_fpregset): New static regset structures.
5988 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5989 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5990 New static regset structures.
5991 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5992 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5993 New static regset structures.
5994 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5995 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5996 New static regset structures.
5997 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5998 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5999 New static regset structures.
6000 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6001
b4fd25c9
AA
60022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6003
6004 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6005 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6006 register maps ("regmaps") from "*regset" to "*regmap". Do this
6007 for all regmap types and variables.
6008 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6009 (sparc32_linux_supply_core_gregset)
6010 (sparc32_linux_collect_core_gregset)
6011 (sparc32_linux_supply_core_fpregset)
6012 (sparc32_linux_collect_core_fpregset): Likewise.
6013 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6014 (sparc_gregmap, sparc_fpregmap): ... these.
6015 (sparc_supply_gregset, sparc_collect_gregset)
6016 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6017 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6018 (_initialize_sparc_nat): Rename regmaps.
6019 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6020 (sparc_gregmap, sparc_fpregmap): ... these.
6021 (sparc_supply_gregset, sparc_collect_gregset)
6022 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6023 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6024 Rename macros to...
6025 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6026 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6027 Likewise.
6028 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6029 Rename to...
6030 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6031 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6032 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6033 regmaps.
6034 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6035 (sparc32_bsd_fpregset): Rename to...
6036 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6037 (sparc32_bsd_fpregmap): ... these.
6038 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6039 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6040 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6041 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6042 (struct sparc_gregmap, struct sparc_fpregmap)
6043 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6044 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6045 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6046 (sparc32_supply_regset, sparc32_collect_gregset)
6047 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6048 prototypes.
6049 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6050 (sparc64_linux_ptrace_gregmap): ... this.
6051 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6052 (_initialize_sparc64_linux_nat): Rename regmaps.
6053 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6054 (sparc64_linux_core_gregmap): ... this.
6055 (sparc64_linux_supply_core_gregset)
6056 (sparc64_linux_collect_core_gregset)
6057 (sparc64_linux_supply_core_fpregset)
6058 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6059 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6060 (sparc64_sol2_fpregset): Rename to...
6061 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6062 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6063 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6064 regmaps.
6065 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6066 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6067 (sparc64_bsd_fpregset): Rename to...
6068 (struct sparc_gregmap, sparc64_sol2_gregmap)
6069 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6070 (sparc64_bsd_fpregmap): ... these.
6071 (sparc64_supply_gregset, sparc64_collect_gregset)
6072 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6073 prototypes.
6074 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6075 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6076 (sparc64fbsd_gregmap): ... this.
6077 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6078 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6079 Rename regmaps.
6080 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6081 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6082 (sparc64nbsd_collect_fpregset): Likewise.
6083 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6084 (sparc64nbsd_gregmap): ... this.
6085 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6086 regmaps.
6087 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6088 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6089 (sparc64obsd_gregmap): ... this.
6090 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6091 regmaps.
6092 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6093 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6094 (sparc32nbsd_gregmap): ... this.
6095 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6096 regmaps.
6097
8fea3224
AA
60982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6099
6100 * score-tdep.c (score7_linux_gregset): New static regset
6101 structure.
6102 (score7_linux_regset_from_core_section): Remove dynamic regset
6103 allocation.
6104 (score_gdbarch_init): Drop allocation of tdep structure.
6105 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6106
24534243
AA
61072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6108
6109 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6110 regset structures.
6111 (am33_regset_from_core_section): Remove dynamic regset
6112 allocations.
6113
b7195f27
AA
61142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6115
6116 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6117 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6118 structures.
6119 (mips_linux_regset_from_core_section): Remove dynamic regset
6120 allocations.
6121 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6122 'gregset64', 'fpregset', and 'fpregset64'.
6123 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6124 deleted tdep fields.
6125
ecc37a5a
AA
61262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6127
6128 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6129 regset structures.
6130 (amd64_regset_from_core_section): Remove dynamic regset
6131 allocations.
6132 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6133 structure.
6134 (amd64obsd_regset_from_core_section): Remove dynamic regset
6135 allocation.
6136 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6137 Likewise.
6138 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6139 x86-common regset supply function.
6140 * i386-tdep.c (i386_collect_gregset): Make static.
6141 (i386_gregset): New global regset structure.
6142 (i386_fpregset, i386_xstateregset): New static regset structures.
6143 (i386_regset_from_core_section): Remove dynamic regset
6144 allocations.
6145 (i386_gdbarch_init): Remove initialization of tdep fields
6146 'gregset', 'fpregset', and 'xstateregset'.
6147 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6148 'fpregset', and 'xstateregset'.
6149 (i386_collect_gregset): Remove prototype.
6150 (i386_gregset): New declaration.
6151 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6152 structure.
6153 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6154 allocation.
6155
b7611c43
AA
61562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6157
6158 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6159 (arm_linux_vfpregset): New static regset structures.
6160 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6161 regset structures.
6162 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6163 and 'vfpregset' fields.
6164
a069a2bd
AA
61652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6166
6167 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6168 (aarch64_linux_fpregset): New static regset structures.
6169 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6170 of regset structures.
6171 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6172 'fpregset' fields.
6173
09424cff
AA
61742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6175
6176 * regset.h (struct regset): Remove gdbarch field.
6177 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6178 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6179 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6180 Likewise.
6181 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6182 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6183 (ppc32_linux_vsxregset): Likewise.
6184 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6185 via the regcache instead of the regset.
6186 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6187 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6188 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6189 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6190 Likewise.
6191
3ca7dae4
AA
61922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6193
6194 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6195 Constify structures.
6196 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6197 (alphanbsd_aout_gregset): Likewise.
6198 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6199 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6200 Likewise.
6201 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6202 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6203 Likewise.
6204 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6205 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6206 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6207 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6208 * m88k-tdep.c (m88k_gregset): Likewise.
6209 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6210 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6211 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6212 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6213 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6214 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6215 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6216 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6217 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6218 Likewise.
6219 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6220 * sh-tdep.h (sh_corefile_gregset): Likewise.
6221 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6222 * vax-tdep.c (vax_gregset): Likewise.
6223
5876f503
JK
62242014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6225
6226 Fix TLS access for -static -pthread.
6227 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6228 (try_thread_db_load_1): Initialize it.
6229 (thread_db_get_thread_local_address): Call it if LM is zero.
6230 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6231 * target.h (struct target_ops) (to_get_thread_local_address): Add
6232 load_module_addr comment.
6233
0256a6ac
PA
62342014-05-21 Pedro Alves <palves@redhat.com>
6235
6236 * dcache.c (dcache_read_memory_partial): If reading the cache line
6237 fails, fallback to reading just the memory the caller wanted.
6238
227533ac
DE
62392014-05-20 Doug Evans <dje@google.com>
6240
6241 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6242 instead of get_current_arch.
6243
936d2992
PA
62442014-05-20 Pedro Alves <palves@redhat.com>
6245
6246 * NEWS: Mention that compare-sections now works with all targets.
6247
6248 * remote.c (PACKET_qCRC): New enum value.
6249 (remote_verify_memory): Don't send qCRC if the target has no
6250 execution. Use packet_support/packet_ok. If the target doesn't
6251 support the qCRC packet, fallback to a deep memory copy.
6252 (compare_sections_command): Say "target image" instead of "remote
6253 executable".
6254 (_initialize_remote): Add PACKET_qCRC to the list of config
6255 packets that have no associated command. Extend comment.
6256 * target.c (simple_verify_memory, default_verify_memory): New
6257 function.
6258 * target.h (struct target_ops) <to_verify_memory>: Default to
6259 default_verify_memory.
6260 (simple_verify_memory): New declaration.
6261 * target-delegates.c: Regenerate.
6262
e59fa00f
MM
62632014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6264
6265 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6266
f2205de0
HZ
62672014-05-20 Hui Zhu <hui@codesourcery.com>
6268 Yao Qi <yao@codesourcery.com>
6269
6270 PR backtrace/16558
6271 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6272 and change address of sp and pc.
6273
c4e54771
TT
62742014-05-19 Tom Tromey <tromey@redhat.com>
6275
6276 * gdbtypes.c (rank_function): Use XNEWVEC.
6277 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6278
73051182
DE
62792014-05-19 Doug Evans <dje@google.com>
6280
6281 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6282 build_type_unit_groups and moved closer to only caller. Remove
6283 arguments. All references updated. Remove outdated .gdb_index
6284 comment.
6285 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6286 build_type_psymtabs_1.
6287
8832e7e3
DE
62882014-05-19 Doug Evans <dje@google.com>
6289
6290 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6291 n_type_unit_groups, all_type_unit_groups. All uses removed.
6292 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6293 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6294 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6295 (add_type_unit_group_to_table): Delete.
6296
cd8ae15e
DE
62972014-05-19 Doug Evans <dje@google.com>
6298
6299 * eval.c (evaluate_subexp_standard): Add some comments.
6300
08f4850b
DE
63012014-05-17 Doug Evans <xdje42@gmail.com>
6302
6303 * progspace.c (remove_program_space): Delete, unused.
6304 * progspace.h (remove_program_space): Ditto.
6305
bed8455c
DE
63062014-05-17 Doug Evans <xdje42@gmail.com>
6307
6308 * inferior.c (prune_inferiors): Fix comment.
6309 (remove_inferior_command): Call prune_program_spaces.
6310
8d551b02
DE
63112014-05-16 Doug Evans <dje@google.com>
6312
6313 New command line option -D.
6314 * NEWS: Mention it.
6315 * main.c (set_gdb_data_directory): New function.
6316 (captured_main): Recognize -D. Flag error for --data-directory "".
6317 Call set_gdb_data_directory.
6318 (print_gdb_help): Print --data-directory, -D.
6319 * main.h (set_gdb_data_directory): Declare.
6320 * top.c (staged_gdb_datadir): New static global.
6321 (set_gdb_datadir): Call set_gdb_data_directory
6322 (show_gdb_datadir): New function.
6323 (init_main): Update init of data-directory parameter.
6324
18848e28
GF
63252014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6326
6327 Import the "dirfd" gnulib module.
6328 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6329 * gnulib/aclocal.m4: Update.
6330 * gnulib/config.in: Update.
6331 * gnulib/configure: Update.
6332 * gnulib/import/Makefile.am: Update.
6333 * gnulib/import/Makefile.in: Update.
6334 * gnulib/import/dirfd.c: New.
6335 * gnulib/import/m4/dirfd.m4: New.
6336 * gnulib/import/m4/gnulib-cache.m4: Update.
6337 * gnulib/import/m4/gnulib-comp.m4: Update.
6338
95c64f92
YQ
63392014-05-16 Pierre Muller <muller@sourceware.org>
6340 Yao Qi <yao@codesourcery.com>
6341
6342 * valprint.c (print_wchar): Move the code on checking whether
6343 W is a printable wide char to the default branch of switch
6344 statement below. Call wchar_printable instead of gdb_iswprint.
6345
cac395ea
TM
63462014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6347
19679eca 6348 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6349 ldr.w and ldrd instructions.
6350
83655187
DE
63512014-05-15 Doug Evans <dje@google.com>
6352
6353 * dwarf2read.c (read_structure_type): Delete outdated comments.
6354
dd756689
TT
63552014-05-14 Tom Tromey <tromey@redhat.com>
6356
6357 * macrocmd.c (print_macro_definition): Reindent.
6358
75ddda77
DE
63592014-05-13 Doug Evans <xdje42@gmail.com>
6360
6361 * python/py-cmd.c (cmdpy_completer): Add comment.
6362 (completers): Make const.
6363
b0f16a3e
SM
63642014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6365
6366 * infrun.c (resume): Remove should_resume (unused). Move up
6367 declaration of resume_ptid.
6368
033c3379
TT
63692014-05-13 Tom Tromey <tromey@redhat.com>
6370
6371 * language.h (unop_type_check): Remove.
6372 (binop_type_check): Don't declare.
6373
9b44a3a5
AA
63742014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6375
6376 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6377 call to regcache_raw_collect.
6378
303a33fa
SM
63792014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6380
6381 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6382 mi_console->quote as the quoting character.
6383
196100a0
SM
63842014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6385
6386 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6387
f989a1c8
TT
63882014-04-29 Tom Tromey <tromey@redhat.com>
6389
6390 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6391 "show debug varobj".
6392
9404b58f
KM
63932014-05-07 Kyle McMartin <kyle@redhat.com>
6394
6395 Pushed by Joel Brobecker <brobecker@adacore.com>.
6396 * aarch64-tdep.c (aarch64_software_single_step): New function.
6397 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6398 with aarch64_software_single_step.
6399
5e49ba57
JB
64002014-05-05 Joel Brobecker <brobecker@adacore.com>
6401
6402 GDB 7.7.1 released.
6403
c888a17d
KS
64042014-05-05 Keith Seitz <keiths@redhat.com>
6405
6406 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6407 variable or history value is successfully parsed.
6408
290a839c
YQ
64092014-05-05 Yao Qi <yao@codesourcery.com>
6410 Pedro Alves <palves@redhat.com>
6411
6412 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6413 address of blocks that intersects the requested range. Trim
6414 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6415 sections.
6416 * ctf.c (ctf_xfer_partial): Likewise.
6417
91256dc2
YQ
64182014-05-05 Yao Qi <yao@codesourcery.com>
6419
6420 * printcmd.c (display_command): Remove the check to
6421 target_has_execution.
6422
07284463
MK
64232014-05-03 Mark Kettenis <kettenis@gnu.org>
6424
6425 * ppcobsd-nat.c: Include "obsd-nat.h".
6426 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6427 add_target.
6428 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6429
30a1e6cc
SDJ
64302014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6431
6432 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6433 and 16-bit signed and unsigned arguments. Update comment.
6434 (stap_parse_probe_arguments): Extend code to handle such
6435 arguments. Use warning instead of complaint to notify about
6436 unrecognized bitness.
6437
f33da99a
SDJ
64382014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6439
6440 PR breakpoints/16889
6441 * stap-probe.c (stap_parse_probe_arguments): Simplify
6442 check for non-prefixed probes (i.e., probes whose
6443 arguments do not start with "N@"). Always set the
6444 argument type to a sane value.
6445
95cf3b38
DT
64462014-05-01 David Taylor <dtaylor@emc.com>
6447
6448 * remote.c (compare_sections_command): Add -r option to compare
6449 all loadable read-only sections.
6450
1cfdf534
SC
64512014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6452
6453 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6454 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6455 Update all callers.
6456 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6457 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6458 Remove unused CORE_ADDR argument. Update all callers.
6459
ca4f7f8b
PA
64602014-04-29 Pedro Alves <palves@redhat.com>
6461
6462 * remote.c (struct packet_config) <detect>: Extend comment.
6463 (add_packet_config_cmd): Don't set the config's detect or support
6464 fields here.
6465 (init_all_packet_configs): Also initialize the config's 'detect'
6466 field.
6467 (reset_all_packet_configs_support): New function.
6468 (remote_open_1): Call reset_all_packet_configs_support instead of
6469 init_all_packet_configs.
6470 (_initialize_remote): Initialize all packet configs. Assert that
6471 all packets have an associated command, except a few known
6472 outliers.
6473
11c1ba78
JB
64742014-04-28 Joel Brobecker <brobecker@adacore.com>
6475
6476 * dwarf2read.c (read_subrange_type): Handle dynamic
6477 DW_AT_lower_bound attributes.
6478
8739bc53
JB
64792014-04-28 Joel Brobecker <brobecker@adacore.com>
6480
6481 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6482 dynamic bounds before computing its upper bound.
6483 (ada_discrete_type_low_bound): Same as above with the lower bound.
6484
6f8a3220
JB
64852014-04-28 Joel Brobecker <brobecker@adacore.com>
6486
6487 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6488 range types. Adjust the array handling implementation to
6489 take advantage of this change.
6490 (resolve_dynamic_range): New function, mostly extracted from
6491 resolve_dynamic_bounds.
6492 (resolve_dynamic_array): New function, mostly extracted from
6493 resolve_dynamic_bounds.
6494 (resolve_dynamic_bounds): Delete.
6495 (resolve_dynamic_type): Reimplement. Add handling of
6496 TYPE_CODE_RANGE types.
6497
4d072ce4
JB
64982014-04-28 Joel Brobecker <brobecker@adacore.com>
6499
6500 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6501 handling of parallel ___XA types.
6502
52865325
JB
65032014-04-28 Joel Brobecker <brobecker@adacore.com>
6504
6505 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6506 unnecessary second call to static_unwrap_type.
6507
433e77fa
HZ
65082014-04-27 Hui Zhu <hui@codesourcery.com>
6509
6510 * stack.c (print_frame_info): Call do_gdb_disassembly with
6511 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6512
b51a69ee
DE
65132014-04-26 Doug Evans <xdje42@gmail.com>
6514
6515 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6516
7ae1a6a6
PA
65172014-04-25 Pedro Alves <palves@redhat.com>
6518
6519 PR server/16255
6520 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6521 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6522 and newline from built string.
6523 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6524 (linux_ptrace_attach_fail_reason): ... this.
6525 * linux-nat.c (linux_nat_attach): Adjust to use
6526 linux_ptrace_attach_fail_reason.
6527
4082afcc
PA
65282014-04-25 Pedro Alves <palves@redhat.com>
6529
6530 * remote.c (struct remote_state): Remove multi_process_aware,
6531 non_stop_aware, cond_tracepoints, cond_breakpoints,
6532 breakpoint_commands, fast_tracepoints, static_tracepoints,
6533 install_in_trace, disconnected_tracing,
6534 enable_disable_tracepoints, string_tracing, and
6535 augmented_libraries_svr4_read fields.
6536 (remote_multi_process_p): Move further below in the file.
6537 (struct packet_config): Add comments.
6538 (update_packet_config): Delete function.
6539 (show_packet_config_cmd): Use packet_config_support.
6540 (add_packet_config_cmd): Use NULL as set callback.
6541 (packet_ok): "set remote foo-packet"-style commands no longer
6542 change config->supported -- adjust.
6543 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6544 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6545 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6546 (PACKET_QNonStop, PACKET_multiprocess_feature)
6547 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6548 (PACKET_DisconnectedTracing_feature)
6549 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6550 (set_remote_protocol_packet_cmd): Delete function.
6551 (packet_config_support, packet_support): New functions.
6552 (set_remote_protocol_Z_packet_cmd): Don't call
6553 update_packet_config.
6554 (remote_query_attached, remote_pass_signals)
6555 (remote_program_signals, remote_threads_info)
6556 (remote_threads_extra_info, remote_start_remote): Use
6557 packet_support.
6558 (remote_start_remote): Use packet_config_support and
6559 packet_support.
6560 (init_all_packet_configs): Set all packets to unknown support,
6561 instead of calling update_packet_config.
6562 (remote_check_symbols): Use packet_support.
6563 (remote_supported_packet): Unconditionally set the packet config's
6564 support status.
6565 (remote_multi_process_feature, remote_non_stop_feature)
6566 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6567 (remote_breakpoint_commands_feature)
6568 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6569 (remote_install_in_trace_feature)
6570 (remote_disconnected_tracing_feature)
6571 (remote_enable_disable_tracepoint_feature)
6572 (remote_string_tracing_feature)
6573 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6574 (remote_protocol_features): Adjust to use remote_supported_packet
6575 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6576 "ConditionalTracepoints", "ConditionalBreakpoints",
6577 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6578 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6579 "EnableDisableTracepoints", and "tracenz".
6580 (remote_query_supported): Use packet_support.
6581 (remote_open_1): Adjust.
6582 (extended_remote_attach_1): Use packet_support. Switch on the
6583 result of packet_ok instead of checking whether the packet ended
6584 up disabled.
6585 (remote_vcont_resume): Use packet_support.
6586 (remote_resume, remote_stop_ns, fetch_register_using_p)
6587 (remote_prepare_to_store, store_register_using_P)
6588 (check_binary_download, remote_write_bytes): Use packet_support.
6589 (remote_vkill): Use packet_support. Switch on the result of
6590 packet_ok instead of checking whether the packet ended up
6591 disabled.
6592 (extended_remote_supports_disable_randomization): Use
6593 packet_support.
6594 (extended_remote_run): Switch on the result of packet_ok instead
6595 of checking whether the packet ended up disabled.
6596 (remote_insert_breakpoint, remote_remove_breakpoint)
6597 (remote_insert_watchpoint, remote_remove_watchpoint)
6598 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6599 packet_support.
6600 (remote_search_memory): Use packet_config_support.
6601 (remote_get_thread_local_address, remote_get_tib_address)
6602 (remote_hostio_send_command, remote_can_execute_reverse): Use
6603 packet_support.
6604 (remote_supports_cond_tracepoints)
6605 (remote_supports_cond_breakpoints)
6606 (remote_supports_fast_tracepoints)
6607 (remote_supports_static_tracepoints)
6608 (remote_supports_install_in_trace)
6609 (remote_supports_enable_disable_tracepoint)
6610 (remote_supports_string_tracing)
6611 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6612 the packet config says the feature is enabled or disabled.
6613 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6614 (remote_get_trace_status): Use packet_support.
6615 (remote_set_disconnected_tracing): Adjust to check whether the
6616 feature is enabled with packet_support.
6617 (remote_set_trace_buffer_size, remote_use_agent)
6618 (remote_can_use_agent, remote_supports_btrace): Use
6619 packet_support.
6620 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6621 Use packet_config_support.
6622 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6623 the packet config says the feature is enabled or disabled.
6624 (set_range_stepping): Use packet_support.
6625
bdb52a22
TT
66262014-04-25 Tom Tromey <tromey@redhat.com>
6627
6628 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6629 argument.
6630
e9475ead
SA
66312014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6632
6633 * NEWS: Mention support for C99 variable length arrays.
6634
82eacd52
JB
66352014-04-24 Joel Brobecker <brobecker@adacore.com>
6636
6637 * ada-lang.c (standard_exc): Expand introductory comment.
6638
01f9f808
MS
66392014-04-24 Michael Sturm <michael.sturm@mintel.com>
6640 Walfred Tedeschi <walfred.tedeschi@intel.com>
6641
6642 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6643 AVX512 registers.
6644 (amd64_linux_read_description): Add code to handle AVX512 xstate
6645 mask and return respective tdesc.
6646 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6647 and features/i386/x32-avx512-linux.c.
6648 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6649 (amd64_linux_core_read_description): Add code to handle AVX512
6650 xstate mask and return respective tdesc.
6651 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6652 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6653 calculation.
6654 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6655 (tdesc_amd64_avx512_linux): New prototype.
6656 (tdesc_x32_avx512_linux): Likewise.
6657 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6658 features/i386/x32-avx512.c.
6659 (amd64_ymm_avx512_names): New register names for pseudo
6660 registers YMM16-31.
6661 (amd64_ymmh_avx512_names): New register names for raw registers
6662 YMMH16-31.
6663 (amd64_k_names): New register names for K registers.
6664 (amd64_zmmh_names): New register names for ZMM raw registers.
6665 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6666 (amd64_xmm_avx512_names): New register names for XMM16-31
6667 registers.
6668 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6669 registers.
6670 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6671 if feature is present.
6672 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6673 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6674 (AMD64_NUM_REGS): Adjust to new number of registers.
6675 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6676 registers supplied via XSTATE by AVX512 registers.
6677 (i386_linux_read_description): Add case for AVX512.
6678 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6679 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6680 (i386_linux_core_read_description): Add case for AVX512.
6681 (i386_linux_init_abi): Install supported register note section
6682 for AVX512.
6683 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6684 AVX512.
6685 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6686 registers to be number of zmm7h + 1.
6687 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6688 * i386-tdep.c: Include features/i386/i386-avx512.c.
6689 (i386_zmm_names): Add ZMM pseudo register names array.
6690 (i386_zmmh_names): Add ZMM raw register names array.
6691 (i386_k_names): Add K raw register names array.
6692 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6693 registers. AVX512 has 16 more ZMM registers than there are YMM
6694 registers.
6695 (i386_zmmh_regnum_p): Add function to look up register number of
6696 ZMM raw registers.
6697 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6698 (i386_k_regnum_p): Likewise for K raw registers.
6699 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6700 registers added by AVX512.
6701 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6702 registers added by AVX512.
6703 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6704 added by AVX512.
6705 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6706 (i386_pseudo_register_name): Add ZMM pseudo registers.
6707 (i386_zmm_type): Construct and return vector registers type for ZMM
6708 registers.
6709 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6710 ZMM0-31 pseudo registers and K registers.
6711 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6712 and YMM16-31 registers from register cache.
6713 (i386_pseudo_register_write): Add code to write K, ZMM and
6714 YMM16-31 registers.
6715 (i386_register_reggroup_p): Add code to include/exclude AVX512
6716 registers in/from respective register groups.
6717 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6718 registers if feature is present in xcr0.
6719 (i386_gdbarch_init): Add code to initialize AVX512 feature
6720 variables in tdep structure, wire in pseudo registers and call
6721 initialize_tdesc_i386_avx512.
6722 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6723 variables.
6724 (i386_regnum): Add AVX512 registers.
6725 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6726 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6727 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6728 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6729 512 bits wide.
6730 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6731 (i386_ymm_avx512_regnum_p): Likewise.
6732 (i386_k_regnum_p): Likewise.
6733 (i386_zmm_regnum_p): Likewise.
6734 (i386_zmmh_regnum_p): Likewise.
6735 * i387-tdep.c : Update year in copyright notice.
6736 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6737 XSAVE buffer.
6738 (XSAVE_YMM_AVX512_ADDR): New macro.
6739 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6740 XSAVE buffer.
6741 (XSAVE_XMM_AVX512_ADDR): New macro.
6742 (xsave_avx512_k_offset): New table for K register offsets in
6743 XSAVE buffer.
6744 (XSAVE_AVX512_K_ADDR): New macro.
6745 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6746 in XSAVE buffer.
6747 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6748 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6749 buffer.
6750 (i387_collect_xsave): Add code to collect AVX512 registers from
6751 XSAVE buffer.
6752 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6753 of XMM16-31 registers.
6754 (I387_NUM_K_REGS): New define for number of K registers.
6755 (I387_K0_REGNUM): New define for K0 register number.
6756 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6757 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6758 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6759 registers.
6760 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6761 (I387_XMM16_REGNUM): New define for XMM16 register number.
6762 (I387_YMM0_REGNUM): New define for YMM0 register number.
6763 (I387_KEND_REGNUM): New define for last K register number.
6764 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6765 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6766 number.
6767 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6768 number.
6769 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6770 size.
6771 * features/Makefile: Add AVX512 related files.
6772 * features/i386/32bit-avx512.xml: New file.
6773 * features/i386/64bit-avx512.xml: Likewise.
6774 * features/i386/amd64-avx512-linux.c: Likewise.
6775 * features/i386/amd64-avx512-linux.xml: Likewise.
6776 * features/i386/amd64-avx512.c: Likewise.
6777 * features/i386/amd64-avx512.xml: Likewise.
6778 * features/i386/i386-avx512-linux.c: Likewise.
6779 * features/i386/i386-avx512-linux.xml: Likewise.
6780 * features/i386/i386-avx512.c: Likewise.
6781 * features/i386/i386-avx512.xml: Likewise.
6782 * features/i386/x32-avx512-linux.c: Likewise.
6783 * features/i386/x32-avx512-linux.xml: Likewise.
6784 * features/i386/x32-avx512.c: Likewise.
6785 * features/i386/x32-avx512.xml: Likewise.
6786 * regformats/i386/amd64-avx512-linux.dat: New file.
6787 * regformats/i386/amd64-avx512.dat: Likewise.
6788 * regformats/i386/i386-avx512-linux.dat: Likewise.
6789 * regformats/i386/i386-avx512.dat: Likewise.
6790 * regformats/i386/x32-avx512-linux.dat: Likewise.
6791 * regformats/i386/x32-avx512.dat: Likewise.
6792 * NEWS: Add note about new support for AVX512.
6793
6794
08351840
PA
67952014-04-23 Pedro Alves <palves@redhat.com>
6796
6797 * breakpoint.c (insert_bp_location): Tolerate errors if the
6798 breakpoint is set in a user-loaded objfile.
6799 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6800 location is marked shlib_disabled. If the breakpoint is set in a
6801 user-loaded objfile is a GDB-side memory breakpoint, validate it
6802 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6803 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6804 flag.
6805 * mem-break.c (memory_validate_breakpoint): New function.
6806 * objfiles.c (userloaded_objfile_contains_address_p): New
6807 function.
6808 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6809 * target.h (memory_validate_breakpoint): New declaration.
6810
076855f9
PA
68112014-04-23 Pedro Alves <palves@redhat.com>
6812
6813 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6814 the breakpoint is set in a shared library, only suppress
6815 errors for software breakpoints, not hardware breakpoints.
6816
483805cf
PA
68172014-04-22 Pedro Alves <palves@redhat.com>
6818
6819 * infrun.c (schedlock_applies): New function, factored out from
6820 find_thread_needs_step_over.
6821 (find_thread_needs_step_over): Use it.
6822 (switch_back_to_stepped_thread): Always clear trap_expected if the
6823 step over is finished. Return early if scheduler locking applies.
6824 Look for the stepping thread and a potential step-over thread with
6825 a single loop.
6826 (currently_stepping_or_nexting_callback): Delete.
6827
a75fef0e
NC
68282014-04-22 Nick Clifton <nickc@redhat.com>
6829
6830 * NEWS: Mention that ARM sim now supports tracing.
6831
48b6e87e
YQ
68322014-04-22 Yao Qi <yao@codesourcery.com>
6833
6834 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6835 to ...
6836 * tracefile.c (tracefile_fetch_registers): ... it. New
6837 function.
6838 * tracefile.h (tracefile_fetch_registers): Declare.
6839 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6840 tracefile_fetch_registers.
6841
17617f2d
EZ
68422014-04-19 Eli Zaretskii <eliz@gnu.org>
6843
6844 PR gdb/14018
6845 * windows-nat.c (thread_rec): Don't display a warning when
6846 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6847 fails for any reason, set th->suspended to -1, so that we don't
6848 try to resume such a thread. Also, don't return NULL in these
6849 cases, to avoid completely ruin the session due to "PC register is
6850 not available" error.
6851 (do_windows_fetch_inferior_registers): Check errors in
6852 GetThreadContext call.
6853 (windows_continue): Accept an additional argument KILLED; if not
6854 zero, ignore errors in the SetThreadContext call, since the
6855 inferior was killed and is shutting down.
6856 (windows_resume, get_windows_debug_event)
6857 (windows_create_inferior, windows_mourn_inferior)
6858 (windows_kill_inferior): All callers of windows_continue changed
6859 to adjust to its new calling sequence.
6860
5723a6fd
YQ
68612014-04-19 Yao Qi <yao@codesourcery.com>
6862
6863 * ctf.c (ctf_open): Call post_create_inferior.
6864
614d5099
YQ
68652014-04-19 Yao Qi <yao@codesourcery.com>
6866
6867 * ctf.c (handle_id): New static variable.
6868 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6869 value. Get the declaration of event "register" and get length
6870 of field "contents".
6871
dac3e710
YQ
68722014-04-19 Yao Qi <yao@codesourcery.com>
6873
6874 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6875
2bca57ba
SC
68762014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6877
6878 * valops.c (oload_method_static): Remove unnecessary argument
6879 METHOD. Update all callers.
6880
51d48146
PA
68812014-04-18 Pedro alves <palves@redhat.com>
6882 Tom Tromey <tromey@redhat.com>
6883
6884 PR backtrace/15558
6885 * frame.c (get_prev_frame_1): Rename to ...
6886 (get_prev_frame_always): ... this, and make extern. Adjust.
6887 (skip_artificial_frames): Use get_prev_frame_always.
6888 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6889 (get_frame_unwind_stop_reason): Adjust to rename.
6890 * frame.h (get_prev_frame_always): Declare.
6891 * inline-frame.c: Include frame.h.
6892 (inline_frame_this_id): Use get_prev_frame_always.
6893
1bdad2e0
TG
68942014-04-18 Tristan Gingold <gingold@adacore.com>
6895
6896 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6897 code by using bfd_mach_o_get_base_address.
6898
7ce16bd4
UW
68992014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6900
6901 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6902 (spu_ax_pseudo_register_collect): New function.
6903 (spu_ax_pseudo_register_push_stack): Likewise.
6904 (spu_dwarf_reg_to_regnum): Likewise.
6905 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6906
2ed3c037
UW
69072014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6908
6909 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6910 Replace FRAME argument with FRAME_ID.
6911 * gdbarch.c, gdbarch.h: Regenerate.
6912 * findvar.c (default_value_from_register): Add GDBARCH argument;
6913 replace FRAME by FRAME_ID. No longer call get_frame_id.
6914 (value_from_register): Update call to gdbarch_value_from_register.
6915 * value.h (default_value_from_register): Update prototype.
6916 * s390-linux-tdep.c (s390_value_from_register): Update interface
6917 and call to default_value_from_register.
6918 * spu-tdep.c (spu_value_from_register): Likewise.
6919
6920 * findvar.c (address_from_register): Remove TYPE argument.
6921 Do not call value_from_register; use gdbarch_value_from_register
6922 with null_frame_id instead.
6923 * value.h (address_from_register): Update prototype.
6924 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6925 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6926 address_from_register interface change.
6927
71e50e83
YQ
69282014-04-17 Yao Qi <yao@codesourcery.com>
6929
6930 * gdbtypes.h: Update comments to link to types and macros'
6931 definitions.
6932
7a23c549
SC
69332014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6934
6935 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6936
22869d73
KS
69372014-04-16 Keith Seitz <keiths@redhat.com>
6938
6939 PR gdb/15827
6940 * dwarf2read.c (skip_one_die): Check that all relative-offset
6941 sibling DIEs fall within range of the current reader's buffer.
6942 (read_partial_die): Likewise.
6943
c4f87ca6
KS
69442014-04-16 Keith Seitz <keiths@redhat.com>
6945
6946 PR c++/16597
6947 * cp-namespace.c (lookup_symbol_file): If the type name of
6948 `this' is NULL, return immediately.
6949
b50c8614
KS
69502014-04-14 Keith Seitz <keiths@redhat.com>
6951
6952 PR c++/16253
6953 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6954 from symbol_matches_domain in symtab.c. All local callers
6955 of symbol_matches_domain updated.
6956 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6957 search STRUCT_DOMAIN.
6958 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6959 independently. standard_lookup will do that automatically.
6960 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6961 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6962 (cp_lookup_symbol_in_namespace): Likewise.
6963 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6964 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6965 may return a STRUCT_DOMAIN match.
6966 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6967 * cp-support.c: Include language.h.
6968 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6969 VAR_DOMAIN.
6970 * psymtab.c (match_partial_symbol): Compare the requested
6971 domain with the symbol's domain directly.
6972 (lookup_partial_symbol): Likewise.
6973 * symtab.c (lookup_symbol_in_language): Explain when/why
6974 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6975 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6976 appropriate languages.
6977 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6978 and moved to ada-lang.c
6979 (lookup_block_symbol): Explain that this function only returns
6980 symbol matching the requested DOMAIN.
6981 Compare the requested domain with the symbol's domain directly.
6982 (iterate_over_symbols): Compare the requested domain with the
6983 symbol's domain directly.
6984 * symtab.h (symbol_matches_domain): Remove.
6985
3d567982
TT
69862014-04-14 Tom Tromey <tromey@redhat.com>
6987
6988 PR c++/15246:
6989 * c-exp.y (type_aggregate_p): New function.
6990 (qualified_name, classify_inner_name): Use it.
6991 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6992 and TYPE_TARGET_TYPE of an enum type.
6993 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6994 an enum type.
6995 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6996 handle TYPE_DECLARED_CLASS.
6997 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6998 types.
6999 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7000 * valops.c (enum_constant_from_type): New function.
7001 (value_aggregate_elt): Use it.
7002 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7003 TYPE_CODE_ENUM.
7004
c848d642
TT
70052014-04-14 Tom Tromey <tromey@redhat.com>
7006
7007 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7008 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7009 const.
7010 * value.h (value_aggregate_elt): Update.
7011
0626fc76
TT
70122014-04-14 Tom Tromey <tromey@redhat.com>
7013
7014 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7015
5ecaaa66
SA
70162014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7017
7018 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7019 (evaluate_subexp_standard): Pass noside argument.
7020 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7021 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7022 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7023 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7024 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7025
1612e0c0
SA
70262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7027
7028 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7029 points to a constant blob.
7030
c451ebe5
SA
70312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7032
7033 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7034 property and store it as the high bound and flag the range accordingly.
7035 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7036 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7037 * gdbtypes.h (enum range_flags): New enum.
7038 (struct range_bounds): Add flags member.
7039
1d42e4c4
SA
70402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7041
7042 * c-typeprint.c (c_type_print_varspec_suffix): Added
7043 check for not yet resolved high bound. If unresolved, print
7044 "variable length" string to the console instead of random
7045 length.
7046
9f1f738a
SA
70472014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7048
7049 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7050 value.
7051 (ada_template_to_fixed_record_type_1): Likewise.
7052 (ada_to_fixed_type_1): Likewise.
7053 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7054 (cp_print_value): Likewise.
7055 * d-valprint.c (dynamic_array_type): Likewise.
7056 * findvar.c (address_of_variable): Likewise.
7057 * jv-valprint.c (java_value_print): Likewise.
7058 * valops.c (value_ind): Likewise.
7059 * value.c (coerce_ref): Likewise.
7060
3c8452d4
SA
70612014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7062
7063 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7064 value and retrieve the dynamic type size.
7065
4ad88275
SA
70662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7067
7068 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7069 passed to sizeof is dynamic evaluate the argument to compute the length.
7070
80180f79
SA
70712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7072 Joel Brobecker <brobecker@adacore.com>
7073
7074 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7075 (dwarf2_evaluate_property): New function.
7076 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7077 * dwarf2read.c (attr_to_dynamic_prop): New function.
7078 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7079 attribute.
7080 * gdbtypes.c: Include dwarf2loc.h.
7081 (is_dynamic_type): New function.
7082 (resolve_dynamic_type): New function.
7083 (resolve_dynamic_bounds): New function.
7084 (get_type_length): New function.
7085 (check_typedef): Use get_type_length to compute type length.
7086 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7087 (TYPE_LOW_BOUND_KIND): New macro.
7088 (is_dynamic_type): New function prototype.
7089 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7090 to resolve dynamic properties of the type. Update comment.
7091 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7092
a1556843
RH
70932014-04-14 Richard Henderson <rth@redhat.com>
7094
7095 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7096
0be03e84
DE
70972014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7098 Doug Evans <xdje42@gmail.com>
7099
7100 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7101 dereference TYPE_CODE_REF values.
7102
6b662e19
JB
71032014-04-11 Joel Brobecker <brobecker@adacore.com>
7104
7105 Revert the following changes due to regressions:
7106
7107 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7108 (dwarf2_evaluate_property): New function.
7109 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7110 * dwarf2read.c (attr_to_dynamic_prop): New function.
7111 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7112 attribute.
7113 * gdbtypes.c: Include dwarf2loc.h.
7114 (is_dynamic_type): New function.
7115 (resolve_dynamic_type): New function.
7116 (resolve_dynamic_bounds): New function.
7117 (get_type_length): New function.
7118 (check_typedef): Use get_type_length to compute type length.
7119 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7120 (TYPE_LOW_BOUND_KIND): New macro.
7121 (is_dynamic_type): New function prototype.
7122 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7123 to resolve dynamic properties of the type. Update comment.
7124 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7125
7126 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7127 passed to sizeof is dynamic evaluate the argument to compute the length.
7128
7129 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7130 value and retrieve the dynamic type size.
7131
7132 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7133 (ada_template_to_fixed_record_type_1): Likewise.
7134 (ada_to_fixed_type_1): Likewise.
7135 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7136 (cp_print_value): Likewise.
7137 * d-valprint.c (dynamic_array_type): Likewise.
7138 * eval.c (evaluate_subexp_with_coercion): Likewise.
7139 * findvar.c (address_of_variable): Likewise.
7140 * jv-valprint.c (java_value_print): Likewise.
7141 * valops.c (value_ind): Likewise.
7142 * value.c (coerce_ref): Likewise.
7143
7144 * c-typeprint.c (c_type_print_varspec_suffix): Added
7145 check for not yet resolved high bound. If unresolved, print
7146 "variable length" string to the console instead of random
7147 length.
7148
7149 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7150 property and store it as the high bound and flag the range accordingly.
7151 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7152 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7153 * gdbtypes.h (enum range_flags): New enum.
7154 (struct range_bounds): Add flags member.
7155
7156 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7157 points to a constant blob.
7158
7159 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7160 (evaluate_subexp_standard): Pass noside argument.
7161 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7162 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7163 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7164 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7165 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7166
245a5f0b
KS
71672014-04-11 Keith Seitz <keiths@redhat.com>
7168
7169 PR c++/16675
7170 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7171 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7172 reference types.
7173
3bce8237
SA
71742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7175
7176 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7177 (evaluate_subexp_standard): Pass noside argument.
7178 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7179 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7180 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7181 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7182 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7183
92b09522
SA
71842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7185
7186 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7187 points to a constant blob.
7188
e1969afb
SA
71892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7190
7191 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7192 property and store it as the high bound and flag the range accordingly.
7193 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7194 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7195 * gdbtypes.h (enum range_flags): New enum.
7196 (struct range_bounds): Add flags member.
7197
b86138fb
SA
71982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7199
7200 * c-typeprint.c (c_type_print_varspec_suffix): Added
7201 check for not yet resolved high bound. If unresolved, print
7202 "variable length" string to the console instead of random
7203 length.
7204
bcd629a4
SA
72052014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7206
7207 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7208 (ada_template_to_fixed_record_type_1): Likewise.
7209 (ada_to_fixed_type_1): Likewise.
7210 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7211 (cp_print_value): Likewise.
7212 * d-valprint.c (dynamic_array_type): Likewise.
7213 * eval.c (evaluate_subexp_with_coercion): Likewise.
7214 * findvar.c (address_of_variable): Likewise.
7215 * jv-valprint.c (java_value_print): Likewise.
7216 * valops.c (value_ind): Likewise.
7217 * value.c (coerce_ref): Likewise.
7218
04b19544
SA
72192014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7220
7221 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7222 value and retrieve the dynamic type size.
7223
26cb189f
SA
72242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7225
7226 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7227 passed to sizeof is dynamic evaluate the argument to compute the length.
7228
37c1ab67
SA
72292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7230
7231 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7232 (dwarf2_evaluate_property): New function.
7233 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7234 * dwarf2read.c (attr_to_dynamic_prop): New function.
7235 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7236 attribute.
7237 * gdbtypes.c: Include dwarf2loc.h.
7238 (is_dynamic_type): New function.
7239 (resolve_dynamic_type): New function.
7240 (resolve_dynamic_bounds): New function.
7241 (get_type_length): New function.
7242 (check_typedef): Use get_type_length to compute type length.
7243 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7244 (TYPE_LOW_BOUND_KIND): New macro.
7245 (is_dynamic_type): New function prototype.
7246 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7247 to resolve dynamic properties of the type. Update comment.
7248 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7249
729efb13
SA
72502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7251
7252 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7253 declaring high/low bounds and change uses accordingly. Call
7254 create_range_type instead of create_static_range_type.
7255 * gdbtypes.c (create_range_type): New function.
7256 (create_range_type): Convert bounds into struct bound_prop and pass
7257 them to create_range_type.
7258 * gdbtypes.h (struct bound_prop): New struct.
7259 (create_range_type): New function prototype.
7260 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7261 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7262 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7263 part of the bound.
7264 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7265
0c9c3474
SA
72662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7267
7268 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7269 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7270 * ada-lang.c: All uses of create_range_type updated.
7271 * coffread.c: All uses of create_range_type updated.
7272 * dwarf2read.c: All uses of create_range_type updated.
7273 * f-exp.y: All uses of create_range_type updated.
7274 * m2-valprint.c: All uses of create_range_type updated.
7275 * mdebugread.c: All uses of create_range_type updated.
7276 * stabsread.c: All uses of create_range_type updated.
7277 * valops.c: All uses of create_range_type updated.
7278 * valprint.c: All uses of create_range_type updated.
7279
9d497a19
PA
72802014-04-10 Pedro Alves <palves@redhat.com>
7281
7282 * breakpoint.c (single_step_breakpoints)
7283 (single_step_gdbarch): Move up in the file.
7284 (one_breakpoint_xfer_memory): New function, factored out from ...
7285 (breakpoint_xfer_memory): ... here. Also process single-step
7286 breakpoints.
7287
15a9128a
TG
72882014-04-09 Tristan Gingold <gingold@adacore.com>
7289
7290 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7291 comments.
7292 (darwin_decode_exception_message): Free port only after use.
7293
9c97a070
PL
72942014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7295
7296 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7297 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7298 when setting the size of call_length.
7299
7af389b8
SC
73002014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7301
7302 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7303 dereference TYPE_CODE_REF values.
7304
86ad98c3
JB
73052014-04-07 Joel Brobecker <brobecker@adacore.com>
7306
7307 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7308 end of warning message.
7309
b0aeadb3
DE
73102014-04-03 Doug Evans <dje@google.com>
7311
7312 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7313 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7314
5979d6b6
AM
73152014-04-02 Alan Modra <amodra@gmail.com>
7316
7317 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7318 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7319 (struct symbol_file_add_from_memory_args): Add size field.
7320 (find_vdso_size): New function.
7321 (add_vsyscall_page): Attempt to find vdso size.
7322
0d60c288
DE
73232014-04-01 Doug Evans <dje@google.com>
7324
7325 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7326
a41f2563
TG
73272014-04-01 Tristan Gingold <gingold@adacore.com>
7328
7329 * darwin-nat.c (darwin_encode_reply): Add prototype.
7330 (darwin_decode_exception_message): Reply to unknown inferiors.
7331 (darwin_decode_message): Handle message by id. Ignore message
7332 to unknown inferior.
7333 (darwin_wait): Discard unknown messages, add debug trace.
7334
11a865c8
DE
73352014-03-31 Doug Evans <dje@google.com>
7336
7337 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7338 comp_dir_string.
7339
770e7fc7
DE
73402014-03-31 Doug Evans <dje@google.com>
7341
7342 New option "set print symbol-loading".
7343 * NEWS: Mention it.
7344 * solib.c (solib_read_symbols): Only print symbol loading messages
7345 if requested.
7346 (solib_add): If symbol loading is in "brief" mode, notify user
7347 symbols are being loaded.
7348 (reload_shared_libraries_1): Ditto.
7349 * symfile.c (print_symbol_loading_off): New static global.
7350 (print_symbol_loading_brief): New static global.
7351 (print_symbol_loading_full): New static global.
7352 (print_symbol_loading_enums): New static global.
7353 (print_symbol_loading): New static global.
7354 (print_symbol_loading_p): New function.
7355 (symbol_file_add_with_addrs): Only print symbol loading messages
7356 if requested.
7357 (_initialize_symfile): Register "print symbol-loading" set/show
7358 command.
7359 * symfile.h (print_symbol_loading_p): Declare.
7360
c32c64b7
DE
73612014-03-30 Doug Evans <xdje42@gmail.com>
7362
7363 * infrun.c (set_last_target_status): New function.
7364 (handle_inferior_event): Call it.
7365
7c0bc051
DE
73662014-03-30 Doug Evans <xdje42@gmail.com>
7367
7368 * inferior.h (enum stop_kind): Improve comment.
7369
8776cfe9
JB
73702014-03-28 Joel Brobecker <brobecker@adacore.com>
7371
7372 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7373 a reference, strip the reference layer before calling
7374 the lang_ops value_has_mutated callback.
7375
410a0ff2
SDJ
73762014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7377
7378 Remove some globals from our parser.
7379 * language.c (unk_lang_parser): Add "struct parser_state"
7380 argument.
7381 * language.h (struct language_defn) <la_parser>: Likewise.
7382 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7383 (initialize_expout): Add "struct parser_state" argument.
7384 Rewrite function to use the parser state.
7385 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7386 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7387 write_exp_elt_longcst, write_exp_elt_dblcst,
7388 write_exp_elt_decfloatcst, write_exp_elt_type,
7389 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7390 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7391 write_dollar_variable): Likewise.
7392 (parse_exp_in_context_1): Use parser state.
7393 (insert_type_address_space): Add "struct parser_state" argument.
7394 Use parser state.
7395 (increase_expout_size): New function.
7396 * parser-defs.h: Forward declare "struct language_defn" and
7397 "struct parser_state".
7398 (expout, expout_size, expout_ptr): Remove extern declarations.
7399 (parse_gdbarch, parse_language): Rewrite macro declarations to
7400 accept the parser state.
7401 (struct parser_state): New struct.
7402 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7403 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7404 write_exp_elt_decfloatcst, write_exp_elt_type,
7405 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7406 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7407 write_exp_msymbol, write_dollar_variable,
7408 mark_struct_expression, insert_type_address_space): Add "struct
7409 parser_state" argument.
7410 (increase_expout_size): New function.
7411 * utils.c (do_clear_parser_state): New function.
7412 (make_cleanup_clear_parser_state): Likewise.
7413 * utils.h (make_cleanup_clear_parser_state): New function
7414 prototype.
7415 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7416 Update calls to write_exp* in order to pass the parser state.
7417 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7418 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7419 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7420 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7421 * stap-probe.c (stap_parse_register_operand): Likewise.
7422 (stap_parse_single_operand): Likewise.
7423 (stap_parse_argument_1): Likewise.
7424 (stap_parse_argument): Use parser state.
7425 * stap-probe.h: Include "parser-defs.h".
7426 (struct stap_parse_info) <pstate>: New field.
7427 * c-exp.y (parse_type): Rewrite to use parser state.
7428 (yyparse): Redefine to c_parse_internal.
7429 (pstate): New global variable.
7430 (parse_number): Add "struct parser_state" argument.
7431 (write_destructor_name): Likewise.
7432 (type_exp): Update calls to write_exp* and similars in order to
7433 use parser state.
7434 (exp1, exp, variable, qualified_name, space_identifier,
7435 typename, typebase): Likewise.
7436 (write_destructor_name, parse_number, lex_one_token,
7437 classify_name, classify_inner_name, c_parse): Add "struct
7438 parser_state" argument. Update function to use parser state.
7439 * c-lang.h: Forward declare "struct parser_state".
7440 (c_parse): Add "struct parser_state" argument.
7441 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7442 (yyparse): Redefine macro to ada_parse_internal.
7443 (pstate): New variable.
7444 (write_int, write_object_renaming, write_var_or_type,
7445 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7446 type_int, type_long, type_long_long, type_float, type_double,
7447 type_long_double, type_char, type_boolean, type_system_address):
7448 Add "struct parser_state" argument.
7449 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7450 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7451 var_or_type, aggregate, aggregate_component_list,
7452 positional_list, others, component_group,
7453 component_associations): Update calls to write_exp* and similar
7454 functions in order to use parser state.
7455 (ada_parse, write_var_from_sym, write_int,
7456 write_exp_op_with_string, write_object_renaming,
7457 find_primitive_type, write_selectors, write_ambiguous_var,
7458 write_var_or_type, write_name_assoc, type_int, type_long,
7459 type_long_long, type_float, type_double, type_long_double,
7460 type_char, type_boolean, type_system_address): Add "struct
7461 parser_state" argument. Adjust function to use parser state.
7462 * ada-lang.c (parse): Likewise.
7463 * ada-lang.h: Forward declare "struct parser_state".
7464 (ada_parse): Add "struct parser_state" argument.
7465 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7466 calls to both functions.
7467 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7468 parser state.
7469 (yyparse): Redefine macro to f_parse_internal.
7470 (pstate): New variable.
7471 (parse_number): Add "struct parser_state" argument.
7472 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7473 and similars in order to use parser state.
7474 (parse_number): Adjust code to use parser state.
7475 (yylex): Likewise.
7476 (f_parse): New function.
7477 * f-lang.h: Forward declare "struct parser_state".
7478 (f_parse): Add "struct parser_state" argument.
7479 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7480 parser state.
7481 (yyparse): Redefine macro for java_parse_internal.
7482 (pstate): New variable.
7483 (push_expression_name, push_expression_name, insert_exp): Add
7484 "struct parser_state" argument.
7485 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7486 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7487 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7488 PostIncrementExpression, PostDecrementExpression,
7489 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7490 UnaryExpressionNotPlusMinus, CastExpression,
7491 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7492 RelationalExpression, EqualityExpression, AndExpression,
7493 ExclusiveOrExpression, InclusiveOrExpression,
7494 ConditionalAndExpression, ConditionalOrExpression,
7495 ConditionalExpression, Assignment, LeftHandSide): Update
7496 calls to write_exp* and similars in order to use parser state.
7497 (parse_number): Ajust code to use parser state.
7498 (yylex): Likewise.
7499 (java_parse): New function.
7500 (push_variable): Add "struct parser_state" argument. Adjust
7501 code to user parser state.
7502 (push_fieldnames, push_qualified_expression_name,
7503 push_expression_name, insert_exp): Likewise.
7504 * jv-lang.h: Forward declare "struct parser_state".
7505 (java_parse): Add "struct parser_state" argument.
7506 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7507 parser state.
7508 (yyparse): Redefine macro to m2_parse_internal.
7509 (pstate): New variable.
7510 (type_exp, exp, fblock, variable, type): Update calls to
7511 write_exp* and similars to use parser state.
7512 (yylex): Likewise.
7513 (m2_parse): New function.
7514 * m2-lang.h: Forward declare "struct parser_state".
7515 (m2_parse): Add "struct parser_state" argument.
7516 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7517 * objc-lang.h: Forward declare "struct parser_state".
7518 (end_msglist): Add "struct parser_state" argument.
7519 * p-exp.y (parse_type): Rewrite macro to use parser state.
7520 (yyparse): Redefine macro to pascal_parse_internal.
7521 (pstate): New variable.
7522 (parse_number): Add "struct parser_state" argument.
7523 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7524 write_exp* and similars in order to use parser state.
7525 (parse_number, yylex): Adjust code to use parser state.
7526 (pascal_parse): New function.
7527 * p-lang.h: Forward declare "struct parser_state".
7528 (pascal_parse): Add "struct parser_state" argument.
7529 * go-exp.y (parse_type): Rewrite macro to use parser state.
7530 (yyparse): Redefine macro to go_parse_internal.
7531 (pstate): New variable.
7532 (parse_number): Add "struct parser_state" argument.
7533 (type_exp, exp1, exp, variable, type): Update calls to
7534 write_exp* and similars in order to use parser state.
7535 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7536 to use parser state.
7537 (go_parse): Likewise.
7538 * go-lang.h: Forward declare "struct parser_state".
7539 (go_parse): Add "struct parser_state" argument.
7540
342587c4
DE
75412014-03-27 Doug Evans <dje@google.com>
7542
7543 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7544
33e80786
DE
75452014-03-27 Doug Evans <dje@google.com>
7546
7547 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7548 Remove argument abbrev_section. All callers updated.
7549
1dbab08b
DE
75502014-03-27 Doug Evans <dje@google.com>
7551
7552 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7553 addr_base, ranges_base.
7554
318d3177
KS
75552014-03-26 Keith Seitz <keiths@redhat.com>
7556
7557 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7558 types, not VAR_DOMAIN.
7559
1e54db15
SL
75602014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7561
7562 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7563 "ra" registers.
7564 * features/nios2-linux.c: Regenerated.
7565 * features/nios2.c: Regenerated.
7566
d3839ede
PA
75672014-03-25 Pedro Alves <palves@redhat.com>
7568
7569 * cli/cli-script.c (script_from_file): Force the interpreter to
7570 sync mode.
7571
7588d2ec
PL
75722014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7573
7574 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7575 small stack allocation.
7576
a6290449
TG
75772014-03-24 Tristan Gingold <gingold@adacore.com>
7578
7579 * darwin-nat.c (exc_server): Remove unused prototype.
7580 (darwin_dump_message): Correctly display data on x86_64.
7581 (darwin_encode_reply): Fix style.
7582 Add comments and fix indentation.
7583
31ae9d24 75842014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7585
7586 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7587
6339bfc4
DE
75882014-03-22 Doug Evans <xdje42@gmail.com>
7589
7590 * infcmd.c: Whitespace fixes.
7591 (interrupt_command): Merge two function comments into one.
7592
0a07590b
DE
75932014-03-22 Doug Evans <xdje42@gmail.com>
7594
7595 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7596 All uses updated.
7597
b55fbac4
YQ
75982014-03-22 Yao Qi <yao@codesourcery.com>
7599
7600 * remote.c (target_read_live_memory): Remove.
7601 (memory_xfer_live_readonly_partial): Rename it to
7602 remote_xfer_live_readonly_partial. Remove argument 'object'.
7603 All callers updated. Call remote_read_bytes_1
7604 instead of target_read_live_memory.
7605 * tracepoint.c (set_traceframe_number): Remove.
7606 (make_cleanup_restore_traceframe_number): Likewise .
7607 * tracepoint.h (set_traceframe_number): Remove declaration.
7608 (make_cleanup_restore_traceframe_number): Likewise.
7609
9217e74e
YQ
76102014-03-22 Yao Qi <yao@codesourcery.com>
7611
7612 * remote.c (remote_read_bytes): Move code on reading from the
7613 remote stub to ...
7614 (remote_read_bytes_1): ... here. New function.
7615
8acf9577
YQ
76162014-03-22 Yao Qi <yao@codesourcery.com>
7617
7618 * ctf.c (ctf_xfer_partial): Check the return value of
7619 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7620 return TARGET_XFER_UNAVAILABLE.
7621 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7622 * target.c (target_read_live_memory): Move it to remote.c.
7623 (memory_xfer_live_readonly_partial): Likewise.
7624 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7625 * remote.c (target_read_live_memory): Moved from target.c.
7626 (memory_xfer_live_readonly_partial): Likewise.
7627 (remote_read_bytes): Factored out from
7628 memory_xfer_partial_1.
7629
feef67ab
DE
76302014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7631
7632 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7633 NULL pointer.
7634
b65dc60b
PA
76352014-03-21 Pedro Alves <palves@redhat.com>
7636
7637 * infrun.c (normal_stop): Extend comment.
7638
b4ab256d
HZ
76392014-03-21 Hui Zhu <hui@codesourcery.com>
7640 Pedro Alves <palves@redhat.com>
7641
7642 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7643 static buffer.
7644 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7645 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7646 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7647
deba7593
MR
76482014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7649
7650 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7651 `z' formatted output modifier.
7652
1bff71c3
SDJ
76532014-03-20 Tom Tromey <tromey@redhat.com>
7654 Sergio Durigan Junior <sergiodj@redhat.com>
7655
7656 * probe.c (parse_probes): Turn assert into an ordinary error.
7657 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7658 exceptions when parsing probes. Rearrange the code for clarity.
7659
90e28950
TT
76602014-03-20 Tom Tromey <tromey@redhat.com>
7661
7662 PR gdb/14135
7663 * top.c (execute_command): Only dispatch events if the command
7664 started the target.
7665
beb460e8
PA
76662014-03-20 Tom Tromey <tromey@redhat.com>
7667
7668 PR cli/15718
7669 * infcall.c: Include event-top.h.
7670 (run_inferior_call): Call async_disable_stdin if needed.
7671
99619bea
PA
76722014-03-20 Pedro Alves <palves@redhat.com>
7673
7674 * infrun.c (prepare_to_proceed): Delete.
7675 (thread_still_needs_step_over): New function.
7676 (find_thread_needs_step_over): New function.
7677 (proceed): If the current thread needs a step-over, set its
7678 steping_over_breakpoint flag. Adjust to use
7679 find_thread_needs_step_over instead of prepare_to_proceed.
7680 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7681 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7682 breakpoint.
7683 (switch_back_to_stepped_thread): Step over breakpoints of all
7684 threads not the stepping thread, before switching back to the
7685 stepping thread.
7686
2adfaa28
PA
76872014-03-20 Pedro Alves <palves@redhat.com>
7688
7689 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7690 extern.
7691 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7692 * infrun.c (saved_singlestep_ptid)
7693 (stepping_past_singlestep_breakpoint): Delete.
7694 (resume): Remove stepping_past_singlestep_breakpoint handling.
7695 (proceed): Store the prev_pc of the stepping thread too.
7696 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7697 singlestep_pc.
7698 (enum infwait_states): Delete infwait_thread_hop_state.
7699 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7700 field.
7701 (handle_inferior_event): Adjust.
7702 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7703 handling and the thread-hop code. Before removing single-step
7704 breakpoints, check whether the thread hit a single-step breakpoint
7705 of another thread. If it did, the trap is not a random signal.
7706 (switch_back_to_stepped_thread): If the event thread hit a
7707 single-step breakpoint, unblock it before switching to the
7708 stepping thread. Handle the case of the stepped thread having
7709 advanced already.
7710 (keep_going): Handle the case of the current thread moving past a
7711 single-step breakpoint.
7712
31e77af2
PA
77132014-03-20 Pedro Alves <palves@redhat.com>
7714
7715 PR breakpoints/7143
7716 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7717 are being stepped over.
7718 (breakpoint_address_match): Make extern.
7719 * breakpoint.h (breakpoint_address_match): New declaration.
7720 * inferior.h (stepping_past_instruction_at): New declaration.
7721 * infrun.c (struct step_over_info): New type.
7722 (step_over_info): New global.
7723 (set_step_over_info, clear_step_over_info)
7724 (stepping_past_instruction_at): New functions.
7725 (handle_inferior_event): Clear the step-over info when
7726 trap_expected is cleared.
7727 (resume): Remove now stale comment.
7728 (clear_proceed_status): Clear step-over info.
7729 (proceed): Adjust step-over handling to set or clear the step-over
7730 info instead of removing all breakpoints.
7731 (handle_signal_stop): When setting up a thread-hop, don't remove
7732 breakpoints here.
7733 (stop_stepping): Clear step-over info.
7734 (keep_going): Adjust step-over handling to set or clear step-over
7735 info and then always inserting breakpoints, instead of removing
7736 all breakpoints when stepping over one.
7737
b9f437de
PA
77382014-03-20 Pedro Alves <palves@redhat.com>
7739
7740 * infrun.c (previous_inferior_ptid): Adjust comment.
7741 (deferred_step_ptid): Delete.
7742 (infrun_thread_ptid_changed, prepare_to_proceed)
7743 (init_wait_for_inferior): Adjust.
7744 (handle_signal_stop): Delete deferred_step_ptid handling.
7745
06c868a8
JK
77462014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7747
7748 PR gdb/15358
7749 * defs.h (sync_quit_force_run): New declaration.
7750 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7751 * event-top.c (async_sigterm_handler): New declaration.
7752 (async_sigterm_token): New variable.
7753 (async_init_signals): Create also async_sigterm_token.
7754 (async_sigterm_handler): New function.
7755 (sync_quit_force_run): New variable.
7756 (handle_sigterm): Replace quit_force call by other calls.
7757 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7758
dea80df0
MR
77592014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7760
7761 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7762 offset into SPE pseudo registers.
7763
0c7e1a46
PA
77642014-03-18 Pedro Alves <palves@redhat.com>
7765
7766 PR gdb/13860
7767 * inferior.h (print_stop_event): Declare.
7768 * infrun.c (print_stop_event): New, factored out from ...
7769 (normal_stop): ... this.
7770 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7771 of bpstat_print/print_stack_frame.
7772
9c1fcd01
TT
77732014-03-17 Tom Tromey <tromey@redhat.com>
7774
7775 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7776
11aa919a
PMR
77772014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7778
7779 * ada-lang.c (decode_constrained_packed_array): Perform a
7780 minimal coercion for reference with coerce_ref instead of
7781 ada_coerce_ref.
7782
d4ccb5e0
TG
77832014-03-17 Tristan Gingold <gingold@adacore.com>
7784
7785 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7786 (darwin_solib_create_inferior_hook): Emit a warning if version
7787 is unhandled.
7788
49840f2a
UW
77892014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7790
7791 * python/py-value.c (get_field_flag): Cast flag_name argument to
7792 PyObject_GetAttrString to support Python 2.4.
7793
ed4123e5
JK
77942014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7795
7796 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7797 (Global Maintainers): Remove Jan Kratochvil.
7798
d6b64346
PA
77992014-03-14 Pedro Alves <palves@redhat.com>
7800
7801 * inferior.h (terminal_ours_for_output): Rename to ...
7802 (child_terminal_ours_for_output): ... this.
7803 (terminal_save_ours): Rename to ...
7804 (child_terminal_save_ours): ... this.
7805 (terminal_ours): Rename to ...
7806 (child_terminal_ours): ... this.
7807 (terminal_inferior): Rename to ...
7808 (child_terminal_inferior): ... this.
7809 (terminal_init_inferior): Rename to ...
7810 (child_terminal_init_inferior): ... this.
7811 (terminal_init_inferior_with_pgrp): Rename to ...
7812 (child_terminal_init_inferior_with_pgrp): ... this.
7813 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7814 (child_terminal_init_with_pgrp): ... this.
7815 (terminal_save_ours): Rename to ...
7816 (child_terminal_save_ours): ... this.
7817 (terminal_init_inferior): Rename to ...
7818 (child_terminal_init): ... this. Adjust.
7819 (terminal_inferior): Rename to ...
7820 (child_terminal_inferior): ... this.
7821 (terminal_ours_for_output): Rename to ...
7822 (child_terminal_ours_for_output): ... this. Adjust.
7823 (terminal_ours): Rename to ...
7824 (child_terminal_ours): ... this.
7825 (terminal_ours_1): Rename to ...
7826 (child_terminal_ours_1): ... this. Adjust.
7827 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7828 * windows-nat.c (do_initial_windows_stuff): Adjust.
7829 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7830 (gnu_terminal_init): ... this. Adjust.
7831 (gnu_target): Adjust.
7832 * inf-child.c (inf_child_target): Adjust.
7833
5a1e8c7a
DE
78342014-03-13 Doug Evans <xdje42@gmail.com>
7835
7836 PR guile/16612
7837 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7838 new eq?-hashtab.
7839
350e1a76
DE
78402014-03-13 Doug Evans <xdje42@gmail.com>
7841
7842 * value.c (record_latest_value): Call release_value_or_incref
7843 instead of release_value.
7844
a69900ae
PA
78452014-03-13 Pedro Alves <palves@redhat.com>
7846
7847 * procfs.c (procfs_target): Don't override to_shortname,
7848 to_longname or to_doc.
7849
5db9f0bd
PA
78502014-03-13 Pedro Alves <palves@redhat.com>
7851
7852 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7853 Unix in user visible strings.
7854
5e3a2c38
SS
78552014-03-12 Stan Shebs <stan@codesourcery.com>
7856
7857 * gdbtypes.h: Annotate comments for Doxygen, add a page
7858 block comment with some general info.
7859
8bc2fe48
PA
78602014-03-12 Pedro Alves <palves@redhat.com>
7861
7862 * infcmd.c (prepare_execution_command): New function, factored out
7863 from several execution commands.
7864 (run_command_1, continue_command, step_1, jump_command)
7865 (signal_command, until_command, advance_command, finish_command)
7866 (attach_command): Use prepare_execution_command.
7867
638c5f49
OJ
78682014-03-12 Omair Javaid <omair.javaid@linaro.org>
7869
7870 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7871 (MAX_BPTS): Define.
7872 (MAX_WPTS): Define.
7873 (struct arm_linux_thread_points): Removed.
7874 (struct arm_linux_process_info): New.
7875 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7876 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7877 (arm_linux_find_breakpoints_by_tid): Removed.
7878 (struct arch_lwp_info): New.
7879 (arm_linux_find_process_pid): New functions.
7880 (arm_linux_add_process): New functions.
7881 (arm_linux_process_info_get): New functions.
7882 (arm_linux_forget_process): New function.
7883 (arm_linux_get_debug_reg_state): New function.
7884 (struct update_registers_data): New.
7885 (update_registers_callback): New function.
7886 (arm_linux_insert_hw_breakpoint1): Updated.
7887 (arm_linux_remove_hw_breakpoint1): Updated.
7888 (arm_linux_insert_hw_breakpoint): Updated.
7889 (arm_linux_remove_hw_breakpoint): Updated.
7890 (arm_linux_insert_watchpoint): Updated.
7891 (arm_linux_remove_watchpoint): Updated.
7892 (arm_linux_new_thread): Updated.
7893 (arm_linux_prepare_to_resume): New function.
7894 (arm_linux_new_fork): New function.
7895 (_initialize_arm_linux_nat): Updated.
7896
6d03af93
PA
78972014-03-12 Pedro Alves <palves@redhat.com>
7898
7899 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7900
b3ccfe11
TT
79012014-03-12 Tom Tromey <tromey@redhat.com>
7902
7903 * inf-child.c (return_zero): New function.
7904 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7905 * aix-thread.c (aix_thread_inferior_created): New function.
7906 (aix_thread_attach): Remove.
7907 (init_aix_thread_ops): Don't set to_attach.
7908 (_initialize_aix_thread): Register inferior_created observer.
7909 * corelow.c (init_core_ops): Don't set to_attach or
7910 to_create_inferior.
7911 * exec.c (init_exec_ops): Don't set to_attach or
7912 to_create_inferior.
7913 * infcmd.c (run_command_1): Use find_run_target. Make direct
7914 target calls.
7915 (attach_command): Use find_attach_target. Make direct target
7916 calls.
7917 * record-btrace.c (init_record_btrace_ops): Don't set
7918 to_create_inferior.
7919 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7920 Remove.
7921 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7922 set to_create_inferior.
7923 * target.c (complete_target_initialization): Add assertion.
7924 (target_create_inferior): Remove.
7925 (find_default_attach, find_default_create_inferior): Remove.
7926 (find_attach_target, find_run_target): New functions.
7927 (find_default_is_async_p, find_default_can_async_p)
7928 (target_supports_non_stop, target_attach): Remove.
7929 (init_dummy_target): Don't set to_create_inferior or
7930 to_supports_non_stop.
7931 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7932 TARGET_DEFAULT_FUNC.
7933 <to_create_inferior>: Add comment.
7934 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7935 TARGET_DEFAULT_RETURN.
7936 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7937 (find_attach_target, find_run_target): Declare.
7938 (target_create_inferior): Remove.
7939 (target_has_execution_1): Update comment.
7940 (target_supports_non_stop): Remove.
7941 * target-delegates.c: Rebuild.
7942
91f83b02
PA
79432014-03-12 Pedro Alves <palves@redhat.com>
7944
7945 * inf-child.h: Update comment to not mention Unix.
7946
f1aea813
PA
79472014-03-12 Pedro Alves <palves@redhat.com>
7948
7949 * inf-child.c: Update top comment to not mention Unix. Add
7950 generic comment describing how this target is meant to be used.
7951 (inf_child_post_attach, inf_child_post_startup_inferior)
7952 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7953 Unix in comment.
7954
ee8e9165
PA
79552014-03-12 Pedro Alves <palves@redhat.com>
7956
7957 * nto-procfs.c: Include inf-child.h.
7958 (procfs_ops): Delete global.
7959 (procfs_can_run): Delete method.
7960 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7961 target pointer instead of referencing procfs_ops.
7962 (procfs_prepare_to_store): Delete.
7963 (init_procfs_ops): Delete function.
7964 (procfs_target): New function, based on init_procfs_ops, but
7965 inherit inf_child_target.
7966 (_initialize_procfs): Use procfs_target.
7967
51a9c8c5
PA
79682014-03-12 Pedro Alves <palves@redhat.com>
7969
7970 * windows-nat.c: Include inf-child.h.
7971 (windows_ops): Delete global.
7972 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7973 methods.
7974 (init_windows_ops): Delete function.
7975 (windows_target): New function, based on init_windows_ops, but
7976 inherit inf_child_target.
7977 (_initialize_windows_nat): Use windows_target. Install x86
7978 specific target methods here.
7979
c1966e26
DE
79802014-03-10 Doug Evans <xdje42@gmail.com>
7981
7982 * guile/guile.c (call_initialize_gdb_module): New function.
7983 (initialize_guile): Replace call to scm_init_guile with call to
7984 scm_with_guile.
7985
023db19c
JB
79862014-03-10 Joel Brobecker <brobecker@adacore.com>
7987
7988 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7989 in call to TYPE_CODE macro.
7990
5ec18f2b
JG
79912014-03-10 Jerome Guitton <guitton@adacore.com>
7992
8668be63
JB
7993 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7994 Resolve tagged types to full view.
5ec18f2b 7995
7d03f2eb
HZ
79962014-03-10 Hui Zhu <hui@codesourcery.com>
7997
7998 * target.h (target_insert_breakpoint): Remove "hardware" from its
7999 comments.
8000
c5164cbc
DE
80012014-03-07 Doug Evans <dje@google.com>
8002
8003 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8004
c4a3fee2
DE
80052014-03-07 Doug Evans <dje@google.com>
8006
8007 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8008 Remove unused local comp_dir_attr. Assert exactly one of
8009 stub_comp_unit_die, stub_comp_dir is non-NULL.
8010
3156469c
JB
80112014-03-07 Joel Brobecker <brobecker@adacore.com>
8012
8013 * target.h (complete_target_initialization, add_target):
8014 Add comment.
8015
c1a7b7c6
PA
80162014-03-07 Pedro Alves <palves@redhat.com>
8017
8018 * go32-nat.c: Include inf-child.h.
8019 (go32_ops): Delete global.
8020 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8021 Delete methods.
8022 (go32_create_inferior): Push the passed in target pointer instead
8023 of referencing go32_ops.
8024 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8025 (go32_target): New function, based on init_go32_ops, but inherit
8026 inf_child_target.
8027 (_initialize_go32_nat): Use go32_target. Move parts of
8028 init_go32_ops here.
8029
d3c1a85f
JB
80302014-03-06 Joel Brobecker <brobecker@adacore.com>
8031
8032 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8033 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8034 SYMBOL_VALUE_ADDRESS.
8035 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8036
5fa1d40e
YQ
80372014-03-06 Yao Qi <yao@codesourcery.com>
8038
8039 * breakpoint.c (get_tracepoint_by_number): Remove argument
8040 optional_p. All callers updated. Adjust comments. Update
8041 output message.
8042 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8043
0c13193f
YQ
80442014-03-06 Yao Qi <yao@codesourcery.com>
8045
8046 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8047 early if get_number returns zero. Use 'p' instead of 'args'.
8048
2217da06
YQ
80492014-03-06 Yao Qi <yao@codesourcery.com>
8050
8051 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8052 message.
8053
cc3da688
YQ
80542014-03-06 Yao Qi <yao@codesourcery.com>
8055
8056 PR breakpoints/16508
8057 * tracepoint.c (check_trace_running): New function.
8058 (trace_find_command): Move code to check_trace_running and
8059 call check_trace_running.
8060 (trace_find_pc_command): Likewise.
8061 (trace_find_tracepoint_command): Likewise.
8062 (trace_find_line_command): Likewise.
8063 (trace_find_range_command): Likewise.
8064 * tracepoint.h (check_trace_running): Likewise.
8065 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8066
6a5f844b
YQ
80672014-03-06 Yao Qi <yao@codesourcery.com>
8068
8069 * target.h (struct target_ops) <to_traceframe_info>: Use
8070 TARGET_DEFAULT_NORETURN (tcomplain ()).
8071 * target-delegates.c: Regenerated.
8072
0f26cec1
PA
80732014-03-05 Pedro Alves <palves@redhat.com>
8074
8075 PR gdb/16575
8076 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8077 void. Update comment.
8078 (dcache_xfer_memory): Delete.
8079 (dcache_read_memory_partial): New, based on the read bits of
8080 dcache_xfer_memory.
8081 (dcache_update): Add status parameter. Use ULONGEST for len, and
8082 adjust. Discard cache lines if the reason for the update was
8083 error.
8084 * dcache.h (dcache_xfer_memory): Delete declaration.
8085 (dcache_read_memory_partial): New declaration.
8086 (dcache_update): Update prototype.
8087 * target.c (raw_memory_xfer_partial): Update the dcache here.
8088 (memory_xfer_partial_1): Don't handle dcache writes here.
8089
b2b255bd
MF
80902014-03-05 Mike Frysinger <vapier@gentoo.org>
8091
8092 * remote-sim.c (gdbsim_load): Add const to prog.
8093
5d9cf8a4
TT
80942014-03-03 Tom Tromey <tromey@redhat.com>
8095
8096 * elfread.c (probe_key): Change to bfd_data.
8097 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8098 now per-BFD, not per-objfile.
8099 * stap-probe.c (stap_probe_destroy): Update comment.
8100 (handle_stap_probe): Allocate on the per-BFD obstack.
8101
729662a5
TT
81022014-03-03 Tom Tromey <tromey@redhat.com>
8103
8104 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8105 * breakpoint.c (create_longjmp_master_breakpoint): Use
8106 get_probe_address.
8107 (add_location_to_breakpoint, bkpt_probe_insert_location)
8108 (bkpt_probe_remove_location): Update.
8109 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8110 * elfread.c (elf_symfile_relocate_probe): Remove.
8111 (elf_probe_fns): Update.
8112 (insert_exception_resume_breakpoint): Change type of "probe"
8113 parameter to bound_probe.
8114 (check_exception_resume): Update.
8115 * objfiles.c (objfile_relocate1): Don't relocate probes.
8116 * probe.c (bound_probe_s): New typedef.
8117 (parse_probes): Use get_probe_address. Set sal's objfile.
8118 (find_probe_by_pc): Return a bound_probe.
8119 (collect_probes): Return a VEC(bound_probe_s).
8120 (compare_probes): Update.
8121 (gen_ui_out_table_header_info): Change type of "probes"
8122 parameter. Update.
8123 (info_probes_for_ops): Update.
8124 (get_probe_address): New function.
8125 (probe_safe_evaluate_at_pc): Update.
8126 * probe.h (struct probe_ops) <get_probe_address>: New field.
8127 <set_semaphore, clear_semaphore>: Add objfile parameter.
8128 (struct probe) <objfile>: Remove field.
8129 <arch>: New field.
8130 <address>: Update comment.
8131 (struct bound_probe): New.
8132 (find_probe_by_pc): Return a bound_probe.
8133 (get_probe_address): Declare.
8134 * solib-svr4.c (struct probe_and_action) <address>: New field.
8135 (hash_probe_and_action, equal_probe_and_action): Update.
8136 (register_solib_event_probe): Add address parameter.
8137 (solib_event_probe_at): Update.
8138 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8139 get_probe_address.
8140 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8141 (stap_get_probe_address): New function.
8142 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8143 (compile_probe_arg): Update.
8144 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8145 address.
8146 (handle_stap_probe): Don't relocate the probe.
8147 (stap_relocate): Remove.
8148 (stap_gen_info_probes_table_values): Update.
8149 (stap_probe_ops): Remove stap_relocate.
8150 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8151 (debug_sym_probe_fns): Update.
8152 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8153 * symtab.c (init_sal): Use memset.
8154 * symtab.h (struct symtab_and_line) <objfile>: New field.
8155 * tracepoint.c (start_tracing, stop_tracing): Update.
8156
ff887920
TT
81572014-03-03 Tom Tromey <tromey@redhat.com>
8158
8159 * probe.h (parse_probes, find_probe_by_pc)
8160 (find_probes_in_objfile): Fix comments.
8161
f0407826
DE
81622014-03-02 Doug Evans <xdje42@gmail.com>
8163
8164 * infrun.c (handle_signal_stop): Replace test for
8165 TARGET_WAITKIND_STOPPED with an assert.
8166
35e6a711
DE
81672014-03-02 Doug Evans <xdje42@gmail.com>
8168
8169 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8170
667f9d0b
DE
81712014-03-02 Doug Evans <xdje42@gmail.com>
8172
8173 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8174
dc92ace0
MK
81752014-03-01 Mark Kettenis <kettenis@gnu.org>
8176
8177 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8178
a900370f
MK
81792014-03-01 Mark Kettenis <kettenis@gnu.org>
8180
8181 * i386obsd-nat.c: Include "obsd-nat.h".
8182 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8183 add_target.
8184 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8185
b72a7981
MK
81862014-03-01 Mark Kettenis <kettenis@gnu.org>
8187
8188 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8189
96c70aba
MK
81902014-03-01 Mark Kettenis <kettenis@gnu.org>
8191
8192 * mips64obsd-nat.c: Include "obsd-nath".
8193 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8194 add_target
8195 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8196
874a80af
MK
81972014-03-01 Mark Kettenis <kettenis@gnu.org>
8198
8fd408f1
MK
8199 * amd64obsd-nat.c: Include "obsd-nat,h.
8200 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8201 add_target.
874a80af
MK
8202 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8203
9cf95373
SC
82042014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8205
8206 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8207 (find_overload_match): Update call to find_oload_champ.
8208 (find_oload_champ_namespace_loop): Likewise
8209
863e4da4
MK
82102014-02-28 Mark Kettenis <kettenis@gnu.org>
8211
025cac40
MK
8212 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8213
1ed586ce
MK
8214 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8215 * config/sparc/obsd64.mh: New file.
8216 * sparc64obsd-nat.c: New file.
8217
863e4da4
MK
8218 * obsd-nat.h: New file.
8219 * obsd-nat.c: New file.
8220 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8221 (ALLDEPFILES): Add obsd-nat.c.
8222
89de4da4
TT
82232014-02-28 Tom Tromey <tromey@redhat.com>
8224
8225 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8226 * cli-out.h (cli_ui_out_impl): Now const.
8227 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8228 * ui-out.c (struct ui_out) <impl>: Now const.
8229 (default_ui_out_impl): Now const.
8230 (ui_out_new): Make 'impl' parameter const.
8231 * ui-out.h (ui_out_new): Update.
8232
c725e7b6
MK
82332014-02-27 Mark Kettenis <kettenis@gnu.org>
8234
8235 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8236
670b46b3
MK
82372014-02-27 Mark Kettenis <kettenis@gnu.org>
8238
8239 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8240
c91550fc
JK
82412014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8242
8243 Additional PR 8882 fix.
8244 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8245
2fa0369e
PA
82462014-02-27 Pedro Alves <palves@redhat.com>
8247
8248 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8249 isn't set.
8250
d632a097
PA
82512014-02-27 Pedro Alves <palves@redhat.com>
8252
8253 PR 12702
8254 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8255 * nat/linux-waitpid.c: Include string.h.
8256 (status_to_str): Moved here and made extern.
8257 * nat/linux-waitpid.h (status_to_str): New declaration.
8258
2ebd5a35
HZ
82592014-02-27 Hui Zhu <hui@codesourcery.com>
8260
8261 PR 12702
8262 * infrun.c (ptid_match): Move ...
8263 * common/ptid.c (ptid_match): ... here.
8264 * inferior.h (ptid_match): Move ...
8265 * common/ptid.h (ptid_match): ... here.
8266
3cdd631f
MK
82672014-02-27 Mark Kettenis <kettenis@gnu.org>
8268
8269 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8270 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8271 gdb_target_obs.
8272
bee30a64
MK
82732014-02-27 Mark Kettenis <kettenis@gnu.org>
8274
8275 * obsd-tdep.c (obsd_auxv_parse): New function.
8276 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8277
8278 * gdbarch.sh (auxv_parse): New.
8279 * gdbarch.h: Regenerated.
8280 * gdbarch.c: Regenerated.
8281 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8282
7a5a839f
LC
82832014-02-26 Ludovic Courtès <ludo@gnu.org>
8284
8285 * guile/scm-value.c (gdbscm_history_append_x): New function.
8286 (value_functions): Add it.
8287
31aa7e4e
JB
82882014-02-27 Joel Brobecker <brobecker@adacore.com>
8289
8290 * dwarf2read.c (attr_value_as_address): New function.
8291 (dwarf2_find_base_address, read_call_site_scope): Use
8292 attr_value_as_address in place of DW_ADDR.
8293 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8294 the low and high addresses. Slight rework of the handling
8295 of the high pc being a constant form, and limit it to
8296 DWARF verson 4 or higher.
8297 (dwarf2_record_block_ranges): Likewise.
8298 (read_partial_die): Likewise.
8299 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8300
9b333ba3
TT
83012014-02-26 Tom Tromey <tromey@redhat.com>
8302
8303 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8304
5f6cac40
TT
83052014-02-26 Tom Tromey <tromey@redhat.com>
8306
8307 * elfread.c (elf_read_minimal_symbols): Return early if
8308 minimal symbols have already been read. Add "ei" parameter.
8309 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8310 * minsyms.c (prim_record_minimal_symbol_full): Update.
8311 * objfiles.h (struct objstats) <n_minsyms>: Move...
8312 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8313 * symmisc.c (print_objfile_statistics): Update.
8314
2750ef27
TT
83152014-02-26 Tom Tromey <tromey@redhat.com>
8316
8317 * elfread.c (elf_read_minimal_symbols): New function, from
8318 elf_symfile_read.
8319 (elf_symfile_read): Call it.
8320
34643a32
TT
83212014-02-26 Tom Tromey <tromey@redhat.com>
8322
8323 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8324 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8325 (lookup_minimal_symbol_solib_trampoline)
8326 (lookup_minimal_symbol_by_pc_section_1)
8327 (lookup_minimal_symbol_and_objfile): Update.
8328 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8329 Don't allocate a minimal symbol if minsyms have already been read.
8330 (build_minimal_symbol_hash_tables): Update.
8331 (install_minimal_symbols): Do nothing if minsyms already read.
8332 Use the per-BFD obstack.
8333 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8334 * objfiles.c (allocate_objfile): Call
8335 terminate_minimal_symbol_table later.
8336 (have_minimal_symbols): Update.
8337 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8338 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8339 Move from struct objfile.
8340 <minsyms_read>: New field.
8341 (struct objfile) <msymbols, minimal_symbol_count,
8342 msymbol_hash, msymbol_demangled_hash>: Move.
8343 (ALL_OBJFILE_MSYMBOLS): Update.
8344 * symfile.c (read_symbols): Set minsyms_read.
8345 (reread_symbols): Update.
8346 * symmisc.c (dump_objfile, dump_msymbols): Update.
8347
2273f0ac
TT
83482014-02-26 Tom Tromey <tromey@redhat.com>
8349
8350 * minsyms.c (msymbols_sort): Remove.
8351 * minsyms.h (msymbols_sort): Remove.
8352 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8353 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8354 * elfread.c (elf_symtab_read): Don't add section offsets.
8355 * xcoffread.c (record_minimal_symbol): Don't add section offset
8356 to minimal symbol address.
8357 * somread.c (text_offset, data_offset): Remove.
8358 (som_symtab_read): Don't add section offsets to minimal symbol
8359 addresses.
8360 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8361 Don't add section offsets to minimal symbols.
8362 * coffread.c (coff_symtab_read): Don't add section offsets
8363 to minimal symbol addresses.
8364 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8365 to minimal symbol addresses.
8366 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8367 section offset to minimal symbol addresses.
8368 * mdebugread.c (parse_partial_symbols): Don't add section
8369 offset to minimal symbol addresses.
8370 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8371 offset to minimal symbol addresses.
8372
77e371c0
TT
83732014-02-26 Tom Tromey <tromey@redhat.com>
8374
8375 * ada-lang.c (ada_main_name): Update.
8376 (ada_add_standard_exceptions): Update.
8377 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8378 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8379 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8380 * auxv.c (ld_so_xfer_auxv): Update.
8381 * avr-tdep.c (avr_scan_prologue): Update.
8382 * ax-gdb.c (gen_var_ref): Update.
8383 * blockframe.c (get_pc_function_start)
8384 (find_pc_partial_function_gnu_ifunc): Update.
8385 * breakpoint.c (create_overlay_event_breakpoint)
8386 (create_longjmp_master_breakpoint)
8387 (create_std_terminate_master_breakpoint)
8388 (create_exception_master_breakpoint): Update.
8389 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8390 * c-valprint.c (c_val_print): Update.
8391 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8392 * common/agent.c (agent_look_up_symbols): Update.
8393 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8394 * dwarf2loc.c (call_site_to_target_addr): Update.
8395 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8396 * elfread.c (elf_gnu_ifunc_record_cache)
8397 (elf_gnu_ifunc_resolve_by_got): Update.
8398 * findvar.c (default_read_var_value): Update.
8399 * frame.c (inside_main_func): Update.
8400 * frv-tdep.c (frv_frame_this_id): Update.
8401 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8402 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8403 Update.
8404 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8405 (hppa_hpux_find_dummy_bpaddr): Update.
8406 * hppa-tdep.c (hppa_symbol_address): Update.
8407 * infcmd.c (until_next_command): Update.
8408 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8409 Update.
8410 * linespec.c (minsym_found, add_minsym): Update.
8411 * linux-nat.c (get_signo): Update.
8412 * linux-thread-db.c (inferior_has_bug): Update.
8413 * m32c-tdep.c (m32c_return_value)
8414 (m32c_m16c_address_to_pointer): Update.
8415 * m32r-tdep.c (m32r_frame_this_id): Update.
8416 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8417 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8418 * maint.c (maintenance_translate_address): Update.
8419 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8420 (frob_address): New function.
8421 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8422 frob_address. Rename parameter to "pc_in".
8423 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8424 addresses.
8425 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8426 Update.
8427 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8428 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8429 * objc-lang.c (find_objc_msgsend): Update.
8430 * objfiles.c (objfile_relocate1): Update.
8431 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8432 * p-valprint.c (pascal_val_print): Update.
8433 * parse.c (write_exp_msymbol): Update.
8434 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8435 (ppc_elfv2_skip_entrypoint): Update.
8436 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8437 * printcmd.c (build_address_symbolic, msym_info)
8438 (address_info): Update.
8439 * proc-service.c (ps_pglobal_lookup): Update.
8440 * psymtab.c (find_pc_sect_psymtab_closer)
8441 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8442 Change msymbol parameter to bound_minimal_symbol.
8443 * ravenscar-thread.c (get_running_thread_id): Update.
8444 * remote.c (remote_check_symbols): Update.
8445 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8446 address.
8447 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8448 * solib-dsbt.c (lm_base): Update.
8449 * solib-frv.c (lm_base, main_got): Update.
8450 * solib-irix.c (locate_base): Update.
8451 * solib-som.c (som_solib_create_inferior_hook)
8452 (link_map_start): Update.
8453 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8454 * solib-svr4.c (elf_locate_base, enable_break): Update.
8455 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8456 (flush_ea_cache): Update.
8457 * stabsread.c (define_symbol, scan_file_globals): Update.
8458 * stack.c (find_frame_funname): Update.
8459 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8460 (debug_qf_find_pc_sect_symtab): Update.
8461 * symfile.c (simple_read_overlay_table)
8462 (simple_overlay_update): Update.
8463 * symfile.h (struct quick_symbol_functions)
8464 <find_pc_sect_symtab>: Change type of msymbol to
8465 bound_minimal_symbol.
8466 * symmisc.c (dump_msymbols): Update.
8467 * symtab.c (find_pc_sect_symtab_via_partial)
8468 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8469 (search_symbols, print_msymbol_info): Update.
8470 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8471 (MSYMBOL_VALUE_ADDRESS): Redefine.
8472 (BMSYMBOL_VALUE_ADDRESS): New macro.
8473 * tracepoint.c (scope_info): Update.
8474 * tui/tui-disasm.c (tui_find_disassembly_address)
8475 (tui_get_begin_asm_address): Update.
8476 * valops.c (find_function_in_inferior): Update.
8477 * value.c (value_static_field, value_fn_field): Update.
8478
3b7344d5
TT
84792014-02-26 Tom Tromey <tromey@redhat.com>
8480
8481 * ada-lang.c (ada_update_initial_language): Update.
8482 (ada_main_name, ada_has_this_exception_support): Update.
8483 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8484 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8485 * arm-tdep.c (arm_skip_stub): Update.
8486 * auxv.c (ld_so_xfer_auxv): Update.
8487 * avr-tdep.c (avr_scan_prologue): Update.
8488 * ax-gdb.c (gen_var_ref): Update.
8489 * breakpoint.c (struct breakpoint_objfile_data)
8490 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8491 type to bound_minimal_symbol.
8492 (create_overlay_event_breakpoint)
8493 (create_longjmp_master_breakpoint)
8494 (create_std_terminate_master_breakpoint)
8495 (create_exception_master_breakpoint): Update.
8496 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8497 * c-exp.y (classify_name): Update.
8498 * coffread.c (coff_symfile_read): Update.
8499 * common/agent.c (agent_look_up_symbols): Update.
8500 * d-lang.c (d_main_name): Update.
8501 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8502 * dec-thread.c (enable_dec_thread): Update.
8503 * dwarf2loc.c (call_site_to_target_addr): Update.
8504 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8505 * eval.c (evaluate_subexp_standard): Update.
8506 * findvar.c (struct minsym_lookup_data) <result>: Change type
8507 to bound_minimal_symbol.
8508 <objfile>: Remove.
8509 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8510 * frame.c (inside_main_func): Update.
8511 * frv-tdep.c (frv_frame_this_id): Update.
8512 * gcore.c (call_target_sbrk): Update.
8513 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8514 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8515 Update.
8516 * go-lang.c (go_main_name): Update.
8517 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8518 (hppa_hpux_find_import_stub_for_addr): Update.
8519 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8520 Update. Change return type.
8521 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8522 type.
8523 * jit.c (jit_breakpoint_re_set_internal): Update.
8524 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8525 Update.
8526 * linux-nat.c (get_signo): Update.
8527 * linux-thread-db.c (inferior_has_bug): Update
8528 * m32c-tdep.c (m32c_return_value)
8529 (m32c_m16c_address_to_pointer): Update.
8530 * m32r-tdep.c (m32r_frame_this_id): Update.
8531 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8532 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8533 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8534 lookup_minimal_symbol. Change return type.
8535 (lookup_minimal_symbol): Remove.
8536 (lookup_bound_minimal_symbol): Update.
8537 (lookup_minimal_symbol_text): Change return type.
8538 (lookup_minimal_symbol_solib_trampoline): Change return type.
8539 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8540 (lookup_minimal_symbol_solib_trampoline): Change return type.
8541 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8542 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8543 (value_nsstring, find_imps): Update.
8544 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8545 * p-lang.c (pascal_main_name): Update.
8546 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8547 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8548 * proc-service.c (ps_pglobal_lookup): Update.
8549 * ravenscar-thread.c (get_running_thread_msymbol): Change
8550 return type.
8551 (has_ravenscar_runtime, get_running_thread_id): Update.
8552 * remote.c (remote_check_symbols): Update.
8553 * sol-thread.c (ps_pglobal_lookup): Update.
8554 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8555 * solib-dsbt.c (lm_base): Update.
8556 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8557 Update.
8558 * solib-irix.c (locate_base): Update.
8559 * solib-som.c (som_solib_create_inferior_hook)
8560 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8561 Update.
8562 * solib-spu.c (spu_enable_break): Update.
8563 * solib-svr4.c (elf_locate_base, enable_break): Update.
8564 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8565 (flush_ea_cache): Update.
8566 * stabsread.c (define_symbol): Update.
8567 * symfile.c (simple_read_overlay_table): Update.
8568 * symtab.c (find_pc_sect_line): Update.
8569 * tracepoint.c (scope_info): Update.
8570 * tui-disasm.c (tui_get_begin_asm_address): Update.
8571 * value.c (value_static_field): Update.
8572
40c1a007
TT
85732014-02-26 Tom Tromey <tromey@redhat.com>
8574
8575 * minsyms.c (prim_record_minimal_symbol_full): Use
8576 SET_MSYMBOL_VALUE_ADDRESS.
8577 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8578 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8579 SET_MSYMBOL_VALUE_ADDRESS.
8580 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8581 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8582
efd66ac6
TT
85832014-02-26 Tom Tromey <tromey@redhat.com>
8584
8585 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8586 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8587 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8588 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8589 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8590 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8591 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8592 * ada-lang.c (ada_main_name): Update.
8593 (ada_lookup_simple_minsym): Update.
8594 (ada_make_symbol_completion_list): Update.
8595 (ada_add_standard_exceptions): Update.
8596 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8597 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8598 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8599 * arm-tdep.c (skip_prologue_function): Update.
8600 (arm_skip_stack_protector, arm_skip_stub): Update.
8601 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8602 (arm_wince_skip_main_prologue): Update.
8603 * auxv.c (ld_so_xfer_auxv): Update.
8604 * avr-tdep.c (avr_scan_prologue): Update.
8605 * ax-gdb.c (gen_var_ref): Update.
8606 * block.c (call_site_for_pc): Update.
8607 * blockframe.c (get_pc_function_start): Update.
8608 (find_pc_partial_function_gnu_ifunc): Update.
8609 * breakpoint.c (create_overlay_event_breakpoint): Update.
8610 (create_longjmp_master_breakpoint): Update.
8611 (create_std_terminate_master_breakpoint): Update.
8612 (create_exception_master_breakpoint): Update.
8613 (resolve_sal_pc): Update.
8614 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8615 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8616 Update.
8617 * c-valprint.c (c_val_print): Update.
8618 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8619 * coffread.c (coff_symfile_read): Update.
8620 * common/agent.c (agent_look_up_symbols): Update.
8621 * dbxread.c (find_stab_function_addr): Update.
8622 (end_psymtab): Update.
8623 * dwarf2loc.c (call_site_to_target_addr): Update.
8624 (func_verify_no_selftailcall): Update.
8625 (tailcall_dump): Update.
8626 (call_site_find_chain_1): Update.
8627 (dwarf_expr_reg_to_entry_parameter): Update.
8628 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8629 (elf_gnu_ifunc_resolve_by_got): Update.
8630 * f-valprint.c (info_common_command): Update.
8631 * findvar.c (read_var_value): Update.
8632 * frame.c (get_prev_frame_1): Update.
8633 (inside_main_func): Update.
8634 * frv-tdep.c (frv_skip_main_prologue): Update.
8635 (frv_frame_this_id): Update.
8636 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8637 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8638 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8639 (gnuv3_skip_trampoline): Update.
8640 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8641 (hppa64_hpux_in_solib_call_trampoline): Update.
8642 (hppa_hpux_skip_trampoline_code): Update.
8643 (hppa64_hpux_search_dummy_call_sequence): Update.
8644 (hppa_hpux_find_import_stub_for_addr): Update.
8645 (hppa_hpux_find_dummy_bpaddr): Update.
8646 * hppa-tdep.c (hppa_symbol_address)
8647 (hppa_lookup_stub_minimal_symbol): Update.
8648 * i386-tdep.c (i386_skip_main_prologue): Update.
8649 (i386_pe_skip_trampoline_code): Update.
8650 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8651 * infcall.c (get_function_name): Update.
8652 * infcmd.c (until_next_command): Update.
8653 * jit.c (jit_breakpoint_re_set_internal): Update.
8654 (jit_inferior_init): Update.
8655 * linespec.c (minsym_found): Update.
8656 (add_minsym): Update.
8657 * linux-fork.c (info_checkpoints_command): Update.
8658 * linux-nat.c (get_signo): Update.
8659 * linux-thread-db.c (inferior_has_bug): Update.
8660 * m32c-tdep.c (m32c_return_value): Update.
8661 (m32c_m16c_address_to_pointer): Update.
8662 (m32c_m16c_pointer_to_address): Update.
8663 * m32r-tdep.c (m32r_frame_this_id): Update.
8664 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8665 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8666 * maint.c (maintenance_translate_address): Update.
8667 * minsyms.c (add_minsym_to_hash_table): Update.
8668 (add_minsym_to_demangled_hash_table): Update.
8669 (msymbol_objfile): Update.
8670 (lookup_minimal_symbol): Update.
8671 (iterate_over_minimal_symbols): Update.
8672 (lookup_minimal_symbol_text): Update.
8673 (lookup_minimal_symbol_by_pc_name): Update.
8674 (lookup_minimal_symbol_solib_trampoline): Update.
8675 (lookup_minimal_symbol_by_pc_section_1): Update.
8676 (lookup_minimal_symbol_and_objfile): Update.
8677 (prim_record_minimal_symbol_full): Update.
8678 (compare_minimal_symbols): Update.
8679 (compact_minimal_symbols): Update.
8680 (build_minimal_symbol_hash_tables): Update.
8681 (install_minimal_symbols): Update.
8682 (terminate_minimal_symbol_table): Update.
8683 (find_solib_trampoline_target): Update.
8684 (minimal_symbol_upper_bound): Update.
8685 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8686 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8687 (mips_skip_pic_trampoline_code): Update.
8688 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8689 * objc-lang.c (selectors_info): Update.
8690 (classes_info): Update.
8691 (find_methods): Update.
8692 (find_imps): Update.
8693 (find_objc_msgsend): Update.
8694 * objfiles.c (objfile_relocate1): Update.
8695 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8696 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8697 * p-valprint.c (pascal_val_print): Update.
8698 * parse.c (write_exp_msymbol): Update.
8699 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8700 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8701 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8702 * printcmd.c (build_address_symbolic): Update.
8703 (sym_info): Update.
8704 (address_info): Update.
8705 * proc-service.c (ps_pglobal_lookup): Update.
8706 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8707 (find_pc_sect_psymtab): Update.
8708 * python/py-framefilter.c (py_print_frame): Update.
8709 * ravenscar-thread.c (get_running_thread_id): Update.
8710 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8711 Update.
8712 * remote.c (remote_check_symbols): Update.
8713 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8714 (rs6000_skip_trampoline_code): Update.
8715 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8716 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8717 * solib-dsbt.c (lm_base): Update.
8718 * solib-frv.c (lm_base): Update.
8719 (main_got): Update.
8720 * solib-irix.c (locate_base): Update.
8721 * solib-som.c (som_solib_create_inferior_hook): Update.
8722 (som_solib_desire_dynamic_linker_symbols): Update.
8723 (link_map_start): Update.
8724 * solib-spu.c (spu_enable_break): Update.
8725 (ocl_enable_break): Update.
8726 * solib-svr4.c (elf_locate_base): Update.
8727 (enable_break): Update.
8728 * spu-tdep.c (spu_get_overlay_table): Update.
8729 (spu_catch_start): Update.
8730 (flush_ea_cache): Update.
8731 * stabsread.c (define_symbol): Update.
8732 (scan_file_globals): Update.
8733 * stack.c (find_frame_funname): Update.
8734 (frame_info): Update.
8735 * symfile.c (simple_read_overlay_table): Update.
8736 (simple_overlay_update): Update.
8737 * symmisc.c (dump_msymbols): Update.
8738 * symtab.c (fixup_section): Update.
8739 (find_pc_sect_line): Update.
8740 (skip_prologue_sal): Update.
8741 (search_symbols): Update.
8742 (print_msymbol_info): Update.
8743 (rbreak_command): Update.
8744 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8745 (completion_list_objc_symbol): Update.
8746 (default_make_symbol_completion_list_break_on): Update.
8747 * tracepoint.c (scope_info): Update.
8748 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8749 (tui_get_begin_asm_address): Update.
8750 * valops.c (find_function_in_inferior): Update.
8751 * value.c (value_static_field): Update.
8752 (value_fn_field): Update.
8753
50e65b17
TT
87542014-02-26 Tom Tromey <tromey@redhat.com>
8755
8756 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8757 bound minimal symbols. Move code that knows about minsym
8758 table layout...
8759 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8760 function.
8761 * minsyms.h (minimal_symbol_upper_bound): Declare.
8762 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8763 minimal_symbol_upper_bound.
8764
1b588015
JB
87652014-02-27 Joel Brobecker <brobecker@adacore.com>
8766
8767 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8768 Use the type's name if its basic type does not have a tag.
8769
dbb9c2b1
JB
87702014-02-27 Joel Brobecker <brobecker@adacore.com>
8771
8772 * dwarf2read.c (read_subrange_type): Add comment.
8773
55426c9d
JB
87742014-02-27 Joel Brobecker <brobecker@adacore.com>
8775
8776 * dwarf2read.c (update_enumeration_type_from_children): New
8777 function, mostly extracted from process_structure_scope.
8778 (read_enumeration_type): Call update_enumeration_type_from_children.
8779 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8780 and flag_flag_enum fields.
8781
f2fce0ca
PA
87822014-02-26 Pedro Alves <palves@redhat.com>
8783
8784 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8785 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8786 to_xfer_partial method.
8787
7a44e40e
PA
87882014-02-26 Pedro Alves <palves@redhat.com>
8789
8790 * target.c (complete_target_initialization): Don't install
8791 default_xfer_partial as to_xfer_partial hook.
8792 (nomemory): Delete.
8793 (update_current_target): Don't INHERIT nor de_fault
8794 deprecated_xfer_memory. Delete de_fault macro.
8795 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8796 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8797 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8798 field.
8799
bd265cd0
PA
88002014-02-26 Pedro Alves <palves@redhat.com>
8801
8802 * go32-nat.c (my_write_child): New function.
8803 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8804 (go32_xfer_partial): New function.
8805 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8806 Instead install a to_xfer_partial hook.
8807
9d46c4e5
PA
88082014-02-26 Pedro Alves <palves@redhat.com>
8809
8810 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8811 to_xfer_partial helper. Rewrite.
8812 (procfs_xfer_partial): New function.
8813 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8814 Install a to_xfer_partial hook.
8815
a1583b1f
PA
88162014-02-26 Pedro Alves <palves@redhat.com>
8817
8818 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8819 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8820 (m32r_xfer_partial): New function.
8821 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8822 Install a to_xfer_partial hook.
8823
6df1b29f
PA
88242014-02-26 Pedro Alves <palves@redhat.com>
8825
8826 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8827 helper.
8828 (mips_xfer_partial): New function.
8829 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8830 hook. Install a to_xfer_partial hook.
8831
dc53a7ad
JB
88322014-02-26 Joel Brobecker <brobecker@adacore.com>
8833
8834 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8835 * gdbtypes.c (create_array_type_with_stride): New function,
8836 renaming create_array_type, but with an added parameter
8837 called "bit_stride".
8838 (create_array_type): Re-implement using
8839 create_array_type_with_stride.
8840 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8841 and DW_AT_bit_stride attributes.
8842
12ab52e9
PA
88432014-02-26 Pedro Alves <palves@redhat.com>
8844
8845 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8846 task-specific breakpoints.
8847
d16461ae
PA
88482014-02-25 Pedro Alves <palves@redhat.com>
8849
8850 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8851 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8852
a8b16220
SS
88532014-02-25 Stan Shebs <stan@codesourcery.com>
8854
8855 * defs.h: Annotate comments for Doxygen.
8856
b9e795ee
TT
88572014-02-25 Tom Tromey <tromey@redhat.com>
8858
8859 * target.h (target_ignore): Don't declare.
8860 * target.c (target_ignore): Remove.
8861
849c862e
JK
88622014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8863
8864 PR gdb/16626
8865 * auto-load.c (auto_load_objfile_script_1): Change filename to
8866 debugfile.
8867
475109d8
JB
88682014-02-25 Joel Brobecker <brobecker@adacore.com>
8869
8870 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8871 documentation. Adjust prototype to match the target_ops
8872 to_xfer_partial method. Adjust implementation accordingly.
8873
e186c3bd
HZ
88742014-02-25 Hui Zhu <hui@codesourcery.com>
8875
8876 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8877 to_traceframe_info.
8878
6d451942
KB
88792014-02-25 Kevin Buettner <kevinb@redhat.com>
8880
041ab8b4 8881 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8882 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8883 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8884 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8885 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8886 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8887 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8888 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8889 New constants.
8890 (rl78_register_type): Use a data pointer type for SP and
8891 new pseudo registers mentioned above. Use a 16 bit integer
8892 type for all other register pairs.
8893 (rl78_register_name, rl78_g10_register_name): Update for
8894 new pseudo registers.
8895 (rl78_pseudo_register_read): Likewise.
8896 (rl78_pseudo_register_write): Likewise.
8897 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8898 to the newly added pseudo registers.
8899
eddf0bae
DE
89002014-02-24 Doug Evans <dje@google.com>
8901
8902 * value.c (record_latest_value): Fix comment.
8903 * printcmd.c (print_command_1): Remove code to handle -1 return from
8904 record_latest_value.
8905
e96027e0
PA
89062014-02-24 Pedro Alves <palves@redhat.com>
8907
8908 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8909 deprecated_xfer_memory hook.
8910 (procfs_xfer_partial): Call procfs_xfer_memory instead
8911 of the deprecated_xfer_memory target hook.
8912 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8913 helper.
8914
0837c976
YZ
89152014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8916
8917 * windows-nat.c (windows_xfer_shared_libraries): Return
8918 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8919 requested object is TARGET_OBJECT_LIBRARIES.
8920
bc113b4e
YQ
89212014-02-24 Yao Qi <yao@codesourcery.com>
8922
8923 * target.h (enum target_xfer_status)
8924 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8925 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8926 explicitly. New.
8927 * corefile.c (memory_error_message): User updated.
8928 * exec.c (section_table_read_available_memory): Likewise.
8929 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8930 * target.c (target_xfer_status_to_string): Likewise.
8931 (raw_memory_xfer_partial): Likewise.
8932 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8933 * valops.c (read_value_memory): Likewise.
8934 * exec.h: Update comments.
8935
01cb8804
YQ
89362014-02-24 Yao Qi <yao@codesourcery.com>
8937
8938 * target.c (target_xfer_status_to_string): Rename argument err
8939 to status.
8940 * target.h (target_xfer_status_to_string): Update declaration.
8941 Replace target_xfer_error_to_string with
8942 target_xfer_status_to_string in comment.
8943
93063aa6
YQ
89442014-02-24 Yao Qi <yao@codesourcery.com>
8945
8946 * mips-linux-nat.c (super_close): Update its type.
8947 (mips_linux_close): Pass 'self' to super_close.
8948
5c328c05
YQ
89492014-02-24 Yao Qi <yao@codesourcery.com>
8950
8951 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8952 * corefile.c (read_memory): Adjusted.
8953 * target.c (target_write_with_progress): Adjusted.
8954
f73023dd
YQ
89552014-02-23 Yao Qi <yao@codesourcery.com>
8956
8957 Revert two patches:
8958
8959 2013-10-25 Yao Qi <yao@codesourcery.com>
8960
8961 * remote.c (remote_traceframe_info): Return early if
8962 traceframe is not selected.
8963
8964 2013-07-19 Yao Qi <yao@codesourcery.com>
8965
8966 * target.c (update_current_target): Change the default action
8967 of 'to_traceframe_info' from tcomplain to return_zero.
8968 * target.h (struct target_ops) <to_traceframe_info>: Add more
8969 comments.
8970
5a2eb0ef
YQ
89712014-02-23 Yao Qi <yao@codesourcery.com>
8972
8973 * valops.c (read_value_memory): Rewrite it. Call
8974 target_xfer_partial in a loop.
8975 * exec.h (section_table_available_memory): Remove declaration.
8976 Move comments to ...
8977 * exec.c (section_table_available_memory): ... here. Make it
8978 static.
8979
1ee79381
YQ
89802014-02-23 Yao Qi <yao@codesourcery.com>
8981
8982 * exec.c (section_table_read_available_memory): New function.
8983 * exec.h (section_table_read_available_memory): Declare.
8984 * ctf.c (ctf_xfer_partial): Call
8985 section_table_read_available_memory.
8986 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8987
1ca49d37
YQ
89882014-02-23 Yao Qi <yao@codesourcery.com>
8989
8990 * ctf.c (ctf_xfer_partial): Move code to ...
8991 * exec.c (exec_read_partial_read_only): ... it. New function.
8992 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8993 * tracefile.c: Include "exec.h".
8994 * exec.h (exec_read_partial_read_only): Declare.
8995
a283690e
YQ
89962014-02-23 Yao Qi <yao@codesourcery.com>
8997
8998 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8999 (tfile_has_memory): Remove.
9000 (init_tfile_ops): Don't set fields to_has_all_memory and
9001 to_has_memory of tfile_ops.
9002 * tracefile.c (tracefile_has_all_memory): New function.
9003 (tracefile_has_memory): New function.
9004 (init_tracefile_ops): Initialize fields to_has_all_memory and
9005 to_has_memory of 'ops'.
9006
12e03cd0
YQ
90072014-02-23 Yao Qi <yao@codesourcery.com>
9008
9009 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9010 (ctf_thread_alive, ctf_get_trace_status): Remove.
9011 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9012 init_tracefile_ops.
9013 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9014 (tfile_has_stack, tfile_has_registers): Remove.
9015 (tfile_thread_alive): Remove.
9016 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9017 init_tracefile_ops.
9018 * tracefile.c (tracefile_has_stack): New function.
9019 (tracefile_has_registers): New function.
9020 (tracefile_thread_alive): New function.
9021 (tracefile_get_trace_status): New function.
9022 (init_tracefile_ops): New function.
9023 * tracefile.h (init_tracefile_ops): Declare.
9024
11395323
YQ
90252014-02-23 Yao Qi <yao@codesourcery.com>
9026
9027 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9028 (O_LARGEFILE): Likewise.
9029 (tfile_ops): Likewise.
9030 (TRACE_HEADER_SIZE): Likewise.
9031 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9032 (cur_data_size): Likewise.
9033 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9034 (tfile_close, tfile_files_info): Likewise.
9035 (tfile_get_trace_status): Likewise.
9036 (tfile_get_tracepoint_status): Likewise.
9037 (tfile_get_traceframe_address): Likewise.
9038 (tfile_trace_find, match_blocktype): Likewise.
9039 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9040 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9041 (tfile_get_trace_state_variable_value): Likewise.
9042 (tfile_has_all_memory, tfile_has_memory): Likewise.
9043 (tfile_has_stack, tfile_has_registers): Likewise.
9044 (tfile_thread_alive, build_traceframe_info): Likewise.
9045 (tfile_traceframe_info, init_tfile_ops): Likewise.
9046 (_initialize_tracepoint): Don't call init_tfile_ops
9047 and add_target_with_completer.
9048 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9049 exec.h, completer.h and filenames.h.
9050 (_initialize_tracefile_tfile): New function.
9051
7951c4eb
YQ
90522014-02-23 Yao Qi <yao@codesourcery.com>
9053
9054 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9055 tracefile-tfile.o.
9056 (HFILES_NO_SRCDIR): Add tracefile.h.
9057 * ctf.c: Include "tracefile.h".
9058 * tracefile.h: New file.
9059 * tracefile.c: New file
9060 * tracefile-tfile.c: New file.
9061 * tracepoint.c: Include "tracefile.h".
9062 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9063 (stop_reason_names): Add const.
9064 (trace_file_writer_xfree): Move it to tracefile.c.
9065 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9066 (trace_save_ctf): Likewise.
9067 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9068 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9069 (tfile_write_header, tfile_write_regblock_type): Likewise.
9070 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9071 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9072 (tfile_write_raw_data, tfile_end): Likewise.
9073 (tfile_trace_file_writer_new): Likewise.
9074 (free_uploaded_tp): Make it extern.
9075 (free_uploaded_tsv): Make it extern.
9076 (_initialize_tracepoint): Move code to register command 'tsave'
9077 to tracefile.c.
9078 * tracepoint.h (stop_reason_names): Declare.
9079 (struct trace_frame_write_ops): Move it to tracefile.h.
9080 (struct trace_file_write_ops): Likewise.
9081 (struct trace_file_writer): Likewise.
9082 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9083
184cd072
JK
90842014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9085
9086 PR gdb/16594
9087 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9088 process name.
9089 (get_cores_used_by_process): New parameter num_cores, use it.
9090 (linux_xfer_osdata_processes): Pass num_cores to it.
9091 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9092 process name.
9093
c63528fc
AK
90942014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9095
9096 * target.c (memory_xfer_partial): Fix length arg in call to
9097 breakpoint_xfer_memory.
9098
d7b30f67
SDJ
90992014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9100
9101 PR tdep/16397
9102 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9103 number comes after the + or - signs. Adjust length of register
9104 name to be extracted.
9105
8838afaf
TT
91062014-02-20 Tom Tromey <tromey@redhat.com>
9107
9108 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9109 (ada_varobj_ops): Mark "extern".
9110
05227d14
TT
91112014-02-20 Tom Tromey <tromey@redhat.com>
9112
9113 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9114
1254eefc
DE
91152014-02-20 Doug Evans <xdje42@gmail.com>
9116
9117 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9118 All callers updated.
9119 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9120 All callers updated.
9121 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9122 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9123
adde2bff
DE
91242014-02-20 lin zuojian <manjian2006@gmail.com>
9125 Joel Brobecker <brobecker@adacore.com>
9126 Doug Evans <xdje42@gmail.com>
9127
9128 PR symtab/16581
9129 * dwarf2read.c (struct die_info): New member in_process.
9130 (reset_die_in_process): New function.
9131 (process_die): Set it at the start, reset when returning.
9132 (inherit_abstract_dies): Only call process_die if origin_child_die
9133 not already being processed.
9134
3be75f87
JB
91352014-02-20 Joel Brobecker <brobecker@adacore.com>
9136
9137 * windows-nat.c (handle_unload_dll): Add function documentation.
9138 (do_initial_windows_stuff): Add comment explaining why we wait
9139 until after inferior initialization has finished before
9140 processing all DLLs.
9141
47f7ffdb
JB
91422014-02-20 Joel Brobecker <brobecker@adacore.com>
9143
9144 * windows-nat.c (get_module_name): Delete.
9145 (windows_get_exec_module_filename): New function, mostly
9146 inspired from get_module_name.
9147 (windows_pid_to_exec_file): Replace call to get_module_name
9148 by call to windows_get_exec_module_filename.
9149
1cd9feab
JB
91502014-02-20 Joel Brobecker <brobecker@adacore.com>
9151
9152 * windows-nat.c (handle_load_dll): Rewrite this function's
9153 introductory comment. Remove code using get_module_name
9154 to get the DLL's name.
9155
ea39ad35
JB
91562014-02-20 Joel Brobecker <brobecker@adacore.com>
9157
9158 * windows-nat.c (get_windows_debug_event): Ignore
9159 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9160 if windows_initialization_done == 0.
9161 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9162 Adjust implementation to always load all DLLs.
9163 (do_initial_windows_stuff): Replace call to
9164 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9165
95060284
JB
91662014-02-20 Joel Brobecker <brobecker@adacore.com>
9167
9168 * windows-nat.c (_initialize_windows_nat): Deprecate the
9169 "dll-symbols" command. Turn the "add-shared-symbol-files"
9170 and "assf" aliases into commands, and deprecate them as well.
9171 * NEWS: Add entry explaining that "dll-symbols" and its two
9172 aliases are now deprecated.
9173
8d4fdb12
JB
91742014-02-20 Joel Brobecker <brobecker@adacore.com>
9175
9176 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9177 new-line in debug string. Remove trailing spaces.
9178
1b281443
SS
91792014-02-19 Stan Shebs <stan@codesourcery.com>
9180
9181 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9182
f7bd0f78
SC
91832014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9184
9185 * NEWS: Add entry for the new feature
9186 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9187 and class values.
9188
399ebc3d
SS
91892014-02-19 Stan Shebs <stan@codesourcery.com>
9190
9191 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9192
c658158d
PA
91932014-02-19 Pedro Alves <palves@redhat.com>
9194
9195 * common/ptid.h (struct ptid): Mention that process_stratum
9196 targets should prefer ptid.lwp.
9197
ba348170
PA
91982014-02-19 Pedro Alves <palves@redhat.com>
9199
9200 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9201 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9202 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9203 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9204 store remote thread ids rather than ptid.tid.
9205 (_initialize_remote): Adjust.
9206
ac01945b
TT
92072014-02-19 Tom Tromey <tromey@redhat.com>
9208
9209 * target.c (target_get_unwinder): Rewrite.
9210 (target_get_tailcall_unwinder): Rewrite.
9211 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9212 (record_btrace_to_get_tailcall_unwinder): New function.
9213 (init_record_btrace_ops): Update.
9214 * target.h (struct target_ops) <to_get_unwinder,
9215 to_get_tailcall_unwinder>: Now function pointers. Use
9216 TARGET_DEFAULT_RETURN.
9217
8476dc92
TT
92182014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9221 argument.
9222 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9223
c0eca49f
TT
92242014-02-19 Tom Tromey <tromey@redhat.com>
9225
9226 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9227 directly.
9228 * target-delegates.c: Rebuild.
9229 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9230 TARGET_DEFAULT_FUNC.
9231 * target.c (default_target_decr_pc_after_break): Rename from
9232 forward_target_decr_pc_after_break. Simplify.
9233 (target_decr_pc_after_break): Rely on delegation.
9234
596b6b39
TT
92352014-02-19 Tom Tromey <tromey@redhat.com>
9236
9237 * target.c (update_current_target): Do not INHERIT to_doc or
9238 to_magic. Do not de_fault to_open or to_close.
9239
b427c1bc
TT
92402014-02-19 Tom Tromey <tromey@redhat.com>
9241
9242 * gcore.h (objfile_find_memory_regions): Declare.
9243 * gcore.c (objfile_find_memory_regions): No longer static. Add
9244 "self" argument.
9245 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9246 * exec.c: Include gcore.h.
9247 (exec_set_find_memory_regions): Remove.
9248 (exec_find_memory_regions): Remove.
9249 (exec_do_find_memory_regions): Remove.
9250 (init_exec_ops): Update.
9251 * defs.h (exec_set_find_memory_regions): Remove.
9252
9b144037
TT
92532014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target-delegates.c: Rebuild.
9256 * target.h (struct target_ops) <to_extra_thread_info,
9257 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9258 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9259 not 0, in TARGET_DEFAULT_RETURN.
9260
555bbdeb
TT
92612014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target.c (complete_target_initialization): Remove casts. Use
9264 return_zero_has_execution.
9265 (return_zero): Add "ignore" argument.
9266 (return_zero_has_execution): New function.
9267 (init_dummy_target): Remove casts. Use
9268 return_zero_has_execution.
9269
be4ddd36
TT
92702014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * target.c (update_current_target): Update comments. Do not
9273 INHERIT to_stratum.
9274
2117c711
TT
92752014-02-19 Tom Tromey <tromey@redhat.com>
9276
9277 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9278 needed.
9279 * corelow.c (core_read_description): Delegate when needed.
9280 * remote.c (remote_read_description): Delegate when needed.
9281 * target-delegates.c: Rebuild.
9282 * target.c (target_read_description): Rewrite.
9283 * target.h (struct target_ops) <to_read_description>: Update
9284 comment. Use TARGET_DEFAULT_RETURN.
9285
e88ef65c
TT
92862014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * target-delegates.c: Rebuild.
9289 * target.c (update_current_target): Don't inherit or default
9290 to_can_run.
9291 (find_default_run_target): Check against delegate_can_run.
9292 * target.h (struct target_ops) <to_can_run>: Use
9293 TARGET_DEFAULT_RETURN.
9294
86a0854a
TT
92952014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target-delegates.c: Rebuild.
9298 * target.c (target_disconnect): Unconditionally delegate.
9299 * target.h (struct target_ops) <to_disconnect>: Use
9300 TARGET_DEFAULT_NORETURN.
9301
ee97f592
TT
93022014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * record.c (record_stop): Unconditionally delegate.
9305 * target-delegates.c: Rebuild.
9306 * target.c (target_stop_recording): Unconditionally delegate.
9307 * target.h (struct target_ops) <to_stop_recording>: Use
9308 TARGET_DEFAULT_IGNORE.
9309
6dc7fcf4
TT
93102014-02-19 Tom Tromey <tromey@redhat.com>
9311
9312 * target-delegates.c: Rebuild.
9313 * target.c (target_enable_btrace): Unconditionally delegate.
9314 * target.h (struct target_ops) <to_enable_btrace>: Use
9315 TARGET_DEFAULT_NORETURN.
9316
eb5b20d4
TT
93172014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target-delegates.c: Rebuild.
9320 * target.c (target_read_btrace): Unconditionally delegate.
9321 * target.h (struct target_ops) <to_read_btrace>: Use
9322 TARGET_DEFAULT_NORETURN.
9323
9ace480d
TT
93242014-02-19 Tom Tromey <tromey@redhat.com>
9325
9326 * target-delegates.c: Rebuild.
9327 * target.c (target_teardown_btrace): Unconditionally delegate.
9328 * target.h (struct target_ops) <to_teardown_btrace>: Use
9329 TARGET_DEFAULT_NORETURN.
9330
8dc292d3
TT
93312014-02-19 Tom Tromey <tromey@redhat.com>
9332
9333 * target-delegates.c: Rebuild.
9334 * target.c (target_disable_btrace): Unconditionally delegate.
9335 * target.h (struct target_ops) <to_disable_btrace>: Use
9336 TARGET_DEFAULT_NORETURN.
9337
58a5184e
TT
93382014-02-19 Tom Tromey <tromey@redhat.com>
9339
9340 * target-delegates.c: Rebuild.
9341 * target.c (default_search_memory): New function.
9342 (simple_search_memory): Update comment.
9343 (target_search_memory): Unconditionally delegate.
9344 * target.h (struct target_ops) <to_search_memory>: Use
9345 TARGET_DEFAULT_FUNC.
9346
8de71aab
TT
93472014-02-19 Tom Tromey <tromey@redhat.com>
9348
9349 * auxv.c (default_auxv_parse): No longer static.
9350 (target_auxv_parse): Unconditionally delegate.
9351 * auxv.h (default_auxv_parse): Declare.
9352 * target-delegates.c: Rebuild.
9353 * target.c: Include auxv.h.
9354 * target.h (struct target_ops) <to_auxv_parse>: Use
9355 TARGET_DEFAULT_FUNC.
9356
6b2c5a57
TT
93572014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target-delegates.c: Rebuild.
9360 * target.c (target_memory_map): Unconditionally delegate.
9361 * target.h (struct target_ops) <to_memory_map>: Use
9362 TARGET_DEFAULT_RETURN.
9363
cbffc065
TT
93642014-02-19 Tom Tromey <tromey@redhat.com>
9365
9366 * target-delegates.c: Rebuild.
9367 * target.c (target_thread_alive): Unconditionally delegate.
9368 * target.h (struct target_ops) <to_thread_alive>: Use
9369 TARGET_DEFAULT_RETURN.
9370
f09e2107
TT
93712014-02-19 Tom Tromey <tromey@redhat.com>
9372
9373 * target-delegates.c: Rebuild.
9374 * target.c (target_save_record): Unconditionally delegate.
9375 * target.h (struct target_ops) <to_save_record>: Use
9376 TARGET_DEFAULT_NORETURN.
9377
07366925
TT
93782014-02-19 Tom Tromey <tromey@redhat.com>
9379
9380 * target-delegates.c: Rebuild.
9381 * target.c (target_delete_record): Unconditionally delegate.
9382 * target.h (struct target_ops) <to_delete_record>: Use
9383 TARGET_DEFAULT_NORETURN.
9384
dd2e9d25
TT
93852014-02-19 Tom Tromey <tromey@redhat.com>
9386
9387 * target-delegates.c: Rebuild.
9388 * target.c (target_record_is_replaying): Unconditionally
9389 delegate.
9390 * target.h (struct target_ops) <to_record_is_replaying>: Use
9391 TARGET_DEFAULT_RETURN.
9392
671e76cc
TT
93932014-02-19 Tom Tromey <tromey@redhat.com>
9394
9395 * target-delegates.c: Rebuild.
9396 * target.c (target_goto_record_begin): Unconditionally delegate.
9397 * target.h (struct target_ops) <to_goto_record_begin>: Use
9398 TARGET_DEFAULT_NORETURN.
9399
e9179bb3
TT
94002014-02-19 Tom Tromey <tromey@redhat.com>
9401
9402 * target-delegates.c: Rebuild.
9403 * target.c (target_goto_record_end): Unconditionally delegate.
9404 * target.h (struct target_ops) <to_goto_record_end>: Use
9405 TARGET_DEFAULT_NORETURN.
9406
05969c84
TT
94072014-02-19 Tom Tromey <tromey@redhat.com>
9408
9409 * target-delegates.c: Rebuild.
9410 * target.c (target_goto_record): Unconditionally delegate.
9411 * target.h (struct target_ops) <to_goto_record>: Use
9412 TARGET_DEFAULT_NORETURN.
9413
3679abfa
TT
94142014-02-19 Tom Tromey <tromey@redhat.com>
9415
9416 * target-delegates.c: Rebuild.
9417 * target.c (target_insn_history): Unconditionally delegate.
9418 * target.h (struct target_ops) <to_insn_history>: Use
9419 TARGET_DEFAULT_NORETURN.
9420
8444ab58
TT
94212014-02-19 Tom Tromey <tromey@redhat.com>
9422
9423 * target-delegates.c: Rebuild.
9424 * target.c (target_insn_history_from): Unconditionally delegate.
9425 * target.h (struct target_ops) <to_insn_history_from>: Use
9426 TARGET_DEFAULT_NORETURN.
9427
c29302cc
TT
94282014-02-19 Tom Tromey <tromey@redhat.com>
9429
9430 * target-delegates.c: Rebuild.
9431 * target.c (target_insn_history_range): Unconditionally delegate.
9432 * target.h (struct target_ops) <to_insn_history_range>: Use
9433 TARGET_DEFAULT_NORETURN.
9434
170049d4
TT
94352014-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 * target-delegates.c: Rebuild.
9438 * target.c (target_call_history): Unconditionally delegate.
9439 * target.h (struct target_ops) <to_call_history>: Use
9440 TARGET_DEFAULT_NORETURN.
9441
16fc27d6
TT
94422014-02-19 Tom Tromey <tromey@redhat.com>
9443
9444 * target-delegates.c: Rebuild.
9445 * target.c (target_call_history_from): Unconditionally delegate.
9446 * target.h (struct target_ops) <to_call_history_from>: Use
9447 TARGET_DEFAULT_NORETURN.
9448
115d9817
TT
94492014-02-19 Tom Tromey <tromey@redhat.com>
9450
9451 * target-delegates.c: Rebuild.
9452 * target.c (target_call_history_range): Unconditionally delegate.
9453 * target.h (struct target_ops) <to_call_history_range>: Use
9454 TARGET_DEFAULT_NORETURN.
9455
eb276a6b
TT
94562014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * target-delegates.c: Rebuild.
9459 * target.c (target_verify_memory): Unconditionally delegate.
9460 * target.h (struct target_ops) <to_verify_memory>: Use
9461 TARGET_DEFAULT_NORETURN.
9462
9e538d0d
TT
94632014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * target-delegates.c: Rebuild.
9466 * target.c (target_core_of_thread): Unconditionally delegate.
9467 * target.h (struct target_ops) <to_core_of_thread>: Use
9468 TARGET_DEFAULT_RETURN.
9469
f6fb2925
TT
94702014-02-19 Tom Tromey <tromey@redhat.com>
9471
9472 * target-delegates.c: Rebuild.
9473 * target.c (target_flash_done): Unconditionally delegate.
9474 * target.h (struct target_ops) <to_flash_done>: Use
9475 TARGET_DEFAULT_NORETURN.
9476
e8a6c6ac
TT
94772014-02-19 Tom Tromey <tromey@redhat.com>
9478
9479 * target-delegates.c: Rebuild.
9480 * target.c (target_flash_erase): Unconditionally delegate.
9481 * target.h (struct target_ops) <to_flash_erase>: Use
9482 TARGET_DEFAULT_NORETURN.
9483
7e35c012
TT
94842014-02-19 Tom Tromey <tromey@redhat.com>
9485
9486 * target-delegates.c: Rebuild.
9487 * target.c (target_get_section_table): Unconditionally delegate.
9488 * target.h (struct target_ops) <to_get_section_table>: Use
9489 TARGET_DEFAULT_RETURN.
9490
770234d3
TT
94912014-02-19 Tom Tromey <tromey@redhat.com>
9492
9493 * target-delegates.c: Rebuild.
9494 * target.c (target_pid_to_str): Unconditionally delegate.
9495 (init_dummy_target): Don't initialize to_pid_to_str.
9496 (default_pid_to_str): Rename from dummy_pid_to_str.
9497 * target.h (struct target_ops) <to_pid_to_str>: Use
9498 TARGET_DEFAULT_FUNC.
9499
09b0dc2b
TT
95002014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target-delegates.c: Rebuild.
9503 * target.c (target_find_new_threads): Unconditionally delegate.
9504 * target.h (struct target_ops) <to_find_new_threads>: Use
9505 TARGET_DEFAULT_RETURN.
9506
7d4f8efa
TT
95072014-02-19 Tom Tromey <tromey@redhat.com>
9508
9509 * target-delegates.c: Rebuild.
9510 * target.c (target_program_signals): Unconditionally delegate.
9511 * target.h (struct target_ops) <to_program_signals>: Use
9512 TARGET_DEFAULT_IGNORE.
9513
035cad7f
TT
95142014-02-19 Tom Tromey <tromey@redhat.com>
9515
9516 * target-delegates.c: Rebuild.
9517 * target.c (target_pass_signals): Unconditionally delegate.
9518 * target.h (struct target_ops) <to_pass_signals>: Use
9519 TARGET_DEFAULT_IGNORE.
9520
8d657035
TT
95212014-02-19 Tom Tromey <tromey@redhat.com>
9522
9523 * target-delegates.c: Rebuild.
9524 * target.c (default_mourn_inferior): New function.
9525 (target_mourn_inferior): Unconditionally delegate.
9526 * target.h (struct target_ops) <to_mourn_inferior>: Use
9527 TARGET_DEFAULT_FUNC.
9528
098dba18
TT
95292014-02-19 Tom Tromey <tromey@redhat.com>
9530
9531 * target-delegates.c: Rebuild.
9532 * target.c (default_follow_fork): New function.
9533 (target_follow_fork): Unconditionally delegate.
9534 * target.h (struct target_ops) <to_follow_fork>: Use
9535 TARGET_DEFAULT_FUNC.
9536
423a4807
TT
95372014-02-19 Tom Tromey <tromey@redhat.com>
9538
9539 * target-delegates.c: Rebuild.
9540 * target.c (target_kill): Unconditionally delegate.
9541 * target.h (struct target_ops) <to_kill>: Use
9542 TARGET_DEFAULT_NORETURN.
9543
6c7e5e5c
TT
95442014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target-delegates.c: Rebuild.
9547 * target.c (target_masked_watch_num_registers): Unconditionally
9548 delegate.
9549 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9550 Use TARGET_DEFAULT_RETURN.
9551
8b1c364c
TT
95522014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target-delegates.c: Rebuild.
9555 * target.c (target_remove_mask_watchpoint): Unconditionally
9556 delegate.
9557 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9558 TARGET_DEFAULT_RETURN.
9559
cd4ae029
TT
95602014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target-delegates.c: Rebuild.
9563 * target.c (target_insert_mask_watchpoint): Unconditionally
9564 delegate.
9565 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9566 TARGET_DEFAULT_RETURN.
9567
a134316b
TT
95682014-02-19 Tom Tromey <tromey@redhat.com>
9569
9570 * target-delegates.c: Rebuild.
9571 * target.c (target_ranged_break_num_registers): Unconditionally
9572 delegate.
9573 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9574 Use TARGET_DEFAULT_RETURN.
9575
ad5989bd
TT
95762014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * target-delegates.c: Rebuild.
9579 * target.c (target_fetch_registers): Unconditionally delegate.
9580 * target.h (struct target_ops) <to_fetch_registers>: Use
9581 TARGET_DEFAULT_NORETURN.
9582
46ee7e8d
TT
95832014-02-19 Tom Tromey <tromey@redhat.com>
9584
9585 * target-delegates.c: Rebuild.
9586 * target.c (update_current_target): Don't inherit or default
9587 to_stop.
9588 * target.h (struct target_ops) <to_stop>: Use
9589 TARGET_DEFAULT_IGNORE.
9590
843f59ed
TT
95912014-02-19 Tom Tromey <tromey@redhat.com>
9592
9593 * target-delegates.c: Rebuild.
9594 * target.c (update_current_target): Don't inherit or default
9595 to_can_run_breakpoint_commands.
9596 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9597 Use TARGET_DEFAULT_RETURN.
9598
ccfde2a0
TT
95992014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * target-delegates.c: Rebuild.
9602 * target.c (update_current_target): Don't inherit or default
9603 to_supports_evaluation_of_breakpoint_conditions.
9604 * target.h (struct target_ops)
9605 <to_supports_evaluation_of_breakpoint_conditions>: Use
9606 TARGET_DEFAULT_RETURN.
9607
0de91722
TT
96082014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * target-delegates.c: Rebuild.
9611 * target.c (update_current_target): Don't inherit or default
9612 to_augmented_libraries_svr4_read.
9613 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9614 Use TARGET_DEFAULT_RETURN.
9615
9a7d8b48
TT
96162014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * target-delegates.c: Rebuild.
9619 * target.c (update_current_target): Don't inherit or default
9620 to_can_use_agent.
9621 * target.h (struct target_ops) <to_can_use_agent>: Use
9622 TARGET_DEFAULT_RETURN.
9623
d9db5b21
TT
96242014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * target-delegates.c: Rebuild.
9627 * target.c (update_current_target): Don't inherit or default
9628 to_use_agent.
9629 * target.h (struct target_ops) <to_use_agent>: Use
9630 TARGET_DEFAULT_NORETURN.
9631
92155eeb
TT
96322014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target-delegates.c: Rebuild.
9635 * target.c (update_current_target): Don't inherit or default
9636 to_traceframe_info.
9637 (return_null): Remove.
9638 * target.h (struct target_ops) <to_traceframe_info>: Use
9639 TARGET_DEFAULT_RETURN.
9640
d6522a22
TT
96412014-02-19 Tom Tromey <tromey@redhat.com>
9642
9643 * target-delegates.c: Rebuild.
9644 * target.c (update_current_target): Don't inherit or default
9645 to_static_tracepoint_markers_by_strid.
9646 * target.h (struct target_ops)
9647 <to_static_tracepoint_markers_by_strid>: Use
9648 TARGET_DEFAULT_NORETURN.
9649
4c3e4425
TT
96502014-02-19 Tom Tromey <tromey@redhat.com>
9651
9652 * target-delegates.c: Rebuild.
9653 * target.c (update_current_target): Don't inherit or default
9654 to_static_tracepoint_marker_at.
9655 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9656 Use TARGET_DEFAULT_RETURN.
9657
dcd6917f
TT
96582014-02-19 Tom Tromey <tromey@redhat.com>
9659
9660 * target-delegates.c: Rebuild.
9661 * target.c (update_current_target): Don't inherit or default
9662 to_set_permissions.
9663 * target.h (struct target_ops) <to_set_permissions>: Use
9664 TARGET_DEFAULT_IGNORE.
9665
22bcceee
TT
96662014-02-19 Tom Tromey <tromey@redhat.com>
9667
9668 * target-delegates.c: Rebuild.
9669 * target.c (update_current_target): Don't inherit or default
9670 to_get_tib_address.
9671 * target.h (struct target_ops) <to_get_tib_address>: Use
9672 TARGET_DEFAULT_NORETURN.
9673
8586ccaa
TT
96742014-02-19 Tom Tromey <tromey@redhat.com>
9675
9676 * target-delegates.c: Rebuild.
9677 * target.c (update_current_target): Don't inherit or default
9678 to_set_trace_notes.
9679 * target.h (struct target_ops) <to_set_trace_notes>: Use
9680 TARGET_DEFAULT_RETURN.
9681
91df8d1d
TT
96822014-02-19 Tom Tromey <tromey@redhat.com>
9683
9684 * target-delegates.c: Rebuild.
9685 * target.c (update_current_target): Don't initialize
9686 to_set_trace_buffer_size.
9687 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9688 TARGET_DEFAULT_IGNORE.
9689
8d526939
TT
96902014-02-19 Tom Tromey <tromey@redhat.com>
9691
9692 * target-delegates.c: Rebuild.
9693 * target.c (update_current_target): Don't inherit or default
9694 to_set_circular_trace_buffer.
9695 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9696 TARGET_DEFAULT_IGNORE.
9697
0bcfeddf
TT
96982014-02-19 Tom Tromey <tromey@redhat.com>
9699
9700 * target-delegates.c: Rebuild.
9701 * target.c (update_current_target): Don't inherit or default
9702 to_set_disconnected_tracing.
9703 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9704 TARGET_DEFAULT_IGNORE.
9705
9249843f
TT
97062014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target-delegates.c: Rebuild.
9709 * target.c (update_current_target): Don't inherit or default
9710 to_get_min_fast_tracepoint_insn_len.
9711 (return_minus_one): Remove.
9712 * target.h (struct target_ops)
9713 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9714
ace92e7d
TT
97152014-02-19 Tom Tromey <tromey@redhat.com>
9716
9717 * target-delegates.c: Rebuild.
9718 * target.c (update_current_target): Don't inherit or default
9719 to_get_raw_trace_data.
9720 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9721 TARGET_DEFAULT_NORETURN.
9722
08120467
TT
97232014-02-19 Tom Tromey <tromey@redhat.com>
9724
9725 * target-delegates.c: Rebuild.
9726 * target.c (update_current_target): Don't inherit or default
9727 to_upload_trace_state_variables.
9728 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9729 Use TARGET_DEFAULT_RETURN.
9730
1e949b00
TT
97312014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target-delegates.c: Rebuild.
9734 * target.c (update_current_target): Don't inherit or default
9735 to_upload_tracepoints.
9736 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9737 TARGET_DEFAULT_RETURN.
9738
a2e6c147
TT
97392014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target-delegates.c: Rebuild.
9742 * target.c (update_current_target): Don't inherit or default
9743 to_save_trace_data.
9744 * target.h (struct target_ops) <to_save_trace_data>: Use
9745 TARGET_DEFAULT_NORETURN.
9746
959bcd0b
TT
97472014-02-19 Tom Tromey <tromey@redhat.com>
9748
9749 * target-delegates.c: Rebuild.
9750 * target.c (update_current_target): Don't inherit or default
9751 to_get_trace_state_variable_value.
9752 * target.h (struct target_ops)
9753 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9754
afc94e66
TT
97552014-02-19 Tom Tromey <tromey@redhat.com>
9756
9757 * target-delegates.c: Rebuild.
9758 * target.c (update_current_target): Don't inherit or default
9759 to_trace_find.
9760 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9761
e51c07ea
TT
97622014-02-19 Tom Tromey <tromey@redhat.com>
9763
9764 * target-delegates.c: Rebuild.
9765 * target.c (update_current_target): Don't inherit or default
9766 to_trace_stop.
9767 * target.h (struct target_ops) <to_trace_stop>: Use
9768 TARGET_DEFAULT_NORETURN.
9769
6fea14cd
TT
97702014-02-19 Tom Tromey <tromey@redhat.com>
9771
9772 * target-delegates.c: Rebuild.
9773 * target.c (update_current_target): Don't inherit or default
9774 to_get_tracepoint_status.
9775 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9776 TARGET_DEFAULT_NORETURN.
9777
4072d4ff
TT
97782014-02-19 Tom Tromey <tromey@redhat.com>
9779
9780 * target-delegates.c: Rebuild.
9781 * target.c (update_current_target): Don't inherit or default
9782 to_get_trace_status.
9783 * target.h (struct target_ops) <to_get_trace_status>: Use
9784 TARGET_DEFAULT_RETURN.
9785
25da2e80
TT
97862014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target-delegates.c: Rebuild.
9789 * target.c (update_current_target): Don't inherit or default
9790 to_trace_start.
9791 * target.h (struct target_ops) <to_trace_start>: Use
9792 TARGET_DEFAULT_NORETURN.
9793
86dd181d
TT
97942014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * target-delegates.c: Rebuild.
9797 * target.c (update_current_target): Don't inherit or default
9798 to_trace_set_readonly_regions.
9799 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9800 Use TARGET_DEFAULT_NORETURN.
9801
05c41993
TT
98022014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target-delegates.c: Rebuild.
9805 * target.c (update_current_target): Don't inherit or default
9806 to_disable_tracepoint.
9807 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9808 TARGET_DEFAULT_NORETURN.
9809
151f70f1
TT
98102014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * target-delegates.c: Rebuild.
9813 * target.c (update_current_target): Don't inherit or default
9814 to_enable_tracepoint.
9815 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9816 TARGET_DEFAULT_NORETURN.
9817
94eb98b9
TT
98182014-02-19 Tom Tromey <tromey@redhat.com>
9819
9820 * target-delegates.c: Rebuild.
9821 * target.c (update_current_target): Don't inherit or default
9822 to_download_trace_state_variable.
9823 * target.h (struct target_ops) <to_download_trace_state_variable>:
9824 Use TARGET_DEFAULT_NORETURN.
9825
719acc4a
TT
98262014-02-19 Tom Tromey <tromey@redhat.com>
9827
9828 * target-delegates.c: Rebuild.
9829 * target.c (update_current_target): Don't inherit or default
9830 to_can_download_tracepoint.
9831 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9832 TARGET_DEFAULT_RETURN.
9833
9a980a22
TT
98342014-02-19 Tom Tromey <tromey@redhat.com>
9835
9836 * target-delegates.c: Rebuild.
9837 * target.c (update_current_target): Don't inherit or default
9838 to_download_tracepoint.
9839 * target.h (struct target_ops) <to_download_tracepoint>: Use
9840 TARGET_DEFAULT_NORETURN.
9841
5536135b
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target-delegates.c: Rebuild.
9845 * target.c (update_current_target): Don't inherit or default
9846 to_trace_init.
9847 * target.h (struct target_ops) <to_trace_init>: Use
9848 TARGET_DEFAULT_RETURN.
9849
9409d39e
TT
98502014-02-19 Tom Tromey <tromey@redhat.com>
9851
9852 * target-delegates.c: Rebuild.
9853 * target.c (update_current_target): Don't inherit or default
9854 to_supports_string_tracing.
9855 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9856 TARGET_DEFAULT_RETURN.
9857
aab1b22d
TT
98582014-02-19 Tom Tromey <tromey@redhat.com>
9859
9860 * target-delegates.c: Rebuild.
9861 * target.c (update_current_target): Don't inherit or default
9862 to_supports_enable_disable_tracepoint.
9863 * target.h (struct target_ops)
9864 <to_supports_enable_disable_tracepoint>: Use
9865 TARGET_DEFAULT_RETURN.
9866
a7304748
TT
98672014-02-19 Tom Tromey <tromey@redhat.com>
9868
9869 * target-delegates.c: Rebuild.
9870 * target.c (update_current_target): Don't inherit or default
9871 to_supports_multi_process.
9872 * target.h (struct target_ops) <to_supports_multi_process>: Use
9873 TARGET_DEFAULT_RETURN.
9874
4229b31d
TT
98752014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target-delegates.c: Rebuild.
9878 * target.c (update_current_target): Don't inherit or default
9879 to_get_ada_task_ptid.
9880 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9881 TARGET_DEFAULT_FUNC.
9882
43eba180
TT
98832014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * target-delegates.c: Rebuild.
9886 * target.c (update_current_target): Don't inherit or default
9887 to_thread_architecture.
9888 * target.h (struct target_ops) <to_thread_architecture>: Use
9889 TARGET_DEFAULT_FUNC.
9890
fe31bf5b
TT
98912014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * target-delegates.c: Rebuild.
9894 * target.c (update_current_target): Don't inherit or default
9895 to_execution_direction.
9896 * target.h (struct target_ops) <to_execution_direction>: Use
9897 TARGET_DEFAULT_FUNC.
9898
53e1cfc7
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_can_execute_reverse.
9904 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9905 TARGET_DEFAULT_RETURN.
9906 (target_can_execute_reverse): Unconditionally delegate.
9907
9bb9d61d
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_goto_bookmark.
9913 (dummy_goto_bookmark): Remove.
9914 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9915 * target.h (struct target_ops) <to_goto_bookmark>: Use
9916 TARGET_DEFAULT_NORETURN.
9917
3dbafbbb
TT
99182014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target-delegates.c: Rebuild.
9921 * target.c (update_current_target): Don't inherit or default
9922 to_get_bookmark.
9923 (dummy_get_bookmark): Remove.
9924 (init_dummy_target): Don't inherit or default to_get_bookmark.
9925 * target.h (struct target_ops) <to_get_bookmark>: Use
9926 TARGET_DEFAULT_NORETURN
9927
16f796b1
TT
99282014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target-delegates.c: Rebuild.
9931 * target.c (update_current_target): Don't inherit or default
9932 to_make_corefile_notes.
9933 (init_dummy_target): Don't initialize to_make_corefile_notes.
9934 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9935 TARGET_DEFAULT_FUNC.
9936
0b5a2719
TT
99372014-02-19 Tom Tromey <tromey@redhat.com>
9938
9939 * target-delegates.c: Rebuild.
9940 * target.c (update_current_target): Don't inherit or default
9941 to_find_memory_regions.
9942 (init_dummy_target): Don't initialize to_find_memory_regions.
9943 * target.h (struct target_ops) <to_find_memory_regions>: Use
9944 TARGET_DEFAULT_FUNC.
9945
d9cb0195
TT
99462014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * target-delegates.c: Rebuild.
9949 * target.c (update_current_target): Don't inherit or default
9950 to_log_command.
9951 * target.h (struct target_ops) <to_log_command>: Use
9952 TARGET_DEFAULT_IGNORE.
9953 (target_log_command): Unconditionally delegate.
9954
830ca330
TT
99552014-02-19 Tom Tromey <tromey@redhat.com>
9956
9957 * target-delegates.c: Rebuild.
9958 * target.c (update_current_target): Don't inherit or default
9959 to_pid_to_exec_file.
9960 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9961 TARGET_DEFAULT_RETURN.
9962
825828fc
TT
99632014-02-19 Tom Tromey <tromey@redhat.com>
9964
9965 * target-delegates.c: Rebuild.
9966 * target.c (update_current_target): Don't inherit or default
9967 to_thread_name.
9968 (target_thread_name): Unconditionally delegate.
9969 * target.h (struct target_ops) <to_thread_name>: Use
9970 TARGET_DEFAULT_RETURN.
9971
4a7e6dda
TT
99722014-02-19 Tom Tromey <tromey@redhat.com>
9973
9974 * target-delegates.c: Rebuild.
9975 * target.c (update_current_target): Don't inherit or default
9976 to_extra_thread_info.
9977 * target.h (struct target_ops) <to_extra_thread_info>: Use
9978 TARGET_DEFAULT_RETURN.
9979
0db88c1d
TT
99802014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * target-delegates.c: Rebuild.
9983 * target.c (update_current_target): Don't inherit or default
9984 to_has_exited.
9985 * target.h (struct target_ops) <to_has_exited>: Use
9986 TARGET_DEFAULT_RETURN..
9987
6a9fa051
TT
99882014-02-19 Tom Tromey <tromey@redhat.com>
9989
9990 * target-delegates.c: Rebuild.
9991 * target.c (update_current_target): Don't inherit or default
9992 to_set_syscall_catchpoint.
9993 (return_one): Remove.
9994 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9995 TARGET_DEFAULT_RETURN.
9996
62f64d7a
TT
99972014-02-19 Tom Tromey <tromey@redhat.com>
9998
9999 * target-delegates.c: Rebuild.
10000 * target.c (update_current_target): Don't inherit or default
10001 to_insert_exec_catchpoint.
10002 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10003 TARGET_DEFAULT_RETURN.
10004
cda0f38c
TT
100052014-01-08 Tom Tromey <tromey@redhat.com>
10006
10007 * target-delegates.c: Rebuild.
10008 * target.c (update_current_target): Don't inherit or default
10009 to_insert_exec_catchpoint.
10010 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10011 TARGET_DEFAULT_RETURN.
10012
95c3375e
TT
100132014-02-19 Tom Tromey <tromey@redhat.com>
10014
10015 * target-delegates.c: Rebuild.
10016 * target.c (update_current_target): Don't inherit or default
10017 to_remove_vfork_catchpoint.
10018 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10019 TARGET_DEFAULT_RETURN.
10020
7e18a8dc
TT
100212014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 * target-delegates.c: Rebuild.
10024 * target.c (update_current_target): Don't inherit or default
10025 to_insert_vfork_catchpoint.
10026 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10027 TARGET_DEFAULT_RETURN.
10028
e1a21fb7
TT
100292014-02-19 Tom Tromey <tromey@redhat.com>
10030
10031 * target-delegates.c: Rebuild.
10032 * target.c (update_current_target): Don't inherit or default
10033 to_remove_fork_catchpoint.
10034 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10035 TARGET_DEFAULT_RETURN.
10036
5958ebeb
TT
100372014-02-19 Tom Tromey <tromey@redhat.com>
10038
10039 * target-delegates.c: Rebuild.
10040 * target.c (update_current_target): Don't inherit or default
10041 to_insert_fork_catchpoint.
10042 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10043 TARGET_DEFAULT_RETURN.
10044
340ba4bf
TT
100452014-02-19 Tom Tromey <tromey@redhat.com>
10046
10047 * target-delegates.c: Rebuild.
10048 * target.c (update_current_target): Don't inherit or default
10049 to_post_startup_inferior.
10050 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10051 TARGET_DEFAULT_IGNORE.
10052
7634da87
TT
100532014-02-19 Tom Tromey <tromey@redhat.com>
10054
10055 * target-delegates.c: Rebuild.
10056 * target.c (update_current_target): Don't inherit or default
10057 to_load.
10058 * target.h (struct target_ops) <to_load>: Use
10059 TARGET_DEFAULT_NORETURN.
10060
e19e919f
TT
100612014-02-19 Tom Tromey <tromey@redhat.com>
10062
10063 * target-delegates.c: Rebuild.
10064 * target.c (update_current_target): Don't inherit or default
10065 to_terminal_info.
10066 * target.h (struct target_ops) <to_terminal_info>: Use
10067 TARGET_DEFAULT_FUNC.
10068
c6ea8f79
TT
100692014-02-19 Tom Tromey <tromey@redhat.com>
10070
10071 * target-delegates.c: Rebuild.
10072 * target.c (update_current_target): Don't inherit or default
10073 to_terminal_save_ours.
10074 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10075 TARGET_DEFAULT_IGNORE.
10076
e4a733f1
TT
100772014-02-19 Tom Tromey <tromey@redhat.com>
10078
10079 * target-delegates.c: Rebuild.
10080 * target.c (update_current_target): Don't inherit or default
10081 to_terminal_ours.
10082 * target.h (struct target_ops) <to_terminal_ours>: Use
10083 TARGET_DEFAULT_IGNORE.
10084
74fcbef9
TT
100852014-02-19 Tom Tromey <tromey@redhat.com>
10086
10087 * target-delegates.c: Rebuild.
10088 * target.c (update_current_target): Don't inherit or default
10089 to_terminal_ours_for_output.
10090 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10091 TARGET_DEFAULT_IGNORE.
10092
ddeaacc9
TT
100932014-02-19 Tom Tromey <tromey@redhat.com>
10094
10095 * target-delegates.c: Rebuild.
10096 * target.c (update_current_target): Don't inherit or default
10097 to_terminal_inferior.
10098 * target.h (struct target_ops) <to_terminal_inferior>: Use
10099 TARGET_DEFAULT_IGNORE.
10100
0343661d
TT
101012014-02-19 Tom Tromey <tromey@redhat.com>
10102
10103 * target-delegates.c: Rebuild.
10104 * target.c (update_current_target): Don't inherit or default
10105 to_terminal_init.
10106 * target.h (struct target_ops) <to_terminal_init>: Use
10107 TARGET_DEFAULT_IGNORE.
10108
77cdffe9
TT
101092014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target-delegates.c: Rebuild.
10112 * target.c (update_current_target): Don't inherit or default
10113 to_can_accel_watchpoint_condition.
10114 * target.h (struct target_ops)
10115 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10116
d03655e4
TT
101172014-02-19 Tom Tromey <tromey@redhat.com>
10118
10119 * target-delegates.c: Rebuild.
10120 * target.c (update_current_target): Don't inherit or default
10121 to_region_ok_for_hw_watchpoint.
10122 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10123 Use TARGET_DEFAULT_FUNC.
10124
65f160a9
TT
101252014-02-19 Tom Tromey <tromey@redhat.com>
10126
10127 * target-delegates.c: Rebuild.
10128 * target.c (update_current_target): Don't inherit or default
10129 to_watchpoint_addr_within_range.
10130 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10131 Use TARGET_DEFAULT_FUNC.
10132
61dd109f
TT
101332014-02-19 Tom Tromey <tromey@redhat.com>
10134
10135 * target-delegates.c: Rebuild.
10136 * target.c (update_current_target): Don't inherit or default
10137 to_remove_watchpoint.
10138 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10139 TARGET_DEFAULT_NORETURN.
10140
016facd4
TT
101412014-02-19 Tom Tromey <tromey@redhat.com>
10142
10143 * target-delegates.c: Rebuild.
10144 * target.c (update_current_target): Don't inherit or default
10145 to_insert_watchpoint.
10146 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10147 TARGET_DEFAULT_RETURN.
10148
418dabac
TT
101492014-02-19 Tom Tromey <tromey@redhat.com>
10150
10151 * target-delegates.c: Rebuild.
10152 * target.c (update_current_target): Don't inherit or default
10153 to_remove_hw_breakpoint.
10154 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10155 TARGET_DEFAULT_RETURN.
10156
61b371f9
TT
101572014-02-19 Tom Tromey <tromey@redhat.com>
10158
10159 * target-delegates.c: Rebuild.
10160 * target.c (update_current_target): Don't inherit or default
10161 to_insert_hw_breakpoint.
10162 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10163 TARGET_DEFAULT_RETURN.
10164
52b51d06
TT
101652014-02-19 Tom Tromey <tromey@redhat.com>
10166
10167 * target-delegates.c: Rebuild.
10168 * target.c (update_current_target): Don't inherit or default
10169 to_can_use_hw_breakpoint.
10170 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10171 TARGET_DEFAULT_RETURN.
10172
f86e59b2
TT
101732014-02-19 Tom Tromey <tromey@redhat.com>
10174
10175 * target-delegates.c: Rebuild.
10176 * target.c (update_current_target): Don't inherit or default
10177 to_files_info.
10178 * target.h (struct target_ops) <to_files_info>: Use
10179 TARGET_DEFAULT_IGNORE.
10180
6c628163
TT
101812014-02-19 Tom Tromey <tromey@redhat.com>
10182
10183 * target-delegates.c: Rebuild.
10184 * target.c (update_current_target): Don't inherit or default
10185 to_store.
10186 * target.h (struct target_ops) <to_store>: Use
10187 TARGET_DEFAULT_NORETURN.
10188
bebd3233
TT
101892014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target-delegates.c: Rebuild.
10192 * target.c (update_current_target): Don't inherit or default
10193 to_post_attach.
10194 * target.h (struct target_ops) <to_post_attach>: Use
10195 TARGET_DEFAULT_IGNORE.
10196
a53f3625
TT
101972014-02-19 Tom Tromey <tromey@redhat.com>
10198
10199 * target-delegates.c: Rebuild.
10200 * target.c (update_current_target): Don't inherit or default
10201 to_rcmd.
10202 (default_rcmd): New function.
10203 (do_monitor_command): Unconditionally delegate.
10204 * target.h (struct target_ops) <to_rmcd>: Use
10205 TARGET_DEFAULT_FUNC.
10206
e9a29200
TT
102072014-02-19 Tom Tromey <tromey@redhat.com>
10208
10209 * target-delegates.c: Rebuild.
10210 * target.c (init_dummy_target): Don't initialize to_attach.
10211 (target_attach): Unconditionally delegate.
10212 * target.h (struct target_ops) <to_attach>: Use
10213 TARGET_DEFAULT_FUNC.
10214
09da0d0a
TT
102152014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target-delegates.c: Rebuild.
10218 * target.c (target_detach): Unconditionally delegate.
10219 (init_dummy_target): Don't initialize to_detach.
10220 * target.h (struct target_ops) <to_detach>: Use
10221 TARGET_DEFAULT_IGNORE.
10222
5436ff03
TT
102232014-02-19 Tom Tromey <tromey@redhat.com>
10224
10225 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10226 Add argument.
10227 (target_augmented_libraries_svr4_read): Add argument.
10228 * target.c (update_current_target): Update.
10229 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10230 argument.
10231
f0d960ea
TT
102322014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target.h (struct target_ops) <to_call_history_range>: Add
10235 argument.
10236 * target.c (target_call_history_range): Add argument.
10237 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10238 argument.
10239 (record_btrace_call_history_from): Update.
10240
ec0aea04
TT
102412014-02-19 Tom Tromey <tromey@redhat.com>
10242
10243 * target.h (struct target_ops) <to_call_history_from>: Add
10244 argument.
10245 * target.c (target_call_history_from): Add argument.
10246 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10247 argument.
10248
5df2fcba
TT
102492014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target.h (struct target_ops) <to_call_history>: Add argument.
10252 * target.c (target_call_history): Add argument.
10253 * record-btrace.c (record_btrace_call_history): Add 'self'
10254 argument.
10255
4e99c6b7
TT
102562014-02-19 Tom Tromey <tromey@redhat.com>
10257
10258 * target.h (struct target_ops) <to_insn_history_range>: Add
10259 argument.
10260 * target.c (target_insn_history_range): Add argument.
10261 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10262 argument.
10263 (record_btrace_insn_history_from): Update.
10264
9abc3ff3
TT
102652014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * target.h (struct target_ops) <to_insn_history_from>: Add
10268 argument.
10269 * target.c (target_insn_history_from): Add argument.
10270 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10271 argument.
10272
7a6c5609
TT
102732014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target.h (struct target_ops) <to_insn_history>: Add argument.
10276 * target.c (target_insn_history): Add argument.
10277 * record-btrace.c (record_btrace_insn_history): Add 'self'
10278 argument.
10279
606183ac
TT
102802014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * target.h (struct target_ops) <to_goto_record>: Add argument.
10283 * target.c (target_goto_record): Add argument.
10284 * record-full.c (record_full_goto): Add 'self' argument.
10285 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10286
307a1b91
TT
102872014-02-19 Tom Tromey <tromey@redhat.com>
10288
10289 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10290 * target.c (target_goto_record_end): Add argument.
10291 * record-full.c (record_full_goto_end): Add 'self' argument.
10292 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10293
08475817
TT
102942014-02-19 Tom Tromey <tromey@redhat.com>
10295
10296 * target.h (struct target_ops) <to_goto_record_begin>: Add
10297 argument.
10298 * target.c (target_goto_record_begin): Add argument.
10299 * record-full.c (record_full_goto_begin): Add 'self' argument.
10300 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10301 argument.
10302
1c63c994
TT
103032014-02-19 Tom Tromey <tromey@redhat.com>
10304
10305 * target.h (struct target_ops) <to_record_is_replaying>: Add
10306 argument.
10307 * target.c (target_record_is_replaying): Add argument.
10308 * record-full.c (record_full_is_replaying): Add 'self' argument.
10309 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10310 argument.
10311 (record_btrace_xfer_partial, record_btrace_store_registers)
10312 (record_btrace_prepare_to_store, record_btrace_resume)
10313 (record_btrace_wait, record_btrace_decr_pc_after_break)
10314 (record_btrace_find_new_threads, record_btrace_thread_alive):
10315 Update.
10316
d1b55219
TT
103172014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target.h (struct target_ops) <to_delete_record>: Add argument.
10320 * target.c (target_delete_record): Add argument.
10321 * record-full.c (record_full_delete): Add 'self' argument.
10322
1390f529
TT
103232014-02-19 Tom Tromey <tromey@redhat.com>
10324
10325 * target.h (struct target_ops) <to_save_record>: Add argument.
10326 * target.c (target_save_record): Add argument.
10327 * record-full.c (record_full_save): Add 'self' argument.
10328 (record_full_save): Add 'self' argument.
10329
630d6a4a
TT
103302014-02-19 Tom Tromey <tromey@redhat.com>
10331
10332 * target.h (struct target_ops) <to_info_record>: Add argument.
10333 * target.c (target_info_record): Add argument.
10334 * record.c (info_record_command): Add argument.
10335 * record-full.c (record_full_info): Add 'self' argument.
10336 * record-btrace.c (record_btrace_info): Add 'self' argument.
10337
c6cd7c02
TT
103382014-02-19 Tom Tromey <tromey@redhat.com>
10339
10340 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10341 * target.c (target_stop_recording): Add argument.
10342 * record.c (record_stop): Add argument.
10343 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10344 argument.
10345
39c49f83
TT
103462014-02-19 Tom Tromey <tromey@redhat.com>
10347
10348 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10349 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10350 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10351 argument.
10352 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10353 (_initialize_amd64_linux_nat): Use it.
10354 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10355 (_initialize_i386_linux_nat): Use it.
10356
1777056d
TT
103572014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10360 * target.c (target_teardown_btrace): Add argument.
10361 * remote.c (remote_teardown_btrace): Add 'self' argument.
10362 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10363 argument.
10364 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10365 argument.
10366
25e95349
TT
103672014-02-19 Tom Tromey <tromey@redhat.com>
10368
10369 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10370 * target.c (target_disable_btrace): Add argument.
10371 * remote.c (remote_disable_btrace): Add 'self' argument.
10372 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10373 argument.
10374 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10375 argument.
10376
e3c49f88
TT
103772014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10380 * target.c (target_enable_btrace): Add argument.
10381 * remote.c (remote_enable_btrace): Add 'self' argument.
10382 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10383 argument.
10384 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10385 argument.
10386
fe38f897
TT
103872014-02-19 Tom Tromey <tromey@redhat.com>
10388
10389 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10390 (target_can_use_agent): Add argument.
10391 * target.c (update_current_target): Update.
10392 * remote.c (remote_can_use_agent): Add 'self' argument.
10393 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10394
2c152180
TT
103952014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target.h (struct target_ops) <to_use_agent>: Add argument.
10398 (target_use_agent): Add argument.
10399 * target.c (update_current_target): Update.
10400 * remote.c (remote_use_agent): Add 'self' argument.
10401 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10402
a893e81f
TT
104032014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10406 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10407 (target_traceframe_info): Add argument.
10408 * target.c (update_current_target): Update.
10409 * remote.c (remote_traceframe_info): Add 'self' argument.
10410 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10411
c686c57f
TT
104122014-02-19 Tom Tromey <tromey@redhat.com>
10413
10414 * target.h (target_static_tracepoint_markers_by_strid): Add
10415 argument.
10416 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10417 'self' argument.
10418 * target.c (update_current_target): Update.
10419 * remote.c (struct target_ops)
10420 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10421 * linux-nat.c (struct target_ops)
10422 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10423
61fc905d
TT
104242014-02-19 Tom Tromey <tromey@redhat.com>
10425
10426 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10427 Add argument.
10428 (target_static_tracepoint_marker_at): Add argument.
10429 * target.c (update_current_target): Update.
10430 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10431 argument.
10432
c378d69d
TT
104332014-02-19 Tom Tromey <tromey@redhat.com>
10434
10435 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10436 (target_set_permissions): Add argument.
10437 * target.c (update_current_target): Update.
10438 * remote.c (remote_set_permissions): Add 'self' argument.
10439 (remote_start_remote): Update.
10440
bd7ae0f5
TT
104412014-02-19 Tom Tromey <tromey@redhat.com>
10442
10443 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10444 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10445 (target_get_tib_address): Add argument.
10446 * target.c (update_current_target): Update.
10447 * remote.c (remote_get_tib_address): Add 'self' argument.
10448
d9e68a2c
TT
104492014-02-19 Tom Tromey <tromey@redhat.com>
10450
10451 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10452 (target_set_trace_notes): Add argument.
10453 * target.c (update_current_target): Update.
10454 * remote.c (remote_set_trace_notes): Add 'self' argument.
10455
4da384be
TT
104562014-02-19 Tom Tromey <tromey@redhat.com>
10457
10458 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10459 argument.
10460 (target_set_trace_buffer_size): Add argument.
10461 * target.c (update_current_target): Update.
10462 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10463
736d5b1f
TT
104642014-02-19 Tom Tromey <tromey@redhat.com>
10465
10466 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10467 argument.
10468 (target_set_circular_trace_buffer): Add argument.
10469 * target.c (update_current_target): Update.
10470 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10471 argument.
10472
37b25738
TT
104732014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10476 argument.
10477 (target_set_disconnected_tracing): Add argument.
10478 * target.c (update_current_target): Update.
10479 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10480
0e67620a
TT
104812014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target.h (struct target_ops)
10484 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10485 (target_get_min_fast_tracepoint_insn_len): Add argument.
10486 * target.c (update_current_target): Update.
10487 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10488 argument.
10489
88ee6f45
TT
104902014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10493 argument.
10494 (target_get_raw_trace_data): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10497
181e3713
TT
104982014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10501 Add argument.
10502 (target_upload_trace_state_variables): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_upload_trace_state_variables): Add 'self'
10505 argument.
10506 (remote_start_remote): Update.
10507
ab6617cc
TT
105082014-02-19 Tom Tromey <tromey@redhat.com>
10509
10510 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10511 argument.
10512 (target_upload_tracepoints): Add argument.
10513 * target.c (update_current_target): Update.
10514 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10515 (remote_start_remote): Update.
10516
dc3decaf
TT
105172014-02-19 Tom Tromey <tromey@redhat.com>
10518
10519 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10520 (target_save_trace_data): Add argument.
10521 * target.c (update_current_target): Update.
10522 * remote.c (remote_save_trace_data): Add 'self' argument.
10523
4011015b
TT
105242014-02-19 Tom Tromey <tromey@redhat.com>
10525
10526 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10527 argument.
10528 * target.h (struct target_ops)
10529 <to_get_trace_state_variable_value>: Add argument.
10530 (target_get_trace_state_variable_value): Add argument.
10531 * target.c (update_current_target): Update.
10532 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10533 argument.
10534 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10535
bd4c6793
TT
105362014-02-19 Tom Tromey <tromey@redhat.com>
10537
10538 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10539 * target.h (struct target_ops) <to_trace_find>: Add argument.
10540 (target_trace_find): Add argument.
10541 * target.c (update_current_target): Update.
10542 * remote.c (remote_trace_find): Add 'self' argument.
10543 * ctf.c (ctf_trace_find): Add 'self' argument.
10544
74499f1b
TT
105452014-02-19 Tom Tromey <tromey@redhat.com>
10546
10547 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10548 (target_trace_stop): Add argument.
10549 * target.c (update_current_target): Update.
10550 * remote.c (remote_trace_stop): Add 'self' argument.
10551
db90e85c
TT
105522014-02-19 Tom Tromey <tromey@redhat.com>
10553
10554 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10555 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10556 argument.
10557 (target_get_tracepoint_status): Add argument.
10558 * target.c (update_current_target): Update.
10559 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10560
8bd200f1
TT
105612014-02-19 Tom Tromey <tromey@redhat.com>
10562
10563 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10564 * target.h (struct target_ops) <to_get_trace_status>: Add
10565 argument.
10566 (target_get_trace_status): Add argument.
10567 * target.c (update_current_target): Update.
10568 * remote.c (remote_get_trace_status): Add 'self' argument.
10569 (remote_start_remote, remote_can_download_tracepoint): Update.
10570 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10571
e2d1aae3
TT
105722014-02-19 Tom Tromey <tromey@redhat.com>
10573
10574 * target.h (struct target_ops) <to_trace_start>: Add argument.
10575 (target_trace_start): Add argument.
10576 * target.c (update_current_target): Update.
10577 * remote.c (remote_trace_start): Add 'self' argument.
10578
583f9a86
TT
105792014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10582 Add argument.
10583 (target_trace_set_readonly_regions): Add argument.
10584 * target.c (update_current_target): Update.
10585 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10586 argument.
10587
780b049c
TT
105882014-02-19 Tom Tromey <tromey@redhat.com>
10589
10590 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10591 argument.
10592 (target_disable_tracepoint): Add argument.
10593 * target.c (update_current_target): Update.
10594 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10595
46670d57
TT
105962014-02-19 Tom Tromey <tromey@redhat.com>
10597
10598 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10599 argument.
10600 (target_enable_tracepoint): Add argument.
10601 * target.c (update_current_target): Update.
10602 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10603
559d2b81
TT
106042014-02-19 Tom Tromey <tromey@redhat.com>
10605
10606 * target.h (struct target_ops) <to_download_trace_state_variable>:
10607 Add argument.
10608 (target_download_trace_state_variable): Add argument.
10609 * target.c (update_current_target): Update.
10610 * remote.c (remote_download_trace_state_variable): Add 'self'
10611 argument.
10612
a52a8357
TT
106132014-02-19 Tom Tromey <tromey@redhat.com>
10614
10615 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10616 argument.
10617 (target_can_download_tracepoint): Add argument.
10618 * target.c (update_current_target): Update.
10619 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10620
548f7808
TT
106212014-02-19 Tom Tromey <tromey@redhat.com>
10622
10623 * target.h (struct target_ops) <to_download_tracepoint>: Add
10624 argument.
10625 (target_download_tracepoint): Add argument.
10626 * target.c (update_current_target): Update.
10627 * remote.c (remote_download_tracepoint): Add 'self' argument.
10628
ecae04e1
TT
106292014-02-19 Tom Tromey <tromey@redhat.com>
10630
10631 * target.h (struct target_ops) <to_trace_init>: Add argument.
10632 (target_trace_init): Add argument.
10633 * target.c (update_current_target): Update.
10634 * remote.c (remote_trace_init): Add 'self' argument.
10635
fab5aa7c
TT
106362014-02-19 Tom Tromey <tromey@redhat.com>
10637
10638 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10639 * target.c (target_fileio_readlink): Add argument.
10640 * remote.c (remote_hostio_readlink): Add 'self' argument.
10641 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10642
dbbca37d
TT
106432014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10646 * target.c (target_fileio_unlink): Add argument.
10647 * remote.c (remote_hostio_unlink): Add 'self' argument.
10648 (remote_file_delete): Update.
10649 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10650
df39ea25
TT
106512014-02-19 Tom Tromey <tromey@redhat.com>
10652
10653 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10654 * target.c (target_fileio_close): Add argument.
10655 * remote.c (remote_hostio_close): Add 'self' argument.
10656 (remote_hostio_close_cleanup): Update.
10657 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10658 Update.
10659 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10660
a3be983c
TT
106612014-02-19 Tom Tromey <tromey@redhat.com>
10662
10663 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10664 * target.c (target_fileio_pread): Add argument.
10665 * remote.c (remote_hostio_pread): Add 'self' argument.
10666 (remote_bfd_iovec_pread, remote_file_get): Update.
10667 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10668
0d866f62
TT
106692014-02-19 Tom Tromey <tromey@redhat.com>
10670
10671 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10672 * target.c (target_fileio_pwrite): Add argument.
10673 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10674 (remote_file_put): Update.
10675 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10676
cd897586
TT
106772014-02-19 Tom Tromey <tromey@redhat.com>
10678
10679 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10680 * target.c (target_fileio_open): Add argument.
10681 * remote.c (remote_hostio_open): Add 'self' argument.
10682 (remote_bfd_iovec_open): Add 'self' argument.
10683 (remote_file_put): Add 'self' argument.
10684 (remote_file_get): Add 'self' argument.
10685 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10686
78eff0ec
TT
106872014-02-19 Tom Tromey <tromey@redhat.com>
10688
10689 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10690 Add argument.
10691 (target_can_run_breakpoint_commands): Add argument.
10692 * target.c (update_current_target): Update.
10693 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10694 argument.
10695 (remote_insert_breakpoint): Add 'self' argument.
10696 (remote_insert_hw_breakpoint): Add 'self' argument.
10697 (remote_can_run_breakpoint_commands): Add 'self' argument.
10698
efcc2da7
TT
106992014-02-19 Tom Tromey <tromey@redhat.com>
10700
10701 * target.h (struct target_ops)
10702 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10703 (target_supports_evaluation_of_breakpoint_conditions): Add
10704 argument.
10705 * target.c (update_current_target): Update.
10706 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10707 argument.
10708 (remote_insert_breakpoint): Add 'self' argument.
10709 (remote_insert_hw_breakpoint): Add 'self' argument.
10710 (remote_supports_cond_breakpoints): Add 'self' argument.
10711
6de37a3a
TT
107122014-02-19 Tom Tromey <tromey@redhat.com>
10713
10714 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10715 argument.
10716 (target_supports_string_tracing): Add argument.
10717 * target.c (update_current_target): Update.
10718 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10719
2bfc0540
TT
107202014-02-19 Tom Tromey <tromey@redhat.com>
10721
10722 * target.h (struct target_ops)
10723 <to_supports_disable_randomization>: Add argument.
10724 * target.c (find_default_supports_disable_randomization): Add
10725 argument.
10726 (target_supports_disable_randomization): Add argument.
10727 (find_default_supports_disable_randomization): Add 'self'
10728 argument.
10729 * remote.c (extended_remote_supports_disable_randomization): Add
10730 'self' argument.
10731 (remote_supports_disable_randomization): Add 'self' argument.
10732 (extended_remote_create_inferior): Update.
10733 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10734 'self' argument.
10735
7d178d6a
TT
107362014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target.h (struct target_ops)
10739 <to_supports_enable_disable_tracepoint>: Add argument.
10740 (target_supports_enable_disable_tracepoint): Add argument.
10741 * target.c (update_current_target): Update.
10742 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10743 argument.
10744
86ce2668
TT
107452014-02-19 Tom Tromey <tromey@redhat.com>
10746
10747 * target.h (struct target_ops) <to_supports_multi_process>: Add
10748 argument.
10749 (target_supports_multi_process): Add argument.
10750 * target.c (update_current_target): Update.
10751 * remote.c (remote_supports_multi_process): Add 'self' argument.
10752 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10753 argument.
10754 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10755 argument.
10756
4c612759
TT
107572014-02-19 Tom Tromey <tromey@redhat.com>
10758
10759 * target.h (struct target_ops) <to_execution_direction>: Add
10760 argument.
10761 (target_execution_direction): Add argument.
10762 * target.c (default_execution_direction): Add 'self' argument.
10763 * record-full.c (record_full_execution_direction): Add 'self'
10764 argument.
10765
19db3e69
TT
107662014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10769 argument.
10770 (target_can_execute_reverse): Add argument.
10771 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10772 * record-full.c (record_full_can_execute_reverse): Add 'self'
10773 argument.
10774 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10775 argument.
10776
1e6b91a4
TT
107772014-02-19 Tom Tromey <tromey@redhat.com>
10778
10779 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10780 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10781 argument.
10782 (target_get_ada_task_ptid): Add argument.
10783 * target.c (update_current_target): Update.
10784 (default_get_ada_task_ptid): Add 'self' argument.
10785 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10786 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10787 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10788 argument.
10789 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10790 argument.
10791 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10792 argument.
10793 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10794 argument.
10795 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10796 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10797 argument.
10798
3c80fb48
TT
107992014-02-19 Tom Tromey <tromey@redhat.com>
10800
10801 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10802 (target_goto_bookmark): Add argument.
10803 * target.c (dummy_goto_bookmark): Add 'self' argument.
10804 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10805
dd0e2830
TT
108062014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10809 (target_get_bookmark): Add argument.
10810 * target.c (dummy_get_bookmark): Add 'self' argument.
10811 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10812
fc6691b2
TT
108132014-02-19 Tom Tromey <tromey@redhat.com>
10814
10815 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10816 argument.
10817 (target_make_corefile_notes): Add argument.
10818 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10819 * procfs.c (procfs_make_note_section): Add 'self' argument.
10820 (procfs_make_note_section): Add 'self' argument.
10821 (procfs_make_note_section): Add 'self' argument.
10822 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10823 argument.
10824 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10825 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10826 * exec.c (exec_make_note_section): Add 'self' argument.
10827 (exec_make_note_section): Add 'self' argument.
10828
2e73927c
TT
108292014-02-19 Tom Tromey <tromey@redhat.com>
10830
10831 * target.h (struct target_ops) <to_find_memory_regions>: Add
10832 argument.
10833 (target_find_memory_regions): Add argument.
10834 * target.c (dummy_find_memory_regions): Add 'self' argument.
10835 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10836 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10837 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10838 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10839 * exec. (exec_do_find_memory_regions): New global.
10840 (exec_set_find_memory_regions): Rewrite.
10841 (exec_find_memory_regions): New function.
10842 (init_exec_ops): Use exec_find_memory_regions.
10843
2a9a2795
TT
108442014-02-19 Tom Tromey <tromey@redhat.com>
10845
10846 * target.h (struct target_ops) <to_supports_non_stop>: Add
10847 argument.
10848 * target.c (find_default_supports_non_stop): Add argument.
10849 (target_supports_non_stop): Add argument.
10850 (find_default_supports_non_stop): Add 'self' argument.
10851 * remote.c (remote_supports_non_stop): Add 'self' argument.
10852 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10853
4ab76ea3
TT
108542014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target.h (struct target_ops) <to_log_command>: Add argument.
10857 (target_log_command): Add argument.
10858 * serial.h (serial_log_command): Add 'self' argument.
10859 * serial.c (serial_log_command): Add 'self' argument.
10860
8dd27370
TT
108612014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10864 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10865 argument.
10866 (target_pid_to_exec_file): Add argument.
10867 * target.c (debug_to_pid_to_exec_file): Add argument.
10868 (update_current_target): Update.
10869 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10870 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10871 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10872 (linux_handle_extended_wait): Update.
10873 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10874 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10875 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10876 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10877
1aac633b
TT
108782014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * target.h (struct target_ops) <to_rcmd>: Add argument.
10881 (target_rcmd): Add argument.
10882 * target.c (debug_to_rcmd): Add argument.
10883 (update_current_target, do_monitor_command): Update.
10884 * remote.c (remote_rcmd): Add 'self' argument.
10885 * monitor.c (monitor_rcmd): Add 'self' argument.
10886
1eab8a48
TT
108872014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * windows-nat.c (windows_stop): Add 'self' argument.
10890 * target.h (struct target_ops) <to_stop>: Add argument.
10891 * target.c (target_stop): Add argument.
10892 (debug_to_stop): Add argument.
10893 (update_current_target): Update.
10894 * remote.c (remote_stop): Add 'self' argument.
10895 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10896 (gdbsim_cntrl_c): Update.
10897 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10898 * procfs.c (procfs_stop): Add 'self' argument.
10899 * nto-procfs.c (procfs_stop): Add 'self' argument.
10900 * monitor.c (monitor_stop): Add 'self' argument.
10901 (monitor_open): Update.
10902 * linux-nat.c (linux_nat_stop): Add argument.
10903 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10904 * gnu-nat.c (gnu_stop): Add 'self' argument.
10905 * darwin-nat.c (darwin_stop): Add 'self' argument.
10906
503a628d
TT
109072014-02-19 Tom Tromey <tromey@redhat.com>
10908
10909 * target.h (struct target_ops) <to_thread_name>: Add argument.
10910 * target.c (target_thread_name): Add argument.
10911 (update_current_target): Update.
10912 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10913
c15906d8
TT
109142014-02-19 Tom Tromey <tromey@redhat.com>
10915
10916 * target.h (struct target_ops) <to_extra_thread_info>: Add
10917 argument.
10918 (target_extra_thread_info): Add argument.
10919 * target.c (update_current_target): Update.
10920 * remote.c (remote_threads_extra_info): Add 'self' argument.
10921 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10922 argument.
10923 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10924 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10925 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10926 argument.
10927 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10928 argument.
10929 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10930 argument.
10931 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10932 argument.
10933
daf5e9b6
TT
109342014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target.h (struct target_ops) <to_program_signals>: Add argument.
10937 * target.c (target_program_signals): Add argument.
10938 * remote.c (remote_program_signals): Add 'self' argument.
10939
94bedb42
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10943 * target.c (target_pass_signals): Add argument.
10944 * remote.c (remote_pass_signals): Add 'self' argument.
10945 (remote_start_remote): Update.
10946 * procfs.c (procfs_pass_signals): Add 'self' argument.
10947 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10948 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10949 (linux_nat_create_inferior, linux_nat_attach): Update.
10950
da82bd6b
TT
109512014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * windows-nat.c (windows_can_run): Add 'self' argument.
10954 * target.h (struct target_ops) <to_can_run>: Add argument.
10955 (target_can_run): Add argument.
10956 * target.c (debug_to_can_run): Add argument.
10957 (update_current_target): Update.
10958 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10959 * inf-child.c (inf_child_can_run): Add 'self' argument.
10960 * go32-nat.c (go32_can_run): Add 'self' argument.
10961
d796e1d6
TT
109622014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * target.h (struct target_ops) <to_has_exited>: Add argument.
10965 (target_has_exited): Add argument.
10966 * target.c (debug_to_has_exited): Add argument.
10967 (update_current_target): Update.
10968
ff214e67
TT
109692014-02-19 Tom Tromey <tromey@redhat.com>
10970
10971 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10972 argument.
10973 (target_set_syscall_catchpoint): Add argument.
10974 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10975 argument.
10976 * target.c (update_current_target): Update.
10977
758e29d2
TT
109782014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10981 argument.
10982 (target_remove_exec_catchpoint): Add argument.
10983 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10984 (update_current_target): Update.
10985 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10986 argument.
10987
ba025e51
TT
109882014-02-19 Tom Tromey <tromey@redhat.com>
10989
10990 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10991 argument.
10992 (target_insert_exec_catchpoint): Add argument.
10993 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10994 (update_current_target): Update.
10995 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10996 argument.
10997
e98cf0cd
TT
109982014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11001 argument.
11002 (target_remove_vfork_catchpoint): Add argument.
11003 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11004 (update_current_target): Update.
11005 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11006 argument.
11007
3ecc7da0
TT
110082014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11011 argument.
11012 (target_insert_vfork_catchpoint): Add argument.
11013 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11014 (update_current_target): Update.
11015 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11016 argument.
11017
973fc227
TT
110182014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11021 argument.
11022 (target_remove_fork_catchpoint): Add argument.
11023 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11024 (update_current_target): Update.
11025 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11026 argument.
11027
a863b201
TT
110282014-02-19 Tom Tromey <tromey@redhat.com>
11029
11030 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11031 argument.
11032 (target_insert_fork_catchpoint): Add argument.
11033 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11034 (update_current_target): Update.
11035 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11036 argument.
11037
2e97a79e
TT
110382014-02-19 Tom Tromey <tromey@redhat.com>
11039
11040 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11041 argument.
11042 (target_post_startup_inferior): Add argument.
11043 * target.c (debug_to_post_startup_inferior): Add argument.
11044 (update_current_target): Update.
11045 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11046 argument.
11047 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11048 argument.
11049 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11050 argument.
11051 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11052 argument.
11053 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11054 'self' argument.
11055 (super_post_startup_inferior): Likewise.
11056 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11057 'self' argument.
11058 (super_post_startup_inferior): Likewise.
11059 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11060 Add 'self' argument.
11061 (super_post_startup_inferior): Likewise.
11062
71a9f134
TT
110632014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * target.h (struct target_ops) <to_load>: Add argument.
11066 * target.c (target_load): Add argument.
11067 (debug_to_load): Add argument.
11068 (update_current_target): Update.
11069 * remote.c (remote_load): Add 'self' argument.
11070 * remote-sim.c (gdbsim_load): Add 'self' argument.
11071 * remote-mips.c (mips_load): Add 'self' argument.
11072 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11073 * monitor.c (monitor_load): Add 'self' argument.
11074 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11075
0a4f40a2
TT
110762014-02-19 Tom Tromey <tromey@redhat.com>
11077
11078 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11079 (target_terminal_info): Add argument.
11080 * target.c (debug_to_terminal_info): Add argument.
11081 (default_terminal_info): Likewise.
11082 * inflow.c (child_terminal_info): Add 'self' argument.
11083 * inferior.h (child_terminal_info): Add 'self' argument.
11084 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11085
ae3bd431
TT
110862014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11089 argument.
11090 (target_terminal_save_ours): Add argument.
11091 * target.c (debug_to_terminal_save_ours): Add argument.
11092 (update_current_target): Update.
11093 * inflow.c (terminal_save_ours): Add 'self' argument.
11094 * inferior.h (terminal_save_ours): Add 'self' argument.
11095
e3594fd1
TT
110962014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11099 (target_terminal_ours): Add argument.
11100 * target.c (debug_to_terminal_ours): Add argument.
11101 (update_current_target): Update.
11102 * remote.c (remote_terminal_ours): Add 'self' argument.
11103 (remote_close): Update.
11104 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11105 * inflow.c (terminal_ours): Add 'self' argument.
11106 * inferior.h (terminal_ours): Add 'self' argument.
11107 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11108
2e1e1a19
TT
111092014-02-19 Pedro Alves <palves@redhat.com>
11110 Tom Tromey <tromey@redhat.com>
11111
11112 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11113 argument.
11114 (target_terminal_ours_for_output): Add argument.
11115 * target.c (debug_to_terminal_ours_for_output): Add argument.
11116 (update_current_target): Update.
11117 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11118 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11119 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11120
d2f640d4
TT
111212014-02-19 Tom Tromey <tromey@redhat.com>
11122
11123 * target.h (struct target_ops) <to_terminal_inferior>: Add
11124 argument.
11125 * target.c (target_terminal_inferior): Add argument.
11126 (update_current_target): Update.
11127 * remote.c (remote_terminal_inferior): Add 'self' argument.
11128 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11129 * inflow.c (terminal_inferior): Add 'self' argument.
11130 * inferior.h (terminal_inferior): Add 'self' argument.
11131 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11132 (go32_terminal_inferior): Add 'self' argument.
11133
c42bf286
TT
111342014-02-19 Tom Tromey <tromey@redhat.com>
11135
11136 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11137 (target_terminal_init): Add argument.
11138 * target.c (debug_to_terminal_init): Add argument.
11139 (update_current_target): Update.
11140 * inflow.c (terminal_init_inferior): Add 'self' argument.
11141 * inferior.h (terminal_init_inferior): Add 'self' argument.
11142 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11143 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11144
c3a5ff89
TT
111452014-02-19 Tom Tromey <tromey@redhat.com>
11146
11147 * target.h (struct target_ops)
11148 <to_can_accel_watchpoint_condition>: Add argument.
11149 (target_can_accel_watchpoint_condition): Add argument.
11150 * target.c (debug_to_can_accel_watchpoint_condition): Add
11151 argument.
11152 (update_current_target): Update.
11153 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11154 'self' argument.
11155
31568a15
TT
111562014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11159 Add argument.
11160 (target_region_ok_for_hw_watchpoint): Add argument.
11161 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11162 (default_region_ok_for_hw_watchpoint): Add argument.
11163 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11164 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11165 argument.
11166 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11167 argument.
11168 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11169 argument.
11170 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11171 'self' argument.
11172 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11173 'self' argument.
11174 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11175 'self' argument.
11176 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11177 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11178 'self' argument.
11179 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11180 Add 'self' argument.
11181
7bb99c53
TT
111822014-02-19 Tom Tromey <tromey@redhat.com>
11183
11184 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11185 argument.
11186 (target_insert_watchpoint): Add argument.
11187 * target.c (debug_to_insert_watchpoint): Add argument.
11188 (update_current_target): Update.
11189 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11190 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11191 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11192 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11193 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11194 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11195 argument.
11196 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11197 (procfs_insert_hw_watchpoint): Add 'self' argument.
11198 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11199 argument.
11200 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11201 argument.
11202 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11203 argument.
11204 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11205 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11206 argument.
11207 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11208 'self' argument.
11209
11b5219a
TT
112102014-02-19 Tom Tromey <tromey@redhat.com>
11211
11212 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11213 argument.
11214 (target_remove_watchpoint): Add argument.
11215 * target.c (debug_to_remove_watchpoint): Add argument.
11216 (update_current_target): Update.
11217 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11218 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11219 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11220 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11221 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11222 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11223 argument.
11224 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11225 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11226 argument.
11227 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11228 argument.
11229 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11230 argument.
11231 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11232 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11233 argument.
11234 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11235 'self' argument.
11236
a64dc96c
TT
112372014-02-19 Tom Tromey <tromey@redhat.com>
11238
11239 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11240 argument.
11241 (target_remove_hw_breakpoint): Add argument.
11242 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11243 (update_current_target): Update.
11244 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11245 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11246 argument.
11247 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11248 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11249 argument.
11250 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11251 'self' argument.
11252
23a26771
TT
112532014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11256 argument.
11257 (target_insert_hw_breakpoint): Add argument.
11258 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11259 (update_current_target): Update.
11260 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11261 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11262 argument.
11263 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11264 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11265 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11266 argument.
11267 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11268 'self' argument.
11269
5461485a
TT
112702014-02-19 Tom Tromey <tromey@redhat.com>
11271
11272 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11273 argument.
11274 (target_can_use_hardware_watchpoint): Add argument.
11275 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11276 (update_current_target): Update.
11277 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11278 argument.
11279 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11280 argument.
11281 * remote.c (remote_check_watch_resources): Add 'self' argument.
11282 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11283 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11284 argument.
11285 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11286 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11287 argument.
11288 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11289 argument.
11290 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11291 argument.
11292 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11293 argument.
11294 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11295 argument.
11296 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11297 argument.
11298 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11299 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11300 argument.
11301 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11302 'self' argument.
11303
f045800c
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target.h (struct target_ops) <to_post_attach>: Add argument.
11307 (target_post_attach): Add argument.
11308 * target.c (debug_to_post_attach): Add argument.
11309 (update_current_target): Update.
11310 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11311 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11312 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11313 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11314 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11315
de90e03d
TT
113162014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * windows-nat.c (windows_close): Add 'self' argument.
11319 * tracepoint.c (tfile_close): Add 'self' argument.
11320 * target.h (struct target_ops) <to_close>: Add argument.
11321 * target.c (target_close): Add argument.
11322 (update_current_target): Update.
11323 * remote.c (remote_close): Add 'self' argument.
11324 * remote-sim.c (gdbsim_close): Add 'self' argument.
11325 * remote-mips.c (mips_close): Add 'self' argument.
11326 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11327 * record-full.c (record_full_close): Add 'self' argument.
11328 * record-btrace.c (record_btrace_close): Add 'self' argument.
11329 * monitor.h (monitor_close): Add 'self' argument.
11330 * monitor.c (monitor_close): Add 'self' argument.
11331 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11332 * linux-nat.c (linux_nat_close): Add argument.
11333 * go32-nat.c (go32_close): Add 'self' argument.
11334 * exec.c (exec_close_1): Add 'self' argument.
11335 * ctf.c (ctf_close): Add 'self' argument.
11336 * corelow.c (core_close): Add 'self' argument.
11337 (core_close_cleanup): Update.
11338 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11339 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11340
9dd130a0
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * remote.c (remote_load): New function.
11344 (init_remote_ops): Use it.
11345
46917d26
TT
113462014-02-19 Tom Tromey <tromey@redhat.com>
11347
11348 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11349 argument.
11350 * common/linux-btrace.h (linux_supports_btrace): Update.
11351 * remote.c (remote_supports_btrace): Add "self" argument.
11352 * target-delegates.c: Rebuild.
11353 * target.c (target_supports_btrace): Remove.
11354 * target.h (struct target_ops) <to_supports_btrace>: Add
11355 target_ops argument.
11356 (target_supports_btrace): New define.
11357
6b84065d
TT
113582014-02-19 Tom Tromey <tromey@redhat.com>
11359
11360 * record-full.c (record_full_beneath_to_resume_ops)
11361 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11362 (record_full_beneath_to_wait)
11363 (record_full_beneath_to_store_registers_ops)
11364 (record_full_beneath_to_store_registers)
11365 (record_full_beneath_to_xfer_partial_ops)
11366 (record_full_beneath_to_xfer_partial)
11367 (record_full_beneath_to_insert_breakpoint_ops)
11368 (record_full_beneath_to_insert_breakpoint)
11369 (record_full_beneath_to_remove_breakpoint_ops)
11370 (record_full_beneath_to_remove_breakpoint)
11371 (record_full_beneath_to_stopped_by_watchpoint)
11372 (record_full_beneath_to_stopped_data_address)
11373 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11374 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11375 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11376 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11377 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11378 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11379 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11380 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11381 (record_full_resume, record_full_wait_1)
11382 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11383 (record_full_store_registers, record_full_xfer_partial)
11384 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11385 (record_full_async, record_full_core_xfer_partial): Use target
11386 delegation.
11387 * target-delegates.c: Rebuild.
11388 * target.c (current_xfer_partial): Remove.
11389 (update_current_target): Do not INHERIT or de_fault
11390 to_insert_breakpoint, to_remove_breakpoint,
11391 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11392 to_is_async_p, to_async. Do not set to_xfer_partial field.
11393 (default_xfer_partial): Simplify.
11394 (current_xfer_partial): Remove.
11395 (target_wait, target_resume): Simplify.
11396 (find_default_can_async_p, find_default_is_async_p): Update.
11397 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11398 to_xfer_partial, to_stopped_by_watchpoint,
11399 to_stopped_data_address.
11400 (target_store_registers): Simplify.
11401 (forward_target_remove_breakpoint)
11402 (forward_target_insert_breakpoint): Remove.
11403 (target_remove_breakpoint, target_insert_breakpoint)
11404 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11405 * target.h (struct target_ops) <to_resume, to_wait,
11406 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11407 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11408 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11409 markup.
11410 (forward_target_remove_breakpoint)
11411 (forward_target_insert_breakpoint): Remove.
11412 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11413 directly.
11414 (record_btrace_insert_breakpoint): Delegate directly.
11415
1101cb7b
TT
114162014-02-19 Tom Tromey <tromey@redhat.com>
11417
11418 PR build/7701:
11419 * target-delegates.c: New file.
11420 * target.c: Include target-delegates.c.
11421 (init_dummy_target): Call install_dummy_methods.
11422 (complete_target_initialization): Call install_delegators.
11423 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11424 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11425 * make-target-delegates: New file.
11426
8b06beed
TT
114272014-02-19 Tom Tromey <tromey@redhat.com>
11428
11429 * record.c (find_record_target): Use find_target_at.
11430 * target.c (find_target_at): New function.
11431 * target.h (find_target_at): Declare.
11432
6a109b6b
TT
114332014-02-19 Tom Tromey <tromey@redhat.com>
11434
11435 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11436 Add 'ops' argument.
11437 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11438 'ops' argument.
11439 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11440 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11441 'ops' argument.
11442 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11443 argument.
11444 * linux-nat.c (save_sigtrap): Update.
11445 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11446 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11447 (linux_nat_close): Update.
11448 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11449 argument.
11450 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11451 argument.
11452 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11453 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11454 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11455 (tmp_to_async): Add 'ops' argument.
11456 (record_full_stopped_by_watchpoint, record_full_async)
11457 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11458 argument.
11459 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11460 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11461 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11462 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11463 (remote_is_async_p, remote_async): Add 'ops' argument.
11464 (remote_stopped_data_address): Update.
11465 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11466 * target.c (update_current_target)
11467 (find_default_can_async_p, find_default_is_async_p): Update.
11468 (init_dummy_target): Update.
11469 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11470 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11471 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11472 (target_can_async_p, target_is_async_p, target_async)
11473 (target_stopped_by_watchpoint): Update.
11474
e095146b
YQ
114752014-02-19 Yao Qi <yao@codesourcery.com>
11476
11477 PR gdb/16220
11478 * gdbarch.sh: Remove startup_gdbarch.
11479 * gdbarch.c: Regenerated.
11480 * gdbarch.h: Likewise.
11481
bc3c6b36
KB
114822014-02-17 Kevin Buettner <kevinb@redhat.com>
11483
11484 * rl78-tdep.c (rl78_g10_register_name): New function.
11485 (rl78_return_value): Add g10 support.
11486 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11487 g10.
11488
98dc0167 114892014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11490
11491 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11492 (SUBDIR_GUILE_SRCS): Ditto.
11493 (scm-gsmob.o): Ditto.
11494
842c05cd
YQ
114952014-02-17 Yao Qi <yao@codesourcery.com>
11496
11497 * gnu-nat.c (ILL_RPC): Declare defined function.
11498
25c0bd04
YQ
114992014-02-17 Yao Qi <yao@codesourcery.com>
11500
11501 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11502 mach_msg_type_number_t.
11503 (gnu_write_inferior): Likewise.
11504
a9a758e3
YQ
115052014-02-17 Yao Qi <yao@codesourcery.com>
11506
11507 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11508 in format string.
11509 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11510 (inf_validate_procs, inf_signal): Likewise.
11511 (S_exception_raise_request): Likewise.
11512 (do_mach_notify_dead_name): Likewise.
11513 (steal_exc_port): Likewise.
11514 (gnu_read_inferior): Change 'copy_count''s type to
11515 mach_msg_type_number_t.
11516 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11517 format string.
11518
bae8023e
TS
115192014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11520
c82f56d9
TS
11521 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11522 flag. Adjust all users; in particular...
11523 (gnu_wait): ..., don't decrement its value in here...
11524 (gnu_create_inferior): ..., and instead set the flag in here,
11525 around the startup_inferior call, and call that one with
11526 START_INFERIOR_TRAPS_EXPECTED.
11527
3398af6a
TS
11528 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11529 (ILL_RPC): ... new macro.
11530 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11531 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11532 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11533 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11534 functions with ILL_RPC macro.
11535 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11536 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11537 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11538 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11539 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11540 (S_proc_getlogin_reply, S_proc_getsid_reply)
11541 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11542 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11543 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11544 (S_proc_getnports_reply, S_proc_is_important_reply)
11545 (S_proc_get_code_reply): New stub functions, generated with
11546 ILL_RPC macro.
11547
d47642c9
TS
11548 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11549 collected the type check structures.
11550
bae8023e
TS
11551 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11552
8a55ffb0
DE
115532014-02-14 Doug Evans <dje@google.com>
11554
11555 * target.c (target_write_partial): Fix result type.
11556
c2853f3d
JM
115572014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11558
11559 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11560 the proper offsets to access fpregset_t.
11561
ac61d2db
SA
115622014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11563
11564 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11565 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11566 * h8300-tdep.c (setmachinelist): Remove global.
11567 * hppa-tdep.c (hppa_sigtramp): Remove global.
11568 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11569 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11570 * ravenscar-thread.c (update_target_observer): Remove global.
11571 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11572
9d2d0b8b
TT
115732014-02-12 Tom Tromey <tromey@redhat.com>
11574
11575 * common/rsp-low.c: Update comments.
11576 * common/rsp-low.h: Update comments.
11577
a7191e8b
TT
115782014-02-12 Tom Tromey <tromey@redhat.com>
11579
11580 * common/rsp-low.c (convert_ascii_to_int): Remove.
11581 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11582
ff0e980e
TT
115832014-02-12 Tom Tromey <tromey@redhat.com>
11584
11585 * common/rsp-low.h (unhexify): Don't declare.
11586 * common/rsp-low.c (unhexify): Remove.
11587
e9371aff
TT
115882014-02-12 Tom Tromey <tromey@redhat.com>
11589
11590 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11591 * common/rsp-low.c (convert_int_to_ascii): Remove.
11592
971dc0b8
TT
115932014-02-12 Tom Tromey <tromey@redhat.com>
11594
11595 * common/rsp-low.h (hexify): Don't declare.
11596 * common/rsp-low.c (hexify): Remove.
11597
0a822afb
TT
115982014-02-12 Tom Tromey <tromey@redhat.com>
11599
11600 * common/rsp-low.c (hexify): Never take strlen of argument.
11601
9f1b45b0
TT
116022014-02-12 Tom Tromey <tromey@redhat.com>
11603
11604 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11605 * remote.c (extended_remote_run, remote_rcmd)
11606 (remote_download_trace_state_variable, remote_save_trace_data)
11607 (remote_set_trace_notes): Update.
11608 * tracepoint.c (encode_source_string, tfile_write_status)
11609 (tfile_write_uploaded_tsv): Update.
11610
9c3d6531
TT
116112014-02-12 Tom Tromey <tromey@redhat.com>
11612
11613 * tracepoint.c: Include rsp-low.h.
11614 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11615 * remote.c: Include rsp-low.h.
11616 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11617 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11618 (remote_unescape_input): Move to common/rsp-low.c.
11619 * common/rsp-low.h: New file.
11620 * common/rsp-low.c: New file.
11621 * Makefile.in (SFILES): Add common/rsp-low.c.
11622 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11623 (COMMON_OBS): Add rsp-low.o.
11624 (rsp-low.o): New target.
11625
01fd3ea5
TT
116262014-02-12 Tom Tromey <tromey@redhat.com>
11627
11628 * utils.h: Include print-utils.h.
11629 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11630 (int_string, core_addr_to_string, core_addr_to_string_nz)
11631 (hex_string, hex_string_custom): Don't declare.
11632 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11633 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11634 (hex_string_custom, int_string, core_addr_to_string)
11635 (core_addr_to_string_nz, host_address_to_string): Move to
11636 common/print-utils.c.
11637 * common/print-utils.h: New file.
11638 * common/print-utils.c: New file
11639 * Makefile.in (SFILES): Add common/print-utils.c.
11640 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11641 (COMMON_OBS): Add print-utils.o.
11642 (print-utils.o): New target.
11643
9fb50108
TT
116442014-02-12 Tom Tromey <tromey@redhat.com>
11645
11646 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11647
0548b5db
MK
116482014-02-12 Mark Kettenis <kettenis@gnu.org>
11649
11650 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11651
493443a4
MK
116522014-02-12 Mark Kettenis <kettenis@gnu.org>
11653
11654 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11655 if a PT_IO ptrace request returns sucessfully but indicates that 0
11656 bytes were transferred.
11657
706d0883
PA
116582014-02-12 Pedro Alves <palves@redhat.com>
11659 Kevin Buettner <kevinb@redhat.com>
11660
11661 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11662 TYPE_INSTANCE_FLAG_CODE_SPACE.
11663
5caa2f0b
PA
116642014-02-12 Pedro Alves <palves@redhat.com>
11665
11666 * h8300-tdep.c (pseudo_from_raw_register)
11667 (raw_from_pseudo_register): New functions.
11668 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11669 them.
11670
76fd5f74
PA
116712014-02-12 Pedro Alves <palves@redhat.com>
11672
11673 * h8300-tdep.c (h8300_register_sim_regno): New function.
11674 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11675 gdbarch_register_sim_regno hook.
11676
8f008406
SA
116772014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11678
11679 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11680
195abc10
SA
116812014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11682
11683 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11684
93ffa5b9
MK
116852014-02-12 Mark Kettenis <kettenis@gnu.org>
11686
11687 * obsd-tdep.h (obsd_init_abi): New prototype.
11688 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11689 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11690 (obsd_init_abi): New functions.
11691 * i386obsd-tdep.c: Include "obsd-tdep.h".
11692 (i386obsd_init_abi): Call obsd_init_abi.
11693 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11694 (amd64obsd_init_abi): Call obsd_init_abi.
11695 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11696 obsd-tdep.c to gdb_target_obs.
11697
49caec94
JM
116982014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11699
11700 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11701 double float arguments to 16-byte in the argument slots.
11702
e1402065
DE
117032014-02-11 Doug Evans <xdje42@gmail.com>
11704
11705 * configure.ac: Don't crash if pkg-config is not found and guile
11706 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11707 in guile checks.
11708 * configure: Regenerate.
11709
edcc890f
YQ
117102014-02-11 Yao Qi <yao@codesourcery.com>
11711
11712 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11713 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11714 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11715 * gnu-nat.c (gnu_xfer_memory): Likewise.
11716 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11717 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11718 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11719 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11720
9b409511
YQ
117212014-02-11 Yao Qi <yao@codesourcery.com>
11722
11723 * target.h (enum target_xfer_error): Rename to ...
11724 (enum target_xfer_status): ... it. New. All users updated.
11725 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11726 New.
11727 (TARGET_XFER_STATUS_ERROR_P): New macro.
11728 (target_xfer_error_to_string): Remove declaration.
11729 (target_xfer_status_to_string): Declare.
11730 (target_xfer_partial_ftype): Adjust it.
11731 (struct target_ops) <to_xfer_partial>: Return
11732 target_xfer_status. Add argument xfered_len. Update
11733 comments.
11734 * target.c (target_xfer_error_to_string): Rename to ...
11735 (target_xfer_status_to_string): ... it. New. All callers
11736 updated.
11737 (target_read_live_memory): Likewise. Call target_xfer_partial
11738 instead of target_read.
11739 (memory_xfer_live_readonly_partial): Return
11740 target_xfer_status. Add argument xfered_len.
11741 (raw_memory_xfer_partial): Likewise.
11742 (memory_xfer_partial_1): Likewise.
11743 (memory_xfer_partial): Likewise.
11744 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11745 properly. Update debug message.
11746 (default_xfer_partial, current_xfer_partial): Likewise.
11747 (target_write_partial): Likewise.
11748 (target_read_partial): Likewise. All callers updated.
11749 (read_whatever_is_readable): Likewise.
11750 (target_write_with_progress): Likewise.
11751 (target_read_alloc_1): Likewise.
11752
11753 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11754 * auxv.c (procfs_xfer_auxv): Likewise.
11755 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11756 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11757 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11758 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11759 * corefile.c (read_memory): Adjust.
11760 * corelow.c (core_xfer_partial): Likewise.
11761 * ctf.c (ctf_xfer_partial): Likewise.
11762 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11763 updated.
11764 (darwin_xfer_partial): Likewise.
11765 * exec.c (section_table_xfer_memory_partial): Likewise. All
11766 callers updated.
11767 (exec_xfer_partial): Likewise.
11768 * exec.h (section_table_xfer_memory_partial): Update
11769 declaration.
11770 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11771 negative.
11772 (gnu_xfer_partial): Likewise.
11773 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11774 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11775 (ia64_hpux_xfer_solib_got): Likewise.
11776 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11777 type of 'partial_len' to ULONGEST.
11778 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11779 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11780 (linux_nat_xfer_partial): Likewise.
11781 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11782 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11783 * monitor.c (monitor_xfer_memory): Likewise.
11784 (monitor_xfer_partial): Likewise.
11785 * procfs.c (procfs_xfer_partial): Likewise.
11786 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11787 * record-full.c (record_full_xfer_partial): Likewise.
11788 (record_full_core_xfer_partial): Likewise.
11789 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11790 (gdbsim_xfer_partial): Likewise.
11791 * remote.c (remote_write_bytes_aux): Likewise. All callers
11792 updated.
11793 (remote_write_bytes, remote_read_bytes): Likewise. All
11794 callers updated.
11795 (remote_flash_erase): Likewise. All callers updated.
11796 (remote_write_qxfer): Likewise. All callers updated.
11797 (remote_read_qxfer): Likewise. All callers updated.
11798 (remote_xfer_partial): Likewise.
11799 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11800 (rs6000_xfer_shared_libraries): Likewise.
11801 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11802 (sol_thread_xfer_partial): Likewise.
11803 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11804 (sparc_xfer_partial): Likewise.
11805 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11806 updated.
11807 (spu_xfer_partial): Likewise.
11808 * spu-multiarch.c (spu_xfer_partial): Likewise.
11809 * tracepoint.c (tfile_xfer_partial): Likewise.
11810 * windows-nat.c (windows_xfer_memory): Likewise.
11811 (windows_xfer_shared_libraries): Likewise.
11812 (windows_xfer_partial): Likewise.
11813 * valprint.c: Replace 'target_xfer_error' with
11814 'target_xfer_status' in comments.
11815
a8e63083
JB
118162014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11817
11818 Checked in by Joel Brobecker <brobecker@adacore.com>.
11819 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11820
e86b67d3
JB
118212014-02-11 Joel Brobecker <brobecker@adacore.com>
11822
11823 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11824 function parameters.
11825
4b7d1f7f
WN
118262014-02-10 Will Newton <will.newton@linaro.org>
11827
11828 * elfread.c (elf_rel_plt_read): Look for a .got section if
11829 looking up .got.plt fails.
11830 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11831 on address passed to elf_gnu_ifunc_record_cache.
11832 (elf_gnu_ifunc_resolve_addr): Likewise.
11833 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11834
961842b2
JM
118352014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11836
11837 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11838 (X_RETTURN): New macro.
11839 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11840
11841 * sparc64-tdep.c (sparc64_init_abi): Hook
11842 sparc_in_function_epilogue_p.
11843
3f03e7b1
GB
118442014-02-10 Gary Benson <gbenson@redhat.com>
11845
11846 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11847 Rename name_matcher to symbol_matcher.
11848
96f861ef
GB
118492014-02-10 Gary Benson <gbenson@redhat.com>
11850
11851 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11852 Use expand_symtabs_file_matcher_ftype and
11853 expand_symtabs_symbol_matcher_ftype.
11854
ee01b665
JB
118552014-02-10 Joel Brobecker <brobecker@adacore.com>
11856
11857 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11858 (struct ada_symbol_cache): New.
11859 (ada_free_symbol_cache): Forward declare.
11860 (struct ada_pspace_data): New.
11861 (ada_pspace_data_handle): New static global.
11862 (get_ada_pspace_data, ada_pspace_data_cleanup)
11863 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11864 (cache_space, cache): Delete, now folded inside struct
11865 ada_pspace_data.
11866 (ada_get_symbol_cache): New function.
11867 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11868 implementation.
11869 (_initialize_ada_language): Remove initialization of cache_space.
11870 Move call to observer_attach_inferior_exit up, grouping it
11871 with the other observer registrations inside this function.
11872 Rename command to be more general. Add call to
11873 register_program_space_data_with_cleanup.
11874
143adbbf
JB
118752014-02-10 Joel Brobecker <brobecker@adacore.com>
11876
11877 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11878 ada_new_objfile_observer.
11879 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11880 (_initialize_tasks): Update uses of ada_new_objfile_observer
11881 and ada_tasks_normal_stop_observer.
11882
aa4fb036
JB
118832014-02-10 Joel Brobecker <brobecker@adacore.com>
11884
11885 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11886 returned by the 'Length attribute to integer.
11887
9dee8cc6
JB
118882014-02-10 Joel Brobecker <brobecker@adacore.com>
11889
11890 * ada-lang.c (_initialize_ada_language): Initialize
11891 cache_space obstack.
11892
3d9434b5
JB
118932014-02-10 Joel Brobecker <brobecker@adacore.com>
11894
11895 * ada-lang.c (HASH_SIZE): New macro.
11896 (struct cache_entry): New type.
11897 (cache_space, cache): New static globals.
11898 (ada_clear_symbol_cache, find_entry): New functions.
11899 (lookup_cached_symbol, cache_symbol): Implement.
11900 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11901 (_initialize_ada_language): Attach ada_new_objfile_observer
11902 and ada_free_objfile_observer.
11903
f0c5f9b2
JB
119042014-02-10 Joel Brobecker <brobecker@adacore.com>
11905
11906 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11907 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11908 struct block * parameter.
11909 (ada_lookup_symbol_list_worker): Constify local variable "block".
11910 Remove cast which is no longer necessary.
11911
ed3ef339
DE
119122014-02-10 Doug Evans <xdje42@gmail.com>
11913
11914 Add Guile as an extension language.
11915 * NEWS: Mention Guile scripting.
11916 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11917 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11918 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11919 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11920 (CLIBS): Add GUILE_LIBS.
11921 (install-guile): New rule.
11922 (guile.o): New rule.
11923 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11924 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11925 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11926 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11927 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11928 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11929 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11930 * configure.ac: New option --with-guile.
11931 * configure: Regenerate.
11932 * config.in: Regenerate.
11933 * auto-load.c: Remove #include "python/python.h". Add #include
11934 "gdb/section-scripts.h".
11935 (source_section_scripts): Handle Guile scripts.
11936 (_initialize_auto_load): Add name of Guile objfile script to
11937 scripts-directory help text.
11938 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11939 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11940 (struct breakpoint): New member scm_bp_object.
11941 * defs.h (enum command_control_type): New value guile_control.
11942 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11943 "extension.h".
11944 (show_user): Update comment.
11945 (_initialize_cli_cmds): Update help text for "show user". Update help
11946 text for max-user-call-depth.
11947 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11948 "extension.h".
11949 (multi_line_command_p): Add guile_control.
11950 (print_command_lines): Handle guile_control.
11951 (execute_control_command, recurse_read_control_structure): Ditto.
11952 (process_next_line): Recognize "guile" commands.
11953 * disasm.c (gdb_disassemble_info): Make non-static.
11954 * disasm.h: #include "dis-asm.h".
11955 (struct gdbarch): Add forward decl.
11956 (gdb_disassemble_info): Declare.
11957 * extension.c: #include "guile/guile.h".
11958 (extension_languages): Add guile.
11959 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11960 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11961 * gdbtypes.c (get_unsigned_type_max): New function.
11962 (get_signed_type_minmax): New function.
11963 * gdbtypes.h (get_unsigned_type_max): Declare.
11964 (get_signed_type_minmax): Declare.
11965 * guile/README: New file.
11966 * guile/guile-internal.h: New file.
11967 * guile/guile.c: New file.
11968 * guile/guile.h: New file.
11969 * guile/scm-arch.c: New file.
11970 * guile/scm-auto-load.c: New file.
11971 * guile/scm-block.c: New file.
11972 * guile/scm-breakpoint.c: New file.
11973 * guile/scm-disasm.c: New file.
11974 * guile/scm-exception.c: New file.
11975 * guile/scm-frame.c: New file.
11976 * guile/scm-gsmob.c: New file.
11977 * guile/scm-iterator.c: New file.
11978 * guile/scm-lazy-string.c: New file.
11979 * guile/scm-math.c: New file.
11980 * guile/scm-objfile.c: New file.
11981 * guile/scm-ports.c: New file.
11982 * guile/scm-pretty-print.c: New file.
11983 * guile/scm-safe-call.c: New file.
11984 * guile/scm-string.c: New file.
11985 * guile/scm-symbol.c: New file.
11986 * guile/scm-symtab.c: New file.
11987 * guile/scm-type.c: New file.
11988 * guile/scm-utils.c: New file.
11989 * guile/scm-value.c: New file.
11990 * guile/lib/gdb.scm: New file.
11991 * guile/lib/gdb/boot.scm: New file.
11992 * guile/lib/gdb/experimental.scm: New file.
11993 * guile/lib/gdb/init.scm: New file.
11994 * guile/lib/gdb/iterator.scm: New file.
11995 * guile/lib/gdb/printing.scm: New file.
11996 * guile/lib/gdb/types.scm: New file.
11997 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11998 (VPATH): Add $(GUILE_SRCDIR).
11999 (GUILE_DIR): New variable.
12000 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12001 (all): Add stamp-guile dependency.
12002 (stamp-guile): New rule.
12003 (clean-guile, install-guile, uninstall-guile): New rules.
12004 (install-only): Add install-guile dependency.
12005 (uninstall): Add uninstall-guile dependency.
12006 (clean): Add clean-guile dependency.
12007
ac020ec5
DE
120082014-02-09 Doug Evans <xdje42@gmail.com>
12009
12010 Revert this patch (which I approved, mea culpa).
12011
12012 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12013
12014 * Makefile.in (all-lib): Remove.
12015 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12016
2a081c59
JK
120172014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12018
12019 Fix Python stack corruption.
12020 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12021 gdb_py_longest.
12022
0a6bd22d
MK
120232014-02-08 Mark Kettenis <kettenis@gnu.org>
12024
12025 * Makefile.in (all-lib): Remove.
12026 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12027
1a860409
DE
120282014-02-07 Doug Evans <dje@google.com>
12029
12030 * extension-priv.h (extension_language_script_ops): Add comment.
12031 (extension_language_ops): Add comment.
caf5a491 12032 (active_ext_lang_state): Fix typo in comment.
1a860409 12033
d137e6dc
PA
120342014-02-07 Pedro Alves <palves@redhat.com>
12035
0dcb32c3 12036 PR breakpoints/16292
d137e6dc
PA
12037 * infrun.c (handle_signal_stop) <signal arrives while stepping
12038 over a breakpoint>: Switch back to the stepping thread.
12039
ce6d0892
YQ
120402014-02-07 Yao Qi <yao@codesourcery.com>
12041
12042 * target.c (target_xfer_partial): Return zero if LEN is zero.
12043
2ed4b548
YQ
120442014-02-07 Yao Qi <yao@codesourcery.com>
12045
12046 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12047 (ld_so_xfer_auxv): Likewise.
12048 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12049 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12050 * corelow.c (core_xfer_partial): Likewise.
12051 * ctf.c (ctf_xfer_partial): Likewise.
12052 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12053 (darwin_xfer_partial): Likewise.
12054 * exec.c (exec_xfer_partial): Likewise.
12055 * gnu-nat.c (gnu_xfer_partial): Likewise.
12056 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12057 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12058 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12059 * linux-nat.c (linux_xfer_siginfo): Likewise.
12060 (linux_proc_xfer_spu): Likewise.
12061 * procfs.c (procfs_xfer_partial): Likewise.
12062 * record-full.c (record_full_xfer_partial): Likewise.
12063 (record_full_core_xfer_partial): Likewise.
12064 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12065 * remote.c (remote_write_qxfer): Likewise.
12066 (remote_write_qxfer, remote_read_qxfer): Likewise.
12067 (remote_xfer_partial): Likewise.
12068 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12069 (rs6000_xfer_shared_libraries): Likewise.
12070 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12071 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12072 (spu_xfer_partial): Likewise.
12073 * target.c (memory_xfer_partial_1): Likewise.
12074 * tracepoint.c (tfile_xfer_partial): Likewise.
12075 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12076 (windows_xfer_partial): Likewise.
12077
c09f20e4
YQ
120782014-02-07 Yao Qi <yao@codesourcery.com>
12079
12080 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12081 comments.
12082 (core_xfer_shared_libraries_aix): Likewise.
12083 * gdbarch.c, gdbarch.h: Regenerated.
12084 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12085 ULONGEST. Change 'len_avail' type to ULONGEST.
12086 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12087 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12088 declaration.
12089 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12090
8635b3bf
YQ
120912014-02-07 Yao Qi <yao@codesourcery.com>
12092
12093 * corefile.c (memory_error): Get 'exception' from ERR and pass
12094 'exception' to throw_error.
12095
6dddc817
DE
120962014-02-06 Doug Evans <xdje42@gmail.com>
12097
12098 * configure.ac (libpython checking): Remove all but python.o from
12099 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12100 * configure: Regenerate.
12101
12102 * Makefile.in (SFILES): Add extension.c.
12103 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12104 (COMMON_OBS): Add extension.o.
12105 * extension.h: New file.
12106 * extension-priv.h: New file.
12107 * extension.c: New file.
12108
12109 * python/python-internal.h: #include "extension.h".
12110 (gdbpy_auto_load_enabled): Declare.
12111 (gdbpy_apply_val_pretty_printer): Declare.
12112 (gdbpy_apply_frame_filter): Declare.
12113 (gdbpy_preserve_values): Declare.
12114 (gdbpy_breakpoint_cond_says_stop): Declare.
12115 (gdbpy_breakpoint_has_cond): Declare.
12116 (void source_python_script_for_objfile): Delete.
12117 * python/python.c: #include "extension-priv.h".
12118 Delete inclusion of "observer.h".
12119 (extension_language_python): Moved here and renamed from
12120 script_language_python in py-auto-load.c.
12121 Redefined to be of type extension_language_defn.
12122 (python_extension_script_ops): New global.
12123 (python_extension_ops): New global.
12124 (struct python_env): New member previous_active.
12125 (restore_python_env): Call restore_active_ext_lang.
12126 (ensure_python_env): Call set_active_ext_lang.
12127 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12128 New arg extlang.
12129 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12130 New arg extlang.
12131 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12132 New arg extlang.
12133 (gdbpy_eval_from_control_command): Renamed from
12134 eval_python_from_control_command, made static. New arg extlang.
12135 (gdbpy_source_script) Renamed from source_python_script, made static.
12136 New arg extlang.
12137 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12138 result to int. New arg extlang.
12139 (gdbpy_source_objfile_script): Renamed from
12140 source_python_script_for_objfile, made static. New arg extlang.
12141 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12142 static. New args extlang, extlang_printers. Change result type to
12143 "void".
12144 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12145 static. New arg extlang. Rename arg printers to extlang_printers
12146 and change type to ext_lang_type_printers *.
12147 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12148 static. Replace argument arg with extlang, extlang_printers.
12149 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12150 (!HAVE_PYTHON, source_python_script): Delete.
12151 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12152 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12153 (!HAVE_PYTHON, start_type_printers): Delete.
12154 (!HAVE_PYTHON, apply_type_printers): Delete.
12155 (!HAVE_PYTHON, free_type_printers): Delete.
12156 (_initialize_python): Delete call to observer_attach_before_prompt.
12157 (finalize_python): Set/restore active extension language.
12158 (gdbpy_finish_initialization) Renamed from
12159 finish_python_initialization, made static. New arg extlang.
12160 (gdbpy_initialized): New function.
12161 * python/python.h: #include "extension.h". Delete #include
12162 "value.h", "mi/mi-cmds.h".
12163 (extension_language_python): Declare.
12164 (GDBPY_AUTO_FILE_NAME): Delete.
12165 (enum py_bt_status): Moved to extension.h and renamed to
12166 ext_lang_bt_status.
12167 (enum frame_filter_flags): Moved to extension.h.
12168 (enum py_frame_args): Moved to extension.h and renamed to
12169 ext_lang_frame_args.
12170 (finish_python_initialization): Delete.
12171 (eval_python_from_control_command): Delete.
12172 (source_python_script): Delete.
12173 (apply_val_pretty_printer): Delete.
12174 (apply_frame_filter): Delete.
12175 (preserve_python_values): Delete.
12176 (gdbpy_script_language_defn): Delete.
12177 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12178 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12179
12180 * auto-load.c: #include "extension.h".
12181 (GDB_AUTO_FILE_NAME): Delete.
12182 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12183 (script_language_gdb): Delete, moved to extension.c and renamed to
12184 extension_language_gdb.
12185 (source_gdb_script_for_objfile): Delete.
12186 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12187 (loaded_script): Change type of language member to
12188 struct extension_language_defn *.
12189 (init_loaded_scripts_info): Initialize
12190 unsupported_script_warning_printed.
12191 (maybe_add_script): Make static. Change type of language arg to
12192 struct extension_language_defn *.
12193 (clear_section_scripts): Reset unsupported_script_warning_printed.
12194 (auto_load_objfile_script_1): Rewrite to use extension language API.
12195 (auto_load_objfile_script): Make public. Remove support-compiled-in
12196 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12197 (source_section_scripts): Rewrite to use extension language API.
12198 (load_auto_scripts_for_objfile): Rewrite to use
12199 auto_load_scripts_for_objfile.
12200 (collect_matching_scripts_data): Change type of language member to
12201 struct extension_language_defn *.
12202 (auto_load_info_scripts): Change type of language arg to
12203 struct extension_language_defn *.
12204 (unsupported_script_warning_print): New function.
12205 (script_not_found_warning_print): Make static.
12206 (_initialize_auto_load): Rewrite construction of scripts-directory
12207 help.
12208 * auto-load.h (struct objfile): Add forward decl.
12209 (struct script_language): Delete.
12210 (struct auto_load_pspace_info): Add forward decl.
12211 (struct extension_language_defn): Add forward decl.
12212 (maybe_add_script): Delete.
12213 (auto_load_objfile_script): Declare.
12214 (script_not_found_warning_print): Delete.
12215 (auto_load_info_scripts): Update prototype.
12216 (auto_load_gdb_scripts_enabled): Declare.
12217 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12218 auto_load_python_scripts_enabled and made public.
12219 (script_language_python): Delete, moved to python.c.
12220 (gdbpy_script_language_defn): Delete.
12221 (info_auto_load_python_scripts): Update to use
12222 extension_language_python.
12223
12224 * breakpoint.c (condition_command): Replace call to
12225 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12226 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12227 with call to breakpoint_ext_lang_cond_says_stop.
12228 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12229 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12230 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12231 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12232 New arg slang.
12233 (local_setattro): Print name of extension language with existing
12234 stop condition.
12235
12236 * valprint.c (val_print, value_print): Update to call
12237 apply_ext_lang_val_pretty_printer.
12238 * cp-valprint.c (cp_print_value): Update call to
12239 apply_ext_lang_val_pretty_printer.
12240 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12241 (gdbpy_apply_val_pretty_printer): Renamed from
12242 apply_val_pretty_printer. New arg extlang.
12243 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12244
12245 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12246 extension language API.
12247 * cli/cli-script.c (execute_control_command): Update to call
12248 eval_ext_lang_from_control_command.
12249
12250 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12251 enum ext_lang_bt_status values. Update call to
12252 apply_ext_lang_frame_filter.
12253 (mi_cmd_stack_list_locals): Ditto.
12254 (mi_cmd_stack_list_args): Ditto.
12255 (mi_cmd_stack_list_variables): Ditto.
12256 * mi/mi-main.c: Delete #include "python/python-internal.h".
12257 Add #include "extension.h".
12258 (mi_cmd_list_features): Replace reference to python internal variable
12259 gdb_python_initialized with call to ext_lang_initialized_p.
12260
12261 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12262 Update to use enum ext_lang_frame_args. Update to call
12263 apply_ext_lang_frame_filter.
12264 * python/py-framefilter.c (extract_sym): Update to use enum
12265 ext_lang_bt_status.
12266 (extract_value, py_print_type, py_print_value): Ditto.
12267 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12268 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12269 (py_print_frame): Ditto.
12270 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12271 New arg extlang. Update to use enum ext_lang_bt_status.
12272
12273 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12274 finish_python_initialization. Replace with call to
12275 finish_ext_lang_initialization.
12276
12277 * typeprint.c (do_free_global_table): Update to call
12278 free_ext_lang_type_printers.
12279 (create_global_typedef_table): Update to call
12280 start_ext_lang_type_printers.
12281 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12282 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12283 (type_print_options): Change type of global_printers from "void *"
12284 to "struct ext_lang_type_printers *".
12285
12286 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12287 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12288 (gdbpy_preserve_values): Renamed from preserve_python_values.
12289 New arg extlang.
12290 (!HAVE_PYTHON, preserve_python_values): Delete.
12291
12292 * utils.c (quit_flag): Delete, moved to extension.c.
12293 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12294 extension.c.
12295
12296 * eval.c: Delete #include "python/python.h".
12297 * main.c: Delete #include "python/python.h".
12298
12299 * defs.h: Update comment.
12300
6af79985
JB
123012014-02-06 Joel Brobecker <brobecker@adacore.com>
12302
12303 GDB 7.7 released.
12304
12c5175d
MK
123052014-02-05 Mark Kettenis <kettenis@gnu.org>
12306
12307 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12308 defined.
12309
8dc5b319
YQ
123102014-02-05 Yao Qi <yao@codesourcery.com>
12311
12312 * remote.c (remote_pass_signals): Remove local 'buf' and use
12313 rs->buf.
12314 (remote_program_signals): Likewise.
12315
de7b2893
YQ
123162014-02-05 Yao Qi <yao@codesourcery.com>
12317
12318 * ctf.c: Include "inferior.h" and "gdbthread.h".
12319 (CTF_PID): A new macro.
12320 (ctf_open): Call inferior_appeared and add_thread_silent.
12321 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12322 (ctf_thread_alive): New function.
12323 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12324
66d032ac
YQ
123252014-02-05 Yao Qi <yao@codesourcery.com>
12326
12327 Revert this patch:
12328
12329 2013-05-24 Yao Qi <yao@codesourcery.com>
12330
12331 * tracepoint.c (TFILE_PID): Remove.
12332 (tfile_open): Don't add thread and inferior.
12333 (tfile_close): Don't set 'inferior_ptid'. Don't call
12334 exit_inferior_silent.
12335 (tfile_thread_alive): Remove.
12336 (init_tfile_ops): Don't set field 'to_thread_alive' of
12337 tfile_ops.
12338
f4ccffad
CE
123392014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12340
12341 * remote.c (remote_start_remote): Call remote_check_symbols even
12342 if only symbol-file (not file) has been given.
12343
591a12a1
UW
123442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12345
12346 * gdbarch.sh (skip_entrypoint): New callback.
12347 * gdbarch.c, gdbarch.h: Regenerate.
12348 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12349 * infrun.c (fill_in_stop_func): Likewise.
12350 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12351 (ppc_elfv2_elf_make_msymbol_special): New function.
12352 (ppc_elfv2_skip_entrypoint): Likewise.
12353 (ppc_linux_init_abi): Install them for ELFv2.
12354
cc0e89c5
UW
123552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12356
12357 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12358 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12359 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12360 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12361 structures returned in GPRs.
12362
52f548e4
UW
123632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12364
12365 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12366 offset to the stack parameter list for the ELFv2 ABI.
12367
d4094b6a
UW
123682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12369
12370 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12371 set_gdbarch_convert_from_func_ptr_addr and
12372 set_gdbarch_elf_make_msymbol_special for ELFv1.
12373 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12374 function descriptors on ELFv1.
12375 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12376 set up r12 at function entry.
12377
cd453cd0
UW
123782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12379
12380 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12381 (struct gdbarch_tdep): New member elf_abi.
12382
12383 * rs6000-tdep.c: Include "elf/ppc64.h".
12384 (rs6000_gdbarch_init): Detect ELF ABI version.
12385
0ff3e01f
UW
123862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12387
12388 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12389 within a register pair holding a DFP 128-bit value on little-endian.
12390 (ppc64_sysv_abi_return_value_base): Likewise.
12391 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12392 (dfp_pseudo_register_write): Likewise.
12393
5b757e5d
UW
123942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12395
12396 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12397 offset on little-endian when passing _Decimal32.
12398 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12399
084ee545
UW
124002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12401
12402 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12403 of the overlapped FP register within the VSX register on little-
12404 endian platforms.
12405 (efpr_pseudo_register_write): Likewise.
12406
d63167af
UW
124072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12408
12409 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12410 offset on little-endian when passing small structures.
12411
e765b44c
UW
124122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12413
12414 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12415 (struct ppc64_sysv_argpos): New data structure.
12416 (ppc64_sysv_abi_push_float): Remove.
12417 (ppc64_sysv_abi_push_val): New function.
12418 (ppc64_sysv_abi_push_integer): Likewise.
12419 (ppc64_sysv_abi_push_freg): Likewise.
12420 (ppc64_sysv_abi_push_vreg): Likewise.
12421 (ppc64_sysv_abi_push_param): Likewise.
12422 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12423 (ppc64_sysv_abi_return_value_base): New function.
12424 (ppc64_sysv_abi_return_value): Refactor to use it.
12425
36c24d95
UW
124262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12427
12428 * NEWS: Document new target powerpc64le-*-linux*.
12429
26fd9228
MK
124302014-02-04 Mark Kettenis <kettenis@gnu.org>
12431
12432 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12433 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12434 core dumps.
12435 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12436 register set used in ELF core dumps. Add floating-point register set.
12437
c5bb7362
KB
124382014-02-03 Kevin Buettner <kevinb@redhat.com>
12439
74228e77 12440 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12441 dwarf2_to_gdb[] table using symbolic constants. Adjust
12442 penultimate entry from number representing the PC register
12443 to symbolic constant representing the MDR register. Add
12444 constant for the PC register to the end of the table.
12445
af09351e
MK
124462014-02-03 Mark Kettenis <kettenis@gnu.org>
12447
12448 * bsd-kvm.c: Include <sys/param.h>
12449
8507e05d
MK
124502014-02-03 Mark Kettenis <kettenis@gnu.org>
12451
12452 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12453
ae56bfb8
JB
124542014-01-31 Joel Brobecker <brobecker@adacore.com>
12455
12456 * ada-lang.h (clear_ada_sym_cache): Delete.
12457
718ee4dc
UW
124582014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12459
12460 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12461
401e27fd
JM
124622014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12463
12464 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12465 the sigreturn register save area only if the syscall is
12466 sigreturn.
12467
a7c88acd
JB
124682014-01-29 Joel Brobecker <brobecker@adacore.com>
12469
12470 * valops.c (value_slice): Minor reformatting.
12471
fa0079ea
UW
124722014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12473
12474 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12475
c6044dd1
JB
124762014-01-28 Joel Brobecker <brobecker@adacore.com>
12477
12478 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12479 New static globals.
12480 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12481 (ada_ignore_descriptive_types_p): New static global.
12482 (find_parallel_type_by_descriptive_type): Return immediately
12483 if ada_ignore_descriptive_types_p is set.
12484 (_initialize_ada_language): Register new commands "maintenance
12485 set ada", "maintenance show ada", "maintenance set ada
12486 ignore-descriptive-types" and "maintenance show ada
12487 ignore-descriptive-types".
12488 * NEWS: Add entry for new "maint ada set/show
12489 ignore-descriptive-types" commands.
12490
568e808b
MM
124912014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12492
12493 * record-btrace.c (record_btrace_close): Call btrace_teardown
12494 for all threads.
12495
467d141b
JB
124962014-01-27 Joel Brobecker <brobecker@adacore.com>
12497
12498 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12499 "ui-out.h".
12500
fb151210
JB
125012014-01-27 Joel Brobecker <brobecker@adacore.com>
12502
12503 * ada-typeprint (type_is_full_subrange_of_target_type):
12504 New function.
12505 (print_range): Add parameter bounds_prefered_p. If not set,
12506 try printing range types using the name of their base type.
12507 (print_range_type): Add parameter bounds_prefered_p.
12508 Use it in call to print_range.
12509 (print_array_type, ada_print_type): Update calls to print_range
12510 and print_range_type.
12511
aba02109
JB
125122014-01-27 Joel Brobecker <brobecker@adacore.com>
12513
12514 * ada-typeprint.c (print_array_type, print_choices, print_range)
12515 (print_range_bound, print_dynamic_range_bound, print_range_type):
12516 Remove declaration.
12517
e62e21fd
JB
125182014-01-27 Joel Brobecker <brobecker@adacore.com>
12519
12520 * ada-typeprint.c (print_range): Add missing empty line
12521 after local declaration.
12522
859cf5d1
JB
125232014-01-27 Joel Brobecker <brobecker@adacore.com>
12524
12525 * ada-valprint.c (print_optional_low_bound): Get index_type's
12526 target type for as long as it is a TYPE_CODE_RANGE.
12527
25790f6f
JB
125282014-01-27 Joel Brobecker <brobecker@adacore.com>
12529
12530 * procfs.c (procfs_make_note_section): Remove assertion and
12531 associated comment.
12532
6b6aa828
YQ
125332014-01-24 Yao Qi <yao@codesourcery.com>
12534
12535 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12536 * corelow.c (get_core_siginfo): Likewise.
12537
5d6df423
YQ
125382014-01-24 Yao Qi <yao@codesourcery.com>
12539
12540 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12541 ULONGEST. Don't check 'len' is negative.
12542 (remote_write_bytes): Change type of 'len' to ULONGEST.
12543
83b645b8
TT
125442014-01-23 Tom Tromey <tromey@redhat.com>
12545
12546 PR python/16485:
12547 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12548 Handle exception from frame.block.
12549 (FrameVars.fetch_frame_locals): Likewise.
12550
0740f8d8
TT
125512014-01-23 Tom Tromey <tromey@redhat.com>
12552
12553 PR python/16487:
12554 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12555 on a NULL pointer. Move "goto error" to correct place.
12556
21909fa1
TT
125572014-01-23 Tom Tromey <tromey@redhat.com>
12558
12559 PR python/16491:
12560 * python/py-framefilter.c (apply_frame_filter): Call
12561 ensure_python_env after computing gdbarch.
12562
17fde6d0
YQ
125632014-01-23 Yao Qi <yao@codesourcery.com>
12564
12565 * target.c (raw_memory_xfer_partial): Change argument type
12566 from void * to gdb_byte *.
12567 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12568
87ce2a04
DE
125692014-01-22 Doug Evans <dje@google.com>
12570
12571 New gdbserver option --debug-format=timestamp.
12572 * NEWS: Mention it.
12573
237b092b
AA
125742014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12575
12576 * syscalls/s390x-linux.xml: New file.
12577 * syscalls/s390-linux.xml: New file.
12578 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12579 (XML_SYSCALL_FILENAME_S390X): Likewise.
12580 (op_svc): New enum value for SVC opcode.
12581 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12582 (s390_linux_get_syscall_number): New function.
12583 (s390_gdbarch_init): Register '*get_syscall_number' and the
12584 syscall xml file name.
12585 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12586 "s390-linux.xml" and "s390x-linux.xml".
12587 * NEWS: Announce new feature.
12588
54bff650
BS
125892014-01-22 Baruch Siach <baruch@tkos.co.il>
12590
12591 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12592
14e361d7
PA
125932014-01-22 Pedro Alves <palves@redhat.com>
12594
12595 * xtensa-config.c: Include defs.h.
12596
46bbb3ed
JB
125972014-01-22 Joel Brobecker <brobecker@adacore.com>
12598
12599 * common/common-utils.h: Add "ARI:" comment beside __func__
12600 reference.
12601
3a80edfc
JB
126022014-01-22 Joel Brobecker <brobecker@adacore.com>
12603
12604 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12605 documentation a bit.
12606
4869db5e
RM
126072014-01-21 Roland McGrath <mcgrathr@google.com>
12608
12609 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12610 * configure: Regenerate.
12611 * aclocal.m4: Regenerate.
12612 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12613 New substituted variables.
12614 (install-strip): New target.
12615 (INSTALL_SCRIPT): New substituted variable.
12616 (FLAGS_TO_PASS): Add it.
12617 (install-only): Use $(INSTALL_SCRIPT) rather than
12618 $(INSTALL_PROGRAM) for gcore.
12619
9ea4267d
TT
126202014-01-20 Tom Tromey <tromey@redhat.com>
12621
12622 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12623 together.
12624
1f2bdf09
TT
126252014-01-20 Tom Tromey <tromey@redhat.com>
12626
12627 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12628 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12629 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12630 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12631 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12632 (struct cmd_list_element) <flags>: Remove.
12633 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12634 doc_allocated>: New fields.
12635 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12636 bitfields.
12637 * maint.c (maintenance_do_deprecate): Update.
12638 * top.c (execute_command): Update.
12639
e671835b
BS
126402014-01-20 Baruch Siach <baruch@tkos.co.il>
12641
12642 * xtensa-linux-nat.c: Include asm/ptrace.h.
12643
50367cd2
IB
126442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12645
12646 * Makefile.in (SFILES): Add d-support.c.
12647 (COMMON_OBS): Add d-support.o.
12648 * d-lang.h (d_parse_symbol): Add comment, now defined in
12649 d-support.c.
12650 * d-lang.c (parse_call_convention)
12651 (parse_attributes, parse_function_types)
12652 (parse_function_args, parse_type, parse_identifier)
12653 (call_convention_p, d_parse_symbol): Move functions to ...
12654 * d-support.c: ... New file.
12655
ec9f644a
IB
126562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12657
12658 * d-lang.h (d_parse_symbol): Add declaration.
12659 * d-lang.c (extract_identifiers)
12660 (extract_type_info): Remove functions.
12661 (parse_call_convention, parse_attributes)
12662 (parse_function_types, parse_function_args)
12663 (parse_type, parse_identifier, call_convention_p)
12664 (d_parse_symbol): New functions.
12665 (d_demangle): Use d_parse_symbol to demangle D symbols.
12666
94b1b47e
IB
126672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12668
12669 * d-lang.h (struct builtin_d_type): New data type.
12670 (builtin_d_type): Add declaration.
12671 * d-lang.c (d_language_arch_info, build_d_types)
12672 (builtin_d_type): New functions.
12673 (enum d_primitive_types): New data type.
12674 (d_language_defn): Change c_language_arch_info to
12675 d_language_arch_info.
12676 (d_type_data): New static variable.
12677 (_initialize_d_language): Initialize d_type_data.
12678
63778547
IB
126792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12680
12681 * d-lang.h (d_main_name): Add declaration.
12682 * d-lang.c (d_main_name): New function.
12683 * symtab.c (find_main_name): Add call to d_main_name.
12684
3271ba66
IB
126852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12686
12687 * d-lang.c (d_language_defn): Change macro_expansion_c to
12688 macro_expansion_no.
12689
d36b3012
IB
126902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12691
12692 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12693
c90a6fb7
SDJ
126942014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12695
12696 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12697 gdb_exception" declaration.
12698 * remote.c (getpkt_or_notif_sane): Likewise.
12699
749234e5
DE
127002014-01-17 Doug Evans <dje@google.com>
12701
12702 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12703 function, contents of dirnames_to_char_ptr_vec_append moved here.
12704 (delim_string_to_char_ptr_vec): New function.
12705 (dirnames_to_char_ptr_vec_append): Rewrite.
12706 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12707
df049a58
DE
127082014-01-17 Doug Evans <dje@google.com>
12709
12710 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12711 and moved here ...
12712 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12713 #include "common-utils.h".
12714 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12715 * common/vec.h (VEC_ASSERT_PASS): Update.
12716 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12717 (MACH_CHECK_ERROR): Update.
12718
69f97648
SM
127192014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12720
12721 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12722 comments.
12723 * gdbarch.h: Regenerate.
12724
98b1cfdc
TT
127252014-01-16 Tom Tromey <tromey@redhat.com>
12726
12727 * value.c (struct value) <regnum>: Move earlier.
12728
77a19445
TT
127292014-01-16 Tom Tromey <tromey@redhat.com>
12730
12731 * remote.c (extended_remote_create_inferior): Rename from
12732 extended_remote_create_inferior_1. Add "ops" argument. Remove
12733 old implementation.
12734
62261490
PA
127352014-01-16 Pedro Alves <palves@redhat.com>
12736
12737 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12738 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12739 the backchain.
12740
4d65956b
DE
127412014-01-16 Doug Evans <dje@google.com>
12742
12743 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12744
52834460
MM
127452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12746
12747 * btrace.h (btrace_thread_flag): New.
12748 (struct btrace_thread_info) <flags>: New.
12749 * record-btrace.c (record_btrace_resume_thread)
12750 (record_btrace_find_thread_to_move, btrace_step_no_history)
12751 (btrace_step_stopped, record_btrace_start_replaying)
12752 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12753 (record_btrace_find_resume_thread): New.
12754 (record_btrace_resume, record_btrace_wait): Extend.
12755 (record_btrace_can_execute_reverse): New.
12756 (record_btrace_open): Fail in non-stop mode.
12757 (record_btrace_set_replay): Split into this, ...
12758 (record_btrace_stop_replaying): ... this, ...
12759 (record_btrace_clear_histories): ... and this.
12760 (init_record_btrace_ops): Init to_can_execute_reverse.
12761 * NEWS: Announce it.
12762
118e6252
MM
127632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12764
12765 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12766 (forward_target_decr_pc_after_break)
12767 (target_decr_pc_after_break): New.
12768 * target.c (forward_target_decr_pc_after_break)
12769 (target_decr_pc_after_break): New.
12770 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12771 instead of gdbarch_decr_pc_after_break.
12772 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12773 instead of gdbarch_decr_pc_after_break.
12774 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12775 instead of gdbarch_decr_pc_after_break.
12776 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12777 instead of gdbarch_decr_pc_after_break.
12778 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12779 instead of gdbarch_decr_pc_after_break.
12780 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12781 instead of gdbarch_decr_pc_after_break.
12782
6e07b1d2
MM
127832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12784
12785 * btrace.c: Include regcache.h.
12786 (btrace_add_pc): New.
12787 (btrace_enable): Call btrace_add_pc.
12788 (btrace_is_empty): New.
12789 * btrace.h (btrace_is_empty): New.
12790 * record-btrace.c (require_btrace, record_btrace_info): Call
12791 btrace_is_empty.
12792
969c39fb
MM
127932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12794
12795 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12796 Support delta reads.
12797 (linux_disable_btrace): Change return type.
12798 * common/linux-btrace.h (linux_read_btrace): Change parameters
12799 and return type to allow error reporting. Update users.
12800 (linux_disable_btrace): Change return type. Update users.
12801 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12802 New.
12803 (btrace_error): New.
12804 (btrace_block) <begin>: Comment on BEGIN == 0.
12805 * btrace.c (btrace_compute_ftrace): Start from the end of
12806 the current trace.
12807 (btrace_stitch_trace, btrace_clear_history): New.
12808 (btrace_fetch): Read delta trace, return if replaying.
12809 (btrace_clear): Move clear history code to btrace_clear_history.
12810 (parse_xml_btrace): Throw an error if parsing failed.
12811 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12812 and return type to allow error reporting.
12813 (target_read_btrace): Change parameters and return type to allow
12814 error reporting.
12815 * target.c (target_read_btrace): Update.
12816 * remote.c (remote_read_btrace): Support delta reads. Pass
12817 errors on.
12818 * NEWS: Announce it.
12819
0b722aec
MM
128202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12821
12822 * record.h (record_btrace_frame_unwind)
12823 (record_btrace_tailcall_frame_unwind): New declarations.
12824 * dwarf2-frame: Include record.h
12825 (dwarf2_frame_cfa): Throw an error for btrace frames.
12826 * record-btrace.c: Include hashtab.h.
12827 (btrace_get_bfun_name): New.
12828 (btrace_call_history): Call btrace_get_bfun_name.
12829 (struct btrace_frame_cache): New.
12830 (bfcache): New.
12831 (bfcache_hash, bfcache_eq, bfcache_new): New.
12832 (btrace_get_frame_function): New.
12833 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12834 (record_btrace_frame_this_id): Compute own id.
12835 (record_btrace_frame_prev_register): Provide PC, throw_error
12836 for all other registers.
12837 (record_btrace_frame_sniffer): Detect btrace frames.
12838 (record_btrace_tailcall_frame_sniffer): New.
12839 (record_btrace_frame_dealloc_cache): New.
12840 (record_btrace_frame_unwind): Add new functions.
12841 (record_btrace_tailcall_frame_unwind): New.
12842 (_initialize_record_btrace): Allocate cache.
12843 * btrace.c (btrace_clear): Call reinit_frame_cache.
12844 * NEWS: Announce it.
12845
066ce621
MM
128462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12847
12848 * record-btrace.c (record_btrace_set_replay)
12849 (record_btrace_goto_begin, record_btrace_goto_end)
12850 (record_btrace_goto): New.
12851 (init_record_btrace_ops): Initialize them.
12852 * NEWS: Announce it.
12853
e2887aa3
MM
128542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12855
12856 * record-btrace.c (record_btrace_find_new_threads)
12857 (record_btrace_thread_alive): New.
12858 (init_record_btrace_ops): Initialize to_find_new_threads and
12859 to_thread_alive.
12860
b2f4cfde
MM
128612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12862
12863 * record-btrace.c (record_btrace_resume): New.
12864 (record_btrace_wait): New.
12865 (init_record_btrace_ops): Initialize to_wait and to_resume.
12866
633785ff
MM
128672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12868
12869 * record-btrace.c (record_btrace_xfer_partial)
12870 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12871 (record_btrace_allow_memory_access): New.
12872 (init_record_btrace_ops): Initialize new methods.
12873 * target.c (raw_memory_xfer_partial): Bail out if target reports
12874 that this memory is not available.
12875
3db08215
MM
128762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12877
12878 * target.h (target_ops) <to_insert_breakpoint>
12879 <to_remove_breakpoint>: Add target_ops parameter.
12880 (forward_target_insert_breakpoint): New.
12881 (forward_target_remove_breakpoint): New.
12882 (memory_remove_breakpoint, memory_insert_breakpoint):
12883 Add target_ops parameter.
12884 * target.c (target_insert_breakpoint): Split into this and ...
12885 (forward_target_insert_breakpoint): ... this.
12886 (target_remove_breakpoint): Split into this and ...
12887 (forward_target_remove_breakpoint): ... this.
12888 (debug_to_insert_breakpoint): Add target_ops parameter.
12889 Call forward_target_insert_breakpoint.
12890 (debug_to_remove_breakpoint): Add target_ops parameter.
12891 Call forward_target_remove_breakpoint.
12892 (update_current_target): Do not inherit or default to_insert_breakpoint
12893 and to_remove_breakpoint.
12894 * corelow.c (ignore): Add target_ops parameter.
12895 * exec.c (ignore): Add target_ops parameter.
12896 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12897 Add target_ops parameter.
12898 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12899 Add target_ops parameter.
12900 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12901 Add target_ops parameter.
12902 * record-full.c (record_full_beneath_to_insert_breakpoint)
12903 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12904 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12905 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12906 (record_full_core_remove_breakpoint): Add target_ops parameter.
12907 Update users.
12908 (record_full_beneath_to_insert_breakpoint_ops)
12909 (record_full_beneath_to_remove_breakpoint_ops)
12910 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12911 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12912 tmp_to_remove_breakpoint_ops,
12913 record_full_beneath_to_insert_breakpoint_ops, and
12914 record_full_beneath_to_remove_breakpoint_ops.
12915 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12916 (m32r_remove_breakpoint): Add target_ops parameter.
12917 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12918 Add target_ops parameter.
12919 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12920 Add target_ops parameter.
12921
cecac1ab
MM
129222014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12923 Markus Metzger <markus.t.metzger@intel.com>
12924
12925 * record-btrace.c: Include frame-unwind.h.
12926 (record_btrace_frame_unwind_stop_reason)
12927 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12928 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12929 New.
12930 (init_record_btrace_ops): Install it.
12931
824344ca
MM
129322014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12933
12934 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12935 get_prev_frame_1.
12936
32261e52
MM
129372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12938
12939 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12940 earlier.
12941
ea001bdc
MM
129422014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12943
12944 * frame-unwind.c: Include target.h.
12945 (frame_unwind_try_unwinder): New function with code from ...
12946 (frame_unwind_find_by_frame): ... here. New variable
12947 unwinder_from_target, call also target_get_unwinder)
12948 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12949 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12950 * target.h (struct target_ops): New fields to_get_unwinder and
12951 to_get_tailcall_unwinder.
12952 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12953
1f3ef581
MM
129542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12955
12956 * record-btrace.c (record_btrace_fetch_registers)
12957 (record_btrace_store_registers)
12958 (record_btrace_to_prepare_to_store): New.
12959 (init_record_btrace_ops): Add the above.
12960
f32dbf8c
MM
129612014-01-16 Tom Tromey <tromey@redhat.com>
12962
12963 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12964 * target.h (struct target_ops) <to_prepare_to_store>: Add
12965 argument.
12966 (target_prepare_to_store): Add argument.
12967 * target.c (debug_to_prepare_to_store): Add argument.
12968 (update_current_target): Update.
12969 * remote.c (remote_prepare_to_store): Add 'self' argument.
12970 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12971 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12972 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12973 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12974 argument.
12975 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12976 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12977 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12978 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12979 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12980
07bbe694
MM
129812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12982
12983 * btrace.h (replay) <replay>: New.
12984 (btrace_is_replaying): New.
12985 * btrace.c (btrace_clear): Free replay iterator.
12986 (btrace_is_replaying): New.
12987 * record-btrace.c (record_btrace_is_replaying): New.
12988 (record_btrace_info): Print insn number if replaying.
12989 (record_btrace_insn_history): Start at replay position.
12990 (record_btrace_call_history): Start at replay position.
12991 (init_record_btrace_ops): Init to_record_is_replaying.
12992
0688d04e
MM
129932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12994
12995 * record-btrace.c (record_btrace_insn_history_range): Include
12996 end.
12997 (record_btrace_insn_history_from): Adjust range.
12998 (record_btrace_call_history_range): Include
12999 end.
13000 (record_btrace_call_history_from): Adjust range.
13001 * NEWS: Announce changes.
13002
8710b709
MM
130032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13004
13005 * record.h (enum record_print_flag)
13006 <record_print_indent_calls>: New.
13007 * record.c (get_call_history_modifiers): Recognize /c modifier.
13008 (_initialize_record): Document /c modifier.
13009 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13010 Reorder fields. Optionally indent the function name. Update
13011 all users.
13012 * NEWS: Announce changes.
13013
d0fa7535
MM
130142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13015
13016 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13017
5de9129b
MM
130182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13019
13020 * btrace.c (ftrace_new_function): Start counting at one.
13021 * record-btrace.c (record_btrace_info): Adjust number of calls
13022 and insns.
13023 * NEWS: Announce it.
13024
7acbe133
MM
130252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13026
13027 * record-btrace.c (btrace_call_history_insn_range): Print
13028 insn range as [begin, end].
13029
23a7fe75
MM
130302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13031
13032 * btrace.h (struct btrace_func_link): New.
13033 (enum btrace_function_flag): New.
13034 (struct btrace_inst): Rename to ...
13035 (struct btrace_insn): ...this. Update all users.
13036 (struct btrace_func) <ibegin, iend>: Remove.
13037 (struct btrace_func_link): New.
13038 (struct btrace_func): Rename to ...
13039 (struct btrace_function): ...this. Update all users.
13040 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13041 (number, level, flags>: New.
13042 (struct btrace_insn_iterator): Rename to ...
13043 (struct btrace_insn_history): ...this.
13044 Update all users.
13045 (struct btrace_insn_iterator, btrace_call_iterator): New.
13046 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13047 (struct btrace_target_info) <begin, end, level>
13048 <insn_history, call_history>: New.
13049 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13050 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13051 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13052 (btrace_call_number, btrace_call_begin, btrace_call_end)
13053 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13054 (btrace_find_function_by_number, btrace_set_insn_history)
13055 (btrace_set_call_history): New.
13056 * btrace.c (btrace_init_insn_iterator)
13057 (btrace_init_func_iterator, compute_itrace): Remove.
13058 (ftrace_print_function_name, ftrace_print_filename)
13059 (ftrace_skip_file): Change
13060 parameter to const.
13061 (ftrace_init_func): Remove.
13062 (ftrace_debug): Use new btrace_function fields.
13063 (ftrace_function_switched): Also consider gaining and
13064 losing symbol information).
13065 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13066 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13067 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13068 New.
13069 (ftrace_new_function): Move. Remove debug print.
13070 (ftrace_update_lines, ftrace_update_insns): New.
13071 (ftrace_update_function): Check for call, ret, and jump.
13072 (compute_ftrace): Renamed to ...
13073 (btrace_compute_ftrace): ...this. Rewritten to compute call
13074 stack.
13075 (btrace_fetch, btrace_clear): Updated.
13076 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13077 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13078 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13079 (btrace_call_number, btrace_call_begin, btrace_call_end)
13080 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13081 (btrace_find_function_by_number, btrace_set_insn_history)
13082 (btrace_set_call_history): New.
13083 * record-btrace.c (require_btrace): Use new btrace thread
13084 info fields.
13085 (record_btrace_info, btrace_insn_history)
13086 (record_btrace_insn_history, record_btrace_insn_history_range):
13087 Use new btrace thread info fields and new iterator.
13088 (btrace_func_history_src_line): Rename to ...
13089 (btrace_call_history_src_line): ...this. Use new btrace
13090 thread info fields.
13091 (btrace_func_history): Rename to ...
13092 (btrace_call_history): ...this. Use new btrace thread info
13093 fields and new iterator.
13094 (record_btrace_call_history, record_btrace_call_history_range):
13095 Use new btrace thread info fields and new iterator.
13096
8372a7cb
MM
130972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13098
13099 * frame.h (frame_id_build_unavailable_stack_special): New.
13100 * frame.c (frame_id_build_unavailable_stack_special): New.
13101
c2170eef
MM
131022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13103
13104 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13105 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13106 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13107 to gdbarch.
13108 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13109 (i386_insn_is_jump, i386_jmp_p): New.
13110 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13111 insn_is_jump to gdbarch.
13112 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13113 * gdbarch.h: Regenerated.
13114 * gdbarch.c: Regenerated.
13115 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13116 (default_insn_is_jump): New.
13117 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13118 (default_insn_is_jump): New.
13119
864089d2
MM
131202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13121
13122 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13123 Change to ...
13124 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13125 (btrace_read_type) <btrace_read_new>: Change to ...
13126 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13127
ed9edfb5
MM
131282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13129
13130 * common/linux-btrace.c (linux_read_btrace): Free trace from
13131 previous iteration.
13132
fbcbc3fd
DE
131332014-01-15 Doug Evans <dje@google.com>
13134
13135 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13136 uint32_t.
13137
3d548a53
TT
131382014-01-15 Tom Tromey <tromey@redhat.com>
13139
13140 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13141 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13142 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13143 (set_objfile_main_name): New function.
13144 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13145 language_of_main>: New fields.
13146 (set_objfile_main_name): Declare.
13147 * symtab.c (find_main_name): Loop over objfiles to find the main
13148 name and language.
13149 (set_main_name): Now static.
13150 (get_main_info): Add comment.
13151 * symtab.h (set_main_name): Don't declare.
13152
32ac0d11
TT
131532014-01-15 Tom Tromey <tromey@redhat.com>
13154
13155 * symtab.c (main_progspace_key): New global.
13156 (struct main_info): New.
13157 (name_of_main, language_of_main): Remove.
13158 (get_main_info, main_info_cleanup): New function.
13159 (set_main_name, main_name, main_language): Use get_main_info.
13160 (_initialize_symtab): Initialize main_progspace_key.
13161
9e6c82ad
TT
131622014-01-15 Tom Tromey <tromey@redhat.com>
13163
13164 * dbxread.c (process_one_symbol): Update.
13165 * dwarf2read.c (read_partial_die): Update.
13166 * symfile.c (set_initial_language): Call main_language.
13167 * symtab.c (language_of_main): Now static.
13168 (set_main_name): Add 'lang' parameter.
13169 (find_main_name): Update.
13170 (main_language): New function.
13171 (symtab_observer_executable_changed): Update.
13172 * symtab.h (set_main_name): Update.
13173 (language_of_main): Remove.
13174 (main_language): Declare.
13175
6ef55de7
TT
131762014-01-15 Tom Tromey <tromey@redhat.com>
13177
13178 * symfile.c (init_entry_point_info): Use new "initialized" field.
13179 Update.
13180 * objfiles.h (struct entry_point) <initialized>: New field.
13181 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13182 (struct objfile) <ei>: ...here. Remove.
13183 * objfiles.c (entry_point_address_query): Update.
13184
53eddfa6
TT
131852014-01-15 Tom Tromey <tromey@redhat.com>
13186
13187 * objfiles.c (entry_point_address_query): Relocate entry point
13188 address.
13189 (objfile_relocate1): Do not relocate entry point address.
13190 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13191 <the_bfd_section_index>: New field.
13192 * symfile.c (init_entry_point_info): Find the entry point's
13193 section.
13194
d56e56aa
TT
131952014-01-15 Tom Tromey <tromey@redhat.com>
13196
13197 * solib-frv.c (enable_break): Use entry_point_address_query.
13198
33a97bbe
OJ
131992014-01-15 Omair Javaid <omair.javaid@linaro.org>
13200
13201 * NEWS: Add note on improved process record-replay on
13202 arm*-linux* targets.
13203
c6ec2b30
OJ
132042014-01-15 Omair Javaid <omair.javaid@linaro.org>
13205
13206 * arm-tdep.c (enum arm_record_result): New enum.
13207 (arm_record_unsupported_insn): New function.
13208 (arm_record_coproc_data_proc): Removed.
13209 (thumb2_record_ld_st_multiple): New function.
13210 (thumb2_record_ld_st_dual_ex_tbb): New function.
13211 (thumb2_record_data_proc_sreg_mimm): New function.
13212 (thumb2_record_ps_dest_generic): New function.
13213 (thumb2_record_branch_misc_cntrl): New function.
13214 (thumb2_record_str_single_data): New function.
13215 (thumb2_record_ld_mem_hints): New function.
13216 (thumb2_record_ld_word): New function.
13217 (thumb2_record_lmul_lmla_div): New function.
13218 (thumb2_record_decode_insn_handler): New function.
13219 (decode_insn): Add thumb32 instruction handlers.
13220
97dfe206
OJ
132212014-01-15 Omair Javaid <omair.javaid@linaro.org>
13222
13223 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13224 (struct arm_linux_record_tdep): Declare.
13225 (arm_canonicalize_syscall): New function.
13226 (arm_all_but_pc_registers_record): New function.
13227 (arm_linux_syscall_record): New function.
13228 (arm_linux_init_abi): Add syscall recording constructs.
13229 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13230 decoding. (arm_record_coproc_data_proc): Update arm syscall
13231 decoding.
13232 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13233 <arm_syscall_record>: New field.
13234 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13235 gdb_target_obs.
13236
9904a494
OJ
132372014-01-15 Omair Javaid <omair.javaid@linaro.org>
13238
13239 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13240 register for push instruction recording.
13241
f969241e
OJ
132422014-01-15 Omair Javaid <omair.javaid@linaro.org>
13243
13244 * arm-tdep.c (thumb_record_misc): Update to correct logical
13245 error while recording ldm, ldmia and pop instructions.
13246
bfbbec00
OJ
132472014-01-15 Omair Javaid <omair.javaid@linaro.org>
13248
13249 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13250
e40adcc9
PA
132512014-01-15 Pedro Alves <palves@redhat.com>
13252
13253 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13254 (go32_resume, go32_fetch_registers, store_register)
13255 (go32_store_registers, go32_prepare_to_store)
13256 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13257 (go32_create_inferior, go32_can_run, go32_terminal_init)
13258 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13259 declarations.
13260
b0a16e66
TT
132612014-01-15 Tom Tromey <tromey@redhat.com>
13262
13263 * target.h (async_callback_ftype): New typedef.
13264 (struct target_ops) <to_async>: Use it.
13265
bf7105a4
JB
132662014-01-15 Joel Brobecker <brobecker@adacore.com>
13267
13268 * python/py-value.c (get_field_type): Remove unnecessary curly
13269 braces for single-statement if block.
13270
a8f35c2e
JB
132712014-01-15 Joel Brobecker <brobecker@adacore.com>
13272
13273 * python/py-type.c (convert_field): Add missing empty line
13274 after declarations.
13275
bb4142cf
DE
132762014-01-14 Doug Evans <dje@google.com>
13277
13278 * symfile.h (expand_symtabs_matching): Renamed from
13279 expand_partial_symbol_names. Update prototype.
13280 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13281 * symfile.c (expand_symtabs_matching): Renamed from
13282 expand_partial_symbol_names. New args file_matcher, kind.
13283 Rename arg fun to symbol_matcher.
13284 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13285 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13286 ada_expand_partial_symbol_name.
13287 (ada_make_symbol_completion_list): Update to call
13288 expand_symtabs_matching.
13289 (ada_add_global_exceptions): Call expand_symtabs_matching.
13290 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13291 call map_symbol_filenames.
13292 * symtab.c (sources_info): Update to call map_symbol_filenames.
13293 (search_symbols): Call expand_symtabs_matching.
13294 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13295 (default_make_symbol_completion_list_break_on): Update to call
13296 expand_symtabs_matching.
13297 (make_source_files_completion_list): Update to call
13298 map_symbol_filenames.
13299
206f2a57
DE
133002014-01-14 Doug Evans <dje@google.com>
13301
13302 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13303 (expand_symtabs_symbol_matcher_ftype): New typedef.
13304 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13305 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13306 * symfile.c (expand_partial_symbol_names): Update to use
13307 expand_symtabs_symbol_matcher_ftype.
13308 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13309 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13310 Arg name_matcher renamed to symbol_matcher.
13311 * psymtab.c (recursively_search_psymtabs): Update to use
13312 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13313 sym_matcher.
13314 (expand_symtabs_matching_via_partial): Update to use
13315 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13316 Arg name_matcher renamed to symbol_matcher.
13317
540c2971
DE
133182014-01-14 Doug Evans <dje@google.com>
13319
13320 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13321 (map_partial_symbol_filenames): Ditto.
13322 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13323 (map_partial_symbol_filenames): Ditto.
13324 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13325 (map_partial_symbol_filenames): Ditto.
13326 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13327 (map_partial_symbol_filenames): Ditto.
13328 * symtab.c: Delete #include "psymtab.h".
13329
8213266a
PA
133302014-01-14 Pedro Alves <palves@redhat.com>
13331 Tom Tromey <tromey@redhat.com>
13332
13333 * infrun.c (use_displaced_stepping): Use find_record_target
13334 instead of RECORD_IS_USED.
13335 (adjust_pc_after_break): Use record_full_is_used instead of
13336 RECORD_IS_USED.
13337 * record-btrace.c (record_btrace_open): Call record_preopen
13338 instead of checking RECORD_IS_USED.
13339 * record-full.c (record_full_shortname)
13340 (record_full_core_shortname): New globals.
13341 (record_full_is_used): New function.
13342 (find_full_open): Call record_preopen instead of checking
13343 RECORD_IS_USED.
13344 (init_record_full_ops): Set the target's shortname to
13345 record_full_shortname.
13346 (init_record_full_core_ops): Set the target's shortname to
13347 record_full_core_shortname.
13348 * record-full.h (record_full_is_used): Declare.
13349 * record.c (find_record_target): Make extern.
13350 (record_preopen): New function.
13351 * record.h (RECORD_IS_USED): Delete macro.
13352 (find_record_target, record_preopen): Declare functions.
13353
7ec1862d
YQ
133542014-01-14 Yao Qi <yao@codesourcery.com>
13355
13356 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13357 'len''s type to ULONGEST.
13358 (core_xfer_shared_libraries_aix): Likewise.
13359 * gdbarch.c, gdbarch.h: Regenerated.
13360 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13361 Change type of 'len' to ULONGEST.
13362 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13363 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13364
dea80a27
YQ
133652014-01-14 Yao Qi <yao@codesourcery.com>
13366
13367 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13368 type of 'len' to ULONGEST.
13369 (linux_xfer_osdata_processgroups): Likewise.
13370 (linux_xfer_osdata_threads): Likewise.
13371 (linux_xfer_osdata_fds): Likewise.
13372 (linux_xfer_osdata_isockets): Likewise.
13373 (linux_xfer_osdata_shm): Likewise.
13374 (linux_xfer_osdata_sem): Likewise.
13375 (linux_xfer_osdata_msg): Likewise.
13376 (linux_common_xfer_osdata): Likewise.
13377 (struct osdata_type) <getter>: Likewise.
13378 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13379 the declaration.
13380
b55e14c7
YQ
133812014-01-14 Yao Qi <yao@codesourcery.com>
13382
13383 * target.h (target_xfer_partial_ftype): Update.
13384 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13385 ULONGEST.
13386 * aix-thread.c (aix_thread_xfer_partial): Change type of
13387 argument 'len' to ULONGEST.
13388 * auxv.c (procfs_xfer_auxv): Likewise.
13389 (ld_so_xfer_auxv): Likewise.
13390 (memory_xfer_auxv): Likewise.
13391 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13392 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13393 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13394 * corelow.c (core_xfer_partial): Likewise.
13395 * ctf.c (ctf_xfer_partial): Likewise.
13396 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13397 '%u'.
13398 (darwin_read_dyld_info): Likewise.
13399 (darwin_xfer_partial): Likewise.
13400 * exec.c (section_table_xfer_memory_partial): Likewise.
13401 (exec_xfer_partial): Likewise.
13402 * exec.h (section_table_xfer_memory_partial): Update
13403 declaration.
13404 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13405 instead of plongest.
13406 (gnu_xfer_partial): Likewise.
13407 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13408 (ia64_hpux_xfer_solib_got): Likewise.
13409 (ia64_hpux_xfer_partial): Likewise.
13410 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13411 * inf-ptrace.c (inf_ptrace_xfer_partial):
13412 * inf-ttrace.c (inf_ttrace_xfer_partial):
13413 * linux-nat.c (linux_xfer_siginfo): Likewise.
13414 (linux_nat_xfer_partial): Likewise.
13415 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13416 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13417 * monitor.c (monitor_xfer_memory): Likewise.
13418 (monitor_xfer_partial): Likewise.
13419 * procfs.c (procfs_xfer_partial): Likewise.
13420 * record-full.c (record_full_xfer_partial): Likewise.
13421 (record_full_core_xfer_partial): Likewise.
13422 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13423 instead of plongest.
13424 (gdbsim_xfer_partial): Likewise.
13425 * remote.c (remote_xfer_partial): Likewise.
13426 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13427 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13428 declaration.
13429 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13430 (rs6000_xfer_shared_libraries): Likewise.
13431 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13432 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13433 (sparc_xfer_partial): Likewise.
13434 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13435 (spu_xfer_partial): Likewise.
13436 * spu-multiarch.c (spu_xfer_partial): Likewise.
13437 * target.c (target_read_live_memory): Likewise.
13438 (memory_xfer_live_readonly_partial): Likewise.
13439 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13440 (target_xfer_partial, default_xfer_partial): Likewise.
13441 (current_xfer_partial): Likewise.
13442 * tracepoint.c (tfile_xfer_partial): Likewise.
13443 * windows-nat.c (windows_xfer_memory): Likewise. Call
13444 pulongest instead of plongest.
13445 (windows_xfer_partial): Likewise.
13446 (windows_xfer_shared_libraries): Likewise.
13447
05804640
YQ
134482014-01-14 Yao Qi <yao@codesourcery.com>
13449
13450 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13451 target_xfer_partial_ftype.
13452
b5b08fb4
SC
134532014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13454
13455 PR python/15464
13456 PR python/16113
13457 * valops.c (value_struct_elt_bitpos): New function
13458 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13459 object to 'None' if the field name is an empty string ("").
13460 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13461 attribute to look for a field when 'name' is 'None'.
13462 (get_field_type): New function
13463
13aaf454
DE
134642014-01-13 Doug Evans <dje@google.com>
13465
13466 PR symtab/16426
13467 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13468 (try_open_dwop_file): Ditto.
13469 * gdb_bfd.c: #include "vec.h".
13470 (bfdp): New typedef.
13471 (struct gdb_bfd_data): New member included_bfds.
13472 (gdb_bfd_unref): Unref all included bfds.
13473 (gdb_bfd_record_inclusion): New function.
13474 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13475
c2cec97c
TT
134762014-01-13 Tom Tromey <tromey@redhat.com>
13477
13478 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13479
78e5999d
TT
134802014-01-13 Tom Tromey <tromey@redhat.com>
13481
13482 * defs.h (use_windows): Remove.
13483 * gdb.c (main): Update.
13484 * main.c (captured_main, gdb_main): Update.
13485 * main.h (struct captured_main_args) <use_windows>: Remove.
13486 * top.c (use_windows): Remove.
13487
f2052bbe
TT
134882014-01-13 Tom Tromey <tromey@redhat.com>
13489
13490 * defs.h (deprecated_flush_hook): Remove.
13491
fde4f8ed
JK
134922014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13493
13494 PR threads/16216
13495 * linux-thread-db.c (try_thread_db_load): Add parameter
13496 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13497 (try_thread_db_load_from_pdir_1): Move it there from here.
13498 (try_thread_db_load_from_sdir): Update caller.
13499 (try_thread_db_load_from_dir): Move it there from here.
13500
bdf61915
PP
135012014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13502
13503 * regformats/regdat.sh: Always rewrite the register file.
13504
f71e1a8d
PA
135052014-01-13 Pedro Alves <palves@redhat.com>
13506
13507 * Makefile.in (CHECK_HEADERS): New variable.
13508 (check-headers:): New rule.
13509
42c85435
TT
135102014-01-13 Tom Tromey <tromey@redhat.com>
13511
13512 * cli/cli-setshow.c (do_set_command): Update.
13513 * defs.h (deprecated_set_hook): Remove.
13514 * top.c (deprecated_set_hook): Remove.
13515
f8de5129
PA
135162014-01-13 Pedro Alves <palves@redhat.com>
13517
13518 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13519 the tracepoint if the PC is a pseudo-register.
13520
fc270c35
TT
135212014-01-13 Tom Tromey <tromey@redhat.com>
13522
13523 * defs.h (XCALLOC): Remove.
13524 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13525 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13526 * dwarf2loc.c (allocate_piece_closure): Likewise.
13527 * elfread.c (elf_symfile_segments): Likewise.
13528 (elf_symfile_segments): Likewise.
13529 * gdbtypes.c (copy_type_recursive): Likewise.
13530 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13531 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13532 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13533 XCALLOC.
13534 * mt-tdep.c (mt_gdbarch_init): Likewise.
13535 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13536 XCALLOC.
13537 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13538 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13539 * registry.c (registry_alloc_data): Likewise.
13540 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13541 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13542 * serial.c (serial_fdopen_ops): Likewise.
13543 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13544 XCALLOC.
13545 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13546 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13547 not XCALLOC.
13548
70ba0933
TT
135492014-01-13 Tom Tromey <tromey@redhat.com>
13550
13551 * defs.h (XMALLOC): Remove.
13552 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13553 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13554 * cli-out.c (struct ui_out *): Likewise.
13555 * cli/cli-dump.c (add_dump_command): Likewise.
13556 (add_dump_command): Likewise.
13557 * complaints.c (get_complaints): Likewise.
13558 (find_complaint): Likewise.
13559 * dwarf2-frame.c (execute_cfa_program): Likewise.
13560 * dwarf2read.c (abbrev_table_read_table): Likewise.
13561 * gdbarch.sh: Likewise.
13562 * gdbarch.c: Rebuild.
13563 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13564 * interps.c (interp_new): Likewise.
13565 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13566 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13567 * mi/mi-console.c (mi_console_file_new): Likewise.
13568 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13569 * mi/mi-out.c (mi_out_new): Likewise.
13570 * mi/mi-parse.c (mi_parse): Likewise.
13571 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13572 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13573 * observer.c (xalloc_observer_list_node): Likewise.
13574 * regcache.c (regcache_xmalloc_1): Likewise.
13575 * reggroups.c (reggroup_new): Likewise.
13576 (_initialize_reggroup): Likewise.
13577 * registry.c (register_data_with_cleanup): Likewise.
13578 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13579 * ser-base.c (serial_ttystate): Likewise.
13580 * ser-mingw.c (make_pipe_state): Likewise.
13581 * ser-pipe.c (pipe_open): Likewise.
13582 * serial.c (serial_open): Likewise.
13583 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13584 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13585 (tui_alloc_win_info): Likewise.
13586 (tui_add_content_elements): Likewise.
13587 * tui/tui-file.c (tui_file_new): Likewise.
13588 * tui/tui-out.c (tui_out_new): Likewise.
13589 * ui-file.c (mem_file_new): Likewise.
13590 * ui-out.c (push_level): Likewise.
13591 (make_cleanup_ui_out_end): Likewise.
13592 (append_header_to_list): Likewise.
13593 (ui_out_new): Likewise.
13594 * user-regs.c (user_reg_add_builtin): Likewise.
13595
41bf6aca
TT
135962014-01-13 Tom Tromey <tromey@redhat.com>
13597
13598 * defs.h (XZALLOC): Remove.
13599 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13600 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13601 (get_ada_tasks_inferior_data): Likewise.
13602 * auto-load.c (get_auto_load_pspace_data): Likewise.
13603 * auxv.c (get_auxv_inferior_data): Likewise.
13604 * bfd-target.c (target_bfd_reopen): Likewise.
13605 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13606 (deprecated_insert_raw_breakpoint): Likewise.
13607 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13608 * corelow.c (core_open): Likewise.
13609 * darwin-nat.c (darwin_check_new_threads): Likewise.
13610 (darwin_attach_pid): Likewise.
13611 * dummy-frame.c (dummy_frame_push): Likewise.
13612 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13613 * dwarf2loc.c (allocate_piece_closure): Likewise.
13614 * elfread.c (elf_symfile_segments): Likewise.
13615 * eval.c (ptrmath_type_p): Likewise.
13616 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13617 * gdbtypes.c (alloc_type_arch): Likewise.
13618 (alloc_type_instance): Likewise.
13619 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13620 * inf-child.c (inf_child_can_use_agent): Likewise.
13621 * inflow.c (get_inflow_inferior_data): Likewise.
13622 * infrun.c (save_infcall_suspend_state): Likewise.
13623 * jit.c (jit_reader_load): Likewise.
13624 (get_jit_objfile_data): Likewise.
13625 (get_jit_program_space_data): Likewise.
13626 (jit_object_open_impl): Likewise.
13627 (jit_symtab_open_impl): Likewise.
13628 (jit_block_open_impl): Likewise.
13629 (jit_frame_sniffer): Likewise.
13630 * linux-fork.c (add_fork): Likewise.
13631 * maint.c (make_command_stats_cleanup): Likewise.
13632 * objfiles.c (get_objfile_pspace_data): Likewise.
13633 * opencl-lang.c (struct lval_closure): Likewise.
13634 * osdata.c (osdata_start_osdata): Likewise.
13635 * progspace.c (new_address_space): Likewise.
13636 (add_program_space): Likewise.
13637 * remote-sim.c (get_sim_inferior_data): Likewise.
13638 * sh-tdep.c (sh_gdbarch_init): Likewise.
13639 * skip.c (Ignore): Likewise.
13640 (skip_delete_command): Likewise.
13641 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13642 (library_list_start_library): Likewise.
13643 (solib_aix_current_sos): Likewise.
13644 * solib-darwin.c (get_darwin_info): Likewise.
13645 (darwin_current_sos): Likewise.
13646 * solib-dsbt.c (get_dsbt_info): Likewise.
13647 * solib-ia64-hpux.c (new_so_list): Likewise.
13648 (ia64_hpux_get_solib_linkage_addr): Likewise.
13649 * solib-spu.c (append_ocl_sos): Likewise.
13650 (spu_current_sos): Likewise.
13651 * solib-svr4.c (get_svr4_info): Likewise.
13652 (svr4_keep_data_in_core): Likewise.
13653 (library_list_start_library): Likewise.
13654 (svr4_default_sos): Likewise.
13655 (svr4_read_so_list): Likewise.
13656 * solib-target.c (library_list_start_library): Likewise.
13657 (solib_target_current_sos): Likewise.
13658 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13659 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13660 * symfile.c (default_symfile_segments): Likewise.
13661 * target-descriptions.c (tdesc_data_init): Likewise.
13662 (tdesc_create_reg): Likewise.
13663 (struct tdesc_type *): Likewise.
13664 (tdesc_create_vector): Likewise.
13665 (tdesc_set_struct_size): Likewise.
13666 (struct tdesc_type *): Likewise.
13667 (tdesc_free_feature): Likewise.
13668 (tdesc_create_feature): Likewise.
13669 * windows-nat.c (windows_add_thread): Likewise.
13670 (windows_make_so): Likewise.
13671 * xml-support.c (gdb_xml_body_text): Likewise.
13672 (gdb_xml_create_parser_and_cleanup): Likewise.
13673 (xml_process_xincludes): Likewise.
13674 * xml-syscall.c (allocate_syscalls_info): Likewise.
13675 (syscall_create_syscall_desc): Likewise.
13676
5acfdbae
SDJ
136772014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13678
13679 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13680 function, with code from i386_stap_parse_special_token.
13681 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13682 (i386_stap_parse_special_token): Move code to the two functions
13683 above; simplify it.
13684
0000e5cc
PA
136852014-01-09 Pedro Alves <palves@redhat.com>
13686 Hui Zhu <hui@codesourcery.com>
13687
13688 PR gdb/16101
13689 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13690 bp_err_string. Don't mark the location shlib_disabled if the
13691 error thrown wasn't a generic or memory error. Catch errors
13692 thrown while inserting breakpoints in overlayed code. Output
13693 error message of software breakpoints.
13694 * remote.c (remote_insert_breakpoint): If this breakpoint has
13695 target-side commands but this stub doesn't support Z0 packets,
13696 throw NOT_SUPPORTED_ERROR error.
13697 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13698 * target.h (target_insert_breakpoint): Extend comment.
13699 (target_insert_hw_breakpoint): Add comment.
13700
b7ea362b
PA
137012014-01-08 Pedro Alves <palves@redhat.com>
13702
13703 * remote.c (remote_add_thread): Add threads silently if starting
13704 up.
13705 (remote_notice_new_inferior): If in all-stop, and starting up,
13706 don't call notice_new_inferior.
13707 (get_current_thread): New function, factored out from ...
13708 (add_current_inferior_and_thread): ... this. Adjust.
13709 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13710 found any thread, then select the remote's current thread as GDB's
13711 current thread too.
13712
b7bba001
JB
137132014-01-08 Joel Brobecker <brobecker@adacore.com>
13714
13715 * NEWS: Create a new section for the next release branch.
13716 Rename the section of the current branch, now that it has
13717 been cut.
13718
16dfbded
JB
137192014-01-08 Joel Brobecker <brobecker@adacore.com>
13720
13721 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13722 * version.in: Bump version to 7.7.50.DATE-cvs.
13723
22c90ac1
YQ
137242014-01-08 Yao Qi <yao@codesourcery.com>
13725
13726 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13727 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13728 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13729
d64ad97c
YQ
137302014-01-08 Yao Qi <yao@codesourcery.com>
13731
13732 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13733 return value of bfd_get_filename to symbol_file_add_from_bfd.
13734
f93ba80c
PM
137352014-01-08 Pierre Muller <muller@sourceware.org>
13736
13737 Fix PR16201.
13738 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13739 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13740 to prim_record_mininal_symbol_and_info.
13741 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13742 in call to prim_record_minimal_symbol_and_info.
13743 (read_pe_exported_syms): Set index field of section_data.
13744
a4d9ba85
AP
137452014-01-07 Andrew Pinski <apinski@cavium.com>
13746
13747 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13748 * features/aarch64.c: Regenerate.
13749
1b67eb02
AS
137502014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13751
13752 * target.c (return_null): Define.
13753 (update_current_target): Use it instead of return_zero for
13754 functions that return a pointer.
13755
5e3f4fab
EBM
137562014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13757
13758 * source.c (add_path): Fix check for duplicated paths in the previously
13759 included paths.
13760
e2616788
HK
137612014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13762
13763 * ada-lang.c: Remove duplicated include statements.
13764 * alphabsd-nat.c: Ditto.
13765 * amd64-darwin-tdep.c: Ditto.
13766 * amd64fbsd-nat.c: Ditto.
13767 * auto-load.c: Ditto.
13768 * ax-gdb.c: Ditto.
13769 * breakpoint.c: Ditto.
13770 * dbxread.c: Ditto.
13771 * fork-child.c: Ditto.
13772 * gdb_usleep.c: Ditto.
13773 * i386-darwin-tdep.c: Ditto.
13774 * i386fbsd-nat.c: Ditto.
13775 * infcmd.c: Ditto.
13776 * inferior.c: Ditto.
13777 * jv-lang.c: Ditto.
13778 * linux-nat.c: Ditto.
13779 * linux-tdep.c: Ditto.
13780 * m68kbsd-nat.c: Ditto.
13781 * m68klinux-nat.c: Ditto.
13782 * microblaze-tdep.c: Ditto.
13783 * mips-linux-tdep.c: Ditto.
13784 * mn10300-tdep.c: Ditto.
13785 * nto-tdep.c: Ditto.
13786 * opencl-lang.c: Ditto.
13787 * osdata.c: Ditto.
13788 * printcmd.c: Ditto.
13789 * regcache.c: Ditto.
13790 * remote-m32r-sdi.c: Ditto.
13791 * remote.c: Ditto.
13792 * symfile.c: Ditto.
13793 * symtab.c: Ditto.
13794 * tilegx-linux-nat.c: Ditto.
13795 * tilegx-tdep.c: Ditto.
13796 * tracepoint.c: Ditto.
13797 * valops.c: Ditto.
13798 * vaxbsd-nat.c: Ditto.
13799 * windows-nat.c: Ditto.
13800 * xtensa-tdep.c: Ditto.
13801
bd1f7788
YQ
138022014-01-07 Yao Qi <yao@codesourcery.com>
13803
13804 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13805
79301218
JB
138062014-01-07 Yao Qi <yao@codesourcery.com>
13807 Joel Brobecker <brobecker@adacore.com>
13808
13809 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13810 (pdc_write_regs): Likewise.
13811 (fetch_regs_kernel_thread): Likewise.
13812 (store_regs_kernel_thread): Likewise.
13813
138142014-01-07 Joel Brobecker <brobecker@adacore.com>
13815
13816 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13817 tagged type objects to their actual type.
13818
8e355c5d
JB
138192014-01-07 Joel Brobecker <brobecker@adacore.com>
13820
13821 * ada-valprint.c (print_field_values): Add "language" parameter.
13822 Update calls to print_field_values and print_variant_part.
13823 Pass new parameter "language" in call to val_print instead
13824 of "current_language". Replace call to ada_val_print by call
13825 to val_print.
13826 (print_variant_part): Add "language" parameter.
13827 (ada_val_print_struct_union): Update call to print_field_values.
13828
4fbf5aa5
JB
138292014-01-07 Joel Brobecker <brobecker@adacore.com>
13830
13831 * ada-valprint.c (ui_memcpy): Delete.
13832 (ada_print_floating): Update documentation. Add empty line
13833 between between function documentation and implementation.
13834 Delete variable "buffer". Use ui_file_xstrdup in place of
13835 ui_file_put. Minor adjustments following this change.
13836
71855601
JB
138372014-01-07 Joel Brobecker <brobecker@adacore.com>
13838
13839 * ada-valprint.c (ada_val_print_string): New function,
13840 extracted from ada_val_print_array.
13841 (ada_val_print_array): Replace extracted code by call
13842 to ada_val_print_string followed by a return. Move
13843 "else" branch to the function's top block.
13844
4eb27a30
JB
138452014-01-07 Joel Brobecker <brobecker@adacore.com>
13846
13847 * ada-valprint.c (ada_val_print_array): Move implementation
13848 down. Rename parameter "offset" and "val" into "offset_aligned"
13849 and "original_value" respectively. Add parameter "offset".
13850
34b27950
JB
138512014-01-07 Joel Brobecker <brobecker@adacore.com>
13852
13853 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13854 re-organizing the code. Change the "???" message printed
13855 when target type is a TYPE_CODE_UNDEF into
13856 "<ref to undefined type>".
13857
079e4591
JB
138582014-01-07 Joel Brobecker <brobecker@adacore.com>
13859
13860 * ada-valprint.c (print_record): Delete, implementation inlined...
13861 (ada_val_print_struct_union): ... here. Remove call to
13862 ada_check_typedef in inlined implementation.
13863
8004dfd1
JB
138642014-01-07 Joel Brobecker <brobecker@adacore.com>
13865
13866 * ada-valprint.c (ada_val_print_gnat_array): New function,
13867 extracted from ada_val_print_1;
13868 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13869 (ada_val_print_flt, ada_val_print_struct_union)
13870 (ada_val_print_ref): Likewise.
13871 (ada_val_print_1): Delete variables i and elttype.
13872 Replace extracted-out code by call to corresponding
13873 new functions.
13874
760a2db0
JB
138752014-01-07 Joel Brobecker <brobecker@adacore.com>
13876
13877 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13878
3a92c861
JB
138792014-01-07 Joel Brobecker <brobecker@adacore.com>
13880
13881 * ada-valprint.c (ada_val_print_1): Replace calls to
13882 ada_val_print_1 by calls to val_print.
13883
cd1630f9
JB
138842014-01-07 Joel Brobecker <brobecker@adacore.com>
13885
13886 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13887 Update calls to self accordingly. Replace calls to c_val_print
13888 by calls to val_print.
13889
bdf779a0
JB
138902014-01-07 Joel Brobecker <brobecker@adacore.com>
13891
13892 * ada-valprint.c (print_record): Delete declaration.
13893 (adjust_type_signedness, ada_val_print_1): Likewise.
13894 (ada_val_print): Move function implementation down.
13895 (print_variant_part, print_field_values, print_record):
13896 Move function implementation up.
13897
c0d48811
JB
138982014-01-07 Joel Brobecker <brobecker@adacore.com>
13899
13900 * python/py-type.c (typy_get_name): New function.
13901 (type_object_getset): Add entry for attribute "name".
13902 * NEWS: Add entry mentioning this new attribute.
13903
c26e9cbb
YQ
139042014-01-07 Yao Qi <yao@codesourcery.com>
13905
13906 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13907 statement.
13908
0cc6f43d
YQ
139092014-01-07 Yao Qi <yao@codesourcery.com>
13910
13911 * gnu-nat.c (info_port_rights): Add qualifier const to
13912 argument args.
13913
eec03155
YQ
139142014-01-07 Yao Qi <yao@codesourcery.com>
13915
13916 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13917
f04a82ef
YQ
139182014-01-07 Yao Qi <yao@codesourcery.com>
13919
13920 * gnu-nat.c (make_inf) Update declaration.
13921 (make_inf): Make it static.
13922 (inf_set_traced): Likewise.
13923 (inf_port_to_thread, inf_task_died_status): Likewise.
13924
d57dda0a
YQ
139252014-01-07 Yao Qi <yao@codesourcery.com>
13926
13927 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13928
3aa8c969
YQ
139292014-01-07 Yao Qi <yao@codesourcery.com>
13930
13931 * gnu-nat.c (_initialize_gnu_nat): Declare.
13932
94123b4f
YQ
139332014-01-07 Yao Qi <yao@codesourcery.com>
13934
13935 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13936 'enum bfd_endian'.
13937 (struct gdbarch_info) <byte_order>: Change type to
13938 'enum bfd_endian'.
13939 <byte_order_for_code>: Likewise.
13940 * gdbarch.c, gdbarch.h: Regenerated.
13941
dc81d70a
TT
139422014-01-06 Sasha Smundak <asmundak@google.com>
13943
13944 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13945
cc2f3c35
TT
139462014-01-06 Tom Tromey <tromey@redhat.com>
13947
13948 * doublest.c (convert_doublest_to_floatformat): Use const, not
13949 CONST.
13950 * somread.c (som_symtab_read): Likewise.
13951
adcf2eed
HZ
139522014-01-07 Hui Zhu <hui@codesourcery.com>
13953
13954 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13955 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13956 (gdb_bfd_fopen): Ditto.
13957 (gdb_bfd_openr): Ditto.
13958 (gdb_bfd_openw): Ditto.
13959 (gdb_bfd_openr_iovec): Ditto.
13960 (gdb_bfd_fdopenr): Ditto.
13961 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13962 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13963 with xstrdup.
13964 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13965 with xstrdup.
13966 * symfile-mem.c (symbol_file_add_from_memory): Removed
13967 gdb_bfd_stash_filename.
13968
50722198
DE
139692014-01-03 Doug Evans <dje@google.com>
13970
13971 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13972 output.
13973
2fa4b862
JB
139742014-01-01 Joel Brobecker <brobecker@adacore.com>
13975
13976 Update year range in copyright notice of all files.
13977
28498c42
JB
139782014-01-01 Joel Brobecker <brobecker@adacore.com>
13979
13980 * top.c (print_gdb_version): Set copyright year to 2014.
13981
7b6e1046
JB
139822014-01-01 Joel Brobecker <brobecker@adacore.com>
13983
13984 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13985
df96af55 13986For older changes see ChangeLog-2013.
c906108c
SS
13987\f
13988Local Variables:
13989mode: change-log
13990left-margin: 8
13991fill-column: 74
13992version-control: never
57da7796 13993coding: utf-8
c906108c 13994End:
This page took 2.493095 seconds and 4 git commands to generate.