Only call {set,clear}_semaphore probe function if they are not NULL
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0ea5cda8
SDJ
12014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
4 only if it is not NULL.
5 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
6 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
7 (struct probe_ops) <clear_semaphore>: Likewise.
8 * tracepoint.c (start_tracing): Call set_semaphore only if it is
9 not NULL.
10 (stop_tracing): Likewise, for clear_semaphore.
11
f7088df3
SDJ
122014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
13
14 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
15 using language_c, instead of current_language.
16
4e1bbde0
DE
172014-10-13 Doug Evans <dje@google.com>
18
6ff5a0f6 19 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 20 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 21 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
22 (pspy_new, pspace_to_pspace_object): Call it.
23
c780cc2f
JK
242014-10-13 Miroslav Franc <mfranc@redhat.com>
25 Jan Kratochvil <jan.kratochvil@redhat.com>
26
27 Fix "save breakpoints" for "catch" command.
28 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
29 newline.
30
99894e11
JK
312014-10-12 Miroslav Franc <mfranc@redhat.com>
32
33 Fix "save breakpoints" for "disable $bpnum" command.
34 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
35
3831839c
PA
362014-10-10 Pedro Alves <palves@redhat.com>
37
38 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
39 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
40 (HFILES_NO_SRCDIR): Remove solib-irix.h.
41 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
42 and been removed.
43 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
44 * configure.ac: Remove references to IRIX.
45 * configure.host: Add *-*-irix* to the obsolete hosts section.
46 Remove all other references to irix.
47 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
48 Delete files.
49
cc3afae2
AKA
502014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
51
52 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
53 isn't valid, release the tdesc arch data and return NULL.
54
cdfa0b0a
PA
552014-10-10 Pedro Alves <palves@redhat.com>
56
57 * linux-tdep.c: Include observer.h.
58 (linux_inferior_data): New global.
59 (struct linux_info): New structure.
60 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
61 (get_linux_inferior_data): New functions.
62 (linux_vsyscall_range): Rename to ...
63 (linux_vsyscall_range_raw): ... this.
64 (linux_vsyscall_range): New function; handles caching.
65 (_initialize_linux_tdep): Register linux_inferior_data. Install
66 inferior_exit and inferior_appeared observers.
67
8b9a549d
PA
682014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
69 Pedro Alves <palves@redhat.com>
70
71 PR symtab/14466
72 * solib-svr4.c (svr4_read_so_list): Rename to ...
73 (svr4_current_sos_1): ... this and change the function comment.
74 (svr4_current_sos): New function.
75
3437254d
PA
762014-10-10 Pedro Alves <palves@redhat.com>
77
78 * arch-utils.c (default_vsyscall_range): New function.
79 * arch-utils.h (default_vsyscall_range): New declaration.
80 * gdbarch.sh (vsyscall_range): New hook.
81 * gdbarch.h, gdbarch.c: Regenerate.
82 * linux-tdep.c (linux_vsyscall_range): New function.
83 (linux_init_abi): Install linux_vsyscall_range as
84 vsyscall_range gdbarch hook.
85 * memrange.c (address_in_mem_range): New function.
86 * memrange.h (address_in_mem_range): New declaration.
87 * symfile-mem.c (find_vdso_size): Delete function.
88 (add_vsyscall_page): Use gdbarch_vsyscall_range.
89
31cc0b80
PA
902014-10-10 Pedro Alves <palves@redhat.com>
91
92 * infrun.c (normal_stop): Fix typo in comment.
93
3e3286a2
SDJ
942014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
95
96 PR tdep/9390
97 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
98 typo when using logical AND to determine instruction type.
99
fcbdedf8
YQ
1002014-10-09 Yao Qi <yao@codesourcery.com>
101
102 * infrun.c (handle_signal_stop): Remove local variable
103 'printed'.
104
db984616
SS
1052014-10-08 Stan Shebs <stan@codesourcery.com>
106
107 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
108
3ba37e6c
GB
1092014-10-08 Gary Benson <gbenson@redhat.com>
110
111 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
112
a442d071
GB
1132014-10-08 Gary Benson <gbenson@redhat.com>
114
115 * common/common-defs.h: Include common-exceptions.h.
116 * exceptions.h: Do not include common-exceptions.h.
117
6f1947e8
GB
1182014-10-08 Gary Benson <gbenson@redhat.com>
119
120 * common/common-defs.h: Include cleanups.h.
121 * common/common-exceptions.c: Do not include cleanups.h.
122 * utils.h: Likewise.
123
c765fdb9
GB
1242014-10-08 Gary Benson <gbenson@redhat.com>
125
126 * ada-lang.c: Do not include exceptions.h.
127 * ada-valprint.c: Likewise.
128 * amd64-tdep.c: Likewise.
129 * auto-load.c: Likewise.
130 * block.c: Likewise.
131 * break-catch-throw.c: Likewise.
132 * breakpoint.c: Likewise.
133 * btrace.c: Likewise.
134 * c-lang.c: Likewise.
135 * cli/cli-cmds.c: Likewise.
136 * cli/cli-interp.c: Likewise.
137 * cli/cli-script.c: Likewise.
138 * completer.c: Likewise.
139 * corefile.c: Likewise.
140 * corelow.c: Likewise.
141 * cp-abi.c: Likewise.
142 * cp-support.c: Likewise.
143 * cp-valprint.c: Likewise.
144 * darwin-nat.c: Likewise.
145 * dwarf2-frame-tailcall.c: Likewise.
146 * dwarf2-frame.c: Likewise.
147 * dwarf2loc.c: Likewise.
148 * dwarf2read.c: Likewise.
149 * eval.c: Likewise.
150 * event-loop.c: Likewise.
151 * event-top.c: Likewise.
152 * f-valprint.c: Likewise.
153 * frame-unwind.c: Likewise.
154 * frame.c: Likewise.
155 * gdbtypes.c: Likewise.
156 * gnu-v2-abi.c: Likewise.
157 * gnu-v3-abi.c: Likewise.
158 * guile/scm-auto-load.c: Likewise.
159 * guile/scm-breakpoint.c: Likewise.
160 * guile/scm-cmd.c: Likewise.
161 * guile/scm-frame.c: Likewise.
162 * guile/scm-lazy-string.c: Likewise.
163 * guile/scm-param.c: Likewise.
164 * guile/scm-symbol.c: Likewise.
165 * guile/scm-type.c: Likewise.
166 * hppa-hpux-tdep.c: Likewise.
167 * i386-tdep.c: Likewise.
168 * inf-loop.c: Likewise.
169 * infcall.c: Likewise.
170 * infcmd.c: Likewise.
171 * infrun.c: Likewise.
172 * interps.c: Likewise.
173 * interps.h: Likewise.
174 * jit.c: Likewise.
175 * linespec.c: Likewise.
176 * linux-nat.c: Likewise.
177 * linux-thread-db.c: Likewise.
178 * m32r-rom.c: Likewise.
179 * main.c: Likewise.
180 * memory-map.c: Likewise.
181 * mi/mi-cmd-break.c: Likewise.
182 * mi/mi-cmd-stack.c: Likewise.
183 * mi/mi-interp.c: Likewise.
184 * mi/mi-main.c: Likewise.
185 * monitor.c: Likewise.
186 * nto-procfs.c: Likewise.
187 * objc-lang.c: Likewise.
188 * p-valprint.c: Likewise.
189 * parse.c: Likewise.
190 * ppc-linux-tdep.c: Likewise.
191 * printcmd.c: Likewise.
192 * probe.c: Likewise.
193 * python/py-auto-load.c: Likewise.
194 * python/py-breakpoint.c: Likewise.
195 * python/py-cmd.c: Likewise.
196 * python/py-finishbreakpoint.c: Likewise.
197 * python/py-frame.c: Likewise.
198 * python/py-framefilter.c: Likewise.
199 * python/py-function.c: Likewise.
200 * python/py-gdb-readline.c: Likewise.
201 * python/py-inferior.c: Likewise.
202 * python/py-infthread.c: Likewise.
203 * python/py-lazy-string.c: Likewise.
204 * python/py-linetable.c: Likewise.
205 * python/py-param.c: Likewise.
206 * python/py-prettyprint.c: Likewise.
207 * python/py-symbol.c: Likewise.
208 * python/py-type.c: Likewise.
209 * python/py-value.c: Likewise.
210 * python/python-internal.h: Likewise.
211 * python/python.c: Likewise.
212 * record-btrace.c: Likewise.
213 * record-full.c: Likewise.
214 * regcache.c: Likewise.
215 * remote-fileio.c: Likewise.
216 * remote-mips.c: Likewise.
217 * remote.c: Likewise.
218 * rs6000-aix-tdep.c: Likewise.
219 * rs6000-nat.c: Likewise.
220 * skip.c: Likewise.
221 * solib-darwin.c: Likewise.
222 * solib-dsbt.c: Likewise.
223 * solib-frv.c: Likewise.
224 * solib-ia64-hpux.c: Likewise.
225 * solib-spu.c: Likewise.
226 * solib-svr4.c: Likewise.
227 * solib.c: Likewise.
228 * spu-tdep.c: Likewise.
229 * stack.c: Likewise.
230 * stap-probe.c: Likewise.
231 * symfile-mem.c: Likewise.
232 * symmisc.c: Likewise.
233 * target.c: Likewise.
234 * thread.c: Likewise.
235 * top.c: Likewise.
236 * tracepoint.c: Likewise.
237 * tui/tui-interp.c: Likewise.
238 * typeprint.c: Likewise.
239 * utils.c: Likewise.
240 * valarith.c: Likewise.
241 * valops.c: Likewise.
242 * valprint.c: Likewise.
243 * value.c: Likewise.
244 * varobj.c: Likewise.
245 * windows-nat.c: Likewise.
246 * xml-support.c: Likewise.
247
484933d1
MR
2482014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
249
250 * mips-tdep.c (add_offset_16): Rewrite to implement what the
251 name implies.
252 (extended_mips16_next_pc): Update accordingly.
253
ab50adb6
MR
2542014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
255
256 * mips-tdep.c (mips16_instruction_is_compact_branch): New
257 function.
258 (micromips_instruction_is_compact_branch): Likewise.
259 (mips16_scan_prologue): Terminate scanning upon seeing a branch
260 or a compact jump, reaching a jump delay slot, or seeing a
261 second non-prologue instruction.
262 (micromips_scan_prologue): Also terminate scanning upon seeing a
263 compact branch or jump, or reaching a branch or jump delay slot.
264 (mips32_scan_prologue): Terminate scanning upon reaching a branch
265 or jump delay slot, or seeing a second non-prologue instruction.
266 (mips32_instruction_has_delay_slot): Retain instruction
267 examination code only, update arguments accordingly and move
268 instruction fetch pieces to...
269 (mips32_insn_at_pc_has_delay_slot): ... this new function.
270 (micromips_instruction_has_delay_slot): Likewise and to...
271 (micromips_insn_at_pc_has_delay_slot): ... this new function.
272 (mips16_instruction_has_delay_slot): Likewise and to...
273 (mips16_insn_at_pc_has_delay_slot): ... this new function.
274 (mips_single_step_through_delay): Update accordingly.
275 (mips_adjust_breakpoint_address): Likewise.
276
ae790652
MR
2772014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
278
279 * mips-tdep.c (micromips_instruction_has_delay_slot): When
280 !mustbe32 also return 1 for 32-bit instructions.
281 (mips16_instruction_has_delay_slot): Likewise. Add an
282 explanatory comment.
283
9b807e7b
MR
2842014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
285
286 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
287 symbols special.
288
0d5ed153
MR
2892014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
290
291 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
292 update comments.
293 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
294 for the breakpoint's address. Don't preinitialize `placed_size'.
295 (insert_bp_location): Set `reqstd_address' rather than
296 `placed_address'.
297 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
298 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
299 address.
300 (bkpt_remove_location): Likewise.
301 (deprecated_insert_raw_breakpoint): Likewise.
302 (deprecated_remove_raw_breakpoint): Likewise.
303 (find_single_step_breakpoint): Likewise.
304 * mem-break.c (default_memory_insert_breakpoint): Use
305 `reqstd_address' for the breakpoint's address. Don't set
306 `placed_address' or `placed_size' if breakpoint contents couldn't
307 have been determined.
308 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
309 the breakpoint's address.
310 (remote_insert_hw_breakpoint): Likewise. Don't set
311 `placed_address' or `placed_size' if breakpoint couldn't have been
312 set.
313 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
314 `reqstd_address' for the breakpoint's address.
315 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
316 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
317 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
318 * microblaze-linux-tdep.c
319 (microblaze_linux_memory_remove_breakpoint): Likewise.
320 * monitor.c (monitor_insert_breakpoint): Likewise.
321 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
322 (procfs_insert_hw_breakpoint): Likewise.
323 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
324 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
325 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
326 * remote-mips.c (mips_insert_breakpoint): Likewise.
327 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
328
3e871532
LM
3292014-10-03 Luis Machado <lgustavo@codesourcery.com>
330
331 * valops.c (value_assign): Check for bit field assignments
332 before calling architecture-specific register value
333 conversion functions.
334
ec48dc8b
PM
3352014-10-03 Pierre Muller <muller@sourceware.org>
336
337 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
338
b57bacec
PA
3392014-10-02 Pedro Alves <palves@redhat.com>
340
341 * breakpoint.c (breakpoints_should_be_inserted_now): Use
342 threads_are_executing.
343 * breakpoint.h (breakpoints_should_be_inserted_now): Add
344 describing comment.
345 * gdbthread.h (threads_are_executing): Declare.
346 (handle_signal_stop) <random signals>: Don't print about the
347 signal here if stopping.
348 (end_stepping_range): Don't notify observers here.
349 (normal_stop): Update the thread list. If stopped by a random
350 signal or a stepping range ended, notify observers.
351 * thread.c (threads_executing): New global.
352 (init_thread_list): Clear 'threads_executing'.
353 (set_executing): Set or clear 'threads_executing'.
354 (threads_are_executing): New function.
355 (update_threads_executing): New function.
356 (update_thread_list): Use it.
357
13fd3ff3
PA
3582014-10-02 Pedro Alves <palves@redhat.com>
359
360 PR breakpoints/17431
361 * breakpoint.c (update_breakpoints_after_exec): Don't create
362 overlay, longjmp, std terminate nor exception breakpoints here.
363
32990ada
PA
3642014-10-02 Pedro Alves <palves@redhat.com>
365
366 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
367 Adjust comments.
368 * inferior.c (find_inferior_for_program_space): Give preference to
369 the current inferior.
370 * inferior.h (find_inferior_for_program_space): Update comment.
371 * progspace.c (switch_to_program_space_and_thread): Prefer the
372 current inferior if it's bound to the program space requested. If
373 the inferior found doesn't have a PID yet, don't bother looking up
374 a thread.
375 * progspace.h (switch_to_program_space_and_thread): Adjust
376 comment.
377 * thread.c (any_thread_of_process, any_live_thread_of_process):
378 Give preference to the current thread.
379
0fec99e8
PA
3802014-10-01 Pedro Alves <palves@redhat.com>
381
382 * breakpoint.c (insert_bp_location): Error out if inserting a
383 software breakpoint at a read-only address.
384 * target.c (memory_xfer_check_region): New function, factored out
385 from ...
386 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
387 ULONGEST.
388 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
389 against the memory region attributes.
390
2ddf4301
SM
3912014-10-01 Simon Marchi <simon.marchi@ericsson.com>
392
393 * NEWS: Announce new exit-code field in -list-thread-groups
394 output.
395 * inferior.c (exit_inferior_1): Don't clear exit code.
396 (inferior_appeared): Clear exit code.
397 * mi/mi-main.c (print_one_inferior): Add printing of the exit
398 code.
399
5fdeec1d
PA
4002014-10-01 Pedro Alves <palves@redhat.com>
401
402 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
403 GENERATED" along with emacs/vi read-only markers.
404 * regformats/aarch64.dat: Regenerate.
405 * regformats/arm-with-iwmmxt.dat: Regenerate.
406 * regformats/arm-with-neon.dat: Regenerate.
407 * regformats/arm-with-vfpv2.dat: Regenerate.
408 * regformats/arm-with-vfpv3.dat: Regenerate.
409 * regformats/i386/amd64-avx-linux.dat: Regenerate.
410 * regformats/i386/amd64-avx.dat: Regenerate.
411 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
412 * regformats/i386/amd64-avx512.dat: Regenerate.
413 * regformats/i386/amd64-linux.dat: Regenerate.
414 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
415 * regformats/i386/amd64-mpx.dat: Regenerate.
416 * regformats/i386/amd64.dat: Regenerate.
417 * regformats/i386/i386-avx-linux.dat: Regenerate.
418 * regformats/i386/i386-avx.dat: Regenerate.
419 * regformats/i386/i386-avx512-linux.dat: Regenerate.
420 * regformats/i386/i386-avx512.dat: Regenerate.
421 * regformats/i386/i386-linux.dat: Regenerate.
422 * regformats/i386/i386-mmx-linux.dat: Regenerate.
423 * regformats/i386/i386-mmx.dat: Regenerate.
424 * regformats/i386/i386-mpx-linux.dat: Regenerate.
425 * regformats/i386/i386-mpx.dat: Regenerate.
426 * regformats/i386/i386.dat: Regenerate.
427 * regformats/i386/x32-avx-linux.dat: Regenerate.
428 * regformats/i386/x32-avx.dat: Regenerate.
429 * regformats/i386/x32-avx512-linux.dat: Regenerate.
430 * regformats/i386/x32-avx512.dat: Regenerate.
431 * regformats/i386/x32-linux.dat: Regenerate.
432 * regformats/i386/x32.dat: Regenerate.
433 * regformats/microblaze-with-stack-protect.dat: Regenerate.
434 * regformats/mips-dsp-linux.dat: Regenerate.
435 * regformats/mips-linux.dat: Regenerate.
436 * regformats/mips64-dsp-linux.dat: Regenerate.
437 * regformats/mips64-linux.dat: Regenerate.
438 * regformats/nios2-linux.dat: Regenerate.
439 * regformats/rs6000/powerpc-32.dat: Regenerate.
440 * regformats/rs6000/powerpc-32l.dat: Regenerate.
441 * regformats/rs6000/powerpc-64l.dat: Regenerate.
442 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
443 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
444 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
445 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
446 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
447 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
448 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
449 * regformats/s390-linux32.dat: Regenerate.
450 * regformats/s390-linux32v1.dat: Regenerate.
451 * regformats/s390-linux32v2.dat: Regenerate.
452 * regformats/s390-linux64.dat: Regenerate.
453 * regformats/s390-linux64v1.dat: Regenerate.
454 * regformats/s390-linux64v2.dat: Regenerate.
455 * regformats/s390-te-linux64.dat: Regenerate.
456 * regformats/s390x-linux64.dat: Regenerate.
457 * regformats/s390x-linux64v1.dat: Regenerate.
458 * regformats/s390x-linux64v2.dat: Regenerate.
459 * regformats/s390x-te-linux64.dat: Regenerate.
460 * regformats/tic6x-c62x-linux.dat: Regenerate.
461 * regformats/tic6x-c62x.dat: Regenerate.
462 * regformats/tic6x-c64x-linux.dat: Regenerate.
463 * regformats/tic6x-c64x.dat: Regenerate.
464 * regformats/tic6x-c64xp-linux.dat: Regenerate.
465 * regformats/tic6x-c64xp.dat: Regenerate.
466
db74e4ba
PA
4672014-10-01 Pedro Alves <palves@redhat.com>
468
469 * features/Makefile: Update comments.
470 (XMLTOC): List all xml files we build C files from.
471 (clean-cfiles): New rule.
472
d63f2f84
PA
4732014-10-01 Pedro Alves <palves@redhat.com>
474
475 * features/i386/amd64-avx512-linux.c: Regenerate.
476 * features/i386/amd64-avx512.c: Regenerate.
477 * features/i386/x32-avx512-linux.c: Regenerate.
478 * features/i386/x32-avx512.c: Regenerate.
479
20ad026d
PA
4802014-10-01 Pedro Alves <palves@redhat.com>
481
482 * features/Makefile (WHICH): Remove arm-with-m,
483 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
484
acc9fe45
PA
4852014-10-01 Pedro Alves <palves@redhat.com>
486
487 * features/Makefile (clean): New rule.
488
e001e535
PA
4892014-10-01 Pedro Alves <palves@redhat.com>
490
491 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
492 (zmm14h): Add missing end quotes.
493
bdc14417
PA
4942014-10-01 Pedro Alves <palves@redhat.com>
495
496 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
497 * features/aarch64.c: Regenerate.
498
d83ad864
DB
4992014-09-30 Don Breazeal <donb@codesourcery.com>
500
501 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
502 code so as to work with follow_fork_inferior.
503 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
504 (inf_ttrace_create_inferior): Remove reference to
505 inf_ttrace_vfork_ppid.
506 (inf_ttrace_attach): Ditto.
507 (inf_ttrace_detach): Ditto.
508 (inf_ttrace_kill): Use current_inferior instead of
509 inf_ttrace_vfork_ppid.
510 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
511 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
512 inferior away from the parent.
513 * infrun.c (follow_fork): Call follow_fork_inferior instead of
514 target_follow_fork.
515 (follow_fork_inferior): New function.
516 (follow_inferior_reset_breakpoints): Make function static.
517 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
518 * linux-nat.c (linux_child_follow_fork): Move target-independent
519 code to infrun.c:follow_fork_inferior.
520
29082443
AA
5212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
522
523 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
524 * gdbarch.c: Regenerate.
525 * gdbarch.h: Likewise.
526 * corelow.c (sniff_core_bfd): Drop presence check for deleted
527 gdbarch method 'regset_from_core_section'.
528 (get_core_register_section): Remove handling for the case that
529 regset == NULL and regset_from_core_section is defined.
530 (get_core_registers): Drop check for deleted method.
531 * procfs.c (procfs_do_thread_registers): Adjust comment.
532
f968fe80
AA
5332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
534
535 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
536 (linux_nat_make_corefile_notes): Remove.
537 (linux_target_install_ops): Do not set target method
538 'make_corefile_notes'.
539 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
540 Remove field.
541 (linux_corefile_thread_callback): Instead of args->collect, call
542 linux_collect_thread_registers.
543 (linux_make_corefile_notes): Remove 'collect' parameter. Return
544 NULL unless there is a regset iterator.
545 (linux_make_corefile_notes_1): Remove.
546 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
547 by linux_make_corefile_notes.
548 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
549
174ad59a
AA
5502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
551
552 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
553 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
554 Remove.
555 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
556
97094034
AA
5572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
558
559 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
560 (xtensa_iterate_over_regset_sections): New.
561 (xtensa_gdbarch_init): Adjust gdbarch initialization.
562
f73d3ce7
AA
5632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
564
565 * vax-tdep.c (vax_regset_from_core_section): Remove.
566 (vax_iterate_over_regset_sections): New.
567 (vax_gdbarch_init): Adjust gdbarch initialization.
568
cb24567a
AA
5692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
570
571 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
572 (tilegx_regset_from_core_section): Remove.
573 (tilegx_iterate_over_regset_sections): New.
574 (tilegx_linux_init_abi): Adjust gdbarch initialization.
575
e5139de8
AA
5762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
577
578 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
579 (sparc_iterate_over_regset_sections): New.
580 (sparc32_gdbarch_init): Adjust gdbarch initialization.
581 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
582 targets.
583 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
584 (sparc64fbsd_init_abi): Call fbsd_init_abi.
585 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
586 target method 'make_corefile_notes'.
587
c6d41a6f
AA
5882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
589
590 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
591 'sizeof_gregset' and 'sizeof_fpregset'.
592 * sh-tdep.c (sh_regset_from_core_section): Remove.
593 (sh_iterate_over_regset_sections): New.
594 (sh_gdbarch_init): Adjust gdbarch initialization.
595 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
596 sizeof_fpregset.
597 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
598 'sizeof_gregset'.
599
9845a0b5
AA
6002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
601
602 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
603 (score7_linux_iterate_over_regset_sections): New.
604 (score_gdbarch_init): Adjust gdbarch initialization.
605
23ea9aeb
AA
6062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
607
608 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
609 FreeBSD targets.
610 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
611 method 'make_corefile_notes'.
612 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
613 (ppcfbsd_regset_from_core_section): Remove.
614 (ppcfbsd_iterate_over_regset_sections): New.
615 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
616 initialization.
617 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
618 (ppcnbsd_iterate_over_regset_sections): New.
619 (ppcnbsd_init_abi): Adjust.
620 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
621 (ppcobsd_iterate_over_regset_sections): New.
622 (ppcobsd_init_abi): Adjust.
623 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
624 (rs6000_aix_iterate_over_regset_sections): New.
625 (rs6000_aix_init_osabi): Adjust.
626
c5b8d704
AA
6272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
628
629 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
630 (nios2_regset_from_core_section): Remove.
631 (nios2_iterate_over_regset_sections): New.
632 (nios2_linux_init_abi): Adjust gdbarch initialization.
633
3636e608
AA
6342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
635
636 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
637 (am33_iterate_over_regset_sections): New.
638 (am33_linux_init_osabi): Adjust gdbarch initialization.
639
d4036235
AA
6402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
641
642 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
643 (mips_linux_iterate_over_regset_sections): New.
644 (mips_linux_init_abi): Adjust gdbarch initialization.
645 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
646 (mips64obsd_iterate_over_regset_sections): New.
647 (mips64obsd_init_abi): Adjust.
648 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
649 (mipsnbsd_iterate_over_regset_sections): New.
650 (mipsnbsd_init_abi): Adjust.
651
b61ddd6e
AA
6522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
653
654 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
655 (m88k_iterate_over_regset_sections): New.
656 (m88k_gdbarch_init): Adjust gdbarch initialization.
657
55a2906a
AA
6582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
659
660 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
661 (ia64_linux_iterate_over_regset_sections): New.
662 (ia64_linux_init_abi): Adjust gdbarch initialization.
663
022c98ab
AA
6642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
665
666 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
667 (m68kbsd_iterate_over_regset_sections): New.
668 (m68kbsd_init_abi): Adjust gdbarch initialization.
669 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
670 (m68k_linux_iterate_over_regset_sections): New.
671 (m68k_linux_init_abi): Adjust gdbarch initialization.
672
5fac247f
AA
6732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
674
675 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
676 (m32r_linux_regset_from_core_section): Remove.
677 (m32r_linux_iterate_over_regset_sections): New.
678 (m32r_linux_init_abi): Adjust gdbarch initialization.
679
490496c3
AA
6802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
681
682 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
683 (amd64obsd_iterate_over_regset_sections): New.
684 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
685 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
686 Remove.
687 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
688 regset_from_core_section initialization.
689 * i386-tdep.c (i386_regset_from_core_section): Remove.
690 (i386_iterate_over_regset_sections): New.
691 (i386_gdbarch_init): Adjust gdbarch initialization.
692 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
693 (i386_iterate_over_regset_sections): New prototype.
694 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
695 Remove.
696 (i386obsd_aout_iterate_over_regset_sections): New.
697 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
698 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
699 targets.
700 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
701 (amd64fbsd_init_abi): Call fbsd_init_abi.
702 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
703 (i386fbsd4_init_abi): Call fbsd_init_abi.
704 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
705 target method 'make_corefile_notes'.
706 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
707
50c5eb53
AA
7082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
709
710 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
711 (hppa_hpux_iterate_over_regset_sections): New.
712 (hppa_hpux_init_abi): Adjust gdbarch initialization.
713 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
714 (hppa_linux_iterate_over_regset_sections): New.
715 (hppa_linux_init_abi): Adjust.
716 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
717 (hppanbsd_iterate_over_regset_sections): New.
718 (hppanbsd_init_abi): Adjust.
719 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
720 (hppaobsd_iterate_over_regset_sections): New.
721 (hppaobsd_init_abi): Adjust.
722
66afae4f
AA
7232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
724
725 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
726 (frv_linux_iterate_over_regset_sections): New.
727 (frv_linux_init_abi): Adjust gdbarch initialization.
728
ed09174e
AA
7292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
730
731 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
732 (armbsd_iterate_over_regset_sections): New prototype.
733 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
734 (armbsd_iterate_over_regset_sections): New.
735 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
736 initialization.
737
dff2166e
AA
7382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
739
740 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
741 (alpha_linux_iterate_over_regset_sections): New.
742 (alpha_linux_init_abi): Adjust gdbarch initialization.
743 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
744 prototype.
745 (alphanbsd_iterate_over_regset_sections): New prototype.
746
4108500a
AA
7472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
748
749 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
750 Remove.
751 (aarch64_linux_iterate_over_regset_sections): New.
752 (aarch64_linux_init_abi): Adjust gdbarch initialization.
753
a904c024
AA
7542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
755
756 * fbsd-tdep.c: New file.
757 * fbsd-tdep.h: New file.
758 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
759 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
760 (ALLDEPFILES): Add fbsd-tdep.c.
761
8f0435f7
AA
7622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
763
764 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
765 parameter.
766 * gdbarch.h: Regenerate.
767 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
768 iterator.
769 (get_core_register_section): Add parameter 'regset' and use it, if
770 set. Add parameter 'min_size' and verify the bfd section size
771 against it.
772 (get_core_registers_cb): Add parameter 'regset' and pass it to
773 get_core_register section. For the "standard" register sections
774 ".reg" and ".reg2", set an appropriate default for human_name.
775 (get_core_registers): Don't abort when the gdbarch has an iterator
776 but no regset_from_core_section. Add NULL/0 for parameters
777 'regset'/'min_size' in calls to get_core_register_section.
778 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
779 'regset' and use it instead of calling the
780 regset_from_core_section gdbarch method.
781 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
782 * i386-tdep.c (i386_supply_xstateregset)
783 (i386_collect_xstateregset, i386_xstateregset): Moved to
784 i386-linux-tdep.c.
785 (i386_regset_from_core_section): Drop handling for .reg-xfp and
786 .reg-xstate.
787 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
788 core file support only if the regset iterator hasn't been set.
789 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
790 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
791 Moved from i386-tdep.c and renamed to *_linux*.
792 (i386_linux_iterate_over_regset_sections): Add regset parameter to
793 each callback invocation. Allow any .reg-xstate size when reading
794 from a core file.
795 * amd64-tdep.c (amd64_supply_xstateregset)
796 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
797 amd64-linux-tdep.c.
798 (amd64_regset_from_core_section): Remove.
799 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
800 install an amd64-specific regset_from_core_section gdbarch method.
801 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
802 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
803 Moved from amd64-tdep.c and renamed to *_linux*.
804 (amd64_linux_iterate_over_regset_sections): Add regset parameter
805 to each callback invocation. Allow any .reg-xstate size when
806 reading from a core file.
807 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
808 (arm_linux_iterate_over_regset_sections): Add regset parameter to
809 each callback invocation.
810 (arm_linux_init_abi): No longer set the regset_from_core_section
811 gdbarch method.
812 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
813 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
814 each callback invocation.
815 (ppc_linux_init_abi): No longer set the regset_from_core_section
816 gdbarch method.
817 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
818 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
819 (s390_regset_from_core_section): Remove.
820 (s390_iterate_over_regset_sections): Add regset parameter to each
821 callback invocation.
822 (s390_gdbarch_init): No longer set the regset_from_core_section
823 gdbarch method. Drop initialization of deleted tdep fields.
824
5aa82d05
AA
8252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
826
827 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
828 (amd64_linux_iterate_over_regset_sections): New.
829 (amd64_linux_init_abi_common): Don't install the regset section
830 list, but the new iterator in gdbarch.
831 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
832 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
833 (arm_linux_iterate_over_regset_sections): ...here. New function.
834 (arm_linux_init_abi): Set iterator instead of section list.
835 * corelow.c (get_core_registers_cb): New function, logic moved
836 from...
837 (get_core_registers): ...loop body here. Use new iterator method
838 instead of walking through the regset section list.
839 * gdbarch.sh: Remove 'core_regset_sections'. New method
840 'iterate_over_regset_sections'. New typedef
841 'iterate_over_regset_sections_cb'.
842 * gdbarch.c: Regenerate.
843 * gdbarch.h: Likewise.
844 * i386-linux-tdep.c (i386_linux_regset_sections)
845 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
846 Remove.
847 (i386_linux_iterate_over_regset_sections): New.
848 (i386_linux_init_abi): Don't choose a regset section list, but
849 install new iterator in gdbarch.
850 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
851 (linux_collect_regset_section_cb): New function, logic moved
852 from...
853 (linux_collect_thread_registers): ...loop body here. Use iterator
854 method instead of walking through list.
855 (linux_make_corefile_notes_1): Check for presence of iterator
856 method instead of regset section list.
857 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
858 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
859 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
860 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
861 (ppc_linux_iterate_over_regset_sections): ...here. New function.
862 (ppc_linux_init_abi): Don't choose from above regset section
863 lists, but install new iterator in gdbarch.
864 * regset.h (struct core_regset_section): Remove.
865 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
866 have_linux_v1, have_linux_v2, and have_tdb.
867 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
868 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
869 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
870 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
871 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
872 (s390_iterate_over_regset_sections): ...here. New function. Use
873 new tdep fields.
874 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
875 regset section lists, but install new iterator.
876
2eca4a8d
JK
8772014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
878
879 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
880
a73c2b56
SM
8812014-09-26 Simon Marchi <simon.marchi@ericsson.com>
882
883 * progspace.c (print_program_space): Don't prune program spaces
884 before printing them.
885
03d46957
PA
8862014-09-25 Pedro Alves <palves@redhat.com>
887
888 * infrun.c (user_visible_resume_ptid): Don't check
889 singlestep_breakpoints_inserted_p.
890
e558d7c1
PA
8912014-09-25 Pedro Alves <palves@redhat.com>
892
893 * breakpoint.c (should_be_inserted): Add debug output.
894
7f89fd65
PA
8952014-09-25 Pedro Alves <palves@redhat.com>
896
897 * infrun.c (stepping_past_instruction_at)
898 (clear_exit_convenience_vars): Point at infrun.h instead of
899 inferior.h.
900 (handle_signal_stop): Fix typo.
901
b7576e5c
YQ
9022014-09-24 Yao Qi <yao@codesourcery.com>
903
904 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
905 bitmask.
906
9a6cf368
GB
9072014-09-22 Gary Benson <gbenson@redhat.com>
908
909 * target.c (target_stop): Updated comment.
910
03f4463b
GB
9112014-09-22 Gary Benson <gbenson@redhat.com>
912
913 * target/target.h (target_stop_ptid): Renamed as...
914 (target_stop_and_wait): New function. Updated comment.
915 All uses updated.
916 (target_continue_ptid): Renamed as...
917 (target_continue_no_signal): New function. Updated comment.
918 All uses updated.
919
a25a5a45
PA
9202014-09-22 Pedro Alves <palves@redhat.com>
921
922 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
923 and "auto" merged.
924 * breakpoint.c (enum ugll_insert_mode): New enum.
925 (always_inserted_mode): Now a plain boolean.
926 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
927 (breakpoints_always_inserted_mode): Delete.
928 (breakpoints_should_be_inserted_now): New function.
929 (insert_breakpoints): Pass UGLL_INSERT to
930 update_global_location_list instead of calling
931 insert_breakpoint_locations manually.
932 (create_solib_event_breakpoint_1): New, factored out from ...
933 (create_solib_event_breakpoint): ... this.
934 (create_and_insert_solib_event_breakpoint): Use
935 create_solib_event_breakpoint_1 instead of calling
936 insert_breakpoint_locations manually.
937 (update_global_location_list): Change parameter type from boolean
938 to enum ugll_insert_mode. All callers adjusted. Adjust to use
939 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
940 (update_global_location_list_nothrow): Change parameter type from
941 boolean to enum ugll_insert_mode.
942 (_initialize_breakpoint): "breakpoint always-inserted" option is
943 now a boolean command. Update help text.
944 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
945 (breakpoints_should_be_inserted_now): New declaration.
946 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
947 Remove breakpoints_always_inserted_mode check.
948 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
949 * remote.c (remote_start_remote): Likewise.
950
04086b45
PA
9512014-09-22 Pedro Alves <palves@redhat.com>
952
953 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
954 (insert_breakpoints): Don't call insert_breakpoint_locations here.
955 Instead, pass UGLL_INSERT to update_global_location_list.
956 (update_global_location_list): Change parameter type from boolean
957 to enum ugll_insert_mode. All callers adjusted. Adjust to use
958 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
959 (create_solib_event_breakpoint_1): New, factored out from ...
960 (create_solib_event_breakpoint): ... this.
961 (create_and_insert_solib_event_breakpoint): Use
962 create_solib_event_breakpoint_1 instead of calling
963 insert_breakpoint_locations manually.
964 (update_global_location_list): Handle UGLL_INSERT.
965
44702360
PA
9662014-09-22 Pedro Alves <palves@redhat.com>
967
968 * breakpoint.c (enum ugll_insert_mode): New enum.
969 (update_global_location_list)
970 (update_global_location_list_nothrow): Change parameter type from
971 boolean to enum ugll_insert_mode. All callers adjusted.
972
93c6145a
JB
9732014-09-19 Joel Brobecker <brobecker@adacore.com>
974
975 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
976 SystemTap support in GDB.
977
89a5711c
DB
9782014-09-19 Don Breazeal <donb@codesourcery.com>
979
980 * linux-nat.c (linux_handle_extended_wait): Call
981 linux_ptrace_get_extended_event.
982 (wait_lwp): Call linux_is_extended_waitstatus.
983 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
984 and linux_is_extended_waitstatus.
985 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
986 linux_ptrace_get_extended_event.
987 (linux_ptrace_get_extended_event): New function.
988 (linux_is_extended_waitstatus): New function.
989 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
990 (linux_is_extended_waitstatus): New declarations.
991
c3b7b696
YQ
9922014-09-19 Yao Qi <yao@codesourcery.com>
993
994 * dwarf2read.c (dwarf_decode_lines): Update declaration.
995 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
996 comments. Callers update.
997 (dwarf_decode_lines): Likewise.
998 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
999 comments. Skip the line table if 'lowpc' is greater than
1000 'address'. Don't check
1001 dwarf2_per_objfile->has_section_at_zero.
1002
2b4fd423
DE
10032014-09-18 Doug Evans <dje@google.com>
1004
1005 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1006 * python/py-symtab.c (stpy_get_producer): New function.
1007 (symtab_object_getset): Add "producer" attribute.
1008
5e43d467
UW
10092014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1010
1011 PR gdb/17384
1012 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1013 (do_captured_read_memory_integer): Remove.
1014 (safe_read_memory_integer): Use target_read_memory directly instead
1015 of catching errors in do_captured_read_memory_integer.
1016
04e79979
MR
10172014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1018
1019 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1020 not gdb/doc.
1021
76aeec5b
SDJ
10222014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1023
1024 * objc-lang.c (find_implementation_from_class): Remove dead code.
1025
2f693f9d
SDJ
10262014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1027
1028 PR cli/7233
1029 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1030 "fprintf_unfiltered (gdb_stdlog...)".
1031
bb9d5f81
PP
10322014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1033
1034 PR breakpoints/12526
1035 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1036 val_bitsize.
1037 * breakpoint.c (watch_command_1): Use these fields to retain
1038 bitfield information.
1039 (extract_bitfield_from_watchpoint_value): New function.
1040 (watchpoint_check): Use it.
1041 (update_watchpoint): Use it. Optimize the address and length of a
1042 HW watchpoint pointing to a bitfield.
1043 * value.h (unpack_value_bitfield): New prototype.
1044 * value.c (unpack_value_bitfield): Make extern.
1045
05db5edd
ST
10462014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1047
1048 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1049 x86-dregs.o.
1050 * gnu-nat.c (inf_threads): New function.
1051 * gnu-nat.h (inf_threads_ftype): New typedef.
1052 (inf_threads): New declaration.
1053 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1054 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1055 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1056 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1057 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1058 (i386_gnu_dr_get_control): New functions.
1059 (reg_addr): New structure.
1060 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1061 i386 debugging register hooks.
1062 * NEWS: Mention this.
1063
5a578da5
OJ
10642014-08-13 Omair Javaid <omair.javaid@linaro.org>
1065
1066 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1067 vector data transfer instructions.
1068 (arm_record_coproc_data_proc): Updated.
1069
f20f80dd
OJ
10702014-08-13 Omair Javaid <omair.javaid@linaro.org>
1071
1072 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1073 arm_record_exreg_ld_st_insn.
1074 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1075 load/store insns.
1076
851f26ae
OJ
10772014-08-13 Omair Javaid <omair.javaid@linaro.org>
1078
1079 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1080 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1081 processing instructions.
1082
1e1b6563
OJ
10832014-08-13 Omair Javaid <omair.javaid@linaro.org>
1084
1085 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1086 for advance SIMD struct ld/st insn.
1087 (thumb2_record_decode_insn_handler): Replace stub handler with
1088 thumb2_record_asimd_struct_ld_st.
1089
60cc5e93
OJ
10902014-08-13 Omair Javaid <omair.javaid@linaro.org>
1091
1092 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1093 for asimd, vfp and coprocessor insns.
1094 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1095 and coprocessor insns.
1096 (thumb2_record_coproc_insn): New function.
1097 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1098 handlers.
1099 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1100 opcode 110 insns.
1101
81219e53
DE
11022014-09-13 Doug Evans <xdje42@gmail.com>
1103
1104 * NEWS: Mention new "queue-signal" command.
1105 * infcmd.c (queue_signal_command): New function.
1106 (_initialize_infcmd): Add new queue-signal command.
1107
d36bf488
DE
11082014-09-13 Doug Evans <xdje42@gmail.com>
1109
1110 * linux-nat.c (wait_lwp): Add debugging printf.
1111 (linux_nat_wait_1): Ditto.
1112
f37f681c
PA
11132014-09-12 Pedro Alves <palves@redhat.com>
1114
1115 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1116 (create_and_insert_solib_event_breakpoint): New functions.
1117 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1118 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1119 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1120 (remove_dbx_link_breakpoint): Delete function.
1121 (insert_dbx_link_bpt_in_file): Use
1122 create_and_insert_solib_event_breakpoint instead of
1123 deprecated_insert_raw_breakpoint.
1124 (procfs_wait): Don't check whether we hit __dbx_link here.
1125 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1126 here.
1127 * solib-irix.c (base_breakpoint): Delete global.
1128 (disable_break): Delete function.
1129 (enable_break): Use create_solib_event_breakpoint
1130 instead of deprecated_insert_raw_breakpoint.
1131 (irix_solib_handle_event): New function.
1132 (irix_solib_create_inferior_hook): Don't run the target or disable
1133 the mapping-complete breakpoint here.
1134 (_initialize_irix_solib): Install irix_solib_handle_event as
1135 so_ops->handle_event hook.
1136
9d9bf2df
EBM
11372014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1138 Ulrich Weigand  <uweigand@de.ibm.com>
1139
1140 PR tdep/17379
1141 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1142 instead of read_memory_unsigned_integer.
1143
b006a80e
GB
11442014-09-12 Gary Benson <gbenson@redhat.com>
1145
1146 * nat/linux-waitpid.c: Include common-defs.h.
1147 [GDBSERVER]: Add FIXME comment.
1148 [!GDBSERVER]: Don't include defs.h or signal.h.
1149 (linux_debug) [!GDBSERVER]: Remove empty block.
1150
296b1496
GB
11512014-09-12 Gary Benson <gbenson@redhat.com>
1152
1153 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1154 Don't include defs.h or server.h.
1155
53f81362
GB
11562014-09-12 Gary Benson <gbenson@redhat.com>
1157
1158 * nat/linux-btrace.c: Include common-defs.h.
1159 Don't include defs.h, server.h or gdbthread.h.
1160 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1161
727605ca
GB
11622014-09-12 Gary Benson <gbenson@redhat.com>
1163
1164 * common/agent.c: Include common-defs.h.
1165 Don't include defs.h or server.h.
1166 * common/buffer.c: Likewise.
1167 * common/common-debug.c: Likewise.
1168 * common/common-utils.c: Likewise.
1169 * common/errors.c: Likewise.
1170 * common/filestuff.c: Likewise.
1171 * common/format.c: Likewise.
1172 * common/gdb_vecs.c: Likewise.
1173 * common/print-utils.c: Likewise.
1174 * common/ptid.c: Likewise.
1175 * common/rsp-low.c: Likewise.
1176 * common/signals.c: Likewise.
1177 * common/vec.c: Likewise.
1178 * common/xml-utils.c: Likewise.
1179 * nat/linux-osdata.c: Likewise.
1180 * nat/linux-procfs.c: Likewise.
1181 * nat/linux-ptrace.c: Likewise.
1182 * nat/mips-linux-watch.c: Likewise.
1183 * target/waitstatus.c: Likewise.
1184
361c8ade
GB
11852014-09-12 Tom Tromey <tromey@redhat.com>
1186 Gary Benson <gbenson@redhat.com>
1187
1188 * common/common-regcache.h: New file.
1189 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1190 * regcache.h: Include common-regcache.h.
1191 (regcache_read_pc): Don't declare.
1192 * regcache.c (get_thread_regcache_for_ptid): New function.
1193 * nat/linux-btrace.c: Don't include regcache.h.
1194 Include common-regcache.h.
1195 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1196
a01cbb49
TS
11972014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1198
1199 * regcache.h (struct regset): Declare.
1200
98880d46
PA
12012014-09-11 Pedro Alves <palves@redhat.com>
1202
1203 PR gdb/17347
1204 * main.c: Include "infrun.h".
1205 (catch_command_errors, catch_command_errors_const): Wait for the
1206 foreground command to complete.
1207 * top.c (maybe_wait_sync_command_done): New function, factored out
1208 from ...
1209 (maybe_wait_sync_command_done): ... here.
1210 * top.h (maybe_wait_sync_command_done): New declaration.
1211
bd9269f7
GB
12122014-09-11 Tom Tromey <tromey@redhat.com>
1213 Gary Benson <gbenson@redhat.com>
1214
1215 * common/symbol.h: New file.
1216 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1217 * minsyms.c (find_minimal_symbol_address): New function.
1218 * common/agent.c: Include common/symbol.h.
1219 [!GDBSERVER]: Don't include objfiles.h.
1220 (agent_look_up_symbols): Use find_minimal_symbol_address.
1221
f8c1d06b
GB
12222014-09-11 Gary Benson <gbenson@redhat.com>
1223
1224 * target/target.h (target_stop_ptid, target_continue_ptid):
1225 Declare.
1226 * target.c (target_stop_ptid, target_continue_ptid): New
1227 functions.
1228 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1229 (agent_run_command): Always use target_stop_ptid and
1230 target_continue_ptid.
1231
721ec300
GB
12322014-09-11 Tom Tromey <tromey@redhat.com>
1233 Gary Benson <gbenson@redhat.com>
1234
1235 * target/target.h: New file.
1236 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1237 * target.h: Include target/target.h.
1238 (target_read_memory, target_write_memory): Don't declare.
1239 * target.c (target_read_uint32): New function.
1240 * common/agent.c: Include target/target.h.
1241 [!GDBSERVER]: Don't include target.h.
1242 (helper_thread_id): Type changed to uint32_t.
1243 (agent_get_helper_thread_id): Use target_read_uint32.
1244 (agent_run_command): Always use target_read_memory and
1245 target_write_memory.
1246 (agent_capability): Type changed to uint32_t.
1247 (agent_capability_check): Use target_read_uint32.
1248
c5e92cca
GB
12492014-09-11 Gary Benson <gbenson@redhat.com>
1250
1251 * common/common-debug.h (show_debug_regs): Declare.
1252 * common/common-debug.c (show_debug_regs): Define.
1253 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1254 all uses with show_debug_regs. Replace all uses that considered
1255 debug_hw_points as a multi-value integer with straight boolean
1256 uses.
1257 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1258 with show_debug_regs.
1259 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1260 all uses with show_debug_regs.
1261 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1262 uses with show_debug_regs.
1263
eeef931a
UW
12642014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1265
1266 * findvar.c (address_from_register): Handle targets requiring
1267 a special conversion routine even for plain pointer types.
1268
8efa9855
UW
12692014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1270
1271 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1272 (store_register): Do not call exec_one_dummy_insn.
1273
eb479039
JB
12742014-09-10 Joel Brobecker <brobecker@adacore.com>
1275
1276 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1277 dereference it first. Use value_enclosing_type instead of
1278 value_type.
1279 (ada_array_length): Likewise.
1280
deede10c
JB
12812014-09-10 Joel Brobecker <brobecker@adacore.com>
1282
1283 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1284 Adjust function implementation and documentation accordingly.
1285 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1286 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1287 Update call to ada_value_ptr_subscript.
1288
7828a5f5
JB
12892014-09-10 Joel Brobecker <brobecker@adacore.com>
1290
1291 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1292 instead of VAL's type.
1293
35782f14
JB
12942014-09-10 Joel Brobecker <brobecker@adacore.com>
1295
1296 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1297
d342a0da
DE
12982014-09-09 Doug Evans <xdje42@gmail.com>
1299
1300 PR guile/17367
1301 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1302 last parameter to pkg-config, not first.
1303 * configure.ac: Pass --with-guile provided pkg-config path to
1304 GDB_GUILE_PROGRAM_NAMES.
1305 * configure: Regenerate.
1306
b4a3d263
GKB
13072014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1308
1309 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1310 Bertazi".
1311
6e466374
MR
13122014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1313
1314 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1315 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1316 the list of sections determining GDB_OSABI_IRIX.
1317
a1ada89a
JH
13182014-09-09 James Hogan <james.hogan@imgtec.com>
1319
1320 * MAINTAINERS (Write After Approval): Add "James Hogan".
1321
86db008d
JH
13222014-09-09 James Hogan <james.hogan@imgtec.com>
1323
1324 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1325
72fde3df
JB
13262014-09-09 Joel Brobecker <brobecker@adacore.com>
1327
1328 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1329
92d8d229
DE
13302014-09-08 Doug Evans <xdje42@gmail.com>
1331
1332 PR 17247
1333 * guile.c: #include <signal.h>.
1334 (_initialize_guile): Block SIGCHLD while initializing Guile.
1335
1336 Replaces the following, which is reverted.
1337
1338 2014-07-26 Doug Evans <xdje42@gmail.com>
1339
1340 PR 17185
1341 * configure.ac: Add check for header gc/gc.h.
1342 Add check for function setenv.
1343 * configure: Regenerate.
1344 * config.in: Regenerate.
1345 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1346
d81412aa
DE
13472014-09-08 Doug Evans <xdje42@gmail.com>
1348
1349 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1350 with named constant. Fix style of pointer comparison.
1351 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1352
a9f116cb
GKB
13532014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1354
1355 PR gdb/17035
1356 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1357 decide whether we display the command on "show user".
1358 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1359 printing command name.
1360 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1361 * cli/cli-decode.c (cli_user_command_p): Create helper function
1362 to verify whether cmd_list_element is a user-defined command.
1363
c75bd3a2
JK
13642014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1365
1366 PR python/17355
1367 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1368 Fix goto out of TRY_CATCH.
1369
faa42425 13702014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1371 Tom Tromey <tromey@redhat.com>
faa42425
DE
1372
1373 PR 15276
1374 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1375 $_any_caller_matches.
1376 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1377 * python/lib/gdb/function/caller_is.py: New file.
1378
0d41ba00
DE
13792014-09-06 Doug Evans <xdje42@gmail.com>
1380
1381 * infcmd.c (program_info): Fix typo.
1382
474ca4f6
SDJ
13832014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1384
1385 PR gdb/17235
1386 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1387 'number'. New variable 'has_digit'. Rewrite code to deal with
1388 subexpressions on SDT probes.
1389
ebf13736
PA
13902014-09-04 Pedro Alves <palves@redhat.com>
1391
1392 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1393 the input is only one character long.
1394
eb0b0463
SDJ
13952014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1396
1397 PR fortran/17237
1398 * f-valprint.c (f_val_print): Specify the correct print option to
1399 use when printing integer values.
1400
5ee44bfa
GB
14012014-09-04 Gary Benson <gbenson@redhat.com>
1402
1403 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1404 Remove code to cope with LWPs wrapped as PIDs.
1405 Add assertions to ensure no wrapped LWPs are passed.
1406
4875ffdb
PA
14072014-09-04 Pedro Alves <palves@redhat.com>
1408
1409 * value.c (value_ranges_copy_adjusted): New function, factored out
1410 from ...
1411 (value_contents_copy_raw): ... here.
1412 (unpack_value_bits_as_long_1): Rename back to ...
1413 (unpack_bits_as_long): ... this. Remove 'original_value' and
1414 'result' parameters. Change return type to LONGEST.
1415 (unpack_value_bits_as_long): Delete.
1416 (unpack_value_field_as_long_1): Delete.
1417 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1418 (unpack_value_bitfield): New function.
1419 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1420 (value_fetch_lazy): Use unpack_value_bitfield.
1421 * value.h (unpack_value_bits_as_long): Delete declaration.
1422
5f3b99cf
SS
14232014-09-03 Sasha Smundak <asmundak@google.com>
1424
1425 * python/py-frame.c (frapy_read_register): New function.
1426
ac740bc7
JH
14272014-09-03 James Hogan <james.hogan@imgtec.com>
1428
1429 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1430 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1431
7d793aa9
SDJ
14322014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1433
1434 PR python/16699
1435 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1436 function.
1437 (add_cmd): Set "completer_handle_brkchars" to NULL.
1438 * cli/cli-decode.h (struct cmd_list_element)
1439 <completer_handle_brkchars>: New field.
1440 * command.h (completer_ftype_void): New typedef.
1441 (set_cmd_completer_handle_brkchars): New prototype.
1442 * completer.c (set_gdb_completion_word_break_characters): New
1443 function.
1444 (complete_line_internal): Call "completer_handle_brkchars"
1445 callback from command.
1446 * completer.h: Include "command.h".
1447 (set_gdb_completion_word_break_characters): New prototype.
1448 * python/py-cmd.c (cmdpy_completer_helper): New function.
1449 (cmdpy_completer_handle_brkchars): New function.
1450 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1451 (cmdpy_init): Set completer_handle_brkchars to
1452 cmdpy_completer_handle_brkchars.
1453
97ea6506
GB
14542014-09-03 Gary Benson <gbenson@redhat.com>
1455
1456 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1457 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1458 Loop conditions changed to equivalent form.
1459 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1460 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1461 ALL_DEBUG_ADDRESS_REGISTERS.
1462
d1437815
JB
14632014-09-03 Joel Brobecker <brobecker@adacore.com>
1464
1465 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1466 description fix.
1467
9b94fcf1
DE
14682014-09-02 Doug Evans <dje@google.com>
1469
1470 * typeprint.c (find_global_typedef): Fix comment.
1471
df7e5265
GB
14722014-09-02 Gary Benson <gbenson@redhat.com>
1473
1474 * i386-nat.h: Renamed as...
1475 * x86-nat.h: New file. All type, function and variable name
1476 prefixes changed from "i386_" to "x86_". All references updated.
1477 * i386-nat.c: Renamed as...
1478 * x86-nat.c: New file. All type, function and variable name
1479 prefixes changed from "i386_" to "x86_". All references updated.
1480 * common/i386-xstate.h: Renamed as...
1481 * common/x86-xstate.h: New file. All type, function and variable
1482 name prefixes changed from "i386_" to "x86_". All references
1483 updated.
1484 * nat/i386-cpuid.h: Renamed as...
1485 * nat/x86-cpuid.h: New file. All type, function and variable name
1486 prefixes changed from "i386_" to "x86_". All references updated.
1487 * nat/i386-gcc-cpuid.h: Renamed as...
1488 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1489 name prefixes changed from "i386_" to "x86_". All references
1490 updated.
1491 * nat/i386-dregs.h: Renamed as...
1492 * nat/x86-dregs.h: New file. All type, function and variable name
1493 prefixes changed from "i386_" to "x86_". All references updated.
1494 * nat/i386-dregs.c: Renamed as...
1495 * nat/x86-dregs.c: New file. All type, function and variable name
1496 prefixes changed from "i386_" to "x86_". All references updated.
1497
1c3569d4
MR
14982014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1499
1500 * varobj.c (_initialize_varobj): Move to the end of file.
1501
ff55e1b5
GB
15022014-08-29 Gary Benson <gbenson@redhat.com>
1503
1504 * common/common-exceptions.h: New file.
1505 * common/common-exceptions.c: Likewise.
1506 * Makefile.in (SFILES): Add common/common-exceptions.c.
1507 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1508 (COMMON_OBS): Add common-exceptions.o.
1509 (common-exceptions.o): New rule.
1510 * exceptions.h (common-exceptions.h): Include.
1511 (gdb_setjmp.h): Do not include.
1512 (return_reason): Moved to common-exceptions.h.
1513 (enum return_reason): Likewise.
1514 (RETURN_MASK): Likewise.
1515 (typedef return_mask): Likewise.
1516 (enum errors): Likewise.
1517 (struct gdb_exception): Likewise.
1518 (exceptions_state_mc_init): Likewise.
1519 (exceptions_state_mc_action_iter): Likewise.
1520 (exceptions_state_mc_action_iter_1): Likewise.
1521 (TRY_CATCH): Likewise.
1522 (throw_exception): Likewise.
1523 (throw_verror): Likewise.
1524 (throw_vquit): Likewise.
1525 (throw_error): Likewise.
1526 (throw_quit): Likewise.
1527 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1528 (enum catcher_action): Likewise.
1529 (struct catcher): Likewise.
1530 (current_catcher): Likewise.
1531 (catcher_list_size): Likewise.
1532 (exceptions_state_mc_init): Likewise.
1533 (catcher_pop): Likewise.
1534 (exceptions_state_mc): Likewise.
1535 (exceptions_state_mc_action_iter): Likewise.
1536 (exceptions_state_mc_action_iter_1): Likewise.
1537 (throw_exception): Likewise.
1538 (exception_messages): Likewise.
1539 (exception_messages_size): Likewise.
1540 (throw_it): Likewise.
1541 (throw_verror): Likewise.
1542 (throw_vquit): Likewise.
1543 (throw_error): Likewise.
1544 (throw_quit): Likewise.
1545 (prepare_to_throw_exception): New function.
1546
e9bcb658
GB
15472014-08-29 Gary Benson <gbenson@redhat.com>
1548
1549 * common/gdb_setjmp.h: New file.
1550 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1551 * configure.ac: Move sigsetjmp check...
1552 * common/common.m4: ...here.
1553 * configure: Regenerate.
1554 * cp-support.c (SIGJMP_BUF): Delete.
1555 (SIGSETJMP): Likewise.
1556 (SIGLONGJMP): Likewise.
1557 * exceptions.h (gdb_setjmp.h): Include.
1558 (setjmp.h): Do not include.
1559 (EXCEPTIONS_SIGJMP_BUF): Delete.
1560 (EXCEPTIONS_SIGSETJMP): Likewise.
1561 (EXCEPTIONS_SIGLONGJMP): Likewise.
1562 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1563 from gdb_setjmp.h.
1564 * exceptions.c: Likewise.
1565
e3180625
GB
15662014-08-29 Gary Benson <gbenson@redhat.com>
1567
1568 * cleanups.h: Moved to...
1569 * common/cleanups.h: New file.
1570 * cleanups.c: Moved to...
1571 * common/cleanups.c: New file. Include common-defs.h and
1572 cleanups.h. Do not include defs.h.
1573 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1574 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1575 (cleanups.o): New rule.
1576
e3d6ba5d
GB
15772014-08-29 Gary Benson <gbenson@redhat.com>
1578
1579 * common/errors.h (internal_warning): New declaration.
1580 (internal_vwarning): Likewise.
1581 * common/errors.c (internal_warning): New function.
1582 * utils.h (internal_warning): Don't declare.
1583 (internal_vwarning): Likewise.
1584 * utils.c (internal_warning): Removed.
1585
075c7033
GB
15862014-08-29 Gary Benson <gbenson@redhat.com>
1587
1588 * main.c (captured_main): Use warning during startup.
1589 Prefix startup warning messages with command name.
1590
91b35fd0
GB
15912014-08-29 Gary Benson <gbenson@redhat.com>
1592
1593 * main.c (captured_main): Handle usage errors with error.
1594
b1ec390e
GB
15952014-08-29 Gary Benson <gbenson@redhat.com>
1596
1597 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1598 exit pair with a call to error. Wrap the message with _().
1599
fd0ef3dd
GB
16002014-08-29 Gary Benson <gbenson@redhat.com>
1601
1602 * main.c (captured_main): Replace a fprintf/exit
1603 pair with a call to error. Wrap the message with _().
1604
e0e6bcab
GB
16052014-08-29 Gary Benson <gbenson@redhat.com>
1606
1607 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1608 pairs with calls to error. Wrap the message with _().
1609
0d2f5c07
GB
16102014-08-29 Gary Benson <gbenson@redhat.com>
1611
1612 * utils.c (vwarning): Protect calls to target_terminal_ours
1613 and wrap_here.
1614
5df43998
GB
16152014-08-29 Gary Benson <gbenson@redhat.com>
1616
1617 * exceptions.c (print_flush): Protect calls to
1618 target_terminal_ours and wrap_here.
1619
2437fd32
GB
16202014-08-29 Gary Benson <gbenson@redhat.com>
1621
1622 * utils.h (filtered_printing_initialized): New declaration.
1623 * utils.c (abort_with_message): New function.
1624 (internal_vproblem): Use abort_with_message for first level
1625 recursive internal problems, and if gdb_stderr is not set up.
1626 Protect calls to target_terminal_ours, begin_line and query.
1627
f1f58506
DE
16282014-08-28 Doug Evans <dje@google.com>
1629
1630 * symtab.c (in_prologue): Move definition to better spot.
1631 (skip_prologue_using_sal): Ditto.
1632
aab2f208
DE
16332014-08-28 Doug Evans <dje@google.com>
1634
1635 * symtab.c (find_function_start_sal): Move definition to better spot.
1636
6b65d1b6
YQ
16372014-08-28 Yao Qi <yao@codesourcery.com>
1638
1639 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1640 found_stack_adjust in forward scan. Remove condition check
1641 on found_stack_adjust which is always true. Indent the code.
1642
a1b34d15
YQ
16432014-08-28 Yao Qi <yao@codesourcery.com>
1644
1645 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1646 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1647 (dwarf_decode_lines): Remove argument
1648 want_line_info. Remove condition check on want_line_info.
1649 Callers update.
1650
d5962de5
DE
16512014-08-27 Doug Evans <dje@google.com>
1652
1653 * dwarf2read.c (dwarf_record_line): Fix typo.
1654
9b139002
SDJ
16552014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1656
1657 * target.h (struct target_ops::to_terminal_save_ours): Remove
1658 declaration.
1659 (target_terminal_save_ours): Remove macro.
1660 * target-delegates.c: Regenerate.
1661 * inf-child.c (inf_child_target): Don't set the nonexistent
1662 field to_terminal_save_ours.
1663 * inferior.h (child_terminal_save_ours): Remove declaration.
1664 * terminal.h (gdb_save_tty_state): New declaration.
1665 * inflow.c (child_terminal_save_ours): Rename to ...
1666 (gdb_save_tty_state): ... this.
1667 * tui/tui.c: Include terminal.h.
1668 (tui_enable): Use gdb_save_tty_state instead of
1669 target_terminal_save_ours.
1670 (tui_disable): Likewise.
1671
9debeba0
DE
16722014-08-25 Doug Evans <dje@google.com>
1673
1674 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1675 Pass NULL instead of 0 for context pointer.
1676
428fc5fc
YQ
16772014-08-25 Yao Qi <yao@codesourcery.com>
1678
1679 * dwarf2read.c: Fix grammatical error.
1680
cdc07690
YQ
16812014-08-24 Yao Qi <yao@codesourcery.com>
1682
1683 * dwarf2read.c (scan_partial_symbols): Update comments.
1684 Rename argument 'need_pc' with 'set_addrmap'.
1685 (add_partial_namespace): Rename argument 'need_pc' with
1686 'set_addrmap'.
1687 (add_partial_module): Likewise.
1688 (add_partial_subprogram): Likewise. Update comments.
1689 (dwarf2_name): Fix typo.
1690
a05a36a5
DE
16912014-08-22 Doug Evans <dje@google.com>
1692
1693 PR 17276
1694 * dwarf2read.c (dwarf_record_line_p): New function.
1695 (dwarf_decode_lines_1): Ignore subsequent line number entries
1696 for the same line if any entry had a non-zero discriminator.
1697
252a6764
DE
16982014-08-22 Doug Evans <dje@google.com>
1699
1700 * buildsym.h (record_line_ftype): New typedef.
1701 (record_line): Use it.
1702 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1703 (dwarf_decode_lines_1): Call them.
1704
510db052
YQ
17052014-08-22 Yao Qi <yao@codesourcery.com>
1706
1707 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1708 (ctf_end): Remove code.
1709
22fd09ae
JK
17102014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1711
1712 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1713 (linux_make_corefile_notes): call update_thread_list, protected against
1714 exceptions.
1715
656e8868
PA
17162014-08-21 Pedro Alves <palves@redhat.com>
1717
1718 * infcmd.c (attach_command): Remove comment.
1719
de589d04
WN
17202014-08-21 Bin Cheng <bin.cheng@arm.com>
1721
1722 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1723 unsigned LONGEST to ULONGEST.
1724
2a31c623
PA
17252014-08-20 Pedro Alves <palves@redhat.com>
1726
1727 * Makefile.in (check-read1): New rule.
1728
d36430db
JB
17292014-08-20 Joel Brobecker <brobecker@adacore.com>
1730
1731 * value.c (value_from_contents_and_address): Strip resolved_type's
1732 typedef layers before checking its TYPE_DATA_LOCATION.
1733
000339af
PA
17342014-08-20 Pedro Alves <palves@redhat.com>
1735
1736 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1737
5f52445b
YQ
17382014-08-20 Yao Qi <yao@codesourcery.com>
1739
1740 * amd64-tdep.c (amd64_classify): Add a blank line after the
1741 example. Move "*/" to a new line.
1742 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1743 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1744 * dwarf2read.c (psymtab_include_file_name): Likewise.
1745
9a0dc9e3
PA
17462014-08-19 Andrew Burgess <aburgess@broadcom.com>
1747 Pedro Alves <palves@redhat.com>
1748
1749 PR symtab/14604
1750 PR symtab/14605
1751 * ada-lang.c (coerce_unspec_val_to_type): Use
1752 value_contents_copy_raw.
1753 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1754 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1755 * cp-valprint.c (cp_print_value_fields): Let the common printing
1756 code handle optimized out values.
1757 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1758 * d-valprint.c (dynamic_array_type): Use
1759 value_bits_any_optimized_out.
1760 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1761 check_any_valid fields.
1762 (check_pieced_value_bits): Delete and inline ...
1763 (check_pieced_synthetic_pointer): ... here.
1764 (check_pieced_value_validity): Delete.
1765 (check_pieced_value_invalid): Delete.
1766 (pieced_value_funcs): Remove check_validity and check_any_valid
1767 fields.
1768 (read_pieced_value): Use mark_value_bits_optimized_out.
1769 (write_pieced_value): Switch to use
1770 mark_value_bytes_optimized_out.
1771 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1772 of assuming the whole value is optimized out.
1773 * findvar.c (read_frame_register_value): Remove special handling
1774 of optimized out registers.
1775 (value_from_register): Use mark_value_bytes_optimized_out.
1776 * frame-unwind.c (frame_unwind_got_optimized): Use
1777 mark_value_bytes_optimized_out.
1778 * jv-valprint.c (java_value_print): Adjust.
1779 (java_print_value_fields): Let the common printing code handle
1780 optimized out values.
1781 * mips-tdep.c (mips_print_register): Remove special handling of
1782 optimized out registers.
1783 * opencl-lang.c (lval_func_check_validity): Delete.
1784 (lval_func_check_any_valid): Delete.
1785 (opencl_value_funcs): Remove check_validity and check_any_valid
1786 fields.
1787 * p-valprint.c (pascal_object_print_value_fields): Let the common
1788 printing code handle optimized out values.
1789 * stack.c (read_frame_arg): Remove special handling of optimized
1790 out values. Fetch both VAL and ENTRYVAL before comparing
1791 contents. Adjust to value_available_contents_eq rename.
1792 * valprint.c (valprint_check_validity)
1793 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1794 (val_print_array_elements): Adjust.
1795 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1796 (value_bits_any_optimized_out): New function.
1797 (value_entirely_covered_by_range_vector): New function, factored
1798 out from value_entirely_unavailable.
1799 (value_entirely_unavailable): Reimplement.
1800 (value_entirely_optimized_out): New function.
1801 (insert_into_bit_range_vector): New function, factored out from
1802 mark_value_bits_unavailable.
1803 (mark_value_bits_unavailable): Reimplement.
1804 (struct ranges_and_idx): New struct.
1805 (find_first_range_overlap_and_match): New function, factored out
1806 from value_available_contents_bits_eq.
1807 (value_available_contents_bits_eq): Rename to ...
1808 (value_contents_bits_eq): ... this. Check both unavailable
1809 contents and optimized out contents.
1810 (value_available_contents_eq): Rename to ...
1811 (value_contents_eq): ... this.
1812 (allocate_value_lazy): Remove reference to the old optimized_out
1813 boolean.
1814 (allocate_optimized_out_value): Use
1815 mark_value_bytes_optimized_out.
1816 (require_not_optimized_out): Adjust to check whether the
1817 optimized_out vec is empty.
1818 (ranges_copy_adjusted): New function, factored out from
1819 value_contents_copy_raw.
1820 (value_contents_copy_raw): Also copy the optimized out ranges.
1821 Assert the destination ranges aren't optimized out.
1822 (value_contents_copy): Update comment, remove call to
1823 require_not_optimized_out.
1824 (value_contents_equal): Adjust to check whether the optimized_out
1825 vec is empty.
1826 (set_value_optimized_out, value_optimized_out_const): Delete.
1827 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1828 New functions.
1829 (value_entirely_optimized_out, value_bits_valid): Delete.
1830 (value_copy): Take a VEC copy of the 'optimized_out' field.
1831 (value_primitive_field): Remove special handling of optimized out.
1832 (value_fetch_lazy): Assert that lazy values have no unavailable
1833 regions. Use value_bits_any_optimized_out. Remove some special
1834 handling for optimized out values.
1835 * value.h: Add intro comment about <optimized out> and
1836 <unavailable>.
1837 (struct lval_funcs): Remove check_validity and check_any_valid
1838 fields.
1839 (set_value_optimized_out, value_optimized_out_const): Remove.
1840 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1841 New declarations.
1842 (value_bits_any_optimized_out): New declaration.
1843 (value_bits_valid): Delete declaration.
1844 (value_available_contents_eq): Rename to ...
1845 (value_contents_eq): ... this, and extend comments.
1846
6694c411
JK
18472014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1848
1849 Fix -fsanitize=address on unreadable inferior strings.
1850 * valprint.c (val_print_string): Fix access before BUFFER.
1851
89a1c21a
SM
18522014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1853
1854 * target.c (target_struct_size): Remove.
1855 (target_struct_allocsize): Remove.
1856 (DEFAULT_ALLOCSIZE): Remove.
1857 (target_ops_p): New typedef.
1858 (DEF_VEC_P (target_ops_p)): New vector type.
1859 (target_structs): Change type to VEC (target_ops_p).
1860 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1861 (find_default_run_target): Rewrite for loop following changes to
1862 target_structs.
1863
cb417230
JB
18642014-08-19 Joel Brobecker <brobecker@adacore.com>
1865
1866 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1867 Adjust code accordingly. Adjust function description comment.
1868
817e0957
YQ
18692014-08-19 Yao Qi <yao@codesourcery.com>
1870
1871 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1872 types.
1873
2974be62
AM
18742014-08-19 Alan Modra <amodra@gmail.com>
1875
1876 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1877 * config.in: Regenerate.
1878 * configure: Regenerate.
1879
34abf635
GB
18802014-08-19 Tom Tromey <tromey@redhat.com>
1881 Gary Benson <gbenson@redhat.com>
1882
1883 * common/common-debug.h: New file.
1884 * common/common-debug.c: Likewise.
1885 * debug.c: Likewise.
1886 * Makefile.in (SFILES): Add common/common-debug.c.
1887 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1888 (COMMON_OBS): Add common-debug.o and debug.o.
1889 (common-debug.o): New rule.
1890 * common/common-defs.h: Include common-debug.h.
1891 * common/agent.c (debug_agent_printf): New function.
1892 (DEBUG_AGENT): Redefine.
1893 * nat/i386-dregs.c (debug_printf): Undefine.
1894
f6e94d78
GB
18952014-08-19 Gary Benson <gbenson@redhat.com>
1896
1897 * common/common-defs.h: Include print-utils.h.
1898 * utils.h: Do not include print-utils.h.
1899
9239eeab
GB
19002014-08-19 Tom Tromey <tromey@redhat.com>
1901 Gary Benson <gbenson@redhat.com>
1902
1903 * common/common-types.h: New file.
1904 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1905 * common/common-defs.h: Include common-types.h.
1906 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1907 (ULONGEST): Remove.
1908
ef87c8bb
GB
19092014-08-19 Tom Tromey <tromey@redhat.com>
1910 Gary Benson <gbenson@redhat.com>
1911
1912 * common/errors.h: New file.
1913 * common/errors.c: Likewise.
1914 * Makefile.in (SFILES): Add common/errors.c.
1915 (HFILES_NO_SRCDIR): Add common/errors.h.
1916 (COMMON_OBS): Add errors.o.
1917 (errors.o): New rule.
1918 * common/common-defs.h: Include errors.h.
1919 * utils.h (perror_with_name, error, verror, warning, vwarning):
1920 Don't declare.
1921 * common/common-utils.h: (malloc_failure, internal_error):
1922 Likewise.
1923
196a707b
GB
19242014-08-19 Gary Benson <gbenson@redhat.com>
1925
1926 * utils.c (internal_vproblem): Always print the message.
1927
ded4fc8f
DE
19282014-08-18 Doug Evans <dje@google.com>
1929
1930 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1931
950c97d8
JB
19322014-08-18 Joel Brobecker <brobecker@adacore.com>
1933
1934 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1935 Return 0 if TYPE is dynamic.
1936 (print_range): Add handling of dynamic ranges.
1937
3cdcd0ce
JB
19382014-08-18 Keven Boell <keven.boell@intel.com>
1939 Joel Brobecker <brobecker@adacore.com>
1940
1941 * gdbtypes.h (struct main_type): Add field "data_location".
1942 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1943 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1944 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1945 a dynamic data location.
1946 (resolve_dynamic_type): Add DW_AT_data_location handling.
1947 (copy_recursive, copy_type): Copy the data_location information
1948 when present.
1949 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1950 * value.c (value_from_contents_and_address): Add
1951 DW_AT_data_location handling.
1952
08412b07
JB
19532014-08-18 Keven Boell <keven.boell@intel.com>
1954 Joel Brobecker <brobecker@adacore.com>
1955
1956 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1957 field "get_object_address".
1958 * dwarf2expr.c (execute_stack_op): Add handling for
1959 DW_OP_push_object_address.
1960 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1961 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1962 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1963 (dwarf_expr_get_obj_addr): New function.
1964 (dwarf_expr_ctx_funcs): Add get_object_address field.
1965 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1966 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1967 (dwarf2_evaluate_property): Add parameter "address". Use it.
1968 (needs_get_obj_addr): New function.
1969 (needs_frame_ctx_funcs): Add get_object_address field.
1970 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1971 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1972 (resolve_dynamic_array): Likewise.
1973
84754697
JB
19742014-08-18 Joel Brobecker <brobecker@adacore.com>
1975
1976 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1977 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1978 fixed value for records and unions for which some GNAT encodings
1979 are present.
1980
da5c522f
JB
19812014-08-18 Joel Brobecker <brobecker@adacore.com>
1982
1983 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1984 rewrite to avoid "else if" and "else" constructs. Should be
1985 a no-op in practice.
1986
0d72a7c3
JB
19872014-08-18 Joel Brobecker <brobecker@adacore.com>
1988
1989 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1990 of lexical block.
1991
e66d4446
SC
19922014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1993
1994 PR c++/17132
1995 * eval.c: Update all calls to find_overload_match.
1996 * valarith.c: Likewise.
1997 (value_user_defined_cpp_op, value_user_defined_op): New
1998 argument NOSIDE. Update all callers.
1999 * valops.c (find_overload_match): New argument NOSIDE.
2000 * value.h (find_overload_match): Update signature.
2001
940df408
SC
20022014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2003
2004 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2005 'items' methods instead of 'iteritems' method on dictionaries.
2006
699ca60a
DE
20072014-08-15 Doug Evans <dje@google.com>
2008
2009 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2010 closer to use.
2011
37780ee5
DE
20122014-08-15 Doug Evans <dje@google.com>
2013
2014 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2015
0ad93d4f
DE
20162014-08-15 Doug Evans <dje@google.com>
2017
2018 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2019
20d8c372
DE
20202014-08-15 Doug Evans <dje@google.com>
2021
2022 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2023 unused.
2024
cb039ba4
EZ
20252014-08-15 Eli Zaretskii <eliz@gnu.org>
2026
2027 * dcache.h: Include target.h, to avoid compile time warnings.
2028
eb7a547a
JB
20292014-08-15 Joel Brobecker <brobecker@adacore.com>
2030
2031 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2032 frame_info" partial declaration.
2033 * gdbarch.h: Regenerate.
2034
783cecc8
YQ
20352014-08-15 Yao Qi <yao@codesourcery.com>
2036
2037 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2038 Add parameter 'decode_for_pst_p'. Callers update.
2039
65c749e7
YQ
20402014-08-13 Yao Qi <yao@codesourcery.com>
2041
2042 PR build/17104
2043 * configure.ac: Use local variable 'pos'.
2044 * configure: Regenerated.
2045
d769e349
DE
20462014-08-11 Doug Evans <dje@google.com>
2047
2048 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2049 message, it is redundant with "Reading symbols from ..." message.
2050
24f1235e
DE
20512014-08-10 Doug Evans <xdje42@gmail.com>
2052
2053 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2054
dcd2e6ef
YQ
20552014-08-09 Yao Qi <yao@codesourcery.com>
2056
2057 PR remote/9053
2058 * remote.c (remote_xfer_partial): Remove dead code.
2059
070bdf0b
AA
20602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2061
2062 * ia64-linux-tdep.c: Include "regset.h".
2063 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2064 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2065 (ia64_linux_supply_fpregset): New function.
2066 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2067 (ia64_linux_regset_from_core_section): New function.
2068 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2069 method.
2070
08f9f542
AA
20712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2072
2073 * m68klinux-tdep.c: Include "regset.h".
2074 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2075 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2076 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2077 (m68k_linux_regset_from_core_section): New function.
2078 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2079 method.
2080
8f1cee41
AA
20812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2082
2083 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2084 function. Move logic to...
2085 (tilegx_linux_regmap): ... this new register map.
2086 (tilegx_linux_regset): Refer to register map, replace supply
2087 method by regcache_supply_regset, and add collect method.
2088 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2089 TILEGX_FIRST_EASY_REGNUM.
2090
c5741217
AA
20912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2092
2093 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2094 that calls regcache_supply_regset and handles the EPC register
2095 separately. Move main logic to...
2096 (score7_linux_gregmap): ... this new register map.
2097 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2098 (score7_linux_gregset): Refer to register map. Add collect method.
2099 (score7_linux_regset_from_core_section): Replace
2100 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2101 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2102 (struct regset): Delete unused forward declaraction.
2103 (struct pt_regs): Delete structure definition.
2104 (elf_gregset_t): Delete typedef.
2105
81580573
AA
21062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2107
2108 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2109 (nios2_core_regset): Add collect method.
2110
ba199d7d
AA
21112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2112
2113 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2114 platform-independent and don't write to read-only input buffer.
2115 (m32r_linux_collect_gregset): New function.
2116 (m32r_linux_gregset): Add collect method.
2117
0006a9da
AA
21182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2119
2120 * hppa-linux-tdep.c (greg_map): Rename to...
2121 (hppa_linux_gregmap): ... this. Also convert to
2122 regcache_map_entry format.
2123 (hppa_linux_supply_regset): Delete function.
2124 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2125 (hppa_linux_fpregmap): ... this new register map.
2126 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2127 register map, replace supply method by regcache_supply_regset, and
2128 add collect method regcache_collect_regset.
2129
901e1b23
AA
21302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2131
2132 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2133 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2134 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2135 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2136 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2137 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2138 (frv_linux_supply_gregset): Replace main logic by call to
2139 regcache_supply_regset, but keep clearing gr32-gr63.
2140 (frv_linux_supply_fpregset): Delete function.
2141 (frv_linux_gregset): Refer to appropriate register map and add
2142 regcache_collect_regset as the collect method.
2143 (frv_linux_fpregset): Likewise. Also exchange the supply method
2144 by regcache_supply_regset.
2145
1d6e7555
AA
21462014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2147
2148 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2149 by call to alpha_supply_int_regs.
2150 (alpha_linux_collect_gregset): New function.
2151 (alpha_linux_supply_fpregset): Replace logic by call to
2152 alpha_supply_fp_regs.
2153 (alpha_linux_collect_fpregset): New function.
2154 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2155
d4d793bf
AA
21562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2157
2158 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2159 by call to regcache_collect_regset.
2160 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2161 instead of aarch64_linux_supply_gregset/_fpregset.
2162 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2163 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2164 header file instead.
2165 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2166 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2167 functions. Move logic to ...
2168 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2169 register maps.
2170 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2171 refer to new register maps, replace *_regset_from_core by
2172 regcache_supply_regset, and also use regcache_collect_regset.
2173 * aarch64-linux-tdep.h: Include "regset.h".
2174 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2175 Delete prototypes.
2176 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2177 macros, moved from C source file.
2178 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2179 variable declarations.
2180
99b7da5d
AA
21812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2182
2183 * s390-linux-nat.c: Include "regset.h".
2184 (regmap_gregset): Delete macro.
2185 (s390_64_regmap_gregset): New register map for
2186 regcache_supply/_collect_regset.
2187 (s390_64_gregset): New regset.
2188 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2189 (regmap_fpregset): Delete macro.
2190 (s390_native_supply, s390_native_collect): Delete functions.
2191 (supply_gregset, fill_gregset): Replace s390-specific regmap
2192 handling by a call to regcache_supply/_collect_regset.
2193 (supply_fpregset, fill_fpregset): Call regcache_supply/
2194 _collect_regset instead of s390_native_supply/_collect.
2195 (fetch_regset, store_regset): Likewise. Also change the last
2196 parameter to a regset instead of a regmap.
2197 (s390_linux_fetch_inferior_registers)
2198 (390_linux_store_inferior_registers): Adjust last parameter in
2199 calls to fetch_regset and store_regset.
2200 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2201 (s390_gregmap): ... this. Also make static const and convert to
2202 regcache_map_entry format.
2203 (s390x_regmap_gregset): Delete.
2204 (s390_regmap_fpregset): Rename to...
2205 (s390_fpregmap): ... this. Make static const and convert to
2206 regcache_map_entry format.
2207 (s390_regmap_upper, s390_regmap_last_break)
2208 (s390x_regmap_last_break, s390_regmap_system_call)
2209 (s390_regmap_tdb): Likewise.
2210 (s390_supply_regset, s390_collect_regset): Remove functions.
2211 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2212 s390_supply_regset.
2213 (s390_gregset, s390_fpregset, s390_upper_regset)
2214 (s390_last_break_regset, s390x_last_break_regset)
2215 (s390_system_call_regset, s390_tdb_regset): Make global and
2216 replace s390_supply/_collect_regset by regcache_supply/
2217 _collect_regset.
2218 (s390x_gregset): Delete.
2219 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2220 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2221 (s390_regmap_fpregset, s390_regmap_last_break)
2222 (s390x_regmap_last_break, s390_regmap_system_call)
2223 (s390_regmap_tdb): Delete global variable declarations.
2224 (s390_gregset, s390_fpregset, s390_last_break_regset)
2225 (s390x_last_break_regset, s390_system_call_regset)
2226 (s390_tdb_regset): New global variable declarations.
2227
0b309272
AA
22282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2229
2230 * regcache.c: Include "regset.h".
2231 (regcache_transfer_regset): New local function.
2232 (regcache_supply_regset, regcache_collect_regset): New functions.
2233 * regcache.h (struct regcache_map_entry): New structure.
2234 (REGCACHE_MAP_SKIP): New enum value.
2235 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2236
7fefa8d7
AA
22372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2238
2239 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2240 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2241 (ppc_linux_collect_gregset ): Likewise.
2242 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2243 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2244 (ppc_collect_vrregset): Likewise.
2245 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2246 Likewise.
2247
96c4f946
YQ
22482014-08-07 Yao Qi <yao@codesourcery.com>
2249
2250 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2251 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2252 * remote.c (remote_read_bytes): Likewise.
2253
fffbe6a8
YQ
22542014-08-07 Yao Qi <yao@codesourcery.com>
2255
2256 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2257
5ee8a82c
YQ
22582014-08-07 Yao Qi <yao@codesourcery.com>
2259
2260 PR remote/17230
2261 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2262 TARGET_XFER_OK instead of 0.
2263
bb974a24
GB
22642014-08-07 Gary Benson <gbenson@redhat.com>
2265
2266 * common/common-defs.h: Include errno.h.
2267 * defs.h: Do not include errno.h.
2268 * ada-typeprint.c: Likewise.
2269 * c-typeprint.c: Likewise.
2270 * core-regset.c: Likewise.
2271 * corefile.c: Likewise.
2272 * corelow.c: Likewise.
2273 * event-loop.c: Likewise.
2274 * f-typeprint.c: Likewise.
2275 * gnu-nat.c: Likewise.
2276 * go32-nat.c: Likewise.
2277 * i386gnu-nat.c: Likewise.
2278 * m2-typeprint.c: Likewise.
2279 * nat/linux-btrace.c: Likewise.
2280 * p-typeprint.c: Likewise.
2281 * procfs.c: Likewise.
2282 * remote-sim.c: Likewise.
2283 * rs6000-nat.c: Likewise.
2284 * target.c: Likewise.
2285 * typeprint.c: Likewise.
2286 * ui-file.c: Likewise.
2287 * valops.c: Likewise.
2288 * valprint.c: Likewise.
2289
6d3d12eb
GB
22902014-08-07 Gary Benson <gbenson@redhat.com>
2291
2292 * common/common-defs.h: Include string.h.
2293 * aarch64-tdep.c: Do not include string.h.
2294 * ada-exp.y: Likewise.
2295 * ada-lang.c: Likewise.
2296 * ada-lex.l: Likewise.
2297 * ada-typeprint.c: Likewise.
2298 * ada-valprint.c: Likewise.
2299 * aix-thread.c: Likewise.
2300 * alpha-linux-tdep.c: Likewise.
2301 * alpha-mdebug-tdep.c: Likewise.
2302 * alpha-nat.c: Likewise.
2303 * alpha-osf1-tdep.c: Likewise.
2304 * alpha-tdep.c: Likewise.
2305 * alphanbsd-tdep.c: Likewise.
2306 * amd64-dicos-tdep.c: Likewise.
2307 * amd64-linux-tdep.c: Likewise.
2308 * amd64-nat.c: Likewise.
2309 * amd64-sol2-tdep.c: Likewise.
2310 * amd64fbsd-tdep.c: Likewise.
2311 * amd64obsd-tdep.c: Likewise.
2312 * arch-utils.c: Likewise.
2313 * arm-linux-nat.c: Likewise.
2314 * arm-linux-tdep.c: Likewise.
2315 * arm-tdep.c: Likewise.
2316 * arm-wince-tdep.c: Likewise.
2317 * armbsd-tdep.c: Likewise.
2318 * armnbsd-nat.c: Likewise.
2319 * armnbsd-tdep.c: Likewise.
2320 * armobsd-tdep.c: Likewise.
2321 * avr-tdep.c: Likewise.
2322 * ax-gdb.c: Likewise.
2323 * ax-general.c: Likewise.
2324 * bcache.c: Likewise.
2325 * bfin-tdep.c: Likewise.
2326 * breakpoint.c: Likewise.
2327 * build-id.c: Likewise.
2328 * buildsym.c: Likewise.
2329 * c-exp.y: Likewise.
2330 * c-lang.c: Likewise.
2331 * c-typeprint.c: Likewise.
2332 * c-valprint.c: Likewise.
2333 * charset.c: Likewise.
2334 * cli-out.c: Likewise.
2335 * cli/cli-cmds.c: Likewise.
2336 * cli/cli-decode.c: Likewise.
2337 * cli/cli-dump.c: Likewise.
2338 * cli/cli-interp.c: Likewise.
2339 * cli/cli-logging.c: Likewise.
2340 * cli/cli-script.c: Likewise.
2341 * cli/cli-setshow.c: Likewise.
2342 * cli/cli-utils.c: Likewise.
2343 * coffread.c: Likewise.
2344 * common/agent.c: Likewise.
2345 * common/buffer.c: Likewise.
2346 * common/buffer.h: Likewise.
2347 * common/common-utils.c: Likewise.
2348 * common/filestuff.c: Likewise.
2349 * common/filestuff.c: Likewise.
2350 * common/format.c: Likewise.
2351 * common/print-utils.c: Likewise.
2352 * common/rsp-low.c: Likewise.
2353 * common/signals.c: Likewise.
2354 * common/vec.h: Likewise.
2355 * common/xml-utils.c: Likewise.
2356 * core-regset.c: Likewise.
2357 * corefile.c: Likewise.
2358 * corelow.c: Likewise.
2359 * cp-abi.c: Likewise.
2360 * cp-name-parser.y: Likewise.
2361 * cp-support.c: Likewise.
2362 * cp-valprint.c: Likewise.
2363 * cris-tdep.c: Likewise.
2364 * d-exp.y: Likewise.
2365 * darwin-nat.c: Likewise.
2366 * dbxread.c: Likewise.
2367 * dcache.c: Likewise.
2368 * demangle.c: Likewise.
2369 * dicos-tdep.c: Likewise.
2370 * disasm.c: Likewise.
2371 * doublest.c: Likewise.
2372 * dsrec.c: Likewise.
2373 * dummy-frame.c: Likewise.
2374 * dwarf2-frame.c: Likewise.
2375 * dwarf2loc.c: Likewise.
2376 * dwarf2read.c: Likewise.
2377 * elfread.c: Likewise.
2378 * environ.c: Likewise.
2379 * eval.c: Likewise.
2380 * event-loop.c: Likewise.
2381 * exceptions.c: Likewise.
2382 * exec.c: Likewise.
2383 * expprint.c: Likewise.
2384 * f-exp.y: Likewise.
2385 * f-lang.c: Likewise.
2386 * f-typeprint.c: Likewise.
2387 * f-valprint.c: Likewise.
2388 * fbsd-nat.c: Likewise.
2389 * findcmd.c: Likewise.
2390 * findvar.c: Likewise.
2391 * fork-child.c: Likewise.
2392 * frame.c: Likewise.
2393 * frv-linux-tdep.c: Likewise.
2394 * frv-tdep.c: Likewise.
2395 * gdb.c: Likewise.
2396 * gdb_bfd.c: Likewise.
2397 * gdbarch.c: Likewise.
2398 * gdbarch.sh: Likewise.
2399 * gdbtypes.c: Likewise.
2400 * gnu-nat.c: Likewise.
2401 * gnu-v2-abi.c: Likewise.
2402 * gnu-v3-abi.c: Likewise.
2403 * go-exp.y: Likewise.
2404 * go-lang.c: Likewise.
2405 * go32-nat.c: Likewise.
2406 * guile/guile.c: Likewise.
2407 * guile/scm-auto-load.c: Likewise.
2408 * hppa-hpux-tdep.c: Likewise.
2409 * hppa-linux-nat.c: Likewise.
2410 * hppanbsd-tdep.c: Likewise.
2411 * hppaobsd-tdep.c: Likewise.
2412 * i386-cygwin-tdep.c: Likewise.
2413 * i386-dicos-tdep.c: Likewise.
2414 * i386-linux-tdep.c: Likewise.
2415 * i386-nto-tdep.c: Likewise.
2416 * i386-sol2-tdep.c: Likewise.
2417 * i386-tdep.c: Likewise.
2418 * i386bsd-tdep.c: Likewise.
2419 * i386gnu-nat.c: Likewise.
2420 * i386nbsd-tdep.c: Likewise.
2421 * i386obsd-tdep.c: Likewise.
2422 * i387-tdep.c: Likewise.
2423 * ia64-libunwind-tdep.c: Likewise.
2424 * ia64-linux-nat.c: Likewise.
2425 * inf-child.c: Likewise.
2426 * inf-ptrace.c: Likewise.
2427 * inf-ttrace.c: Likewise.
2428 * infcall.c: Likewise.
2429 * infcmd.c: Likewise.
2430 * inflow.c: Likewise.
2431 * infrun.c: Likewise.
2432 * interps.c: Likewise.
2433 * iq2000-tdep.c: Likewise.
2434 * irix5-nat.c: Likewise.
2435 * jv-exp.y: Likewise.
2436 * jv-lang.c: Likewise.
2437 * jv-typeprint.c: Likewise.
2438 * jv-valprint.c: Likewise.
2439 * language.c: Likewise.
2440 * linux-fork.c: Likewise.
2441 * linux-nat.c: Likewise.
2442 * lm32-tdep.c: Likewise.
2443 * m2-exp.y: Likewise.
2444 * m2-typeprint.c: Likewise.
2445 * m32c-tdep.c: Likewise.
2446 * m32r-linux-nat.c: Likewise.
2447 * m32r-linux-tdep.c: Likewise.
2448 * m32r-rom.c: Likewise.
2449 * m32r-tdep.c: Likewise.
2450 * m68hc11-tdep.c: Likewise.
2451 * m68k-tdep.c: Likewise.
2452 * m68kbsd-tdep.c: Likewise.
2453 * m68klinux-nat.c: Likewise.
2454 * m68klinux-tdep.c: Likewise.
2455 * m88k-tdep.c: Likewise.
2456 * machoread.c: Likewise.
2457 * macrocmd.c: Likewise.
2458 * main.c: Likewise.
2459 * mdebugread.c: Likewise.
2460 * mem-break.c: Likewise.
2461 * memattr.c: Likewise.
2462 * memory-map.c: Likewise.
2463 * mep-tdep.c: Likewise.
2464 * mi/mi-cmd-break.c: Likewise.
2465 * mi/mi-cmd-disas.c: Likewise.
2466 * mi/mi-cmd-env.c: Likewise.
2467 * mi/mi-cmd-stack.c: Likewise.
2468 * mi/mi-cmd-var.c: Likewise.
2469 * mi/mi-cmds.c: Likewise.
2470 * mi/mi-console.c: Likewise.
2471 * mi/mi-getopt.c: Likewise.
2472 * mi/mi-interp.c: Likewise.
2473 * mi/mi-main.c: Likewise.
2474 * mi/mi-parse.c: Likewise.
2475 * microblaze-rom.c: Likewise.
2476 * microblaze-tdep.c: Likewise.
2477 * mingw-hdep.c: Likewise.
2478 * minidebug.c: Likewise.
2479 * minsyms.c: Likewise.
2480 * mips-irix-tdep.c: Likewise.
2481 * mips-linux-tdep.c: Likewise.
2482 * mips-tdep.c: Likewise.
2483 * mips64obsd-tdep.c: Likewise.
2484 * mipsnbsd-tdep.c: Likewise.
2485 * mipsread.c: Likewise.
2486 * mn10300-linux-tdep.c: Likewise.
2487 * mn10300-tdep.c: Likewise.
2488 * monitor.c: Likewise.
2489 * moxie-tdep.c: Likewise.
2490 * mt-tdep.c: Likewise.
2491 * nat/linux-btrace.c: Likewise.
2492 * nat/linux-osdata.c: Likewise.
2493 * nat/linux-procfs.c: Likewise.
2494 * nat/linux-ptrace.c: Likewise.
2495 * nat/linux-waitpid.c: Likewise.
2496 * nbsd-tdep.c: Likewise.
2497 * nios2-linux-tdep.c: Likewise.
2498 * nto-procfs.c: Likewise.
2499 * nto-tdep.c: Likewise.
2500 * objc-lang.c: Likewise.
2501 * objfiles.c: Likewise.
2502 * opencl-lang.c: Likewise.
2503 * osabi.c: Likewise.
2504 * osdata.c: Likewise.
2505 * p-exp.y: Likewise.
2506 * p-lang.c: Likewise.
2507 * p-typeprint.c: Likewise.
2508 * parse.c: Likewise.
2509 * posix-hdep.c: Likewise.
2510 * ppc-linux-nat.c: Likewise.
2511 * ppc-sysv-tdep.c: Likewise.
2512 * ppcfbsd-tdep.c: Likewise.
2513 * ppcnbsd-tdep.c: Likewise.
2514 * ppcobsd-tdep.c: Likewise.
2515 * printcmd.c: Likewise.
2516 * procfs.c: Likewise.
2517 * prologue-value.c: Likewise.
2518 * python/py-auto-load.c: Likewise.
2519 * python/py-gdb-readline.c: Likewise.
2520 * ravenscar-thread.c: Likewise.
2521 * regcache.c: Likewise.
2522 * registry.c: Likewise.
2523 * remote-fileio.c: Likewise.
2524 * remote-m32r-sdi.c: Likewise.
2525 * remote-mips.c: Likewise.
2526 * remote-notif.c: Likewise.
2527 * remote-sim.c: Likewise.
2528 * remote.c: Likewise.
2529 * reverse.c: Likewise.
2530 * rs6000-aix-tdep.c: Likewise.
2531 * ser-base.c: Likewise.
2532 * ser-go32.c: Likewise.
2533 * ser-mingw.c: Likewise.
2534 * ser-pipe.c: Likewise.
2535 * ser-tcp.c: Likewise.
2536 * ser-unix.c: Likewise.
2537 * serial.c: Likewise.
2538 * sh-tdep.c: Likewise.
2539 * sh64-tdep.c: Likewise.
2540 * shnbsd-tdep.c: Likewise.
2541 * skip.c: Likewise.
2542 * sol-thread.c: Likewise.
2543 * solib-dsbt.c: Likewise.
2544 * solib-frv.c: Likewise.
2545 * solib-osf.c: Likewise.
2546 * solib-som.c: Likewise.
2547 * solib-spu.c: Likewise.
2548 * solib-target.c: Likewise.
2549 * solib.c: Likewise.
2550 * somread.c: Likewise.
2551 * source.c: Likewise.
2552 * sparc-nat.c: Likewise.
2553 * sparc-sol2-tdep.c: Likewise.
2554 * sparc-tdep.c: Likewise.
2555 * sparc64-tdep.c: Likewise.
2556 * sparc64fbsd-tdep.c: Likewise.
2557 * sparc64nbsd-tdep.c: Likewise.
2558 * sparcnbsd-tdep.c: Likewise.
2559 * spu-linux-nat.c: Likewise.
2560 * spu-multiarch.c: Likewise.
2561 * spu-tdep.c: Likewise.
2562 * stabsread.c: Likewise.
2563 * stack.c: Likewise.
2564 * std-regs.c: Likewise.
2565 * symfile.c: Likewise.
2566 * symmisc.c: Likewise.
2567 * symtab.c: Likewise.
2568 * target.c: Likewise.
2569 * thread.c: Likewise.
2570 * tilegx-linux-nat.c: Likewise.
2571 * tilegx-tdep.c: Likewise.
2572 * top.c: Likewise.
2573 * tracepoint.c: Likewise.
2574 * tui/tui-command.c: Likewise.
2575 * tui/tui-data.c: Likewise.
2576 * tui/tui-disasm.c: Likewise.
2577 * tui/tui-file.c: Likewise.
2578 * tui/tui-layout.c: Likewise.
2579 * tui/tui-out.c: Likewise.
2580 * tui/tui-regs.c: Likewise.
2581 * tui/tui-source.c: Likewise.
2582 * tui/tui-stack.c: Likewise.
2583 * tui/tui-win.c: Likewise.
2584 * tui/tui-windata.c: Likewise.
2585 * tui/tui-winsource.c: Likewise.
2586 * typeprint.c: Likewise.
2587 * ui-file.c: Likewise.
2588 * ui-out.c: Likewise.
2589 * user-regs.c: Likewise.
2590 * utils.c: Likewise.
2591 * v850-tdep.c: Likewise.
2592 * valarith.c: Likewise.
2593 * valops.c: Likewise.
2594 * valprint.c: Likewise.
2595 * value.c: Likewise.
2596 * varobj.c: Likewise.
2597 * vax-tdep.c: Likewise.
2598 * vaxnbsd-tdep.c: Likewise.
2599 * vaxobsd-tdep.c: Likewise.
2600 * windows-nat.c: Likewise.
2601 * xcoffread.c: Likewise.
2602 * xml-support.c: Likewise.
2603 * xstormy16-tdep.c: Likewise.
2604 * xtensa-linux-nat.c: Likewise.
2605
dccbb609
GB
26062014-08-07 Gary Benson <gbenson@redhat.com>
2607
2608 * common/common-defs.h: Include gdb_assert.h.
2609 * aarch64-tdep.c: Do not include gdb_assert.h.
2610 * addrmap.c: Likewise.
2611 * aix-thread.c: Likewise.
2612 * alpha-linux-tdep.c: Likewise.
2613 * alpha-mdebug-tdep.c: Likewise.
2614 * alphanbsd-tdep.c: Likewise.
2615 * amd64-nat.c: Likewise.
2616 * amd64-tdep.c: Likewise.
2617 * amd64bsd-nat.c: Likewise.
2618 * amd64fbsd-nat.c: Likewise.
2619 * amd64fbsd-tdep.c: Likewise.
2620 * amd64nbsd-nat.c: Likewise.
2621 * amd64nbsd-tdep.c: Likewise.
2622 * amd64obsd-nat.c: Likewise.
2623 * amd64obsd-tdep.c: Likewise.
2624 * arch-utils.c: Likewise.
2625 * arm-tdep.c: Likewise.
2626 * armbsd-tdep.c: Likewise.
2627 * auxv.c: Likewise.
2628 * bcache.c: Likewise.
2629 * bfin-tdep.c: Likewise.
2630 * blockframe.c: Likewise.
2631 * breakpoint.c: Likewise.
2632 * bsd-kvm.c: Likewise.
2633 * bsd-uthread.c: Likewise.
2634 * buildsym.c: Likewise.
2635 * c-exp.y: Likewise.
2636 * c-lang.c: Likewise.
2637 * charset.c: Likewise.
2638 * cleanups.c: Likewise.
2639 * cli-out.c: Likewise.
2640 * cli/cli-decode.c: Likewise.
2641 * cli/cli-dump.c: Likewise.
2642 * cli/cli-logging.c: Likewise.
2643 * cli/cli-script.c: Likewise.
2644 * cli/cli-utils.c: Likewise.
2645 * coffread.c: Likewise.
2646 * common/common-utils.c: Likewise.
2647 * common/queue.h: Likewise.
2648 * common/signals.c: Likewise.
2649 * common/vec.h: Likewise.
2650 * complaints.c: Likewise.
2651 * completer.c: Likewise.
2652 * corelow.c: Likewise.
2653 * cp-abi.c: Likewise.
2654 * cp-name-parser.y: Likewise.
2655 * cp-namespace.c: Likewise.
2656 * cp-support.c: Likewise.
2657 * cris-tdep.c: Likewise.
2658 * dbxread.c: Likewise.
2659 * dictionary.c: Likewise.
2660 * doublest.c: Likewise.
2661 * dsrec.c: Likewise.
2662 * dummy-frame.c: Likewise.
2663 * dwarf2-frame-tailcall.c: Likewise.
2664 * dwarf2-frame.c: Likewise.
2665 * dwarf2expr.c: Likewise.
2666 * dwarf2loc.c: Likewise.
2667 * dwarf2read.c: Likewise.
2668 * eval.c: Likewise.
2669 * event-loop.c: Likewise.
2670 * exceptions.c: Likewise.
2671 * expprint.c: Likewise.
2672 * f-valprint.c: Likewise.
2673 * fbsd-nat.c: Likewise.
2674 * findvar.c: Likewise.
2675 * frame-unwind.c: Likewise.
2676 * frame.c: Likewise.
2677 * frv-tdep.c: Likewise.
2678 * gcore.c: Likewise.
2679 * gdb-dlfcn.c: Likewise.
2680 * gdb_bfd.c: Likewise.
2681 * gdbarch.c: Likewise.
2682 * gdbarch.sh: Likewise.
2683 * gdbtypes.c: Likewise.
2684 * gnu-nat.c: Likewise.
2685 * gnu-v3-abi.c: Likewise.
2686 * go-lang.c: Likewise.
2687 * guile/scm-exception.c: Likewise.
2688 * guile/scm-gsmob.c: Likewise.
2689 * guile/scm-lazy-string.c: Likewise.
2690 * guile/scm-math.c: Likewise.
2691 * guile/scm-pretty-print.c: Likewise.
2692 * guile/scm-safe-call.c: Likewise.
2693 * guile/scm-utils.c: Likewise.
2694 * guile/scm-value.c: Likewise.
2695 * h8300-tdep.c: Likewise.
2696 * hppa-hpux-nat.c: Likewise.
2697 * hppa-tdep.c: Likewise.
2698 * hppanbsd-tdep.c: Likewise.
2699 * hppaobsd-tdep.c: Likewise.
2700 * i386-darwin-nat.c: Likewise.
2701 * i386-darwin-tdep.c: Likewise.
2702 * i386-nto-tdep.c: Likewise.
2703 * i386-tdep.c: Likewise.
2704 * i386bsd-nat.c: Likewise.
2705 * i386fbsd-tdep.c: Likewise.
2706 * i386gnu-nat.c: Likewise.
2707 * i386nbsd-tdep.c: Likewise.
2708 * i386obsd-tdep.c: Likewise.
2709 * i387-tdep.c: Likewise.
2710 * ia64-libunwind-tdep.c: Likewise.
2711 * ia64-tdep.c: Likewise.
2712 * inf-ptrace.c: Likewise.
2713 * inf-ttrace.c: Likewise.
2714 * infcall.c: Likewise.
2715 * infcmd.c: Likewise.
2716 * infrun.c: Likewise.
2717 * inline-frame.c: Likewise.
2718 * interps.c: Likewise.
2719 * jv-lang.c: Likewise.
2720 * jv-typeprint.c: Likewise.
2721 * linux-fork.c: Likewise.
2722 * linux-nat.c: Likewise.
2723 * linux-thread-db.c: Likewise.
2724 * m32c-tdep.c: Likewise.
2725 * m32r-linux-nat.c: Likewise.
2726 * m32r-tdep.c: Likewise.
2727 * m68k-tdep.c: Likewise.
2728 * m68kbsd-nat.c: Likewise.
2729 * m68kbsd-tdep.c: Likewise.
2730 * m88k-tdep.c: Likewise.
2731 * machoread.c: Likewise.
2732 * macroexp.c: Likewise.
2733 * macrotab.c: Likewise.
2734 * maint.c: Likewise.
2735 * mdebugread.c: Likewise.
2736 * memory-map.c: Likewise.
2737 * mep-tdep.c: Likewise.
2738 * mi/mi-common.c: Likewise.
2739 * microblaze-tdep.c: Likewise.
2740 * mingw-hdep.c: Likewise.
2741 * mips-linux-nat.c: Likewise.
2742 * mips-linux-tdep.c: Likewise.
2743 * mips-tdep.c: Likewise.
2744 * mips64obsd-tdep.c: Likewise.
2745 * mipsnbsd-tdep.c: Likewise.
2746 * mn10300-linux-tdep.c: Likewise.
2747 * mn10300-tdep.c: Likewise.
2748 * moxie-tdep.c: Likewise.
2749 * mt-tdep.c: Likewise.
2750 * nat/linux-btrace.c: Likewise.
2751 * nat/linux-osdata.c: Likewise.
2752 * nat/linux-ptrace.c: Likewise.
2753 * nat/mips-linux-watch.c: Likewise.
2754 * nios2-linux-tdep.c: Likewise.
2755 * nios2-tdep.c: Likewise.
2756 * objc-lang.c: Likewise.
2757 * objfiles.c: Likewise.
2758 * obsd-nat.c: Likewise.
2759 * opencl-lang.c: Likewise.
2760 * osabi.c: Likewise.
2761 * parse.c: Likewise.
2762 * ppc-linux-nat.c: Likewise.
2763 * ppc-sysv-tdep.c: Likewise.
2764 * ppcfbsd-nat.c: Likewise.
2765 * ppcfbsd-tdep.c: Likewise.
2766 * ppcnbsd-nat.c: Likewise.
2767 * ppcnbsd-tdep.c: Likewise.
2768 * ppcobsd-nat.c: Likewise.
2769 * ppcobsd-tdep.c: Likewise.
2770 * printcmd.c: Likewise.
2771 * procfs.c: Likewise.
2772 * prologue-value.c: Likewise.
2773 * psymtab.c: Likewise.
2774 * python/py-lazy-string.c: Likewise.
2775 * python/py-value.c: Likewise.
2776 * regcache.c: Likewise.
2777 * reggroups.c: Likewise.
2778 * registry.c: Likewise.
2779 * remote-sim.c: Likewise.
2780 * remote.c: Likewise.
2781 * rs6000-aix-tdep.c: Likewise.
2782 * rs6000-tdep.c: Likewise.
2783 * s390-linux-tdep.c: Likewise.
2784 * score-tdep.c: Likewise.
2785 * ser-base.c: Likewise.
2786 * ser-mingw.c: Likewise.
2787 * sh-tdep.c: Likewise.
2788 * sh64-tdep.c: Likewise.
2789 * solib-darwin.c: Likewise.
2790 * solib-spu.c: Likewise.
2791 * solib-svr4.c: Likewise.
2792 * source.c: Likewise.
2793 * sparc-nat.c: Likewise.
2794 * sparc-sol2-tdep.c: Likewise.
2795 * sparc-tdep.c: Likewise.
2796 * sparc64-sol2-tdep.c: Likewise.
2797 * sparc64-tdep.c: Likewise.
2798 * sparc64fbsd-tdep.c: Likewise.
2799 * sparc64nbsd-tdep.c: Likewise.
2800 * sparc64obsd-tdep.c: Likewise.
2801 * sparcnbsd-tdep.c: Likewise.
2802 * sparcobsd-tdep.c: Likewise.
2803 * spu-multiarch.c: Likewise.
2804 * spu-tdep.c: Likewise.
2805 * stabsread.c: Likewise.
2806 * stack.c: Likewise.
2807 * symfile.c: Likewise.
2808 * symtab.c: Likewise.
2809 * target-descriptions.c: Likewise.
2810 * target-memory.c: Likewise.
2811 * target.c: Likewise.
2812 * tic6x-linux-tdep.c: Likewise.
2813 * tic6x-tdep.c: Likewise.
2814 * tilegx-linux-nat.c: Likewise.
2815 * tilegx-tdep.c: Likewise.
2816 * top.c: Likewise.
2817 * tramp-frame.c: Likewise.
2818 * tui/tui-out.c: Likewise.
2819 * tui/tui-winsource.c: Likewise.
2820 * ui-out.c: Likewise.
2821 * user-regs.c: Likewise.
2822 * utils.c: Likewise.
2823 * v850-tdep.c: Likewise.
2824 * valops.c: Likewise.
2825 * value.c: Likewise.
2826 * varobj.c: Likewise.
2827 * vax-nat.c: Likewise.
2828 * xml-syscall.c: Likewise.
2829 * xml-tdesc.c: Likewise.
2830 * xstormy16-tdep.c: Likewise.
2831 * xtensa-linux-nat.c: Likewise.
2832 * xtensa-tdep.c: Likewise.
2833
e76df0d0
GB
28342014-08-07 Gary Benson <gbenson@redhat.com>
2835
2836 * common/common-defs.h: Include common-utils.h.
2837 * defs.h: Do not include common-utils.h.
2838 * common/gdb_assert.h: Likewise.
2839 * darwin-nat.h: Likewise.
2840 * nat/linux-btrace.c: Likewise.
2841 * target/waitstatus.h: Likewise.
2842
4cb9c816
GB
28432014-08-07 Gary Benson <gbenson@redhat.com>
2844
2845 * common/common-defs.h: Include ptid.h.
2846 * defs.h: Do not include ptid.h.
2847 * inferior.h: Likewise.
2848 * infrun.h: Likewise.
2849 * nat/linux-btrace.h: Likewise.
2850 * nat/linux-osdata.h: Likewise.
2851 * target/waitstatus.h: Likewise.
2852
3995eeee
GB
28532014-08-07 Gary Benson <gbenson@redhat.com>
2854
2855 * common/common-defs.h: Include gdb_locale.h.
2856 * defs.h: Do not include gdb_locale.h.
2857
cb9f1a9b
GB
28582014-08-07 Gary Benson <gbenson@redhat.com>
2859
2860 * common/common-defs.h: Include gdb/signals.h.
2861 * defs.h: Do not include gdb/signals.h.
2862
a5fceff8
GB
28632014-08-07 Gary Benson <gbenson@redhat.com>
2864
2865 * common/common-defs.h: Include pathmax.h.
2866 * defs.h: Do not include pathmax.h.
2867
b9391142
GB
28682014-08-07 Gary Benson <gbenson@redhat.com>
2869
2870 * common/common-defs.h: Include libiberty.h.
2871 * defs.h: Do not include libiberty.h.
2872 * common/queue.h: Likewise.
2873 * cp-name-parser.y: Likewise.
2874 * mi/mi-cmd-catch.c: Likewise.
2875 * python/python.c: Likewise.
2876
0e443c87
GB
28772014-08-07 Gary Benson <gbenson@redhat.com>
2878
2879 * common/common-defs.h: Include ansidecl.h.
2880 * defs.h: Do not include ansidecl.h.
2881 * common/buffer.h: Likewise.
2882 * common/common-utils.h: Likewise.
2883
8ebb3f56
GB
28842014-08-07 Gary Benson <gbenson@redhat.com>
2885
2886 * common/common-defs.h: Include stddef.h.
2887 * defs.h: Do not include stddef.h.
2888 * common/common-utils.h: Likewise.
2889 * amd64fbsd-nat.c: Likewise.
2890 * bcache.c: Likewise.
2891 * charset.c: Likewise.
2892 * common/buffer.h: Likewise.
2893 * common/vec.h: Likewise.
2894 * i386bsd-nat.c: Likewise.
2895 * nat/linux-btrace.h: Likewise.
2896 * ppcfbsd-nat.c: Likewise.
2897 * ppcnbsd-tdep.h: Likewise.
2898 * ppcobsd-nat.c: Likewise.
2899 * ppcobsd-tdep.h: Likewise.
2900 * python/py-gdb-readline.c: Likewise.
2901
8980bdf6
GB
29022014-08-07 Gary Benson <gbenson@redhat.com>
2903
2904 * common/common-defs.h: Include stdarg.h.
2905 * defs.h: Do not include stdarg.h.
2906 * ada-lang.c: Likewise.
2907 * common/common-utils.h: Likewise.
2908 * guile/scm-string.c: Likewise.
2909 * guile/scm-utils.c: Likewise.
2910 * m32c-tdep.c: Likewise.
2911
d7096f71
GB
29122014-08-07 Gary Benson <gbenson@redhat.com>
2913
2914 * common/common-defs.h: Include stdlib.h.
2915 * defs.h: Do not include stdlib.h.
2916 * addrmap.c: Likewise.
2917 * bcache.c: Likewise.
2918 * common/buffer.c: Likewise.
2919 * common/common-utils.c: Likewise.
2920 * cp-name-parser.y: Likewise.
2921 * go32-nat.c: Likewise.
2922 * mn10300-linux-tdep.c: Likewise.
2923 * nat/linux-osdata.c: Likewise.
2924 * tui/tui.c: Likewise.
2925 * windows-nat.c: Likewise.
2926
d02f550d
GB
29272014-08-07 Gary Benson <gbenson@redhat.com>
2928
2929 * common/common-defs.h: Include stdio.h.
2930 * defs.h: Do not include stdio.h.
2931 * ada-lang.c: Likewise.
2932 * common/buffer.c: Likewise.
2933 * common/common-utils.c: Likewise.
2934 * cp-name-parser.y: Likewise.
2935 * gnu-nat.c: Likewise.
2936 * go32-nat.c: Likewise.
2937 * i386gnu-nat.c: Likewise.
2938 * proc-api.c: Likewise.
2939 * proc-events.c: Likewise.
2940 * proc-flags.c: Likewise.
2941 * proc-why.c: Likewise.
2942 * python/python-internal.h: Likewise.
2943 * target-memory.c: Likewise.
2944 * tui/tui-io.c: Likewise.
2945 * tui/tui.c: Likewise.
2946
b6d7a4bf
SM
29472014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2948
2949 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2950 (scan_dyntag_auxv): Same.
2951
af19829b
YQ
29522014-08-06 Yao Qi <yao@codesourcery.com>
2953
2954 * amd64-linux-nat.c: Remove duplicated include
2955 "x86-linux-nat.h".
2956 * i386-linux-nat.c: Likewise.
2957
8e07a239
YQ
29582014-08-06 Yao Qi <yao@codesourcery.com>
2959
2960 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2961 operand" with "Special opcode" in comments.
2962
7bfe8241
GB
29632014-08-05 Gary Benson <gbenson@redhat.com>
2964
2965 * interps.c (initialize_interps): Remove prototype.
2966 (interpreter_initialized): Remove static global.
2967 (interp_add): Do not call initialize_interps.
2968 (initialize_interps): Remove function.
2969
d6c95504
GB
29702014-08-05 Gary Benson <gbenson@redhat.com>
2971
2972 * utils.c (vwarning): Remove spurious va_end.
2973
241fd515
AM
29742014-08-05 Alan Modra <amodra@gmail.com>
2975
2976 * charset.c (convert_between_encodings): Cast result of obstack_base.
2977 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2978 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2979 (read_unwind_info): Use size_t for some locals.
2980 * jit.c (finalize_symtab): Likewise.
2981 * utils.c (hashtab_obstack_allocate): Likewise.
2982 * symmisc.c (print_objfile_statistics): Update format strings.
2983
dc304a94
JK
29842014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2985
2986 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2987 (Changes in GDB 7.8): ... here.
2988
3cecbbbe
TT
29892014-08-04 Tom Tromey <tromey@redhat.com>
2990
2991 * target.c (set_targetdebug): New function.
2992 (initialize_targets): Pass set_targetdebug when creating "set
2993 debug target".
2994
6908c509
JB
29952014-08-01 Joel Brobecker <brobecker@adacore.com>
2996
2997 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2998 if detecting a variable-sized field that is not the last field.
2999 Fix struct type length computation.
3000
53e8f97d
JB
30012014-08-01 Joel Brobecker <brobecker@adacore.com>
3002
3003 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3004 Add debug trace.
3005
e068c55d
JB
30062014-08-01 Joel Brobecker <brobecker@adacore.com>
3007
3008 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3009 Remove "+ 8" offset in computation of CHAIN_VMA.
3010
4d4ca2a1
DE
30112014-07-31 Doug Evans <dje@google.com>
3012
3013 * inflow.c (child_terminal_inferior): Add comment.
3014 (child_terminal_ours_for_output): Add comment.
3015 (child_terminal_ours): Add comment.
3016 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3017 (linux_nat_terminal_ours): Add comment.
3018
462f517e
GB
30192014-07-31 Gary Benson <gbenson@redhat.com>
3020
3021 * common/btrace-common.h: Do not include defs.h or server.h.
3022 * nat/mips-linux-watch.h: Likewise.
3023 * gdb-dlfcn.h: Do not include defs.h.
3024 * tracefile.h: Likewise.
3025
74228e77
RM
30262014-07-30 Roland McGrath <mcgrathr@google.com>
3027
3028 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3029
014f9477
TT
30302014-07-30 Tom Tromey <tromey@redhat.com>
3031
3032 * bsd-kvm.c (bsd_kvm_open): Constify.
3033 * corelow.c (core_open): Constify.
3034 * ctf.c (ctf_open): Constify.
3035 * dbug-rom.c (dbug_open): Constify.
3036 * exec.c (exec_open): Constify.
3037 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3038 * microblaze-rom.c (picobug_open): Constify.
3039 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3040 Constify.
3041 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3042 * record-btrace.c (record_btrace_open): Constify.
3043 * record-full.c (record_full_core_open_1, record_full_open_1)
3044 (record_full_open): Constify.
3045 * remote-m32r-sdi.c (m32r_open): Constify.
3046 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3047 (rockhopper_open, lsi_open): Constify.
3048 * remote-sim.c (gdbsim_open): Constify.
3049 * remote.c (remote_open, extended_remote_open, remote_open_1):
3050 Constify.
3051 * target.h (struct target_ops) <to_open>: Make "arg" const.
3052 * tracefile-tfile.c (tfile_open): Constify.
3053
e799154c
TT
30542014-07-30 Tom Tromey <tromey@redhat.com>
3055
3056 * breakpoint.c (map_breakpoint_numbers): Update.
3057 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3058 (get_number_const): New function.
3059 (get_number): Rewrite using get_number_const.
3060 (init_number_or_range): Make "string" const.
3061 (number_is_in_list): Make "list" const.
3062 * cli/cli-utils.h (get_number_const): Declare.
3063 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3064 (init_number_or_range, number_is_in_list): Update.
3065 * printcmd.c (map_display_numbers): Update.
3066 * value.c (value_from_history_ref): Constify.
3067 * value.h (value_from_history_ref): Update.
3068
5f08566b
TT
30692014-07-30 Tom Tromey <tromey@redhat.com>
3070
3071 * corefile.c (hook_type, call_extra_exec_file_hooks)
3072 (specify_exec_file_hook): Constify.
3073 * exec.c (exec_file_attach): Make "filename" const.
3074 * gdbcore.h (deprecated_exec_file_display_hook)
3075 (specify_exec_file_hook, exec_file_attach): Constify.
3076 * main.c (captured_main): Use catch_command_errors_const.
3077
8981c758
TT
30782014-07-30 Tom Tromey <tromey@redhat.com>
3079
3080 * target.c (open_target): New function.
3081 (add_target_with_completer, add_deprecated_target_alias): Use
3082 set_cmd_sfunc, set_cmd_context.
3083 (debug_to_open): Remove.
3084 (setup_target_debug): Update.
3085
a1c7835a
YQ
30862014-07-30 Yao Qi <yao@codesourcery.com>
3087
3088 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3089 comments.
3090 * parse.c (exp_iterate): Update comments.
3091
976411d6
GB
30922014-07-30 Gary Benson <gbenson@redhat.com>
3093
3094 * common/common-defs.h: New file.
3095 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3096 * defs.h: Include common-defs.h.
3097 Do not include config.h or build-gnulib/config.h.
3098
5d4848a4
GB
30992014-07-30 Gary Benson <gbenson@redhat.com>
3100
3101 * common/common-utils.h: Do not include config.h.
3102 * nat/linux-btrace.h: Likewise.
3103
d41f6d8e
GB
31042014-07-30 Gary Benson <gbenson@redhat.com>
3105
3106 * btrace.c: Include defs.h.
3107 * common/ptid.c: Include defs.h or server.h as appropriate.
3108 * nat/mips-linux-watch.c: Likewise.
3109
84202f9c
TT
31102014-07-29 Tom Tromey <tromey@redhat.com>
3111
3112 * target.c (target_is_pushed): Simplify.
3113
2530441c
JB
31142014-07-29 Joel Brobecker <brobecker@adacore.com>
3115
3116 GDB 7.8 released.
3117
7e09a223
YQ
31182014-07-29 Yao Qi <yao@codesourcery.com>
3119
3120 PR gdb/17206
3121 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3122
7ebdbe92
DE
31232014-07-28 Doug Evans <xdje42@gmail.com>
3124
3125 PR guile/17203
3126 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3127 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3128 parameters.
3129
f347ffc9
WN
31302014-07-28 Will Newton <will.newton@linaro.org>
3131
3132 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3133 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3134 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3135 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3136 (THUMB2_EABI_SYSCALL): Likewise.
3137 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3138 struct tramp_frame.
3139 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3140 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3141
37c5f1f7
DE
31422014-07-27 Doug Evans <xdje42@gmail.com>
3143
3144 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3145
0c3abbc7
DE
31462014-07-27 Doug Evans <xdje42@gmail.com>
3147
3148 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3149
e76c5d17
DE
31502014-07-26 Ludovic Courtès <ludo@gnu.org>
3151 Doug Evans <xdje42@gmail.com>
3152
3153 PR guile/17146
3154 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3155 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3156 * configure.ac: Try to use guild to compile an scm file, if it fails
3157 then disable guile support.
3158 * configure: Regenerate.
3159 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3160 GUILE_FILE_LIST.
3161 (GUILE_COMPILED_FILES): New variable.
3162 (GUILE_FILES) Update.
3163 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3164 (stamp-guile): Compile scm files.
3165 * guile/guile.c (boot_guile_support): New function.
3166 (standard_throw_args_p): New function.
3167 (print_standard_throw_error, print_throw_error): New functions.
3168 (handle_boot_error): New function.
3169 (initialize_scheme_side): Rewrite to call boot_guile_support.
3170 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3171 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3172
186fcde0
DE
31732014-07-26 Ludovic Courtès <ludo@gnu.org>
3174 Doug Evans <xdje42@gmail.com>
3175
3176 PR guile/17146
3177 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3178 * guile/lib/gdb/support.scm: New file.
3179 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3180 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3181 All uses updated.
3182 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3183 All uses updated.
3184 (%assert-type): Ditto, and renamed to assert-type.
3185 (%exception-print-style): Delete.
3186
4df42755
DE
31872014-07-26 Doug Evans <xdje42@gmail.com>
3188
3189 PR build/17105
3190 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3191 * configure: Regenerate.
3192 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3193 PYTHON_FILES.
3194 (PYTHON_FILES): New variable.
3195 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3196 (GUILE_FILES): New variable.
3197 (stamp-python, install-python, uninstall-python): Handle empty
3198 file list.
3199 (stamp-guile, install-guile, uninstall-guile): Ditto.
3200
ee7333ae
DE
32012014-07-26 Doug Evans <xdje42@gmail.com>
3202
3203 PR guile/17177
3204 * guile/lib/gdb.scm (pretty-printers): Export.
3205 (set-pretty-printers!): Export.
3206 * guile/lib/gdb/printing.scm (gdb module): Update.
3207 (prepend-pretty-printer!, append-pretty-printer!): Update.
3208 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3209 (pretty_printer_list_var): Delete.
3210 (pretty_printer_list): New static global.
3211 (gdbscm_pretty_printers): New function.
3212 (gdbscm_set_pretty_printers_x): New function.
3213 (ppscm_find_pretty_printer_from_gdb): Update.
3214 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3215 (gdbscm_initialize_pretty_printers): Update.
3216
74edf516
DE
32172014-07-26 Doug Evans <xdje42@gmail.com>
3218
3219 PR 17185
3220 * configure.ac: Add check for header gc/gc.h.
3221 Add check for function setenv.
3222 * configure: Regenerate.
3223 * config.in: Regenerate.
3224 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3225
d54398a7
MR
32262014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3227
3228 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3229 variation in gdbarch matching.
3230
ab16fce8
TT
32312014-07-25 Tom Tromey <tromey@redhat.com>
3232
3233 * exec.c (using_exec_ops): Remove.
3234 (exec_close_1): Update. Remove extraneous block, reindent.
3235 (add_target_sections): Use target_is_pushed.
3236
88056fbb
PA
32372014-07-25 Pedro Alves <palves@redhat.com>
3238
3239 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3240 * monitor.c (monitor_create_inferior): Likewise.
3241 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3242 * remote-sim.c (gdbsim_create_inferior): Likewise.
3243 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3244 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3245 * windows-nat.c (do_initial_windows_stuff): Likewise.
3246
70509625
PA
32472014-07-25 Pedro Alves <palves@redhat.com>
3248
3249 * NEWS: Mention signal passing and "signal" command changes.
3250 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3251 comment.
3252 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3253 call.
3254 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3255 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3256 (jump_command): Adjust clear_proceed_status call.
3257 (signal_command): Warn if other thread that are resumed have
3258 signals that will be delivered. Adjust clear_proceed_status call.
3259 (until_next_command, finish_command)
3260 (proceed_after_attach_callback, attach_command_post_wait)
3261 (attach_command): Adjust clear_proceed_status call.
3262 * infrun.c (proceed_after_vfork_done): Likewise.
3263 (proceed_after_attach_callback): Adjust comment.
3264 (clear_proceed_status_thread): Clear stop_signal if not in pass
3265 state.
3266 (clear_proceed_status_callback): Delete.
3267 (clear_proceed_status): New 'step' parameter. Only clear the
3268 proceed status of threads the command being prepared is about to
3269 resume.
3270 (proceed): If passed in an explicit signal, override stop_signal
3271 with it. Don't pass the last stop signal to the thread we're
3272 resuming.
3273 (init_wait_for_inferior): Adjust clear_proceed_status call.
3274 (switch_back_to_stepped_thread): Clear the signal if it should not
3275 be passed.
3276 * infrun.h (clear_proceed_status): New 'step' parameter.
3277 (user_visible_resume_ptid): Add comment.
3278 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3279 signal is in pass state.
3280 * remote.c (append_pending_thread_resumptions): Likewise.
3281 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3282
d8be2939
TT
32832014-07-25 Tom Tromey <tromey@redhat.com>
3284
3285 * target.h (target_stopped_data_address)
3286 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3287 parentheses.
3288
7d0d9d2b
PL
32892014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3290
3291 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3292 comments.
3293 (avr_pointer_to_address): Likewise.
3294
e9e7f724
TT
32952014-07-24 Tom Tromey <tromey@redhat.com>
3296
3297 * monitor.c (compile_pattern): Update.
3298 * target.h (struct target_ops) <to_shortname, to_longname,
3299 to_doc>: Now const.
3300
1947513d
TT
33012014-07-24 Tom Tromey <tromey@redhat.com>
3302
3303 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3304 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3305 (add_info_alias, add_com): Make "doc" const.
3306 (print_doc_line): Make "str" const.
3307 (delete_cmd): Update.
3308 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3309 (print_doc_line): Update.
3310 * cli/cli-script.c (document_command): Update.
3311 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3312 (add_com, add_info, add_info_alias): Update.
3313 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3314 * python/py-cmd.c (cmdpy_destroyer): Update.
3315
64e61d29
TT
33162014-07-24 Tom Tromey <tromey@redhat.com>
3317
3318 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3319 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3320 (help_cmd_list): Constify.
3321 (lookup_cmd): Update.
3322 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3323 const.
3324 (help_cmd_list, apropos_cmd): Update.
3325 * cli/cli-script.c (show_user): Update.
3326 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3327 * cli/cli-setshow.h (cmd_show_list): Update.
3328 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3329 (cmd_show_list): Update.
3330 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3331 * python/py-cmd.c (cmdpy_destroyer): Update.
3332
429e55ea
TT
33332014-07-24 Tom Tromey <tromey@redhat.com>
3334
3335 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3336 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3337 const.
3338 * command.h (deprecate_cmd): Update.
3339 * maint.c (maintenance_do_deprecate): Add casts.
3340
64669f3b
TT
33412014-07-24 Tom Tromey <tromey@redhat.com>
3342
3343 * cli/cli-decode.c (help_cmd): Make parameter "const".
3344 * cli/cli-decode.h (help_cmd): Update.
3345
d3d3328b
TT
33462014-07-24 Tom Tromey <tromey@redhat.com>
3347
3348 * stack.c (up_silently_base, down_silently_base): Make argument
3349 const.
3350
414842dc
TT
33512014-07-24 Tom Tromey <tromey@redhat.com>
3352
3353 * solib.c (solib_add): Make "pattern" const.
3354 * solib.h (solib_add): Update.
3355
baa336ce
TT
33562014-07-24 Tom Tromey <tromey@redhat.com>
3357
3358 * remote.c (remote_serial_open, print_packet, putpkt)
3359 (putpkt_binary): Constify.
3360 * remote.h (putpkt): Update.
3361
5a19e2d0
TT
33622014-07-24 Tom Tromey <tromey@redhat.com>
3363
3364 * monitor.c (monitor_open): Make "args" const.
3365 * monitor.h (monitor_open): Update.
3366
fc4baa5e
TT
33672014-07-24 Tom Tromey <tromey@redhat.com>
3368
3369 * maint.c (match_bfd_flags): Make "string" const.
3370 (print_bfd_section_info): Remove casts.
3371 (print_objfile_section_info): Make "string" const.
3372
0d5f0dbe
TT
33732014-07-24 Tom Tromey <tromey@redhat.com>
3374
3375 * inf-child.c (inf_child_open_target): Make "arg" const.
3376 * inf-child.h (inf_child_open_target): Update.
3377
41c77899
TT
33782014-07-24 Tom Tromey <tromey@redhat.com>
3379
3380 * environ.c (unset_in_environ): Make "var" const.
3381 * environ.h (unset_in_environ): Update.
3382
93db0d79
TT
33832014-07-24 Tom Tromey <tromey@redhat.com>
3384
3385 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3386 Make "cmd" const.
3387 (scan_filename_with_cleanup): Likewise.
3388 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3389 Make arguments const.
3390 (restore_command): Update.
3391
36d6eb95
PA
33922014-07-24 Pedro Alves <palves@redhat.com>
3393
3394 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3395
8009206a
TT
33962014-07-24 Tom Tromey <tromey@redhat.com>
3397 Gary Benson <gbenson@redhat.com>
3398
3399 * nat/linux-ptrace.c (additional_flags): New global.
3400 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3401 additional_flags; don't check GDBSERVER.
3402 (linux_ptrace_set_additional_flags): New function.
3403 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3404 Declare.
3405 * linux-nat.c (_initialize_linux_nat): Call
3406 linux_ptrace_set_additional_flags.
3407
a7068b60
TT
34082014-07-24 Tom Tromey <tromey@redhat.com>
3409
3410 * make-target-delegates (munge_type, write_debugmethod): New
3411 functions.
3412 (debug_names): New global.
3413 ($TARGET_DEBUG_PRINTER): New global.
3414 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3415 name.
3416 Write debug methods. Generate init_debug_target.
3417 * target-debug.h: New file.
3418 * target-delegates.c: Rebuild.
3419 * target.c: Include target-debug.h.
3420 (debug_target): Hoist definition.
3421 (target_kill, target_get_section_table, target_memory_map)
3422 (target_flash_erase, target_flash_done, target_detach)
3423 (target_disconnect, target_wait, target_resume)
3424 (target_pass_signals, target_program_signals, target_follow_fork)
3425 (target_mourn_inferior, target_search_memory)
3426 (target_thread_address_space, target_close)
3427 (target_find_new_threads, target_core_of_thread)
3428 (target_verify_memory, target_insert_mask_watchpoint)
3429 (target_remove_mask_watchpoint): Remove targetdebug code.
3430 (debug_to_post_attach, debug_to_prepare_to_store)
3431 (debug_to_files_info, debug_to_insert_breakpoint)
3432 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3433 (debug_to_region_ok_for_hw_watchpoint)
3434 (debug_to_can_accel_watchpoint_condition)
3435 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3436 (debug_to_watchpoint_addr_within_range)
3437 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3438 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3439 (debug_to_terminal_init, debug_to_terminal_inferior)
3440 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3441 (debug_to_terminal_save_ours, debug_to_terminal_info)
3442 (debug_to_load, debug_to_post_startup_inferior)
3443 (debug_to_insert_fork_catchpoint)
3444 (debug_to_remove_fork_catchpoint)
3445 (debug_to_insert_vfork_catchpoint)
3446 (debug_to_remove_vfork_catchpoint)
3447 (debug_to_insert_exec_catchpoint)
3448 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3449 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3450 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3451 (setup_target_debug): Call init_debug_target.
3452 * target.h (TARGET_DEBUG_PRINTER): New macro.
3453 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3454 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3455
2c51604d
GB
34562014-07-24 Gary Benson <gbenson@redhat.com>
3457
3458 * exceptions.h (throw_vfatal): Renamed to...
3459 (throw_vquit): New declaration.
3460 (throw_quit): Likewise.
3461 * exceptions.c (throw_vfatal): Renamed to...
3462 (throw_vquit): New function.
3463 (throw_quit): Likewise.
3464 (throw_error): Call throw_verror rather than throw_it.
3465 * utils.h (vfatal): Removed.
3466 (fatal): Likewise.
3467 * utils.c (vfatal): Removed.
3468 (fatal): Likewise.
3469 (internal_verror): Replaced call to fatal with call to throw_quit.
3470 (quit): Replaced calls to fatal with calls to throw_quit.
3471
34211963
ME
34722014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3473
3474 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3475 target_read_code.
3476
a52b4d3e
ME
34772014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3478
3479 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3480 less than zero in conditional expression.
3481
a8bdc56b
TT
34822014-07-23 Tom Tromey <tromey@redhat.com>
3483
3484 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3485 ($INTRO_PART): Don't match whitespace.
3486 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3487 argument matching.
3488 ($METHOD): Add $METHOD_TRAILER.
3489 (trim): Rewrite.
3490 (scan_target_h): New sub.
3491 Change main loop not to collect state.
3492 * target-delegates.c: Rebuild.
3493
91b52240
GB
34942014-07-23 Gary Benson <gbenson@redhat.com>
3495
3496 * cp-support.c (gdb_demangle): Fix build on systems without
3497 sigaltstack.
3498
45326f6f
JK
34992014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3500
3501 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3502 for reference entry value target data value.
3503
e214cf6c
JK
35042014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3505
3506 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3507 value_available_contents_eq.
3508
bddbbedd
PA
35092014-07-22 Pedro Alves <palves@redhat.com>
3510
3511 * value.c (allocate_optimized_out_value): Don't mark value as
3512 non-lazy.
3513
45c71484
JW
35142014-07-22 Jiong Wang <jiong.wang@arm.com>
3515
3516 * MAINTAINERS (Write After Approval): Update my email address.
3517
9597b22a
DE
35182014-07-20 Doug Evans <dje@google.com>
3519
3520 PR server/17147
3521 * remote.c (putpkt_binary): Add text to error message.
3522
91101fe5
YQ
35232014-07-20 Yao Qi <yao@codesourcery.com>
3524
3525 * eval.c: Remove "Chill" from comments.
3526 * gdbtypes.h: Likewise.
3527 * symtab.h: Likewise.
3528
c9402c95
YQ
35292014-07-20 Yao Qi <yao@codesourcery.com>
3530
3531 * std-operator.def: Update comments to TERNOP_SLICE.
3532
ae8fddda
YQ
35332014-07-20 Yao Qi <yao@codesourcery.com>
3534
3535 * std-operator.def: Remove BINOP_RANGE.
3536 * breakpoint.c (watchpoint_exp_is_const): Update.
3537 * expprint.c (dump_subexp_body_standard): Likewise.
3538 * eval.c (init_array_element): Remove dead code.
3539 (evaluate_subexp_standard): Likewise.
3540
9c816640
YQ
35412014-07-20 Yao Qi <yao@codesourcery.com>
3542
3543 * std-operator.def: Remove BINOP_IN.
3544 * breakpoint.c (watchpoint_exp_is_const): Update.
3545 * eval.c (evaluate_subexp_standard): Likewise.
3546 * expprint.c (dump_subexp_body_standard): Likewise.
3547
164224e9
ME
35482014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3549
3550 * microblaze-tdep.c (microblaze_register_names): Add
3551 the rshr and rslr register names.
3552 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3553 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3554 Use of tdesc_numbered_register. Use of
3555 microblaze_register_g_packet_guesses. Use of
3556 tdesc_use_registers. Use of set_gdbarch_register_type.
3557 (microblaze_register_g_packet_guesses): New.
3558 * microblaze-tdep.h (microblaze_reg_num): Add
3559 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3560 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3561 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3562 * features/microblaze-core.xml: New file.
3563 * features/microblaze-stack-protect.xml: New file.
3564 * features/microblaze-with-stack-protect.c: New file.
3565 * features/microblaze-with-stack-protect.xml: New file.
3566 * features/microblaze.xml: New file.
3567 * features/microblaze.c: New file.
3568 * features/Makefile (microblaze-with-stack-protect): Add
3569 microblaze-with-stack-protect microblaze and microblaze-expedite.
3570 * regformats/microblaze-with-stack-protect.dat: New file.
3571 * regformats/microblaze.dat: New file.
3572 * doc/gdb.texinfo (MicroBlaze Features): Added.
3573
e8b2341c
TT
35742014-07-18 Tom Tromey <tromey@redhat.com>
3575
3576 * exec.c (exec_ops): Now static.
3577 * exec.h (exec_ops): Don't declare.
3578
44e89118
TT
35792014-07-18 Tom Tromey <tromey@redhat.com>
3580
3581 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3582 to find_target_beneath.
3583 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3584 find_target_beneath.
3585 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3586
b0ed115f
TT
35872014-07-18 Tom Tromey <tromey@redhat.com>
3588
3589 PR gdb/17130:
3590 * utils.c (quit): Use target_supports_terminal_ours.
3591 * target.h (target_supports_terminal_ours): Declare.
3592 * target.c (target_supports_delete_record): Don't check
3593 to_delete_record against NULL.
3594 (target_supports_terminal_ours): New function.
3595
e75fdfca
TT
35962014-07-18 Tom Tromey <tromey@redhat.com>
3597
3598 PR gdb/17130:
3599 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3600 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3601 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3602 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3603 * windows-nat.c (windows_xfer_partial): Always delegate.
3604 * record-btrace.c (record_btrace_xfer_partial): Simplify
3605 delegation.
3606 (record_btrace_fetch_registers, record_btrace_store_registers)
3607 (record_btrace_prepare_to_store, record_btrace_resume)
3608 (record_btrace_wait, record_btrace_find_new_threads)
3609 (record_btrace_thread_alive): Likewise.
3610 * procfs.c (procfs_xfer_partial): Always delegate.
3611 * corelow.c (core_xfer_partial): Always delegate.
3612 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3613
83814951
TT
36142014-07-18 Tom Tromey <tromey@redhat.com>
3615
3616 * exec.c (exec_make_note_section): Move earlier.
3617
b8b8facf
DE
36182014-07-17 Doug Evans <dje@google.com>
3619
74b49205 3620 PR gdb/17170
b8b8facf
DE
3621 * maint.c (count_symtabs_and_blocks): Handle NULL
3622 current_program_space.
3623 (report_command_stats): Check global enabled flag in addition to
3624 recorded enabled flag.
3625 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3626
69ff6be5
PA
36272014-07-16 Pedro Alves <palves@redhat.com>
3628
3629 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3630
252db1b5
TT
36312014-07-16 Tom Tromey <tromey@redhat.com>
3632
3633 * target.h (struct target_ops) <to_delete_record>: Reformat
3634 comment.
3635
a432721e
TT
36362014-07-16 Tom Tromey <tromey@redhat.com>
3637
3638 * target-delegates.c: Rebuild.
3639
487d9753
PL
36402014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3641
3642 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3643 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3644 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3645 (avr_pointer_to_address): Likewise.
3646 (avr_address_class_type_flags): New function.
3647 (avr_address_class_type_flags_to_name): Likewise.
3648 (avr_address_class_name_to_type_flags): Likewise.
3649 (avr_gdbarch_init): Set address_class_type_flags,
3650 address_class_type_flags_to_name and
3651 address_class_name_to_type_flags.
3652
57745c90
PA
36532014-07-15 Pedro Alves <palves@redhat.com>
3654
3655 * linux-nat.c (kill_callback): Save errno and work with saved
3656 copy.
3657
2d40be18
SM
36582014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3659
3660 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3661
572f6555
EBM
36622014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3663
3664 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3665 breakpoint support correctly.
3666
cc1c52ad
PA
36672014-07-14 Pedro Alves <palves@redhat.com>
3668
3669 * utils.c (prompt_for_continue): Call target_terminal_ours.
3670
1e973570
PA
36712014-07-14 Pedro Alves <palves@redhat.com>
3672
3673 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3674 catch_errors. Don't re-enable stdin or notify observers where,
3675 and rethrow error.
3676 (fetch_inferior_event_wrapper): Delete.
3677
93d6eb10
PA
36782014-07-14 Pedro Alves <palves@redhat.com>
3679
3680 PR gdb/17072
3681 * top.c: Include "inf-loop.h".
3682 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3683 field.
3684 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3685 was async before.
3686 (gdb_readline_wrapper): Store whether the target is async, and
3687 make it sync.
3688
0017922d
PA
36892014-07-14 Pedro Alves <palves@redhat.com>
3690
3691 PR gdb/17072
3692 * top.c (gdb_readline_wrapper_line): Tweak comment.
3693 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3694 the input handler callback.
3695
94696ad3
PA
36962014-07-14 Pedro Alves <palves@redhat.com>
3697
3698 PR gdb/17072
3699 * main.c: Include event-top.h.
3700 (handle_command_errors): New function.
3701 (catch_command_errors, catch_command_errors_const): Use it.
3702
9d1e69a2
PA
37032014-07-14 Pedro Alves <palves@redhat.com>
3704
3705 * exceptions.c (catch_command_errors, catch_command_errors_const):
3706 Moved to main.c.
3707 * exceptions.h (catch_command_errors_ftype)
3708 (catch_command_errors_const_ftype): Moved to main.c.
3709 (catch_command_errors, catch_command_errors_const): Delete
3710 declarations.
3711 * main.c (catch_command_errors_ftype)
3712 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3713 (catch_command_errors, catch_command_errors_const)): Moved here
3714 from exceptions.c and make static.
3715
feefc97b
PA
37162014-07-14 Pedro Alves <palves@redhat.com>
3717
3718 * exceptions.c (print_any_exception): Delete.
3719 (catch_exceptions_with_msg): Use exception_print instead of
3720 print_any_exception.
3721 (catch_errors): Use exception_fprintf instead of
3722 print_any_exception.
3723 (catch_command_errors, catch_command_errors_const): Use
3724 exception_print instead of print_any_exception.
3725
c933f875
PA
37262014-07-14 Pedro Alves <palves@redhat.com>
3727
3728 * infcall.c (run_inferior_call): Set 'sync_execution' while
3729 running the inferior call.
3730
feb6f816
PA
37312014-07-14 Pedro Alves <palves@redhat.com>
3732
3733 * value.c (value_contents_equal): Delete function.
3734 * value.h (value_contents_equal): Delete declaration.
3735
d98b7a16
TT
37362014-07-14 Tom Tromey <tromey@redhat.com>
3737
3738 PR exp/17106:
3739 * gdbtypes.c (is_dynamic_type_internal): New function, from
3740 is_dynamic_type.
3741 (is_dynamic_type): Rewrite.
3742 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3743 (resolve_dynamic_struct): Likewise.
3744 (resolve_dynamic_type_internal): New function, from
3745 resolve_dynamic_type.
3746 (resolve_dynamic_type): Rewrite.
3747
548740d6
TT
37482014-07-14 Tom Tromey <tromey@redhat.com>
3749
3750 * target.c (target_require_runnable): Also check record_stratum.
3751 Update comment.
3752
808f7ab1
YQ
37532014-07-11 Yao Qi <yao@codesourcery.com>
3754
3755 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3756 thumb_instruction_restores_sp return true.
3757
540314bd
YQ
37582014-07-11 Yao Qi <yao@codesourcery.com>
3759
3760 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3761 (thumb_in_function_epilogue_p): Call
3762 thumb_instruction_restores_sp.
3763
1db01f22
YQ
37642014-07-11 Yao Qi <yao@codesourcery.com>
3765
3766 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3767 'add sp, #imm'.
3768 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3769
3116063b
GB
37702014-07-11 Gary Benson <gbenson@redhat.com>
3771
3772 * amd64-linux-nat.c (gdbcore.h): Remove include.
3773 (regset.h): Likewise.
3774 (nat/linux-btrace.h): Likewise.
3775 (btrace.h): Likewise.
3776 (gdb_assert.h): Likewise.
3777 (string.h): Likewise.
3778 (sys/uio.h): Likewise.
3779 (sys/debugreg.h): Likewise.
3780 (sys/syscall.h): Likewise.
3781 (sys/procfs.h): Likewise.
3782 (sys/user.h): Likewise.
3783 (asm/ptrace.h): Likewise.
3784 (i386-nat.h): Likewise.
3785 * i386-linux-nat.c (i386-nat.h): Likewise.
3786 (regset.h): Likewise.
3787 (target.h): Likewise.
3788 (linux-nat.h): Likewise.
3789 (nat/linux-btrace.h): Likewise.
3790 (btrace.h): Likewise.
3791 (gdb_assert.h): Likewise.
3792 (string.h): Likewise.
3793 (sys/uio.h): Likewise.
3794 (sys/user.h): Likewise.
3795 (sys/procfs.h): Likewise.
3796 (sys/reg.h): Likewise.
3797 (sys/debugreg.h): Likewise.
3798 (ORIG_EAX): Remove definition.
3799
040baaf6
GB
38002014-07-11 Gary Benson <gbenson@redhat.com>
3801
3802 * i386-linux-nat.h: New file.
3803 * x86-linux-nat.h: Likewise.
3804 * x86-linux-nat.c: Likewise.
3805 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3806 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3807 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3808 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3809 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3810 (PTRACE_SETREGSET): Likewise.
3811 (arch_lwp_info): Now in x86-linux-nat.c.
3812 (have_ptrace_getregset): Now in x86-linux-nat.h.
3813 (x86_linux_dr_get): Now in x86-linux-nat.c.
3814 (x86_linux_dr_set): Likewise.
3815 (x86_linux_dr_get_addr): Likewise.
3816 (x86_linux_dr_get_control): Likewise.
3817 (x86_linux_dr_get_status): Likewise.
3818 (update_debug_registers_callback): Likewise.
3819 (x86_linux_dr_set_control): Likewise.
3820 (x86_linux_dr_set_addr): Likewise.
3821 (x86_linux_prepare_to_resume): Likewise.
3822 (x86_linux_new_thread): Likewise.
3823 (x86_linux_new_fork): Likewise.
3824 (x86_linux_get_thread_area): Likewise.
3825 (super_post_startup_inferior): Likewise.
3826 (x86_linux_child_post_startup_inferior): Likewise.
3827 (AMD64_LINUX_USER64_CS): Likewise.
3828 (AMD64_LINUX_X32_DS): Likewise.
3829 (x86_linux_read_description): Likewise.
3830 (x86_linux_enable_btrace): Likewise.
3831 (x86_linux_disable_btrace): Likewise.
3832 (x86_linux_teardown_btrace): Likewise.
3833 (x86_linux_read_btrace): Likewise.
3834 (x86_linux_create_target): Likewise.
3835 (x86_linux_add_target): Likewise.
3836 * i386-linux-nat.c (x86-linux-nat.h): New include.
3837 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3838 (PTRACE_SETREGSET): Likewise.
3839 (arch_lwp_info): Now in x86-linux-nat.c.
3840 (have_ptrace_getregset): Now in x86-linux-nat.h.
3841 (x86_linux_dr_get): Now in x86-linux-nat.c.
3842 (x86_linux_dr_set): Likewise.
3843 (x86_linux_dr_get_addr): Likewise.
3844 (x86_linux_dr_get_control): Likewise.
3845 (x86_linux_dr_get_status): Likewise.
3846 (update_debug_registers_callback): Likewise.
3847 (x86_linux_dr_set_control): Likewise.
3848 (x86_linux_dr_set_addr): Likewise.
3849 (x86_linux_prepare_to_resume): Likewise.
3850 (x86_linux_new_thread): Likewise.
3851 (x86_linux_new_fork): Likewise.
3852 (x86_linux_get_thread_area): Likewise.
3853 (super_post_startup_inferior): Likewise.
3854 (x86_linux_child_post_startup_inferior): Likewise.
3855 (AMD64_LINUX_USER64_CS): Likewise.
3856 (AMD64_LINUX_X32_DS): Likewise.
3857 (x86_linux_read_description): Likewise.
3858 (x86_linux_enable_btrace): Likewise.
3859 (x86_linux_disable_btrace): Likewise.
3860 (x86_linux_teardown_btrace): Likewise.
3861 (x86_linux_read_btrace): Likewise.
3862 (x86_linux_create_target): Likewise.
3863 (x86_linux_add_target): Likewise.
3864
1aa7e42c
GB
38652014-07-11 Gary Benson <gbenson@redhat.com>
3866
3867 * amd64-linux-nat.c: Comment and whitespace changes.
3868 * i386-linux-nat.c: Comment and whitespace changes.
3869
c1e246a0
GB
38702014-07-11 Gary Benson <gbenson@redhat.com>
3871
3872 * amd64-linux-nat.c (x86_linux_create_target): New function.
3873 (x86_linux_add_target): Likewise.
3874 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3875 * i386-linux-nat.c (x86_linux_create_target): New function.
3876 (x86_linux_add_target): Likewise.
3877 (_initialize_i386_linux_nat): Delegate to the above new functions.
3878
8c420b8d
GB
38792014-07-11 Gary Benson <gbenson@redhat.com>
3880
3881 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3882 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3883 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3884 (ps_get_thread_area): Delegate to the above.
3885
cb1da100
GB
38862014-07-11 Gary Benson <gbenson@redhat.com>
3887
3888 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3889 x86_linux_read_description. All uses updated. amd64-specific
3890 code conditionalized. Conditionalized i386-specific code added.
3891 Redundant cast removed.
3892 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3893 x86_linux_read_description. All uses updated. i386-specific
3894 code conditionalized. Conditionalized amd64-specific code added.
3895 One sizeof replaced with the actual type it is describing.
3896
2acf3cd0
GB
38972014-07-11 Gary Benson <gbenson@redhat.com>
3898
3899 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3900 x86_linux_dr_get. All uses updated.
3901 (amd64_linux_dr_set): Renamed to
3902 x86_linux_dr_set. All uses updated.
3903 (amd64_linux_dr_get_addr): Renamed to
3904 x86_linux_dr_get_addr. All uses updated.
3905 (amd64_linux_dr_get_control): Renamed to
3906 x86_linux_dr_get_control. All uses updated.
3907 (amd64_linux_dr_get_status): Renamed to
3908 x86_linux_dr_get_status. All uses updated.
3909 (amd64_linux_dr_set_control): Renamed to
3910 x86_linux_dr_set_control. All uses updated.
3911 (amd64_linux_dr_set_addr): Renamed to
3912 x86_linux_dr_set_addr. All uses updated.
3913 (amd64_linux_prepare_to_resume): Renamed to
3914 x86_linux_prepare_to_resume. All uses updated.
3915 (amd64_linux_new_thread): Renamed to
3916 x86_linux_new_thread. All uses updated.
3917 (amd64_linux_new_fork): Renamed to
3918 x86_linux_new_fork. All uses updated.
3919 (amd64_linux_child_post_startup_inferior): Renamed to
3920 x86_linux_child_post_startup_inferior. All uses updated.
3921 (amd64_linux_enable_btrace): Renamed to
3922 x86_linux_enable_btrace. All uses updated.
3923 (amd64_linux_disable_btrace): Renamed to
3924 x86_linux_disable_btrace. All uses updated.
3925 (amd64_linux_teardown_btrace): Renamed to
3926 x86_linux_teardown_btrace. All uses updated.
3927 (amd64_linux_read_btrace): Renamed to
3928 x86_linux_read_btrace. All uses updated.
3929 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3930 x86_linux_dr_get. All uses updated.
3931 (i386_linux_dr_set): Renamed to
3932 x86_linux_dr_set. All uses updated.
3933 (i386_linux_dr_get_addr): Renamed to
3934 x86_linux_dr_get_addr. All uses updated.
3935 (i386_linux_dr_get_control): Renamed to
3936 x86_linux_dr_get_control. All uses updated.
3937 (i386_linux_dr_get_status): Renamed to
3938 x86_linux_dr_get_status. All uses updated.
3939 (i386_linux_dr_set_control): Renamed to
3940 x86_linux_dr_set_control. All uses updated.
3941 (i386_linux_dr_set_addr): Renamed to
3942 x86_linux_dr_set_addr. All uses updated.
3943 (i386_linux_prepare_to_resume): Renamed to
3944 x86_linux_prepare_to_resume. All uses updated.
3945 (i386_linux_new_thread): Renamed to
3946 x86_linux_new_thread. All uses updated.
3947 (i386_linux_new_fork): Renamed to
3948 x86_linux_new_fork. All uses updated.
3949 (i386_linux_child_post_startup_inferior): Renamed to
3950 x86_linux_child_post_startup_inferior. All uses updated.
3951 (i386_linux_enable_btrace): Renamed to
3952 x86_linux_enable_btrace. All uses updated.
3953 (i386_linux_disable_btrace): Renamed to
3954 x86_linux_disable_btrace. All uses updated.
3955 (i386_linux_teardown_btrace): Renamed to
3956 x86_linux_teardown_btrace. All uses updated.
3957 (i386_linux_read_btrace): Renamed to
3958 x86_linux_read_btrace. All uses updated.
3959
b9c1d481
AS
39602014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3961
3962 * remote.c (extended_remote_post_attach): New function.
3963 (init_extended_remote_ops): Install it as to_post_attach method.
3964
7180e04a
PA
39652014-07-09 Pedro Alves <palves@redhat.com>
3966
3967 * infcmd.c (attach_command_post_wait): Don't call
3968 target_terminal_inferior here.
3969 (attach_command): Call it here instead.
3970
9a9a7608
AB
39712014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3972
3973 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3974 field.
3975 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3976 from varobj.c, with additional checks.
3977 (c_varobj_ops): Fill in is_path_expr_parent field.
3978 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3979 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3980 field.
3981 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3982 ops method.
3983 (varobj_default_is_path_expr_parent): New function.
3984 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3985 (varobj_default_is_path_expr_parent): Declare new function.
3986
1f267ae3
MM
39872014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3988
3989 * infcmd.c (finish_backward): Turn internal error into normal error.
3990
b2ee242b
PA
39912014-07-07 Pedro Alves <palves@redhat.com>
3992
8a869bca 3993 PR gdb/17096
b2ee242b
PA
3994 * remote.c (async_handle_remote_sigint)
3995 (async_handle_remote_sigint_twice): Call
3996 gdb_call_async_signal_handler instead of
3997 mark_async_signal_handler.
3998
38e229b2
TT
39992014-07-07 Tom Tromey <tromey@redhat.com>
4000
4001 * target-delegates.c: Rebuild.
4002 * target.c (target_info_record): Remove.
4003 * record.c (info_record_command): Unconditionally call
4004 to_info_record.
4005 * target.h (struct target_ops) <to_info_record>: Use
4006 TARGET_DEFAULT_IGNORE.
4007 (target_info_record): Remove.
4008
f0f9ff95
TT
40092014-07-07 Tom Tromey <tromey@redhat.com>
4010
4011 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4012 TARGET_DEFAULT_NORETURN.
4013 * target.c (generic_tls_error): New function.
4014 (target_translate_tls_address): Don't search target stack.
4015 * target-delegates.c: Rebuild.
4016 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4017 stack.
4018 * linux-thread-db.c (thread_db_get_thread_local_address):
4019 Unconditionally call beneath target.
4020
4a5be5ee
MK
40212014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4022
4023 * cli/cli-logging.c (pop_output_files): Assign targerr to
4024 gdb_stdtargerr.
4025
92c3b204
AB
40262014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * MAINTAINERS (Write After Approval): Update my email address.
4029
9b11e3a7
GB
40302014-07-02 Gary Benson <gbenson@redhat.com>
4031
4032 * proc-service.c (ps_xfer_memory): Update comment.
4033 (ps_pstop): Remove unused function.
4034 (ps_pcontinue): Likewise.
4035 (ps_lstop): Likewise.
4036 (ps_lcontinue): Likewise.
4037 (ps_lgetxregsize): Likewise.
4038 (ps_lgetxregs): Likewise.
4039 (ps_lsetxregs): Likewise.
4040 (ps_plog): Likewise.
4041 (ps_ptread): Likewise.
4042 (ps_ptwrite): Likewise.
4043
cf363f18
MW
40442014-07-01 Mark Wielaard <mjw@redhat.com>
4045
4046 * dwarf2read.c (add_array_cv_type): New function.
4047 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4048 (read_tag_volatile_type): Likewise.
4049
82ae6c8d
TT
40502014-07-01 Tom Tromey <tromey@redhat.com>
4051
4052 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4053 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4054 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4055 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4056 * command.h (cmd_cfunc_ftype): Move earlier.
4057 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4058 (add_com, add_info): Use cmd_cfunc_ftype.
4059
96142726
TT
40602014-06-30 Tom Tromey <tromey@redhat.com>
4061
4062 * symtab.c (operator_chars): Make parameters and return type
4063 const.
4064 (file_matches): Make "files" const.
4065 (struct search_symbols_data) <files>: Now const.
4066 (search_symbols): Make "regexp" and "files" parameters const.
4067 Update.
4068 (symtab_symbol_info): Remove cast.
4069 (rbreak_command): Update.
4070 * symtab.h (search_symbols): Update.
4071
b67a2c6f
YQ
40722014-06-27 Yao Qi <yao@codesourcery.com>
4073
4074 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4075 Change parameter type to 'struct thread_info *'. Caller
4076 updated.
4077 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4078 Update declaration.
4079 * dummy-frame.c (struct dummy_frame_id): New.
4080 (dummy_frame_id_eq): New function.
4081 (struct dummy_frame) <id>: Change its type to 'struct
4082 dummy_frame_id'.
4083 (dummy_frame_push): Add parameter ptid and save it in
4084 dummy_frame_id.
4085 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4086 inferior_ptid.
4087 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4088 to inferior_ptid.
4089 (lookup_dummy_frame): Change parameter type to 'struct
4090 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4091 instead of frame_id_eq.
4092 (dummy_frame_pop): Add parameter ptid. Callers updated.
4093 Update comments. Compose dummy_frame_id and pass it to
4094 lookup_dummy_frame.
4095 (dummy_frame_discard): Add parameter ptid.
4096 (dummy_frame_sniffer): Compose dummy_frame_id and call
4097 dummy_frame_id_eq instead of frame_id_eq.
4098 (fprint_dummy_frames): Print ptid.
4099 * dummy-frame.h: Remove comments.
4100 (dummy_frame_push): Add ptid in declaration.
4101 (dummy_frame_pop, dummy_frame_discard): Likewise.
4102
5b10184c
TT
41032014-06-26 Tom Tromey <tromey@redhat.com>
4104
4105 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4106 * command.h (error_no_arg): Update.
4107
06900326
TT
41082014-06-26 Tom Tromey <tromey@redhat.com>
4109
4110 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4111 (do_show_command): Make "arg" const.
4112 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4113
c2bcbb1d
TT
41142014-06-26 Tom Tromey <tromey@redhat.com>
4115
4116 * record-full.c (record_full_get_bookmark): Make "args" const.
4117 (record_full_goto_bookmark): Make "raw_bookmark" const.
4118 * record.c (record_goto): New function.
4119 (cmd_record_goto): Use it. Now static.
4120 * record.h (record_goto): Declare.
4121 (cmd_record_goto): Remove declaration.
4122 * target-delegates.c: Rebuild.
4123 * target.h (struct target_ops) <to_get_bookmark,
4124 to_goto_bookmark>: Make parameter const.
4125
9cbe5fff
TT
41262014-06-26 Tom Tromey <tromey@redhat.com>
4127
4128 * defs.h (generic_load): Update.
4129 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4130 * monitor.c (monitor_load): Make "args" const.
4131 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4132 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4133 const.
4134 (mips_load): Make "file" const.
4135 * remote-sim.c (gdbsim_load): Make "args" const.
4136 * remote.c (remote_load): Make "name" const.
4137 * symfile.c (generic_load): Make "args" const.
4138 * target-delegates.c: Rebuild.
4139 * target.c (target_load): Make "arg" const.
4140 (debug_to_load): Make "args" const.
4141 * target.h (struct target_ops) <to_load>: Make parameter const.
4142 (target_load): Update.
4143
34a68019
TT
41442014-06-26 Tom Tromey <tromey@redhat.com>
4145
4146 PR symtab/16902:
4147 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4148 (dwarf2_physname, read_partial_die)
4149 (guess_partial_die_structure_name, fixup_partial_die)
4150 (guess_full_die_structure_name, anonymous_struct_prefix)
4151 (dwarf2_name): Use per-BFD obstack.
4152
efc889c1
YQ
41532014-06-26 Yao Qi <yao@codesourcery.com>
4154
4155 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4156 dummyframe and this_id into inner block below.
4157
4395285e
YQ
41582014-06-26 Yao Qi <yao@codesourcery.com>
4159
4160 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4161 with "signal_pass[0]" in the initialization of signal_pass.
4162
aef92902
MM
41632014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4164
4165 * record-btrace.c (record_btrace_generating_corefile)
4166 (record_btrace_prepare_to_generate_core)
4167 (record_btrace_done_generating_core): New.
4168 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4169 (record_btrace_store_registers, record_btrace_prepare_to_store):
4170 Forward request when generating a core file.
4171 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4172 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4173 to_done_generating_core.
4174
5fff78c4
MM
41752014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4176
4177 * target.h (target_ops) <to_prepare_to_generate_core>
4178 <to_done_generating_core>: New.
4179 (target_prepare_to_generate_core, target_done_generating_core): New.
4180 * target.c (target_prepare_to_generate_core)
4181 (target_done_generating_core): New.
4182 * target-delegates.c: Regenerate.
4183 * gcore.c: (write_gcore_file): Rename to ...
4184 (write_gcore_file_1): ...this.
4185 (write_gcore_file): Call target_prepare_to_generate_core
4186 and target_done_generating_core.
4187
1d1f1ccb
MM
41882014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4189
4190 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4191 * gcore.c (write_gcore_file): Free memory returned from
4192 make_corefile_notes.
4193 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4194 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4195
3343ef86
YQ
41962014-06-24 Yao Qi <yao@codesourcery.com>
4197
4198 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4199 (arm_linux_init_abi): Set skip_trampoline_code with
4200 gdbarch_skip_trampoline_code instead of
4201 find_solib_trampoline_target.
4202
18d18ac8
YQ
42032014-06-24 Yao Qi <yao@codesourcery.com>
4204
4205 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4206 arm_skip_bx_reg returns non-zero.
4207
80d8d390
YQ
42082014-06-24 Yao Qi <yao@codesourcery.com>
4209
4210 * arm-tdep.c (arm_skip_bx_reg): New function.
4211 (arm_skip_stub): Call arm_skip_bx_reg.
4212
6a18a01c
DB
42132014-06-23 Don Breazeal <donb@codesourcery.com>
4214
4215 * MAINTAINERS: Add myself as write-after-approval maintainer.
4216
8e9db26e
PA
42172014-06-23 Pedro Alves <palves@redhat.com>
4218
4219 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4220 DR_CONTROL before setting DR0..DR3.
4221 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4222 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4223 bits of DR_CONTROL related to the debug register slot being
4224 disabled. If all slots are vacant, clear local slowdown as well,
4225 and assert DR_CONTROL is 0.
4226
70afc5b7
SC
42272014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4228
4229 * python/lib/gdb/command/xmethods.py
4230 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4231 current progspace only if the string "progspace" matches LOCUS_RE.
4232
840ed64d
JK
42332014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4234
4235 Fix --with-system-readline with readline-6.3 patch 5.
4236 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4237 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4238 types.
4239
26f2dc30
TT
42402014-06-20 Tom Tromey <tromey@redhat.com>
4241
4242 * dwarf2read.c (dw2_get_real_path): Use correct type in
4243 OBSTACK_CALLOC.
4244 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4245
125f8a3d
GB
42462014-06-20 Gary Benson <gbenson@redhat.com>
4247
4248 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4249 * common/glibc_thread_db.h: Likewise.
4250 * common/i386-cpuid.h: Likewise.
4251 * common/i386-gcc-cpuid.h: Likewise.
4252 * common/linux-btrace.h: Likewise.
4253 * common/linux-osdata.h: Likewise.
4254 * common/linux-procfs.h: Likewise.
4255 * common/linux-ptrace.h: Likewise.
4256 * common/mips-linux-watch.h: Likewise.
4257 * common/linux-btrace.c: Moved to nat.
4258 * common/linux-osdata.c: Likewise.
4259 * common/linux-procfs.c: Likewise.
4260 * common/linux-ptrace.c: Likewise.
4261 * common/mips-linux-watch.c: Likewise.
4262 * nat/gdb_thread_db.h: Moved from common.
4263 * nat/glibc_thread_db.h: Likewise.
4264 * nat/i386-cpuid.h: Likewise.
4265 * nat/i386-gcc-cpuid.h: Likewise.
4266 * nat/linux-btrace.c: Likewise.
4267 * nat/linux-btrace.h: Likewise.
4268 * nat/linux-osdata.c: Likewise.
4269 * nat/linux-osdata.h: Likewise.
4270 * nat/linux-procfs.c: Likewise.
4271 * nat/linux-procfs.h: Likewise.
4272 * nat/linux-ptrace.c: Likewise.
4273 * nat/linux-ptrace.h: Likewise.
4274 * nat/mips-linux-watch.c: Likewise.
4275 * nat/mips-linux-watch.h: Likewise.
4276 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4277 (object file files): Reordered.
4278 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4279 of glibc_thread_db.h.
4280
42995dbd
GB
42812014-06-20 Gary Benson <gbenson@redhat.com>
4282
4283 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4284 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4285 (i386_dr_low): Likewise.
4286 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4287 (i386_dr_low_set_addr): Likewise.
4288 (i386_dr_low_get_addr): Likewise.
4289 (i386_dr_low_can_set_control): Likewise.
4290 (i386_dr_low_set_control): Likewise.
4291 (i386_dr_low_get_control): Likewise.
4292 (i386_dr_low_get_status): Likewise.
4293 (i386_get_debug_register_length): Likewise.
4294 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4295 (i386_dr_low): Likewise.
4296 * nat/i386-dregs.c (i386-low.h): Remove include.
4297 (i386-nat.h): Likewise.
4298 (nat/i386-dregs.h): New include.
4299 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4300 (i386_dr_low_set_addr): Likewise.
4301 (i386_dr_low_get_addr): Likewise.
4302 (i386_dr_low_can_set_control): Likewise.
4303 (i386_dr_low_set_control): Likewise.
4304 (i386_dr_low_get_control): Likewise.
4305 (i386_dr_low_get_status): Likewise.
4306 (i386_get_debug_register_length): Likewise.
4307 (debug_hw_points): Likewise.
4308
3ed9baed
IB
43092014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4310
4311 * Makefile.in (SFILES): Add d-exp.y.
4312 (YYFILES): Add d-exp.c.
4313 (YYOBJ): Add d-exp.o.
4314 (local-maintainer-clean): Delete d-exp.c.
4315 * d-exp.y: New file.
4316 * d-lang.h (d_parse): New declaration.
4317 (d_error): New declaration.
4318 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4319 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4320 PREC_ORDER operators.
4321 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4322
78c164b0
YQ
43232014-06-19 Yao Qi <yao@codesourcery.com>
4324
4325 * gdbthread.h (any_running): Remove the declaration.
4326 * thread.c (any_running): Remove.
4327
f6e29b6e
YQ
43282014-06-19 Yao Qi <yao@codesourcery.com>
4329
4330 * gdbthread.h (struct thread_info) <state>: Change its type to
4331 'enum thread_state'. Update comments.
4332
034f788c
PA
43332014-06-19 Pedro Alves <palves@redhat.com>
4334
4335 * gdbthread.h (ALL_THREADS): Delete.
4336 (ALL_NON_EXITED_THREADS): New macro.
4337 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4338 instead of ALL_THREADS.
4339 * infrun.c (find_thread_needs_step_over)
4340 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4341 instead of ALL_THREADS.
4342 * record-btrace.c (record_btrace_open)
4343 (record_btrace_stop_recording, record_btrace_close)
4344 (record_btrace_is_replaying, record_btrace_resume)
4345 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4346 * remote.c (append_pending_thread_resumptions): Likewise.
4347 * thread.c (thread_apply_all_command): Likewise.
4348
46e33252
GB
43492014-06-19 Gary Benson <gbenson@redhat.com>
4350
4351 * i386-nat.c (i386_stopped_by_watchpoint):
4352 Use i386_dr_stopped_by_watchpoint.
4353 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4354 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4355
3a8ee006
GB
43562014-06-19 Gary Benson <gbenson@redhat.com>
4357
4358 * nat/i386-dregs.c: New file.
4359 * Makefile.in (i386-dregs.o): New rule.
4360 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4361 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4362 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4363 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4364 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4365 * config/i386/go32.mh (NATDEPFILES): Likewise.
4366 * config/i386/linux.mh (NATDEPFILES): Likewise.
4367 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4368 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4369 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4370 * i386-nat.h (debug_hw_points): New declaration.
4371 * i386-nat.c (breakpoint.h): Remove include.
4372 (command.h): Likewise.
4373 (target.h): Likewise.
4374 (gdb_assert.h): Likewise.
4375 (debug_hw_points): Made nonstatic.
4376 (debug_printf): Now in i386-dregs.c.
4377 (TARGET_HAS_DR_LEN_8): Likewise.
4378 (DR_CONTROL_SHIFT): Likewise.
4379 (DR_CONTROL_SIZE): Likewise.
4380 (DR_RW_EXECUTE): Likewise.
4381 (DR_RW_WRITE): Likewise.
4382 (DR_RW_READ): Likewise.
4383 (DR_RW_IORW): Likewise.
4384 (DR_LEN_1): Likewise.
4385 (DR_LEN_2): Likewise.
4386 (DR_LEN_4): Likewise.
4387 (DR_LEN_8): Likewise.
4388 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4389 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4390 (DR_ENABLE_SIZE): Likewise.
4391 (DR_LOCAL_SLOWDOWN): Likewise.
4392 (DR_GLOBAL_SLOWDOWN): Likewise.
4393 (DR_CONTROL_RESERVED): Likewise.
4394 (I386_DR_CONTROL_MASK): Likewise.
4395 (I386_DR_VACANT): Likewise.
4396 (I386_DR_LOCAL_ENABLE): Likewise.
4397 (I386_DR_GLOBAL_ENABLE): Likewise.
4398 (I386_DR_DISABLE): Likewise.
4399 (I386_DR_SET_RW_LEN): Likewise.
4400 (I386_DR_GET_RW_LEN): Likewise.
4401 (I386_DR_WATCH_HIT): Likewise.
4402 (i386_wp_op_t): Likewise.
4403 (i386_show_dr): Likewise.
4404 (i386_length_and_rw_bits): Likewise.
4405 (i386_insert_aligned_watchpoint): Likewise.
4406 (i386_remove_aligned_watchpoint): Likewise.
4407 (i386_handle_nonaligned_watchpoint): Likewise.
4408 (i386_update_inferior_debug_regs): Likewise.
4409 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4410 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4411 (i386_region_ok_for_watchpoint):
4412 Use i386_dr_region_ok_for_watchpoint.
4413 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4414
322a8e06
GB
44152014-06-19 Gary Benson <gbenson@redhat.com>
4416
4417 * i386-nat.c (i386_insert_hw_breakpoint): Use
4418 i386_insert_watchpoint.
4419 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4420
8f26655c
GB
44212014-06-19 Gary Benson <gbenson@redhat.com>
4422
4423 * i386-nat.c (i386_dr_show): Renamed to
4424 i386_show_dr and made static. All uses updated.
4425 (i386_dr_length_and_rw_bits): Renamed to
4426 i386_length_and_rw_bits and made static.
4427 All uses updated.
4428 (i386_dr_insert_aligned_watchpoint): Renamed to
4429 i386_insert_aligned_watchpoint and made static.
4430 All uses updated.
4431 (i386_dr_remove_aligned_watchpoint): Renamed to
4432 i386_remove_aligned_watchpoint and made static.
4433 All uses updated.
4434 (i386_dr_update_inferior_debug_regs): Renamed to
4435 i386_update_inferior_debug_regs and made static.
4436 All uses updated.
4437 * nat/i386-dregs.h (i386_dr_show): Removed.
4438 (i386_dr_length_and_rw_bits): Likewise.
4439 (i386_dr_insert_aligned_watchpoint): Likewise.
4440 (i386_dr_remove_aligned_watchpoint): Likewise.
4441 (i386_dr_update_inferior_debug_regs): Likewise.
4442
992c7d70
GB
44432014-06-19 Gary Benson <gbenson@redhat.com>
4444
4445 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4446 * configure: Regenerate.
4447 * config.in: Likewise.
4448 * main.c (signal.h): New include.
4449 (setup_alternate_signal_stack): New function.
4450 (captured_main): Call the above.
4451 * cp-support.c (signal.h): New include.
4452 (catch_demangler_crashes): New flag.
4453 (SIGJMP_BUF): New define.
4454 (SIGSETJMP): Likewise.
4455 (SIGLONGJMP): Likewise.
4456 (gdb_demangle_jmp_buf): New static global.
4457 (gdb_demangle_attempt_core_dump): Likewise.
4458 (gdb_demangle_signal_handler): New function.
4459 (gdb_demangle): If catch_demangler_crashes is set, install the
4460 above signal handler before calling bfd_demangle, and restore
4461 the original signal handler afterwards. Display the offending
4462 symbol and call demangler_warning the first time a segmentation
4463 fault is caught.
4464 (_initialize_cp_support): New maint set/show command.
4465
eae7090b
GB
44662014-06-19 Gary Benson <gbenson@redhat.com>
4467
4468 * utils.h (resource_limit_kind): New enum.
4469 (can_dump_core): New declaration.
4470 (warn_cant_dump_core): Likewise.
4471 (dump_core): Likewise.
4472 * utils.c (dump_core): Made nonstatic. Added new
4473 parameter "limit_kind".
4474 (can_dump_core): Made nonstatic. Moved printing code to...
4475 (warn_cant_dump_core): New function.
4476 (can_dump_core_warn): Likewise.
4477 (internal_vproblem): Replace calls to can_dump_core with
4478 calls to can_dump_core_warn. Supply new argument to each.
4479
57fcfb1b
GB
44802014-06-19 Gary Benson <gbenson@redhat.com>
4481
4482 * utils.h (demangler_vwarning): New declaration.
4483 (demangler_warning): Likewise.
4484 * utils.c (struct internal_problem)
4485 <user_settable_should_quit>: New field.
4486 <user_settable_should_dump_core>: Likewise
4487 (internal_error_problem): Add values for above new fields.
4488 (internal_warning_problem): Likewise.
4489 (demangler_warning_problem): New static global.
4490 (demangler_vwarning): New function.
4491 (demangler_warning): Likewise.
4492 (add_internal_problem_command): Selectively add commands.
4493 (_initialize_utils): New internal problem command.
4494 * maint.c (maintenance_demangler_warning): New function.
4495 (_initialize_maint_cmds): New command.
4496
17a40b44
TT
44972014-06-18 Tom Tromey <tromey@redhat.com>
4498
4499 * f-valprint.c (info_common_command_for_block): Update.
4500 * symtab.h (struct general_symbol_info) <common_block>: Now
4501 const.
4502
346d1dfe
TT
45032014-06-18 Tom Tromey <tromey@redhat.com>
4504
4505 * symtab.h (struct symtab) <blockvector>: Now const.
4506 * ada-lang.c (ada_add_global_exceptions): Update.
4507 * buildsym.c (augment_type_symtab): Update.
4508 * dwarf2read.c (dw2_lookup_symbol): Update.
4509 * jit.c (finalize_symtab): Update.
4510 * jv-lang.c (add_class_symtab_symbol): Update.
4511 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4512 Update.
4513 * objfiles.c (objfile_relocate1): Update.
4514 * psymtab.c (lookup_symbol_aux_psymtabs)
4515 (maintenance_check_psymtabs): Update.
4516 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4517 Update.
4518 * spu-tdep.c (spu_catch_start): Update.
4519 * symmisc.c (dump_symtab_1): Update.
4520 * symtab.c (lookup_global_symbol_from_objfile)
4521 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4522 (basic_lookup_transparent_type_quick)
4523 (basic_lookup_transparent_type, find_pc_sect_symtab)
4524 (find_pc_sect_line, search_symbols): Update.
4525 * block.c (find_block_in_blockvector): Make "bl" const.
4526 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4527 const.
4528 (blockvector_contains_pc): Make "bv" const.
4529 (block_for_pc_sect): Update.
4530 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4531 (blockvector_contains_pc): Update.
4532 * breakpoint.c (resolve_sal_pc): Update.
4533 * inline-frame.c (block_starting_point_at): Update.
4534
1834676b
TT
45352014-06-18 Tom Tromey <tromey@redhat.com>
4536
4537 * completer.c (complete_line): Make "line_buffer" const.
4538 * completer.h (complete_line): Update.
4539
ac1a991b
TT
45402014-06-18 Tom Tromey <tromey@redhat.com>
4541
4542 * symtab.c (add_macro_name): Remove unneeded cast.
4543
5bc98e52
TT
45442014-06-18 Tom Tromey <tromey@redhat.com>
4545
4546 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4547 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4548
8236def8
TT
45492014-06-18 Tom Tromey <tromey@redhat.com>
4550
4551 * probe.c (info_probes_for_ops): Make "arg" const.
4552 * probe.h (info_probes_for_ops): Update.
4553
3977b71f
TT
45542014-06-18 Tom Tromey <tromey@redhat.com>
4555
4556 * varobj.c (varobj_create): Update.
4557 * valops.c (value_of_this): Update.
4558 * tracepoint.c (add_local_symbols, scope_info): Update.
4559 * symtab.h (struct general_symbol_info) <block>: Now const.
4560 * symtab.c (skip_prologue_sal)
4561 (default_make_symbol_completion_list_break_on)
4562 (skip_prologue_using_sal): Update.
4563 * stack.h (iterate_over_block_locals)
4564 (iterate_over_block_local_vars): Update.
4565 * stack.c (print_frame_args): Update.
4566 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4567 parameter const.
4568 (get_selected_block): Make return type const.
4569 * python/py-frame.c (frapy_block): Update.
4570 * python/py-block.c (gdbpy_block_for_pc): Update.
4571 * p-exp.y (%union) <bval>: Now const.
4572 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4573 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4574 * m2-exp.y (%union) <bval>: Now const.
4575 * linespec.c (get_current_search_block): Make return type const.
4576 (create_sals_line_offset, find_label_symbols): Update.
4577 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4578 Update.
4579 (block_starting_point_at): Make "block" const.
4580 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4581 (check_exception_resume): Update.
4582 * guile/scm-frame.c (gdbscm_frame_block): Update.
4583 * guile/scm-block.c (gdbscm_lookup_block): Update.
4584 * frame.h (get_frame_block): Update.
4585 (get_selected_block): Make return type const.
4586 * frame.c (frame_id_inner): Update.
4587 * f-valprint.c (info_common_command_for_block)
4588 (info_common_command): Update.
4589 * dwarf2loc.c (dwarf2_find_location_expression)
4590 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4591 (locexpr_describe_location_piece): Update.
4592 * c-exp.y (%union) <bval>: Now const.
4593 * breakpoint.c (resolve_sal_pc): Update.
4594 * blockframe.c (get_frame_block):Make return type const.
4595 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4596 (block_innermost_frame): Update.
4597 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4598 (block_for_pc, block_for_pc_sect): Update.
4599 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4600 'pblock' const.
4601 (block_for_pc_sect, block_for_pc): Make return type const.
4602 * ax-gdb.c (gen_expr): Update.
4603 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4604 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4605 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4606 (ada_read_var_value): Update.
4607 * ada-exp.y (struct name_info) <block>: Now const.
4608 (%union): Likewise.
4609 (block_lookup): Constify.
4610
b9228891
GB
46112014-06-18 Gary Benson <gbenson@redhat.com>
4612
4613 * nat/i386-dregs.h: New file.
4614 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4615 * i386-nat.h (i386-dregs.h): New include.
4616 (DR_FIRSTADDR): Now in i386-dregs.h.
4617 (DR_LASTADDR): Likewise.
4618 (DR_NADDR): Likewise.
4619 (DR_STATUS): Likewise.
4620 (DR_CONTROL): Likewise.
4621 (i386_debug_reg_state): Likewise.
4622 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4623
a1aa2221
LM
46242014-06-18 Don Breazeal <donb@codesourcery.com>
4625
4626 * breakpoint.c (set_longjmp_breakpoint): Call
4627 momentary_breakpoint_from_master with additional argument.
4628 (set_longjmp_breakpoint_for_call_dummy): Call
4629 momentary_breakpoint_from_master with additional argument.
4630 (set_std_terminate_breakpoint): Call
4631 momentary_breakpoint_from_master with additional argument.
4632 (momentary_breakpoint_from_master): Add argument to function
4633 definition and use it to initialize structure member flag.
74228e77 4634 (clone_momentary_breakpoint): Call
a1aa2221
LM
4635 momentary_breakpoint_from_master with additional argument.
4636 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4637 member flags set in momentary_breakpoint_from_master.
4638
4be83cc2
GB
46392014-06-18 Gary Benson <gbenson@redhat.com>
4640
4641 * i386-nat.c (i386_show_dr): Renamed to
4642 i386_dr_show and made nonstatic. All uses updated.
4643 (i386_length_and_rw_bits): Renamed to
4644 i386_dr_length_and_rw_bits and made nonstatic.
4645 All uses updated.
4646 (i386_insert_aligned_watchpoint): Renamed to
4647 i386_dr_insert_aligned_watchpoint and made nonstatic.
4648 All uses updated.
4649 (i386_remove_aligned_watchpoint): Renamed to
4650 i386_dr_remove_aligned_watchpoint and made nonstatic.
4651 All uses updated.
4652 (i386_update_inferior_debug_regs): Renamed to
4653 i386_dr_update_inferior_debug_regs and made nonstatic.
4654 All uses updated.
4655
131aa0d4
GB
46562014-06-18 Gary Benson <gbenson@redhat.com>
4657
4658 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4659 (i386_dr_low_can_set_control): Likewise.
4660 (i386_dr_low_set_addr): Likewise.
4661 (i386_dr_low_set_control): Likewise.
4662 (i386_dr_low_get_addr): Likewise.
4663 (i386_dr_low_get_status): Likewise.
4664 (i386_dr_low_get_control): Likewise.
4665 (i386_insert_aligned_watchpoint): Use new macros.
4666 (i386_update_inferior_debug_regs): Likewise.
4667 (i386_stopped_data_address): Likewise.
4668
d9305f7f
GB
46692014-06-18 Gary Benson <gbenson@redhat.com>
4670
4671 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4672 New parameter. All uses updated.
4673
ea008da4
GB
46742014-06-18 Gary Benson <gbenson@redhat.com>
4675
4676 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4677 All uses updated.
4678
1b6d4134
GB
46792014-06-18 Gary Benson <gbenson@redhat.com>
4680
4681 * i386-nat.c (debug_printf): New macro.
4682 (i386_get_debug_register_length): Likewise.
4683 (TARGET_HAS_DR_LEN_8): Use above macro.
4684 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4685 and printf_unfiltered. Use phex to format values.
4686
9b4550ef
GB
46872014-06-18 Gary Benson <gbenson@redhat.com>
4688
4689 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4690 Make const.
4691
6e62758f
GB
46922014-06-18 Gary Benson <gbenson@redhat.com>
4693
4694 * i386-nat.c: Comment changes.
4695
51c79e94
GB
46962014-06-18 Gary Benson <gbenson@redhat.com>
4697
4698 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4699
3e11889a
GB
47002014-06-18 Gary Benson <gbenson@redhat.com>
4701
4702 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4703 (i386_insert_aligned_watchpoint): Likewise.
4704 (i386_remove_aligned_watchpoint): Likewise.
4705 (i386_handle_nonaligned_watchpoint): Likewise.
4706
fc6e2f03
GB
47072014-06-18 Gary Benson <gbenson@redhat.com>
4708
4709 * i386-nat.c: Whitespace changes.
4710
2afe7d50
SB
47112014-06-17 Samuel Bronson <naesten@gmail.com>
4712
4713 * MAINTAINERS: Update Roland McGrath's email address.
4714 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4715 Red Hat a while ago, and giving me a current address.
2afe7d50 4716
3bca49ee
TT
47172014-06-17 Tom Tromey <tromey@redhat.com>
4718
4719 * utils.h (savestring): Remove declaration.
4720
6e366df1
TT
47212014-06-17 Tom Tromey <tromey@redhat.com>
4722
4723 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4724
6be47f0c
KS
47252014-06-16 Keith Seitz <keiths@redhat.com>
4726
4727 PR mi/15863
4728 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4729 to update the varobj if inferior_ptid is null_ptid.
4730
7bc112c1
TT
47312014-06-16 Tom Tromey <tromey@redhat.com>
4732
4733 * target.h (struct target_ops) <to_info_proc>: Make parameter
4734 const.
4735 (target_info_proc): Update.
4736 * target.c (target_info_proc): Make "args" const.
4737 * procfs.c (procfs_info_proc): Update.
4738 * linux-tdep.c (linux_info_proc): Update.
4739 (linux_core_info_proc_mappings): Make "args" const.
4740 (linux_core_info_proc): Update.
4741 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4742 * gdbarch.c: Rebuild.
4743 * gdbarch.h: Rebuild.
4744 * corelow.c (core_info_proc): Update.
4745
fee354ee
TT
47462014-06-16 Tom Tromey <tromey@redhat.com>
4747
4748 * target.h (struct target_ops) <to_disconnect>: Make parameter
4749 const.
4750 (target_disconnect): Update.
4751 * target.c (target_disconnect): Make "args" const.
4752 * target-delegates.c: Rebuild.
4753 * remote.c (remote_disconnect): Update.
4754 * record.h (record_disconnect): Update.
4755 * record.c (record_disconnect): Update.
4756 * inf-child.c (inf_child_disconnect): Update.
4757
a30bf1f1
TT
47582014-06-16 Tom Tromey <tromey@redhat.com>
4759
4760 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4761 * target.c (debug_to_rcmd, default_rcmd): Update.
4762 * target-delegates.c: Rebuild.
4763 * remote.c (remote_rcmd): Update.
4764 * monitor.c (monitor_rcmd): Update.
4765
d03de421
PA
47662014-06-16 Pedro Alves <palves@redhat.com>
4767
4768 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4769 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4770 have OBJF_SHARED set.
4771 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4772 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4773 instead of OBJF_USERLOADED.
4774 * objfiles.h (OBJF_SHARED): Update comment.
4775 (userloaded_objfile_contains_address_p): Rename to ...
4776 (shared_objfile_contains_address_p): ... this, and update
4777 comments.
4778 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4779 new objfile.
4780 (remove_symbol_file_command): Skip objfiles that don't have
4781 OBJF_SHARED set.
4782
99f4262f
TT
47832014-06-16 Tom Tromey <tromey@redhat.com>
4784
4785 * minsyms.h (prim_record_minimal_symbol)
4786 (prim_record_minimal_symbol_and_info): Update comments.
4787
97d66cc6
EZ
47882014-06-14 Eli Zaretskii <eliz@gnu.org>
4789
4790 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4791 or --without-guile, according to how GDB was built.
4792
635c7e8a
TT
47932014-06-13 Tom Tromey <tromey@redhat.com>
4794
4795 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4796 to help_list.
4797 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4798 to help_list.
4799 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4800 help_list.
4801 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4802 help_list.Pass all_commands, not -1, to help_list.
4803 * cli/cli-dump.c (dump_command, append_command)
4804 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4805 (binary_dump_command, binary_append_command): Pass all_commands,
4806 not -1, to help_list.
4807 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4808 -1, to help_list.
4809 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4810 -1, to help_list.
4811 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4812 help_list.
4813 * top.c (set_history): Pass all_commands, not -1, to help_list.
4814 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4815 all_commands, not -1, to help_list.
4816 * symfile.c (overlay_command): Pass all_commands, not -1, to
4817 help_list.
4818 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4819 help_list.
4820 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4821 help_list.
4822 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4823 -1, to help_list.
4824 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4825 not -1, to help_list.
4826 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4827 not -1, to help_list.
4828 * maint.c (maintenance_command, maintenance_info_command)
4829 (maintenance_print_command, maintenance_set_cmd): Pass
4830 all_commands, not -1, to help_list.
4831 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4832 help_list.
4833 * language.c (set_check): Pass all_commands, not -1, to help_list.
4834 * infcmd.c (unset_command): Pass all_commands, not -1, to
4835 help_list.
4836 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4837 help_list.
4838 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4839 help_list.
4840 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4841 help_list.
4842 * breakpoint.c (save_command): Pass all_commands, not -1, to
4843 help_list.
4844 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4845 all_commands, not -1, to help_list.
4846
b94ade42
PL
48472014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4848
4849 * regcache.c (struct register_to_invalidate): New structure.
4850 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4851 functions.
4852 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4853
31f628ae
YQ
48542014-06-12 Yao Qi <yao@codesourcery.com>
4855
4856 * varobj.c (varobj_get_num_children): Call
4857 varobj_is_dynamic_p.
4858 (varobj_list_children): Likewise.
4859 (varobj_update): Likewise. Update comments.
4860
cde5ef40
YQ
48612014-06-12 Yao Qi <yao@codesourcery.com>
4862
4863 * varobj.c (varobj_pretty_printed_p): Rename to ...
4864 (varobj_is_dynamic_p): ... this. New function.
4865 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4866 (varobj_is_dynamic_p): Declare.
4867 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4868 (mi_print_value_p, varobj_update_one): Likewise.
4869
576ea091
YQ
48702014-06-12 Pedro Alves <pedro@codesourcery.com>
4871 Yao Qi <yao@codesourcery.com>
4872
4873 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4874 (varobj_get_iterator): Wrap up code for pretty-printer by
4875 "#if HAVE_PYTHON" and "#endif".
4876 (update_dynamic_varobj_children): Likewise.
4877
827f100c
YQ
48782014-06-12 Pedro Alves <pedro@codesourcery.com>
4879 Yao Qi <yao@codesourcery.com>
4880
4881 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4882 gdb_python_initialized is false. Move some code from varobj.c.
4883 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4884 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4885 (struct varobj_item): Moved to varobj-iter.h".
4886 (varobj_clear_saved_item): New function.
4887 (update_dynamic_varobj_children): Move python-related code to
4888 py-varobj.c.
4889 (free_variable): Call varobj_clear_saved_item and
4890 varobj_iter_delete.
4891
e5250216
YQ
48922014-06-12 Pedro Alves <pedro@codesourcery.com>
4893 Yao Qi <yao@codesourcery.com>
4894
4895 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4896 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4897 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4898 (py-varobj.o): New rule.
4899 * python/py-varobj.c: New file.
4900 * python/python-internal.h (py_varobj_get_iterator): Declare.
4901 * varobj-iter.h: New file.
4902 * varobj.c: Include "varobj-iter.h"
4903 (struct varobj) <child_iter>: Change its type from "PyObject *"
4904 to "struct varobj_iter *".
4905 <saved_item>: Likewise.
4906 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4907 [HAVE_PYTHON] (varobj_get_iterator): New function.
4908 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4909 python-specific code to python/py-varobj.c.
4910 (install_visualizer): Call varobj_iter_delete instead of
4911 Py_XDECREF.
4912 * varobj.h (varobj_ensure_python_env): Declare.
4913
5a2e0d6e
YQ
49142014-06-12 Yao Qi <yao@codesourcery.com>
4915
4916 * varobj.c (struct varobj_item): New structure.
4917 (create_child_with_value): Update declaration.
4918 (varobj_add_child): Replace arguments 'name' and 'value' with
4919 'item'. All callers updated.
4920 (install_dynamic_child): Likewise.
4921 (update_dynamic_varobj_children): Likewise.
4922 (varobj_add_child): Likewise.
4923 (create_child_with_value): Likewise.
4924
919b9a93
JB
49252014-06-11 Joel Brobecker <brobecker@adacore.com>
4926
4927 * NEWS: Create a new section for the next release branch.
4928 Rename the section of the current branch, now that it has
4929 been cut.
4930
71a55bdf
JB
49312014-06-11 Joel Brobecker <brobecker@adacore.com>
4932
4933 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4934 * version.in: Bump version to 7.8.50.DATE-cvs.
4935
364fe1f7
PA
49362014-06-11 Pedro Alves <palves@redhat.com>
4937
4938 PR remote/17028
4939 * ser-mingw.c (net_windows_socket_check_pending): New function.
4940 (net_windows_select_thread): Ignore spurious wakeups. Use
4941 net_windows_socket_check_pending.
4942 (net_windows_wait_handle): Check for pending events with
4943 ioctlsocket, through net_windows_socket_check_pending, instead of
4944 checking the socket's event.
4945
5a6c7709
SC
49462014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4947
4948 * python/python-internal.h (gdb_PyObject_GetAttrString)
4949 (gdb_PyObject_HasAttrString): New inline function definitions.
4950 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4951 char * of the second argument to PyObject_GetAttrString.
74228e77 4952
0e58ee40
JB
49532014-06-10 Joel Brobecker <brobecker@adacore.com>
4954
4955 * serial.c (serial_write): Fix index of character to be printed
4956 in call to serial_logchar when serial debug traces are enabled.
4957
d190df30
JB
49582014-06-10 Joel Brobecker <brobecker@adacore.com>
4959
4960 * gdbtypes (resolve_dynamic_range): Add function description.
4961
b4b01d36
PA
49622014-06-09 Pedro Alves <palves@redhat.com>
4963
4964 * linux-nat.c (linux_child_follow_fork): Initialize status with
4965 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4966 inner block. Only pass the signal to PTRACE_DETACH if in pass
4967 state.
4968
3657956b
GB
49692014-06-09 Gary Benson <gbenson@redhat.com>
4970
4971 * common/signals.c (gdb_signal_from_host): Reorder to separate
4972 the always-available ANSI-standard signals from the signals that
4973 require checking.
4974 (do_gdb_signal_to_host): Likewise.
4975 * proc-events.c (signal_table): Likewise.
4976
c077881a
HZ
49772014-06-08 Hui Zhu <hui@codesourcery.com>
4978
4979 * common/linux-ptrace.c (linux_disable_event_reporting): New
4980 function.
4981 * common/linux-ptrace.h (linux_disable_event_reporting): New
4982 declaration.
4983 * linux-nat.c (linux_child_follow_fork): Do a single step before
4984 detach.
4985
4186eb54
KS
49862014-06-07 Keith Seitz <keiths@redhat.com>
4987
4988 Revert:
4989 PR c++/16253
4990 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4991 from symbol_matches_domain in symtab.c. All local callers
4992 of symbol_matches_domain updated.
4993 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4994 search STRUCT_DOMAIN.
4995 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4996 independently. standard_lookup will do that automatically.
4997 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4998 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4999 (cp_lookup_symbol_in_namespace): Likewise.
5000 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5001 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5002 may return a STRUCT_DOMAIN match.
5003 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5004 * cp-support.c: Include language.h.
5005 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5006 VAR_DOMAIN.
5007 * psymtab.c (match_partial_symbol): Compare the requested
5008 domain with the symbol's domain directly.
5009 (lookup_partial_symbol): Likewise.
5010 * symtab.c (lookup_symbol_in_language): Explain when/why
5011 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5012 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5013 appropriate languages.
5014 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5015 and moved to ada-lang.c
5016 (lookup_block_symbol): Explain that this function only returns
5017 symbol matching the requested DOMAIN.
5018 Compare the requested domain with the symbol's domain directly.
5019 (iterate_over_symbols): Compare the requested domain with the
5020 symbol's domain directly.
5021 * symtab.h (symbol_matches_domain): Remove.
5022
25326a28 50232014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5024
5025 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5026 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5027 (gdbscm_guile_version_is_at_least): Declare.
5028 (gdbscm_scm_string_to_int): Declare.
5029 * guile/guile.c (gdbscm_guile_major_version): New global.
5030 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5031 (guile_datadir): New static global.
5032 (gdbscm_guile_data_directory): New function.
5033 (initialize_scheme_side): Update.
5034 (misc_guile_functions): Add guile-data-directory.
5035 (initialize_gdb_module): Fetch guile version number.
5036 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5037 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5038 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5039 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5040 comments.
5041 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5042 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5043 * guile/scm-value.c (gdbscm_value_to_string): Only call
5044 scm_port_conversion_strategy if Guile version >= 2.0.6.
5045
0a770bb2 50462014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5047
5048 * main.c (print_gdb_help): Add -q and --silent.
5049
73ba372c
GB
50502014-06-06 Gary Benson <gbenson@redhat.com>
5051
5052 * common/signals.c: Remove preprocessor conditionals for
5053 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5054 SIGSEGV and SIGTERM.
5055 * proc-events.c: Likewise.
5056
c33b2f12
MM
50572014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5058
5059 * symfile.c (symfile_free_objfile): Remove restriction to
5060 OBJF_USERLOADED.
5061 * symfile-mem.c (symbol_file_add_from_memory): Call
5062 add_target_sections_of_objfile.
5063
fb934770
LC
50642014-06-05 Ludovic Courtès <ludo@gnu.org>
5065
5066 * guile/scm-value.c (gdbscm_history_append_x): Use
5067 'vlscm_get_value_smob_arg_unsafe' instead of
5068 'vlscm_scm_to_value'.
5069
6ef284bd
SM
50702014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5071
5072 PR mi/15806
5073 * utils.c (printchar): Don't escape at all if quoter is NUL.
5074 Update function documentation to clarify effect of parameter
5075 QUOTER.
5076 * remote.c (escape_buffer): Pass '\\' as the quoter to
5077 fputstrn_unfiltered.
5078 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5079 generate the output.
5080 (mi_solib_unloaded): Same.
5081
270c9937
JB
50822014-06-05 Joel Brobecker <brobecker@adacore.com>
5083
5084 * development.sh: Delete.
5085 * Makefile.in (config.status): Adjust dependency on development.sh.
5086 * configure.ac: Adjust development.sh source call.
5087 * configure: Regenerate.
5088
16f691fb
DE
50892014-06-04 Doug Evans <xdje42@gmail.com>
5090
5091 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5092 is_scheme_bkpt, spec.
5093 (bpscm_make_breakpoint_smob): Initialize new members.
5094 (gdbscm_create_breakpoint_x): Split into two ...
5095 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5096 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5097 (scheme_function breakpoint_functions): Update.
5098 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5099 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5100 register-breakpoint!.
5101
ef7cab6b
JB
51022014-06-04 Joel Brobecker <brobecker@adacorer.com>
5103
5104 PR server/17023
5105 * mem-break.c (z_type_supported): Return zero if
5106 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5107
012370f6
TT
51082014-06-04 Tom Tromey <tromey@redhat.com>
5109
5110 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5111 value_from_contents_and_address_unresolved.
5112 (ada_template_to_fixed_record_type_1): Likewise.
5113 (ada_which_variant_applies): Likewise.
5114 * value.h (value_from_contents_and_address_unresolved): Declare.
5115 * value.c (value_from_contents_and_address_unresolved): New
5116 function.
5117 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5118 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5119 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5120
92e2a17f
TT
51212014-06-04 Tom Tromey <tromey@redhat.com>
5122
5123 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5124
c0939df1
TT
51252014-06-04 Tom Tromey <tromey@redhat.com>
5126
5127 * procfs.c (procfs_attach): Make "args" const.
5128 * windows-nat.c (windows_attach): Make "args" const.
5129 * nto-procfs.c (procfs_attach): Make "args" const.
5130 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5131 * go32-nat.c (go32_attach): Make "args" const.
5132 * gnu-nat.c (gnu_attach): Make "args" const.
5133 * darwin-nat.c (darwin_attach): Make "args" const.
5134 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5135 * linux-nat.c (linux_nat_attach): Make "args" const.
5136 * remote.c (extended_remote_attach_1, extended_remote_attach):
5137 Make "args" const.
5138 * target.h (struct target_ops) <to_attach>: Make "args" const.
5139 (find_default_attach): Likewise.
5140 * utils.c (parse_pid_to_attach): Make "args" const.
5141 * utils.h (parse_pid_to_attach): Update.
5142
8eaff7cd
TT
51432014-06-04 Tom Tromey <tromey@redhat.com>
5144
5145 * target-delegates.c: Rebuild.
5146 * target.c (default_thread_address_space): New function.
5147 (target_thread_address_space): Simplify.
5148 * target.h (struct target_ops) <to_thread_address_space>: Add
5149 TARGET_DEFAULT_FUNC.
5150
1913f160
DE
51512014-06-04 Doug Evans <xdje42@gmail.com>
5152
5153 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5154
70ad5bff
MM
51552014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5156
5157 * record-btrace.c: Include event-loop.h and inf-loop.h.
5158 (record_btrace_resume_exec_dir)
5159 (record_btrace_async_inferior_event_handler)
5160 (record_btrace_handle_async_inferior_event): New.
5161 (record_btrace_open): Create async event handler.
5162 (record_btrace_close): Delete async event handler.
5163 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5164 Mark async event handler.
5165 (record_btrace_execution_direction): New.
5166 (init_record_btrace_ops): Initialize to_execution_direction.
5167
b6210538
DE
51682014-06-03 Doug Evans <xdje42@gmail.com>
5169
5170 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5171 (gdbscm_make_parameter): Ditto.
5172
a5b1fd27
DE
51732014-06-03 Doug Evans <dje@google.com>
5174
5175 * exec.c (exec_close_1): Call clear_section_table instead of
5176 resize_section_table.
5177 (clear_section_table): New function.
5178 (resize_section_table): Make static. Rename arg num_added to
5179 adjustment.
5180 * exec.h (clear_section_table): Declare.
5181 (resize_section_table): Delete.
5182 * progspace.c (release_program_space): Call clear_section_table
5183 instead of resize_section_table.
5184
0c6e92a5
SC
51852014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5186
5187 * NEWS (Python Scripting): Add entry about the new xmethods
5188 feature.
5189
883964a7
SC
51902014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5191
5192 * python/py-xmethods.c: New file.
5193 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5194 (objfpy_dealloc): XDECREF on the new xmethods field.
5195 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5196 field.
5197 (objfpy_get_xmethods): New function.
5198 (objfile_getset): New entry 'xmethods'.
5199 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5200 (pspy_dealloc): XDECREF on the new xmethods field.
5201 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5202 field.
5203 (pspy_get_xmethods): New function.
5204 (pspace_getset): New entry 'xmethods'.
5205 * python/python-internal.h: Add declarations for new functions.
5206 * python/python.c (_initialize_python): Invoke
5207 gdbpy_initialize_xmethods.
5208 * python/lib/gdb/__init__.py (xmethods): New
5209 attribute.
5210 * python/lib/gdb/xmethod.py: New file.
5211 * python/lib/gdb/command/xmethods.py: New file.
5212
58992dc5
SC
52132014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5214
5215 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5216 best match method returned by find_overload_match is an xmethod.
5217 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5218 the best matching operator returned by find_overload_match is an
5219 xmethod.
5220 * valops.c: #include "extension.h".
5221 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5222 Return void. The list of matching source methods is returned in
5223 "fn_list" and a vector of matching debug method workers is
5224 returned in "xm_worker_vec". Update all callers.
5225 (value_find_oload_method_list): Likewise.
5226 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5227 non-NULL, then the index of the best matching method in this
5228 vector is returned. Update all callers.
5229 (find_overload_match): Include xmethods while performing overload
5230 resolution.
5231
e81e7f5e
SC
52322014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5233
5234 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5235 * extension-priv.h (struct extension_language_ops): Add the
5236 xmethod interface.
5237 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5238 get_matching_xmethod_workers, get_xmethod_argtypes,
5239 invoke_xmethod, free_xmethod_worker,
5240 free_xmethod_worker_vec): New functions.
5241 * extension.h: #include "common/vec.h".
5242 New function declarations.
5243 (struct xmethod_worker): New struct.
5244 (VEC (xmethod_worker_ptr)): New vector type.
5245 (xmethod_worker_ptr): New typedef.
5246 (xmethod_worker_vec): Likewise.
5247 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5248 builtin_type.
5249 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5250 (struct builtin_type): New field "xmethod".
5251 * valarith.c (value_ptradd): Assert that the value argument is not
5252 lval_xcallable.
5253 * valops.c (value_must_coerce_to_target): Return 0 for
5254 lval_xcallable values.
5255 * value.c (struct value): New field XM_WORKER in the field
5256 LOCATION.
5257 (value_address, value_raw_address): Return 0 for lval_xcallable
5258 values.
5259 (set_value_address): Assert that the value is not an
5260 lval_xcallable.
5261 (value_free): Free the associated xmethod worker when freeing
5262 lval_xcallable values.
5263 (set_value_component_location): Assert that the WHOLE value is not
5264 lval_xcallable.
5265 (value_of_xmethod, call_xmethod): New functions.
5266 * value.h: Declare "struct xmethod_worker".
5267 Declare new functions value_of_xmethod, call_xmethod.
5268
ef370185
JB
52692014-06-03 Joel Brobecker <brobecker@adacore.com>
5270 Pedro Alves <palves@redhat.com>
5271
5272 PR breakpoints/17000
5273 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5274 New function, extracted from software_breakpoint_inserted_here_p.
5275 (software_breakpoint_inserted_here_p): Replace factored out code
5276 by call to find_non_raw_software_breakpoint_inserted_here.
5277 (bp_target_info_copy_insertion_state): New function.
5278 (bkpt_insert_location): Handle the case of a single-step
5279 breakpoint already inserted at the same address.
5280 (bkpt_remove_location): Handle the case of a single-step
5281 breakpoint still inserted at the same address.
5282 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5283 breakpoint already inserted at the same address.
5284 (deprecated_remove_raw_breakpoint): Handle the case of a
5285 non-raw breakpoint still inserted at the same address.
5286 (find_single_step_breakpoint): New function, extracted from
5287 single_step_breakpoint_inserted_here_p.
5288 (find_single_step_breakpoint): New function,
5289 factored out from single_step_breakpoint_inserted_here_p.
5290 (single_step_breakpoint_inserted_here_p): Reimplement.
5291
1e2ccb61
BM
52922014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5293
5294 Pushed by Joel Brobecker <brobecker@adacore.com>
5295 * source.c (show_substitute_path_command): Fix display of matching
5296 substitution rules.
5297
d3448d85
GB
52982014-06-03 Gary Benson <gbenson@redhat.com>
5299
5300 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5301
06eb1586
DE
53022014-06-02 Doug Evans <xdje42@gmail.com>
5303
5304 Add parameter support for Guile.
5305 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5306 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5307 (scm-param.o): New rule.
5308 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5309 (gdbscm_misc_error): Declare.
5310 (gdbscm_canonicalize_command_name): Declare.
5311 (gdbscm_scm_to_host_string): Declare.
5312 (gdbscm_scm_from_host_string): Declare.
5313 (gdbscm_initialize_parameters): Declare.
5314 * guile/guile.c (initialize_gdb_module): Call
5315 gdbscm_initialize_parameters.
5316 * guile/lib/gdb.scm: Export parameter symbols.
5317 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5318 cmdscm_canonicalize_name and made public. All callers updated.
5319 * guile/scm-exception.c (gdbscm_misc_error): New function.
5320 * guile/scm-param.c: New file.
5321 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5322 (gdbscm_scm_to_host_string): New function.
5323 (gdbscm_scm_from_host_string): New function.
5324 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5325
e698b8c4
DE
53262014-06-02 Doug Evans <xdje42@gmail.com>
5327
5328 Add command support for Guile.
5329 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5330 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5331 (scm-cmd.o): New rule.
5332 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5333 (gdbscm_user_error_p): Declare.
5334 (gdbscm_parse_command_name): Declare.
5335 (gdbscm_valid_command_class_p): Declare.
5336 (gdbscm_initialize_commands): Declare.
5337 * guile/guile.c (initialize_gdb_module): Call
5338 gdbscm_initialize_commands.
5339 * guile/lib/gdb.scm: Export command symbols.
5340 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5341 (throw-user-error): New function.
5342 * guile/scm-cmd.c: New file.
5343 * guile/scm-exception.c (user_error_symbol): New static global.
5344 (gdbscm_user_error_p): New function.
5345 (gdbscm_initialize_exceptions): Set user_error_symbol.
5346 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5347
fb1f94b0
PM
53482014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5349
5350 * top.c (command_loop): Handle comments here...
5351 (command_line_input): ... not here.
5352
ded03782
DE
53532014-06-02 Doug Evans <xdje42@gmail.com>
5354
5355 Add progspace support for Guile.
5356 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5357 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5358 (scm-progspace.o): New rule.
5359 * guile/guile-internal.h (pspace_smob): New typedef.
5360 (psscm_pspace_smob_pretty_printers): Declare.
5361 (psscm_pspace_smob_from_pspace): Declare.
5362 (psscm_scm_from_pspace): Declare.
5363 * guile/guile.c (initialize_gdb_module): Call
5364 gdbscm_initialize_pspaces.
5365 * guile/lib/gdb.scm: Export progspace symbols.
5366 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5367 support.
5368 (append-pretty-printer!): Ditto.
5369 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5370 Implement.
5371 * guile/scm-progspace.c: New file.
5372
397998fc
AM
53732014-06-03 Alan Modra <amodra@gmail.com>
5374
5375 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5376 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5377
6aa5f3a6
DE
53782014-06-02 Doug Evans <dje@google.com>
5379
5380 Add support for skeletonless type units.
5381 * dwarf2read.c (struct dwarf2_per_objfile): New member
5382 n_allocated_type_units.
5383 (struct dwarf2_per_objfile) <tu_stats>: New member
5384 nr_all_type_units_reallocs.
5385 (create_signatured_type_table_from_index): Initialize
5386 n_allocated_type_units
5387 (create_all_type_units): Ditto.
5388 (add_type_unit): Move up in file. New arg slot.
5389 All callers updated. Increase space for all_type_units more
5390 efficiently.
5391 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5392 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5393 (lookup_dwp_signatured_type): Ditto.
5394 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5395 All callers updated.
5396 (build_type_psymtabs_1): Leave type_unit_groups as
5397 NULL if no TUs present.
5398 (print_tu_stats): New function.
5399 (process_skeletonless_type_unit): New function.
5400 (process_dwo_file_for_skeletonless_type_units): New
5401 function.
5402 (process_skeletonless_type_units): New function.
5403 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5404 Call print tu_stats if debugging enabled.
5405
41fac0cf
PA
54062014-06-02 Pedro Alves <palves@redhat.com>
5407
5408 * breakpoint.c (build_target_command_list): Don't build a command
5409 list if we have any duplicate location that isn't a dprintf.
5410
cd1608cc
PA
54112014-06-02 Pedro Alves <palves@redhat.com>
5412
5413 * breakpoint.c (dprintf_breakpoint_hit): New function.
5414 (initialize_breakpoint_ops): Install it as dprintf's
5415 breakpoint_hit method.
5416
486ef3b9
JB
54172014-06-02 Joel Brobecker <brobecker@adacore.com>
5418
5419 * source.c (substitute_path_rule_matches): Simplify using
5420 filename_ncmp instead of FILENAME_CMP.
5421
230cd560
JB
54222014-06-02 Joel Brobecker <brobecker@adacore.com>
5423
5424 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5425
16954d5d
LC
54262014-06-01 Ludovic Courtès <ludo@gnu.org>
5427
5428 * configure.ac: When Guile is available, check for the
5429 availability of 'scm_new_smob'.
5430 * configure, config.h.in: Regenerate.
5431 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5432 function.
5433
53e8a631
AB
54342014-05-30 Andrew Burgess <aburgess@broadcom.com>
5435
5436 * frame.c (struct frame_info): Add stop_string field.
5437 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5438 (get_prev_frame_always): Old content moved into
5439 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5440 TRY_CATCH, handle MEMORY_ERROR exceptions.
5441 (frame_stop_reason_string): New function definition.
5442 * frame.h (unwind_stop_reason_to_string): Extend comment to
5443 mention frame_stop_reason_string.
5444 (frame_stop_reason_string): New function declaration.
5445 * stack.c (frame_info): Switch to frame_stop_reason_string.
5446 (backtrace_command_1): Switch to frame_stop_reason_string.
5447 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5448 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5449 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5450
70e38b8e
AB
54512014-05-30 Andrew Burgess <aburgess@broadcom.com>
5452
5453 * frame.c (frame_stop_reason_string): Rename to ...
5454 (unwind_stop_reason_to_string): this.
5455 * frame.h (frame_stop_reason_string): Rename to ...
5456 (unwind_stop_reason_to_string): this.
5457 * stack.c (frame_info): Update call to frame_stop_reason_string.
5458 (backtrace_command_1): Likewise.
5459 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5460 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5461
938f0e2f
AB
54622014-05-30 Andrew Burgess <aburgess@broadcom.com>
5463
5464 * frame.c (remove_prev_frame): New function.
5465 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5466 remove_prev_frame.
5467
a09dd441
PA
54682014-05-29 Pedro Alves <palves@redhat.com>
5469
5470 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5471 and make it const. When a single-step decays to a continue,
5472 clear 'step', not 'hw_step'. Pass whether the caller wanted
5473 to step to user_visible_resume_ptid, not what we ask the
5474 target to do.
5475
bdc36728
PA
54762014-05-29 Pedro Alves <palves@redhat.com>
5477
5478 * infrun.c (process_event_stop_test, handle_step_into_function)
5479 (handle_step_into_function_backward): Adjust.
5480 Don't set the even thread's stop_step and call stop_waiting before
5481 calling end_stepping_range. Instead do that ...
5482 (end_stepping_range): ... here. Take an ecs pointer parameter.
5483
22bcd14b
PA
54842014-05-29 Pedro Alves <palves@redhat.com>
5485
5486 * infrun.c (stop_stepping): Rename to ...
5487 (stop_waiting): ... this.
5488 (proceed): Update comment.
5489 (process_event_stop_test, handle_inferior_event)
5490 (handle_signal_stop, handle_step_into_function)
5491 (handle_step_into_function_backward): Update.
5492
4ae57c05
PA
54932014-05-29 Pedro Alves <palves@redhat.com>
5494
5495 * infcall.c (run_inferior_call): Don't check whether the current
5496 thread is running after the proceed call.
5497
329ea579
PA
54982014-05-29 Pedro Alves <palves@redhat.com>
5499 Tom Tromey <tromey@redhat.com>
5500
5501 * NEWS: Mention "maint set target-async", "set mi-async", and that
5502 background execution commands are now always available.
5503 * target.h (target_async_permitted): Update comment.
5504 * target.c (target_async_permitted, target_async_permitted_1):
5505 Default to 1.
5506 (set_target_async_command): Rename to ...
5507 (maint_set_target_async_command): ... this.
5508 (show_target_async_command): Rename to ...
5509 (maint_show_target_async_command): ... this.
5510 (_initialize_target): Adjust.
5511 * infcmd.c (prepare_execution_command): Make extern.
5512 * inferior.h (prepare_execution_command): Declare.
5513 * infrun.c (set_observer_mode): Leave target async alone.
5514 * mi/mi-interp.c (mi_interpreter_init): Install
5515 mi_on_sync_execution_done as sync_execution_done observer.
5516 (mi_on_sync_execution_done): New function.
5517 (mi_execute_command_input_handler): Don't print the prompt if we
5518 just started a synchronous command with an async target.
5519 (mi_on_resume): Check sync_execution before printing prompt.
5520 * mi/mi-main.h (mi_async_p): Declare.
5521 * mi/mi-main.c: Include gdbcmd.h.
5522 (mi_async_p): New function.
5523 (mi_async, mi_async_1): New globals.
5524 (set_mi_async_command, show_mi_async_command, mi_async): New
5525 functions.
5526 (exec_continue): Call prepare_execution_command.
5527 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5528 (mi_execute_async_cli_command): Use mi_async_p.
5529 (_initialize_mi_main): Install "set mi-async". Make
5530 "target-async" a deprecated alias.
5531
92bcb5f9
PA
55322014-05-29 Pedro Alves <palves@redhat.com>
5533
5534 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5535 (_initialize_cli_interp): Adjust.
5536 * event-loop.c: Include "observer.h".
5537 (start_event_loop): Notify 'command_error' observers instead of
5538 calling display_gdb_prompt. Remove FIXME comment.
5539 * event-top.c (display_gdb_prompt): Remove call into the
5540 interpreters.
5541 * inf-loop.c: Include "observer.h".
5542 (inferior_event_handler): Notify 'command_error' observers instead
5543 of calling display_gdb_prompt.
5544 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5545 observers instead of calling display_gdb_prompt.
5546 * interps.c (interp_set): Don't call display_gdb_prompt.
5547 (current_interp_display_prompt_p): Delete.
5548 * interps.h (interp_prompt_p): Delete declaration.
5549 (interp_prompt_p_ftype): Delete.
5550 (struct interp_procs) <prompt_proc_p>: Delete field.
5551 (current_interp_display_prompt_p): Delete declaration.
5552 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5553 (_initialize_mi_interp): Adjust.
5554 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5555 'command_error' observers.
5556 (tui_on_sync_execution_done, tui_on_command_error): New
5557 functions.
5558 (tui_display_prompt_p): Delete.
5559 (_initialize_tui_interp): Adjust.
5560
fd664c91
PA
55612014-05-29 Pedro Alves <palves@redhat.com>
5562
5563 PR gdb/13860
5564 * cli/cli-interp.c: Include infrun.h and observer.h.
5565 (cli_uiout, cli_interp): New globals.
5566 (cli_on_signal_received, cli_on_end_stepping_range)
5567 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5568 functions.
5569 (cli_interpreter_init): Install them as 'end_stepping_range',
5570 'signal_received' 'signal_exited', 'exited' and 'no_history'
5571 observers.
5572 (_initialize_cli_interp): Remove cli_interp local.
5573 * infrun.c (handle_inferior_event): Call the several stop reason
5574 observers instead of printing the stop reason directly.
5575 (end_stepping_range): New function.
5576 (print_end_stepping_range_reason, print_signal_exited_reason)
5577 (print_exited_reason, print_signal_received_reason)
5578 (print_no_history_reason): Make static, and add an uiout
5579 parameter. Print to that instead of to CURRENT_UIOUT.
5580 * infrun.h (print_end_stepping_range_reason)
5581 (print_signal_exited_reason, print_exited_reason)
5582 (print_signal_received_reason print_no_history_reason): New
5583 declarations.
5584 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5585 'mi_uiout'.
5586 <cli_uiout>: New field.
5587 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5588 uiout for CLI output. Install 'signal_received',
5589 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5590 observers.
5591 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5592 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5593 (mi_on_no_history): New functions.
5594 (ui_out_free_cleanup): Delete function.
5595 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5596 instead use the one already stored in the MI interpreter data.
5597 (mi_ui_out): Adjust.
5598 * tui/tui-interp.c: Include infrun.h and observer.h.
5599 (tui_interp): New global.
5600 (tui_on_signal_received, tui_on_end_stepping_range)
5601 (tui_on_signal_exited, tui_on_exited)
5602 (tui_on_no_history): New functions.
5603 (tui_init): Install them as 'end_stepping_range',
5604 'signal_received' 'signal_exited', 'exited' and 'no_history'
5605 observers.
5606 (_initialize_tui_interp): Delete tui_interp local.
5607
8817a6f2
PA
56082014-05-29 Pedro Alves <palves@redhat.com>
5609
5610 PR gdb/15713
5611 * linux-nat.c (linux_nat_resume_callback): Rename the second
5612 parameter to 'except'. Skip LP if it points to EXCEPT.
5613 (linux_nat_resume): Don't mark the event lwp as not stopped
5614 before resuming sibling lwps. Instead ask
5615 linux_nat_resume_callback to skip the event lwp. Mark it as not
5616 stopped after actually resuming it.
5617 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5618 resuming it.
5619 (wait_lwp): Mark the lwp as stopped here.
5620 (stop_wait_callback): Mark the lwp as not stopped right after
5621 resuming it. Don't mark lwps as stopped here.
5622 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5623 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5624
251bde03
PA
56252014-05-29 Pedro Alves <palves@redhat.com>
5626
5627 PR PR15693
5628 * infrun.c (resume): Determine how much to resume depending on
5629 whether the caller wanted a step, not whether we can hardware step
5630 the target. Mark all threads that we intend to run as running,
5631 unless we're calling an inferior function.
5632 (normal_stop): If the thread is running an infcall, don't finish
5633 thread state.
5634 * target.c (target_resume): Don't mark threads as running here.
5635
7f3c0343
JB
56362014-05-28 Joel Brobecker <brobecker@adacore.com>
5637
5638 * serial.c (_initialize_serial): Remove support for
5639 the "set remotebaud" and "show remotebaud" commands.
5640 * NEWS: Add entry documenting the removal of that command.
5641
ee34b3f9
YQ
56422014-05-28 Yao Qi <yao@codesourcery.com>
5643
5644 * charset.c: Fix typo in comments.
5645
add6c04d
GB
56462014-05-27 Gary Benson <gbenson@redhat.com>
5647
5648 * utils.c (internal_vproblem): Prompt for a bug report.
5649
92c48fc5
AW
56502014-05-26 Andy Wingo <wingo@igalia.com>
5651
5652 * guile/scm-arch.c (arscm_mark_arch_smob):
5653 * guile/scm-block.c (bkscm_mark_block_smob)
5654 (bkscm_mark_block_syms_progress_smob):
5655 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5656 * guile/scm-exception.c (exscm_mark_exception_smob):
5657 * guile/scm-frame.c (frscm_mark_frame_smob):
5658 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5659 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5660 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5661 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5662 (ppscm_mark_pretty_printer_worker_smob):
5663 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5664 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5665 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5666 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5667 mark functions.
5668 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5669 function.
5670
b2715b27
AW
56712014-05-26 Andy Wingo <wingo@igalia.com>
5672 Doug Evans <xdje42@gmail.com>
5673
5674 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5675 empty_base_class. All uses updated.
5676 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5677 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5678 Adapt all callers.
5679 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5680 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5681 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5682 (gdbscm_gsmob_has_property_p, add_property_name)
5683 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5684 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5685 (gdb-object-has-property?, gdb-object-properties): Remove.
5686 (gdb-object-kind): Renamed from gsmob-kind.
5687
214ab2da
AW
56882014-05-26 Andy Wingo <wingo@igalia.com>
5689
5690 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5691 * configure: Regenerate.
5692
589fdceb
MM
56932014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5694
5695 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5696
67b5c0c1
MM
56972014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5698
5699 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5700 (replay_memory_access_read_only, replay_memory_access_read_write)
5701 (replay_memory_access_types, replay_memory_access)
5702 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5703 (cmd_set_record_btrace, cmd_show_record_btrace)
5704 (cmd_show_replay_memory_access): New.
5705 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5706 (record_btrace_remove_breakpoint): Replace
5707 record_btrace_allow_memory_access with replay_memory_access.
5708 (_initialize_record_btrace): Add commands.
5709 * NEWS: Announce it.
5710
036cd381
RR
57112014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5712
5713 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5714
c77c1e42
RR
57152014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5716
5717 * MAINTAINERS (Write After Approval): Move self back from
5718 paper trail.
5719
45741a9c
PA
57202014-05-22 Pedro Alves <palves@redhat.com>
5721
5722 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5723 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5724 (disable_randomization, enum exec_direction_kind)
5725 (execution_direction, stop_registers, start_remote)
5726 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5727 (wait_for_inferior, normal_stop, get_last_target_status)
5728 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5729 (insert_step_resume_breakpoint_at_sal)
5730 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5731 (set_step_info, print_stop_event, signal_stop_state)
5732 (signal_print_state, signal_pass_state, signal_stop_update)
5733 (signal_print_update, signal_pass_update)
5734 (update_signals_program_target, clear_exit_convenience_vars)
5735 (displaced_step_dump_bytes, update_observer_mode)
5736 (signal_catch_update, gdb_signal_from_command): Move
5737 declarations ...
5738 * infrun.h: ... to this new file.
5739 * amd64-tdep.c: Include infrun.h.
5740 * annotate.c: Include infrun.h.
5741 * arch-utils.c: Include infrun.h.
5742 * arm-linux-tdep.c: Include infrun.h.
5743 * arm-tdep.c: Include infrun.h.
5744 * break-catch-sig.c: Include infrun.h.
5745 * breakpoint.c: Include infrun.h.
5746 * common/agent.c: Include infrun.h instead of inferior.h.
5747 * corelow.c: Include infrun.h.
5748 * event-top.c: Include infrun.h.
5749 * go32-nat.c: Include infrun.h.
5750 * i386-tdep.c: Include infrun.h.
5751 * inf-loop.c: Include infrun.h.
5752 * infcall.c: Include infrun.h.
5753 * infcmd.c: Include infrun.h.
5754 * infrun.c: Include infrun.h.
5755 * linux-fork.c: Include infrun.h.
5756 * linux-nat.c: Include infrun.h.
5757 * linux-thread-db.c: Include infrun.h.
5758 * monitor.c: Include infrun.h.
5759 * nto-tdep.c: Include infrun.h.
5760 * procfs.c: Include infrun.h.
5761 * record-btrace.c: Include infrun.h.
5762 * record-full.c: Include infrun.h.
5763 * remote-m32r-sdi.c: Include infrun.h.
5764 * remote-mips.c: Include infrun.h.
5765 * remote-notif.c: Include infrun.h.
5766 * remote-sim.c: Include infrun.h.
5767 * remote.c: Include infrun.h.
5768 * reverse.c: Include infrun.h.
5769 * rs6000-tdep.c: Include infrun.h.
5770 * s390-linux-tdep.c: Include infrun.h.
5771 * solib-irix.c: Include infrun.h.
5772 * solib-osf.c: Include infrun.h.
5773 * solib-svr4.c: Include infrun.h.
5774 * target.c: Include infrun.h.
5775 * top.c: Include infrun.h.
5776 * windows-nat.c: Include infrun.h.
5777 * mi/mi-interp.c: Include infrun.h.
5778 * mi/mi-main.c: Include infrun.h.
5779 * python/py-threadevent.c: Include infrun.h.
5780
98eb56a4
PA
57812014-05-22 Pedro Alves <palves@redhat.com>
5782
5783 * infrun.c (handle_inferior_event): Store the exit code for
5784 --return-child-result here, instead of ...
5785 (print_exited_reason): ... here.
5786
17b2616c
PA
57872014-05-21 Pedro Alves <palves@redhat.com>
5788
5789 PR gdb/13860
5790 * gdbthread.h (struct thread_control_state): New field
5791 `command_interp'.
5792 * infrun.c (follow_fork): Copy the new thread control field to the
5793 child fork thread.
5794 (clear_proceed_status_thread): Clear the new thread control field.
5795 (proceed): Set the new thread control field.
5796 * interps.h (command_interp): Declare.
5797 * interps.c (command_interpreter): New global.
5798 (command_interp): New function.
5799 (interp_exec): Set `command_interpreter' while here.
5800 * cli-out.c (cli_uiout_dtor): New function.
5801 (cli_ui_out_impl): Install it.
5802 * mi/mi-interp.c: Include cli-out.h.
5803 (mi_cmd_interpreter_exec): Add comment.
5804 (restore_current_uiout_cleanup): New function.
5805 (ui_out_free_cleanup): New function.
5806 (mi_on_normal_stop): If finishing an execution command started by
5807 a CLI command, or any kind of breakpoint-like event triggered,
5808 print the stop event to the output (CLI) stream.
5809 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5810
5166082f
PA
58112014-05-21 Pedro Alves <palves@redhat.com>
5812
5813 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5814 current source line having changed.
5815 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5816 * infrun.c (normal_stop): Adjust call to
5817 set_current_sal_from_frame.
5818 * source.c (clear_lines_listed_range): New function.
5819 (set_current_source_symtab_and_line, identify_source_line): Clear
5820 the lines listed range.
5821 (line_info): Handle the first "info line" after the current source
5822 line having changed.
5823 * stack.c (print_stack_frame): Remove center handling.
5824 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5825 center sal.line.
5826
c1ee2fb3
PA
58272014-05-21 Pedro Alves <palves@redhat.com>
5828
5829 * inf-child.c (inf_child_mourn_inferior): New function.
5830 * inf-child.h (inf_child_mourn_inferior): New declaration.
5831 * darwin-nat.c (darwin_mourn_inferior): Use
5832 inf_child_mourn_inferior.
5833 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5834 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5835 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5836 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5837 * windows-nat.c (windows_mourn_inferior): Likewise.
5838
5c6d4fb2
DE
58392014-05-21 Doug Evans <xdje42@gmail.com>
5840
250748cb 5841 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5842
4a2722c5
DE
58432014-05-21 Doug Evans <xdje42@gmail.com>
5844
17292b30 5845 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5846 (gdbscm_out_of_range_error): Ditto.
5847 (gdbscm_memory_error): Ditto.
250748cb
DE
5848 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5849 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5850 (gdbscm_out_of_range_error): Update.
5851 (gdbscm_memory_error): Update.
5852 (gdbscm_scm_to_target_string_unsafe): Delete.
5853
6a3cb8e8
PA
58542014-05-21 Pedro Alves <palves@redhat.com>
5855
5856 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5857 globals.
5858 (inf_child_open_target): New function.
5859 (inf_child_open): Use inf_child_open_target to push the target
5860 instead of erroring out.
5861 (inf_child_disconnect, inf_child_close)
5862 (inf_child_maybe_unpush_target): New functions.
5863 (inf_child_target): Install inf_child_disconnect and
5864 inf_child_close. Store a pointer to the returned object.
5865 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5866 declarations.
5867 * target.c (auto_connect_native_target): New global.
5868 (show_default_run_target): New function.
5869 (find_default_run_target): Return NULL if automatically connecting
5870 to the native target is disabled.
5871 (_initialize_target): Install set/show auto-connect-native-target.
5872 * NEWS: Mention "set auto-connect-native-target", and "target
5873 native".
5874 * linux-nat.c (super_close): New global.
5875 (linux_nat_close): Call super_close.
5876 (linux_nat_add_target): Store a pointer to the base class's
5877 to_close method.
5878 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5879 inf_child_maybe_unpush.
5880 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5881 already pushed.
5882 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5883 the inferior. Use inf_child_maybe_unpush_target.
5884 (inf_ttrace_attach): Don't push the target if it is already
5885 pushed.
5886 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5887 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5888 after mourning the inferior. Use inf_child_maybe_unpush_target.
5889 (darwin_attach_pid): Don't push the target if it is already
5890 pushed.
5891 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5892 mourning the inferior. Use inf_child_maybe_unpush_target.
5893 (gnu_detach): Use inf_child_maybe_unpush_target.
5894 * go32-nat.c (go32_create_inferior): Don't push the target if it
5895 is already pushed.
5896 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5897 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5898 (procfs_open): Rename to ...
5899 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5900 comments. Can target_preopen before changing node. Call
5901 inf_child_open_target to push the target explicitly.
5902 (procfs_attach): Don't push the target if it is already pushed.
5903 (procfs_detach): Use inf_child_maybe_unpush_target.
5904 (procfs_create_inferior): Don't push the target if it is already
5905 pushed.
5906 (nto_native_ops): New global.
5907 (procfs_open): Reimplement.
5908 (procfs_native_open): New function.
5909 (init_procfs_targets): Install procfs_native_open as to_open of
5910 "target native". Store a pointer to the "native" target in
5911 nto_native_ops.
5912 * procfs.c (procfs_attach): Don't push the target if it is already
5913 pushed.
5914 (procfs_detach): Use inf_child_maybe_unpush_target.
5915 (procfs_mourn_inferior): Only unpush the target after mourning the
5916 inferior. Use inf_child_maybe_unpush_target.
5917 (procfs_init_inferior): Don't push the target if it is already
5918 pushed.
5919 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5920 if it is already pushed.
5921
930ee1b1
PA
59222014-05-21 Pedro Alves <palves@redhat.com>
5923
5924 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5925 and "procfs" targets are now called "native" instead.
5926
1f5d1b13
PA
59272014-05-21 Pedro Alves <palves@redhat.com>
5928
5929 * go32-nat.c (go32_open): Delete.
5930 (go32_target): Don't override the to_open method.
5931
132f8e03
PA
59322014-05-21 Pedro Alves <palves@redhat.com>
5933
5934 * nto-procfs.c (procfs_can_run): New function.
5935 (nto_procfs_ops): New global.
5936 (init_procfs_targets): New, based on procfs_target. Install
5937 "target native" in addition to "target procfs".
5938 (_initialize_procfs): Call init_procfs_targets instead of adding
5939 the target here.
5940
03c136c3
PA
59412014-05-21 Pedro Alves <palves@redhat.com>
5942
5943 * windows-nat.c (windows_target): Don't override to_shortname,
5944 to_longname or to_doc.
5945
a635d0f3
PA
59462014-05-21 Pedro Alves <palves@redhat.com>
5947
5948 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5949 to_doc.
5950
4f9b5133
PA
59512014-05-21 Pedro Alves <palves@redhat.com>
5952
5953 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5954 to_shortname, to_longname or to_doc.
5955
bc85afde
PA
59562014-05-21 Pedro Alves <palves@redhat.com>
5957
5958 * go32-nat.c (go32_target): Don't override to_shortname,
5959 to_longname or to_doc.
5960
4ebfc96e
PA
59612014-05-21 Pedro Alves <palves@redhat.com>
5962
5963 * inf-child.c (inf_child_open): Remove mention of "child".
5964 (inf_child_target): Rename target to "native" instead of "child".
5965
2648dfed
AA
59662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5967
5968 * Makefile.in (SFILES): Delete "regset.c".
5969 (COMMON_OBS): Delete "regset.o".
5970 * regset.c: Remove.
5971 * regset.h (regset_alloc): Delete prototype.
5972
b13feb94
AA
59732014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5974
5975 * sparc-linux-tdep.c (sparc32_linux_gregset)
5976 (sparc32_linux_fpregset): New static regset structures.
5977 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5978 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5979 'fpregset' fields.
5980 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5981 (sparc64_linux_fpregset): New static regset structures.
5982 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5983 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5984 New static regset structures.
5985 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5986 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5987 New static regset structures.
5988 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5989 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5990 New static regset structures.
5991 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5992 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5993 New static regset structures.
5994 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5995
b4fd25c9
AA
59962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5997
5998 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5999 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6000 register maps ("regmaps") from "*regset" to "*regmap". Do this
6001 for all regmap types and variables.
6002 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6003 (sparc32_linux_supply_core_gregset)
6004 (sparc32_linux_collect_core_gregset)
6005 (sparc32_linux_supply_core_fpregset)
6006 (sparc32_linux_collect_core_fpregset): Likewise.
6007 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6008 (sparc_gregmap, sparc_fpregmap): ... these.
6009 (sparc_supply_gregset, sparc_collect_gregset)
6010 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6011 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6012 (_initialize_sparc_nat): Rename regmaps.
6013 * sparc-nat.h (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-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6018 Rename macros to...
6019 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6020 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6021 Likewise.
6022 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6023 Rename to...
6024 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6025 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6026 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6027 regmaps.
6028 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6029 (sparc32_bsd_fpregset): Rename to...
6030 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6031 (sparc32_bsd_fpregmap): ... these.
6032 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6033 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6034 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6035 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6036 (struct sparc_gregmap, struct sparc_fpregmap)
6037 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6038 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6039 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6040 (sparc32_supply_regset, sparc32_collect_gregset)
6041 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6042 prototypes.
6043 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6044 (sparc64_linux_ptrace_gregmap): ... this.
6045 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6046 (_initialize_sparc64_linux_nat): Rename regmaps.
6047 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6048 (sparc64_linux_core_gregmap): ... this.
6049 (sparc64_linux_supply_core_gregset)
6050 (sparc64_linux_collect_core_gregset)
6051 (sparc64_linux_supply_core_fpregset)
6052 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6053 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6054 (sparc64_sol2_fpregset): Rename to...
6055 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6056 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6057 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6058 regmaps.
6059 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6060 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6061 (sparc64_bsd_fpregset): Rename to...
6062 (struct sparc_gregmap, sparc64_sol2_gregmap)
6063 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6064 (sparc64_bsd_fpregmap): ... these.
6065 (sparc64_supply_gregset, sparc64_collect_gregset)
6066 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6067 prototypes.
6068 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6069 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6070 (sparc64fbsd_gregmap): ... this.
6071 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6072 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6073 Rename regmaps.
6074 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6075 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6076 (sparc64nbsd_collect_fpregset): Likewise.
6077 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6078 (sparc64nbsd_gregmap): ... this.
6079 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6080 regmaps.
6081 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6082 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6083 (sparc64obsd_gregmap): ... this.
6084 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6085 regmaps.
6086 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6087 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6088 (sparc32nbsd_gregmap): ... this.
6089 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6090 regmaps.
6091
8fea3224
AA
60922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6093
6094 * score-tdep.c (score7_linux_gregset): New static regset
6095 structure.
6096 (score7_linux_regset_from_core_section): Remove dynamic regset
6097 allocation.
6098 (score_gdbarch_init): Drop allocation of tdep structure.
6099 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6100
24534243
AA
61012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6102
6103 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6104 regset structures.
6105 (am33_regset_from_core_section): Remove dynamic regset
6106 allocations.
6107
b7195f27
AA
61082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6109
6110 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6111 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6112 structures.
6113 (mips_linux_regset_from_core_section): Remove dynamic regset
6114 allocations.
6115 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6116 'gregset64', 'fpregset', and 'fpregset64'.
6117 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6118 deleted tdep fields.
6119
ecc37a5a
AA
61202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6121
6122 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6123 regset structures.
6124 (amd64_regset_from_core_section): Remove dynamic regset
6125 allocations.
6126 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6127 structure.
6128 (amd64obsd_regset_from_core_section): Remove dynamic regset
6129 allocation.
6130 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6131 Likewise.
6132 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6133 x86-common regset supply function.
6134 * i386-tdep.c (i386_collect_gregset): Make static.
6135 (i386_gregset): New global regset structure.
6136 (i386_fpregset, i386_xstateregset): New static regset structures.
6137 (i386_regset_from_core_section): Remove dynamic regset
6138 allocations.
6139 (i386_gdbarch_init): Remove initialization of tdep fields
6140 'gregset', 'fpregset', and 'xstateregset'.
6141 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6142 'fpregset', and 'xstateregset'.
6143 (i386_collect_gregset): Remove prototype.
6144 (i386_gregset): New declaration.
6145 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6146 structure.
6147 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6148 allocation.
6149
b7611c43
AA
61502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6151
6152 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6153 (arm_linux_vfpregset): New static regset structures.
6154 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6155 regset structures.
6156 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6157 and 'vfpregset' fields.
6158
a069a2bd
AA
61592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6160
6161 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6162 (aarch64_linux_fpregset): New static regset structures.
6163 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6164 of regset structures.
6165 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6166 'fpregset' fields.
6167
09424cff
AA
61682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6169
6170 * regset.h (struct regset): Remove gdbarch field.
6171 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6172 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6173 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6174 Likewise.
6175 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6176 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6177 (ppc32_linux_vsxregset): Likewise.
6178 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6179 via the regcache instead of the regset.
6180 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6181 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6182 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6183 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6184 Likewise.
6185
3ca7dae4
AA
61862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6187
6188 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6189 Constify structures.
6190 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6191 (alphanbsd_aout_gregset): Likewise.
6192 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6193 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6194 Likewise.
6195 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6196 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6197 Likewise.
6198 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6199 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6200 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6201 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6202 * m88k-tdep.c (m88k_gregset): Likewise.
6203 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6204 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6205 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6206 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6207 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6208 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6209 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6210 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6211 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6212 Likewise.
6213 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6214 * sh-tdep.h (sh_corefile_gregset): Likewise.
6215 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6216 * vax-tdep.c (vax_gregset): Likewise.
6217
5876f503
JK
62182014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6219
6220 Fix TLS access for -static -pthread.
6221 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6222 (try_thread_db_load_1): Initialize it.
6223 (thread_db_get_thread_local_address): Call it if LM is zero.
6224 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6225 * target.h (struct target_ops) (to_get_thread_local_address): Add
6226 load_module_addr comment.
6227
0256a6ac
PA
62282014-05-21 Pedro Alves <palves@redhat.com>
6229
6230 * dcache.c (dcache_read_memory_partial): If reading the cache line
6231 fails, fallback to reading just the memory the caller wanted.
6232
227533ac
DE
62332014-05-20 Doug Evans <dje@google.com>
6234
6235 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6236 instead of get_current_arch.
6237
936d2992
PA
62382014-05-20 Pedro Alves <palves@redhat.com>
6239
6240 * NEWS: Mention that compare-sections now works with all targets.
6241
6242 * remote.c (PACKET_qCRC): New enum value.
6243 (remote_verify_memory): Don't send qCRC if the target has no
6244 execution. Use packet_support/packet_ok. If the target doesn't
6245 support the qCRC packet, fallback to a deep memory copy.
6246 (compare_sections_command): Say "target image" instead of "remote
6247 executable".
6248 (_initialize_remote): Add PACKET_qCRC to the list of config
6249 packets that have no associated command. Extend comment.
6250 * target.c (simple_verify_memory, default_verify_memory): New
6251 function.
6252 * target.h (struct target_ops) <to_verify_memory>: Default to
6253 default_verify_memory.
6254 (simple_verify_memory): New declaration.
6255 * target-delegates.c: Regenerate.
6256
e59fa00f
MM
62572014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6258
6259 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6260
f2205de0
HZ
62612014-05-20 Hui Zhu <hui@codesourcery.com>
6262 Yao Qi <yao@codesourcery.com>
6263
6264 PR backtrace/16558
6265 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6266 and change address of sp and pc.
6267
c4e54771
TT
62682014-05-19 Tom Tromey <tromey@redhat.com>
6269
6270 * gdbtypes.c (rank_function): Use XNEWVEC.
6271 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6272
73051182
DE
62732014-05-19 Doug Evans <dje@google.com>
6274
6275 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6276 build_type_unit_groups and moved closer to only caller. Remove
6277 arguments. All references updated. Remove outdated .gdb_index
6278 comment.
6279 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6280 build_type_psymtabs_1.
6281
8832e7e3
DE
62822014-05-19 Doug Evans <dje@google.com>
6283
6284 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6285 n_type_unit_groups, all_type_unit_groups. All uses removed.
6286 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6287 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6288 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6289 (add_type_unit_group_to_table): Delete.
6290
cd8ae15e
DE
62912014-05-19 Doug Evans <dje@google.com>
6292
6293 * eval.c (evaluate_subexp_standard): Add some comments.
6294
08f4850b
DE
62952014-05-17 Doug Evans <xdje42@gmail.com>
6296
6297 * progspace.c (remove_program_space): Delete, unused.
6298 * progspace.h (remove_program_space): Ditto.
6299
bed8455c
DE
63002014-05-17 Doug Evans <xdje42@gmail.com>
6301
6302 * inferior.c (prune_inferiors): Fix comment.
6303 (remove_inferior_command): Call prune_program_spaces.
6304
8d551b02
DE
63052014-05-16 Doug Evans <dje@google.com>
6306
6307 New command line option -D.
6308 * NEWS: Mention it.
6309 * main.c (set_gdb_data_directory): New function.
6310 (captured_main): Recognize -D. Flag error for --data-directory "".
6311 Call set_gdb_data_directory.
6312 (print_gdb_help): Print --data-directory, -D.
6313 * main.h (set_gdb_data_directory): Declare.
6314 * top.c (staged_gdb_datadir): New static global.
6315 (set_gdb_datadir): Call set_gdb_data_directory
6316 (show_gdb_datadir): New function.
6317 (init_main): Update init of data-directory parameter.
6318
18848e28
GF
63192014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6320
6321 Import the "dirfd" gnulib module.
6322 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6323 * gnulib/aclocal.m4: Update.
6324 * gnulib/config.in: Update.
6325 * gnulib/configure: Update.
6326 * gnulib/import/Makefile.am: Update.
6327 * gnulib/import/Makefile.in: Update.
6328 * gnulib/import/dirfd.c: New.
6329 * gnulib/import/m4/dirfd.m4: New.
6330 * gnulib/import/m4/gnulib-cache.m4: Update.
6331 * gnulib/import/m4/gnulib-comp.m4: Update.
6332
95c64f92
YQ
63332014-05-16 Pierre Muller <muller@sourceware.org>
6334 Yao Qi <yao@codesourcery.com>
6335
6336 * valprint.c (print_wchar): Move the code on checking whether
6337 W is a printable wide char to the default branch of switch
6338 statement below. Call wchar_printable instead of gdb_iswprint.
6339
cac395ea
TM
63402014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6341
19679eca 6342 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6343 ldr.w and ldrd instructions.
6344
83655187
DE
63452014-05-15 Doug Evans <dje@google.com>
6346
6347 * dwarf2read.c (read_structure_type): Delete outdated comments.
6348
dd756689
TT
63492014-05-14 Tom Tromey <tromey@redhat.com>
6350
6351 * macrocmd.c (print_macro_definition): Reindent.
6352
75ddda77
DE
63532014-05-13 Doug Evans <xdje42@gmail.com>
6354
6355 * python/py-cmd.c (cmdpy_completer): Add comment.
6356 (completers): Make const.
6357
b0f16a3e
SM
63582014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6359
6360 * infrun.c (resume): Remove should_resume (unused). Move up
6361 declaration of resume_ptid.
6362
033c3379
TT
63632014-05-13 Tom Tromey <tromey@redhat.com>
6364
6365 * language.h (unop_type_check): Remove.
6366 (binop_type_check): Don't declare.
6367
9b44a3a5
AA
63682014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6369
6370 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6371 call to regcache_raw_collect.
6372
303a33fa
SM
63732014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6374
6375 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6376 mi_console->quote as the quoting character.
6377
196100a0
SM
63782014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6379
6380 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6381
f989a1c8
TT
63822014-04-29 Tom Tromey <tromey@redhat.com>
6383
6384 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6385 "show debug varobj".
6386
9404b58f
KM
63872014-05-07 Kyle McMartin <kyle@redhat.com>
6388
6389 Pushed by Joel Brobecker <brobecker@adacore.com>.
6390 * aarch64-tdep.c (aarch64_software_single_step): New function.
6391 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6392 with aarch64_software_single_step.
6393
5e49ba57
JB
63942014-05-05 Joel Brobecker <brobecker@adacore.com>
6395
6396 GDB 7.7.1 released.
6397
c888a17d
KS
63982014-05-05 Keith Seitz <keiths@redhat.com>
6399
6400 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6401 variable or history value is successfully parsed.
6402
290a839c
YQ
64032014-05-05 Yao Qi <yao@codesourcery.com>
6404 Pedro Alves <palves@redhat.com>
6405
6406 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6407 address of blocks that intersects the requested range. Trim
6408 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6409 sections.
6410 * ctf.c (ctf_xfer_partial): Likewise.
6411
91256dc2
YQ
64122014-05-05 Yao Qi <yao@codesourcery.com>
6413
6414 * printcmd.c (display_command): Remove the check to
6415 target_has_execution.
6416
07284463
MK
64172014-05-03 Mark Kettenis <kettenis@gnu.org>
6418
6419 * ppcobsd-nat.c: Include "obsd-nat.h".
6420 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6421 add_target.
6422 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6423
30a1e6cc
SDJ
64242014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6425
6426 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6427 and 16-bit signed and unsigned arguments. Update comment.
6428 (stap_parse_probe_arguments): Extend code to handle such
6429 arguments. Use warning instead of complaint to notify about
6430 unrecognized bitness.
6431
f33da99a
SDJ
64322014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6433
6434 PR breakpoints/16889
6435 * stap-probe.c (stap_parse_probe_arguments): Simplify
6436 check for non-prefixed probes (i.e., probes whose
6437 arguments do not start with "N@"). Always set the
6438 argument type to a sane value.
6439
95cf3b38
DT
64402014-05-01 David Taylor <dtaylor@emc.com>
6441
6442 * remote.c (compare_sections_command): Add -r option to compare
6443 all loadable read-only sections.
6444
1cfdf534
SC
64452014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6446
6447 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6448 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6449 Update all callers.
6450 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6451 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6452 Remove unused CORE_ADDR argument. Update all callers.
6453
ca4f7f8b
PA
64542014-04-29 Pedro Alves <palves@redhat.com>
6455
6456 * remote.c (struct packet_config) <detect>: Extend comment.
6457 (add_packet_config_cmd): Don't set the config's detect or support
6458 fields here.
6459 (init_all_packet_configs): Also initialize the config's 'detect'
6460 field.
6461 (reset_all_packet_configs_support): New function.
6462 (remote_open_1): Call reset_all_packet_configs_support instead of
6463 init_all_packet_configs.
6464 (_initialize_remote): Initialize all packet configs. Assert that
6465 all packets have an associated command, except a few known
6466 outliers.
6467
11c1ba78
JB
64682014-04-28 Joel Brobecker <brobecker@adacore.com>
6469
6470 * dwarf2read.c (read_subrange_type): Handle dynamic
6471 DW_AT_lower_bound attributes.
6472
8739bc53
JB
64732014-04-28 Joel Brobecker <brobecker@adacore.com>
6474
6475 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6476 dynamic bounds before computing its upper bound.
6477 (ada_discrete_type_low_bound): Same as above with the lower bound.
6478
6f8a3220
JB
64792014-04-28 Joel Brobecker <brobecker@adacore.com>
6480
6481 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6482 range types. Adjust the array handling implementation to
6483 take advantage of this change.
6484 (resolve_dynamic_range): New function, mostly extracted from
6485 resolve_dynamic_bounds.
6486 (resolve_dynamic_array): New function, mostly extracted from
6487 resolve_dynamic_bounds.
6488 (resolve_dynamic_bounds): Delete.
6489 (resolve_dynamic_type): Reimplement. Add handling of
6490 TYPE_CODE_RANGE types.
6491
4d072ce4
JB
64922014-04-28 Joel Brobecker <brobecker@adacore.com>
6493
6494 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6495 handling of parallel ___XA types.
6496
52865325
JB
64972014-04-28 Joel Brobecker <brobecker@adacore.com>
6498
6499 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6500 unnecessary second call to static_unwrap_type.
6501
433e77fa
HZ
65022014-04-27 Hui Zhu <hui@codesourcery.com>
6503
6504 * stack.c (print_frame_info): Call do_gdb_disassembly with
6505 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6506
b51a69ee
DE
65072014-04-26 Doug Evans <xdje42@gmail.com>
6508
6509 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6510
7ae1a6a6
PA
65112014-04-25 Pedro Alves <palves@redhat.com>
6512
6513 PR server/16255
6514 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6515 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6516 and newline from built string.
6517 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6518 (linux_ptrace_attach_fail_reason): ... this.
6519 * linux-nat.c (linux_nat_attach): Adjust to use
6520 linux_ptrace_attach_fail_reason.
6521
4082afcc
PA
65222014-04-25 Pedro Alves <palves@redhat.com>
6523
6524 * remote.c (struct remote_state): Remove multi_process_aware,
6525 non_stop_aware, cond_tracepoints, cond_breakpoints,
6526 breakpoint_commands, fast_tracepoints, static_tracepoints,
6527 install_in_trace, disconnected_tracing,
6528 enable_disable_tracepoints, string_tracing, and
6529 augmented_libraries_svr4_read fields.
6530 (remote_multi_process_p): Move further below in the file.
6531 (struct packet_config): Add comments.
6532 (update_packet_config): Delete function.
6533 (show_packet_config_cmd): Use packet_config_support.
6534 (add_packet_config_cmd): Use NULL as set callback.
6535 (packet_ok): "set remote foo-packet"-style commands no longer
6536 change config->supported -- adjust.
6537 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6538 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6539 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6540 (PACKET_QNonStop, PACKET_multiprocess_feature)
6541 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6542 (PACKET_DisconnectedTracing_feature)
6543 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6544 (set_remote_protocol_packet_cmd): Delete function.
6545 (packet_config_support, packet_support): New functions.
6546 (set_remote_protocol_Z_packet_cmd): Don't call
6547 update_packet_config.
6548 (remote_query_attached, remote_pass_signals)
6549 (remote_program_signals, remote_threads_info)
6550 (remote_threads_extra_info, remote_start_remote): Use
6551 packet_support.
6552 (remote_start_remote): Use packet_config_support and
6553 packet_support.
6554 (init_all_packet_configs): Set all packets to unknown support,
6555 instead of calling update_packet_config.
6556 (remote_check_symbols): Use packet_support.
6557 (remote_supported_packet): Unconditionally set the packet config's
6558 support status.
6559 (remote_multi_process_feature, remote_non_stop_feature)
6560 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6561 (remote_breakpoint_commands_feature)
6562 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6563 (remote_install_in_trace_feature)
6564 (remote_disconnected_tracing_feature)
6565 (remote_enable_disable_tracepoint_feature)
6566 (remote_string_tracing_feature)
6567 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6568 (remote_protocol_features): Adjust to use remote_supported_packet
6569 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6570 "ConditionalTracepoints", "ConditionalBreakpoints",
6571 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6572 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6573 "EnableDisableTracepoints", and "tracenz".
6574 (remote_query_supported): Use packet_support.
6575 (remote_open_1): Adjust.
6576 (extended_remote_attach_1): Use packet_support. Switch on the
6577 result of packet_ok instead of checking whether the packet ended
6578 up disabled.
6579 (remote_vcont_resume): Use packet_support.
6580 (remote_resume, remote_stop_ns, fetch_register_using_p)
6581 (remote_prepare_to_store, store_register_using_P)
6582 (check_binary_download, remote_write_bytes): Use packet_support.
6583 (remote_vkill): Use packet_support. Switch on the result of
6584 packet_ok instead of checking whether the packet ended up
6585 disabled.
6586 (extended_remote_supports_disable_randomization): Use
6587 packet_support.
6588 (extended_remote_run): Switch on the result of packet_ok instead
6589 of checking whether the packet ended up disabled.
6590 (remote_insert_breakpoint, remote_remove_breakpoint)
6591 (remote_insert_watchpoint, remote_remove_watchpoint)
6592 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6593 packet_support.
6594 (remote_search_memory): Use packet_config_support.
6595 (remote_get_thread_local_address, remote_get_tib_address)
6596 (remote_hostio_send_command, remote_can_execute_reverse): Use
6597 packet_support.
6598 (remote_supports_cond_tracepoints)
6599 (remote_supports_cond_breakpoints)
6600 (remote_supports_fast_tracepoints)
6601 (remote_supports_static_tracepoints)
6602 (remote_supports_install_in_trace)
6603 (remote_supports_enable_disable_tracepoint)
6604 (remote_supports_string_tracing)
6605 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6606 the packet config says the feature is enabled or disabled.
6607 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6608 (remote_get_trace_status): Use packet_support.
6609 (remote_set_disconnected_tracing): Adjust to check whether the
6610 feature is enabled with packet_support.
6611 (remote_set_trace_buffer_size, remote_use_agent)
6612 (remote_can_use_agent, remote_supports_btrace): Use
6613 packet_support.
6614 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6615 Use packet_config_support.
6616 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6617 the packet config says the feature is enabled or disabled.
6618 (set_range_stepping): Use packet_support.
6619
bdb52a22
TT
66202014-04-25 Tom Tromey <tromey@redhat.com>
6621
6622 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6623 argument.
6624
e9475ead
SA
66252014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6626
6627 * NEWS: Mention support for C99 variable length arrays.
6628
82eacd52
JB
66292014-04-24 Joel Brobecker <brobecker@adacore.com>
6630
6631 * ada-lang.c (standard_exc): Expand introductory comment.
6632
01f9f808
MS
66332014-04-24 Michael Sturm <michael.sturm@mintel.com>
6634 Walfred Tedeschi <walfred.tedeschi@intel.com>
6635
6636 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6637 AVX512 registers.
6638 (amd64_linux_read_description): Add code to handle AVX512 xstate
6639 mask and return respective tdesc.
6640 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6641 and features/i386/x32-avx512-linux.c.
6642 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6643 (amd64_linux_core_read_description): Add code to handle AVX512
6644 xstate mask and return respective tdesc.
6645 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6646 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6647 calculation.
6648 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6649 (tdesc_amd64_avx512_linux): New prototype.
6650 (tdesc_x32_avx512_linux): Likewise.
6651 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6652 features/i386/x32-avx512.c.
6653 (amd64_ymm_avx512_names): New register names for pseudo
6654 registers YMM16-31.
6655 (amd64_ymmh_avx512_names): New register names for raw registers
6656 YMMH16-31.
6657 (amd64_k_names): New register names for K registers.
6658 (amd64_zmmh_names): New register names for ZMM raw registers.
6659 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6660 (amd64_xmm_avx512_names): New register names for XMM16-31
6661 registers.
6662 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6663 registers.
6664 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6665 if feature is present.
6666 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6667 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6668 (AMD64_NUM_REGS): Adjust to new number of registers.
6669 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6670 registers supplied via XSTATE by AVX512 registers.
6671 (i386_linux_read_description): Add case for AVX512.
6672 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6673 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6674 (i386_linux_core_read_description): Add case for AVX512.
6675 (i386_linux_init_abi): Install supported register note section
6676 for AVX512.
6677 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6678 AVX512.
6679 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6680 registers to be number of zmm7h + 1.
6681 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6682 * i386-tdep.c: Include features/i386/i386-avx512.c.
6683 (i386_zmm_names): Add ZMM pseudo register names array.
6684 (i386_zmmh_names): Add ZMM raw register names array.
6685 (i386_k_names): Add K raw register names array.
6686 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6687 registers. AVX512 has 16 more ZMM registers than there are YMM
6688 registers.
6689 (i386_zmmh_regnum_p): Add function to look up register number of
6690 ZMM raw registers.
6691 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6692 (i386_k_regnum_p): Likewise for K raw registers.
6693 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6694 registers added by AVX512.
6695 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6696 registers added by AVX512.
6697 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6698 added by AVX512.
6699 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6700 (i386_pseudo_register_name): Add ZMM pseudo registers.
6701 (i386_zmm_type): Construct and return vector registers type for ZMM
6702 registers.
6703 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6704 ZMM0-31 pseudo registers and K registers.
6705 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6706 and YMM16-31 registers from register cache.
6707 (i386_pseudo_register_write): Add code to write K, ZMM and
6708 YMM16-31 registers.
6709 (i386_register_reggroup_p): Add code to include/exclude AVX512
6710 registers in/from respective register groups.
6711 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6712 registers if feature is present in xcr0.
6713 (i386_gdbarch_init): Add code to initialize AVX512 feature
6714 variables in tdep structure, wire in pseudo registers and call
6715 initialize_tdesc_i386_avx512.
6716 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6717 variables.
6718 (i386_regnum): Add AVX512 registers.
6719 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6720 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6721 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6722 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6723 512 bits wide.
6724 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6725 (i386_ymm_avx512_regnum_p): Likewise.
6726 (i386_k_regnum_p): Likewise.
6727 (i386_zmm_regnum_p): Likewise.
6728 (i386_zmmh_regnum_p): Likewise.
6729 * i387-tdep.c : Update year in copyright notice.
6730 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6731 XSAVE buffer.
6732 (XSAVE_YMM_AVX512_ADDR): New macro.
6733 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6734 XSAVE buffer.
6735 (XSAVE_XMM_AVX512_ADDR): New macro.
6736 (xsave_avx512_k_offset): New table for K register offsets in
6737 XSAVE buffer.
6738 (XSAVE_AVX512_K_ADDR): New macro.
6739 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6740 in XSAVE buffer.
6741 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6742 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6743 buffer.
6744 (i387_collect_xsave): Add code to collect AVX512 registers from
6745 XSAVE buffer.
6746 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6747 of XMM16-31 registers.
6748 (I387_NUM_K_REGS): New define for number of K registers.
6749 (I387_K0_REGNUM): New define for K0 register number.
6750 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6751 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6752 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6753 registers.
6754 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6755 (I387_XMM16_REGNUM): New define for XMM16 register number.
6756 (I387_YMM0_REGNUM): New define for YMM0 register number.
6757 (I387_KEND_REGNUM): New define for last K register number.
6758 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6759 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6760 number.
6761 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6762 number.
6763 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6764 size.
6765 * features/Makefile: Add AVX512 related files.
6766 * features/i386/32bit-avx512.xml: New file.
6767 * features/i386/64bit-avx512.xml: Likewise.
6768 * features/i386/amd64-avx512-linux.c: Likewise.
6769 * features/i386/amd64-avx512-linux.xml: Likewise.
6770 * features/i386/amd64-avx512.c: Likewise.
6771 * features/i386/amd64-avx512.xml: Likewise.
6772 * features/i386/i386-avx512-linux.c: Likewise.
6773 * features/i386/i386-avx512-linux.xml: Likewise.
6774 * features/i386/i386-avx512.c: Likewise.
6775 * features/i386/i386-avx512.xml: Likewise.
6776 * features/i386/x32-avx512-linux.c: Likewise.
6777 * features/i386/x32-avx512-linux.xml: Likewise.
6778 * features/i386/x32-avx512.c: Likewise.
6779 * features/i386/x32-avx512.xml: Likewise.
6780 * regformats/i386/amd64-avx512-linux.dat: New file.
6781 * regformats/i386/amd64-avx512.dat: Likewise.
6782 * regformats/i386/i386-avx512-linux.dat: Likewise.
6783 * regformats/i386/i386-avx512.dat: Likewise.
6784 * regformats/i386/x32-avx512-linux.dat: Likewise.
6785 * regformats/i386/x32-avx512.dat: Likewise.
6786 * NEWS: Add note about new support for AVX512.
6787
6788
08351840
PA
67892014-04-23 Pedro Alves <palves@redhat.com>
6790
6791 * breakpoint.c (insert_bp_location): Tolerate errors if the
6792 breakpoint is set in a user-loaded objfile.
6793 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6794 location is marked shlib_disabled. If the breakpoint is set in a
6795 user-loaded objfile is a GDB-side memory breakpoint, validate it
6796 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6797 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6798 flag.
6799 * mem-break.c (memory_validate_breakpoint): New function.
6800 * objfiles.c (userloaded_objfile_contains_address_p): New
6801 function.
6802 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6803 * target.h (memory_validate_breakpoint): New declaration.
6804
076855f9
PA
68052014-04-23 Pedro Alves <palves@redhat.com>
6806
6807 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6808 the breakpoint is set in a shared library, only suppress
6809 errors for software breakpoints, not hardware breakpoints.
6810
483805cf
PA
68112014-04-22 Pedro Alves <palves@redhat.com>
6812
6813 * infrun.c (schedlock_applies): New function, factored out from
6814 find_thread_needs_step_over.
6815 (find_thread_needs_step_over): Use it.
6816 (switch_back_to_stepped_thread): Always clear trap_expected if the
6817 step over is finished. Return early if scheduler locking applies.
6818 Look for the stepping thread and a potential step-over thread with
6819 a single loop.
6820 (currently_stepping_or_nexting_callback): Delete.
6821
a75fef0e
NC
68222014-04-22 Nick Clifton <nickc@redhat.com>
6823
6824 * NEWS: Mention that ARM sim now supports tracing.
6825
48b6e87e
YQ
68262014-04-22 Yao Qi <yao@codesourcery.com>
6827
6828 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6829 to ...
6830 * tracefile.c (tracefile_fetch_registers): ... it. New
6831 function.
6832 * tracefile.h (tracefile_fetch_registers): Declare.
6833 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6834 tracefile_fetch_registers.
6835
17617f2d
EZ
68362014-04-19 Eli Zaretskii <eliz@gnu.org>
6837
6838 PR gdb/14018
6839 * windows-nat.c (thread_rec): Don't display a warning when
6840 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6841 fails for any reason, set th->suspended to -1, so that we don't
6842 try to resume such a thread. Also, don't return NULL in these
6843 cases, to avoid completely ruin the session due to "PC register is
6844 not available" error.
6845 (do_windows_fetch_inferior_registers): Check errors in
6846 GetThreadContext call.
6847 (windows_continue): Accept an additional argument KILLED; if not
6848 zero, ignore errors in the SetThreadContext call, since the
6849 inferior was killed and is shutting down.
6850 (windows_resume, get_windows_debug_event)
6851 (windows_create_inferior, windows_mourn_inferior)
6852 (windows_kill_inferior): All callers of windows_continue changed
6853 to adjust to its new calling sequence.
6854
5723a6fd
YQ
68552014-04-19 Yao Qi <yao@codesourcery.com>
6856
6857 * ctf.c (ctf_open): Call post_create_inferior.
6858
614d5099
YQ
68592014-04-19 Yao Qi <yao@codesourcery.com>
6860
6861 * ctf.c (handle_id): New static variable.
6862 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6863 value. Get the declaration of event "register" and get length
6864 of field "contents".
6865
dac3e710
YQ
68662014-04-19 Yao Qi <yao@codesourcery.com>
6867
6868 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6869
2bca57ba
SC
68702014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6871
6872 * valops.c (oload_method_static): Remove unnecessary argument
6873 METHOD. Update all callers.
6874
51d48146
PA
68752014-04-18 Pedro alves <palves@redhat.com>
6876 Tom Tromey <tromey@redhat.com>
6877
6878 PR backtrace/15558
6879 * frame.c (get_prev_frame_1): Rename to ...
6880 (get_prev_frame_always): ... this, and make extern. Adjust.
6881 (skip_artificial_frames): Use get_prev_frame_always.
6882 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6883 (get_frame_unwind_stop_reason): Adjust to rename.
6884 * frame.h (get_prev_frame_always): Declare.
6885 * inline-frame.c: Include frame.h.
6886 (inline_frame_this_id): Use get_prev_frame_always.
6887
1bdad2e0
TG
68882014-04-18 Tristan Gingold <gingold@adacore.com>
6889
6890 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6891 code by using bfd_mach_o_get_base_address.
6892
7ce16bd4
UW
68932014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6894
6895 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6896 (spu_ax_pseudo_register_collect): New function.
6897 (spu_ax_pseudo_register_push_stack): Likewise.
6898 (spu_dwarf_reg_to_regnum): Likewise.
6899 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6900
2ed3c037
UW
69012014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6902
6903 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6904 Replace FRAME argument with FRAME_ID.
6905 * gdbarch.c, gdbarch.h: Regenerate.
6906 * findvar.c (default_value_from_register): Add GDBARCH argument;
6907 replace FRAME by FRAME_ID. No longer call get_frame_id.
6908 (value_from_register): Update call to gdbarch_value_from_register.
6909 * value.h (default_value_from_register): Update prototype.
6910 * s390-linux-tdep.c (s390_value_from_register): Update interface
6911 and call to default_value_from_register.
6912 * spu-tdep.c (spu_value_from_register): Likewise.
6913
6914 * findvar.c (address_from_register): Remove TYPE argument.
6915 Do not call value_from_register; use gdbarch_value_from_register
6916 with null_frame_id instead.
6917 * value.h (address_from_register): Update prototype.
6918 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6919 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6920 address_from_register interface change.
6921
71e50e83
YQ
69222014-04-17 Yao Qi <yao@codesourcery.com>
6923
6924 * gdbtypes.h: Update comments to link to types and macros'
6925 definitions.
6926
7a23c549
SC
69272014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6928
6929 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6930
22869d73
KS
69312014-04-16 Keith Seitz <keiths@redhat.com>
6932
6933 PR gdb/15827
6934 * dwarf2read.c (skip_one_die): Check that all relative-offset
6935 sibling DIEs fall within range of the current reader's buffer.
6936 (read_partial_die): Likewise.
6937
c4f87ca6
KS
69382014-04-16 Keith Seitz <keiths@redhat.com>
6939
6940 PR c++/16597
6941 * cp-namespace.c (lookup_symbol_file): If the type name of
6942 `this' is NULL, return immediately.
6943
b50c8614
KS
69442014-04-14 Keith Seitz <keiths@redhat.com>
6945
6946 PR c++/16253
6947 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6948 from symbol_matches_domain in symtab.c. All local callers
6949 of symbol_matches_domain updated.
6950 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6951 search STRUCT_DOMAIN.
6952 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6953 independently. standard_lookup will do that automatically.
6954 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6955 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6956 (cp_lookup_symbol_in_namespace): Likewise.
6957 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6958 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6959 may return a STRUCT_DOMAIN match.
6960 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6961 * cp-support.c: Include language.h.
6962 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6963 VAR_DOMAIN.
6964 * psymtab.c (match_partial_symbol): Compare the requested
6965 domain with the symbol's domain directly.
6966 (lookup_partial_symbol): Likewise.
6967 * symtab.c (lookup_symbol_in_language): Explain when/why
6968 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6969 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6970 appropriate languages.
6971 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6972 and moved to ada-lang.c
6973 (lookup_block_symbol): Explain that this function only returns
6974 symbol matching the requested DOMAIN.
6975 Compare the requested domain with the symbol's domain directly.
6976 (iterate_over_symbols): Compare the requested domain with the
6977 symbol's domain directly.
6978 * symtab.h (symbol_matches_domain): Remove.
6979
3d567982
TT
69802014-04-14 Tom Tromey <tromey@redhat.com>
6981
6982 PR c++/15246:
6983 * c-exp.y (type_aggregate_p): New function.
6984 (qualified_name, classify_inner_name): Use it.
6985 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6986 and TYPE_TARGET_TYPE of an enum type.
6987 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6988 an enum type.
6989 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6990 handle TYPE_DECLARED_CLASS.
6991 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6992 types.
6993 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6994 * valops.c (enum_constant_from_type): New function.
6995 (value_aggregate_elt): Use it.
6996 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6997 TYPE_CODE_ENUM.
6998
c848d642
TT
69992014-04-14 Tom Tromey <tromey@redhat.com>
7000
7001 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7002 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7003 const.
7004 * value.h (value_aggregate_elt): Update.
7005
0626fc76
TT
70062014-04-14 Tom Tromey <tromey@redhat.com>
7007
7008 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7009
5ecaaa66
SA
70102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7011
7012 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7013 (evaluate_subexp_standard): Pass noside argument.
7014 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7015 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7016 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7017 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7018 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7019
1612e0c0
SA
70202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7021
7022 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7023 points to a constant blob.
7024
c451ebe5
SA
70252014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7026
7027 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7028 property and store it as the high bound and flag the range accordingly.
7029 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7030 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7031 * gdbtypes.h (enum range_flags): New enum.
7032 (struct range_bounds): Add flags member.
7033
1d42e4c4
SA
70342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7035
7036 * c-typeprint.c (c_type_print_varspec_suffix): Added
7037 check for not yet resolved high bound. If unresolved, print
7038 "variable length" string to the console instead of random
7039 length.
7040
9f1f738a
SA
70412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7042
7043 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7044 value.
7045 (ada_template_to_fixed_record_type_1): Likewise.
7046 (ada_to_fixed_type_1): Likewise.
7047 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7048 (cp_print_value): Likewise.
7049 * d-valprint.c (dynamic_array_type): Likewise.
7050 * findvar.c (address_of_variable): Likewise.
7051 * jv-valprint.c (java_value_print): Likewise.
7052 * valops.c (value_ind): Likewise.
7053 * value.c (coerce_ref): Likewise.
7054
3c8452d4
SA
70552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7056
7057 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7058 value and retrieve the dynamic type size.
7059
4ad88275
SA
70602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7061
7062 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7063 passed to sizeof is dynamic evaluate the argument to compute the length.
7064
80180f79
SA
70652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7066 Joel Brobecker <brobecker@adacore.com>
7067
7068 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7069 (dwarf2_evaluate_property): New function.
7070 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7071 * dwarf2read.c (attr_to_dynamic_prop): New function.
7072 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7073 attribute.
7074 * gdbtypes.c: Include dwarf2loc.h.
7075 (is_dynamic_type): New function.
7076 (resolve_dynamic_type): New function.
7077 (resolve_dynamic_bounds): New function.
7078 (get_type_length): New function.
7079 (check_typedef): Use get_type_length to compute type length.
7080 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7081 (TYPE_LOW_BOUND_KIND): New macro.
7082 (is_dynamic_type): New function prototype.
7083 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7084 to resolve dynamic properties of the type. Update comment.
7085 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7086
a1556843
RH
70872014-04-14 Richard Henderson <rth@redhat.com>
7088
7089 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7090
0be03e84
DE
70912014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7092 Doug Evans <xdje42@gmail.com>
7093
7094 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7095 dereference TYPE_CODE_REF values.
7096
6b662e19
JB
70972014-04-11 Joel Brobecker <brobecker@adacore.com>
7098
7099 Revert the following changes due to regressions:
7100
7101 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7102 (dwarf2_evaluate_property): New function.
7103 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7104 * dwarf2read.c (attr_to_dynamic_prop): New function.
7105 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7106 attribute.
7107 * gdbtypes.c: Include dwarf2loc.h.
7108 (is_dynamic_type): New function.
7109 (resolve_dynamic_type): New function.
7110 (resolve_dynamic_bounds): New function.
7111 (get_type_length): New function.
7112 (check_typedef): Use get_type_length to compute type length.
7113 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7114 (TYPE_LOW_BOUND_KIND): New macro.
7115 (is_dynamic_type): New function prototype.
7116 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7117 to resolve dynamic properties of the type. Update comment.
7118 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7119
7120 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7121 passed to sizeof is dynamic evaluate the argument to compute the length.
7122
7123 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7124 value and retrieve the dynamic type size.
7125
7126 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7127 (ada_template_to_fixed_record_type_1): Likewise.
7128 (ada_to_fixed_type_1): Likewise.
7129 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7130 (cp_print_value): Likewise.
7131 * d-valprint.c (dynamic_array_type): Likewise.
7132 * eval.c (evaluate_subexp_with_coercion): Likewise.
7133 * findvar.c (address_of_variable): Likewise.
7134 * jv-valprint.c (java_value_print): Likewise.
7135 * valops.c (value_ind): Likewise.
7136 * value.c (coerce_ref): Likewise.
7137
7138 * c-typeprint.c (c_type_print_varspec_suffix): Added
7139 check for not yet resolved high bound. If unresolved, print
7140 "variable length" string to the console instead of random
7141 length.
7142
7143 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7144 property and store it as the high bound and flag the range accordingly.
7145 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7146 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7147 * gdbtypes.h (enum range_flags): New enum.
7148 (struct range_bounds): Add flags member.
7149
7150 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7151 points to a constant blob.
7152
7153 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7154 (evaluate_subexp_standard): Pass noside argument.
7155 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7156 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7157 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7158 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7159 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7160
245a5f0b
KS
71612014-04-11 Keith Seitz <keiths@redhat.com>
7162
7163 PR c++/16675
7164 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7165 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7166 reference types.
7167
3bce8237
SA
71682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7169
7170 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7171 (evaluate_subexp_standard): Pass noside argument.
7172 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7173 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7174 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7175 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7176 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7177
92b09522
SA
71782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7179
7180 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7181 points to a constant blob.
7182
e1969afb
SA
71832014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7184
7185 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7186 property and store it as the high bound and flag the range accordingly.
7187 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7188 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7189 * gdbtypes.h (enum range_flags): New enum.
7190 (struct range_bounds): Add flags member.
7191
b86138fb
SA
71922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7193
7194 * c-typeprint.c (c_type_print_varspec_suffix): Added
7195 check for not yet resolved high bound. If unresolved, print
7196 "variable length" string to the console instead of random
7197 length.
7198
bcd629a4
SA
71992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7200
7201 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7202 (ada_template_to_fixed_record_type_1): Likewise.
7203 (ada_to_fixed_type_1): Likewise.
7204 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7205 (cp_print_value): Likewise.
7206 * d-valprint.c (dynamic_array_type): Likewise.
7207 * eval.c (evaluate_subexp_with_coercion): Likewise.
7208 * findvar.c (address_of_variable): Likewise.
7209 * jv-valprint.c (java_value_print): Likewise.
7210 * valops.c (value_ind): Likewise.
7211 * value.c (coerce_ref): Likewise.
7212
04b19544
SA
72132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7214
7215 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7216 value and retrieve the dynamic type size.
7217
26cb189f
SA
72182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7219
7220 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7221 passed to sizeof is dynamic evaluate the argument to compute the length.
7222
37c1ab67
SA
72232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7224
7225 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7226 (dwarf2_evaluate_property): New function.
7227 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7228 * dwarf2read.c (attr_to_dynamic_prop): New function.
7229 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7230 attribute.
7231 * gdbtypes.c: Include dwarf2loc.h.
7232 (is_dynamic_type): New function.
7233 (resolve_dynamic_type): New function.
7234 (resolve_dynamic_bounds): New function.
7235 (get_type_length): New function.
7236 (check_typedef): Use get_type_length to compute type length.
7237 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7238 (TYPE_LOW_BOUND_KIND): New macro.
7239 (is_dynamic_type): New function prototype.
7240 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7241 to resolve dynamic properties of the type. Update comment.
7242 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7243
729efb13
SA
72442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7245
7246 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7247 declaring high/low bounds and change uses accordingly. Call
7248 create_range_type instead of create_static_range_type.
7249 * gdbtypes.c (create_range_type): New function.
7250 (create_range_type): Convert bounds into struct bound_prop and pass
7251 them to create_range_type.
7252 * gdbtypes.h (struct bound_prop): New struct.
7253 (create_range_type): New function prototype.
7254 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7255 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7256 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7257 part of the bound.
7258 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7259
0c9c3474
SA
72602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7261
7262 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7263 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7264 * ada-lang.c: All uses of create_range_type updated.
7265 * coffread.c: All uses of create_range_type updated.
7266 * dwarf2read.c: All uses of create_range_type updated.
7267 * f-exp.y: All uses of create_range_type updated.
7268 * m2-valprint.c: All uses of create_range_type updated.
7269 * mdebugread.c: All uses of create_range_type updated.
7270 * stabsread.c: All uses of create_range_type updated.
7271 * valops.c: All uses of create_range_type updated.
7272 * valprint.c: All uses of create_range_type updated.
7273
9d497a19
PA
72742014-04-10 Pedro Alves <palves@redhat.com>
7275
7276 * breakpoint.c (single_step_breakpoints)
7277 (single_step_gdbarch): Move up in the file.
7278 (one_breakpoint_xfer_memory): New function, factored out from ...
7279 (breakpoint_xfer_memory): ... here. Also process single-step
7280 breakpoints.
7281
15a9128a
TG
72822014-04-09 Tristan Gingold <gingold@adacore.com>
7283
7284 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7285 comments.
7286 (darwin_decode_exception_message): Free port only after use.
7287
9c97a070
PL
72882014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7289
7290 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7291 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7292 when setting the size of call_length.
7293
7af389b8
SC
72942014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7295
7296 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7297 dereference TYPE_CODE_REF values.
7298
86ad98c3
JB
72992014-04-07 Joel Brobecker <brobecker@adacore.com>
7300
7301 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7302 end of warning message.
7303
b0aeadb3
DE
73042014-04-03 Doug Evans <dje@google.com>
7305
7306 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7307 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7308
5979d6b6
AM
73092014-04-02 Alan Modra <amodra@gmail.com>
7310
7311 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7312 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7313 (struct symbol_file_add_from_memory_args): Add size field.
7314 (find_vdso_size): New function.
7315 (add_vsyscall_page): Attempt to find vdso size.
7316
0d60c288
DE
73172014-04-01 Doug Evans <dje@google.com>
7318
7319 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7320
a41f2563
TG
73212014-04-01 Tristan Gingold <gingold@adacore.com>
7322
7323 * darwin-nat.c (darwin_encode_reply): Add prototype.
7324 (darwin_decode_exception_message): Reply to unknown inferiors.
7325 (darwin_decode_message): Handle message by id. Ignore message
7326 to unknown inferior.
7327 (darwin_wait): Discard unknown messages, add debug trace.
7328
11a865c8
DE
73292014-03-31 Doug Evans <dje@google.com>
7330
7331 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7332 comp_dir_string.
7333
770e7fc7
DE
73342014-03-31 Doug Evans <dje@google.com>
7335
7336 New option "set print symbol-loading".
7337 * NEWS: Mention it.
7338 * solib.c (solib_read_symbols): Only print symbol loading messages
7339 if requested.
7340 (solib_add): If symbol loading is in "brief" mode, notify user
7341 symbols are being loaded.
7342 (reload_shared_libraries_1): Ditto.
7343 * symfile.c (print_symbol_loading_off): New static global.
7344 (print_symbol_loading_brief): New static global.
7345 (print_symbol_loading_full): New static global.
7346 (print_symbol_loading_enums): New static global.
7347 (print_symbol_loading): New static global.
7348 (print_symbol_loading_p): New function.
7349 (symbol_file_add_with_addrs): Only print symbol loading messages
7350 if requested.
7351 (_initialize_symfile): Register "print symbol-loading" set/show
7352 command.
7353 * symfile.h (print_symbol_loading_p): Declare.
7354
c32c64b7
DE
73552014-03-30 Doug Evans <xdje42@gmail.com>
7356
7357 * infrun.c (set_last_target_status): New function.
7358 (handle_inferior_event): Call it.
7359
7c0bc051
DE
73602014-03-30 Doug Evans <xdje42@gmail.com>
7361
7362 * inferior.h (enum stop_kind): Improve comment.
7363
8776cfe9
JB
73642014-03-28 Joel Brobecker <brobecker@adacore.com>
7365
7366 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7367 a reference, strip the reference layer before calling
7368 the lang_ops value_has_mutated callback.
7369
410a0ff2
SDJ
73702014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7371
7372 Remove some globals from our parser.
7373 * language.c (unk_lang_parser): Add "struct parser_state"
7374 argument.
7375 * language.h (struct language_defn) <la_parser>: Likewise.
7376 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7377 (initialize_expout): Add "struct parser_state" argument.
7378 Rewrite function to use the parser state.
7379 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7380 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7381 write_exp_elt_longcst, write_exp_elt_dblcst,
7382 write_exp_elt_decfloatcst, write_exp_elt_type,
7383 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7384 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7385 write_dollar_variable): Likewise.
7386 (parse_exp_in_context_1): Use parser state.
7387 (insert_type_address_space): Add "struct parser_state" argument.
7388 Use parser state.
7389 (increase_expout_size): New function.
7390 * parser-defs.h: Forward declare "struct language_defn" and
7391 "struct parser_state".
7392 (expout, expout_size, expout_ptr): Remove extern declarations.
7393 (parse_gdbarch, parse_language): Rewrite macro declarations to
7394 accept the parser state.
7395 (struct parser_state): New struct.
7396 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7397 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7398 write_exp_elt_decfloatcst, write_exp_elt_type,
7399 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7400 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7401 write_exp_msymbol, write_dollar_variable,
7402 mark_struct_expression, insert_type_address_space): Add "struct
7403 parser_state" argument.
7404 (increase_expout_size): New function.
7405 * utils.c (do_clear_parser_state): New function.
7406 (make_cleanup_clear_parser_state): Likewise.
7407 * utils.h (make_cleanup_clear_parser_state): New function
7408 prototype.
7409 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7410 Update calls to write_exp* in order to pass the parser state.
7411 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7412 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7413 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7414 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7415 * stap-probe.c (stap_parse_register_operand): Likewise.
7416 (stap_parse_single_operand): Likewise.
7417 (stap_parse_argument_1): Likewise.
7418 (stap_parse_argument): Use parser state.
7419 * stap-probe.h: Include "parser-defs.h".
7420 (struct stap_parse_info) <pstate>: New field.
7421 * c-exp.y (parse_type): Rewrite to use parser state.
7422 (yyparse): Redefine to c_parse_internal.
7423 (pstate): New global variable.
7424 (parse_number): Add "struct parser_state" argument.
7425 (write_destructor_name): Likewise.
7426 (type_exp): Update calls to write_exp* and similars in order to
7427 use parser state.
7428 (exp1, exp, variable, qualified_name, space_identifier,
7429 typename, typebase): Likewise.
7430 (write_destructor_name, parse_number, lex_one_token,
7431 classify_name, classify_inner_name, c_parse): Add "struct
7432 parser_state" argument. Update function to use parser state.
7433 * c-lang.h: Forward declare "struct parser_state".
7434 (c_parse): Add "struct parser_state" argument.
7435 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7436 (yyparse): Redefine macro to ada_parse_internal.
7437 (pstate): New variable.
7438 (write_int, write_object_renaming, write_var_or_type,
7439 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7440 type_int, type_long, type_long_long, type_float, type_double,
7441 type_long_double, type_char, type_boolean, type_system_address):
7442 Add "struct parser_state" argument.
7443 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7444 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7445 var_or_type, aggregate, aggregate_component_list,
7446 positional_list, others, component_group,
7447 component_associations): Update calls to write_exp* and similar
7448 functions in order to use parser state.
7449 (ada_parse, write_var_from_sym, write_int,
7450 write_exp_op_with_string, write_object_renaming,
7451 find_primitive_type, write_selectors, write_ambiguous_var,
7452 write_var_or_type, write_name_assoc, type_int, type_long,
7453 type_long_long, type_float, type_double, type_long_double,
7454 type_char, type_boolean, type_system_address): Add "struct
7455 parser_state" argument. Adjust function to use parser state.
7456 * ada-lang.c (parse): Likewise.
7457 * ada-lang.h: Forward declare "struct parser_state".
7458 (ada_parse): Add "struct parser_state" argument.
7459 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7460 calls to both functions.
7461 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7462 parser state.
7463 (yyparse): Redefine macro to f_parse_internal.
7464 (pstate): New variable.
7465 (parse_number): Add "struct parser_state" argument.
7466 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7467 and similars in order to use parser state.
7468 (parse_number): Adjust code to use parser state.
7469 (yylex): Likewise.
7470 (f_parse): New function.
7471 * f-lang.h: Forward declare "struct parser_state".
7472 (f_parse): Add "struct parser_state" argument.
7473 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7474 parser state.
7475 (yyparse): Redefine macro for java_parse_internal.
7476 (pstate): New variable.
7477 (push_expression_name, push_expression_name, insert_exp): Add
7478 "struct parser_state" argument.
7479 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7480 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7481 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7482 PostIncrementExpression, PostDecrementExpression,
7483 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7484 UnaryExpressionNotPlusMinus, CastExpression,
7485 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7486 RelationalExpression, EqualityExpression, AndExpression,
7487 ExclusiveOrExpression, InclusiveOrExpression,
7488 ConditionalAndExpression, ConditionalOrExpression,
7489 ConditionalExpression, Assignment, LeftHandSide): Update
7490 calls to write_exp* and similars in order to use parser state.
7491 (parse_number): Ajust code to use parser state.
7492 (yylex): Likewise.
7493 (java_parse): New function.
7494 (push_variable): Add "struct parser_state" argument. Adjust
7495 code to user parser state.
7496 (push_fieldnames, push_qualified_expression_name,
7497 push_expression_name, insert_exp): Likewise.
7498 * jv-lang.h: Forward declare "struct parser_state".
7499 (java_parse): Add "struct parser_state" argument.
7500 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7501 parser state.
7502 (yyparse): Redefine macro to m2_parse_internal.
7503 (pstate): New variable.
7504 (type_exp, exp, fblock, variable, type): Update calls to
7505 write_exp* and similars to use parser state.
7506 (yylex): Likewise.
7507 (m2_parse): New function.
7508 * m2-lang.h: Forward declare "struct parser_state".
7509 (m2_parse): Add "struct parser_state" argument.
7510 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7511 * objc-lang.h: Forward declare "struct parser_state".
7512 (end_msglist): Add "struct parser_state" argument.
7513 * p-exp.y (parse_type): Rewrite macro to use parser state.
7514 (yyparse): Redefine macro to pascal_parse_internal.
7515 (pstate): New variable.
7516 (parse_number): Add "struct parser_state" argument.
7517 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7518 write_exp* and similars in order to use parser state.
7519 (parse_number, yylex): Adjust code to use parser state.
7520 (pascal_parse): New function.
7521 * p-lang.h: Forward declare "struct parser_state".
7522 (pascal_parse): Add "struct parser_state" argument.
7523 * go-exp.y (parse_type): Rewrite macro to use parser state.
7524 (yyparse): Redefine macro to go_parse_internal.
7525 (pstate): New variable.
7526 (parse_number): Add "struct parser_state" argument.
7527 (type_exp, exp1, exp, variable, type): Update calls to
7528 write_exp* and similars in order to use parser state.
7529 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7530 to use parser state.
7531 (go_parse): Likewise.
7532 * go-lang.h: Forward declare "struct parser_state".
7533 (go_parse): Add "struct parser_state" argument.
7534
342587c4
DE
75352014-03-27 Doug Evans <dje@google.com>
7536
7537 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7538
33e80786
DE
75392014-03-27 Doug Evans <dje@google.com>
7540
7541 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7542 Remove argument abbrev_section. All callers updated.
7543
1dbab08b
DE
75442014-03-27 Doug Evans <dje@google.com>
7545
7546 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7547 addr_base, ranges_base.
7548
318d3177
KS
75492014-03-26 Keith Seitz <keiths@redhat.com>
7550
7551 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7552 types, not VAR_DOMAIN.
7553
1e54db15
SL
75542014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7555
7556 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7557 "ra" registers.
7558 * features/nios2-linux.c: Regenerated.
7559 * features/nios2.c: Regenerated.
7560
d3839ede
PA
75612014-03-25 Pedro Alves <palves@redhat.com>
7562
7563 * cli/cli-script.c (script_from_file): Force the interpreter to
7564 sync mode.
7565
7588d2ec
PL
75662014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7567
7568 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7569 small stack allocation.
7570
a6290449
TG
75712014-03-24 Tristan Gingold <gingold@adacore.com>
7572
7573 * darwin-nat.c (exc_server): Remove unused prototype.
7574 (darwin_dump_message): Correctly display data on x86_64.
7575 (darwin_encode_reply): Fix style.
7576 Add comments and fix indentation.
7577
31ae9d24 75782014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7579
7580 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7581
6339bfc4
DE
75822014-03-22 Doug Evans <xdje42@gmail.com>
7583
7584 * infcmd.c: Whitespace fixes.
7585 (interrupt_command): Merge two function comments into one.
7586
0a07590b
DE
75872014-03-22 Doug Evans <xdje42@gmail.com>
7588
7589 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7590 All uses updated.
7591
b55fbac4
YQ
75922014-03-22 Yao Qi <yao@codesourcery.com>
7593
7594 * remote.c (target_read_live_memory): Remove.
7595 (memory_xfer_live_readonly_partial): Rename it to
7596 remote_xfer_live_readonly_partial. Remove argument 'object'.
7597 All callers updated. Call remote_read_bytes_1
7598 instead of target_read_live_memory.
7599 * tracepoint.c (set_traceframe_number): Remove.
7600 (make_cleanup_restore_traceframe_number): Likewise .
7601 * tracepoint.h (set_traceframe_number): Remove declaration.
7602 (make_cleanup_restore_traceframe_number): Likewise.
7603
9217e74e
YQ
76042014-03-22 Yao Qi <yao@codesourcery.com>
7605
7606 * remote.c (remote_read_bytes): Move code on reading from the
7607 remote stub to ...
7608 (remote_read_bytes_1): ... here. New function.
7609
8acf9577
YQ
76102014-03-22 Yao Qi <yao@codesourcery.com>
7611
7612 * ctf.c (ctf_xfer_partial): Check the return value of
7613 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7614 return TARGET_XFER_UNAVAILABLE.
7615 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7616 * target.c (target_read_live_memory): Move it to remote.c.
7617 (memory_xfer_live_readonly_partial): Likewise.
7618 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7619 * remote.c (target_read_live_memory): Moved from target.c.
7620 (memory_xfer_live_readonly_partial): Likewise.
7621 (remote_read_bytes): Factored out from
7622 memory_xfer_partial_1.
7623
feef67ab
DE
76242014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7625
7626 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7627 NULL pointer.
7628
b65dc60b
PA
76292014-03-21 Pedro Alves <palves@redhat.com>
7630
7631 * infrun.c (normal_stop): Extend comment.
7632
b4ab256d
HZ
76332014-03-21 Hui Zhu <hui@codesourcery.com>
7634 Pedro Alves <palves@redhat.com>
7635
7636 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7637 static buffer.
7638 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7639 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7640 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7641
deba7593
MR
76422014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7643
7644 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7645 `z' formatted output modifier.
7646
1bff71c3
SDJ
76472014-03-20 Tom Tromey <tromey@redhat.com>
7648 Sergio Durigan Junior <sergiodj@redhat.com>
7649
7650 * probe.c (parse_probes): Turn assert into an ordinary error.
7651 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7652 exceptions when parsing probes. Rearrange the code for clarity.
7653
90e28950
TT
76542014-03-20 Tom Tromey <tromey@redhat.com>
7655
7656 PR gdb/14135
7657 * top.c (execute_command): Only dispatch events if the command
7658 started the target.
7659
beb460e8
PA
76602014-03-20 Tom Tromey <tromey@redhat.com>
7661
7662 PR cli/15718
7663 * infcall.c: Include event-top.h.
7664 (run_inferior_call): Call async_disable_stdin if needed.
7665
99619bea
PA
76662014-03-20 Pedro Alves <palves@redhat.com>
7667
7668 * infrun.c (prepare_to_proceed): Delete.
7669 (thread_still_needs_step_over): New function.
7670 (find_thread_needs_step_over): New function.
7671 (proceed): If the current thread needs a step-over, set its
7672 steping_over_breakpoint flag. Adjust to use
7673 find_thread_needs_step_over instead of prepare_to_proceed.
7674 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7675 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7676 breakpoint.
7677 (switch_back_to_stepped_thread): Step over breakpoints of all
7678 threads not the stepping thread, before switching back to the
7679 stepping thread.
7680
2adfaa28
PA
76812014-03-20 Pedro Alves <palves@redhat.com>
7682
7683 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7684 extern.
7685 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7686 * infrun.c (saved_singlestep_ptid)
7687 (stepping_past_singlestep_breakpoint): Delete.
7688 (resume): Remove stepping_past_singlestep_breakpoint handling.
7689 (proceed): Store the prev_pc of the stepping thread too.
7690 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7691 singlestep_pc.
7692 (enum infwait_states): Delete infwait_thread_hop_state.
7693 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7694 field.
7695 (handle_inferior_event): Adjust.
7696 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7697 handling and the thread-hop code. Before removing single-step
7698 breakpoints, check whether the thread hit a single-step breakpoint
7699 of another thread. If it did, the trap is not a random signal.
7700 (switch_back_to_stepped_thread): If the event thread hit a
7701 single-step breakpoint, unblock it before switching to the
7702 stepping thread. Handle the case of the stepped thread having
7703 advanced already.
7704 (keep_going): Handle the case of the current thread moving past a
7705 single-step breakpoint.
7706
31e77af2
PA
77072014-03-20 Pedro Alves <palves@redhat.com>
7708
7709 PR breakpoints/7143
7710 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7711 are being stepped over.
7712 (breakpoint_address_match): Make extern.
7713 * breakpoint.h (breakpoint_address_match): New declaration.
7714 * inferior.h (stepping_past_instruction_at): New declaration.
7715 * infrun.c (struct step_over_info): New type.
7716 (step_over_info): New global.
7717 (set_step_over_info, clear_step_over_info)
7718 (stepping_past_instruction_at): New functions.
7719 (handle_inferior_event): Clear the step-over info when
7720 trap_expected is cleared.
7721 (resume): Remove now stale comment.
7722 (clear_proceed_status): Clear step-over info.
7723 (proceed): Adjust step-over handling to set or clear the step-over
7724 info instead of removing all breakpoints.
7725 (handle_signal_stop): When setting up a thread-hop, don't remove
7726 breakpoints here.
7727 (stop_stepping): Clear step-over info.
7728 (keep_going): Adjust step-over handling to set or clear step-over
7729 info and then always inserting breakpoints, instead of removing
7730 all breakpoints when stepping over one.
7731
b9f437de
PA
77322014-03-20 Pedro Alves <palves@redhat.com>
7733
7734 * infrun.c (previous_inferior_ptid): Adjust comment.
7735 (deferred_step_ptid): Delete.
7736 (infrun_thread_ptid_changed, prepare_to_proceed)
7737 (init_wait_for_inferior): Adjust.
7738 (handle_signal_stop): Delete deferred_step_ptid handling.
7739
06c868a8
JK
77402014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7741
7742 PR gdb/15358
7743 * defs.h (sync_quit_force_run): New declaration.
7744 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7745 * event-top.c (async_sigterm_handler): New declaration.
7746 (async_sigterm_token): New variable.
7747 (async_init_signals): Create also async_sigterm_token.
7748 (async_sigterm_handler): New function.
7749 (sync_quit_force_run): New variable.
7750 (handle_sigterm): Replace quit_force call by other calls.
7751 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7752
dea80df0
MR
77532014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7754
7755 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7756 offset into SPE pseudo registers.
7757
0c7e1a46
PA
77582014-03-18 Pedro Alves <palves@redhat.com>
7759
7760 PR gdb/13860
7761 * inferior.h (print_stop_event): Declare.
7762 * infrun.c (print_stop_event): New, factored out from ...
7763 (normal_stop): ... this.
7764 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7765 of bpstat_print/print_stack_frame.
7766
9c1fcd01
TT
77672014-03-17 Tom Tromey <tromey@redhat.com>
7768
7769 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7770
11aa919a
PMR
77712014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7772
7773 * ada-lang.c (decode_constrained_packed_array): Perform a
7774 minimal coercion for reference with coerce_ref instead of
7775 ada_coerce_ref.
7776
d4ccb5e0
TG
77772014-03-17 Tristan Gingold <gingold@adacore.com>
7778
7779 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7780 (darwin_solib_create_inferior_hook): Emit a warning if version
7781 is unhandled.
7782
49840f2a
UW
77832014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7784
7785 * python/py-value.c (get_field_flag): Cast flag_name argument to
7786 PyObject_GetAttrString to support Python 2.4.
7787
ed4123e5
JK
77882014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7789
7790 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7791 (Global Maintainers): Remove Jan Kratochvil.
7792
d6b64346
PA
77932014-03-14 Pedro Alves <palves@redhat.com>
7794
7795 * inferior.h (terminal_ours_for_output): Rename to ...
7796 (child_terminal_ours_for_output): ... this.
7797 (terminal_save_ours): Rename to ...
7798 (child_terminal_save_ours): ... this.
7799 (terminal_ours): Rename to ...
7800 (child_terminal_ours): ... this.
7801 (terminal_inferior): Rename to ...
7802 (child_terminal_inferior): ... this.
7803 (terminal_init_inferior): Rename to ...
7804 (child_terminal_init_inferior): ... this.
7805 (terminal_init_inferior_with_pgrp): Rename to ...
7806 (child_terminal_init_inferior_with_pgrp): ... this.
7807 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7808 (child_terminal_init_with_pgrp): ... this.
7809 (terminal_save_ours): Rename to ...
7810 (child_terminal_save_ours): ... this.
7811 (terminal_init_inferior): Rename to ...
7812 (child_terminal_init): ... this. Adjust.
7813 (terminal_inferior): Rename to ...
7814 (child_terminal_inferior): ... this.
7815 (terminal_ours_for_output): Rename to ...
7816 (child_terminal_ours_for_output): ... this. Adjust.
7817 (terminal_ours): Rename to ...
7818 (child_terminal_ours): ... this.
7819 (terminal_ours_1): Rename to ...
7820 (child_terminal_ours_1): ... this. Adjust.
7821 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7822 * windows-nat.c (do_initial_windows_stuff): Adjust.
7823 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7824 (gnu_terminal_init): ... this. Adjust.
7825 (gnu_target): Adjust.
7826 * inf-child.c (inf_child_target): Adjust.
7827
5a1e8c7a
DE
78282014-03-13 Doug Evans <xdje42@gmail.com>
7829
7830 PR guile/16612
7831 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7832 new eq?-hashtab.
7833
350e1a76
DE
78342014-03-13 Doug Evans <xdje42@gmail.com>
7835
7836 * value.c (record_latest_value): Call release_value_or_incref
7837 instead of release_value.
7838
a69900ae
PA
78392014-03-13 Pedro Alves <palves@redhat.com>
7840
7841 * procfs.c (procfs_target): Don't override to_shortname,
7842 to_longname or to_doc.
7843
5db9f0bd
PA
78442014-03-13 Pedro Alves <palves@redhat.com>
7845
7846 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7847 Unix in user visible strings.
7848
5e3a2c38
SS
78492014-03-12 Stan Shebs <stan@codesourcery.com>
7850
7851 * gdbtypes.h: Annotate comments for Doxygen, add a page
7852 block comment with some general info.
7853
8bc2fe48
PA
78542014-03-12 Pedro Alves <palves@redhat.com>
7855
7856 * infcmd.c (prepare_execution_command): New function, factored out
7857 from several execution commands.
7858 (run_command_1, continue_command, step_1, jump_command)
7859 (signal_command, until_command, advance_command, finish_command)
7860 (attach_command): Use prepare_execution_command.
7861
638c5f49
OJ
78622014-03-12 Omair Javaid <omair.javaid@linaro.org>
7863
7864 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7865 (MAX_BPTS): Define.
7866 (MAX_WPTS): Define.
7867 (struct arm_linux_thread_points): Removed.
7868 (struct arm_linux_process_info): New.
7869 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7870 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7871 (arm_linux_find_breakpoints_by_tid): Removed.
7872 (struct arch_lwp_info): New.
7873 (arm_linux_find_process_pid): New functions.
7874 (arm_linux_add_process): New functions.
7875 (arm_linux_process_info_get): New functions.
7876 (arm_linux_forget_process): New function.
7877 (arm_linux_get_debug_reg_state): New function.
7878 (struct update_registers_data): New.
7879 (update_registers_callback): New function.
7880 (arm_linux_insert_hw_breakpoint1): Updated.
7881 (arm_linux_remove_hw_breakpoint1): Updated.
7882 (arm_linux_insert_hw_breakpoint): Updated.
7883 (arm_linux_remove_hw_breakpoint): Updated.
7884 (arm_linux_insert_watchpoint): Updated.
7885 (arm_linux_remove_watchpoint): Updated.
7886 (arm_linux_new_thread): Updated.
7887 (arm_linux_prepare_to_resume): New function.
7888 (arm_linux_new_fork): New function.
7889 (_initialize_arm_linux_nat): Updated.
7890
6d03af93
PA
78912014-03-12 Pedro Alves <palves@redhat.com>
7892
7893 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7894
b3ccfe11
TT
78952014-03-12 Tom Tromey <tromey@redhat.com>
7896
7897 * inf-child.c (return_zero): New function.
7898 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7899 * aix-thread.c (aix_thread_inferior_created): New function.
7900 (aix_thread_attach): Remove.
7901 (init_aix_thread_ops): Don't set to_attach.
7902 (_initialize_aix_thread): Register inferior_created observer.
7903 * corelow.c (init_core_ops): Don't set to_attach or
7904 to_create_inferior.
7905 * exec.c (init_exec_ops): Don't set to_attach or
7906 to_create_inferior.
7907 * infcmd.c (run_command_1): Use find_run_target. Make direct
7908 target calls.
7909 (attach_command): Use find_attach_target. Make direct target
7910 calls.
7911 * record-btrace.c (init_record_btrace_ops): Don't set
7912 to_create_inferior.
7913 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7914 Remove.
7915 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7916 set to_create_inferior.
7917 * target.c (complete_target_initialization): Add assertion.
7918 (target_create_inferior): Remove.
7919 (find_default_attach, find_default_create_inferior): Remove.
7920 (find_attach_target, find_run_target): New functions.
7921 (find_default_is_async_p, find_default_can_async_p)
7922 (target_supports_non_stop, target_attach): Remove.
7923 (init_dummy_target): Don't set to_create_inferior or
7924 to_supports_non_stop.
7925 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7926 TARGET_DEFAULT_FUNC.
7927 <to_create_inferior>: Add comment.
7928 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7929 TARGET_DEFAULT_RETURN.
7930 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7931 (find_attach_target, find_run_target): Declare.
7932 (target_create_inferior): Remove.
7933 (target_has_execution_1): Update comment.
7934 (target_supports_non_stop): Remove.
7935 * target-delegates.c: Rebuild.
7936
91f83b02
PA
79372014-03-12 Pedro Alves <palves@redhat.com>
7938
7939 * inf-child.h: Update comment to not mention Unix.
7940
f1aea813
PA
79412014-03-12 Pedro Alves <palves@redhat.com>
7942
7943 * inf-child.c: Update top comment to not mention Unix. Add
7944 generic comment describing how this target is meant to be used.
7945 (inf_child_post_attach, inf_child_post_startup_inferior)
7946 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7947 Unix in comment.
7948
ee8e9165
PA
79492014-03-12 Pedro Alves <palves@redhat.com>
7950
7951 * nto-procfs.c: Include inf-child.h.
7952 (procfs_ops): Delete global.
7953 (procfs_can_run): Delete method.
7954 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7955 target pointer instead of referencing procfs_ops.
7956 (procfs_prepare_to_store): Delete.
7957 (init_procfs_ops): Delete function.
7958 (procfs_target): New function, based on init_procfs_ops, but
7959 inherit inf_child_target.
7960 (_initialize_procfs): Use procfs_target.
7961
51a9c8c5
PA
79622014-03-12 Pedro Alves <palves@redhat.com>
7963
7964 * windows-nat.c: Include inf-child.h.
7965 (windows_ops): Delete global.
7966 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7967 methods.
7968 (init_windows_ops): Delete function.
7969 (windows_target): New function, based on init_windows_ops, but
7970 inherit inf_child_target.
7971 (_initialize_windows_nat): Use windows_target. Install x86
7972 specific target methods here.
7973
c1966e26
DE
79742014-03-10 Doug Evans <xdje42@gmail.com>
7975
7976 * guile/guile.c (call_initialize_gdb_module): New function.
7977 (initialize_guile): Replace call to scm_init_guile with call to
7978 scm_with_guile.
7979
023db19c
JB
79802014-03-10 Joel Brobecker <brobecker@adacore.com>
7981
7982 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7983 in call to TYPE_CODE macro.
7984
5ec18f2b
JG
79852014-03-10 Jerome Guitton <guitton@adacore.com>
7986
8668be63
JB
7987 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7988 Resolve tagged types to full view.
5ec18f2b 7989
7d03f2eb
HZ
79902014-03-10 Hui Zhu <hui@codesourcery.com>
7991
7992 * target.h (target_insert_breakpoint): Remove "hardware" from its
7993 comments.
7994
c5164cbc
DE
79952014-03-07 Doug Evans <dje@google.com>
7996
7997 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7998
c4a3fee2
DE
79992014-03-07 Doug Evans <dje@google.com>
8000
8001 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8002 Remove unused local comp_dir_attr. Assert exactly one of
8003 stub_comp_unit_die, stub_comp_dir is non-NULL.
8004
3156469c
JB
80052014-03-07 Joel Brobecker <brobecker@adacore.com>
8006
8007 * target.h (complete_target_initialization, add_target):
8008 Add comment.
8009
c1a7b7c6
PA
80102014-03-07 Pedro Alves <palves@redhat.com>
8011
8012 * go32-nat.c: Include inf-child.h.
8013 (go32_ops): Delete global.
8014 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8015 Delete methods.
8016 (go32_create_inferior): Push the passed in target pointer instead
8017 of referencing go32_ops.
8018 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8019 (go32_target): New function, based on init_go32_ops, but inherit
8020 inf_child_target.
8021 (_initialize_go32_nat): Use go32_target. Move parts of
8022 init_go32_ops here.
8023
d3c1a85f
JB
80242014-03-06 Joel Brobecker <brobecker@adacore.com>
8025
8026 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8027 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8028 SYMBOL_VALUE_ADDRESS.
8029 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8030
5fa1d40e
YQ
80312014-03-06 Yao Qi <yao@codesourcery.com>
8032
8033 * breakpoint.c (get_tracepoint_by_number): Remove argument
8034 optional_p. All callers updated. Adjust comments. Update
8035 output message.
8036 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8037
0c13193f
YQ
80382014-03-06 Yao Qi <yao@codesourcery.com>
8039
8040 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8041 early if get_number returns zero. Use 'p' instead of 'args'.
8042
2217da06
YQ
80432014-03-06 Yao Qi <yao@codesourcery.com>
8044
8045 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8046 message.
8047
cc3da688
YQ
80482014-03-06 Yao Qi <yao@codesourcery.com>
8049
8050 PR breakpoints/16508
8051 * tracepoint.c (check_trace_running): New function.
8052 (trace_find_command): Move code to check_trace_running and
8053 call check_trace_running.
8054 (trace_find_pc_command): Likewise.
8055 (trace_find_tracepoint_command): Likewise.
8056 (trace_find_line_command): Likewise.
8057 (trace_find_range_command): Likewise.
8058 * tracepoint.h (check_trace_running): Likewise.
8059 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8060
6a5f844b
YQ
80612014-03-06 Yao Qi <yao@codesourcery.com>
8062
8063 * target.h (struct target_ops) <to_traceframe_info>: Use
8064 TARGET_DEFAULT_NORETURN (tcomplain ()).
8065 * target-delegates.c: Regenerated.
8066
0f26cec1
PA
80672014-03-05 Pedro Alves <palves@redhat.com>
8068
8069 PR gdb/16575
8070 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8071 void. Update comment.
8072 (dcache_xfer_memory): Delete.
8073 (dcache_read_memory_partial): New, based on the read bits of
8074 dcache_xfer_memory.
8075 (dcache_update): Add status parameter. Use ULONGEST for len, and
8076 adjust. Discard cache lines if the reason for the update was
8077 error.
8078 * dcache.h (dcache_xfer_memory): Delete declaration.
8079 (dcache_read_memory_partial): New declaration.
8080 (dcache_update): Update prototype.
8081 * target.c (raw_memory_xfer_partial): Update the dcache here.
8082 (memory_xfer_partial_1): Don't handle dcache writes here.
8083
b2b255bd
MF
80842014-03-05 Mike Frysinger <vapier@gentoo.org>
8085
8086 * remote-sim.c (gdbsim_load): Add const to prog.
8087
5d9cf8a4
TT
80882014-03-03 Tom Tromey <tromey@redhat.com>
8089
8090 * elfread.c (probe_key): Change to bfd_data.
8091 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8092 now per-BFD, not per-objfile.
8093 * stap-probe.c (stap_probe_destroy): Update comment.
8094 (handle_stap_probe): Allocate on the per-BFD obstack.
8095
729662a5
TT
80962014-03-03 Tom Tromey <tromey@redhat.com>
8097
8098 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8099 * breakpoint.c (create_longjmp_master_breakpoint): Use
8100 get_probe_address.
8101 (add_location_to_breakpoint, bkpt_probe_insert_location)
8102 (bkpt_probe_remove_location): Update.
8103 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8104 * elfread.c (elf_symfile_relocate_probe): Remove.
8105 (elf_probe_fns): Update.
8106 (insert_exception_resume_breakpoint): Change type of "probe"
8107 parameter to bound_probe.
8108 (check_exception_resume): Update.
8109 * objfiles.c (objfile_relocate1): Don't relocate probes.
8110 * probe.c (bound_probe_s): New typedef.
8111 (parse_probes): Use get_probe_address. Set sal's objfile.
8112 (find_probe_by_pc): Return a bound_probe.
8113 (collect_probes): Return a VEC(bound_probe_s).
8114 (compare_probes): Update.
8115 (gen_ui_out_table_header_info): Change type of "probes"
8116 parameter. Update.
8117 (info_probes_for_ops): Update.
8118 (get_probe_address): New function.
8119 (probe_safe_evaluate_at_pc): Update.
8120 * probe.h (struct probe_ops) <get_probe_address>: New field.
8121 <set_semaphore, clear_semaphore>: Add objfile parameter.
8122 (struct probe) <objfile>: Remove field.
8123 <arch>: New field.
8124 <address>: Update comment.
8125 (struct bound_probe): New.
8126 (find_probe_by_pc): Return a bound_probe.
8127 (get_probe_address): Declare.
8128 * solib-svr4.c (struct probe_and_action) <address>: New field.
8129 (hash_probe_and_action, equal_probe_and_action): Update.
8130 (register_solib_event_probe): Add address parameter.
8131 (solib_event_probe_at): Update.
8132 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8133 get_probe_address.
8134 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8135 (stap_get_probe_address): New function.
8136 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8137 (compile_probe_arg): Update.
8138 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8139 address.
8140 (handle_stap_probe): Don't relocate the probe.
8141 (stap_relocate): Remove.
8142 (stap_gen_info_probes_table_values): Update.
8143 (stap_probe_ops): Remove stap_relocate.
8144 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8145 (debug_sym_probe_fns): Update.
8146 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8147 * symtab.c (init_sal): Use memset.
8148 * symtab.h (struct symtab_and_line) <objfile>: New field.
8149 * tracepoint.c (start_tracing, stop_tracing): Update.
8150
ff887920
TT
81512014-03-03 Tom Tromey <tromey@redhat.com>
8152
8153 * probe.h (parse_probes, find_probe_by_pc)
8154 (find_probes_in_objfile): Fix comments.
8155
f0407826
DE
81562014-03-02 Doug Evans <xdje42@gmail.com>
8157
8158 * infrun.c (handle_signal_stop): Replace test for
8159 TARGET_WAITKIND_STOPPED with an assert.
8160
35e6a711
DE
81612014-03-02 Doug Evans <xdje42@gmail.com>
8162
8163 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8164
667f9d0b
DE
81652014-03-02 Doug Evans <xdje42@gmail.com>
8166
8167 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8168
dc92ace0
MK
81692014-03-01 Mark Kettenis <kettenis@gnu.org>
8170
8171 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8172
a900370f
MK
81732014-03-01 Mark Kettenis <kettenis@gnu.org>
8174
8175 * i386obsd-nat.c: Include "obsd-nat.h".
8176 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8177 add_target.
8178 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8179
b72a7981
MK
81802014-03-01 Mark Kettenis <kettenis@gnu.org>
8181
8182 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8183
96c70aba
MK
81842014-03-01 Mark Kettenis <kettenis@gnu.org>
8185
8186 * mips64obsd-nat.c: Include "obsd-nath".
8187 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8188 add_target
8189 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8190
874a80af
MK
81912014-03-01 Mark Kettenis <kettenis@gnu.org>
8192
8fd408f1
MK
8193 * amd64obsd-nat.c: Include "obsd-nat,h.
8194 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8195 add_target.
874a80af
MK
8196 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8197
9cf95373
SC
81982014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8199
8200 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8201 (find_overload_match): Update call to find_oload_champ.
8202 (find_oload_champ_namespace_loop): Likewise
8203
863e4da4
MK
82042014-02-28 Mark Kettenis <kettenis@gnu.org>
8205
025cac40
MK
8206 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8207
1ed586ce
MK
8208 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8209 * config/sparc/obsd64.mh: New file.
8210 * sparc64obsd-nat.c: New file.
8211
863e4da4
MK
8212 * obsd-nat.h: New file.
8213 * obsd-nat.c: New file.
8214 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8215 (ALLDEPFILES): Add obsd-nat.c.
8216
89de4da4
TT
82172014-02-28 Tom Tromey <tromey@redhat.com>
8218
8219 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8220 * cli-out.h (cli_ui_out_impl): Now const.
8221 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8222 * ui-out.c (struct ui_out) <impl>: Now const.
8223 (default_ui_out_impl): Now const.
8224 (ui_out_new): Make 'impl' parameter const.
8225 * ui-out.h (ui_out_new): Update.
8226
c725e7b6
MK
82272014-02-27 Mark Kettenis <kettenis@gnu.org>
8228
8229 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8230
670b46b3
MK
82312014-02-27 Mark Kettenis <kettenis@gnu.org>
8232
8233 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8234
c91550fc
JK
82352014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8236
8237 Additional PR 8882 fix.
8238 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8239
2fa0369e
PA
82402014-02-27 Pedro Alves <palves@redhat.com>
8241
8242 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8243 isn't set.
8244
d632a097
PA
82452014-02-27 Pedro Alves <palves@redhat.com>
8246
8247 PR 12702
8248 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8249 * nat/linux-waitpid.c: Include string.h.
8250 (status_to_str): Moved here and made extern.
8251 * nat/linux-waitpid.h (status_to_str): New declaration.
8252
2ebd5a35
HZ
82532014-02-27 Hui Zhu <hui@codesourcery.com>
8254
8255 PR 12702
8256 * infrun.c (ptid_match): Move ...
8257 * common/ptid.c (ptid_match): ... here.
8258 * inferior.h (ptid_match): Move ...
8259 * common/ptid.h (ptid_match): ... here.
8260
3cdd631f
MK
82612014-02-27 Mark Kettenis <kettenis@gnu.org>
8262
8263 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8264 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8265 gdb_target_obs.
8266
bee30a64
MK
82672014-02-27 Mark Kettenis <kettenis@gnu.org>
8268
8269 * obsd-tdep.c (obsd_auxv_parse): New function.
8270 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8271
8272 * gdbarch.sh (auxv_parse): New.
8273 * gdbarch.h: Regenerated.
8274 * gdbarch.c: Regenerated.
8275 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8276
7a5a839f
LC
82772014-02-26 Ludovic Courtès <ludo@gnu.org>
8278
8279 * guile/scm-value.c (gdbscm_history_append_x): New function.
8280 (value_functions): Add it.
8281
31aa7e4e
JB
82822014-02-27 Joel Brobecker <brobecker@adacore.com>
8283
8284 * dwarf2read.c (attr_value_as_address): New function.
8285 (dwarf2_find_base_address, read_call_site_scope): Use
8286 attr_value_as_address in place of DW_ADDR.
8287 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8288 the low and high addresses. Slight rework of the handling
8289 of the high pc being a constant form, and limit it to
8290 DWARF verson 4 or higher.
8291 (dwarf2_record_block_ranges): Likewise.
8292 (read_partial_die): Likewise.
8293 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8294
9b333ba3
TT
82952014-02-26 Tom Tromey <tromey@redhat.com>
8296
8297 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8298
5f6cac40
TT
82992014-02-26 Tom Tromey <tromey@redhat.com>
8300
8301 * elfread.c (elf_read_minimal_symbols): Return early if
8302 minimal symbols have already been read. Add "ei" parameter.
8303 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8304 * minsyms.c (prim_record_minimal_symbol_full): Update.
8305 * objfiles.h (struct objstats) <n_minsyms>: Move...
8306 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8307 * symmisc.c (print_objfile_statistics): Update.
8308
2750ef27
TT
83092014-02-26 Tom Tromey <tromey@redhat.com>
8310
8311 * elfread.c (elf_read_minimal_symbols): New function, from
8312 elf_symfile_read.
8313 (elf_symfile_read): Call it.
8314
34643a32
TT
83152014-02-26 Tom Tromey <tromey@redhat.com>
8316
8317 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8318 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8319 (lookup_minimal_symbol_solib_trampoline)
8320 (lookup_minimal_symbol_by_pc_section_1)
8321 (lookup_minimal_symbol_and_objfile): Update.
8322 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8323 Don't allocate a minimal symbol if minsyms have already been read.
8324 (build_minimal_symbol_hash_tables): Update.
8325 (install_minimal_symbols): Do nothing if minsyms already read.
8326 Use the per-BFD obstack.
8327 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8328 * objfiles.c (allocate_objfile): Call
8329 terminate_minimal_symbol_table later.
8330 (have_minimal_symbols): Update.
8331 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8332 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8333 Move from struct objfile.
8334 <minsyms_read>: New field.
8335 (struct objfile) <msymbols, minimal_symbol_count,
8336 msymbol_hash, msymbol_demangled_hash>: Move.
8337 (ALL_OBJFILE_MSYMBOLS): Update.
8338 * symfile.c (read_symbols): Set minsyms_read.
8339 (reread_symbols): Update.
8340 * symmisc.c (dump_objfile, dump_msymbols): Update.
8341
2273f0ac
TT
83422014-02-26 Tom Tromey <tromey@redhat.com>
8343
8344 * minsyms.c (msymbols_sort): Remove.
8345 * minsyms.h (msymbols_sort): Remove.
8346 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8347 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8348 * elfread.c (elf_symtab_read): Don't add section offsets.
8349 * xcoffread.c (record_minimal_symbol): Don't add section offset
8350 to minimal symbol address.
8351 * somread.c (text_offset, data_offset): Remove.
8352 (som_symtab_read): Don't add section offsets to minimal symbol
8353 addresses.
8354 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8355 Don't add section offsets to minimal symbols.
8356 * coffread.c (coff_symtab_read): Don't add section offsets
8357 to minimal symbol addresses.
8358 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8359 to minimal symbol addresses.
8360 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8361 section offset to minimal symbol addresses.
8362 * mdebugread.c (parse_partial_symbols): Don't add section
8363 offset to minimal symbol addresses.
8364 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8365 offset to minimal symbol addresses.
8366
77e371c0
TT
83672014-02-26 Tom Tromey <tromey@redhat.com>
8368
8369 * ada-lang.c (ada_main_name): Update.
8370 (ada_add_standard_exceptions): Update.
8371 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8372 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8373 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8374 * auxv.c (ld_so_xfer_auxv): Update.
8375 * avr-tdep.c (avr_scan_prologue): Update.
8376 * ax-gdb.c (gen_var_ref): Update.
8377 * blockframe.c (get_pc_function_start)
8378 (find_pc_partial_function_gnu_ifunc): Update.
8379 * breakpoint.c (create_overlay_event_breakpoint)
8380 (create_longjmp_master_breakpoint)
8381 (create_std_terminate_master_breakpoint)
8382 (create_exception_master_breakpoint): Update.
8383 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8384 * c-valprint.c (c_val_print): Update.
8385 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8386 * common/agent.c (agent_look_up_symbols): Update.
8387 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8388 * dwarf2loc.c (call_site_to_target_addr): Update.
8389 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8390 * elfread.c (elf_gnu_ifunc_record_cache)
8391 (elf_gnu_ifunc_resolve_by_got): Update.
8392 * findvar.c (default_read_var_value): Update.
8393 * frame.c (inside_main_func): Update.
8394 * frv-tdep.c (frv_frame_this_id): Update.
8395 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8396 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8397 Update.
8398 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8399 (hppa_hpux_find_dummy_bpaddr): Update.
8400 * hppa-tdep.c (hppa_symbol_address): Update.
8401 * infcmd.c (until_next_command): Update.
8402 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8403 Update.
8404 * linespec.c (minsym_found, add_minsym): Update.
8405 * linux-nat.c (get_signo): Update.
8406 * linux-thread-db.c (inferior_has_bug): Update.
8407 * m32c-tdep.c (m32c_return_value)
8408 (m32c_m16c_address_to_pointer): Update.
8409 * m32r-tdep.c (m32r_frame_this_id): Update.
8410 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8411 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8412 * maint.c (maintenance_translate_address): Update.
8413 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8414 (frob_address): New function.
8415 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8416 frob_address. Rename parameter to "pc_in".
8417 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8418 addresses.
8419 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8420 Update.
8421 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8422 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8423 * objc-lang.c (find_objc_msgsend): Update.
8424 * objfiles.c (objfile_relocate1): Update.
8425 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8426 * p-valprint.c (pascal_val_print): Update.
8427 * parse.c (write_exp_msymbol): Update.
8428 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8429 (ppc_elfv2_skip_entrypoint): Update.
8430 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8431 * printcmd.c (build_address_symbolic, msym_info)
8432 (address_info): Update.
8433 * proc-service.c (ps_pglobal_lookup): Update.
8434 * psymtab.c (find_pc_sect_psymtab_closer)
8435 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8436 Change msymbol parameter to bound_minimal_symbol.
8437 * ravenscar-thread.c (get_running_thread_id): Update.
8438 * remote.c (remote_check_symbols): Update.
8439 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8440 address.
8441 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8442 * solib-dsbt.c (lm_base): Update.
8443 * solib-frv.c (lm_base, main_got): Update.
8444 * solib-irix.c (locate_base): Update.
8445 * solib-som.c (som_solib_create_inferior_hook)
8446 (link_map_start): Update.
8447 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8448 * solib-svr4.c (elf_locate_base, enable_break): Update.
8449 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8450 (flush_ea_cache): Update.
8451 * stabsread.c (define_symbol, scan_file_globals): Update.
8452 * stack.c (find_frame_funname): Update.
8453 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8454 (debug_qf_find_pc_sect_symtab): Update.
8455 * symfile.c (simple_read_overlay_table)
8456 (simple_overlay_update): Update.
8457 * symfile.h (struct quick_symbol_functions)
8458 <find_pc_sect_symtab>: Change type of msymbol to
8459 bound_minimal_symbol.
8460 * symmisc.c (dump_msymbols): Update.
8461 * symtab.c (find_pc_sect_symtab_via_partial)
8462 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8463 (search_symbols, print_msymbol_info): Update.
8464 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8465 (MSYMBOL_VALUE_ADDRESS): Redefine.
8466 (BMSYMBOL_VALUE_ADDRESS): New macro.
8467 * tracepoint.c (scope_info): Update.
8468 * tui/tui-disasm.c (tui_find_disassembly_address)
8469 (tui_get_begin_asm_address): Update.
8470 * valops.c (find_function_in_inferior): Update.
8471 * value.c (value_static_field, value_fn_field): Update.
8472
3b7344d5
TT
84732014-02-26 Tom Tromey <tromey@redhat.com>
8474
8475 * ada-lang.c (ada_update_initial_language): Update.
8476 (ada_main_name, ada_has_this_exception_support): Update.
8477 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8478 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8479 * arm-tdep.c (arm_skip_stub): Update.
8480 * auxv.c (ld_so_xfer_auxv): Update.
8481 * avr-tdep.c (avr_scan_prologue): Update.
8482 * ax-gdb.c (gen_var_ref): Update.
8483 * breakpoint.c (struct breakpoint_objfile_data)
8484 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8485 type to bound_minimal_symbol.
8486 (create_overlay_event_breakpoint)
8487 (create_longjmp_master_breakpoint)
8488 (create_std_terminate_master_breakpoint)
8489 (create_exception_master_breakpoint): Update.
8490 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8491 * c-exp.y (classify_name): Update.
8492 * coffread.c (coff_symfile_read): Update.
8493 * common/agent.c (agent_look_up_symbols): Update.
8494 * d-lang.c (d_main_name): Update.
8495 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8496 * dec-thread.c (enable_dec_thread): Update.
8497 * dwarf2loc.c (call_site_to_target_addr): Update.
8498 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8499 * eval.c (evaluate_subexp_standard): Update.
8500 * findvar.c (struct minsym_lookup_data) <result>: Change type
8501 to bound_minimal_symbol.
8502 <objfile>: Remove.
8503 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8504 * frame.c (inside_main_func): Update.
8505 * frv-tdep.c (frv_frame_this_id): Update.
8506 * gcore.c (call_target_sbrk): Update.
8507 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8508 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8509 Update.
8510 * go-lang.c (go_main_name): Update.
8511 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8512 (hppa_hpux_find_import_stub_for_addr): Update.
8513 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8514 Update. Change return type.
8515 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8516 type.
8517 * jit.c (jit_breakpoint_re_set_internal): Update.
8518 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8519 Update.
8520 * linux-nat.c (get_signo): Update.
8521 * linux-thread-db.c (inferior_has_bug): Update
8522 * m32c-tdep.c (m32c_return_value)
8523 (m32c_m16c_address_to_pointer): Update.
8524 * m32r-tdep.c (m32r_frame_this_id): Update.
8525 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8526 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8527 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8528 lookup_minimal_symbol. Change return type.
8529 (lookup_minimal_symbol): Remove.
8530 (lookup_bound_minimal_symbol): Update.
8531 (lookup_minimal_symbol_text): Change return type.
8532 (lookup_minimal_symbol_solib_trampoline): Change return type.
8533 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8534 (lookup_minimal_symbol_solib_trampoline): Change return type.
8535 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8536 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8537 (value_nsstring, find_imps): Update.
8538 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8539 * p-lang.c (pascal_main_name): Update.
8540 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8541 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8542 * proc-service.c (ps_pglobal_lookup): Update.
8543 * ravenscar-thread.c (get_running_thread_msymbol): Change
8544 return type.
8545 (has_ravenscar_runtime, get_running_thread_id): Update.
8546 * remote.c (remote_check_symbols): Update.
8547 * sol-thread.c (ps_pglobal_lookup): Update.
8548 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8549 * solib-dsbt.c (lm_base): Update.
8550 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8551 Update.
8552 * solib-irix.c (locate_base): Update.
8553 * solib-som.c (som_solib_create_inferior_hook)
8554 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8555 Update.
8556 * solib-spu.c (spu_enable_break): Update.
8557 * solib-svr4.c (elf_locate_base, enable_break): Update.
8558 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8559 (flush_ea_cache): Update.
8560 * stabsread.c (define_symbol): Update.
8561 * symfile.c (simple_read_overlay_table): Update.
8562 * symtab.c (find_pc_sect_line): Update.
8563 * tracepoint.c (scope_info): Update.
8564 * tui-disasm.c (tui_get_begin_asm_address): Update.
8565 * value.c (value_static_field): Update.
8566
40c1a007
TT
85672014-02-26 Tom Tromey <tromey@redhat.com>
8568
8569 * minsyms.c (prim_record_minimal_symbol_full): Use
8570 SET_MSYMBOL_VALUE_ADDRESS.
8571 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8572 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8573 SET_MSYMBOL_VALUE_ADDRESS.
8574 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8575 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8576
efd66ac6
TT
85772014-02-26 Tom Tromey <tromey@redhat.com>
8578
8579 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8580 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8581 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8582 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8583 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8584 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8585 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8586 * ada-lang.c (ada_main_name): Update.
8587 (ada_lookup_simple_minsym): Update.
8588 (ada_make_symbol_completion_list): Update.
8589 (ada_add_standard_exceptions): Update.
8590 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8591 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8592 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8593 * arm-tdep.c (skip_prologue_function): Update.
8594 (arm_skip_stack_protector, arm_skip_stub): Update.
8595 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8596 (arm_wince_skip_main_prologue): Update.
8597 * auxv.c (ld_so_xfer_auxv): Update.
8598 * avr-tdep.c (avr_scan_prologue): Update.
8599 * ax-gdb.c (gen_var_ref): Update.
8600 * block.c (call_site_for_pc): Update.
8601 * blockframe.c (get_pc_function_start): Update.
8602 (find_pc_partial_function_gnu_ifunc): Update.
8603 * breakpoint.c (create_overlay_event_breakpoint): Update.
8604 (create_longjmp_master_breakpoint): Update.
8605 (create_std_terminate_master_breakpoint): Update.
8606 (create_exception_master_breakpoint): Update.
8607 (resolve_sal_pc): Update.
8608 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8609 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8610 Update.
8611 * c-valprint.c (c_val_print): Update.
8612 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8613 * coffread.c (coff_symfile_read): Update.
8614 * common/agent.c (agent_look_up_symbols): Update.
8615 * dbxread.c (find_stab_function_addr): Update.
8616 (end_psymtab): Update.
8617 * dwarf2loc.c (call_site_to_target_addr): Update.
8618 (func_verify_no_selftailcall): Update.
8619 (tailcall_dump): Update.
8620 (call_site_find_chain_1): Update.
8621 (dwarf_expr_reg_to_entry_parameter): Update.
8622 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8623 (elf_gnu_ifunc_resolve_by_got): Update.
8624 * f-valprint.c (info_common_command): Update.
8625 * findvar.c (read_var_value): Update.
8626 * frame.c (get_prev_frame_1): Update.
8627 (inside_main_func): Update.
8628 * frv-tdep.c (frv_skip_main_prologue): Update.
8629 (frv_frame_this_id): Update.
8630 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8631 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8632 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8633 (gnuv3_skip_trampoline): Update.
8634 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8635 (hppa64_hpux_in_solib_call_trampoline): Update.
8636 (hppa_hpux_skip_trampoline_code): Update.
8637 (hppa64_hpux_search_dummy_call_sequence): Update.
8638 (hppa_hpux_find_import_stub_for_addr): Update.
8639 (hppa_hpux_find_dummy_bpaddr): Update.
8640 * hppa-tdep.c (hppa_symbol_address)
8641 (hppa_lookup_stub_minimal_symbol): Update.
8642 * i386-tdep.c (i386_skip_main_prologue): Update.
8643 (i386_pe_skip_trampoline_code): Update.
8644 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8645 * infcall.c (get_function_name): Update.
8646 * infcmd.c (until_next_command): Update.
8647 * jit.c (jit_breakpoint_re_set_internal): Update.
8648 (jit_inferior_init): Update.
8649 * linespec.c (minsym_found): Update.
8650 (add_minsym): Update.
8651 * linux-fork.c (info_checkpoints_command): Update.
8652 * linux-nat.c (get_signo): Update.
8653 * linux-thread-db.c (inferior_has_bug): Update.
8654 * m32c-tdep.c (m32c_return_value): Update.
8655 (m32c_m16c_address_to_pointer): Update.
8656 (m32c_m16c_pointer_to_address): Update.
8657 * m32r-tdep.c (m32r_frame_this_id): Update.
8658 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8659 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8660 * maint.c (maintenance_translate_address): Update.
8661 * minsyms.c (add_minsym_to_hash_table): Update.
8662 (add_minsym_to_demangled_hash_table): Update.
8663 (msymbol_objfile): Update.
8664 (lookup_minimal_symbol): Update.
8665 (iterate_over_minimal_symbols): Update.
8666 (lookup_minimal_symbol_text): Update.
8667 (lookup_minimal_symbol_by_pc_name): Update.
8668 (lookup_minimal_symbol_solib_trampoline): Update.
8669 (lookup_minimal_symbol_by_pc_section_1): Update.
8670 (lookup_minimal_symbol_and_objfile): Update.
8671 (prim_record_minimal_symbol_full): Update.
8672 (compare_minimal_symbols): Update.
8673 (compact_minimal_symbols): Update.
8674 (build_minimal_symbol_hash_tables): Update.
8675 (install_minimal_symbols): Update.
8676 (terminate_minimal_symbol_table): Update.
8677 (find_solib_trampoline_target): Update.
8678 (minimal_symbol_upper_bound): Update.
8679 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8680 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8681 (mips_skip_pic_trampoline_code): Update.
8682 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8683 * objc-lang.c (selectors_info): Update.
8684 (classes_info): Update.
8685 (find_methods): Update.
8686 (find_imps): Update.
8687 (find_objc_msgsend): Update.
8688 * objfiles.c (objfile_relocate1): Update.
8689 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8690 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8691 * p-valprint.c (pascal_val_print): Update.
8692 * parse.c (write_exp_msymbol): Update.
8693 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8694 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8695 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8696 * printcmd.c (build_address_symbolic): Update.
8697 (sym_info): Update.
8698 (address_info): Update.
8699 * proc-service.c (ps_pglobal_lookup): Update.
8700 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8701 (find_pc_sect_psymtab): Update.
8702 * python/py-framefilter.c (py_print_frame): Update.
8703 * ravenscar-thread.c (get_running_thread_id): Update.
8704 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8705 Update.
8706 * remote.c (remote_check_symbols): Update.
8707 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8708 (rs6000_skip_trampoline_code): Update.
8709 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8710 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8711 * solib-dsbt.c (lm_base): Update.
8712 * solib-frv.c (lm_base): Update.
8713 (main_got): Update.
8714 * solib-irix.c (locate_base): Update.
8715 * solib-som.c (som_solib_create_inferior_hook): Update.
8716 (som_solib_desire_dynamic_linker_symbols): Update.
8717 (link_map_start): Update.
8718 * solib-spu.c (spu_enable_break): Update.
8719 (ocl_enable_break): Update.
8720 * solib-svr4.c (elf_locate_base): Update.
8721 (enable_break): Update.
8722 * spu-tdep.c (spu_get_overlay_table): Update.
8723 (spu_catch_start): Update.
8724 (flush_ea_cache): Update.
8725 * stabsread.c (define_symbol): Update.
8726 (scan_file_globals): Update.
8727 * stack.c (find_frame_funname): Update.
8728 (frame_info): Update.
8729 * symfile.c (simple_read_overlay_table): Update.
8730 (simple_overlay_update): Update.
8731 * symmisc.c (dump_msymbols): Update.
8732 * symtab.c (fixup_section): Update.
8733 (find_pc_sect_line): Update.
8734 (skip_prologue_sal): Update.
8735 (search_symbols): Update.
8736 (print_msymbol_info): Update.
8737 (rbreak_command): Update.
8738 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8739 (completion_list_objc_symbol): Update.
8740 (default_make_symbol_completion_list_break_on): Update.
8741 * tracepoint.c (scope_info): Update.
8742 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8743 (tui_get_begin_asm_address): Update.
8744 * valops.c (find_function_in_inferior): Update.
8745 * value.c (value_static_field): Update.
8746 (value_fn_field): Update.
8747
50e65b17
TT
87482014-02-26 Tom Tromey <tromey@redhat.com>
8749
8750 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8751 bound minimal symbols. Move code that knows about minsym
8752 table layout...
8753 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8754 function.
8755 * minsyms.h (minimal_symbol_upper_bound): Declare.
8756 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8757 minimal_symbol_upper_bound.
8758
1b588015
JB
87592014-02-27 Joel Brobecker <brobecker@adacore.com>
8760
8761 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8762 Use the type's name if its basic type does not have a tag.
8763
dbb9c2b1
JB
87642014-02-27 Joel Brobecker <brobecker@adacore.com>
8765
8766 * dwarf2read.c (read_subrange_type): Add comment.
8767
55426c9d
JB
87682014-02-27 Joel Brobecker <brobecker@adacore.com>
8769
8770 * dwarf2read.c (update_enumeration_type_from_children): New
8771 function, mostly extracted from process_structure_scope.
8772 (read_enumeration_type): Call update_enumeration_type_from_children.
8773 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8774 and flag_flag_enum fields.
8775
f2fce0ca
PA
87762014-02-26 Pedro Alves <palves@redhat.com>
8777
8778 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8779 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8780 to_xfer_partial method.
8781
7a44e40e
PA
87822014-02-26 Pedro Alves <palves@redhat.com>
8783
8784 * target.c (complete_target_initialization): Don't install
8785 default_xfer_partial as to_xfer_partial hook.
8786 (nomemory): Delete.
8787 (update_current_target): Don't INHERIT nor de_fault
8788 deprecated_xfer_memory. Delete de_fault macro.
8789 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8790 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8791 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8792 field.
8793
bd265cd0
PA
87942014-02-26 Pedro Alves <palves@redhat.com>
8795
8796 * go32-nat.c (my_write_child): New function.
8797 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8798 (go32_xfer_partial): New function.
8799 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8800 Instead install a to_xfer_partial hook.
8801
9d46c4e5
PA
88022014-02-26 Pedro Alves <palves@redhat.com>
8803
8804 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8805 to_xfer_partial helper. Rewrite.
8806 (procfs_xfer_partial): New function.
8807 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8808 Install a to_xfer_partial hook.
8809
a1583b1f
PA
88102014-02-26 Pedro Alves <palves@redhat.com>
8811
8812 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8813 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8814 (m32r_xfer_partial): New function.
8815 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8816 Install a to_xfer_partial hook.
8817
6df1b29f
PA
88182014-02-26 Pedro Alves <palves@redhat.com>
8819
8820 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8821 helper.
8822 (mips_xfer_partial): New function.
8823 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8824 hook. Install a to_xfer_partial hook.
8825
dc53a7ad
JB
88262014-02-26 Joel Brobecker <brobecker@adacore.com>
8827
8828 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8829 * gdbtypes.c (create_array_type_with_stride): New function,
8830 renaming create_array_type, but with an added parameter
8831 called "bit_stride".
8832 (create_array_type): Re-implement using
8833 create_array_type_with_stride.
8834 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8835 and DW_AT_bit_stride attributes.
8836
12ab52e9
PA
88372014-02-26 Pedro Alves <palves@redhat.com>
8838
8839 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8840 task-specific breakpoints.
8841
d16461ae
PA
88422014-02-25 Pedro Alves <palves@redhat.com>
8843
8844 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8845 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8846
a8b16220
SS
88472014-02-25 Stan Shebs <stan@codesourcery.com>
8848
8849 * defs.h: Annotate comments for Doxygen.
8850
b9e795ee
TT
88512014-02-25 Tom Tromey <tromey@redhat.com>
8852
8853 * target.h (target_ignore): Don't declare.
8854 * target.c (target_ignore): Remove.
8855
849c862e
JK
88562014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8857
8858 PR gdb/16626
8859 * auto-load.c (auto_load_objfile_script_1): Change filename to
8860 debugfile.
8861
475109d8
JB
88622014-02-25 Joel Brobecker <brobecker@adacore.com>
8863
8864 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8865 documentation. Adjust prototype to match the target_ops
8866 to_xfer_partial method. Adjust implementation accordingly.
8867
e186c3bd
HZ
88682014-02-25 Hui Zhu <hui@codesourcery.com>
8869
8870 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8871 to_traceframe_info.
8872
6d451942
KB
88732014-02-25 Kevin Buettner <kevinb@redhat.com>
8874
041ab8b4 8875 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8876 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8877 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8878 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8879 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8880 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8881 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8882 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8883 New constants.
8884 (rl78_register_type): Use a data pointer type for SP and
8885 new pseudo registers mentioned above. Use a 16 bit integer
8886 type for all other register pairs.
8887 (rl78_register_name, rl78_g10_register_name): Update for
8888 new pseudo registers.
8889 (rl78_pseudo_register_read): Likewise.
8890 (rl78_pseudo_register_write): Likewise.
8891 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8892 to the newly added pseudo registers.
8893
eddf0bae
DE
88942014-02-24 Doug Evans <dje@google.com>
8895
8896 * value.c (record_latest_value): Fix comment.
8897 * printcmd.c (print_command_1): Remove code to handle -1 return from
8898 record_latest_value.
8899
e96027e0
PA
89002014-02-24 Pedro Alves <palves@redhat.com>
8901
8902 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8903 deprecated_xfer_memory hook.
8904 (procfs_xfer_partial): Call procfs_xfer_memory instead
8905 of the deprecated_xfer_memory target hook.
8906 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8907 helper.
8908
0837c976
YZ
89092014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8910
8911 * windows-nat.c (windows_xfer_shared_libraries): Return
8912 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8913 requested object is TARGET_OBJECT_LIBRARIES.
8914
bc113b4e
YQ
89152014-02-24 Yao Qi <yao@codesourcery.com>
8916
8917 * target.h (enum target_xfer_status)
8918 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8919 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8920 explicitly. New.
8921 * corefile.c (memory_error_message): User updated.
8922 * exec.c (section_table_read_available_memory): Likewise.
8923 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8924 * target.c (target_xfer_status_to_string): Likewise.
8925 (raw_memory_xfer_partial): Likewise.
8926 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8927 * valops.c (read_value_memory): Likewise.
8928 * exec.h: Update comments.
8929
01cb8804
YQ
89302014-02-24 Yao Qi <yao@codesourcery.com>
8931
8932 * target.c (target_xfer_status_to_string): Rename argument err
8933 to status.
8934 * target.h (target_xfer_status_to_string): Update declaration.
8935 Replace target_xfer_error_to_string with
8936 target_xfer_status_to_string in comment.
8937
93063aa6
YQ
89382014-02-24 Yao Qi <yao@codesourcery.com>
8939
8940 * mips-linux-nat.c (super_close): Update its type.
8941 (mips_linux_close): Pass 'self' to super_close.
8942
5c328c05
YQ
89432014-02-24 Yao Qi <yao@codesourcery.com>
8944
8945 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8946 * corefile.c (read_memory): Adjusted.
8947 * target.c (target_write_with_progress): Adjusted.
8948
f73023dd
YQ
89492014-02-23 Yao Qi <yao@codesourcery.com>
8950
8951 Revert two patches:
8952
8953 2013-10-25 Yao Qi <yao@codesourcery.com>
8954
8955 * remote.c (remote_traceframe_info): Return early if
8956 traceframe is not selected.
8957
8958 2013-07-19 Yao Qi <yao@codesourcery.com>
8959
8960 * target.c (update_current_target): Change the default action
8961 of 'to_traceframe_info' from tcomplain to return_zero.
8962 * target.h (struct target_ops) <to_traceframe_info>: Add more
8963 comments.
8964
5a2eb0ef
YQ
89652014-02-23 Yao Qi <yao@codesourcery.com>
8966
8967 * valops.c (read_value_memory): Rewrite it. Call
8968 target_xfer_partial in a loop.
8969 * exec.h (section_table_available_memory): Remove declaration.
8970 Move comments to ...
8971 * exec.c (section_table_available_memory): ... here. Make it
8972 static.
8973
1ee79381
YQ
89742014-02-23 Yao Qi <yao@codesourcery.com>
8975
8976 * exec.c (section_table_read_available_memory): New function.
8977 * exec.h (section_table_read_available_memory): Declare.
8978 * ctf.c (ctf_xfer_partial): Call
8979 section_table_read_available_memory.
8980 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8981
1ca49d37
YQ
89822014-02-23 Yao Qi <yao@codesourcery.com>
8983
8984 * ctf.c (ctf_xfer_partial): Move code to ...
8985 * exec.c (exec_read_partial_read_only): ... it. New function.
8986 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8987 * tracefile.c: Include "exec.h".
8988 * exec.h (exec_read_partial_read_only): Declare.
8989
a283690e
YQ
89902014-02-23 Yao Qi <yao@codesourcery.com>
8991
8992 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8993 (tfile_has_memory): Remove.
8994 (init_tfile_ops): Don't set fields to_has_all_memory and
8995 to_has_memory of tfile_ops.
8996 * tracefile.c (tracefile_has_all_memory): New function.
8997 (tracefile_has_memory): New function.
8998 (init_tracefile_ops): Initialize fields to_has_all_memory and
8999 to_has_memory of 'ops'.
9000
12e03cd0
YQ
90012014-02-23 Yao Qi <yao@codesourcery.com>
9002
9003 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9004 (ctf_thread_alive, ctf_get_trace_status): Remove.
9005 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9006 init_tracefile_ops.
9007 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9008 (tfile_has_stack, tfile_has_registers): Remove.
9009 (tfile_thread_alive): Remove.
9010 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9011 init_tracefile_ops.
9012 * tracefile.c (tracefile_has_stack): New function.
9013 (tracefile_has_registers): New function.
9014 (tracefile_thread_alive): New function.
9015 (tracefile_get_trace_status): New function.
9016 (init_tracefile_ops): New function.
9017 * tracefile.h (init_tracefile_ops): Declare.
9018
11395323
YQ
90192014-02-23 Yao Qi <yao@codesourcery.com>
9020
9021 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9022 (O_LARGEFILE): Likewise.
9023 (tfile_ops): Likewise.
9024 (TRACE_HEADER_SIZE): Likewise.
9025 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9026 (cur_data_size): Likewise.
9027 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9028 (tfile_close, tfile_files_info): Likewise.
9029 (tfile_get_trace_status): Likewise.
9030 (tfile_get_tracepoint_status): Likewise.
9031 (tfile_get_traceframe_address): Likewise.
9032 (tfile_trace_find, match_blocktype): Likewise.
9033 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9034 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9035 (tfile_get_trace_state_variable_value): Likewise.
9036 (tfile_has_all_memory, tfile_has_memory): Likewise.
9037 (tfile_has_stack, tfile_has_registers): Likewise.
9038 (tfile_thread_alive, build_traceframe_info): Likewise.
9039 (tfile_traceframe_info, init_tfile_ops): Likewise.
9040 (_initialize_tracepoint): Don't call init_tfile_ops
9041 and add_target_with_completer.
9042 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9043 exec.h, completer.h and filenames.h.
9044 (_initialize_tracefile_tfile): New function.
9045
7951c4eb
YQ
90462014-02-23 Yao Qi <yao@codesourcery.com>
9047
9048 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9049 tracefile-tfile.o.
9050 (HFILES_NO_SRCDIR): Add tracefile.h.
9051 * ctf.c: Include "tracefile.h".
9052 * tracefile.h: New file.
9053 * tracefile.c: New file
9054 * tracefile-tfile.c: New file.
9055 * tracepoint.c: Include "tracefile.h".
9056 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9057 (stop_reason_names): Add const.
9058 (trace_file_writer_xfree): Move it to tracefile.c.
9059 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9060 (trace_save_ctf): Likewise.
9061 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9062 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9063 (tfile_write_header, tfile_write_regblock_type): Likewise.
9064 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9065 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9066 (tfile_write_raw_data, tfile_end): Likewise.
9067 (tfile_trace_file_writer_new): Likewise.
9068 (free_uploaded_tp): Make it extern.
9069 (free_uploaded_tsv): Make it extern.
9070 (_initialize_tracepoint): Move code to register command 'tsave'
9071 to tracefile.c.
9072 * tracepoint.h (stop_reason_names): Declare.
9073 (struct trace_frame_write_ops): Move it to tracefile.h.
9074 (struct trace_file_write_ops): Likewise.
9075 (struct trace_file_writer): Likewise.
9076 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9077
184cd072
JK
90782014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9079
9080 PR gdb/16594
9081 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9082 process name.
9083 (get_cores_used_by_process): New parameter num_cores, use it.
9084 (linux_xfer_osdata_processes): Pass num_cores to it.
9085 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9086 process name.
9087
c63528fc
AK
90882014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9089
9090 * target.c (memory_xfer_partial): Fix length arg in call to
9091 breakpoint_xfer_memory.
9092
d7b30f67
SDJ
90932014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9094
9095 PR tdep/16397
9096 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9097 number comes after the + or - signs. Adjust length of register
9098 name to be extracted.
9099
8838afaf
TT
91002014-02-20 Tom Tromey <tromey@redhat.com>
9101
9102 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9103 (ada_varobj_ops): Mark "extern".
9104
05227d14
TT
91052014-02-20 Tom Tromey <tromey@redhat.com>
9106
9107 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9108
1254eefc
DE
91092014-02-20 Doug Evans <xdje42@gmail.com>
9110
9111 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9112 All callers updated.
9113 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9114 All callers updated.
9115 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9116 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9117
adde2bff
DE
91182014-02-20 lin zuojian <manjian2006@gmail.com>
9119 Joel Brobecker <brobecker@adacore.com>
9120 Doug Evans <xdje42@gmail.com>
9121
9122 PR symtab/16581
9123 * dwarf2read.c (struct die_info): New member in_process.
9124 (reset_die_in_process): New function.
9125 (process_die): Set it at the start, reset when returning.
9126 (inherit_abstract_dies): Only call process_die if origin_child_die
9127 not already being processed.
9128
3be75f87
JB
91292014-02-20 Joel Brobecker <brobecker@adacore.com>
9130
9131 * windows-nat.c (handle_unload_dll): Add function documentation.
9132 (do_initial_windows_stuff): Add comment explaining why we wait
9133 until after inferior initialization has finished before
9134 processing all DLLs.
9135
47f7ffdb
JB
91362014-02-20 Joel Brobecker <brobecker@adacore.com>
9137
9138 * windows-nat.c (get_module_name): Delete.
9139 (windows_get_exec_module_filename): New function, mostly
9140 inspired from get_module_name.
9141 (windows_pid_to_exec_file): Replace call to get_module_name
9142 by call to windows_get_exec_module_filename.
9143
1cd9feab
JB
91442014-02-20 Joel Brobecker <brobecker@adacore.com>
9145
9146 * windows-nat.c (handle_load_dll): Rewrite this function's
9147 introductory comment. Remove code using get_module_name
9148 to get the DLL's name.
9149
ea39ad35
JB
91502014-02-20 Joel Brobecker <brobecker@adacore.com>
9151
9152 * windows-nat.c (get_windows_debug_event): Ignore
9153 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9154 if windows_initialization_done == 0.
9155 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9156 Adjust implementation to always load all DLLs.
9157 (do_initial_windows_stuff): Replace call to
9158 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9159
95060284
JB
91602014-02-20 Joel Brobecker <brobecker@adacore.com>
9161
9162 * windows-nat.c (_initialize_windows_nat): Deprecate the
9163 "dll-symbols" command. Turn the "add-shared-symbol-files"
9164 and "assf" aliases into commands, and deprecate them as well.
9165 * NEWS: Add entry explaining that "dll-symbols" and its two
9166 aliases are now deprecated.
9167
8d4fdb12
JB
91682014-02-20 Joel Brobecker <brobecker@adacore.com>
9169
9170 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9171 new-line in debug string. Remove trailing spaces.
9172
1b281443
SS
91732014-02-19 Stan Shebs <stan@codesourcery.com>
9174
9175 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9176
f7bd0f78
SC
91772014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9178
9179 * NEWS: Add entry for the new feature
9180 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9181 and class values.
9182
399ebc3d
SS
91832014-02-19 Stan Shebs <stan@codesourcery.com>
9184
9185 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9186
c658158d
PA
91872014-02-19 Pedro Alves <palves@redhat.com>
9188
9189 * common/ptid.h (struct ptid): Mention that process_stratum
9190 targets should prefer ptid.lwp.
9191
ba348170
PA
91922014-02-19 Pedro Alves <palves@redhat.com>
9193
9194 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9195 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9196 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9197 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9198 store remote thread ids rather than ptid.tid.
9199 (_initialize_remote): Adjust.
9200
ac01945b
TT
92012014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * target.c (target_get_unwinder): Rewrite.
9204 (target_get_tailcall_unwinder): Rewrite.
9205 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9206 (record_btrace_to_get_tailcall_unwinder): New function.
9207 (init_record_btrace_ops): Update.
9208 * target.h (struct target_ops) <to_get_unwinder,
9209 to_get_tailcall_unwinder>: Now function pointers. Use
9210 TARGET_DEFAULT_RETURN.
9211
8476dc92
TT
92122014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9215 argument.
9216 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9217
c0eca49f
TT
92182014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9221 directly.
9222 * target-delegates.c: Rebuild.
9223 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9224 TARGET_DEFAULT_FUNC.
9225 * target.c (default_target_decr_pc_after_break): Rename from
9226 forward_target_decr_pc_after_break. Simplify.
9227 (target_decr_pc_after_break): Rely on delegation.
9228
596b6b39
TT
92292014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target.c (update_current_target): Do not INHERIT to_doc or
9232 to_magic. Do not de_fault to_open or to_close.
9233
b427c1bc
TT
92342014-02-19 Tom Tromey <tromey@redhat.com>
9235
9236 * gcore.h (objfile_find_memory_regions): Declare.
9237 * gcore.c (objfile_find_memory_regions): No longer static. Add
9238 "self" argument.
9239 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9240 * exec.c: Include gcore.h.
9241 (exec_set_find_memory_regions): Remove.
9242 (exec_find_memory_regions): Remove.
9243 (exec_do_find_memory_regions): Remove.
9244 (init_exec_ops): Update.
9245 * defs.h (exec_set_find_memory_regions): Remove.
9246
9b144037
TT
92472014-02-19 Tom Tromey <tromey@redhat.com>
9248
9249 * target-delegates.c: Rebuild.
9250 * target.h (struct target_ops) <to_extra_thread_info,
9251 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9252 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9253 not 0, in TARGET_DEFAULT_RETURN.
9254
555bbdeb
TT
92552014-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 * target.c (complete_target_initialization): Remove casts. Use
9258 return_zero_has_execution.
9259 (return_zero): Add "ignore" argument.
9260 (return_zero_has_execution): New function.
9261 (init_dummy_target): Remove casts. Use
9262 return_zero_has_execution.
9263
be4ddd36
TT
92642014-02-19 Tom Tromey <tromey@redhat.com>
9265
9266 * target.c (update_current_target): Update comments. Do not
9267 INHERIT to_stratum.
9268
2117c711
TT
92692014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9272 needed.
9273 * corelow.c (core_read_description): Delegate when needed.
9274 * remote.c (remote_read_description): Delegate when needed.
9275 * target-delegates.c: Rebuild.
9276 * target.c (target_read_description): Rewrite.
9277 * target.h (struct target_ops) <to_read_description>: Update
9278 comment. Use TARGET_DEFAULT_RETURN.
9279
e88ef65c
TT
92802014-02-19 Tom Tromey <tromey@redhat.com>
9281
9282 * target-delegates.c: Rebuild.
9283 * target.c (update_current_target): Don't inherit or default
9284 to_can_run.
9285 (find_default_run_target): Check against delegate_can_run.
9286 * target.h (struct target_ops) <to_can_run>: Use
9287 TARGET_DEFAULT_RETURN.
9288
86a0854a
TT
92892014-02-19 Tom Tromey <tromey@redhat.com>
9290
9291 * target-delegates.c: Rebuild.
9292 * target.c (target_disconnect): Unconditionally delegate.
9293 * target.h (struct target_ops) <to_disconnect>: Use
9294 TARGET_DEFAULT_NORETURN.
9295
ee97f592
TT
92962014-02-19 Tom Tromey <tromey@redhat.com>
9297
9298 * record.c (record_stop): Unconditionally delegate.
9299 * target-delegates.c: Rebuild.
9300 * target.c (target_stop_recording): Unconditionally delegate.
9301 * target.h (struct target_ops) <to_stop_recording>: Use
9302 TARGET_DEFAULT_IGNORE.
9303
6dc7fcf4
TT
93042014-02-19 Tom Tromey <tromey@redhat.com>
9305
9306 * target-delegates.c: Rebuild.
9307 * target.c (target_enable_btrace): Unconditionally delegate.
9308 * target.h (struct target_ops) <to_enable_btrace>: Use
9309 TARGET_DEFAULT_NORETURN.
9310
eb5b20d4
TT
93112014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target-delegates.c: Rebuild.
9314 * target.c (target_read_btrace): Unconditionally delegate.
9315 * target.h (struct target_ops) <to_read_btrace>: Use
9316 TARGET_DEFAULT_NORETURN.
9317
9ace480d
TT
93182014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * target-delegates.c: Rebuild.
9321 * target.c (target_teardown_btrace): Unconditionally delegate.
9322 * target.h (struct target_ops) <to_teardown_btrace>: Use
9323 TARGET_DEFAULT_NORETURN.
9324
8dc292d3
TT
93252014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target-delegates.c: Rebuild.
9328 * target.c (target_disable_btrace): Unconditionally delegate.
9329 * target.h (struct target_ops) <to_disable_btrace>: Use
9330 TARGET_DEFAULT_NORETURN.
9331
58a5184e
TT
93322014-02-19 Tom Tromey <tromey@redhat.com>
9333
9334 * target-delegates.c: Rebuild.
9335 * target.c (default_search_memory): New function.
9336 (simple_search_memory): Update comment.
9337 (target_search_memory): Unconditionally delegate.
9338 * target.h (struct target_ops) <to_search_memory>: Use
9339 TARGET_DEFAULT_FUNC.
9340
8de71aab
TT
93412014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * auxv.c (default_auxv_parse): No longer static.
9344 (target_auxv_parse): Unconditionally delegate.
9345 * auxv.h (default_auxv_parse): Declare.
9346 * target-delegates.c: Rebuild.
9347 * target.c: Include auxv.h.
9348 * target.h (struct target_ops) <to_auxv_parse>: Use
9349 TARGET_DEFAULT_FUNC.
9350
6b2c5a57
TT
93512014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * target-delegates.c: Rebuild.
9354 * target.c (target_memory_map): Unconditionally delegate.
9355 * target.h (struct target_ops) <to_memory_map>: Use
9356 TARGET_DEFAULT_RETURN.
9357
cbffc065
TT
93582014-02-19 Tom Tromey <tromey@redhat.com>
9359
9360 * target-delegates.c: Rebuild.
9361 * target.c (target_thread_alive): Unconditionally delegate.
9362 * target.h (struct target_ops) <to_thread_alive>: Use
9363 TARGET_DEFAULT_RETURN.
9364
f09e2107
TT
93652014-02-19 Tom Tromey <tromey@redhat.com>
9366
9367 * target-delegates.c: Rebuild.
9368 * target.c (target_save_record): Unconditionally delegate.
9369 * target.h (struct target_ops) <to_save_record>: Use
9370 TARGET_DEFAULT_NORETURN.
9371
07366925
TT
93722014-02-19 Tom Tromey <tromey@redhat.com>
9373
9374 * target-delegates.c: Rebuild.
9375 * target.c (target_delete_record): Unconditionally delegate.
9376 * target.h (struct target_ops) <to_delete_record>: Use
9377 TARGET_DEFAULT_NORETURN.
9378
dd2e9d25
TT
93792014-02-19 Tom Tromey <tromey@redhat.com>
9380
9381 * target-delegates.c: Rebuild.
9382 * target.c (target_record_is_replaying): Unconditionally
9383 delegate.
9384 * target.h (struct target_ops) <to_record_is_replaying>: Use
9385 TARGET_DEFAULT_RETURN.
9386
671e76cc
TT
93872014-02-19 Tom Tromey <tromey@redhat.com>
9388
9389 * target-delegates.c: Rebuild.
9390 * target.c (target_goto_record_begin): Unconditionally delegate.
9391 * target.h (struct target_ops) <to_goto_record_begin>: Use
9392 TARGET_DEFAULT_NORETURN.
9393
e9179bb3
TT
93942014-02-19 Tom Tromey <tromey@redhat.com>
9395
9396 * target-delegates.c: Rebuild.
9397 * target.c (target_goto_record_end): Unconditionally delegate.
9398 * target.h (struct target_ops) <to_goto_record_end>: Use
9399 TARGET_DEFAULT_NORETURN.
9400
05969c84
TT
94012014-02-19 Tom Tromey <tromey@redhat.com>
9402
9403 * target-delegates.c: Rebuild.
9404 * target.c (target_goto_record): Unconditionally delegate.
9405 * target.h (struct target_ops) <to_goto_record>: Use
9406 TARGET_DEFAULT_NORETURN.
9407
3679abfa
TT
94082014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target-delegates.c: Rebuild.
9411 * target.c (target_insn_history): Unconditionally delegate.
9412 * target.h (struct target_ops) <to_insn_history>: Use
9413 TARGET_DEFAULT_NORETURN.
9414
8444ab58
TT
94152014-02-19 Tom Tromey <tromey@redhat.com>
9416
9417 * target-delegates.c: Rebuild.
9418 * target.c (target_insn_history_from): Unconditionally delegate.
9419 * target.h (struct target_ops) <to_insn_history_from>: Use
9420 TARGET_DEFAULT_NORETURN.
9421
c29302cc
TT
94222014-02-19 Tom Tromey <tromey@redhat.com>
9423
9424 * target-delegates.c: Rebuild.
9425 * target.c (target_insn_history_range): Unconditionally delegate.
9426 * target.h (struct target_ops) <to_insn_history_range>: Use
9427 TARGET_DEFAULT_NORETURN.
9428
170049d4
TT
94292014-02-19 Tom Tromey <tromey@redhat.com>
9430
9431 * target-delegates.c: Rebuild.
9432 * target.c (target_call_history): Unconditionally delegate.
9433 * target.h (struct target_ops) <to_call_history>: Use
9434 TARGET_DEFAULT_NORETURN.
9435
16fc27d6
TT
94362014-02-19 Tom Tromey <tromey@redhat.com>
9437
9438 * target-delegates.c: Rebuild.
9439 * target.c (target_call_history_from): Unconditionally delegate.
9440 * target.h (struct target_ops) <to_call_history_from>: Use
9441 TARGET_DEFAULT_NORETURN.
9442
115d9817
TT
94432014-02-19 Tom Tromey <tromey@redhat.com>
9444
9445 * target-delegates.c: Rebuild.
9446 * target.c (target_call_history_range): Unconditionally delegate.
9447 * target.h (struct target_ops) <to_call_history_range>: Use
9448 TARGET_DEFAULT_NORETURN.
9449
eb276a6b
TT
94502014-02-19 Tom Tromey <tromey@redhat.com>
9451
9452 * target-delegates.c: Rebuild.
9453 * target.c (target_verify_memory): Unconditionally delegate.
9454 * target.h (struct target_ops) <to_verify_memory>: Use
9455 TARGET_DEFAULT_NORETURN.
9456
9e538d0d
TT
94572014-02-19 Tom Tromey <tromey@redhat.com>
9458
9459 * target-delegates.c: Rebuild.
9460 * target.c (target_core_of_thread): Unconditionally delegate.
9461 * target.h (struct target_ops) <to_core_of_thread>: Use
9462 TARGET_DEFAULT_RETURN.
9463
f6fb2925
TT
94642014-02-19 Tom Tromey <tromey@redhat.com>
9465
9466 * target-delegates.c: Rebuild.
9467 * target.c (target_flash_done): Unconditionally delegate.
9468 * target.h (struct target_ops) <to_flash_done>: Use
9469 TARGET_DEFAULT_NORETURN.
9470
e8a6c6ac
TT
94712014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target-delegates.c: Rebuild.
9474 * target.c (target_flash_erase): Unconditionally delegate.
9475 * target.h (struct target_ops) <to_flash_erase>: Use
9476 TARGET_DEFAULT_NORETURN.
9477
7e35c012
TT
94782014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * target-delegates.c: Rebuild.
9481 * target.c (target_get_section_table): Unconditionally delegate.
9482 * target.h (struct target_ops) <to_get_section_table>: Use
9483 TARGET_DEFAULT_RETURN.
9484
770234d3
TT
94852014-02-19 Tom Tromey <tromey@redhat.com>
9486
9487 * target-delegates.c: Rebuild.
9488 * target.c (target_pid_to_str): Unconditionally delegate.
9489 (init_dummy_target): Don't initialize to_pid_to_str.
9490 (default_pid_to_str): Rename from dummy_pid_to_str.
9491 * target.h (struct target_ops) <to_pid_to_str>: Use
9492 TARGET_DEFAULT_FUNC.
9493
09b0dc2b
TT
94942014-02-19 Tom Tromey <tromey@redhat.com>
9495
9496 * target-delegates.c: Rebuild.
9497 * target.c (target_find_new_threads): Unconditionally delegate.
9498 * target.h (struct target_ops) <to_find_new_threads>: Use
9499 TARGET_DEFAULT_RETURN.
9500
7d4f8efa
TT
95012014-02-19 Tom Tromey <tromey@redhat.com>
9502
9503 * target-delegates.c: Rebuild.
9504 * target.c (target_program_signals): Unconditionally delegate.
9505 * target.h (struct target_ops) <to_program_signals>: Use
9506 TARGET_DEFAULT_IGNORE.
9507
035cad7f
TT
95082014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target-delegates.c: Rebuild.
9511 * target.c (target_pass_signals): Unconditionally delegate.
9512 * target.h (struct target_ops) <to_pass_signals>: Use
9513 TARGET_DEFAULT_IGNORE.
9514
8d657035
TT
95152014-02-19 Tom Tromey <tromey@redhat.com>
9516
9517 * target-delegates.c: Rebuild.
9518 * target.c (default_mourn_inferior): New function.
9519 (target_mourn_inferior): Unconditionally delegate.
9520 * target.h (struct target_ops) <to_mourn_inferior>: Use
9521 TARGET_DEFAULT_FUNC.
9522
098dba18
TT
95232014-02-19 Tom Tromey <tromey@redhat.com>
9524
9525 * target-delegates.c: Rebuild.
9526 * target.c (default_follow_fork): New function.
9527 (target_follow_fork): Unconditionally delegate.
9528 * target.h (struct target_ops) <to_follow_fork>: Use
9529 TARGET_DEFAULT_FUNC.
9530
423a4807
TT
95312014-02-19 Tom Tromey <tromey@redhat.com>
9532
9533 * target-delegates.c: Rebuild.
9534 * target.c (target_kill): Unconditionally delegate.
9535 * target.h (struct target_ops) <to_kill>: Use
9536 TARGET_DEFAULT_NORETURN.
9537
6c7e5e5c
TT
95382014-02-19 Tom Tromey <tromey@redhat.com>
9539
9540 * target-delegates.c: Rebuild.
9541 * target.c (target_masked_watch_num_registers): Unconditionally
9542 delegate.
9543 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9544 Use TARGET_DEFAULT_RETURN.
9545
8b1c364c
TT
95462014-02-19 Tom Tromey <tromey@redhat.com>
9547
9548 * target-delegates.c: Rebuild.
9549 * target.c (target_remove_mask_watchpoint): Unconditionally
9550 delegate.
9551 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9552 TARGET_DEFAULT_RETURN.
9553
cd4ae029
TT
95542014-02-19 Tom Tromey <tromey@redhat.com>
9555
9556 * target-delegates.c: Rebuild.
9557 * target.c (target_insert_mask_watchpoint): Unconditionally
9558 delegate.
9559 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9560 TARGET_DEFAULT_RETURN.
9561
a134316b
TT
95622014-02-19 Tom Tromey <tromey@redhat.com>
9563
9564 * target-delegates.c: Rebuild.
9565 * target.c (target_ranged_break_num_registers): Unconditionally
9566 delegate.
9567 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9568 Use TARGET_DEFAULT_RETURN.
9569
ad5989bd
TT
95702014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target-delegates.c: Rebuild.
9573 * target.c (target_fetch_registers): Unconditionally delegate.
9574 * target.h (struct target_ops) <to_fetch_registers>: Use
9575 TARGET_DEFAULT_NORETURN.
9576
46ee7e8d
TT
95772014-02-19 Tom Tromey <tromey@redhat.com>
9578
9579 * target-delegates.c: Rebuild.
9580 * target.c (update_current_target): Don't inherit or default
9581 to_stop.
9582 * target.h (struct target_ops) <to_stop>: Use
9583 TARGET_DEFAULT_IGNORE.
9584
843f59ed
TT
95852014-02-19 Tom Tromey <tromey@redhat.com>
9586
9587 * target-delegates.c: Rebuild.
9588 * target.c (update_current_target): Don't inherit or default
9589 to_can_run_breakpoint_commands.
9590 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9591 Use TARGET_DEFAULT_RETURN.
9592
ccfde2a0
TT
95932014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * target-delegates.c: Rebuild.
9596 * target.c (update_current_target): Don't inherit or default
9597 to_supports_evaluation_of_breakpoint_conditions.
9598 * target.h (struct target_ops)
9599 <to_supports_evaluation_of_breakpoint_conditions>: Use
9600 TARGET_DEFAULT_RETURN.
9601
0de91722
TT
96022014-02-19 Tom Tromey <tromey@redhat.com>
9603
9604 * target-delegates.c: Rebuild.
9605 * target.c (update_current_target): Don't inherit or default
9606 to_augmented_libraries_svr4_read.
9607 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9608 Use TARGET_DEFAULT_RETURN.
9609
9a7d8b48
TT
96102014-02-19 Tom Tromey <tromey@redhat.com>
9611
9612 * target-delegates.c: Rebuild.
9613 * target.c (update_current_target): Don't inherit or default
9614 to_can_use_agent.
9615 * target.h (struct target_ops) <to_can_use_agent>: Use
9616 TARGET_DEFAULT_RETURN.
9617
d9db5b21
TT
96182014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target-delegates.c: Rebuild.
9621 * target.c (update_current_target): Don't inherit or default
9622 to_use_agent.
9623 * target.h (struct target_ops) <to_use_agent>: Use
9624 TARGET_DEFAULT_NORETURN.
9625
92155eeb
TT
96262014-02-19 Tom Tromey <tromey@redhat.com>
9627
9628 * target-delegates.c: Rebuild.
9629 * target.c (update_current_target): Don't inherit or default
9630 to_traceframe_info.
9631 (return_null): Remove.
9632 * target.h (struct target_ops) <to_traceframe_info>: Use
9633 TARGET_DEFAULT_RETURN.
9634
d6522a22
TT
96352014-02-19 Tom Tromey <tromey@redhat.com>
9636
9637 * target-delegates.c: Rebuild.
9638 * target.c (update_current_target): Don't inherit or default
9639 to_static_tracepoint_markers_by_strid.
9640 * target.h (struct target_ops)
9641 <to_static_tracepoint_markers_by_strid>: Use
9642 TARGET_DEFAULT_NORETURN.
9643
4c3e4425
TT
96442014-02-19 Tom Tromey <tromey@redhat.com>
9645
9646 * target-delegates.c: Rebuild.
9647 * target.c (update_current_target): Don't inherit or default
9648 to_static_tracepoint_marker_at.
9649 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9650 Use TARGET_DEFAULT_RETURN.
9651
dcd6917f
TT
96522014-02-19 Tom Tromey <tromey@redhat.com>
9653
9654 * target-delegates.c: Rebuild.
9655 * target.c (update_current_target): Don't inherit or default
9656 to_set_permissions.
9657 * target.h (struct target_ops) <to_set_permissions>: Use
9658 TARGET_DEFAULT_IGNORE.
9659
22bcceee
TT
96602014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target-delegates.c: Rebuild.
9663 * target.c (update_current_target): Don't inherit or default
9664 to_get_tib_address.
9665 * target.h (struct target_ops) <to_get_tib_address>: Use
9666 TARGET_DEFAULT_NORETURN.
9667
8586ccaa
TT
96682014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * target-delegates.c: Rebuild.
9671 * target.c (update_current_target): Don't inherit or default
9672 to_set_trace_notes.
9673 * target.h (struct target_ops) <to_set_trace_notes>: Use
9674 TARGET_DEFAULT_RETURN.
9675
91df8d1d
TT
96762014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target-delegates.c: Rebuild.
9679 * target.c (update_current_target): Don't initialize
9680 to_set_trace_buffer_size.
9681 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9682 TARGET_DEFAULT_IGNORE.
9683
8d526939
TT
96842014-02-19 Tom Tromey <tromey@redhat.com>
9685
9686 * target-delegates.c: Rebuild.
9687 * target.c (update_current_target): Don't inherit or default
9688 to_set_circular_trace_buffer.
9689 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9690 TARGET_DEFAULT_IGNORE.
9691
0bcfeddf
TT
96922014-02-19 Tom Tromey <tromey@redhat.com>
9693
9694 * target-delegates.c: Rebuild.
9695 * target.c (update_current_target): Don't inherit or default
9696 to_set_disconnected_tracing.
9697 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9698 TARGET_DEFAULT_IGNORE.
9699
9249843f
TT
97002014-02-19 Tom Tromey <tromey@redhat.com>
9701
9702 * target-delegates.c: Rebuild.
9703 * target.c (update_current_target): Don't inherit or default
9704 to_get_min_fast_tracepoint_insn_len.
9705 (return_minus_one): Remove.
9706 * target.h (struct target_ops)
9707 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9708
ace92e7d
TT
97092014-02-19 Tom Tromey <tromey@redhat.com>
9710
9711 * target-delegates.c: Rebuild.
9712 * target.c (update_current_target): Don't inherit or default
9713 to_get_raw_trace_data.
9714 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9715 TARGET_DEFAULT_NORETURN.
9716
08120467
TT
97172014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * target-delegates.c: Rebuild.
9720 * target.c (update_current_target): Don't inherit or default
9721 to_upload_trace_state_variables.
9722 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9723 Use TARGET_DEFAULT_RETURN.
9724
1e949b00
TT
97252014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * target-delegates.c: Rebuild.
9728 * target.c (update_current_target): Don't inherit or default
9729 to_upload_tracepoints.
9730 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9731 TARGET_DEFAULT_RETURN.
9732
a2e6c147
TT
97332014-02-19 Tom Tromey <tromey@redhat.com>
9734
9735 * target-delegates.c: Rebuild.
9736 * target.c (update_current_target): Don't inherit or default
9737 to_save_trace_data.
9738 * target.h (struct target_ops) <to_save_trace_data>: Use
9739 TARGET_DEFAULT_NORETURN.
9740
959bcd0b
TT
97412014-02-19 Tom Tromey <tromey@redhat.com>
9742
9743 * target-delegates.c: Rebuild.
9744 * target.c (update_current_target): Don't inherit or default
9745 to_get_trace_state_variable_value.
9746 * target.h (struct target_ops)
9747 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9748
afc94e66
TT
97492014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * target-delegates.c: Rebuild.
9752 * target.c (update_current_target): Don't inherit or default
9753 to_trace_find.
9754 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9755
e51c07ea
TT
97562014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * target-delegates.c: Rebuild.
9759 * target.c (update_current_target): Don't inherit or default
9760 to_trace_stop.
9761 * target.h (struct target_ops) <to_trace_stop>: Use
9762 TARGET_DEFAULT_NORETURN.
9763
6fea14cd
TT
97642014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target-delegates.c: Rebuild.
9767 * target.c (update_current_target): Don't inherit or default
9768 to_get_tracepoint_status.
9769 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9770 TARGET_DEFAULT_NORETURN.
9771
4072d4ff
TT
97722014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target-delegates.c: Rebuild.
9775 * target.c (update_current_target): Don't inherit or default
9776 to_get_trace_status.
9777 * target.h (struct target_ops) <to_get_trace_status>: Use
9778 TARGET_DEFAULT_RETURN.
9779
25da2e80
TT
97802014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target-delegates.c: Rebuild.
9783 * target.c (update_current_target): Don't inherit or default
9784 to_trace_start.
9785 * target.h (struct target_ops) <to_trace_start>: Use
9786 TARGET_DEFAULT_NORETURN.
9787
86dd181d
TT
97882014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target-delegates.c: Rebuild.
9791 * target.c (update_current_target): Don't inherit or default
9792 to_trace_set_readonly_regions.
9793 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9794 Use TARGET_DEFAULT_NORETURN.
9795
05c41993
TT
97962014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target-delegates.c: Rebuild.
9799 * target.c (update_current_target): Don't inherit or default
9800 to_disable_tracepoint.
9801 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9802 TARGET_DEFAULT_NORETURN.
9803
151f70f1
TT
98042014-02-19 Tom Tromey <tromey@redhat.com>
9805
9806 * target-delegates.c: Rebuild.
9807 * target.c (update_current_target): Don't inherit or default
9808 to_enable_tracepoint.
9809 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9810 TARGET_DEFAULT_NORETURN.
9811
94eb98b9
TT
98122014-02-19 Tom Tromey <tromey@redhat.com>
9813
9814 * target-delegates.c: Rebuild.
9815 * target.c (update_current_target): Don't inherit or default
9816 to_download_trace_state_variable.
9817 * target.h (struct target_ops) <to_download_trace_state_variable>:
9818 Use TARGET_DEFAULT_NORETURN.
9819
719acc4a
TT
98202014-02-19 Tom Tromey <tromey@redhat.com>
9821
9822 * target-delegates.c: Rebuild.
9823 * target.c (update_current_target): Don't inherit or default
9824 to_can_download_tracepoint.
9825 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9826 TARGET_DEFAULT_RETURN.
9827
9a980a22
TT
98282014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * target-delegates.c: Rebuild.
9831 * target.c (update_current_target): Don't inherit or default
9832 to_download_tracepoint.
9833 * target.h (struct target_ops) <to_download_tracepoint>: Use
9834 TARGET_DEFAULT_NORETURN.
9835
5536135b
TT
98362014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target-delegates.c: Rebuild.
9839 * target.c (update_current_target): Don't inherit or default
9840 to_trace_init.
9841 * target.h (struct target_ops) <to_trace_init>: Use
9842 TARGET_DEFAULT_RETURN.
9843
9409d39e
TT
98442014-02-19 Tom Tromey <tromey@redhat.com>
9845
9846 * target-delegates.c: Rebuild.
9847 * target.c (update_current_target): Don't inherit or default
9848 to_supports_string_tracing.
9849 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9850 TARGET_DEFAULT_RETURN.
9851
aab1b22d
TT
98522014-02-19 Tom Tromey <tromey@redhat.com>
9853
9854 * target-delegates.c: Rebuild.
9855 * target.c (update_current_target): Don't inherit or default
9856 to_supports_enable_disable_tracepoint.
9857 * target.h (struct target_ops)
9858 <to_supports_enable_disable_tracepoint>: Use
9859 TARGET_DEFAULT_RETURN.
9860
a7304748
TT
98612014-02-19 Tom Tromey <tromey@redhat.com>
9862
9863 * target-delegates.c: Rebuild.
9864 * target.c (update_current_target): Don't inherit or default
9865 to_supports_multi_process.
9866 * target.h (struct target_ops) <to_supports_multi_process>: Use
9867 TARGET_DEFAULT_RETURN.
9868
4229b31d
TT
98692014-02-19 Tom Tromey <tromey@redhat.com>
9870
9871 * target-delegates.c: Rebuild.
9872 * target.c (update_current_target): Don't inherit or default
9873 to_get_ada_task_ptid.
9874 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9875 TARGET_DEFAULT_FUNC.
9876
43eba180
TT
98772014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target-delegates.c: Rebuild.
9880 * target.c (update_current_target): Don't inherit or default
9881 to_thread_architecture.
9882 * target.h (struct target_ops) <to_thread_architecture>: Use
9883 TARGET_DEFAULT_FUNC.
9884
fe31bf5b
TT
98852014-02-19 Tom Tromey <tromey@redhat.com>
9886
9887 * target-delegates.c: Rebuild.
9888 * target.c (update_current_target): Don't inherit or default
9889 to_execution_direction.
9890 * target.h (struct target_ops) <to_execution_direction>: Use
9891 TARGET_DEFAULT_FUNC.
9892
53e1cfc7
TT
98932014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * target-delegates.c: Rebuild.
9896 * target.c (update_current_target): Don't inherit or default
9897 to_can_execute_reverse.
9898 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9899 TARGET_DEFAULT_RETURN.
9900 (target_can_execute_reverse): Unconditionally delegate.
9901
9bb9d61d
TT
99022014-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 * target-delegates.c: Rebuild.
9905 * target.c (update_current_target): Don't inherit or default
9906 to_goto_bookmark.
9907 (dummy_goto_bookmark): Remove.
9908 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9909 * target.h (struct target_ops) <to_goto_bookmark>: Use
9910 TARGET_DEFAULT_NORETURN.
9911
3dbafbbb
TT
99122014-02-19 Tom Tromey <tromey@redhat.com>
9913
9914 * target-delegates.c: Rebuild.
9915 * target.c (update_current_target): Don't inherit or default
9916 to_get_bookmark.
9917 (dummy_get_bookmark): Remove.
9918 (init_dummy_target): Don't inherit or default to_get_bookmark.
9919 * target.h (struct target_ops) <to_get_bookmark>: Use
9920 TARGET_DEFAULT_NORETURN
9921
16f796b1
TT
99222014-02-19 Tom Tromey <tromey@redhat.com>
9923
9924 * target-delegates.c: Rebuild.
9925 * target.c (update_current_target): Don't inherit or default
9926 to_make_corefile_notes.
9927 (init_dummy_target): Don't initialize to_make_corefile_notes.
9928 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9929 TARGET_DEFAULT_FUNC.
9930
0b5a2719
TT
99312014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * target-delegates.c: Rebuild.
9934 * target.c (update_current_target): Don't inherit or default
9935 to_find_memory_regions.
9936 (init_dummy_target): Don't initialize to_find_memory_regions.
9937 * target.h (struct target_ops) <to_find_memory_regions>: Use
9938 TARGET_DEFAULT_FUNC.
9939
d9cb0195
TT
99402014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target-delegates.c: Rebuild.
9943 * target.c (update_current_target): Don't inherit or default
9944 to_log_command.
9945 * target.h (struct target_ops) <to_log_command>: Use
9946 TARGET_DEFAULT_IGNORE.
9947 (target_log_command): Unconditionally delegate.
9948
830ca330
TT
99492014-02-19 Tom Tromey <tromey@redhat.com>
9950
9951 * target-delegates.c: Rebuild.
9952 * target.c (update_current_target): Don't inherit or default
9953 to_pid_to_exec_file.
9954 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9955 TARGET_DEFAULT_RETURN.
9956
825828fc
TT
99572014-02-19 Tom Tromey <tromey@redhat.com>
9958
9959 * target-delegates.c: Rebuild.
9960 * target.c (update_current_target): Don't inherit or default
9961 to_thread_name.
9962 (target_thread_name): Unconditionally delegate.
9963 * target.h (struct target_ops) <to_thread_name>: Use
9964 TARGET_DEFAULT_RETURN.
9965
4a7e6dda
TT
99662014-02-19 Tom Tromey <tromey@redhat.com>
9967
9968 * target-delegates.c: Rebuild.
9969 * target.c (update_current_target): Don't inherit or default
9970 to_extra_thread_info.
9971 * target.h (struct target_ops) <to_extra_thread_info>: Use
9972 TARGET_DEFAULT_RETURN.
9973
0db88c1d
TT
99742014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target-delegates.c: Rebuild.
9977 * target.c (update_current_target): Don't inherit or default
9978 to_has_exited.
9979 * target.h (struct target_ops) <to_has_exited>: Use
9980 TARGET_DEFAULT_RETURN..
9981
6a9fa051
TT
99822014-02-19 Tom Tromey <tromey@redhat.com>
9983
9984 * target-delegates.c: Rebuild.
9985 * target.c (update_current_target): Don't inherit or default
9986 to_set_syscall_catchpoint.
9987 (return_one): Remove.
9988 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9989 TARGET_DEFAULT_RETURN.
9990
62f64d7a
TT
99912014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target-delegates.c: Rebuild.
9994 * target.c (update_current_target): Don't inherit or default
9995 to_insert_exec_catchpoint.
9996 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9997 TARGET_DEFAULT_RETURN.
9998
cda0f38c
TT
99992014-01-08 Tom Tromey <tromey@redhat.com>
10000
10001 * target-delegates.c: Rebuild.
10002 * target.c (update_current_target): Don't inherit or default
10003 to_insert_exec_catchpoint.
10004 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10005 TARGET_DEFAULT_RETURN.
10006
95c3375e
TT
100072014-02-19 Tom Tromey <tromey@redhat.com>
10008
10009 * target-delegates.c: Rebuild.
10010 * target.c (update_current_target): Don't inherit or default
10011 to_remove_vfork_catchpoint.
10012 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10013 TARGET_DEFAULT_RETURN.
10014
7e18a8dc
TT
100152014-02-19 Tom Tromey <tromey@redhat.com>
10016
10017 * target-delegates.c: Rebuild.
10018 * target.c (update_current_target): Don't inherit or default
10019 to_insert_vfork_catchpoint.
10020 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10021 TARGET_DEFAULT_RETURN.
10022
e1a21fb7
TT
100232014-02-19 Tom Tromey <tromey@redhat.com>
10024
10025 * target-delegates.c: Rebuild.
10026 * target.c (update_current_target): Don't inherit or default
10027 to_remove_fork_catchpoint.
10028 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10029 TARGET_DEFAULT_RETURN.
10030
5958ebeb
TT
100312014-02-19 Tom Tromey <tromey@redhat.com>
10032
10033 * target-delegates.c: Rebuild.
10034 * target.c (update_current_target): Don't inherit or default
10035 to_insert_fork_catchpoint.
10036 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10037 TARGET_DEFAULT_RETURN.
10038
340ba4bf
TT
100392014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * target-delegates.c: Rebuild.
10042 * target.c (update_current_target): Don't inherit or default
10043 to_post_startup_inferior.
10044 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10045 TARGET_DEFAULT_IGNORE.
10046
7634da87
TT
100472014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * target-delegates.c: Rebuild.
10050 * target.c (update_current_target): Don't inherit or default
10051 to_load.
10052 * target.h (struct target_ops) <to_load>: Use
10053 TARGET_DEFAULT_NORETURN.
10054
e19e919f
TT
100552014-02-19 Tom Tromey <tromey@redhat.com>
10056
10057 * target-delegates.c: Rebuild.
10058 * target.c (update_current_target): Don't inherit or default
10059 to_terminal_info.
10060 * target.h (struct target_ops) <to_terminal_info>: Use
10061 TARGET_DEFAULT_FUNC.
10062
c6ea8f79
TT
100632014-02-19 Tom Tromey <tromey@redhat.com>
10064
10065 * target-delegates.c: Rebuild.
10066 * target.c (update_current_target): Don't inherit or default
10067 to_terminal_save_ours.
10068 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10069 TARGET_DEFAULT_IGNORE.
10070
e4a733f1
TT
100712014-02-19 Tom Tromey <tromey@redhat.com>
10072
10073 * target-delegates.c: Rebuild.
10074 * target.c (update_current_target): Don't inherit or default
10075 to_terminal_ours.
10076 * target.h (struct target_ops) <to_terminal_ours>: Use
10077 TARGET_DEFAULT_IGNORE.
10078
74fcbef9
TT
100792014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * target-delegates.c: Rebuild.
10082 * target.c (update_current_target): Don't inherit or default
10083 to_terminal_ours_for_output.
10084 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10085 TARGET_DEFAULT_IGNORE.
10086
ddeaacc9
TT
100872014-02-19 Tom Tromey <tromey@redhat.com>
10088
10089 * target-delegates.c: Rebuild.
10090 * target.c (update_current_target): Don't inherit or default
10091 to_terminal_inferior.
10092 * target.h (struct target_ops) <to_terminal_inferior>: Use
10093 TARGET_DEFAULT_IGNORE.
10094
0343661d
TT
100952014-02-19 Tom Tromey <tromey@redhat.com>
10096
10097 * target-delegates.c: Rebuild.
10098 * target.c (update_current_target): Don't inherit or default
10099 to_terminal_init.
10100 * target.h (struct target_ops) <to_terminal_init>: Use
10101 TARGET_DEFAULT_IGNORE.
10102
77cdffe9
TT
101032014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target-delegates.c: Rebuild.
10106 * target.c (update_current_target): Don't inherit or default
10107 to_can_accel_watchpoint_condition.
10108 * target.h (struct target_ops)
10109 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10110
d03655e4
TT
101112014-02-19 Tom Tromey <tromey@redhat.com>
10112
10113 * target-delegates.c: Rebuild.
10114 * target.c (update_current_target): Don't inherit or default
10115 to_region_ok_for_hw_watchpoint.
10116 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10117 Use TARGET_DEFAULT_FUNC.
10118
65f160a9
TT
101192014-02-19 Tom Tromey <tromey@redhat.com>
10120
10121 * target-delegates.c: Rebuild.
10122 * target.c (update_current_target): Don't inherit or default
10123 to_watchpoint_addr_within_range.
10124 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10125 Use TARGET_DEFAULT_FUNC.
10126
61dd109f
TT
101272014-02-19 Tom Tromey <tromey@redhat.com>
10128
10129 * target-delegates.c: Rebuild.
10130 * target.c (update_current_target): Don't inherit or default
10131 to_remove_watchpoint.
10132 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10133 TARGET_DEFAULT_NORETURN.
10134
016facd4
TT
101352014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * target-delegates.c: Rebuild.
10138 * target.c (update_current_target): Don't inherit or default
10139 to_insert_watchpoint.
10140 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10141 TARGET_DEFAULT_RETURN.
10142
418dabac
TT
101432014-02-19 Tom Tromey <tromey@redhat.com>
10144
10145 * target-delegates.c: Rebuild.
10146 * target.c (update_current_target): Don't inherit or default
10147 to_remove_hw_breakpoint.
10148 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10149 TARGET_DEFAULT_RETURN.
10150
61b371f9
TT
101512014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target-delegates.c: Rebuild.
10154 * target.c (update_current_target): Don't inherit or default
10155 to_insert_hw_breakpoint.
10156 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10157 TARGET_DEFAULT_RETURN.
10158
52b51d06
TT
101592014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target-delegates.c: Rebuild.
10162 * target.c (update_current_target): Don't inherit or default
10163 to_can_use_hw_breakpoint.
10164 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10165 TARGET_DEFAULT_RETURN.
10166
f86e59b2
TT
101672014-02-19 Tom Tromey <tromey@redhat.com>
10168
10169 * target-delegates.c: Rebuild.
10170 * target.c (update_current_target): Don't inherit or default
10171 to_files_info.
10172 * target.h (struct target_ops) <to_files_info>: Use
10173 TARGET_DEFAULT_IGNORE.
10174
6c628163
TT
101752014-02-19 Tom Tromey <tromey@redhat.com>
10176
10177 * target-delegates.c: Rebuild.
10178 * target.c (update_current_target): Don't inherit or default
10179 to_store.
10180 * target.h (struct target_ops) <to_store>: Use
10181 TARGET_DEFAULT_NORETURN.
10182
bebd3233
TT
101832014-02-19 Tom Tromey <tromey@redhat.com>
10184
10185 * target-delegates.c: Rebuild.
10186 * target.c (update_current_target): Don't inherit or default
10187 to_post_attach.
10188 * target.h (struct target_ops) <to_post_attach>: Use
10189 TARGET_DEFAULT_IGNORE.
10190
a53f3625
TT
101912014-02-19 Tom Tromey <tromey@redhat.com>
10192
10193 * target-delegates.c: Rebuild.
10194 * target.c (update_current_target): Don't inherit or default
10195 to_rcmd.
10196 (default_rcmd): New function.
10197 (do_monitor_command): Unconditionally delegate.
10198 * target.h (struct target_ops) <to_rmcd>: Use
10199 TARGET_DEFAULT_FUNC.
10200
e9a29200
TT
102012014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target-delegates.c: Rebuild.
10204 * target.c (init_dummy_target): Don't initialize to_attach.
10205 (target_attach): Unconditionally delegate.
10206 * target.h (struct target_ops) <to_attach>: Use
10207 TARGET_DEFAULT_FUNC.
10208
09da0d0a
TT
102092014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target-delegates.c: Rebuild.
10212 * target.c (target_detach): Unconditionally delegate.
10213 (init_dummy_target): Don't initialize to_detach.
10214 * target.h (struct target_ops) <to_detach>: Use
10215 TARGET_DEFAULT_IGNORE.
10216
5436ff03
TT
102172014-02-19 Tom Tromey <tromey@redhat.com>
10218
10219 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10220 Add argument.
10221 (target_augmented_libraries_svr4_read): Add argument.
10222 * target.c (update_current_target): Update.
10223 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10224 argument.
10225
f0d960ea
TT
102262014-02-19 Tom Tromey <tromey@redhat.com>
10227
10228 * target.h (struct target_ops) <to_call_history_range>: Add
10229 argument.
10230 * target.c (target_call_history_range): Add argument.
10231 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10232 argument.
10233 (record_btrace_call_history_from): Update.
10234
ec0aea04
TT
102352014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target.h (struct target_ops) <to_call_history_from>: Add
10238 argument.
10239 * target.c (target_call_history_from): Add argument.
10240 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10241 argument.
10242
5df2fcba
TT
102432014-02-19 Tom Tromey <tromey@redhat.com>
10244
10245 * target.h (struct target_ops) <to_call_history>: Add argument.
10246 * target.c (target_call_history): Add argument.
10247 * record-btrace.c (record_btrace_call_history): Add 'self'
10248 argument.
10249
4e99c6b7
TT
102502014-02-19 Tom Tromey <tromey@redhat.com>
10251
10252 * target.h (struct target_ops) <to_insn_history_range>: Add
10253 argument.
10254 * target.c (target_insn_history_range): Add argument.
10255 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10256 argument.
10257 (record_btrace_insn_history_from): Update.
10258
9abc3ff3
TT
102592014-02-19 Tom Tromey <tromey@redhat.com>
10260
10261 * target.h (struct target_ops) <to_insn_history_from>: Add
10262 argument.
10263 * target.c (target_insn_history_from): Add argument.
10264 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10265 argument.
10266
7a6c5609
TT
102672014-02-19 Tom Tromey <tromey@redhat.com>
10268
10269 * target.h (struct target_ops) <to_insn_history>: Add argument.
10270 * target.c (target_insn_history): Add argument.
10271 * record-btrace.c (record_btrace_insn_history): Add 'self'
10272 argument.
10273
606183ac
TT
102742014-02-19 Tom Tromey <tromey@redhat.com>
10275
10276 * target.h (struct target_ops) <to_goto_record>: Add argument.
10277 * target.c (target_goto_record): Add argument.
10278 * record-full.c (record_full_goto): Add 'self' argument.
10279 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10280
307a1b91
TT
102812014-02-19 Tom Tromey <tromey@redhat.com>
10282
10283 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10284 * target.c (target_goto_record_end): Add argument.
10285 * record-full.c (record_full_goto_end): Add 'self' argument.
10286 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10287
08475817
TT
102882014-02-19 Tom Tromey <tromey@redhat.com>
10289
10290 * target.h (struct target_ops) <to_goto_record_begin>: Add
10291 argument.
10292 * target.c (target_goto_record_begin): Add argument.
10293 * record-full.c (record_full_goto_begin): Add 'self' argument.
10294 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10295 argument.
10296
1c63c994
TT
102972014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target.h (struct target_ops) <to_record_is_replaying>: Add
10300 argument.
10301 * target.c (target_record_is_replaying): Add argument.
10302 * record-full.c (record_full_is_replaying): Add 'self' argument.
10303 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10304 argument.
10305 (record_btrace_xfer_partial, record_btrace_store_registers)
10306 (record_btrace_prepare_to_store, record_btrace_resume)
10307 (record_btrace_wait, record_btrace_decr_pc_after_break)
10308 (record_btrace_find_new_threads, record_btrace_thread_alive):
10309 Update.
10310
d1b55219
TT
103112014-02-19 Tom Tromey <tromey@redhat.com>
10312
10313 * target.h (struct target_ops) <to_delete_record>: Add argument.
10314 * target.c (target_delete_record): Add argument.
10315 * record-full.c (record_full_delete): Add 'self' argument.
10316
1390f529
TT
103172014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target.h (struct target_ops) <to_save_record>: Add argument.
10320 * target.c (target_save_record): Add argument.
10321 * record-full.c (record_full_save): Add 'self' argument.
10322 (record_full_save): Add 'self' argument.
10323
630d6a4a
TT
103242014-02-19 Tom Tromey <tromey@redhat.com>
10325
10326 * target.h (struct target_ops) <to_info_record>: Add argument.
10327 * target.c (target_info_record): Add argument.
10328 * record.c (info_record_command): Add argument.
10329 * record-full.c (record_full_info): Add 'self' argument.
10330 * record-btrace.c (record_btrace_info): Add 'self' argument.
10331
c6cd7c02
TT
103322014-02-19 Tom Tromey <tromey@redhat.com>
10333
10334 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10335 * target.c (target_stop_recording): Add argument.
10336 * record.c (record_stop): Add argument.
10337 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10338 argument.
10339
39c49f83
TT
103402014-02-19 Tom Tromey <tromey@redhat.com>
10341
10342 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10343 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10344 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10345 argument.
10346 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10347 (_initialize_amd64_linux_nat): Use it.
10348 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10349 (_initialize_i386_linux_nat): Use it.
10350
1777056d
TT
103512014-02-19 Tom Tromey <tromey@redhat.com>
10352
10353 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10354 * target.c (target_teardown_btrace): Add argument.
10355 * remote.c (remote_teardown_btrace): Add 'self' argument.
10356 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10357 argument.
10358 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10359 argument.
10360
25e95349
TT
103612014-02-19 Tom Tromey <tromey@redhat.com>
10362
10363 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10364 * target.c (target_disable_btrace): Add argument.
10365 * remote.c (remote_disable_btrace): Add 'self' argument.
10366 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10367 argument.
10368 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10369 argument.
10370
e3c49f88
TT
103712014-02-19 Tom Tromey <tromey@redhat.com>
10372
10373 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10374 * target.c (target_enable_btrace): Add argument.
10375 * remote.c (remote_enable_btrace): Add 'self' argument.
10376 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10377 argument.
10378 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10379 argument.
10380
fe38f897
TT
103812014-02-19 Tom Tromey <tromey@redhat.com>
10382
10383 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10384 (target_can_use_agent): Add argument.
10385 * target.c (update_current_target): Update.
10386 * remote.c (remote_can_use_agent): Add 'self' argument.
10387 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10388
2c152180
TT
103892014-02-19 Tom Tromey <tromey@redhat.com>
10390
10391 * target.h (struct target_ops) <to_use_agent>: Add argument.
10392 (target_use_agent): Add argument.
10393 * target.c (update_current_target): Update.
10394 * remote.c (remote_use_agent): Add 'self' argument.
10395 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10396
a893e81f
TT
103972014-02-19 Tom Tromey <tromey@redhat.com>
10398
10399 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10400 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10401 (target_traceframe_info): Add argument.
10402 * target.c (update_current_target): Update.
10403 * remote.c (remote_traceframe_info): Add 'self' argument.
10404 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10405
c686c57f
TT
104062014-02-19 Tom Tromey <tromey@redhat.com>
10407
10408 * target.h (target_static_tracepoint_markers_by_strid): Add
10409 argument.
10410 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10411 'self' argument.
10412 * target.c (update_current_target): Update.
10413 * remote.c (struct target_ops)
10414 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10415 * linux-nat.c (struct target_ops)
10416 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10417
61fc905d
TT
104182014-02-19 Tom Tromey <tromey@redhat.com>
10419
10420 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10421 Add argument.
10422 (target_static_tracepoint_marker_at): Add argument.
10423 * target.c (update_current_target): Update.
10424 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10425 argument.
10426
c378d69d
TT
104272014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10430 (target_set_permissions): Add argument.
10431 * target.c (update_current_target): Update.
10432 * remote.c (remote_set_permissions): Add 'self' argument.
10433 (remote_start_remote): Update.
10434
bd7ae0f5
TT
104352014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10438 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10439 (target_get_tib_address): Add argument.
10440 * target.c (update_current_target): Update.
10441 * remote.c (remote_get_tib_address): Add 'self' argument.
10442
d9e68a2c
TT
104432014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10446 (target_set_trace_notes): Add argument.
10447 * target.c (update_current_target): Update.
10448 * remote.c (remote_set_trace_notes): Add 'self' argument.
10449
4da384be
TT
104502014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10453 argument.
10454 (target_set_trace_buffer_size): Add argument.
10455 * target.c (update_current_target): Update.
10456 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10457
736d5b1f
TT
104582014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10461 argument.
10462 (target_set_circular_trace_buffer): Add argument.
10463 * target.c (update_current_target): Update.
10464 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10465 argument.
10466
37b25738
TT
104672014-02-19 Tom Tromey <tromey@redhat.com>
10468
10469 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10470 argument.
10471 (target_set_disconnected_tracing): Add argument.
10472 * target.c (update_current_target): Update.
10473 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10474
0e67620a
TT
104752014-02-19 Tom Tromey <tromey@redhat.com>
10476
10477 * target.h (struct target_ops)
10478 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10479 (target_get_min_fast_tracepoint_insn_len): Add argument.
10480 * target.c (update_current_target): Update.
10481 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10482 argument.
10483
88ee6f45
TT
104842014-02-19 Tom Tromey <tromey@redhat.com>
10485
10486 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10487 argument.
10488 (target_get_raw_trace_data): Add argument.
10489 * target.c (update_current_target): Update.
10490 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10491
181e3713
TT
104922014-02-19 Tom Tromey <tromey@redhat.com>
10493
10494 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10495 Add argument.
10496 (target_upload_trace_state_variables): Add argument.
10497 * target.c (update_current_target): Update.
10498 * remote.c (remote_upload_trace_state_variables): Add 'self'
10499 argument.
10500 (remote_start_remote): Update.
10501
ab6617cc
TT
105022014-02-19 Tom Tromey <tromey@redhat.com>
10503
10504 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10505 argument.
10506 (target_upload_tracepoints): Add argument.
10507 * target.c (update_current_target): Update.
10508 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10509 (remote_start_remote): Update.
10510
dc3decaf
TT
105112014-02-19 Tom Tromey <tromey@redhat.com>
10512
10513 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10514 (target_save_trace_data): Add argument.
10515 * target.c (update_current_target): Update.
10516 * remote.c (remote_save_trace_data): Add 'self' argument.
10517
4011015b
TT
105182014-02-19 Tom Tromey <tromey@redhat.com>
10519
10520 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10521 argument.
10522 * target.h (struct target_ops)
10523 <to_get_trace_state_variable_value>: Add argument.
10524 (target_get_trace_state_variable_value): Add argument.
10525 * target.c (update_current_target): Update.
10526 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10527 argument.
10528 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10529
bd4c6793
TT
105302014-02-19 Tom Tromey <tromey@redhat.com>
10531
10532 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10533 * target.h (struct target_ops) <to_trace_find>: Add argument.
10534 (target_trace_find): Add argument.
10535 * target.c (update_current_target): Update.
10536 * remote.c (remote_trace_find): Add 'self' argument.
10537 * ctf.c (ctf_trace_find): Add 'self' argument.
10538
74499f1b
TT
105392014-02-19 Tom Tromey <tromey@redhat.com>
10540
10541 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10542 (target_trace_stop): Add argument.
10543 * target.c (update_current_target): Update.
10544 * remote.c (remote_trace_stop): Add 'self' argument.
10545
db90e85c
TT
105462014-02-19 Tom Tromey <tromey@redhat.com>
10547
10548 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10549 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10550 argument.
10551 (target_get_tracepoint_status): Add argument.
10552 * target.c (update_current_target): Update.
10553 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10554
8bd200f1
TT
105552014-02-19 Tom Tromey <tromey@redhat.com>
10556
10557 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10558 * target.h (struct target_ops) <to_get_trace_status>: Add
10559 argument.
10560 (target_get_trace_status): Add argument.
10561 * target.c (update_current_target): Update.
10562 * remote.c (remote_get_trace_status): Add 'self' argument.
10563 (remote_start_remote, remote_can_download_tracepoint): Update.
10564 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10565
e2d1aae3
TT
105662014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target.h (struct target_ops) <to_trace_start>: Add argument.
10569 (target_trace_start): Add argument.
10570 * target.c (update_current_target): Update.
10571 * remote.c (remote_trace_start): Add 'self' argument.
10572
583f9a86
TT
105732014-02-19 Tom Tromey <tromey@redhat.com>
10574
10575 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10576 Add argument.
10577 (target_trace_set_readonly_regions): Add argument.
10578 * target.c (update_current_target): Update.
10579 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10580 argument.
10581
780b049c
TT
105822014-02-19 Tom Tromey <tromey@redhat.com>
10583
10584 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10585 argument.
10586 (target_disable_tracepoint): Add argument.
10587 * target.c (update_current_target): Update.
10588 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10589
46670d57
TT
105902014-02-19 Tom Tromey <tromey@redhat.com>
10591
10592 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10593 argument.
10594 (target_enable_tracepoint): Add argument.
10595 * target.c (update_current_target): Update.
10596 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10597
559d2b81
TT
105982014-02-19 Tom Tromey <tromey@redhat.com>
10599
10600 * target.h (struct target_ops) <to_download_trace_state_variable>:
10601 Add argument.
10602 (target_download_trace_state_variable): Add argument.
10603 * target.c (update_current_target): Update.
10604 * remote.c (remote_download_trace_state_variable): Add 'self'
10605 argument.
10606
a52a8357
TT
106072014-02-19 Tom Tromey <tromey@redhat.com>
10608
10609 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10610 argument.
10611 (target_can_download_tracepoint): Add argument.
10612 * target.c (update_current_target): Update.
10613 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10614
548f7808
TT
106152014-02-19 Tom Tromey <tromey@redhat.com>
10616
10617 * target.h (struct target_ops) <to_download_tracepoint>: Add
10618 argument.
10619 (target_download_tracepoint): Add argument.
10620 * target.c (update_current_target): Update.
10621 * remote.c (remote_download_tracepoint): Add 'self' argument.
10622
ecae04e1
TT
106232014-02-19 Tom Tromey <tromey@redhat.com>
10624
10625 * target.h (struct target_ops) <to_trace_init>: Add argument.
10626 (target_trace_init): Add argument.
10627 * target.c (update_current_target): Update.
10628 * remote.c (remote_trace_init): Add 'self' argument.
10629
fab5aa7c
TT
106302014-02-19 Tom Tromey <tromey@redhat.com>
10631
10632 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10633 * target.c (target_fileio_readlink): Add argument.
10634 * remote.c (remote_hostio_readlink): Add 'self' argument.
10635 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10636
dbbca37d
TT
106372014-02-19 Tom Tromey <tromey@redhat.com>
10638
10639 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10640 * target.c (target_fileio_unlink): Add argument.
10641 * remote.c (remote_hostio_unlink): Add 'self' argument.
10642 (remote_file_delete): Update.
10643 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10644
df39ea25
TT
106452014-02-19 Tom Tromey <tromey@redhat.com>
10646
10647 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10648 * target.c (target_fileio_close): Add argument.
10649 * remote.c (remote_hostio_close): Add 'self' argument.
10650 (remote_hostio_close_cleanup): Update.
10651 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10652 Update.
10653 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10654
a3be983c
TT
106552014-02-19 Tom Tromey <tromey@redhat.com>
10656
10657 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10658 * target.c (target_fileio_pread): Add argument.
10659 * remote.c (remote_hostio_pread): Add 'self' argument.
10660 (remote_bfd_iovec_pread, remote_file_get): Update.
10661 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10662
0d866f62
TT
106632014-02-19 Tom Tromey <tromey@redhat.com>
10664
10665 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10666 * target.c (target_fileio_pwrite): Add argument.
10667 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10668 (remote_file_put): Update.
10669 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10670
cd897586
TT
106712014-02-19 Tom Tromey <tromey@redhat.com>
10672
10673 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10674 * target.c (target_fileio_open): Add argument.
10675 * remote.c (remote_hostio_open): Add 'self' argument.
10676 (remote_bfd_iovec_open): Add 'self' argument.
10677 (remote_file_put): Add 'self' argument.
10678 (remote_file_get): Add 'self' argument.
10679 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10680
78eff0ec
TT
106812014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10684 Add argument.
10685 (target_can_run_breakpoint_commands): Add argument.
10686 * target.c (update_current_target): Update.
10687 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10688 argument.
10689 (remote_insert_breakpoint): Add 'self' argument.
10690 (remote_insert_hw_breakpoint): Add 'self' argument.
10691 (remote_can_run_breakpoint_commands): Add 'self' argument.
10692
efcc2da7
TT
106932014-02-19 Tom Tromey <tromey@redhat.com>
10694
10695 * target.h (struct target_ops)
10696 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10697 (target_supports_evaluation_of_breakpoint_conditions): Add
10698 argument.
10699 * target.c (update_current_target): Update.
10700 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10701 argument.
10702 (remote_insert_breakpoint): Add 'self' argument.
10703 (remote_insert_hw_breakpoint): Add 'self' argument.
10704 (remote_supports_cond_breakpoints): Add 'self' argument.
10705
6de37a3a
TT
107062014-02-19 Tom Tromey <tromey@redhat.com>
10707
10708 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10709 argument.
10710 (target_supports_string_tracing): Add argument.
10711 * target.c (update_current_target): Update.
10712 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10713
2bfc0540
TT
107142014-02-19 Tom Tromey <tromey@redhat.com>
10715
10716 * target.h (struct target_ops)
10717 <to_supports_disable_randomization>: Add argument.
10718 * target.c (find_default_supports_disable_randomization): Add
10719 argument.
10720 (target_supports_disable_randomization): Add argument.
10721 (find_default_supports_disable_randomization): Add 'self'
10722 argument.
10723 * remote.c (extended_remote_supports_disable_randomization): Add
10724 'self' argument.
10725 (remote_supports_disable_randomization): Add 'self' argument.
10726 (extended_remote_create_inferior): Update.
10727 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10728 'self' argument.
10729
7d178d6a
TT
107302014-02-19 Tom Tromey <tromey@redhat.com>
10731
10732 * target.h (struct target_ops)
10733 <to_supports_enable_disable_tracepoint>: Add argument.
10734 (target_supports_enable_disable_tracepoint): Add argument.
10735 * target.c (update_current_target): Update.
10736 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10737 argument.
10738
86ce2668
TT
107392014-02-19 Tom Tromey <tromey@redhat.com>
10740
10741 * target.h (struct target_ops) <to_supports_multi_process>: Add
10742 argument.
10743 (target_supports_multi_process): Add argument.
10744 * target.c (update_current_target): Update.
10745 * remote.c (remote_supports_multi_process): Add 'self' argument.
10746 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10747 argument.
10748 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10749 argument.
10750
4c612759
TT
107512014-02-19 Tom Tromey <tromey@redhat.com>
10752
10753 * target.h (struct target_ops) <to_execution_direction>: Add
10754 argument.
10755 (target_execution_direction): Add argument.
10756 * target.c (default_execution_direction): Add 'self' argument.
10757 * record-full.c (record_full_execution_direction): Add 'self'
10758 argument.
10759
19db3e69
TT
107602014-02-19 Tom Tromey <tromey@redhat.com>
10761
10762 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10763 argument.
10764 (target_can_execute_reverse): Add argument.
10765 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10766 * record-full.c (record_full_can_execute_reverse): Add 'self'
10767 argument.
10768 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10769 argument.
10770
1e6b91a4
TT
107712014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10774 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10775 argument.
10776 (target_get_ada_task_ptid): Add argument.
10777 * target.c (update_current_target): Update.
10778 (default_get_ada_task_ptid): Add 'self' argument.
10779 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10780 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10781 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10782 argument.
10783 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10784 argument.
10785 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10786 argument.
10787 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10788 argument.
10789 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10790 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10791 argument.
10792
3c80fb48
TT
107932014-02-19 Tom Tromey <tromey@redhat.com>
10794
10795 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10796 (target_goto_bookmark): Add argument.
10797 * target.c (dummy_goto_bookmark): Add 'self' argument.
10798 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10799
dd0e2830
TT
108002014-02-19 Tom Tromey <tromey@redhat.com>
10801
10802 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10803 (target_get_bookmark): Add argument.
10804 * target.c (dummy_get_bookmark): Add 'self' argument.
10805 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10806
fc6691b2
TT
108072014-02-19 Tom Tromey <tromey@redhat.com>
10808
10809 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10810 argument.
10811 (target_make_corefile_notes): Add argument.
10812 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10813 * procfs.c (procfs_make_note_section): Add 'self' argument.
10814 (procfs_make_note_section): Add 'self' argument.
10815 (procfs_make_note_section): Add 'self' argument.
10816 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10817 argument.
10818 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10819 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10820 * exec.c (exec_make_note_section): Add 'self' argument.
10821 (exec_make_note_section): Add 'self' argument.
10822
2e73927c
TT
108232014-02-19 Tom Tromey <tromey@redhat.com>
10824
10825 * target.h (struct target_ops) <to_find_memory_regions>: Add
10826 argument.
10827 (target_find_memory_regions): Add argument.
10828 * target.c (dummy_find_memory_regions): Add 'self' argument.
10829 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10830 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10831 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10832 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10833 * exec. (exec_do_find_memory_regions): New global.
10834 (exec_set_find_memory_regions): Rewrite.
10835 (exec_find_memory_regions): New function.
10836 (init_exec_ops): Use exec_find_memory_regions.
10837
2a9a2795
TT
108382014-02-19 Tom Tromey <tromey@redhat.com>
10839
10840 * target.h (struct target_ops) <to_supports_non_stop>: Add
10841 argument.
10842 * target.c (find_default_supports_non_stop): Add argument.
10843 (target_supports_non_stop): Add argument.
10844 (find_default_supports_non_stop): Add 'self' argument.
10845 * remote.c (remote_supports_non_stop): Add 'self' argument.
10846 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10847
4ab76ea3
TT
108482014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * target.h (struct target_ops) <to_log_command>: Add argument.
10851 (target_log_command): Add argument.
10852 * serial.h (serial_log_command): Add 'self' argument.
10853 * serial.c (serial_log_command): Add 'self' argument.
10854
8dd27370
TT
108552014-02-19 Tom Tromey <tromey@redhat.com>
10856
10857 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10858 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10859 argument.
10860 (target_pid_to_exec_file): Add argument.
10861 * target.c (debug_to_pid_to_exec_file): Add argument.
10862 (update_current_target): Update.
10863 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10864 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10865 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10866 (linux_handle_extended_wait): Update.
10867 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10868 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10869 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10870 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10871
1aac633b
TT
108722014-02-19 Tom Tromey <tromey@redhat.com>
10873
10874 * target.h (struct target_ops) <to_rcmd>: Add argument.
10875 (target_rcmd): Add argument.
10876 * target.c (debug_to_rcmd): Add argument.
10877 (update_current_target, do_monitor_command): Update.
10878 * remote.c (remote_rcmd): Add 'self' argument.
10879 * monitor.c (monitor_rcmd): Add 'self' argument.
10880
1eab8a48
TT
108812014-02-19 Tom Tromey <tromey@redhat.com>
10882
10883 * windows-nat.c (windows_stop): Add 'self' argument.
10884 * target.h (struct target_ops) <to_stop>: Add argument.
10885 * target.c (target_stop): Add argument.
10886 (debug_to_stop): Add argument.
10887 (update_current_target): Update.
10888 * remote.c (remote_stop): Add 'self' argument.
10889 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10890 (gdbsim_cntrl_c): Update.
10891 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10892 * procfs.c (procfs_stop): Add 'self' argument.
10893 * nto-procfs.c (procfs_stop): Add 'self' argument.
10894 * monitor.c (monitor_stop): Add 'self' argument.
10895 (monitor_open): Update.
10896 * linux-nat.c (linux_nat_stop): Add argument.
10897 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10898 * gnu-nat.c (gnu_stop): Add 'self' argument.
10899 * darwin-nat.c (darwin_stop): Add 'self' argument.
10900
503a628d
TT
109012014-02-19 Tom Tromey <tromey@redhat.com>
10902
10903 * target.h (struct target_ops) <to_thread_name>: Add argument.
10904 * target.c (target_thread_name): Add argument.
10905 (update_current_target): Update.
10906 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10907
c15906d8
TT
109082014-02-19 Tom Tromey <tromey@redhat.com>
10909
10910 * target.h (struct target_ops) <to_extra_thread_info>: Add
10911 argument.
10912 (target_extra_thread_info): Add argument.
10913 * target.c (update_current_target): Update.
10914 * remote.c (remote_threads_extra_info): Add 'self' argument.
10915 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10916 argument.
10917 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10918 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10919 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10920 argument.
10921 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10922 argument.
10923 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10924 argument.
10925 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10926 argument.
10927
daf5e9b6
TT
109282014-02-19 Tom Tromey <tromey@redhat.com>
10929
10930 * target.h (struct target_ops) <to_program_signals>: Add argument.
10931 * target.c (target_program_signals): Add argument.
10932 * remote.c (remote_program_signals): Add 'self' argument.
10933
94bedb42
TT
109342014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10937 * target.c (target_pass_signals): Add argument.
10938 * remote.c (remote_pass_signals): Add 'self' argument.
10939 (remote_start_remote): Update.
10940 * procfs.c (procfs_pass_signals): Add 'self' argument.
10941 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10942 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10943 (linux_nat_create_inferior, linux_nat_attach): Update.
10944
da82bd6b
TT
109452014-02-19 Tom Tromey <tromey@redhat.com>
10946
10947 * windows-nat.c (windows_can_run): Add 'self' argument.
10948 * target.h (struct target_ops) <to_can_run>: Add argument.
10949 (target_can_run): Add argument.
10950 * target.c (debug_to_can_run): Add argument.
10951 (update_current_target): Update.
10952 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10953 * inf-child.c (inf_child_can_run): Add 'self' argument.
10954 * go32-nat.c (go32_can_run): Add 'self' argument.
10955
d796e1d6
TT
109562014-02-19 Tom Tromey <tromey@redhat.com>
10957
10958 * target.h (struct target_ops) <to_has_exited>: Add argument.
10959 (target_has_exited): Add argument.
10960 * target.c (debug_to_has_exited): Add argument.
10961 (update_current_target): Update.
10962
ff214e67
TT
109632014-02-19 Tom Tromey <tromey@redhat.com>
10964
10965 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10966 argument.
10967 (target_set_syscall_catchpoint): Add argument.
10968 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10969 argument.
10970 * target.c (update_current_target): Update.
10971
758e29d2
TT
109722014-02-19 Tom Tromey <tromey@redhat.com>
10973
10974 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10975 argument.
10976 (target_remove_exec_catchpoint): Add argument.
10977 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10978 (update_current_target): Update.
10979 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10980 argument.
10981
ba025e51
TT
109822014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10985 argument.
10986 (target_insert_exec_catchpoint): Add argument.
10987 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10988 (update_current_target): Update.
10989 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10990 argument.
10991
e98cf0cd
TT
109922014-02-19 Tom Tromey <tromey@redhat.com>
10993
10994 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10995 argument.
10996 (target_remove_vfork_catchpoint): Add argument.
10997 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10998 (update_current_target): Update.
10999 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11000 argument.
11001
3ecc7da0
TT
110022014-02-19 Tom Tromey <tromey@redhat.com>
11003
11004 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11005 argument.
11006 (target_insert_vfork_catchpoint): Add argument.
11007 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11008 (update_current_target): Update.
11009 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11010 argument.
11011
973fc227
TT
110122014-02-19 Tom Tromey <tromey@redhat.com>
11013
11014 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11015 argument.
11016 (target_remove_fork_catchpoint): Add argument.
11017 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11018 (update_current_target): Update.
11019 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11020 argument.
11021
a863b201
TT
110222014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11025 argument.
11026 (target_insert_fork_catchpoint): Add argument.
11027 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11028 (update_current_target): Update.
11029 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11030 argument.
11031
2e97a79e
TT
110322014-02-19 Tom Tromey <tromey@redhat.com>
11033
11034 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11035 argument.
11036 (target_post_startup_inferior): Add argument.
11037 * target.c (debug_to_post_startup_inferior): Add argument.
11038 (update_current_target): Update.
11039 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11040 argument.
11041 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11042 argument.
11043 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11044 argument.
11045 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11046 argument.
11047 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11048 'self' argument.
11049 (super_post_startup_inferior): Likewise.
11050 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11051 'self' argument.
11052 (super_post_startup_inferior): Likewise.
11053 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11054 Add 'self' argument.
11055 (super_post_startup_inferior): Likewise.
11056
71a9f134
TT
110572014-02-19 Tom Tromey <tromey@redhat.com>
11058
11059 * target.h (struct target_ops) <to_load>: Add argument.
11060 * target.c (target_load): Add argument.
11061 (debug_to_load): Add argument.
11062 (update_current_target): Update.
11063 * remote.c (remote_load): Add 'self' argument.
11064 * remote-sim.c (gdbsim_load): Add 'self' argument.
11065 * remote-mips.c (mips_load): Add 'self' argument.
11066 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11067 * monitor.c (monitor_load): Add 'self' argument.
11068 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11069
0a4f40a2
TT
110702014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11073 (target_terminal_info): Add argument.
11074 * target.c (debug_to_terminal_info): Add argument.
11075 (default_terminal_info): Likewise.
11076 * inflow.c (child_terminal_info): Add 'self' argument.
11077 * inferior.h (child_terminal_info): Add 'self' argument.
11078 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11079
ae3bd431
TT
110802014-02-19 Tom Tromey <tromey@redhat.com>
11081
11082 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11083 argument.
11084 (target_terminal_save_ours): Add argument.
11085 * target.c (debug_to_terminal_save_ours): Add argument.
11086 (update_current_target): Update.
11087 * inflow.c (terminal_save_ours): Add 'self' argument.
11088 * inferior.h (terminal_save_ours): Add 'self' argument.
11089
e3594fd1
TT
110902014-02-19 Tom Tromey <tromey@redhat.com>
11091
11092 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11093 (target_terminal_ours): Add argument.
11094 * target.c (debug_to_terminal_ours): Add argument.
11095 (update_current_target): Update.
11096 * remote.c (remote_terminal_ours): Add 'self' argument.
11097 (remote_close): Update.
11098 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11099 * inflow.c (terminal_ours): Add 'self' argument.
11100 * inferior.h (terminal_ours): Add 'self' argument.
11101 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11102
2e1e1a19
TT
111032014-02-19 Pedro Alves <palves@redhat.com>
11104 Tom Tromey <tromey@redhat.com>
11105
11106 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11107 argument.
11108 (target_terminal_ours_for_output): Add argument.
11109 * target.c (debug_to_terminal_ours_for_output): Add argument.
11110 (update_current_target): Update.
11111 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11112 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11113 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11114
d2f640d4
TT
111152014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * target.h (struct target_ops) <to_terminal_inferior>: Add
11118 argument.
11119 * target.c (target_terminal_inferior): Add argument.
11120 (update_current_target): Update.
11121 * remote.c (remote_terminal_inferior): Add 'self' argument.
11122 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11123 * inflow.c (terminal_inferior): Add 'self' argument.
11124 * inferior.h (terminal_inferior): Add 'self' argument.
11125 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11126 (go32_terminal_inferior): Add 'self' argument.
11127
c42bf286
TT
111282014-02-19 Tom Tromey <tromey@redhat.com>
11129
11130 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11131 (target_terminal_init): Add argument.
11132 * target.c (debug_to_terminal_init): Add argument.
11133 (update_current_target): Update.
11134 * inflow.c (terminal_init_inferior): Add 'self' argument.
11135 * inferior.h (terminal_init_inferior): Add 'self' argument.
11136 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11137 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11138
c3a5ff89
TT
111392014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target.h (struct target_ops)
11142 <to_can_accel_watchpoint_condition>: Add argument.
11143 (target_can_accel_watchpoint_condition): Add argument.
11144 * target.c (debug_to_can_accel_watchpoint_condition): Add
11145 argument.
11146 (update_current_target): Update.
11147 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11148 'self' argument.
11149
31568a15
TT
111502014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11153 Add argument.
11154 (target_region_ok_for_hw_watchpoint): Add argument.
11155 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11156 (default_region_ok_for_hw_watchpoint): Add argument.
11157 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11158 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11159 argument.
11160 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11161 argument.
11162 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11163 argument.
11164 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11165 'self' argument.
11166 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11167 'self' argument.
11168 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11169 'self' argument.
11170 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11171 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11172 'self' argument.
11173 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11174 Add 'self' argument.
11175
7bb99c53
TT
111762014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11179 argument.
11180 (target_insert_watchpoint): Add argument.
11181 * target.c (debug_to_insert_watchpoint): Add argument.
11182 (update_current_target): Update.
11183 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11184 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11185 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11186 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11187 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11188 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11189 argument.
11190 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11191 (procfs_insert_hw_watchpoint): Add 'self' argument.
11192 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11193 argument.
11194 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11195 argument.
11196 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11197 argument.
11198 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11199 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11200 argument.
11201 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11202 'self' argument.
11203
11b5219a
TT
112042014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11207 argument.
11208 (target_remove_watchpoint): Add argument.
11209 * target.c (debug_to_remove_watchpoint): Add argument.
11210 (update_current_target): Update.
11211 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11212 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11213 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11214 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11215 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11216 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11217 argument.
11218 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11219 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11220 argument.
11221 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11222 argument.
11223 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11224 argument.
11225 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11226 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11227 argument.
11228 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11229 'self' argument.
11230
a64dc96c
TT
112312014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11234 argument.
11235 (target_remove_hw_breakpoint): Add argument.
11236 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11237 (update_current_target): Update.
11238 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11239 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11240 argument.
11241 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11242 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11243 argument.
11244 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11245 'self' argument.
11246
23a26771
TT
112472014-02-19 Tom Tromey <tromey@redhat.com>
11248
11249 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11250 argument.
11251 (target_insert_hw_breakpoint): Add argument.
11252 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11253 (update_current_target): Update.
11254 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11255 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11256 argument.
11257 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11258 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11259 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11260 argument.
11261 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11262 'self' argument.
11263
5461485a
TT
112642014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11267 argument.
11268 (target_can_use_hardware_watchpoint): Add argument.
11269 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11270 (update_current_target): Update.
11271 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11272 argument.
11273 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11274 argument.
11275 * remote.c (remote_check_watch_resources): Add 'self' argument.
11276 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11277 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11278 argument.
11279 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11280 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11281 argument.
11282 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11283 argument.
11284 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11285 argument.
11286 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11287 argument.
11288 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11289 argument.
11290 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11291 argument.
11292 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11293 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11294 argument.
11295 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11296 'self' argument.
11297
f045800c
TT
112982014-02-19 Tom Tromey <tromey@redhat.com>
11299
11300 * target.h (struct target_ops) <to_post_attach>: Add argument.
11301 (target_post_attach): Add argument.
11302 * target.c (debug_to_post_attach): Add argument.
11303 (update_current_target): Update.
11304 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11305 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11306 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11307 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11308 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11309
de90e03d
TT
113102014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * windows-nat.c (windows_close): Add 'self' argument.
11313 * tracepoint.c (tfile_close): Add 'self' argument.
11314 * target.h (struct target_ops) <to_close>: Add argument.
11315 * target.c (target_close): Add argument.
11316 (update_current_target): Update.
11317 * remote.c (remote_close): Add 'self' argument.
11318 * remote-sim.c (gdbsim_close): Add 'self' argument.
11319 * remote-mips.c (mips_close): Add 'self' argument.
11320 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11321 * record-full.c (record_full_close): Add 'self' argument.
11322 * record-btrace.c (record_btrace_close): Add 'self' argument.
11323 * monitor.h (monitor_close): Add 'self' argument.
11324 * monitor.c (monitor_close): Add 'self' argument.
11325 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11326 * linux-nat.c (linux_nat_close): Add argument.
11327 * go32-nat.c (go32_close): Add 'self' argument.
11328 * exec.c (exec_close_1): Add 'self' argument.
11329 * ctf.c (ctf_close): Add 'self' argument.
11330 * corelow.c (core_close): Add 'self' argument.
11331 (core_close_cleanup): Update.
11332 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11333 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11334
9dd130a0
TT
113352014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 * remote.c (remote_load): New function.
11338 (init_remote_ops): Use it.
11339
46917d26
TT
113402014-02-19 Tom Tromey <tromey@redhat.com>
11341
11342 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11343 argument.
11344 * common/linux-btrace.h (linux_supports_btrace): Update.
11345 * remote.c (remote_supports_btrace): Add "self" argument.
11346 * target-delegates.c: Rebuild.
11347 * target.c (target_supports_btrace): Remove.
11348 * target.h (struct target_ops) <to_supports_btrace>: Add
11349 target_ops argument.
11350 (target_supports_btrace): New define.
11351
6b84065d
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * record-full.c (record_full_beneath_to_resume_ops)
11355 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11356 (record_full_beneath_to_wait)
11357 (record_full_beneath_to_store_registers_ops)
11358 (record_full_beneath_to_store_registers)
11359 (record_full_beneath_to_xfer_partial_ops)
11360 (record_full_beneath_to_xfer_partial)
11361 (record_full_beneath_to_insert_breakpoint_ops)
11362 (record_full_beneath_to_insert_breakpoint)
11363 (record_full_beneath_to_remove_breakpoint_ops)
11364 (record_full_beneath_to_remove_breakpoint)
11365 (record_full_beneath_to_stopped_by_watchpoint)
11366 (record_full_beneath_to_stopped_data_address)
11367 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11368 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11369 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11370 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11371 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11372 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11373 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11374 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11375 (record_full_resume, record_full_wait_1)
11376 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11377 (record_full_store_registers, record_full_xfer_partial)
11378 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11379 (record_full_async, record_full_core_xfer_partial): Use target
11380 delegation.
11381 * target-delegates.c: Rebuild.
11382 * target.c (current_xfer_partial): Remove.
11383 (update_current_target): Do not INHERIT or de_fault
11384 to_insert_breakpoint, to_remove_breakpoint,
11385 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11386 to_is_async_p, to_async. Do not set to_xfer_partial field.
11387 (default_xfer_partial): Simplify.
11388 (current_xfer_partial): Remove.
11389 (target_wait, target_resume): Simplify.
11390 (find_default_can_async_p, find_default_is_async_p): Update.
11391 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11392 to_xfer_partial, to_stopped_by_watchpoint,
11393 to_stopped_data_address.
11394 (target_store_registers): Simplify.
11395 (forward_target_remove_breakpoint)
11396 (forward_target_insert_breakpoint): Remove.
11397 (target_remove_breakpoint, target_insert_breakpoint)
11398 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11399 * target.h (struct target_ops) <to_resume, to_wait,
11400 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11401 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11402 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11403 markup.
11404 (forward_target_remove_breakpoint)
11405 (forward_target_insert_breakpoint): Remove.
11406 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11407 directly.
11408 (record_btrace_insert_breakpoint): Delegate directly.
11409
1101cb7b
TT
114102014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 PR build/7701:
11413 * target-delegates.c: New file.
11414 * target.c: Include target-delegates.c.
11415 (init_dummy_target): Call install_dummy_methods.
11416 (complete_target_initialization): Call install_delegators.
11417 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11418 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11419 * make-target-delegates: New file.
11420
8b06beed
TT
114212014-02-19 Tom Tromey <tromey@redhat.com>
11422
11423 * record.c (find_record_target): Use find_target_at.
11424 * target.c (find_target_at): New function.
11425 * target.h (find_target_at): Declare.
11426
6a109b6b
TT
114272014-02-19 Tom Tromey <tromey@redhat.com>
11428
11429 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11430 Add 'ops' argument.
11431 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11432 'ops' argument.
11433 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11434 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11435 'ops' argument.
11436 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11437 argument.
11438 * linux-nat.c (save_sigtrap): Update.
11439 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11440 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11441 (linux_nat_close): Update.
11442 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11443 argument.
11444 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11445 argument.
11446 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11447 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11448 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11449 (tmp_to_async): Add 'ops' argument.
11450 (record_full_stopped_by_watchpoint, record_full_async)
11451 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11452 argument.
11453 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11454 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11455 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11456 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11457 (remote_is_async_p, remote_async): Add 'ops' argument.
11458 (remote_stopped_data_address): Update.
11459 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11460 * target.c (update_current_target)
11461 (find_default_can_async_p, find_default_is_async_p): Update.
11462 (init_dummy_target): Update.
11463 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11464 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11465 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11466 (target_can_async_p, target_is_async_p, target_async)
11467 (target_stopped_by_watchpoint): Update.
11468
e095146b
YQ
114692014-02-19 Yao Qi <yao@codesourcery.com>
11470
11471 PR gdb/16220
11472 * gdbarch.sh: Remove startup_gdbarch.
11473 * gdbarch.c: Regenerated.
11474 * gdbarch.h: Likewise.
11475
bc3c6b36
KB
114762014-02-17 Kevin Buettner <kevinb@redhat.com>
11477
11478 * rl78-tdep.c (rl78_g10_register_name): New function.
11479 (rl78_return_value): Add g10 support.
11480 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11481 g10.
11482
98dc0167 114832014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11484
11485 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11486 (SUBDIR_GUILE_SRCS): Ditto.
11487 (scm-gsmob.o): Ditto.
11488
842c05cd
YQ
114892014-02-17 Yao Qi <yao@codesourcery.com>
11490
11491 * gnu-nat.c (ILL_RPC): Declare defined function.
11492
25c0bd04
YQ
114932014-02-17 Yao Qi <yao@codesourcery.com>
11494
11495 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11496 mach_msg_type_number_t.
11497 (gnu_write_inferior): Likewise.
11498
a9a758e3
YQ
114992014-02-17 Yao Qi <yao@codesourcery.com>
11500
11501 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11502 in format string.
11503 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11504 (inf_validate_procs, inf_signal): Likewise.
11505 (S_exception_raise_request): Likewise.
11506 (do_mach_notify_dead_name): Likewise.
11507 (steal_exc_port): Likewise.
11508 (gnu_read_inferior): Change 'copy_count''s type to
11509 mach_msg_type_number_t.
11510 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11511 format string.
11512
bae8023e
TS
115132014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11514
c82f56d9
TS
11515 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11516 flag. Adjust all users; in particular...
11517 (gnu_wait): ..., don't decrement its value in here...
11518 (gnu_create_inferior): ..., and instead set the flag in here,
11519 around the startup_inferior call, and call that one with
11520 START_INFERIOR_TRAPS_EXPECTED.
11521
3398af6a
TS
11522 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11523 (ILL_RPC): ... new macro.
11524 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11525 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11526 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11527 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11528 functions with ILL_RPC macro.
11529 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11530 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11531 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11532 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11533 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11534 (S_proc_getlogin_reply, S_proc_getsid_reply)
11535 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11536 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11537 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11538 (S_proc_getnports_reply, S_proc_is_important_reply)
11539 (S_proc_get_code_reply): New stub functions, generated with
11540 ILL_RPC macro.
11541
d47642c9
TS
11542 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11543 collected the type check structures.
11544
bae8023e
TS
11545 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11546
8a55ffb0
DE
115472014-02-14 Doug Evans <dje@google.com>
11548
11549 * target.c (target_write_partial): Fix result type.
11550
c2853f3d
JM
115512014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11552
11553 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11554 the proper offsets to access fpregset_t.
11555
ac61d2db
SA
115562014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11557
11558 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11559 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11560 * h8300-tdep.c (setmachinelist): Remove global.
11561 * hppa-tdep.c (hppa_sigtramp): Remove global.
11562 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11563 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11564 * ravenscar-thread.c (update_target_observer): Remove global.
11565 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11566
9d2d0b8b
TT
115672014-02-12 Tom Tromey <tromey@redhat.com>
11568
11569 * common/rsp-low.c: Update comments.
11570 * common/rsp-low.h: Update comments.
11571
a7191e8b
TT
115722014-02-12 Tom Tromey <tromey@redhat.com>
11573
11574 * common/rsp-low.c (convert_ascii_to_int): Remove.
11575 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11576
ff0e980e
TT
115772014-02-12 Tom Tromey <tromey@redhat.com>
11578
11579 * common/rsp-low.h (unhexify): Don't declare.
11580 * common/rsp-low.c (unhexify): Remove.
11581
e9371aff
TT
115822014-02-12 Tom Tromey <tromey@redhat.com>
11583
11584 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11585 * common/rsp-low.c (convert_int_to_ascii): Remove.
11586
971dc0b8
TT
115872014-02-12 Tom Tromey <tromey@redhat.com>
11588
11589 * common/rsp-low.h (hexify): Don't declare.
11590 * common/rsp-low.c (hexify): Remove.
11591
0a822afb
TT
115922014-02-12 Tom Tromey <tromey@redhat.com>
11593
11594 * common/rsp-low.c (hexify): Never take strlen of argument.
11595
9f1b45b0
TT
115962014-02-12 Tom Tromey <tromey@redhat.com>
11597
11598 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11599 * remote.c (extended_remote_run, remote_rcmd)
11600 (remote_download_trace_state_variable, remote_save_trace_data)
11601 (remote_set_trace_notes): Update.
11602 * tracepoint.c (encode_source_string, tfile_write_status)
11603 (tfile_write_uploaded_tsv): Update.
11604
9c3d6531
TT
116052014-02-12 Tom Tromey <tromey@redhat.com>
11606
11607 * tracepoint.c: Include rsp-low.h.
11608 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11609 * remote.c: Include rsp-low.h.
11610 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11611 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11612 (remote_unescape_input): Move to common/rsp-low.c.
11613 * common/rsp-low.h: New file.
11614 * common/rsp-low.c: New file.
11615 * Makefile.in (SFILES): Add common/rsp-low.c.
11616 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11617 (COMMON_OBS): Add rsp-low.o.
11618 (rsp-low.o): New target.
11619
01fd3ea5
TT
116202014-02-12 Tom Tromey <tromey@redhat.com>
11621
11622 * utils.h: Include print-utils.h.
11623 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11624 (int_string, core_addr_to_string, core_addr_to_string_nz)
11625 (hex_string, hex_string_custom): Don't declare.
11626 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11627 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11628 (hex_string_custom, int_string, core_addr_to_string)
11629 (core_addr_to_string_nz, host_address_to_string): Move to
11630 common/print-utils.c.
11631 * common/print-utils.h: New file.
11632 * common/print-utils.c: New file
11633 * Makefile.in (SFILES): Add common/print-utils.c.
11634 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11635 (COMMON_OBS): Add print-utils.o.
11636 (print-utils.o): New target.
11637
9fb50108
TT
116382014-02-12 Tom Tromey <tromey@redhat.com>
11639
11640 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11641
0548b5db
MK
116422014-02-12 Mark Kettenis <kettenis@gnu.org>
11643
11644 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11645
493443a4
MK
116462014-02-12 Mark Kettenis <kettenis@gnu.org>
11647
11648 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11649 if a PT_IO ptrace request returns sucessfully but indicates that 0
11650 bytes were transferred.
11651
706d0883
PA
116522014-02-12 Pedro Alves <palves@redhat.com>
11653 Kevin Buettner <kevinb@redhat.com>
11654
11655 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11656 TYPE_INSTANCE_FLAG_CODE_SPACE.
11657
5caa2f0b
PA
116582014-02-12 Pedro Alves <palves@redhat.com>
11659
11660 * h8300-tdep.c (pseudo_from_raw_register)
11661 (raw_from_pseudo_register): New functions.
11662 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11663 them.
11664
76fd5f74
PA
116652014-02-12 Pedro Alves <palves@redhat.com>
11666
11667 * h8300-tdep.c (h8300_register_sim_regno): New function.
11668 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11669 gdbarch_register_sim_regno hook.
11670
8f008406
SA
116712014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11672
11673 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11674
195abc10
SA
116752014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11676
11677 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11678
93ffa5b9
MK
116792014-02-12 Mark Kettenis <kettenis@gnu.org>
11680
11681 * obsd-tdep.h (obsd_init_abi): New prototype.
11682 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11683 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11684 (obsd_init_abi): New functions.
11685 * i386obsd-tdep.c: Include "obsd-tdep.h".
11686 (i386obsd_init_abi): Call obsd_init_abi.
11687 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11688 (amd64obsd_init_abi): Call obsd_init_abi.
11689 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11690 obsd-tdep.c to gdb_target_obs.
11691
49caec94
JM
116922014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11693
11694 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11695 double float arguments to 16-byte in the argument slots.
11696
e1402065
DE
116972014-02-11 Doug Evans <xdje42@gmail.com>
11698
11699 * configure.ac: Don't crash if pkg-config is not found and guile
11700 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11701 in guile checks.
11702 * configure: Regenerate.
11703
edcc890f
YQ
117042014-02-11 Yao Qi <yao@codesourcery.com>
11705
11706 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11707 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11708 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11709 * gnu-nat.c (gnu_xfer_memory): Likewise.
11710 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11711 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11712 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11713 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11714
9b409511
YQ
117152014-02-11 Yao Qi <yao@codesourcery.com>
11716
11717 * target.h (enum target_xfer_error): Rename to ...
11718 (enum target_xfer_status): ... it. New. All users updated.
11719 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11720 New.
11721 (TARGET_XFER_STATUS_ERROR_P): New macro.
11722 (target_xfer_error_to_string): Remove declaration.
11723 (target_xfer_status_to_string): Declare.
11724 (target_xfer_partial_ftype): Adjust it.
11725 (struct target_ops) <to_xfer_partial>: Return
11726 target_xfer_status. Add argument xfered_len. Update
11727 comments.
11728 * target.c (target_xfer_error_to_string): Rename to ...
11729 (target_xfer_status_to_string): ... it. New. All callers
11730 updated.
11731 (target_read_live_memory): Likewise. Call target_xfer_partial
11732 instead of target_read.
11733 (memory_xfer_live_readonly_partial): Return
11734 target_xfer_status. Add argument xfered_len.
11735 (raw_memory_xfer_partial): Likewise.
11736 (memory_xfer_partial_1): Likewise.
11737 (memory_xfer_partial): Likewise.
11738 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11739 properly. Update debug message.
11740 (default_xfer_partial, current_xfer_partial): Likewise.
11741 (target_write_partial): Likewise.
11742 (target_read_partial): Likewise. All callers updated.
11743 (read_whatever_is_readable): Likewise.
11744 (target_write_with_progress): Likewise.
11745 (target_read_alloc_1): Likewise.
11746
11747 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11748 * auxv.c (procfs_xfer_auxv): Likewise.
11749 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11750 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11751 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11752 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11753 * corefile.c (read_memory): Adjust.
11754 * corelow.c (core_xfer_partial): Likewise.
11755 * ctf.c (ctf_xfer_partial): Likewise.
11756 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11757 updated.
11758 (darwin_xfer_partial): Likewise.
11759 * exec.c (section_table_xfer_memory_partial): Likewise. All
11760 callers updated.
11761 (exec_xfer_partial): Likewise.
11762 * exec.h (section_table_xfer_memory_partial): Update
11763 declaration.
11764 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11765 negative.
11766 (gnu_xfer_partial): Likewise.
11767 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11768 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11769 (ia64_hpux_xfer_solib_got): Likewise.
11770 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11771 type of 'partial_len' to ULONGEST.
11772 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11773 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11774 (linux_nat_xfer_partial): Likewise.
11775 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11776 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11777 * monitor.c (monitor_xfer_memory): Likewise.
11778 (monitor_xfer_partial): Likewise.
11779 * procfs.c (procfs_xfer_partial): Likewise.
11780 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11781 * record-full.c (record_full_xfer_partial): Likewise.
11782 (record_full_core_xfer_partial): Likewise.
11783 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11784 (gdbsim_xfer_partial): Likewise.
11785 * remote.c (remote_write_bytes_aux): Likewise. All callers
11786 updated.
11787 (remote_write_bytes, remote_read_bytes): Likewise. All
11788 callers updated.
11789 (remote_flash_erase): Likewise. All callers updated.
11790 (remote_write_qxfer): Likewise. All callers updated.
11791 (remote_read_qxfer): Likewise. All callers updated.
11792 (remote_xfer_partial): Likewise.
11793 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11794 (rs6000_xfer_shared_libraries): Likewise.
11795 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11796 (sol_thread_xfer_partial): Likewise.
11797 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11798 (sparc_xfer_partial): Likewise.
11799 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11800 updated.
11801 (spu_xfer_partial): Likewise.
11802 * spu-multiarch.c (spu_xfer_partial): Likewise.
11803 * tracepoint.c (tfile_xfer_partial): Likewise.
11804 * windows-nat.c (windows_xfer_memory): Likewise.
11805 (windows_xfer_shared_libraries): Likewise.
11806 (windows_xfer_partial): Likewise.
11807 * valprint.c: Replace 'target_xfer_error' with
11808 'target_xfer_status' in comments.
11809
a8e63083
JB
118102014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11811
11812 Checked in by Joel Brobecker <brobecker@adacore.com>.
11813 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11814
e86b67d3
JB
118152014-02-11 Joel Brobecker <brobecker@adacore.com>
11816
11817 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11818 function parameters.
11819
4b7d1f7f
WN
118202014-02-10 Will Newton <will.newton@linaro.org>
11821
11822 * elfread.c (elf_rel_plt_read): Look for a .got section if
11823 looking up .got.plt fails.
11824 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11825 on address passed to elf_gnu_ifunc_record_cache.
11826 (elf_gnu_ifunc_resolve_addr): Likewise.
11827 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11828
961842b2
JM
118292014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11830
11831 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11832 (X_RETTURN): New macro.
11833 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11834
11835 * sparc64-tdep.c (sparc64_init_abi): Hook
11836 sparc_in_function_epilogue_p.
11837
3f03e7b1
GB
118382014-02-10 Gary Benson <gbenson@redhat.com>
11839
11840 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11841 Rename name_matcher to symbol_matcher.
11842
96f861ef
GB
118432014-02-10 Gary Benson <gbenson@redhat.com>
11844
11845 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11846 Use expand_symtabs_file_matcher_ftype and
11847 expand_symtabs_symbol_matcher_ftype.
11848
ee01b665
JB
118492014-02-10 Joel Brobecker <brobecker@adacore.com>
11850
11851 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11852 (struct ada_symbol_cache): New.
11853 (ada_free_symbol_cache): Forward declare.
11854 (struct ada_pspace_data): New.
11855 (ada_pspace_data_handle): New static global.
11856 (get_ada_pspace_data, ada_pspace_data_cleanup)
11857 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11858 (cache_space, cache): Delete, now folded inside struct
11859 ada_pspace_data.
11860 (ada_get_symbol_cache): New function.
11861 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11862 implementation.
11863 (_initialize_ada_language): Remove initialization of cache_space.
11864 Move call to observer_attach_inferior_exit up, grouping it
11865 with the other observer registrations inside this function.
11866 Rename command to be more general. Add call to
11867 register_program_space_data_with_cleanup.
11868
143adbbf
JB
118692014-02-10 Joel Brobecker <brobecker@adacore.com>
11870
11871 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11872 ada_new_objfile_observer.
11873 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11874 (_initialize_tasks): Update uses of ada_new_objfile_observer
11875 and ada_tasks_normal_stop_observer.
11876
aa4fb036
JB
118772014-02-10 Joel Brobecker <brobecker@adacore.com>
11878
11879 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11880 returned by the 'Length attribute to integer.
11881
9dee8cc6
JB
118822014-02-10 Joel Brobecker <brobecker@adacore.com>
11883
11884 * ada-lang.c (_initialize_ada_language): Initialize
11885 cache_space obstack.
11886
3d9434b5
JB
118872014-02-10 Joel Brobecker <brobecker@adacore.com>
11888
11889 * ada-lang.c (HASH_SIZE): New macro.
11890 (struct cache_entry): New type.
11891 (cache_space, cache): New static globals.
11892 (ada_clear_symbol_cache, find_entry): New functions.
11893 (lookup_cached_symbol, cache_symbol): Implement.
11894 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11895 (_initialize_ada_language): Attach ada_new_objfile_observer
11896 and ada_free_objfile_observer.
11897
f0c5f9b2
JB
118982014-02-10 Joel Brobecker <brobecker@adacore.com>
11899
11900 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11901 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11902 struct block * parameter.
11903 (ada_lookup_symbol_list_worker): Constify local variable "block".
11904 Remove cast which is no longer necessary.
11905
ed3ef339
DE
119062014-02-10 Doug Evans <xdje42@gmail.com>
11907
11908 Add Guile as an extension language.
11909 * NEWS: Mention Guile scripting.
11910 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11911 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11912 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11913 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11914 (CLIBS): Add GUILE_LIBS.
11915 (install-guile): New rule.
11916 (guile.o): New rule.
11917 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11918 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11919 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11920 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11921 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11922 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11923 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11924 * configure.ac: New option --with-guile.
11925 * configure: Regenerate.
11926 * config.in: Regenerate.
11927 * auto-load.c: Remove #include "python/python.h". Add #include
11928 "gdb/section-scripts.h".
11929 (source_section_scripts): Handle Guile scripts.
11930 (_initialize_auto_load): Add name of Guile objfile script to
11931 scripts-directory help text.
11932 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11933 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11934 (struct breakpoint): New member scm_bp_object.
11935 * defs.h (enum command_control_type): New value guile_control.
11936 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11937 "extension.h".
11938 (show_user): Update comment.
11939 (_initialize_cli_cmds): Update help text for "show user". Update help
11940 text for max-user-call-depth.
11941 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11942 "extension.h".
11943 (multi_line_command_p): Add guile_control.
11944 (print_command_lines): Handle guile_control.
11945 (execute_control_command, recurse_read_control_structure): Ditto.
11946 (process_next_line): Recognize "guile" commands.
11947 * disasm.c (gdb_disassemble_info): Make non-static.
11948 * disasm.h: #include "dis-asm.h".
11949 (struct gdbarch): Add forward decl.
11950 (gdb_disassemble_info): Declare.
11951 * extension.c: #include "guile/guile.h".
11952 (extension_languages): Add guile.
11953 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11954 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11955 * gdbtypes.c (get_unsigned_type_max): New function.
11956 (get_signed_type_minmax): New function.
11957 * gdbtypes.h (get_unsigned_type_max): Declare.
11958 (get_signed_type_minmax): Declare.
11959 * guile/README: New file.
11960 * guile/guile-internal.h: New file.
11961 * guile/guile.c: New file.
11962 * guile/guile.h: New file.
11963 * guile/scm-arch.c: New file.
11964 * guile/scm-auto-load.c: New file.
11965 * guile/scm-block.c: New file.
11966 * guile/scm-breakpoint.c: New file.
11967 * guile/scm-disasm.c: New file.
11968 * guile/scm-exception.c: New file.
11969 * guile/scm-frame.c: New file.
11970 * guile/scm-gsmob.c: New file.
11971 * guile/scm-iterator.c: New file.
11972 * guile/scm-lazy-string.c: New file.
11973 * guile/scm-math.c: New file.
11974 * guile/scm-objfile.c: New file.
11975 * guile/scm-ports.c: New file.
11976 * guile/scm-pretty-print.c: New file.
11977 * guile/scm-safe-call.c: New file.
11978 * guile/scm-string.c: New file.
11979 * guile/scm-symbol.c: New file.
11980 * guile/scm-symtab.c: New file.
11981 * guile/scm-type.c: New file.
11982 * guile/scm-utils.c: New file.
11983 * guile/scm-value.c: New file.
11984 * guile/lib/gdb.scm: New file.
11985 * guile/lib/gdb/boot.scm: New file.
11986 * guile/lib/gdb/experimental.scm: New file.
11987 * guile/lib/gdb/init.scm: New file.
11988 * guile/lib/gdb/iterator.scm: New file.
11989 * guile/lib/gdb/printing.scm: New file.
11990 * guile/lib/gdb/types.scm: New file.
11991 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11992 (VPATH): Add $(GUILE_SRCDIR).
11993 (GUILE_DIR): New variable.
11994 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11995 (all): Add stamp-guile dependency.
11996 (stamp-guile): New rule.
11997 (clean-guile, install-guile, uninstall-guile): New rules.
11998 (install-only): Add install-guile dependency.
11999 (uninstall): Add uninstall-guile dependency.
12000 (clean): Add clean-guile dependency.
12001
ac020ec5
DE
120022014-02-09 Doug Evans <xdje42@gmail.com>
12003
12004 Revert this patch (which I approved, mea culpa).
12005
12006 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12007
12008 * Makefile.in (all-lib): Remove.
12009 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12010
2a081c59
JK
120112014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12012
12013 Fix Python stack corruption.
12014 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12015 gdb_py_longest.
12016
0a6bd22d
MK
120172014-02-08 Mark Kettenis <kettenis@gnu.org>
12018
12019 * Makefile.in (all-lib): Remove.
12020 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12021
1a860409
DE
120222014-02-07 Doug Evans <dje@google.com>
12023
12024 * extension-priv.h (extension_language_script_ops): Add comment.
12025 (extension_language_ops): Add comment.
caf5a491 12026 (active_ext_lang_state): Fix typo in comment.
1a860409 12027
d137e6dc
PA
120282014-02-07 Pedro Alves <palves@redhat.com>
12029
0dcb32c3 12030 PR breakpoints/16292
d137e6dc
PA
12031 * infrun.c (handle_signal_stop) <signal arrives while stepping
12032 over a breakpoint>: Switch back to the stepping thread.
12033
ce6d0892
YQ
120342014-02-07 Yao Qi <yao@codesourcery.com>
12035
12036 * target.c (target_xfer_partial): Return zero if LEN is zero.
12037
2ed4b548
YQ
120382014-02-07 Yao Qi <yao@codesourcery.com>
12039
12040 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12041 (ld_so_xfer_auxv): Likewise.
12042 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12043 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12044 * corelow.c (core_xfer_partial): Likewise.
12045 * ctf.c (ctf_xfer_partial): Likewise.
12046 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12047 (darwin_xfer_partial): Likewise.
12048 * exec.c (exec_xfer_partial): Likewise.
12049 * gnu-nat.c (gnu_xfer_partial): Likewise.
12050 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12051 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12052 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12053 * linux-nat.c (linux_xfer_siginfo): Likewise.
12054 (linux_proc_xfer_spu): Likewise.
12055 * procfs.c (procfs_xfer_partial): Likewise.
12056 * record-full.c (record_full_xfer_partial): Likewise.
12057 (record_full_core_xfer_partial): Likewise.
12058 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12059 * remote.c (remote_write_qxfer): Likewise.
12060 (remote_write_qxfer, remote_read_qxfer): Likewise.
12061 (remote_xfer_partial): Likewise.
12062 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12063 (rs6000_xfer_shared_libraries): Likewise.
12064 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12065 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12066 (spu_xfer_partial): Likewise.
12067 * target.c (memory_xfer_partial_1): Likewise.
12068 * tracepoint.c (tfile_xfer_partial): Likewise.
12069 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12070 (windows_xfer_partial): Likewise.
12071
c09f20e4
YQ
120722014-02-07 Yao Qi <yao@codesourcery.com>
12073
12074 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12075 comments.
12076 (core_xfer_shared_libraries_aix): Likewise.
12077 * gdbarch.c, gdbarch.h: Regenerated.
12078 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12079 ULONGEST. Change 'len_avail' type to ULONGEST.
12080 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12081 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12082 declaration.
12083 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12084
8635b3bf
YQ
120852014-02-07 Yao Qi <yao@codesourcery.com>
12086
12087 * corefile.c (memory_error): Get 'exception' from ERR and pass
12088 'exception' to throw_error.
12089
6dddc817
DE
120902014-02-06 Doug Evans <xdje42@gmail.com>
12091
12092 * configure.ac (libpython checking): Remove all but python.o from
12093 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12094 * configure: Regenerate.
12095
12096 * Makefile.in (SFILES): Add extension.c.
12097 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12098 (COMMON_OBS): Add extension.o.
12099 * extension.h: New file.
12100 * extension-priv.h: New file.
12101 * extension.c: New file.
12102
12103 * python/python-internal.h: #include "extension.h".
12104 (gdbpy_auto_load_enabled): Declare.
12105 (gdbpy_apply_val_pretty_printer): Declare.
12106 (gdbpy_apply_frame_filter): Declare.
12107 (gdbpy_preserve_values): Declare.
12108 (gdbpy_breakpoint_cond_says_stop): Declare.
12109 (gdbpy_breakpoint_has_cond): Declare.
12110 (void source_python_script_for_objfile): Delete.
12111 * python/python.c: #include "extension-priv.h".
12112 Delete inclusion of "observer.h".
12113 (extension_language_python): Moved here and renamed from
12114 script_language_python in py-auto-load.c.
12115 Redefined to be of type extension_language_defn.
12116 (python_extension_script_ops): New global.
12117 (python_extension_ops): New global.
12118 (struct python_env): New member previous_active.
12119 (restore_python_env): Call restore_active_ext_lang.
12120 (ensure_python_env): Call set_active_ext_lang.
12121 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12122 New arg extlang.
12123 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12124 New arg extlang.
12125 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12126 New arg extlang.
12127 (gdbpy_eval_from_control_command): Renamed from
12128 eval_python_from_control_command, made static. New arg extlang.
12129 (gdbpy_source_script) Renamed from source_python_script, made static.
12130 New arg extlang.
12131 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12132 result to int. New arg extlang.
12133 (gdbpy_source_objfile_script): Renamed from
12134 source_python_script_for_objfile, made static. New arg extlang.
12135 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12136 static. New args extlang, extlang_printers. Change result type to
12137 "void".
12138 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12139 static. New arg extlang. Rename arg printers to extlang_printers
12140 and change type to ext_lang_type_printers *.
12141 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12142 static. Replace argument arg with extlang, extlang_printers.
12143 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12144 (!HAVE_PYTHON, source_python_script): Delete.
12145 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12146 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12147 (!HAVE_PYTHON, start_type_printers): Delete.
12148 (!HAVE_PYTHON, apply_type_printers): Delete.
12149 (!HAVE_PYTHON, free_type_printers): Delete.
12150 (_initialize_python): Delete call to observer_attach_before_prompt.
12151 (finalize_python): Set/restore active extension language.
12152 (gdbpy_finish_initialization) Renamed from
12153 finish_python_initialization, made static. New arg extlang.
12154 (gdbpy_initialized): New function.
12155 * python/python.h: #include "extension.h". Delete #include
12156 "value.h", "mi/mi-cmds.h".
12157 (extension_language_python): Declare.
12158 (GDBPY_AUTO_FILE_NAME): Delete.
12159 (enum py_bt_status): Moved to extension.h and renamed to
12160 ext_lang_bt_status.
12161 (enum frame_filter_flags): Moved to extension.h.
12162 (enum py_frame_args): Moved to extension.h and renamed to
12163 ext_lang_frame_args.
12164 (finish_python_initialization): Delete.
12165 (eval_python_from_control_command): Delete.
12166 (source_python_script): Delete.
12167 (apply_val_pretty_printer): Delete.
12168 (apply_frame_filter): Delete.
12169 (preserve_python_values): Delete.
12170 (gdbpy_script_language_defn): Delete.
12171 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12172 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12173
12174 * auto-load.c: #include "extension.h".
12175 (GDB_AUTO_FILE_NAME): Delete.
12176 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12177 (script_language_gdb): Delete, moved to extension.c and renamed to
12178 extension_language_gdb.
12179 (source_gdb_script_for_objfile): Delete.
12180 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12181 (loaded_script): Change type of language member to
12182 struct extension_language_defn *.
12183 (init_loaded_scripts_info): Initialize
12184 unsupported_script_warning_printed.
12185 (maybe_add_script): Make static. Change type of language arg to
12186 struct extension_language_defn *.
12187 (clear_section_scripts): Reset unsupported_script_warning_printed.
12188 (auto_load_objfile_script_1): Rewrite to use extension language API.
12189 (auto_load_objfile_script): Make public. Remove support-compiled-in
12190 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12191 (source_section_scripts): Rewrite to use extension language API.
12192 (load_auto_scripts_for_objfile): Rewrite to use
12193 auto_load_scripts_for_objfile.
12194 (collect_matching_scripts_data): Change type of language member to
12195 struct extension_language_defn *.
12196 (auto_load_info_scripts): Change type of language arg to
12197 struct extension_language_defn *.
12198 (unsupported_script_warning_print): New function.
12199 (script_not_found_warning_print): Make static.
12200 (_initialize_auto_load): Rewrite construction of scripts-directory
12201 help.
12202 * auto-load.h (struct objfile): Add forward decl.
12203 (struct script_language): Delete.
12204 (struct auto_load_pspace_info): Add forward decl.
12205 (struct extension_language_defn): Add forward decl.
12206 (maybe_add_script): Delete.
12207 (auto_load_objfile_script): Declare.
12208 (script_not_found_warning_print): Delete.
12209 (auto_load_info_scripts): Update prototype.
12210 (auto_load_gdb_scripts_enabled): Declare.
12211 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12212 auto_load_python_scripts_enabled and made public.
12213 (script_language_python): Delete, moved to python.c.
12214 (gdbpy_script_language_defn): Delete.
12215 (info_auto_load_python_scripts): Update to use
12216 extension_language_python.
12217
12218 * breakpoint.c (condition_command): Replace call to
12219 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12220 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12221 with call to breakpoint_ext_lang_cond_says_stop.
12222 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12223 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12224 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12225 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12226 New arg slang.
12227 (local_setattro): Print name of extension language with existing
12228 stop condition.
12229
12230 * valprint.c (val_print, value_print): Update to call
12231 apply_ext_lang_val_pretty_printer.
12232 * cp-valprint.c (cp_print_value): Update call to
12233 apply_ext_lang_val_pretty_printer.
12234 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12235 (gdbpy_apply_val_pretty_printer): Renamed from
12236 apply_val_pretty_printer. New arg extlang.
12237 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12238
12239 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12240 extension language API.
12241 * cli/cli-script.c (execute_control_command): Update to call
12242 eval_ext_lang_from_control_command.
12243
12244 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12245 enum ext_lang_bt_status values. Update call to
12246 apply_ext_lang_frame_filter.
12247 (mi_cmd_stack_list_locals): Ditto.
12248 (mi_cmd_stack_list_args): Ditto.
12249 (mi_cmd_stack_list_variables): Ditto.
12250 * mi/mi-main.c: Delete #include "python/python-internal.h".
12251 Add #include "extension.h".
12252 (mi_cmd_list_features): Replace reference to python internal variable
12253 gdb_python_initialized with call to ext_lang_initialized_p.
12254
12255 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12256 Update to use enum ext_lang_frame_args. Update to call
12257 apply_ext_lang_frame_filter.
12258 * python/py-framefilter.c (extract_sym): Update to use enum
12259 ext_lang_bt_status.
12260 (extract_value, py_print_type, py_print_value): Ditto.
12261 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12262 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12263 (py_print_frame): Ditto.
12264 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12265 New arg extlang. Update to use enum ext_lang_bt_status.
12266
12267 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12268 finish_python_initialization. Replace with call to
12269 finish_ext_lang_initialization.
12270
12271 * typeprint.c (do_free_global_table): Update to call
12272 free_ext_lang_type_printers.
12273 (create_global_typedef_table): Update to call
12274 start_ext_lang_type_printers.
12275 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12276 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12277 (type_print_options): Change type of global_printers from "void *"
12278 to "struct ext_lang_type_printers *".
12279
12280 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12281 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12282 (gdbpy_preserve_values): Renamed from preserve_python_values.
12283 New arg extlang.
12284 (!HAVE_PYTHON, preserve_python_values): Delete.
12285
12286 * utils.c (quit_flag): Delete, moved to extension.c.
12287 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12288 extension.c.
12289
12290 * eval.c: Delete #include "python/python.h".
12291 * main.c: Delete #include "python/python.h".
12292
12293 * defs.h: Update comment.
12294
6af79985
JB
122952014-02-06 Joel Brobecker <brobecker@adacore.com>
12296
12297 GDB 7.7 released.
12298
12c5175d
MK
122992014-02-05 Mark Kettenis <kettenis@gnu.org>
12300
12301 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12302 defined.
12303
8dc5b319
YQ
123042014-02-05 Yao Qi <yao@codesourcery.com>
12305
12306 * remote.c (remote_pass_signals): Remove local 'buf' and use
12307 rs->buf.
12308 (remote_program_signals): Likewise.
12309
de7b2893
YQ
123102014-02-05 Yao Qi <yao@codesourcery.com>
12311
12312 * ctf.c: Include "inferior.h" and "gdbthread.h".
12313 (CTF_PID): A new macro.
12314 (ctf_open): Call inferior_appeared and add_thread_silent.
12315 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12316 (ctf_thread_alive): New function.
12317 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12318
66d032ac
YQ
123192014-02-05 Yao Qi <yao@codesourcery.com>
12320
12321 Revert this patch:
12322
12323 2013-05-24 Yao Qi <yao@codesourcery.com>
12324
12325 * tracepoint.c (TFILE_PID): Remove.
12326 (tfile_open): Don't add thread and inferior.
12327 (tfile_close): Don't set 'inferior_ptid'. Don't call
12328 exit_inferior_silent.
12329 (tfile_thread_alive): Remove.
12330 (init_tfile_ops): Don't set field 'to_thread_alive' of
12331 tfile_ops.
12332
f4ccffad
CE
123332014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12334
12335 * remote.c (remote_start_remote): Call remote_check_symbols even
12336 if only symbol-file (not file) has been given.
12337
591a12a1
UW
123382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12339
12340 * gdbarch.sh (skip_entrypoint): New callback.
12341 * gdbarch.c, gdbarch.h: Regenerate.
12342 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12343 * infrun.c (fill_in_stop_func): Likewise.
12344 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12345 (ppc_elfv2_elf_make_msymbol_special): New function.
12346 (ppc_elfv2_skip_entrypoint): Likewise.
12347 (ppc_linux_init_abi): Install them for ELFv2.
12348
cc0e89c5
UW
123492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12350
12351 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12352 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12353 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12354 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12355 structures returned in GPRs.
12356
52f548e4
UW
123572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12358
12359 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12360 offset to the stack parameter list for the ELFv2 ABI.
12361
d4094b6a
UW
123622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12363
12364 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12365 set_gdbarch_convert_from_func_ptr_addr and
12366 set_gdbarch_elf_make_msymbol_special for ELFv1.
12367 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12368 function descriptors on ELFv1.
12369 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12370 set up r12 at function entry.
12371
cd453cd0
UW
123722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12373
12374 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12375 (struct gdbarch_tdep): New member elf_abi.
12376
12377 * rs6000-tdep.c: Include "elf/ppc64.h".
12378 (rs6000_gdbarch_init): Detect ELF ABI version.
12379
0ff3e01f
UW
123802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12381
12382 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12383 within a register pair holding a DFP 128-bit value on little-endian.
12384 (ppc64_sysv_abi_return_value_base): Likewise.
12385 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12386 (dfp_pseudo_register_write): Likewise.
12387
5b757e5d
UW
123882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12389
12390 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12391 offset on little-endian when passing _Decimal32.
12392 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12393
084ee545
UW
123942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12395
12396 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12397 of the overlapped FP register within the VSX register on little-
12398 endian platforms.
12399 (efpr_pseudo_register_write): Likewise.
12400
d63167af
UW
124012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12402
12403 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12404 offset on little-endian when passing small structures.
12405
e765b44c
UW
124062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12407
12408 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12409 (struct ppc64_sysv_argpos): New data structure.
12410 (ppc64_sysv_abi_push_float): Remove.
12411 (ppc64_sysv_abi_push_val): New function.
12412 (ppc64_sysv_abi_push_integer): Likewise.
12413 (ppc64_sysv_abi_push_freg): Likewise.
12414 (ppc64_sysv_abi_push_vreg): Likewise.
12415 (ppc64_sysv_abi_push_param): Likewise.
12416 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12417 (ppc64_sysv_abi_return_value_base): New function.
12418 (ppc64_sysv_abi_return_value): Refactor to use it.
12419
36c24d95
UW
124202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12421
12422 * NEWS: Document new target powerpc64le-*-linux*.
12423
26fd9228
MK
124242014-02-04 Mark Kettenis <kettenis@gnu.org>
12425
12426 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12427 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12428 core dumps.
12429 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12430 register set used in ELF core dumps. Add floating-point register set.
12431
c5bb7362
KB
124322014-02-03 Kevin Buettner <kevinb@redhat.com>
12433
74228e77 12434 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12435 dwarf2_to_gdb[] table using symbolic constants. Adjust
12436 penultimate entry from number representing the PC register
12437 to symbolic constant representing the MDR register. Add
12438 constant for the PC register to the end of the table.
12439
af09351e
MK
124402014-02-03 Mark Kettenis <kettenis@gnu.org>
12441
12442 * bsd-kvm.c: Include <sys/param.h>
12443
8507e05d
MK
124442014-02-03 Mark Kettenis <kettenis@gnu.org>
12445
12446 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12447
ae56bfb8
JB
124482014-01-31 Joel Brobecker <brobecker@adacore.com>
12449
12450 * ada-lang.h (clear_ada_sym_cache): Delete.
12451
718ee4dc
UW
124522014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12453
12454 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12455
401e27fd
JM
124562014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12457
12458 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12459 the sigreturn register save area only if the syscall is
12460 sigreturn.
12461
a7c88acd
JB
124622014-01-29 Joel Brobecker <brobecker@adacore.com>
12463
12464 * valops.c (value_slice): Minor reformatting.
12465
fa0079ea
UW
124662014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12467
12468 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12469
c6044dd1
JB
124702014-01-28 Joel Brobecker <brobecker@adacore.com>
12471
12472 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12473 New static globals.
12474 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12475 (ada_ignore_descriptive_types_p): New static global.
12476 (find_parallel_type_by_descriptive_type): Return immediately
12477 if ada_ignore_descriptive_types_p is set.
12478 (_initialize_ada_language): Register new commands "maintenance
12479 set ada", "maintenance show ada", "maintenance set ada
12480 ignore-descriptive-types" and "maintenance show ada
12481 ignore-descriptive-types".
12482 * NEWS: Add entry for new "maint ada set/show
12483 ignore-descriptive-types" commands.
12484
568e808b
MM
124852014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12486
12487 * record-btrace.c (record_btrace_close): Call btrace_teardown
12488 for all threads.
12489
467d141b
JB
124902014-01-27 Joel Brobecker <brobecker@adacore.com>
12491
12492 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12493 "ui-out.h".
12494
fb151210
JB
124952014-01-27 Joel Brobecker <brobecker@adacore.com>
12496
12497 * ada-typeprint (type_is_full_subrange_of_target_type):
12498 New function.
12499 (print_range): Add parameter bounds_prefered_p. If not set,
12500 try printing range types using the name of their base type.
12501 (print_range_type): Add parameter bounds_prefered_p.
12502 Use it in call to print_range.
12503 (print_array_type, ada_print_type): Update calls to print_range
12504 and print_range_type.
12505
aba02109
JB
125062014-01-27 Joel Brobecker <brobecker@adacore.com>
12507
12508 * ada-typeprint.c (print_array_type, print_choices, print_range)
12509 (print_range_bound, print_dynamic_range_bound, print_range_type):
12510 Remove declaration.
12511
e62e21fd
JB
125122014-01-27 Joel Brobecker <brobecker@adacore.com>
12513
12514 * ada-typeprint.c (print_range): Add missing empty line
12515 after local declaration.
12516
859cf5d1
JB
125172014-01-27 Joel Brobecker <brobecker@adacore.com>
12518
12519 * ada-valprint.c (print_optional_low_bound): Get index_type's
12520 target type for as long as it is a TYPE_CODE_RANGE.
12521
25790f6f
JB
125222014-01-27 Joel Brobecker <brobecker@adacore.com>
12523
12524 * procfs.c (procfs_make_note_section): Remove assertion and
12525 associated comment.
12526
6b6aa828
YQ
125272014-01-24 Yao Qi <yao@codesourcery.com>
12528
12529 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12530 * corelow.c (get_core_siginfo): Likewise.
12531
5d6df423
YQ
125322014-01-24 Yao Qi <yao@codesourcery.com>
12533
12534 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12535 ULONGEST. Don't check 'len' is negative.
12536 (remote_write_bytes): Change type of 'len' to ULONGEST.
12537
83b645b8
TT
125382014-01-23 Tom Tromey <tromey@redhat.com>
12539
12540 PR python/16485:
12541 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12542 Handle exception from frame.block.
12543 (FrameVars.fetch_frame_locals): Likewise.
12544
0740f8d8
TT
125452014-01-23 Tom Tromey <tromey@redhat.com>
12546
12547 PR python/16487:
12548 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12549 on a NULL pointer. Move "goto error" to correct place.
12550
21909fa1
TT
125512014-01-23 Tom Tromey <tromey@redhat.com>
12552
12553 PR python/16491:
12554 * python/py-framefilter.c (apply_frame_filter): Call
12555 ensure_python_env after computing gdbarch.
12556
17fde6d0
YQ
125572014-01-23 Yao Qi <yao@codesourcery.com>
12558
12559 * target.c (raw_memory_xfer_partial): Change argument type
12560 from void * to gdb_byte *.
12561 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12562
87ce2a04
DE
125632014-01-22 Doug Evans <dje@google.com>
12564
12565 New gdbserver option --debug-format=timestamp.
12566 * NEWS: Mention it.
12567
237b092b
AA
125682014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12569
12570 * syscalls/s390x-linux.xml: New file.
12571 * syscalls/s390-linux.xml: New file.
12572 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12573 (XML_SYSCALL_FILENAME_S390X): Likewise.
12574 (op_svc): New enum value for SVC opcode.
12575 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12576 (s390_linux_get_syscall_number): New function.
12577 (s390_gdbarch_init): Register '*get_syscall_number' and the
12578 syscall xml file name.
12579 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12580 "s390-linux.xml" and "s390x-linux.xml".
12581 * NEWS: Announce new feature.
12582
54bff650
BS
125832014-01-22 Baruch Siach <baruch@tkos.co.il>
12584
12585 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12586
14e361d7
PA
125872014-01-22 Pedro Alves <palves@redhat.com>
12588
12589 * xtensa-config.c: Include defs.h.
12590
46bbb3ed
JB
125912014-01-22 Joel Brobecker <brobecker@adacore.com>
12592
12593 * common/common-utils.h: Add "ARI:" comment beside __func__
12594 reference.
12595
3a80edfc
JB
125962014-01-22 Joel Brobecker <brobecker@adacore.com>
12597
12598 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12599 documentation a bit.
12600
4869db5e
RM
126012014-01-21 Roland McGrath <mcgrathr@google.com>
12602
12603 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12604 * configure: Regenerate.
12605 * aclocal.m4: Regenerate.
12606 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12607 New substituted variables.
12608 (install-strip): New target.
12609 (INSTALL_SCRIPT): New substituted variable.
12610 (FLAGS_TO_PASS): Add it.
12611 (install-only): Use $(INSTALL_SCRIPT) rather than
12612 $(INSTALL_PROGRAM) for gcore.
12613
9ea4267d
TT
126142014-01-20 Tom Tromey <tromey@redhat.com>
12615
12616 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12617 together.
12618
1f2bdf09
TT
126192014-01-20 Tom Tromey <tromey@redhat.com>
12620
12621 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12622 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12623 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12624 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12625 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12626 (struct cmd_list_element) <flags>: Remove.
12627 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12628 doc_allocated>: New fields.
12629 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12630 bitfields.
12631 * maint.c (maintenance_do_deprecate): Update.
12632 * top.c (execute_command): Update.
12633
e671835b
BS
126342014-01-20 Baruch Siach <baruch@tkos.co.il>
12635
12636 * xtensa-linux-nat.c: Include asm/ptrace.h.
12637
50367cd2
IB
126382014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12639
12640 * Makefile.in (SFILES): Add d-support.c.
12641 (COMMON_OBS): Add d-support.o.
12642 * d-lang.h (d_parse_symbol): Add comment, now defined in
12643 d-support.c.
12644 * d-lang.c (parse_call_convention)
12645 (parse_attributes, parse_function_types)
12646 (parse_function_args, parse_type, parse_identifier)
12647 (call_convention_p, d_parse_symbol): Move functions to ...
12648 * d-support.c: ... New file.
12649
ec9f644a
IB
126502014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12651
12652 * d-lang.h (d_parse_symbol): Add declaration.
12653 * d-lang.c (extract_identifiers)
12654 (extract_type_info): Remove functions.
12655 (parse_call_convention, parse_attributes)
12656 (parse_function_types, parse_function_args)
12657 (parse_type, parse_identifier, call_convention_p)
12658 (d_parse_symbol): New functions.
12659 (d_demangle): Use d_parse_symbol to demangle D symbols.
12660
94b1b47e
IB
126612014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12662
12663 * d-lang.h (struct builtin_d_type): New data type.
12664 (builtin_d_type): Add declaration.
12665 * d-lang.c (d_language_arch_info, build_d_types)
12666 (builtin_d_type): New functions.
12667 (enum d_primitive_types): New data type.
12668 (d_language_defn): Change c_language_arch_info to
12669 d_language_arch_info.
12670 (d_type_data): New static variable.
12671 (_initialize_d_language): Initialize d_type_data.
12672
63778547
IB
126732014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12674
12675 * d-lang.h (d_main_name): Add declaration.
12676 * d-lang.c (d_main_name): New function.
12677 * symtab.c (find_main_name): Add call to d_main_name.
12678
3271ba66
IB
126792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12680
12681 * d-lang.c (d_language_defn): Change macro_expansion_c to
12682 macro_expansion_no.
12683
d36b3012
IB
126842014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12685
12686 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12687
c90a6fb7
SDJ
126882014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12689
12690 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12691 gdb_exception" declaration.
12692 * remote.c (getpkt_or_notif_sane): Likewise.
12693
749234e5
DE
126942014-01-17 Doug Evans <dje@google.com>
12695
12696 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12697 function, contents of dirnames_to_char_ptr_vec_append moved here.
12698 (delim_string_to_char_ptr_vec): New function.
12699 (dirnames_to_char_ptr_vec_append): Rewrite.
12700 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12701
df049a58
DE
127022014-01-17 Doug Evans <dje@google.com>
12703
12704 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12705 and moved here ...
12706 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12707 #include "common-utils.h".
12708 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12709 * common/vec.h (VEC_ASSERT_PASS): Update.
12710 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12711 (MACH_CHECK_ERROR): Update.
12712
69f97648
SM
127132014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12714
12715 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12716 comments.
12717 * gdbarch.h: Regenerate.
12718
98b1cfdc
TT
127192014-01-16 Tom Tromey <tromey@redhat.com>
12720
12721 * value.c (struct value) <regnum>: Move earlier.
12722
77a19445
TT
127232014-01-16 Tom Tromey <tromey@redhat.com>
12724
12725 * remote.c (extended_remote_create_inferior): Rename from
12726 extended_remote_create_inferior_1. Add "ops" argument. Remove
12727 old implementation.
12728
62261490
PA
127292014-01-16 Pedro Alves <palves@redhat.com>
12730
12731 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12732 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12733 the backchain.
12734
4d65956b
DE
127352014-01-16 Doug Evans <dje@google.com>
12736
12737 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12738
52834460
MM
127392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12740
12741 * btrace.h (btrace_thread_flag): New.
12742 (struct btrace_thread_info) <flags>: New.
12743 * record-btrace.c (record_btrace_resume_thread)
12744 (record_btrace_find_thread_to_move, btrace_step_no_history)
12745 (btrace_step_stopped, record_btrace_start_replaying)
12746 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12747 (record_btrace_find_resume_thread): New.
12748 (record_btrace_resume, record_btrace_wait): Extend.
12749 (record_btrace_can_execute_reverse): New.
12750 (record_btrace_open): Fail in non-stop mode.
12751 (record_btrace_set_replay): Split into this, ...
12752 (record_btrace_stop_replaying): ... this, ...
12753 (record_btrace_clear_histories): ... and this.
12754 (init_record_btrace_ops): Init to_can_execute_reverse.
12755 * NEWS: Announce it.
12756
118e6252
MM
127572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12758
12759 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12760 (forward_target_decr_pc_after_break)
12761 (target_decr_pc_after_break): New.
12762 * target.c (forward_target_decr_pc_after_break)
12763 (target_decr_pc_after_break): New.
12764 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12765 instead of gdbarch_decr_pc_after_break.
12766 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12767 instead of gdbarch_decr_pc_after_break.
12768 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12769 instead of gdbarch_decr_pc_after_break.
12770 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12771 instead of gdbarch_decr_pc_after_break.
12772 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12773 instead of gdbarch_decr_pc_after_break.
12774 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12775 instead of gdbarch_decr_pc_after_break.
12776
6e07b1d2
MM
127772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12778
12779 * btrace.c: Include regcache.h.
12780 (btrace_add_pc): New.
12781 (btrace_enable): Call btrace_add_pc.
12782 (btrace_is_empty): New.
12783 * btrace.h (btrace_is_empty): New.
12784 * record-btrace.c (require_btrace, record_btrace_info): Call
12785 btrace_is_empty.
12786
969c39fb
MM
127872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12788
12789 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12790 Support delta reads.
12791 (linux_disable_btrace): Change return type.
12792 * common/linux-btrace.h (linux_read_btrace): Change parameters
12793 and return type to allow error reporting. Update users.
12794 (linux_disable_btrace): Change return type. Update users.
12795 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12796 New.
12797 (btrace_error): New.
12798 (btrace_block) <begin>: Comment on BEGIN == 0.
12799 * btrace.c (btrace_compute_ftrace): Start from the end of
12800 the current trace.
12801 (btrace_stitch_trace, btrace_clear_history): New.
12802 (btrace_fetch): Read delta trace, return if replaying.
12803 (btrace_clear): Move clear history code to btrace_clear_history.
12804 (parse_xml_btrace): Throw an error if parsing failed.
12805 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12806 and return type to allow error reporting.
12807 (target_read_btrace): Change parameters and return type to allow
12808 error reporting.
12809 * target.c (target_read_btrace): Update.
12810 * remote.c (remote_read_btrace): Support delta reads. Pass
12811 errors on.
12812 * NEWS: Announce it.
12813
0b722aec
MM
128142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12815
12816 * record.h (record_btrace_frame_unwind)
12817 (record_btrace_tailcall_frame_unwind): New declarations.
12818 * dwarf2-frame: Include record.h
12819 (dwarf2_frame_cfa): Throw an error for btrace frames.
12820 * record-btrace.c: Include hashtab.h.
12821 (btrace_get_bfun_name): New.
12822 (btrace_call_history): Call btrace_get_bfun_name.
12823 (struct btrace_frame_cache): New.
12824 (bfcache): New.
12825 (bfcache_hash, bfcache_eq, bfcache_new): New.
12826 (btrace_get_frame_function): New.
12827 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12828 (record_btrace_frame_this_id): Compute own id.
12829 (record_btrace_frame_prev_register): Provide PC, throw_error
12830 for all other registers.
12831 (record_btrace_frame_sniffer): Detect btrace frames.
12832 (record_btrace_tailcall_frame_sniffer): New.
12833 (record_btrace_frame_dealloc_cache): New.
12834 (record_btrace_frame_unwind): Add new functions.
12835 (record_btrace_tailcall_frame_unwind): New.
12836 (_initialize_record_btrace): Allocate cache.
12837 * btrace.c (btrace_clear): Call reinit_frame_cache.
12838 * NEWS: Announce it.
12839
066ce621
MM
128402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12841
12842 * record-btrace.c (record_btrace_set_replay)
12843 (record_btrace_goto_begin, record_btrace_goto_end)
12844 (record_btrace_goto): New.
12845 (init_record_btrace_ops): Initialize them.
12846 * NEWS: Announce it.
12847
e2887aa3
MM
128482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12849
12850 * record-btrace.c (record_btrace_find_new_threads)
12851 (record_btrace_thread_alive): New.
12852 (init_record_btrace_ops): Initialize to_find_new_threads and
12853 to_thread_alive.
12854
b2f4cfde
MM
128552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12856
12857 * record-btrace.c (record_btrace_resume): New.
12858 (record_btrace_wait): New.
12859 (init_record_btrace_ops): Initialize to_wait and to_resume.
12860
633785ff
MM
128612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12862
12863 * record-btrace.c (record_btrace_xfer_partial)
12864 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12865 (record_btrace_allow_memory_access): New.
12866 (init_record_btrace_ops): Initialize new methods.
12867 * target.c (raw_memory_xfer_partial): Bail out if target reports
12868 that this memory is not available.
12869
3db08215
MM
128702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12871
12872 * target.h (target_ops) <to_insert_breakpoint>
12873 <to_remove_breakpoint>: Add target_ops parameter.
12874 (forward_target_insert_breakpoint): New.
12875 (forward_target_remove_breakpoint): New.
12876 (memory_remove_breakpoint, memory_insert_breakpoint):
12877 Add target_ops parameter.
12878 * target.c (target_insert_breakpoint): Split into this and ...
12879 (forward_target_insert_breakpoint): ... this.
12880 (target_remove_breakpoint): Split into this and ...
12881 (forward_target_remove_breakpoint): ... this.
12882 (debug_to_insert_breakpoint): Add target_ops parameter.
12883 Call forward_target_insert_breakpoint.
12884 (debug_to_remove_breakpoint): Add target_ops parameter.
12885 Call forward_target_remove_breakpoint.
12886 (update_current_target): Do not inherit or default to_insert_breakpoint
12887 and to_remove_breakpoint.
12888 * corelow.c (ignore): Add target_ops parameter.
12889 * exec.c (ignore): Add target_ops parameter.
12890 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12891 Add target_ops parameter.
12892 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12893 Add target_ops parameter.
12894 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12895 Add target_ops parameter.
12896 * record-full.c (record_full_beneath_to_insert_breakpoint)
12897 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12898 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12899 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12900 (record_full_core_remove_breakpoint): Add target_ops parameter.
12901 Update users.
12902 (record_full_beneath_to_insert_breakpoint_ops)
12903 (record_full_beneath_to_remove_breakpoint_ops)
12904 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12905 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12906 tmp_to_remove_breakpoint_ops,
12907 record_full_beneath_to_insert_breakpoint_ops, and
12908 record_full_beneath_to_remove_breakpoint_ops.
12909 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12910 (m32r_remove_breakpoint): Add target_ops parameter.
12911 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12912 Add target_ops parameter.
12913 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12914 Add target_ops parameter.
12915
cecac1ab
MM
129162014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12917 Markus Metzger <markus.t.metzger@intel.com>
12918
12919 * record-btrace.c: Include frame-unwind.h.
12920 (record_btrace_frame_unwind_stop_reason)
12921 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12922 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12923 New.
12924 (init_record_btrace_ops): Install it.
12925
824344ca
MM
129262014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12927
12928 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12929 get_prev_frame_1.
12930
32261e52
MM
129312014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12932
12933 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12934 earlier.
12935
ea001bdc
MM
129362014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12937
12938 * frame-unwind.c: Include target.h.
12939 (frame_unwind_try_unwinder): New function with code from ...
12940 (frame_unwind_find_by_frame): ... here. New variable
12941 unwinder_from_target, call also target_get_unwinder)
12942 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12943 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12944 * target.h (struct target_ops): New fields to_get_unwinder and
12945 to_get_tailcall_unwinder.
12946 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12947
1f3ef581
MM
129482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12949
12950 * record-btrace.c (record_btrace_fetch_registers)
12951 (record_btrace_store_registers)
12952 (record_btrace_to_prepare_to_store): New.
12953 (init_record_btrace_ops): Add the above.
12954
f32dbf8c
MM
129552014-01-16 Tom Tromey <tromey@redhat.com>
12956
12957 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12958 * target.h (struct target_ops) <to_prepare_to_store>: Add
12959 argument.
12960 (target_prepare_to_store): Add argument.
12961 * target.c (debug_to_prepare_to_store): Add argument.
12962 (update_current_target): Update.
12963 * remote.c (remote_prepare_to_store): Add 'self' argument.
12964 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12965 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12966 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12967 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12968 argument.
12969 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12970 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12971 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12972 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12973 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12974
07bbe694
MM
129752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12976
12977 * btrace.h (replay) <replay>: New.
12978 (btrace_is_replaying): New.
12979 * btrace.c (btrace_clear): Free replay iterator.
12980 (btrace_is_replaying): New.
12981 * record-btrace.c (record_btrace_is_replaying): New.
12982 (record_btrace_info): Print insn number if replaying.
12983 (record_btrace_insn_history): Start at replay position.
12984 (record_btrace_call_history): Start at replay position.
12985 (init_record_btrace_ops): Init to_record_is_replaying.
12986
0688d04e
MM
129872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12988
12989 * record-btrace.c (record_btrace_insn_history_range): Include
12990 end.
12991 (record_btrace_insn_history_from): Adjust range.
12992 (record_btrace_call_history_range): Include
12993 end.
12994 (record_btrace_call_history_from): Adjust range.
12995 * NEWS: Announce changes.
12996
8710b709
MM
129972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12998
12999 * record.h (enum record_print_flag)
13000 <record_print_indent_calls>: New.
13001 * record.c (get_call_history_modifiers): Recognize /c modifier.
13002 (_initialize_record): Document /c modifier.
13003 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13004 Reorder fields. Optionally indent the function name. Update
13005 all users.
13006 * NEWS: Announce changes.
13007
d0fa7535
MM
130082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13009
13010 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13011
5de9129b
MM
130122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13013
13014 * btrace.c (ftrace_new_function): Start counting at one.
13015 * record-btrace.c (record_btrace_info): Adjust number of calls
13016 and insns.
13017 * NEWS: Announce it.
13018
7acbe133
MM
130192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13020
13021 * record-btrace.c (btrace_call_history_insn_range): Print
13022 insn range as [begin, end].
13023
23a7fe75
MM
130242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13025
13026 * btrace.h (struct btrace_func_link): New.
13027 (enum btrace_function_flag): New.
13028 (struct btrace_inst): Rename to ...
13029 (struct btrace_insn): ...this. Update all users.
13030 (struct btrace_func) <ibegin, iend>: Remove.
13031 (struct btrace_func_link): New.
13032 (struct btrace_func): Rename to ...
13033 (struct btrace_function): ...this. Update all users.
13034 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13035 (number, level, flags>: New.
13036 (struct btrace_insn_iterator): Rename to ...
13037 (struct btrace_insn_history): ...this.
13038 Update all users.
13039 (struct btrace_insn_iterator, btrace_call_iterator): New.
13040 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13041 (struct btrace_target_info) <begin, end, level>
13042 <insn_history, call_history>: New.
13043 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13044 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13045 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13046 (btrace_call_number, btrace_call_begin, btrace_call_end)
13047 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13048 (btrace_find_function_by_number, btrace_set_insn_history)
13049 (btrace_set_call_history): New.
13050 * btrace.c (btrace_init_insn_iterator)
13051 (btrace_init_func_iterator, compute_itrace): Remove.
13052 (ftrace_print_function_name, ftrace_print_filename)
13053 (ftrace_skip_file): Change
13054 parameter to const.
13055 (ftrace_init_func): Remove.
13056 (ftrace_debug): Use new btrace_function fields.
13057 (ftrace_function_switched): Also consider gaining and
13058 losing symbol information).
13059 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13060 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13061 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13062 New.
13063 (ftrace_new_function): Move. Remove debug print.
13064 (ftrace_update_lines, ftrace_update_insns): New.
13065 (ftrace_update_function): Check for call, ret, and jump.
13066 (compute_ftrace): Renamed to ...
13067 (btrace_compute_ftrace): ...this. Rewritten to compute call
13068 stack.
13069 (btrace_fetch, btrace_clear): Updated.
13070 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13071 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13072 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13073 (btrace_call_number, btrace_call_begin, btrace_call_end)
13074 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13075 (btrace_find_function_by_number, btrace_set_insn_history)
13076 (btrace_set_call_history): New.
13077 * record-btrace.c (require_btrace): Use new btrace thread
13078 info fields.
13079 (record_btrace_info, btrace_insn_history)
13080 (record_btrace_insn_history, record_btrace_insn_history_range):
13081 Use new btrace thread info fields and new iterator.
13082 (btrace_func_history_src_line): Rename to ...
13083 (btrace_call_history_src_line): ...this. Use new btrace
13084 thread info fields.
13085 (btrace_func_history): Rename to ...
13086 (btrace_call_history): ...this. Use new btrace thread info
13087 fields and new iterator.
13088 (record_btrace_call_history, record_btrace_call_history_range):
13089 Use new btrace thread info fields and new iterator.
13090
8372a7cb
MM
130912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13092
13093 * frame.h (frame_id_build_unavailable_stack_special): New.
13094 * frame.c (frame_id_build_unavailable_stack_special): New.
13095
c2170eef
MM
130962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13097
13098 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13099 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13100 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13101 to gdbarch.
13102 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13103 (i386_insn_is_jump, i386_jmp_p): New.
13104 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13105 insn_is_jump to gdbarch.
13106 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13107 * gdbarch.h: Regenerated.
13108 * gdbarch.c: Regenerated.
13109 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13110 (default_insn_is_jump): New.
13111 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13112 (default_insn_is_jump): New.
13113
864089d2
MM
131142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13115
13116 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13117 Change to ...
13118 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13119 (btrace_read_type) <btrace_read_new>: Change to ...
13120 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13121
ed9edfb5
MM
131222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13123
13124 * common/linux-btrace.c (linux_read_btrace): Free trace from
13125 previous iteration.
13126
fbcbc3fd
DE
131272014-01-15 Doug Evans <dje@google.com>
13128
13129 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13130 uint32_t.
13131
3d548a53
TT
131322014-01-15 Tom Tromey <tromey@redhat.com>
13133
13134 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13135 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13136 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13137 (set_objfile_main_name): New function.
13138 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13139 language_of_main>: New fields.
13140 (set_objfile_main_name): Declare.
13141 * symtab.c (find_main_name): Loop over objfiles to find the main
13142 name and language.
13143 (set_main_name): Now static.
13144 (get_main_info): Add comment.
13145 * symtab.h (set_main_name): Don't declare.
13146
32ac0d11
TT
131472014-01-15 Tom Tromey <tromey@redhat.com>
13148
13149 * symtab.c (main_progspace_key): New global.
13150 (struct main_info): New.
13151 (name_of_main, language_of_main): Remove.
13152 (get_main_info, main_info_cleanup): New function.
13153 (set_main_name, main_name, main_language): Use get_main_info.
13154 (_initialize_symtab): Initialize main_progspace_key.
13155
9e6c82ad
TT
131562014-01-15 Tom Tromey <tromey@redhat.com>
13157
13158 * dbxread.c (process_one_symbol): Update.
13159 * dwarf2read.c (read_partial_die): Update.
13160 * symfile.c (set_initial_language): Call main_language.
13161 * symtab.c (language_of_main): Now static.
13162 (set_main_name): Add 'lang' parameter.
13163 (find_main_name): Update.
13164 (main_language): New function.
13165 (symtab_observer_executable_changed): Update.
13166 * symtab.h (set_main_name): Update.
13167 (language_of_main): Remove.
13168 (main_language): Declare.
13169
6ef55de7
TT
131702014-01-15 Tom Tromey <tromey@redhat.com>
13171
13172 * symfile.c (init_entry_point_info): Use new "initialized" field.
13173 Update.
13174 * objfiles.h (struct entry_point) <initialized>: New field.
13175 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13176 (struct objfile) <ei>: ...here. Remove.
13177 * objfiles.c (entry_point_address_query): Update.
13178
53eddfa6
TT
131792014-01-15 Tom Tromey <tromey@redhat.com>
13180
13181 * objfiles.c (entry_point_address_query): Relocate entry point
13182 address.
13183 (objfile_relocate1): Do not relocate entry point address.
13184 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13185 <the_bfd_section_index>: New field.
13186 * symfile.c (init_entry_point_info): Find the entry point's
13187 section.
13188
d56e56aa
TT
131892014-01-15 Tom Tromey <tromey@redhat.com>
13190
13191 * solib-frv.c (enable_break): Use entry_point_address_query.
13192
33a97bbe
OJ
131932014-01-15 Omair Javaid <omair.javaid@linaro.org>
13194
13195 * NEWS: Add note on improved process record-replay on
13196 arm*-linux* targets.
13197
c6ec2b30
OJ
131982014-01-15 Omair Javaid <omair.javaid@linaro.org>
13199
13200 * arm-tdep.c (enum arm_record_result): New enum.
13201 (arm_record_unsupported_insn): New function.
13202 (arm_record_coproc_data_proc): Removed.
13203 (thumb2_record_ld_st_multiple): New function.
13204 (thumb2_record_ld_st_dual_ex_tbb): New function.
13205 (thumb2_record_data_proc_sreg_mimm): New function.
13206 (thumb2_record_ps_dest_generic): New function.
13207 (thumb2_record_branch_misc_cntrl): New function.
13208 (thumb2_record_str_single_data): New function.
13209 (thumb2_record_ld_mem_hints): New function.
13210 (thumb2_record_ld_word): New function.
13211 (thumb2_record_lmul_lmla_div): New function.
13212 (thumb2_record_decode_insn_handler): New function.
13213 (decode_insn): Add thumb32 instruction handlers.
13214
97dfe206
OJ
132152014-01-15 Omair Javaid <omair.javaid@linaro.org>
13216
13217 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13218 (struct arm_linux_record_tdep): Declare.
13219 (arm_canonicalize_syscall): New function.
13220 (arm_all_but_pc_registers_record): New function.
13221 (arm_linux_syscall_record): New function.
13222 (arm_linux_init_abi): Add syscall recording constructs.
13223 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13224 decoding. (arm_record_coproc_data_proc): Update arm syscall
13225 decoding.
13226 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13227 <arm_syscall_record>: New field.
13228 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13229 gdb_target_obs.
13230
9904a494
OJ
132312014-01-15 Omair Javaid <omair.javaid@linaro.org>
13232
13233 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13234 register for push instruction recording.
13235
f969241e
OJ
132362014-01-15 Omair Javaid <omair.javaid@linaro.org>
13237
13238 * arm-tdep.c (thumb_record_misc): Update to correct logical
13239 error while recording ldm, ldmia and pop instructions.
13240
bfbbec00
OJ
132412014-01-15 Omair Javaid <omair.javaid@linaro.org>
13242
13243 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13244
e40adcc9
PA
132452014-01-15 Pedro Alves <palves@redhat.com>
13246
13247 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13248 (go32_resume, go32_fetch_registers, store_register)
13249 (go32_store_registers, go32_prepare_to_store)
13250 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13251 (go32_create_inferior, go32_can_run, go32_terminal_init)
13252 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13253 declarations.
13254
b0a16e66
TT
132552014-01-15 Tom Tromey <tromey@redhat.com>
13256
13257 * target.h (async_callback_ftype): New typedef.
13258 (struct target_ops) <to_async>: Use it.
13259
bf7105a4
JB
132602014-01-15 Joel Brobecker <brobecker@adacore.com>
13261
13262 * python/py-value.c (get_field_type): Remove unnecessary curly
13263 braces for single-statement if block.
13264
a8f35c2e
JB
132652014-01-15 Joel Brobecker <brobecker@adacore.com>
13266
13267 * python/py-type.c (convert_field): Add missing empty line
13268 after declarations.
13269
bb4142cf
DE
132702014-01-14 Doug Evans <dje@google.com>
13271
13272 * symfile.h (expand_symtabs_matching): Renamed from
13273 expand_partial_symbol_names. Update prototype.
13274 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13275 * symfile.c (expand_symtabs_matching): Renamed from
13276 expand_partial_symbol_names. New args file_matcher, kind.
13277 Rename arg fun to symbol_matcher.
13278 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13279 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13280 ada_expand_partial_symbol_name.
13281 (ada_make_symbol_completion_list): Update to call
13282 expand_symtabs_matching.
13283 (ada_add_global_exceptions): Call expand_symtabs_matching.
13284 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13285 call map_symbol_filenames.
13286 * symtab.c (sources_info): Update to call map_symbol_filenames.
13287 (search_symbols): Call expand_symtabs_matching.
13288 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13289 (default_make_symbol_completion_list_break_on): Update to call
13290 expand_symtabs_matching.
13291 (make_source_files_completion_list): Update to call
13292 map_symbol_filenames.
13293
206f2a57
DE
132942014-01-14 Doug Evans <dje@google.com>
13295
13296 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13297 (expand_symtabs_symbol_matcher_ftype): New typedef.
13298 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13299 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13300 * symfile.c (expand_partial_symbol_names): Update to use
13301 expand_symtabs_symbol_matcher_ftype.
13302 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13303 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13304 Arg name_matcher renamed to symbol_matcher.
13305 * psymtab.c (recursively_search_psymtabs): Update to use
13306 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13307 sym_matcher.
13308 (expand_symtabs_matching_via_partial): Update to use
13309 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13310 Arg name_matcher renamed to symbol_matcher.
13311
540c2971
DE
133122014-01-14 Doug Evans <dje@google.com>
13313
13314 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13315 (map_partial_symbol_filenames): Ditto.
13316 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13317 (map_partial_symbol_filenames): Ditto.
13318 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13319 (map_partial_symbol_filenames): Ditto.
13320 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13321 (map_partial_symbol_filenames): Ditto.
13322 * symtab.c: Delete #include "psymtab.h".
13323
8213266a
PA
133242014-01-14 Pedro Alves <palves@redhat.com>
13325 Tom Tromey <tromey@redhat.com>
13326
13327 * infrun.c (use_displaced_stepping): Use find_record_target
13328 instead of RECORD_IS_USED.
13329 (adjust_pc_after_break): Use record_full_is_used instead of
13330 RECORD_IS_USED.
13331 * record-btrace.c (record_btrace_open): Call record_preopen
13332 instead of checking RECORD_IS_USED.
13333 * record-full.c (record_full_shortname)
13334 (record_full_core_shortname): New globals.
13335 (record_full_is_used): New function.
13336 (find_full_open): Call record_preopen instead of checking
13337 RECORD_IS_USED.
13338 (init_record_full_ops): Set the target's shortname to
13339 record_full_shortname.
13340 (init_record_full_core_ops): Set the target's shortname to
13341 record_full_core_shortname.
13342 * record-full.h (record_full_is_used): Declare.
13343 * record.c (find_record_target): Make extern.
13344 (record_preopen): New function.
13345 * record.h (RECORD_IS_USED): Delete macro.
13346 (find_record_target, record_preopen): Declare functions.
13347
7ec1862d
YQ
133482014-01-14 Yao Qi <yao@codesourcery.com>
13349
13350 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13351 'len''s type to ULONGEST.
13352 (core_xfer_shared_libraries_aix): Likewise.
13353 * gdbarch.c, gdbarch.h: Regenerated.
13354 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13355 Change type of 'len' to ULONGEST.
13356 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13357 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13358
dea80a27
YQ
133592014-01-14 Yao Qi <yao@codesourcery.com>
13360
13361 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13362 type of 'len' to ULONGEST.
13363 (linux_xfer_osdata_processgroups): Likewise.
13364 (linux_xfer_osdata_threads): Likewise.
13365 (linux_xfer_osdata_fds): Likewise.
13366 (linux_xfer_osdata_isockets): Likewise.
13367 (linux_xfer_osdata_shm): Likewise.
13368 (linux_xfer_osdata_sem): Likewise.
13369 (linux_xfer_osdata_msg): Likewise.
13370 (linux_common_xfer_osdata): Likewise.
13371 (struct osdata_type) <getter>: Likewise.
13372 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13373 the declaration.
13374
b55e14c7
YQ
133752014-01-14 Yao Qi <yao@codesourcery.com>
13376
13377 * target.h (target_xfer_partial_ftype): Update.
13378 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13379 ULONGEST.
13380 * aix-thread.c (aix_thread_xfer_partial): Change type of
13381 argument 'len' to ULONGEST.
13382 * auxv.c (procfs_xfer_auxv): Likewise.
13383 (ld_so_xfer_auxv): Likewise.
13384 (memory_xfer_auxv): Likewise.
13385 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13386 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13387 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13388 * corelow.c (core_xfer_partial): Likewise.
13389 * ctf.c (ctf_xfer_partial): Likewise.
13390 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13391 '%u'.
13392 (darwin_read_dyld_info): Likewise.
13393 (darwin_xfer_partial): Likewise.
13394 * exec.c (section_table_xfer_memory_partial): Likewise.
13395 (exec_xfer_partial): Likewise.
13396 * exec.h (section_table_xfer_memory_partial): Update
13397 declaration.
13398 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13399 instead of plongest.
13400 (gnu_xfer_partial): Likewise.
13401 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13402 (ia64_hpux_xfer_solib_got): Likewise.
13403 (ia64_hpux_xfer_partial): Likewise.
13404 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13405 * inf-ptrace.c (inf_ptrace_xfer_partial):
13406 * inf-ttrace.c (inf_ttrace_xfer_partial):
13407 * linux-nat.c (linux_xfer_siginfo): Likewise.
13408 (linux_nat_xfer_partial): Likewise.
13409 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13410 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13411 * monitor.c (monitor_xfer_memory): Likewise.
13412 (monitor_xfer_partial): Likewise.
13413 * procfs.c (procfs_xfer_partial): Likewise.
13414 * record-full.c (record_full_xfer_partial): Likewise.
13415 (record_full_core_xfer_partial): Likewise.
13416 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13417 instead of plongest.
13418 (gdbsim_xfer_partial): Likewise.
13419 * remote.c (remote_xfer_partial): Likewise.
13420 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13421 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13422 declaration.
13423 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13424 (rs6000_xfer_shared_libraries): Likewise.
13425 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13426 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13427 (sparc_xfer_partial): Likewise.
13428 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13429 (spu_xfer_partial): Likewise.
13430 * spu-multiarch.c (spu_xfer_partial): Likewise.
13431 * target.c (target_read_live_memory): Likewise.
13432 (memory_xfer_live_readonly_partial): Likewise.
13433 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13434 (target_xfer_partial, default_xfer_partial): Likewise.
13435 (current_xfer_partial): Likewise.
13436 * tracepoint.c (tfile_xfer_partial): Likewise.
13437 * windows-nat.c (windows_xfer_memory): Likewise. Call
13438 pulongest instead of plongest.
13439 (windows_xfer_partial): Likewise.
13440 (windows_xfer_shared_libraries): Likewise.
13441
05804640
YQ
134422014-01-14 Yao Qi <yao@codesourcery.com>
13443
13444 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13445 target_xfer_partial_ftype.
13446
b5b08fb4
SC
134472014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13448
13449 PR python/15464
13450 PR python/16113
13451 * valops.c (value_struct_elt_bitpos): New function
13452 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13453 object to 'None' if the field name is an empty string ("").
13454 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13455 attribute to look for a field when 'name' is 'None'.
13456 (get_field_type): New function
13457
13aaf454
DE
134582014-01-13 Doug Evans <dje@google.com>
13459
13460 PR symtab/16426
13461 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13462 (try_open_dwop_file): Ditto.
13463 * gdb_bfd.c: #include "vec.h".
13464 (bfdp): New typedef.
13465 (struct gdb_bfd_data): New member included_bfds.
13466 (gdb_bfd_unref): Unref all included bfds.
13467 (gdb_bfd_record_inclusion): New function.
13468 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13469
c2cec97c
TT
134702014-01-13 Tom Tromey <tromey@redhat.com>
13471
13472 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13473
78e5999d
TT
134742014-01-13 Tom Tromey <tromey@redhat.com>
13475
13476 * defs.h (use_windows): Remove.
13477 * gdb.c (main): Update.
13478 * main.c (captured_main, gdb_main): Update.
13479 * main.h (struct captured_main_args) <use_windows>: Remove.
13480 * top.c (use_windows): Remove.
13481
f2052bbe
TT
134822014-01-13 Tom Tromey <tromey@redhat.com>
13483
13484 * defs.h (deprecated_flush_hook): Remove.
13485
fde4f8ed
JK
134862014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13487
13488 PR threads/16216
13489 * linux-thread-db.c (try_thread_db_load): Add parameter
13490 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13491 (try_thread_db_load_from_pdir_1): Move it there from here.
13492 (try_thread_db_load_from_sdir): Update caller.
13493 (try_thread_db_load_from_dir): Move it there from here.
13494
bdf61915
PP
134952014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13496
13497 * regformats/regdat.sh: Always rewrite the register file.
13498
f71e1a8d
PA
134992014-01-13 Pedro Alves <palves@redhat.com>
13500
13501 * Makefile.in (CHECK_HEADERS): New variable.
13502 (check-headers:): New rule.
13503
42c85435
TT
135042014-01-13 Tom Tromey <tromey@redhat.com>
13505
13506 * cli/cli-setshow.c (do_set_command): Update.
13507 * defs.h (deprecated_set_hook): Remove.
13508 * top.c (deprecated_set_hook): Remove.
13509
f8de5129
PA
135102014-01-13 Pedro Alves <palves@redhat.com>
13511
13512 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13513 the tracepoint if the PC is a pseudo-register.
13514
fc270c35
TT
135152014-01-13 Tom Tromey <tromey@redhat.com>
13516
13517 * defs.h (XCALLOC): Remove.
13518 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13519 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13520 * dwarf2loc.c (allocate_piece_closure): Likewise.
13521 * elfread.c (elf_symfile_segments): Likewise.
13522 (elf_symfile_segments): Likewise.
13523 * gdbtypes.c (copy_type_recursive): Likewise.
13524 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13525 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13526 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13527 XCALLOC.
13528 * mt-tdep.c (mt_gdbarch_init): Likewise.
13529 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13530 XCALLOC.
13531 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13532 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13533 * registry.c (registry_alloc_data): Likewise.
13534 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13535 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13536 * serial.c (serial_fdopen_ops): Likewise.
13537 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13538 XCALLOC.
13539 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13540 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13541 not XCALLOC.
13542
70ba0933
TT
135432014-01-13 Tom Tromey <tromey@redhat.com>
13544
13545 * defs.h (XMALLOC): Remove.
13546 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13547 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13548 * cli-out.c (struct ui_out *): Likewise.
13549 * cli/cli-dump.c (add_dump_command): Likewise.
13550 (add_dump_command): Likewise.
13551 * complaints.c (get_complaints): Likewise.
13552 (find_complaint): Likewise.
13553 * dwarf2-frame.c (execute_cfa_program): Likewise.
13554 * dwarf2read.c (abbrev_table_read_table): Likewise.
13555 * gdbarch.sh: Likewise.
13556 * gdbarch.c: Rebuild.
13557 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13558 * interps.c (interp_new): Likewise.
13559 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13560 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13561 * mi/mi-console.c (mi_console_file_new): Likewise.
13562 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13563 * mi/mi-out.c (mi_out_new): Likewise.
13564 * mi/mi-parse.c (mi_parse): Likewise.
13565 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13566 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13567 * observer.c (xalloc_observer_list_node): Likewise.
13568 * regcache.c (regcache_xmalloc_1): Likewise.
13569 * reggroups.c (reggroup_new): Likewise.
13570 (_initialize_reggroup): Likewise.
13571 * registry.c (register_data_with_cleanup): Likewise.
13572 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13573 * ser-base.c (serial_ttystate): Likewise.
13574 * ser-mingw.c (make_pipe_state): Likewise.
13575 * ser-pipe.c (pipe_open): Likewise.
13576 * serial.c (serial_open): Likewise.
13577 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13578 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13579 (tui_alloc_win_info): Likewise.
13580 (tui_add_content_elements): Likewise.
13581 * tui/tui-file.c (tui_file_new): Likewise.
13582 * tui/tui-out.c (tui_out_new): Likewise.
13583 * ui-file.c (mem_file_new): Likewise.
13584 * ui-out.c (push_level): Likewise.
13585 (make_cleanup_ui_out_end): Likewise.
13586 (append_header_to_list): Likewise.
13587 (ui_out_new): Likewise.
13588 * user-regs.c (user_reg_add_builtin): Likewise.
13589
41bf6aca
TT
135902014-01-13 Tom Tromey <tromey@redhat.com>
13591
13592 * defs.h (XZALLOC): Remove.
13593 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13594 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13595 (get_ada_tasks_inferior_data): Likewise.
13596 * auto-load.c (get_auto_load_pspace_data): Likewise.
13597 * auxv.c (get_auxv_inferior_data): Likewise.
13598 * bfd-target.c (target_bfd_reopen): Likewise.
13599 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13600 (deprecated_insert_raw_breakpoint): Likewise.
13601 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13602 * corelow.c (core_open): Likewise.
13603 * darwin-nat.c (darwin_check_new_threads): Likewise.
13604 (darwin_attach_pid): Likewise.
13605 * dummy-frame.c (dummy_frame_push): Likewise.
13606 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13607 * dwarf2loc.c (allocate_piece_closure): Likewise.
13608 * elfread.c (elf_symfile_segments): Likewise.
13609 * eval.c (ptrmath_type_p): Likewise.
13610 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13611 * gdbtypes.c (alloc_type_arch): Likewise.
13612 (alloc_type_instance): Likewise.
13613 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13614 * inf-child.c (inf_child_can_use_agent): Likewise.
13615 * inflow.c (get_inflow_inferior_data): Likewise.
13616 * infrun.c (save_infcall_suspend_state): Likewise.
13617 * jit.c (jit_reader_load): Likewise.
13618 (get_jit_objfile_data): Likewise.
13619 (get_jit_program_space_data): Likewise.
13620 (jit_object_open_impl): Likewise.
13621 (jit_symtab_open_impl): Likewise.
13622 (jit_block_open_impl): Likewise.
13623 (jit_frame_sniffer): Likewise.
13624 * linux-fork.c (add_fork): Likewise.
13625 * maint.c (make_command_stats_cleanup): Likewise.
13626 * objfiles.c (get_objfile_pspace_data): Likewise.
13627 * opencl-lang.c (struct lval_closure): Likewise.
13628 * osdata.c (osdata_start_osdata): Likewise.
13629 * progspace.c (new_address_space): Likewise.
13630 (add_program_space): Likewise.
13631 * remote-sim.c (get_sim_inferior_data): Likewise.
13632 * sh-tdep.c (sh_gdbarch_init): Likewise.
13633 * skip.c (Ignore): Likewise.
13634 (skip_delete_command): Likewise.
13635 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13636 (library_list_start_library): Likewise.
13637 (solib_aix_current_sos): Likewise.
13638 * solib-darwin.c (get_darwin_info): Likewise.
13639 (darwin_current_sos): Likewise.
13640 * solib-dsbt.c (get_dsbt_info): Likewise.
13641 * solib-ia64-hpux.c (new_so_list): Likewise.
13642 (ia64_hpux_get_solib_linkage_addr): Likewise.
13643 * solib-spu.c (append_ocl_sos): Likewise.
13644 (spu_current_sos): Likewise.
13645 * solib-svr4.c (get_svr4_info): Likewise.
13646 (svr4_keep_data_in_core): Likewise.
13647 (library_list_start_library): Likewise.
13648 (svr4_default_sos): Likewise.
13649 (svr4_read_so_list): Likewise.
13650 * solib-target.c (library_list_start_library): Likewise.
13651 (solib_target_current_sos): Likewise.
13652 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13653 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13654 * symfile.c (default_symfile_segments): Likewise.
13655 * target-descriptions.c (tdesc_data_init): Likewise.
13656 (tdesc_create_reg): Likewise.
13657 (struct tdesc_type *): Likewise.
13658 (tdesc_create_vector): Likewise.
13659 (tdesc_set_struct_size): Likewise.
13660 (struct tdesc_type *): Likewise.
13661 (tdesc_free_feature): Likewise.
13662 (tdesc_create_feature): Likewise.
13663 * windows-nat.c (windows_add_thread): Likewise.
13664 (windows_make_so): Likewise.
13665 * xml-support.c (gdb_xml_body_text): Likewise.
13666 (gdb_xml_create_parser_and_cleanup): Likewise.
13667 (xml_process_xincludes): Likewise.
13668 * xml-syscall.c (allocate_syscalls_info): Likewise.
13669 (syscall_create_syscall_desc): Likewise.
13670
5acfdbae
SDJ
136712014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13672
13673 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13674 function, with code from i386_stap_parse_special_token.
13675 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13676 (i386_stap_parse_special_token): Move code to the two functions
13677 above; simplify it.
13678
0000e5cc
PA
136792014-01-09 Pedro Alves <palves@redhat.com>
13680 Hui Zhu <hui@codesourcery.com>
13681
13682 PR gdb/16101
13683 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13684 bp_err_string. Don't mark the location shlib_disabled if the
13685 error thrown wasn't a generic or memory error. Catch errors
13686 thrown while inserting breakpoints in overlayed code. Output
13687 error message of software breakpoints.
13688 * remote.c (remote_insert_breakpoint): If this breakpoint has
13689 target-side commands but this stub doesn't support Z0 packets,
13690 throw NOT_SUPPORTED_ERROR error.
13691 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13692 * target.h (target_insert_breakpoint): Extend comment.
13693 (target_insert_hw_breakpoint): Add comment.
13694
b7ea362b
PA
136952014-01-08 Pedro Alves <palves@redhat.com>
13696
13697 * remote.c (remote_add_thread): Add threads silently if starting
13698 up.
13699 (remote_notice_new_inferior): If in all-stop, and starting up,
13700 don't call notice_new_inferior.
13701 (get_current_thread): New function, factored out from ...
13702 (add_current_inferior_and_thread): ... this. Adjust.
13703 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13704 found any thread, then select the remote's current thread as GDB's
13705 current thread too.
13706
b7bba001
JB
137072014-01-08 Joel Brobecker <brobecker@adacore.com>
13708
13709 * NEWS: Create a new section for the next release branch.
13710 Rename the section of the current branch, now that it has
13711 been cut.
13712
16dfbded
JB
137132014-01-08 Joel Brobecker <brobecker@adacore.com>
13714
13715 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13716 * version.in: Bump version to 7.7.50.DATE-cvs.
13717
22c90ac1
YQ
137182014-01-08 Yao Qi <yao@codesourcery.com>
13719
13720 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13721 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13722 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13723
d64ad97c
YQ
137242014-01-08 Yao Qi <yao@codesourcery.com>
13725
13726 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13727 return value of bfd_get_filename to symbol_file_add_from_bfd.
13728
f93ba80c
PM
137292014-01-08 Pierre Muller <muller@sourceware.org>
13730
13731 Fix PR16201.
13732 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13733 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13734 to prim_record_mininal_symbol_and_info.
13735 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13736 in call to prim_record_minimal_symbol_and_info.
13737 (read_pe_exported_syms): Set index field of section_data.
13738
a4d9ba85
AP
137392014-01-07 Andrew Pinski <apinski@cavium.com>
13740
13741 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13742 * features/aarch64.c: Regenerate.
13743
1b67eb02
AS
137442014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13745
13746 * target.c (return_null): Define.
13747 (update_current_target): Use it instead of return_zero for
13748 functions that return a pointer.
13749
5e3f4fab
EBM
137502014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13751
13752 * source.c (add_path): Fix check for duplicated paths in the previously
13753 included paths.
13754
e2616788
HK
137552014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13756
13757 * ada-lang.c: Remove duplicated include statements.
13758 * alphabsd-nat.c: Ditto.
13759 * amd64-darwin-tdep.c: Ditto.
13760 * amd64fbsd-nat.c: Ditto.
13761 * auto-load.c: Ditto.
13762 * ax-gdb.c: Ditto.
13763 * breakpoint.c: Ditto.
13764 * dbxread.c: Ditto.
13765 * fork-child.c: Ditto.
13766 * gdb_usleep.c: Ditto.
13767 * i386-darwin-tdep.c: Ditto.
13768 * i386fbsd-nat.c: Ditto.
13769 * infcmd.c: Ditto.
13770 * inferior.c: Ditto.
13771 * jv-lang.c: Ditto.
13772 * linux-nat.c: Ditto.
13773 * linux-tdep.c: Ditto.
13774 * m68kbsd-nat.c: Ditto.
13775 * m68klinux-nat.c: Ditto.
13776 * microblaze-tdep.c: Ditto.
13777 * mips-linux-tdep.c: Ditto.
13778 * mn10300-tdep.c: Ditto.
13779 * nto-tdep.c: Ditto.
13780 * opencl-lang.c: Ditto.
13781 * osdata.c: Ditto.
13782 * printcmd.c: Ditto.
13783 * regcache.c: Ditto.
13784 * remote-m32r-sdi.c: Ditto.
13785 * remote.c: Ditto.
13786 * symfile.c: Ditto.
13787 * symtab.c: Ditto.
13788 * tilegx-linux-nat.c: Ditto.
13789 * tilegx-tdep.c: Ditto.
13790 * tracepoint.c: Ditto.
13791 * valops.c: Ditto.
13792 * vaxbsd-nat.c: Ditto.
13793 * windows-nat.c: Ditto.
13794 * xtensa-tdep.c: Ditto.
13795
bd1f7788
YQ
137962014-01-07 Yao Qi <yao@codesourcery.com>
13797
13798 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13799
79301218
JB
138002014-01-07 Yao Qi <yao@codesourcery.com>
13801 Joel Brobecker <brobecker@adacore.com>
13802
13803 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13804 (pdc_write_regs): Likewise.
13805 (fetch_regs_kernel_thread): Likewise.
13806 (store_regs_kernel_thread): Likewise.
13807
138082014-01-07 Joel Brobecker <brobecker@adacore.com>
13809
13810 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13811 tagged type objects to their actual type.
13812
8e355c5d
JB
138132014-01-07 Joel Brobecker <brobecker@adacore.com>
13814
13815 * ada-valprint.c (print_field_values): Add "language" parameter.
13816 Update calls to print_field_values and print_variant_part.
13817 Pass new parameter "language" in call to val_print instead
13818 of "current_language". Replace call to ada_val_print by call
13819 to val_print.
13820 (print_variant_part): Add "language" parameter.
13821 (ada_val_print_struct_union): Update call to print_field_values.
13822
4fbf5aa5
JB
138232014-01-07 Joel Brobecker <brobecker@adacore.com>
13824
13825 * ada-valprint.c (ui_memcpy): Delete.
13826 (ada_print_floating): Update documentation. Add empty line
13827 between between function documentation and implementation.
13828 Delete variable "buffer". Use ui_file_xstrdup in place of
13829 ui_file_put. Minor adjustments following this change.
13830
71855601
JB
138312014-01-07 Joel Brobecker <brobecker@adacore.com>
13832
13833 * ada-valprint.c (ada_val_print_string): New function,
13834 extracted from ada_val_print_array.
13835 (ada_val_print_array): Replace extracted code by call
13836 to ada_val_print_string followed by a return. Move
13837 "else" branch to the function's top block.
13838
4eb27a30
JB
138392014-01-07 Joel Brobecker <brobecker@adacore.com>
13840
13841 * ada-valprint.c (ada_val_print_array): Move implementation
13842 down. Rename parameter "offset" and "val" into "offset_aligned"
13843 and "original_value" respectively. Add parameter "offset".
13844
34b27950
JB
138452014-01-07 Joel Brobecker <brobecker@adacore.com>
13846
13847 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13848 re-organizing the code. Change the "???" message printed
13849 when target type is a TYPE_CODE_UNDEF into
13850 "<ref to undefined type>".
13851
079e4591
JB
138522014-01-07 Joel Brobecker <brobecker@adacore.com>
13853
13854 * ada-valprint.c (print_record): Delete, implementation inlined...
13855 (ada_val_print_struct_union): ... here. Remove call to
13856 ada_check_typedef in inlined implementation.
13857
8004dfd1
JB
138582014-01-07 Joel Brobecker <brobecker@adacore.com>
13859
13860 * ada-valprint.c (ada_val_print_gnat_array): New function,
13861 extracted from ada_val_print_1;
13862 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13863 (ada_val_print_flt, ada_val_print_struct_union)
13864 (ada_val_print_ref): Likewise.
13865 (ada_val_print_1): Delete variables i and elttype.
13866 Replace extracted-out code by call to corresponding
13867 new functions.
13868
760a2db0
JB
138692014-01-07 Joel Brobecker <brobecker@adacore.com>
13870
13871 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13872
3a92c861
JB
138732014-01-07 Joel Brobecker <brobecker@adacore.com>
13874
13875 * ada-valprint.c (ada_val_print_1): Replace calls to
13876 ada_val_print_1 by calls to val_print.
13877
cd1630f9
JB
138782014-01-07 Joel Brobecker <brobecker@adacore.com>
13879
13880 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13881 Update calls to self accordingly. Replace calls to c_val_print
13882 by calls to val_print.
13883
bdf779a0
JB
138842014-01-07 Joel Brobecker <brobecker@adacore.com>
13885
13886 * ada-valprint.c (print_record): Delete declaration.
13887 (adjust_type_signedness, ada_val_print_1): Likewise.
13888 (ada_val_print): Move function implementation down.
13889 (print_variant_part, print_field_values, print_record):
13890 Move function implementation up.
13891
c0d48811
JB
138922014-01-07 Joel Brobecker <brobecker@adacore.com>
13893
13894 * python/py-type.c (typy_get_name): New function.
13895 (type_object_getset): Add entry for attribute "name".
13896 * NEWS: Add entry mentioning this new attribute.
13897
c26e9cbb
YQ
138982014-01-07 Yao Qi <yao@codesourcery.com>
13899
13900 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13901 statement.
13902
0cc6f43d
YQ
139032014-01-07 Yao Qi <yao@codesourcery.com>
13904
13905 * gnu-nat.c (info_port_rights): Add qualifier const to
13906 argument args.
13907
eec03155
YQ
139082014-01-07 Yao Qi <yao@codesourcery.com>
13909
13910 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13911
f04a82ef
YQ
139122014-01-07 Yao Qi <yao@codesourcery.com>
13913
13914 * gnu-nat.c (make_inf) Update declaration.
13915 (make_inf): Make it static.
13916 (inf_set_traced): Likewise.
13917 (inf_port_to_thread, inf_task_died_status): Likewise.
13918
d57dda0a
YQ
139192014-01-07 Yao Qi <yao@codesourcery.com>
13920
13921 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13922
3aa8c969
YQ
139232014-01-07 Yao Qi <yao@codesourcery.com>
13924
13925 * gnu-nat.c (_initialize_gnu_nat): Declare.
13926
94123b4f
YQ
139272014-01-07 Yao Qi <yao@codesourcery.com>
13928
13929 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13930 'enum bfd_endian'.
13931 (struct gdbarch_info) <byte_order>: Change type to
13932 'enum bfd_endian'.
13933 <byte_order_for_code>: Likewise.
13934 * gdbarch.c, gdbarch.h: Regenerated.
13935
dc81d70a
TT
139362014-01-06 Sasha Smundak <asmundak@google.com>
13937
13938 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13939
cc2f3c35
TT
139402014-01-06 Tom Tromey <tromey@redhat.com>
13941
13942 * doublest.c (convert_doublest_to_floatformat): Use const, not
13943 CONST.
13944 * somread.c (som_symtab_read): Likewise.
13945
adcf2eed
HZ
139462014-01-07 Hui Zhu <hui@codesourcery.com>
13947
13948 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13949 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13950 (gdb_bfd_fopen): Ditto.
13951 (gdb_bfd_openr): Ditto.
13952 (gdb_bfd_openw): Ditto.
13953 (gdb_bfd_openr_iovec): Ditto.
13954 (gdb_bfd_fdopenr): Ditto.
13955 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13956 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13957 with xstrdup.
13958 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13959 with xstrdup.
13960 * symfile-mem.c (symbol_file_add_from_memory): Removed
13961 gdb_bfd_stash_filename.
13962
50722198
DE
139632014-01-03 Doug Evans <dje@google.com>
13964
13965 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13966 output.
13967
2fa4b862
JB
139682014-01-01 Joel Brobecker <brobecker@adacore.com>
13969
13970 Update year range in copyright notice of all files.
13971
28498c42
JB
139722014-01-01 Joel Brobecker <brobecker@adacore.com>
13973
13974 * top.c (print_gdb_version): Set copyright year to 2014.
13975
7b6e1046
JB
139762014-01-01 Joel Brobecker <brobecker@adacore.com>
13977
13978 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13979
df96af55 13980For older changes see ChangeLog-2013.
c906108c
SS
13981\f
13982Local Variables:
13983mode: change-log
13984left-margin: 8
13985fill-column: 74
13986version-control: never
57da7796 13987coding: utf-8
c906108c 13988End:
This page took 3.432385 seconds and 4 git commands to generate.