Remove non-address bits for longjmp resume breakpoint
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8fa0c4f8
AA
12014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * gdb/infrun.c (process_event_stop_test): Apply
4 gdbarch_addr_bits_remove to longjmp resume address.
5
3666da81
PA
62014-10-15 Pedro Alves <palves@redhat.com>
7
8 * regformats/microblaze.dat: Delete file.
9
449aa9df
AKA
102014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
11
12 * features/Makefile (microblaze-expedite): Replace pc with rpc.
13 * regformats/microblaze-with-stack-protect.dat: Regenerate.
14
ebb8ece2
SC
152014-10-15 Siva Chandra Reddy <sivachandra@google.com>
16
17 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
18 as non-trivial.
19
82c48ac7
SC
202014-10-15 Siva Chandra Reddy <sivachandra@google.com>
21
22 PR c++/13403
23 PR c++/15154
24 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
25 with qualified args.
26
c40cc657
JB
272014-10-14 Joel Brobecker <brobecker@adacore.com>
28
29 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
30 of the case where the second operand is a pointer.
31 <BINOP_SUB>: Likewise.
32
0ea5cda8
SDJ
332014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
34
35 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
36 only if it is not NULL.
37 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
38 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
39 (struct probe_ops) <clear_semaphore>: Likewise.
40 * tracepoint.c (start_tracing): Call set_semaphore only if it is
41 not NULL.
42 (stop_tracing): Likewise, for clear_semaphore.
43
f7088df3
SDJ
442014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
45
46 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
47 using language_c, instead of current_language.
48
4e1bbde0
DE
492014-10-13 Doug Evans <dje@google.com>
50
6ff5a0f6 51 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 52 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 53 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
54 (pspy_new, pspace_to_pspace_object): Call it.
55
c780cc2f
JK
562014-10-13 Miroslav Franc <mfranc@redhat.com>
57 Jan Kratochvil <jan.kratochvil@redhat.com>
58
59 Fix "save breakpoints" for "catch" command.
60 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
61 newline.
62
99894e11
JK
632014-10-12 Miroslav Franc <mfranc@redhat.com>
64
65 Fix "save breakpoints" for "disable $bpnum" command.
66 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
67
3831839c
PA
682014-10-10 Pedro Alves <palves@redhat.com>
69
70 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
71 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
72 (HFILES_NO_SRCDIR): Remove solib-irix.h.
73 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
74 and been removed.
75 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
76 * configure.ac: Remove references to IRIX.
77 * configure.host: Add *-*-irix* to the obsolete hosts section.
78 Remove all other references to irix.
79 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
80 Delete files.
81
cc3afae2
AKA
822014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
83
84 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
85 isn't valid, release the tdesc arch data and return NULL.
86
cdfa0b0a
PA
872014-10-10 Pedro Alves <palves@redhat.com>
88
89 * linux-tdep.c: Include observer.h.
90 (linux_inferior_data): New global.
91 (struct linux_info): New structure.
92 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
93 (get_linux_inferior_data): New functions.
94 (linux_vsyscall_range): Rename to ...
95 (linux_vsyscall_range_raw): ... this.
96 (linux_vsyscall_range): New function; handles caching.
97 (_initialize_linux_tdep): Register linux_inferior_data. Install
98 inferior_exit and inferior_appeared observers.
99
8b9a549d
PA
1002014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
101 Pedro Alves <palves@redhat.com>
102
103 PR symtab/14466
104 * solib-svr4.c (svr4_read_so_list): Rename to ...
105 (svr4_current_sos_1): ... this and change the function comment.
106 (svr4_current_sos): New function.
107
3437254d
PA
1082014-10-10 Pedro Alves <palves@redhat.com>
109
110 * arch-utils.c (default_vsyscall_range): New function.
111 * arch-utils.h (default_vsyscall_range): New declaration.
112 * gdbarch.sh (vsyscall_range): New hook.
113 * gdbarch.h, gdbarch.c: Regenerate.
114 * linux-tdep.c (linux_vsyscall_range): New function.
115 (linux_init_abi): Install linux_vsyscall_range as
116 vsyscall_range gdbarch hook.
117 * memrange.c (address_in_mem_range): New function.
118 * memrange.h (address_in_mem_range): New declaration.
119 * symfile-mem.c (find_vdso_size): Delete function.
120 (add_vsyscall_page): Use gdbarch_vsyscall_range.
121
31cc0b80
PA
1222014-10-10 Pedro Alves <palves@redhat.com>
123
124 * infrun.c (normal_stop): Fix typo in comment.
125
3e3286a2
SDJ
1262014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
127
128 PR tdep/9390
129 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
130 typo when using logical AND to determine instruction type.
131
fcbdedf8
YQ
1322014-10-09 Yao Qi <yao@codesourcery.com>
133
134 * infrun.c (handle_signal_stop): Remove local variable
135 'printed'.
136
db984616
SS
1372014-10-08 Stan Shebs <stan@codesourcery.com>
138
139 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
140
3ba37e6c
GB
1412014-10-08 Gary Benson <gbenson@redhat.com>
142
143 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
144
a442d071
GB
1452014-10-08 Gary Benson <gbenson@redhat.com>
146
147 * common/common-defs.h: Include common-exceptions.h.
148 * exceptions.h: Do not include common-exceptions.h.
149
6f1947e8
GB
1502014-10-08 Gary Benson <gbenson@redhat.com>
151
152 * common/common-defs.h: Include cleanups.h.
153 * common/common-exceptions.c: Do not include cleanups.h.
154 * utils.h: Likewise.
155
c765fdb9
GB
1562014-10-08 Gary Benson <gbenson@redhat.com>
157
158 * ada-lang.c: Do not include exceptions.h.
159 * ada-valprint.c: Likewise.
160 * amd64-tdep.c: Likewise.
161 * auto-load.c: Likewise.
162 * block.c: Likewise.
163 * break-catch-throw.c: Likewise.
164 * breakpoint.c: Likewise.
165 * btrace.c: Likewise.
166 * c-lang.c: Likewise.
167 * cli/cli-cmds.c: Likewise.
168 * cli/cli-interp.c: Likewise.
169 * cli/cli-script.c: Likewise.
170 * completer.c: Likewise.
171 * corefile.c: Likewise.
172 * corelow.c: Likewise.
173 * cp-abi.c: Likewise.
174 * cp-support.c: Likewise.
175 * cp-valprint.c: Likewise.
176 * darwin-nat.c: Likewise.
177 * dwarf2-frame-tailcall.c: Likewise.
178 * dwarf2-frame.c: Likewise.
179 * dwarf2loc.c: Likewise.
180 * dwarf2read.c: Likewise.
181 * eval.c: Likewise.
182 * event-loop.c: Likewise.
183 * event-top.c: Likewise.
184 * f-valprint.c: Likewise.
185 * frame-unwind.c: Likewise.
186 * frame.c: Likewise.
187 * gdbtypes.c: Likewise.
188 * gnu-v2-abi.c: Likewise.
189 * gnu-v3-abi.c: Likewise.
190 * guile/scm-auto-load.c: Likewise.
191 * guile/scm-breakpoint.c: Likewise.
192 * guile/scm-cmd.c: Likewise.
193 * guile/scm-frame.c: Likewise.
194 * guile/scm-lazy-string.c: Likewise.
195 * guile/scm-param.c: Likewise.
196 * guile/scm-symbol.c: Likewise.
197 * guile/scm-type.c: Likewise.
198 * hppa-hpux-tdep.c: Likewise.
199 * i386-tdep.c: Likewise.
200 * inf-loop.c: Likewise.
201 * infcall.c: Likewise.
202 * infcmd.c: Likewise.
203 * infrun.c: Likewise.
204 * interps.c: Likewise.
205 * interps.h: Likewise.
206 * jit.c: Likewise.
207 * linespec.c: Likewise.
208 * linux-nat.c: Likewise.
209 * linux-thread-db.c: Likewise.
210 * m32r-rom.c: Likewise.
211 * main.c: Likewise.
212 * memory-map.c: Likewise.
213 * mi/mi-cmd-break.c: Likewise.
214 * mi/mi-cmd-stack.c: Likewise.
215 * mi/mi-interp.c: Likewise.
216 * mi/mi-main.c: Likewise.
217 * monitor.c: Likewise.
218 * nto-procfs.c: Likewise.
219 * objc-lang.c: Likewise.
220 * p-valprint.c: Likewise.
221 * parse.c: Likewise.
222 * ppc-linux-tdep.c: Likewise.
223 * printcmd.c: Likewise.
224 * probe.c: Likewise.
225 * python/py-auto-load.c: Likewise.
226 * python/py-breakpoint.c: Likewise.
227 * python/py-cmd.c: Likewise.
228 * python/py-finishbreakpoint.c: Likewise.
229 * python/py-frame.c: Likewise.
230 * python/py-framefilter.c: Likewise.
231 * python/py-function.c: Likewise.
232 * python/py-gdb-readline.c: Likewise.
233 * python/py-inferior.c: Likewise.
234 * python/py-infthread.c: Likewise.
235 * python/py-lazy-string.c: Likewise.
236 * python/py-linetable.c: Likewise.
237 * python/py-param.c: Likewise.
238 * python/py-prettyprint.c: Likewise.
239 * python/py-symbol.c: Likewise.
240 * python/py-type.c: Likewise.
241 * python/py-value.c: Likewise.
242 * python/python-internal.h: Likewise.
243 * python/python.c: Likewise.
244 * record-btrace.c: Likewise.
245 * record-full.c: Likewise.
246 * regcache.c: Likewise.
247 * remote-fileio.c: Likewise.
248 * remote-mips.c: Likewise.
249 * remote.c: Likewise.
250 * rs6000-aix-tdep.c: Likewise.
251 * rs6000-nat.c: Likewise.
252 * skip.c: Likewise.
253 * solib-darwin.c: Likewise.
254 * solib-dsbt.c: Likewise.
255 * solib-frv.c: Likewise.
256 * solib-ia64-hpux.c: Likewise.
257 * solib-spu.c: Likewise.
258 * solib-svr4.c: Likewise.
259 * solib.c: Likewise.
260 * spu-tdep.c: Likewise.
261 * stack.c: Likewise.
262 * stap-probe.c: Likewise.
263 * symfile-mem.c: Likewise.
264 * symmisc.c: Likewise.
265 * target.c: Likewise.
266 * thread.c: Likewise.
267 * top.c: Likewise.
268 * tracepoint.c: Likewise.
269 * tui/tui-interp.c: Likewise.
270 * typeprint.c: Likewise.
271 * utils.c: Likewise.
272 * valarith.c: Likewise.
273 * valops.c: Likewise.
274 * valprint.c: Likewise.
275 * value.c: Likewise.
276 * varobj.c: Likewise.
277 * windows-nat.c: Likewise.
278 * xml-support.c: Likewise.
279
484933d1
MR
2802014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
281
282 * mips-tdep.c (add_offset_16): Rewrite to implement what the
283 name implies.
284 (extended_mips16_next_pc): Update accordingly.
285
ab50adb6
MR
2862014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
287
288 * mips-tdep.c (mips16_instruction_is_compact_branch): New
289 function.
290 (micromips_instruction_is_compact_branch): Likewise.
291 (mips16_scan_prologue): Terminate scanning upon seeing a branch
292 or a compact jump, reaching a jump delay slot, or seeing a
293 second non-prologue instruction.
294 (micromips_scan_prologue): Also terminate scanning upon seeing a
295 compact branch or jump, or reaching a branch or jump delay slot.
296 (mips32_scan_prologue): Terminate scanning upon reaching a branch
297 or jump delay slot, or seeing a second non-prologue instruction.
298 (mips32_instruction_has_delay_slot): Retain instruction
299 examination code only, update arguments accordingly and move
300 instruction fetch pieces to...
301 (mips32_insn_at_pc_has_delay_slot): ... this new function.
302 (micromips_instruction_has_delay_slot): Likewise and to...
303 (micromips_insn_at_pc_has_delay_slot): ... this new function.
304 (mips16_instruction_has_delay_slot): Likewise and to...
305 (mips16_insn_at_pc_has_delay_slot): ... this new function.
306 (mips_single_step_through_delay): Update accordingly.
307 (mips_adjust_breakpoint_address): Likewise.
308
ae790652
MR
3092014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
310
311 * mips-tdep.c (micromips_instruction_has_delay_slot): When
312 !mustbe32 also return 1 for 32-bit instructions.
313 (mips16_instruction_has_delay_slot): Likewise. Add an
314 explanatory comment.
315
9b807e7b
MR
3162014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
317
318 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
319 symbols special.
320
0d5ed153
MR
3212014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
322
323 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
324 update comments.
325 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
326 for the breakpoint's address. Don't preinitialize `placed_size'.
327 (insert_bp_location): Set `reqstd_address' rather than
328 `placed_address'.
329 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
330 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
331 address.
332 (bkpt_remove_location): Likewise.
333 (deprecated_insert_raw_breakpoint): Likewise.
334 (deprecated_remove_raw_breakpoint): Likewise.
335 (find_single_step_breakpoint): Likewise.
336 * mem-break.c (default_memory_insert_breakpoint): Use
337 `reqstd_address' for the breakpoint's address. Don't set
338 `placed_address' or `placed_size' if breakpoint contents couldn't
339 have been determined.
340 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
341 the breakpoint's address.
342 (remote_insert_hw_breakpoint): Likewise. Don't set
343 `placed_address' or `placed_size' if breakpoint couldn't have been
344 set.
345 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
346 `reqstd_address' for the breakpoint's address.
347 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
348 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
349 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
350 * microblaze-linux-tdep.c
351 (microblaze_linux_memory_remove_breakpoint): Likewise.
352 * monitor.c (monitor_insert_breakpoint): Likewise.
353 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
354 (procfs_insert_hw_breakpoint): Likewise.
355 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
356 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
357 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
358 * remote-mips.c (mips_insert_breakpoint): Likewise.
359 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
360
3e871532
LM
3612014-10-03 Luis Machado <lgustavo@codesourcery.com>
362
363 * valops.c (value_assign): Check for bit field assignments
364 before calling architecture-specific register value
365 conversion functions.
366
ec48dc8b
PM
3672014-10-03 Pierre Muller <muller@sourceware.org>
368
369 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
370
b57bacec
PA
3712014-10-02 Pedro Alves <palves@redhat.com>
372
373 * breakpoint.c (breakpoints_should_be_inserted_now): Use
374 threads_are_executing.
375 * breakpoint.h (breakpoints_should_be_inserted_now): Add
376 describing comment.
377 * gdbthread.h (threads_are_executing): Declare.
378 (handle_signal_stop) <random signals>: Don't print about the
379 signal here if stopping.
380 (end_stepping_range): Don't notify observers here.
381 (normal_stop): Update the thread list. If stopped by a random
382 signal or a stepping range ended, notify observers.
383 * thread.c (threads_executing): New global.
384 (init_thread_list): Clear 'threads_executing'.
385 (set_executing): Set or clear 'threads_executing'.
386 (threads_are_executing): New function.
387 (update_threads_executing): New function.
388 (update_thread_list): Use it.
389
13fd3ff3
PA
3902014-10-02 Pedro Alves <palves@redhat.com>
391
392 PR breakpoints/17431
393 * breakpoint.c (update_breakpoints_after_exec): Don't create
394 overlay, longjmp, std terminate nor exception breakpoints here.
395
32990ada
PA
3962014-10-02 Pedro Alves <palves@redhat.com>
397
398 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
399 Adjust comments.
400 * inferior.c (find_inferior_for_program_space): Give preference to
401 the current inferior.
402 * inferior.h (find_inferior_for_program_space): Update comment.
403 * progspace.c (switch_to_program_space_and_thread): Prefer the
404 current inferior if it's bound to the program space requested. If
405 the inferior found doesn't have a PID yet, don't bother looking up
406 a thread.
407 * progspace.h (switch_to_program_space_and_thread): Adjust
408 comment.
409 * thread.c (any_thread_of_process, any_live_thread_of_process):
410 Give preference to the current thread.
411
0fec99e8
PA
4122014-10-01 Pedro Alves <palves@redhat.com>
413
414 * breakpoint.c (insert_bp_location): Error out if inserting a
415 software breakpoint at a read-only address.
416 * target.c (memory_xfer_check_region): New function, factored out
417 from ...
418 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
419 ULONGEST.
420 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
421 against the memory region attributes.
422
2ddf4301
SM
4232014-10-01 Simon Marchi <simon.marchi@ericsson.com>
424
425 * NEWS: Announce new exit-code field in -list-thread-groups
426 output.
427 * inferior.c (exit_inferior_1): Don't clear exit code.
428 (inferior_appeared): Clear exit code.
429 * mi/mi-main.c (print_one_inferior): Add printing of the exit
430 code.
431
5fdeec1d
PA
4322014-10-01 Pedro Alves <palves@redhat.com>
433
434 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
435 GENERATED" along with emacs/vi read-only markers.
436 * regformats/aarch64.dat: Regenerate.
437 * regformats/arm-with-iwmmxt.dat: Regenerate.
438 * regformats/arm-with-neon.dat: Regenerate.
439 * regformats/arm-with-vfpv2.dat: Regenerate.
440 * regformats/arm-with-vfpv3.dat: Regenerate.
441 * regformats/i386/amd64-avx-linux.dat: Regenerate.
442 * regformats/i386/amd64-avx.dat: Regenerate.
443 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
444 * regformats/i386/amd64-avx512.dat: Regenerate.
445 * regformats/i386/amd64-linux.dat: Regenerate.
446 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
447 * regformats/i386/amd64-mpx.dat: Regenerate.
448 * regformats/i386/amd64.dat: Regenerate.
449 * regformats/i386/i386-avx-linux.dat: Regenerate.
450 * regformats/i386/i386-avx.dat: Regenerate.
451 * regformats/i386/i386-avx512-linux.dat: Regenerate.
452 * regformats/i386/i386-avx512.dat: Regenerate.
453 * regformats/i386/i386-linux.dat: Regenerate.
454 * regformats/i386/i386-mmx-linux.dat: Regenerate.
455 * regformats/i386/i386-mmx.dat: Regenerate.
456 * regformats/i386/i386-mpx-linux.dat: Regenerate.
457 * regformats/i386/i386-mpx.dat: Regenerate.
458 * regformats/i386/i386.dat: Regenerate.
459 * regformats/i386/x32-avx-linux.dat: Regenerate.
460 * regformats/i386/x32-avx.dat: Regenerate.
461 * regformats/i386/x32-avx512-linux.dat: Regenerate.
462 * regformats/i386/x32-avx512.dat: Regenerate.
463 * regformats/i386/x32-linux.dat: Regenerate.
464 * regformats/i386/x32.dat: Regenerate.
465 * regformats/microblaze-with-stack-protect.dat: Regenerate.
466 * regformats/mips-dsp-linux.dat: Regenerate.
467 * regformats/mips-linux.dat: Regenerate.
468 * regformats/mips64-dsp-linux.dat: Regenerate.
469 * regformats/mips64-linux.dat: Regenerate.
470 * regformats/nios2-linux.dat: Regenerate.
471 * regformats/rs6000/powerpc-32.dat: Regenerate.
472 * regformats/rs6000/powerpc-32l.dat: Regenerate.
473 * regformats/rs6000/powerpc-64l.dat: Regenerate.
474 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
475 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
476 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
477 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
478 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
479 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
480 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
481 * regformats/s390-linux32.dat: Regenerate.
482 * regformats/s390-linux32v1.dat: Regenerate.
483 * regformats/s390-linux32v2.dat: Regenerate.
484 * regformats/s390-linux64.dat: Regenerate.
485 * regformats/s390-linux64v1.dat: Regenerate.
486 * regformats/s390-linux64v2.dat: Regenerate.
487 * regformats/s390-te-linux64.dat: Regenerate.
488 * regformats/s390x-linux64.dat: Regenerate.
489 * regformats/s390x-linux64v1.dat: Regenerate.
490 * regformats/s390x-linux64v2.dat: Regenerate.
491 * regformats/s390x-te-linux64.dat: Regenerate.
492 * regformats/tic6x-c62x-linux.dat: Regenerate.
493 * regformats/tic6x-c62x.dat: Regenerate.
494 * regformats/tic6x-c64x-linux.dat: Regenerate.
495 * regformats/tic6x-c64x.dat: Regenerate.
496 * regformats/tic6x-c64xp-linux.dat: Regenerate.
497 * regformats/tic6x-c64xp.dat: Regenerate.
498
db74e4ba
PA
4992014-10-01 Pedro Alves <palves@redhat.com>
500
501 * features/Makefile: Update comments.
502 (XMLTOC): List all xml files we build C files from.
503 (clean-cfiles): New rule.
504
d63f2f84
PA
5052014-10-01 Pedro Alves <palves@redhat.com>
506
507 * features/i386/amd64-avx512-linux.c: Regenerate.
508 * features/i386/amd64-avx512.c: Regenerate.
509 * features/i386/x32-avx512-linux.c: Regenerate.
510 * features/i386/x32-avx512.c: Regenerate.
511
20ad026d
PA
5122014-10-01 Pedro Alves <palves@redhat.com>
513
514 * features/Makefile (WHICH): Remove arm-with-m,
515 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
516
acc9fe45
PA
5172014-10-01 Pedro Alves <palves@redhat.com>
518
519 * features/Makefile (clean): New rule.
520
e001e535
PA
5212014-10-01 Pedro Alves <palves@redhat.com>
522
523 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
524 (zmm14h): Add missing end quotes.
525
bdc14417
PA
5262014-10-01 Pedro Alves <palves@redhat.com>
527
528 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
529 * features/aarch64.c: Regenerate.
530
d83ad864
DB
5312014-09-30 Don Breazeal <donb@codesourcery.com>
532
533 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
534 code so as to work with follow_fork_inferior.
535 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
536 (inf_ttrace_create_inferior): Remove reference to
537 inf_ttrace_vfork_ppid.
538 (inf_ttrace_attach): Ditto.
539 (inf_ttrace_detach): Ditto.
540 (inf_ttrace_kill): Use current_inferior instead of
541 inf_ttrace_vfork_ppid.
542 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
543 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
544 inferior away from the parent.
545 * infrun.c (follow_fork): Call follow_fork_inferior instead of
546 target_follow_fork.
547 (follow_fork_inferior): New function.
548 (follow_inferior_reset_breakpoints): Make function static.
549 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
550 * linux-nat.c (linux_child_follow_fork): Move target-independent
551 code to infrun.c:follow_fork_inferior.
552
29082443
AA
5532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
554
555 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
556 * gdbarch.c: Regenerate.
557 * gdbarch.h: Likewise.
558 * corelow.c (sniff_core_bfd): Drop presence check for deleted
559 gdbarch method 'regset_from_core_section'.
560 (get_core_register_section): Remove handling for the case that
561 regset == NULL and regset_from_core_section is defined.
562 (get_core_registers): Drop check for deleted method.
563 * procfs.c (procfs_do_thread_registers): Adjust comment.
564
f968fe80
AA
5652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
566
567 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
568 (linux_nat_make_corefile_notes): Remove.
569 (linux_target_install_ops): Do not set target method
570 'make_corefile_notes'.
571 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
572 Remove field.
573 (linux_corefile_thread_callback): Instead of args->collect, call
574 linux_collect_thread_registers.
575 (linux_make_corefile_notes): Remove 'collect' parameter. Return
576 NULL unless there is a regset iterator.
577 (linux_make_corefile_notes_1): Remove.
578 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
579 by linux_make_corefile_notes.
580 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
581
174ad59a
AA
5822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
583
584 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
585 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
586 Remove.
587 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
588
97094034
AA
5892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
590
591 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
592 (xtensa_iterate_over_regset_sections): New.
593 (xtensa_gdbarch_init): Adjust gdbarch initialization.
594
f73d3ce7
AA
5952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
596
597 * vax-tdep.c (vax_regset_from_core_section): Remove.
598 (vax_iterate_over_regset_sections): New.
599 (vax_gdbarch_init): Adjust gdbarch initialization.
600
cb24567a
AA
6012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
602
603 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
604 (tilegx_regset_from_core_section): Remove.
605 (tilegx_iterate_over_regset_sections): New.
606 (tilegx_linux_init_abi): Adjust gdbarch initialization.
607
e5139de8
AA
6082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
609
610 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
611 (sparc_iterate_over_regset_sections): New.
612 (sparc32_gdbarch_init): Adjust gdbarch initialization.
613 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
614 targets.
615 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
616 (sparc64fbsd_init_abi): Call fbsd_init_abi.
617 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
618 target method 'make_corefile_notes'.
619
c6d41a6f
AA
6202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
621
622 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
623 'sizeof_gregset' and 'sizeof_fpregset'.
624 * sh-tdep.c (sh_regset_from_core_section): Remove.
625 (sh_iterate_over_regset_sections): New.
626 (sh_gdbarch_init): Adjust gdbarch initialization.
627 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
628 sizeof_fpregset.
629 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
630 'sizeof_gregset'.
631
9845a0b5
AA
6322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
633
634 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
635 (score7_linux_iterate_over_regset_sections): New.
636 (score_gdbarch_init): Adjust gdbarch initialization.
637
23ea9aeb
AA
6382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
639
640 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
641 FreeBSD targets.
642 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
643 method 'make_corefile_notes'.
644 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
645 (ppcfbsd_regset_from_core_section): Remove.
646 (ppcfbsd_iterate_over_regset_sections): New.
647 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
648 initialization.
649 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
650 (ppcnbsd_iterate_over_regset_sections): New.
651 (ppcnbsd_init_abi): Adjust.
652 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
653 (ppcobsd_iterate_over_regset_sections): New.
654 (ppcobsd_init_abi): Adjust.
655 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
656 (rs6000_aix_iterate_over_regset_sections): New.
657 (rs6000_aix_init_osabi): Adjust.
658
c5b8d704
AA
6592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
660
661 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
662 (nios2_regset_from_core_section): Remove.
663 (nios2_iterate_over_regset_sections): New.
664 (nios2_linux_init_abi): Adjust gdbarch initialization.
665
3636e608
AA
6662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
667
668 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
669 (am33_iterate_over_regset_sections): New.
670 (am33_linux_init_osabi): Adjust gdbarch initialization.
671
d4036235
AA
6722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
673
674 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
675 (mips_linux_iterate_over_regset_sections): New.
676 (mips_linux_init_abi): Adjust gdbarch initialization.
677 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
678 (mips64obsd_iterate_over_regset_sections): New.
679 (mips64obsd_init_abi): Adjust.
680 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
681 (mipsnbsd_iterate_over_regset_sections): New.
682 (mipsnbsd_init_abi): Adjust.
683
b61ddd6e
AA
6842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
685
686 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
687 (m88k_iterate_over_regset_sections): New.
688 (m88k_gdbarch_init): Adjust gdbarch initialization.
689
55a2906a
AA
6902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
691
692 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
693 (ia64_linux_iterate_over_regset_sections): New.
694 (ia64_linux_init_abi): Adjust gdbarch initialization.
695
022c98ab
AA
6962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
697
698 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
699 (m68kbsd_iterate_over_regset_sections): New.
700 (m68kbsd_init_abi): Adjust gdbarch initialization.
701 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
702 (m68k_linux_iterate_over_regset_sections): New.
703 (m68k_linux_init_abi): Adjust gdbarch initialization.
704
5fac247f
AA
7052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
706
707 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
708 (m32r_linux_regset_from_core_section): Remove.
709 (m32r_linux_iterate_over_regset_sections): New.
710 (m32r_linux_init_abi): Adjust gdbarch initialization.
711
490496c3
AA
7122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
713
714 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
715 (amd64obsd_iterate_over_regset_sections): New.
716 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
717 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
718 Remove.
719 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
720 regset_from_core_section initialization.
721 * i386-tdep.c (i386_regset_from_core_section): Remove.
722 (i386_iterate_over_regset_sections): New.
723 (i386_gdbarch_init): Adjust gdbarch initialization.
724 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
725 (i386_iterate_over_regset_sections): New prototype.
726 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
727 Remove.
728 (i386obsd_aout_iterate_over_regset_sections): New.
729 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
730 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
731 targets.
732 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
733 (amd64fbsd_init_abi): Call fbsd_init_abi.
734 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
735 (i386fbsd4_init_abi): Call fbsd_init_abi.
736 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
737 target method 'make_corefile_notes'.
738 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
739
50c5eb53
AA
7402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
741
742 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
743 (hppa_hpux_iterate_over_regset_sections): New.
744 (hppa_hpux_init_abi): Adjust gdbarch initialization.
745 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
746 (hppa_linux_iterate_over_regset_sections): New.
747 (hppa_linux_init_abi): Adjust.
748 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
749 (hppanbsd_iterate_over_regset_sections): New.
750 (hppanbsd_init_abi): Adjust.
751 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
752 (hppaobsd_iterate_over_regset_sections): New.
753 (hppaobsd_init_abi): Adjust.
754
66afae4f
AA
7552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
756
757 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
758 (frv_linux_iterate_over_regset_sections): New.
759 (frv_linux_init_abi): Adjust gdbarch initialization.
760
ed09174e
AA
7612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
762
763 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
764 (armbsd_iterate_over_regset_sections): New prototype.
765 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
766 (armbsd_iterate_over_regset_sections): New.
767 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
768 initialization.
769
dff2166e
AA
7702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
771
772 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
773 (alpha_linux_iterate_over_regset_sections): New.
774 (alpha_linux_init_abi): Adjust gdbarch initialization.
775 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
776 prototype.
777 (alphanbsd_iterate_over_regset_sections): New prototype.
778
4108500a
AA
7792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
780
781 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
782 Remove.
783 (aarch64_linux_iterate_over_regset_sections): New.
784 (aarch64_linux_init_abi): Adjust gdbarch initialization.
785
a904c024
AA
7862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
787
788 * fbsd-tdep.c: New file.
789 * fbsd-tdep.h: New file.
790 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
791 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
792 (ALLDEPFILES): Add fbsd-tdep.c.
793
8f0435f7
AA
7942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
795
796 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
797 parameter.
798 * gdbarch.h: Regenerate.
799 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
800 iterator.
801 (get_core_register_section): Add parameter 'regset' and use it, if
802 set. Add parameter 'min_size' and verify the bfd section size
803 against it.
804 (get_core_registers_cb): Add parameter 'regset' and pass it to
805 get_core_register section. For the "standard" register sections
806 ".reg" and ".reg2", set an appropriate default for human_name.
807 (get_core_registers): Don't abort when the gdbarch has an iterator
808 but no regset_from_core_section. Add NULL/0 for parameters
809 'regset'/'min_size' in calls to get_core_register_section.
810 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
811 'regset' and use it instead of calling the
812 regset_from_core_section gdbarch method.
813 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
814 * i386-tdep.c (i386_supply_xstateregset)
815 (i386_collect_xstateregset, i386_xstateregset): Moved to
816 i386-linux-tdep.c.
817 (i386_regset_from_core_section): Drop handling for .reg-xfp and
818 .reg-xstate.
819 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
820 core file support only if the regset iterator hasn't been set.
821 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
822 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
823 Moved from i386-tdep.c and renamed to *_linux*.
824 (i386_linux_iterate_over_regset_sections): Add regset parameter to
825 each callback invocation. Allow any .reg-xstate size when reading
826 from a core file.
827 * amd64-tdep.c (amd64_supply_xstateregset)
828 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
829 amd64-linux-tdep.c.
830 (amd64_regset_from_core_section): Remove.
831 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
832 install an amd64-specific regset_from_core_section gdbarch method.
833 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
834 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
835 Moved from amd64-tdep.c and renamed to *_linux*.
836 (amd64_linux_iterate_over_regset_sections): Add regset parameter
837 to each callback invocation. Allow any .reg-xstate size when
838 reading from a core file.
839 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
840 (arm_linux_iterate_over_regset_sections): Add regset parameter to
841 each callback invocation.
842 (arm_linux_init_abi): No longer set the regset_from_core_section
843 gdbarch method.
844 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
845 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
846 each callback invocation.
847 (ppc_linux_init_abi): No longer set the regset_from_core_section
848 gdbarch method.
849 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
850 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
851 (s390_regset_from_core_section): Remove.
852 (s390_iterate_over_regset_sections): Add regset parameter to each
853 callback invocation.
854 (s390_gdbarch_init): No longer set the regset_from_core_section
855 gdbarch method. Drop initialization of deleted tdep fields.
856
5aa82d05
AA
8572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
858
859 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
860 (amd64_linux_iterate_over_regset_sections): New.
861 (amd64_linux_init_abi_common): Don't install the regset section
862 list, but the new iterator in gdbarch.
863 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
864 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
865 (arm_linux_iterate_over_regset_sections): ...here. New function.
866 (arm_linux_init_abi): Set iterator instead of section list.
867 * corelow.c (get_core_registers_cb): New function, logic moved
868 from...
869 (get_core_registers): ...loop body here. Use new iterator method
870 instead of walking through the regset section list.
871 * gdbarch.sh: Remove 'core_regset_sections'. New method
872 'iterate_over_regset_sections'. New typedef
873 'iterate_over_regset_sections_cb'.
874 * gdbarch.c: Regenerate.
875 * gdbarch.h: Likewise.
876 * i386-linux-tdep.c (i386_linux_regset_sections)
877 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
878 Remove.
879 (i386_linux_iterate_over_regset_sections): New.
880 (i386_linux_init_abi): Don't choose a regset section list, but
881 install new iterator in gdbarch.
882 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
883 (linux_collect_regset_section_cb): New function, logic moved
884 from...
885 (linux_collect_thread_registers): ...loop body here. Use iterator
886 method instead of walking through list.
887 (linux_make_corefile_notes_1): Check for presence of iterator
888 method instead of regset section list.
889 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
890 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
891 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
892 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
893 (ppc_linux_iterate_over_regset_sections): ...here. New function.
894 (ppc_linux_init_abi): Don't choose from above regset section
895 lists, but install new iterator in gdbarch.
896 * regset.h (struct core_regset_section): Remove.
897 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
898 have_linux_v1, have_linux_v2, and have_tdb.
899 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
900 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
901 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
902 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
903 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
904 (s390_iterate_over_regset_sections): ...here. New function. Use
905 new tdep fields.
906 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
907 regset section lists, but install new iterator.
908
2eca4a8d
JK
9092014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
910
911 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
912
a73c2b56
SM
9132014-09-26 Simon Marchi <simon.marchi@ericsson.com>
914
915 * progspace.c (print_program_space): Don't prune program spaces
916 before printing them.
917
03d46957
PA
9182014-09-25 Pedro Alves <palves@redhat.com>
919
920 * infrun.c (user_visible_resume_ptid): Don't check
921 singlestep_breakpoints_inserted_p.
922
e558d7c1
PA
9232014-09-25 Pedro Alves <palves@redhat.com>
924
925 * breakpoint.c (should_be_inserted): Add debug output.
926
7f89fd65
PA
9272014-09-25 Pedro Alves <palves@redhat.com>
928
929 * infrun.c (stepping_past_instruction_at)
930 (clear_exit_convenience_vars): Point at infrun.h instead of
931 inferior.h.
932 (handle_signal_stop): Fix typo.
933
b7576e5c
YQ
9342014-09-24 Yao Qi <yao@codesourcery.com>
935
936 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
937 bitmask.
938
9a6cf368
GB
9392014-09-22 Gary Benson <gbenson@redhat.com>
940
941 * target.c (target_stop): Updated comment.
942
03f4463b
GB
9432014-09-22 Gary Benson <gbenson@redhat.com>
944
945 * target/target.h (target_stop_ptid): Renamed as...
946 (target_stop_and_wait): New function. Updated comment.
947 All uses updated.
948 (target_continue_ptid): Renamed as...
949 (target_continue_no_signal): New function. Updated comment.
950 All uses updated.
951
a25a5a45
PA
9522014-09-22 Pedro Alves <palves@redhat.com>
953
954 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
955 and "auto" merged.
956 * breakpoint.c (enum ugll_insert_mode): New enum.
957 (always_inserted_mode): Now a plain boolean.
958 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
959 (breakpoints_always_inserted_mode): Delete.
960 (breakpoints_should_be_inserted_now): New function.
961 (insert_breakpoints): Pass UGLL_INSERT to
962 update_global_location_list instead of calling
963 insert_breakpoint_locations manually.
964 (create_solib_event_breakpoint_1): New, factored out from ...
965 (create_solib_event_breakpoint): ... this.
966 (create_and_insert_solib_event_breakpoint): Use
967 create_solib_event_breakpoint_1 instead of calling
968 insert_breakpoint_locations manually.
969 (update_global_location_list): Change parameter type from boolean
970 to enum ugll_insert_mode. All callers adjusted. Adjust to use
971 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
972 (update_global_location_list_nothrow): Change parameter type from
973 boolean to enum ugll_insert_mode.
974 (_initialize_breakpoint): "breakpoint always-inserted" option is
975 now a boolean command. Update help text.
976 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
977 (breakpoints_should_be_inserted_now): New declaration.
978 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
979 Remove breakpoints_always_inserted_mode check.
980 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
981 * remote.c (remote_start_remote): Likewise.
982
04086b45
PA
9832014-09-22 Pedro Alves <palves@redhat.com>
984
985 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
986 (insert_breakpoints): Don't call insert_breakpoint_locations here.
987 Instead, pass UGLL_INSERT to update_global_location_list.
988 (update_global_location_list): Change parameter type from boolean
989 to enum ugll_insert_mode. All callers adjusted. Adjust to use
990 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
991 (create_solib_event_breakpoint_1): New, factored out from ...
992 (create_solib_event_breakpoint): ... this.
993 (create_and_insert_solib_event_breakpoint): Use
994 create_solib_event_breakpoint_1 instead of calling
995 insert_breakpoint_locations manually.
996 (update_global_location_list): Handle UGLL_INSERT.
997
44702360
PA
9982014-09-22 Pedro Alves <palves@redhat.com>
999
1000 * breakpoint.c (enum ugll_insert_mode): New enum.
1001 (update_global_location_list)
1002 (update_global_location_list_nothrow): Change parameter type from
1003 boolean to enum ugll_insert_mode. All callers adjusted.
1004
93c6145a
JB
10052014-09-19 Joel Brobecker <brobecker@adacore.com>
1006
1007 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1008 SystemTap support in GDB.
1009
89a5711c
DB
10102014-09-19 Don Breazeal <donb@codesourcery.com>
1011
1012 * linux-nat.c (linux_handle_extended_wait): Call
1013 linux_ptrace_get_extended_event.
1014 (wait_lwp): Call linux_is_extended_waitstatus.
1015 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1016 and linux_is_extended_waitstatus.
1017 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1018 linux_ptrace_get_extended_event.
1019 (linux_ptrace_get_extended_event): New function.
1020 (linux_is_extended_waitstatus): New function.
1021 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1022 (linux_is_extended_waitstatus): New declarations.
1023
c3b7b696
YQ
10242014-09-19 Yao Qi <yao@codesourcery.com>
1025
1026 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1027 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1028 comments. Callers update.
1029 (dwarf_decode_lines): Likewise.
1030 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1031 comments. Skip the line table if 'lowpc' is greater than
1032 'address'. Don't check
1033 dwarf2_per_objfile->has_section_at_zero.
1034
2b4fd423
DE
10352014-09-18 Doug Evans <dje@google.com>
1036
1037 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1038 * python/py-symtab.c (stpy_get_producer): New function.
1039 (symtab_object_getset): Add "producer" attribute.
1040
5e43d467
UW
10412014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1042
1043 PR gdb/17384
1044 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1045 (do_captured_read_memory_integer): Remove.
1046 (safe_read_memory_integer): Use target_read_memory directly instead
1047 of catching errors in do_captured_read_memory_integer.
1048
04e79979
MR
10492014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1050
1051 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1052 not gdb/doc.
1053
76aeec5b
SDJ
10542014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1055
1056 * objc-lang.c (find_implementation_from_class): Remove dead code.
1057
2f693f9d
SDJ
10582014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1059
1060 PR cli/7233
1061 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1062 "fprintf_unfiltered (gdb_stdlog...)".
1063
bb9d5f81
PP
10642014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1065
1066 PR breakpoints/12526
1067 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1068 val_bitsize.
1069 * breakpoint.c (watch_command_1): Use these fields to retain
1070 bitfield information.
1071 (extract_bitfield_from_watchpoint_value): New function.
1072 (watchpoint_check): Use it.
1073 (update_watchpoint): Use it. Optimize the address and length of a
1074 HW watchpoint pointing to a bitfield.
1075 * value.h (unpack_value_bitfield): New prototype.
1076 * value.c (unpack_value_bitfield): Make extern.
1077
05db5edd
ST
10782014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1079
1080 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1081 x86-dregs.o.
1082 * gnu-nat.c (inf_threads): New function.
1083 * gnu-nat.h (inf_threads_ftype): New typedef.
1084 (inf_threads): New declaration.
1085 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1086 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1087 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1088 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1089 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1090 (i386_gnu_dr_get_control): New functions.
1091 (reg_addr): New structure.
1092 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1093 i386 debugging register hooks.
1094 * NEWS: Mention this.
1095
5a578da5
OJ
10962014-08-13 Omair Javaid <omair.javaid@linaro.org>
1097
1098 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1099 vector data transfer instructions.
1100 (arm_record_coproc_data_proc): Updated.
1101
f20f80dd
OJ
11022014-08-13 Omair Javaid <omair.javaid@linaro.org>
1103
1104 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1105 arm_record_exreg_ld_st_insn.
1106 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1107 load/store insns.
1108
851f26ae
OJ
11092014-08-13 Omair Javaid <omair.javaid@linaro.org>
1110
1111 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1112 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1113 processing instructions.
1114
1e1b6563
OJ
11152014-08-13 Omair Javaid <omair.javaid@linaro.org>
1116
1117 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1118 for advance SIMD struct ld/st insn.
1119 (thumb2_record_decode_insn_handler): Replace stub handler with
1120 thumb2_record_asimd_struct_ld_st.
1121
60cc5e93
OJ
11222014-08-13 Omair Javaid <omair.javaid@linaro.org>
1123
1124 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1125 for asimd, vfp and coprocessor insns.
1126 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1127 and coprocessor insns.
1128 (thumb2_record_coproc_insn): New function.
1129 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1130 handlers.
1131 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1132 opcode 110 insns.
1133
81219e53
DE
11342014-09-13 Doug Evans <xdje42@gmail.com>
1135
1136 * NEWS: Mention new "queue-signal" command.
1137 * infcmd.c (queue_signal_command): New function.
1138 (_initialize_infcmd): Add new queue-signal command.
1139
d36bf488
DE
11402014-09-13 Doug Evans <xdje42@gmail.com>
1141
1142 * linux-nat.c (wait_lwp): Add debugging printf.
1143 (linux_nat_wait_1): Ditto.
1144
f37f681c
PA
11452014-09-12 Pedro Alves <palves@redhat.com>
1146
1147 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1148 (create_and_insert_solib_event_breakpoint): New functions.
1149 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1150 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1151 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1152 (remove_dbx_link_breakpoint): Delete function.
1153 (insert_dbx_link_bpt_in_file): Use
1154 create_and_insert_solib_event_breakpoint instead of
1155 deprecated_insert_raw_breakpoint.
1156 (procfs_wait): Don't check whether we hit __dbx_link here.
1157 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1158 here.
1159 * solib-irix.c (base_breakpoint): Delete global.
1160 (disable_break): Delete function.
1161 (enable_break): Use create_solib_event_breakpoint
1162 instead of deprecated_insert_raw_breakpoint.
1163 (irix_solib_handle_event): New function.
1164 (irix_solib_create_inferior_hook): Don't run the target or disable
1165 the mapping-complete breakpoint here.
1166 (_initialize_irix_solib): Install irix_solib_handle_event as
1167 so_ops->handle_event hook.
1168
9d9bf2df
EBM
11692014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1170 Ulrich Weigand  <uweigand@de.ibm.com>
1171
1172 PR tdep/17379
1173 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1174 instead of read_memory_unsigned_integer.
1175
b006a80e
GB
11762014-09-12 Gary Benson <gbenson@redhat.com>
1177
1178 * nat/linux-waitpid.c: Include common-defs.h.
1179 [GDBSERVER]: Add FIXME comment.
1180 [!GDBSERVER]: Don't include defs.h or signal.h.
1181 (linux_debug) [!GDBSERVER]: Remove empty block.
1182
296b1496
GB
11832014-09-12 Gary Benson <gbenson@redhat.com>
1184
1185 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1186 Don't include defs.h or server.h.
1187
53f81362
GB
11882014-09-12 Gary Benson <gbenson@redhat.com>
1189
1190 * nat/linux-btrace.c: Include common-defs.h.
1191 Don't include defs.h, server.h or gdbthread.h.
1192 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1193
727605ca
GB
11942014-09-12 Gary Benson <gbenson@redhat.com>
1195
1196 * common/agent.c: Include common-defs.h.
1197 Don't include defs.h or server.h.
1198 * common/buffer.c: Likewise.
1199 * common/common-debug.c: Likewise.
1200 * common/common-utils.c: Likewise.
1201 * common/errors.c: Likewise.
1202 * common/filestuff.c: Likewise.
1203 * common/format.c: Likewise.
1204 * common/gdb_vecs.c: Likewise.
1205 * common/print-utils.c: Likewise.
1206 * common/ptid.c: Likewise.
1207 * common/rsp-low.c: Likewise.
1208 * common/signals.c: Likewise.
1209 * common/vec.c: Likewise.
1210 * common/xml-utils.c: Likewise.
1211 * nat/linux-osdata.c: Likewise.
1212 * nat/linux-procfs.c: Likewise.
1213 * nat/linux-ptrace.c: Likewise.
1214 * nat/mips-linux-watch.c: Likewise.
1215 * target/waitstatus.c: Likewise.
1216
361c8ade
GB
12172014-09-12 Tom Tromey <tromey@redhat.com>
1218 Gary Benson <gbenson@redhat.com>
1219
1220 * common/common-regcache.h: New file.
1221 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1222 * regcache.h: Include common-regcache.h.
1223 (regcache_read_pc): Don't declare.
1224 * regcache.c (get_thread_regcache_for_ptid): New function.
1225 * nat/linux-btrace.c: Don't include regcache.h.
1226 Include common-regcache.h.
1227 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1228
a01cbb49
TS
12292014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1230
1231 * regcache.h (struct regset): Declare.
1232
98880d46
PA
12332014-09-11 Pedro Alves <palves@redhat.com>
1234
1235 PR gdb/17347
1236 * main.c: Include "infrun.h".
1237 (catch_command_errors, catch_command_errors_const): Wait for the
1238 foreground command to complete.
1239 * top.c (maybe_wait_sync_command_done): New function, factored out
1240 from ...
1241 (maybe_wait_sync_command_done): ... here.
1242 * top.h (maybe_wait_sync_command_done): New declaration.
1243
bd9269f7
GB
12442014-09-11 Tom Tromey <tromey@redhat.com>
1245 Gary Benson <gbenson@redhat.com>
1246
1247 * common/symbol.h: New file.
1248 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1249 * minsyms.c (find_minimal_symbol_address): New function.
1250 * common/agent.c: Include common/symbol.h.
1251 [!GDBSERVER]: Don't include objfiles.h.
1252 (agent_look_up_symbols): Use find_minimal_symbol_address.
1253
f8c1d06b
GB
12542014-09-11 Gary Benson <gbenson@redhat.com>
1255
1256 * target/target.h (target_stop_ptid, target_continue_ptid):
1257 Declare.
1258 * target.c (target_stop_ptid, target_continue_ptid): New
1259 functions.
1260 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1261 (agent_run_command): Always use target_stop_ptid and
1262 target_continue_ptid.
1263
721ec300
GB
12642014-09-11 Tom Tromey <tromey@redhat.com>
1265 Gary Benson <gbenson@redhat.com>
1266
1267 * target/target.h: New file.
1268 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1269 * target.h: Include target/target.h.
1270 (target_read_memory, target_write_memory): Don't declare.
1271 * target.c (target_read_uint32): New function.
1272 * common/agent.c: Include target/target.h.
1273 [!GDBSERVER]: Don't include target.h.
1274 (helper_thread_id): Type changed to uint32_t.
1275 (agent_get_helper_thread_id): Use target_read_uint32.
1276 (agent_run_command): Always use target_read_memory and
1277 target_write_memory.
1278 (agent_capability): Type changed to uint32_t.
1279 (agent_capability_check): Use target_read_uint32.
1280
c5e92cca
GB
12812014-09-11 Gary Benson <gbenson@redhat.com>
1282
1283 * common/common-debug.h (show_debug_regs): Declare.
1284 * common/common-debug.c (show_debug_regs): Define.
1285 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1286 all uses with show_debug_regs. Replace all uses that considered
1287 debug_hw_points as a multi-value integer with straight boolean
1288 uses.
1289 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1290 with show_debug_regs.
1291 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1292 all uses with show_debug_regs.
1293 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1294 uses with show_debug_regs.
1295
eeef931a
UW
12962014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1297
1298 * findvar.c (address_from_register): Handle targets requiring
1299 a special conversion routine even for plain pointer types.
1300
8efa9855
UW
13012014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1302
1303 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1304 (store_register): Do not call exec_one_dummy_insn.
1305
eb479039
JB
13062014-09-10 Joel Brobecker <brobecker@adacore.com>
1307
1308 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1309 dereference it first. Use value_enclosing_type instead of
1310 value_type.
1311 (ada_array_length): Likewise.
1312
deede10c
JB
13132014-09-10 Joel Brobecker <brobecker@adacore.com>
1314
1315 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1316 Adjust function implementation and documentation accordingly.
1317 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1318 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1319 Update call to ada_value_ptr_subscript.
1320
7828a5f5
JB
13212014-09-10 Joel Brobecker <brobecker@adacore.com>
1322
1323 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1324 instead of VAL's type.
1325
35782f14
JB
13262014-09-10 Joel Brobecker <brobecker@adacore.com>
1327
1328 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1329
d342a0da
DE
13302014-09-09 Doug Evans <xdje42@gmail.com>
1331
1332 PR guile/17367
1333 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1334 last parameter to pkg-config, not first.
1335 * configure.ac: Pass --with-guile provided pkg-config path to
1336 GDB_GUILE_PROGRAM_NAMES.
1337 * configure: Regenerate.
1338
b4a3d263
GKB
13392014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1340
1341 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1342 Bertazi".
1343
6e466374
MR
13442014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1345
1346 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1347 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1348 the list of sections determining GDB_OSABI_IRIX.
1349
a1ada89a
JH
13502014-09-09 James Hogan <james.hogan@imgtec.com>
1351
1352 * MAINTAINERS (Write After Approval): Add "James Hogan".
1353
86db008d
JH
13542014-09-09 James Hogan <james.hogan@imgtec.com>
1355
1356 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1357
72fde3df
JB
13582014-09-09 Joel Brobecker <brobecker@adacore.com>
1359
1360 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1361
92d8d229
DE
13622014-09-08 Doug Evans <xdje42@gmail.com>
1363
1364 PR 17247
1365 * guile.c: #include <signal.h>.
1366 (_initialize_guile): Block SIGCHLD while initializing Guile.
1367
1368 Replaces the following, which is reverted.
1369
1370 2014-07-26 Doug Evans <xdje42@gmail.com>
1371
1372 PR 17185
1373 * configure.ac: Add check for header gc/gc.h.
1374 Add check for function setenv.
1375 * configure: Regenerate.
1376 * config.in: Regenerate.
1377 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1378
d81412aa
DE
13792014-09-08 Doug Evans <xdje42@gmail.com>
1380
1381 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1382 with named constant. Fix style of pointer comparison.
1383 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1384
a9f116cb
GKB
13852014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1386
1387 PR gdb/17035
1388 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1389 decide whether we display the command on "show user".
1390 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1391 printing command name.
1392 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1393 * cli/cli-decode.c (cli_user_command_p): Create helper function
1394 to verify whether cmd_list_element is a user-defined command.
1395
c75bd3a2
JK
13962014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1397
1398 PR python/17355
1399 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1400 Fix goto out of TRY_CATCH.
1401
faa42425 14022014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1403 Tom Tromey <tromey@redhat.com>
faa42425
DE
1404
1405 PR 15276
1406 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1407 $_any_caller_matches.
1408 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1409 * python/lib/gdb/function/caller_is.py: New file.
1410
0d41ba00
DE
14112014-09-06 Doug Evans <xdje42@gmail.com>
1412
1413 * infcmd.c (program_info): Fix typo.
1414
474ca4f6
SDJ
14152014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1416
1417 PR gdb/17235
1418 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1419 'number'. New variable 'has_digit'. Rewrite code to deal with
1420 subexpressions on SDT probes.
1421
ebf13736
PA
14222014-09-04 Pedro Alves <palves@redhat.com>
1423
1424 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1425 the input is only one character long.
1426
eb0b0463
SDJ
14272014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1428
1429 PR fortran/17237
1430 * f-valprint.c (f_val_print): Specify the correct print option to
1431 use when printing integer values.
1432
5ee44bfa
GB
14332014-09-04 Gary Benson <gbenson@redhat.com>
1434
1435 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1436 Remove code to cope with LWPs wrapped as PIDs.
1437 Add assertions to ensure no wrapped LWPs are passed.
1438
4875ffdb
PA
14392014-09-04 Pedro Alves <palves@redhat.com>
1440
1441 * value.c (value_ranges_copy_adjusted): New function, factored out
1442 from ...
1443 (value_contents_copy_raw): ... here.
1444 (unpack_value_bits_as_long_1): Rename back to ...
1445 (unpack_bits_as_long): ... this. Remove 'original_value' and
1446 'result' parameters. Change return type to LONGEST.
1447 (unpack_value_bits_as_long): Delete.
1448 (unpack_value_field_as_long_1): Delete.
1449 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1450 (unpack_value_bitfield): New function.
1451 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1452 (value_fetch_lazy): Use unpack_value_bitfield.
1453 * value.h (unpack_value_bits_as_long): Delete declaration.
1454
5f3b99cf
SS
14552014-09-03 Sasha Smundak <asmundak@google.com>
1456
1457 * python/py-frame.c (frapy_read_register): New function.
1458
ac740bc7
JH
14592014-09-03 James Hogan <james.hogan@imgtec.com>
1460
1461 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1462 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1463
7d793aa9
SDJ
14642014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1465
1466 PR python/16699
1467 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1468 function.
1469 (add_cmd): Set "completer_handle_brkchars" to NULL.
1470 * cli/cli-decode.h (struct cmd_list_element)
1471 <completer_handle_brkchars>: New field.
1472 * command.h (completer_ftype_void): New typedef.
1473 (set_cmd_completer_handle_brkchars): New prototype.
1474 * completer.c (set_gdb_completion_word_break_characters): New
1475 function.
1476 (complete_line_internal): Call "completer_handle_brkchars"
1477 callback from command.
1478 * completer.h: Include "command.h".
1479 (set_gdb_completion_word_break_characters): New prototype.
1480 * python/py-cmd.c (cmdpy_completer_helper): New function.
1481 (cmdpy_completer_handle_brkchars): New function.
1482 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1483 (cmdpy_init): Set completer_handle_brkchars to
1484 cmdpy_completer_handle_brkchars.
1485
97ea6506
GB
14862014-09-03 Gary Benson <gbenson@redhat.com>
1487
1488 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1489 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1490 Loop conditions changed to equivalent form.
1491 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1492 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1493 ALL_DEBUG_ADDRESS_REGISTERS.
1494
d1437815
JB
14952014-09-03 Joel Brobecker <brobecker@adacore.com>
1496
1497 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1498 description fix.
1499
9b94fcf1
DE
15002014-09-02 Doug Evans <dje@google.com>
1501
1502 * typeprint.c (find_global_typedef): Fix comment.
1503
df7e5265
GB
15042014-09-02 Gary Benson <gbenson@redhat.com>
1505
1506 * i386-nat.h: Renamed as...
1507 * x86-nat.h: New file. All type, function and variable name
1508 prefixes changed from "i386_" to "x86_". All references updated.
1509 * i386-nat.c: Renamed as...
1510 * x86-nat.c: New file. All type, function and variable name
1511 prefixes changed from "i386_" to "x86_". All references updated.
1512 * common/i386-xstate.h: Renamed as...
1513 * common/x86-xstate.h: New file. All type, function and variable
1514 name prefixes changed from "i386_" to "x86_". All references
1515 updated.
1516 * nat/i386-cpuid.h: Renamed as...
1517 * nat/x86-cpuid.h: New file. All type, function and variable name
1518 prefixes changed from "i386_" to "x86_". All references updated.
1519 * nat/i386-gcc-cpuid.h: Renamed as...
1520 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1521 name prefixes changed from "i386_" to "x86_". All references
1522 updated.
1523 * nat/i386-dregs.h: Renamed as...
1524 * nat/x86-dregs.h: New file. All type, function and variable name
1525 prefixes changed from "i386_" to "x86_". All references updated.
1526 * nat/i386-dregs.c: Renamed as...
1527 * nat/x86-dregs.c: New file. All type, function and variable name
1528 prefixes changed from "i386_" to "x86_". All references updated.
1529
1c3569d4
MR
15302014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1531
1532 * varobj.c (_initialize_varobj): Move to the end of file.
1533
ff55e1b5
GB
15342014-08-29 Gary Benson <gbenson@redhat.com>
1535
1536 * common/common-exceptions.h: New file.
1537 * common/common-exceptions.c: Likewise.
1538 * Makefile.in (SFILES): Add common/common-exceptions.c.
1539 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1540 (COMMON_OBS): Add common-exceptions.o.
1541 (common-exceptions.o): New rule.
1542 * exceptions.h (common-exceptions.h): Include.
1543 (gdb_setjmp.h): Do not include.
1544 (return_reason): Moved to common-exceptions.h.
1545 (enum return_reason): Likewise.
1546 (RETURN_MASK): Likewise.
1547 (typedef return_mask): Likewise.
1548 (enum errors): Likewise.
1549 (struct gdb_exception): Likewise.
1550 (exceptions_state_mc_init): Likewise.
1551 (exceptions_state_mc_action_iter): Likewise.
1552 (exceptions_state_mc_action_iter_1): Likewise.
1553 (TRY_CATCH): Likewise.
1554 (throw_exception): Likewise.
1555 (throw_verror): Likewise.
1556 (throw_vquit): Likewise.
1557 (throw_error): Likewise.
1558 (throw_quit): Likewise.
1559 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1560 (enum catcher_action): Likewise.
1561 (struct catcher): Likewise.
1562 (current_catcher): Likewise.
1563 (catcher_list_size): Likewise.
1564 (exceptions_state_mc_init): Likewise.
1565 (catcher_pop): Likewise.
1566 (exceptions_state_mc): Likewise.
1567 (exceptions_state_mc_action_iter): Likewise.
1568 (exceptions_state_mc_action_iter_1): Likewise.
1569 (throw_exception): Likewise.
1570 (exception_messages): Likewise.
1571 (exception_messages_size): Likewise.
1572 (throw_it): Likewise.
1573 (throw_verror): Likewise.
1574 (throw_vquit): Likewise.
1575 (throw_error): Likewise.
1576 (throw_quit): Likewise.
1577 (prepare_to_throw_exception): New function.
1578
e9bcb658
GB
15792014-08-29 Gary Benson <gbenson@redhat.com>
1580
1581 * common/gdb_setjmp.h: New file.
1582 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1583 * configure.ac: Move sigsetjmp check...
1584 * common/common.m4: ...here.
1585 * configure: Regenerate.
1586 * cp-support.c (SIGJMP_BUF): Delete.
1587 (SIGSETJMP): Likewise.
1588 (SIGLONGJMP): Likewise.
1589 * exceptions.h (gdb_setjmp.h): Include.
1590 (setjmp.h): Do not include.
1591 (EXCEPTIONS_SIGJMP_BUF): Delete.
1592 (EXCEPTIONS_SIGSETJMP): Likewise.
1593 (EXCEPTIONS_SIGLONGJMP): Likewise.
1594 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1595 from gdb_setjmp.h.
1596 * exceptions.c: Likewise.
1597
e3180625
GB
15982014-08-29 Gary Benson <gbenson@redhat.com>
1599
1600 * cleanups.h: Moved to...
1601 * common/cleanups.h: New file.
1602 * cleanups.c: Moved to...
1603 * common/cleanups.c: New file. Include common-defs.h and
1604 cleanups.h. Do not include defs.h.
1605 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1606 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1607 (cleanups.o): New rule.
1608
e3d6ba5d
GB
16092014-08-29 Gary Benson <gbenson@redhat.com>
1610
1611 * common/errors.h (internal_warning): New declaration.
1612 (internal_vwarning): Likewise.
1613 * common/errors.c (internal_warning): New function.
1614 * utils.h (internal_warning): Don't declare.
1615 (internal_vwarning): Likewise.
1616 * utils.c (internal_warning): Removed.
1617
075c7033
GB
16182014-08-29 Gary Benson <gbenson@redhat.com>
1619
1620 * main.c (captured_main): Use warning during startup.
1621 Prefix startup warning messages with command name.
1622
91b35fd0
GB
16232014-08-29 Gary Benson <gbenson@redhat.com>
1624
1625 * main.c (captured_main): Handle usage errors with error.
1626
b1ec390e
GB
16272014-08-29 Gary Benson <gbenson@redhat.com>
1628
1629 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1630 exit pair with a call to error. Wrap the message with _().
1631
fd0ef3dd
GB
16322014-08-29 Gary Benson <gbenson@redhat.com>
1633
1634 * main.c (captured_main): Replace a fprintf/exit
1635 pair with a call to error. Wrap the message with _().
1636
e0e6bcab
GB
16372014-08-29 Gary Benson <gbenson@redhat.com>
1638
1639 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1640 pairs with calls to error. Wrap the message with _().
1641
0d2f5c07
GB
16422014-08-29 Gary Benson <gbenson@redhat.com>
1643
1644 * utils.c (vwarning): Protect calls to target_terminal_ours
1645 and wrap_here.
1646
5df43998
GB
16472014-08-29 Gary Benson <gbenson@redhat.com>
1648
1649 * exceptions.c (print_flush): Protect calls to
1650 target_terminal_ours and wrap_here.
1651
2437fd32
GB
16522014-08-29 Gary Benson <gbenson@redhat.com>
1653
1654 * utils.h (filtered_printing_initialized): New declaration.
1655 * utils.c (abort_with_message): New function.
1656 (internal_vproblem): Use abort_with_message for first level
1657 recursive internal problems, and if gdb_stderr is not set up.
1658 Protect calls to target_terminal_ours, begin_line and query.
1659
f1f58506
DE
16602014-08-28 Doug Evans <dje@google.com>
1661
1662 * symtab.c (in_prologue): Move definition to better spot.
1663 (skip_prologue_using_sal): Ditto.
1664
aab2f208
DE
16652014-08-28 Doug Evans <dje@google.com>
1666
1667 * symtab.c (find_function_start_sal): Move definition to better spot.
1668
6b65d1b6
YQ
16692014-08-28 Yao Qi <yao@codesourcery.com>
1670
1671 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1672 found_stack_adjust in forward scan. Remove condition check
1673 on found_stack_adjust which is always true. Indent the code.
1674
a1b34d15
YQ
16752014-08-28 Yao Qi <yao@codesourcery.com>
1676
1677 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1678 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1679 (dwarf_decode_lines): Remove argument
1680 want_line_info. Remove condition check on want_line_info.
1681 Callers update.
1682
d5962de5
DE
16832014-08-27 Doug Evans <dje@google.com>
1684
1685 * dwarf2read.c (dwarf_record_line): Fix typo.
1686
9b139002
SDJ
16872014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1688
1689 * target.h (struct target_ops::to_terminal_save_ours): Remove
1690 declaration.
1691 (target_terminal_save_ours): Remove macro.
1692 * target-delegates.c: Regenerate.
1693 * inf-child.c (inf_child_target): Don't set the nonexistent
1694 field to_terminal_save_ours.
1695 * inferior.h (child_terminal_save_ours): Remove declaration.
1696 * terminal.h (gdb_save_tty_state): New declaration.
1697 * inflow.c (child_terminal_save_ours): Rename to ...
1698 (gdb_save_tty_state): ... this.
1699 * tui/tui.c: Include terminal.h.
1700 (tui_enable): Use gdb_save_tty_state instead of
1701 target_terminal_save_ours.
1702 (tui_disable): Likewise.
1703
9debeba0
DE
17042014-08-25 Doug Evans <dje@google.com>
1705
1706 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1707 Pass NULL instead of 0 for context pointer.
1708
428fc5fc
YQ
17092014-08-25 Yao Qi <yao@codesourcery.com>
1710
1711 * dwarf2read.c: Fix grammatical error.
1712
cdc07690
YQ
17132014-08-24 Yao Qi <yao@codesourcery.com>
1714
1715 * dwarf2read.c (scan_partial_symbols): Update comments.
1716 Rename argument 'need_pc' with 'set_addrmap'.
1717 (add_partial_namespace): Rename argument 'need_pc' with
1718 'set_addrmap'.
1719 (add_partial_module): Likewise.
1720 (add_partial_subprogram): Likewise. Update comments.
1721 (dwarf2_name): Fix typo.
1722
a05a36a5
DE
17232014-08-22 Doug Evans <dje@google.com>
1724
1725 PR 17276
1726 * dwarf2read.c (dwarf_record_line_p): New function.
1727 (dwarf_decode_lines_1): Ignore subsequent line number entries
1728 for the same line if any entry had a non-zero discriminator.
1729
252a6764
DE
17302014-08-22 Doug Evans <dje@google.com>
1731
1732 * buildsym.h (record_line_ftype): New typedef.
1733 (record_line): Use it.
1734 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1735 (dwarf_decode_lines_1): Call them.
1736
510db052
YQ
17372014-08-22 Yao Qi <yao@codesourcery.com>
1738
1739 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1740 (ctf_end): Remove code.
1741
22fd09ae
JK
17422014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1743
1744 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1745 (linux_make_corefile_notes): call update_thread_list, protected against
1746 exceptions.
1747
656e8868
PA
17482014-08-21 Pedro Alves <palves@redhat.com>
1749
1750 * infcmd.c (attach_command): Remove comment.
1751
de589d04
WN
17522014-08-21 Bin Cheng <bin.cheng@arm.com>
1753
1754 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1755 unsigned LONGEST to ULONGEST.
1756
2a31c623
PA
17572014-08-20 Pedro Alves <palves@redhat.com>
1758
1759 * Makefile.in (check-read1): New rule.
1760
d36430db
JB
17612014-08-20 Joel Brobecker <brobecker@adacore.com>
1762
1763 * value.c (value_from_contents_and_address): Strip resolved_type's
1764 typedef layers before checking its TYPE_DATA_LOCATION.
1765
000339af
PA
17662014-08-20 Pedro Alves <palves@redhat.com>
1767
1768 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1769
5f52445b
YQ
17702014-08-20 Yao Qi <yao@codesourcery.com>
1771
1772 * amd64-tdep.c (amd64_classify): Add a blank line after the
1773 example. Move "*/" to a new line.
1774 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1775 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1776 * dwarf2read.c (psymtab_include_file_name): Likewise.
1777
9a0dc9e3
PA
17782014-08-19 Andrew Burgess <aburgess@broadcom.com>
1779 Pedro Alves <palves@redhat.com>
1780
1781 PR symtab/14604
1782 PR symtab/14605
1783 * ada-lang.c (coerce_unspec_val_to_type): Use
1784 value_contents_copy_raw.
1785 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1786 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1787 * cp-valprint.c (cp_print_value_fields): Let the common printing
1788 code handle optimized out values.
1789 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1790 * d-valprint.c (dynamic_array_type): Use
1791 value_bits_any_optimized_out.
1792 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1793 check_any_valid fields.
1794 (check_pieced_value_bits): Delete and inline ...
1795 (check_pieced_synthetic_pointer): ... here.
1796 (check_pieced_value_validity): Delete.
1797 (check_pieced_value_invalid): Delete.
1798 (pieced_value_funcs): Remove check_validity and check_any_valid
1799 fields.
1800 (read_pieced_value): Use mark_value_bits_optimized_out.
1801 (write_pieced_value): Switch to use
1802 mark_value_bytes_optimized_out.
1803 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1804 of assuming the whole value is optimized out.
1805 * findvar.c (read_frame_register_value): Remove special handling
1806 of optimized out registers.
1807 (value_from_register): Use mark_value_bytes_optimized_out.
1808 * frame-unwind.c (frame_unwind_got_optimized): Use
1809 mark_value_bytes_optimized_out.
1810 * jv-valprint.c (java_value_print): Adjust.
1811 (java_print_value_fields): Let the common printing code handle
1812 optimized out values.
1813 * mips-tdep.c (mips_print_register): Remove special handling of
1814 optimized out registers.
1815 * opencl-lang.c (lval_func_check_validity): Delete.
1816 (lval_func_check_any_valid): Delete.
1817 (opencl_value_funcs): Remove check_validity and check_any_valid
1818 fields.
1819 * p-valprint.c (pascal_object_print_value_fields): Let the common
1820 printing code handle optimized out values.
1821 * stack.c (read_frame_arg): Remove special handling of optimized
1822 out values. Fetch both VAL and ENTRYVAL before comparing
1823 contents. Adjust to value_available_contents_eq rename.
1824 * valprint.c (valprint_check_validity)
1825 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1826 (val_print_array_elements): Adjust.
1827 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1828 (value_bits_any_optimized_out): New function.
1829 (value_entirely_covered_by_range_vector): New function, factored
1830 out from value_entirely_unavailable.
1831 (value_entirely_unavailable): Reimplement.
1832 (value_entirely_optimized_out): New function.
1833 (insert_into_bit_range_vector): New function, factored out from
1834 mark_value_bits_unavailable.
1835 (mark_value_bits_unavailable): Reimplement.
1836 (struct ranges_and_idx): New struct.
1837 (find_first_range_overlap_and_match): New function, factored out
1838 from value_available_contents_bits_eq.
1839 (value_available_contents_bits_eq): Rename to ...
1840 (value_contents_bits_eq): ... this. Check both unavailable
1841 contents and optimized out contents.
1842 (value_available_contents_eq): Rename to ...
1843 (value_contents_eq): ... this.
1844 (allocate_value_lazy): Remove reference to the old optimized_out
1845 boolean.
1846 (allocate_optimized_out_value): Use
1847 mark_value_bytes_optimized_out.
1848 (require_not_optimized_out): Adjust to check whether the
1849 optimized_out vec is empty.
1850 (ranges_copy_adjusted): New function, factored out from
1851 value_contents_copy_raw.
1852 (value_contents_copy_raw): Also copy the optimized out ranges.
1853 Assert the destination ranges aren't optimized out.
1854 (value_contents_copy): Update comment, remove call to
1855 require_not_optimized_out.
1856 (value_contents_equal): Adjust to check whether the optimized_out
1857 vec is empty.
1858 (set_value_optimized_out, value_optimized_out_const): Delete.
1859 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1860 New functions.
1861 (value_entirely_optimized_out, value_bits_valid): Delete.
1862 (value_copy): Take a VEC copy of the 'optimized_out' field.
1863 (value_primitive_field): Remove special handling of optimized out.
1864 (value_fetch_lazy): Assert that lazy values have no unavailable
1865 regions. Use value_bits_any_optimized_out. Remove some special
1866 handling for optimized out values.
1867 * value.h: Add intro comment about <optimized out> and
1868 <unavailable>.
1869 (struct lval_funcs): Remove check_validity and check_any_valid
1870 fields.
1871 (set_value_optimized_out, value_optimized_out_const): Remove.
1872 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1873 New declarations.
1874 (value_bits_any_optimized_out): New declaration.
1875 (value_bits_valid): Delete declaration.
1876 (value_available_contents_eq): Rename to ...
1877 (value_contents_eq): ... this, and extend comments.
1878
6694c411
JK
18792014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1880
1881 Fix -fsanitize=address on unreadable inferior strings.
1882 * valprint.c (val_print_string): Fix access before BUFFER.
1883
89a1c21a
SM
18842014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1885
1886 * target.c (target_struct_size): Remove.
1887 (target_struct_allocsize): Remove.
1888 (DEFAULT_ALLOCSIZE): Remove.
1889 (target_ops_p): New typedef.
1890 (DEF_VEC_P (target_ops_p)): New vector type.
1891 (target_structs): Change type to VEC (target_ops_p).
1892 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1893 (find_default_run_target): Rewrite for loop following changes to
1894 target_structs.
1895
cb417230
JB
18962014-08-19 Joel Brobecker <brobecker@adacore.com>
1897
1898 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1899 Adjust code accordingly. Adjust function description comment.
1900
817e0957
YQ
19012014-08-19 Yao Qi <yao@codesourcery.com>
1902
1903 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1904 types.
1905
2974be62
AM
19062014-08-19 Alan Modra <amodra@gmail.com>
1907
1908 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1909 * config.in: Regenerate.
1910 * configure: Regenerate.
1911
34abf635
GB
19122014-08-19 Tom Tromey <tromey@redhat.com>
1913 Gary Benson <gbenson@redhat.com>
1914
1915 * common/common-debug.h: New file.
1916 * common/common-debug.c: Likewise.
1917 * debug.c: Likewise.
1918 * Makefile.in (SFILES): Add common/common-debug.c.
1919 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1920 (COMMON_OBS): Add common-debug.o and debug.o.
1921 (common-debug.o): New rule.
1922 * common/common-defs.h: Include common-debug.h.
1923 * common/agent.c (debug_agent_printf): New function.
1924 (DEBUG_AGENT): Redefine.
1925 * nat/i386-dregs.c (debug_printf): Undefine.
1926
f6e94d78
GB
19272014-08-19 Gary Benson <gbenson@redhat.com>
1928
1929 * common/common-defs.h: Include print-utils.h.
1930 * utils.h: Do not include print-utils.h.
1931
9239eeab
GB
19322014-08-19 Tom Tromey <tromey@redhat.com>
1933 Gary Benson <gbenson@redhat.com>
1934
1935 * common/common-types.h: New file.
1936 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1937 * common/common-defs.h: Include common-types.h.
1938 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1939 (ULONGEST): Remove.
1940
ef87c8bb
GB
19412014-08-19 Tom Tromey <tromey@redhat.com>
1942 Gary Benson <gbenson@redhat.com>
1943
1944 * common/errors.h: New file.
1945 * common/errors.c: Likewise.
1946 * Makefile.in (SFILES): Add common/errors.c.
1947 (HFILES_NO_SRCDIR): Add common/errors.h.
1948 (COMMON_OBS): Add errors.o.
1949 (errors.o): New rule.
1950 * common/common-defs.h: Include errors.h.
1951 * utils.h (perror_with_name, error, verror, warning, vwarning):
1952 Don't declare.
1953 * common/common-utils.h: (malloc_failure, internal_error):
1954 Likewise.
1955
196a707b
GB
19562014-08-19 Gary Benson <gbenson@redhat.com>
1957
1958 * utils.c (internal_vproblem): Always print the message.
1959
ded4fc8f
DE
19602014-08-18 Doug Evans <dje@google.com>
1961
1962 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1963
950c97d8
JB
19642014-08-18 Joel Brobecker <brobecker@adacore.com>
1965
1966 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1967 Return 0 if TYPE is dynamic.
1968 (print_range): Add handling of dynamic ranges.
1969
3cdcd0ce
JB
19702014-08-18 Keven Boell <keven.boell@intel.com>
1971 Joel Brobecker <brobecker@adacore.com>
1972
1973 * gdbtypes.h (struct main_type): Add field "data_location".
1974 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1975 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1976 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1977 a dynamic data location.
1978 (resolve_dynamic_type): Add DW_AT_data_location handling.
1979 (copy_recursive, copy_type): Copy the data_location information
1980 when present.
1981 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1982 * value.c (value_from_contents_and_address): Add
1983 DW_AT_data_location handling.
1984
08412b07
JB
19852014-08-18 Keven Boell <keven.boell@intel.com>
1986 Joel Brobecker <brobecker@adacore.com>
1987
1988 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1989 field "get_object_address".
1990 * dwarf2expr.c (execute_stack_op): Add handling for
1991 DW_OP_push_object_address.
1992 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1993 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1994 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1995 (dwarf_expr_get_obj_addr): New function.
1996 (dwarf_expr_ctx_funcs): Add get_object_address field.
1997 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1998 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1999 (dwarf2_evaluate_property): Add parameter "address". Use it.
2000 (needs_get_obj_addr): New function.
2001 (needs_frame_ctx_funcs): Add get_object_address field.
2002 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2003 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2004 (resolve_dynamic_array): Likewise.
2005
84754697
JB
20062014-08-18 Joel Brobecker <brobecker@adacore.com>
2007
2008 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2009 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2010 fixed value for records and unions for which some GNAT encodings
2011 are present.
2012
da5c522f
JB
20132014-08-18 Joel Brobecker <brobecker@adacore.com>
2014
2015 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2016 rewrite to avoid "else if" and "else" constructs. Should be
2017 a no-op in practice.
2018
0d72a7c3
JB
20192014-08-18 Joel Brobecker <brobecker@adacore.com>
2020
2021 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2022 of lexical block.
2023
e66d4446
SC
20242014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2025
2026 PR c++/17132
2027 * eval.c: Update all calls to find_overload_match.
2028 * valarith.c: Likewise.
2029 (value_user_defined_cpp_op, value_user_defined_op): New
2030 argument NOSIDE. Update all callers.
2031 * valops.c (find_overload_match): New argument NOSIDE.
2032 * value.h (find_overload_match): Update signature.
2033
940df408
SC
20342014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2035
2036 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2037 'items' methods instead of 'iteritems' method on dictionaries.
2038
699ca60a
DE
20392014-08-15 Doug Evans <dje@google.com>
2040
2041 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2042 closer to use.
2043
37780ee5
DE
20442014-08-15 Doug Evans <dje@google.com>
2045
2046 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2047
0ad93d4f
DE
20482014-08-15 Doug Evans <dje@google.com>
2049
2050 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2051
20d8c372
DE
20522014-08-15 Doug Evans <dje@google.com>
2053
2054 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2055 unused.
2056
cb039ba4
EZ
20572014-08-15 Eli Zaretskii <eliz@gnu.org>
2058
2059 * dcache.h: Include target.h, to avoid compile time warnings.
2060
eb7a547a
JB
20612014-08-15 Joel Brobecker <brobecker@adacore.com>
2062
2063 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2064 frame_info" partial declaration.
2065 * gdbarch.h: Regenerate.
2066
783cecc8
YQ
20672014-08-15 Yao Qi <yao@codesourcery.com>
2068
2069 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2070 Add parameter 'decode_for_pst_p'. Callers update.
2071
65c749e7
YQ
20722014-08-13 Yao Qi <yao@codesourcery.com>
2073
2074 PR build/17104
2075 * configure.ac: Use local variable 'pos'.
2076 * configure: Regenerated.
2077
d769e349
DE
20782014-08-11 Doug Evans <dje@google.com>
2079
2080 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2081 message, it is redundant with "Reading symbols from ..." message.
2082
24f1235e
DE
20832014-08-10 Doug Evans <xdje42@gmail.com>
2084
2085 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2086
dcd2e6ef
YQ
20872014-08-09 Yao Qi <yao@codesourcery.com>
2088
2089 PR remote/9053
2090 * remote.c (remote_xfer_partial): Remove dead code.
2091
070bdf0b
AA
20922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2093
2094 * ia64-linux-tdep.c: Include "regset.h".
2095 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2096 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2097 (ia64_linux_supply_fpregset): New function.
2098 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2099 (ia64_linux_regset_from_core_section): New function.
2100 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2101 method.
2102
08f9f542
AA
21032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2104
2105 * m68klinux-tdep.c: Include "regset.h".
2106 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2107 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2108 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2109 (m68k_linux_regset_from_core_section): New function.
2110 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2111 method.
2112
8f1cee41
AA
21132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2114
2115 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2116 function. Move logic to...
2117 (tilegx_linux_regmap): ... this new register map.
2118 (tilegx_linux_regset): Refer to register map, replace supply
2119 method by regcache_supply_regset, and add collect method.
2120 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2121 TILEGX_FIRST_EASY_REGNUM.
2122
c5741217
AA
21232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2124
2125 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2126 that calls regcache_supply_regset and handles the EPC register
2127 separately. Move main logic to...
2128 (score7_linux_gregmap): ... this new register map.
2129 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2130 (score7_linux_gregset): Refer to register map. Add collect method.
2131 (score7_linux_regset_from_core_section): Replace
2132 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2133 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2134 (struct regset): Delete unused forward declaraction.
2135 (struct pt_regs): Delete structure definition.
2136 (elf_gregset_t): Delete typedef.
2137
81580573
AA
21382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2139
2140 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2141 (nios2_core_regset): Add collect method.
2142
ba199d7d
AA
21432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2144
2145 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2146 platform-independent and don't write to read-only input buffer.
2147 (m32r_linux_collect_gregset): New function.
2148 (m32r_linux_gregset): Add collect method.
2149
0006a9da
AA
21502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2151
2152 * hppa-linux-tdep.c (greg_map): Rename to...
2153 (hppa_linux_gregmap): ... this. Also convert to
2154 regcache_map_entry format.
2155 (hppa_linux_supply_regset): Delete function.
2156 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2157 (hppa_linux_fpregmap): ... this new register map.
2158 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2159 register map, replace supply method by regcache_supply_regset, and
2160 add collect method regcache_collect_regset.
2161
901e1b23
AA
21622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163
2164 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2165 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2166 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2167 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2168 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2169 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2170 (frv_linux_supply_gregset): Replace main logic by call to
2171 regcache_supply_regset, but keep clearing gr32-gr63.
2172 (frv_linux_supply_fpregset): Delete function.
2173 (frv_linux_gregset): Refer to appropriate register map and add
2174 regcache_collect_regset as the collect method.
2175 (frv_linux_fpregset): Likewise. Also exchange the supply method
2176 by regcache_supply_regset.
2177
1d6e7555
AA
21782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2179
2180 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2181 by call to alpha_supply_int_regs.
2182 (alpha_linux_collect_gregset): New function.
2183 (alpha_linux_supply_fpregset): Replace logic by call to
2184 alpha_supply_fp_regs.
2185 (alpha_linux_collect_fpregset): New function.
2186 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2187
d4d793bf
AA
21882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2189
2190 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2191 by call to regcache_collect_regset.
2192 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2193 instead of aarch64_linux_supply_gregset/_fpregset.
2194 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2195 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2196 header file instead.
2197 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2198 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2199 functions. Move logic to ...
2200 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2201 register maps.
2202 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2203 refer to new register maps, replace *_regset_from_core by
2204 regcache_supply_regset, and also use regcache_collect_regset.
2205 * aarch64-linux-tdep.h: Include "regset.h".
2206 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2207 Delete prototypes.
2208 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2209 macros, moved from C source file.
2210 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2211 variable declarations.
2212
99b7da5d
AA
22132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2214
2215 * s390-linux-nat.c: Include "regset.h".
2216 (regmap_gregset): Delete macro.
2217 (s390_64_regmap_gregset): New register map for
2218 regcache_supply/_collect_regset.
2219 (s390_64_gregset): New regset.
2220 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2221 (regmap_fpregset): Delete macro.
2222 (s390_native_supply, s390_native_collect): Delete functions.
2223 (supply_gregset, fill_gregset): Replace s390-specific regmap
2224 handling by a call to regcache_supply/_collect_regset.
2225 (supply_fpregset, fill_fpregset): Call regcache_supply/
2226 _collect_regset instead of s390_native_supply/_collect.
2227 (fetch_regset, store_regset): Likewise. Also change the last
2228 parameter to a regset instead of a regmap.
2229 (s390_linux_fetch_inferior_registers)
2230 (390_linux_store_inferior_registers): Adjust last parameter in
2231 calls to fetch_regset and store_regset.
2232 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2233 (s390_gregmap): ... this. Also make static const and convert to
2234 regcache_map_entry format.
2235 (s390x_regmap_gregset): Delete.
2236 (s390_regmap_fpregset): Rename to...
2237 (s390_fpregmap): ... this. Make static const and convert to
2238 regcache_map_entry format.
2239 (s390_regmap_upper, s390_regmap_last_break)
2240 (s390x_regmap_last_break, s390_regmap_system_call)
2241 (s390_regmap_tdb): Likewise.
2242 (s390_supply_regset, s390_collect_regset): Remove functions.
2243 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2244 s390_supply_regset.
2245 (s390_gregset, s390_fpregset, s390_upper_regset)
2246 (s390_last_break_regset, s390x_last_break_regset)
2247 (s390_system_call_regset, s390_tdb_regset): Make global and
2248 replace s390_supply/_collect_regset by regcache_supply/
2249 _collect_regset.
2250 (s390x_gregset): Delete.
2251 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2252 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2253 (s390_regmap_fpregset, s390_regmap_last_break)
2254 (s390x_regmap_last_break, s390_regmap_system_call)
2255 (s390_regmap_tdb): Delete global variable declarations.
2256 (s390_gregset, s390_fpregset, s390_last_break_regset)
2257 (s390x_last_break_regset, s390_system_call_regset)
2258 (s390_tdb_regset): New global variable declarations.
2259
0b309272
AA
22602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2261
2262 * regcache.c: Include "regset.h".
2263 (regcache_transfer_regset): New local function.
2264 (regcache_supply_regset, regcache_collect_regset): New functions.
2265 * regcache.h (struct regcache_map_entry): New structure.
2266 (REGCACHE_MAP_SKIP): New enum value.
2267 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2268
7fefa8d7
AA
22692014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2270
2271 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2272 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2273 (ppc_linux_collect_gregset ): Likewise.
2274 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2275 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2276 (ppc_collect_vrregset): Likewise.
2277 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2278 Likewise.
2279
96c4f946
YQ
22802014-08-07 Yao Qi <yao@codesourcery.com>
2281
2282 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2283 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2284 * remote.c (remote_read_bytes): Likewise.
2285
fffbe6a8
YQ
22862014-08-07 Yao Qi <yao@codesourcery.com>
2287
2288 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2289
5ee8a82c
YQ
22902014-08-07 Yao Qi <yao@codesourcery.com>
2291
2292 PR remote/17230
2293 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2294 TARGET_XFER_OK instead of 0.
2295
bb974a24
GB
22962014-08-07 Gary Benson <gbenson@redhat.com>
2297
2298 * common/common-defs.h: Include errno.h.
2299 * defs.h: Do not include errno.h.
2300 * ada-typeprint.c: Likewise.
2301 * c-typeprint.c: Likewise.
2302 * core-regset.c: Likewise.
2303 * corefile.c: Likewise.
2304 * corelow.c: Likewise.
2305 * event-loop.c: Likewise.
2306 * f-typeprint.c: Likewise.
2307 * gnu-nat.c: Likewise.
2308 * go32-nat.c: Likewise.
2309 * i386gnu-nat.c: Likewise.
2310 * m2-typeprint.c: Likewise.
2311 * nat/linux-btrace.c: Likewise.
2312 * p-typeprint.c: Likewise.
2313 * procfs.c: Likewise.
2314 * remote-sim.c: Likewise.
2315 * rs6000-nat.c: Likewise.
2316 * target.c: Likewise.
2317 * typeprint.c: Likewise.
2318 * ui-file.c: Likewise.
2319 * valops.c: Likewise.
2320 * valprint.c: Likewise.
2321
6d3d12eb
GB
23222014-08-07 Gary Benson <gbenson@redhat.com>
2323
2324 * common/common-defs.h: Include string.h.
2325 * aarch64-tdep.c: Do not include string.h.
2326 * ada-exp.y: Likewise.
2327 * ada-lang.c: Likewise.
2328 * ada-lex.l: Likewise.
2329 * ada-typeprint.c: Likewise.
2330 * ada-valprint.c: Likewise.
2331 * aix-thread.c: Likewise.
2332 * alpha-linux-tdep.c: Likewise.
2333 * alpha-mdebug-tdep.c: Likewise.
2334 * alpha-nat.c: Likewise.
2335 * alpha-osf1-tdep.c: Likewise.
2336 * alpha-tdep.c: Likewise.
2337 * alphanbsd-tdep.c: Likewise.
2338 * amd64-dicos-tdep.c: Likewise.
2339 * amd64-linux-tdep.c: Likewise.
2340 * amd64-nat.c: Likewise.
2341 * amd64-sol2-tdep.c: Likewise.
2342 * amd64fbsd-tdep.c: Likewise.
2343 * amd64obsd-tdep.c: Likewise.
2344 * arch-utils.c: Likewise.
2345 * arm-linux-nat.c: Likewise.
2346 * arm-linux-tdep.c: Likewise.
2347 * arm-tdep.c: Likewise.
2348 * arm-wince-tdep.c: Likewise.
2349 * armbsd-tdep.c: Likewise.
2350 * armnbsd-nat.c: Likewise.
2351 * armnbsd-tdep.c: Likewise.
2352 * armobsd-tdep.c: Likewise.
2353 * avr-tdep.c: Likewise.
2354 * ax-gdb.c: Likewise.
2355 * ax-general.c: Likewise.
2356 * bcache.c: Likewise.
2357 * bfin-tdep.c: Likewise.
2358 * breakpoint.c: Likewise.
2359 * build-id.c: Likewise.
2360 * buildsym.c: Likewise.
2361 * c-exp.y: Likewise.
2362 * c-lang.c: Likewise.
2363 * c-typeprint.c: Likewise.
2364 * c-valprint.c: Likewise.
2365 * charset.c: Likewise.
2366 * cli-out.c: Likewise.
2367 * cli/cli-cmds.c: Likewise.
2368 * cli/cli-decode.c: Likewise.
2369 * cli/cli-dump.c: Likewise.
2370 * cli/cli-interp.c: Likewise.
2371 * cli/cli-logging.c: Likewise.
2372 * cli/cli-script.c: Likewise.
2373 * cli/cli-setshow.c: Likewise.
2374 * cli/cli-utils.c: Likewise.
2375 * coffread.c: Likewise.
2376 * common/agent.c: Likewise.
2377 * common/buffer.c: Likewise.
2378 * common/buffer.h: Likewise.
2379 * common/common-utils.c: Likewise.
2380 * common/filestuff.c: Likewise.
2381 * common/filestuff.c: Likewise.
2382 * common/format.c: Likewise.
2383 * common/print-utils.c: Likewise.
2384 * common/rsp-low.c: Likewise.
2385 * common/signals.c: Likewise.
2386 * common/vec.h: Likewise.
2387 * common/xml-utils.c: Likewise.
2388 * core-regset.c: Likewise.
2389 * corefile.c: Likewise.
2390 * corelow.c: Likewise.
2391 * cp-abi.c: Likewise.
2392 * cp-name-parser.y: Likewise.
2393 * cp-support.c: Likewise.
2394 * cp-valprint.c: Likewise.
2395 * cris-tdep.c: Likewise.
2396 * d-exp.y: Likewise.
2397 * darwin-nat.c: Likewise.
2398 * dbxread.c: Likewise.
2399 * dcache.c: Likewise.
2400 * demangle.c: Likewise.
2401 * dicos-tdep.c: Likewise.
2402 * disasm.c: Likewise.
2403 * doublest.c: Likewise.
2404 * dsrec.c: Likewise.
2405 * dummy-frame.c: Likewise.
2406 * dwarf2-frame.c: Likewise.
2407 * dwarf2loc.c: Likewise.
2408 * dwarf2read.c: Likewise.
2409 * elfread.c: Likewise.
2410 * environ.c: Likewise.
2411 * eval.c: Likewise.
2412 * event-loop.c: Likewise.
2413 * exceptions.c: Likewise.
2414 * exec.c: Likewise.
2415 * expprint.c: Likewise.
2416 * f-exp.y: Likewise.
2417 * f-lang.c: Likewise.
2418 * f-typeprint.c: Likewise.
2419 * f-valprint.c: Likewise.
2420 * fbsd-nat.c: Likewise.
2421 * findcmd.c: Likewise.
2422 * findvar.c: Likewise.
2423 * fork-child.c: Likewise.
2424 * frame.c: Likewise.
2425 * frv-linux-tdep.c: Likewise.
2426 * frv-tdep.c: Likewise.
2427 * gdb.c: Likewise.
2428 * gdb_bfd.c: Likewise.
2429 * gdbarch.c: Likewise.
2430 * gdbarch.sh: Likewise.
2431 * gdbtypes.c: Likewise.
2432 * gnu-nat.c: Likewise.
2433 * gnu-v2-abi.c: Likewise.
2434 * gnu-v3-abi.c: Likewise.
2435 * go-exp.y: Likewise.
2436 * go-lang.c: Likewise.
2437 * go32-nat.c: Likewise.
2438 * guile/guile.c: Likewise.
2439 * guile/scm-auto-load.c: Likewise.
2440 * hppa-hpux-tdep.c: Likewise.
2441 * hppa-linux-nat.c: Likewise.
2442 * hppanbsd-tdep.c: Likewise.
2443 * hppaobsd-tdep.c: Likewise.
2444 * i386-cygwin-tdep.c: Likewise.
2445 * i386-dicos-tdep.c: Likewise.
2446 * i386-linux-tdep.c: Likewise.
2447 * i386-nto-tdep.c: Likewise.
2448 * i386-sol2-tdep.c: Likewise.
2449 * i386-tdep.c: Likewise.
2450 * i386bsd-tdep.c: Likewise.
2451 * i386gnu-nat.c: Likewise.
2452 * i386nbsd-tdep.c: Likewise.
2453 * i386obsd-tdep.c: Likewise.
2454 * i387-tdep.c: Likewise.
2455 * ia64-libunwind-tdep.c: Likewise.
2456 * ia64-linux-nat.c: Likewise.
2457 * inf-child.c: Likewise.
2458 * inf-ptrace.c: Likewise.
2459 * inf-ttrace.c: Likewise.
2460 * infcall.c: Likewise.
2461 * infcmd.c: Likewise.
2462 * inflow.c: Likewise.
2463 * infrun.c: Likewise.
2464 * interps.c: Likewise.
2465 * iq2000-tdep.c: Likewise.
2466 * irix5-nat.c: Likewise.
2467 * jv-exp.y: Likewise.
2468 * jv-lang.c: Likewise.
2469 * jv-typeprint.c: Likewise.
2470 * jv-valprint.c: Likewise.
2471 * language.c: Likewise.
2472 * linux-fork.c: Likewise.
2473 * linux-nat.c: Likewise.
2474 * lm32-tdep.c: Likewise.
2475 * m2-exp.y: Likewise.
2476 * m2-typeprint.c: Likewise.
2477 * m32c-tdep.c: Likewise.
2478 * m32r-linux-nat.c: Likewise.
2479 * m32r-linux-tdep.c: Likewise.
2480 * m32r-rom.c: Likewise.
2481 * m32r-tdep.c: Likewise.
2482 * m68hc11-tdep.c: Likewise.
2483 * m68k-tdep.c: Likewise.
2484 * m68kbsd-tdep.c: Likewise.
2485 * m68klinux-nat.c: Likewise.
2486 * m68klinux-tdep.c: Likewise.
2487 * m88k-tdep.c: Likewise.
2488 * machoread.c: Likewise.
2489 * macrocmd.c: Likewise.
2490 * main.c: Likewise.
2491 * mdebugread.c: Likewise.
2492 * mem-break.c: Likewise.
2493 * memattr.c: Likewise.
2494 * memory-map.c: Likewise.
2495 * mep-tdep.c: Likewise.
2496 * mi/mi-cmd-break.c: Likewise.
2497 * mi/mi-cmd-disas.c: Likewise.
2498 * mi/mi-cmd-env.c: Likewise.
2499 * mi/mi-cmd-stack.c: Likewise.
2500 * mi/mi-cmd-var.c: Likewise.
2501 * mi/mi-cmds.c: Likewise.
2502 * mi/mi-console.c: Likewise.
2503 * mi/mi-getopt.c: Likewise.
2504 * mi/mi-interp.c: Likewise.
2505 * mi/mi-main.c: Likewise.
2506 * mi/mi-parse.c: Likewise.
2507 * microblaze-rom.c: Likewise.
2508 * microblaze-tdep.c: Likewise.
2509 * mingw-hdep.c: Likewise.
2510 * minidebug.c: Likewise.
2511 * minsyms.c: Likewise.
2512 * mips-irix-tdep.c: Likewise.
2513 * mips-linux-tdep.c: Likewise.
2514 * mips-tdep.c: Likewise.
2515 * mips64obsd-tdep.c: Likewise.
2516 * mipsnbsd-tdep.c: Likewise.
2517 * mipsread.c: Likewise.
2518 * mn10300-linux-tdep.c: Likewise.
2519 * mn10300-tdep.c: Likewise.
2520 * monitor.c: Likewise.
2521 * moxie-tdep.c: Likewise.
2522 * mt-tdep.c: Likewise.
2523 * nat/linux-btrace.c: Likewise.
2524 * nat/linux-osdata.c: Likewise.
2525 * nat/linux-procfs.c: Likewise.
2526 * nat/linux-ptrace.c: Likewise.
2527 * nat/linux-waitpid.c: Likewise.
2528 * nbsd-tdep.c: Likewise.
2529 * nios2-linux-tdep.c: Likewise.
2530 * nto-procfs.c: Likewise.
2531 * nto-tdep.c: Likewise.
2532 * objc-lang.c: Likewise.
2533 * objfiles.c: Likewise.
2534 * opencl-lang.c: Likewise.
2535 * osabi.c: Likewise.
2536 * osdata.c: Likewise.
2537 * p-exp.y: Likewise.
2538 * p-lang.c: Likewise.
2539 * p-typeprint.c: Likewise.
2540 * parse.c: Likewise.
2541 * posix-hdep.c: Likewise.
2542 * ppc-linux-nat.c: Likewise.
2543 * ppc-sysv-tdep.c: Likewise.
2544 * ppcfbsd-tdep.c: Likewise.
2545 * ppcnbsd-tdep.c: Likewise.
2546 * ppcobsd-tdep.c: Likewise.
2547 * printcmd.c: Likewise.
2548 * procfs.c: Likewise.
2549 * prologue-value.c: Likewise.
2550 * python/py-auto-load.c: Likewise.
2551 * python/py-gdb-readline.c: Likewise.
2552 * ravenscar-thread.c: Likewise.
2553 * regcache.c: Likewise.
2554 * registry.c: Likewise.
2555 * remote-fileio.c: Likewise.
2556 * remote-m32r-sdi.c: Likewise.
2557 * remote-mips.c: Likewise.
2558 * remote-notif.c: Likewise.
2559 * remote-sim.c: Likewise.
2560 * remote.c: Likewise.
2561 * reverse.c: Likewise.
2562 * rs6000-aix-tdep.c: Likewise.
2563 * ser-base.c: Likewise.
2564 * ser-go32.c: Likewise.
2565 * ser-mingw.c: Likewise.
2566 * ser-pipe.c: Likewise.
2567 * ser-tcp.c: Likewise.
2568 * ser-unix.c: Likewise.
2569 * serial.c: Likewise.
2570 * sh-tdep.c: Likewise.
2571 * sh64-tdep.c: Likewise.
2572 * shnbsd-tdep.c: Likewise.
2573 * skip.c: Likewise.
2574 * sol-thread.c: Likewise.
2575 * solib-dsbt.c: Likewise.
2576 * solib-frv.c: Likewise.
2577 * solib-osf.c: Likewise.
2578 * solib-som.c: Likewise.
2579 * solib-spu.c: Likewise.
2580 * solib-target.c: Likewise.
2581 * solib.c: Likewise.
2582 * somread.c: Likewise.
2583 * source.c: Likewise.
2584 * sparc-nat.c: Likewise.
2585 * sparc-sol2-tdep.c: Likewise.
2586 * sparc-tdep.c: Likewise.
2587 * sparc64-tdep.c: Likewise.
2588 * sparc64fbsd-tdep.c: Likewise.
2589 * sparc64nbsd-tdep.c: Likewise.
2590 * sparcnbsd-tdep.c: Likewise.
2591 * spu-linux-nat.c: Likewise.
2592 * spu-multiarch.c: Likewise.
2593 * spu-tdep.c: Likewise.
2594 * stabsread.c: Likewise.
2595 * stack.c: Likewise.
2596 * std-regs.c: Likewise.
2597 * symfile.c: Likewise.
2598 * symmisc.c: Likewise.
2599 * symtab.c: Likewise.
2600 * target.c: Likewise.
2601 * thread.c: Likewise.
2602 * tilegx-linux-nat.c: Likewise.
2603 * tilegx-tdep.c: Likewise.
2604 * top.c: Likewise.
2605 * tracepoint.c: Likewise.
2606 * tui/tui-command.c: Likewise.
2607 * tui/tui-data.c: Likewise.
2608 * tui/tui-disasm.c: Likewise.
2609 * tui/tui-file.c: Likewise.
2610 * tui/tui-layout.c: Likewise.
2611 * tui/tui-out.c: Likewise.
2612 * tui/tui-regs.c: Likewise.
2613 * tui/tui-source.c: Likewise.
2614 * tui/tui-stack.c: Likewise.
2615 * tui/tui-win.c: Likewise.
2616 * tui/tui-windata.c: Likewise.
2617 * tui/tui-winsource.c: Likewise.
2618 * typeprint.c: Likewise.
2619 * ui-file.c: Likewise.
2620 * ui-out.c: Likewise.
2621 * user-regs.c: Likewise.
2622 * utils.c: Likewise.
2623 * v850-tdep.c: Likewise.
2624 * valarith.c: Likewise.
2625 * valops.c: Likewise.
2626 * valprint.c: Likewise.
2627 * value.c: Likewise.
2628 * varobj.c: Likewise.
2629 * vax-tdep.c: Likewise.
2630 * vaxnbsd-tdep.c: Likewise.
2631 * vaxobsd-tdep.c: Likewise.
2632 * windows-nat.c: Likewise.
2633 * xcoffread.c: Likewise.
2634 * xml-support.c: Likewise.
2635 * xstormy16-tdep.c: Likewise.
2636 * xtensa-linux-nat.c: Likewise.
2637
dccbb609
GB
26382014-08-07 Gary Benson <gbenson@redhat.com>
2639
2640 * common/common-defs.h: Include gdb_assert.h.
2641 * aarch64-tdep.c: Do not include gdb_assert.h.
2642 * addrmap.c: Likewise.
2643 * aix-thread.c: Likewise.
2644 * alpha-linux-tdep.c: Likewise.
2645 * alpha-mdebug-tdep.c: Likewise.
2646 * alphanbsd-tdep.c: Likewise.
2647 * amd64-nat.c: Likewise.
2648 * amd64-tdep.c: Likewise.
2649 * amd64bsd-nat.c: Likewise.
2650 * amd64fbsd-nat.c: Likewise.
2651 * amd64fbsd-tdep.c: Likewise.
2652 * amd64nbsd-nat.c: Likewise.
2653 * amd64nbsd-tdep.c: Likewise.
2654 * amd64obsd-nat.c: Likewise.
2655 * amd64obsd-tdep.c: Likewise.
2656 * arch-utils.c: Likewise.
2657 * arm-tdep.c: Likewise.
2658 * armbsd-tdep.c: Likewise.
2659 * auxv.c: Likewise.
2660 * bcache.c: Likewise.
2661 * bfin-tdep.c: Likewise.
2662 * blockframe.c: Likewise.
2663 * breakpoint.c: Likewise.
2664 * bsd-kvm.c: Likewise.
2665 * bsd-uthread.c: Likewise.
2666 * buildsym.c: Likewise.
2667 * c-exp.y: Likewise.
2668 * c-lang.c: Likewise.
2669 * charset.c: Likewise.
2670 * cleanups.c: Likewise.
2671 * cli-out.c: Likewise.
2672 * cli/cli-decode.c: Likewise.
2673 * cli/cli-dump.c: Likewise.
2674 * cli/cli-logging.c: Likewise.
2675 * cli/cli-script.c: Likewise.
2676 * cli/cli-utils.c: Likewise.
2677 * coffread.c: Likewise.
2678 * common/common-utils.c: Likewise.
2679 * common/queue.h: Likewise.
2680 * common/signals.c: Likewise.
2681 * common/vec.h: Likewise.
2682 * complaints.c: Likewise.
2683 * completer.c: Likewise.
2684 * corelow.c: Likewise.
2685 * cp-abi.c: Likewise.
2686 * cp-name-parser.y: Likewise.
2687 * cp-namespace.c: Likewise.
2688 * cp-support.c: Likewise.
2689 * cris-tdep.c: Likewise.
2690 * dbxread.c: Likewise.
2691 * dictionary.c: Likewise.
2692 * doublest.c: Likewise.
2693 * dsrec.c: Likewise.
2694 * dummy-frame.c: Likewise.
2695 * dwarf2-frame-tailcall.c: Likewise.
2696 * dwarf2-frame.c: Likewise.
2697 * dwarf2expr.c: Likewise.
2698 * dwarf2loc.c: Likewise.
2699 * dwarf2read.c: Likewise.
2700 * eval.c: Likewise.
2701 * event-loop.c: Likewise.
2702 * exceptions.c: Likewise.
2703 * expprint.c: Likewise.
2704 * f-valprint.c: Likewise.
2705 * fbsd-nat.c: Likewise.
2706 * findvar.c: Likewise.
2707 * frame-unwind.c: Likewise.
2708 * frame.c: Likewise.
2709 * frv-tdep.c: Likewise.
2710 * gcore.c: Likewise.
2711 * gdb-dlfcn.c: Likewise.
2712 * gdb_bfd.c: Likewise.
2713 * gdbarch.c: Likewise.
2714 * gdbarch.sh: Likewise.
2715 * gdbtypes.c: Likewise.
2716 * gnu-nat.c: Likewise.
2717 * gnu-v3-abi.c: Likewise.
2718 * go-lang.c: Likewise.
2719 * guile/scm-exception.c: Likewise.
2720 * guile/scm-gsmob.c: Likewise.
2721 * guile/scm-lazy-string.c: Likewise.
2722 * guile/scm-math.c: Likewise.
2723 * guile/scm-pretty-print.c: Likewise.
2724 * guile/scm-safe-call.c: Likewise.
2725 * guile/scm-utils.c: Likewise.
2726 * guile/scm-value.c: Likewise.
2727 * h8300-tdep.c: Likewise.
2728 * hppa-hpux-nat.c: Likewise.
2729 * hppa-tdep.c: Likewise.
2730 * hppanbsd-tdep.c: Likewise.
2731 * hppaobsd-tdep.c: Likewise.
2732 * i386-darwin-nat.c: Likewise.
2733 * i386-darwin-tdep.c: Likewise.
2734 * i386-nto-tdep.c: Likewise.
2735 * i386-tdep.c: Likewise.
2736 * i386bsd-nat.c: Likewise.
2737 * i386fbsd-tdep.c: Likewise.
2738 * i386gnu-nat.c: Likewise.
2739 * i386nbsd-tdep.c: Likewise.
2740 * i386obsd-tdep.c: Likewise.
2741 * i387-tdep.c: Likewise.
2742 * ia64-libunwind-tdep.c: Likewise.
2743 * ia64-tdep.c: Likewise.
2744 * inf-ptrace.c: Likewise.
2745 * inf-ttrace.c: Likewise.
2746 * infcall.c: Likewise.
2747 * infcmd.c: Likewise.
2748 * infrun.c: Likewise.
2749 * inline-frame.c: Likewise.
2750 * interps.c: Likewise.
2751 * jv-lang.c: Likewise.
2752 * jv-typeprint.c: Likewise.
2753 * linux-fork.c: Likewise.
2754 * linux-nat.c: Likewise.
2755 * linux-thread-db.c: Likewise.
2756 * m32c-tdep.c: Likewise.
2757 * m32r-linux-nat.c: Likewise.
2758 * m32r-tdep.c: Likewise.
2759 * m68k-tdep.c: Likewise.
2760 * m68kbsd-nat.c: Likewise.
2761 * m68kbsd-tdep.c: Likewise.
2762 * m88k-tdep.c: Likewise.
2763 * machoread.c: Likewise.
2764 * macroexp.c: Likewise.
2765 * macrotab.c: Likewise.
2766 * maint.c: Likewise.
2767 * mdebugread.c: Likewise.
2768 * memory-map.c: Likewise.
2769 * mep-tdep.c: Likewise.
2770 * mi/mi-common.c: Likewise.
2771 * microblaze-tdep.c: Likewise.
2772 * mingw-hdep.c: Likewise.
2773 * mips-linux-nat.c: Likewise.
2774 * mips-linux-tdep.c: Likewise.
2775 * mips-tdep.c: Likewise.
2776 * mips64obsd-tdep.c: Likewise.
2777 * mipsnbsd-tdep.c: Likewise.
2778 * mn10300-linux-tdep.c: Likewise.
2779 * mn10300-tdep.c: Likewise.
2780 * moxie-tdep.c: Likewise.
2781 * mt-tdep.c: Likewise.
2782 * nat/linux-btrace.c: Likewise.
2783 * nat/linux-osdata.c: Likewise.
2784 * nat/linux-ptrace.c: Likewise.
2785 * nat/mips-linux-watch.c: Likewise.
2786 * nios2-linux-tdep.c: Likewise.
2787 * nios2-tdep.c: Likewise.
2788 * objc-lang.c: Likewise.
2789 * objfiles.c: Likewise.
2790 * obsd-nat.c: Likewise.
2791 * opencl-lang.c: Likewise.
2792 * osabi.c: Likewise.
2793 * parse.c: Likewise.
2794 * ppc-linux-nat.c: Likewise.
2795 * ppc-sysv-tdep.c: Likewise.
2796 * ppcfbsd-nat.c: Likewise.
2797 * ppcfbsd-tdep.c: Likewise.
2798 * ppcnbsd-nat.c: Likewise.
2799 * ppcnbsd-tdep.c: Likewise.
2800 * ppcobsd-nat.c: Likewise.
2801 * ppcobsd-tdep.c: Likewise.
2802 * printcmd.c: Likewise.
2803 * procfs.c: Likewise.
2804 * prologue-value.c: Likewise.
2805 * psymtab.c: Likewise.
2806 * python/py-lazy-string.c: Likewise.
2807 * python/py-value.c: Likewise.
2808 * regcache.c: Likewise.
2809 * reggroups.c: Likewise.
2810 * registry.c: Likewise.
2811 * remote-sim.c: Likewise.
2812 * remote.c: Likewise.
2813 * rs6000-aix-tdep.c: Likewise.
2814 * rs6000-tdep.c: Likewise.
2815 * s390-linux-tdep.c: Likewise.
2816 * score-tdep.c: Likewise.
2817 * ser-base.c: Likewise.
2818 * ser-mingw.c: Likewise.
2819 * sh-tdep.c: Likewise.
2820 * sh64-tdep.c: Likewise.
2821 * solib-darwin.c: Likewise.
2822 * solib-spu.c: Likewise.
2823 * solib-svr4.c: Likewise.
2824 * source.c: Likewise.
2825 * sparc-nat.c: Likewise.
2826 * sparc-sol2-tdep.c: Likewise.
2827 * sparc-tdep.c: Likewise.
2828 * sparc64-sol2-tdep.c: Likewise.
2829 * sparc64-tdep.c: Likewise.
2830 * sparc64fbsd-tdep.c: Likewise.
2831 * sparc64nbsd-tdep.c: Likewise.
2832 * sparc64obsd-tdep.c: Likewise.
2833 * sparcnbsd-tdep.c: Likewise.
2834 * sparcobsd-tdep.c: Likewise.
2835 * spu-multiarch.c: Likewise.
2836 * spu-tdep.c: Likewise.
2837 * stabsread.c: Likewise.
2838 * stack.c: Likewise.
2839 * symfile.c: Likewise.
2840 * symtab.c: Likewise.
2841 * target-descriptions.c: Likewise.
2842 * target-memory.c: Likewise.
2843 * target.c: Likewise.
2844 * tic6x-linux-tdep.c: Likewise.
2845 * tic6x-tdep.c: Likewise.
2846 * tilegx-linux-nat.c: Likewise.
2847 * tilegx-tdep.c: Likewise.
2848 * top.c: Likewise.
2849 * tramp-frame.c: Likewise.
2850 * tui/tui-out.c: Likewise.
2851 * tui/tui-winsource.c: Likewise.
2852 * ui-out.c: Likewise.
2853 * user-regs.c: Likewise.
2854 * utils.c: Likewise.
2855 * v850-tdep.c: Likewise.
2856 * valops.c: Likewise.
2857 * value.c: Likewise.
2858 * varobj.c: Likewise.
2859 * vax-nat.c: Likewise.
2860 * xml-syscall.c: Likewise.
2861 * xml-tdesc.c: Likewise.
2862 * xstormy16-tdep.c: Likewise.
2863 * xtensa-linux-nat.c: Likewise.
2864 * xtensa-tdep.c: Likewise.
2865
e76df0d0
GB
28662014-08-07 Gary Benson <gbenson@redhat.com>
2867
2868 * common/common-defs.h: Include common-utils.h.
2869 * defs.h: Do not include common-utils.h.
2870 * common/gdb_assert.h: Likewise.
2871 * darwin-nat.h: Likewise.
2872 * nat/linux-btrace.c: Likewise.
2873 * target/waitstatus.h: Likewise.
2874
4cb9c816
GB
28752014-08-07 Gary Benson <gbenson@redhat.com>
2876
2877 * common/common-defs.h: Include ptid.h.
2878 * defs.h: Do not include ptid.h.
2879 * inferior.h: Likewise.
2880 * infrun.h: Likewise.
2881 * nat/linux-btrace.h: Likewise.
2882 * nat/linux-osdata.h: Likewise.
2883 * target/waitstatus.h: Likewise.
2884
3995eeee
GB
28852014-08-07 Gary Benson <gbenson@redhat.com>
2886
2887 * common/common-defs.h: Include gdb_locale.h.
2888 * defs.h: Do not include gdb_locale.h.
2889
cb9f1a9b
GB
28902014-08-07 Gary Benson <gbenson@redhat.com>
2891
2892 * common/common-defs.h: Include gdb/signals.h.
2893 * defs.h: Do not include gdb/signals.h.
2894
a5fceff8
GB
28952014-08-07 Gary Benson <gbenson@redhat.com>
2896
2897 * common/common-defs.h: Include pathmax.h.
2898 * defs.h: Do not include pathmax.h.
2899
b9391142
GB
29002014-08-07 Gary Benson <gbenson@redhat.com>
2901
2902 * common/common-defs.h: Include libiberty.h.
2903 * defs.h: Do not include libiberty.h.
2904 * common/queue.h: Likewise.
2905 * cp-name-parser.y: Likewise.
2906 * mi/mi-cmd-catch.c: Likewise.
2907 * python/python.c: Likewise.
2908
0e443c87
GB
29092014-08-07 Gary Benson <gbenson@redhat.com>
2910
2911 * common/common-defs.h: Include ansidecl.h.
2912 * defs.h: Do not include ansidecl.h.
2913 * common/buffer.h: Likewise.
2914 * common/common-utils.h: Likewise.
2915
8ebb3f56
GB
29162014-08-07 Gary Benson <gbenson@redhat.com>
2917
2918 * common/common-defs.h: Include stddef.h.
2919 * defs.h: Do not include stddef.h.
2920 * common/common-utils.h: Likewise.
2921 * amd64fbsd-nat.c: Likewise.
2922 * bcache.c: Likewise.
2923 * charset.c: Likewise.
2924 * common/buffer.h: Likewise.
2925 * common/vec.h: Likewise.
2926 * i386bsd-nat.c: Likewise.
2927 * nat/linux-btrace.h: Likewise.
2928 * ppcfbsd-nat.c: Likewise.
2929 * ppcnbsd-tdep.h: Likewise.
2930 * ppcobsd-nat.c: Likewise.
2931 * ppcobsd-tdep.h: Likewise.
2932 * python/py-gdb-readline.c: Likewise.
2933
8980bdf6
GB
29342014-08-07 Gary Benson <gbenson@redhat.com>
2935
2936 * common/common-defs.h: Include stdarg.h.
2937 * defs.h: Do not include stdarg.h.
2938 * ada-lang.c: Likewise.
2939 * common/common-utils.h: Likewise.
2940 * guile/scm-string.c: Likewise.
2941 * guile/scm-utils.c: Likewise.
2942 * m32c-tdep.c: Likewise.
2943
d7096f71
GB
29442014-08-07 Gary Benson <gbenson@redhat.com>
2945
2946 * common/common-defs.h: Include stdlib.h.
2947 * defs.h: Do not include stdlib.h.
2948 * addrmap.c: Likewise.
2949 * bcache.c: Likewise.
2950 * common/buffer.c: Likewise.
2951 * common/common-utils.c: Likewise.
2952 * cp-name-parser.y: Likewise.
2953 * go32-nat.c: Likewise.
2954 * mn10300-linux-tdep.c: Likewise.
2955 * nat/linux-osdata.c: Likewise.
2956 * tui/tui.c: Likewise.
2957 * windows-nat.c: Likewise.
2958
d02f550d
GB
29592014-08-07 Gary Benson <gbenson@redhat.com>
2960
2961 * common/common-defs.h: Include stdio.h.
2962 * defs.h: Do not include stdio.h.
2963 * ada-lang.c: Likewise.
2964 * common/buffer.c: Likewise.
2965 * common/common-utils.c: Likewise.
2966 * cp-name-parser.y: Likewise.
2967 * gnu-nat.c: Likewise.
2968 * go32-nat.c: Likewise.
2969 * i386gnu-nat.c: Likewise.
2970 * proc-api.c: Likewise.
2971 * proc-events.c: Likewise.
2972 * proc-flags.c: Likewise.
2973 * proc-why.c: Likewise.
2974 * python/python-internal.h: Likewise.
2975 * target-memory.c: Likewise.
2976 * tui/tui-io.c: Likewise.
2977 * tui/tui.c: Likewise.
2978
b6d7a4bf
SM
29792014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2980
2981 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2982 (scan_dyntag_auxv): Same.
2983
af19829b
YQ
29842014-08-06 Yao Qi <yao@codesourcery.com>
2985
2986 * amd64-linux-nat.c: Remove duplicated include
2987 "x86-linux-nat.h".
2988 * i386-linux-nat.c: Likewise.
2989
8e07a239
YQ
29902014-08-06 Yao Qi <yao@codesourcery.com>
2991
2992 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2993 operand" with "Special opcode" in comments.
2994
7bfe8241
GB
29952014-08-05 Gary Benson <gbenson@redhat.com>
2996
2997 * interps.c (initialize_interps): Remove prototype.
2998 (interpreter_initialized): Remove static global.
2999 (interp_add): Do not call initialize_interps.
3000 (initialize_interps): Remove function.
3001
d6c95504
GB
30022014-08-05 Gary Benson <gbenson@redhat.com>
3003
3004 * utils.c (vwarning): Remove spurious va_end.
3005
241fd515
AM
30062014-08-05 Alan Modra <amodra@gmail.com>
3007
3008 * charset.c (convert_between_encodings): Cast result of obstack_base.
3009 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3010 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3011 (read_unwind_info): Use size_t for some locals.
3012 * jit.c (finalize_symtab): Likewise.
3013 * utils.c (hashtab_obstack_allocate): Likewise.
3014 * symmisc.c (print_objfile_statistics): Update format strings.
3015
dc304a94
JK
30162014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3017
3018 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3019 (Changes in GDB 7.8): ... here.
3020
3cecbbbe
TT
30212014-08-04 Tom Tromey <tromey@redhat.com>
3022
3023 * target.c (set_targetdebug): New function.
3024 (initialize_targets): Pass set_targetdebug when creating "set
3025 debug target".
3026
6908c509
JB
30272014-08-01 Joel Brobecker <brobecker@adacore.com>
3028
3029 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3030 if detecting a variable-sized field that is not the last field.
3031 Fix struct type length computation.
3032
53e8f97d
JB
30332014-08-01 Joel Brobecker <brobecker@adacore.com>
3034
3035 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3036 Add debug trace.
3037
e068c55d
JB
30382014-08-01 Joel Brobecker <brobecker@adacore.com>
3039
3040 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3041 Remove "+ 8" offset in computation of CHAIN_VMA.
3042
4d4ca2a1
DE
30432014-07-31 Doug Evans <dje@google.com>
3044
3045 * inflow.c (child_terminal_inferior): Add comment.
3046 (child_terminal_ours_for_output): Add comment.
3047 (child_terminal_ours): Add comment.
3048 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3049 (linux_nat_terminal_ours): Add comment.
3050
462f517e
GB
30512014-07-31 Gary Benson <gbenson@redhat.com>
3052
3053 * common/btrace-common.h: Do not include defs.h or server.h.
3054 * nat/mips-linux-watch.h: Likewise.
3055 * gdb-dlfcn.h: Do not include defs.h.
3056 * tracefile.h: Likewise.
3057
74228e77
RM
30582014-07-30 Roland McGrath <mcgrathr@google.com>
3059
3060 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3061
014f9477
TT
30622014-07-30 Tom Tromey <tromey@redhat.com>
3063
3064 * bsd-kvm.c (bsd_kvm_open): Constify.
3065 * corelow.c (core_open): Constify.
3066 * ctf.c (ctf_open): Constify.
3067 * dbug-rom.c (dbug_open): Constify.
3068 * exec.c (exec_open): Constify.
3069 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3070 * microblaze-rom.c (picobug_open): Constify.
3071 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3072 Constify.
3073 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3074 * record-btrace.c (record_btrace_open): Constify.
3075 * record-full.c (record_full_core_open_1, record_full_open_1)
3076 (record_full_open): Constify.
3077 * remote-m32r-sdi.c (m32r_open): Constify.
3078 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3079 (rockhopper_open, lsi_open): Constify.
3080 * remote-sim.c (gdbsim_open): Constify.
3081 * remote.c (remote_open, extended_remote_open, remote_open_1):
3082 Constify.
3083 * target.h (struct target_ops) <to_open>: Make "arg" const.
3084 * tracefile-tfile.c (tfile_open): Constify.
3085
e799154c
TT
30862014-07-30 Tom Tromey <tromey@redhat.com>
3087
3088 * breakpoint.c (map_breakpoint_numbers): Update.
3089 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3090 (get_number_const): New function.
3091 (get_number): Rewrite using get_number_const.
3092 (init_number_or_range): Make "string" const.
3093 (number_is_in_list): Make "list" const.
3094 * cli/cli-utils.h (get_number_const): Declare.
3095 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3096 (init_number_or_range, number_is_in_list): Update.
3097 * printcmd.c (map_display_numbers): Update.
3098 * value.c (value_from_history_ref): Constify.
3099 * value.h (value_from_history_ref): Update.
3100
5f08566b
TT
31012014-07-30 Tom Tromey <tromey@redhat.com>
3102
3103 * corefile.c (hook_type, call_extra_exec_file_hooks)
3104 (specify_exec_file_hook): Constify.
3105 * exec.c (exec_file_attach): Make "filename" const.
3106 * gdbcore.h (deprecated_exec_file_display_hook)
3107 (specify_exec_file_hook, exec_file_attach): Constify.
3108 * main.c (captured_main): Use catch_command_errors_const.
3109
8981c758
TT
31102014-07-30 Tom Tromey <tromey@redhat.com>
3111
3112 * target.c (open_target): New function.
3113 (add_target_with_completer, add_deprecated_target_alias): Use
3114 set_cmd_sfunc, set_cmd_context.
3115 (debug_to_open): Remove.
3116 (setup_target_debug): Update.
3117
a1c7835a
YQ
31182014-07-30 Yao Qi <yao@codesourcery.com>
3119
3120 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3121 comments.
3122 * parse.c (exp_iterate): Update comments.
3123
976411d6
GB
31242014-07-30 Gary Benson <gbenson@redhat.com>
3125
3126 * common/common-defs.h: New file.
3127 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3128 * defs.h: Include common-defs.h.
3129 Do not include config.h or build-gnulib/config.h.
3130
5d4848a4
GB
31312014-07-30 Gary Benson <gbenson@redhat.com>
3132
3133 * common/common-utils.h: Do not include config.h.
3134 * nat/linux-btrace.h: Likewise.
3135
d41f6d8e
GB
31362014-07-30 Gary Benson <gbenson@redhat.com>
3137
3138 * btrace.c: Include defs.h.
3139 * common/ptid.c: Include defs.h or server.h as appropriate.
3140 * nat/mips-linux-watch.c: Likewise.
3141
84202f9c
TT
31422014-07-29 Tom Tromey <tromey@redhat.com>
3143
3144 * target.c (target_is_pushed): Simplify.
3145
2530441c
JB
31462014-07-29 Joel Brobecker <brobecker@adacore.com>
3147
3148 GDB 7.8 released.
3149
7e09a223
YQ
31502014-07-29 Yao Qi <yao@codesourcery.com>
3151
3152 PR gdb/17206
3153 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3154
7ebdbe92
DE
31552014-07-28 Doug Evans <xdje42@gmail.com>
3156
3157 PR guile/17203
3158 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3159 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3160 parameters.
3161
f347ffc9
WN
31622014-07-28 Will Newton <will.newton@linaro.org>
3163
3164 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3165 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3166 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3167 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3168 (THUMB2_EABI_SYSCALL): Likewise.
3169 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3170 struct tramp_frame.
3171 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3172 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3173
37c5f1f7
DE
31742014-07-27 Doug Evans <xdje42@gmail.com>
3175
3176 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3177
0c3abbc7
DE
31782014-07-27 Doug Evans <xdje42@gmail.com>
3179
3180 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3181
e76c5d17
DE
31822014-07-26 Ludovic Courtès <ludo@gnu.org>
3183 Doug Evans <xdje42@gmail.com>
3184
3185 PR guile/17146
3186 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3187 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3188 * configure.ac: Try to use guild to compile an scm file, if it fails
3189 then disable guile support.
3190 * configure: Regenerate.
3191 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3192 GUILE_FILE_LIST.
3193 (GUILE_COMPILED_FILES): New variable.
3194 (GUILE_FILES) Update.
3195 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3196 (stamp-guile): Compile scm files.
3197 * guile/guile.c (boot_guile_support): New function.
3198 (standard_throw_args_p): New function.
3199 (print_standard_throw_error, print_throw_error): New functions.
3200 (handle_boot_error): New function.
3201 (initialize_scheme_side): Rewrite to call boot_guile_support.
3202 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3203 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3204
186fcde0
DE
32052014-07-26 Ludovic Courtès <ludo@gnu.org>
3206 Doug Evans <xdje42@gmail.com>
3207
3208 PR guile/17146
3209 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3210 * guile/lib/gdb/support.scm: New file.
3211 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3212 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3213 All uses updated.
3214 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3215 All uses updated.
3216 (%assert-type): Ditto, and renamed to assert-type.
3217 (%exception-print-style): Delete.
3218
4df42755
DE
32192014-07-26 Doug Evans <xdje42@gmail.com>
3220
3221 PR build/17105
3222 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3223 * configure: Regenerate.
3224 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3225 PYTHON_FILES.
3226 (PYTHON_FILES): New variable.
3227 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3228 (GUILE_FILES): New variable.
3229 (stamp-python, install-python, uninstall-python): Handle empty
3230 file list.
3231 (stamp-guile, install-guile, uninstall-guile): Ditto.
3232
ee7333ae
DE
32332014-07-26 Doug Evans <xdje42@gmail.com>
3234
3235 PR guile/17177
3236 * guile/lib/gdb.scm (pretty-printers): Export.
3237 (set-pretty-printers!): Export.
3238 * guile/lib/gdb/printing.scm (gdb module): Update.
3239 (prepend-pretty-printer!, append-pretty-printer!): Update.
3240 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3241 (pretty_printer_list_var): Delete.
3242 (pretty_printer_list): New static global.
3243 (gdbscm_pretty_printers): New function.
3244 (gdbscm_set_pretty_printers_x): New function.
3245 (ppscm_find_pretty_printer_from_gdb): Update.
3246 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3247 (gdbscm_initialize_pretty_printers): Update.
3248
74edf516
DE
32492014-07-26 Doug Evans <xdje42@gmail.com>
3250
3251 PR 17185
3252 * configure.ac: Add check for header gc/gc.h.
3253 Add check for function setenv.
3254 * configure: Regenerate.
3255 * config.in: Regenerate.
3256 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3257
d54398a7
MR
32582014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3259
3260 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3261 variation in gdbarch matching.
3262
ab16fce8
TT
32632014-07-25 Tom Tromey <tromey@redhat.com>
3264
3265 * exec.c (using_exec_ops): Remove.
3266 (exec_close_1): Update. Remove extraneous block, reindent.
3267 (add_target_sections): Use target_is_pushed.
3268
88056fbb
PA
32692014-07-25 Pedro Alves <palves@redhat.com>
3270
3271 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3272 * monitor.c (monitor_create_inferior): Likewise.
3273 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3274 * remote-sim.c (gdbsim_create_inferior): Likewise.
3275 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3276 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3277 * windows-nat.c (do_initial_windows_stuff): Likewise.
3278
70509625
PA
32792014-07-25 Pedro Alves <palves@redhat.com>
3280
3281 * NEWS: Mention signal passing and "signal" command changes.
3282 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3283 comment.
3284 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3285 call.
3286 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3287 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3288 (jump_command): Adjust clear_proceed_status call.
3289 (signal_command): Warn if other thread that are resumed have
3290 signals that will be delivered. Adjust clear_proceed_status call.
3291 (until_next_command, finish_command)
3292 (proceed_after_attach_callback, attach_command_post_wait)
3293 (attach_command): Adjust clear_proceed_status call.
3294 * infrun.c (proceed_after_vfork_done): Likewise.
3295 (proceed_after_attach_callback): Adjust comment.
3296 (clear_proceed_status_thread): Clear stop_signal if not in pass
3297 state.
3298 (clear_proceed_status_callback): Delete.
3299 (clear_proceed_status): New 'step' parameter. Only clear the
3300 proceed status of threads the command being prepared is about to
3301 resume.
3302 (proceed): If passed in an explicit signal, override stop_signal
3303 with it. Don't pass the last stop signal to the thread we're
3304 resuming.
3305 (init_wait_for_inferior): Adjust clear_proceed_status call.
3306 (switch_back_to_stepped_thread): Clear the signal if it should not
3307 be passed.
3308 * infrun.h (clear_proceed_status): New 'step' parameter.
3309 (user_visible_resume_ptid): Add comment.
3310 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3311 signal is in pass state.
3312 * remote.c (append_pending_thread_resumptions): Likewise.
3313 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3314
d8be2939
TT
33152014-07-25 Tom Tromey <tromey@redhat.com>
3316
3317 * target.h (target_stopped_data_address)
3318 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3319 parentheses.
3320
7d0d9d2b
PL
33212014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3322
3323 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3324 comments.
3325 (avr_pointer_to_address): Likewise.
3326
e9e7f724
TT
33272014-07-24 Tom Tromey <tromey@redhat.com>
3328
3329 * monitor.c (compile_pattern): Update.
3330 * target.h (struct target_ops) <to_shortname, to_longname,
3331 to_doc>: Now const.
3332
1947513d
TT
33332014-07-24 Tom Tromey <tromey@redhat.com>
3334
3335 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3336 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3337 (add_info_alias, add_com): Make "doc" const.
3338 (print_doc_line): Make "str" const.
3339 (delete_cmd): Update.
3340 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3341 (print_doc_line): Update.
3342 * cli/cli-script.c (document_command): Update.
3343 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3344 (add_com, add_info, add_info_alias): Update.
3345 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3346 * python/py-cmd.c (cmdpy_destroyer): Update.
3347
64e61d29
TT
33482014-07-24 Tom Tromey <tromey@redhat.com>
3349
3350 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3351 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3352 (help_cmd_list): Constify.
3353 (lookup_cmd): Update.
3354 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3355 const.
3356 (help_cmd_list, apropos_cmd): Update.
3357 * cli/cli-script.c (show_user): Update.
3358 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3359 * cli/cli-setshow.h (cmd_show_list): Update.
3360 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3361 (cmd_show_list): Update.
3362 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3363 * python/py-cmd.c (cmdpy_destroyer): Update.
3364
429e55ea
TT
33652014-07-24 Tom Tromey <tromey@redhat.com>
3366
3367 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3368 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3369 const.
3370 * command.h (deprecate_cmd): Update.
3371 * maint.c (maintenance_do_deprecate): Add casts.
3372
64669f3b
TT
33732014-07-24 Tom Tromey <tromey@redhat.com>
3374
3375 * cli/cli-decode.c (help_cmd): Make parameter "const".
3376 * cli/cli-decode.h (help_cmd): Update.
3377
d3d3328b
TT
33782014-07-24 Tom Tromey <tromey@redhat.com>
3379
3380 * stack.c (up_silently_base, down_silently_base): Make argument
3381 const.
3382
414842dc
TT
33832014-07-24 Tom Tromey <tromey@redhat.com>
3384
3385 * solib.c (solib_add): Make "pattern" const.
3386 * solib.h (solib_add): Update.
3387
baa336ce
TT
33882014-07-24 Tom Tromey <tromey@redhat.com>
3389
3390 * remote.c (remote_serial_open, print_packet, putpkt)
3391 (putpkt_binary): Constify.
3392 * remote.h (putpkt): Update.
3393
5a19e2d0
TT
33942014-07-24 Tom Tromey <tromey@redhat.com>
3395
3396 * monitor.c (monitor_open): Make "args" const.
3397 * monitor.h (monitor_open): Update.
3398
fc4baa5e
TT
33992014-07-24 Tom Tromey <tromey@redhat.com>
3400
3401 * maint.c (match_bfd_flags): Make "string" const.
3402 (print_bfd_section_info): Remove casts.
3403 (print_objfile_section_info): Make "string" const.
3404
0d5f0dbe
TT
34052014-07-24 Tom Tromey <tromey@redhat.com>
3406
3407 * inf-child.c (inf_child_open_target): Make "arg" const.
3408 * inf-child.h (inf_child_open_target): Update.
3409
41c77899
TT
34102014-07-24 Tom Tromey <tromey@redhat.com>
3411
3412 * environ.c (unset_in_environ): Make "var" const.
3413 * environ.h (unset_in_environ): Update.
3414
93db0d79
TT
34152014-07-24 Tom Tromey <tromey@redhat.com>
3416
3417 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3418 Make "cmd" const.
3419 (scan_filename_with_cleanup): Likewise.
3420 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3421 Make arguments const.
3422 (restore_command): Update.
3423
36d6eb95
PA
34242014-07-24 Pedro Alves <palves@redhat.com>
3425
3426 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3427
8009206a
TT
34282014-07-24 Tom Tromey <tromey@redhat.com>
3429 Gary Benson <gbenson@redhat.com>
3430
3431 * nat/linux-ptrace.c (additional_flags): New global.
3432 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3433 additional_flags; don't check GDBSERVER.
3434 (linux_ptrace_set_additional_flags): New function.
3435 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3436 Declare.
3437 * linux-nat.c (_initialize_linux_nat): Call
3438 linux_ptrace_set_additional_flags.
3439
a7068b60
TT
34402014-07-24 Tom Tromey <tromey@redhat.com>
3441
3442 * make-target-delegates (munge_type, write_debugmethod): New
3443 functions.
3444 (debug_names): New global.
3445 ($TARGET_DEBUG_PRINTER): New global.
3446 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3447 name.
3448 Write debug methods. Generate init_debug_target.
3449 * target-debug.h: New file.
3450 * target-delegates.c: Rebuild.
3451 * target.c: Include target-debug.h.
3452 (debug_target): Hoist definition.
3453 (target_kill, target_get_section_table, target_memory_map)
3454 (target_flash_erase, target_flash_done, target_detach)
3455 (target_disconnect, target_wait, target_resume)
3456 (target_pass_signals, target_program_signals, target_follow_fork)
3457 (target_mourn_inferior, target_search_memory)
3458 (target_thread_address_space, target_close)
3459 (target_find_new_threads, target_core_of_thread)
3460 (target_verify_memory, target_insert_mask_watchpoint)
3461 (target_remove_mask_watchpoint): Remove targetdebug code.
3462 (debug_to_post_attach, debug_to_prepare_to_store)
3463 (debug_to_files_info, debug_to_insert_breakpoint)
3464 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3465 (debug_to_region_ok_for_hw_watchpoint)
3466 (debug_to_can_accel_watchpoint_condition)
3467 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3468 (debug_to_watchpoint_addr_within_range)
3469 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3470 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3471 (debug_to_terminal_init, debug_to_terminal_inferior)
3472 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3473 (debug_to_terminal_save_ours, debug_to_terminal_info)
3474 (debug_to_load, debug_to_post_startup_inferior)
3475 (debug_to_insert_fork_catchpoint)
3476 (debug_to_remove_fork_catchpoint)
3477 (debug_to_insert_vfork_catchpoint)
3478 (debug_to_remove_vfork_catchpoint)
3479 (debug_to_insert_exec_catchpoint)
3480 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3481 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3482 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3483 (setup_target_debug): Call init_debug_target.
3484 * target.h (TARGET_DEBUG_PRINTER): New macro.
3485 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3486 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3487
2c51604d
GB
34882014-07-24 Gary Benson <gbenson@redhat.com>
3489
3490 * exceptions.h (throw_vfatal): Renamed to...
3491 (throw_vquit): New declaration.
3492 (throw_quit): Likewise.
3493 * exceptions.c (throw_vfatal): Renamed to...
3494 (throw_vquit): New function.
3495 (throw_quit): Likewise.
3496 (throw_error): Call throw_verror rather than throw_it.
3497 * utils.h (vfatal): Removed.
3498 (fatal): Likewise.
3499 * utils.c (vfatal): Removed.
3500 (fatal): Likewise.
3501 (internal_verror): Replaced call to fatal with call to throw_quit.
3502 (quit): Replaced calls to fatal with calls to throw_quit.
3503
34211963
ME
35042014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3505
3506 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3507 target_read_code.
3508
a52b4d3e
ME
35092014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3510
3511 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3512 less than zero in conditional expression.
3513
a8bdc56b
TT
35142014-07-23 Tom Tromey <tromey@redhat.com>
3515
3516 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3517 ($INTRO_PART): Don't match whitespace.
3518 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3519 argument matching.
3520 ($METHOD): Add $METHOD_TRAILER.
3521 (trim): Rewrite.
3522 (scan_target_h): New sub.
3523 Change main loop not to collect state.
3524 * target-delegates.c: Rebuild.
3525
91b52240
GB
35262014-07-23 Gary Benson <gbenson@redhat.com>
3527
3528 * cp-support.c (gdb_demangle): Fix build on systems without
3529 sigaltstack.
3530
45326f6f
JK
35312014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3532
3533 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3534 for reference entry value target data value.
3535
e214cf6c
JK
35362014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3537
3538 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3539 value_available_contents_eq.
3540
bddbbedd
PA
35412014-07-22 Pedro Alves <palves@redhat.com>
3542
3543 * value.c (allocate_optimized_out_value): Don't mark value as
3544 non-lazy.
3545
45c71484
JW
35462014-07-22 Jiong Wang <jiong.wang@arm.com>
3547
3548 * MAINTAINERS (Write After Approval): Update my email address.
3549
9597b22a
DE
35502014-07-20 Doug Evans <dje@google.com>
3551
3552 PR server/17147
3553 * remote.c (putpkt_binary): Add text to error message.
3554
91101fe5
YQ
35552014-07-20 Yao Qi <yao@codesourcery.com>
3556
3557 * eval.c: Remove "Chill" from comments.
3558 * gdbtypes.h: Likewise.
3559 * symtab.h: Likewise.
3560
c9402c95
YQ
35612014-07-20 Yao Qi <yao@codesourcery.com>
3562
3563 * std-operator.def: Update comments to TERNOP_SLICE.
3564
ae8fddda
YQ
35652014-07-20 Yao Qi <yao@codesourcery.com>
3566
3567 * std-operator.def: Remove BINOP_RANGE.
3568 * breakpoint.c (watchpoint_exp_is_const): Update.
3569 * expprint.c (dump_subexp_body_standard): Likewise.
3570 * eval.c (init_array_element): Remove dead code.
3571 (evaluate_subexp_standard): Likewise.
3572
9c816640
YQ
35732014-07-20 Yao Qi <yao@codesourcery.com>
3574
3575 * std-operator.def: Remove BINOP_IN.
3576 * breakpoint.c (watchpoint_exp_is_const): Update.
3577 * eval.c (evaluate_subexp_standard): Likewise.
3578 * expprint.c (dump_subexp_body_standard): Likewise.
3579
164224e9
ME
35802014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3581
3582 * microblaze-tdep.c (microblaze_register_names): Add
3583 the rshr and rslr register names.
3584 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3585 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3586 Use of tdesc_numbered_register. Use of
3587 microblaze_register_g_packet_guesses. Use of
3588 tdesc_use_registers. Use of set_gdbarch_register_type.
3589 (microblaze_register_g_packet_guesses): New.
3590 * microblaze-tdep.h (microblaze_reg_num): Add
3591 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3592 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3593 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3594 * features/microblaze-core.xml: New file.
3595 * features/microblaze-stack-protect.xml: New file.
3596 * features/microblaze-with-stack-protect.c: New file.
3597 * features/microblaze-with-stack-protect.xml: New file.
3598 * features/microblaze.xml: New file.
3599 * features/microblaze.c: New file.
3600 * features/Makefile (microblaze-with-stack-protect): Add
3601 microblaze-with-stack-protect microblaze and microblaze-expedite.
3602 * regformats/microblaze-with-stack-protect.dat: New file.
3603 * regformats/microblaze.dat: New file.
3604 * doc/gdb.texinfo (MicroBlaze Features): Added.
3605
e8b2341c
TT
36062014-07-18 Tom Tromey <tromey@redhat.com>
3607
3608 * exec.c (exec_ops): Now static.
3609 * exec.h (exec_ops): Don't declare.
3610
44e89118
TT
36112014-07-18 Tom Tromey <tromey@redhat.com>
3612
3613 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3614 to find_target_beneath.
3615 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3616 find_target_beneath.
3617 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3618
b0ed115f
TT
36192014-07-18 Tom Tromey <tromey@redhat.com>
3620
3621 PR gdb/17130:
3622 * utils.c (quit): Use target_supports_terminal_ours.
3623 * target.h (target_supports_terminal_ours): Declare.
3624 * target.c (target_supports_delete_record): Don't check
3625 to_delete_record against NULL.
3626 (target_supports_terminal_ours): New function.
3627
e75fdfca
TT
36282014-07-18 Tom Tromey <tromey@redhat.com>
3629
3630 PR gdb/17130:
3631 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3632 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3633 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3634 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3635 * windows-nat.c (windows_xfer_partial): Always delegate.
3636 * record-btrace.c (record_btrace_xfer_partial): Simplify
3637 delegation.
3638 (record_btrace_fetch_registers, record_btrace_store_registers)
3639 (record_btrace_prepare_to_store, record_btrace_resume)
3640 (record_btrace_wait, record_btrace_find_new_threads)
3641 (record_btrace_thread_alive): Likewise.
3642 * procfs.c (procfs_xfer_partial): Always delegate.
3643 * corelow.c (core_xfer_partial): Always delegate.
3644 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3645
83814951
TT
36462014-07-18 Tom Tromey <tromey@redhat.com>
3647
3648 * exec.c (exec_make_note_section): Move earlier.
3649
b8b8facf
DE
36502014-07-17 Doug Evans <dje@google.com>
3651
74b49205 3652 PR gdb/17170
b8b8facf
DE
3653 * maint.c (count_symtabs_and_blocks): Handle NULL
3654 current_program_space.
3655 (report_command_stats): Check global enabled flag in addition to
3656 recorded enabled flag.
3657 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3658
69ff6be5
PA
36592014-07-16 Pedro Alves <palves@redhat.com>
3660
3661 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3662
252db1b5
TT
36632014-07-16 Tom Tromey <tromey@redhat.com>
3664
3665 * target.h (struct target_ops) <to_delete_record>: Reformat
3666 comment.
3667
a432721e
TT
36682014-07-16 Tom Tromey <tromey@redhat.com>
3669
3670 * target-delegates.c: Rebuild.
3671
487d9753
PL
36722014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3673
3674 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3675 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3676 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3677 (avr_pointer_to_address): Likewise.
3678 (avr_address_class_type_flags): New function.
3679 (avr_address_class_type_flags_to_name): Likewise.
3680 (avr_address_class_name_to_type_flags): Likewise.
3681 (avr_gdbarch_init): Set address_class_type_flags,
3682 address_class_type_flags_to_name and
3683 address_class_name_to_type_flags.
3684
57745c90
PA
36852014-07-15 Pedro Alves <palves@redhat.com>
3686
3687 * linux-nat.c (kill_callback): Save errno and work with saved
3688 copy.
3689
2d40be18
SM
36902014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3691
3692 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3693
572f6555
EBM
36942014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3695
3696 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3697 breakpoint support correctly.
3698
cc1c52ad
PA
36992014-07-14 Pedro Alves <palves@redhat.com>
3700
3701 * utils.c (prompt_for_continue): Call target_terminal_ours.
3702
1e973570
PA
37032014-07-14 Pedro Alves <palves@redhat.com>
3704
3705 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3706 catch_errors. Don't re-enable stdin or notify observers where,
3707 and rethrow error.
3708 (fetch_inferior_event_wrapper): Delete.
3709
93d6eb10
PA
37102014-07-14 Pedro Alves <palves@redhat.com>
3711
3712 PR gdb/17072
3713 * top.c: Include "inf-loop.h".
3714 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3715 field.
3716 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3717 was async before.
3718 (gdb_readline_wrapper): Store whether the target is async, and
3719 make it sync.
3720
0017922d
PA
37212014-07-14 Pedro Alves <palves@redhat.com>
3722
3723 PR gdb/17072
3724 * top.c (gdb_readline_wrapper_line): Tweak comment.
3725 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3726 the input handler callback.
3727
94696ad3
PA
37282014-07-14 Pedro Alves <palves@redhat.com>
3729
3730 PR gdb/17072
3731 * main.c: Include event-top.h.
3732 (handle_command_errors): New function.
3733 (catch_command_errors, catch_command_errors_const): Use it.
3734
9d1e69a2
PA
37352014-07-14 Pedro Alves <palves@redhat.com>
3736
3737 * exceptions.c (catch_command_errors, catch_command_errors_const):
3738 Moved to main.c.
3739 * exceptions.h (catch_command_errors_ftype)
3740 (catch_command_errors_const_ftype): Moved to main.c.
3741 (catch_command_errors, catch_command_errors_const): Delete
3742 declarations.
3743 * main.c (catch_command_errors_ftype)
3744 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3745 (catch_command_errors, catch_command_errors_const)): Moved here
3746 from exceptions.c and make static.
3747
feefc97b
PA
37482014-07-14 Pedro Alves <palves@redhat.com>
3749
3750 * exceptions.c (print_any_exception): Delete.
3751 (catch_exceptions_with_msg): Use exception_print instead of
3752 print_any_exception.
3753 (catch_errors): Use exception_fprintf instead of
3754 print_any_exception.
3755 (catch_command_errors, catch_command_errors_const): Use
3756 exception_print instead of print_any_exception.
3757
c933f875
PA
37582014-07-14 Pedro Alves <palves@redhat.com>
3759
3760 * infcall.c (run_inferior_call): Set 'sync_execution' while
3761 running the inferior call.
3762
feb6f816
PA
37632014-07-14 Pedro Alves <palves@redhat.com>
3764
3765 * value.c (value_contents_equal): Delete function.
3766 * value.h (value_contents_equal): Delete declaration.
3767
d98b7a16
TT
37682014-07-14 Tom Tromey <tromey@redhat.com>
3769
3770 PR exp/17106:
3771 * gdbtypes.c (is_dynamic_type_internal): New function, from
3772 is_dynamic_type.
3773 (is_dynamic_type): Rewrite.
3774 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3775 (resolve_dynamic_struct): Likewise.
3776 (resolve_dynamic_type_internal): New function, from
3777 resolve_dynamic_type.
3778 (resolve_dynamic_type): Rewrite.
3779
548740d6
TT
37802014-07-14 Tom Tromey <tromey@redhat.com>
3781
3782 * target.c (target_require_runnable): Also check record_stratum.
3783 Update comment.
3784
808f7ab1
YQ
37852014-07-11 Yao Qi <yao@codesourcery.com>
3786
3787 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3788 thumb_instruction_restores_sp return true.
3789
540314bd
YQ
37902014-07-11 Yao Qi <yao@codesourcery.com>
3791
3792 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3793 (thumb_in_function_epilogue_p): Call
3794 thumb_instruction_restores_sp.
3795
1db01f22
YQ
37962014-07-11 Yao Qi <yao@codesourcery.com>
3797
3798 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3799 'add sp, #imm'.
3800 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3801
3116063b
GB
38022014-07-11 Gary Benson <gbenson@redhat.com>
3803
3804 * amd64-linux-nat.c (gdbcore.h): Remove include.
3805 (regset.h): Likewise.
3806 (nat/linux-btrace.h): Likewise.
3807 (btrace.h): Likewise.
3808 (gdb_assert.h): Likewise.
3809 (string.h): Likewise.
3810 (sys/uio.h): Likewise.
3811 (sys/debugreg.h): Likewise.
3812 (sys/syscall.h): Likewise.
3813 (sys/procfs.h): Likewise.
3814 (sys/user.h): Likewise.
3815 (asm/ptrace.h): Likewise.
3816 (i386-nat.h): Likewise.
3817 * i386-linux-nat.c (i386-nat.h): Likewise.
3818 (regset.h): Likewise.
3819 (target.h): Likewise.
3820 (linux-nat.h): Likewise.
3821 (nat/linux-btrace.h): Likewise.
3822 (btrace.h): Likewise.
3823 (gdb_assert.h): Likewise.
3824 (string.h): Likewise.
3825 (sys/uio.h): Likewise.
3826 (sys/user.h): Likewise.
3827 (sys/procfs.h): Likewise.
3828 (sys/reg.h): Likewise.
3829 (sys/debugreg.h): Likewise.
3830 (ORIG_EAX): Remove definition.
3831
040baaf6
GB
38322014-07-11 Gary Benson <gbenson@redhat.com>
3833
3834 * i386-linux-nat.h: New file.
3835 * x86-linux-nat.h: Likewise.
3836 * x86-linux-nat.c: Likewise.
3837 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3838 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3839 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3840 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3841 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3842 (PTRACE_SETREGSET): Likewise.
3843 (arch_lwp_info): Now in x86-linux-nat.c.
3844 (have_ptrace_getregset): Now in x86-linux-nat.h.
3845 (x86_linux_dr_get): Now in x86-linux-nat.c.
3846 (x86_linux_dr_set): Likewise.
3847 (x86_linux_dr_get_addr): Likewise.
3848 (x86_linux_dr_get_control): Likewise.
3849 (x86_linux_dr_get_status): Likewise.
3850 (update_debug_registers_callback): Likewise.
3851 (x86_linux_dr_set_control): Likewise.
3852 (x86_linux_dr_set_addr): Likewise.
3853 (x86_linux_prepare_to_resume): Likewise.
3854 (x86_linux_new_thread): Likewise.
3855 (x86_linux_new_fork): Likewise.
3856 (x86_linux_get_thread_area): Likewise.
3857 (super_post_startup_inferior): Likewise.
3858 (x86_linux_child_post_startup_inferior): Likewise.
3859 (AMD64_LINUX_USER64_CS): Likewise.
3860 (AMD64_LINUX_X32_DS): Likewise.
3861 (x86_linux_read_description): Likewise.
3862 (x86_linux_enable_btrace): Likewise.
3863 (x86_linux_disable_btrace): Likewise.
3864 (x86_linux_teardown_btrace): Likewise.
3865 (x86_linux_read_btrace): Likewise.
3866 (x86_linux_create_target): Likewise.
3867 (x86_linux_add_target): Likewise.
3868 * i386-linux-nat.c (x86-linux-nat.h): New include.
3869 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3870 (PTRACE_SETREGSET): Likewise.
3871 (arch_lwp_info): Now in x86-linux-nat.c.
3872 (have_ptrace_getregset): Now in x86-linux-nat.h.
3873 (x86_linux_dr_get): Now in x86-linux-nat.c.
3874 (x86_linux_dr_set): Likewise.
3875 (x86_linux_dr_get_addr): Likewise.
3876 (x86_linux_dr_get_control): Likewise.
3877 (x86_linux_dr_get_status): Likewise.
3878 (update_debug_registers_callback): Likewise.
3879 (x86_linux_dr_set_control): Likewise.
3880 (x86_linux_dr_set_addr): Likewise.
3881 (x86_linux_prepare_to_resume): Likewise.
3882 (x86_linux_new_thread): Likewise.
3883 (x86_linux_new_fork): Likewise.
3884 (x86_linux_get_thread_area): Likewise.
3885 (super_post_startup_inferior): Likewise.
3886 (x86_linux_child_post_startup_inferior): Likewise.
3887 (AMD64_LINUX_USER64_CS): Likewise.
3888 (AMD64_LINUX_X32_DS): Likewise.
3889 (x86_linux_read_description): Likewise.
3890 (x86_linux_enable_btrace): Likewise.
3891 (x86_linux_disable_btrace): Likewise.
3892 (x86_linux_teardown_btrace): Likewise.
3893 (x86_linux_read_btrace): Likewise.
3894 (x86_linux_create_target): Likewise.
3895 (x86_linux_add_target): Likewise.
3896
1aa7e42c
GB
38972014-07-11 Gary Benson <gbenson@redhat.com>
3898
3899 * amd64-linux-nat.c: Comment and whitespace changes.
3900 * i386-linux-nat.c: Comment and whitespace changes.
3901
c1e246a0
GB
39022014-07-11 Gary Benson <gbenson@redhat.com>
3903
3904 * amd64-linux-nat.c (x86_linux_create_target): New function.
3905 (x86_linux_add_target): Likewise.
3906 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3907 * i386-linux-nat.c (x86_linux_create_target): New function.
3908 (x86_linux_add_target): Likewise.
3909 (_initialize_i386_linux_nat): Delegate to the above new functions.
3910
8c420b8d
GB
39112014-07-11 Gary Benson <gbenson@redhat.com>
3912
3913 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3914 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3915 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3916 (ps_get_thread_area): Delegate to the above.
3917
cb1da100
GB
39182014-07-11 Gary Benson <gbenson@redhat.com>
3919
3920 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3921 x86_linux_read_description. All uses updated. amd64-specific
3922 code conditionalized. Conditionalized i386-specific code added.
3923 Redundant cast removed.
3924 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3925 x86_linux_read_description. All uses updated. i386-specific
3926 code conditionalized. Conditionalized amd64-specific code added.
3927 One sizeof replaced with the actual type it is describing.
3928
2acf3cd0
GB
39292014-07-11 Gary Benson <gbenson@redhat.com>
3930
3931 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3932 x86_linux_dr_get. All uses updated.
3933 (amd64_linux_dr_set): Renamed to
3934 x86_linux_dr_set. All uses updated.
3935 (amd64_linux_dr_get_addr): Renamed to
3936 x86_linux_dr_get_addr. All uses updated.
3937 (amd64_linux_dr_get_control): Renamed to
3938 x86_linux_dr_get_control. All uses updated.
3939 (amd64_linux_dr_get_status): Renamed to
3940 x86_linux_dr_get_status. All uses updated.
3941 (amd64_linux_dr_set_control): Renamed to
3942 x86_linux_dr_set_control. All uses updated.
3943 (amd64_linux_dr_set_addr): Renamed to
3944 x86_linux_dr_set_addr. All uses updated.
3945 (amd64_linux_prepare_to_resume): Renamed to
3946 x86_linux_prepare_to_resume. All uses updated.
3947 (amd64_linux_new_thread): Renamed to
3948 x86_linux_new_thread. All uses updated.
3949 (amd64_linux_new_fork): Renamed to
3950 x86_linux_new_fork. All uses updated.
3951 (amd64_linux_child_post_startup_inferior): Renamed to
3952 x86_linux_child_post_startup_inferior. All uses updated.
3953 (amd64_linux_enable_btrace): Renamed to
3954 x86_linux_enable_btrace. All uses updated.
3955 (amd64_linux_disable_btrace): Renamed to
3956 x86_linux_disable_btrace. All uses updated.
3957 (amd64_linux_teardown_btrace): Renamed to
3958 x86_linux_teardown_btrace. All uses updated.
3959 (amd64_linux_read_btrace): Renamed to
3960 x86_linux_read_btrace. All uses updated.
3961 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3962 x86_linux_dr_get. All uses updated.
3963 (i386_linux_dr_set): Renamed to
3964 x86_linux_dr_set. All uses updated.
3965 (i386_linux_dr_get_addr): Renamed to
3966 x86_linux_dr_get_addr. All uses updated.
3967 (i386_linux_dr_get_control): Renamed to
3968 x86_linux_dr_get_control. All uses updated.
3969 (i386_linux_dr_get_status): Renamed to
3970 x86_linux_dr_get_status. All uses updated.
3971 (i386_linux_dr_set_control): Renamed to
3972 x86_linux_dr_set_control. All uses updated.
3973 (i386_linux_dr_set_addr): Renamed to
3974 x86_linux_dr_set_addr. All uses updated.
3975 (i386_linux_prepare_to_resume): Renamed to
3976 x86_linux_prepare_to_resume. All uses updated.
3977 (i386_linux_new_thread): Renamed to
3978 x86_linux_new_thread. All uses updated.
3979 (i386_linux_new_fork): Renamed to
3980 x86_linux_new_fork. All uses updated.
3981 (i386_linux_child_post_startup_inferior): Renamed to
3982 x86_linux_child_post_startup_inferior. All uses updated.
3983 (i386_linux_enable_btrace): Renamed to
3984 x86_linux_enable_btrace. All uses updated.
3985 (i386_linux_disable_btrace): Renamed to
3986 x86_linux_disable_btrace. All uses updated.
3987 (i386_linux_teardown_btrace): Renamed to
3988 x86_linux_teardown_btrace. All uses updated.
3989 (i386_linux_read_btrace): Renamed to
3990 x86_linux_read_btrace. All uses updated.
3991
b9c1d481
AS
39922014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3993
3994 * remote.c (extended_remote_post_attach): New function.
3995 (init_extended_remote_ops): Install it as to_post_attach method.
3996
7180e04a
PA
39972014-07-09 Pedro Alves <palves@redhat.com>
3998
3999 * infcmd.c (attach_command_post_wait): Don't call
4000 target_terminal_inferior here.
4001 (attach_command): Call it here instead.
4002
9a9a7608
AB
40032014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4004
4005 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4006 field.
4007 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4008 from varobj.c, with additional checks.
4009 (c_varobj_ops): Fill in is_path_expr_parent field.
4010 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4011 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4012 field.
4013 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4014 ops method.
4015 (varobj_default_is_path_expr_parent): New function.
4016 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4017 (varobj_default_is_path_expr_parent): Declare new function.
4018
1f267ae3
MM
40192014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4020
4021 * infcmd.c (finish_backward): Turn internal error into normal error.
4022
b2ee242b
PA
40232014-07-07 Pedro Alves <palves@redhat.com>
4024
8a869bca 4025 PR gdb/17096
b2ee242b
PA
4026 * remote.c (async_handle_remote_sigint)
4027 (async_handle_remote_sigint_twice): Call
4028 gdb_call_async_signal_handler instead of
4029 mark_async_signal_handler.
4030
38e229b2
TT
40312014-07-07 Tom Tromey <tromey@redhat.com>
4032
4033 * target-delegates.c: Rebuild.
4034 * target.c (target_info_record): Remove.
4035 * record.c (info_record_command): Unconditionally call
4036 to_info_record.
4037 * target.h (struct target_ops) <to_info_record>: Use
4038 TARGET_DEFAULT_IGNORE.
4039 (target_info_record): Remove.
4040
f0f9ff95
TT
40412014-07-07 Tom Tromey <tromey@redhat.com>
4042
4043 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4044 TARGET_DEFAULT_NORETURN.
4045 * target.c (generic_tls_error): New function.
4046 (target_translate_tls_address): Don't search target stack.
4047 * target-delegates.c: Rebuild.
4048 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4049 stack.
4050 * linux-thread-db.c (thread_db_get_thread_local_address):
4051 Unconditionally call beneath target.
4052
4a5be5ee
MK
40532014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4054
4055 * cli/cli-logging.c (pop_output_files): Assign targerr to
4056 gdb_stdtargerr.
4057
92c3b204
AB
40582014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4059
4060 * MAINTAINERS (Write After Approval): Update my email address.
4061
9b11e3a7
GB
40622014-07-02 Gary Benson <gbenson@redhat.com>
4063
4064 * proc-service.c (ps_xfer_memory): Update comment.
4065 (ps_pstop): Remove unused function.
4066 (ps_pcontinue): Likewise.
4067 (ps_lstop): Likewise.
4068 (ps_lcontinue): Likewise.
4069 (ps_lgetxregsize): Likewise.
4070 (ps_lgetxregs): Likewise.
4071 (ps_lsetxregs): Likewise.
4072 (ps_plog): Likewise.
4073 (ps_ptread): Likewise.
4074 (ps_ptwrite): Likewise.
4075
cf363f18
MW
40762014-07-01 Mark Wielaard <mjw@redhat.com>
4077
4078 * dwarf2read.c (add_array_cv_type): New function.
4079 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4080 (read_tag_volatile_type): Likewise.
4081
82ae6c8d
TT
40822014-07-01 Tom Tromey <tromey@redhat.com>
4083
4084 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4085 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4086 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4087 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4088 * command.h (cmd_cfunc_ftype): Move earlier.
4089 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4090 (add_com, add_info): Use cmd_cfunc_ftype.
4091
96142726
TT
40922014-06-30 Tom Tromey <tromey@redhat.com>
4093
4094 * symtab.c (operator_chars): Make parameters and return type
4095 const.
4096 (file_matches): Make "files" const.
4097 (struct search_symbols_data) <files>: Now const.
4098 (search_symbols): Make "regexp" and "files" parameters const.
4099 Update.
4100 (symtab_symbol_info): Remove cast.
4101 (rbreak_command): Update.
4102 * symtab.h (search_symbols): Update.
4103
b67a2c6f
YQ
41042014-06-27 Yao Qi <yao@codesourcery.com>
4105
4106 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4107 Change parameter type to 'struct thread_info *'. Caller
4108 updated.
4109 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4110 Update declaration.
4111 * dummy-frame.c (struct dummy_frame_id): New.
4112 (dummy_frame_id_eq): New function.
4113 (struct dummy_frame) <id>: Change its type to 'struct
4114 dummy_frame_id'.
4115 (dummy_frame_push): Add parameter ptid and save it in
4116 dummy_frame_id.
4117 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4118 inferior_ptid.
4119 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4120 to inferior_ptid.
4121 (lookup_dummy_frame): Change parameter type to 'struct
4122 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4123 instead of frame_id_eq.
4124 (dummy_frame_pop): Add parameter ptid. Callers updated.
4125 Update comments. Compose dummy_frame_id and pass it to
4126 lookup_dummy_frame.
4127 (dummy_frame_discard): Add parameter ptid.
4128 (dummy_frame_sniffer): Compose dummy_frame_id and call
4129 dummy_frame_id_eq instead of frame_id_eq.
4130 (fprint_dummy_frames): Print ptid.
4131 * dummy-frame.h: Remove comments.
4132 (dummy_frame_push): Add ptid in declaration.
4133 (dummy_frame_pop, dummy_frame_discard): Likewise.
4134
5b10184c
TT
41352014-06-26 Tom Tromey <tromey@redhat.com>
4136
4137 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4138 * command.h (error_no_arg): Update.
4139
06900326
TT
41402014-06-26 Tom Tromey <tromey@redhat.com>
4141
4142 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4143 (do_show_command): Make "arg" const.
4144 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4145
c2bcbb1d
TT
41462014-06-26 Tom Tromey <tromey@redhat.com>
4147
4148 * record-full.c (record_full_get_bookmark): Make "args" const.
4149 (record_full_goto_bookmark): Make "raw_bookmark" const.
4150 * record.c (record_goto): New function.
4151 (cmd_record_goto): Use it. Now static.
4152 * record.h (record_goto): Declare.
4153 (cmd_record_goto): Remove declaration.
4154 * target-delegates.c: Rebuild.
4155 * target.h (struct target_ops) <to_get_bookmark,
4156 to_goto_bookmark>: Make parameter const.
4157
9cbe5fff
TT
41582014-06-26 Tom Tromey <tromey@redhat.com>
4159
4160 * defs.h (generic_load): Update.
4161 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4162 * monitor.c (monitor_load): Make "args" const.
4163 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4164 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4165 const.
4166 (mips_load): Make "file" const.
4167 * remote-sim.c (gdbsim_load): Make "args" const.
4168 * remote.c (remote_load): Make "name" const.
4169 * symfile.c (generic_load): Make "args" const.
4170 * target-delegates.c: Rebuild.
4171 * target.c (target_load): Make "arg" const.
4172 (debug_to_load): Make "args" const.
4173 * target.h (struct target_ops) <to_load>: Make parameter const.
4174 (target_load): Update.
4175
34a68019
TT
41762014-06-26 Tom Tromey <tromey@redhat.com>
4177
4178 PR symtab/16902:
4179 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4180 (dwarf2_physname, read_partial_die)
4181 (guess_partial_die_structure_name, fixup_partial_die)
4182 (guess_full_die_structure_name, anonymous_struct_prefix)
4183 (dwarf2_name): Use per-BFD obstack.
4184
efc889c1
YQ
41852014-06-26 Yao Qi <yao@codesourcery.com>
4186
4187 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4188 dummyframe and this_id into inner block below.
4189
4395285e
YQ
41902014-06-26 Yao Qi <yao@codesourcery.com>
4191
4192 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4193 with "signal_pass[0]" in the initialization of signal_pass.
4194
aef92902
MM
41952014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4196
4197 * record-btrace.c (record_btrace_generating_corefile)
4198 (record_btrace_prepare_to_generate_core)
4199 (record_btrace_done_generating_core): New.
4200 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4201 (record_btrace_store_registers, record_btrace_prepare_to_store):
4202 Forward request when generating a core file.
4203 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4204 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4205 to_done_generating_core.
4206
5fff78c4
MM
42072014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4208
4209 * target.h (target_ops) <to_prepare_to_generate_core>
4210 <to_done_generating_core>: New.
4211 (target_prepare_to_generate_core, target_done_generating_core): New.
4212 * target.c (target_prepare_to_generate_core)
4213 (target_done_generating_core): New.
4214 * target-delegates.c: Regenerate.
4215 * gcore.c: (write_gcore_file): Rename to ...
4216 (write_gcore_file_1): ...this.
4217 (write_gcore_file): Call target_prepare_to_generate_core
4218 and target_done_generating_core.
4219
1d1f1ccb
MM
42202014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4221
4222 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4223 * gcore.c (write_gcore_file): Free memory returned from
4224 make_corefile_notes.
4225 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4226 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4227
3343ef86
YQ
42282014-06-24 Yao Qi <yao@codesourcery.com>
4229
4230 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4231 (arm_linux_init_abi): Set skip_trampoline_code with
4232 gdbarch_skip_trampoline_code instead of
4233 find_solib_trampoline_target.
4234
18d18ac8
YQ
42352014-06-24 Yao Qi <yao@codesourcery.com>
4236
4237 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4238 arm_skip_bx_reg returns non-zero.
4239
80d8d390
YQ
42402014-06-24 Yao Qi <yao@codesourcery.com>
4241
4242 * arm-tdep.c (arm_skip_bx_reg): New function.
4243 (arm_skip_stub): Call arm_skip_bx_reg.
4244
6a18a01c
DB
42452014-06-23 Don Breazeal <donb@codesourcery.com>
4246
4247 * MAINTAINERS: Add myself as write-after-approval maintainer.
4248
8e9db26e
PA
42492014-06-23 Pedro Alves <palves@redhat.com>
4250
4251 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4252 DR_CONTROL before setting DR0..DR3.
4253 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4254 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4255 bits of DR_CONTROL related to the debug register slot being
4256 disabled. If all slots are vacant, clear local slowdown as well,
4257 and assert DR_CONTROL is 0.
4258
70afc5b7
SC
42592014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4260
4261 * python/lib/gdb/command/xmethods.py
4262 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4263 current progspace only if the string "progspace" matches LOCUS_RE.
4264
840ed64d
JK
42652014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4266
4267 Fix --with-system-readline with readline-6.3 patch 5.
4268 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4269 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4270 types.
4271
26f2dc30
TT
42722014-06-20 Tom Tromey <tromey@redhat.com>
4273
4274 * dwarf2read.c (dw2_get_real_path): Use correct type in
4275 OBSTACK_CALLOC.
4276 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4277
125f8a3d
GB
42782014-06-20 Gary Benson <gbenson@redhat.com>
4279
4280 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4281 * common/glibc_thread_db.h: Likewise.
4282 * common/i386-cpuid.h: Likewise.
4283 * common/i386-gcc-cpuid.h: Likewise.
4284 * common/linux-btrace.h: Likewise.
4285 * common/linux-osdata.h: Likewise.
4286 * common/linux-procfs.h: Likewise.
4287 * common/linux-ptrace.h: Likewise.
4288 * common/mips-linux-watch.h: Likewise.
4289 * common/linux-btrace.c: Moved to nat.
4290 * common/linux-osdata.c: Likewise.
4291 * common/linux-procfs.c: Likewise.
4292 * common/linux-ptrace.c: Likewise.
4293 * common/mips-linux-watch.c: Likewise.
4294 * nat/gdb_thread_db.h: Moved from common.
4295 * nat/glibc_thread_db.h: Likewise.
4296 * nat/i386-cpuid.h: Likewise.
4297 * nat/i386-gcc-cpuid.h: Likewise.
4298 * nat/linux-btrace.c: Likewise.
4299 * nat/linux-btrace.h: Likewise.
4300 * nat/linux-osdata.c: Likewise.
4301 * nat/linux-osdata.h: Likewise.
4302 * nat/linux-procfs.c: Likewise.
4303 * nat/linux-procfs.h: Likewise.
4304 * nat/linux-ptrace.c: Likewise.
4305 * nat/linux-ptrace.h: Likewise.
4306 * nat/mips-linux-watch.c: Likewise.
4307 * nat/mips-linux-watch.h: Likewise.
4308 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4309 (object file files): Reordered.
4310 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4311 of glibc_thread_db.h.
4312
42995dbd
GB
43132014-06-20 Gary Benson <gbenson@redhat.com>
4314
4315 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4316 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4317 (i386_dr_low): Likewise.
4318 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4319 (i386_dr_low_set_addr): Likewise.
4320 (i386_dr_low_get_addr): Likewise.
4321 (i386_dr_low_can_set_control): Likewise.
4322 (i386_dr_low_set_control): Likewise.
4323 (i386_dr_low_get_control): Likewise.
4324 (i386_dr_low_get_status): Likewise.
4325 (i386_get_debug_register_length): Likewise.
4326 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4327 (i386_dr_low): Likewise.
4328 * nat/i386-dregs.c (i386-low.h): Remove include.
4329 (i386-nat.h): Likewise.
4330 (nat/i386-dregs.h): New include.
4331 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4332 (i386_dr_low_set_addr): Likewise.
4333 (i386_dr_low_get_addr): Likewise.
4334 (i386_dr_low_can_set_control): Likewise.
4335 (i386_dr_low_set_control): Likewise.
4336 (i386_dr_low_get_control): Likewise.
4337 (i386_dr_low_get_status): Likewise.
4338 (i386_get_debug_register_length): Likewise.
4339 (debug_hw_points): Likewise.
4340
3ed9baed
IB
43412014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4342
4343 * Makefile.in (SFILES): Add d-exp.y.
4344 (YYFILES): Add d-exp.c.
4345 (YYOBJ): Add d-exp.o.
4346 (local-maintainer-clean): Delete d-exp.c.
4347 * d-exp.y: New file.
4348 * d-lang.h (d_parse): New declaration.
4349 (d_error): New declaration.
4350 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4351 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4352 PREC_ORDER operators.
4353 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4354
78c164b0
YQ
43552014-06-19 Yao Qi <yao@codesourcery.com>
4356
4357 * gdbthread.h (any_running): Remove the declaration.
4358 * thread.c (any_running): Remove.
4359
f6e29b6e
YQ
43602014-06-19 Yao Qi <yao@codesourcery.com>
4361
4362 * gdbthread.h (struct thread_info) <state>: Change its type to
4363 'enum thread_state'. Update comments.
4364
034f788c
PA
43652014-06-19 Pedro Alves <palves@redhat.com>
4366
4367 * gdbthread.h (ALL_THREADS): Delete.
4368 (ALL_NON_EXITED_THREADS): New macro.
4369 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4370 instead of ALL_THREADS.
4371 * infrun.c (find_thread_needs_step_over)
4372 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4373 instead of ALL_THREADS.
4374 * record-btrace.c (record_btrace_open)
4375 (record_btrace_stop_recording, record_btrace_close)
4376 (record_btrace_is_replaying, record_btrace_resume)
4377 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4378 * remote.c (append_pending_thread_resumptions): Likewise.
4379 * thread.c (thread_apply_all_command): Likewise.
4380
46e33252
GB
43812014-06-19 Gary Benson <gbenson@redhat.com>
4382
4383 * i386-nat.c (i386_stopped_by_watchpoint):
4384 Use i386_dr_stopped_by_watchpoint.
4385 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4386 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4387
3a8ee006
GB
43882014-06-19 Gary Benson <gbenson@redhat.com>
4389
4390 * nat/i386-dregs.c: New file.
4391 * Makefile.in (i386-dregs.o): New rule.
4392 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4393 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4394 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4395 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4396 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4397 * config/i386/go32.mh (NATDEPFILES): Likewise.
4398 * config/i386/linux.mh (NATDEPFILES): Likewise.
4399 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4400 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4401 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4402 * i386-nat.h (debug_hw_points): New declaration.
4403 * i386-nat.c (breakpoint.h): Remove include.
4404 (command.h): Likewise.
4405 (target.h): Likewise.
4406 (gdb_assert.h): Likewise.
4407 (debug_hw_points): Made nonstatic.
4408 (debug_printf): Now in i386-dregs.c.
4409 (TARGET_HAS_DR_LEN_8): Likewise.
4410 (DR_CONTROL_SHIFT): Likewise.
4411 (DR_CONTROL_SIZE): Likewise.
4412 (DR_RW_EXECUTE): Likewise.
4413 (DR_RW_WRITE): Likewise.
4414 (DR_RW_READ): Likewise.
4415 (DR_RW_IORW): Likewise.
4416 (DR_LEN_1): Likewise.
4417 (DR_LEN_2): Likewise.
4418 (DR_LEN_4): Likewise.
4419 (DR_LEN_8): Likewise.
4420 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4421 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4422 (DR_ENABLE_SIZE): Likewise.
4423 (DR_LOCAL_SLOWDOWN): Likewise.
4424 (DR_GLOBAL_SLOWDOWN): Likewise.
4425 (DR_CONTROL_RESERVED): Likewise.
4426 (I386_DR_CONTROL_MASK): Likewise.
4427 (I386_DR_VACANT): Likewise.
4428 (I386_DR_LOCAL_ENABLE): Likewise.
4429 (I386_DR_GLOBAL_ENABLE): Likewise.
4430 (I386_DR_DISABLE): Likewise.
4431 (I386_DR_SET_RW_LEN): Likewise.
4432 (I386_DR_GET_RW_LEN): Likewise.
4433 (I386_DR_WATCH_HIT): Likewise.
4434 (i386_wp_op_t): Likewise.
4435 (i386_show_dr): Likewise.
4436 (i386_length_and_rw_bits): Likewise.
4437 (i386_insert_aligned_watchpoint): Likewise.
4438 (i386_remove_aligned_watchpoint): Likewise.
4439 (i386_handle_nonaligned_watchpoint): Likewise.
4440 (i386_update_inferior_debug_regs): Likewise.
4441 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4442 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4443 (i386_region_ok_for_watchpoint):
4444 Use i386_dr_region_ok_for_watchpoint.
4445 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4446
322a8e06
GB
44472014-06-19 Gary Benson <gbenson@redhat.com>
4448
4449 * i386-nat.c (i386_insert_hw_breakpoint): Use
4450 i386_insert_watchpoint.
4451 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4452
8f26655c
GB
44532014-06-19 Gary Benson <gbenson@redhat.com>
4454
4455 * i386-nat.c (i386_dr_show): Renamed to
4456 i386_show_dr and made static. All uses updated.
4457 (i386_dr_length_and_rw_bits): Renamed to
4458 i386_length_and_rw_bits and made static.
4459 All uses updated.
4460 (i386_dr_insert_aligned_watchpoint): Renamed to
4461 i386_insert_aligned_watchpoint and made static.
4462 All uses updated.
4463 (i386_dr_remove_aligned_watchpoint): Renamed to
4464 i386_remove_aligned_watchpoint and made static.
4465 All uses updated.
4466 (i386_dr_update_inferior_debug_regs): Renamed to
4467 i386_update_inferior_debug_regs and made static.
4468 All uses updated.
4469 * nat/i386-dregs.h (i386_dr_show): Removed.
4470 (i386_dr_length_and_rw_bits): Likewise.
4471 (i386_dr_insert_aligned_watchpoint): Likewise.
4472 (i386_dr_remove_aligned_watchpoint): Likewise.
4473 (i386_dr_update_inferior_debug_regs): Likewise.
4474
992c7d70
GB
44752014-06-19 Gary Benson <gbenson@redhat.com>
4476
4477 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4478 * configure: Regenerate.
4479 * config.in: Likewise.
4480 * main.c (signal.h): New include.
4481 (setup_alternate_signal_stack): New function.
4482 (captured_main): Call the above.
4483 * cp-support.c (signal.h): New include.
4484 (catch_demangler_crashes): New flag.
4485 (SIGJMP_BUF): New define.
4486 (SIGSETJMP): Likewise.
4487 (SIGLONGJMP): Likewise.
4488 (gdb_demangle_jmp_buf): New static global.
4489 (gdb_demangle_attempt_core_dump): Likewise.
4490 (gdb_demangle_signal_handler): New function.
4491 (gdb_demangle): If catch_demangler_crashes is set, install the
4492 above signal handler before calling bfd_demangle, and restore
4493 the original signal handler afterwards. Display the offending
4494 symbol and call demangler_warning the first time a segmentation
4495 fault is caught.
4496 (_initialize_cp_support): New maint set/show command.
4497
eae7090b
GB
44982014-06-19 Gary Benson <gbenson@redhat.com>
4499
4500 * utils.h (resource_limit_kind): New enum.
4501 (can_dump_core): New declaration.
4502 (warn_cant_dump_core): Likewise.
4503 (dump_core): Likewise.
4504 * utils.c (dump_core): Made nonstatic. Added new
4505 parameter "limit_kind".
4506 (can_dump_core): Made nonstatic. Moved printing code to...
4507 (warn_cant_dump_core): New function.
4508 (can_dump_core_warn): Likewise.
4509 (internal_vproblem): Replace calls to can_dump_core with
4510 calls to can_dump_core_warn. Supply new argument to each.
4511
57fcfb1b
GB
45122014-06-19 Gary Benson <gbenson@redhat.com>
4513
4514 * utils.h (demangler_vwarning): New declaration.
4515 (demangler_warning): Likewise.
4516 * utils.c (struct internal_problem)
4517 <user_settable_should_quit>: New field.
4518 <user_settable_should_dump_core>: Likewise
4519 (internal_error_problem): Add values for above new fields.
4520 (internal_warning_problem): Likewise.
4521 (demangler_warning_problem): New static global.
4522 (demangler_vwarning): New function.
4523 (demangler_warning): Likewise.
4524 (add_internal_problem_command): Selectively add commands.
4525 (_initialize_utils): New internal problem command.
4526 * maint.c (maintenance_demangler_warning): New function.
4527 (_initialize_maint_cmds): New command.
4528
17a40b44
TT
45292014-06-18 Tom Tromey <tromey@redhat.com>
4530
4531 * f-valprint.c (info_common_command_for_block): Update.
4532 * symtab.h (struct general_symbol_info) <common_block>: Now
4533 const.
4534
346d1dfe
TT
45352014-06-18 Tom Tromey <tromey@redhat.com>
4536
4537 * symtab.h (struct symtab) <blockvector>: Now const.
4538 * ada-lang.c (ada_add_global_exceptions): Update.
4539 * buildsym.c (augment_type_symtab): Update.
4540 * dwarf2read.c (dw2_lookup_symbol): Update.
4541 * jit.c (finalize_symtab): Update.
4542 * jv-lang.c (add_class_symtab_symbol): Update.
4543 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4544 Update.
4545 * objfiles.c (objfile_relocate1): Update.
4546 * psymtab.c (lookup_symbol_aux_psymtabs)
4547 (maintenance_check_psymtabs): Update.
4548 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4549 Update.
4550 * spu-tdep.c (spu_catch_start): Update.
4551 * symmisc.c (dump_symtab_1): Update.
4552 * symtab.c (lookup_global_symbol_from_objfile)
4553 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4554 (basic_lookup_transparent_type_quick)
4555 (basic_lookup_transparent_type, find_pc_sect_symtab)
4556 (find_pc_sect_line, search_symbols): Update.
4557 * block.c (find_block_in_blockvector): Make "bl" const.
4558 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4559 const.
4560 (blockvector_contains_pc): Make "bv" const.
4561 (block_for_pc_sect): Update.
4562 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4563 (blockvector_contains_pc): Update.
4564 * breakpoint.c (resolve_sal_pc): Update.
4565 * inline-frame.c (block_starting_point_at): Update.
4566
1834676b
TT
45672014-06-18 Tom Tromey <tromey@redhat.com>
4568
4569 * completer.c (complete_line): Make "line_buffer" const.
4570 * completer.h (complete_line): Update.
4571
ac1a991b
TT
45722014-06-18 Tom Tromey <tromey@redhat.com>
4573
4574 * symtab.c (add_macro_name): Remove unneeded cast.
4575
5bc98e52
TT
45762014-06-18 Tom Tromey <tromey@redhat.com>
4577
4578 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4579 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4580
8236def8
TT
45812014-06-18 Tom Tromey <tromey@redhat.com>
4582
4583 * probe.c (info_probes_for_ops): Make "arg" const.
4584 * probe.h (info_probes_for_ops): Update.
4585
3977b71f
TT
45862014-06-18 Tom Tromey <tromey@redhat.com>
4587
4588 * varobj.c (varobj_create): Update.
4589 * valops.c (value_of_this): Update.
4590 * tracepoint.c (add_local_symbols, scope_info): Update.
4591 * symtab.h (struct general_symbol_info) <block>: Now const.
4592 * symtab.c (skip_prologue_sal)
4593 (default_make_symbol_completion_list_break_on)
4594 (skip_prologue_using_sal): Update.
4595 * stack.h (iterate_over_block_locals)
4596 (iterate_over_block_local_vars): Update.
4597 * stack.c (print_frame_args): Update.
4598 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4599 parameter const.
4600 (get_selected_block): Make return type const.
4601 * python/py-frame.c (frapy_block): Update.
4602 * python/py-block.c (gdbpy_block_for_pc): Update.
4603 * p-exp.y (%union) <bval>: Now const.
4604 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4605 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4606 * m2-exp.y (%union) <bval>: Now const.
4607 * linespec.c (get_current_search_block): Make return type const.
4608 (create_sals_line_offset, find_label_symbols): Update.
4609 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4610 Update.
4611 (block_starting_point_at): Make "block" const.
4612 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4613 (check_exception_resume): Update.
4614 * guile/scm-frame.c (gdbscm_frame_block): Update.
4615 * guile/scm-block.c (gdbscm_lookup_block): Update.
4616 * frame.h (get_frame_block): Update.
4617 (get_selected_block): Make return type const.
4618 * frame.c (frame_id_inner): Update.
4619 * f-valprint.c (info_common_command_for_block)
4620 (info_common_command): Update.
4621 * dwarf2loc.c (dwarf2_find_location_expression)
4622 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4623 (locexpr_describe_location_piece): Update.
4624 * c-exp.y (%union) <bval>: Now const.
4625 * breakpoint.c (resolve_sal_pc): Update.
4626 * blockframe.c (get_frame_block):Make return type const.
4627 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4628 (block_innermost_frame): Update.
4629 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4630 (block_for_pc, block_for_pc_sect): Update.
4631 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4632 'pblock' const.
4633 (block_for_pc_sect, block_for_pc): Make return type const.
4634 * ax-gdb.c (gen_expr): Update.
4635 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4636 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4637 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4638 (ada_read_var_value): Update.
4639 * ada-exp.y (struct name_info) <block>: Now const.
4640 (%union): Likewise.
4641 (block_lookup): Constify.
4642
b9228891
GB
46432014-06-18 Gary Benson <gbenson@redhat.com>
4644
4645 * nat/i386-dregs.h: New file.
4646 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4647 * i386-nat.h (i386-dregs.h): New include.
4648 (DR_FIRSTADDR): Now in i386-dregs.h.
4649 (DR_LASTADDR): Likewise.
4650 (DR_NADDR): Likewise.
4651 (DR_STATUS): Likewise.
4652 (DR_CONTROL): Likewise.
4653 (i386_debug_reg_state): Likewise.
4654 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4655
a1aa2221
LM
46562014-06-18 Don Breazeal <donb@codesourcery.com>
4657
4658 * breakpoint.c (set_longjmp_breakpoint): Call
4659 momentary_breakpoint_from_master with additional argument.
4660 (set_longjmp_breakpoint_for_call_dummy): Call
4661 momentary_breakpoint_from_master with additional argument.
4662 (set_std_terminate_breakpoint): Call
4663 momentary_breakpoint_from_master with additional argument.
4664 (momentary_breakpoint_from_master): Add argument to function
4665 definition and use it to initialize structure member flag.
74228e77 4666 (clone_momentary_breakpoint): Call
a1aa2221
LM
4667 momentary_breakpoint_from_master with additional argument.
4668 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4669 member flags set in momentary_breakpoint_from_master.
4670
4be83cc2
GB
46712014-06-18 Gary Benson <gbenson@redhat.com>
4672
4673 * i386-nat.c (i386_show_dr): Renamed to
4674 i386_dr_show and made nonstatic. All uses updated.
4675 (i386_length_and_rw_bits): Renamed to
4676 i386_dr_length_and_rw_bits and made nonstatic.
4677 All uses updated.
4678 (i386_insert_aligned_watchpoint): Renamed to
4679 i386_dr_insert_aligned_watchpoint and made nonstatic.
4680 All uses updated.
4681 (i386_remove_aligned_watchpoint): Renamed to
4682 i386_dr_remove_aligned_watchpoint and made nonstatic.
4683 All uses updated.
4684 (i386_update_inferior_debug_regs): Renamed to
4685 i386_dr_update_inferior_debug_regs and made nonstatic.
4686 All uses updated.
4687
131aa0d4
GB
46882014-06-18 Gary Benson <gbenson@redhat.com>
4689
4690 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4691 (i386_dr_low_can_set_control): Likewise.
4692 (i386_dr_low_set_addr): Likewise.
4693 (i386_dr_low_set_control): Likewise.
4694 (i386_dr_low_get_addr): Likewise.
4695 (i386_dr_low_get_status): Likewise.
4696 (i386_dr_low_get_control): Likewise.
4697 (i386_insert_aligned_watchpoint): Use new macros.
4698 (i386_update_inferior_debug_regs): Likewise.
4699 (i386_stopped_data_address): Likewise.
4700
d9305f7f
GB
47012014-06-18 Gary Benson <gbenson@redhat.com>
4702
4703 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4704 New parameter. All uses updated.
4705
ea008da4
GB
47062014-06-18 Gary Benson <gbenson@redhat.com>
4707
4708 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4709 All uses updated.
4710
1b6d4134
GB
47112014-06-18 Gary Benson <gbenson@redhat.com>
4712
4713 * i386-nat.c (debug_printf): New macro.
4714 (i386_get_debug_register_length): Likewise.
4715 (TARGET_HAS_DR_LEN_8): Use above macro.
4716 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4717 and printf_unfiltered. Use phex to format values.
4718
9b4550ef
GB
47192014-06-18 Gary Benson <gbenson@redhat.com>
4720
4721 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4722 Make const.
4723
6e62758f
GB
47242014-06-18 Gary Benson <gbenson@redhat.com>
4725
4726 * i386-nat.c: Comment changes.
4727
51c79e94
GB
47282014-06-18 Gary Benson <gbenson@redhat.com>
4729
4730 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4731
3e11889a
GB
47322014-06-18 Gary Benson <gbenson@redhat.com>
4733
4734 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4735 (i386_insert_aligned_watchpoint): Likewise.
4736 (i386_remove_aligned_watchpoint): Likewise.
4737 (i386_handle_nonaligned_watchpoint): Likewise.
4738
fc6e2f03
GB
47392014-06-18 Gary Benson <gbenson@redhat.com>
4740
4741 * i386-nat.c: Whitespace changes.
4742
2afe7d50
SB
47432014-06-17 Samuel Bronson <naesten@gmail.com>
4744
4745 * MAINTAINERS: Update Roland McGrath's email address.
4746 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4747 Red Hat a while ago, and giving me a current address.
2afe7d50 4748
3bca49ee
TT
47492014-06-17 Tom Tromey <tromey@redhat.com>
4750
4751 * utils.h (savestring): Remove declaration.
4752
6e366df1
TT
47532014-06-17 Tom Tromey <tromey@redhat.com>
4754
4755 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4756
6be47f0c
KS
47572014-06-16 Keith Seitz <keiths@redhat.com>
4758
4759 PR mi/15863
4760 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4761 to update the varobj if inferior_ptid is null_ptid.
4762
7bc112c1
TT
47632014-06-16 Tom Tromey <tromey@redhat.com>
4764
4765 * target.h (struct target_ops) <to_info_proc>: Make parameter
4766 const.
4767 (target_info_proc): Update.
4768 * target.c (target_info_proc): Make "args" const.
4769 * procfs.c (procfs_info_proc): Update.
4770 * linux-tdep.c (linux_info_proc): Update.
4771 (linux_core_info_proc_mappings): Make "args" const.
4772 (linux_core_info_proc): Update.
4773 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4774 * gdbarch.c: Rebuild.
4775 * gdbarch.h: Rebuild.
4776 * corelow.c (core_info_proc): Update.
4777
fee354ee
TT
47782014-06-16 Tom Tromey <tromey@redhat.com>
4779
4780 * target.h (struct target_ops) <to_disconnect>: Make parameter
4781 const.
4782 (target_disconnect): Update.
4783 * target.c (target_disconnect): Make "args" const.
4784 * target-delegates.c: Rebuild.
4785 * remote.c (remote_disconnect): Update.
4786 * record.h (record_disconnect): Update.
4787 * record.c (record_disconnect): Update.
4788 * inf-child.c (inf_child_disconnect): Update.
4789
a30bf1f1
TT
47902014-06-16 Tom Tromey <tromey@redhat.com>
4791
4792 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4793 * target.c (debug_to_rcmd, default_rcmd): Update.
4794 * target-delegates.c: Rebuild.
4795 * remote.c (remote_rcmd): Update.
4796 * monitor.c (monitor_rcmd): Update.
4797
d03de421
PA
47982014-06-16 Pedro Alves <palves@redhat.com>
4799
4800 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4801 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4802 have OBJF_SHARED set.
4803 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4804 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4805 instead of OBJF_USERLOADED.
4806 * objfiles.h (OBJF_SHARED): Update comment.
4807 (userloaded_objfile_contains_address_p): Rename to ...
4808 (shared_objfile_contains_address_p): ... this, and update
4809 comments.
4810 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4811 new objfile.
4812 (remove_symbol_file_command): Skip objfiles that don't have
4813 OBJF_SHARED set.
4814
99f4262f
TT
48152014-06-16 Tom Tromey <tromey@redhat.com>
4816
4817 * minsyms.h (prim_record_minimal_symbol)
4818 (prim_record_minimal_symbol_and_info): Update comments.
4819
97d66cc6
EZ
48202014-06-14 Eli Zaretskii <eliz@gnu.org>
4821
4822 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4823 or --without-guile, according to how GDB was built.
4824
635c7e8a
TT
48252014-06-13 Tom Tromey <tromey@redhat.com>
4826
4827 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4828 to help_list.
4829 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4830 to help_list.
4831 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4832 help_list.
4833 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4834 help_list.Pass all_commands, not -1, to help_list.
4835 * cli/cli-dump.c (dump_command, append_command)
4836 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4837 (binary_dump_command, binary_append_command): Pass all_commands,
4838 not -1, to help_list.
4839 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4840 -1, to help_list.
4841 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4842 -1, to help_list.
4843 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4844 help_list.
4845 * top.c (set_history): Pass all_commands, not -1, to help_list.
4846 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4847 all_commands, not -1, to help_list.
4848 * symfile.c (overlay_command): Pass all_commands, not -1, to
4849 help_list.
4850 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4851 help_list.
4852 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4853 help_list.
4854 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4855 -1, to help_list.
4856 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4857 not -1, to help_list.
4858 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4859 not -1, to help_list.
4860 * maint.c (maintenance_command, maintenance_info_command)
4861 (maintenance_print_command, maintenance_set_cmd): Pass
4862 all_commands, not -1, to help_list.
4863 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4864 help_list.
4865 * language.c (set_check): Pass all_commands, not -1, to help_list.
4866 * infcmd.c (unset_command): Pass all_commands, not -1, to
4867 help_list.
4868 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4869 help_list.
4870 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4871 help_list.
4872 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4873 help_list.
4874 * breakpoint.c (save_command): Pass all_commands, not -1, to
4875 help_list.
4876 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4877 all_commands, not -1, to help_list.
4878
b94ade42
PL
48792014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4880
4881 * regcache.c (struct register_to_invalidate): New structure.
4882 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4883 functions.
4884 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4885
31f628ae
YQ
48862014-06-12 Yao Qi <yao@codesourcery.com>
4887
4888 * varobj.c (varobj_get_num_children): Call
4889 varobj_is_dynamic_p.
4890 (varobj_list_children): Likewise.
4891 (varobj_update): Likewise. Update comments.
4892
cde5ef40
YQ
48932014-06-12 Yao Qi <yao@codesourcery.com>
4894
4895 * varobj.c (varobj_pretty_printed_p): Rename to ...
4896 (varobj_is_dynamic_p): ... this. New function.
4897 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4898 (varobj_is_dynamic_p): Declare.
4899 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4900 (mi_print_value_p, varobj_update_one): Likewise.
4901
576ea091
YQ
49022014-06-12 Pedro Alves <pedro@codesourcery.com>
4903 Yao Qi <yao@codesourcery.com>
4904
4905 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4906 (varobj_get_iterator): Wrap up code for pretty-printer by
4907 "#if HAVE_PYTHON" and "#endif".
4908 (update_dynamic_varobj_children): Likewise.
4909
827f100c
YQ
49102014-06-12 Pedro Alves <pedro@codesourcery.com>
4911 Yao Qi <yao@codesourcery.com>
4912
4913 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4914 gdb_python_initialized is false. Move some code from varobj.c.
4915 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4916 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4917 (struct varobj_item): Moved to varobj-iter.h".
4918 (varobj_clear_saved_item): New function.
4919 (update_dynamic_varobj_children): Move python-related code to
4920 py-varobj.c.
4921 (free_variable): Call varobj_clear_saved_item and
4922 varobj_iter_delete.
4923
e5250216
YQ
49242014-06-12 Pedro Alves <pedro@codesourcery.com>
4925 Yao Qi <yao@codesourcery.com>
4926
4927 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4928 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4929 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4930 (py-varobj.o): New rule.
4931 * python/py-varobj.c: New file.
4932 * python/python-internal.h (py_varobj_get_iterator): Declare.
4933 * varobj-iter.h: New file.
4934 * varobj.c: Include "varobj-iter.h"
4935 (struct varobj) <child_iter>: Change its type from "PyObject *"
4936 to "struct varobj_iter *".
4937 <saved_item>: Likewise.
4938 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4939 [HAVE_PYTHON] (varobj_get_iterator): New function.
4940 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4941 python-specific code to python/py-varobj.c.
4942 (install_visualizer): Call varobj_iter_delete instead of
4943 Py_XDECREF.
4944 * varobj.h (varobj_ensure_python_env): Declare.
4945
5a2e0d6e
YQ
49462014-06-12 Yao Qi <yao@codesourcery.com>
4947
4948 * varobj.c (struct varobj_item): New structure.
4949 (create_child_with_value): Update declaration.
4950 (varobj_add_child): Replace arguments 'name' and 'value' with
4951 'item'. All callers updated.
4952 (install_dynamic_child): Likewise.
4953 (update_dynamic_varobj_children): Likewise.
4954 (varobj_add_child): Likewise.
4955 (create_child_with_value): Likewise.
4956
919b9a93
JB
49572014-06-11 Joel Brobecker <brobecker@adacore.com>
4958
4959 * NEWS: Create a new section for the next release branch.
4960 Rename the section of the current branch, now that it has
4961 been cut.
4962
71a55bdf
JB
49632014-06-11 Joel Brobecker <brobecker@adacore.com>
4964
4965 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4966 * version.in: Bump version to 7.8.50.DATE-cvs.
4967
364fe1f7
PA
49682014-06-11 Pedro Alves <palves@redhat.com>
4969
4970 PR remote/17028
4971 * ser-mingw.c (net_windows_socket_check_pending): New function.
4972 (net_windows_select_thread): Ignore spurious wakeups. Use
4973 net_windows_socket_check_pending.
4974 (net_windows_wait_handle): Check for pending events with
4975 ioctlsocket, through net_windows_socket_check_pending, instead of
4976 checking the socket's event.
4977
5a6c7709
SC
49782014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4979
4980 * python/python-internal.h (gdb_PyObject_GetAttrString)
4981 (gdb_PyObject_HasAttrString): New inline function definitions.
4982 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4983 char * of the second argument to PyObject_GetAttrString.
74228e77 4984
0e58ee40
JB
49852014-06-10 Joel Brobecker <brobecker@adacore.com>
4986
4987 * serial.c (serial_write): Fix index of character to be printed
4988 in call to serial_logchar when serial debug traces are enabled.
4989
d190df30
JB
49902014-06-10 Joel Brobecker <brobecker@adacore.com>
4991
4992 * gdbtypes (resolve_dynamic_range): Add function description.
4993
b4b01d36
PA
49942014-06-09 Pedro Alves <palves@redhat.com>
4995
4996 * linux-nat.c (linux_child_follow_fork): Initialize status with
4997 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4998 inner block. Only pass the signal to PTRACE_DETACH if in pass
4999 state.
5000
3657956b
GB
50012014-06-09 Gary Benson <gbenson@redhat.com>
5002
5003 * common/signals.c (gdb_signal_from_host): Reorder to separate
5004 the always-available ANSI-standard signals from the signals that
5005 require checking.
5006 (do_gdb_signal_to_host): Likewise.
5007 * proc-events.c (signal_table): Likewise.
5008
c077881a
HZ
50092014-06-08 Hui Zhu <hui@codesourcery.com>
5010
5011 * common/linux-ptrace.c (linux_disable_event_reporting): New
5012 function.
5013 * common/linux-ptrace.h (linux_disable_event_reporting): New
5014 declaration.
5015 * linux-nat.c (linux_child_follow_fork): Do a single step before
5016 detach.
5017
4186eb54
KS
50182014-06-07 Keith Seitz <keiths@redhat.com>
5019
5020 Revert:
5021 PR c++/16253
5022 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5023 from symbol_matches_domain in symtab.c. All local callers
5024 of symbol_matches_domain updated.
5025 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5026 search STRUCT_DOMAIN.
5027 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5028 independently. standard_lookup will do that automatically.
5029 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5030 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5031 (cp_lookup_symbol_in_namespace): Likewise.
5032 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5033 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5034 may return a STRUCT_DOMAIN match.
5035 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5036 * cp-support.c: Include language.h.
5037 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5038 VAR_DOMAIN.
5039 * psymtab.c (match_partial_symbol): Compare the requested
5040 domain with the symbol's domain directly.
5041 (lookup_partial_symbol): Likewise.
5042 * symtab.c (lookup_symbol_in_language): Explain when/why
5043 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5044 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5045 appropriate languages.
5046 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5047 and moved to ada-lang.c
5048 (lookup_block_symbol): Explain that this function only returns
5049 symbol matching the requested DOMAIN.
5050 Compare the requested domain with the symbol's domain directly.
5051 (iterate_over_symbols): Compare the requested domain with the
5052 symbol's domain directly.
5053 * symtab.h (symbol_matches_domain): Remove.
5054
25326a28 50552014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5056
5057 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5058 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5059 (gdbscm_guile_version_is_at_least): Declare.
5060 (gdbscm_scm_string_to_int): Declare.
5061 * guile/guile.c (gdbscm_guile_major_version): New global.
5062 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5063 (guile_datadir): New static global.
5064 (gdbscm_guile_data_directory): New function.
5065 (initialize_scheme_side): Update.
5066 (misc_guile_functions): Add guile-data-directory.
5067 (initialize_gdb_module): Fetch guile version number.
5068 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5069 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5070 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5071 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5072 comments.
5073 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5074 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5075 * guile/scm-value.c (gdbscm_value_to_string): Only call
5076 scm_port_conversion_strategy if Guile version >= 2.0.6.
5077
0a770bb2 50782014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5079
5080 * main.c (print_gdb_help): Add -q and --silent.
5081
73ba372c
GB
50822014-06-06 Gary Benson <gbenson@redhat.com>
5083
5084 * common/signals.c: Remove preprocessor conditionals for
5085 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5086 SIGSEGV and SIGTERM.
5087 * proc-events.c: Likewise.
5088
c33b2f12
MM
50892014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5090
5091 * symfile.c (symfile_free_objfile): Remove restriction to
5092 OBJF_USERLOADED.
5093 * symfile-mem.c (symbol_file_add_from_memory): Call
5094 add_target_sections_of_objfile.
5095
fb934770
LC
50962014-06-05 Ludovic Courtès <ludo@gnu.org>
5097
5098 * guile/scm-value.c (gdbscm_history_append_x): Use
5099 'vlscm_get_value_smob_arg_unsafe' instead of
5100 'vlscm_scm_to_value'.
5101
6ef284bd
SM
51022014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5103
5104 PR mi/15806
5105 * utils.c (printchar): Don't escape at all if quoter is NUL.
5106 Update function documentation to clarify effect of parameter
5107 QUOTER.
5108 * remote.c (escape_buffer): Pass '\\' as the quoter to
5109 fputstrn_unfiltered.
5110 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5111 generate the output.
5112 (mi_solib_unloaded): Same.
5113
270c9937
JB
51142014-06-05 Joel Brobecker <brobecker@adacore.com>
5115
5116 * development.sh: Delete.
5117 * Makefile.in (config.status): Adjust dependency on development.sh.
5118 * configure.ac: Adjust development.sh source call.
5119 * configure: Regenerate.
5120
16f691fb
DE
51212014-06-04 Doug Evans <xdje42@gmail.com>
5122
5123 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5124 is_scheme_bkpt, spec.
5125 (bpscm_make_breakpoint_smob): Initialize new members.
5126 (gdbscm_create_breakpoint_x): Split into two ...
5127 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5128 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5129 (scheme_function breakpoint_functions): Update.
5130 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5131 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5132 register-breakpoint!.
5133
ef7cab6b
JB
51342014-06-04 Joel Brobecker <brobecker@adacorer.com>
5135
5136 PR server/17023
5137 * mem-break.c (z_type_supported): Return zero if
5138 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5139
012370f6
TT
51402014-06-04 Tom Tromey <tromey@redhat.com>
5141
5142 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5143 value_from_contents_and_address_unresolved.
5144 (ada_template_to_fixed_record_type_1): Likewise.
5145 (ada_which_variant_applies): Likewise.
5146 * value.h (value_from_contents_and_address_unresolved): Declare.
5147 * value.c (value_from_contents_and_address_unresolved): New
5148 function.
5149 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5150 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5151 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5152
92e2a17f
TT
51532014-06-04 Tom Tromey <tromey@redhat.com>
5154
5155 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5156
c0939df1
TT
51572014-06-04 Tom Tromey <tromey@redhat.com>
5158
5159 * procfs.c (procfs_attach): Make "args" const.
5160 * windows-nat.c (windows_attach): Make "args" const.
5161 * nto-procfs.c (procfs_attach): Make "args" const.
5162 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5163 * go32-nat.c (go32_attach): Make "args" const.
5164 * gnu-nat.c (gnu_attach): Make "args" const.
5165 * darwin-nat.c (darwin_attach): Make "args" const.
5166 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5167 * linux-nat.c (linux_nat_attach): Make "args" const.
5168 * remote.c (extended_remote_attach_1, extended_remote_attach):
5169 Make "args" const.
5170 * target.h (struct target_ops) <to_attach>: Make "args" const.
5171 (find_default_attach): Likewise.
5172 * utils.c (parse_pid_to_attach): Make "args" const.
5173 * utils.h (parse_pid_to_attach): Update.
5174
8eaff7cd
TT
51752014-06-04 Tom Tromey <tromey@redhat.com>
5176
5177 * target-delegates.c: Rebuild.
5178 * target.c (default_thread_address_space): New function.
5179 (target_thread_address_space): Simplify.
5180 * target.h (struct target_ops) <to_thread_address_space>: Add
5181 TARGET_DEFAULT_FUNC.
5182
1913f160
DE
51832014-06-04 Doug Evans <xdje42@gmail.com>
5184
5185 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5186
70ad5bff
MM
51872014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5188
5189 * record-btrace.c: Include event-loop.h and inf-loop.h.
5190 (record_btrace_resume_exec_dir)
5191 (record_btrace_async_inferior_event_handler)
5192 (record_btrace_handle_async_inferior_event): New.
5193 (record_btrace_open): Create async event handler.
5194 (record_btrace_close): Delete async event handler.
5195 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5196 Mark async event handler.
5197 (record_btrace_execution_direction): New.
5198 (init_record_btrace_ops): Initialize to_execution_direction.
5199
b6210538
DE
52002014-06-03 Doug Evans <xdje42@gmail.com>
5201
5202 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5203 (gdbscm_make_parameter): Ditto.
5204
a5b1fd27
DE
52052014-06-03 Doug Evans <dje@google.com>
5206
5207 * exec.c (exec_close_1): Call clear_section_table instead of
5208 resize_section_table.
5209 (clear_section_table): New function.
5210 (resize_section_table): Make static. Rename arg num_added to
5211 adjustment.
5212 * exec.h (clear_section_table): Declare.
5213 (resize_section_table): Delete.
5214 * progspace.c (release_program_space): Call clear_section_table
5215 instead of resize_section_table.
5216
0c6e92a5
SC
52172014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5218
5219 * NEWS (Python Scripting): Add entry about the new xmethods
5220 feature.
5221
883964a7
SC
52222014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5223
5224 * python/py-xmethods.c: New file.
5225 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5226 (objfpy_dealloc): XDECREF on the new xmethods field.
5227 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5228 field.
5229 (objfpy_get_xmethods): New function.
5230 (objfile_getset): New entry 'xmethods'.
5231 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5232 (pspy_dealloc): XDECREF on the new xmethods field.
5233 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5234 field.
5235 (pspy_get_xmethods): New function.
5236 (pspace_getset): New entry 'xmethods'.
5237 * python/python-internal.h: Add declarations for new functions.
5238 * python/python.c (_initialize_python): Invoke
5239 gdbpy_initialize_xmethods.
5240 * python/lib/gdb/__init__.py (xmethods): New
5241 attribute.
5242 * python/lib/gdb/xmethod.py: New file.
5243 * python/lib/gdb/command/xmethods.py: New file.
5244
58992dc5
SC
52452014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5246
5247 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5248 best match method returned by find_overload_match is an xmethod.
5249 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5250 the best matching operator returned by find_overload_match is an
5251 xmethod.
5252 * valops.c: #include "extension.h".
5253 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5254 Return void. The list of matching source methods is returned in
5255 "fn_list" and a vector of matching debug method workers is
5256 returned in "xm_worker_vec". Update all callers.
5257 (value_find_oload_method_list): Likewise.
5258 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5259 non-NULL, then the index of the best matching method in this
5260 vector is returned. Update all callers.
5261 (find_overload_match): Include xmethods while performing overload
5262 resolution.
5263
e81e7f5e
SC
52642014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5265
5266 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5267 * extension-priv.h (struct extension_language_ops): Add the
5268 xmethod interface.
5269 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5270 get_matching_xmethod_workers, get_xmethod_argtypes,
5271 invoke_xmethod, free_xmethod_worker,
5272 free_xmethod_worker_vec): New functions.
5273 * extension.h: #include "common/vec.h".
5274 New function declarations.
5275 (struct xmethod_worker): New struct.
5276 (VEC (xmethod_worker_ptr)): New vector type.
5277 (xmethod_worker_ptr): New typedef.
5278 (xmethod_worker_vec): Likewise.
5279 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5280 builtin_type.
5281 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5282 (struct builtin_type): New field "xmethod".
5283 * valarith.c (value_ptradd): Assert that the value argument is not
5284 lval_xcallable.
5285 * valops.c (value_must_coerce_to_target): Return 0 for
5286 lval_xcallable values.
5287 * value.c (struct value): New field XM_WORKER in the field
5288 LOCATION.
5289 (value_address, value_raw_address): Return 0 for lval_xcallable
5290 values.
5291 (set_value_address): Assert that the value is not an
5292 lval_xcallable.
5293 (value_free): Free the associated xmethod worker when freeing
5294 lval_xcallable values.
5295 (set_value_component_location): Assert that the WHOLE value is not
5296 lval_xcallable.
5297 (value_of_xmethod, call_xmethod): New functions.
5298 * value.h: Declare "struct xmethod_worker".
5299 Declare new functions value_of_xmethod, call_xmethod.
5300
ef370185
JB
53012014-06-03 Joel Brobecker <brobecker@adacore.com>
5302 Pedro Alves <palves@redhat.com>
5303
5304 PR breakpoints/17000
5305 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5306 New function, extracted from software_breakpoint_inserted_here_p.
5307 (software_breakpoint_inserted_here_p): Replace factored out code
5308 by call to find_non_raw_software_breakpoint_inserted_here.
5309 (bp_target_info_copy_insertion_state): New function.
5310 (bkpt_insert_location): Handle the case of a single-step
5311 breakpoint already inserted at the same address.
5312 (bkpt_remove_location): Handle the case of a single-step
5313 breakpoint still inserted at the same address.
5314 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5315 breakpoint already inserted at the same address.
5316 (deprecated_remove_raw_breakpoint): Handle the case of a
5317 non-raw breakpoint still inserted at the same address.
5318 (find_single_step_breakpoint): New function, extracted from
5319 single_step_breakpoint_inserted_here_p.
5320 (find_single_step_breakpoint): New function,
5321 factored out from single_step_breakpoint_inserted_here_p.
5322 (single_step_breakpoint_inserted_here_p): Reimplement.
5323
1e2ccb61
BM
53242014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5325
5326 Pushed by Joel Brobecker <brobecker@adacore.com>
5327 * source.c (show_substitute_path_command): Fix display of matching
5328 substitution rules.
5329
d3448d85
GB
53302014-06-03 Gary Benson <gbenson@redhat.com>
5331
5332 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5333
06eb1586
DE
53342014-06-02 Doug Evans <xdje42@gmail.com>
5335
5336 Add parameter support for Guile.
5337 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5338 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5339 (scm-param.o): New rule.
5340 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5341 (gdbscm_misc_error): Declare.
5342 (gdbscm_canonicalize_command_name): Declare.
5343 (gdbscm_scm_to_host_string): Declare.
5344 (gdbscm_scm_from_host_string): Declare.
5345 (gdbscm_initialize_parameters): Declare.
5346 * guile/guile.c (initialize_gdb_module): Call
5347 gdbscm_initialize_parameters.
5348 * guile/lib/gdb.scm: Export parameter symbols.
5349 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5350 cmdscm_canonicalize_name and made public. All callers updated.
5351 * guile/scm-exception.c (gdbscm_misc_error): New function.
5352 * guile/scm-param.c: New file.
5353 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5354 (gdbscm_scm_to_host_string): New function.
5355 (gdbscm_scm_from_host_string): New function.
5356 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5357
e698b8c4
DE
53582014-06-02 Doug Evans <xdje42@gmail.com>
5359
5360 Add command support for Guile.
5361 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5362 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5363 (scm-cmd.o): New rule.
5364 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5365 (gdbscm_user_error_p): Declare.
5366 (gdbscm_parse_command_name): Declare.
5367 (gdbscm_valid_command_class_p): Declare.
5368 (gdbscm_initialize_commands): Declare.
5369 * guile/guile.c (initialize_gdb_module): Call
5370 gdbscm_initialize_commands.
5371 * guile/lib/gdb.scm: Export command symbols.
5372 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5373 (throw-user-error): New function.
5374 * guile/scm-cmd.c: New file.
5375 * guile/scm-exception.c (user_error_symbol): New static global.
5376 (gdbscm_user_error_p): New function.
5377 (gdbscm_initialize_exceptions): Set user_error_symbol.
5378 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5379
fb1f94b0
PM
53802014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5381
5382 * top.c (command_loop): Handle comments here...
5383 (command_line_input): ... not here.
5384
ded03782
DE
53852014-06-02 Doug Evans <xdje42@gmail.com>
5386
5387 Add progspace support for Guile.
5388 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5389 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5390 (scm-progspace.o): New rule.
5391 * guile/guile-internal.h (pspace_smob): New typedef.
5392 (psscm_pspace_smob_pretty_printers): Declare.
5393 (psscm_pspace_smob_from_pspace): Declare.
5394 (psscm_scm_from_pspace): Declare.
5395 * guile/guile.c (initialize_gdb_module): Call
5396 gdbscm_initialize_pspaces.
5397 * guile/lib/gdb.scm: Export progspace symbols.
5398 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5399 support.
5400 (append-pretty-printer!): Ditto.
5401 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5402 Implement.
5403 * guile/scm-progspace.c: New file.
5404
397998fc
AM
54052014-06-03 Alan Modra <amodra@gmail.com>
5406
5407 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5408 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5409
6aa5f3a6
DE
54102014-06-02 Doug Evans <dje@google.com>
5411
5412 Add support for skeletonless type units.
5413 * dwarf2read.c (struct dwarf2_per_objfile): New member
5414 n_allocated_type_units.
5415 (struct dwarf2_per_objfile) <tu_stats>: New member
5416 nr_all_type_units_reallocs.
5417 (create_signatured_type_table_from_index): Initialize
5418 n_allocated_type_units
5419 (create_all_type_units): Ditto.
5420 (add_type_unit): Move up in file. New arg slot.
5421 All callers updated. Increase space for all_type_units more
5422 efficiently.
5423 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5424 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5425 (lookup_dwp_signatured_type): Ditto.
5426 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5427 All callers updated.
5428 (build_type_psymtabs_1): Leave type_unit_groups as
5429 NULL if no TUs present.
5430 (print_tu_stats): New function.
5431 (process_skeletonless_type_unit): New function.
5432 (process_dwo_file_for_skeletonless_type_units): New
5433 function.
5434 (process_skeletonless_type_units): New function.
5435 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5436 Call print tu_stats if debugging enabled.
5437
41fac0cf
PA
54382014-06-02 Pedro Alves <palves@redhat.com>
5439
5440 * breakpoint.c (build_target_command_list): Don't build a command
5441 list if we have any duplicate location that isn't a dprintf.
5442
cd1608cc
PA
54432014-06-02 Pedro Alves <palves@redhat.com>
5444
5445 * breakpoint.c (dprintf_breakpoint_hit): New function.
5446 (initialize_breakpoint_ops): Install it as dprintf's
5447 breakpoint_hit method.
5448
486ef3b9
JB
54492014-06-02 Joel Brobecker <brobecker@adacore.com>
5450
5451 * source.c (substitute_path_rule_matches): Simplify using
5452 filename_ncmp instead of FILENAME_CMP.
5453
230cd560
JB
54542014-06-02 Joel Brobecker <brobecker@adacore.com>
5455
5456 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5457
16954d5d
LC
54582014-06-01 Ludovic Courtès <ludo@gnu.org>
5459
5460 * configure.ac: When Guile is available, check for the
5461 availability of 'scm_new_smob'.
5462 * configure, config.h.in: Regenerate.
5463 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5464 function.
5465
53e8a631
AB
54662014-05-30 Andrew Burgess <aburgess@broadcom.com>
5467
5468 * frame.c (struct frame_info): Add stop_string field.
5469 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5470 (get_prev_frame_always): Old content moved into
5471 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5472 TRY_CATCH, handle MEMORY_ERROR exceptions.
5473 (frame_stop_reason_string): New function definition.
5474 * frame.h (unwind_stop_reason_to_string): Extend comment to
5475 mention frame_stop_reason_string.
5476 (frame_stop_reason_string): New function declaration.
5477 * stack.c (frame_info): Switch to frame_stop_reason_string.
5478 (backtrace_command_1): Switch to frame_stop_reason_string.
5479 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5480 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5481 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5482
70e38b8e
AB
54832014-05-30 Andrew Burgess <aburgess@broadcom.com>
5484
5485 * frame.c (frame_stop_reason_string): Rename to ...
5486 (unwind_stop_reason_to_string): this.
5487 * frame.h (frame_stop_reason_string): Rename to ...
5488 (unwind_stop_reason_to_string): this.
5489 * stack.c (frame_info): Update call to frame_stop_reason_string.
5490 (backtrace_command_1): Likewise.
5491 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5492 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5493
938f0e2f
AB
54942014-05-30 Andrew Burgess <aburgess@broadcom.com>
5495
5496 * frame.c (remove_prev_frame): New function.
5497 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5498 remove_prev_frame.
5499
a09dd441
PA
55002014-05-29 Pedro Alves <palves@redhat.com>
5501
5502 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5503 and make it const. When a single-step decays to a continue,
5504 clear 'step', not 'hw_step'. Pass whether the caller wanted
5505 to step to user_visible_resume_ptid, not what we ask the
5506 target to do.
5507
bdc36728
PA
55082014-05-29 Pedro Alves <palves@redhat.com>
5509
5510 * infrun.c (process_event_stop_test, handle_step_into_function)
5511 (handle_step_into_function_backward): Adjust.
5512 Don't set the even thread's stop_step and call stop_waiting before
5513 calling end_stepping_range. Instead do that ...
5514 (end_stepping_range): ... here. Take an ecs pointer parameter.
5515
22bcd14b
PA
55162014-05-29 Pedro Alves <palves@redhat.com>
5517
5518 * infrun.c (stop_stepping): Rename to ...
5519 (stop_waiting): ... this.
5520 (proceed): Update comment.
5521 (process_event_stop_test, handle_inferior_event)
5522 (handle_signal_stop, handle_step_into_function)
5523 (handle_step_into_function_backward): Update.
5524
4ae57c05
PA
55252014-05-29 Pedro Alves <palves@redhat.com>
5526
5527 * infcall.c (run_inferior_call): Don't check whether the current
5528 thread is running after the proceed call.
5529
329ea579
PA
55302014-05-29 Pedro Alves <palves@redhat.com>
5531 Tom Tromey <tromey@redhat.com>
5532
5533 * NEWS: Mention "maint set target-async", "set mi-async", and that
5534 background execution commands are now always available.
5535 * target.h (target_async_permitted): Update comment.
5536 * target.c (target_async_permitted, target_async_permitted_1):
5537 Default to 1.
5538 (set_target_async_command): Rename to ...
5539 (maint_set_target_async_command): ... this.
5540 (show_target_async_command): Rename to ...
5541 (maint_show_target_async_command): ... this.
5542 (_initialize_target): Adjust.
5543 * infcmd.c (prepare_execution_command): Make extern.
5544 * inferior.h (prepare_execution_command): Declare.
5545 * infrun.c (set_observer_mode): Leave target async alone.
5546 * mi/mi-interp.c (mi_interpreter_init): Install
5547 mi_on_sync_execution_done as sync_execution_done observer.
5548 (mi_on_sync_execution_done): New function.
5549 (mi_execute_command_input_handler): Don't print the prompt if we
5550 just started a synchronous command with an async target.
5551 (mi_on_resume): Check sync_execution before printing prompt.
5552 * mi/mi-main.h (mi_async_p): Declare.
5553 * mi/mi-main.c: Include gdbcmd.h.
5554 (mi_async_p): New function.
5555 (mi_async, mi_async_1): New globals.
5556 (set_mi_async_command, show_mi_async_command, mi_async): New
5557 functions.
5558 (exec_continue): Call prepare_execution_command.
5559 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5560 (mi_execute_async_cli_command): Use mi_async_p.
5561 (_initialize_mi_main): Install "set mi-async". Make
5562 "target-async" a deprecated alias.
5563
92bcb5f9
PA
55642014-05-29 Pedro Alves <palves@redhat.com>
5565
5566 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5567 (_initialize_cli_interp): Adjust.
5568 * event-loop.c: Include "observer.h".
5569 (start_event_loop): Notify 'command_error' observers instead of
5570 calling display_gdb_prompt. Remove FIXME comment.
5571 * event-top.c (display_gdb_prompt): Remove call into the
5572 interpreters.
5573 * inf-loop.c: Include "observer.h".
5574 (inferior_event_handler): Notify 'command_error' observers instead
5575 of calling display_gdb_prompt.
5576 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5577 observers instead of calling display_gdb_prompt.
5578 * interps.c (interp_set): Don't call display_gdb_prompt.
5579 (current_interp_display_prompt_p): Delete.
5580 * interps.h (interp_prompt_p): Delete declaration.
5581 (interp_prompt_p_ftype): Delete.
5582 (struct interp_procs) <prompt_proc_p>: Delete field.
5583 (current_interp_display_prompt_p): Delete declaration.
5584 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5585 (_initialize_mi_interp): Adjust.
5586 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5587 'command_error' observers.
5588 (tui_on_sync_execution_done, tui_on_command_error): New
5589 functions.
5590 (tui_display_prompt_p): Delete.
5591 (_initialize_tui_interp): Adjust.
5592
fd664c91
PA
55932014-05-29 Pedro Alves <palves@redhat.com>
5594
5595 PR gdb/13860
5596 * cli/cli-interp.c: Include infrun.h and observer.h.
5597 (cli_uiout, cli_interp): New globals.
5598 (cli_on_signal_received, cli_on_end_stepping_range)
5599 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5600 functions.
5601 (cli_interpreter_init): Install them as 'end_stepping_range',
5602 'signal_received' 'signal_exited', 'exited' and 'no_history'
5603 observers.
5604 (_initialize_cli_interp): Remove cli_interp local.
5605 * infrun.c (handle_inferior_event): Call the several stop reason
5606 observers instead of printing the stop reason directly.
5607 (end_stepping_range): New function.
5608 (print_end_stepping_range_reason, print_signal_exited_reason)
5609 (print_exited_reason, print_signal_received_reason)
5610 (print_no_history_reason): Make static, and add an uiout
5611 parameter. Print to that instead of to CURRENT_UIOUT.
5612 * infrun.h (print_end_stepping_range_reason)
5613 (print_signal_exited_reason, print_exited_reason)
5614 (print_signal_received_reason print_no_history_reason): New
5615 declarations.
5616 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5617 'mi_uiout'.
5618 <cli_uiout>: New field.
5619 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5620 uiout for CLI output. Install 'signal_received',
5621 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5622 observers.
5623 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5624 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5625 (mi_on_no_history): New functions.
5626 (ui_out_free_cleanup): Delete function.
5627 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5628 instead use the one already stored in the MI interpreter data.
5629 (mi_ui_out): Adjust.
5630 * tui/tui-interp.c: Include infrun.h and observer.h.
5631 (tui_interp): New global.
5632 (tui_on_signal_received, tui_on_end_stepping_range)
5633 (tui_on_signal_exited, tui_on_exited)
5634 (tui_on_no_history): New functions.
5635 (tui_init): Install them as 'end_stepping_range',
5636 'signal_received' 'signal_exited', 'exited' and 'no_history'
5637 observers.
5638 (_initialize_tui_interp): Delete tui_interp local.
5639
8817a6f2
PA
56402014-05-29 Pedro Alves <palves@redhat.com>
5641
5642 PR gdb/15713
5643 * linux-nat.c (linux_nat_resume_callback): Rename the second
5644 parameter to 'except'. Skip LP if it points to EXCEPT.
5645 (linux_nat_resume): Don't mark the event lwp as not stopped
5646 before resuming sibling lwps. Instead ask
5647 linux_nat_resume_callback to skip the event lwp. Mark it as not
5648 stopped after actually resuming it.
5649 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5650 resuming it.
5651 (wait_lwp): Mark the lwp as stopped here.
5652 (stop_wait_callback): Mark the lwp as not stopped right after
5653 resuming it. Don't mark lwps as stopped here.
5654 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5655 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5656
251bde03
PA
56572014-05-29 Pedro Alves <palves@redhat.com>
5658
5659 PR PR15693
5660 * infrun.c (resume): Determine how much to resume depending on
5661 whether the caller wanted a step, not whether we can hardware step
5662 the target. Mark all threads that we intend to run as running,
5663 unless we're calling an inferior function.
5664 (normal_stop): If the thread is running an infcall, don't finish
5665 thread state.
5666 * target.c (target_resume): Don't mark threads as running here.
5667
7f3c0343
JB
56682014-05-28 Joel Brobecker <brobecker@adacore.com>
5669
5670 * serial.c (_initialize_serial): Remove support for
5671 the "set remotebaud" and "show remotebaud" commands.
5672 * NEWS: Add entry documenting the removal of that command.
5673
ee34b3f9
YQ
56742014-05-28 Yao Qi <yao@codesourcery.com>
5675
5676 * charset.c: Fix typo in comments.
5677
add6c04d
GB
56782014-05-27 Gary Benson <gbenson@redhat.com>
5679
5680 * utils.c (internal_vproblem): Prompt for a bug report.
5681
92c48fc5
AW
56822014-05-26 Andy Wingo <wingo@igalia.com>
5683
5684 * guile/scm-arch.c (arscm_mark_arch_smob):
5685 * guile/scm-block.c (bkscm_mark_block_smob)
5686 (bkscm_mark_block_syms_progress_smob):
5687 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5688 * guile/scm-exception.c (exscm_mark_exception_smob):
5689 * guile/scm-frame.c (frscm_mark_frame_smob):
5690 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5691 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5692 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5693 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5694 (ppscm_mark_pretty_printer_worker_smob):
5695 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5696 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5697 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5698 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5699 mark functions.
5700 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5701 function.
5702
b2715b27
AW
57032014-05-26 Andy Wingo <wingo@igalia.com>
5704 Doug Evans <xdje42@gmail.com>
5705
5706 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5707 empty_base_class. All uses updated.
5708 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5709 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5710 Adapt all callers.
5711 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5712 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5713 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5714 (gdbscm_gsmob_has_property_p, add_property_name)
5715 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5716 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5717 (gdb-object-has-property?, gdb-object-properties): Remove.
5718 (gdb-object-kind): Renamed from gsmob-kind.
5719
214ab2da
AW
57202014-05-26 Andy Wingo <wingo@igalia.com>
5721
5722 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5723 * configure: Regenerate.
5724
589fdceb
MM
57252014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5726
5727 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5728
67b5c0c1
MM
57292014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5730
5731 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5732 (replay_memory_access_read_only, replay_memory_access_read_write)
5733 (replay_memory_access_types, replay_memory_access)
5734 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5735 (cmd_set_record_btrace, cmd_show_record_btrace)
5736 (cmd_show_replay_memory_access): New.
5737 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5738 (record_btrace_remove_breakpoint): Replace
5739 record_btrace_allow_memory_access with replay_memory_access.
5740 (_initialize_record_btrace): Add commands.
5741 * NEWS: Announce it.
5742
036cd381
RR
57432014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5744
5745 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5746
c77c1e42
RR
57472014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5748
5749 * MAINTAINERS (Write After Approval): Move self back from
5750 paper trail.
5751
45741a9c
PA
57522014-05-22 Pedro Alves <palves@redhat.com>
5753
5754 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5755 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5756 (disable_randomization, enum exec_direction_kind)
5757 (execution_direction, stop_registers, start_remote)
5758 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5759 (wait_for_inferior, normal_stop, get_last_target_status)
5760 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5761 (insert_step_resume_breakpoint_at_sal)
5762 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5763 (set_step_info, print_stop_event, signal_stop_state)
5764 (signal_print_state, signal_pass_state, signal_stop_update)
5765 (signal_print_update, signal_pass_update)
5766 (update_signals_program_target, clear_exit_convenience_vars)
5767 (displaced_step_dump_bytes, update_observer_mode)
5768 (signal_catch_update, gdb_signal_from_command): Move
5769 declarations ...
5770 * infrun.h: ... to this new file.
5771 * amd64-tdep.c: Include infrun.h.
5772 * annotate.c: Include infrun.h.
5773 * arch-utils.c: Include infrun.h.
5774 * arm-linux-tdep.c: Include infrun.h.
5775 * arm-tdep.c: Include infrun.h.
5776 * break-catch-sig.c: Include infrun.h.
5777 * breakpoint.c: Include infrun.h.
5778 * common/agent.c: Include infrun.h instead of inferior.h.
5779 * corelow.c: Include infrun.h.
5780 * event-top.c: Include infrun.h.
5781 * go32-nat.c: Include infrun.h.
5782 * i386-tdep.c: Include infrun.h.
5783 * inf-loop.c: Include infrun.h.
5784 * infcall.c: Include infrun.h.
5785 * infcmd.c: Include infrun.h.
5786 * infrun.c: Include infrun.h.
5787 * linux-fork.c: Include infrun.h.
5788 * linux-nat.c: Include infrun.h.
5789 * linux-thread-db.c: Include infrun.h.
5790 * monitor.c: Include infrun.h.
5791 * nto-tdep.c: Include infrun.h.
5792 * procfs.c: Include infrun.h.
5793 * record-btrace.c: Include infrun.h.
5794 * record-full.c: Include infrun.h.
5795 * remote-m32r-sdi.c: Include infrun.h.
5796 * remote-mips.c: Include infrun.h.
5797 * remote-notif.c: Include infrun.h.
5798 * remote-sim.c: Include infrun.h.
5799 * remote.c: Include infrun.h.
5800 * reverse.c: Include infrun.h.
5801 * rs6000-tdep.c: Include infrun.h.
5802 * s390-linux-tdep.c: Include infrun.h.
5803 * solib-irix.c: Include infrun.h.
5804 * solib-osf.c: Include infrun.h.
5805 * solib-svr4.c: Include infrun.h.
5806 * target.c: Include infrun.h.
5807 * top.c: Include infrun.h.
5808 * windows-nat.c: Include infrun.h.
5809 * mi/mi-interp.c: Include infrun.h.
5810 * mi/mi-main.c: Include infrun.h.
5811 * python/py-threadevent.c: Include infrun.h.
5812
98eb56a4
PA
58132014-05-22 Pedro Alves <palves@redhat.com>
5814
5815 * infrun.c (handle_inferior_event): Store the exit code for
5816 --return-child-result here, instead of ...
5817 (print_exited_reason): ... here.
5818
17b2616c
PA
58192014-05-21 Pedro Alves <palves@redhat.com>
5820
5821 PR gdb/13860
5822 * gdbthread.h (struct thread_control_state): New field
5823 `command_interp'.
5824 * infrun.c (follow_fork): Copy the new thread control field to the
5825 child fork thread.
5826 (clear_proceed_status_thread): Clear the new thread control field.
5827 (proceed): Set the new thread control field.
5828 * interps.h (command_interp): Declare.
5829 * interps.c (command_interpreter): New global.
5830 (command_interp): New function.
5831 (interp_exec): Set `command_interpreter' while here.
5832 * cli-out.c (cli_uiout_dtor): New function.
5833 (cli_ui_out_impl): Install it.
5834 * mi/mi-interp.c: Include cli-out.h.
5835 (mi_cmd_interpreter_exec): Add comment.
5836 (restore_current_uiout_cleanup): New function.
5837 (ui_out_free_cleanup): New function.
5838 (mi_on_normal_stop): If finishing an execution command started by
5839 a CLI command, or any kind of breakpoint-like event triggered,
5840 print the stop event to the output (CLI) stream.
5841 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5842
5166082f
PA
58432014-05-21 Pedro Alves <palves@redhat.com>
5844
5845 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5846 current source line having changed.
5847 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5848 * infrun.c (normal_stop): Adjust call to
5849 set_current_sal_from_frame.
5850 * source.c (clear_lines_listed_range): New function.
5851 (set_current_source_symtab_and_line, identify_source_line): Clear
5852 the lines listed range.
5853 (line_info): Handle the first "info line" after the current source
5854 line having changed.
5855 * stack.c (print_stack_frame): Remove center handling.
5856 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5857 center sal.line.
5858
c1ee2fb3
PA
58592014-05-21 Pedro Alves <palves@redhat.com>
5860
5861 * inf-child.c (inf_child_mourn_inferior): New function.
5862 * inf-child.h (inf_child_mourn_inferior): New declaration.
5863 * darwin-nat.c (darwin_mourn_inferior): Use
5864 inf_child_mourn_inferior.
5865 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5866 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5867 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5868 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5869 * windows-nat.c (windows_mourn_inferior): Likewise.
5870
5c6d4fb2
DE
58712014-05-21 Doug Evans <xdje42@gmail.com>
5872
250748cb 5873 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5874
4a2722c5
DE
58752014-05-21 Doug Evans <xdje42@gmail.com>
5876
17292b30 5877 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5878 (gdbscm_out_of_range_error): Ditto.
5879 (gdbscm_memory_error): Ditto.
250748cb
DE
5880 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5881 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5882 (gdbscm_out_of_range_error): Update.
5883 (gdbscm_memory_error): Update.
5884 (gdbscm_scm_to_target_string_unsafe): Delete.
5885
6a3cb8e8
PA
58862014-05-21 Pedro Alves <palves@redhat.com>
5887
5888 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5889 globals.
5890 (inf_child_open_target): New function.
5891 (inf_child_open): Use inf_child_open_target to push the target
5892 instead of erroring out.
5893 (inf_child_disconnect, inf_child_close)
5894 (inf_child_maybe_unpush_target): New functions.
5895 (inf_child_target): Install inf_child_disconnect and
5896 inf_child_close. Store a pointer to the returned object.
5897 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5898 declarations.
5899 * target.c (auto_connect_native_target): New global.
5900 (show_default_run_target): New function.
5901 (find_default_run_target): Return NULL if automatically connecting
5902 to the native target is disabled.
5903 (_initialize_target): Install set/show auto-connect-native-target.
5904 * NEWS: Mention "set auto-connect-native-target", and "target
5905 native".
5906 * linux-nat.c (super_close): New global.
5907 (linux_nat_close): Call super_close.
5908 (linux_nat_add_target): Store a pointer to the base class's
5909 to_close method.
5910 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5911 inf_child_maybe_unpush.
5912 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5913 already pushed.
5914 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5915 the inferior. Use inf_child_maybe_unpush_target.
5916 (inf_ttrace_attach): Don't push the target if it is already
5917 pushed.
5918 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5919 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5920 after mourning the inferior. Use inf_child_maybe_unpush_target.
5921 (darwin_attach_pid): Don't push the target if it is already
5922 pushed.
5923 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5924 mourning the inferior. Use inf_child_maybe_unpush_target.
5925 (gnu_detach): Use inf_child_maybe_unpush_target.
5926 * go32-nat.c (go32_create_inferior): Don't push the target if it
5927 is already pushed.
5928 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5929 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5930 (procfs_open): Rename to ...
5931 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5932 comments. Can target_preopen before changing node. Call
5933 inf_child_open_target to push the target explicitly.
5934 (procfs_attach): Don't push the target if it is already pushed.
5935 (procfs_detach): Use inf_child_maybe_unpush_target.
5936 (procfs_create_inferior): Don't push the target if it is already
5937 pushed.
5938 (nto_native_ops): New global.
5939 (procfs_open): Reimplement.
5940 (procfs_native_open): New function.
5941 (init_procfs_targets): Install procfs_native_open as to_open of
5942 "target native". Store a pointer to the "native" target in
5943 nto_native_ops.
5944 * procfs.c (procfs_attach): Don't push the target if it is already
5945 pushed.
5946 (procfs_detach): Use inf_child_maybe_unpush_target.
5947 (procfs_mourn_inferior): Only unpush the target after mourning the
5948 inferior. Use inf_child_maybe_unpush_target.
5949 (procfs_init_inferior): Don't push the target if it is already
5950 pushed.
5951 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5952 if it is already pushed.
5953
930ee1b1
PA
59542014-05-21 Pedro Alves <palves@redhat.com>
5955
5956 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5957 and "procfs" targets are now called "native" instead.
5958
1f5d1b13
PA
59592014-05-21 Pedro Alves <palves@redhat.com>
5960
5961 * go32-nat.c (go32_open): Delete.
5962 (go32_target): Don't override the to_open method.
5963
132f8e03
PA
59642014-05-21 Pedro Alves <palves@redhat.com>
5965
5966 * nto-procfs.c (procfs_can_run): New function.
5967 (nto_procfs_ops): New global.
5968 (init_procfs_targets): New, based on procfs_target. Install
5969 "target native" in addition to "target procfs".
5970 (_initialize_procfs): Call init_procfs_targets instead of adding
5971 the target here.
5972
03c136c3
PA
59732014-05-21 Pedro Alves <palves@redhat.com>
5974
5975 * windows-nat.c (windows_target): Don't override to_shortname,
5976 to_longname or to_doc.
5977
a635d0f3
PA
59782014-05-21 Pedro Alves <palves@redhat.com>
5979
5980 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5981 to_doc.
5982
4f9b5133
PA
59832014-05-21 Pedro Alves <palves@redhat.com>
5984
5985 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5986 to_shortname, to_longname or to_doc.
5987
bc85afde
PA
59882014-05-21 Pedro Alves <palves@redhat.com>
5989
5990 * go32-nat.c (go32_target): Don't override to_shortname,
5991 to_longname or to_doc.
5992
4ebfc96e
PA
59932014-05-21 Pedro Alves <palves@redhat.com>
5994
5995 * inf-child.c (inf_child_open): Remove mention of "child".
5996 (inf_child_target): Rename target to "native" instead of "child".
5997
2648dfed
AA
59982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5999
6000 * Makefile.in (SFILES): Delete "regset.c".
6001 (COMMON_OBS): Delete "regset.o".
6002 * regset.c: Remove.
6003 * regset.h (regset_alloc): Delete prototype.
6004
b13feb94
AA
60052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6006
6007 * sparc-linux-tdep.c (sparc32_linux_gregset)
6008 (sparc32_linux_fpregset): New static regset structures.
6009 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6010 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6011 'fpregset' fields.
6012 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6013 (sparc64_linux_fpregset): New static regset structures.
6014 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6015 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6016 New static regset structures.
6017 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6018 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6019 New static regset structures.
6020 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6021 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6022 New static regset structures.
6023 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6024 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6025 New static regset structures.
6026 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6027
b4fd25c9
AA
60282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6029
6030 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6031 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6032 register maps ("regmaps") from "*regset" to "*regmap". Do this
6033 for all regmap types and variables.
6034 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6035 (sparc32_linux_supply_core_gregset)
6036 (sparc32_linux_collect_core_gregset)
6037 (sparc32_linux_supply_core_fpregset)
6038 (sparc32_linux_collect_core_fpregset): Likewise.
6039 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6040 (sparc_gregmap, sparc_fpregmap): ... these.
6041 (sparc_supply_gregset, sparc_collect_gregset)
6042 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6043 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6044 (_initialize_sparc_nat): Rename regmaps.
6045 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6046 (sparc_gregmap, sparc_fpregmap): ... these.
6047 (sparc_supply_gregset, sparc_collect_gregset)
6048 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6049 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6050 Rename macros to...
6051 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6052 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6053 Likewise.
6054 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6055 Rename to...
6056 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6057 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6058 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6059 regmaps.
6060 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6061 (sparc32_bsd_fpregset): Rename to...
6062 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6063 (sparc32_bsd_fpregmap): ... these.
6064 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6065 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6066 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6067 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6068 (struct sparc_gregmap, struct sparc_fpregmap)
6069 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6070 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6071 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6072 (sparc32_supply_regset, sparc32_collect_gregset)
6073 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6074 prototypes.
6075 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6076 (sparc64_linux_ptrace_gregmap): ... this.
6077 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6078 (_initialize_sparc64_linux_nat): Rename regmaps.
6079 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6080 (sparc64_linux_core_gregmap): ... this.
6081 (sparc64_linux_supply_core_gregset)
6082 (sparc64_linux_collect_core_gregset)
6083 (sparc64_linux_supply_core_fpregset)
6084 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6085 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6086 (sparc64_sol2_fpregset): Rename to...
6087 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6088 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6089 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6090 regmaps.
6091 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6092 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6093 (sparc64_bsd_fpregset): Rename to...
6094 (struct sparc_gregmap, sparc64_sol2_gregmap)
6095 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6096 (sparc64_bsd_fpregmap): ... these.
6097 (sparc64_supply_gregset, sparc64_collect_gregset)
6098 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6099 prototypes.
6100 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6101 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6102 (sparc64fbsd_gregmap): ... this.
6103 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6104 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6105 Rename regmaps.
6106 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6107 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6108 (sparc64nbsd_collect_fpregset): Likewise.
6109 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6110 (sparc64nbsd_gregmap): ... this.
6111 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6112 regmaps.
6113 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6114 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6115 (sparc64obsd_gregmap): ... this.
6116 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6117 regmaps.
6118 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6119 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6120 (sparc32nbsd_gregmap): ... this.
6121 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6122 regmaps.
6123
8fea3224
AA
61242014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6125
6126 * score-tdep.c (score7_linux_gregset): New static regset
6127 structure.
6128 (score7_linux_regset_from_core_section): Remove dynamic regset
6129 allocation.
6130 (score_gdbarch_init): Drop allocation of tdep structure.
6131 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6132
24534243
AA
61332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6134
6135 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6136 regset structures.
6137 (am33_regset_from_core_section): Remove dynamic regset
6138 allocations.
6139
b7195f27
AA
61402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6141
6142 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6143 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6144 structures.
6145 (mips_linux_regset_from_core_section): Remove dynamic regset
6146 allocations.
6147 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6148 'gregset64', 'fpregset', and 'fpregset64'.
6149 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6150 deleted tdep fields.
6151
ecc37a5a
AA
61522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6153
6154 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6155 regset structures.
6156 (amd64_regset_from_core_section): Remove dynamic regset
6157 allocations.
6158 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6159 structure.
6160 (amd64obsd_regset_from_core_section): Remove dynamic regset
6161 allocation.
6162 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6163 Likewise.
6164 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6165 x86-common regset supply function.
6166 * i386-tdep.c (i386_collect_gregset): Make static.
6167 (i386_gregset): New global regset structure.
6168 (i386_fpregset, i386_xstateregset): New static regset structures.
6169 (i386_regset_from_core_section): Remove dynamic regset
6170 allocations.
6171 (i386_gdbarch_init): Remove initialization of tdep fields
6172 'gregset', 'fpregset', and 'xstateregset'.
6173 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6174 'fpregset', and 'xstateregset'.
6175 (i386_collect_gregset): Remove prototype.
6176 (i386_gregset): New declaration.
6177 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6178 structure.
6179 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6180 allocation.
6181
b7611c43
AA
61822014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6183
6184 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6185 (arm_linux_vfpregset): New static regset structures.
6186 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6187 regset structures.
6188 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6189 and 'vfpregset' fields.
6190
a069a2bd
AA
61912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6192
6193 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6194 (aarch64_linux_fpregset): New static regset structures.
6195 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6196 of regset structures.
6197 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6198 'fpregset' fields.
6199
09424cff
AA
62002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6201
6202 * regset.h (struct regset): Remove gdbarch field.
6203 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6204 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6205 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6206 Likewise.
6207 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6208 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6209 (ppc32_linux_vsxregset): Likewise.
6210 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6211 via the regcache instead of the regset.
6212 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6213 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6214 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6215 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6216 Likewise.
6217
3ca7dae4
AA
62182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6219
6220 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6221 Constify structures.
6222 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6223 (alphanbsd_aout_gregset): Likewise.
6224 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6225 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6226 Likewise.
6227 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6228 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6229 Likewise.
6230 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6231 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6232 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6233 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6234 * m88k-tdep.c (m88k_gregset): Likewise.
6235 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6236 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6237 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6238 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6239 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6240 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6241 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6242 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6243 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6244 Likewise.
6245 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6246 * sh-tdep.h (sh_corefile_gregset): Likewise.
6247 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6248 * vax-tdep.c (vax_gregset): Likewise.
6249
5876f503
JK
62502014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6251
6252 Fix TLS access for -static -pthread.
6253 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6254 (try_thread_db_load_1): Initialize it.
6255 (thread_db_get_thread_local_address): Call it if LM is zero.
6256 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6257 * target.h (struct target_ops) (to_get_thread_local_address): Add
6258 load_module_addr comment.
6259
0256a6ac
PA
62602014-05-21 Pedro Alves <palves@redhat.com>
6261
6262 * dcache.c (dcache_read_memory_partial): If reading the cache line
6263 fails, fallback to reading just the memory the caller wanted.
6264
227533ac
DE
62652014-05-20 Doug Evans <dje@google.com>
6266
6267 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6268 instead of get_current_arch.
6269
936d2992
PA
62702014-05-20 Pedro Alves <palves@redhat.com>
6271
6272 * NEWS: Mention that compare-sections now works with all targets.
6273
6274 * remote.c (PACKET_qCRC): New enum value.
6275 (remote_verify_memory): Don't send qCRC if the target has no
6276 execution. Use packet_support/packet_ok. If the target doesn't
6277 support the qCRC packet, fallback to a deep memory copy.
6278 (compare_sections_command): Say "target image" instead of "remote
6279 executable".
6280 (_initialize_remote): Add PACKET_qCRC to the list of config
6281 packets that have no associated command. Extend comment.
6282 * target.c (simple_verify_memory, default_verify_memory): New
6283 function.
6284 * target.h (struct target_ops) <to_verify_memory>: Default to
6285 default_verify_memory.
6286 (simple_verify_memory): New declaration.
6287 * target-delegates.c: Regenerate.
6288
e59fa00f
MM
62892014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6290
6291 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6292
f2205de0
HZ
62932014-05-20 Hui Zhu <hui@codesourcery.com>
6294 Yao Qi <yao@codesourcery.com>
6295
6296 PR backtrace/16558
6297 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6298 and change address of sp and pc.
6299
c4e54771
TT
63002014-05-19 Tom Tromey <tromey@redhat.com>
6301
6302 * gdbtypes.c (rank_function): Use XNEWVEC.
6303 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6304
73051182
DE
63052014-05-19 Doug Evans <dje@google.com>
6306
6307 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6308 build_type_unit_groups and moved closer to only caller. Remove
6309 arguments. All references updated. Remove outdated .gdb_index
6310 comment.
6311 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6312 build_type_psymtabs_1.
6313
8832e7e3
DE
63142014-05-19 Doug Evans <dje@google.com>
6315
6316 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6317 n_type_unit_groups, all_type_unit_groups. All uses removed.
6318 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6319 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6320 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6321 (add_type_unit_group_to_table): Delete.
6322
cd8ae15e
DE
63232014-05-19 Doug Evans <dje@google.com>
6324
6325 * eval.c (evaluate_subexp_standard): Add some comments.
6326
08f4850b
DE
63272014-05-17 Doug Evans <xdje42@gmail.com>
6328
6329 * progspace.c (remove_program_space): Delete, unused.
6330 * progspace.h (remove_program_space): Ditto.
6331
bed8455c
DE
63322014-05-17 Doug Evans <xdje42@gmail.com>
6333
6334 * inferior.c (prune_inferiors): Fix comment.
6335 (remove_inferior_command): Call prune_program_spaces.
6336
8d551b02
DE
63372014-05-16 Doug Evans <dje@google.com>
6338
6339 New command line option -D.
6340 * NEWS: Mention it.
6341 * main.c (set_gdb_data_directory): New function.
6342 (captured_main): Recognize -D. Flag error for --data-directory "".
6343 Call set_gdb_data_directory.
6344 (print_gdb_help): Print --data-directory, -D.
6345 * main.h (set_gdb_data_directory): Declare.
6346 * top.c (staged_gdb_datadir): New static global.
6347 (set_gdb_datadir): Call set_gdb_data_directory
6348 (show_gdb_datadir): New function.
6349 (init_main): Update init of data-directory parameter.
6350
18848e28
GF
63512014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6352
6353 Import the "dirfd" gnulib module.
6354 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6355 * gnulib/aclocal.m4: Update.
6356 * gnulib/config.in: Update.
6357 * gnulib/configure: Update.
6358 * gnulib/import/Makefile.am: Update.
6359 * gnulib/import/Makefile.in: Update.
6360 * gnulib/import/dirfd.c: New.
6361 * gnulib/import/m4/dirfd.m4: New.
6362 * gnulib/import/m4/gnulib-cache.m4: Update.
6363 * gnulib/import/m4/gnulib-comp.m4: Update.
6364
95c64f92
YQ
63652014-05-16 Pierre Muller <muller@sourceware.org>
6366 Yao Qi <yao@codesourcery.com>
6367
6368 * valprint.c (print_wchar): Move the code on checking whether
6369 W is a printable wide char to the default branch of switch
6370 statement below. Call wchar_printable instead of gdb_iswprint.
6371
cac395ea
TM
63722014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6373
19679eca 6374 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6375 ldr.w and ldrd instructions.
6376
83655187
DE
63772014-05-15 Doug Evans <dje@google.com>
6378
6379 * dwarf2read.c (read_structure_type): Delete outdated comments.
6380
dd756689
TT
63812014-05-14 Tom Tromey <tromey@redhat.com>
6382
6383 * macrocmd.c (print_macro_definition): Reindent.
6384
75ddda77
DE
63852014-05-13 Doug Evans <xdje42@gmail.com>
6386
6387 * python/py-cmd.c (cmdpy_completer): Add comment.
6388 (completers): Make const.
6389
b0f16a3e
SM
63902014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6391
6392 * infrun.c (resume): Remove should_resume (unused). Move up
6393 declaration of resume_ptid.
6394
033c3379
TT
63952014-05-13 Tom Tromey <tromey@redhat.com>
6396
6397 * language.h (unop_type_check): Remove.
6398 (binop_type_check): Don't declare.
6399
9b44a3a5
AA
64002014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6401
6402 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6403 call to regcache_raw_collect.
6404
303a33fa
SM
64052014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6406
6407 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6408 mi_console->quote as the quoting character.
6409
196100a0
SM
64102014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6411
6412 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6413
f989a1c8
TT
64142014-04-29 Tom Tromey <tromey@redhat.com>
6415
6416 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6417 "show debug varobj".
6418
9404b58f
KM
64192014-05-07 Kyle McMartin <kyle@redhat.com>
6420
6421 Pushed by Joel Brobecker <brobecker@adacore.com>.
6422 * aarch64-tdep.c (aarch64_software_single_step): New function.
6423 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6424 with aarch64_software_single_step.
6425
5e49ba57
JB
64262014-05-05 Joel Brobecker <brobecker@adacore.com>
6427
6428 GDB 7.7.1 released.
6429
c888a17d
KS
64302014-05-05 Keith Seitz <keiths@redhat.com>
6431
6432 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6433 variable or history value is successfully parsed.
6434
290a839c
YQ
64352014-05-05 Yao Qi <yao@codesourcery.com>
6436 Pedro Alves <palves@redhat.com>
6437
6438 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6439 address of blocks that intersects the requested range. Trim
6440 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6441 sections.
6442 * ctf.c (ctf_xfer_partial): Likewise.
6443
91256dc2
YQ
64442014-05-05 Yao Qi <yao@codesourcery.com>
6445
6446 * printcmd.c (display_command): Remove the check to
6447 target_has_execution.
6448
07284463
MK
64492014-05-03 Mark Kettenis <kettenis@gnu.org>
6450
6451 * ppcobsd-nat.c: Include "obsd-nat.h".
6452 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6453 add_target.
6454 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6455
30a1e6cc
SDJ
64562014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6457
6458 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6459 and 16-bit signed and unsigned arguments. Update comment.
6460 (stap_parse_probe_arguments): Extend code to handle such
6461 arguments. Use warning instead of complaint to notify about
6462 unrecognized bitness.
6463
f33da99a
SDJ
64642014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6465
6466 PR breakpoints/16889
6467 * stap-probe.c (stap_parse_probe_arguments): Simplify
6468 check for non-prefixed probes (i.e., probes whose
6469 arguments do not start with "N@"). Always set the
6470 argument type to a sane value.
6471
95cf3b38
DT
64722014-05-01 David Taylor <dtaylor@emc.com>
6473
6474 * remote.c (compare_sections_command): Add -r option to compare
6475 all loadable read-only sections.
6476
1cfdf534
SC
64772014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6478
6479 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6480 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6481 Update all callers.
6482 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6483 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6484 Remove unused CORE_ADDR argument. Update all callers.
6485
ca4f7f8b
PA
64862014-04-29 Pedro Alves <palves@redhat.com>
6487
6488 * remote.c (struct packet_config) <detect>: Extend comment.
6489 (add_packet_config_cmd): Don't set the config's detect or support
6490 fields here.
6491 (init_all_packet_configs): Also initialize the config's 'detect'
6492 field.
6493 (reset_all_packet_configs_support): New function.
6494 (remote_open_1): Call reset_all_packet_configs_support instead of
6495 init_all_packet_configs.
6496 (_initialize_remote): Initialize all packet configs. Assert that
6497 all packets have an associated command, except a few known
6498 outliers.
6499
11c1ba78
JB
65002014-04-28 Joel Brobecker <brobecker@adacore.com>
6501
6502 * dwarf2read.c (read_subrange_type): Handle dynamic
6503 DW_AT_lower_bound attributes.
6504
8739bc53
JB
65052014-04-28 Joel Brobecker <brobecker@adacore.com>
6506
6507 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6508 dynamic bounds before computing its upper bound.
6509 (ada_discrete_type_low_bound): Same as above with the lower bound.
6510
6f8a3220
JB
65112014-04-28 Joel Brobecker <brobecker@adacore.com>
6512
6513 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6514 range types. Adjust the array handling implementation to
6515 take advantage of this change.
6516 (resolve_dynamic_range): New function, mostly extracted from
6517 resolve_dynamic_bounds.
6518 (resolve_dynamic_array): New function, mostly extracted from
6519 resolve_dynamic_bounds.
6520 (resolve_dynamic_bounds): Delete.
6521 (resolve_dynamic_type): Reimplement. Add handling of
6522 TYPE_CODE_RANGE types.
6523
4d072ce4
JB
65242014-04-28 Joel Brobecker <brobecker@adacore.com>
6525
6526 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6527 handling of parallel ___XA types.
6528
52865325
JB
65292014-04-28 Joel Brobecker <brobecker@adacore.com>
6530
6531 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6532 unnecessary second call to static_unwrap_type.
6533
433e77fa
HZ
65342014-04-27 Hui Zhu <hui@codesourcery.com>
6535
6536 * stack.c (print_frame_info): Call do_gdb_disassembly with
6537 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6538
b51a69ee
DE
65392014-04-26 Doug Evans <xdje42@gmail.com>
6540
6541 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6542
7ae1a6a6
PA
65432014-04-25 Pedro Alves <palves@redhat.com>
6544
6545 PR server/16255
6546 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6547 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6548 and newline from built string.
6549 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6550 (linux_ptrace_attach_fail_reason): ... this.
6551 * linux-nat.c (linux_nat_attach): Adjust to use
6552 linux_ptrace_attach_fail_reason.
6553
4082afcc
PA
65542014-04-25 Pedro Alves <palves@redhat.com>
6555
6556 * remote.c (struct remote_state): Remove multi_process_aware,
6557 non_stop_aware, cond_tracepoints, cond_breakpoints,
6558 breakpoint_commands, fast_tracepoints, static_tracepoints,
6559 install_in_trace, disconnected_tracing,
6560 enable_disable_tracepoints, string_tracing, and
6561 augmented_libraries_svr4_read fields.
6562 (remote_multi_process_p): Move further below in the file.
6563 (struct packet_config): Add comments.
6564 (update_packet_config): Delete function.
6565 (show_packet_config_cmd): Use packet_config_support.
6566 (add_packet_config_cmd): Use NULL as set callback.
6567 (packet_ok): "set remote foo-packet"-style commands no longer
6568 change config->supported -- adjust.
6569 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6570 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6571 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6572 (PACKET_QNonStop, PACKET_multiprocess_feature)
6573 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6574 (PACKET_DisconnectedTracing_feature)
6575 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6576 (set_remote_protocol_packet_cmd): Delete function.
6577 (packet_config_support, packet_support): New functions.
6578 (set_remote_protocol_Z_packet_cmd): Don't call
6579 update_packet_config.
6580 (remote_query_attached, remote_pass_signals)
6581 (remote_program_signals, remote_threads_info)
6582 (remote_threads_extra_info, remote_start_remote): Use
6583 packet_support.
6584 (remote_start_remote): Use packet_config_support and
6585 packet_support.
6586 (init_all_packet_configs): Set all packets to unknown support,
6587 instead of calling update_packet_config.
6588 (remote_check_symbols): Use packet_support.
6589 (remote_supported_packet): Unconditionally set the packet config's
6590 support status.
6591 (remote_multi_process_feature, remote_non_stop_feature)
6592 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6593 (remote_breakpoint_commands_feature)
6594 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6595 (remote_install_in_trace_feature)
6596 (remote_disconnected_tracing_feature)
6597 (remote_enable_disable_tracepoint_feature)
6598 (remote_string_tracing_feature)
6599 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6600 (remote_protocol_features): Adjust to use remote_supported_packet
6601 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6602 "ConditionalTracepoints", "ConditionalBreakpoints",
6603 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6604 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6605 "EnableDisableTracepoints", and "tracenz".
6606 (remote_query_supported): Use packet_support.
6607 (remote_open_1): Adjust.
6608 (extended_remote_attach_1): Use packet_support. Switch on the
6609 result of packet_ok instead of checking whether the packet ended
6610 up disabled.
6611 (remote_vcont_resume): Use packet_support.
6612 (remote_resume, remote_stop_ns, fetch_register_using_p)
6613 (remote_prepare_to_store, store_register_using_P)
6614 (check_binary_download, remote_write_bytes): Use packet_support.
6615 (remote_vkill): Use packet_support. Switch on the result of
6616 packet_ok instead of checking whether the packet ended up
6617 disabled.
6618 (extended_remote_supports_disable_randomization): Use
6619 packet_support.
6620 (extended_remote_run): Switch on the result of packet_ok instead
6621 of checking whether the packet ended up disabled.
6622 (remote_insert_breakpoint, remote_remove_breakpoint)
6623 (remote_insert_watchpoint, remote_remove_watchpoint)
6624 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6625 packet_support.
6626 (remote_search_memory): Use packet_config_support.
6627 (remote_get_thread_local_address, remote_get_tib_address)
6628 (remote_hostio_send_command, remote_can_execute_reverse): Use
6629 packet_support.
6630 (remote_supports_cond_tracepoints)
6631 (remote_supports_cond_breakpoints)
6632 (remote_supports_fast_tracepoints)
6633 (remote_supports_static_tracepoints)
6634 (remote_supports_install_in_trace)
6635 (remote_supports_enable_disable_tracepoint)
6636 (remote_supports_string_tracing)
6637 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6638 the packet config says the feature is enabled or disabled.
6639 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6640 (remote_get_trace_status): Use packet_support.
6641 (remote_set_disconnected_tracing): Adjust to check whether the
6642 feature is enabled with packet_support.
6643 (remote_set_trace_buffer_size, remote_use_agent)
6644 (remote_can_use_agent, remote_supports_btrace): Use
6645 packet_support.
6646 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6647 Use packet_config_support.
6648 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6649 the packet config says the feature is enabled or disabled.
6650 (set_range_stepping): Use packet_support.
6651
bdb52a22
TT
66522014-04-25 Tom Tromey <tromey@redhat.com>
6653
6654 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6655 argument.
6656
e9475ead
SA
66572014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6658
6659 * NEWS: Mention support for C99 variable length arrays.
6660
82eacd52
JB
66612014-04-24 Joel Brobecker <brobecker@adacore.com>
6662
6663 * ada-lang.c (standard_exc): Expand introductory comment.
6664
01f9f808
MS
66652014-04-24 Michael Sturm <michael.sturm@mintel.com>
6666 Walfred Tedeschi <walfred.tedeschi@intel.com>
6667
6668 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6669 AVX512 registers.
6670 (amd64_linux_read_description): Add code to handle AVX512 xstate
6671 mask and return respective tdesc.
6672 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6673 and features/i386/x32-avx512-linux.c.
6674 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6675 (amd64_linux_core_read_description): Add code to handle AVX512
6676 xstate mask and return respective tdesc.
6677 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6678 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6679 calculation.
6680 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6681 (tdesc_amd64_avx512_linux): New prototype.
6682 (tdesc_x32_avx512_linux): Likewise.
6683 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6684 features/i386/x32-avx512.c.
6685 (amd64_ymm_avx512_names): New register names for pseudo
6686 registers YMM16-31.
6687 (amd64_ymmh_avx512_names): New register names for raw registers
6688 YMMH16-31.
6689 (amd64_k_names): New register names for K registers.
6690 (amd64_zmmh_names): New register names for ZMM raw registers.
6691 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6692 (amd64_xmm_avx512_names): New register names for XMM16-31
6693 registers.
6694 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6695 registers.
6696 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6697 if feature is present.
6698 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6699 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6700 (AMD64_NUM_REGS): Adjust to new number of registers.
6701 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6702 registers supplied via XSTATE by AVX512 registers.
6703 (i386_linux_read_description): Add case for AVX512.
6704 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6705 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6706 (i386_linux_core_read_description): Add case for AVX512.
6707 (i386_linux_init_abi): Install supported register note section
6708 for AVX512.
6709 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6710 AVX512.
6711 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6712 registers to be number of zmm7h + 1.
6713 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6714 * i386-tdep.c: Include features/i386/i386-avx512.c.
6715 (i386_zmm_names): Add ZMM pseudo register names array.
6716 (i386_zmmh_names): Add ZMM raw register names array.
6717 (i386_k_names): Add K raw register names array.
6718 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6719 registers. AVX512 has 16 more ZMM registers than there are YMM
6720 registers.
6721 (i386_zmmh_regnum_p): Add function to look up register number of
6722 ZMM raw registers.
6723 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6724 (i386_k_regnum_p): Likewise for K raw registers.
6725 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6726 registers added by AVX512.
6727 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6728 registers added by AVX512.
6729 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6730 added by AVX512.
6731 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6732 (i386_pseudo_register_name): Add ZMM pseudo registers.
6733 (i386_zmm_type): Construct and return vector registers type for ZMM
6734 registers.
6735 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6736 ZMM0-31 pseudo registers and K registers.
6737 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6738 and YMM16-31 registers from register cache.
6739 (i386_pseudo_register_write): Add code to write K, ZMM and
6740 YMM16-31 registers.
6741 (i386_register_reggroup_p): Add code to include/exclude AVX512
6742 registers in/from respective register groups.
6743 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6744 registers if feature is present in xcr0.
6745 (i386_gdbarch_init): Add code to initialize AVX512 feature
6746 variables in tdep structure, wire in pseudo registers and call
6747 initialize_tdesc_i386_avx512.
6748 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6749 variables.
6750 (i386_regnum): Add AVX512 registers.
6751 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6752 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6753 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6754 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6755 512 bits wide.
6756 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6757 (i386_ymm_avx512_regnum_p): Likewise.
6758 (i386_k_regnum_p): Likewise.
6759 (i386_zmm_regnum_p): Likewise.
6760 (i386_zmmh_regnum_p): Likewise.
6761 * i387-tdep.c : Update year in copyright notice.
6762 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6763 XSAVE buffer.
6764 (XSAVE_YMM_AVX512_ADDR): New macro.
6765 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6766 XSAVE buffer.
6767 (XSAVE_XMM_AVX512_ADDR): New macro.
6768 (xsave_avx512_k_offset): New table for K register offsets in
6769 XSAVE buffer.
6770 (XSAVE_AVX512_K_ADDR): New macro.
6771 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6772 in XSAVE buffer.
6773 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6774 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6775 buffer.
6776 (i387_collect_xsave): Add code to collect AVX512 registers from
6777 XSAVE buffer.
6778 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6779 of XMM16-31 registers.
6780 (I387_NUM_K_REGS): New define for number of K registers.
6781 (I387_K0_REGNUM): New define for K0 register number.
6782 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6783 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6784 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6785 registers.
6786 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6787 (I387_XMM16_REGNUM): New define for XMM16 register number.
6788 (I387_YMM0_REGNUM): New define for YMM0 register number.
6789 (I387_KEND_REGNUM): New define for last K register number.
6790 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6791 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6792 number.
6793 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6794 number.
6795 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6796 size.
6797 * features/Makefile: Add AVX512 related files.
6798 * features/i386/32bit-avx512.xml: New file.
6799 * features/i386/64bit-avx512.xml: Likewise.
6800 * features/i386/amd64-avx512-linux.c: Likewise.
6801 * features/i386/amd64-avx512-linux.xml: Likewise.
6802 * features/i386/amd64-avx512.c: Likewise.
6803 * features/i386/amd64-avx512.xml: Likewise.
6804 * features/i386/i386-avx512-linux.c: Likewise.
6805 * features/i386/i386-avx512-linux.xml: Likewise.
6806 * features/i386/i386-avx512.c: Likewise.
6807 * features/i386/i386-avx512.xml: Likewise.
6808 * features/i386/x32-avx512-linux.c: Likewise.
6809 * features/i386/x32-avx512-linux.xml: Likewise.
6810 * features/i386/x32-avx512.c: Likewise.
6811 * features/i386/x32-avx512.xml: Likewise.
6812 * regformats/i386/amd64-avx512-linux.dat: New file.
6813 * regformats/i386/amd64-avx512.dat: Likewise.
6814 * regformats/i386/i386-avx512-linux.dat: Likewise.
6815 * regformats/i386/i386-avx512.dat: Likewise.
6816 * regformats/i386/x32-avx512-linux.dat: Likewise.
6817 * regformats/i386/x32-avx512.dat: Likewise.
6818 * NEWS: Add note about new support for AVX512.
6819
6820
08351840
PA
68212014-04-23 Pedro Alves <palves@redhat.com>
6822
6823 * breakpoint.c (insert_bp_location): Tolerate errors if the
6824 breakpoint is set in a user-loaded objfile.
6825 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6826 location is marked shlib_disabled. If the breakpoint is set in a
6827 user-loaded objfile is a GDB-side memory breakpoint, validate it
6828 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6829 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6830 flag.
6831 * mem-break.c (memory_validate_breakpoint): New function.
6832 * objfiles.c (userloaded_objfile_contains_address_p): New
6833 function.
6834 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6835 * target.h (memory_validate_breakpoint): New declaration.
6836
076855f9
PA
68372014-04-23 Pedro Alves <palves@redhat.com>
6838
6839 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6840 the breakpoint is set in a shared library, only suppress
6841 errors for software breakpoints, not hardware breakpoints.
6842
483805cf
PA
68432014-04-22 Pedro Alves <palves@redhat.com>
6844
6845 * infrun.c (schedlock_applies): New function, factored out from
6846 find_thread_needs_step_over.
6847 (find_thread_needs_step_over): Use it.
6848 (switch_back_to_stepped_thread): Always clear trap_expected if the
6849 step over is finished. Return early if scheduler locking applies.
6850 Look for the stepping thread and a potential step-over thread with
6851 a single loop.
6852 (currently_stepping_or_nexting_callback): Delete.
6853
a75fef0e
NC
68542014-04-22 Nick Clifton <nickc@redhat.com>
6855
6856 * NEWS: Mention that ARM sim now supports tracing.
6857
48b6e87e
YQ
68582014-04-22 Yao Qi <yao@codesourcery.com>
6859
6860 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6861 to ...
6862 * tracefile.c (tracefile_fetch_registers): ... it. New
6863 function.
6864 * tracefile.h (tracefile_fetch_registers): Declare.
6865 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6866 tracefile_fetch_registers.
6867
17617f2d
EZ
68682014-04-19 Eli Zaretskii <eliz@gnu.org>
6869
6870 PR gdb/14018
6871 * windows-nat.c (thread_rec): Don't display a warning when
6872 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6873 fails for any reason, set th->suspended to -1, so that we don't
6874 try to resume such a thread. Also, don't return NULL in these
6875 cases, to avoid completely ruin the session due to "PC register is
6876 not available" error.
6877 (do_windows_fetch_inferior_registers): Check errors in
6878 GetThreadContext call.
6879 (windows_continue): Accept an additional argument KILLED; if not
6880 zero, ignore errors in the SetThreadContext call, since the
6881 inferior was killed and is shutting down.
6882 (windows_resume, get_windows_debug_event)
6883 (windows_create_inferior, windows_mourn_inferior)
6884 (windows_kill_inferior): All callers of windows_continue changed
6885 to adjust to its new calling sequence.
6886
5723a6fd
YQ
68872014-04-19 Yao Qi <yao@codesourcery.com>
6888
6889 * ctf.c (ctf_open): Call post_create_inferior.
6890
614d5099
YQ
68912014-04-19 Yao Qi <yao@codesourcery.com>
6892
6893 * ctf.c (handle_id): New static variable.
6894 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6895 value. Get the declaration of event "register" and get length
6896 of field "contents".
6897
dac3e710
YQ
68982014-04-19 Yao Qi <yao@codesourcery.com>
6899
6900 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6901
2bca57ba
SC
69022014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6903
6904 * valops.c (oload_method_static): Remove unnecessary argument
6905 METHOD. Update all callers.
6906
51d48146
PA
69072014-04-18 Pedro alves <palves@redhat.com>
6908 Tom Tromey <tromey@redhat.com>
6909
6910 PR backtrace/15558
6911 * frame.c (get_prev_frame_1): Rename to ...
6912 (get_prev_frame_always): ... this, and make extern. Adjust.
6913 (skip_artificial_frames): Use get_prev_frame_always.
6914 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6915 (get_frame_unwind_stop_reason): Adjust to rename.
6916 * frame.h (get_prev_frame_always): Declare.
6917 * inline-frame.c: Include frame.h.
6918 (inline_frame_this_id): Use get_prev_frame_always.
6919
1bdad2e0
TG
69202014-04-18 Tristan Gingold <gingold@adacore.com>
6921
6922 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6923 code by using bfd_mach_o_get_base_address.
6924
7ce16bd4
UW
69252014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6926
6927 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6928 (spu_ax_pseudo_register_collect): New function.
6929 (spu_ax_pseudo_register_push_stack): Likewise.
6930 (spu_dwarf_reg_to_regnum): Likewise.
6931 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6932
2ed3c037
UW
69332014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6934
6935 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6936 Replace FRAME argument with FRAME_ID.
6937 * gdbarch.c, gdbarch.h: Regenerate.
6938 * findvar.c (default_value_from_register): Add GDBARCH argument;
6939 replace FRAME by FRAME_ID. No longer call get_frame_id.
6940 (value_from_register): Update call to gdbarch_value_from_register.
6941 * value.h (default_value_from_register): Update prototype.
6942 * s390-linux-tdep.c (s390_value_from_register): Update interface
6943 and call to default_value_from_register.
6944 * spu-tdep.c (spu_value_from_register): Likewise.
6945
6946 * findvar.c (address_from_register): Remove TYPE argument.
6947 Do not call value_from_register; use gdbarch_value_from_register
6948 with null_frame_id instead.
6949 * value.h (address_from_register): Update prototype.
6950 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6951 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6952 address_from_register interface change.
6953
71e50e83
YQ
69542014-04-17 Yao Qi <yao@codesourcery.com>
6955
6956 * gdbtypes.h: Update comments to link to types and macros'
6957 definitions.
6958
7a23c549
SC
69592014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6960
6961 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6962
22869d73
KS
69632014-04-16 Keith Seitz <keiths@redhat.com>
6964
6965 PR gdb/15827
6966 * dwarf2read.c (skip_one_die): Check that all relative-offset
6967 sibling DIEs fall within range of the current reader's buffer.
6968 (read_partial_die): Likewise.
6969
c4f87ca6
KS
69702014-04-16 Keith Seitz <keiths@redhat.com>
6971
6972 PR c++/16597
6973 * cp-namespace.c (lookup_symbol_file): If the type name of
6974 `this' is NULL, return immediately.
6975
b50c8614
KS
69762014-04-14 Keith Seitz <keiths@redhat.com>
6977
6978 PR c++/16253
6979 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6980 from symbol_matches_domain in symtab.c. All local callers
6981 of symbol_matches_domain updated.
6982 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6983 search STRUCT_DOMAIN.
6984 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6985 independently. standard_lookup will do that automatically.
6986 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6987 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6988 (cp_lookup_symbol_in_namespace): Likewise.
6989 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6990 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6991 may return a STRUCT_DOMAIN match.
6992 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6993 * cp-support.c: Include language.h.
6994 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6995 VAR_DOMAIN.
6996 * psymtab.c (match_partial_symbol): Compare the requested
6997 domain with the symbol's domain directly.
6998 (lookup_partial_symbol): Likewise.
6999 * symtab.c (lookup_symbol_in_language): Explain when/why
7000 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7001 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7002 appropriate languages.
7003 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7004 and moved to ada-lang.c
7005 (lookup_block_symbol): Explain that this function only returns
7006 symbol matching the requested DOMAIN.
7007 Compare the requested domain with the symbol's domain directly.
7008 (iterate_over_symbols): Compare the requested domain with the
7009 symbol's domain directly.
7010 * symtab.h (symbol_matches_domain): Remove.
7011
3d567982
TT
70122014-04-14 Tom Tromey <tromey@redhat.com>
7013
7014 PR c++/15246:
7015 * c-exp.y (type_aggregate_p): New function.
7016 (qualified_name, classify_inner_name): Use it.
7017 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7018 and TYPE_TARGET_TYPE of an enum type.
7019 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7020 an enum type.
7021 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7022 handle TYPE_DECLARED_CLASS.
7023 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7024 types.
7025 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7026 * valops.c (enum_constant_from_type): New function.
7027 (value_aggregate_elt): Use it.
7028 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7029 TYPE_CODE_ENUM.
7030
c848d642
TT
70312014-04-14 Tom Tromey <tromey@redhat.com>
7032
7033 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7034 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7035 const.
7036 * value.h (value_aggregate_elt): Update.
7037
0626fc76
TT
70382014-04-14 Tom Tromey <tromey@redhat.com>
7039
7040 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7041
5ecaaa66
SA
70422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7043
7044 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7045 (evaluate_subexp_standard): Pass noside argument.
7046 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7047 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7048 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7049 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7050 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7051
1612e0c0
SA
70522014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7053
7054 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7055 points to a constant blob.
7056
c451ebe5
SA
70572014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7058
7059 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7060 property and store it as the high bound and flag the range accordingly.
7061 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7062 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7063 * gdbtypes.h (enum range_flags): New enum.
7064 (struct range_bounds): Add flags member.
7065
1d42e4c4
SA
70662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7067
7068 * c-typeprint.c (c_type_print_varspec_suffix): Added
7069 check for not yet resolved high bound. If unresolved, print
7070 "variable length" string to the console instead of random
7071 length.
7072
9f1f738a
SA
70732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7074
7075 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7076 value.
7077 (ada_template_to_fixed_record_type_1): Likewise.
7078 (ada_to_fixed_type_1): Likewise.
7079 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7080 (cp_print_value): Likewise.
7081 * d-valprint.c (dynamic_array_type): Likewise.
7082 * findvar.c (address_of_variable): Likewise.
7083 * jv-valprint.c (java_value_print): Likewise.
7084 * valops.c (value_ind): Likewise.
7085 * value.c (coerce_ref): Likewise.
7086
3c8452d4
SA
70872014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7088
7089 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7090 value and retrieve the dynamic type size.
7091
4ad88275
SA
70922014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7093
7094 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7095 passed to sizeof is dynamic evaluate the argument to compute the length.
7096
80180f79
SA
70972014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7098 Joel Brobecker <brobecker@adacore.com>
7099
7100 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7101 (dwarf2_evaluate_property): New function.
7102 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7103 * dwarf2read.c (attr_to_dynamic_prop): New function.
7104 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7105 attribute.
7106 * gdbtypes.c: Include dwarf2loc.h.
7107 (is_dynamic_type): New function.
7108 (resolve_dynamic_type): New function.
7109 (resolve_dynamic_bounds): New function.
7110 (get_type_length): New function.
7111 (check_typedef): Use get_type_length to compute type length.
7112 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7113 (TYPE_LOW_BOUND_KIND): New macro.
7114 (is_dynamic_type): New function prototype.
7115 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7116 to resolve dynamic properties of the type. Update comment.
7117 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7118
a1556843
RH
71192014-04-14 Richard Henderson <rth@redhat.com>
7120
7121 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7122
0be03e84
DE
71232014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7124 Doug Evans <xdje42@gmail.com>
7125
7126 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7127 dereference TYPE_CODE_REF values.
7128
6b662e19
JB
71292014-04-11 Joel Brobecker <brobecker@adacore.com>
7130
7131 Revert the following changes due to regressions:
7132
7133 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7134 (dwarf2_evaluate_property): New function.
7135 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7136 * dwarf2read.c (attr_to_dynamic_prop): New function.
7137 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7138 attribute.
7139 * gdbtypes.c: Include dwarf2loc.h.
7140 (is_dynamic_type): New function.
7141 (resolve_dynamic_type): New function.
7142 (resolve_dynamic_bounds): New function.
7143 (get_type_length): New function.
7144 (check_typedef): Use get_type_length to compute type length.
7145 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7146 (TYPE_LOW_BOUND_KIND): New macro.
7147 (is_dynamic_type): New function prototype.
7148 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7149 to resolve dynamic properties of the type. Update comment.
7150 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7151
7152 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7153 passed to sizeof is dynamic evaluate the argument to compute the length.
7154
7155 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7156 value and retrieve the dynamic type size.
7157
7158 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7159 (ada_template_to_fixed_record_type_1): Likewise.
7160 (ada_to_fixed_type_1): Likewise.
7161 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7162 (cp_print_value): Likewise.
7163 * d-valprint.c (dynamic_array_type): Likewise.
7164 * eval.c (evaluate_subexp_with_coercion): Likewise.
7165 * findvar.c (address_of_variable): Likewise.
7166 * jv-valprint.c (java_value_print): Likewise.
7167 * valops.c (value_ind): Likewise.
7168 * value.c (coerce_ref): Likewise.
7169
7170 * c-typeprint.c (c_type_print_varspec_suffix): Added
7171 check for not yet resolved high bound. If unresolved, print
7172 "variable length" string to the console instead of random
7173 length.
7174
7175 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7176 property and store it as the high bound and flag the range accordingly.
7177 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7178 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7179 * gdbtypes.h (enum range_flags): New enum.
7180 (struct range_bounds): Add flags member.
7181
7182 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7183 points to a constant blob.
7184
7185 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7186 (evaluate_subexp_standard): Pass noside argument.
7187 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7188 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7189 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7190 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7191 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7192
245a5f0b
KS
71932014-04-11 Keith Seitz <keiths@redhat.com>
7194
7195 PR c++/16675
7196 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7197 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7198 reference types.
7199
3bce8237
SA
72002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7201
7202 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7203 (evaluate_subexp_standard): Pass noside argument.
7204 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7205 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7206 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7207 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7208 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7209
92b09522
SA
72102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7211
7212 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7213 points to a constant blob.
7214
e1969afb
SA
72152014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7216
7217 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7218 property and store it as the high bound and flag the range accordingly.
7219 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7220 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7221 * gdbtypes.h (enum range_flags): New enum.
7222 (struct range_bounds): Add flags member.
7223
b86138fb
SA
72242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7225
7226 * c-typeprint.c (c_type_print_varspec_suffix): Added
7227 check for not yet resolved high bound. If unresolved, print
7228 "variable length" string to the console instead of random
7229 length.
7230
bcd629a4
SA
72312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7232
7233 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7234 (ada_template_to_fixed_record_type_1): Likewise.
7235 (ada_to_fixed_type_1): Likewise.
7236 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7237 (cp_print_value): Likewise.
7238 * d-valprint.c (dynamic_array_type): Likewise.
7239 * eval.c (evaluate_subexp_with_coercion): Likewise.
7240 * findvar.c (address_of_variable): Likewise.
7241 * jv-valprint.c (java_value_print): Likewise.
7242 * valops.c (value_ind): Likewise.
7243 * value.c (coerce_ref): Likewise.
7244
04b19544
SA
72452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7246
7247 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7248 value and retrieve the dynamic type size.
7249
26cb189f
SA
72502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7251
7252 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7253 passed to sizeof is dynamic evaluate the argument to compute the length.
7254
37c1ab67
SA
72552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7256
7257 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7258 (dwarf2_evaluate_property): New function.
7259 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7260 * dwarf2read.c (attr_to_dynamic_prop): New function.
7261 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7262 attribute.
7263 * gdbtypes.c: Include dwarf2loc.h.
7264 (is_dynamic_type): New function.
7265 (resolve_dynamic_type): New function.
7266 (resolve_dynamic_bounds): New function.
7267 (get_type_length): New function.
7268 (check_typedef): Use get_type_length to compute type length.
7269 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7270 (TYPE_LOW_BOUND_KIND): New macro.
7271 (is_dynamic_type): New function prototype.
7272 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7273 to resolve dynamic properties of the type. Update comment.
7274 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7275
729efb13
SA
72762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7277
7278 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7279 declaring high/low bounds and change uses accordingly. Call
7280 create_range_type instead of create_static_range_type.
7281 * gdbtypes.c (create_range_type): New function.
7282 (create_range_type): Convert bounds into struct bound_prop and pass
7283 them to create_range_type.
7284 * gdbtypes.h (struct bound_prop): New struct.
7285 (create_range_type): New function prototype.
7286 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7287 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7288 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7289 part of the bound.
7290 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7291
0c9c3474
SA
72922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7293
7294 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7295 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7296 * ada-lang.c: All uses of create_range_type updated.
7297 * coffread.c: All uses of create_range_type updated.
7298 * dwarf2read.c: All uses of create_range_type updated.
7299 * f-exp.y: All uses of create_range_type updated.
7300 * m2-valprint.c: All uses of create_range_type updated.
7301 * mdebugread.c: All uses of create_range_type updated.
7302 * stabsread.c: All uses of create_range_type updated.
7303 * valops.c: All uses of create_range_type updated.
7304 * valprint.c: All uses of create_range_type updated.
7305
9d497a19
PA
73062014-04-10 Pedro Alves <palves@redhat.com>
7307
7308 * breakpoint.c (single_step_breakpoints)
7309 (single_step_gdbarch): Move up in the file.
7310 (one_breakpoint_xfer_memory): New function, factored out from ...
7311 (breakpoint_xfer_memory): ... here. Also process single-step
7312 breakpoints.
7313
15a9128a
TG
73142014-04-09 Tristan Gingold <gingold@adacore.com>
7315
7316 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7317 comments.
7318 (darwin_decode_exception_message): Free port only after use.
7319
9c97a070
PL
73202014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7321
7322 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7323 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7324 when setting the size of call_length.
7325
7af389b8
SC
73262014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7327
7328 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7329 dereference TYPE_CODE_REF values.
7330
86ad98c3
JB
73312014-04-07 Joel Brobecker <brobecker@adacore.com>
7332
7333 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7334 end of warning message.
7335
b0aeadb3
DE
73362014-04-03 Doug Evans <dje@google.com>
7337
7338 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7339 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7340
5979d6b6
AM
73412014-04-02 Alan Modra <amodra@gmail.com>
7342
7343 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7344 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7345 (struct symbol_file_add_from_memory_args): Add size field.
7346 (find_vdso_size): New function.
7347 (add_vsyscall_page): Attempt to find vdso size.
7348
0d60c288
DE
73492014-04-01 Doug Evans <dje@google.com>
7350
7351 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7352
a41f2563
TG
73532014-04-01 Tristan Gingold <gingold@adacore.com>
7354
7355 * darwin-nat.c (darwin_encode_reply): Add prototype.
7356 (darwin_decode_exception_message): Reply to unknown inferiors.
7357 (darwin_decode_message): Handle message by id. Ignore message
7358 to unknown inferior.
7359 (darwin_wait): Discard unknown messages, add debug trace.
7360
11a865c8
DE
73612014-03-31 Doug Evans <dje@google.com>
7362
7363 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7364 comp_dir_string.
7365
770e7fc7
DE
73662014-03-31 Doug Evans <dje@google.com>
7367
7368 New option "set print symbol-loading".
7369 * NEWS: Mention it.
7370 * solib.c (solib_read_symbols): Only print symbol loading messages
7371 if requested.
7372 (solib_add): If symbol loading is in "brief" mode, notify user
7373 symbols are being loaded.
7374 (reload_shared_libraries_1): Ditto.
7375 * symfile.c (print_symbol_loading_off): New static global.
7376 (print_symbol_loading_brief): New static global.
7377 (print_symbol_loading_full): New static global.
7378 (print_symbol_loading_enums): New static global.
7379 (print_symbol_loading): New static global.
7380 (print_symbol_loading_p): New function.
7381 (symbol_file_add_with_addrs): Only print symbol loading messages
7382 if requested.
7383 (_initialize_symfile): Register "print symbol-loading" set/show
7384 command.
7385 * symfile.h (print_symbol_loading_p): Declare.
7386
c32c64b7
DE
73872014-03-30 Doug Evans <xdje42@gmail.com>
7388
7389 * infrun.c (set_last_target_status): New function.
7390 (handle_inferior_event): Call it.
7391
7c0bc051
DE
73922014-03-30 Doug Evans <xdje42@gmail.com>
7393
7394 * inferior.h (enum stop_kind): Improve comment.
7395
8776cfe9
JB
73962014-03-28 Joel Brobecker <brobecker@adacore.com>
7397
7398 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7399 a reference, strip the reference layer before calling
7400 the lang_ops value_has_mutated callback.
7401
410a0ff2
SDJ
74022014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7403
7404 Remove some globals from our parser.
7405 * language.c (unk_lang_parser): Add "struct parser_state"
7406 argument.
7407 * language.h (struct language_defn) <la_parser>: Likewise.
7408 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7409 (initialize_expout): Add "struct parser_state" argument.
7410 Rewrite function to use the parser state.
7411 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7412 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7413 write_exp_elt_longcst, write_exp_elt_dblcst,
7414 write_exp_elt_decfloatcst, write_exp_elt_type,
7415 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7416 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7417 write_dollar_variable): Likewise.
7418 (parse_exp_in_context_1): Use parser state.
7419 (insert_type_address_space): Add "struct parser_state" argument.
7420 Use parser state.
7421 (increase_expout_size): New function.
7422 * parser-defs.h: Forward declare "struct language_defn" and
7423 "struct parser_state".
7424 (expout, expout_size, expout_ptr): Remove extern declarations.
7425 (parse_gdbarch, parse_language): Rewrite macro declarations to
7426 accept the parser state.
7427 (struct parser_state): New struct.
7428 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7429 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7430 write_exp_elt_decfloatcst, write_exp_elt_type,
7431 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7432 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7433 write_exp_msymbol, write_dollar_variable,
7434 mark_struct_expression, insert_type_address_space): Add "struct
7435 parser_state" argument.
7436 (increase_expout_size): New function.
7437 * utils.c (do_clear_parser_state): New function.
7438 (make_cleanup_clear_parser_state): Likewise.
7439 * utils.h (make_cleanup_clear_parser_state): New function
7440 prototype.
7441 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7442 Update calls to write_exp* in order to pass the parser state.
7443 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7444 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7445 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7446 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7447 * stap-probe.c (stap_parse_register_operand): Likewise.
7448 (stap_parse_single_operand): Likewise.
7449 (stap_parse_argument_1): Likewise.
7450 (stap_parse_argument): Use parser state.
7451 * stap-probe.h: Include "parser-defs.h".
7452 (struct stap_parse_info) <pstate>: New field.
7453 * c-exp.y (parse_type): Rewrite to use parser state.
7454 (yyparse): Redefine to c_parse_internal.
7455 (pstate): New global variable.
7456 (parse_number): Add "struct parser_state" argument.
7457 (write_destructor_name): Likewise.
7458 (type_exp): Update calls to write_exp* and similars in order to
7459 use parser state.
7460 (exp1, exp, variable, qualified_name, space_identifier,
7461 typename, typebase): Likewise.
7462 (write_destructor_name, parse_number, lex_one_token,
7463 classify_name, classify_inner_name, c_parse): Add "struct
7464 parser_state" argument. Update function to use parser state.
7465 * c-lang.h: Forward declare "struct parser_state".
7466 (c_parse): Add "struct parser_state" argument.
7467 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7468 (yyparse): Redefine macro to ada_parse_internal.
7469 (pstate): New variable.
7470 (write_int, write_object_renaming, write_var_or_type,
7471 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7472 type_int, type_long, type_long_long, type_float, type_double,
7473 type_long_double, type_char, type_boolean, type_system_address):
7474 Add "struct parser_state" argument.
7475 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7476 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7477 var_or_type, aggregate, aggregate_component_list,
7478 positional_list, others, component_group,
7479 component_associations): Update calls to write_exp* and similar
7480 functions in order to use parser state.
7481 (ada_parse, write_var_from_sym, write_int,
7482 write_exp_op_with_string, write_object_renaming,
7483 find_primitive_type, write_selectors, write_ambiguous_var,
7484 write_var_or_type, write_name_assoc, type_int, type_long,
7485 type_long_long, type_float, type_double, type_long_double,
7486 type_char, type_boolean, type_system_address): Add "struct
7487 parser_state" argument. Adjust function to use parser state.
7488 * ada-lang.c (parse): Likewise.
7489 * ada-lang.h: Forward declare "struct parser_state".
7490 (ada_parse): Add "struct parser_state" argument.
7491 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7492 calls to both functions.
7493 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7494 parser state.
7495 (yyparse): Redefine macro to f_parse_internal.
7496 (pstate): New variable.
7497 (parse_number): Add "struct parser_state" argument.
7498 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7499 and similars in order to use parser state.
7500 (parse_number): Adjust code to use parser state.
7501 (yylex): Likewise.
7502 (f_parse): New function.
7503 * f-lang.h: Forward declare "struct parser_state".
7504 (f_parse): Add "struct parser_state" argument.
7505 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7506 parser state.
7507 (yyparse): Redefine macro for java_parse_internal.
7508 (pstate): New variable.
7509 (push_expression_name, push_expression_name, insert_exp): Add
7510 "struct parser_state" argument.
7511 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7512 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7513 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7514 PostIncrementExpression, PostDecrementExpression,
7515 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7516 UnaryExpressionNotPlusMinus, CastExpression,
7517 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7518 RelationalExpression, EqualityExpression, AndExpression,
7519 ExclusiveOrExpression, InclusiveOrExpression,
7520 ConditionalAndExpression, ConditionalOrExpression,
7521 ConditionalExpression, Assignment, LeftHandSide): Update
7522 calls to write_exp* and similars in order to use parser state.
7523 (parse_number): Ajust code to use parser state.
7524 (yylex): Likewise.
7525 (java_parse): New function.
7526 (push_variable): Add "struct parser_state" argument. Adjust
7527 code to user parser state.
7528 (push_fieldnames, push_qualified_expression_name,
7529 push_expression_name, insert_exp): Likewise.
7530 * jv-lang.h: Forward declare "struct parser_state".
7531 (java_parse): Add "struct parser_state" argument.
7532 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7533 parser state.
7534 (yyparse): Redefine macro to m2_parse_internal.
7535 (pstate): New variable.
7536 (type_exp, exp, fblock, variable, type): Update calls to
7537 write_exp* and similars to use parser state.
7538 (yylex): Likewise.
7539 (m2_parse): New function.
7540 * m2-lang.h: Forward declare "struct parser_state".
7541 (m2_parse): Add "struct parser_state" argument.
7542 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7543 * objc-lang.h: Forward declare "struct parser_state".
7544 (end_msglist): Add "struct parser_state" argument.
7545 * p-exp.y (parse_type): Rewrite macro to use parser state.
7546 (yyparse): Redefine macro to pascal_parse_internal.
7547 (pstate): New variable.
7548 (parse_number): Add "struct parser_state" argument.
7549 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7550 write_exp* and similars in order to use parser state.
7551 (parse_number, yylex): Adjust code to use parser state.
7552 (pascal_parse): New function.
7553 * p-lang.h: Forward declare "struct parser_state".
7554 (pascal_parse): Add "struct parser_state" argument.
7555 * go-exp.y (parse_type): Rewrite macro to use parser state.
7556 (yyparse): Redefine macro to go_parse_internal.
7557 (pstate): New variable.
7558 (parse_number): Add "struct parser_state" argument.
7559 (type_exp, exp1, exp, variable, type): Update calls to
7560 write_exp* and similars in order to use parser state.
7561 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7562 to use parser state.
7563 (go_parse): Likewise.
7564 * go-lang.h: Forward declare "struct parser_state".
7565 (go_parse): Add "struct parser_state" argument.
7566
342587c4
DE
75672014-03-27 Doug Evans <dje@google.com>
7568
7569 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7570
33e80786
DE
75712014-03-27 Doug Evans <dje@google.com>
7572
7573 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7574 Remove argument abbrev_section. All callers updated.
7575
1dbab08b
DE
75762014-03-27 Doug Evans <dje@google.com>
7577
7578 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7579 addr_base, ranges_base.
7580
318d3177
KS
75812014-03-26 Keith Seitz <keiths@redhat.com>
7582
7583 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7584 types, not VAR_DOMAIN.
7585
1e54db15
SL
75862014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7587
7588 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7589 "ra" registers.
7590 * features/nios2-linux.c: Regenerated.
7591 * features/nios2.c: Regenerated.
7592
d3839ede
PA
75932014-03-25 Pedro Alves <palves@redhat.com>
7594
7595 * cli/cli-script.c (script_from_file): Force the interpreter to
7596 sync mode.
7597
7588d2ec
PL
75982014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7599
7600 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7601 small stack allocation.
7602
a6290449
TG
76032014-03-24 Tristan Gingold <gingold@adacore.com>
7604
7605 * darwin-nat.c (exc_server): Remove unused prototype.
7606 (darwin_dump_message): Correctly display data on x86_64.
7607 (darwin_encode_reply): Fix style.
7608 Add comments and fix indentation.
7609
31ae9d24 76102014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7611
7612 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7613
6339bfc4
DE
76142014-03-22 Doug Evans <xdje42@gmail.com>
7615
7616 * infcmd.c: Whitespace fixes.
7617 (interrupt_command): Merge two function comments into one.
7618
0a07590b
DE
76192014-03-22 Doug Evans <xdje42@gmail.com>
7620
7621 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7622 All uses updated.
7623
b55fbac4
YQ
76242014-03-22 Yao Qi <yao@codesourcery.com>
7625
7626 * remote.c (target_read_live_memory): Remove.
7627 (memory_xfer_live_readonly_partial): Rename it to
7628 remote_xfer_live_readonly_partial. Remove argument 'object'.
7629 All callers updated. Call remote_read_bytes_1
7630 instead of target_read_live_memory.
7631 * tracepoint.c (set_traceframe_number): Remove.
7632 (make_cleanup_restore_traceframe_number): Likewise .
7633 * tracepoint.h (set_traceframe_number): Remove declaration.
7634 (make_cleanup_restore_traceframe_number): Likewise.
7635
9217e74e
YQ
76362014-03-22 Yao Qi <yao@codesourcery.com>
7637
7638 * remote.c (remote_read_bytes): Move code on reading from the
7639 remote stub to ...
7640 (remote_read_bytes_1): ... here. New function.
7641
8acf9577
YQ
76422014-03-22 Yao Qi <yao@codesourcery.com>
7643
7644 * ctf.c (ctf_xfer_partial): Check the return value of
7645 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7646 return TARGET_XFER_UNAVAILABLE.
7647 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7648 * target.c (target_read_live_memory): Move it to remote.c.
7649 (memory_xfer_live_readonly_partial): Likewise.
7650 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7651 * remote.c (target_read_live_memory): Moved from target.c.
7652 (memory_xfer_live_readonly_partial): Likewise.
7653 (remote_read_bytes): Factored out from
7654 memory_xfer_partial_1.
7655
feef67ab
DE
76562014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7657
7658 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7659 NULL pointer.
7660
b65dc60b
PA
76612014-03-21 Pedro Alves <palves@redhat.com>
7662
7663 * infrun.c (normal_stop): Extend comment.
7664
b4ab256d
HZ
76652014-03-21 Hui Zhu <hui@codesourcery.com>
7666 Pedro Alves <palves@redhat.com>
7667
7668 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7669 static buffer.
7670 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7671 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7672 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7673
deba7593
MR
76742014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7675
7676 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7677 `z' formatted output modifier.
7678
1bff71c3
SDJ
76792014-03-20 Tom Tromey <tromey@redhat.com>
7680 Sergio Durigan Junior <sergiodj@redhat.com>
7681
7682 * probe.c (parse_probes): Turn assert into an ordinary error.
7683 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7684 exceptions when parsing probes. Rearrange the code for clarity.
7685
90e28950
TT
76862014-03-20 Tom Tromey <tromey@redhat.com>
7687
7688 PR gdb/14135
7689 * top.c (execute_command): Only dispatch events if the command
7690 started the target.
7691
beb460e8
PA
76922014-03-20 Tom Tromey <tromey@redhat.com>
7693
7694 PR cli/15718
7695 * infcall.c: Include event-top.h.
7696 (run_inferior_call): Call async_disable_stdin if needed.
7697
99619bea
PA
76982014-03-20 Pedro Alves <palves@redhat.com>
7699
7700 * infrun.c (prepare_to_proceed): Delete.
7701 (thread_still_needs_step_over): New function.
7702 (find_thread_needs_step_over): New function.
7703 (proceed): If the current thread needs a step-over, set its
7704 steping_over_breakpoint flag. Adjust to use
7705 find_thread_needs_step_over instead of prepare_to_proceed.
7706 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7707 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7708 breakpoint.
7709 (switch_back_to_stepped_thread): Step over breakpoints of all
7710 threads not the stepping thread, before switching back to the
7711 stepping thread.
7712
2adfaa28
PA
77132014-03-20 Pedro Alves <palves@redhat.com>
7714
7715 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7716 extern.
7717 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7718 * infrun.c (saved_singlestep_ptid)
7719 (stepping_past_singlestep_breakpoint): Delete.
7720 (resume): Remove stepping_past_singlestep_breakpoint handling.
7721 (proceed): Store the prev_pc of the stepping thread too.
7722 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7723 singlestep_pc.
7724 (enum infwait_states): Delete infwait_thread_hop_state.
7725 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7726 field.
7727 (handle_inferior_event): Adjust.
7728 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7729 handling and the thread-hop code. Before removing single-step
7730 breakpoints, check whether the thread hit a single-step breakpoint
7731 of another thread. If it did, the trap is not a random signal.
7732 (switch_back_to_stepped_thread): If the event thread hit a
7733 single-step breakpoint, unblock it before switching to the
7734 stepping thread. Handle the case of the stepped thread having
7735 advanced already.
7736 (keep_going): Handle the case of the current thread moving past a
7737 single-step breakpoint.
7738
31e77af2
PA
77392014-03-20 Pedro Alves <palves@redhat.com>
7740
7741 PR breakpoints/7143
7742 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7743 are being stepped over.
7744 (breakpoint_address_match): Make extern.
7745 * breakpoint.h (breakpoint_address_match): New declaration.
7746 * inferior.h (stepping_past_instruction_at): New declaration.
7747 * infrun.c (struct step_over_info): New type.
7748 (step_over_info): New global.
7749 (set_step_over_info, clear_step_over_info)
7750 (stepping_past_instruction_at): New functions.
7751 (handle_inferior_event): Clear the step-over info when
7752 trap_expected is cleared.
7753 (resume): Remove now stale comment.
7754 (clear_proceed_status): Clear step-over info.
7755 (proceed): Adjust step-over handling to set or clear the step-over
7756 info instead of removing all breakpoints.
7757 (handle_signal_stop): When setting up a thread-hop, don't remove
7758 breakpoints here.
7759 (stop_stepping): Clear step-over info.
7760 (keep_going): Adjust step-over handling to set or clear step-over
7761 info and then always inserting breakpoints, instead of removing
7762 all breakpoints when stepping over one.
7763
b9f437de
PA
77642014-03-20 Pedro Alves <palves@redhat.com>
7765
7766 * infrun.c (previous_inferior_ptid): Adjust comment.
7767 (deferred_step_ptid): Delete.
7768 (infrun_thread_ptid_changed, prepare_to_proceed)
7769 (init_wait_for_inferior): Adjust.
7770 (handle_signal_stop): Delete deferred_step_ptid handling.
7771
06c868a8
JK
77722014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7773
7774 PR gdb/15358
7775 * defs.h (sync_quit_force_run): New declaration.
7776 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7777 * event-top.c (async_sigterm_handler): New declaration.
7778 (async_sigterm_token): New variable.
7779 (async_init_signals): Create also async_sigterm_token.
7780 (async_sigterm_handler): New function.
7781 (sync_quit_force_run): New variable.
7782 (handle_sigterm): Replace quit_force call by other calls.
7783 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7784
dea80df0
MR
77852014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7786
7787 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7788 offset into SPE pseudo registers.
7789
0c7e1a46
PA
77902014-03-18 Pedro Alves <palves@redhat.com>
7791
7792 PR gdb/13860
7793 * inferior.h (print_stop_event): Declare.
7794 * infrun.c (print_stop_event): New, factored out from ...
7795 (normal_stop): ... this.
7796 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7797 of bpstat_print/print_stack_frame.
7798
9c1fcd01
TT
77992014-03-17 Tom Tromey <tromey@redhat.com>
7800
7801 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7802
11aa919a
PMR
78032014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7804
7805 * ada-lang.c (decode_constrained_packed_array): Perform a
7806 minimal coercion for reference with coerce_ref instead of
7807 ada_coerce_ref.
7808
d4ccb5e0
TG
78092014-03-17 Tristan Gingold <gingold@adacore.com>
7810
7811 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7812 (darwin_solib_create_inferior_hook): Emit a warning if version
7813 is unhandled.
7814
49840f2a
UW
78152014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7816
7817 * python/py-value.c (get_field_flag): Cast flag_name argument to
7818 PyObject_GetAttrString to support Python 2.4.
7819
ed4123e5
JK
78202014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7821
7822 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7823 (Global Maintainers): Remove Jan Kratochvil.
7824
d6b64346
PA
78252014-03-14 Pedro Alves <palves@redhat.com>
7826
7827 * inferior.h (terminal_ours_for_output): Rename to ...
7828 (child_terminal_ours_for_output): ... this.
7829 (terminal_save_ours): Rename to ...
7830 (child_terminal_save_ours): ... this.
7831 (terminal_ours): Rename to ...
7832 (child_terminal_ours): ... this.
7833 (terminal_inferior): Rename to ...
7834 (child_terminal_inferior): ... this.
7835 (terminal_init_inferior): Rename to ...
7836 (child_terminal_init_inferior): ... this.
7837 (terminal_init_inferior_with_pgrp): Rename to ...
7838 (child_terminal_init_inferior_with_pgrp): ... this.
7839 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7840 (child_terminal_init_with_pgrp): ... this.
7841 (terminal_save_ours): Rename to ...
7842 (child_terminal_save_ours): ... this.
7843 (terminal_init_inferior): Rename to ...
7844 (child_terminal_init): ... this. Adjust.
7845 (terminal_inferior): Rename to ...
7846 (child_terminal_inferior): ... this.
7847 (terminal_ours_for_output): Rename to ...
7848 (child_terminal_ours_for_output): ... this. Adjust.
7849 (terminal_ours): Rename to ...
7850 (child_terminal_ours): ... this.
7851 (terminal_ours_1): Rename to ...
7852 (child_terminal_ours_1): ... this. Adjust.
7853 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7854 * windows-nat.c (do_initial_windows_stuff): Adjust.
7855 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7856 (gnu_terminal_init): ... this. Adjust.
7857 (gnu_target): Adjust.
7858 * inf-child.c (inf_child_target): Adjust.
7859
5a1e8c7a
DE
78602014-03-13 Doug Evans <xdje42@gmail.com>
7861
7862 PR guile/16612
7863 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7864 new eq?-hashtab.
7865
350e1a76
DE
78662014-03-13 Doug Evans <xdje42@gmail.com>
7867
7868 * value.c (record_latest_value): Call release_value_or_incref
7869 instead of release_value.
7870
a69900ae
PA
78712014-03-13 Pedro Alves <palves@redhat.com>
7872
7873 * procfs.c (procfs_target): Don't override to_shortname,
7874 to_longname or to_doc.
7875
5db9f0bd
PA
78762014-03-13 Pedro Alves <palves@redhat.com>
7877
7878 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7879 Unix in user visible strings.
7880
5e3a2c38
SS
78812014-03-12 Stan Shebs <stan@codesourcery.com>
7882
7883 * gdbtypes.h: Annotate comments for Doxygen, add a page
7884 block comment with some general info.
7885
8bc2fe48
PA
78862014-03-12 Pedro Alves <palves@redhat.com>
7887
7888 * infcmd.c (prepare_execution_command): New function, factored out
7889 from several execution commands.
7890 (run_command_1, continue_command, step_1, jump_command)
7891 (signal_command, until_command, advance_command, finish_command)
7892 (attach_command): Use prepare_execution_command.
7893
638c5f49
OJ
78942014-03-12 Omair Javaid <omair.javaid@linaro.org>
7895
7896 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7897 (MAX_BPTS): Define.
7898 (MAX_WPTS): Define.
7899 (struct arm_linux_thread_points): Removed.
7900 (struct arm_linux_process_info): New.
7901 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7902 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7903 (arm_linux_find_breakpoints_by_tid): Removed.
7904 (struct arch_lwp_info): New.
7905 (arm_linux_find_process_pid): New functions.
7906 (arm_linux_add_process): New functions.
7907 (arm_linux_process_info_get): New functions.
7908 (arm_linux_forget_process): New function.
7909 (arm_linux_get_debug_reg_state): New function.
7910 (struct update_registers_data): New.
7911 (update_registers_callback): New function.
7912 (arm_linux_insert_hw_breakpoint1): Updated.
7913 (arm_linux_remove_hw_breakpoint1): Updated.
7914 (arm_linux_insert_hw_breakpoint): Updated.
7915 (arm_linux_remove_hw_breakpoint): Updated.
7916 (arm_linux_insert_watchpoint): Updated.
7917 (arm_linux_remove_watchpoint): Updated.
7918 (arm_linux_new_thread): Updated.
7919 (arm_linux_prepare_to_resume): New function.
7920 (arm_linux_new_fork): New function.
7921 (_initialize_arm_linux_nat): Updated.
7922
6d03af93
PA
79232014-03-12 Pedro Alves <palves@redhat.com>
7924
7925 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7926
b3ccfe11
TT
79272014-03-12 Tom Tromey <tromey@redhat.com>
7928
7929 * inf-child.c (return_zero): New function.
7930 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7931 * aix-thread.c (aix_thread_inferior_created): New function.
7932 (aix_thread_attach): Remove.
7933 (init_aix_thread_ops): Don't set to_attach.
7934 (_initialize_aix_thread): Register inferior_created observer.
7935 * corelow.c (init_core_ops): Don't set to_attach or
7936 to_create_inferior.
7937 * exec.c (init_exec_ops): Don't set to_attach or
7938 to_create_inferior.
7939 * infcmd.c (run_command_1): Use find_run_target. Make direct
7940 target calls.
7941 (attach_command): Use find_attach_target. Make direct target
7942 calls.
7943 * record-btrace.c (init_record_btrace_ops): Don't set
7944 to_create_inferior.
7945 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7946 Remove.
7947 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7948 set to_create_inferior.
7949 * target.c (complete_target_initialization): Add assertion.
7950 (target_create_inferior): Remove.
7951 (find_default_attach, find_default_create_inferior): Remove.
7952 (find_attach_target, find_run_target): New functions.
7953 (find_default_is_async_p, find_default_can_async_p)
7954 (target_supports_non_stop, target_attach): Remove.
7955 (init_dummy_target): Don't set to_create_inferior or
7956 to_supports_non_stop.
7957 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7958 TARGET_DEFAULT_FUNC.
7959 <to_create_inferior>: Add comment.
7960 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7961 TARGET_DEFAULT_RETURN.
7962 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7963 (find_attach_target, find_run_target): Declare.
7964 (target_create_inferior): Remove.
7965 (target_has_execution_1): Update comment.
7966 (target_supports_non_stop): Remove.
7967 * target-delegates.c: Rebuild.
7968
91f83b02
PA
79692014-03-12 Pedro Alves <palves@redhat.com>
7970
7971 * inf-child.h: Update comment to not mention Unix.
7972
f1aea813
PA
79732014-03-12 Pedro Alves <palves@redhat.com>
7974
7975 * inf-child.c: Update top comment to not mention Unix. Add
7976 generic comment describing how this target is meant to be used.
7977 (inf_child_post_attach, inf_child_post_startup_inferior)
7978 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7979 Unix in comment.
7980
ee8e9165
PA
79812014-03-12 Pedro Alves <palves@redhat.com>
7982
7983 * nto-procfs.c: Include inf-child.h.
7984 (procfs_ops): Delete global.
7985 (procfs_can_run): Delete method.
7986 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7987 target pointer instead of referencing procfs_ops.
7988 (procfs_prepare_to_store): Delete.
7989 (init_procfs_ops): Delete function.
7990 (procfs_target): New function, based on init_procfs_ops, but
7991 inherit inf_child_target.
7992 (_initialize_procfs): Use procfs_target.
7993
51a9c8c5
PA
79942014-03-12 Pedro Alves <palves@redhat.com>
7995
7996 * windows-nat.c: Include inf-child.h.
7997 (windows_ops): Delete global.
7998 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7999 methods.
8000 (init_windows_ops): Delete function.
8001 (windows_target): New function, based on init_windows_ops, but
8002 inherit inf_child_target.
8003 (_initialize_windows_nat): Use windows_target. Install x86
8004 specific target methods here.
8005
c1966e26
DE
80062014-03-10 Doug Evans <xdje42@gmail.com>
8007
8008 * guile/guile.c (call_initialize_gdb_module): New function.
8009 (initialize_guile): Replace call to scm_init_guile with call to
8010 scm_with_guile.
8011
023db19c
JB
80122014-03-10 Joel Brobecker <brobecker@adacore.com>
8013
8014 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8015 in call to TYPE_CODE macro.
8016
5ec18f2b
JG
80172014-03-10 Jerome Guitton <guitton@adacore.com>
8018
8668be63
JB
8019 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8020 Resolve tagged types to full view.
5ec18f2b 8021
7d03f2eb
HZ
80222014-03-10 Hui Zhu <hui@codesourcery.com>
8023
8024 * target.h (target_insert_breakpoint): Remove "hardware" from its
8025 comments.
8026
c5164cbc
DE
80272014-03-07 Doug Evans <dje@google.com>
8028
8029 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8030
c4a3fee2
DE
80312014-03-07 Doug Evans <dje@google.com>
8032
8033 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8034 Remove unused local comp_dir_attr. Assert exactly one of
8035 stub_comp_unit_die, stub_comp_dir is non-NULL.
8036
3156469c
JB
80372014-03-07 Joel Brobecker <brobecker@adacore.com>
8038
8039 * target.h (complete_target_initialization, add_target):
8040 Add comment.
8041
c1a7b7c6
PA
80422014-03-07 Pedro Alves <palves@redhat.com>
8043
8044 * go32-nat.c: Include inf-child.h.
8045 (go32_ops): Delete global.
8046 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8047 Delete methods.
8048 (go32_create_inferior): Push the passed in target pointer instead
8049 of referencing go32_ops.
8050 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8051 (go32_target): New function, based on init_go32_ops, but inherit
8052 inf_child_target.
8053 (_initialize_go32_nat): Use go32_target. Move parts of
8054 init_go32_ops here.
8055
d3c1a85f
JB
80562014-03-06 Joel Brobecker <brobecker@adacore.com>
8057
8058 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8059 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8060 SYMBOL_VALUE_ADDRESS.
8061 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8062
5fa1d40e
YQ
80632014-03-06 Yao Qi <yao@codesourcery.com>
8064
8065 * breakpoint.c (get_tracepoint_by_number): Remove argument
8066 optional_p. All callers updated. Adjust comments. Update
8067 output message.
8068 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8069
0c13193f
YQ
80702014-03-06 Yao Qi <yao@codesourcery.com>
8071
8072 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8073 early if get_number returns zero. Use 'p' instead of 'args'.
8074
2217da06
YQ
80752014-03-06 Yao Qi <yao@codesourcery.com>
8076
8077 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8078 message.
8079
cc3da688
YQ
80802014-03-06 Yao Qi <yao@codesourcery.com>
8081
8082 PR breakpoints/16508
8083 * tracepoint.c (check_trace_running): New function.
8084 (trace_find_command): Move code to check_trace_running and
8085 call check_trace_running.
8086 (trace_find_pc_command): Likewise.
8087 (trace_find_tracepoint_command): Likewise.
8088 (trace_find_line_command): Likewise.
8089 (trace_find_range_command): Likewise.
8090 * tracepoint.h (check_trace_running): Likewise.
8091 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8092
6a5f844b
YQ
80932014-03-06 Yao Qi <yao@codesourcery.com>
8094
8095 * target.h (struct target_ops) <to_traceframe_info>: Use
8096 TARGET_DEFAULT_NORETURN (tcomplain ()).
8097 * target-delegates.c: Regenerated.
8098
0f26cec1
PA
80992014-03-05 Pedro Alves <palves@redhat.com>
8100
8101 PR gdb/16575
8102 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8103 void. Update comment.
8104 (dcache_xfer_memory): Delete.
8105 (dcache_read_memory_partial): New, based on the read bits of
8106 dcache_xfer_memory.
8107 (dcache_update): Add status parameter. Use ULONGEST for len, and
8108 adjust. Discard cache lines if the reason for the update was
8109 error.
8110 * dcache.h (dcache_xfer_memory): Delete declaration.
8111 (dcache_read_memory_partial): New declaration.
8112 (dcache_update): Update prototype.
8113 * target.c (raw_memory_xfer_partial): Update the dcache here.
8114 (memory_xfer_partial_1): Don't handle dcache writes here.
8115
b2b255bd
MF
81162014-03-05 Mike Frysinger <vapier@gentoo.org>
8117
8118 * remote-sim.c (gdbsim_load): Add const to prog.
8119
5d9cf8a4
TT
81202014-03-03 Tom Tromey <tromey@redhat.com>
8121
8122 * elfread.c (probe_key): Change to bfd_data.
8123 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8124 now per-BFD, not per-objfile.
8125 * stap-probe.c (stap_probe_destroy): Update comment.
8126 (handle_stap_probe): Allocate on the per-BFD obstack.
8127
729662a5
TT
81282014-03-03 Tom Tromey <tromey@redhat.com>
8129
8130 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8131 * breakpoint.c (create_longjmp_master_breakpoint): Use
8132 get_probe_address.
8133 (add_location_to_breakpoint, bkpt_probe_insert_location)
8134 (bkpt_probe_remove_location): Update.
8135 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8136 * elfread.c (elf_symfile_relocate_probe): Remove.
8137 (elf_probe_fns): Update.
8138 (insert_exception_resume_breakpoint): Change type of "probe"
8139 parameter to bound_probe.
8140 (check_exception_resume): Update.
8141 * objfiles.c (objfile_relocate1): Don't relocate probes.
8142 * probe.c (bound_probe_s): New typedef.
8143 (parse_probes): Use get_probe_address. Set sal's objfile.
8144 (find_probe_by_pc): Return a bound_probe.
8145 (collect_probes): Return a VEC(bound_probe_s).
8146 (compare_probes): Update.
8147 (gen_ui_out_table_header_info): Change type of "probes"
8148 parameter. Update.
8149 (info_probes_for_ops): Update.
8150 (get_probe_address): New function.
8151 (probe_safe_evaluate_at_pc): Update.
8152 * probe.h (struct probe_ops) <get_probe_address>: New field.
8153 <set_semaphore, clear_semaphore>: Add objfile parameter.
8154 (struct probe) <objfile>: Remove field.
8155 <arch>: New field.
8156 <address>: Update comment.
8157 (struct bound_probe): New.
8158 (find_probe_by_pc): Return a bound_probe.
8159 (get_probe_address): Declare.
8160 * solib-svr4.c (struct probe_and_action) <address>: New field.
8161 (hash_probe_and_action, equal_probe_and_action): Update.
8162 (register_solib_event_probe): Add address parameter.
8163 (solib_event_probe_at): Update.
8164 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8165 get_probe_address.
8166 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8167 (stap_get_probe_address): New function.
8168 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8169 (compile_probe_arg): Update.
8170 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8171 address.
8172 (handle_stap_probe): Don't relocate the probe.
8173 (stap_relocate): Remove.
8174 (stap_gen_info_probes_table_values): Update.
8175 (stap_probe_ops): Remove stap_relocate.
8176 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8177 (debug_sym_probe_fns): Update.
8178 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8179 * symtab.c (init_sal): Use memset.
8180 * symtab.h (struct symtab_and_line) <objfile>: New field.
8181 * tracepoint.c (start_tracing, stop_tracing): Update.
8182
ff887920
TT
81832014-03-03 Tom Tromey <tromey@redhat.com>
8184
8185 * probe.h (parse_probes, find_probe_by_pc)
8186 (find_probes_in_objfile): Fix comments.
8187
f0407826
DE
81882014-03-02 Doug Evans <xdje42@gmail.com>
8189
8190 * infrun.c (handle_signal_stop): Replace test for
8191 TARGET_WAITKIND_STOPPED with an assert.
8192
35e6a711
DE
81932014-03-02 Doug Evans <xdje42@gmail.com>
8194
8195 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8196
667f9d0b
DE
81972014-03-02 Doug Evans <xdje42@gmail.com>
8198
8199 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8200
dc92ace0
MK
82012014-03-01 Mark Kettenis <kettenis@gnu.org>
8202
8203 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8204
a900370f
MK
82052014-03-01 Mark Kettenis <kettenis@gnu.org>
8206
8207 * i386obsd-nat.c: Include "obsd-nat.h".
8208 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8209 add_target.
8210 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8211
b72a7981
MK
82122014-03-01 Mark Kettenis <kettenis@gnu.org>
8213
8214 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8215
96c70aba
MK
82162014-03-01 Mark Kettenis <kettenis@gnu.org>
8217
8218 * mips64obsd-nat.c: Include "obsd-nath".
8219 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8220 add_target
8221 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8222
874a80af
MK
82232014-03-01 Mark Kettenis <kettenis@gnu.org>
8224
8fd408f1
MK
8225 * amd64obsd-nat.c: Include "obsd-nat,h.
8226 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8227 add_target.
874a80af
MK
8228 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8229
9cf95373
SC
82302014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8231
8232 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8233 (find_overload_match): Update call to find_oload_champ.
8234 (find_oload_champ_namespace_loop): Likewise
8235
863e4da4
MK
82362014-02-28 Mark Kettenis <kettenis@gnu.org>
8237
025cac40
MK
8238 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8239
1ed586ce
MK
8240 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8241 * config/sparc/obsd64.mh: New file.
8242 * sparc64obsd-nat.c: New file.
8243
863e4da4
MK
8244 * obsd-nat.h: New file.
8245 * obsd-nat.c: New file.
8246 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8247 (ALLDEPFILES): Add obsd-nat.c.
8248
89de4da4
TT
82492014-02-28 Tom Tromey <tromey@redhat.com>
8250
8251 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8252 * cli-out.h (cli_ui_out_impl): Now const.
8253 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8254 * ui-out.c (struct ui_out) <impl>: Now const.
8255 (default_ui_out_impl): Now const.
8256 (ui_out_new): Make 'impl' parameter const.
8257 * ui-out.h (ui_out_new): Update.
8258
c725e7b6
MK
82592014-02-27 Mark Kettenis <kettenis@gnu.org>
8260
8261 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8262
670b46b3
MK
82632014-02-27 Mark Kettenis <kettenis@gnu.org>
8264
8265 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8266
c91550fc
JK
82672014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8268
8269 Additional PR 8882 fix.
8270 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8271
2fa0369e
PA
82722014-02-27 Pedro Alves <palves@redhat.com>
8273
8274 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8275 isn't set.
8276
d632a097
PA
82772014-02-27 Pedro Alves <palves@redhat.com>
8278
8279 PR 12702
8280 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8281 * nat/linux-waitpid.c: Include string.h.
8282 (status_to_str): Moved here and made extern.
8283 * nat/linux-waitpid.h (status_to_str): New declaration.
8284
2ebd5a35
HZ
82852014-02-27 Hui Zhu <hui@codesourcery.com>
8286
8287 PR 12702
8288 * infrun.c (ptid_match): Move ...
8289 * common/ptid.c (ptid_match): ... here.
8290 * inferior.h (ptid_match): Move ...
8291 * common/ptid.h (ptid_match): ... here.
8292
3cdd631f
MK
82932014-02-27 Mark Kettenis <kettenis@gnu.org>
8294
8295 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8296 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8297 gdb_target_obs.
8298
bee30a64
MK
82992014-02-27 Mark Kettenis <kettenis@gnu.org>
8300
8301 * obsd-tdep.c (obsd_auxv_parse): New function.
8302 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8303
8304 * gdbarch.sh (auxv_parse): New.
8305 * gdbarch.h: Regenerated.
8306 * gdbarch.c: Regenerated.
8307 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8308
7a5a839f
LC
83092014-02-26 Ludovic Courtès <ludo@gnu.org>
8310
8311 * guile/scm-value.c (gdbscm_history_append_x): New function.
8312 (value_functions): Add it.
8313
31aa7e4e
JB
83142014-02-27 Joel Brobecker <brobecker@adacore.com>
8315
8316 * dwarf2read.c (attr_value_as_address): New function.
8317 (dwarf2_find_base_address, read_call_site_scope): Use
8318 attr_value_as_address in place of DW_ADDR.
8319 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8320 the low and high addresses. Slight rework of the handling
8321 of the high pc being a constant form, and limit it to
8322 DWARF verson 4 or higher.
8323 (dwarf2_record_block_ranges): Likewise.
8324 (read_partial_die): Likewise.
8325 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8326
9b333ba3
TT
83272014-02-26 Tom Tromey <tromey@redhat.com>
8328
8329 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8330
5f6cac40
TT
83312014-02-26 Tom Tromey <tromey@redhat.com>
8332
8333 * elfread.c (elf_read_minimal_symbols): Return early if
8334 minimal symbols have already been read. Add "ei" parameter.
8335 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8336 * minsyms.c (prim_record_minimal_symbol_full): Update.
8337 * objfiles.h (struct objstats) <n_minsyms>: Move...
8338 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8339 * symmisc.c (print_objfile_statistics): Update.
8340
2750ef27
TT
83412014-02-26 Tom Tromey <tromey@redhat.com>
8342
8343 * elfread.c (elf_read_minimal_symbols): New function, from
8344 elf_symfile_read.
8345 (elf_symfile_read): Call it.
8346
34643a32
TT
83472014-02-26 Tom Tromey <tromey@redhat.com>
8348
8349 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8350 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8351 (lookup_minimal_symbol_solib_trampoline)
8352 (lookup_minimal_symbol_by_pc_section_1)
8353 (lookup_minimal_symbol_and_objfile): Update.
8354 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8355 Don't allocate a minimal symbol if minsyms have already been read.
8356 (build_minimal_symbol_hash_tables): Update.
8357 (install_minimal_symbols): Do nothing if minsyms already read.
8358 Use the per-BFD obstack.
8359 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8360 * objfiles.c (allocate_objfile): Call
8361 terminate_minimal_symbol_table later.
8362 (have_minimal_symbols): Update.
8363 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8364 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8365 Move from struct objfile.
8366 <minsyms_read>: New field.
8367 (struct objfile) <msymbols, minimal_symbol_count,
8368 msymbol_hash, msymbol_demangled_hash>: Move.
8369 (ALL_OBJFILE_MSYMBOLS): Update.
8370 * symfile.c (read_symbols): Set minsyms_read.
8371 (reread_symbols): Update.
8372 * symmisc.c (dump_objfile, dump_msymbols): Update.
8373
2273f0ac
TT
83742014-02-26 Tom Tromey <tromey@redhat.com>
8375
8376 * minsyms.c (msymbols_sort): Remove.
8377 * minsyms.h (msymbols_sort): Remove.
8378 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8379 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8380 * elfread.c (elf_symtab_read): Don't add section offsets.
8381 * xcoffread.c (record_minimal_symbol): Don't add section offset
8382 to minimal symbol address.
8383 * somread.c (text_offset, data_offset): Remove.
8384 (som_symtab_read): Don't add section offsets to minimal symbol
8385 addresses.
8386 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8387 Don't add section offsets to minimal symbols.
8388 * coffread.c (coff_symtab_read): Don't add section offsets
8389 to minimal symbol addresses.
8390 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8391 to minimal symbol addresses.
8392 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8393 section offset to minimal symbol addresses.
8394 * mdebugread.c (parse_partial_symbols): Don't add section
8395 offset to minimal symbol addresses.
8396 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8397 offset to minimal symbol addresses.
8398
77e371c0
TT
83992014-02-26 Tom Tromey <tromey@redhat.com>
8400
8401 * ada-lang.c (ada_main_name): Update.
8402 (ada_add_standard_exceptions): Update.
8403 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8404 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8405 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8406 * auxv.c (ld_so_xfer_auxv): Update.
8407 * avr-tdep.c (avr_scan_prologue): Update.
8408 * ax-gdb.c (gen_var_ref): Update.
8409 * blockframe.c (get_pc_function_start)
8410 (find_pc_partial_function_gnu_ifunc): Update.
8411 * breakpoint.c (create_overlay_event_breakpoint)
8412 (create_longjmp_master_breakpoint)
8413 (create_std_terminate_master_breakpoint)
8414 (create_exception_master_breakpoint): Update.
8415 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8416 * c-valprint.c (c_val_print): Update.
8417 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8418 * common/agent.c (agent_look_up_symbols): Update.
8419 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8420 * dwarf2loc.c (call_site_to_target_addr): Update.
8421 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8422 * elfread.c (elf_gnu_ifunc_record_cache)
8423 (elf_gnu_ifunc_resolve_by_got): Update.
8424 * findvar.c (default_read_var_value): Update.
8425 * frame.c (inside_main_func): Update.
8426 * frv-tdep.c (frv_frame_this_id): Update.
8427 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8428 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8429 Update.
8430 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8431 (hppa_hpux_find_dummy_bpaddr): Update.
8432 * hppa-tdep.c (hppa_symbol_address): Update.
8433 * infcmd.c (until_next_command): Update.
8434 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8435 Update.
8436 * linespec.c (minsym_found, add_minsym): Update.
8437 * linux-nat.c (get_signo): Update.
8438 * linux-thread-db.c (inferior_has_bug): Update.
8439 * m32c-tdep.c (m32c_return_value)
8440 (m32c_m16c_address_to_pointer): Update.
8441 * m32r-tdep.c (m32r_frame_this_id): Update.
8442 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8443 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8444 * maint.c (maintenance_translate_address): Update.
8445 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8446 (frob_address): New function.
8447 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8448 frob_address. Rename parameter to "pc_in".
8449 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8450 addresses.
8451 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8452 Update.
8453 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8454 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8455 * objc-lang.c (find_objc_msgsend): Update.
8456 * objfiles.c (objfile_relocate1): Update.
8457 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8458 * p-valprint.c (pascal_val_print): Update.
8459 * parse.c (write_exp_msymbol): Update.
8460 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8461 (ppc_elfv2_skip_entrypoint): Update.
8462 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8463 * printcmd.c (build_address_symbolic, msym_info)
8464 (address_info): Update.
8465 * proc-service.c (ps_pglobal_lookup): Update.
8466 * psymtab.c (find_pc_sect_psymtab_closer)
8467 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8468 Change msymbol parameter to bound_minimal_symbol.
8469 * ravenscar-thread.c (get_running_thread_id): Update.
8470 * remote.c (remote_check_symbols): Update.
8471 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8472 address.
8473 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8474 * solib-dsbt.c (lm_base): Update.
8475 * solib-frv.c (lm_base, main_got): Update.
8476 * solib-irix.c (locate_base): Update.
8477 * solib-som.c (som_solib_create_inferior_hook)
8478 (link_map_start): Update.
8479 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8480 * solib-svr4.c (elf_locate_base, enable_break): Update.
8481 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8482 (flush_ea_cache): Update.
8483 * stabsread.c (define_symbol, scan_file_globals): Update.
8484 * stack.c (find_frame_funname): Update.
8485 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8486 (debug_qf_find_pc_sect_symtab): Update.
8487 * symfile.c (simple_read_overlay_table)
8488 (simple_overlay_update): Update.
8489 * symfile.h (struct quick_symbol_functions)
8490 <find_pc_sect_symtab>: Change type of msymbol to
8491 bound_minimal_symbol.
8492 * symmisc.c (dump_msymbols): Update.
8493 * symtab.c (find_pc_sect_symtab_via_partial)
8494 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8495 (search_symbols, print_msymbol_info): Update.
8496 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8497 (MSYMBOL_VALUE_ADDRESS): Redefine.
8498 (BMSYMBOL_VALUE_ADDRESS): New macro.
8499 * tracepoint.c (scope_info): Update.
8500 * tui/tui-disasm.c (tui_find_disassembly_address)
8501 (tui_get_begin_asm_address): Update.
8502 * valops.c (find_function_in_inferior): Update.
8503 * value.c (value_static_field, value_fn_field): Update.
8504
3b7344d5
TT
85052014-02-26 Tom Tromey <tromey@redhat.com>
8506
8507 * ada-lang.c (ada_update_initial_language): Update.
8508 (ada_main_name, ada_has_this_exception_support): Update.
8509 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8510 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8511 * arm-tdep.c (arm_skip_stub): Update.
8512 * auxv.c (ld_so_xfer_auxv): Update.
8513 * avr-tdep.c (avr_scan_prologue): Update.
8514 * ax-gdb.c (gen_var_ref): Update.
8515 * breakpoint.c (struct breakpoint_objfile_data)
8516 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8517 type to bound_minimal_symbol.
8518 (create_overlay_event_breakpoint)
8519 (create_longjmp_master_breakpoint)
8520 (create_std_terminate_master_breakpoint)
8521 (create_exception_master_breakpoint): Update.
8522 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8523 * c-exp.y (classify_name): Update.
8524 * coffread.c (coff_symfile_read): Update.
8525 * common/agent.c (agent_look_up_symbols): Update.
8526 * d-lang.c (d_main_name): Update.
8527 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8528 * dec-thread.c (enable_dec_thread): Update.
8529 * dwarf2loc.c (call_site_to_target_addr): Update.
8530 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8531 * eval.c (evaluate_subexp_standard): Update.
8532 * findvar.c (struct minsym_lookup_data) <result>: Change type
8533 to bound_minimal_symbol.
8534 <objfile>: Remove.
8535 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8536 * frame.c (inside_main_func): Update.
8537 * frv-tdep.c (frv_frame_this_id): Update.
8538 * gcore.c (call_target_sbrk): Update.
8539 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8540 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8541 Update.
8542 * go-lang.c (go_main_name): Update.
8543 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8544 (hppa_hpux_find_import_stub_for_addr): Update.
8545 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8546 Update. Change return type.
8547 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8548 type.
8549 * jit.c (jit_breakpoint_re_set_internal): Update.
8550 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8551 Update.
8552 * linux-nat.c (get_signo): Update.
8553 * linux-thread-db.c (inferior_has_bug): Update
8554 * m32c-tdep.c (m32c_return_value)
8555 (m32c_m16c_address_to_pointer): Update.
8556 * m32r-tdep.c (m32r_frame_this_id): Update.
8557 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8558 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8559 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8560 lookup_minimal_symbol. Change return type.
8561 (lookup_minimal_symbol): Remove.
8562 (lookup_bound_minimal_symbol): Update.
8563 (lookup_minimal_symbol_text): Change return type.
8564 (lookup_minimal_symbol_solib_trampoline): Change return type.
8565 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8566 (lookup_minimal_symbol_solib_trampoline): Change return type.
8567 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8568 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8569 (value_nsstring, find_imps): Update.
8570 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8571 * p-lang.c (pascal_main_name): Update.
8572 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8573 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8574 * proc-service.c (ps_pglobal_lookup): Update.
8575 * ravenscar-thread.c (get_running_thread_msymbol): Change
8576 return type.
8577 (has_ravenscar_runtime, get_running_thread_id): Update.
8578 * remote.c (remote_check_symbols): Update.
8579 * sol-thread.c (ps_pglobal_lookup): Update.
8580 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8581 * solib-dsbt.c (lm_base): Update.
8582 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8583 Update.
8584 * solib-irix.c (locate_base): Update.
8585 * solib-som.c (som_solib_create_inferior_hook)
8586 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8587 Update.
8588 * solib-spu.c (spu_enable_break): Update.
8589 * solib-svr4.c (elf_locate_base, enable_break): Update.
8590 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8591 (flush_ea_cache): Update.
8592 * stabsread.c (define_symbol): Update.
8593 * symfile.c (simple_read_overlay_table): Update.
8594 * symtab.c (find_pc_sect_line): Update.
8595 * tracepoint.c (scope_info): Update.
8596 * tui-disasm.c (tui_get_begin_asm_address): Update.
8597 * value.c (value_static_field): Update.
8598
40c1a007
TT
85992014-02-26 Tom Tromey <tromey@redhat.com>
8600
8601 * minsyms.c (prim_record_minimal_symbol_full): Use
8602 SET_MSYMBOL_VALUE_ADDRESS.
8603 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8604 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8605 SET_MSYMBOL_VALUE_ADDRESS.
8606 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8607 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8608
efd66ac6
TT
86092014-02-26 Tom Tromey <tromey@redhat.com>
8610
8611 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8612 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8613 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8614 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8615 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8616 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8617 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8618 * ada-lang.c (ada_main_name): Update.
8619 (ada_lookup_simple_minsym): Update.
8620 (ada_make_symbol_completion_list): Update.
8621 (ada_add_standard_exceptions): Update.
8622 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8623 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8624 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8625 * arm-tdep.c (skip_prologue_function): Update.
8626 (arm_skip_stack_protector, arm_skip_stub): Update.
8627 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8628 (arm_wince_skip_main_prologue): Update.
8629 * auxv.c (ld_so_xfer_auxv): Update.
8630 * avr-tdep.c (avr_scan_prologue): Update.
8631 * ax-gdb.c (gen_var_ref): Update.
8632 * block.c (call_site_for_pc): Update.
8633 * blockframe.c (get_pc_function_start): Update.
8634 (find_pc_partial_function_gnu_ifunc): Update.
8635 * breakpoint.c (create_overlay_event_breakpoint): Update.
8636 (create_longjmp_master_breakpoint): Update.
8637 (create_std_terminate_master_breakpoint): Update.
8638 (create_exception_master_breakpoint): Update.
8639 (resolve_sal_pc): Update.
8640 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8641 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8642 Update.
8643 * c-valprint.c (c_val_print): Update.
8644 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8645 * coffread.c (coff_symfile_read): Update.
8646 * common/agent.c (agent_look_up_symbols): Update.
8647 * dbxread.c (find_stab_function_addr): Update.
8648 (end_psymtab): Update.
8649 * dwarf2loc.c (call_site_to_target_addr): Update.
8650 (func_verify_no_selftailcall): Update.
8651 (tailcall_dump): Update.
8652 (call_site_find_chain_1): Update.
8653 (dwarf_expr_reg_to_entry_parameter): Update.
8654 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8655 (elf_gnu_ifunc_resolve_by_got): Update.
8656 * f-valprint.c (info_common_command): Update.
8657 * findvar.c (read_var_value): Update.
8658 * frame.c (get_prev_frame_1): Update.
8659 (inside_main_func): Update.
8660 * frv-tdep.c (frv_skip_main_prologue): Update.
8661 (frv_frame_this_id): Update.
8662 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8663 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8664 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8665 (gnuv3_skip_trampoline): Update.
8666 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8667 (hppa64_hpux_in_solib_call_trampoline): Update.
8668 (hppa_hpux_skip_trampoline_code): Update.
8669 (hppa64_hpux_search_dummy_call_sequence): Update.
8670 (hppa_hpux_find_import_stub_for_addr): Update.
8671 (hppa_hpux_find_dummy_bpaddr): Update.
8672 * hppa-tdep.c (hppa_symbol_address)
8673 (hppa_lookup_stub_minimal_symbol): Update.
8674 * i386-tdep.c (i386_skip_main_prologue): Update.
8675 (i386_pe_skip_trampoline_code): Update.
8676 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8677 * infcall.c (get_function_name): Update.
8678 * infcmd.c (until_next_command): Update.
8679 * jit.c (jit_breakpoint_re_set_internal): Update.
8680 (jit_inferior_init): Update.
8681 * linespec.c (minsym_found): Update.
8682 (add_minsym): Update.
8683 * linux-fork.c (info_checkpoints_command): Update.
8684 * linux-nat.c (get_signo): Update.
8685 * linux-thread-db.c (inferior_has_bug): Update.
8686 * m32c-tdep.c (m32c_return_value): Update.
8687 (m32c_m16c_address_to_pointer): Update.
8688 (m32c_m16c_pointer_to_address): Update.
8689 * m32r-tdep.c (m32r_frame_this_id): Update.
8690 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8691 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8692 * maint.c (maintenance_translate_address): Update.
8693 * minsyms.c (add_minsym_to_hash_table): Update.
8694 (add_minsym_to_demangled_hash_table): Update.
8695 (msymbol_objfile): Update.
8696 (lookup_minimal_symbol): Update.
8697 (iterate_over_minimal_symbols): Update.
8698 (lookup_minimal_symbol_text): Update.
8699 (lookup_minimal_symbol_by_pc_name): Update.
8700 (lookup_minimal_symbol_solib_trampoline): Update.
8701 (lookup_minimal_symbol_by_pc_section_1): Update.
8702 (lookup_minimal_symbol_and_objfile): Update.
8703 (prim_record_minimal_symbol_full): Update.
8704 (compare_minimal_symbols): Update.
8705 (compact_minimal_symbols): Update.
8706 (build_minimal_symbol_hash_tables): Update.
8707 (install_minimal_symbols): Update.
8708 (terminate_minimal_symbol_table): Update.
8709 (find_solib_trampoline_target): Update.
8710 (minimal_symbol_upper_bound): Update.
8711 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8712 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8713 (mips_skip_pic_trampoline_code): Update.
8714 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8715 * objc-lang.c (selectors_info): Update.
8716 (classes_info): Update.
8717 (find_methods): Update.
8718 (find_imps): Update.
8719 (find_objc_msgsend): Update.
8720 * objfiles.c (objfile_relocate1): Update.
8721 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8722 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8723 * p-valprint.c (pascal_val_print): Update.
8724 * parse.c (write_exp_msymbol): Update.
8725 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8726 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8727 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8728 * printcmd.c (build_address_symbolic): Update.
8729 (sym_info): Update.
8730 (address_info): Update.
8731 * proc-service.c (ps_pglobal_lookup): Update.
8732 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8733 (find_pc_sect_psymtab): Update.
8734 * python/py-framefilter.c (py_print_frame): Update.
8735 * ravenscar-thread.c (get_running_thread_id): Update.
8736 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8737 Update.
8738 * remote.c (remote_check_symbols): Update.
8739 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8740 (rs6000_skip_trampoline_code): Update.
8741 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8742 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8743 * solib-dsbt.c (lm_base): Update.
8744 * solib-frv.c (lm_base): Update.
8745 (main_got): Update.
8746 * solib-irix.c (locate_base): Update.
8747 * solib-som.c (som_solib_create_inferior_hook): Update.
8748 (som_solib_desire_dynamic_linker_symbols): Update.
8749 (link_map_start): Update.
8750 * solib-spu.c (spu_enable_break): Update.
8751 (ocl_enable_break): Update.
8752 * solib-svr4.c (elf_locate_base): Update.
8753 (enable_break): Update.
8754 * spu-tdep.c (spu_get_overlay_table): Update.
8755 (spu_catch_start): Update.
8756 (flush_ea_cache): Update.
8757 * stabsread.c (define_symbol): Update.
8758 (scan_file_globals): Update.
8759 * stack.c (find_frame_funname): Update.
8760 (frame_info): Update.
8761 * symfile.c (simple_read_overlay_table): Update.
8762 (simple_overlay_update): Update.
8763 * symmisc.c (dump_msymbols): Update.
8764 * symtab.c (fixup_section): Update.
8765 (find_pc_sect_line): Update.
8766 (skip_prologue_sal): Update.
8767 (search_symbols): Update.
8768 (print_msymbol_info): Update.
8769 (rbreak_command): Update.
8770 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8771 (completion_list_objc_symbol): Update.
8772 (default_make_symbol_completion_list_break_on): Update.
8773 * tracepoint.c (scope_info): Update.
8774 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8775 (tui_get_begin_asm_address): Update.
8776 * valops.c (find_function_in_inferior): Update.
8777 * value.c (value_static_field): Update.
8778 (value_fn_field): Update.
8779
50e65b17
TT
87802014-02-26 Tom Tromey <tromey@redhat.com>
8781
8782 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8783 bound minimal symbols. Move code that knows about minsym
8784 table layout...
8785 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8786 function.
8787 * minsyms.h (minimal_symbol_upper_bound): Declare.
8788 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8789 minimal_symbol_upper_bound.
8790
1b588015
JB
87912014-02-27 Joel Brobecker <brobecker@adacore.com>
8792
8793 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8794 Use the type's name if its basic type does not have a tag.
8795
dbb9c2b1
JB
87962014-02-27 Joel Brobecker <brobecker@adacore.com>
8797
8798 * dwarf2read.c (read_subrange_type): Add comment.
8799
55426c9d
JB
88002014-02-27 Joel Brobecker <brobecker@adacore.com>
8801
8802 * dwarf2read.c (update_enumeration_type_from_children): New
8803 function, mostly extracted from process_structure_scope.
8804 (read_enumeration_type): Call update_enumeration_type_from_children.
8805 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8806 and flag_flag_enum fields.
8807
f2fce0ca
PA
88082014-02-26 Pedro Alves <palves@redhat.com>
8809
8810 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8811 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8812 to_xfer_partial method.
8813
7a44e40e
PA
88142014-02-26 Pedro Alves <palves@redhat.com>
8815
8816 * target.c (complete_target_initialization): Don't install
8817 default_xfer_partial as to_xfer_partial hook.
8818 (nomemory): Delete.
8819 (update_current_target): Don't INHERIT nor de_fault
8820 deprecated_xfer_memory. Delete de_fault macro.
8821 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8822 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8823 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8824 field.
8825
bd265cd0
PA
88262014-02-26 Pedro Alves <palves@redhat.com>
8827
8828 * go32-nat.c (my_write_child): New function.
8829 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8830 (go32_xfer_partial): New function.
8831 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8832 Instead install a to_xfer_partial hook.
8833
9d46c4e5
PA
88342014-02-26 Pedro Alves <palves@redhat.com>
8835
8836 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8837 to_xfer_partial helper. Rewrite.
8838 (procfs_xfer_partial): New function.
8839 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8840 Install a to_xfer_partial hook.
8841
a1583b1f
PA
88422014-02-26 Pedro Alves <palves@redhat.com>
8843
8844 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8845 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8846 (m32r_xfer_partial): New function.
8847 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8848 Install a to_xfer_partial hook.
8849
6df1b29f
PA
88502014-02-26 Pedro Alves <palves@redhat.com>
8851
8852 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8853 helper.
8854 (mips_xfer_partial): New function.
8855 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8856 hook. Install a to_xfer_partial hook.
8857
dc53a7ad
JB
88582014-02-26 Joel Brobecker <brobecker@adacore.com>
8859
8860 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8861 * gdbtypes.c (create_array_type_with_stride): New function,
8862 renaming create_array_type, but with an added parameter
8863 called "bit_stride".
8864 (create_array_type): Re-implement using
8865 create_array_type_with_stride.
8866 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8867 and DW_AT_bit_stride attributes.
8868
12ab52e9
PA
88692014-02-26 Pedro Alves <palves@redhat.com>
8870
8871 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8872 task-specific breakpoints.
8873
d16461ae
PA
88742014-02-25 Pedro Alves <palves@redhat.com>
8875
8876 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8877 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8878
a8b16220
SS
88792014-02-25 Stan Shebs <stan@codesourcery.com>
8880
8881 * defs.h: Annotate comments for Doxygen.
8882
b9e795ee
TT
88832014-02-25 Tom Tromey <tromey@redhat.com>
8884
8885 * target.h (target_ignore): Don't declare.
8886 * target.c (target_ignore): Remove.
8887
849c862e
JK
88882014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8889
8890 PR gdb/16626
8891 * auto-load.c (auto_load_objfile_script_1): Change filename to
8892 debugfile.
8893
475109d8
JB
88942014-02-25 Joel Brobecker <brobecker@adacore.com>
8895
8896 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8897 documentation. Adjust prototype to match the target_ops
8898 to_xfer_partial method. Adjust implementation accordingly.
8899
e186c3bd
HZ
89002014-02-25 Hui Zhu <hui@codesourcery.com>
8901
8902 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8903 to_traceframe_info.
8904
6d451942
KB
89052014-02-25 Kevin Buettner <kevinb@redhat.com>
8906
041ab8b4 8907 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8908 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8909 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8910 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8911 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8912 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8913 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8914 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8915 New constants.
8916 (rl78_register_type): Use a data pointer type for SP and
8917 new pseudo registers mentioned above. Use a 16 bit integer
8918 type for all other register pairs.
8919 (rl78_register_name, rl78_g10_register_name): Update for
8920 new pseudo registers.
8921 (rl78_pseudo_register_read): Likewise.
8922 (rl78_pseudo_register_write): Likewise.
8923 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8924 to the newly added pseudo registers.
8925
eddf0bae
DE
89262014-02-24 Doug Evans <dje@google.com>
8927
8928 * value.c (record_latest_value): Fix comment.
8929 * printcmd.c (print_command_1): Remove code to handle -1 return from
8930 record_latest_value.
8931
e96027e0
PA
89322014-02-24 Pedro Alves <palves@redhat.com>
8933
8934 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8935 deprecated_xfer_memory hook.
8936 (procfs_xfer_partial): Call procfs_xfer_memory instead
8937 of the deprecated_xfer_memory target hook.
8938 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8939 helper.
8940
0837c976
YZ
89412014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8942
8943 * windows-nat.c (windows_xfer_shared_libraries): Return
8944 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8945 requested object is TARGET_OBJECT_LIBRARIES.
8946
bc113b4e
YQ
89472014-02-24 Yao Qi <yao@codesourcery.com>
8948
8949 * target.h (enum target_xfer_status)
8950 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8951 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8952 explicitly. New.
8953 * corefile.c (memory_error_message): User updated.
8954 * exec.c (section_table_read_available_memory): Likewise.
8955 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8956 * target.c (target_xfer_status_to_string): Likewise.
8957 (raw_memory_xfer_partial): Likewise.
8958 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8959 * valops.c (read_value_memory): Likewise.
8960 * exec.h: Update comments.
8961
01cb8804
YQ
89622014-02-24 Yao Qi <yao@codesourcery.com>
8963
8964 * target.c (target_xfer_status_to_string): Rename argument err
8965 to status.
8966 * target.h (target_xfer_status_to_string): Update declaration.
8967 Replace target_xfer_error_to_string with
8968 target_xfer_status_to_string in comment.
8969
93063aa6
YQ
89702014-02-24 Yao Qi <yao@codesourcery.com>
8971
8972 * mips-linux-nat.c (super_close): Update its type.
8973 (mips_linux_close): Pass 'self' to super_close.
8974
5c328c05
YQ
89752014-02-24 Yao Qi <yao@codesourcery.com>
8976
8977 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8978 * corefile.c (read_memory): Adjusted.
8979 * target.c (target_write_with_progress): Adjusted.
8980
f73023dd
YQ
89812014-02-23 Yao Qi <yao@codesourcery.com>
8982
8983 Revert two patches:
8984
8985 2013-10-25 Yao Qi <yao@codesourcery.com>
8986
8987 * remote.c (remote_traceframe_info): Return early if
8988 traceframe is not selected.
8989
8990 2013-07-19 Yao Qi <yao@codesourcery.com>
8991
8992 * target.c (update_current_target): Change the default action
8993 of 'to_traceframe_info' from tcomplain to return_zero.
8994 * target.h (struct target_ops) <to_traceframe_info>: Add more
8995 comments.
8996
5a2eb0ef
YQ
89972014-02-23 Yao Qi <yao@codesourcery.com>
8998
8999 * valops.c (read_value_memory): Rewrite it. Call
9000 target_xfer_partial in a loop.
9001 * exec.h (section_table_available_memory): Remove declaration.
9002 Move comments to ...
9003 * exec.c (section_table_available_memory): ... here. Make it
9004 static.
9005
1ee79381
YQ
90062014-02-23 Yao Qi <yao@codesourcery.com>
9007
9008 * exec.c (section_table_read_available_memory): New function.
9009 * exec.h (section_table_read_available_memory): Declare.
9010 * ctf.c (ctf_xfer_partial): Call
9011 section_table_read_available_memory.
9012 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9013
1ca49d37
YQ
90142014-02-23 Yao Qi <yao@codesourcery.com>
9015
9016 * ctf.c (ctf_xfer_partial): Move code to ...
9017 * exec.c (exec_read_partial_read_only): ... it. New function.
9018 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9019 * tracefile.c: Include "exec.h".
9020 * exec.h (exec_read_partial_read_only): Declare.
9021
a283690e
YQ
90222014-02-23 Yao Qi <yao@codesourcery.com>
9023
9024 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9025 (tfile_has_memory): Remove.
9026 (init_tfile_ops): Don't set fields to_has_all_memory and
9027 to_has_memory of tfile_ops.
9028 * tracefile.c (tracefile_has_all_memory): New function.
9029 (tracefile_has_memory): New function.
9030 (init_tracefile_ops): Initialize fields to_has_all_memory and
9031 to_has_memory of 'ops'.
9032
12e03cd0
YQ
90332014-02-23 Yao Qi <yao@codesourcery.com>
9034
9035 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9036 (ctf_thread_alive, ctf_get_trace_status): Remove.
9037 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9038 init_tracefile_ops.
9039 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9040 (tfile_has_stack, tfile_has_registers): Remove.
9041 (tfile_thread_alive): Remove.
9042 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9043 init_tracefile_ops.
9044 * tracefile.c (tracefile_has_stack): New function.
9045 (tracefile_has_registers): New function.
9046 (tracefile_thread_alive): New function.
9047 (tracefile_get_trace_status): New function.
9048 (init_tracefile_ops): New function.
9049 * tracefile.h (init_tracefile_ops): Declare.
9050
11395323
YQ
90512014-02-23 Yao Qi <yao@codesourcery.com>
9052
9053 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9054 (O_LARGEFILE): Likewise.
9055 (tfile_ops): Likewise.
9056 (TRACE_HEADER_SIZE): Likewise.
9057 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9058 (cur_data_size): Likewise.
9059 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9060 (tfile_close, tfile_files_info): Likewise.
9061 (tfile_get_trace_status): Likewise.
9062 (tfile_get_tracepoint_status): Likewise.
9063 (tfile_get_traceframe_address): Likewise.
9064 (tfile_trace_find, match_blocktype): Likewise.
9065 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9066 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9067 (tfile_get_trace_state_variable_value): Likewise.
9068 (tfile_has_all_memory, tfile_has_memory): Likewise.
9069 (tfile_has_stack, tfile_has_registers): Likewise.
9070 (tfile_thread_alive, build_traceframe_info): Likewise.
9071 (tfile_traceframe_info, init_tfile_ops): Likewise.
9072 (_initialize_tracepoint): Don't call init_tfile_ops
9073 and add_target_with_completer.
9074 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9075 exec.h, completer.h and filenames.h.
9076 (_initialize_tracefile_tfile): New function.
9077
7951c4eb
YQ
90782014-02-23 Yao Qi <yao@codesourcery.com>
9079
9080 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9081 tracefile-tfile.o.
9082 (HFILES_NO_SRCDIR): Add tracefile.h.
9083 * ctf.c: Include "tracefile.h".
9084 * tracefile.h: New file.
9085 * tracefile.c: New file
9086 * tracefile-tfile.c: New file.
9087 * tracepoint.c: Include "tracefile.h".
9088 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9089 (stop_reason_names): Add const.
9090 (trace_file_writer_xfree): Move it to tracefile.c.
9091 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9092 (trace_save_ctf): Likewise.
9093 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9094 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9095 (tfile_write_header, tfile_write_regblock_type): Likewise.
9096 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9097 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9098 (tfile_write_raw_data, tfile_end): Likewise.
9099 (tfile_trace_file_writer_new): Likewise.
9100 (free_uploaded_tp): Make it extern.
9101 (free_uploaded_tsv): Make it extern.
9102 (_initialize_tracepoint): Move code to register command 'tsave'
9103 to tracefile.c.
9104 * tracepoint.h (stop_reason_names): Declare.
9105 (struct trace_frame_write_ops): Move it to tracefile.h.
9106 (struct trace_file_write_ops): Likewise.
9107 (struct trace_file_writer): Likewise.
9108 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9109
184cd072
JK
91102014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9111
9112 PR gdb/16594
9113 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9114 process name.
9115 (get_cores_used_by_process): New parameter num_cores, use it.
9116 (linux_xfer_osdata_processes): Pass num_cores to it.
9117 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9118 process name.
9119
c63528fc
AK
91202014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9121
9122 * target.c (memory_xfer_partial): Fix length arg in call to
9123 breakpoint_xfer_memory.
9124
d7b30f67
SDJ
91252014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9126
9127 PR tdep/16397
9128 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9129 number comes after the + or - signs. Adjust length of register
9130 name to be extracted.
9131
8838afaf
TT
91322014-02-20 Tom Tromey <tromey@redhat.com>
9133
9134 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9135 (ada_varobj_ops): Mark "extern".
9136
05227d14
TT
91372014-02-20 Tom Tromey <tromey@redhat.com>
9138
9139 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9140
1254eefc
DE
91412014-02-20 Doug Evans <xdje42@gmail.com>
9142
9143 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9144 All callers updated.
9145 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9146 All callers updated.
9147 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9148 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9149
adde2bff
DE
91502014-02-20 lin zuojian <manjian2006@gmail.com>
9151 Joel Brobecker <brobecker@adacore.com>
9152 Doug Evans <xdje42@gmail.com>
9153
9154 PR symtab/16581
9155 * dwarf2read.c (struct die_info): New member in_process.
9156 (reset_die_in_process): New function.
9157 (process_die): Set it at the start, reset when returning.
9158 (inherit_abstract_dies): Only call process_die if origin_child_die
9159 not already being processed.
9160
3be75f87
JB
91612014-02-20 Joel Brobecker <brobecker@adacore.com>
9162
9163 * windows-nat.c (handle_unload_dll): Add function documentation.
9164 (do_initial_windows_stuff): Add comment explaining why we wait
9165 until after inferior initialization has finished before
9166 processing all DLLs.
9167
47f7ffdb
JB
91682014-02-20 Joel Brobecker <brobecker@adacore.com>
9169
9170 * windows-nat.c (get_module_name): Delete.
9171 (windows_get_exec_module_filename): New function, mostly
9172 inspired from get_module_name.
9173 (windows_pid_to_exec_file): Replace call to get_module_name
9174 by call to windows_get_exec_module_filename.
9175
1cd9feab
JB
91762014-02-20 Joel Brobecker <brobecker@adacore.com>
9177
9178 * windows-nat.c (handle_load_dll): Rewrite this function's
9179 introductory comment. Remove code using get_module_name
9180 to get the DLL's name.
9181
ea39ad35
JB
91822014-02-20 Joel Brobecker <brobecker@adacore.com>
9183
9184 * windows-nat.c (get_windows_debug_event): Ignore
9185 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9186 if windows_initialization_done == 0.
9187 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9188 Adjust implementation to always load all DLLs.
9189 (do_initial_windows_stuff): Replace call to
9190 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9191
95060284
JB
91922014-02-20 Joel Brobecker <brobecker@adacore.com>
9193
9194 * windows-nat.c (_initialize_windows_nat): Deprecate the
9195 "dll-symbols" command. Turn the "add-shared-symbol-files"
9196 and "assf" aliases into commands, and deprecate them as well.
9197 * NEWS: Add entry explaining that "dll-symbols" and its two
9198 aliases are now deprecated.
9199
8d4fdb12
JB
92002014-02-20 Joel Brobecker <brobecker@adacore.com>
9201
9202 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9203 new-line in debug string. Remove trailing spaces.
9204
1b281443
SS
92052014-02-19 Stan Shebs <stan@codesourcery.com>
9206
9207 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9208
f7bd0f78
SC
92092014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9210
9211 * NEWS: Add entry for the new feature
9212 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9213 and class values.
9214
399ebc3d
SS
92152014-02-19 Stan Shebs <stan@codesourcery.com>
9216
9217 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9218
c658158d
PA
92192014-02-19 Pedro Alves <palves@redhat.com>
9220
9221 * common/ptid.h (struct ptid): Mention that process_stratum
9222 targets should prefer ptid.lwp.
9223
ba348170
PA
92242014-02-19 Pedro Alves <palves@redhat.com>
9225
9226 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9227 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9228 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9229 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9230 store remote thread ids rather than ptid.tid.
9231 (_initialize_remote): Adjust.
9232
ac01945b
TT
92332014-02-19 Tom Tromey <tromey@redhat.com>
9234
9235 * target.c (target_get_unwinder): Rewrite.
9236 (target_get_tailcall_unwinder): Rewrite.
9237 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9238 (record_btrace_to_get_tailcall_unwinder): New function.
9239 (init_record_btrace_ops): Update.
9240 * target.h (struct target_ops) <to_get_unwinder,
9241 to_get_tailcall_unwinder>: Now function pointers. Use
9242 TARGET_DEFAULT_RETURN.
9243
8476dc92
TT
92442014-02-19 Tom Tromey <tromey@redhat.com>
9245
9246 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9247 argument.
9248 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9249
c0eca49f
TT
92502014-02-19 Tom Tromey <tromey@redhat.com>
9251
9252 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9253 directly.
9254 * target-delegates.c: Rebuild.
9255 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9256 TARGET_DEFAULT_FUNC.
9257 * target.c (default_target_decr_pc_after_break): Rename from
9258 forward_target_decr_pc_after_break. Simplify.
9259 (target_decr_pc_after_break): Rely on delegation.
9260
596b6b39
TT
92612014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target.c (update_current_target): Do not INHERIT to_doc or
9264 to_magic. Do not de_fault to_open or to_close.
9265
b427c1bc
TT
92662014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * gcore.h (objfile_find_memory_regions): Declare.
9269 * gcore.c (objfile_find_memory_regions): No longer static. Add
9270 "self" argument.
9271 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9272 * exec.c: Include gcore.h.
9273 (exec_set_find_memory_regions): Remove.
9274 (exec_find_memory_regions): Remove.
9275 (exec_do_find_memory_regions): Remove.
9276 (init_exec_ops): Update.
9277 * defs.h (exec_set_find_memory_regions): Remove.
9278
9b144037
TT
92792014-02-19 Tom Tromey <tromey@redhat.com>
9280
9281 * target-delegates.c: Rebuild.
9282 * target.h (struct target_ops) <to_extra_thread_info,
9283 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9284 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9285 not 0, in TARGET_DEFAULT_RETURN.
9286
555bbdeb
TT
92872014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * target.c (complete_target_initialization): Remove casts. Use
9290 return_zero_has_execution.
9291 (return_zero): Add "ignore" argument.
9292 (return_zero_has_execution): New function.
9293 (init_dummy_target): Remove casts. Use
9294 return_zero_has_execution.
9295
be4ddd36
TT
92962014-02-19 Tom Tromey <tromey@redhat.com>
9297
9298 * target.c (update_current_target): Update comments. Do not
9299 INHERIT to_stratum.
9300
2117c711
TT
93012014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9304 needed.
9305 * corelow.c (core_read_description): Delegate when needed.
9306 * remote.c (remote_read_description): Delegate when needed.
9307 * target-delegates.c: Rebuild.
9308 * target.c (target_read_description): Rewrite.
9309 * target.h (struct target_ops) <to_read_description>: Update
9310 comment. Use TARGET_DEFAULT_RETURN.
9311
e88ef65c
TT
93122014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target-delegates.c: Rebuild.
9315 * target.c (update_current_target): Don't inherit or default
9316 to_can_run.
9317 (find_default_run_target): Check against delegate_can_run.
9318 * target.h (struct target_ops) <to_can_run>: Use
9319 TARGET_DEFAULT_RETURN.
9320
86a0854a
TT
93212014-02-19 Tom Tromey <tromey@redhat.com>
9322
9323 * target-delegates.c: Rebuild.
9324 * target.c (target_disconnect): Unconditionally delegate.
9325 * target.h (struct target_ops) <to_disconnect>: Use
9326 TARGET_DEFAULT_NORETURN.
9327
ee97f592
TT
93282014-02-19 Tom Tromey <tromey@redhat.com>
9329
9330 * record.c (record_stop): Unconditionally delegate.
9331 * target-delegates.c: Rebuild.
9332 * target.c (target_stop_recording): Unconditionally delegate.
9333 * target.h (struct target_ops) <to_stop_recording>: Use
9334 TARGET_DEFAULT_IGNORE.
9335
6dc7fcf4
TT
93362014-02-19 Tom Tromey <tromey@redhat.com>
9337
9338 * target-delegates.c: Rebuild.
9339 * target.c (target_enable_btrace): Unconditionally delegate.
9340 * target.h (struct target_ops) <to_enable_btrace>: Use
9341 TARGET_DEFAULT_NORETURN.
9342
eb5b20d4
TT
93432014-02-19 Tom Tromey <tromey@redhat.com>
9344
9345 * target-delegates.c: Rebuild.
9346 * target.c (target_read_btrace): Unconditionally delegate.
9347 * target.h (struct target_ops) <to_read_btrace>: Use
9348 TARGET_DEFAULT_NORETURN.
9349
9ace480d
TT
93502014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target-delegates.c: Rebuild.
9353 * target.c (target_teardown_btrace): Unconditionally delegate.
9354 * target.h (struct target_ops) <to_teardown_btrace>: Use
9355 TARGET_DEFAULT_NORETURN.
9356
8dc292d3
TT
93572014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target-delegates.c: Rebuild.
9360 * target.c (target_disable_btrace): Unconditionally delegate.
9361 * target.h (struct target_ops) <to_disable_btrace>: Use
9362 TARGET_DEFAULT_NORETURN.
9363
58a5184e
TT
93642014-02-19 Tom Tromey <tromey@redhat.com>
9365
9366 * target-delegates.c: Rebuild.
9367 * target.c (default_search_memory): New function.
9368 (simple_search_memory): Update comment.
9369 (target_search_memory): Unconditionally delegate.
9370 * target.h (struct target_ops) <to_search_memory>: Use
9371 TARGET_DEFAULT_FUNC.
9372
8de71aab
TT
93732014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * auxv.c (default_auxv_parse): No longer static.
9376 (target_auxv_parse): Unconditionally delegate.
9377 * auxv.h (default_auxv_parse): Declare.
9378 * target-delegates.c: Rebuild.
9379 * target.c: Include auxv.h.
9380 * target.h (struct target_ops) <to_auxv_parse>: Use
9381 TARGET_DEFAULT_FUNC.
9382
6b2c5a57
TT
93832014-02-19 Tom Tromey <tromey@redhat.com>
9384
9385 * target-delegates.c: Rebuild.
9386 * target.c (target_memory_map): Unconditionally delegate.
9387 * target.h (struct target_ops) <to_memory_map>: Use
9388 TARGET_DEFAULT_RETURN.
9389
cbffc065
TT
93902014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target-delegates.c: Rebuild.
9393 * target.c (target_thread_alive): Unconditionally delegate.
9394 * target.h (struct target_ops) <to_thread_alive>: Use
9395 TARGET_DEFAULT_RETURN.
9396
f09e2107
TT
93972014-02-19 Tom Tromey <tromey@redhat.com>
9398
9399 * target-delegates.c: Rebuild.
9400 * target.c (target_save_record): Unconditionally delegate.
9401 * target.h (struct target_ops) <to_save_record>: Use
9402 TARGET_DEFAULT_NORETURN.
9403
07366925
TT
94042014-02-19 Tom Tromey <tromey@redhat.com>
9405
9406 * target-delegates.c: Rebuild.
9407 * target.c (target_delete_record): Unconditionally delegate.
9408 * target.h (struct target_ops) <to_delete_record>: Use
9409 TARGET_DEFAULT_NORETURN.
9410
dd2e9d25
TT
94112014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * target-delegates.c: Rebuild.
9414 * target.c (target_record_is_replaying): Unconditionally
9415 delegate.
9416 * target.h (struct target_ops) <to_record_is_replaying>: Use
9417 TARGET_DEFAULT_RETURN.
9418
671e76cc
TT
94192014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target-delegates.c: Rebuild.
9422 * target.c (target_goto_record_begin): Unconditionally delegate.
9423 * target.h (struct target_ops) <to_goto_record_begin>: Use
9424 TARGET_DEFAULT_NORETURN.
9425
e9179bb3
TT
94262014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target-delegates.c: Rebuild.
9429 * target.c (target_goto_record_end): Unconditionally delegate.
9430 * target.h (struct target_ops) <to_goto_record_end>: Use
9431 TARGET_DEFAULT_NORETURN.
9432
05969c84
TT
94332014-02-19 Tom Tromey <tromey@redhat.com>
9434
9435 * target-delegates.c: Rebuild.
9436 * target.c (target_goto_record): Unconditionally delegate.
9437 * target.h (struct target_ops) <to_goto_record>: Use
9438 TARGET_DEFAULT_NORETURN.
9439
3679abfa
TT
94402014-02-19 Tom Tromey <tromey@redhat.com>
9441
9442 * target-delegates.c: Rebuild.
9443 * target.c (target_insn_history): Unconditionally delegate.
9444 * target.h (struct target_ops) <to_insn_history>: Use
9445 TARGET_DEFAULT_NORETURN.
9446
8444ab58
TT
94472014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * target-delegates.c: Rebuild.
9450 * target.c (target_insn_history_from): Unconditionally delegate.
9451 * target.h (struct target_ops) <to_insn_history_from>: Use
9452 TARGET_DEFAULT_NORETURN.
9453
c29302cc
TT
94542014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target-delegates.c: Rebuild.
9457 * target.c (target_insn_history_range): Unconditionally delegate.
9458 * target.h (struct target_ops) <to_insn_history_range>: Use
9459 TARGET_DEFAULT_NORETURN.
9460
170049d4
TT
94612014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * target-delegates.c: Rebuild.
9464 * target.c (target_call_history): Unconditionally delegate.
9465 * target.h (struct target_ops) <to_call_history>: Use
9466 TARGET_DEFAULT_NORETURN.
9467
16fc27d6
TT
94682014-02-19 Tom Tromey <tromey@redhat.com>
9469
9470 * target-delegates.c: Rebuild.
9471 * target.c (target_call_history_from): Unconditionally delegate.
9472 * target.h (struct target_ops) <to_call_history_from>: Use
9473 TARGET_DEFAULT_NORETURN.
9474
115d9817
TT
94752014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target-delegates.c: Rebuild.
9478 * target.c (target_call_history_range): Unconditionally delegate.
9479 * target.h (struct target_ops) <to_call_history_range>: Use
9480 TARGET_DEFAULT_NORETURN.
9481
eb276a6b
TT
94822014-02-19 Tom Tromey <tromey@redhat.com>
9483
9484 * target-delegates.c: Rebuild.
9485 * target.c (target_verify_memory): Unconditionally delegate.
9486 * target.h (struct target_ops) <to_verify_memory>: Use
9487 TARGET_DEFAULT_NORETURN.
9488
9e538d0d
TT
94892014-02-19 Tom Tromey <tromey@redhat.com>
9490
9491 * target-delegates.c: Rebuild.
9492 * target.c (target_core_of_thread): Unconditionally delegate.
9493 * target.h (struct target_ops) <to_core_of_thread>: Use
9494 TARGET_DEFAULT_RETURN.
9495
f6fb2925
TT
94962014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * target-delegates.c: Rebuild.
9499 * target.c (target_flash_done): Unconditionally delegate.
9500 * target.h (struct target_ops) <to_flash_done>: Use
9501 TARGET_DEFAULT_NORETURN.
9502
e8a6c6ac
TT
95032014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * target-delegates.c: Rebuild.
9506 * target.c (target_flash_erase): Unconditionally delegate.
9507 * target.h (struct target_ops) <to_flash_erase>: Use
9508 TARGET_DEFAULT_NORETURN.
9509
7e35c012
TT
95102014-02-19 Tom Tromey <tromey@redhat.com>
9511
9512 * target-delegates.c: Rebuild.
9513 * target.c (target_get_section_table): Unconditionally delegate.
9514 * target.h (struct target_ops) <to_get_section_table>: Use
9515 TARGET_DEFAULT_RETURN.
9516
770234d3
TT
95172014-02-19 Tom Tromey <tromey@redhat.com>
9518
9519 * target-delegates.c: Rebuild.
9520 * target.c (target_pid_to_str): Unconditionally delegate.
9521 (init_dummy_target): Don't initialize to_pid_to_str.
9522 (default_pid_to_str): Rename from dummy_pid_to_str.
9523 * target.h (struct target_ops) <to_pid_to_str>: Use
9524 TARGET_DEFAULT_FUNC.
9525
09b0dc2b
TT
95262014-02-19 Tom Tromey <tromey@redhat.com>
9527
9528 * target-delegates.c: Rebuild.
9529 * target.c (target_find_new_threads): Unconditionally delegate.
9530 * target.h (struct target_ops) <to_find_new_threads>: Use
9531 TARGET_DEFAULT_RETURN.
9532
7d4f8efa
TT
95332014-02-19 Tom Tromey <tromey@redhat.com>
9534
9535 * target-delegates.c: Rebuild.
9536 * target.c (target_program_signals): Unconditionally delegate.
9537 * target.h (struct target_ops) <to_program_signals>: Use
9538 TARGET_DEFAULT_IGNORE.
9539
035cad7f
TT
95402014-02-19 Tom Tromey <tromey@redhat.com>
9541
9542 * target-delegates.c: Rebuild.
9543 * target.c (target_pass_signals): Unconditionally delegate.
9544 * target.h (struct target_ops) <to_pass_signals>: Use
9545 TARGET_DEFAULT_IGNORE.
9546
8d657035
TT
95472014-02-19 Tom Tromey <tromey@redhat.com>
9548
9549 * target-delegates.c: Rebuild.
9550 * target.c (default_mourn_inferior): New function.
9551 (target_mourn_inferior): Unconditionally delegate.
9552 * target.h (struct target_ops) <to_mourn_inferior>: Use
9553 TARGET_DEFAULT_FUNC.
9554
098dba18
TT
95552014-02-19 Tom Tromey <tromey@redhat.com>
9556
9557 * target-delegates.c: Rebuild.
9558 * target.c (default_follow_fork): New function.
9559 (target_follow_fork): Unconditionally delegate.
9560 * target.h (struct target_ops) <to_follow_fork>: Use
9561 TARGET_DEFAULT_FUNC.
9562
423a4807
TT
95632014-02-19 Tom Tromey <tromey@redhat.com>
9564
9565 * target-delegates.c: Rebuild.
9566 * target.c (target_kill): Unconditionally delegate.
9567 * target.h (struct target_ops) <to_kill>: Use
9568 TARGET_DEFAULT_NORETURN.
9569
6c7e5e5c
TT
95702014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target-delegates.c: Rebuild.
9573 * target.c (target_masked_watch_num_registers): Unconditionally
9574 delegate.
9575 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9576 Use TARGET_DEFAULT_RETURN.
9577
8b1c364c
TT
95782014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target-delegates.c: Rebuild.
9581 * target.c (target_remove_mask_watchpoint): Unconditionally
9582 delegate.
9583 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9584 TARGET_DEFAULT_RETURN.
9585
cd4ae029
TT
95862014-02-19 Tom Tromey <tromey@redhat.com>
9587
9588 * target-delegates.c: Rebuild.
9589 * target.c (target_insert_mask_watchpoint): Unconditionally
9590 delegate.
9591 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9592 TARGET_DEFAULT_RETURN.
9593
a134316b
TT
95942014-02-19 Tom Tromey <tromey@redhat.com>
9595
9596 * target-delegates.c: Rebuild.
9597 * target.c (target_ranged_break_num_registers): Unconditionally
9598 delegate.
9599 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9600 Use TARGET_DEFAULT_RETURN.
9601
ad5989bd
TT
96022014-02-19 Tom Tromey <tromey@redhat.com>
9603
9604 * target-delegates.c: Rebuild.
9605 * target.c (target_fetch_registers): Unconditionally delegate.
9606 * target.h (struct target_ops) <to_fetch_registers>: Use
9607 TARGET_DEFAULT_NORETURN.
9608
46ee7e8d
TT
96092014-02-19 Tom Tromey <tromey@redhat.com>
9610
9611 * target-delegates.c: Rebuild.
9612 * target.c (update_current_target): Don't inherit or default
9613 to_stop.
9614 * target.h (struct target_ops) <to_stop>: Use
9615 TARGET_DEFAULT_IGNORE.
9616
843f59ed
TT
96172014-02-19 Tom Tromey <tromey@redhat.com>
9618
9619 * target-delegates.c: Rebuild.
9620 * target.c (update_current_target): Don't inherit or default
9621 to_can_run_breakpoint_commands.
9622 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9623 Use TARGET_DEFAULT_RETURN.
9624
ccfde2a0
TT
96252014-02-19 Tom Tromey <tromey@redhat.com>
9626
9627 * target-delegates.c: Rebuild.
9628 * target.c (update_current_target): Don't inherit or default
9629 to_supports_evaluation_of_breakpoint_conditions.
9630 * target.h (struct target_ops)
9631 <to_supports_evaluation_of_breakpoint_conditions>: Use
9632 TARGET_DEFAULT_RETURN.
9633
0de91722
TT
96342014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target-delegates.c: Rebuild.
9637 * target.c (update_current_target): Don't inherit or default
9638 to_augmented_libraries_svr4_read.
9639 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9640 Use TARGET_DEFAULT_RETURN.
9641
9a7d8b48
TT
96422014-02-19 Tom Tromey <tromey@redhat.com>
9643
9644 * target-delegates.c: Rebuild.
9645 * target.c (update_current_target): Don't inherit or default
9646 to_can_use_agent.
9647 * target.h (struct target_ops) <to_can_use_agent>: Use
9648 TARGET_DEFAULT_RETURN.
9649
d9db5b21
TT
96502014-02-19 Tom Tromey <tromey@redhat.com>
9651
9652 * target-delegates.c: Rebuild.
9653 * target.c (update_current_target): Don't inherit or default
9654 to_use_agent.
9655 * target.h (struct target_ops) <to_use_agent>: Use
9656 TARGET_DEFAULT_NORETURN.
9657
92155eeb
TT
96582014-02-19 Tom Tromey <tromey@redhat.com>
9659
9660 * target-delegates.c: Rebuild.
9661 * target.c (update_current_target): Don't inherit or default
9662 to_traceframe_info.
9663 (return_null): Remove.
9664 * target.h (struct target_ops) <to_traceframe_info>: Use
9665 TARGET_DEFAULT_RETURN.
9666
d6522a22
TT
96672014-02-19 Tom Tromey <tromey@redhat.com>
9668
9669 * target-delegates.c: Rebuild.
9670 * target.c (update_current_target): Don't inherit or default
9671 to_static_tracepoint_markers_by_strid.
9672 * target.h (struct target_ops)
9673 <to_static_tracepoint_markers_by_strid>: Use
9674 TARGET_DEFAULT_NORETURN.
9675
4c3e4425
TT
96762014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target-delegates.c: Rebuild.
9679 * target.c (update_current_target): Don't inherit or default
9680 to_static_tracepoint_marker_at.
9681 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9682 Use TARGET_DEFAULT_RETURN.
9683
dcd6917f
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_permissions.
9689 * target.h (struct target_ops) <to_set_permissions>: Use
9690 TARGET_DEFAULT_IGNORE.
9691
22bcceee
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_get_tib_address.
9697 * target.h (struct target_ops) <to_get_tib_address>: Use
9698 TARGET_DEFAULT_NORETURN.
9699
8586ccaa
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_set_trace_notes.
9705 * target.h (struct target_ops) <to_set_trace_notes>: Use
9706 TARGET_DEFAULT_RETURN.
9707
91df8d1d
TT
97082014-02-19 Tom Tromey <tromey@redhat.com>
9709
9710 * target-delegates.c: Rebuild.
9711 * target.c (update_current_target): Don't initialize
9712 to_set_trace_buffer_size.
9713 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9714 TARGET_DEFAULT_IGNORE.
9715
8d526939
TT
97162014-02-19 Tom Tromey <tromey@redhat.com>
9717
9718 * target-delegates.c: Rebuild.
9719 * target.c (update_current_target): Don't inherit or default
9720 to_set_circular_trace_buffer.
9721 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9722 TARGET_DEFAULT_IGNORE.
9723
0bcfeddf
TT
97242014-02-19 Tom Tromey <tromey@redhat.com>
9725
9726 * target-delegates.c: Rebuild.
9727 * target.c (update_current_target): Don't inherit or default
9728 to_set_disconnected_tracing.
9729 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9730 TARGET_DEFAULT_IGNORE.
9731
9249843f
TT
97322014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target-delegates.c: Rebuild.
9735 * target.c (update_current_target): Don't inherit or default
9736 to_get_min_fast_tracepoint_insn_len.
9737 (return_minus_one): Remove.
9738 * target.h (struct target_ops)
9739 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9740
ace92e7d
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_raw_trace_data.
9746 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9747 TARGET_DEFAULT_NORETURN.
9748
08120467
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_upload_trace_state_variables.
9754 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9755 Use TARGET_DEFAULT_RETURN.
9756
1e949b00
TT
97572014-02-19 Tom Tromey <tromey@redhat.com>
9758
9759 * target-delegates.c: Rebuild.
9760 * target.c (update_current_target): Don't inherit or default
9761 to_upload_tracepoints.
9762 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9763 TARGET_DEFAULT_RETURN.
9764
a2e6c147
TT
97652014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target-delegates.c: Rebuild.
9768 * target.c (update_current_target): Don't inherit or default
9769 to_save_trace_data.
9770 * target.h (struct target_ops) <to_save_trace_data>: Use
9771 TARGET_DEFAULT_NORETURN.
9772
959bcd0b
TT
97732014-02-19 Tom Tromey <tromey@redhat.com>
9774
9775 * target-delegates.c: Rebuild.
9776 * target.c (update_current_target): Don't inherit or default
9777 to_get_trace_state_variable_value.
9778 * target.h (struct target_ops)
9779 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9780
afc94e66
TT
97812014-02-19 Tom Tromey <tromey@redhat.com>
9782
9783 * target-delegates.c: Rebuild.
9784 * target.c (update_current_target): Don't inherit or default
9785 to_trace_find.
9786 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9787
e51c07ea
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_stop.
9793 * target.h (struct target_ops) <to_trace_stop>: Use
9794 TARGET_DEFAULT_NORETURN.
9795
6fea14cd
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_get_tracepoint_status.
9801 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9802 TARGET_DEFAULT_NORETURN.
9803
4072d4ff
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_get_trace_status.
9809 * target.h (struct target_ops) <to_get_trace_status>: Use
9810 TARGET_DEFAULT_RETURN.
9811
25da2e80
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_trace_start.
9817 * target.h (struct target_ops) <to_trace_start>: Use
9818 TARGET_DEFAULT_NORETURN.
9819
86dd181d
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_trace_set_readonly_regions.
9825 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9826 Use TARGET_DEFAULT_NORETURN.
9827
05c41993
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_disable_tracepoint.
9833 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9834 TARGET_DEFAULT_NORETURN.
9835
151f70f1
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_enable_tracepoint.
9841 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9842 TARGET_DEFAULT_NORETURN.
9843
94eb98b9
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_download_trace_state_variable.
9849 * target.h (struct target_ops) <to_download_trace_state_variable>:
9850 Use TARGET_DEFAULT_NORETURN.
9851
719acc4a
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_can_download_tracepoint.
9857 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9858 TARGET_DEFAULT_RETURN.
9859
9a980a22
TT
98602014-02-19 Tom Tromey <tromey@redhat.com>
9861
9862 * target-delegates.c: Rebuild.
9863 * target.c (update_current_target): Don't inherit or default
9864 to_download_tracepoint.
9865 * target.h (struct target_ops) <to_download_tracepoint>: Use
9866 TARGET_DEFAULT_NORETURN.
9867
5536135b
TT
98682014-02-19 Tom Tromey <tromey@redhat.com>
9869
9870 * target-delegates.c: Rebuild.
9871 * target.c (update_current_target): Don't inherit or default
9872 to_trace_init.
9873 * target.h (struct target_ops) <to_trace_init>: Use
9874 TARGET_DEFAULT_RETURN.
9875
9409d39e
TT
98762014-02-19 Tom Tromey <tromey@redhat.com>
9877
9878 * target-delegates.c: Rebuild.
9879 * target.c (update_current_target): Don't inherit or default
9880 to_supports_string_tracing.
9881 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9882 TARGET_DEFAULT_RETURN.
9883
aab1b22d
TT
98842014-02-19 Tom Tromey <tromey@redhat.com>
9885
9886 * target-delegates.c: Rebuild.
9887 * target.c (update_current_target): Don't inherit or default
9888 to_supports_enable_disable_tracepoint.
9889 * target.h (struct target_ops)
9890 <to_supports_enable_disable_tracepoint>: Use
9891 TARGET_DEFAULT_RETURN.
9892
a7304748
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_supports_multi_process.
9898 * target.h (struct target_ops) <to_supports_multi_process>: Use
9899 TARGET_DEFAULT_RETURN.
9900
4229b31d
TT
99012014-02-19 Tom Tromey <tromey@redhat.com>
9902
9903 * target-delegates.c: Rebuild.
9904 * target.c (update_current_target): Don't inherit or default
9905 to_get_ada_task_ptid.
9906 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9907 TARGET_DEFAULT_FUNC.
9908
43eba180
TT
99092014-02-19 Tom Tromey <tromey@redhat.com>
9910
9911 * target-delegates.c: Rebuild.
9912 * target.c (update_current_target): Don't inherit or default
9913 to_thread_architecture.
9914 * target.h (struct target_ops) <to_thread_architecture>: Use
9915 TARGET_DEFAULT_FUNC.
9916
fe31bf5b
TT
99172014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target-delegates.c: Rebuild.
9920 * target.c (update_current_target): Don't inherit or default
9921 to_execution_direction.
9922 * target.h (struct target_ops) <to_execution_direction>: Use
9923 TARGET_DEFAULT_FUNC.
9924
53e1cfc7
TT
99252014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target-delegates.c: Rebuild.
9928 * target.c (update_current_target): Don't inherit or default
9929 to_can_execute_reverse.
9930 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9931 TARGET_DEFAULT_RETURN.
9932 (target_can_execute_reverse): Unconditionally delegate.
9933
9bb9d61d
TT
99342014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target-delegates.c: Rebuild.
9937 * target.c (update_current_target): Don't inherit or default
9938 to_goto_bookmark.
9939 (dummy_goto_bookmark): Remove.
9940 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9941 * target.h (struct target_ops) <to_goto_bookmark>: Use
9942 TARGET_DEFAULT_NORETURN.
9943
3dbafbbb
TT
99442014-02-19 Tom Tromey <tromey@redhat.com>
9945
9946 * target-delegates.c: Rebuild.
9947 * target.c (update_current_target): Don't inherit or default
9948 to_get_bookmark.
9949 (dummy_get_bookmark): Remove.
9950 (init_dummy_target): Don't inherit or default to_get_bookmark.
9951 * target.h (struct target_ops) <to_get_bookmark>: Use
9952 TARGET_DEFAULT_NORETURN
9953
16f796b1
TT
99542014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target-delegates.c: Rebuild.
9957 * target.c (update_current_target): Don't inherit or default
9958 to_make_corefile_notes.
9959 (init_dummy_target): Don't initialize to_make_corefile_notes.
9960 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9961 TARGET_DEFAULT_FUNC.
9962
0b5a2719
TT
99632014-02-19 Tom Tromey <tromey@redhat.com>
9964
9965 * target-delegates.c: Rebuild.
9966 * target.c (update_current_target): Don't inherit or default
9967 to_find_memory_regions.
9968 (init_dummy_target): Don't initialize to_find_memory_regions.
9969 * target.h (struct target_ops) <to_find_memory_regions>: Use
9970 TARGET_DEFAULT_FUNC.
9971
d9cb0195
TT
99722014-02-19 Tom Tromey <tromey@redhat.com>
9973
9974 * target-delegates.c: Rebuild.
9975 * target.c (update_current_target): Don't inherit or default
9976 to_log_command.
9977 * target.h (struct target_ops) <to_log_command>: Use
9978 TARGET_DEFAULT_IGNORE.
9979 (target_log_command): Unconditionally delegate.
9980
830ca330
TT
99812014-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * target-delegates.c: Rebuild.
9984 * target.c (update_current_target): Don't inherit or default
9985 to_pid_to_exec_file.
9986 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9987 TARGET_DEFAULT_RETURN.
9988
825828fc
TT
99892014-02-19 Tom Tromey <tromey@redhat.com>
9990
9991 * target-delegates.c: Rebuild.
9992 * target.c (update_current_target): Don't inherit or default
9993 to_thread_name.
9994 (target_thread_name): Unconditionally delegate.
9995 * target.h (struct target_ops) <to_thread_name>: Use
9996 TARGET_DEFAULT_RETURN.
9997
4a7e6dda
TT
99982014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target-delegates.c: Rebuild.
10001 * target.c (update_current_target): Don't inherit or default
10002 to_extra_thread_info.
10003 * target.h (struct target_ops) <to_extra_thread_info>: Use
10004 TARGET_DEFAULT_RETURN.
10005
0db88c1d
TT
100062014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target-delegates.c: Rebuild.
10009 * target.c (update_current_target): Don't inherit or default
10010 to_has_exited.
10011 * target.h (struct target_ops) <to_has_exited>: Use
10012 TARGET_DEFAULT_RETURN..
10013
6a9fa051
TT
100142014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target-delegates.c: Rebuild.
10017 * target.c (update_current_target): Don't inherit or default
10018 to_set_syscall_catchpoint.
10019 (return_one): Remove.
10020 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10021 TARGET_DEFAULT_RETURN.
10022
62f64d7a
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_insert_exec_catchpoint.
10028 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10029 TARGET_DEFAULT_RETURN.
10030
cda0f38c
TT
100312014-01-08 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_exec_catchpoint.
10036 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10037 TARGET_DEFAULT_RETURN.
10038
95c3375e
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_remove_vfork_catchpoint.
10044 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10045 TARGET_DEFAULT_RETURN.
10046
7e18a8dc
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_insert_vfork_catchpoint.
10052 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10053 TARGET_DEFAULT_RETURN.
10054
e1a21fb7
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_remove_fork_catchpoint.
10060 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10061 TARGET_DEFAULT_RETURN.
10062
5958ebeb
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_insert_fork_catchpoint.
10068 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10069 TARGET_DEFAULT_RETURN.
10070
340ba4bf
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_post_startup_inferior.
10076 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10077 TARGET_DEFAULT_IGNORE.
10078
7634da87
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_load.
10084 * target.h (struct target_ops) <to_load>: Use
10085 TARGET_DEFAULT_NORETURN.
10086
e19e919f
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_info.
10092 * target.h (struct target_ops) <to_terminal_info>: Use
10093 TARGET_DEFAULT_FUNC.
10094
c6ea8f79
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_save_ours.
10100 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10101 TARGET_DEFAULT_IGNORE.
10102
e4a733f1
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_terminal_ours.
10108 * target.h (struct target_ops) <to_terminal_ours>: Use
10109 TARGET_DEFAULT_IGNORE.
10110
74fcbef9
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_terminal_ours_for_output.
10116 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10117 TARGET_DEFAULT_IGNORE.
10118
ddeaacc9
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_terminal_inferior.
10124 * target.h (struct target_ops) <to_terminal_inferior>: Use
10125 TARGET_DEFAULT_IGNORE.
10126
0343661d
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_terminal_init.
10132 * target.h (struct target_ops) <to_terminal_init>: Use
10133 TARGET_DEFAULT_IGNORE.
10134
77cdffe9
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_can_accel_watchpoint_condition.
10140 * target.h (struct target_ops)
10141 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10142
d03655e4
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_region_ok_for_hw_watchpoint.
10148 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10149 Use TARGET_DEFAULT_FUNC.
10150
65f160a9
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_watchpoint_addr_within_range.
10156 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10157 Use TARGET_DEFAULT_FUNC.
10158
61dd109f
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_remove_watchpoint.
10164 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10165 TARGET_DEFAULT_NORETURN.
10166
016facd4
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_insert_watchpoint.
10172 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10173 TARGET_DEFAULT_RETURN.
10174
418dabac
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_remove_hw_breakpoint.
10180 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10181 TARGET_DEFAULT_RETURN.
10182
61b371f9
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_insert_hw_breakpoint.
10188 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10189 TARGET_DEFAULT_RETURN.
10190
52b51d06
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_can_use_hw_breakpoint.
10196 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10197 TARGET_DEFAULT_RETURN.
10198
f86e59b2
TT
101992014-02-19 Tom Tromey <tromey@redhat.com>
10200
10201 * target-delegates.c: Rebuild.
10202 * target.c (update_current_target): Don't inherit or default
10203 to_files_info.
10204 * target.h (struct target_ops) <to_files_info>: Use
10205 TARGET_DEFAULT_IGNORE.
10206
6c628163
TT
102072014-02-19 Tom Tromey <tromey@redhat.com>
10208
10209 * target-delegates.c: Rebuild.
10210 * target.c (update_current_target): Don't inherit or default
10211 to_store.
10212 * target.h (struct target_ops) <to_store>: Use
10213 TARGET_DEFAULT_NORETURN.
10214
bebd3233
TT
102152014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target-delegates.c: Rebuild.
10218 * target.c (update_current_target): Don't inherit or default
10219 to_post_attach.
10220 * target.h (struct target_ops) <to_post_attach>: Use
10221 TARGET_DEFAULT_IGNORE.
10222
a53f3625
TT
102232014-02-19 Tom Tromey <tromey@redhat.com>
10224
10225 * target-delegates.c: Rebuild.
10226 * target.c (update_current_target): Don't inherit or default
10227 to_rcmd.
10228 (default_rcmd): New function.
10229 (do_monitor_command): Unconditionally delegate.
10230 * target.h (struct target_ops) <to_rmcd>: Use
10231 TARGET_DEFAULT_FUNC.
10232
e9a29200
TT
102332014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target-delegates.c: Rebuild.
10236 * target.c (init_dummy_target): Don't initialize to_attach.
10237 (target_attach): Unconditionally delegate.
10238 * target.h (struct target_ops) <to_attach>: Use
10239 TARGET_DEFAULT_FUNC.
10240
09da0d0a
TT
102412014-02-19 Tom Tromey <tromey@redhat.com>
10242
10243 * target-delegates.c: Rebuild.
10244 * target.c (target_detach): Unconditionally delegate.
10245 (init_dummy_target): Don't initialize to_detach.
10246 * target.h (struct target_ops) <to_detach>: Use
10247 TARGET_DEFAULT_IGNORE.
10248
5436ff03
TT
102492014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10252 Add argument.
10253 (target_augmented_libraries_svr4_read): Add argument.
10254 * target.c (update_current_target): Update.
10255 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10256 argument.
10257
f0d960ea
TT
102582014-02-19 Tom Tromey <tromey@redhat.com>
10259
10260 * target.h (struct target_ops) <to_call_history_range>: Add
10261 argument.
10262 * target.c (target_call_history_range): Add argument.
10263 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10264 argument.
10265 (record_btrace_call_history_from): Update.
10266
ec0aea04
TT
102672014-02-19 Tom Tromey <tromey@redhat.com>
10268
10269 * target.h (struct target_ops) <to_call_history_from>: Add
10270 argument.
10271 * target.c (target_call_history_from): Add argument.
10272 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10273 argument.
10274
5df2fcba
TT
102752014-02-19 Tom Tromey <tromey@redhat.com>
10276
10277 * target.h (struct target_ops) <to_call_history>: Add argument.
10278 * target.c (target_call_history): Add argument.
10279 * record-btrace.c (record_btrace_call_history): Add 'self'
10280 argument.
10281
4e99c6b7
TT
102822014-02-19 Tom Tromey <tromey@redhat.com>
10283
10284 * target.h (struct target_ops) <to_insn_history_range>: Add
10285 argument.
10286 * target.c (target_insn_history_range): Add argument.
10287 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10288 argument.
10289 (record_btrace_insn_history_from): Update.
10290
9abc3ff3
TT
102912014-02-19 Tom Tromey <tromey@redhat.com>
10292
10293 * target.h (struct target_ops) <to_insn_history_from>: Add
10294 argument.
10295 * target.c (target_insn_history_from): Add argument.
10296 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10297 argument.
10298
7a6c5609
TT
102992014-02-19 Tom Tromey <tromey@redhat.com>
10300
10301 * target.h (struct target_ops) <to_insn_history>: Add argument.
10302 * target.c (target_insn_history): Add argument.
10303 * record-btrace.c (record_btrace_insn_history): Add 'self'
10304 argument.
10305
606183ac
TT
103062014-02-19 Tom Tromey <tromey@redhat.com>
10307
10308 * target.h (struct target_ops) <to_goto_record>: Add argument.
10309 * target.c (target_goto_record): Add argument.
10310 * record-full.c (record_full_goto): Add 'self' argument.
10311 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10312
307a1b91
TT
103132014-02-19 Tom Tromey <tromey@redhat.com>
10314
10315 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10316 * target.c (target_goto_record_end): Add argument.
10317 * record-full.c (record_full_goto_end): Add 'self' argument.
10318 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10319
08475817
TT
103202014-02-19 Tom Tromey <tromey@redhat.com>
10321
10322 * target.h (struct target_ops) <to_goto_record_begin>: Add
10323 argument.
10324 * target.c (target_goto_record_begin): Add argument.
10325 * record-full.c (record_full_goto_begin): Add 'self' argument.
10326 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10327 argument.
10328
1c63c994
TT
103292014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target.h (struct target_ops) <to_record_is_replaying>: Add
10332 argument.
10333 * target.c (target_record_is_replaying): Add argument.
10334 * record-full.c (record_full_is_replaying): Add 'self' argument.
10335 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10336 argument.
10337 (record_btrace_xfer_partial, record_btrace_store_registers)
10338 (record_btrace_prepare_to_store, record_btrace_resume)
10339 (record_btrace_wait, record_btrace_decr_pc_after_break)
10340 (record_btrace_find_new_threads, record_btrace_thread_alive):
10341 Update.
10342
d1b55219
TT
103432014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * target.h (struct target_ops) <to_delete_record>: Add argument.
10346 * target.c (target_delete_record): Add argument.
10347 * record-full.c (record_full_delete): Add 'self' argument.
10348
1390f529
TT
103492014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target.h (struct target_ops) <to_save_record>: Add argument.
10352 * target.c (target_save_record): Add argument.
10353 * record-full.c (record_full_save): Add 'self' argument.
10354 (record_full_save): Add 'self' argument.
10355
630d6a4a
TT
103562014-02-19 Tom Tromey <tromey@redhat.com>
10357
10358 * target.h (struct target_ops) <to_info_record>: Add argument.
10359 * target.c (target_info_record): Add argument.
10360 * record.c (info_record_command): Add argument.
10361 * record-full.c (record_full_info): Add 'self' argument.
10362 * record-btrace.c (record_btrace_info): Add 'self' argument.
10363
c6cd7c02
TT
103642014-02-19 Tom Tromey <tromey@redhat.com>
10365
10366 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10367 * target.c (target_stop_recording): Add argument.
10368 * record.c (record_stop): Add argument.
10369 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10370 argument.
10371
39c49f83
TT
103722014-02-19 Tom Tromey <tromey@redhat.com>
10373
10374 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10375 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10376 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10377 argument.
10378 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10379 (_initialize_amd64_linux_nat): Use it.
10380 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10381 (_initialize_i386_linux_nat): Use it.
10382
1777056d
TT
103832014-02-19 Tom Tromey <tromey@redhat.com>
10384
10385 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10386 * target.c (target_teardown_btrace): Add argument.
10387 * remote.c (remote_teardown_btrace): Add 'self' argument.
10388 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10389 argument.
10390 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10391 argument.
10392
25e95349
TT
103932014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10396 * target.c (target_disable_btrace): Add argument.
10397 * remote.c (remote_disable_btrace): Add 'self' argument.
10398 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10399 argument.
10400 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10401 argument.
10402
e3c49f88
TT
104032014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10406 * target.c (target_enable_btrace): Add argument.
10407 * remote.c (remote_enable_btrace): Add 'self' argument.
10408 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10409 argument.
10410 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10411 argument.
10412
fe38f897
TT
104132014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10416 (target_can_use_agent): Add argument.
10417 * target.c (update_current_target): Update.
10418 * remote.c (remote_can_use_agent): Add 'self' argument.
10419 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10420
2c152180
TT
104212014-02-19 Tom Tromey <tromey@redhat.com>
10422
10423 * target.h (struct target_ops) <to_use_agent>: Add argument.
10424 (target_use_agent): Add argument.
10425 * target.c (update_current_target): Update.
10426 * remote.c (remote_use_agent): Add 'self' argument.
10427 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10428
a893e81f
TT
104292014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10432 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10433 (target_traceframe_info): Add argument.
10434 * target.c (update_current_target): Update.
10435 * remote.c (remote_traceframe_info): Add 'self' argument.
10436 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10437
c686c57f
TT
104382014-02-19 Tom Tromey <tromey@redhat.com>
10439
10440 * target.h (target_static_tracepoint_markers_by_strid): Add
10441 argument.
10442 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10443 'self' argument.
10444 * target.c (update_current_target): Update.
10445 * remote.c (struct target_ops)
10446 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10447 * linux-nat.c (struct target_ops)
10448 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10449
61fc905d
TT
104502014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10453 Add argument.
10454 (target_static_tracepoint_marker_at): Add argument.
10455 * target.c (update_current_target): Update.
10456 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10457 argument.
10458
c378d69d
TT
104592014-02-19 Tom Tromey <tromey@redhat.com>
10460
10461 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10462 (target_set_permissions): Add argument.
10463 * target.c (update_current_target): Update.
10464 * remote.c (remote_set_permissions): Add 'self' argument.
10465 (remote_start_remote): Update.
10466
bd7ae0f5
TT
104672014-02-19 Tom Tromey <tromey@redhat.com>
10468
10469 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10470 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10471 (target_get_tib_address): Add argument.
10472 * target.c (update_current_target): Update.
10473 * remote.c (remote_get_tib_address): Add 'self' argument.
10474
d9e68a2c
TT
104752014-02-19 Tom Tromey <tromey@redhat.com>
10476
10477 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10478 (target_set_trace_notes): Add argument.
10479 * target.c (update_current_target): Update.
10480 * remote.c (remote_set_trace_notes): Add 'self' argument.
10481
4da384be
TT
104822014-02-19 Tom Tromey <tromey@redhat.com>
10483
10484 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10485 argument.
10486 (target_set_trace_buffer_size): Add argument.
10487 * target.c (update_current_target): Update.
10488 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10489
736d5b1f
TT
104902014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10493 argument.
10494 (target_set_circular_trace_buffer): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10497 argument.
10498
37b25738
TT
104992014-02-19 Tom Tromey <tromey@redhat.com>
10500
10501 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10502 argument.
10503 (target_set_disconnected_tracing): Add argument.
10504 * target.c (update_current_target): Update.
10505 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10506
0e67620a
TT
105072014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * target.h (struct target_ops)
10510 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10511 (target_get_min_fast_tracepoint_insn_len): Add argument.
10512 * target.c (update_current_target): Update.
10513 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10514 argument.
10515
88ee6f45
TT
105162014-02-19 Tom Tromey <tromey@redhat.com>
10517
10518 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10519 argument.
10520 (target_get_raw_trace_data): Add argument.
10521 * target.c (update_current_target): Update.
10522 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10523
181e3713
TT
105242014-02-19 Tom Tromey <tromey@redhat.com>
10525
10526 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10527 Add argument.
10528 (target_upload_trace_state_variables): Add argument.
10529 * target.c (update_current_target): Update.
10530 * remote.c (remote_upload_trace_state_variables): Add 'self'
10531 argument.
10532 (remote_start_remote): Update.
10533
ab6617cc
TT
105342014-02-19 Tom Tromey <tromey@redhat.com>
10535
10536 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10537 argument.
10538 (target_upload_tracepoints): Add argument.
10539 * target.c (update_current_target): Update.
10540 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10541 (remote_start_remote): Update.
10542
dc3decaf
TT
105432014-02-19 Tom Tromey <tromey@redhat.com>
10544
10545 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10546 (target_save_trace_data): Add argument.
10547 * target.c (update_current_target): Update.
10548 * remote.c (remote_save_trace_data): Add 'self' argument.
10549
4011015b
TT
105502014-02-19 Tom Tromey <tromey@redhat.com>
10551
10552 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10553 argument.
10554 * target.h (struct target_ops)
10555 <to_get_trace_state_variable_value>: Add argument.
10556 (target_get_trace_state_variable_value): Add argument.
10557 * target.c (update_current_target): Update.
10558 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10559 argument.
10560 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10561
bd4c6793
TT
105622014-02-19 Tom Tromey <tromey@redhat.com>
10563
10564 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10565 * target.h (struct target_ops) <to_trace_find>: Add argument.
10566 (target_trace_find): Add argument.
10567 * target.c (update_current_target): Update.
10568 * remote.c (remote_trace_find): Add 'self' argument.
10569 * ctf.c (ctf_trace_find): Add 'self' argument.
10570
74499f1b
TT
105712014-02-19 Tom Tromey <tromey@redhat.com>
10572
10573 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10574 (target_trace_stop): Add argument.
10575 * target.c (update_current_target): Update.
10576 * remote.c (remote_trace_stop): Add 'self' argument.
10577
db90e85c
TT
105782014-02-19 Tom Tromey <tromey@redhat.com>
10579
10580 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10581 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10582 argument.
10583 (target_get_tracepoint_status): Add argument.
10584 * target.c (update_current_target): Update.
10585 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10586
8bd200f1
TT
105872014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10590 * target.h (struct target_ops) <to_get_trace_status>: Add
10591 argument.
10592 (target_get_trace_status): Add argument.
10593 * target.c (update_current_target): Update.
10594 * remote.c (remote_get_trace_status): Add 'self' argument.
10595 (remote_start_remote, remote_can_download_tracepoint): Update.
10596 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10597
e2d1aae3
TT
105982014-02-19 Tom Tromey <tromey@redhat.com>
10599
10600 * target.h (struct target_ops) <to_trace_start>: Add argument.
10601 (target_trace_start): Add argument.
10602 * target.c (update_current_target): Update.
10603 * remote.c (remote_trace_start): Add 'self' argument.
10604
583f9a86
TT
106052014-02-19 Tom Tromey <tromey@redhat.com>
10606
10607 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10608 Add argument.
10609 (target_trace_set_readonly_regions): Add argument.
10610 * target.c (update_current_target): Update.
10611 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10612 argument.
10613
780b049c
TT
106142014-02-19 Tom Tromey <tromey@redhat.com>
10615
10616 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10617 argument.
10618 (target_disable_tracepoint): Add argument.
10619 * target.c (update_current_target): Update.
10620 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10621
46670d57
TT
106222014-02-19 Tom Tromey <tromey@redhat.com>
10623
10624 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10625 argument.
10626 (target_enable_tracepoint): Add argument.
10627 * target.c (update_current_target): Update.
10628 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10629
559d2b81
TT
106302014-02-19 Tom Tromey <tromey@redhat.com>
10631
10632 * target.h (struct target_ops) <to_download_trace_state_variable>:
10633 Add argument.
10634 (target_download_trace_state_variable): Add argument.
10635 * target.c (update_current_target): Update.
10636 * remote.c (remote_download_trace_state_variable): Add 'self'
10637 argument.
10638
a52a8357
TT
106392014-02-19 Tom Tromey <tromey@redhat.com>
10640
10641 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10642 argument.
10643 (target_can_download_tracepoint): Add argument.
10644 * target.c (update_current_target): Update.
10645 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10646
548f7808
TT
106472014-02-19 Tom Tromey <tromey@redhat.com>
10648
10649 * target.h (struct target_ops) <to_download_tracepoint>: Add
10650 argument.
10651 (target_download_tracepoint): Add argument.
10652 * target.c (update_current_target): Update.
10653 * remote.c (remote_download_tracepoint): Add 'self' argument.
10654
ecae04e1
TT
106552014-02-19 Tom Tromey <tromey@redhat.com>
10656
10657 * target.h (struct target_ops) <to_trace_init>: Add argument.
10658 (target_trace_init): Add argument.
10659 * target.c (update_current_target): Update.
10660 * remote.c (remote_trace_init): Add 'self' argument.
10661
fab5aa7c
TT
106622014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10665 * target.c (target_fileio_readlink): Add argument.
10666 * remote.c (remote_hostio_readlink): Add 'self' argument.
10667 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10668
dbbca37d
TT
106692014-02-19 Tom Tromey <tromey@redhat.com>
10670
10671 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10672 * target.c (target_fileio_unlink): Add argument.
10673 * remote.c (remote_hostio_unlink): Add 'self' argument.
10674 (remote_file_delete): Update.
10675 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10676
df39ea25
TT
106772014-02-19 Tom Tromey <tromey@redhat.com>
10678
10679 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10680 * target.c (target_fileio_close): Add argument.
10681 * remote.c (remote_hostio_close): Add 'self' argument.
10682 (remote_hostio_close_cleanup): Update.
10683 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10684 Update.
10685 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10686
a3be983c
TT
106872014-02-19 Tom Tromey <tromey@redhat.com>
10688
10689 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10690 * target.c (target_fileio_pread): Add argument.
10691 * remote.c (remote_hostio_pread): Add 'self' argument.
10692 (remote_bfd_iovec_pread, remote_file_get): Update.
10693 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10694
0d866f62
TT
106952014-02-19 Tom Tromey <tromey@redhat.com>
10696
10697 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10698 * target.c (target_fileio_pwrite): Add argument.
10699 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10700 (remote_file_put): Update.
10701 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10702
cd897586
TT
107032014-02-19 Tom Tromey <tromey@redhat.com>
10704
10705 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10706 * target.c (target_fileio_open): Add argument.
10707 * remote.c (remote_hostio_open): Add 'self' argument.
10708 (remote_bfd_iovec_open): Add 'self' argument.
10709 (remote_file_put): Add 'self' argument.
10710 (remote_file_get): Add 'self' argument.
10711 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10712
78eff0ec
TT
107132014-02-19 Tom Tromey <tromey@redhat.com>
10714
10715 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10716 Add argument.
10717 (target_can_run_breakpoint_commands): Add argument.
10718 * target.c (update_current_target): Update.
10719 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10720 argument.
10721 (remote_insert_breakpoint): Add 'self' argument.
10722 (remote_insert_hw_breakpoint): Add 'self' argument.
10723 (remote_can_run_breakpoint_commands): Add 'self' argument.
10724
efcc2da7
TT
107252014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target.h (struct target_ops)
10728 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10729 (target_supports_evaluation_of_breakpoint_conditions): Add
10730 argument.
10731 * target.c (update_current_target): Update.
10732 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10733 argument.
10734 (remote_insert_breakpoint): Add 'self' argument.
10735 (remote_insert_hw_breakpoint): Add 'self' argument.
10736 (remote_supports_cond_breakpoints): Add 'self' argument.
10737
6de37a3a
TT
107382014-02-19 Tom Tromey <tromey@redhat.com>
10739
10740 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10741 argument.
10742 (target_supports_string_tracing): Add argument.
10743 * target.c (update_current_target): Update.
10744 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10745
2bfc0540
TT
107462014-02-19 Tom Tromey <tromey@redhat.com>
10747
10748 * target.h (struct target_ops)
10749 <to_supports_disable_randomization>: Add argument.
10750 * target.c (find_default_supports_disable_randomization): Add
10751 argument.
10752 (target_supports_disable_randomization): Add argument.
10753 (find_default_supports_disable_randomization): Add 'self'
10754 argument.
10755 * remote.c (extended_remote_supports_disable_randomization): Add
10756 'self' argument.
10757 (remote_supports_disable_randomization): Add 'self' argument.
10758 (extended_remote_create_inferior): Update.
10759 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10760 'self' argument.
10761
7d178d6a
TT
107622014-02-19 Tom Tromey <tromey@redhat.com>
10763
10764 * target.h (struct target_ops)
10765 <to_supports_enable_disable_tracepoint>: Add argument.
10766 (target_supports_enable_disable_tracepoint): Add argument.
10767 * target.c (update_current_target): Update.
10768 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10769 argument.
10770
86ce2668
TT
107712014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target.h (struct target_ops) <to_supports_multi_process>: Add
10774 argument.
10775 (target_supports_multi_process): Add argument.
10776 * target.c (update_current_target): Update.
10777 * remote.c (remote_supports_multi_process): Add 'self' argument.
10778 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10779 argument.
10780 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10781 argument.
10782
4c612759
TT
107832014-02-19 Tom Tromey <tromey@redhat.com>
10784
10785 * target.h (struct target_ops) <to_execution_direction>: Add
10786 argument.
10787 (target_execution_direction): Add argument.
10788 * target.c (default_execution_direction): Add 'self' argument.
10789 * record-full.c (record_full_execution_direction): Add 'self'
10790 argument.
10791
19db3e69
TT
107922014-02-19 Tom Tromey <tromey@redhat.com>
10793
10794 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10795 argument.
10796 (target_can_execute_reverse): Add argument.
10797 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10798 * record-full.c (record_full_can_execute_reverse): Add 'self'
10799 argument.
10800 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10801 argument.
10802
1e6b91a4
TT
108032014-02-19 Tom Tromey <tromey@redhat.com>
10804
10805 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10806 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10807 argument.
10808 (target_get_ada_task_ptid): Add argument.
10809 * target.c (update_current_target): Update.
10810 (default_get_ada_task_ptid): Add 'self' argument.
10811 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10812 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10813 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10814 argument.
10815 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10816 argument.
10817 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10818 argument.
10819 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10820 argument.
10821 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10822 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10823 argument.
10824
3c80fb48
TT
108252014-02-19 Tom Tromey <tromey@redhat.com>
10826
10827 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10828 (target_goto_bookmark): Add argument.
10829 * target.c (dummy_goto_bookmark): Add 'self' argument.
10830 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10831
dd0e2830
TT
108322014-02-19 Tom Tromey <tromey@redhat.com>
10833
10834 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10835 (target_get_bookmark): Add argument.
10836 * target.c (dummy_get_bookmark): Add 'self' argument.
10837 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10838
fc6691b2
TT
108392014-02-19 Tom Tromey <tromey@redhat.com>
10840
10841 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10842 argument.
10843 (target_make_corefile_notes): Add argument.
10844 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10845 * procfs.c (procfs_make_note_section): Add 'self' argument.
10846 (procfs_make_note_section): Add 'self' argument.
10847 (procfs_make_note_section): Add 'self' argument.
10848 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10849 argument.
10850 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10851 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10852 * exec.c (exec_make_note_section): Add 'self' argument.
10853 (exec_make_note_section): Add 'self' argument.
10854
2e73927c
TT
108552014-02-19 Tom Tromey <tromey@redhat.com>
10856
10857 * target.h (struct target_ops) <to_find_memory_regions>: Add
10858 argument.
10859 (target_find_memory_regions): Add argument.
10860 * target.c (dummy_find_memory_regions): Add 'self' argument.
10861 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10862 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10863 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10864 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10865 * exec. (exec_do_find_memory_regions): New global.
10866 (exec_set_find_memory_regions): Rewrite.
10867 (exec_find_memory_regions): New function.
10868 (init_exec_ops): Use exec_find_memory_regions.
10869
2a9a2795
TT
108702014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target.h (struct target_ops) <to_supports_non_stop>: Add
10873 argument.
10874 * target.c (find_default_supports_non_stop): Add argument.
10875 (target_supports_non_stop): Add argument.
10876 (find_default_supports_non_stop): Add 'self' argument.
10877 * remote.c (remote_supports_non_stop): Add 'self' argument.
10878 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10879
4ab76ea3
TT
108802014-02-19 Tom Tromey <tromey@redhat.com>
10881
10882 * target.h (struct target_ops) <to_log_command>: Add argument.
10883 (target_log_command): Add argument.
10884 * serial.h (serial_log_command): Add 'self' argument.
10885 * serial.c (serial_log_command): Add 'self' argument.
10886
8dd27370
TT
108872014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10890 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10891 argument.
10892 (target_pid_to_exec_file): Add argument.
10893 * target.c (debug_to_pid_to_exec_file): Add argument.
10894 (update_current_target): Update.
10895 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10896 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10897 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10898 (linux_handle_extended_wait): Update.
10899 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10900 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10901 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10902 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10903
1aac633b
TT
109042014-02-19 Tom Tromey <tromey@redhat.com>
10905
10906 * target.h (struct target_ops) <to_rcmd>: Add argument.
10907 (target_rcmd): Add argument.
10908 * target.c (debug_to_rcmd): Add argument.
10909 (update_current_target, do_monitor_command): Update.
10910 * remote.c (remote_rcmd): Add 'self' argument.
10911 * monitor.c (monitor_rcmd): Add 'self' argument.
10912
1eab8a48
TT
109132014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * windows-nat.c (windows_stop): Add 'self' argument.
10916 * target.h (struct target_ops) <to_stop>: Add argument.
10917 * target.c (target_stop): Add argument.
10918 (debug_to_stop): Add argument.
10919 (update_current_target): Update.
10920 * remote.c (remote_stop): Add 'self' argument.
10921 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10922 (gdbsim_cntrl_c): Update.
10923 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10924 * procfs.c (procfs_stop): Add 'self' argument.
10925 * nto-procfs.c (procfs_stop): Add 'self' argument.
10926 * monitor.c (monitor_stop): Add 'self' argument.
10927 (monitor_open): Update.
10928 * linux-nat.c (linux_nat_stop): Add argument.
10929 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10930 * gnu-nat.c (gnu_stop): Add 'self' argument.
10931 * darwin-nat.c (darwin_stop): Add 'self' argument.
10932
503a628d
TT
109332014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target.h (struct target_ops) <to_thread_name>: Add argument.
10936 * target.c (target_thread_name): Add argument.
10937 (update_current_target): Update.
10938 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10939
c15906d8
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target.h (struct target_ops) <to_extra_thread_info>: Add
10943 argument.
10944 (target_extra_thread_info): Add argument.
10945 * target.c (update_current_target): Update.
10946 * remote.c (remote_threads_extra_info): Add 'self' argument.
10947 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10948 argument.
10949 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10950 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10951 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10952 argument.
10953 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10954 argument.
10955 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10956 argument.
10957 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10958 argument.
10959
daf5e9b6
TT
109602014-02-19 Tom Tromey <tromey@redhat.com>
10961
10962 * target.h (struct target_ops) <to_program_signals>: Add argument.
10963 * target.c (target_program_signals): Add argument.
10964 * remote.c (remote_program_signals): Add 'self' argument.
10965
94bedb42
TT
109662014-02-19 Tom Tromey <tromey@redhat.com>
10967
10968 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10969 * target.c (target_pass_signals): Add argument.
10970 * remote.c (remote_pass_signals): Add 'self' argument.
10971 (remote_start_remote): Update.
10972 * procfs.c (procfs_pass_signals): Add 'self' argument.
10973 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10974 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10975 (linux_nat_create_inferior, linux_nat_attach): Update.
10976
da82bd6b
TT
109772014-02-19 Tom Tromey <tromey@redhat.com>
10978
10979 * windows-nat.c (windows_can_run): Add 'self' argument.
10980 * target.h (struct target_ops) <to_can_run>: Add argument.
10981 (target_can_run): Add argument.
10982 * target.c (debug_to_can_run): Add argument.
10983 (update_current_target): Update.
10984 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10985 * inf-child.c (inf_child_can_run): Add 'self' argument.
10986 * go32-nat.c (go32_can_run): Add 'self' argument.
10987
d796e1d6
TT
109882014-02-19 Tom Tromey <tromey@redhat.com>
10989
10990 * target.h (struct target_ops) <to_has_exited>: Add argument.
10991 (target_has_exited): Add argument.
10992 * target.c (debug_to_has_exited): Add argument.
10993 (update_current_target): Update.
10994
ff214e67
TT
109952014-02-19 Tom Tromey <tromey@redhat.com>
10996
10997 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10998 argument.
10999 (target_set_syscall_catchpoint): Add argument.
11000 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11001 argument.
11002 * target.c (update_current_target): Update.
11003
758e29d2
TT
110042014-02-19 Tom Tromey <tromey@redhat.com>
11005
11006 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11007 argument.
11008 (target_remove_exec_catchpoint): Add argument.
11009 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11010 (update_current_target): Update.
11011 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11012 argument.
11013
ba025e51
TT
110142014-02-19 Tom Tromey <tromey@redhat.com>
11015
11016 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11017 argument.
11018 (target_insert_exec_catchpoint): Add argument.
11019 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11020 (update_current_target): Update.
11021 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11022 argument.
11023
e98cf0cd
TT
110242014-02-19 Tom Tromey <tromey@redhat.com>
11025
11026 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11027 argument.
11028 (target_remove_vfork_catchpoint): Add argument.
11029 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11030 (update_current_target): Update.
11031 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11032 argument.
11033
3ecc7da0
TT
110342014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11037 argument.
11038 (target_insert_vfork_catchpoint): Add argument.
11039 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11040 (update_current_target): Update.
11041 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11042 argument.
11043
973fc227
TT
110442014-02-19 Tom Tromey <tromey@redhat.com>
11045
11046 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11047 argument.
11048 (target_remove_fork_catchpoint): Add argument.
11049 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11050 (update_current_target): Update.
11051 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11052 argument.
11053
a863b201
TT
110542014-02-19 Tom Tromey <tromey@redhat.com>
11055
11056 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11057 argument.
11058 (target_insert_fork_catchpoint): Add argument.
11059 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11060 (update_current_target): Update.
11061 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11062 argument.
11063
2e97a79e
TT
110642014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11067 argument.
11068 (target_post_startup_inferior): Add argument.
11069 * target.c (debug_to_post_startup_inferior): Add argument.
11070 (update_current_target): Update.
11071 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11072 argument.
11073 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11074 argument.
11075 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11076 argument.
11077 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11078 argument.
11079 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11080 'self' argument.
11081 (super_post_startup_inferior): Likewise.
11082 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11083 'self' argument.
11084 (super_post_startup_inferior): Likewise.
11085 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11086 Add 'self' argument.
11087 (super_post_startup_inferior): Likewise.
11088
71a9f134
TT
110892014-02-19 Tom Tromey <tromey@redhat.com>
11090
11091 * target.h (struct target_ops) <to_load>: Add argument.
11092 * target.c (target_load): Add argument.
11093 (debug_to_load): Add argument.
11094 (update_current_target): Update.
11095 * remote.c (remote_load): Add 'self' argument.
11096 * remote-sim.c (gdbsim_load): Add 'self' argument.
11097 * remote-mips.c (mips_load): Add 'self' argument.
11098 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11099 * monitor.c (monitor_load): Add 'self' argument.
11100 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11101
0a4f40a2
TT
111022014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11105 (target_terminal_info): Add argument.
11106 * target.c (debug_to_terminal_info): Add argument.
11107 (default_terminal_info): Likewise.
11108 * inflow.c (child_terminal_info): Add 'self' argument.
11109 * inferior.h (child_terminal_info): Add 'self' argument.
11110 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11111
ae3bd431
TT
111122014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11115 argument.
11116 (target_terminal_save_ours): Add argument.
11117 * target.c (debug_to_terminal_save_ours): Add argument.
11118 (update_current_target): Update.
11119 * inflow.c (terminal_save_ours): Add 'self' argument.
11120 * inferior.h (terminal_save_ours): Add 'self' argument.
11121
e3594fd1
TT
111222014-02-19 Tom Tromey <tromey@redhat.com>
11123
11124 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11125 (target_terminal_ours): Add argument.
11126 * target.c (debug_to_terminal_ours): Add argument.
11127 (update_current_target): Update.
11128 * remote.c (remote_terminal_ours): Add 'self' argument.
11129 (remote_close): Update.
11130 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11131 * inflow.c (terminal_ours): Add 'self' argument.
11132 * inferior.h (terminal_ours): Add 'self' argument.
11133 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11134
2e1e1a19
TT
111352014-02-19 Pedro Alves <palves@redhat.com>
11136 Tom Tromey <tromey@redhat.com>
11137
11138 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11139 argument.
11140 (target_terminal_ours_for_output): Add argument.
11141 * target.c (debug_to_terminal_ours_for_output): Add argument.
11142 (update_current_target): Update.
11143 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11144 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11145 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11146
d2f640d4
TT
111472014-02-19 Tom Tromey <tromey@redhat.com>
11148
11149 * target.h (struct target_ops) <to_terminal_inferior>: Add
11150 argument.
11151 * target.c (target_terminal_inferior): Add argument.
11152 (update_current_target): Update.
11153 * remote.c (remote_terminal_inferior): Add 'self' argument.
11154 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11155 * inflow.c (terminal_inferior): Add 'self' argument.
11156 * inferior.h (terminal_inferior): Add 'self' argument.
11157 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11158 (go32_terminal_inferior): Add 'self' argument.
11159
c42bf286
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11163 (target_terminal_init): Add argument.
11164 * target.c (debug_to_terminal_init): Add argument.
11165 (update_current_target): Update.
11166 * inflow.c (terminal_init_inferior): Add 'self' argument.
11167 * inferior.h (terminal_init_inferior): Add 'self' argument.
11168 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11169 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11170
c3a5ff89
TT
111712014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * target.h (struct target_ops)
11174 <to_can_accel_watchpoint_condition>: Add argument.
11175 (target_can_accel_watchpoint_condition): Add argument.
11176 * target.c (debug_to_can_accel_watchpoint_condition): Add
11177 argument.
11178 (update_current_target): Update.
11179 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11180 'self' argument.
11181
31568a15
TT
111822014-02-19 Tom Tromey <tromey@redhat.com>
11183
11184 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11185 Add argument.
11186 (target_region_ok_for_hw_watchpoint): Add argument.
11187 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11188 (default_region_ok_for_hw_watchpoint): Add argument.
11189 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11190 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11191 argument.
11192 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11193 argument.
11194 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11195 argument.
11196 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11197 'self' argument.
11198 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11199 'self' argument.
11200 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11201 'self' argument.
11202 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11203 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11204 'self' argument.
11205 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11206 Add 'self' argument.
11207
7bb99c53
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11211 argument.
11212 (target_insert_watchpoint): Add argument.
11213 * target.c (debug_to_insert_watchpoint): Add argument.
11214 (update_current_target): Update.
11215 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11216 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11217 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11218 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11219 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11220 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11221 argument.
11222 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11223 (procfs_insert_hw_watchpoint): Add 'self' argument.
11224 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11225 argument.
11226 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11227 argument.
11228 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11229 argument.
11230 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11231 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11232 argument.
11233 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11234 'self' argument.
11235
11b5219a
TT
112362014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11239 argument.
11240 (target_remove_watchpoint): Add argument.
11241 * target.c (debug_to_remove_watchpoint): Add argument.
11242 (update_current_target): Update.
11243 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11244 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11245 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11246 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11247 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11248 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11249 argument.
11250 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11251 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11252 argument.
11253 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11254 argument.
11255 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11256 argument.
11257 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11258 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11259 argument.
11260 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11261 'self' argument.
11262
a64dc96c
TT
112632014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11266 argument.
11267 (target_remove_hw_breakpoint): Add argument.
11268 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11269 (update_current_target): Update.
11270 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11271 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11272 argument.
11273 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11274 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11275 argument.
11276 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11277 'self' argument.
11278
23a26771
TT
112792014-02-19 Tom Tromey <tromey@redhat.com>
11280
11281 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11282 argument.
11283 (target_insert_hw_breakpoint): Add argument.
11284 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11285 (update_current_target): Update.
11286 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11287 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11288 argument.
11289 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11290 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11291 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11292 argument.
11293 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11294 'self' argument.
11295
5461485a
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11299 argument.
11300 (target_can_use_hardware_watchpoint): Add argument.
11301 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11302 (update_current_target): Update.
11303 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11304 argument.
11305 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11306 argument.
11307 * remote.c (remote_check_watch_resources): Add 'self' argument.
11308 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11309 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11310 argument.
11311 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11312 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11313 argument.
11314 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11315 argument.
11316 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11317 argument.
11318 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11319 argument.
11320 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11321 argument.
11322 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11323 argument.
11324 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11325 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11326 argument.
11327 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11328 'self' argument.
11329
f045800c
TT
113302014-02-19 Tom Tromey <tromey@redhat.com>
11331
11332 * target.h (struct target_ops) <to_post_attach>: Add argument.
11333 (target_post_attach): Add argument.
11334 * target.c (debug_to_post_attach): Add argument.
11335 (update_current_target): Update.
11336 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11337 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11338 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11339 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11340 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11341
de90e03d
TT
113422014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * windows-nat.c (windows_close): Add 'self' argument.
11345 * tracepoint.c (tfile_close): Add 'self' argument.
11346 * target.h (struct target_ops) <to_close>: Add argument.
11347 * target.c (target_close): Add argument.
11348 (update_current_target): Update.
11349 * remote.c (remote_close): Add 'self' argument.
11350 * remote-sim.c (gdbsim_close): Add 'self' argument.
11351 * remote-mips.c (mips_close): Add 'self' argument.
11352 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11353 * record-full.c (record_full_close): Add 'self' argument.
11354 * record-btrace.c (record_btrace_close): Add 'self' argument.
11355 * monitor.h (monitor_close): Add 'self' argument.
11356 * monitor.c (monitor_close): Add 'self' argument.
11357 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11358 * linux-nat.c (linux_nat_close): Add argument.
11359 * go32-nat.c (go32_close): Add 'self' argument.
11360 * exec.c (exec_close_1): Add 'self' argument.
11361 * ctf.c (ctf_close): Add 'self' argument.
11362 * corelow.c (core_close): Add 'self' argument.
11363 (core_close_cleanup): Update.
11364 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11365 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11366
9dd130a0
TT
113672014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * remote.c (remote_load): New function.
11370 (init_remote_ops): Use it.
11371
46917d26
TT
113722014-02-19 Tom Tromey <tromey@redhat.com>
11373
11374 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11375 argument.
11376 * common/linux-btrace.h (linux_supports_btrace): Update.
11377 * remote.c (remote_supports_btrace): Add "self" argument.
11378 * target-delegates.c: Rebuild.
11379 * target.c (target_supports_btrace): Remove.
11380 * target.h (struct target_ops) <to_supports_btrace>: Add
11381 target_ops argument.
11382 (target_supports_btrace): New define.
11383
6b84065d
TT
113842014-02-19 Tom Tromey <tromey@redhat.com>
11385
11386 * record-full.c (record_full_beneath_to_resume_ops)
11387 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11388 (record_full_beneath_to_wait)
11389 (record_full_beneath_to_store_registers_ops)
11390 (record_full_beneath_to_store_registers)
11391 (record_full_beneath_to_xfer_partial_ops)
11392 (record_full_beneath_to_xfer_partial)
11393 (record_full_beneath_to_insert_breakpoint_ops)
11394 (record_full_beneath_to_insert_breakpoint)
11395 (record_full_beneath_to_remove_breakpoint_ops)
11396 (record_full_beneath_to_remove_breakpoint)
11397 (record_full_beneath_to_stopped_by_watchpoint)
11398 (record_full_beneath_to_stopped_data_address)
11399 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11400 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11401 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11402 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11403 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11404 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11405 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11406 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11407 (record_full_resume, record_full_wait_1)
11408 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11409 (record_full_store_registers, record_full_xfer_partial)
11410 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11411 (record_full_async, record_full_core_xfer_partial): Use target
11412 delegation.
11413 * target-delegates.c: Rebuild.
11414 * target.c (current_xfer_partial): Remove.
11415 (update_current_target): Do not INHERIT or de_fault
11416 to_insert_breakpoint, to_remove_breakpoint,
11417 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11418 to_is_async_p, to_async. Do not set to_xfer_partial field.
11419 (default_xfer_partial): Simplify.
11420 (current_xfer_partial): Remove.
11421 (target_wait, target_resume): Simplify.
11422 (find_default_can_async_p, find_default_is_async_p): Update.
11423 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11424 to_xfer_partial, to_stopped_by_watchpoint,
11425 to_stopped_data_address.
11426 (target_store_registers): Simplify.
11427 (forward_target_remove_breakpoint)
11428 (forward_target_insert_breakpoint): Remove.
11429 (target_remove_breakpoint, target_insert_breakpoint)
11430 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11431 * target.h (struct target_ops) <to_resume, to_wait,
11432 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11433 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11434 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11435 markup.
11436 (forward_target_remove_breakpoint)
11437 (forward_target_insert_breakpoint): Remove.
11438 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11439 directly.
11440 (record_btrace_insert_breakpoint): Delegate directly.
11441
1101cb7b
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 PR build/7701:
11445 * target-delegates.c: New file.
11446 * target.c: Include target-delegates.c.
11447 (init_dummy_target): Call install_dummy_methods.
11448 (complete_target_initialization): Call install_delegators.
11449 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11450 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11451 * make-target-delegates: New file.
11452
8b06beed
TT
114532014-02-19 Tom Tromey <tromey@redhat.com>
11454
11455 * record.c (find_record_target): Use find_target_at.
11456 * target.c (find_target_at): New function.
11457 * target.h (find_target_at): Declare.
11458
6a109b6b
TT
114592014-02-19 Tom Tromey <tromey@redhat.com>
11460
11461 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11462 Add 'ops' argument.
11463 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11464 'ops' argument.
11465 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11466 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11467 'ops' argument.
11468 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11469 argument.
11470 * linux-nat.c (save_sigtrap): Update.
11471 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11472 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11473 (linux_nat_close): Update.
11474 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11475 argument.
11476 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11477 argument.
11478 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11479 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11480 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11481 (tmp_to_async): Add 'ops' argument.
11482 (record_full_stopped_by_watchpoint, record_full_async)
11483 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11484 argument.
11485 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11486 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11487 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11488 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11489 (remote_is_async_p, remote_async): Add 'ops' argument.
11490 (remote_stopped_data_address): Update.
11491 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11492 * target.c (update_current_target)
11493 (find_default_can_async_p, find_default_is_async_p): Update.
11494 (init_dummy_target): Update.
11495 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11496 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11497 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11498 (target_can_async_p, target_is_async_p, target_async)
11499 (target_stopped_by_watchpoint): Update.
11500
e095146b
YQ
115012014-02-19 Yao Qi <yao@codesourcery.com>
11502
11503 PR gdb/16220
11504 * gdbarch.sh: Remove startup_gdbarch.
11505 * gdbarch.c: Regenerated.
11506 * gdbarch.h: Likewise.
11507
bc3c6b36
KB
115082014-02-17 Kevin Buettner <kevinb@redhat.com>
11509
11510 * rl78-tdep.c (rl78_g10_register_name): New function.
11511 (rl78_return_value): Add g10 support.
11512 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11513 g10.
11514
98dc0167 115152014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11516
11517 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11518 (SUBDIR_GUILE_SRCS): Ditto.
11519 (scm-gsmob.o): Ditto.
11520
842c05cd
YQ
115212014-02-17 Yao Qi <yao@codesourcery.com>
11522
11523 * gnu-nat.c (ILL_RPC): Declare defined function.
11524
25c0bd04
YQ
115252014-02-17 Yao Qi <yao@codesourcery.com>
11526
11527 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11528 mach_msg_type_number_t.
11529 (gnu_write_inferior): Likewise.
11530
a9a758e3
YQ
115312014-02-17 Yao Qi <yao@codesourcery.com>
11532
11533 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11534 in format string.
11535 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11536 (inf_validate_procs, inf_signal): Likewise.
11537 (S_exception_raise_request): Likewise.
11538 (do_mach_notify_dead_name): Likewise.
11539 (steal_exc_port): Likewise.
11540 (gnu_read_inferior): Change 'copy_count''s type to
11541 mach_msg_type_number_t.
11542 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11543 format string.
11544
bae8023e
TS
115452014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11546
c82f56d9
TS
11547 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11548 flag. Adjust all users; in particular...
11549 (gnu_wait): ..., don't decrement its value in here...
11550 (gnu_create_inferior): ..., and instead set the flag in here,
11551 around the startup_inferior call, and call that one with
11552 START_INFERIOR_TRAPS_EXPECTED.
11553
3398af6a
TS
11554 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11555 (ILL_RPC): ... new macro.
11556 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11557 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11558 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11559 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11560 functions with ILL_RPC macro.
11561 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11562 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11563 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11564 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11565 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11566 (S_proc_getlogin_reply, S_proc_getsid_reply)
11567 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11568 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11569 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11570 (S_proc_getnports_reply, S_proc_is_important_reply)
11571 (S_proc_get_code_reply): New stub functions, generated with
11572 ILL_RPC macro.
11573
d47642c9
TS
11574 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11575 collected the type check structures.
11576
bae8023e
TS
11577 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11578
8a55ffb0
DE
115792014-02-14 Doug Evans <dje@google.com>
11580
11581 * target.c (target_write_partial): Fix result type.
11582
c2853f3d
JM
115832014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11584
11585 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11586 the proper offsets to access fpregset_t.
11587
ac61d2db
SA
115882014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11589
11590 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11591 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11592 * h8300-tdep.c (setmachinelist): Remove global.
11593 * hppa-tdep.c (hppa_sigtramp): Remove global.
11594 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11595 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11596 * ravenscar-thread.c (update_target_observer): Remove global.
11597 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11598
9d2d0b8b
TT
115992014-02-12 Tom Tromey <tromey@redhat.com>
11600
11601 * common/rsp-low.c: Update comments.
11602 * common/rsp-low.h: Update comments.
11603
a7191e8b
TT
116042014-02-12 Tom Tromey <tromey@redhat.com>
11605
11606 * common/rsp-low.c (convert_ascii_to_int): Remove.
11607 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11608
ff0e980e
TT
116092014-02-12 Tom Tromey <tromey@redhat.com>
11610
11611 * common/rsp-low.h (unhexify): Don't declare.
11612 * common/rsp-low.c (unhexify): Remove.
11613
e9371aff
TT
116142014-02-12 Tom Tromey <tromey@redhat.com>
11615
11616 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11617 * common/rsp-low.c (convert_int_to_ascii): Remove.
11618
971dc0b8
TT
116192014-02-12 Tom Tromey <tromey@redhat.com>
11620
11621 * common/rsp-low.h (hexify): Don't declare.
11622 * common/rsp-low.c (hexify): Remove.
11623
0a822afb
TT
116242014-02-12 Tom Tromey <tromey@redhat.com>
11625
11626 * common/rsp-low.c (hexify): Never take strlen of argument.
11627
9f1b45b0
TT
116282014-02-12 Tom Tromey <tromey@redhat.com>
11629
11630 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11631 * remote.c (extended_remote_run, remote_rcmd)
11632 (remote_download_trace_state_variable, remote_save_trace_data)
11633 (remote_set_trace_notes): Update.
11634 * tracepoint.c (encode_source_string, tfile_write_status)
11635 (tfile_write_uploaded_tsv): Update.
11636
9c3d6531
TT
116372014-02-12 Tom Tromey <tromey@redhat.com>
11638
11639 * tracepoint.c: Include rsp-low.h.
11640 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11641 * remote.c: Include rsp-low.h.
11642 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11643 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11644 (remote_unescape_input): Move to common/rsp-low.c.
11645 * common/rsp-low.h: New file.
11646 * common/rsp-low.c: New file.
11647 * Makefile.in (SFILES): Add common/rsp-low.c.
11648 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11649 (COMMON_OBS): Add rsp-low.o.
11650 (rsp-low.o): New target.
11651
01fd3ea5
TT
116522014-02-12 Tom Tromey <tromey@redhat.com>
11653
11654 * utils.h: Include print-utils.h.
11655 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11656 (int_string, core_addr_to_string, core_addr_to_string_nz)
11657 (hex_string, hex_string_custom): Don't declare.
11658 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11659 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11660 (hex_string_custom, int_string, core_addr_to_string)
11661 (core_addr_to_string_nz, host_address_to_string): Move to
11662 common/print-utils.c.
11663 * common/print-utils.h: New file.
11664 * common/print-utils.c: New file
11665 * Makefile.in (SFILES): Add common/print-utils.c.
11666 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11667 (COMMON_OBS): Add print-utils.o.
11668 (print-utils.o): New target.
11669
9fb50108
TT
116702014-02-12 Tom Tromey <tromey@redhat.com>
11671
11672 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11673
0548b5db
MK
116742014-02-12 Mark Kettenis <kettenis@gnu.org>
11675
11676 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11677
493443a4
MK
116782014-02-12 Mark Kettenis <kettenis@gnu.org>
11679
11680 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11681 if a PT_IO ptrace request returns sucessfully but indicates that 0
11682 bytes were transferred.
11683
706d0883
PA
116842014-02-12 Pedro Alves <palves@redhat.com>
11685 Kevin Buettner <kevinb@redhat.com>
11686
11687 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11688 TYPE_INSTANCE_FLAG_CODE_SPACE.
11689
5caa2f0b
PA
116902014-02-12 Pedro Alves <palves@redhat.com>
11691
11692 * h8300-tdep.c (pseudo_from_raw_register)
11693 (raw_from_pseudo_register): New functions.
11694 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11695 them.
11696
76fd5f74
PA
116972014-02-12 Pedro Alves <palves@redhat.com>
11698
11699 * h8300-tdep.c (h8300_register_sim_regno): New function.
11700 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11701 gdbarch_register_sim_regno hook.
11702
8f008406
SA
117032014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11704
11705 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11706
195abc10
SA
117072014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11708
11709 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11710
93ffa5b9
MK
117112014-02-12 Mark Kettenis <kettenis@gnu.org>
11712
11713 * obsd-tdep.h (obsd_init_abi): New prototype.
11714 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11715 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11716 (obsd_init_abi): New functions.
11717 * i386obsd-tdep.c: Include "obsd-tdep.h".
11718 (i386obsd_init_abi): Call obsd_init_abi.
11719 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11720 (amd64obsd_init_abi): Call obsd_init_abi.
11721 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11722 obsd-tdep.c to gdb_target_obs.
11723
49caec94
JM
117242014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11725
11726 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11727 double float arguments to 16-byte in the argument slots.
11728
e1402065
DE
117292014-02-11 Doug Evans <xdje42@gmail.com>
11730
11731 * configure.ac: Don't crash if pkg-config is not found and guile
11732 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11733 in guile checks.
11734 * configure: Regenerate.
11735
edcc890f
YQ
117362014-02-11 Yao Qi <yao@codesourcery.com>
11737
11738 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11739 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11740 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11741 * gnu-nat.c (gnu_xfer_memory): Likewise.
11742 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11743 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11744 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11745 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11746
9b409511
YQ
117472014-02-11 Yao Qi <yao@codesourcery.com>
11748
11749 * target.h (enum target_xfer_error): Rename to ...
11750 (enum target_xfer_status): ... it. New. All users updated.
11751 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11752 New.
11753 (TARGET_XFER_STATUS_ERROR_P): New macro.
11754 (target_xfer_error_to_string): Remove declaration.
11755 (target_xfer_status_to_string): Declare.
11756 (target_xfer_partial_ftype): Adjust it.
11757 (struct target_ops) <to_xfer_partial>: Return
11758 target_xfer_status. Add argument xfered_len. Update
11759 comments.
11760 * target.c (target_xfer_error_to_string): Rename to ...
11761 (target_xfer_status_to_string): ... it. New. All callers
11762 updated.
11763 (target_read_live_memory): Likewise. Call target_xfer_partial
11764 instead of target_read.
11765 (memory_xfer_live_readonly_partial): Return
11766 target_xfer_status. Add argument xfered_len.
11767 (raw_memory_xfer_partial): Likewise.
11768 (memory_xfer_partial_1): Likewise.
11769 (memory_xfer_partial): Likewise.
11770 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11771 properly. Update debug message.
11772 (default_xfer_partial, current_xfer_partial): Likewise.
11773 (target_write_partial): Likewise.
11774 (target_read_partial): Likewise. All callers updated.
11775 (read_whatever_is_readable): Likewise.
11776 (target_write_with_progress): Likewise.
11777 (target_read_alloc_1): Likewise.
11778
11779 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11780 * auxv.c (procfs_xfer_auxv): Likewise.
11781 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11782 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11783 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11784 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11785 * corefile.c (read_memory): Adjust.
11786 * corelow.c (core_xfer_partial): Likewise.
11787 * ctf.c (ctf_xfer_partial): Likewise.
11788 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11789 updated.
11790 (darwin_xfer_partial): Likewise.
11791 * exec.c (section_table_xfer_memory_partial): Likewise. All
11792 callers updated.
11793 (exec_xfer_partial): Likewise.
11794 * exec.h (section_table_xfer_memory_partial): Update
11795 declaration.
11796 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11797 negative.
11798 (gnu_xfer_partial): Likewise.
11799 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11800 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11801 (ia64_hpux_xfer_solib_got): Likewise.
11802 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11803 type of 'partial_len' to ULONGEST.
11804 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11805 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11806 (linux_nat_xfer_partial): Likewise.
11807 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11808 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11809 * monitor.c (monitor_xfer_memory): Likewise.
11810 (monitor_xfer_partial): Likewise.
11811 * procfs.c (procfs_xfer_partial): Likewise.
11812 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11813 * record-full.c (record_full_xfer_partial): Likewise.
11814 (record_full_core_xfer_partial): Likewise.
11815 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11816 (gdbsim_xfer_partial): Likewise.
11817 * remote.c (remote_write_bytes_aux): Likewise. All callers
11818 updated.
11819 (remote_write_bytes, remote_read_bytes): Likewise. All
11820 callers updated.
11821 (remote_flash_erase): Likewise. All callers updated.
11822 (remote_write_qxfer): Likewise. All callers updated.
11823 (remote_read_qxfer): Likewise. All callers updated.
11824 (remote_xfer_partial): Likewise.
11825 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11826 (rs6000_xfer_shared_libraries): Likewise.
11827 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11828 (sol_thread_xfer_partial): Likewise.
11829 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11830 (sparc_xfer_partial): Likewise.
11831 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11832 updated.
11833 (spu_xfer_partial): Likewise.
11834 * spu-multiarch.c (spu_xfer_partial): Likewise.
11835 * tracepoint.c (tfile_xfer_partial): Likewise.
11836 * windows-nat.c (windows_xfer_memory): Likewise.
11837 (windows_xfer_shared_libraries): Likewise.
11838 (windows_xfer_partial): Likewise.
11839 * valprint.c: Replace 'target_xfer_error' with
11840 'target_xfer_status' in comments.
11841
a8e63083
JB
118422014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11843
11844 Checked in by Joel Brobecker <brobecker@adacore.com>.
11845 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11846
e86b67d3
JB
118472014-02-11 Joel Brobecker <brobecker@adacore.com>
11848
11849 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11850 function parameters.
11851
4b7d1f7f
WN
118522014-02-10 Will Newton <will.newton@linaro.org>
11853
11854 * elfread.c (elf_rel_plt_read): Look for a .got section if
11855 looking up .got.plt fails.
11856 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11857 on address passed to elf_gnu_ifunc_record_cache.
11858 (elf_gnu_ifunc_resolve_addr): Likewise.
11859 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11860
961842b2
JM
118612014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11862
11863 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11864 (X_RETTURN): New macro.
11865 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11866
11867 * sparc64-tdep.c (sparc64_init_abi): Hook
11868 sparc_in_function_epilogue_p.
11869
3f03e7b1
GB
118702014-02-10 Gary Benson <gbenson@redhat.com>
11871
11872 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11873 Rename name_matcher to symbol_matcher.
11874
96f861ef
GB
118752014-02-10 Gary Benson <gbenson@redhat.com>
11876
11877 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11878 Use expand_symtabs_file_matcher_ftype and
11879 expand_symtabs_symbol_matcher_ftype.
11880
ee01b665
JB
118812014-02-10 Joel Brobecker <brobecker@adacore.com>
11882
11883 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11884 (struct ada_symbol_cache): New.
11885 (ada_free_symbol_cache): Forward declare.
11886 (struct ada_pspace_data): New.
11887 (ada_pspace_data_handle): New static global.
11888 (get_ada_pspace_data, ada_pspace_data_cleanup)
11889 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11890 (cache_space, cache): Delete, now folded inside struct
11891 ada_pspace_data.
11892 (ada_get_symbol_cache): New function.
11893 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11894 implementation.
11895 (_initialize_ada_language): Remove initialization of cache_space.
11896 Move call to observer_attach_inferior_exit up, grouping it
11897 with the other observer registrations inside this function.
11898 Rename command to be more general. Add call to
11899 register_program_space_data_with_cleanup.
11900
143adbbf
JB
119012014-02-10 Joel Brobecker <brobecker@adacore.com>
11902
11903 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11904 ada_new_objfile_observer.
11905 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11906 (_initialize_tasks): Update uses of ada_new_objfile_observer
11907 and ada_tasks_normal_stop_observer.
11908
aa4fb036
JB
119092014-02-10 Joel Brobecker <brobecker@adacore.com>
11910
11911 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11912 returned by the 'Length attribute to integer.
11913
9dee8cc6
JB
119142014-02-10 Joel Brobecker <brobecker@adacore.com>
11915
11916 * ada-lang.c (_initialize_ada_language): Initialize
11917 cache_space obstack.
11918
3d9434b5
JB
119192014-02-10 Joel Brobecker <brobecker@adacore.com>
11920
11921 * ada-lang.c (HASH_SIZE): New macro.
11922 (struct cache_entry): New type.
11923 (cache_space, cache): New static globals.
11924 (ada_clear_symbol_cache, find_entry): New functions.
11925 (lookup_cached_symbol, cache_symbol): Implement.
11926 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11927 (_initialize_ada_language): Attach ada_new_objfile_observer
11928 and ada_free_objfile_observer.
11929
f0c5f9b2
JB
119302014-02-10 Joel Brobecker <brobecker@adacore.com>
11931
11932 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11933 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11934 struct block * parameter.
11935 (ada_lookup_symbol_list_worker): Constify local variable "block".
11936 Remove cast which is no longer necessary.
11937
ed3ef339
DE
119382014-02-10 Doug Evans <xdje42@gmail.com>
11939
11940 Add Guile as an extension language.
11941 * NEWS: Mention Guile scripting.
11942 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11943 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11944 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11945 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11946 (CLIBS): Add GUILE_LIBS.
11947 (install-guile): New rule.
11948 (guile.o): New rule.
11949 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11950 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11951 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11952 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11953 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11954 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11955 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11956 * configure.ac: New option --with-guile.
11957 * configure: Regenerate.
11958 * config.in: Regenerate.
11959 * auto-load.c: Remove #include "python/python.h". Add #include
11960 "gdb/section-scripts.h".
11961 (source_section_scripts): Handle Guile scripts.
11962 (_initialize_auto_load): Add name of Guile objfile script to
11963 scripts-directory help text.
11964 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11965 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11966 (struct breakpoint): New member scm_bp_object.
11967 * defs.h (enum command_control_type): New value guile_control.
11968 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11969 "extension.h".
11970 (show_user): Update comment.
11971 (_initialize_cli_cmds): Update help text for "show user". Update help
11972 text for max-user-call-depth.
11973 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11974 "extension.h".
11975 (multi_line_command_p): Add guile_control.
11976 (print_command_lines): Handle guile_control.
11977 (execute_control_command, recurse_read_control_structure): Ditto.
11978 (process_next_line): Recognize "guile" commands.
11979 * disasm.c (gdb_disassemble_info): Make non-static.
11980 * disasm.h: #include "dis-asm.h".
11981 (struct gdbarch): Add forward decl.
11982 (gdb_disassemble_info): Declare.
11983 * extension.c: #include "guile/guile.h".
11984 (extension_languages): Add guile.
11985 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11986 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11987 * gdbtypes.c (get_unsigned_type_max): New function.
11988 (get_signed_type_minmax): New function.
11989 * gdbtypes.h (get_unsigned_type_max): Declare.
11990 (get_signed_type_minmax): Declare.
11991 * guile/README: New file.
11992 * guile/guile-internal.h: New file.
11993 * guile/guile.c: New file.
11994 * guile/guile.h: New file.
11995 * guile/scm-arch.c: New file.
11996 * guile/scm-auto-load.c: New file.
11997 * guile/scm-block.c: New file.
11998 * guile/scm-breakpoint.c: New file.
11999 * guile/scm-disasm.c: New file.
12000 * guile/scm-exception.c: New file.
12001 * guile/scm-frame.c: New file.
12002 * guile/scm-gsmob.c: New file.
12003 * guile/scm-iterator.c: New file.
12004 * guile/scm-lazy-string.c: New file.
12005 * guile/scm-math.c: New file.
12006 * guile/scm-objfile.c: New file.
12007 * guile/scm-ports.c: New file.
12008 * guile/scm-pretty-print.c: New file.
12009 * guile/scm-safe-call.c: New file.
12010 * guile/scm-string.c: New file.
12011 * guile/scm-symbol.c: New file.
12012 * guile/scm-symtab.c: New file.
12013 * guile/scm-type.c: New file.
12014 * guile/scm-utils.c: New file.
12015 * guile/scm-value.c: New file.
12016 * guile/lib/gdb.scm: New file.
12017 * guile/lib/gdb/boot.scm: New file.
12018 * guile/lib/gdb/experimental.scm: New file.
12019 * guile/lib/gdb/init.scm: New file.
12020 * guile/lib/gdb/iterator.scm: New file.
12021 * guile/lib/gdb/printing.scm: New file.
12022 * guile/lib/gdb/types.scm: New file.
12023 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12024 (VPATH): Add $(GUILE_SRCDIR).
12025 (GUILE_DIR): New variable.
12026 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12027 (all): Add stamp-guile dependency.
12028 (stamp-guile): New rule.
12029 (clean-guile, install-guile, uninstall-guile): New rules.
12030 (install-only): Add install-guile dependency.
12031 (uninstall): Add uninstall-guile dependency.
12032 (clean): Add clean-guile dependency.
12033
ac020ec5
DE
120342014-02-09 Doug Evans <xdje42@gmail.com>
12035
12036 Revert this patch (which I approved, mea culpa).
12037
12038 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12039
12040 * Makefile.in (all-lib): Remove.
12041 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12042
2a081c59
JK
120432014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12044
12045 Fix Python stack corruption.
12046 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12047 gdb_py_longest.
12048
0a6bd22d
MK
120492014-02-08 Mark Kettenis <kettenis@gnu.org>
12050
12051 * Makefile.in (all-lib): Remove.
12052 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12053
1a860409
DE
120542014-02-07 Doug Evans <dje@google.com>
12055
12056 * extension-priv.h (extension_language_script_ops): Add comment.
12057 (extension_language_ops): Add comment.
caf5a491 12058 (active_ext_lang_state): Fix typo in comment.
1a860409 12059
d137e6dc
PA
120602014-02-07 Pedro Alves <palves@redhat.com>
12061
0dcb32c3 12062 PR breakpoints/16292
d137e6dc
PA
12063 * infrun.c (handle_signal_stop) <signal arrives while stepping
12064 over a breakpoint>: Switch back to the stepping thread.
12065
ce6d0892
YQ
120662014-02-07 Yao Qi <yao@codesourcery.com>
12067
12068 * target.c (target_xfer_partial): Return zero if LEN is zero.
12069
2ed4b548
YQ
120702014-02-07 Yao Qi <yao@codesourcery.com>
12071
12072 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12073 (ld_so_xfer_auxv): Likewise.
12074 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12075 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12076 * corelow.c (core_xfer_partial): Likewise.
12077 * ctf.c (ctf_xfer_partial): Likewise.
12078 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12079 (darwin_xfer_partial): Likewise.
12080 * exec.c (exec_xfer_partial): Likewise.
12081 * gnu-nat.c (gnu_xfer_partial): Likewise.
12082 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12083 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12084 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12085 * linux-nat.c (linux_xfer_siginfo): Likewise.
12086 (linux_proc_xfer_spu): Likewise.
12087 * procfs.c (procfs_xfer_partial): Likewise.
12088 * record-full.c (record_full_xfer_partial): Likewise.
12089 (record_full_core_xfer_partial): Likewise.
12090 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12091 * remote.c (remote_write_qxfer): Likewise.
12092 (remote_write_qxfer, remote_read_qxfer): Likewise.
12093 (remote_xfer_partial): Likewise.
12094 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12095 (rs6000_xfer_shared_libraries): Likewise.
12096 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12097 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12098 (spu_xfer_partial): Likewise.
12099 * target.c (memory_xfer_partial_1): Likewise.
12100 * tracepoint.c (tfile_xfer_partial): Likewise.
12101 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12102 (windows_xfer_partial): Likewise.
12103
c09f20e4
YQ
121042014-02-07 Yao Qi <yao@codesourcery.com>
12105
12106 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12107 comments.
12108 (core_xfer_shared_libraries_aix): Likewise.
12109 * gdbarch.c, gdbarch.h: Regenerated.
12110 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12111 ULONGEST. Change 'len_avail' type to ULONGEST.
12112 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12113 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12114 declaration.
12115 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12116
8635b3bf
YQ
121172014-02-07 Yao Qi <yao@codesourcery.com>
12118
12119 * corefile.c (memory_error): Get 'exception' from ERR and pass
12120 'exception' to throw_error.
12121
6dddc817
DE
121222014-02-06 Doug Evans <xdje42@gmail.com>
12123
12124 * configure.ac (libpython checking): Remove all but python.o from
12125 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12126 * configure: Regenerate.
12127
12128 * Makefile.in (SFILES): Add extension.c.
12129 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12130 (COMMON_OBS): Add extension.o.
12131 * extension.h: New file.
12132 * extension-priv.h: New file.
12133 * extension.c: New file.
12134
12135 * python/python-internal.h: #include "extension.h".
12136 (gdbpy_auto_load_enabled): Declare.
12137 (gdbpy_apply_val_pretty_printer): Declare.
12138 (gdbpy_apply_frame_filter): Declare.
12139 (gdbpy_preserve_values): Declare.
12140 (gdbpy_breakpoint_cond_says_stop): Declare.
12141 (gdbpy_breakpoint_has_cond): Declare.
12142 (void source_python_script_for_objfile): Delete.
12143 * python/python.c: #include "extension-priv.h".
12144 Delete inclusion of "observer.h".
12145 (extension_language_python): Moved here and renamed from
12146 script_language_python in py-auto-load.c.
12147 Redefined to be of type extension_language_defn.
12148 (python_extension_script_ops): New global.
12149 (python_extension_ops): New global.
12150 (struct python_env): New member previous_active.
12151 (restore_python_env): Call restore_active_ext_lang.
12152 (ensure_python_env): Call set_active_ext_lang.
12153 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12154 New arg extlang.
12155 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12156 New arg extlang.
12157 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12158 New arg extlang.
12159 (gdbpy_eval_from_control_command): Renamed from
12160 eval_python_from_control_command, made static. New arg extlang.
12161 (gdbpy_source_script) Renamed from source_python_script, made static.
12162 New arg extlang.
12163 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12164 result to int. New arg extlang.
12165 (gdbpy_source_objfile_script): Renamed from
12166 source_python_script_for_objfile, made static. New arg extlang.
12167 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12168 static. New args extlang, extlang_printers. Change result type to
12169 "void".
12170 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12171 static. New arg extlang. Rename arg printers to extlang_printers
12172 and change type to ext_lang_type_printers *.
12173 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12174 static. Replace argument arg with extlang, extlang_printers.
12175 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12176 (!HAVE_PYTHON, source_python_script): Delete.
12177 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12178 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12179 (!HAVE_PYTHON, start_type_printers): Delete.
12180 (!HAVE_PYTHON, apply_type_printers): Delete.
12181 (!HAVE_PYTHON, free_type_printers): Delete.
12182 (_initialize_python): Delete call to observer_attach_before_prompt.
12183 (finalize_python): Set/restore active extension language.
12184 (gdbpy_finish_initialization) Renamed from
12185 finish_python_initialization, made static. New arg extlang.
12186 (gdbpy_initialized): New function.
12187 * python/python.h: #include "extension.h". Delete #include
12188 "value.h", "mi/mi-cmds.h".
12189 (extension_language_python): Declare.
12190 (GDBPY_AUTO_FILE_NAME): Delete.
12191 (enum py_bt_status): Moved to extension.h and renamed to
12192 ext_lang_bt_status.
12193 (enum frame_filter_flags): Moved to extension.h.
12194 (enum py_frame_args): Moved to extension.h and renamed to
12195 ext_lang_frame_args.
12196 (finish_python_initialization): Delete.
12197 (eval_python_from_control_command): Delete.
12198 (source_python_script): Delete.
12199 (apply_val_pretty_printer): Delete.
12200 (apply_frame_filter): Delete.
12201 (preserve_python_values): Delete.
12202 (gdbpy_script_language_defn): Delete.
12203 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12204 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12205
12206 * auto-load.c: #include "extension.h".
12207 (GDB_AUTO_FILE_NAME): Delete.
12208 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12209 (script_language_gdb): Delete, moved to extension.c and renamed to
12210 extension_language_gdb.
12211 (source_gdb_script_for_objfile): Delete.
12212 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12213 (loaded_script): Change type of language member to
12214 struct extension_language_defn *.
12215 (init_loaded_scripts_info): Initialize
12216 unsupported_script_warning_printed.
12217 (maybe_add_script): Make static. Change type of language arg to
12218 struct extension_language_defn *.
12219 (clear_section_scripts): Reset unsupported_script_warning_printed.
12220 (auto_load_objfile_script_1): Rewrite to use extension language API.
12221 (auto_load_objfile_script): Make public. Remove support-compiled-in
12222 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12223 (source_section_scripts): Rewrite to use extension language API.
12224 (load_auto_scripts_for_objfile): Rewrite to use
12225 auto_load_scripts_for_objfile.
12226 (collect_matching_scripts_data): Change type of language member to
12227 struct extension_language_defn *.
12228 (auto_load_info_scripts): Change type of language arg to
12229 struct extension_language_defn *.
12230 (unsupported_script_warning_print): New function.
12231 (script_not_found_warning_print): Make static.
12232 (_initialize_auto_load): Rewrite construction of scripts-directory
12233 help.
12234 * auto-load.h (struct objfile): Add forward decl.
12235 (struct script_language): Delete.
12236 (struct auto_load_pspace_info): Add forward decl.
12237 (struct extension_language_defn): Add forward decl.
12238 (maybe_add_script): Delete.
12239 (auto_load_objfile_script): Declare.
12240 (script_not_found_warning_print): Delete.
12241 (auto_load_info_scripts): Update prototype.
12242 (auto_load_gdb_scripts_enabled): Declare.
12243 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12244 auto_load_python_scripts_enabled and made public.
12245 (script_language_python): Delete, moved to python.c.
12246 (gdbpy_script_language_defn): Delete.
12247 (info_auto_load_python_scripts): Update to use
12248 extension_language_python.
12249
12250 * breakpoint.c (condition_command): Replace call to
12251 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12252 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12253 with call to breakpoint_ext_lang_cond_says_stop.
12254 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12255 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12256 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12257 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12258 New arg slang.
12259 (local_setattro): Print name of extension language with existing
12260 stop condition.
12261
12262 * valprint.c (val_print, value_print): Update to call
12263 apply_ext_lang_val_pretty_printer.
12264 * cp-valprint.c (cp_print_value): Update call to
12265 apply_ext_lang_val_pretty_printer.
12266 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12267 (gdbpy_apply_val_pretty_printer): Renamed from
12268 apply_val_pretty_printer. New arg extlang.
12269 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12270
12271 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12272 extension language API.
12273 * cli/cli-script.c (execute_control_command): Update to call
12274 eval_ext_lang_from_control_command.
12275
12276 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12277 enum ext_lang_bt_status values. Update call to
12278 apply_ext_lang_frame_filter.
12279 (mi_cmd_stack_list_locals): Ditto.
12280 (mi_cmd_stack_list_args): Ditto.
12281 (mi_cmd_stack_list_variables): Ditto.
12282 * mi/mi-main.c: Delete #include "python/python-internal.h".
12283 Add #include "extension.h".
12284 (mi_cmd_list_features): Replace reference to python internal variable
12285 gdb_python_initialized with call to ext_lang_initialized_p.
12286
12287 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12288 Update to use enum ext_lang_frame_args. Update to call
12289 apply_ext_lang_frame_filter.
12290 * python/py-framefilter.c (extract_sym): Update to use enum
12291 ext_lang_bt_status.
12292 (extract_value, py_print_type, py_print_value): Ditto.
12293 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12294 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12295 (py_print_frame): Ditto.
12296 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12297 New arg extlang. Update to use enum ext_lang_bt_status.
12298
12299 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12300 finish_python_initialization. Replace with call to
12301 finish_ext_lang_initialization.
12302
12303 * typeprint.c (do_free_global_table): Update to call
12304 free_ext_lang_type_printers.
12305 (create_global_typedef_table): Update to call
12306 start_ext_lang_type_printers.
12307 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12308 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12309 (type_print_options): Change type of global_printers from "void *"
12310 to "struct ext_lang_type_printers *".
12311
12312 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12313 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12314 (gdbpy_preserve_values): Renamed from preserve_python_values.
12315 New arg extlang.
12316 (!HAVE_PYTHON, preserve_python_values): Delete.
12317
12318 * utils.c (quit_flag): Delete, moved to extension.c.
12319 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12320 extension.c.
12321
12322 * eval.c: Delete #include "python/python.h".
12323 * main.c: Delete #include "python/python.h".
12324
12325 * defs.h: Update comment.
12326
6af79985
JB
123272014-02-06 Joel Brobecker <brobecker@adacore.com>
12328
12329 GDB 7.7 released.
12330
12c5175d
MK
123312014-02-05 Mark Kettenis <kettenis@gnu.org>
12332
12333 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12334 defined.
12335
8dc5b319
YQ
123362014-02-05 Yao Qi <yao@codesourcery.com>
12337
12338 * remote.c (remote_pass_signals): Remove local 'buf' and use
12339 rs->buf.
12340 (remote_program_signals): Likewise.
12341
de7b2893
YQ
123422014-02-05 Yao Qi <yao@codesourcery.com>
12343
12344 * ctf.c: Include "inferior.h" and "gdbthread.h".
12345 (CTF_PID): A new macro.
12346 (ctf_open): Call inferior_appeared and add_thread_silent.
12347 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12348 (ctf_thread_alive): New function.
12349 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12350
66d032ac
YQ
123512014-02-05 Yao Qi <yao@codesourcery.com>
12352
12353 Revert this patch:
12354
12355 2013-05-24 Yao Qi <yao@codesourcery.com>
12356
12357 * tracepoint.c (TFILE_PID): Remove.
12358 (tfile_open): Don't add thread and inferior.
12359 (tfile_close): Don't set 'inferior_ptid'. Don't call
12360 exit_inferior_silent.
12361 (tfile_thread_alive): Remove.
12362 (init_tfile_ops): Don't set field 'to_thread_alive' of
12363 tfile_ops.
12364
f4ccffad
CE
123652014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12366
12367 * remote.c (remote_start_remote): Call remote_check_symbols even
12368 if only symbol-file (not file) has been given.
12369
591a12a1
UW
123702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12371
12372 * gdbarch.sh (skip_entrypoint): New callback.
12373 * gdbarch.c, gdbarch.h: Regenerate.
12374 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12375 * infrun.c (fill_in_stop_func): Likewise.
12376 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12377 (ppc_elfv2_elf_make_msymbol_special): New function.
12378 (ppc_elfv2_skip_entrypoint): Likewise.
12379 (ppc_linux_init_abi): Install them for ELFv2.
12380
cc0e89c5
UW
123812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12382
12383 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12384 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12385 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12386 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12387 structures returned in GPRs.
12388
52f548e4
UW
123892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12390
12391 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12392 offset to the stack parameter list for the ELFv2 ABI.
12393
d4094b6a
UW
123942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12395
12396 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12397 set_gdbarch_convert_from_func_ptr_addr and
12398 set_gdbarch_elf_make_msymbol_special for ELFv1.
12399 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12400 function descriptors on ELFv1.
12401 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12402 set up r12 at function entry.
12403
cd453cd0
UW
124042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12405
12406 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12407 (struct gdbarch_tdep): New member elf_abi.
12408
12409 * rs6000-tdep.c: Include "elf/ppc64.h".
12410 (rs6000_gdbarch_init): Detect ELF ABI version.
12411
0ff3e01f
UW
124122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12413
12414 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12415 within a register pair holding a DFP 128-bit value on little-endian.
12416 (ppc64_sysv_abi_return_value_base): Likewise.
12417 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12418 (dfp_pseudo_register_write): Likewise.
12419
5b757e5d
UW
124202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12421
12422 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12423 offset on little-endian when passing _Decimal32.
12424 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12425
084ee545
UW
124262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12427
12428 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12429 of the overlapped FP register within the VSX register on little-
12430 endian platforms.
12431 (efpr_pseudo_register_write): Likewise.
12432
d63167af
UW
124332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12434
12435 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12436 offset on little-endian when passing small structures.
12437
e765b44c
UW
124382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12439
12440 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12441 (struct ppc64_sysv_argpos): New data structure.
12442 (ppc64_sysv_abi_push_float): Remove.
12443 (ppc64_sysv_abi_push_val): New function.
12444 (ppc64_sysv_abi_push_integer): Likewise.
12445 (ppc64_sysv_abi_push_freg): Likewise.
12446 (ppc64_sysv_abi_push_vreg): Likewise.
12447 (ppc64_sysv_abi_push_param): Likewise.
12448 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12449 (ppc64_sysv_abi_return_value_base): New function.
12450 (ppc64_sysv_abi_return_value): Refactor to use it.
12451
36c24d95
UW
124522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12453
12454 * NEWS: Document new target powerpc64le-*-linux*.
12455
26fd9228
MK
124562014-02-04 Mark Kettenis <kettenis@gnu.org>
12457
12458 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12459 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12460 core dumps.
12461 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12462 register set used in ELF core dumps. Add floating-point register set.
12463
c5bb7362
KB
124642014-02-03 Kevin Buettner <kevinb@redhat.com>
12465
74228e77 12466 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12467 dwarf2_to_gdb[] table using symbolic constants. Adjust
12468 penultimate entry from number representing the PC register
12469 to symbolic constant representing the MDR register. Add
12470 constant for the PC register to the end of the table.
12471
af09351e
MK
124722014-02-03 Mark Kettenis <kettenis@gnu.org>
12473
12474 * bsd-kvm.c: Include <sys/param.h>
12475
8507e05d
MK
124762014-02-03 Mark Kettenis <kettenis@gnu.org>
12477
12478 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12479
ae56bfb8
JB
124802014-01-31 Joel Brobecker <brobecker@adacore.com>
12481
12482 * ada-lang.h (clear_ada_sym_cache): Delete.
12483
718ee4dc
UW
124842014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12485
12486 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12487
401e27fd
JM
124882014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12489
12490 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12491 the sigreturn register save area only if the syscall is
12492 sigreturn.
12493
a7c88acd
JB
124942014-01-29 Joel Brobecker <brobecker@adacore.com>
12495
12496 * valops.c (value_slice): Minor reformatting.
12497
fa0079ea
UW
124982014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12499
12500 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12501
c6044dd1
JB
125022014-01-28 Joel Brobecker <brobecker@adacore.com>
12503
12504 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12505 New static globals.
12506 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12507 (ada_ignore_descriptive_types_p): New static global.
12508 (find_parallel_type_by_descriptive_type): Return immediately
12509 if ada_ignore_descriptive_types_p is set.
12510 (_initialize_ada_language): Register new commands "maintenance
12511 set ada", "maintenance show ada", "maintenance set ada
12512 ignore-descriptive-types" and "maintenance show ada
12513 ignore-descriptive-types".
12514 * NEWS: Add entry for new "maint ada set/show
12515 ignore-descriptive-types" commands.
12516
568e808b
MM
125172014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12518
12519 * record-btrace.c (record_btrace_close): Call btrace_teardown
12520 for all threads.
12521
467d141b
JB
125222014-01-27 Joel Brobecker <brobecker@adacore.com>
12523
12524 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12525 "ui-out.h".
12526
fb151210
JB
125272014-01-27 Joel Brobecker <brobecker@adacore.com>
12528
12529 * ada-typeprint (type_is_full_subrange_of_target_type):
12530 New function.
12531 (print_range): Add parameter bounds_prefered_p. If not set,
12532 try printing range types using the name of their base type.
12533 (print_range_type): Add parameter bounds_prefered_p.
12534 Use it in call to print_range.
12535 (print_array_type, ada_print_type): Update calls to print_range
12536 and print_range_type.
12537
aba02109
JB
125382014-01-27 Joel Brobecker <brobecker@adacore.com>
12539
12540 * ada-typeprint.c (print_array_type, print_choices, print_range)
12541 (print_range_bound, print_dynamic_range_bound, print_range_type):
12542 Remove declaration.
12543
e62e21fd
JB
125442014-01-27 Joel Brobecker <brobecker@adacore.com>
12545
12546 * ada-typeprint.c (print_range): Add missing empty line
12547 after local declaration.
12548
859cf5d1
JB
125492014-01-27 Joel Brobecker <brobecker@adacore.com>
12550
12551 * ada-valprint.c (print_optional_low_bound): Get index_type's
12552 target type for as long as it is a TYPE_CODE_RANGE.
12553
25790f6f
JB
125542014-01-27 Joel Brobecker <brobecker@adacore.com>
12555
12556 * procfs.c (procfs_make_note_section): Remove assertion and
12557 associated comment.
12558
6b6aa828
YQ
125592014-01-24 Yao Qi <yao@codesourcery.com>
12560
12561 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12562 * corelow.c (get_core_siginfo): Likewise.
12563
5d6df423
YQ
125642014-01-24 Yao Qi <yao@codesourcery.com>
12565
12566 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12567 ULONGEST. Don't check 'len' is negative.
12568 (remote_write_bytes): Change type of 'len' to ULONGEST.
12569
83b645b8
TT
125702014-01-23 Tom Tromey <tromey@redhat.com>
12571
12572 PR python/16485:
12573 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12574 Handle exception from frame.block.
12575 (FrameVars.fetch_frame_locals): Likewise.
12576
0740f8d8
TT
125772014-01-23 Tom Tromey <tromey@redhat.com>
12578
12579 PR python/16487:
12580 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12581 on a NULL pointer. Move "goto error" to correct place.
12582
21909fa1
TT
125832014-01-23 Tom Tromey <tromey@redhat.com>
12584
12585 PR python/16491:
12586 * python/py-framefilter.c (apply_frame_filter): Call
12587 ensure_python_env after computing gdbarch.
12588
17fde6d0
YQ
125892014-01-23 Yao Qi <yao@codesourcery.com>
12590
12591 * target.c (raw_memory_xfer_partial): Change argument type
12592 from void * to gdb_byte *.
12593 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12594
87ce2a04
DE
125952014-01-22 Doug Evans <dje@google.com>
12596
12597 New gdbserver option --debug-format=timestamp.
12598 * NEWS: Mention it.
12599
237b092b
AA
126002014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12601
12602 * syscalls/s390x-linux.xml: New file.
12603 * syscalls/s390-linux.xml: New file.
12604 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12605 (XML_SYSCALL_FILENAME_S390X): Likewise.
12606 (op_svc): New enum value for SVC opcode.
12607 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12608 (s390_linux_get_syscall_number): New function.
12609 (s390_gdbarch_init): Register '*get_syscall_number' and the
12610 syscall xml file name.
12611 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12612 "s390-linux.xml" and "s390x-linux.xml".
12613 * NEWS: Announce new feature.
12614
54bff650
BS
126152014-01-22 Baruch Siach <baruch@tkos.co.il>
12616
12617 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12618
14e361d7
PA
126192014-01-22 Pedro Alves <palves@redhat.com>
12620
12621 * xtensa-config.c: Include defs.h.
12622
46bbb3ed
JB
126232014-01-22 Joel Brobecker <brobecker@adacore.com>
12624
12625 * common/common-utils.h: Add "ARI:" comment beside __func__
12626 reference.
12627
3a80edfc
JB
126282014-01-22 Joel Brobecker <brobecker@adacore.com>
12629
12630 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12631 documentation a bit.
12632
4869db5e
RM
126332014-01-21 Roland McGrath <mcgrathr@google.com>
12634
12635 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12636 * configure: Regenerate.
12637 * aclocal.m4: Regenerate.
12638 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12639 New substituted variables.
12640 (install-strip): New target.
12641 (INSTALL_SCRIPT): New substituted variable.
12642 (FLAGS_TO_PASS): Add it.
12643 (install-only): Use $(INSTALL_SCRIPT) rather than
12644 $(INSTALL_PROGRAM) for gcore.
12645
9ea4267d
TT
126462014-01-20 Tom Tromey <tromey@redhat.com>
12647
12648 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12649 together.
12650
1f2bdf09
TT
126512014-01-20 Tom Tromey <tromey@redhat.com>
12652
12653 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12654 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12655 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12656 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12657 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12658 (struct cmd_list_element) <flags>: Remove.
12659 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12660 doc_allocated>: New fields.
12661 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12662 bitfields.
12663 * maint.c (maintenance_do_deprecate): Update.
12664 * top.c (execute_command): Update.
12665
e671835b
BS
126662014-01-20 Baruch Siach <baruch@tkos.co.il>
12667
12668 * xtensa-linux-nat.c: Include asm/ptrace.h.
12669
50367cd2
IB
126702014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12671
12672 * Makefile.in (SFILES): Add d-support.c.
12673 (COMMON_OBS): Add d-support.o.
12674 * d-lang.h (d_parse_symbol): Add comment, now defined in
12675 d-support.c.
12676 * d-lang.c (parse_call_convention)
12677 (parse_attributes, parse_function_types)
12678 (parse_function_args, parse_type, parse_identifier)
12679 (call_convention_p, d_parse_symbol): Move functions to ...
12680 * d-support.c: ... New file.
12681
ec9f644a
IB
126822014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12683
12684 * d-lang.h (d_parse_symbol): Add declaration.
12685 * d-lang.c (extract_identifiers)
12686 (extract_type_info): Remove functions.
12687 (parse_call_convention, parse_attributes)
12688 (parse_function_types, parse_function_args)
12689 (parse_type, parse_identifier, call_convention_p)
12690 (d_parse_symbol): New functions.
12691 (d_demangle): Use d_parse_symbol to demangle D symbols.
12692
94b1b47e
IB
126932014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12694
12695 * d-lang.h (struct builtin_d_type): New data type.
12696 (builtin_d_type): Add declaration.
12697 * d-lang.c (d_language_arch_info, build_d_types)
12698 (builtin_d_type): New functions.
12699 (enum d_primitive_types): New data type.
12700 (d_language_defn): Change c_language_arch_info to
12701 d_language_arch_info.
12702 (d_type_data): New static variable.
12703 (_initialize_d_language): Initialize d_type_data.
12704
63778547
IB
127052014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12706
12707 * d-lang.h (d_main_name): Add declaration.
12708 * d-lang.c (d_main_name): New function.
12709 * symtab.c (find_main_name): Add call to d_main_name.
12710
3271ba66
IB
127112014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12712
12713 * d-lang.c (d_language_defn): Change macro_expansion_c to
12714 macro_expansion_no.
12715
d36b3012
IB
127162014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12717
12718 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12719
c90a6fb7
SDJ
127202014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12721
12722 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12723 gdb_exception" declaration.
12724 * remote.c (getpkt_or_notif_sane): Likewise.
12725
749234e5
DE
127262014-01-17 Doug Evans <dje@google.com>
12727
12728 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12729 function, contents of dirnames_to_char_ptr_vec_append moved here.
12730 (delim_string_to_char_ptr_vec): New function.
12731 (dirnames_to_char_ptr_vec_append): Rewrite.
12732 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12733
df049a58
DE
127342014-01-17 Doug Evans <dje@google.com>
12735
12736 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12737 and moved here ...
12738 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12739 #include "common-utils.h".
12740 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12741 * common/vec.h (VEC_ASSERT_PASS): Update.
12742 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12743 (MACH_CHECK_ERROR): Update.
12744
69f97648
SM
127452014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12746
12747 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12748 comments.
12749 * gdbarch.h: Regenerate.
12750
98b1cfdc
TT
127512014-01-16 Tom Tromey <tromey@redhat.com>
12752
12753 * value.c (struct value) <regnum>: Move earlier.
12754
77a19445
TT
127552014-01-16 Tom Tromey <tromey@redhat.com>
12756
12757 * remote.c (extended_remote_create_inferior): Rename from
12758 extended_remote_create_inferior_1. Add "ops" argument. Remove
12759 old implementation.
12760
62261490
PA
127612014-01-16 Pedro Alves <palves@redhat.com>
12762
12763 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12764 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12765 the backchain.
12766
4d65956b
DE
127672014-01-16 Doug Evans <dje@google.com>
12768
12769 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12770
52834460
MM
127712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12772
12773 * btrace.h (btrace_thread_flag): New.
12774 (struct btrace_thread_info) <flags>: New.
12775 * record-btrace.c (record_btrace_resume_thread)
12776 (record_btrace_find_thread_to_move, btrace_step_no_history)
12777 (btrace_step_stopped, record_btrace_start_replaying)
12778 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12779 (record_btrace_find_resume_thread): New.
12780 (record_btrace_resume, record_btrace_wait): Extend.
12781 (record_btrace_can_execute_reverse): New.
12782 (record_btrace_open): Fail in non-stop mode.
12783 (record_btrace_set_replay): Split into this, ...
12784 (record_btrace_stop_replaying): ... this, ...
12785 (record_btrace_clear_histories): ... and this.
12786 (init_record_btrace_ops): Init to_can_execute_reverse.
12787 * NEWS: Announce it.
12788
118e6252
MM
127892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12790
12791 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12792 (forward_target_decr_pc_after_break)
12793 (target_decr_pc_after_break): New.
12794 * target.c (forward_target_decr_pc_after_break)
12795 (target_decr_pc_after_break): New.
12796 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12797 instead of gdbarch_decr_pc_after_break.
12798 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12799 instead of gdbarch_decr_pc_after_break.
12800 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12801 instead of gdbarch_decr_pc_after_break.
12802 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12803 instead of gdbarch_decr_pc_after_break.
12804 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12805 instead of gdbarch_decr_pc_after_break.
12806 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12807 instead of gdbarch_decr_pc_after_break.
12808
6e07b1d2
MM
128092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12810
12811 * btrace.c: Include regcache.h.
12812 (btrace_add_pc): New.
12813 (btrace_enable): Call btrace_add_pc.
12814 (btrace_is_empty): New.
12815 * btrace.h (btrace_is_empty): New.
12816 * record-btrace.c (require_btrace, record_btrace_info): Call
12817 btrace_is_empty.
12818
969c39fb
MM
128192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12820
12821 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12822 Support delta reads.
12823 (linux_disable_btrace): Change return type.
12824 * common/linux-btrace.h (linux_read_btrace): Change parameters
12825 and return type to allow error reporting. Update users.
12826 (linux_disable_btrace): Change return type. Update users.
12827 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12828 New.
12829 (btrace_error): New.
12830 (btrace_block) <begin>: Comment on BEGIN == 0.
12831 * btrace.c (btrace_compute_ftrace): Start from the end of
12832 the current trace.
12833 (btrace_stitch_trace, btrace_clear_history): New.
12834 (btrace_fetch): Read delta trace, return if replaying.
12835 (btrace_clear): Move clear history code to btrace_clear_history.
12836 (parse_xml_btrace): Throw an error if parsing failed.
12837 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12838 and return type to allow error reporting.
12839 (target_read_btrace): Change parameters and return type to allow
12840 error reporting.
12841 * target.c (target_read_btrace): Update.
12842 * remote.c (remote_read_btrace): Support delta reads. Pass
12843 errors on.
12844 * NEWS: Announce it.
12845
0b722aec
MM
128462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12847
12848 * record.h (record_btrace_frame_unwind)
12849 (record_btrace_tailcall_frame_unwind): New declarations.
12850 * dwarf2-frame: Include record.h
12851 (dwarf2_frame_cfa): Throw an error for btrace frames.
12852 * record-btrace.c: Include hashtab.h.
12853 (btrace_get_bfun_name): New.
12854 (btrace_call_history): Call btrace_get_bfun_name.
12855 (struct btrace_frame_cache): New.
12856 (bfcache): New.
12857 (bfcache_hash, bfcache_eq, bfcache_new): New.
12858 (btrace_get_frame_function): New.
12859 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12860 (record_btrace_frame_this_id): Compute own id.
12861 (record_btrace_frame_prev_register): Provide PC, throw_error
12862 for all other registers.
12863 (record_btrace_frame_sniffer): Detect btrace frames.
12864 (record_btrace_tailcall_frame_sniffer): New.
12865 (record_btrace_frame_dealloc_cache): New.
12866 (record_btrace_frame_unwind): Add new functions.
12867 (record_btrace_tailcall_frame_unwind): New.
12868 (_initialize_record_btrace): Allocate cache.
12869 * btrace.c (btrace_clear): Call reinit_frame_cache.
12870 * NEWS: Announce it.
12871
066ce621
MM
128722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12873
12874 * record-btrace.c (record_btrace_set_replay)
12875 (record_btrace_goto_begin, record_btrace_goto_end)
12876 (record_btrace_goto): New.
12877 (init_record_btrace_ops): Initialize them.
12878 * NEWS: Announce it.
12879
e2887aa3
MM
128802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12881
12882 * record-btrace.c (record_btrace_find_new_threads)
12883 (record_btrace_thread_alive): New.
12884 (init_record_btrace_ops): Initialize to_find_new_threads and
12885 to_thread_alive.
12886
b2f4cfde
MM
128872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12888
12889 * record-btrace.c (record_btrace_resume): New.
12890 (record_btrace_wait): New.
12891 (init_record_btrace_ops): Initialize to_wait and to_resume.
12892
633785ff
MM
128932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12894
12895 * record-btrace.c (record_btrace_xfer_partial)
12896 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12897 (record_btrace_allow_memory_access): New.
12898 (init_record_btrace_ops): Initialize new methods.
12899 * target.c (raw_memory_xfer_partial): Bail out if target reports
12900 that this memory is not available.
12901
3db08215
MM
129022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12903
12904 * target.h (target_ops) <to_insert_breakpoint>
12905 <to_remove_breakpoint>: Add target_ops parameter.
12906 (forward_target_insert_breakpoint): New.
12907 (forward_target_remove_breakpoint): New.
12908 (memory_remove_breakpoint, memory_insert_breakpoint):
12909 Add target_ops parameter.
12910 * target.c (target_insert_breakpoint): Split into this and ...
12911 (forward_target_insert_breakpoint): ... this.
12912 (target_remove_breakpoint): Split into this and ...
12913 (forward_target_remove_breakpoint): ... this.
12914 (debug_to_insert_breakpoint): Add target_ops parameter.
12915 Call forward_target_insert_breakpoint.
12916 (debug_to_remove_breakpoint): Add target_ops parameter.
12917 Call forward_target_remove_breakpoint.
12918 (update_current_target): Do not inherit or default to_insert_breakpoint
12919 and to_remove_breakpoint.
12920 * corelow.c (ignore): Add target_ops parameter.
12921 * exec.c (ignore): Add target_ops parameter.
12922 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12923 Add target_ops parameter.
12924 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12925 Add target_ops parameter.
12926 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12927 Add target_ops parameter.
12928 * record-full.c (record_full_beneath_to_insert_breakpoint)
12929 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12930 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12931 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12932 (record_full_core_remove_breakpoint): Add target_ops parameter.
12933 Update users.
12934 (record_full_beneath_to_insert_breakpoint_ops)
12935 (record_full_beneath_to_remove_breakpoint_ops)
12936 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12937 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12938 tmp_to_remove_breakpoint_ops,
12939 record_full_beneath_to_insert_breakpoint_ops, and
12940 record_full_beneath_to_remove_breakpoint_ops.
12941 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12942 (m32r_remove_breakpoint): Add target_ops parameter.
12943 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12944 Add target_ops parameter.
12945 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12946 Add target_ops parameter.
12947
cecac1ab
MM
129482014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12949 Markus Metzger <markus.t.metzger@intel.com>
12950
12951 * record-btrace.c: Include frame-unwind.h.
12952 (record_btrace_frame_unwind_stop_reason)
12953 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12954 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12955 New.
12956 (init_record_btrace_ops): Install it.
12957
824344ca
MM
129582014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12959
12960 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12961 get_prev_frame_1.
12962
32261e52
MM
129632014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12964
12965 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12966 earlier.
12967
ea001bdc
MM
129682014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12969
12970 * frame-unwind.c: Include target.h.
12971 (frame_unwind_try_unwinder): New function with code from ...
12972 (frame_unwind_find_by_frame): ... here. New variable
12973 unwinder_from_target, call also target_get_unwinder)
12974 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12975 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12976 * target.h (struct target_ops): New fields to_get_unwinder and
12977 to_get_tailcall_unwinder.
12978 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12979
1f3ef581
MM
129802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12981
12982 * record-btrace.c (record_btrace_fetch_registers)
12983 (record_btrace_store_registers)
12984 (record_btrace_to_prepare_to_store): New.
12985 (init_record_btrace_ops): Add the above.
12986
f32dbf8c
MM
129872014-01-16 Tom Tromey <tromey@redhat.com>
12988
12989 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12990 * target.h (struct target_ops) <to_prepare_to_store>: Add
12991 argument.
12992 (target_prepare_to_store): Add argument.
12993 * target.c (debug_to_prepare_to_store): Add argument.
12994 (update_current_target): Update.
12995 * remote.c (remote_prepare_to_store): Add 'self' argument.
12996 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12997 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12998 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12999 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13000 argument.
13001 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13002 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13003 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13004 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13005 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13006
07bbe694
MM
130072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13008
13009 * btrace.h (replay) <replay>: New.
13010 (btrace_is_replaying): New.
13011 * btrace.c (btrace_clear): Free replay iterator.
13012 (btrace_is_replaying): New.
13013 * record-btrace.c (record_btrace_is_replaying): New.
13014 (record_btrace_info): Print insn number if replaying.
13015 (record_btrace_insn_history): Start at replay position.
13016 (record_btrace_call_history): Start at replay position.
13017 (init_record_btrace_ops): Init to_record_is_replaying.
13018
0688d04e
MM
130192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13020
13021 * record-btrace.c (record_btrace_insn_history_range): Include
13022 end.
13023 (record_btrace_insn_history_from): Adjust range.
13024 (record_btrace_call_history_range): Include
13025 end.
13026 (record_btrace_call_history_from): Adjust range.
13027 * NEWS: Announce changes.
13028
8710b709
MM
130292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13030
13031 * record.h (enum record_print_flag)
13032 <record_print_indent_calls>: New.
13033 * record.c (get_call_history_modifiers): Recognize /c modifier.
13034 (_initialize_record): Document /c modifier.
13035 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13036 Reorder fields. Optionally indent the function name. Update
13037 all users.
13038 * NEWS: Announce changes.
13039
d0fa7535
MM
130402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13041
13042 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13043
5de9129b
MM
130442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13045
13046 * btrace.c (ftrace_new_function): Start counting at one.
13047 * record-btrace.c (record_btrace_info): Adjust number of calls
13048 and insns.
13049 * NEWS: Announce it.
13050
7acbe133
MM
130512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13052
13053 * record-btrace.c (btrace_call_history_insn_range): Print
13054 insn range as [begin, end].
13055
23a7fe75
MM
130562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13057
13058 * btrace.h (struct btrace_func_link): New.
13059 (enum btrace_function_flag): New.
13060 (struct btrace_inst): Rename to ...
13061 (struct btrace_insn): ...this. Update all users.
13062 (struct btrace_func) <ibegin, iend>: Remove.
13063 (struct btrace_func_link): New.
13064 (struct btrace_func): Rename to ...
13065 (struct btrace_function): ...this. Update all users.
13066 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13067 (number, level, flags>: New.
13068 (struct btrace_insn_iterator): Rename to ...
13069 (struct btrace_insn_history): ...this.
13070 Update all users.
13071 (struct btrace_insn_iterator, btrace_call_iterator): New.
13072 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13073 (struct btrace_target_info) <begin, end, level>
13074 <insn_history, call_history>: New.
13075 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13076 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13077 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13078 (btrace_call_number, btrace_call_begin, btrace_call_end)
13079 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13080 (btrace_find_function_by_number, btrace_set_insn_history)
13081 (btrace_set_call_history): New.
13082 * btrace.c (btrace_init_insn_iterator)
13083 (btrace_init_func_iterator, compute_itrace): Remove.
13084 (ftrace_print_function_name, ftrace_print_filename)
13085 (ftrace_skip_file): Change
13086 parameter to const.
13087 (ftrace_init_func): Remove.
13088 (ftrace_debug): Use new btrace_function fields.
13089 (ftrace_function_switched): Also consider gaining and
13090 losing symbol information).
13091 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13092 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13093 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13094 New.
13095 (ftrace_new_function): Move. Remove debug print.
13096 (ftrace_update_lines, ftrace_update_insns): New.
13097 (ftrace_update_function): Check for call, ret, and jump.
13098 (compute_ftrace): Renamed to ...
13099 (btrace_compute_ftrace): ...this. Rewritten to compute call
13100 stack.
13101 (btrace_fetch, btrace_clear): Updated.
13102 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13103 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13104 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13105 (btrace_call_number, btrace_call_begin, btrace_call_end)
13106 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13107 (btrace_find_function_by_number, btrace_set_insn_history)
13108 (btrace_set_call_history): New.
13109 * record-btrace.c (require_btrace): Use new btrace thread
13110 info fields.
13111 (record_btrace_info, btrace_insn_history)
13112 (record_btrace_insn_history, record_btrace_insn_history_range):
13113 Use new btrace thread info fields and new iterator.
13114 (btrace_func_history_src_line): Rename to ...
13115 (btrace_call_history_src_line): ...this. Use new btrace
13116 thread info fields.
13117 (btrace_func_history): Rename to ...
13118 (btrace_call_history): ...this. Use new btrace thread info
13119 fields and new iterator.
13120 (record_btrace_call_history, record_btrace_call_history_range):
13121 Use new btrace thread info fields and new iterator.
13122
8372a7cb
MM
131232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13124
13125 * frame.h (frame_id_build_unavailable_stack_special): New.
13126 * frame.c (frame_id_build_unavailable_stack_special): New.
13127
c2170eef
MM
131282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13129
13130 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13131 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13132 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13133 to gdbarch.
13134 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13135 (i386_insn_is_jump, i386_jmp_p): New.
13136 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13137 insn_is_jump to gdbarch.
13138 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13139 * gdbarch.h: Regenerated.
13140 * gdbarch.c: Regenerated.
13141 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13142 (default_insn_is_jump): New.
13143 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13144 (default_insn_is_jump): New.
13145
864089d2
MM
131462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13147
13148 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13149 Change to ...
13150 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13151 (btrace_read_type) <btrace_read_new>: Change to ...
13152 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13153
ed9edfb5
MM
131542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13155
13156 * common/linux-btrace.c (linux_read_btrace): Free trace from
13157 previous iteration.
13158
fbcbc3fd
DE
131592014-01-15 Doug Evans <dje@google.com>
13160
13161 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13162 uint32_t.
13163
3d548a53
TT
131642014-01-15 Tom Tromey <tromey@redhat.com>
13165
13166 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13167 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13168 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13169 (set_objfile_main_name): New function.
13170 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13171 language_of_main>: New fields.
13172 (set_objfile_main_name): Declare.
13173 * symtab.c (find_main_name): Loop over objfiles to find the main
13174 name and language.
13175 (set_main_name): Now static.
13176 (get_main_info): Add comment.
13177 * symtab.h (set_main_name): Don't declare.
13178
32ac0d11
TT
131792014-01-15 Tom Tromey <tromey@redhat.com>
13180
13181 * symtab.c (main_progspace_key): New global.
13182 (struct main_info): New.
13183 (name_of_main, language_of_main): Remove.
13184 (get_main_info, main_info_cleanup): New function.
13185 (set_main_name, main_name, main_language): Use get_main_info.
13186 (_initialize_symtab): Initialize main_progspace_key.
13187
9e6c82ad
TT
131882014-01-15 Tom Tromey <tromey@redhat.com>
13189
13190 * dbxread.c (process_one_symbol): Update.
13191 * dwarf2read.c (read_partial_die): Update.
13192 * symfile.c (set_initial_language): Call main_language.
13193 * symtab.c (language_of_main): Now static.
13194 (set_main_name): Add 'lang' parameter.
13195 (find_main_name): Update.
13196 (main_language): New function.
13197 (symtab_observer_executable_changed): Update.
13198 * symtab.h (set_main_name): Update.
13199 (language_of_main): Remove.
13200 (main_language): Declare.
13201
6ef55de7
TT
132022014-01-15 Tom Tromey <tromey@redhat.com>
13203
13204 * symfile.c (init_entry_point_info): Use new "initialized" field.
13205 Update.
13206 * objfiles.h (struct entry_point) <initialized>: New field.
13207 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13208 (struct objfile) <ei>: ...here. Remove.
13209 * objfiles.c (entry_point_address_query): Update.
13210
53eddfa6
TT
132112014-01-15 Tom Tromey <tromey@redhat.com>
13212
13213 * objfiles.c (entry_point_address_query): Relocate entry point
13214 address.
13215 (objfile_relocate1): Do not relocate entry point address.
13216 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13217 <the_bfd_section_index>: New field.
13218 * symfile.c (init_entry_point_info): Find the entry point's
13219 section.
13220
d56e56aa
TT
132212014-01-15 Tom Tromey <tromey@redhat.com>
13222
13223 * solib-frv.c (enable_break): Use entry_point_address_query.
13224
33a97bbe
OJ
132252014-01-15 Omair Javaid <omair.javaid@linaro.org>
13226
13227 * NEWS: Add note on improved process record-replay on
13228 arm*-linux* targets.
13229
c6ec2b30
OJ
132302014-01-15 Omair Javaid <omair.javaid@linaro.org>
13231
13232 * arm-tdep.c (enum arm_record_result): New enum.
13233 (arm_record_unsupported_insn): New function.
13234 (arm_record_coproc_data_proc): Removed.
13235 (thumb2_record_ld_st_multiple): New function.
13236 (thumb2_record_ld_st_dual_ex_tbb): New function.
13237 (thumb2_record_data_proc_sreg_mimm): New function.
13238 (thumb2_record_ps_dest_generic): New function.
13239 (thumb2_record_branch_misc_cntrl): New function.
13240 (thumb2_record_str_single_data): New function.
13241 (thumb2_record_ld_mem_hints): New function.
13242 (thumb2_record_ld_word): New function.
13243 (thumb2_record_lmul_lmla_div): New function.
13244 (thumb2_record_decode_insn_handler): New function.
13245 (decode_insn): Add thumb32 instruction handlers.
13246
97dfe206
OJ
132472014-01-15 Omair Javaid <omair.javaid@linaro.org>
13248
13249 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13250 (struct arm_linux_record_tdep): Declare.
13251 (arm_canonicalize_syscall): New function.
13252 (arm_all_but_pc_registers_record): New function.
13253 (arm_linux_syscall_record): New function.
13254 (arm_linux_init_abi): Add syscall recording constructs.
13255 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13256 decoding. (arm_record_coproc_data_proc): Update arm syscall
13257 decoding.
13258 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13259 <arm_syscall_record>: New field.
13260 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13261 gdb_target_obs.
13262
9904a494
OJ
132632014-01-15 Omair Javaid <omair.javaid@linaro.org>
13264
13265 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13266 register for push instruction recording.
13267
f969241e
OJ
132682014-01-15 Omair Javaid <omair.javaid@linaro.org>
13269
13270 * arm-tdep.c (thumb_record_misc): Update to correct logical
13271 error while recording ldm, ldmia and pop instructions.
13272
bfbbec00
OJ
132732014-01-15 Omair Javaid <omair.javaid@linaro.org>
13274
13275 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13276
e40adcc9
PA
132772014-01-15 Pedro Alves <palves@redhat.com>
13278
13279 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13280 (go32_resume, go32_fetch_registers, store_register)
13281 (go32_store_registers, go32_prepare_to_store)
13282 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13283 (go32_create_inferior, go32_can_run, go32_terminal_init)
13284 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13285 declarations.
13286
b0a16e66
TT
132872014-01-15 Tom Tromey <tromey@redhat.com>
13288
13289 * target.h (async_callback_ftype): New typedef.
13290 (struct target_ops) <to_async>: Use it.
13291
bf7105a4
JB
132922014-01-15 Joel Brobecker <brobecker@adacore.com>
13293
13294 * python/py-value.c (get_field_type): Remove unnecessary curly
13295 braces for single-statement if block.
13296
a8f35c2e
JB
132972014-01-15 Joel Brobecker <brobecker@adacore.com>
13298
13299 * python/py-type.c (convert_field): Add missing empty line
13300 after declarations.
13301
bb4142cf
DE
133022014-01-14 Doug Evans <dje@google.com>
13303
13304 * symfile.h (expand_symtabs_matching): Renamed from
13305 expand_partial_symbol_names. Update prototype.
13306 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13307 * symfile.c (expand_symtabs_matching): Renamed from
13308 expand_partial_symbol_names. New args file_matcher, kind.
13309 Rename arg fun to symbol_matcher.
13310 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13311 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13312 ada_expand_partial_symbol_name.
13313 (ada_make_symbol_completion_list): Update to call
13314 expand_symtabs_matching.
13315 (ada_add_global_exceptions): Call expand_symtabs_matching.
13316 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13317 call map_symbol_filenames.
13318 * symtab.c (sources_info): Update to call map_symbol_filenames.
13319 (search_symbols): Call expand_symtabs_matching.
13320 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13321 (default_make_symbol_completion_list_break_on): Update to call
13322 expand_symtabs_matching.
13323 (make_source_files_completion_list): Update to call
13324 map_symbol_filenames.
13325
206f2a57
DE
133262014-01-14 Doug Evans <dje@google.com>
13327
13328 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13329 (expand_symtabs_symbol_matcher_ftype): New typedef.
13330 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13331 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13332 * symfile.c (expand_partial_symbol_names): Update to use
13333 expand_symtabs_symbol_matcher_ftype.
13334 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13335 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13336 Arg name_matcher renamed to symbol_matcher.
13337 * psymtab.c (recursively_search_psymtabs): Update to use
13338 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13339 sym_matcher.
13340 (expand_symtabs_matching_via_partial): Update to use
13341 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13342 Arg name_matcher renamed to symbol_matcher.
13343
540c2971
DE
133442014-01-14 Doug Evans <dje@google.com>
13345
13346 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13347 (map_partial_symbol_filenames): Ditto.
13348 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13349 (map_partial_symbol_filenames): Ditto.
13350 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13351 (map_partial_symbol_filenames): Ditto.
13352 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13353 (map_partial_symbol_filenames): Ditto.
13354 * symtab.c: Delete #include "psymtab.h".
13355
8213266a
PA
133562014-01-14 Pedro Alves <palves@redhat.com>
13357 Tom Tromey <tromey@redhat.com>
13358
13359 * infrun.c (use_displaced_stepping): Use find_record_target
13360 instead of RECORD_IS_USED.
13361 (adjust_pc_after_break): Use record_full_is_used instead of
13362 RECORD_IS_USED.
13363 * record-btrace.c (record_btrace_open): Call record_preopen
13364 instead of checking RECORD_IS_USED.
13365 * record-full.c (record_full_shortname)
13366 (record_full_core_shortname): New globals.
13367 (record_full_is_used): New function.
13368 (find_full_open): Call record_preopen instead of checking
13369 RECORD_IS_USED.
13370 (init_record_full_ops): Set the target's shortname to
13371 record_full_shortname.
13372 (init_record_full_core_ops): Set the target's shortname to
13373 record_full_core_shortname.
13374 * record-full.h (record_full_is_used): Declare.
13375 * record.c (find_record_target): Make extern.
13376 (record_preopen): New function.
13377 * record.h (RECORD_IS_USED): Delete macro.
13378 (find_record_target, record_preopen): Declare functions.
13379
7ec1862d
YQ
133802014-01-14 Yao Qi <yao@codesourcery.com>
13381
13382 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13383 'len''s type to ULONGEST.
13384 (core_xfer_shared_libraries_aix): Likewise.
13385 * gdbarch.c, gdbarch.h: Regenerated.
13386 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13387 Change type of 'len' to ULONGEST.
13388 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13389 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13390
dea80a27
YQ
133912014-01-14 Yao Qi <yao@codesourcery.com>
13392
13393 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13394 type of 'len' to ULONGEST.
13395 (linux_xfer_osdata_processgroups): Likewise.
13396 (linux_xfer_osdata_threads): Likewise.
13397 (linux_xfer_osdata_fds): Likewise.
13398 (linux_xfer_osdata_isockets): Likewise.
13399 (linux_xfer_osdata_shm): Likewise.
13400 (linux_xfer_osdata_sem): Likewise.
13401 (linux_xfer_osdata_msg): Likewise.
13402 (linux_common_xfer_osdata): Likewise.
13403 (struct osdata_type) <getter>: Likewise.
13404 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13405 the declaration.
13406
b55e14c7
YQ
134072014-01-14 Yao Qi <yao@codesourcery.com>
13408
13409 * target.h (target_xfer_partial_ftype): Update.
13410 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13411 ULONGEST.
13412 * aix-thread.c (aix_thread_xfer_partial): Change type of
13413 argument 'len' to ULONGEST.
13414 * auxv.c (procfs_xfer_auxv): Likewise.
13415 (ld_so_xfer_auxv): Likewise.
13416 (memory_xfer_auxv): Likewise.
13417 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13418 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13419 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13420 * corelow.c (core_xfer_partial): Likewise.
13421 * ctf.c (ctf_xfer_partial): Likewise.
13422 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13423 '%u'.
13424 (darwin_read_dyld_info): Likewise.
13425 (darwin_xfer_partial): Likewise.
13426 * exec.c (section_table_xfer_memory_partial): Likewise.
13427 (exec_xfer_partial): Likewise.
13428 * exec.h (section_table_xfer_memory_partial): Update
13429 declaration.
13430 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13431 instead of plongest.
13432 (gnu_xfer_partial): Likewise.
13433 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13434 (ia64_hpux_xfer_solib_got): Likewise.
13435 (ia64_hpux_xfer_partial): Likewise.
13436 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13437 * inf-ptrace.c (inf_ptrace_xfer_partial):
13438 * inf-ttrace.c (inf_ttrace_xfer_partial):
13439 * linux-nat.c (linux_xfer_siginfo): Likewise.
13440 (linux_nat_xfer_partial): Likewise.
13441 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13442 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13443 * monitor.c (monitor_xfer_memory): Likewise.
13444 (monitor_xfer_partial): Likewise.
13445 * procfs.c (procfs_xfer_partial): Likewise.
13446 * record-full.c (record_full_xfer_partial): Likewise.
13447 (record_full_core_xfer_partial): Likewise.
13448 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13449 instead of plongest.
13450 (gdbsim_xfer_partial): Likewise.
13451 * remote.c (remote_xfer_partial): Likewise.
13452 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13453 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13454 declaration.
13455 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13456 (rs6000_xfer_shared_libraries): Likewise.
13457 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13458 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13459 (sparc_xfer_partial): Likewise.
13460 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13461 (spu_xfer_partial): Likewise.
13462 * spu-multiarch.c (spu_xfer_partial): Likewise.
13463 * target.c (target_read_live_memory): Likewise.
13464 (memory_xfer_live_readonly_partial): Likewise.
13465 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13466 (target_xfer_partial, default_xfer_partial): Likewise.
13467 (current_xfer_partial): Likewise.
13468 * tracepoint.c (tfile_xfer_partial): Likewise.
13469 * windows-nat.c (windows_xfer_memory): Likewise. Call
13470 pulongest instead of plongest.
13471 (windows_xfer_partial): Likewise.
13472 (windows_xfer_shared_libraries): Likewise.
13473
05804640
YQ
134742014-01-14 Yao Qi <yao@codesourcery.com>
13475
13476 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13477 target_xfer_partial_ftype.
13478
b5b08fb4
SC
134792014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13480
13481 PR python/15464
13482 PR python/16113
13483 * valops.c (value_struct_elt_bitpos): New function
13484 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13485 object to 'None' if the field name is an empty string ("").
13486 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13487 attribute to look for a field when 'name' is 'None'.
13488 (get_field_type): New function
13489
13aaf454
DE
134902014-01-13 Doug Evans <dje@google.com>
13491
13492 PR symtab/16426
13493 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13494 (try_open_dwop_file): Ditto.
13495 * gdb_bfd.c: #include "vec.h".
13496 (bfdp): New typedef.
13497 (struct gdb_bfd_data): New member included_bfds.
13498 (gdb_bfd_unref): Unref all included bfds.
13499 (gdb_bfd_record_inclusion): New function.
13500 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13501
c2cec97c
TT
135022014-01-13 Tom Tromey <tromey@redhat.com>
13503
13504 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13505
78e5999d
TT
135062014-01-13 Tom Tromey <tromey@redhat.com>
13507
13508 * defs.h (use_windows): Remove.
13509 * gdb.c (main): Update.
13510 * main.c (captured_main, gdb_main): Update.
13511 * main.h (struct captured_main_args) <use_windows>: Remove.
13512 * top.c (use_windows): Remove.
13513
f2052bbe
TT
135142014-01-13 Tom Tromey <tromey@redhat.com>
13515
13516 * defs.h (deprecated_flush_hook): Remove.
13517
fde4f8ed
JK
135182014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13519
13520 PR threads/16216
13521 * linux-thread-db.c (try_thread_db_load): Add parameter
13522 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13523 (try_thread_db_load_from_pdir_1): Move it there from here.
13524 (try_thread_db_load_from_sdir): Update caller.
13525 (try_thread_db_load_from_dir): Move it there from here.
13526
bdf61915
PP
135272014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13528
13529 * regformats/regdat.sh: Always rewrite the register file.
13530
f71e1a8d
PA
135312014-01-13 Pedro Alves <palves@redhat.com>
13532
13533 * Makefile.in (CHECK_HEADERS): New variable.
13534 (check-headers:): New rule.
13535
42c85435
TT
135362014-01-13 Tom Tromey <tromey@redhat.com>
13537
13538 * cli/cli-setshow.c (do_set_command): Update.
13539 * defs.h (deprecated_set_hook): Remove.
13540 * top.c (deprecated_set_hook): Remove.
13541
f8de5129
PA
135422014-01-13 Pedro Alves <palves@redhat.com>
13543
13544 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13545 the tracepoint if the PC is a pseudo-register.
13546
fc270c35
TT
135472014-01-13 Tom Tromey <tromey@redhat.com>
13548
13549 * defs.h (XCALLOC): Remove.
13550 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13551 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13552 * dwarf2loc.c (allocate_piece_closure): Likewise.
13553 * elfread.c (elf_symfile_segments): Likewise.
13554 (elf_symfile_segments): Likewise.
13555 * gdbtypes.c (copy_type_recursive): Likewise.
13556 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13557 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13558 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13559 XCALLOC.
13560 * mt-tdep.c (mt_gdbarch_init): Likewise.
13561 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13562 XCALLOC.
13563 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13564 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13565 * registry.c (registry_alloc_data): Likewise.
13566 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13567 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13568 * serial.c (serial_fdopen_ops): Likewise.
13569 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13570 XCALLOC.
13571 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13572 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13573 not XCALLOC.
13574
70ba0933
TT
135752014-01-13 Tom Tromey <tromey@redhat.com>
13576
13577 * defs.h (XMALLOC): Remove.
13578 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13579 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13580 * cli-out.c (struct ui_out *): Likewise.
13581 * cli/cli-dump.c (add_dump_command): Likewise.
13582 (add_dump_command): Likewise.
13583 * complaints.c (get_complaints): Likewise.
13584 (find_complaint): Likewise.
13585 * dwarf2-frame.c (execute_cfa_program): Likewise.
13586 * dwarf2read.c (abbrev_table_read_table): Likewise.
13587 * gdbarch.sh: Likewise.
13588 * gdbarch.c: Rebuild.
13589 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13590 * interps.c (interp_new): Likewise.
13591 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13592 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13593 * mi/mi-console.c (mi_console_file_new): Likewise.
13594 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13595 * mi/mi-out.c (mi_out_new): Likewise.
13596 * mi/mi-parse.c (mi_parse): Likewise.
13597 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13598 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13599 * observer.c (xalloc_observer_list_node): Likewise.
13600 * regcache.c (regcache_xmalloc_1): Likewise.
13601 * reggroups.c (reggroup_new): Likewise.
13602 (_initialize_reggroup): Likewise.
13603 * registry.c (register_data_with_cleanup): Likewise.
13604 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13605 * ser-base.c (serial_ttystate): Likewise.
13606 * ser-mingw.c (make_pipe_state): Likewise.
13607 * ser-pipe.c (pipe_open): Likewise.
13608 * serial.c (serial_open): Likewise.
13609 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13610 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13611 (tui_alloc_win_info): Likewise.
13612 (tui_add_content_elements): Likewise.
13613 * tui/tui-file.c (tui_file_new): Likewise.
13614 * tui/tui-out.c (tui_out_new): Likewise.
13615 * ui-file.c (mem_file_new): Likewise.
13616 * ui-out.c (push_level): Likewise.
13617 (make_cleanup_ui_out_end): Likewise.
13618 (append_header_to_list): Likewise.
13619 (ui_out_new): Likewise.
13620 * user-regs.c (user_reg_add_builtin): Likewise.
13621
41bf6aca
TT
136222014-01-13 Tom Tromey <tromey@redhat.com>
13623
13624 * defs.h (XZALLOC): Remove.
13625 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13626 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13627 (get_ada_tasks_inferior_data): Likewise.
13628 * auto-load.c (get_auto_load_pspace_data): Likewise.
13629 * auxv.c (get_auxv_inferior_data): Likewise.
13630 * bfd-target.c (target_bfd_reopen): Likewise.
13631 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13632 (deprecated_insert_raw_breakpoint): Likewise.
13633 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13634 * corelow.c (core_open): Likewise.
13635 * darwin-nat.c (darwin_check_new_threads): Likewise.
13636 (darwin_attach_pid): Likewise.
13637 * dummy-frame.c (dummy_frame_push): Likewise.
13638 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13639 * dwarf2loc.c (allocate_piece_closure): Likewise.
13640 * elfread.c (elf_symfile_segments): Likewise.
13641 * eval.c (ptrmath_type_p): Likewise.
13642 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13643 * gdbtypes.c (alloc_type_arch): Likewise.
13644 (alloc_type_instance): Likewise.
13645 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13646 * inf-child.c (inf_child_can_use_agent): Likewise.
13647 * inflow.c (get_inflow_inferior_data): Likewise.
13648 * infrun.c (save_infcall_suspend_state): Likewise.
13649 * jit.c (jit_reader_load): Likewise.
13650 (get_jit_objfile_data): Likewise.
13651 (get_jit_program_space_data): Likewise.
13652 (jit_object_open_impl): Likewise.
13653 (jit_symtab_open_impl): Likewise.
13654 (jit_block_open_impl): Likewise.
13655 (jit_frame_sniffer): Likewise.
13656 * linux-fork.c (add_fork): Likewise.
13657 * maint.c (make_command_stats_cleanup): Likewise.
13658 * objfiles.c (get_objfile_pspace_data): Likewise.
13659 * opencl-lang.c (struct lval_closure): Likewise.
13660 * osdata.c (osdata_start_osdata): Likewise.
13661 * progspace.c (new_address_space): Likewise.
13662 (add_program_space): Likewise.
13663 * remote-sim.c (get_sim_inferior_data): Likewise.
13664 * sh-tdep.c (sh_gdbarch_init): Likewise.
13665 * skip.c (Ignore): Likewise.
13666 (skip_delete_command): Likewise.
13667 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13668 (library_list_start_library): Likewise.
13669 (solib_aix_current_sos): Likewise.
13670 * solib-darwin.c (get_darwin_info): Likewise.
13671 (darwin_current_sos): Likewise.
13672 * solib-dsbt.c (get_dsbt_info): Likewise.
13673 * solib-ia64-hpux.c (new_so_list): Likewise.
13674 (ia64_hpux_get_solib_linkage_addr): Likewise.
13675 * solib-spu.c (append_ocl_sos): Likewise.
13676 (spu_current_sos): Likewise.
13677 * solib-svr4.c (get_svr4_info): Likewise.
13678 (svr4_keep_data_in_core): Likewise.
13679 (library_list_start_library): Likewise.
13680 (svr4_default_sos): Likewise.
13681 (svr4_read_so_list): Likewise.
13682 * solib-target.c (library_list_start_library): Likewise.
13683 (solib_target_current_sos): Likewise.
13684 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13685 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13686 * symfile.c (default_symfile_segments): Likewise.
13687 * target-descriptions.c (tdesc_data_init): Likewise.
13688 (tdesc_create_reg): Likewise.
13689 (struct tdesc_type *): Likewise.
13690 (tdesc_create_vector): Likewise.
13691 (tdesc_set_struct_size): Likewise.
13692 (struct tdesc_type *): Likewise.
13693 (tdesc_free_feature): Likewise.
13694 (tdesc_create_feature): Likewise.
13695 * windows-nat.c (windows_add_thread): Likewise.
13696 (windows_make_so): Likewise.
13697 * xml-support.c (gdb_xml_body_text): Likewise.
13698 (gdb_xml_create_parser_and_cleanup): Likewise.
13699 (xml_process_xincludes): Likewise.
13700 * xml-syscall.c (allocate_syscalls_info): Likewise.
13701 (syscall_create_syscall_desc): Likewise.
13702
5acfdbae
SDJ
137032014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13704
13705 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13706 function, with code from i386_stap_parse_special_token.
13707 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13708 (i386_stap_parse_special_token): Move code to the two functions
13709 above; simplify it.
13710
0000e5cc
PA
137112014-01-09 Pedro Alves <palves@redhat.com>
13712 Hui Zhu <hui@codesourcery.com>
13713
13714 PR gdb/16101
13715 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13716 bp_err_string. Don't mark the location shlib_disabled if the
13717 error thrown wasn't a generic or memory error. Catch errors
13718 thrown while inserting breakpoints in overlayed code. Output
13719 error message of software breakpoints.
13720 * remote.c (remote_insert_breakpoint): If this breakpoint has
13721 target-side commands but this stub doesn't support Z0 packets,
13722 throw NOT_SUPPORTED_ERROR error.
13723 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13724 * target.h (target_insert_breakpoint): Extend comment.
13725 (target_insert_hw_breakpoint): Add comment.
13726
b7ea362b
PA
137272014-01-08 Pedro Alves <palves@redhat.com>
13728
13729 * remote.c (remote_add_thread): Add threads silently if starting
13730 up.
13731 (remote_notice_new_inferior): If in all-stop, and starting up,
13732 don't call notice_new_inferior.
13733 (get_current_thread): New function, factored out from ...
13734 (add_current_inferior_and_thread): ... this. Adjust.
13735 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13736 found any thread, then select the remote's current thread as GDB's
13737 current thread too.
13738
b7bba001
JB
137392014-01-08 Joel Brobecker <brobecker@adacore.com>
13740
13741 * NEWS: Create a new section for the next release branch.
13742 Rename the section of the current branch, now that it has
13743 been cut.
13744
16dfbded
JB
137452014-01-08 Joel Brobecker <brobecker@adacore.com>
13746
13747 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13748 * version.in: Bump version to 7.7.50.DATE-cvs.
13749
22c90ac1
YQ
137502014-01-08 Yao Qi <yao@codesourcery.com>
13751
13752 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13753 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13754 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13755
d64ad97c
YQ
137562014-01-08 Yao Qi <yao@codesourcery.com>
13757
13758 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13759 return value of bfd_get_filename to symbol_file_add_from_bfd.
13760
f93ba80c
PM
137612014-01-08 Pierre Muller <muller@sourceware.org>
13762
13763 Fix PR16201.
13764 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13765 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13766 to prim_record_mininal_symbol_and_info.
13767 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13768 in call to prim_record_minimal_symbol_and_info.
13769 (read_pe_exported_syms): Set index field of section_data.
13770
a4d9ba85
AP
137712014-01-07 Andrew Pinski <apinski@cavium.com>
13772
13773 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13774 * features/aarch64.c: Regenerate.
13775
1b67eb02
AS
137762014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13777
13778 * target.c (return_null): Define.
13779 (update_current_target): Use it instead of return_zero for
13780 functions that return a pointer.
13781
5e3f4fab
EBM
137822014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13783
13784 * source.c (add_path): Fix check for duplicated paths in the previously
13785 included paths.
13786
e2616788
HK
137872014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13788
13789 * ada-lang.c: Remove duplicated include statements.
13790 * alphabsd-nat.c: Ditto.
13791 * amd64-darwin-tdep.c: Ditto.
13792 * amd64fbsd-nat.c: Ditto.
13793 * auto-load.c: Ditto.
13794 * ax-gdb.c: Ditto.
13795 * breakpoint.c: Ditto.
13796 * dbxread.c: Ditto.
13797 * fork-child.c: Ditto.
13798 * gdb_usleep.c: Ditto.
13799 * i386-darwin-tdep.c: Ditto.
13800 * i386fbsd-nat.c: Ditto.
13801 * infcmd.c: Ditto.
13802 * inferior.c: Ditto.
13803 * jv-lang.c: Ditto.
13804 * linux-nat.c: Ditto.
13805 * linux-tdep.c: Ditto.
13806 * m68kbsd-nat.c: Ditto.
13807 * m68klinux-nat.c: Ditto.
13808 * microblaze-tdep.c: Ditto.
13809 * mips-linux-tdep.c: Ditto.
13810 * mn10300-tdep.c: Ditto.
13811 * nto-tdep.c: Ditto.
13812 * opencl-lang.c: Ditto.
13813 * osdata.c: Ditto.
13814 * printcmd.c: Ditto.
13815 * regcache.c: Ditto.
13816 * remote-m32r-sdi.c: Ditto.
13817 * remote.c: Ditto.
13818 * symfile.c: Ditto.
13819 * symtab.c: Ditto.
13820 * tilegx-linux-nat.c: Ditto.
13821 * tilegx-tdep.c: Ditto.
13822 * tracepoint.c: Ditto.
13823 * valops.c: Ditto.
13824 * vaxbsd-nat.c: Ditto.
13825 * windows-nat.c: Ditto.
13826 * xtensa-tdep.c: Ditto.
13827
bd1f7788
YQ
138282014-01-07 Yao Qi <yao@codesourcery.com>
13829
13830 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13831
79301218
JB
138322014-01-07 Yao Qi <yao@codesourcery.com>
13833 Joel Brobecker <brobecker@adacore.com>
13834
13835 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13836 (pdc_write_regs): Likewise.
13837 (fetch_regs_kernel_thread): Likewise.
13838 (store_regs_kernel_thread): Likewise.
13839
138402014-01-07 Joel Brobecker <brobecker@adacore.com>
13841
13842 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13843 tagged type objects to their actual type.
13844
8e355c5d
JB
138452014-01-07 Joel Brobecker <brobecker@adacore.com>
13846
13847 * ada-valprint.c (print_field_values): Add "language" parameter.
13848 Update calls to print_field_values and print_variant_part.
13849 Pass new parameter "language" in call to val_print instead
13850 of "current_language". Replace call to ada_val_print by call
13851 to val_print.
13852 (print_variant_part): Add "language" parameter.
13853 (ada_val_print_struct_union): Update call to print_field_values.
13854
4fbf5aa5
JB
138552014-01-07 Joel Brobecker <brobecker@adacore.com>
13856
13857 * ada-valprint.c (ui_memcpy): Delete.
13858 (ada_print_floating): Update documentation. Add empty line
13859 between between function documentation and implementation.
13860 Delete variable "buffer". Use ui_file_xstrdup in place of
13861 ui_file_put. Minor adjustments following this change.
13862
71855601
JB
138632014-01-07 Joel Brobecker <brobecker@adacore.com>
13864
13865 * ada-valprint.c (ada_val_print_string): New function,
13866 extracted from ada_val_print_array.
13867 (ada_val_print_array): Replace extracted code by call
13868 to ada_val_print_string followed by a return. Move
13869 "else" branch to the function's top block.
13870
4eb27a30
JB
138712014-01-07 Joel Brobecker <brobecker@adacore.com>
13872
13873 * ada-valprint.c (ada_val_print_array): Move implementation
13874 down. Rename parameter "offset" and "val" into "offset_aligned"
13875 and "original_value" respectively. Add parameter "offset".
13876
34b27950
JB
138772014-01-07 Joel Brobecker <brobecker@adacore.com>
13878
13879 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13880 re-organizing the code. Change the "???" message printed
13881 when target type is a TYPE_CODE_UNDEF into
13882 "<ref to undefined type>".
13883
079e4591
JB
138842014-01-07 Joel Brobecker <brobecker@adacore.com>
13885
13886 * ada-valprint.c (print_record): Delete, implementation inlined...
13887 (ada_val_print_struct_union): ... here. Remove call to
13888 ada_check_typedef in inlined implementation.
13889
8004dfd1
JB
138902014-01-07 Joel Brobecker <brobecker@adacore.com>
13891
13892 * ada-valprint.c (ada_val_print_gnat_array): New function,
13893 extracted from ada_val_print_1;
13894 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13895 (ada_val_print_flt, ada_val_print_struct_union)
13896 (ada_val_print_ref): Likewise.
13897 (ada_val_print_1): Delete variables i and elttype.
13898 Replace extracted-out code by call to corresponding
13899 new functions.
13900
760a2db0
JB
139012014-01-07 Joel Brobecker <brobecker@adacore.com>
13902
13903 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13904
3a92c861
JB
139052014-01-07 Joel Brobecker <brobecker@adacore.com>
13906
13907 * ada-valprint.c (ada_val_print_1): Replace calls to
13908 ada_val_print_1 by calls to val_print.
13909
cd1630f9
JB
139102014-01-07 Joel Brobecker <brobecker@adacore.com>
13911
13912 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13913 Update calls to self accordingly. Replace calls to c_val_print
13914 by calls to val_print.
13915
bdf779a0
JB
139162014-01-07 Joel Brobecker <brobecker@adacore.com>
13917
13918 * ada-valprint.c (print_record): Delete declaration.
13919 (adjust_type_signedness, ada_val_print_1): Likewise.
13920 (ada_val_print): Move function implementation down.
13921 (print_variant_part, print_field_values, print_record):
13922 Move function implementation up.
13923
c0d48811
JB
139242014-01-07 Joel Brobecker <brobecker@adacore.com>
13925
13926 * python/py-type.c (typy_get_name): New function.
13927 (type_object_getset): Add entry for attribute "name".
13928 * NEWS: Add entry mentioning this new attribute.
13929
c26e9cbb
YQ
139302014-01-07 Yao Qi <yao@codesourcery.com>
13931
13932 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13933 statement.
13934
0cc6f43d
YQ
139352014-01-07 Yao Qi <yao@codesourcery.com>
13936
13937 * gnu-nat.c (info_port_rights): Add qualifier const to
13938 argument args.
13939
eec03155
YQ
139402014-01-07 Yao Qi <yao@codesourcery.com>
13941
13942 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13943
f04a82ef
YQ
139442014-01-07 Yao Qi <yao@codesourcery.com>
13945
13946 * gnu-nat.c (make_inf) Update declaration.
13947 (make_inf): Make it static.
13948 (inf_set_traced): Likewise.
13949 (inf_port_to_thread, inf_task_died_status): Likewise.
13950
d57dda0a
YQ
139512014-01-07 Yao Qi <yao@codesourcery.com>
13952
13953 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13954
3aa8c969
YQ
139552014-01-07 Yao Qi <yao@codesourcery.com>
13956
13957 * gnu-nat.c (_initialize_gnu_nat): Declare.
13958
94123b4f
YQ
139592014-01-07 Yao Qi <yao@codesourcery.com>
13960
13961 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13962 'enum bfd_endian'.
13963 (struct gdbarch_info) <byte_order>: Change type to
13964 'enum bfd_endian'.
13965 <byte_order_for_code>: Likewise.
13966 * gdbarch.c, gdbarch.h: Regenerated.
13967
dc81d70a
TT
139682014-01-06 Sasha Smundak <asmundak@google.com>
13969
13970 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13971
cc2f3c35
TT
139722014-01-06 Tom Tromey <tromey@redhat.com>
13973
13974 * doublest.c (convert_doublest_to_floatformat): Use const, not
13975 CONST.
13976 * somread.c (som_symtab_read): Likewise.
13977
adcf2eed
HZ
139782014-01-07 Hui Zhu <hui@codesourcery.com>
13979
13980 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13981 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13982 (gdb_bfd_fopen): Ditto.
13983 (gdb_bfd_openr): Ditto.
13984 (gdb_bfd_openw): Ditto.
13985 (gdb_bfd_openr_iovec): Ditto.
13986 (gdb_bfd_fdopenr): Ditto.
13987 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13988 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13989 with xstrdup.
13990 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13991 with xstrdup.
13992 * symfile-mem.c (symbol_file_add_from_memory): Removed
13993 gdb_bfd_stash_filename.
13994
50722198
DE
139952014-01-03 Doug Evans <dje@google.com>
13996
13997 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13998 output.
13999
2fa4b862
JB
140002014-01-01 Joel Brobecker <brobecker@adacore.com>
14001
14002 Update year range in copyright notice of all files.
14003
28498c42
JB
140042014-01-01 Joel Brobecker <brobecker@adacore.com>
14005
14006 * top.c (print_gdb_version): Set copyright year to 2014.
14007
7b6e1046
JB
140082014-01-01 Joel Brobecker <brobecker@adacore.com>
14009
14010 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14011
df96af55 14012For older changes see ChangeLog-2013.
c906108c
SS
14013\f
14014Local Variables:
14015mode: change-log
14016left-margin: 8
14017fill-column: 74
14018version-control: never
57da7796 14019coding: utf-8
c906108c 14020End:
This page took 2.239703 seconds and 4 git commands to generate.