Include gdb_assert.h in common-defs.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dccbb609
GB
12014-08-07 Gary Benson <gbenson@redhat.com>
2
3 * common/common-defs.h: Include gdb_assert.h.
4 * aarch64-tdep.c: Do not include gdb_assert.h.
5 * addrmap.c: Likewise.
6 * aix-thread.c: Likewise.
7 * alpha-linux-tdep.c: Likewise.
8 * alpha-mdebug-tdep.c: Likewise.
9 * alphanbsd-tdep.c: Likewise.
10 * amd64-nat.c: Likewise.
11 * amd64-tdep.c: Likewise.
12 * amd64bsd-nat.c: Likewise.
13 * amd64fbsd-nat.c: Likewise.
14 * amd64fbsd-tdep.c: Likewise.
15 * amd64nbsd-nat.c: Likewise.
16 * amd64nbsd-tdep.c: Likewise.
17 * amd64obsd-nat.c: Likewise.
18 * amd64obsd-tdep.c: Likewise.
19 * arch-utils.c: Likewise.
20 * arm-tdep.c: Likewise.
21 * armbsd-tdep.c: Likewise.
22 * auxv.c: Likewise.
23 * bcache.c: Likewise.
24 * bfin-tdep.c: Likewise.
25 * blockframe.c: Likewise.
26 * breakpoint.c: Likewise.
27 * bsd-kvm.c: Likewise.
28 * bsd-uthread.c: Likewise.
29 * buildsym.c: Likewise.
30 * c-exp.y: Likewise.
31 * c-lang.c: Likewise.
32 * charset.c: Likewise.
33 * cleanups.c: Likewise.
34 * cli-out.c: Likewise.
35 * cli/cli-decode.c: Likewise.
36 * cli/cli-dump.c: Likewise.
37 * cli/cli-logging.c: Likewise.
38 * cli/cli-script.c: Likewise.
39 * cli/cli-utils.c: Likewise.
40 * coffread.c: Likewise.
41 * common/common-utils.c: Likewise.
42 * common/queue.h: Likewise.
43 * common/signals.c: Likewise.
44 * common/vec.h: Likewise.
45 * complaints.c: Likewise.
46 * completer.c: Likewise.
47 * corelow.c: Likewise.
48 * cp-abi.c: Likewise.
49 * cp-name-parser.y: Likewise.
50 * cp-namespace.c: Likewise.
51 * cp-support.c: Likewise.
52 * cris-tdep.c: Likewise.
53 * dbxread.c: Likewise.
54 * dictionary.c: Likewise.
55 * doublest.c: Likewise.
56 * dsrec.c: Likewise.
57 * dummy-frame.c: Likewise.
58 * dwarf2-frame-tailcall.c: Likewise.
59 * dwarf2-frame.c: Likewise.
60 * dwarf2expr.c: Likewise.
61 * dwarf2loc.c: Likewise.
62 * dwarf2read.c: Likewise.
63 * eval.c: Likewise.
64 * event-loop.c: Likewise.
65 * exceptions.c: Likewise.
66 * expprint.c: Likewise.
67 * f-valprint.c: Likewise.
68 * fbsd-nat.c: Likewise.
69 * findvar.c: Likewise.
70 * frame-unwind.c: Likewise.
71 * frame.c: Likewise.
72 * frv-tdep.c: Likewise.
73 * gcore.c: Likewise.
74 * gdb-dlfcn.c: Likewise.
75 * gdb_bfd.c: Likewise.
76 * gdbarch.c: Likewise.
77 * gdbarch.sh: Likewise.
78 * gdbtypes.c: Likewise.
79 * gnu-nat.c: Likewise.
80 * gnu-v3-abi.c: Likewise.
81 * go-lang.c: Likewise.
82 * guile/scm-exception.c: Likewise.
83 * guile/scm-gsmob.c: Likewise.
84 * guile/scm-lazy-string.c: Likewise.
85 * guile/scm-math.c: Likewise.
86 * guile/scm-pretty-print.c: Likewise.
87 * guile/scm-safe-call.c: Likewise.
88 * guile/scm-utils.c: Likewise.
89 * guile/scm-value.c: Likewise.
90 * h8300-tdep.c: Likewise.
91 * hppa-hpux-nat.c: Likewise.
92 * hppa-tdep.c: Likewise.
93 * hppanbsd-tdep.c: Likewise.
94 * hppaobsd-tdep.c: Likewise.
95 * i386-darwin-nat.c: Likewise.
96 * i386-darwin-tdep.c: Likewise.
97 * i386-nto-tdep.c: Likewise.
98 * i386-tdep.c: Likewise.
99 * i386bsd-nat.c: Likewise.
100 * i386fbsd-tdep.c: Likewise.
101 * i386gnu-nat.c: Likewise.
102 * i386nbsd-tdep.c: Likewise.
103 * i386obsd-tdep.c: Likewise.
104 * i387-tdep.c: Likewise.
105 * ia64-libunwind-tdep.c: Likewise.
106 * ia64-tdep.c: Likewise.
107 * inf-ptrace.c: Likewise.
108 * inf-ttrace.c: Likewise.
109 * infcall.c: Likewise.
110 * infcmd.c: Likewise.
111 * infrun.c: Likewise.
112 * inline-frame.c: Likewise.
113 * interps.c: Likewise.
114 * jv-lang.c: Likewise.
115 * jv-typeprint.c: Likewise.
116 * linux-fork.c: Likewise.
117 * linux-nat.c: Likewise.
118 * linux-thread-db.c: Likewise.
119 * m32c-tdep.c: Likewise.
120 * m32r-linux-nat.c: Likewise.
121 * m32r-tdep.c: Likewise.
122 * m68k-tdep.c: Likewise.
123 * m68kbsd-nat.c: Likewise.
124 * m68kbsd-tdep.c: Likewise.
125 * m88k-tdep.c: Likewise.
126 * machoread.c: Likewise.
127 * macroexp.c: Likewise.
128 * macrotab.c: Likewise.
129 * maint.c: Likewise.
130 * mdebugread.c: Likewise.
131 * memory-map.c: Likewise.
132 * mep-tdep.c: Likewise.
133 * mi/mi-common.c: Likewise.
134 * microblaze-tdep.c: Likewise.
135 * mingw-hdep.c: Likewise.
136 * mips-linux-nat.c: Likewise.
137 * mips-linux-tdep.c: Likewise.
138 * mips-tdep.c: Likewise.
139 * mips64obsd-tdep.c: Likewise.
140 * mipsnbsd-tdep.c: Likewise.
141 * mn10300-linux-tdep.c: Likewise.
142 * mn10300-tdep.c: Likewise.
143 * moxie-tdep.c: Likewise.
144 * mt-tdep.c: Likewise.
145 * nat/linux-btrace.c: Likewise.
146 * nat/linux-osdata.c: Likewise.
147 * nat/linux-ptrace.c: Likewise.
148 * nat/mips-linux-watch.c: Likewise.
149 * nios2-linux-tdep.c: Likewise.
150 * nios2-tdep.c: Likewise.
151 * objc-lang.c: Likewise.
152 * objfiles.c: Likewise.
153 * obsd-nat.c: Likewise.
154 * opencl-lang.c: Likewise.
155 * osabi.c: Likewise.
156 * parse.c: Likewise.
157 * ppc-linux-nat.c: Likewise.
158 * ppc-sysv-tdep.c: Likewise.
159 * ppcfbsd-nat.c: Likewise.
160 * ppcfbsd-tdep.c: Likewise.
161 * ppcnbsd-nat.c: Likewise.
162 * ppcnbsd-tdep.c: Likewise.
163 * ppcobsd-nat.c: Likewise.
164 * ppcobsd-tdep.c: Likewise.
165 * printcmd.c: Likewise.
166 * procfs.c: Likewise.
167 * prologue-value.c: Likewise.
168 * psymtab.c: Likewise.
169 * python/py-lazy-string.c: Likewise.
170 * python/py-value.c: Likewise.
171 * regcache.c: Likewise.
172 * reggroups.c: Likewise.
173 * registry.c: Likewise.
174 * remote-sim.c: Likewise.
175 * remote.c: Likewise.
176 * rs6000-aix-tdep.c: Likewise.
177 * rs6000-tdep.c: Likewise.
178 * s390-linux-tdep.c: Likewise.
179 * score-tdep.c: Likewise.
180 * ser-base.c: Likewise.
181 * ser-mingw.c: Likewise.
182 * sh-tdep.c: Likewise.
183 * sh64-tdep.c: Likewise.
184 * solib-darwin.c: Likewise.
185 * solib-spu.c: Likewise.
186 * solib-svr4.c: Likewise.
187 * source.c: Likewise.
188 * sparc-nat.c: Likewise.
189 * sparc-sol2-tdep.c: Likewise.
190 * sparc-tdep.c: Likewise.
191 * sparc64-sol2-tdep.c: Likewise.
192 * sparc64-tdep.c: Likewise.
193 * sparc64fbsd-tdep.c: Likewise.
194 * sparc64nbsd-tdep.c: Likewise.
195 * sparc64obsd-tdep.c: Likewise.
196 * sparcnbsd-tdep.c: Likewise.
197 * sparcobsd-tdep.c: Likewise.
198 * spu-multiarch.c: Likewise.
199 * spu-tdep.c: Likewise.
200 * stabsread.c: Likewise.
201 * stack.c: Likewise.
202 * symfile.c: Likewise.
203 * symtab.c: Likewise.
204 * target-descriptions.c: Likewise.
205 * target-memory.c: Likewise.
206 * target.c: Likewise.
207 * tic6x-linux-tdep.c: Likewise.
208 * tic6x-tdep.c: Likewise.
209 * tilegx-linux-nat.c: Likewise.
210 * tilegx-tdep.c: Likewise.
211 * top.c: Likewise.
212 * tramp-frame.c: Likewise.
213 * tui/tui-out.c: Likewise.
214 * tui/tui-winsource.c: Likewise.
215 * ui-out.c: Likewise.
216 * user-regs.c: Likewise.
217 * utils.c: Likewise.
218 * v850-tdep.c: Likewise.
219 * valops.c: Likewise.
220 * value.c: Likewise.
221 * varobj.c: Likewise.
222 * vax-nat.c: Likewise.
223 * xml-syscall.c: Likewise.
224 * xml-tdesc.c: Likewise.
225 * xstormy16-tdep.c: Likewise.
226 * xtensa-linux-nat.c: Likewise.
227 * xtensa-tdep.c: Likewise.
228
e76df0d0
GB
2292014-08-07 Gary Benson <gbenson@redhat.com>
230
231 * common/common-defs.h: Include common-utils.h.
232 * defs.h: Do not include common-utils.h.
233 * common/gdb_assert.h: Likewise.
234 * darwin-nat.h: Likewise.
235 * nat/linux-btrace.c: Likewise.
236 * target/waitstatus.h: Likewise.
237
4cb9c816
GB
2382014-08-07 Gary Benson <gbenson@redhat.com>
239
240 * common/common-defs.h: Include ptid.h.
241 * defs.h: Do not include ptid.h.
242 * inferior.h: Likewise.
243 * infrun.h: Likewise.
244 * nat/linux-btrace.h: Likewise.
245 * nat/linux-osdata.h: Likewise.
246 * target/waitstatus.h: Likewise.
247
3995eeee
GB
2482014-08-07 Gary Benson <gbenson@redhat.com>
249
250 * common/common-defs.h: Include gdb_locale.h.
251 * defs.h: Do not include gdb_locale.h.
252
cb9f1a9b
GB
2532014-08-07 Gary Benson <gbenson@redhat.com>
254
255 * common/common-defs.h: Include gdb/signals.h.
256 * defs.h: Do not include gdb/signals.h.
257
a5fceff8
GB
2582014-08-07 Gary Benson <gbenson@redhat.com>
259
260 * common/common-defs.h: Include pathmax.h.
261 * defs.h: Do not include pathmax.h.
262
b9391142
GB
2632014-08-07 Gary Benson <gbenson@redhat.com>
264
265 * common/common-defs.h: Include libiberty.h.
266 * defs.h: Do not include libiberty.h.
267 * common/queue.h: Likewise.
268 * cp-name-parser.y: Likewise.
269 * mi/mi-cmd-catch.c: Likewise.
270 * python/python.c: Likewise.
271
0e443c87
GB
2722014-08-07 Gary Benson <gbenson@redhat.com>
273
274 * common/common-defs.h: Include ansidecl.h.
275 * defs.h: Do not include ansidecl.h.
276 * common/buffer.h: Likewise.
277 * common/common-utils.h: Likewise.
278
8ebb3f56
GB
2792014-08-07 Gary Benson <gbenson@redhat.com>
280
281 * common/common-defs.h: Include stddef.h.
282 * defs.h: Do not include stddef.h.
283 * common/common-utils.h: Likewise.
284 * amd64fbsd-nat.c: Likewise.
285 * bcache.c: Likewise.
286 * charset.c: Likewise.
287 * common/buffer.h: Likewise.
288 * common/vec.h: Likewise.
289 * i386bsd-nat.c: Likewise.
290 * nat/linux-btrace.h: Likewise.
291 * ppcfbsd-nat.c: Likewise.
292 * ppcnbsd-tdep.h: Likewise.
293 * ppcobsd-nat.c: Likewise.
294 * ppcobsd-tdep.h: Likewise.
295 * python/py-gdb-readline.c: Likewise.
296
8980bdf6
GB
2972014-08-07 Gary Benson <gbenson@redhat.com>
298
299 * common/common-defs.h: Include stdarg.h.
300 * defs.h: Do not include stdarg.h.
301 * ada-lang.c: Likewise.
302 * common/common-utils.h: Likewise.
303 * guile/scm-string.c: Likewise.
304 * guile/scm-utils.c: Likewise.
305 * m32c-tdep.c: Likewise.
306
d7096f71
GB
3072014-08-07 Gary Benson <gbenson@redhat.com>
308
309 * common/common-defs.h: Include stdlib.h.
310 * defs.h: Do not include stdlib.h.
311 * addrmap.c: Likewise.
312 * bcache.c: Likewise.
313 * common/buffer.c: Likewise.
314 * common/common-utils.c: Likewise.
315 * cp-name-parser.y: Likewise.
316 * go32-nat.c: Likewise.
317 * mn10300-linux-tdep.c: Likewise.
318 * nat/linux-osdata.c: Likewise.
319 * tui/tui.c: Likewise.
320 * windows-nat.c: Likewise.
321
d02f550d
GB
3222014-08-07 Gary Benson <gbenson@redhat.com>
323
324 * common/common-defs.h: Include stdio.h.
325 * defs.h: Do not include stdio.h.
326 * ada-lang.c: Likewise.
327 * common/buffer.c: Likewise.
328 * common/common-utils.c: Likewise.
329 * cp-name-parser.y: Likewise.
330 * gnu-nat.c: Likewise.
331 * go32-nat.c: Likewise.
332 * i386gnu-nat.c: Likewise.
333 * proc-api.c: Likewise.
334 * proc-events.c: Likewise.
335 * proc-flags.c: Likewise.
336 * proc-why.c: Likewise.
337 * python/python-internal.h: Likewise.
338 * target-memory.c: Likewise.
339 * tui/tui-io.c: Likewise.
340 * tui/tui.c: Likewise.
341
b6d7a4bf
SM
3422014-08-06 Simon Marchi <simon.marchi@ericsson.com>
343
344 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
345 (scan_dyntag_auxv): Same.
346
af19829b
YQ
3472014-08-06 Yao Qi <yao@codesourcery.com>
348
349 * amd64-linux-nat.c: Remove duplicated include
350 "x86-linux-nat.h".
351 * i386-linux-nat.c: Likewise.
352
8e07a239
YQ
3532014-08-06 Yao Qi <yao@codesourcery.com>
354
355 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
356 operand" with "Special opcode" in comments.
357
7bfe8241
GB
3582014-08-05 Gary Benson <gbenson@redhat.com>
359
360 * interps.c (initialize_interps): Remove prototype.
361 (interpreter_initialized): Remove static global.
362 (interp_add): Do not call initialize_interps.
363 (initialize_interps): Remove function.
364
d6c95504
GB
3652014-08-05 Gary Benson <gbenson@redhat.com>
366
367 * utils.c (vwarning): Remove spurious va_end.
368
241fd515
AM
3692014-08-05 Alan Modra <amodra@gmail.com>
370
371 * charset.c (convert_between_encodings): Cast result of obstack_base.
372 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
373 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
374 (read_unwind_info): Use size_t for some locals.
375 * jit.c (finalize_symtab): Likewise.
376 * utils.c (hashtab_obstack_allocate): Likewise.
377 * symmisc.c (print_objfile_statistics): Update format strings.
378
dc304a94
JK
3792014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
380
381 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
382 (Changes in GDB 7.8): ... here.
383
3cecbbbe
TT
3842014-08-04 Tom Tromey <tromey@redhat.com>
385
386 * target.c (set_targetdebug): New function.
387 (initialize_targets): Pass set_targetdebug when creating "set
388 debug target".
389
6908c509
JB
3902014-08-01 Joel Brobecker <brobecker@adacore.com>
391
392 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
393 if detecting a variable-sized field that is not the last field.
394 Fix struct type length computation.
395
53e8f97d
JB
3962014-08-01 Joel Brobecker <brobecker@adacore.com>
397
398 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
399 Add debug trace.
400
e068c55d
JB
4012014-08-01 Joel Brobecker <brobecker@adacore.com>
402
403 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
404 Remove "+ 8" offset in computation of CHAIN_VMA.
405
4d4ca2a1
DE
4062014-07-31 Doug Evans <dje@google.com>
407
408 * inflow.c (child_terminal_inferior): Add comment.
409 (child_terminal_ours_for_output): Add comment.
410 (child_terminal_ours): Add comment.
411 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
412 (linux_nat_terminal_ours): Add comment.
413
462f517e
GB
4142014-07-31 Gary Benson <gbenson@redhat.com>
415
416 * common/btrace-common.h: Do not include defs.h or server.h.
417 * nat/mips-linux-watch.h: Likewise.
418 * gdb-dlfcn.h: Do not include defs.h.
419 * tracefile.h: Likewise.
420
74228e77
RM
4212014-07-30 Roland McGrath <mcgrathr@google.com>
422
423 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
424
014f9477
TT
4252014-07-30 Tom Tromey <tromey@redhat.com>
426
427 * bsd-kvm.c (bsd_kvm_open): Constify.
428 * corelow.c (core_open): Constify.
429 * ctf.c (ctf_open): Constify.
430 * dbug-rom.c (dbug_open): Constify.
431 * exec.c (exec_open): Constify.
432 * m32r-rom.c (m32r_open, mon2000_open): Constify.
433 * microblaze-rom.c (picobug_open): Constify.
434 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
435 Constify.
436 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
437 * record-btrace.c (record_btrace_open): Constify.
438 * record-full.c (record_full_core_open_1, record_full_open_1)
439 (record_full_open): Constify.
440 * remote-m32r-sdi.c (m32r_open): Constify.
441 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
442 (rockhopper_open, lsi_open): Constify.
443 * remote-sim.c (gdbsim_open): Constify.
444 * remote.c (remote_open, extended_remote_open, remote_open_1):
445 Constify.
446 * target.h (struct target_ops) <to_open>: Make "arg" const.
447 * tracefile-tfile.c (tfile_open): Constify.
448
e799154c
TT
4492014-07-30 Tom Tromey <tromey@redhat.com>
450
451 * breakpoint.c (map_breakpoint_numbers): Update.
452 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
453 (get_number_const): New function.
454 (get_number): Rewrite using get_number_const.
455 (init_number_or_range): Make "string" const.
456 (number_is_in_list): Make "list" const.
457 * cli/cli-utils.h (get_number_const): Declare.
458 (struct get_number_or_range_state) <string, end_ptr>: Now const.
459 (init_number_or_range, number_is_in_list): Update.
460 * printcmd.c (map_display_numbers): Update.
461 * value.c (value_from_history_ref): Constify.
462 * value.h (value_from_history_ref): Update.
463
5f08566b
TT
4642014-07-30 Tom Tromey <tromey@redhat.com>
465
466 * corefile.c (hook_type, call_extra_exec_file_hooks)
467 (specify_exec_file_hook): Constify.
468 * exec.c (exec_file_attach): Make "filename" const.
469 * gdbcore.h (deprecated_exec_file_display_hook)
470 (specify_exec_file_hook, exec_file_attach): Constify.
471 * main.c (captured_main): Use catch_command_errors_const.
472
8981c758
TT
4732014-07-30 Tom Tromey <tromey@redhat.com>
474
475 * target.c (open_target): New function.
476 (add_target_with_completer, add_deprecated_target_alias): Use
477 set_cmd_sfunc, set_cmd_context.
478 (debug_to_open): Remove.
479 (setup_target_debug): Update.
480
a1c7835a
YQ
4812014-07-30 Yao Qi <yao@codesourcery.com>
482
483 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
484 comments.
485 * parse.c (exp_iterate): Update comments.
486
976411d6
GB
4872014-07-30 Gary Benson <gbenson@redhat.com>
488
489 * common/common-defs.h: New file.
490 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
491 * defs.h: Include common-defs.h.
492 Do not include config.h or build-gnulib/config.h.
493
5d4848a4
GB
4942014-07-30 Gary Benson <gbenson@redhat.com>
495
496 * common/common-utils.h: Do not include config.h.
497 * nat/linux-btrace.h: Likewise.
498
d41f6d8e
GB
4992014-07-30 Gary Benson <gbenson@redhat.com>
500
501 * btrace.c: Include defs.h.
502 * common/ptid.c: Include defs.h or server.h as appropriate.
503 * nat/mips-linux-watch.c: Likewise.
504
84202f9c
TT
5052014-07-29 Tom Tromey <tromey@redhat.com>
506
507 * target.c (target_is_pushed): Simplify.
508
2530441c
JB
5092014-07-29 Joel Brobecker <brobecker@adacore.com>
510
511 GDB 7.8 released.
512
7e09a223
YQ
5132014-07-29 Yao Qi <yao@codesourcery.com>
514
515 PR gdb/17206
516 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
517
7ebdbe92
DE
5182014-07-28 Doug Evans <xdje42@gmail.com>
519
520 PR guile/17203
521 * guile/scm-param.c (pascm_parameter_defined_p): New function.
522 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
523 parameters.
524
f347ffc9
WN
5252014-07-28 Will Newton <will.newton@linaro.org>
526
527 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
528 (THUMB2_SET_R7_SIGRETURN2): Likewise.
529 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
530 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
531 (THUMB2_EABI_SYSCALL): Likewise.
532 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
533 struct tramp_frame.
534 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
535 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
536
37c5f1f7
DE
5372014-07-27 Doug Evans <xdje42@gmail.com>
538
539 * guile/scm-param.c (pascm_print_param_smob): Fix output.
540
0c3abbc7
DE
5412014-07-27 Doug Evans <xdje42@gmail.com>
542
543 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
544
e76c5d17
DE
5452014-07-26 Ludovic Courtès <ludo@gnu.org>
546 Doug Evans <xdje42@gmail.com>
547
548 PR guile/17146
549 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
550 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
551 * configure.ac: Try to use guild to compile an scm file, if it fails
552 then disable guile support.
553 * configure: Regenerate.
554 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
555 GUILE_FILE_LIST.
556 (GUILE_COMPILED_FILES): New variable.
557 (GUILE_FILES) Update.
558 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
559 (stamp-guile): Compile scm files.
560 * guile/guile.c (boot_guile_support): New function.
561 (standard_throw_args_p): New function.
562 (print_standard_throw_error, print_throw_error): New functions.
563 (handle_boot_error): New function.
564 (initialize_scheme_side): Rewrite to call boot_guile_support.
565 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
566 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
567
186fcde0
DE
5682014-07-26 Ludovic Courtès <ludo@gnu.org>
569 Doug Evans <xdje42@gmail.com>
570
571 PR guile/17146
572 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
573 * guile/lib/gdb/support.scm: New file.
574 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
575 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
576 All uses updated.
577 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
578 All uses updated.
579 (%assert-type): Ditto, and renamed to assert-type.
580 (%exception-print-style): Delete.
581
4df42755
DE
5822014-07-26 Doug Evans <xdje42@gmail.com>
583
584 PR build/17105
585 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
586 * configure: Regenerate.
587 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
588 PYTHON_FILES.
589 (PYTHON_FILES): New variable.
590 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
591 (GUILE_FILES): New variable.
592 (stamp-python, install-python, uninstall-python): Handle empty
593 file list.
594 (stamp-guile, install-guile, uninstall-guile): Ditto.
595
ee7333ae
DE
5962014-07-26 Doug Evans <xdje42@gmail.com>
597
598 PR guile/17177
599 * guile/lib/gdb.scm (pretty-printers): Export.
600 (set-pretty-printers!): Export.
601 * guile/lib/gdb/printing.scm (gdb module): Update.
602 (prepend-pretty-printer!, append-pretty-printer!): Update.
603 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
604 (pretty_printer_list_var): Delete.
605 (pretty_printer_list): New static global.
606 (gdbscm_pretty_printers): New function.
607 (gdbscm_set_pretty_printers_x): New function.
608 (ppscm_find_pretty_printer_from_gdb): Update.
609 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
610 (gdbscm_initialize_pretty_printers): Update.
611
74edf516
DE
6122014-07-26 Doug Evans <xdje42@gmail.com>
613
614 PR 17185
615 * configure.ac: Add check for header gc/gc.h.
616 Add check for function setenv.
617 * configure: Regenerate.
618 * config.in: Regenerate.
619 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
620
d54398a7
MR
6212014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
622
623 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
624 variation in gdbarch matching.
625
ab16fce8
TT
6262014-07-25 Tom Tromey <tromey@redhat.com>
627
628 * exec.c (using_exec_ops): Remove.
629 (exec_close_1): Update. Remove extraneous block, reindent.
630 (add_target_sections): Use target_is_pushed.
631
88056fbb
PA
6322014-07-25 Pedro Alves <palves@redhat.com>
633
634 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
635 * monitor.c (monitor_create_inferior): Likewise.
636 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
637 * remote-sim.c (gdbsim_create_inferior): Likewise.
638 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
639 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
640 * windows-nat.c (do_initial_windows_stuff): Likewise.
641
70509625
PA
6422014-07-25 Pedro Alves <palves@redhat.com>
643
644 * NEWS: Mention signal passing and "signal" command changes.
645 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
646 comment.
647 * breakpoint.c (until_break_command): Adjust clear_proceed_status
648 call.
649 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
650 * infcmd.c (proceed_thread_callback, continue_1, step_once)
651 (jump_command): Adjust clear_proceed_status call.
652 (signal_command): Warn if other thread that are resumed have
653 signals that will be delivered. Adjust clear_proceed_status call.
654 (until_next_command, finish_command)
655 (proceed_after_attach_callback, attach_command_post_wait)
656 (attach_command): Adjust clear_proceed_status call.
657 * infrun.c (proceed_after_vfork_done): Likewise.
658 (proceed_after_attach_callback): Adjust comment.
659 (clear_proceed_status_thread): Clear stop_signal if not in pass
660 state.
661 (clear_proceed_status_callback): Delete.
662 (clear_proceed_status): New 'step' parameter. Only clear the
663 proceed status of threads the command being prepared is about to
664 resume.
665 (proceed): If passed in an explicit signal, override stop_signal
666 with it. Don't pass the last stop signal to the thread we're
667 resuming.
668 (init_wait_for_inferior): Adjust clear_proceed_status call.
669 (switch_back_to_stepped_thread): Clear the signal if it should not
670 be passed.
671 * infrun.h (clear_proceed_status): New 'step' parameter.
672 (user_visible_resume_ptid): Add comment.
673 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
674 signal is in pass state.
675 * remote.c (append_pending_thread_resumptions): Likewise.
676 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
677
d8be2939
TT
6782014-07-25 Tom Tromey <tromey@redhat.com>
679
680 * target.h (target_stopped_data_address)
681 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
682 parentheses.
683
7d0d9d2b
PL
6842014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
685
686 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
687 comments.
688 (avr_pointer_to_address): Likewise.
689
e9e7f724
TT
6902014-07-24 Tom Tromey <tromey@redhat.com>
691
692 * monitor.c (compile_pattern): Update.
693 * target.h (struct target_ops) <to_shortname, to_longname,
694 to_doc>: Now const.
695
1947513d
TT
6962014-07-24 Tom Tromey <tromey@redhat.com>
697
698 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
699 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
700 (add_info_alias, add_com): Make "doc" const.
701 (print_doc_line): Make "str" const.
702 (delete_cmd): Update.
703 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
704 (print_doc_line): Update.
705 * cli/cli-script.c (document_command): Update.
706 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
707 (add_com, add_info, add_info_alias): Update.
708 * guile/scm-cmd.c (cmdscm_destroyer): Update.
709 * python/py-cmd.c (cmdpy_destroyer): Update.
710
64e61d29
TT
7112014-07-24 Tom Tromey <tromey@redhat.com>
712
713 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
714 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
715 (help_cmd_list): Constify.
716 (lookup_cmd): Update.
717 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
718 const.
719 (help_cmd_list, apropos_cmd): Update.
720 * cli/cli-script.c (show_user): Update.
721 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
722 * cli/cli-setshow.h (cmd_show_list): Update.
723 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
724 (cmd_show_list): Update.
725 * guile/scm-cmd.c (cmdscm_destroyer): Update.
726 * python/py-cmd.c (cmdpy_destroyer): Update.
727
429e55ea
TT
7282014-07-24 Tom Tromey <tromey@redhat.com>
729
730 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
731 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
732 const.
733 * command.h (deprecate_cmd): Update.
734 * maint.c (maintenance_do_deprecate): Add casts.
735
64669f3b
TT
7362014-07-24 Tom Tromey <tromey@redhat.com>
737
738 * cli/cli-decode.c (help_cmd): Make parameter "const".
739 * cli/cli-decode.h (help_cmd): Update.
740
d3d3328b
TT
7412014-07-24 Tom Tromey <tromey@redhat.com>
742
743 * stack.c (up_silently_base, down_silently_base): Make argument
744 const.
745
414842dc
TT
7462014-07-24 Tom Tromey <tromey@redhat.com>
747
748 * solib.c (solib_add): Make "pattern" const.
749 * solib.h (solib_add): Update.
750
baa336ce
TT
7512014-07-24 Tom Tromey <tromey@redhat.com>
752
753 * remote.c (remote_serial_open, print_packet, putpkt)
754 (putpkt_binary): Constify.
755 * remote.h (putpkt): Update.
756
5a19e2d0
TT
7572014-07-24 Tom Tromey <tromey@redhat.com>
758
759 * monitor.c (monitor_open): Make "args" const.
760 * monitor.h (monitor_open): Update.
761
fc4baa5e
TT
7622014-07-24 Tom Tromey <tromey@redhat.com>
763
764 * maint.c (match_bfd_flags): Make "string" const.
765 (print_bfd_section_info): Remove casts.
766 (print_objfile_section_info): Make "string" const.
767
0d5f0dbe
TT
7682014-07-24 Tom Tromey <tromey@redhat.com>
769
770 * inf-child.c (inf_child_open_target): Make "arg" const.
771 * inf-child.h (inf_child_open_target): Update.
772
41c77899
TT
7732014-07-24 Tom Tromey <tromey@redhat.com>
774
775 * environ.c (unset_in_environ): Make "var" const.
776 * environ.h (unset_in_environ): Update.
777
93db0d79
TT
7782014-07-24 Tom Tromey <tromey@redhat.com>
779
780 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
781 Make "cmd" const.
782 (scan_filename_with_cleanup): Likewise.
783 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
784 Make arguments const.
785 (restore_command): Update.
786
36d6eb95
PA
7872014-07-24 Pedro Alves <palves@redhat.com>
788
789 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
790
8009206a
TT
7912014-07-24 Tom Tromey <tromey@redhat.com>
792 Gary Benson <gbenson@redhat.com>
793
794 * nat/linux-ptrace.c (additional_flags): New global.
795 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
796 additional_flags; don't check GDBSERVER.
797 (linux_ptrace_set_additional_flags): New function.
798 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
799 Declare.
800 * linux-nat.c (_initialize_linux_nat): Call
801 linux_ptrace_set_additional_flags.
802
a7068b60
TT
8032014-07-24 Tom Tromey <tromey@redhat.com>
804
805 * make-target-delegates (munge_type, write_debugmethod): New
806 functions.
807 (debug_names): New global.
808 ($TARGET_DEBUG_PRINTER): New global.
809 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
810 name.
811 Write debug methods. Generate init_debug_target.
812 * target-debug.h: New file.
813 * target-delegates.c: Rebuild.
814 * target.c: Include target-debug.h.
815 (debug_target): Hoist definition.
816 (target_kill, target_get_section_table, target_memory_map)
817 (target_flash_erase, target_flash_done, target_detach)
818 (target_disconnect, target_wait, target_resume)
819 (target_pass_signals, target_program_signals, target_follow_fork)
820 (target_mourn_inferior, target_search_memory)
821 (target_thread_address_space, target_close)
822 (target_find_new_threads, target_core_of_thread)
823 (target_verify_memory, target_insert_mask_watchpoint)
824 (target_remove_mask_watchpoint): Remove targetdebug code.
825 (debug_to_post_attach, debug_to_prepare_to_store)
826 (debug_to_files_info, debug_to_insert_breakpoint)
827 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
828 (debug_to_region_ok_for_hw_watchpoint)
829 (debug_to_can_accel_watchpoint_condition)
830 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
831 (debug_to_watchpoint_addr_within_range)
832 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
833 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
834 (debug_to_terminal_init, debug_to_terminal_inferior)
835 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
836 (debug_to_terminal_save_ours, debug_to_terminal_info)
837 (debug_to_load, debug_to_post_startup_inferior)
838 (debug_to_insert_fork_catchpoint)
839 (debug_to_remove_fork_catchpoint)
840 (debug_to_insert_vfork_catchpoint)
841 (debug_to_remove_vfork_catchpoint)
842 (debug_to_insert_exec_catchpoint)
843 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
844 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
845 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
846 (setup_target_debug): Call init_debug_target.
847 * target.h (TARGET_DEBUG_PRINTER): New macro.
848 (struct target_ops) <to_resume, to_wait, to_pass_signals,
849 to_program_signals>: Use TARGET_DEBUG_PRINTER.
850
2c51604d
GB
8512014-07-24 Gary Benson <gbenson@redhat.com>
852
853 * exceptions.h (throw_vfatal): Renamed to...
854 (throw_vquit): New declaration.
855 (throw_quit): Likewise.
856 * exceptions.c (throw_vfatal): Renamed to...
857 (throw_vquit): New function.
858 (throw_quit): Likewise.
859 (throw_error): Call throw_verror rather than throw_it.
860 * utils.h (vfatal): Removed.
861 (fatal): Likewise.
862 * utils.c (vfatal): Removed.
863 (fatal): Likewise.
864 (internal_verror): Replaced call to fatal with call to throw_quit.
865 (quit): Replaced calls to fatal with calls to throw_quit.
866
34211963
ME
8672014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
868
869 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
870 target_read_code.
871
a52b4d3e
ME
8722014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
873
874 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
875 less than zero in conditional expression.
876
a8bdc56b
TT
8772014-07-23 Tom Tromey <tromey@redhat.com>
878
879 * make-target-delegates ($ARGS_PART): Match trailing close paren.
880 ($INTRO_PART): Don't match whitespace.
881 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
882 argument matching.
883 ($METHOD): Add $METHOD_TRAILER.
884 (trim): Rewrite.
885 (scan_target_h): New sub.
886 Change main loop not to collect state.
887 * target-delegates.c: Rebuild.
888
91b52240
GB
8892014-07-23 Gary Benson <gbenson@redhat.com>
890
891 * cp-support.c (gdb_demangle): Fix build on systems without
892 sigaltstack.
893
45326f6f
JK
8942014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
895
896 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
897 for reference entry value target data value.
898
e214cf6c
JK
8992014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
900
901 * stack.c (read_frame_arg): Verify value_optimized_out before calling
902 value_available_contents_eq.
903
bddbbedd
PA
9042014-07-22 Pedro Alves <palves@redhat.com>
905
906 * value.c (allocate_optimized_out_value): Don't mark value as
907 non-lazy.
908
45c71484
JW
9092014-07-22 Jiong Wang <jiong.wang@arm.com>
910
911 * MAINTAINERS (Write After Approval): Update my email address.
912
9597b22a
DE
9132014-07-20 Doug Evans <dje@google.com>
914
915 PR server/17147
916 * remote.c (putpkt_binary): Add text to error message.
917
91101fe5
YQ
9182014-07-20 Yao Qi <yao@codesourcery.com>
919
920 * eval.c: Remove "Chill" from comments.
921 * gdbtypes.h: Likewise.
922 * symtab.h: Likewise.
923
c9402c95
YQ
9242014-07-20 Yao Qi <yao@codesourcery.com>
925
926 * std-operator.def: Update comments to TERNOP_SLICE.
927
ae8fddda
YQ
9282014-07-20 Yao Qi <yao@codesourcery.com>
929
930 * std-operator.def: Remove BINOP_RANGE.
931 * breakpoint.c (watchpoint_exp_is_const): Update.
932 * expprint.c (dump_subexp_body_standard): Likewise.
933 * eval.c (init_array_element): Remove dead code.
934 (evaluate_subexp_standard): Likewise.
935
9c816640
YQ
9362014-07-20 Yao Qi <yao@codesourcery.com>
937
938 * std-operator.def: Remove BINOP_IN.
939 * breakpoint.c (watchpoint_exp_is_const): Update.
940 * eval.c (evaluate_subexp_standard): Likewise.
941 * expprint.c (dump_subexp_body_standard): Likewise.
942
164224e9
ME
9432014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
944
945 * microblaze-tdep.c (microblaze_register_names): Add
946 the rshr and rslr register names.
947 (microblaze_gdbarch_init): Use of tdesc_has_registers.
948 Use of tdesc_find_feature. Use of tdesc_data_alloc.
949 Use of tdesc_numbered_register. Use of
950 microblaze_register_g_packet_guesses. Use of
951 tdesc_use_registers. Use of set_gdbarch_register_type.
952 (microblaze_register_g_packet_guesses): New.
953 * microblaze-tdep.h (microblaze_reg_num): Add
954 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
955 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
956 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
957 * features/microblaze-core.xml: New file.
958 * features/microblaze-stack-protect.xml: New file.
959 * features/microblaze-with-stack-protect.c: New file.
960 * features/microblaze-with-stack-protect.xml: New file.
961 * features/microblaze.xml: New file.
962 * features/microblaze.c: New file.
963 * features/Makefile (microblaze-with-stack-protect): Add
964 microblaze-with-stack-protect microblaze and microblaze-expedite.
965 * regformats/microblaze-with-stack-protect.dat: New file.
966 * regformats/microblaze.dat: New file.
967 * doc/gdb.texinfo (MicroBlaze Features): Added.
968
e8b2341c
TT
9692014-07-18 Tom Tromey <tromey@redhat.com>
970
971 * exec.c (exec_ops): Now static.
972 * exec.h (exec_ops): Don't declare.
973
44e89118
TT
9742014-07-18 Tom Tromey <tromey@redhat.com>
975
976 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
977 to find_target_beneath.
978 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
979 find_target_beneath.
980 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
981
b0ed115f
TT
9822014-07-18 Tom Tromey <tromey@redhat.com>
983
984 PR gdb/17130:
985 * utils.c (quit): Use target_supports_terminal_ours.
986 * target.h (target_supports_terminal_ours): Declare.
987 * target.c (target_supports_delete_record): Don't check
988 to_delete_record against NULL.
989 (target_supports_terminal_ours): New function.
990
e75fdfca
TT
9912014-07-18 Tom Tromey <tromey@redhat.com>
992
993 PR gdb/17130:
994 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
995 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
996 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
997 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
998 * windows-nat.c (windows_xfer_partial): Always delegate.
999 * record-btrace.c (record_btrace_xfer_partial): Simplify
1000 delegation.
1001 (record_btrace_fetch_registers, record_btrace_store_registers)
1002 (record_btrace_prepare_to_store, record_btrace_resume)
1003 (record_btrace_wait, record_btrace_find_new_threads)
1004 (record_btrace_thread_alive): Likewise.
1005 * procfs.c (procfs_xfer_partial): Always delegate.
1006 * corelow.c (core_xfer_partial): Always delegate.
1007 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1008
83814951
TT
10092014-07-18 Tom Tromey <tromey@redhat.com>
1010
1011 * exec.c (exec_make_note_section): Move earlier.
1012
b8b8facf
DE
10132014-07-17 Doug Evans <dje@google.com>
1014
74b49205 1015 PR gdb/17170
b8b8facf
DE
1016 * maint.c (count_symtabs_and_blocks): Handle NULL
1017 current_program_space.
1018 (report_command_stats): Check global enabled flag in addition to
1019 recorded enabled flag.
1020 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1021
69ff6be5
PA
10222014-07-16 Pedro Alves <palves@redhat.com>
1023
1024 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1025
252db1b5
TT
10262014-07-16 Tom Tromey <tromey@redhat.com>
1027
1028 * target.h (struct target_ops) <to_delete_record>: Reformat
1029 comment.
1030
a432721e
TT
10312014-07-16 Tom Tromey <tromey@redhat.com>
1032
1033 * target-delegates.c: Rebuild.
1034
487d9753
PL
10352014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1036
1037 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1038 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1039 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1040 (avr_pointer_to_address): Likewise.
1041 (avr_address_class_type_flags): New function.
1042 (avr_address_class_type_flags_to_name): Likewise.
1043 (avr_address_class_name_to_type_flags): Likewise.
1044 (avr_gdbarch_init): Set address_class_type_flags,
1045 address_class_type_flags_to_name and
1046 address_class_name_to_type_flags.
1047
57745c90
PA
10482014-07-15 Pedro Alves <palves@redhat.com>
1049
1050 * linux-nat.c (kill_callback): Save errno and work with saved
1051 copy.
1052
2d40be18
SM
10532014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1054
1055 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1056
572f6555
EBM
10572014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1058
1059 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1060 breakpoint support correctly.
1061
cc1c52ad
PA
10622014-07-14 Pedro Alves <palves@redhat.com>
1063
1064 * utils.c (prompt_for_continue): Call target_terminal_ours.
1065
1e973570
PA
10662014-07-14 Pedro Alves <palves@redhat.com>
1067
1068 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1069 catch_errors. Don't re-enable stdin or notify observers where,
1070 and rethrow error.
1071 (fetch_inferior_event_wrapper): Delete.
1072
93d6eb10
PA
10732014-07-14 Pedro Alves <palves@redhat.com>
1074
1075 PR gdb/17072
1076 * top.c: Include "inf-loop.h".
1077 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1078 field.
1079 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1080 was async before.
1081 (gdb_readline_wrapper): Store whether the target is async, and
1082 make it sync.
1083
0017922d
PA
10842014-07-14 Pedro Alves <palves@redhat.com>
1085
1086 PR gdb/17072
1087 * top.c (gdb_readline_wrapper_line): Tweak comment.
1088 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1089 the input handler callback.
1090
94696ad3
PA
10912014-07-14 Pedro Alves <palves@redhat.com>
1092
1093 PR gdb/17072
1094 * main.c: Include event-top.h.
1095 (handle_command_errors): New function.
1096 (catch_command_errors, catch_command_errors_const): Use it.
1097
9d1e69a2
PA
10982014-07-14 Pedro Alves <palves@redhat.com>
1099
1100 * exceptions.c (catch_command_errors, catch_command_errors_const):
1101 Moved to main.c.
1102 * exceptions.h (catch_command_errors_ftype)
1103 (catch_command_errors_const_ftype): Moved to main.c.
1104 (catch_command_errors, catch_command_errors_const): Delete
1105 declarations.
1106 * main.c (catch_command_errors_ftype)
1107 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1108 (catch_command_errors, catch_command_errors_const)): Moved here
1109 from exceptions.c and make static.
1110
feefc97b
PA
11112014-07-14 Pedro Alves <palves@redhat.com>
1112
1113 * exceptions.c (print_any_exception): Delete.
1114 (catch_exceptions_with_msg): Use exception_print instead of
1115 print_any_exception.
1116 (catch_errors): Use exception_fprintf instead of
1117 print_any_exception.
1118 (catch_command_errors, catch_command_errors_const): Use
1119 exception_print instead of print_any_exception.
1120
c933f875
PA
11212014-07-14 Pedro Alves <palves@redhat.com>
1122
1123 * infcall.c (run_inferior_call): Set 'sync_execution' while
1124 running the inferior call.
1125
feb6f816
PA
11262014-07-14 Pedro Alves <palves@redhat.com>
1127
1128 * value.c (value_contents_equal): Delete function.
1129 * value.h (value_contents_equal): Delete declaration.
1130
d98b7a16
TT
11312014-07-14 Tom Tromey <tromey@redhat.com>
1132
1133 PR exp/17106:
1134 * gdbtypes.c (is_dynamic_type_internal): New function, from
1135 is_dynamic_type.
1136 (is_dynamic_type): Rewrite.
1137 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1138 (resolve_dynamic_struct): Likewise.
1139 (resolve_dynamic_type_internal): New function, from
1140 resolve_dynamic_type.
1141 (resolve_dynamic_type): Rewrite.
1142
548740d6
TT
11432014-07-14 Tom Tromey <tromey@redhat.com>
1144
1145 * target.c (target_require_runnable): Also check record_stratum.
1146 Update comment.
1147
808f7ab1
YQ
11482014-07-11 Yao Qi <yao@codesourcery.com>
1149
1150 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1151 thumb_instruction_restores_sp return true.
1152
540314bd
YQ
11532014-07-11 Yao Qi <yao@codesourcery.com>
1154
1155 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1156 (thumb_in_function_epilogue_p): Call
1157 thumb_instruction_restores_sp.
1158
1db01f22
YQ
11592014-07-11 Yao Qi <yao@codesourcery.com>
1160
1161 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1162 'add sp, #imm'.
1163 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1164
3116063b
GB
11652014-07-11 Gary Benson <gbenson@redhat.com>
1166
1167 * amd64-linux-nat.c (gdbcore.h): Remove include.
1168 (regset.h): Likewise.
1169 (nat/linux-btrace.h): Likewise.
1170 (btrace.h): Likewise.
1171 (gdb_assert.h): Likewise.
1172 (string.h): Likewise.
1173 (sys/uio.h): Likewise.
1174 (sys/debugreg.h): Likewise.
1175 (sys/syscall.h): Likewise.
1176 (sys/procfs.h): Likewise.
1177 (sys/user.h): Likewise.
1178 (asm/ptrace.h): Likewise.
1179 (i386-nat.h): Likewise.
1180 * i386-linux-nat.c (i386-nat.h): Likewise.
1181 (regset.h): Likewise.
1182 (target.h): Likewise.
1183 (linux-nat.h): Likewise.
1184 (nat/linux-btrace.h): Likewise.
1185 (btrace.h): Likewise.
1186 (gdb_assert.h): Likewise.
1187 (string.h): Likewise.
1188 (sys/uio.h): Likewise.
1189 (sys/user.h): Likewise.
1190 (sys/procfs.h): Likewise.
1191 (sys/reg.h): Likewise.
1192 (sys/debugreg.h): Likewise.
1193 (ORIG_EAX): Remove definition.
1194
040baaf6
GB
11952014-07-11 Gary Benson <gbenson@redhat.com>
1196
1197 * i386-linux-nat.h: New file.
1198 * x86-linux-nat.h: Likewise.
1199 * x86-linux-nat.c: Likewise.
1200 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1201 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1202 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1203 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1204 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1205 (PTRACE_SETREGSET): Likewise.
1206 (arch_lwp_info): Now in x86-linux-nat.c.
1207 (have_ptrace_getregset): Now in x86-linux-nat.h.
1208 (x86_linux_dr_get): Now in x86-linux-nat.c.
1209 (x86_linux_dr_set): Likewise.
1210 (x86_linux_dr_get_addr): Likewise.
1211 (x86_linux_dr_get_control): Likewise.
1212 (x86_linux_dr_get_status): Likewise.
1213 (update_debug_registers_callback): Likewise.
1214 (x86_linux_dr_set_control): Likewise.
1215 (x86_linux_dr_set_addr): Likewise.
1216 (x86_linux_prepare_to_resume): Likewise.
1217 (x86_linux_new_thread): Likewise.
1218 (x86_linux_new_fork): Likewise.
1219 (x86_linux_get_thread_area): Likewise.
1220 (super_post_startup_inferior): Likewise.
1221 (x86_linux_child_post_startup_inferior): Likewise.
1222 (AMD64_LINUX_USER64_CS): Likewise.
1223 (AMD64_LINUX_X32_DS): Likewise.
1224 (x86_linux_read_description): Likewise.
1225 (x86_linux_enable_btrace): Likewise.
1226 (x86_linux_disable_btrace): Likewise.
1227 (x86_linux_teardown_btrace): Likewise.
1228 (x86_linux_read_btrace): Likewise.
1229 (x86_linux_create_target): Likewise.
1230 (x86_linux_add_target): Likewise.
1231 * i386-linux-nat.c (x86-linux-nat.h): New include.
1232 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1233 (PTRACE_SETREGSET): Likewise.
1234 (arch_lwp_info): Now in x86-linux-nat.c.
1235 (have_ptrace_getregset): Now in x86-linux-nat.h.
1236 (x86_linux_dr_get): Now in x86-linux-nat.c.
1237 (x86_linux_dr_set): Likewise.
1238 (x86_linux_dr_get_addr): Likewise.
1239 (x86_linux_dr_get_control): Likewise.
1240 (x86_linux_dr_get_status): Likewise.
1241 (update_debug_registers_callback): Likewise.
1242 (x86_linux_dr_set_control): Likewise.
1243 (x86_linux_dr_set_addr): Likewise.
1244 (x86_linux_prepare_to_resume): Likewise.
1245 (x86_linux_new_thread): Likewise.
1246 (x86_linux_new_fork): Likewise.
1247 (x86_linux_get_thread_area): Likewise.
1248 (super_post_startup_inferior): Likewise.
1249 (x86_linux_child_post_startup_inferior): Likewise.
1250 (AMD64_LINUX_USER64_CS): Likewise.
1251 (AMD64_LINUX_X32_DS): Likewise.
1252 (x86_linux_read_description): Likewise.
1253 (x86_linux_enable_btrace): Likewise.
1254 (x86_linux_disable_btrace): Likewise.
1255 (x86_linux_teardown_btrace): Likewise.
1256 (x86_linux_read_btrace): Likewise.
1257 (x86_linux_create_target): Likewise.
1258 (x86_linux_add_target): Likewise.
1259
1aa7e42c
GB
12602014-07-11 Gary Benson <gbenson@redhat.com>
1261
1262 * amd64-linux-nat.c: Comment and whitespace changes.
1263 * i386-linux-nat.c: Comment and whitespace changes.
1264
c1e246a0
GB
12652014-07-11 Gary Benson <gbenson@redhat.com>
1266
1267 * amd64-linux-nat.c (x86_linux_create_target): New function.
1268 (x86_linux_add_target): Likewise.
1269 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1270 * i386-linux-nat.c (x86_linux_create_target): New function.
1271 (x86_linux_add_target): Likewise.
1272 (_initialize_i386_linux_nat): Delegate to the above new functions.
1273
8c420b8d
GB
12742014-07-11 Gary Benson <gbenson@redhat.com>
1275
1276 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1277 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1278 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1279 (ps_get_thread_area): Delegate to the above.
1280
cb1da100
GB
12812014-07-11 Gary Benson <gbenson@redhat.com>
1282
1283 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1284 x86_linux_read_description. All uses updated. amd64-specific
1285 code conditionalized. Conditionalized i386-specific code added.
1286 Redundant cast removed.
1287 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1288 x86_linux_read_description. All uses updated. i386-specific
1289 code conditionalized. Conditionalized amd64-specific code added.
1290 One sizeof replaced with the actual type it is describing.
1291
2acf3cd0
GB
12922014-07-11 Gary Benson <gbenson@redhat.com>
1293
1294 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1295 x86_linux_dr_get. All uses updated.
1296 (amd64_linux_dr_set): Renamed to
1297 x86_linux_dr_set. All uses updated.
1298 (amd64_linux_dr_get_addr): Renamed to
1299 x86_linux_dr_get_addr. All uses updated.
1300 (amd64_linux_dr_get_control): Renamed to
1301 x86_linux_dr_get_control. All uses updated.
1302 (amd64_linux_dr_get_status): Renamed to
1303 x86_linux_dr_get_status. All uses updated.
1304 (amd64_linux_dr_set_control): Renamed to
1305 x86_linux_dr_set_control. All uses updated.
1306 (amd64_linux_dr_set_addr): Renamed to
1307 x86_linux_dr_set_addr. All uses updated.
1308 (amd64_linux_prepare_to_resume): Renamed to
1309 x86_linux_prepare_to_resume. All uses updated.
1310 (amd64_linux_new_thread): Renamed to
1311 x86_linux_new_thread. All uses updated.
1312 (amd64_linux_new_fork): Renamed to
1313 x86_linux_new_fork. All uses updated.
1314 (amd64_linux_child_post_startup_inferior): Renamed to
1315 x86_linux_child_post_startup_inferior. All uses updated.
1316 (amd64_linux_enable_btrace): Renamed to
1317 x86_linux_enable_btrace. All uses updated.
1318 (amd64_linux_disable_btrace): Renamed to
1319 x86_linux_disable_btrace. All uses updated.
1320 (amd64_linux_teardown_btrace): Renamed to
1321 x86_linux_teardown_btrace. All uses updated.
1322 (amd64_linux_read_btrace): Renamed to
1323 x86_linux_read_btrace. All uses updated.
1324 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1325 x86_linux_dr_get. All uses updated.
1326 (i386_linux_dr_set): Renamed to
1327 x86_linux_dr_set. All uses updated.
1328 (i386_linux_dr_get_addr): Renamed to
1329 x86_linux_dr_get_addr. All uses updated.
1330 (i386_linux_dr_get_control): Renamed to
1331 x86_linux_dr_get_control. All uses updated.
1332 (i386_linux_dr_get_status): Renamed to
1333 x86_linux_dr_get_status. All uses updated.
1334 (i386_linux_dr_set_control): Renamed to
1335 x86_linux_dr_set_control. All uses updated.
1336 (i386_linux_dr_set_addr): Renamed to
1337 x86_linux_dr_set_addr. All uses updated.
1338 (i386_linux_prepare_to_resume): Renamed to
1339 x86_linux_prepare_to_resume. All uses updated.
1340 (i386_linux_new_thread): Renamed to
1341 x86_linux_new_thread. All uses updated.
1342 (i386_linux_new_fork): Renamed to
1343 x86_linux_new_fork. All uses updated.
1344 (i386_linux_child_post_startup_inferior): Renamed to
1345 x86_linux_child_post_startup_inferior. All uses updated.
1346 (i386_linux_enable_btrace): Renamed to
1347 x86_linux_enable_btrace. All uses updated.
1348 (i386_linux_disable_btrace): Renamed to
1349 x86_linux_disable_btrace. All uses updated.
1350 (i386_linux_teardown_btrace): Renamed to
1351 x86_linux_teardown_btrace. All uses updated.
1352 (i386_linux_read_btrace): Renamed to
1353 x86_linux_read_btrace. All uses updated.
1354
b9c1d481
AS
13552014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1356
1357 * remote.c (extended_remote_post_attach): New function.
1358 (init_extended_remote_ops): Install it as to_post_attach method.
1359
7180e04a
PA
13602014-07-09 Pedro Alves <palves@redhat.com>
1361
1362 * infcmd.c (attach_command_post_wait): Don't call
1363 target_terminal_inferior here.
1364 (attach_command): Call it here instead.
1365
9a9a7608
AB
13662014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1369 field.
1370 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1371 from varobj.c, with additional checks.
1372 (c_varobj_ops): Fill in is_path_expr_parent field.
1373 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1374 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1375 field.
1376 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1377 ops method.
1378 (varobj_default_is_path_expr_parent): New function.
1379 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1380 (varobj_default_is_path_expr_parent): Declare new function.
1381
1f267ae3
MM
13822014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1383
1384 * infcmd.c (finish_backward): Turn internal error into normal error.
1385
b2ee242b
PA
13862014-07-07 Pedro Alves <palves@redhat.com>
1387
8a869bca 1388 PR gdb/17096
b2ee242b
PA
1389 * remote.c (async_handle_remote_sigint)
1390 (async_handle_remote_sigint_twice): Call
1391 gdb_call_async_signal_handler instead of
1392 mark_async_signal_handler.
1393
38e229b2
TT
13942014-07-07 Tom Tromey <tromey@redhat.com>
1395
1396 * target-delegates.c: Rebuild.
1397 * target.c (target_info_record): Remove.
1398 * record.c (info_record_command): Unconditionally call
1399 to_info_record.
1400 * target.h (struct target_ops) <to_info_record>: Use
1401 TARGET_DEFAULT_IGNORE.
1402 (target_info_record): Remove.
1403
f0f9ff95
TT
14042014-07-07 Tom Tromey <tromey@redhat.com>
1405
1406 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1407 TARGET_DEFAULT_NORETURN.
1408 * target.c (generic_tls_error): New function.
1409 (target_translate_tls_address): Don't search target stack.
1410 * target-delegates.c: Rebuild.
1411 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1412 stack.
1413 * linux-thread-db.c (thread_db_get_thread_local_address):
1414 Unconditionally call beneath target.
1415
4a5be5ee
MK
14162014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1417
1418 * cli/cli-logging.c (pop_output_files): Assign targerr to
1419 gdb_stdtargerr.
1420
92c3b204
AB
14212014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1422
1423 * MAINTAINERS (Write After Approval): Update my email address.
1424
9b11e3a7
GB
14252014-07-02 Gary Benson <gbenson@redhat.com>
1426
1427 * proc-service.c (ps_xfer_memory): Update comment.
1428 (ps_pstop): Remove unused function.
1429 (ps_pcontinue): Likewise.
1430 (ps_lstop): Likewise.
1431 (ps_lcontinue): Likewise.
1432 (ps_lgetxregsize): Likewise.
1433 (ps_lgetxregs): Likewise.
1434 (ps_lsetxregs): Likewise.
1435 (ps_plog): Likewise.
1436 (ps_ptread): Likewise.
1437 (ps_ptwrite): Likewise.
1438
cf363f18
MW
14392014-07-01 Mark Wielaard <mjw@redhat.com>
1440
1441 * dwarf2read.c (add_array_cv_type): New function.
1442 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1443 (read_tag_volatile_type): Likewise.
1444
82ae6c8d
TT
14452014-07-01 Tom Tromey <tromey@redhat.com>
1446
1447 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1448 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1449 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1450 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1451 * command.h (cmd_cfunc_ftype): Move earlier.
1452 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1453 (add_com, add_info): Use cmd_cfunc_ftype.
1454
96142726
TT
14552014-06-30 Tom Tromey <tromey@redhat.com>
1456
1457 * symtab.c (operator_chars): Make parameters and return type
1458 const.
1459 (file_matches): Make "files" const.
1460 (struct search_symbols_data) <files>: Now const.
1461 (search_symbols): Make "regexp" and "files" parameters const.
1462 Update.
1463 (symtab_symbol_info): Remove cast.
1464 (rbreak_command): Update.
1465 * symtab.h (search_symbols): Update.
1466
b67a2c6f
YQ
14672014-06-27 Yao Qi <yao@codesourcery.com>
1468
1469 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1470 Change parameter type to 'struct thread_info *'. Caller
1471 updated.
1472 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1473 Update declaration.
1474 * dummy-frame.c (struct dummy_frame_id): New.
1475 (dummy_frame_id_eq): New function.
1476 (struct dummy_frame) <id>: Change its type to 'struct
1477 dummy_frame_id'.
1478 (dummy_frame_push): Add parameter ptid and save it in
1479 dummy_frame_id.
1480 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1481 inferior_ptid.
1482 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1483 to inferior_ptid.
1484 (lookup_dummy_frame): Change parameter type to 'struct
1485 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1486 instead of frame_id_eq.
1487 (dummy_frame_pop): Add parameter ptid. Callers updated.
1488 Update comments. Compose dummy_frame_id and pass it to
1489 lookup_dummy_frame.
1490 (dummy_frame_discard): Add parameter ptid.
1491 (dummy_frame_sniffer): Compose dummy_frame_id and call
1492 dummy_frame_id_eq instead of frame_id_eq.
1493 (fprint_dummy_frames): Print ptid.
1494 * dummy-frame.h: Remove comments.
1495 (dummy_frame_push): Add ptid in declaration.
1496 (dummy_frame_pop, dummy_frame_discard): Likewise.
1497
5b10184c
TT
14982014-06-26 Tom Tromey <tromey@redhat.com>
1499
1500 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1501 * command.h (error_no_arg): Update.
1502
06900326
TT
15032014-06-26 Tom Tromey <tromey@redhat.com>
1504
1505 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1506 (do_show_command): Make "arg" const.
1507 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1508
c2bcbb1d
TT
15092014-06-26 Tom Tromey <tromey@redhat.com>
1510
1511 * record-full.c (record_full_get_bookmark): Make "args" const.
1512 (record_full_goto_bookmark): Make "raw_bookmark" const.
1513 * record.c (record_goto): New function.
1514 (cmd_record_goto): Use it. Now static.
1515 * record.h (record_goto): Declare.
1516 (cmd_record_goto): Remove declaration.
1517 * target-delegates.c: Rebuild.
1518 * target.h (struct target_ops) <to_get_bookmark,
1519 to_goto_bookmark>: Make parameter const.
1520
9cbe5fff
TT
15212014-06-26 Tom Tromey <tromey@redhat.com>
1522
1523 * defs.h (generic_load): Update.
1524 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1525 * monitor.c (monitor_load): Make "args" const.
1526 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1527 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1528 const.
1529 (mips_load): Make "file" const.
1530 * remote-sim.c (gdbsim_load): Make "args" const.
1531 * remote.c (remote_load): Make "name" const.
1532 * symfile.c (generic_load): Make "args" const.
1533 * target-delegates.c: Rebuild.
1534 * target.c (target_load): Make "arg" const.
1535 (debug_to_load): Make "args" const.
1536 * target.h (struct target_ops) <to_load>: Make parameter const.
1537 (target_load): Update.
1538
34a68019
TT
15392014-06-26 Tom Tromey <tromey@redhat.com>
1540
1541 PR symtab/16902:
1542 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1543 (dwarf2_physname, read_partial_die)
1544 (guess_partial_die_structure_name, fixup_partial_die)
1545 (guess_full_die_structure_name, anonymous_struct_prefix)
1546 (dwarf2_name): Use per-BFD obstack.
1547
efc889c1
YQ
15482014-06-26 Yao Qi <yao@codesourcery.com>
1549
1550 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1551 dummyframe and this_id into inner block below.
1552
4395285e
YQ
15532014-06-26 Yao Qi <yao@codesourcery.com>
1554
1555 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1556 with "signal_pass[0]" in the initialization of signal_pass.
1557
aef92902
MM
15582014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1559
1560 * record-btrace.c (record_btrace_generating_corefile)
1561 (record_btrace_prepare_to_generate_core)
1562 (record_btrace_done_generating_core): New.
1563 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1564 (record_btrace_store_registers, record_btrace_prepare_to_store):
1565 Forward request when generating a core file.
1566 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1567 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1568 to_done_generating_core.
1569
5fff78c4
MM
15702014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1571
1572 * target.h (target_ops) <to_prepare_to_generate_core>
1573 <to_done_generating_core>: New.
1574 (target_prepare_to_generate_core, target_done_generating_core): New.
1575 * target.c (target_prepare_to_generate_core)
1576 (target_done_generating_core): New.
1577 * target-delegates.c: Regenerate.
1578 * gcore.c: (write_gcore_file): Rename to ...
1579 (write_gcore_file_1): ...this.
1580 (write_gcore_file): Call target_prepare_to_generate_core
1581 and target_done_generating_core.
1582
1d1f1ccb
MM
15832014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1584
1585 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1586 * gcore.c (write_gcore_file): Free memory returned from
1587 make_corefile_notes.
1588 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1589 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1590
3343ef86
YQ
15912014-06-24 Yao Qi <yao@codesourcery.com>
1592
1593 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1594 (arm_linux_init_abi): Set skip_trampoline_code with
1595 gdbarch_skip_trampoline_code instead of
1596 find_solib_trampoline_target.
1597
18d18ac8
YQ
15982014-06-24 Yao Qi <yao@codesourcery.com>
1599
1600 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1601 arm_skip_bx_reg returns non-zero.
1602
80d8d390
YQ
16032014-06-24 Yao Qi <yao@codesourcery.com>
1604
1605 * arm-tdep.c (arm_skip_bx_reg): New function.
1606 (arm_skip_stub): Call arm_skip_bx_reg.
1607
6a18a01c
DB
16082014-06-23 Don Breazeal <donb@codesourcery.com>
1609
1610 * MAINTAINERS: Add myself as write-after-approval maintainer.
1611
8e9db26e
PA
16122014-06-23 Pedro Alves <palves@redhat.com>
1613
1614 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1615 DR_CONTROL before setting DR0..DR3.
1616 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1617 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1618 bits of DR_CONTROL related to the debug register slot being
1619 disabled. If all slots are vacant, clear local slowdown as well,
1620 and assert DR_CONTROL is 0.
1621
70afc5b7
SC
16222014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1623
1624 * python/lib/gdb/command/xmethods.py
1625 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1626 current progspace only if the string "progspace" matches LOCUS_RE.
1627
840ed64d
JK
16282014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1629
1630 Fix --with-system-readline with readline-6.3 patch 5.
1631 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1632 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1633 types.
1634
26f2dc30
TT
16352014-06-20 Tom Tromey <tromey@redhat.com>
1636
1637 * dwarf2read.c (dw2_get_real_path): Use correct type in
1638 OBSTACK_CALLOC.
1639 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1640
125f8a3d
GB
16412014-06-20 Gary Benson <gbenson@redhat.com>
1642
1643 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1644 * common/glibc_thread_db.h: Likewise.
1645 * common/i386-cpuid.h: Likewise.
1646 * common/i386-gcc-cpuid.h: Likewise.
1647 * common/linux-btrace.h: Likewise.
1648 * common/linux-osdata.h: Likewise.
1649 * common/linux-procfs.h: Likewise.
1650 * common/linux-ptrace.h: Likewise.
1651 * common/mips-linux-watch.h: Likewise.
1652 * common/linux-btrace.c: Moved to nat.
1653 * common/linux-osdata.c: Likewise.
1654 * common/linux-procfs.c: Likewise.
1655 * common/linux-ptrace.c: Likewise.
1656 * common/mips-linux-watch.c: Likewise.
1657 * nat/gdb_thread_db.h: Moved from common.
1658 * nat/glibc_thread_db.h: Likewise.
1659 * nat/i386-cpuid.h: Likewise.
1660 * nat/i386-gcc-cpuid.h: Likewise.
1661 * nat/linux-btrace.c: Likewise.
1662 * nat/linux-btrace.h: Likewise.
1663 * nat/linux-osdata.c: Likewise.
1664 * nat/linux-osdata.h: Likewise.
1665 * nat/linux-procfs.c: Likewise.
1666 * nat/linux-procfs.h: Likewise.
1667 * nat/linux-ptrace.c: Likewise.
1668 * nat/linux-ptrace.h: Likewise.
1669 * nat/mips-linux-watch.c: Likewise.
1670 * nat/mips-linux-watch.h: Likewise.
1671 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1672 (object file files): Reordered.
1673 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1674 of glibc_thread_db.h.
1675
42995dbd
GB
16762014-06-20 Gary Benson <gbenson@redhat.com>
1677
1678 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1679 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1680 (i386_dr_low): Likewise.
1681 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1682 (i386_dr_low_set_addr): Likewise.
1683 (i386_dr_low_get_addr): Likewise.
1684 (i386_dr_low_can_set_control): Likewise.
1685 (i386_dr_low_set_control): Likewise.
1686 (i386_dr_low_get_control): Likewise.
1687 (i386_dr_low_get_status): Likewise.
1688 (i386_get_debug_register_length): Likewise.
1689 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1690 (i386_dr_low): Likewise.
1691 * nat/i386-dregs.c (i386-low.h): Remove include.
1692 (i386-nat.h): Likewise.
1693 (nat/i386-dregs.h): New include.
1694 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1695 (i386_dr_low_set_addr): Likewise.
1696 (i386_dr_low_get_addr): Likewise.
1697 (i386_dr_low_can_set_control): Likewise.
1698 (i386_dr_low_set_control): Likewise.
1699 (i386_dr_low_get_control): Likewise.
1700 (i386_dr_low_get_status): Likewise.
1701 (i386_get_debug_register_length): Likewise.
1702 (debug_hw_points): Likewise.
1703
3ed9baed
IB
17042014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1705
1706 * Makefile.in (SFILES): Add d-exp.y.
1707 (YYFILES): Add d-exp.c.
1708 (YYOBJ): Add d-exp.o.
1709 (local-maintainer-clean): Delete d-exp.c.
1710 * d-exp.y: New file.
1711 * d-lang.h (d_parse): New declaration.
1712 (d_error): New declaration.
1713 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1714 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1715 PREC_ORDER operators.
1716 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1717
78c164b0
YQ
17182014-06-19 Yao Qi <yao@codesourcery.com>
1719
1720 * gdbthread.h (any_running): Remove the declaration.
1721 * thread.c (any_running): Remove.
1722
f6e29b6e
YQ
17232014-06-19 Yao Qi <yao@codesourcery.com>
1724
1725 * gdbthread.h (struct thread_info) <state>: Change its type to
1726 'enum thread_state'. Update comments.
1727
034f788c
PA
17282014-06-19 Pedro Alves <palves@redhat.com>
1729
1730 * gdbthread.h (ALL_THREADS): Delete.
1731 (ALL_NON_EXITED_THREADS): New macro.
1732 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1733 instead of ALL_THREADS.
1734 * infrun.c (find_thread_needs_step_over)
1735 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1736 instead of ALL_THREADS.
1737 * record-btrace.c (record_btrace_open)
1738 (record_btrace_stop_recording, record_btrace_close)
1739 (record_btrace_is_replaying, record_btrace_resume)
1740 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1741 * remote.c (append_pending_thread_resumptions): Likewise.
1742 * thread.c (thread_apply_all_command): Likewise.
1743
46e33252
GB
17442014-06-19 Gary Benson <gbenson@redhat.com>
1745
1746 * i386-nat.c (i386_stopped_by_watchpoint):
1747 Use i386_dr_stopped_by_watchpoint.
1748 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1749 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1750
3a8ee006
GB
17512014-06-19 Gary Benson <gbenson@redhat.com>
1752
1753 * nat/i386-dregs.c: New file.
1754 * Makefile.in (i386-dregs.o): New rule.
1755 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1756 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1757 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1758 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1759 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1760 * config/i386/go32.mh (NATDEPFILES): Likewise.
1761 * config/i386/linux.mh (NATDEPFILES): Likewise.
1762 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1763 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1764 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1765 * i386-nat.h (debug_hw_points): New declaration.
1766 * i386-nat.c (breakpoint.h): Remove include.
1767 (command.h): Likewise.
1768 (target.h): Likewise.
1769 (gdb_assert.h): Likewise.
1770 (debug_hw_points): Made nonstatic.
1771 (debug_printf): Now in i386-dregs.c.
1772 (TARGET_HAS_DR_LEN_8): Likewise.
1773 (DR_CONTROL_SHIFT): Likewise.
1774 (DR_CONTROL_SIZE): Likewise.
1775 (DR_RW_EXECUTE): Likewise.
1776 (DR_RW_WRITE): Likewise.
1777 (DR_RW_READ): Likewise.
1778 (DR_RW_IORW): Likewise.
1779 (DR_LEN_1): Likewise.
1780 (DR_LEN_2): Likewise.
1781 (DR_LEN_4): Likewise.
1782 (DR_LEN_8): Likewise.
1783 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1784 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1785 (DR_ENABLE_SIZE): Likewise.
1786 (DR_LOCAL_SLOWDOWN): Likewise.
1787 (DR_GLOBAL_SLOWDOWN): Likewise.
1788 (DR_CONTROL_RESERVED): Likewise.
1789 (I386_DR_CONTROL_MASK): Likewise.
1790 (I386_DR_VACANT): Likewise.
1791 (I386_DR_LOCAL_ENABLE): Likewise.
1792 (I386_DR_GLOBAL_ENABLE): Likewise.
1793 (I386_DR_DISABLE): Likewise.
1794 (I386_DR_SET_RW_LEN): Likewise.
1795 (I386_DR_GET_RW_LEN): Likewise.
1796 (I386_DR_WATCH_HIT): Likewise.
1797 (i386_wp_op_t): Likewise.
1798 (i386_show_dr): Likewise.
1799 (i386_length_and_rw_bits): Likewise.
1800 (i386_insert_aligned_watchpoint): Likewise.
1801 (i386_remove_aligned_watchpoint): Likewise.
1802 (i386_handle_nonaligned_watchpoint): Likewise.
1803 (i386_update_inferior_debug_regs): Likewise.
1804 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1805 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1806 (i386_region_ok_for_watchpoint):
1807 Use i386_dr_region_ok_for_watchpoint.
1808 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1809
322a8e06
GB
18102014-06-19 Gary Benson <gbenson@redhat.com>
1811
1812 * i386-nat.c (i386_insert_hw_breakpoint): Use
1813 i386_insert_watchpoint.
1814 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1815
8f26655c
GB
18162014-06-19 Gary Benson <gbenson@redhat.com>
1817
1818 * i386-nat.c (i386_dr_show): Renamed to
1819 i386_show_dr and made static. All uses updated.
1820 (i386_dr_length_and_rw_bits): Renamed to
1821 i386_length_and_rw_bits and made static.
1822 All uses updated.
1823 (i386_dr_insert_aligned_watchpoint): Renamed to
1824 i386_insert_aligned_watchpoint and made static.
1825 All uses updated.
1826 (i386_dr_remove_aligned_watchpoint): Renamed to
1827 i386_remove_aligned_watchpoint and made static.
1828 All uses updated.
1829 (i386_dr_update_inferior_debug_regs): Renamed to
1830 i386_update_inferior_debug_regs and made static.
1831 All uses updated.
1832 * nat/i386-dregs.h (i386_dr_show): Removed.
1833 (i386_dr_length_and_rw_bits): Likewise.
1834 (i386_dr_insert_aligned_watchpoint): Likewise.
1835 (i386_dr_remove_aligned_watchpoint): Likewise.
1836 (i386_dr_update_inferior_debug_regs): Likewise.
1837
992c7d70
GB
18382014-06-19 Gary Benson <gbenson@redhat.com>
1839
1840 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1841 * configure: Regenerate.
1842 * config.in: Likewise.
1843 * main.c (signal.h): New include.
1844 (setup_alternate_signal_stack): New function.
1845 (captured_main): Call the above.
1846 * cp-support.c (signal.h): New include.
1847 (catch_demangler_crashes): New flag.
1848 (SIGJMP_BUF): New define.
1849 (SIGSETJMP): Likewise.
1850 (SIGLONGJMP): Likewise.
1851 (gdb_demangle_jmp_buf): New static global.
1852 (gdb_demangle_attempt_core_dump): Likewise.
1853 (gdb_demangle_signal_handler): New function.
1854 (gdb_demangle): If catch_demangler_crashes is set, install the
1855 above signal handler before calling bfd_demangle, and restore
1856 the original signal handler afterwards. Display the offending
1857 symbol and call demangler_warning the first time a segmentation
1858 fault is caught.
1859 (_initialize_cp_support): New maint set/show command.
1860
eae7090b
GB
18612014-06-19 Gary Benson <gbenson@redhat.com>
1862
1863 * utils.h (resource_limit_kind): New enum.
1864 (can_dump_core): New declaration.
1865 (warn_cant_dump_core): Likewise.
1866 (dump_core): Likewise.
1867 * utils.c (dump_core): Made nonstatic. Added new
1868 parameter "limit_kind".
1869 (can_dump_core): Made nonstatic. Moved printing code to...
1870 (warn_cant_dump_core): New function.
1871 (can_dump_core_warn): Likewise.
1872 (internal_vproblem): Replace calls to can_dump_core with
1873 calls to can_dump_core_warn. Supply new argument to each.
1874
57fcfb1b
GB
18752014-06-19 Gary Benson <gbenson@redhat.com>
1876
1877 * utils.h (demangler_vwarning): New declaration.
1878 (demangler_warning): Likewise.
1879 * utils.c (struct internal_problem)
1880 <user_settable_should_quit>: New field.
1881 <user_settable_should_dump_core>: Likewise
1882 (internal_error_problem): Add values for above new fields.
1883 (internal_warning_problem): Likewise.
1884 (demangler_warning_problem): New static global.
1885 (demangler_vwarning): New function.
1886 (demangler_warning): Likewise.
1887 (add_internal_problem_command): Selectively add commands.
1888 (_initialize_utils): New internal problem command.
1889 * maint.c (maintenance_demangler_warning): New function.
1890 (_initialize_maint_cmds): New command.
1891
17a40b44
TT
18922014-06-18 Tom Tromey <tromey@redhat.com>
1893
1894 * f-valprint.c (info_common_command_for_block): Update.
1895 * symtab.h (struct general_symbol_info) <common_block>: Now
1896 const.
1897
346d1dfe
TT
18982014-06-18 Tom Tromey <tromey@redhat.com>
1899
1900 * symtab.h (struct symtab) <blockvector>: Now const.
1901 * ada-lang.c (ada_add_global_exceptions): Update.
1902 * buildsym.c (augment_type_symtab): Update.
1903 * dwarf2read.c (dw2_lookup_symbol): Update.
1904 * jit.c (finalize_symtab): Update.
1905 * jv-lang.c (add_class_symtab_symbol): Update.
1906 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1907 Update.
1908 * objfiles.c (objfile_relocate1): Update.
1909 * psymtab.c (lookup_symbol_aux_psymtabs)
1910 (maintenance_check_psymtabs): Update.
1911 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1912 Update.
1913 * spu-tdep.c (spu_catch_start): Update.
1914 * symmisc.c (dump_symtab_1): Update.
1915 * symtab.c (lookup_global_symbol_from_objfile)
1916 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1917 (basic_lookup_transparent_type_quick)
1918 (basic_lookup_transparent_type, find_pc_sect_symtab)
1919 (find_pc_sect_line, search_symbols): Update.
1920 * block.c (find_block_in_blockvector): Make "bl" const.
1921 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1922 const.
1923 (blockvector_contains_pc): Make "bv" const.
1924 (block_for_pc_sect): Update.
1925 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1926 (blockvector_contains_pc): Update.
1927 * breakpoint.c (resolve_sal_pc): Update.
1928 * inline-frame.c (block_starting_point_at): Update.
1929
1834676b
TT
19302014-06-18 Tom Tromey <tromey@redhat.com>
1931
1932 * completer.c (complete_line): Make "line_buffer" const.
1933 * completer.h (complete_line): Update.
1934
ac1a991b
TT
19352014-06-18 Tom Tromey <tromey@redhat.com>
1936
1937 * symtab.c (add_macro_name): Remove unneeded cast.
1938
5bc98e52
TT
19392014-06-18 Tom Tromey <tromey@redhat.com>
1940
1941 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1942 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1943
8236def8
TT
19442014-06-18 Tom Tromey <tromey@redhat.com>
1945
1946 * probe.c (info_probes_for_ops): Make "arg" const.
1947 * probe.h (info_probes_for_ops): Update.
1948
3977b71f
TT
19492014-06-18 Tom Tromey <tromey@redhat.com>
1950
1951 * varobj.c (varobj_create): Update.
1952 * valops.c (value_of_this): Update.
1953 * tracepoint.c (add_local_symbols, scope_info): Update.
1954 * symtab.h (struct general_symbol_info) <block>: Now const.
1955 * symtab.c (skip_prologue_sal)
1956 (default_make_symbol_completion_list_break_on)
1957 (skip_prologue_using_sal): Update.
1958 * stack.h (iterate_over_block_locals)
1959 (iterate_over_block_local_vars): Update.
1960 * stack.c (print_frame_args): Update.
1961 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1962 parameter const.
1963 (get_selected_block): Make return type const.
1964 * python/py-frame.c (frapy_block): Update.
1965 * python/py-block.c (gdbpy_block_for_pc): Update.
1966 * p-exp.y (%union) <bval>: Now const.
1967 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1968 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1969 * m2-exp.y (%union) <bval>: Now const.
1970 * linespec.c (get_current_search_block): Make return type const.
1971 (create_sals_line_offset, find_label_symbols): Update.
1972 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1973 Update.
1974 (block_starting_point_at): Make "block" const.
1975 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1976 (check_exception_resume): Update.
1977 * guile/scm-frame.c (gdbscm_frame_block): Update.
1978 * guile/scm-block.c (gdbscm_lookup_block): Update.
1979 * frame.h (get_frame_block): Update.
1980 (get_selected_block): Make return type const.
1981 * frame.c (frame_id_inner): Update.
1982 * f-valprint.c (info_common_command_for_block)
1983 (info_common_command): Update.
1984 * dwarf2loc.c (dwarf2_find_location_expression)
1985 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1986 (locexpr_describe_location_piece): Update.
1987 * c-exp.y (%union) <bval>: Now const.
1988 * breakpoint.c (resolve_sal_pc): Update.
1989 * blockframe.c (get_frame_block):Make return type const.
1990 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1991 (block_innermost_frame): Update.
1992 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1993 (block_for_pc, block_for_pc_sect): Update.
1994 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1995 'pblock' const.
1996 (block_for_pc_sect, block_for_pc): Make return type const.
1997 * ax-gdb.c (gen_expr): Update.
1998 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1999 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2000 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2001 (ada_read_var_value): Update.
2002 * ada-exp.y (struct name_info) <block>: Now const.
2003 (%union): Likewise.
2004 (block_lookup): Constify.
2005
b9228891
GB
20062014-06-18 Gary Benson <gbenson@redhat.com>
2007
2008 * nat/i386-dregs.h: New file.
2009 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2010 * i386-nat.h (i386-dregs.h): New include.
2011 (DR_FIRSTADDR): Now in i386-dregs.h.
2012 (DR_LASTADDR): Likewise.
2013 (DR_NADDR): Likewise.
2014 (DR_STATUS): Likewise.
2015 (DR_CONTROL): Likewise.
2016 (i386_debug_reg_state): Likewise.
2017 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2018
a1aa2221
LM
20192014-06-18 Don Breazeal <donb@codesourcery.com>
2020
2021 * breakpoint.c (set_longjmp_breakpoint): Call
2022 momentary_breakpoint_from_master with additional argument.
2023 (set_longjmp_breakpoint_for_call_dummy): Call
2024 momentary_breakpoint_from_master with additional argument.
2025 (set_std_terminate_breakpoint): Call
2026 momentary_breakpoint_from_master with additional argument.
2027 (momentary_breakpoint_from_master): Add argument to function
2028 definition and use it to initialize structure member flag.
74228e77 2029 (clone_momentary_breakpoint): Call
a1aa2221
LM
2030 momentary_breakpoint_from_master with additional argument.
2031 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2032 member flags set in momentary_breakpoint_from_master.
2033
4be83cc2
GB
20342014-06-18 Gary Benson <gbenson@redhat.com>
2035
2036 * i386-nat.c (i386_show_dr): Renamed to
2037 i386_dr_show and made nonstatic. All uses updated.
2038 (i386_length_and_rw_bits): Renamed to
2039 i386_dr_length_and_rw_bits and made nonstatic.
2040 All uses updated.
2041 (i386_insert_aligned_watchpoint): Renamed to
2042 i386_dr_insert_aligned_watchpoint and made nonstatic.
2043 All uses updated.
2044 (i386_remove_aligned_watchpoint): Renamed to
2045 i386_dr_remove_aligned_watchpoint and made nonstatic.
2046 All uses updated.
2047 (i386_update_inferior_debug_regs): Renamed to
2048 i386_dr_update_inferior_debug_regs and made nonstatic.
2049 All uses updated.
2050
131aa0d4
GB
20512014-06-18 Gary Benson <gbenson@redhat.com>
2052
2053 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2054 (i386_dr_low_can_set_control): Likewise.
2055 (i386_dr_low_set_addr): Likewise.
2056 (i386_dr_low_set_control): Likewise.
2057 (i386_dr_low_get_addr): Likewise.
2058 (i386_dr_low_get_status): Likewise.
2059 (i386_dr_low_get_control): Likewise.
2060 (i386_insert_aligned_watchpoint): Use new macros.
2061 (i386_update_inferior_debug_regs): Likewise.
2062 (i386_stopped_data_address): Likewise.
2063
d9305f7f
GB
20642014-06-18 Gary Benson <gbenson@redhat.com>
2065
2066 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2067 New parameter. All uses updated.
2068
ea008da4
GB
20692014-06-18 Gary Benson <gbenson@redhat.com>
2070
2071 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2072 All uses updated.
2073
1b6d4134
GB
20742014-06-18 Gary Benson <gbenson@redhat.com>
2075
2076 * i386-nat.c (debug_printf): New macro.
2077 (i386_get_debug_register_length): Likewise.
2078 (TARGET_HAS_DR_LEN_8): Use above macro.
2079 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2080 and printf_unfiltered. Use phex to format values.
2081
9b4550ef
GB
20822014-06-18 Gary Benson <gbenson@redhat.com>
2083
2084 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2085 Make const.
2086
6e62758f
GB
20872014-06-18 Gary Benson <gbenson@redhat.com>
2088
2089 * i386-nat.c: Comment changes.
2090
51c79e94
GB
20912014-06-18 Gary Benson <gbenson@redhat.com>
2092
2093 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2094
3e11889a
GB
20952014-06-18 Gary Benson <gbenson@redhat.com>
2096
2097 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2098 (i386_insert_aligned_watchpoint): Likewise.
2099 (i386_remove_aligned_watchpoint): Likewise.
2100 (i386_handle_nonaligned_watchpoint): Likewise.
2101
fc6e2f03
GB
21022014-06-18 Gary Benson <gbenson@redhat.com>
2103
2104 * i386-nat.c: Whitespace changes.
2105
2afe7d50
SB
21062014-06-17 Samuel Bronson <naesten@gmail.com>
2107
2108 * MAINTAINERS: Update Roland McGrath's email address.
2109 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2110 Red Hat a while ago, and giving me a current address.
2afe7d50 2111
3bca49ee
TT
21122014-06-17 Tom Tromey <tromey@redhat.com>
2113
2114 * utils.h (savestring): Remove declaration.
2115
6e366df1
TT
21162014-06-17 Tom Tromey <tromey@redhat.com>
2117
2118 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2119
6be47f0c
KS
21202014-06-16 Keith Seitz <keiths@redhat.com>
2121
2122 PR mi/15863
2123 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2124 to update the varobj if inferior_ptid is null_ptid.
2125
7bc112c1
TT
21262014-06-16 Tom Tromey <tromey@redhat.com>
2127
2128 * target.h (struct target_ops) <to_info_proc>: Make parameter
2129 const.
2130 (target_info_proc): Update.
2131 * target.c (target_info_proc): Make "args" const.
2132 * procfs.c (procfs_info_proc): Update.
2133 * linux-tdep.c (linux_info_proc): Update.
2134 (linux_core_info_proc_mappings): Make "args" const.
2135 (linux_core_info_proc): Update.
2136 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2137 * gdbarch.c: Rebuild.
2138 * gdbarch.h: Rebuild.
2139 * corelow.c (core_info_proc): Update.
2140
fee354ee
TT
21412014-06-16 Tom Tromey <tromey@redhat.com>
2142
2143 * target.h (struct target_ops) <to_disconnect>: Make parameter
2144 const.
2145 (target_disconnect): Update.
2146 * target.c (target_disconnect): Make "args" const.
2147 * target-delegates.c: Rebuild.
2148 * remote.c (remote_disconnect): Update.
2149 * record.h (record_disconnect): Update.
2150 * record.c (record_disconnect): Update.
2151 * inf-child.c (inf_child_disconnect): Update.
2152
a30bf1f1
TT
21532014-06-16 Tom Tromey <tromey@redhat.com>
2154
2155 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2156 * target.c (debug_to_rcmd, default_rcmd): Update.
2157 * target-delegates.c: Rebuild.
2158 * remote.c (remote_rcmd): Update.
2159 * monitor.c (monitor_rcmd): Update.
2160
d03de421
PA
21612014-06-16 Pedro Alves <palves@redhat.com>
2162
2163 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2164 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2165 have OBJF_SHARED set.
2166 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2167 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2168 instead of OBJF_USERLOADED.
2169 * objfiles.h (OBJF_SHARED): Update comment.
2170 (userloaded_objfile_contains_address_p): Rename to ...
2171 (shared_objfile_contains_address_p): ... this, and update
2172 comments.
2173 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2174 new objfile.
2175 (remove_symbol_file_command): Skip objfiles that don't have
2176 OBJF_SHARED set.
2177
99f4262f
TT
21782014-06-16 Tom Tromey <tromey@redhat.com>
2179
2180 * minsyms.h (prim_record_minimal_symbol)
2181 (prim_record_minimal_symbol_and_info): Update comments.
2182
97d66cc6
EZ
21832014-06-14 Eli Zaretskii <eliz@gnu.org>
2184
2185 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2186 or --without-guile, according to how GDB was built.
2187
635c7e8a
TT
21882014-06-13 Tom Tromey <tromey@redhat.com>
2189
2190 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2191 to help_list.
2192 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2193 to help_list.
2194 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2195 help_list.
2196 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2197 help_list.Pass all_commands, not -1, to help_list.
2198 * cli/cli-dump.c (dump_command, append_command)
2199 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2200 (binary_dump_command, binary_append_command): Pass all_commands,
2201 not -1, to help_list.
2202 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2203 -1, to help_list.
2204 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2205 -1, to help_list.
2206 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2207 help_list.
2208 * top.c (set_history): Pass all_commands, not -1, to help_list.
2209 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2210 all_commands, not -1, to help_list.
2211 * symfile.c (overlay_command): Pass all_commands, not -1, to
2212 help_list.
2213 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2214 help_list.
2215 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2216 help_list.
2217 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2218 -1, to help_list.
2219 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2220 not -1, to help_list.
2221 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2222 not -1, to help_list.
2223 * maint.c (maintenance_command, maintenance_info_command)
2224 (maintenance_print_command, maintenance_set_cmd): Pass
2225 all_commands, not -1, to help_list.
2226 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2227 help_list.
2228 * language.c (set_check): Pass all_commands, not -1, to help_list.
2229 * infcmd.c (unset_command): Pass all_commands, not -1, to
2230 help_list.
2231 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2232 help_list.
2233 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2234 help_list.
2235 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2236 help_list.
2237 * breakpoint.c (save_command): Pass all_commands, not -1, to
2238 help_list.
2239 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2240 all_commands, not -1, to help_list.
2241
b94ade42
PL
22422014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2243
2244 * regcache.c (struct register_to_invalidate): New structure.
2245 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2246 functions.
2247 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2248
31f628ae
YQ
22492014-06-12 Yao Qi <yao@codesourcery.com>
2250
2251 * varobj.c (varobj_get_num_children): Call
2252 varobj_is_dynamic_p.
2253 (varobj_list_children): Likewise.
2254 (varobj_update): Likewise. Update comments.
2255
cde5ef40
YQ
22562014-06-12 Yao Qi <yao@codesourcery.com>
2257
2258 * varobj.c (varobj_pretty_printed_p): Rename to ...
2259 (varobj_is_dynamic_p): ... this. New function.
2260 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2261 (varobj_is_dynamic_p): Declare.
2262 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2263 (mi_print_value_p, varobj_update_one): Likewise.
2264
576ea091
YQ
22652014-06-12 Pedro Alves <pedro@codesourcery.com>
2266 Yao Qi <yao@codesourcery.com>
2267
2268 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2269 (varobj_get_iterator): Wrap up code for pretty-printer by
2270 "#if HAVE_PYTHON" and "#endif".
2271 (update_dynamic_varobj_children): Likewise.
2272
827f100c
YQ
22732014-06-12 Pedro Alves <pedro@codesourcery.com>
2274 Yao Qi <yao@codesourcery.com>
2275
2276 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2277 gdb_python_initialized is false. Move some code from varobj.c.
2278 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2279 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2280 (struct varobj_item): Moved to varobj-iter.h".
2281 (varobj_clear_saved_item): New function.
2282 (update_dynamic_varobj_children): Move python-related code to
2283 py-varobj.c.
2284 (free_variable): Call varobj_clear_saved_item and
2285 varobj_iter_delete.
2286
e5250216
YQ
22872014-06-12 Pedro Alves <pedro@codesourcery.com>
2288 Yao Qi <yao@codesourcery.com>
2289
2290 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2291 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2292 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2293 (py-varobj.o): New rule.
2294 * python/py-varobj.c: New file.
2295 * python/python-internal.h (py_varobj_get_iterator): Declare.
2296 * varobj-iter.h: New file.
2297 * varobj.c: Include "varobj-iter.h"
2298 (struct varobj) <child_iter>: Change its type from "PyObject *"
2299 to "struct varobj_iter *".
2300 <saved_item>: Likewise.
2301 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2302 [HAVE_PYTHON] (varobj_get_iterator): New function.
2303 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2304 python-specific code to python/py-varobj.c.
2305 (install_visualizer): Call varobj_iter_delete instead of
2306 Py_XDECREF.
2307 * varobj.h (varobj_ensure_python_env): Declare.
2308
5a2e0d6e
YQ
23092014-06-12 Yao Qi <yao@codesourcery.com>
2310
2311 * varobj.c (struct varobj_item): New structure.
2312 (create_child_with_value): Update declaration.
2313 (varobj_add_child): Replace arguments 'name' and 'value' with
2314 'item'. All callers updated.
2315 (install_dynamic_child): Likewise.
2316 (update_dynamic_varobj_children): Likewise.
2317 (varobj_add_child): Likewise.
2318 (create_child_with_value): Likewise.
2319
919b9a93
JB
23202014-06-11 Joel Brobecker <brobecker@adacore.com>
2321
2322 * NEWS: Create a new section for the next release branch.
2323 Rename the section of the current branch, now that it has
2324 been cut.
2325
71a55bdf
JB
23262014-06-11 Joel Brobecker <brobecker@adacore.com>
2327
2328 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2329 * version.in: Bump version to 7.8.50.DATE-cvs.
2330
364fe1f7
PA
23312014-06-11 Pedro Alves <palves@redhat.com>
2332
2333 PR remote/17028
2334 * ser-mingw.c (net_windows_socket_check_pending): New function.
2335 (net_windows_select_thread): Ignore spurious wakeups. Use
2336 net_windows_socket_check_pending.
2337 (net_windows_wait_handle): Check for pending events with
2338 ioctlsocket, through net_windows_socket_check_pending, instead of
2339 checking the socket's event.
2340
5a6c7709
SC
23412014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2342
2343 * python/python-internal.h (gdb_PyObject_GetAttrString)
2344 (gdb_PyObject_HasAttrString): New inline function definitions.
2345 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2346 char * of the second argument to PyObject_GetAttrString.
74228e77 2347
0e58ee40
JB
23482014-06-10 Joel Brobecker <brobecker@adacore.com>
2349
2350 * serial.c (serial_write): Fix index of character to be printed
2351 in call to serial_logchar when serial debug traces are enabled.
2352
d190df30
JB
23532014-06-10 Joel Brobecker <brobecker@adacore.com>
2354
2355 * gdbtypes (resolve_dynamic_range): Add function description.
2356
b4b01d36
PA
23572014-06-09 Pedro Alves <palves@redhat.com>
2358
2359 * linux-nat.c (linux_child_follow_fork): Initialize status with
2360 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2361 inner block. Only pass the signal to PTRACE_DETACH if in pass
2362 state.
2363
3657956b
GB
23642014-06-09 Gary Benson <gbenson@redhat.com>
2365
2366 * common/signals.c (gdb_signal_from_host): Reorder to separate
2367 the always-available ANSI-standard signals from the signals that
2368 require checking.
2369 (do_gdb_signal_to_host): Likewise.
2370 * proc-events.c (signal_table): Likewise.
2371
c077881a
HZ
23722014-06-08 Hui Zhu <hui@codesourcery.com>
2373
2374 * common/linux-ptrace.c (linux_disable_event_reporting): New
2375 function.
2376 * common/linux-ptrace.h (linux_disable_event_reporting): New
2377 declaration.
2378 * linux-nat.c (linux_child_follow_fork): Do a single step before
2379 detach.
2380
4186eb54
KS
23812014-06-07 Keith Seitz <keiths@redhat.com>
2382
2383 Revert:
2384 PR c++/16253
2385 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2386 from symbol_matches_domain in symtab.c. All local callers
2387 of symbol_matches_domain updated.
2388 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2389 search STRUCT_DOMAIN.
2390 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2391 independently. standard_lookup will do that automatically.
2392 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2393 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2394 (cp_lookup_symbol_in_namespace): Likewise.
2395 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2396 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2397 may return a STRUCT_DOMAIN match.
2398 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2399 * cp-support.c: Include language.h.
2400 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2401 VAR_DOMAIN.
2402 * psymtab.c (match_partial_symbol): Compare the requested
2403 domain with the symbol's domain directly.
2404 (lookup_partial_symbol): Likewise.
2405 * symtab.c (lookup_symbol_in_language): Explain when/why
2406 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2407 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2408 appropriate languages.
2409 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2410 and moved to ada-lang.c
2411 (lookup_block_symbol): Explain that this function only returns
2412 symbol matching the requested DOMAIN.
2413 Compare the requested domain with the symbol's domain directly.
2414 (iterate_over_symbols): Compare the requested domain with the
2415 symbol's domain directly.
2416 * symtab.h (symbol_matches_domain): Remove.
2417
25326a28 24182014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2419
2420 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2421 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2422 (gdbscm_guile_version_is_at_least): Declare.
2423 (gdbscm_scm_string_to_int): Declare.
2424 * guile/guile.c (gdbscm_guile_major_version): New global.
2425 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2426 (guile_datadir): New static global.
2427 (gdbscm_guile_data_directory): New function.
2428 (initialize_scheme_side): Update.
2429 (misc_guile_functions): Add guile-data-directory.
2430 (initialize_gdb_module): Fetch guile version number.
2431 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2432 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2433 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2434 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2435 comments.
2436 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2437 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2438 * guile/scm-value.c (gdbscm_value_to_string): Only call
2439 scm_port_conversion_strategy if Guile version >= 2.0.6.
2440
0a770bb2 24412014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2442
2443 * main.c (print_gdb_help): Add -q and --silent.
2444
73ba372c
GB
24452014-06-06 Gary Benson <gbenson@redhat.com>
2446
2447 * common/signals.c: Remove preprocessor conditionals for
2448 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2449 SIGSEGV and SIGTERM.
2450 * proc-events.c: Likewise.
2451
c33b2f12
MM
24522014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2453
2454 * symfile.c (symfile_free_objfile): Remove restriction to
2455 OBJF_USERLOADED.
2456 * symfile-mem.c (symbol_file_add_from_memory): Call
2457 add_target_sections_of_objfile.
2458
fb934770
LC
24592014-06-05 Ludovic Courtès <ludo@gnu.org>
2460
2461 * guile/scm-value.c (gdbscm_history_append_x): Use
2462 'vlscm_get_value_smob_arg_unsafe' instead of
2463 'vlscm_scm_to_value'.
2464
6ef284bd
SM
24652014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2466
2467 PR mi/15806
2468 * utils.c (printchar): Don't escape at all if quoter is NUL.
2469 Update function documentation to clarify effect of parameter
2470 QUOTER.
2471 * remote.c (escape_buffer): Pass '\\' as the quoter to
2472 fputstrn_unfiltered.
2473 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2474 generate the output.
2475 (mi_solib_unloaded): Same.
2476
270c9937
JB
24772014-06-05 Joel Brobecker <brobecker@adacore.com>
2478
2479 * development.sh: Delete.
2480 * Makefile.in (config.status): Adjust dependency on development.sh.
2481 * configure.ac: Adjust development.sh source call.
2482 * configure: Regenerate.
2483
16f691fb
DE
24842014-06-04 Doug Evans <xdje42@gmail.com>
2485
2486 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2487 is_scheme_bkpt, spec.
2488 (bpscm_make_breakpoint_smob): Initialize new members.
2489 (gdbscm_create_breakpoint_x): Split into two ...
2490 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2491 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2492 (scheme_function breakpoint_functions): Update.
2493 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2494 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2495 register-breakpoint!.
2496
ef7cab6b
JB
24972014-06-04 Joel Brobecker <brobecker@adacorer.com>
2498
2499 PR server/17023
2500 * mem-break.c (z_type_supported): Return zero if
2501 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2502
012370f6
TT
25032014-06-04 Tom Tromey <tromey@redhat.com>
2504
2505 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2506 value_from_contents_and_address_unresolved.
2507 (ada_template_to_fixed_record_type_1): Likewise.
2508 (ada_which_variant_applies): Likewise.
2509 * value.h (value_from_contents_and_address_unresolved): Declare.
2510 * value.c (value_from_contents_and_address_unresolved): New
2511 function.
2512 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2513 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2514 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2515
92e2a17f
TT
25162014-06-04 Tom Tromey <tromey@redhat.com>
2517
2518 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2519
c0939df1
TT
25202014-06-04 Tom Tromey <tromey@redhat.com>
2521
2522 * procfs.c (procfs_attach): Make "args" const.
2523 * windows-nat.c (windows_attach): Make "args" const.
2524 * nto-procfs.c (procfs_attach): Make "args" const.
2525 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2526 * go32-nat.c (go32_attach): Make "args" const.
2527 * gnu-nat.c (gnu_attach): Make "args" const.
2528 * darwin-nat.c (darwin_attach): Make "args" const.
2529 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2530 * linux-nat.c (linux_nat_attach): Make "args" const.
2531 * remote.c (extended_remote_attach_1, extended_remote_attach):
2532 Make "args" const.
2533 * target.h (struct target_ops) <to_attach>: Make "args" const.
2534 (find_default_attach): Likewise.
2535 * utils.c (parse_pid_to_attach): Make "args" const.
2536 * utils.h (parse_pid_to_attach): Update.
2537
8eaff7cd
TT
25382014-06-04 Tom Tromey <tromey@redhat.com>
2539
2540 * target-delegates.c: Rebuild.
2541 * target.c (default_thread_address_space): New function.
2542 (target_thread_address_space): Simplify.
2543 * target.h (struct target_ops) <to_thread_address_space>: Add
2544 TARGET_DEFAULT_FUNC.
2545
1913f160
DE
25462014-06-04 Doug Evans <xdje42@gmail.com>
2547
2548 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2549
70ad5bff
MM
25502014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2551
2552 * record-btrace.c: Include event-loop.h and inf-loop.h.
2553 (record_btrace_resume_exec_dir)
2554 (record_btrace_async_inferior_event_handler)
2555 (record_btrace_handle_async_inferior_event): New.
2556 (record_btrace_open): Create async event handler.
2557 (record_btrace_close): Delete async event handler.
2558 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2559 Mark async event handler.
2560 (record_btrace_execution_direction): New.
2561 (init_record_btrace_ops): Initialize to_execution_direction.
2562
b6210538
DE
25632014-06-03 Doug Evans <xdje42@gmail.com>
2564
2565 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2566 (gdbscm_make_parameter): Ditto.
2567
a5b1fd27
DE
25682014-06-03 Doug Evans <dje@google.com>
2569
2570 * exec.c (exec_close_1): Call clear_section_table instead of
2571 resize_section_table.
2572 (clear_section_table): New function.
2573 (resize_section_table): Make static. Rename arg num_added to
2574 adjustment.
2575 * exec.h (clear_section_table): Declare.
2576 (resize_section_table): Delete.
2577 * progspace.c (release_program_space): Call clear_section_table
2578 instead of resize_section_table.
2579
0c6e92a5
SC
25802014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2581
2582 * NEWS (Python Scripting): Add entry about the new xmethods
2583 feature.
2584
883964a7
SC
25852014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2586
2587 * python/py-xmethods.c: New file.
2588 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2589 (objfpy_dealloc): XDECREF on the new xmethods field.
2590 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2591 field.
2592 (objfpy_get_xmethods): New function.
2593 (objfile_getset): New entry 'xmethods'.
2594 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2595 (pspy_dealloc): XDECREF on the new xmethods field.
2596 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2597 field.
2598 (pspy_get_xmethods): New function.
2599 (pspace_getset): New entry 'xmethods'.
2600 * python/python-internal.h: Add declarations for new functions.
2601 * python/python.c (_initialize_python): Invoke
2602 gdbpy_initialize_xmethods.
2603 * python/lib/gdb/__init__.py (xmethods): New
2604 attribute.
2605 * python/lib/gdb/xmethod.py: New file.
2606 * python/lib/gdb/command/xmethods.py: New file.
2607
58992dc5
SC
26082014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2609
2610 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2611 best match method returned by find_overload_match is an xmethod.
2612 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2613 the best matching operator returned by find_overload_match is an
2614 xmethod.
2615 * valops.c: #include "extension.h".
2616 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2617 Return void. The list of matching source methods is returned in
2618 "fn_list" and a vector of matching debug method workers is
2619 returned in "xm_worker_vec". Update all callers.
2620 (value_find_oload_method_list): Likewise.
2621 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2622 non-NULL, then the index of the best matching method in this
2623 vector is returned. Update all callers.
2624 (find_overload_match): Include xmethods while performing overload
2625 resolution.
2626
e81e7f5e
SC
26272014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2628
2629 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2630 * extension-priv.h (struct extension_language_ops): Add the
2631 xmethod interface.
2632 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2633 get_matching_xmethod_workers, get_xmethod_argtypes,
2634 invoke_xmethod, free_xmethod_worker,
2635 free_xmethod_worker_vec): New functions.
2636 * extension.h: #include "common/vec.h".
2637 New function declarations.
2638 (struct xmethod_worker): New struct.
2639 (VEC (xmethod_worker_ptr)): New vector type.
2640 (xmethod_worker_ptr): New typedef.
2641 (xmethod_worker_vec): Likewise.
2642 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2643 builtin_type.
2644 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2645 (struct builtin_type): New field "xmethod".
2646 * valarith.c (value_ptradd): Assert that the value argument is not
2647 lval_xcallable.
2648 * valops.c (value_must_coerce_to_target): Return 0 for
2649 lval_xcallable values.
2650 * value.c (struct value): New field XM_WORKER in the field
2651 LOCATION.
2652 (value_address, value_raw_address): Return 0 for lval_xcallable
2653 values.
2654 (set_value_address): Assert that the value is not an
2655 lval_xcallable.
2656 (value_free): Free the associated xmethod worker when freeing
2657 lval_xcallable values.
2658 (set_value_component_location): Assert that the WHOLE value is not
2659 lval_xcallable.
2660 (value_of_xmethod, call_xmethod): New functions.
2661 * value.h: Declare "struct xmethod_worker".
2662 Declare new functions value_of_xmethod, call_xmethod.
2663
ef370185
JB
26642014-06-03 Joel Brobecker <brobecker@adacore.com>
2665 Pedro Alves <palves@redhat.com>
2666
2667 PR breakpoints/17000
2668 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2669 New function, extracted from software_breakpoint_inserted_here_p.
2670 (software_breakpoint_inserted_here_p): Replace factored out code
2671 by call to find_non_raw_software_breakpoint_inserted_here.
2672 (bp_target_info_copy_insertion_state): New function.
2673 (bkpt_insert_location): Handle the case of a single-step
2674 breakpoint already inserted at the same address.
2675 (bkpt_remove_location): Handle the case of a single-step
2676 breakpoint still inserted at the same address.
2677 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2678 breakpoint already inserted at the same address.
2679 (deprecated_remove_raw_breakpoint): Handle the case of a
2680 non-raw breakpoint still inserted at the same address.
2681 (find_single_step_breakpoint): New function, extracted from
2682 single_step_breakpoint_inserted_here_p.
2683 (find_single_step_breakpoint): New function,
2684 factored out from single_step_breakpoint_inserted_here_p.
2685 (single_step_breakpoint_inserted_here_p): Reimplement.
2686
1e2ccb61
BM
26872014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2688
2689 Pushed by Joel Brobecker <brobecker@adacore.com>
2690 * source.c (show_substitute_path_command): Fix display of matching
2691 substitution rules.
2692
d3448d85
GB
26932014-06-03 Gary Benson <gbenson@redhat.com>
2694
2695 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2696
06eb1586
DE
26972014-06-02 Doug Evans <xdje42@gmail.com>
2698
2699 Add parameter support for Guile.
2700 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2701 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2702 (scm-param.o): New rule.
2703 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2704 (gdbscm_misc_error): Declare.
2705 (gdbscm_canonicalize_command_name): Declare.
2706 (gdbscm_scm_to_host_string): Declare.
2707 (gdbscm_scm_from_host_string): Declare.
2708 (gdbscm_initialize_parameters): Declare.
2709 * guile/guile.c (initialize_gdb_module): Call
2710 gdbscm_initialize_parameters.
2711 * guile/lib/gdb.scm: Export parameter symbols.
2712 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2713 cmdscm_canonicalize_name and made public. All callers updated.
2714 * guile/scm-exception.c (gdbscm_misc_error): New function.
2715 * guile/scm-param.c: New file.
2716 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2717 (gdbscm_scm_to_host_string): New function.
2718 (gdbscm_scm_from_host_string): New function.
2719 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2720
e698b8c4
DE
27212014-06-02 Doug Evans <xdje42@gmail.com>
2722
2723 Add command support for Guile.
2724 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2725 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2726 (scm-cmd.o): New rule.
2727 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2728 (gdbscm_user_error_p): Declare.
2729 (gdbscm_parse_command_name): Declare.
2730 (gdbscm_valid_command_class_p): Declare.
2731 (gdbscm_initialize_commands): Declare.
2732 * guile/guile.c (initialize_gdb_module): Call
2733 gdbscm_initialize_commands.
2734 * guile/lib/gdb.scm: Export command symbols.
2735 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2736 (throw-user-error): New function.
2737 * guile/scm-cmd.c: New file.
2738 * guile/scm-exception.c (user_error_symbol): New static global.
2739 (gdbscm_user_error_p): New function.
2740 (gdbscm_initialize_exceptions): Set user_error_symbol.
2741 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2742
fb1f94b0
PM
27432014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2744
2745 * top.c (command_loop): Handle comments here...
2746 (command_line_input): ... not here.
2747
ded03782
DE
27482014-06-02 Doug Evans <xdje42@gmail.com>
2749
2750 Add progspace support for Guile.
2751 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2752 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2753 (scm-progspace.o): New rule.
2754 * guile/guile-internal.h (pspace_smob): New typedef.
2755 (psscm_pspace_smob_pretty_printers): Declare.
2756 (psscm_pspace_smob_from_pspace): Declare.
2757 (psscm_scm_from_pspace): Declare.
2758 * guile/guile.c (initialize_gdb_module): Call
2759 gdbscm_initialize_pspaces.
2760 * guile/lib/gdb.scm: Export progspace symbols.
2761 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2762 support.
2763 (append-pretty-printer!): Ditto.
2764 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2765 Implement.
2766 * guile/scm-progspace.c: New file.
2767
397998fc
AM
27682014-06-03 Alan Modra <amodra@gmail.com>
2769
2770 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2771 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2772
6aa5f3a6
DE
27732014-06-02 Doug Evans <dje@google.com>
2774
2775 Add support for skeletonless type units.
2776 * dwarf2read.c (struct dwarf2_per_objfile): New member
2777 n_allocated_type_units.
2778 (struct dwarf2_per_objfile) <tu_stats>: New member
2779 nr_all_type_units_reallocs.
2780 (create_signatured_type_table_from_index): Initialize
2781 n_allocated_type_units
2782 (create_all_type_units): Ditto.
2783 (add_type_unit): Move up in file. New arg slot.
2784 All callers updated. Increase space for all_type_units more
2785 efficiently.
2786 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2787 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2788 (lookup_dwp_signatured_type): Ditto.
2789 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2790 All callers updated.
2791 (build_type_psymtabs_1): Leave type_unit_groups as
2792 NULL if no TUs present.
2793 (print_tu_stats): New function.
2794 (process_skeletonless_type_unit): New function.
2795 (process_dwo_file_for_skeletonless_type_units): New
2796 function.
2797 (process_skeletonless_type_units): New function.
2798 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2799 Call print tu_stats if debugging enabled.
2800
41fac0cf
PA
28012014-06-02 Pedro Alves <palves@redhat.com>
2802
2803 * breakpoint.c (build_target_command_list): Don't build a command
2804 list if we have any duplicate location that isn't a dprintf.
2805
cd1608cc
PA
28062014-06-02 Pedro Alves <palves@redhat.com>
2807
2808 * breakpoint.c (dprintf_breakpoint_hit): New function.
2809 (initialize_breakpoint_ops): Install it as dprintf's
2810 breakpoint_hit method.
2811
486ef3b9
JB
28122014-06-02 Joel Brobecker <brobecker@adacore.com>
2813
2814 * source.c (substitute_path_rule_matches): Simplify using
2815 filename_ncmp instead of FILENAME_CMP.
2816
230cd560
JB
28172014-06-02 Joel Brobecker <brobecker@adacore.com>
2818
2819 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2820
16954d5d
LC
28212014-06-01 Ludovic Courtès <ludo@gnu.org>
2822
2823 * configure.ac: When Guile is available, check for the
2824 availability of 'scm_new_smob'.
2825 * configure, config.h.in: Regenerate.
2826 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2827 function.
2828
53e8a631
AB
28292014-05-30 Andrew Burgess <aburgess@broadcom.com>
2830
2831 * frame.c (struct frame_info): Add stop_string field.
2832 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2833 (get_prev_frame_always): Old content moved into
2834 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2835 TRY_CATCH, handle MEMORY_ERROR exceptions.
2836 (frame_stop_reason_string): New function definition.
2837 * frame.h (unwind_stop_reason_to_string): Extend comment to
2838 mention frame_stop_reason_string.
2839 (frame_stop_reason_string): New function declaration.
2840 * stack.c (frame_info): Switch to frame_stop_reason_string.
2841 (backtrace_command_1): Switch to frame_stop_reason_string.
2842 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2843 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2844 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2845
70e38b8e
AB
28462014-05-30 Andrew Burgess <aburgess@broadcom.com>
2847
2848 * frame.c (frame_stop_reason_string): Rename to ...
2849 (unwind_stop_reason_to_string): this.
2850 * frame.h (frame_stop_reason_string): Rename to ...
2851 (unwind_stop_reason_to_string): this.
2852 * stack.c (frame_info): Update call to frame_stop_reason_string.
2853 (backtrace_command_1): Likewise.
2854 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2855 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2856
938f0e2f
AB
28572014-05-30 Andrew Burgess <aburgess@broadcom.com>
2858
2859 * frame.c (remove_prev_frame): New function.
2860 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2861 remove_prev_frame.
2862
a09dd441
PA
28632014-05-29 Pedro Alves <palves@redhat.com>
2864
2865 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2866 and make it const. When a single-step decays to a continue,
2867 clear 'step', not 'hw_step'. Pass whether the caller wanted
2868 to step to user_visible_resume_ptid, not what we ask the
2869 target to do.
2870
bdc36728
PA
28712014-05-29 Pedro Alves <palves@redhat.com>
2872
2873 * infrun.c (process_event_stop_test, handle_step_into_function)
2874 (handle_step_into_function_backward): Adjust.
2875 Don't set the even thread's stop_step and call stop_waiting before
2876 calling end_stepping_range. Instead do that ...
2877 (end_stepping_range): ... here. Take an ecs pointer parameter.
2878
22bcd14b
PA
28792014-05-29 Pedro Alves <palves@redhat.com>
2880
2881 * infrun.c (stop_stepping): Rename to ...
2882 (stop_waiting): ... this.
2883 (proceed): Update comment.
2884 (process_event_stop_test, handle_inferior_event)
2885 (handle_signal_stop, handle_step_into_function)
2886 (handle_step_into_function_backward): Update.
2887
4ae57c05
PA
28882014-05-29 Pedro Alves <palves@redhat.com>
2889
2890 * infcall.c (run_inferior_call): Don't check whether the current
2891 thread is running after the proceed call.
2892
329ea579
PA
28932014-05-29 Pedro Alves <palves@redhat.com>
2894 Tom Tromey <tromey@redhat.com>
2895
2896 * NEWS: Mention "maint set target-async", "set mi-async", and that
2897 background execution commands are now always available.
2898 * target.h (target_async_permitted): Update comment.
2899 * target.c (target_async_permitted, target_async_permitted_1):
2900 Default to 1.
2901 (set_target_async_command): Rename to ...
2902 (maint_set_target_async_command): ... this.
2903 (show_target_async_command): Rename to ...
2904 (maint_show_target_async_command): ... this.
2905 (_initialize_target): Adjust.
2906 * infcmd.c (prepare_execution_command): Make extern.
2907 * inferior.h (prepare_execution_command): Declare.
2908 * infrun.c (set_observer_mode): Leave target async alone.
2909 * mi/mi-interp.c (mi_interpreter_init): Install
2910 mi_on_sync_execution_done as sync_execution_done observer.
2911 (mi_on_sync_execution_done): New function.
2912 (mi_execute_command_input_handler): Don't print the prompt if we
2913 just started a synchronous command with an async target.
2914 (mi_on_resume): Check sync_execution before printing prompt.
2915 * mi/mi-main.h (mi_async_p): Declare.
2916 * mi/mi-main.c: Include gdbcmd.h.
2917 (mi_async_p): New function.
2918 (mi_async, mi_async_1): New globals.
2919 (set_mi_async_command, show_mi_async_command, mi_async): New
2920 functions.
2921 (exec_continue): Call prepare_execution_command.
2922 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2923 (mi_execute_async_cli_command): Use mi_async_p.
2924 (_initialize_mi_main): Install "set mi-async". Make
2925 "target-async" a deprecated alias.
2926
92bcb5f9
PA
29272014-05-29 Pedro Alves <palves@redhat.com>
2928
2929 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2930 (_initialize_cli_interp): Adjust.
2931 * event-loop.c: Include "observer.h".
2932 (start_event_loop): Notify 'command_error' observers instead of
2933 calling display_gdb_prompt. Remove FIXME comment.
2934 * event-top.c (display_gdb_prompt): Remove call into the
2935 interpreters.
2936 * inf-loop.c: Include "observer.h".
2937 (inferior_event_handler): Notify 'command_error' observers instead
2938 of calling display_gdb_prompt.
2939 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2940 observers instead of calling display_gdb_prompt.
2941 * interps.c (interp_set): Don't call display_gdb_prompt.
2942 (current_interp_display_prompt_p): Delete.
2943 * interps.h (interp_prompt_p): Delete declaration.
2944 (interp_prompt_p_ftype): Delete.
2945 (struct interp_procs) <prompt_proc_p>: Delete field.
2946 (current_interp_display_prompt_p): Delete declaration.
2947 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2948 (_initialize_mi_interp): Adjust.
2949 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2950 'command_error' observers.
2951 (tui_on_sync_execution_done, tui_on_command_error): New
2952 functions.
2953 (tui_display_prompt_p): Delete.
2954 (_initialize_tui_interp): Adjust.
2955
fd664c91
PA
29562014-05-29 Pedro Alves <palves@redhat.com>
2957
2958 PR gdb/13860
2959 * cli/cli-interp.c: Include infrun.h and observer.h.
2960 (cli_uiout, cli_interp): New globals.
2961 (cli_on_signal_received, cli_on_end_stepping_range)
2962 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2963 functions.
2964 (cli_interpreter_init): Install them as 'end_stepping_range',
2965 'signal_received' 'signal_exited', 'exited' and 'no_history'
2966 observers.
2967 (_initialize_cli_interp): Remove cli_interp local.
2968 * infrun.c (handle_inferior_event): Call the several stop reason
2969 observers instead of printing the stop reason directly.
2970 (end_stepping_range): New function.
2971 (print_end_stepping_range_reason, print_signal_exited_reason)
2972 (print_exited_reason, print_signal_received_reason)
2973 (print_no_history_reason): Make static, and add an uiout
2974 parameter. Print to that instead of to CURRENT_UIOUT.
2975 * infrun.h (print_end_stepping_range_reason)
2976 (print_signal_exited_reason, print_exited_reason)
2977 (print_signal_received_reason print_no_history_reason): New
2978 declarations.
2979 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2980 'mi_uiout'.
2981 <cli_uiout>: New field.
2982 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2983 uiout for CLI output. Install 'signal_received',
2984 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2985 observers.
2986 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2987 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2988 (mi_on_no_history): New functions.
2989 (ui_out_free_cleanup): Delete function.
2990 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2991 instead use the one already stored in the MI interpreter data.
2992 (mi_ui_out): Adjust.
2993 * tui/tui-interp.c: Include infrun.h and observer.h.
2994 (tui_interp): New global.
2995 (tui_on_signal_received, tui_on_end_stepping_range)
2996 (tui_on_signal_exited, tui_on_exited)
2997 (tui_on_no_history): New functions.
2998 (tui_init): Install them as 'end_stepping_range',
2999 'signal_received' 'signal_exited', 'exited' and 'no_history'
3000 observers.
3001 (_initialize_tui_interp): Delete tui_interp local.
3002
8817a6f2
PA
30032014-05-29 Pedro Alves <palves@redhat.com>
3004
3005 PR gdb/15713
3006 * linux-nat.c (linux_nat_resume_callback): Rename the second
3007 parameter to 'except'. Skip LP if it points to EXCEPT.
3008 (linux_nat_resume): Don't mark the event lwp as not stopped
3009 before resuming sibling lwps. Instead ask
3010 linux_nat_resume_callback to skip the event lwp. Mark it as not
3011 stopped after actually resuming it.
3012 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3013 resuming it.
3014 (wait_lwp): Mark the lwp as stopped here.
3015 (stop_wait_callback): Mark the lwp as not stopped right after
3016 resuming it. Don't mark lwps as stopped here.
3017 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3018 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3019
251bde03
PA
30202014-05-29 Pedro Alves <palves@redhat.com>
3021
3022 PR PR15693
3023 * infrun.c (resume): Determine how much to resume depending on
3024 whether the caller wanted a step, not whether we can hardware step
3025 the target. Mark all threads that we intend to run as running,
3026 unless we're calling an inferior function.
3027 (normal_stop): If the thread is running an infcall, don't finish
3028 thread state.
3029 * target.c (target_resume): Don't mark threads as running here.
3030
7f3c0343
JB
30312014-05-28 Joel Brobecker <brobecker@adacore.com>
3032
3033 * serial.c (_initialize_serial): Remove support for
3034 the "set remotebaud" and "show remotebaud" commands.
3035 * NEWS: Add entry documenting the removal of that command.
3036
ee34b3f9
YQ
30372014-05-28 Yao Qi <yao@codesourcery.com>
3038
3039 * charset.c: Fix typo in comments.
3040
add6c04d
GB
30412014-05-27 Gary Benson <gbenson@redhat.com>
3042
3043 * utils.c (internal_vproblem): Prompt for a bug report.
3044
92c48fc5
AW
30452014-05-26 Andy Wingo <wingo@igalia.com>
3046
3047 * guile/scm-arch.c (arscm_mark_arch_smob):
3048 * guile/scm-block.c (bkscm_mark_block_smob)
3049 (bkscm_mark_block_syms_progress_smob):
3050 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3051 * guile/scm-exception.c (exscm_mark_exception_smob):
3052 * guile/scm-frame.c (frscm_mark_frame_smob):
3053 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3054 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3055 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3056 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3057 (ppscm_mark_pretty_printer_worker_smob):
3058 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3059 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3060 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3061 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3062 mark functions.
3063 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3064 function.
3065
b2715b27
AW
30662014-05-26 Andy Wingo <wingo@igalia.com>
3067 Doug Evans <xdje42@gmail.com>
3068
3069 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3070 empty_base_class. All uses updated.
3071 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3072 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3073 Adapt all callers.
3074 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3075 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3076 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3077 (gdbscm_gsmob_has_property_p, add_property_name)
3078 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3079 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3080 (gdb-object-has-property?, gdb-object-properties): Remove.
3081 (gdb-object-kind): Renamed from gsmob-kind.
3082
214ab2da
AW
30832014-05-26 Andy Wingo <wingo@igalia.com>
3084
3085 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3086 * configure: Regenerate.
3087
589fdceb
MM
30882014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3089
3090 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3091
67b5c0c1
MM
30922014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3093
3094 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3095 (replay_memory_access_read_only, replay_memory_access_read_write)
3096 (replay_memory_access_types, replay_memory_access)
3097 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3098 (cmd_set_record_btrace, cmd_show_record_btrace)
3099 (cmd_show_replay_memory_access): New.
3100 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3101 (record_btrace_remove_breakpoint): Replace
3102 record_btrace_allow_memory_access with replay_memory_access.
3103 (_initialize_record_btrace): Add commands.
3104 * NEWS: Announce it.
3105
036cd381
RR
31062014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3107
3108 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3109
c77c1e42
RR
31102014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3111
3112 * MAINTAINERS (Write After Approval): Move self back from
3113 paper trail.
3114
45741a9c
PA
31152014-05-22 Pedro Alves <palves@redhat.com>
3116
3117 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3118 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3119 (disable_randomization, enum exec_direction_kind)
3120 (execution_direction, stop_registers, start_remote)
3121 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3122 (wait_for_inferior, normal_stop, get_last_target_status)
3123 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3124 (insert_step_resume_breakpoint_at_sal)
3125 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3126 (set_step_info, print_stop_event, signal_stop_state)
3127 (signal_print_state, signal_pass_state, signal_stop_update)
3128 (signal_print_update, signal_pass_update)
3129 (update_signals_program_target, clear_exit_convenience_vars)
3130 (displaced_step_dump_bytes, update_observer_mode)
3131 (signal_catch_update, gdb_signal_from_command): Move
3132 declarations ...
3133 * infrun.h: ... to this new file.
3134 * amd64-tdep.c: Include infrun.h.
3135 * annotate.c: Include infrun.h.
3136 * arch-utils.c: Include infrun.h.
3137 * arm-linux-tdep.c: Include infrun.h.
3138 * arm-tdep.c: Include infrun.h.
3139 * break-catch-sig.c: Include infrun.h.
3140 * breakpoint.c: Include infrun.h.
3141 * common/agent.c: Include infrun.h instead of inferior.h.
3142 * corelow.c: Include infrun.h.
3143 * event-top.c: Include infrun.h.
3144 * go32-nat.c: Include infrun.h.
3145 * i386-tdep.c: Include infrun.h.
3146 * inf-loop.c: Include infrun.h.
3147 * infcall.c: Include infrun.h.
3148 * infcmd.c: Include infrun.h.
3149 * infrun.c: Include infrun.h.
3150 * linux-fork.c: Include infrun.h.
3151 * linux-nat.c: Include infrun.h.
3152 * linux-thread-db.c: Include infrun.h.
3153 * monitor.c: Include infrun.h.
3154 * nto-tdep.c: Include infrun.h.
3155 * procfs.c: Include infrun.h.
3156 * record-btrace.c: Include infrun.h.
3157 * record-full.c: Include infrun.h.
3158 * remote-m32r-sdi.c: Include infrun.h.
3159 * remote-mips.c: Include infrun.h.
3160 * remote-notif.c: Include infrun.h.
3161 * remote-sim.c: Include infrun.h.
3162 * remote.c: Include infrun.h.
3163 * reverse.c: Include infrun.h.
3164 * rs6000-tdep.c: Include infrun.h.
3165 * s390-linux-tdep.c: Include infrun.h.
3166 * solib-irix.c: Include infrun.h.
3167 * solib-osf.c: Include infrun.h.
3168 * solib-svr4.c: Include infrun.h.
3169 * target.c: Include infrun.h.
3170 * top.c: Include infrun.h.
3171 * windows-nat.c: Include infrun.h.
3172 * mi/mi-interp.c: Include infrun.h.
3173 * mi/mi-main.c: Include infrun.h.
3174 * python/py-threadevent.c: Include infrun.h.
3175
98eb56a4
PA
31762014-05-22 Pedro Alves <palves@redhat.com>
3177
3178 * infrun.c (handle_inferior_event): Store the exit code for
3179 --return-child-result here, instead of ...
3180 (print_exited_reason): ... here.
3181
17b2616c
PA
31822014-05-21 Pedro Alves <palves@redhat.com>
3183
3184 PR gdb/13860
3185 * gdbthread.h (struct thread_control_state): New field
3186 `command_interp'.
3187 * infrun.c (follow_fork): Copy the new thread control field to the
3188 child fork thread.
3189 (clear_proceed_status_thread): Clear the new thread control field.
3190 (proceed): Set the new thread control field.
3191 * interps.h (command_interp): Declare.
3192 * interps.c (command_interpreter): New global.
3193 (command_interp): New function.
3194 (interp_exec): Set `command_interpreter' while here.
3195 * cli-out.c (cli_uiout_dtor): New function.
3196 (cli_ui_out_impl): Install it.
3197 * mi/mi-interp.c: Include cli-out.h.
3198 (mi_cmd_interpreter_exec): Add comment.
3199 (restore_current_uiout_cleanup): New function.
3200 (ui_out_free_cleanup): New function.
3201 (mi_on_normal_stop): If finishing an execution command started by
3202 a CLI command, or any kind of breakpoint-like event triggered,
3203 print the stop event to the output (CLI) stream.
3204 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3205
5166082f
PA
32062014-05-21 Pedro Alves <palves@redhat.com>
3207
3208 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3209 current source line having changed.
3210 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3211 * infrun.c (normal_stop): Adjust call to
3212 set_current_sal_from_frame.
3213 * source.c (clear_lines_listed_range): New function.
3214 (set_current_source_symtab_and_line, identify_source_line): Clear
3215 the lines listed range.
3216 (line_info): Handle the first "info line" after the current source
3217 line having changed.
3218 * stack.c (print_stack_frame): Remove center handling.
3219 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3220 center sal.line.
3221
c1ee2fb3
PA
32222014-05-21 Pedro Alves <palves@redhat.com>
3223
3224 * inf-child.c (inf_child_mourn_inferior): New function.
3225 * inf-child.h (inf_child_mourn_inferior): New declaration.
3226 * darwin-nat.c (darwin_mourn_inferior): Use
3227 inf_child_mourn_inferior.
3228 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3229 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3230 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3231 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3232 * windows-nat.c (windows_mourn_inferior): Likewise.
3233
5c6d4fb2
DE
32342014-05-21 Doug Evans <xdje42@gmail.com>
3235
250748cb 3236 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3237
4a2722c5
DE
32382014-05-21 Doug Evans <xdje42@gmail.com>
3239
17292b30 3240 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3241 (gdbscm_out_of_range_error): Ditto.
3242 (gdbscm_memory_error): Ditto.
250748cb
DE
3243 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3244 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3245 (gdbscm_out_of_range_error): Update.
3246 (gdbscm_memory_error): Update.
3247 (gdbscm_scm_to_target_string_unsafe): Delete.
3248
6a3cb8e8
PA
32492014-05-21 Pedro Alves <palves@redhat.com>
3250
3251 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3252 globals.
3253 (inf_child_open_target): New function.
3254 (inf_child_open): Use inf_child_open_target to push the target
3255 instead of erroring out.
3256 (inf_child_disconnect, inf_child_close)
3257 (inf_child_maybe_unpush_target): New functions.
3258 (inf_child_target): Install inf_child_disconnect and
3259 inf_child_close. Store a pointer to the returned object.
3260 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3261 declarations.
3262 * target.c (auto_connect_native_target): New global.
3263 (show_default_run_target): New function.
3264 (find_default_run_target): Return NULL if automatically connecting
3265 to the native target is disabled.
3266 (_initialize_target): Install set/show auto-connect-native-target.
3267 * NEWS: Mention "set auto-connect-native-target", and "target
3268 native".
3269 * linux-nat.c (super_close): New global.
3270 (linux_nat_close): Call super_close.
3271 (linux_nat_add_target): Store a pointer to the base class's
3272 to_close method.
3273 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3274 inf_child_maybe_unpush.
3275 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3276 already pushed.
3277 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3278 the inferior. Use inf_child_maybe_unpush_target.
3279 (inf_ttrace_attach): Don't push the target if it is already
3280 pushed.
3281 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3282 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3283 after mourning the inferior. Use inf_child_maybe_unpush_target.
3284 (darwin_attach_pid): Don't push the target if it is already
3285 pushed.
3286 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3287 mourning the inferior. Use inf_child_maybe_unpush_target.
3288 (gnu_detach): Use inf_child_maybe_unpush_target.
3289 * go32-nat.c (go32_create_inferior): Don't push the target if it
3290 is already pushed.
3291 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3292 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3293 (procfs_open): Rename to ...
3294 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3295 comments. Can target_preopen before changing node. Call
3296 inf_child_open_target to push the target explicitly.
3297 (procfs_attach): Don't push the target if it is already pushed.
3298 (procfs_detach): Use inf_child_maybe_unpush_target.
3299 (procfs_create_inferior): Don't push the target if it is already
3300 pushed.
3301 (nto_native_ops): New global.
3302 (procfs_open): Reimplement.
3303 (procfs_native_open): New function.
3304 (init_procfs_targets): Install procfs_native_open as to_open of
3305 "target native". Store a pointer to the "native" target in
3306 nto_native_ops.
3307 * procfs.c (procfs_attach): Don't push the target if it is already
3308 pushed.
3309 (procfs_detach): Use inf_child_maybe_unpush_target.
3310 (procfs_mourn_inferior): Only unpush the target after mourning the
3311 inferior. Use inf_child_maybe_unpush_target.
3312 (procfs_init_inferior): Don't push the target if it is already
3313 pushed.
3314 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3315 if it is already pushed.
3316
930ee1b1
PA
33172014-05-21 Pedro Alves <palves@redhat.com>
3318
3319 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3320 and "procfs" targets are now called "native" instead.
3321
1f5d1b13
PA
33222014-05-21 Pedro Alves <palves@redhat.com>
3323
3324 * go32-nat.c (go32_open): Delete.
3325 (go32_target): Don't override the to_open method.
3326
132f8e03
PA
33272014-05-21 Pedro Alves <palves@redhat.com>
3328
3329 * nto-procfs.c (procfs_can_run): New function.
3330 (nto_procfs_ops): New global.
3331 (init_procfs_targets): New, based on procfs_target. Install
3332 "target native" in addition to "target procfs".
3333 (_initialize_procfs): Call init_procfs_targets instead of adding
3334 the target here.
3335
03c136c3
PA
33362014-05-21 Pedro Alves <palves@redhat.com>
3337
3338 * windows-nat.c (windows_target): Don't override to_shortname,
3339 to_longname or to_doc.
3340
a635d0f3
PA
33412014-05-21 Pedro Alves <palves@redhat.com>
3342
3343 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3344 to_doc.
3345
4f9b5133
PA
33462014-05-21 Pedro Alves <palves@redhat.com>
3347
3348 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3349 to_shortname, to_longname or to_doc.
3350
bc85afde
PA
33512014-05-21 Pedro Alves <palves@redhat.com>
3352
3353 * go32-nat.c (go32_target): Don't override to_shortname,
3354 to_longname or to_doc.
3355
4ebfc96e
PA
33562014-05-21 Pedro Alves <palves@redhat.com>
3357
3358 * inf-child.c (inf_child_open): Remove mention of "child".
3359 (inf_child_target): Rename target to "native" instead of "child".
3360
2648dfed
AA
33612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3362
3363 * Makefile.in (SFILES): Delete "regset.c".
3364 (COMMON_OBS): Delete "regset.o".
3365 * regset.c: Remove.
3366 * regset.h (regset_alloc): Delete prototype.
3367
b13feb94
AA
33682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3369
3370 * sparc-linux-tdep.c (sparc32_linux_gregset)
3371 (sparc32_linux_fpregset): New static regset structures.
3372 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3373 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3374 'fpregset' fields.
3375 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3376 (sparc64_linux_fpregset): New static regset structures.
3377 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3378 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3379 New static regset structures.
3380 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3381 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3382 New static regset structures.
3383 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3384 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3385 New static regset structures.
3386 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3387 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3388 New static regset structures.
3389 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3390
b4fd25c9
AA
33912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3392
3393 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3394 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3395 register maps ("regmaps") from "*regset" to "*regmap". Do this
3396 for all regmap types and variables.
3397 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3398 (sparc32_linux_supply_core_gregset)
3399 (sparc32_linux_collect_core_gregset)
3400 (sparc32_linux_supply_core_fpregset)
3401 (sparc32_linux_collect_core_fpregset): Likewise.
3402 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3403 (sparc_gregmap, sparc_fpregmap): ... these.
3404 (sparc_supply_gregset, sparc_collect_gregset)
3405 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3406 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3407 (_initialize_sparc_nat): Rename regmaps.
3408 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3409 (sparc_gregmap, sparc_fpregmap): ... these.
3410 (sparc_supply_gregset, sparc_collect_gregset)
3411 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3412 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3413 Rename macros to...
3414 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3415 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3416 Likewise.
3417 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3418 Rename to...
3419 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3420 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3421 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3422 regmaps.
3423 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3424 (sparc32_bsd_fpregset): Rename to...
3425 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3426 (sparc32_bsd_fpregmap): ... these.
3427 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3428 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3429 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3430 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3431 (struct sparc_gregmap, struct sparc_fpregmap)
3432 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3433 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3434 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3435 (sparc32_supply_regset, sparc32_collect_gregset)
3436 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3437 prototypes.
3438 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3439 (sparc64_linux_ptrace_gregmap): ... this.
3440 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3441 (_initialize_sparc64_linux_nat): Rename regmaps.
3442 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3443 (sparc64_linux_core_gregmap): ... this.
3444 (sparc64_linux_supply_core_gregset)
3445 (sparc64_linux_collect_core_gregset)
3446 (sparc64_linux_supply_core_fpregset)
3447 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3448 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3449 (sparc64_sol2_fpregset): Rename to...
3450 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3451 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3452 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3453 regmaps.
3454 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3455 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3456 (sparc64_bsd_fpregset): Rename to...
3457 (struct sparc_gregmap, sparc64_sol2_gregmap)
3458 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3459 (sparc64_bsd_fpregmap): ... these.
3460 (sparc64_supply_gregset, sparc64_collect_gregset)
3461 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3462 prototypes.
3463 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3464 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3465 (sparc64fbsd_gregmap): ... this.
3466 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3467 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3468 Rename regmaps.
3469 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3470 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3471 (sparc64nbsd_collect_fpregset): Likewise.
3472 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3473 (sparc64nbsd_gregmap): ... this.
3474 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3475 regmaps.
3476 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3477 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3478 (sparc64obsd_gregmap): ... this.
3479 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3480 regmaps.
3481 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3482 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3483 (sparc32nbsd_gregmap): ... this.
3484 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3485 regmaps.
3486
8fea3224
AA
34872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3488
3489 * score-tdep.c (score7_linux_gregset): New static regset
3490 structure.
3491 (score7_linux_regset_from_core_section): Remove dynamic regset
3492 allocation.
3493 (score_gdbarch_init): Drop allocation of tdep structure.
3494 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3495
24534243
AA
34962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3497
3498 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3499 regset structures.
3500 (am33_regset_from_core_section): Remove dynamic regset
3501 allocations.
3502
b7195f27
AA
35032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3504
3505 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3506 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3507 structures.
3508 (mips_linux_regset_from_core_section): Remove dynamic regset
3509 allocations.
3510 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3511 'gregset64', 'fpregset', and 'fpregset64'.
3512 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3513 deleted tdep fields.
3514
ecc37a5a
AA
35152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3516
3517 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3518 regset structures.
3519 (amd64_regset_from_core_section): Remove dynamic regset
3520 allocations.
3521 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3522 structure.
3523 (amd64obsd_regset_from_core_section): Remove dynamic regset
3524 allocation.
3525 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3526 Likewise.
3527 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3528 x86-common regset supply function.
3529 * i386-tdep.c (i386_collect_gregset): Make static.
3530 (i386_gregset): New global regset structure.
3531 (i386_fpregset, i386_xstateregset): New static regset structures.
3532 (i386_regset_from_core_section): Remove dynamic regset
3533 allocations.
3534 (i386_gdbarch_init): Remove initialization of tdep fields
3535 'gregset', 'fpregset', and 'xstateregset'.
3536 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3537 'fpregset', and 'xstateregset'.
3538 (i386_collect_gregset): Remove prototype.
3539 (i386_gregset): New declaration.
3540 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3541 structure.
3542 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3543 allocation.
3544
b7611c43
AA
35452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3546
3547 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3548 (arm_linux_vfpregset): New static regset structures.
3549 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3550 regset structures.
3551 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3552 and 'vfpregset' fields.
3553
a069a2bd
AA
35542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3555
3556 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3557 (aarch64_linux_fpregset): New static regset structures.
3558 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3559 of regset structures.
3560 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3561 'fpregset' fields.
3562
09424cff
AA
35632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3564
3565 * regset.h (struct regset): Remove gdbarch field.
3566 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3567 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3568 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3569 Likewise.
3570 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3571 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3572 (ppc32_linux_vsxregset): Likewise.
3573 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3574 via the regcache instead of the regset.
3575 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3576 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3577 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3578 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3579 Likewise.
3580
3ca7dae4
AA
35812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3582
3583 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3584 Constify structures.
3585 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3586 (alphanbsd_aout_gregset): Likewise.
3587 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3588 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3589 Likewise.
3590 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3591 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3592 Likewise.
3593 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3594 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3595 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3596 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3597 * m88k-tdep.c (m88k_gregset): Likewise.
3598 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3599 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3600 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3601 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3602 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3603 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3604 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3605 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3606 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3607 Likewise.
3608 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3609 * sh-tdep.h (sh_corefile_gregset): Likewise.
3610 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3611 * vax-tdep.c (vax_gregset): Likewise.
3612
5876f503
JK
36132014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3614
3615 Fix TLS access for -static -pthread.
3616 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3617 (try_thread_db_load_1): Initialize it.
3618 (thread_db_get_thread_local_address): Call it if LM is zero.
3619 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3620 * target.h (struct target_ops) (to_get_thread_local_address): Add
3621 load_module_addr comment.
3622
0256a6ac
PA
36232014-05-21 Pedro Alves <palves@redhat.com>
3624
3625 * dcache.c (dcache_read_memory_partial): If reading the cache line
3626 fails, fallback to reading just the memory the caller wanted.
3627
227533ac
DE
36282014-05-20 Doug Evans <dje@google.com>
3629
3630 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3631 instead of get_current_arch.
3632
936d2992
PA
36332014-05-20 Pedro Alves <palves@redhat.com>
3634
3635 * NEWS: Mention that compare-sections now works with all targets.
3636
3637 * remote.c (PACKET_qCRC): New enum value.
3638 (remote_verify_memory): Don't send qCRC if the target has no
3639 execution. Use packet_support/packet_ok. If the target doesn't
3640 support the qCRC packet, fallback to a deep memory copy.
3641 (compare_sections_command): Say "target image" instead of "remote
3642 executable".
3643 (_initialize_remote): Add PACKET_qCRC to the list of config
3644 packets that have no associated command. Extend comment.
3645 * target.c (simple_verify_memory, default_verify_memory): New
3646 function.
3647 * target.h (struct target_ops) <to_verify_memory>: Default to
3648 default_verify_memory.
3649 (simple_verify_memory): New declaration.
3650 * target-delegates.c: Regenerate.
3651
e59fa00f
MM
36522014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3653
3654 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3655
f2205de0
HZ
36562014-05-20 Hui Zhu <hui@codesourcery.com>
3657 Yao Qi <yao@codesourcery.com>
3658
3659 PR backtrace/16558
3660 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3661 and change address of sp and pc.
3662
c4e54771
TT
36632014-05-19 Tom Tromey <tromey@redhat.com>
3664
3665 * gdbtypes.c (rank_function): Use XNEWVEC.
3666 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3667
73051182
DE
36682014-05-19 Doug Evans <dje@google.com>
3669
3670 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3671 build_type_unit_groups and moved closer to only caller. Remove
3672 arguments. All references updated. Remove outdated .gdb_index
3673 comment.
3674 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3675 build_type_psymtabs_1.
3676
8832e7e3
DE
36772014-05-19 Doug Evans <dje@google.com>
3678
3679 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3680 n_type_unit_groups, all_type_unit_groups. All uses removed.
3681 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3682 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3683 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3684 (add_type_unit_group_to_table): Delete.
3685
cd8ae15e
DE
36862014-05-19 Doug Evans <dje@google.com>
3687
3688 * eval.c (evaluate_subexp_standard): Add some comments.
3689
08f4850b
DE
36902014-05-17 Doug Evans <xdje42@gmail.com>
3691
3692 * progspace.c (remove_program_space): Delete, unused.
3693 * progspace.h (remove_program_space): Ditto.
3694
bed8455c
DE
36952014-05-17 Doug Evans <xdje42@gmail.com>
3696
3697 * inferior.c (prune_inferiors): Fix comment.
3698 (remove_inferior_command): Call prune_program_spaces.
3699
8d551b02
DE
37002014-05-16 Doug Evans <dje@google.com>
3701
3702 New command line option -D.
3703 * NEWS: Mention it.
3704 * main.c (set_gdb_data_directory): New function.
3705 (captured_main): Recognize -D. Flag error for --data-directory "".
3706 Call set_gdb_data_directory.
3707 (print_gdb_help): Print --data-directory, -D.
3708 * main.h (set_gdb_data_directory): Declare.
3709 * top.c (staged_gdb_datadir): New static global.
3710 (set_gdb_datadir): Call set_gdb_data_directory
3711 (show_gdb_datadir): New function.
3712 (init_main): Update init of data-directory parameter.
3713
18848e28
GF
37142014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3715
3716 Import the "dirfd" gnulib module.
3717 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3718 * gnulib/aclocal.m4: Update.
3719 * gnulib/config.in: Update.
3720 * gnulib/configure: Update.
3721 * gnulib/import/Makefile.am: Update.
3722 * gnulib/import/Makefile.in: Update.
3723 * gnulib/import/dirfd.c: New.
3724 * gnulib/import/m4/dirfd.m4: New.
3725 * gnulib/import/m4/gnulib-cache.m4: Update.
3726 * gnulib/import/m4/gnulib-comp.m4: Update.
3727
95c64f92
YQ
37282014-05-16 Pierre Muller <muller@sourceware.org>
3729 Yao Qi <yao@codesourcery.com>
3730
3731 * valprint.c (print_wchar): Move the code on checking whether
3732 W is a printable wide char to the default branch of switch
3733 statement below. Call wchar_printable instead of gdb_iswprint.
3734
cac395ea
TM
37352014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3736
19679eca 3737 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
3738 ldr.w and ldrd instructions.
3739
83655187
DE
37402014-05-15 Doug Evans <dje@google.com>
3741
3742 * dwarf2read.c (read_structure_type): Delete outdated comments.
3743
dd756689
TT
37442014-05-14 Tom Tromey <tromey@redhat.com>
3745
3746 * macrocmd.c (print_macro_definition): Reindent.
3747
75ddda77
DE
37482014-05-13 Doug Evans <xdje42@gmail.com>
3749
3750 * python/py-cmd.c (cmdpy_completer): Add comment.
3751 (completers): Make const.
3752
b0f16a3e
SM
37532014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3754
3755 * infrun.c (resume): Remove should_resume (unused). Move up
3756 declaration of resume_ptid.
3757
033c3379
TT
37582014-05-13 Tom Tromey <tromey@redhat.com>
3759
3760 * language.h (unop_type_check): Remove.
3761 (binop_type_check): Don't declare.
3762
9b44a3a5
AA
37632014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3764
3765 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3766 call to regcache_raw_collect.
3767
303a33fa
SM
37682014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3769
3770 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3771 mi_console->quote as the quoting character.
3772
196100a0
SM
37732014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3774
3775 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3776
f989a1c8
TT
37772014-04-29 Tom Tromey <tromey@redhat.com>
3778
3779 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3780 "show debug varobj".
3781
9404b58f
KM
37822014-05-07 Kyle McMartin <kyle@redhat.com>
3783
3784 Pushed by Joel Brobecker <brobecker@adacore.com>.
3785 * aarch64-tdep.c (aarch64_software_single_step): New function.
3786 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3787 with aarch64_software_single_step.
3788
5e49ba57
JB
37892014-05-05 Joel Brobecker <brobecker@adacore.com>
3790
3791 GDB 7.7.1 released.
3792
c888a17d
KS
37932014-05-05 Keith Seitz <keiths@redhat.com>
3794
3795 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3796 variable or history value is successfully parsed.
3797
290a839c
YQ
37982014-05-05 Yao Qi <yao@codesourcery.com>
3799 Pedro Alves <palves@redhat.com>
3800
3801 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3802 address of blocks that intersects the requested range. Trim
3803 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3804 sections.
3805 * ctf.c (ctf_xfer_partial): Likewise.
3806
91256dc2
YQ
38072014-05-05 Yao Qi <yao@codesourcery.com>
3808
3809 * printcmd.c (display_command): Remove the check to
3810 target_has_execution.
3811
07284463
MK
38122014-05-03 Mark Kettenis <kettenis@gnu.org>
3813
3814 * ppcobsd-nat.c: Include "obsd-nat.h".
3815 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3816 add_target.
3817 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3818
30a1e6cc
SDJ
38192014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3820
3821 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3822 and 16-bit signed and unsigned arguments. Update comment.
3823 (stap_parse_probe_arguments): Extend code to handle such
3824 arguments. Use warning instead of complaint to notify about
3825 unrecognized bitness.
3826
f33da99a
SDJ
38272014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3828
3829 PR breakpoints/16889
3830 * stap-probe.c (stap_parse_probe_arguments): Simplify
3831 check for non-prefixed probes (i.e., probes whose
3832 arguments do not start with "N@"). Always set the
3833 argument type to a sane value.
3834
95cf3b38
DT
38352014-05-01 David Taylor <dtaylor@emc.com>
3836
3837 * remote.c (compare_sections_command): Add -r option to compare
3838 all loadable read-only sections.
3839
1cfdf534
SC
38402014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3841
3842 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3843 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3844 Update all callers.
3845 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3846 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3847 Remove unused CORE_ADDR argument. Update all callers.
3848
ca4f7f8b
PA
38492014-04-29 Pedro Alves <palves@redhat.com>
3850
3851 * remote.c (struct packet_config) <detect>: Extend comment.
3852 (add_packet_config_cmd): Don't set the config's detect or support
3853 fields here.
3854 (init_all_packet_configs): Also initialize the config's 'detect'
3855 field.
3856 (reset_all_packet_configs_support): New function.
3857 (remote_open_1): Call reset_all_packet_configs_support instead of
3858 init_all_packet_configs.
3859 (_initialize_remote): Initialize all packet configs. Assert that
3860 all packets have an associated command, except a few known
3861 outliers.
3862
11c1ba78
JB
38632014-04-28 Joel Brobecker <brobecker@adacore.com>
3864
3865 * dwarf2read.c (read_subrange_type): Handle dynamic
3866 DW_AT_lower_bound attributes.
3867
8739bc53
JB
38682014-04-28 Joel Brobecker <brobecker@adacore.com>
3869
3870 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3871 dynamic bounds before computing its upper bound.
3872 (ada_discrete_type_low_bound): Same as above with the lower bound.
3873
6f8a3220
JB
38742014-04-28 Joel Brobecker <brobecker@adacore.com>
3875
3876 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3877 range types. Adjust the array handling implementation to
3878 take advantage of this change.
3879 (resolve_dynamic_range): New function, mostly extracted from
3880 resolve_dynamic_bounds.
3881 (resolve_dynamic_array): New function, mostly extracted from
3882 resolve_dynamic_bounds.
3883 (resolve_dynamic_bounds): Delete.
3884 (resolve_dynamic_type): Reimplement. Add handling of
3885 TYPE_CODE_RANGE types.
3886
4d072ce4
JB
38872014-04-28 Joel Brobecker <brobecker@adacore.com>
3888
3889 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3890 handling of parallel ___XA types.
3891
52865325
JB
38922014-04-28 Joel Brobecker <brobecker@adacore.com>
3893
3894 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3895 unnecessary second call to static_unwrap_type.
3896
433e77fa
HZ
38972014-04-27 Hui Zhu <hui@codesourcery.com>
3898
3899 * stack.c (print_frame_info): Call do_gdb_disassembly with
3900 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3901
b51a69ee
DE
39022014-04-26 Doug Evans <xdje42@gmail.com>
3903
3904 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3905
7ae1a6a6
PA
39062014-04-25 Pedro Alves <palves@redhat.com>
3907
3908 PR server/16255
3909 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3910 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3911 and newline from built string.
3912 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3913 (linux_ptrace_attach_fail_reason): ... this.
3914 * linux-nat.c (linux_nat_attach): Adjust to use
3915 linux_ptrace_attach_fail_reason.
3916
4082afcc
PA
39172014-04-25 Pedro Alves <palves@redhat.com>
3918
3919 * remote.c (struct remote_state): Remove multi_process_aware,
3920 non_stop_aware, cond_tracepoints, cond_breakpoints,
3921 breakpoint_commands, fast_tracepoints, static_tracepoints,
3922 install_in_trace, disconnected_tracing,
3923 enable_disable_tracepoints, string_tracing, and
3924 augmented_libraries_svr4_read fields.
3925 (remote_multi_process_p): Move further below in the file.
3926 (struct packet_config): Add comments.
3927 (update_packet_config): Delete function.
3928 (show_packet_config_cmd): Use packet_config_support.
3929 (add_packet_config_cmd): Use NULL as set callback.
3930 (packet_ok): "set remote foo-packet"-style commands no longer
3931 change config->supported -- adjust.
3932 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3933 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3934 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3935 (PACKET_QNonStop, PACKET_multiprocess_feature)
3936 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3937 (PACKET_DisconnectedTracing_feature)
3938 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3939 (set_remote_protocol_packet_cmd): Delete function.
3940 (packet_config_support, packet_support): New functions.
3941 (set_remote_protocol_Z_packet_cmd): Don't call
3942 update_packet_config.
3943 (remote_query_attached, remote_pass_signals)
3944 (remote_program_signals, remote_threads_info)
3945 (remote_threads_extra_info, remote_start_remote): Use
3946 packet_support.
3947 (remote_start_remote): Use packet_config_support and
3948 packet_support.
3949 (init_all_packet_configs): Set all packets to unknown support,
3950 instead of calling update_packet_config.
3951 (remote_check_symbols): Use packet_support.
3952 (remote_supported_packet): Unconditionally set the packet config's
3953 support status.
3954 (remote_multi_process_feature, remote_non_stop_feature)
3955 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3956 (remote_breakpoint_commands_feature)
3957 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3958 (remote_install_in_trace_feature)
3959 (remote_disconnected_tracing_feature)
3960 (remote_enable_disable_tracepoint_feature)
3961 (remote_string_tracing_feature)
3962 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3963 (remote_protocol_features): Adjust to use remote_supported_packet
3964 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3965 "ConditionalTracepoints", "ConditionalBreakpoints",
3966 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3967 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3968 "EnableDisableTracepoints", and "tracenz".
3969 (remote_query_supported): Use packet_support.
3970 (remote_open_1): Adjust.
3971 (extended_remote_attach_1): Use packet_support. Switch on the
3972 result of packet_ok instead of checking whether the packet ended
3973 up disabled.
3974 (remote_vcont_resume): Use packet_support.
3975 (remote_resume, remote_stop_ns, fetch_register_using_p)
3976 (remote_prepare_to_store, store_register_using_P)
3977 (check_binary_download, remote_write_bytes): Use packet_support.
3978 (remote_vkill): Use packet_support. Switch on the result of
3979 packet_ok instead of checking whether the packet ended up
3980 disabled.
3981 (extended_remote_supports_disable_randomization): Use
3982 packet_support.
3983 (extended_remote_run): Switch on the result of packet_ok instead
3984 of checking whether the packet ended up disabled.
3985 (remote_insert_breakpoint, remote_remove_breakpoint)
3986 (remote_insert_watchpoint, remote_remove_watchpoint)
3987 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3988 packet_support.
3989 (remote_search_memory): Use packet_config_support.
3990 (remote_get_thread_local_address, remote_get_tib_address)
3991 (remote_hostio_send_command, remote_can_execute_reverse): Use
3992 packet_support.
3993 (remote_supports_cond_tracepoints)
3994 (remote_supports_cond_breakpoints)
3995 (remote_supports_fast_tracepoints)
3996 (remote_supports_static_tracepoints)
3997 (remote_supports_install_in_trace)
3998 (remote_supports_enable_disable_tracepoint)
3999 (remote_supports_string_tracing)
4000 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4001 the packet config says the feature is enabled or disabled.
4002 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4003 (remote_get_trace_status): Use packet_support.
4004 (remote_set_disconnected_tracing): Adjust to check whether the
4005 feature is enabled with packet_support.
4006 (remote_set_trace_buffer_size, remote_use_agent)
4007 (remote_can_use_agent, remote_supports_btrace): Use
4008 packet_support.
4009 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4010 Use packet_config_support.
4011 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4012 the packet config says the feature is enabled or disabled.
4013 (set_range_stepping): Use packet_support.
4014
bdb52a22
TT
40152014-04-25 Tom Tromey <tromey@redhat.com>
4016
4017 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4018 argument.
4019
e9475ead
SA
40202014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4021
4022 * NEWS: Mention support for C99 variable length arrays.
4023
82eacd52
JB
40242014-04-24 Joel Brobecker <brobecker@adacore.com>
4025
4026 * ada-lang.c (standard_exc): Expand introductory comment.
4027
01f9f808
MS
40282014-04-24 Michael Sturm <michael.sturm@mintel.com>
4029 Walfred Tedeschi <walfred.tedeschi@intel.com>
4030
4031 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4032 AVX512 registers.
4033 (amd64_linux_read_description): Add code to handle AVX512 xstate
4034 mask and return respective tdesc.
4035 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4036 and features/i386/x32-avx512-linux.c.
4037 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4038 (amd64_linux_core_read_description): Add code to handle AVX512
4039 xstate mask and return respective tdesc.
4040 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4041 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4042 calculation.
4043 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4044 (tdesc_amd64_avx512_linux): New prototype.
4045 (tdesc_x32_avx512_linux): Likewise.
4046 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4047 features/i386/x32-avx512.c.
4048 (amd64_ymm_avx512_names): New register names for pseudo
4049 registers YMM16-31.
4050 (amd64_ymmh_avx512_names): New register names for raw registers
4051 YMMH16-31.
4052 (amd64_k_names): New register names for K registers.
4053 (amd64_zmmh_names): New register names for ZMM raw registers.
4054 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4055 (amd64_xmm_avx512_names): New register names for XMM16-31
4056 registers.
4057 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4058 registers.
4059 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4060 if feature is present.
4061 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4062 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4063 (AMD64_NUM_REGS): Adjust to new number of registers.
4064 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4065 registers supplied via XSTATE by AVX512 registers.
4066 (i386_linux_read_description): Add case for AVX512.
4067 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4068 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4069 (i386_linux_core_read_description): Add case for AVX512.
4070 (i386_linux_init_abi): Install supported register note section
4071 for AVX512.
4072 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4073 AVX512.
4074 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4075 registers to be number of zmm7h + 1.
4076 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4077 * i386-tdep.c: Include features/i386/i386-avx512.c.
4078 (i386_zmm_names): Add ZMM pseudo register names array.
4079 (i386_zmmh_names): Add ZMM raw register names array.
4080 (i386_k_names): Add K raw register names array.
4081 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4082 registers. AVX512 has 16 more ZMM registers than there are YMM
4083 registers.
4084 (i386_zmmh_regnum_p): Add function to look up register number of
4085 ZMM raw registers.
4086 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4087 (i386_k_regnum_p): Likewise for K raw registers.
4088 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4089 registers added by AVX512.
4090 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4091 registers added by AVX512.
4092 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4093 added by AVX512.
4094 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4095 (i386_pseudo_register_name): Add ZMM pseudo registers.
4096 (i386_zmm_type): Construct and return vector registers type for ZMM
4097 registers.
4098 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4099 ZMM0-31 pseudo registers and K registers.
4100 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4101 and YMM16-31 registers from register cache.
4102 (i386_pseudo_register_write): Add code to write K, ZMM and
4103 YMM16-31 registers.
4104 (i386_register_reggroup_p): Add code to include/exclude AVX512
4105 registers in/from respective register groups.
4106 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4107 registers if feature is present in xcr0.
4108 (i386_gdbarch_init): Add code to initialize AVX512 feature
4109 variables in tdep structure, wire in pseudo registers and call
4110 initialize_tdesc_i386_avx512.
4111 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4112 variables.
4113 (i386_regnum): Add AVX512 registers.
4114 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4115 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4116 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4117 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4118 512 bits wide.
4119 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4120 (i386_ymm_avx512_regnum_p): Likewise.
4121 (i386_k_regnum_p): Likewise.
4122 (i386_zmm_regnum_p): Likewise.
4123 (i386_zmmh_regnum_p): Likewise.
4124 * i387-tdep.c : Update year in copyright notice.
4125 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4126 XSAVE buffer.
4127 (XSAVE_YMM_AVX512_ADDR): New macro.
4128 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4129 XSAVE buffer.
4130 (XSAVE_XMM_AVX512_ADDR): New macro.
4131 (xsave_avx512_k_offset): New table for K register offsets in
4132 XSAVE buffer.
4133 (XSAVE_AVX512_K_ADDR): New macro.
4134 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4135 in XSAVE buffer.
4136 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4137 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4138 buffer.
4139 (i387_collect_xsave): Add code to collect AVX512 registers from
4140 XSAVE buffer.
4141 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4142 of XMM16-31 registers.
4143 (I387_NUM_K_REGS): New define for number of K registers.
4144 (I387_K0_REGNUM): New define for K0 register number.
4145 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4146 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4147 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4148 registers.
4149 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4150 (I387_XMM16_REGNUM): New define for XMM16 register number.
4151 (I387_YMM0_REGNUM): New define for YMM0 register number.
4152 (I387_KEND_REGNUM): New define for last K register number.
4153 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4154 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4155 number.
4156 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4157 number.
4158 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4159 size.
4160 * features/Makefile: Add AVX512 related files.
4161 * features/i386/32bit-avx512.xml: New file.
4162 * features/i386/64bit-avx512.xml: Likewise.
4163 * features/i386/amd64-avx512-linux.c: Likewise.
4164 * features/i386/amd64-avx512-linux.xml: Likewise.
4165 * features/i386/amd64-avx512.c: Likewise.
4166 * features/i386/amd64-avx512.xml: Likewise.
4167 * features/i386/i386-avx512-linux.c: Likewise.
4168 * features/i386/i386-avx512-linux.xml: Likewise.
4169 * features/i386/i386-avx512.c: Likewise.
4170 * features/i386/i386-avx512.xml: Likewise.
4171 * features/i386/x32-avx512-linux.c: Likewise.
4172 * features/i386/x32-avx512-linux.xml: Likewise.
4173 * features/i386/x32-avx512.c: Likewise.
4174 * features/i386/x32-avx512.xml: Likewise.
4175 * regformats/i386/amd64-avx512-linux.dat: New file.
4176 * regformats/i386/amd64-avx512.dat: Likewise.
4177 * regformats/i386/i386-avx512-linux.dat: Likewise.
4178 * regformats/i386/i386-avx512.dat: Likewise.
4179 * regformats/i386/x32-avx512-linux.dat: Likewise.
4180 * regformats/i386/x32-avx512.dat: Likewise.
4181 * NEWS: Add note about new support for AVX512.
4182
4183
08351840
PA
41842014-04-23 Pedro Alves <palves@redhat.com>
4185
4186 * breakpoint.c (insert_bp_location): Tolerate errors if the
4187 breakpoint is set in a user-loaded objfile.
4188 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4189 location is marked shlib_disabled. If the breakpoint is set in a
4190 user-loaded objfile is a GDB-side memory breakpoint, validate it
4191 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4192 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4193 flag.
4194 * mem-break.c (memory_validate_breakpoint): New function.
4195 * objfiles.c (userloaded_objfile_contains_address_p): New
4196 function.
4197 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4198 * target.h (memory_validate_breakpoint): New declaration.
4199
076855f9
PA
42002014-04-23 Pedro Alves <palves@redhat.com>
4201
4202 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4203 the breakpoint is set in a shared library, only suppress
4204 errors for software breakpoints, not hardware breakpoints.
4205
483805cf
PA
42062014-04-22 Pedro Alves <palves@redhat.com>
4207
4208 * infrun.c (schedlock_applies): New function, factored out from
4209 find_thread_needs_step_over.
4210 (find_thread_needs_step_over): Use it.
4211 (switch_back_to_stepped_thread): Always clear trap_expected if the
4212 step over is finished. Return early if scheduler locking applies.
4213 Look for the stepping thread and a potential step-over thread with
4214 a single loop.
4215 (currently_stepping_or_nexting_callback): Delete.
4216
a75fef0e
NC
42172014-04-22 Nick Clifton <nickc@redhat.com>
4218
4219 * NEWS: Mention that ARM sim now supports tracing.
4220
48b6e87e
YQ
42212014-04-22 Yao Qi <yao@codesourcery.com>
4222
4223 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4224 to ...
4225 * tracefile.c (tracefile_fetch_registers): ... it. New
4226 function.
4227 * tracefile.h (tracefile_fetch_registers): Declare.
4228 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4229 tracefile_fetch_registers.
4230
17617f2d
EZ
42312014-04-19 Eli Zaretskii <eliz@gnu.org>
4232
4233 PR gdb/14018
4234 * windows-nat.c (thread_rec): Don't display a warning when
4235 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4236 fails for any reason, set th->suspended to -1, so that we don't
4237 try to resume such a thread. Also, don't return NULL in these
4238 cases, to avoid completely ruin the session due to "PC register is
4239 not available" error.
4240 (do_windows_fetch_inferior_registers): Check errors in
4241 GetThreadContext call.
4242 (windows_continue): Accept an additional argument KILLED; if not
4243 zero, ignore errors in the SetThreadContext call, since the
4244 inferior was killed and is shutting down.
4245 (windows_resume, get_windows_debug_event)
4246 (windows_create_inferior, windows_mourn_inferior)
4247 (windows_kill_inferior): All callers of windows_continue changed
4248 to adjust to its new calling sequence.
4249
5723a6fd
YQ
42502014-04-19 Yao Qi <yao@codesourcery.com>
4251
4252 * ctf.c (ctf_open): Call post_create_inferior.
4253
614d5099
YQ
42542014-04-19 Yao Qi <yao@codesourcery.com>
4255
4256 * ctf.c (handle_id): New static variable.
4257 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4258 value. Get the declaration of event "register" and get length
4259 of field "contents".
4260
dac3e710
YQ
42612014-04-19 Yao Qi <yao@codesourcery.com>
4262
4263 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4264
2bca57ba
SC
42652014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4266
4267 * valops.c (oload_method_static): Remove unnecessary argument
4268 METHOD. Update all callers.
4269
51d48146
PA
42702014-04-18 Pedro alves <palves@redhat.com>
4271 Tom Tromey <tromey@redhat.com>
4272
4273 PR backtrace/15558
4274 * frame.c (get_prev_frame_1): Rename to ...
4275 (get_prev_frame_always): ... this, and make extern. Adjust.
4276 (skip_artificial_frames): Use get_prev_frame_always.
4277 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4278 (get_frame_unwind_stop_reason): Adjust to rename.
4279 * frame.h (get_prev_frame_always): Declare.
4280 * inline-frame.c: Include frame.h.
4281 (inline_frame_this_id): Use get_prev_frame_always.
4282
1bdad2e0
TG
42832014-04-18 Tristan Gingold <gingold@adacore.com>
4284
4285 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4286 code by using bfd_mach_o_get_base_address.
4287
7ce16bd4
UW
42882014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4289
4290 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4291 (spu_ax_pseudo_register_collect): New function.
4292 (spu_ax_pseudo_register_push_stack): Likewise.
4293 (spu_dwarf_reg_to_regnum): Likewise.
4294 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4295
2ed3c037
UW
42962014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4297
4298 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4299 Replace FRAME argument with FRAME_ID.
4300 * gdbarch.c, gdbarch.h: Regenerate.
4301 * findvar.c (default_value_from_register): Add GDBARCH argument;
4302 replace FRAME by FRAME_ID. No longer call get_frame_id.
4303 (value_from_register): Update call to gdbarch_value_from_register.
4304 * value.h (default_value_from_register): Update prototype.
4305 * s390-linux-tdep.c (s390_value_from_register): Update interface
4306 and call to default_value_from_register.
4307 * spu-tdep.c (spu_value_from_register): Likewise.
4308
4309 * findvar.c (address_from_register): Remove TYPE argument.
4310 Do not call value_from_register; use gdbarch_value_from_register
4311 with null_frame_id instead.
4312 * value.h (address_from_register): Update prototype.
4313 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4314 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4315 address_from_register interface change.
4316
71e50e83
YQ
43172014-04-17 Yao Qi <yao@codesourcery.com>
4318
4319 * gdbtypes.h: Update comments to link to types and macros'
4320 definitions.
4321
7a23c549
SC
43222014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4323
4324 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4325
22869d73
KS
43262014-04-16 Keith Seitz <keiths@redhat.com>
4327
4328 PR gdb/15827
4329 * dwarf2read.c (skip_one_die): Check that all relative-offset
4330 sibling DIEs fall within range of the current reader's buffer.
4331 (read_partial_die): Likewise.
4332
c4f87ca6
KS
43332014-04-16 Keith Seitz <keiths@redhat.com>
4334
4335 PR c++/16597
4336 * cp-namespace.c (lookup_symbol_file): If the type name of
4337 `this' is NULL, return immediately.
4338
b50c8614
KS
43392014-04-14 Keith Seitz <keiths@redhat.com>
4340
4341 PR c++/16253
4342 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4343 from symbol_matches_domain in symtab.c. All local callers
4344 of symbol_matches_domain updated.
4345 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4346 search STRUCT_DOMAIN.
4347 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4348 independently. standard_lookup will do that automatically.
4349 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4350 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4351 (cp_lookup_symbol_in_namespace): Likewise.
4352 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4353 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4354 may return a STRUCT_DOMAIN match.
4355 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4356 * cp-support.c: Include language.h.
4357 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4358 VAR_DOMAIN.
4359 * psymtab.c (match_partial_symbol): Compare the requested
4360 domain with the symbol's domain directly.
4361 (lookup_partial_symbol): Likewise.
4362 * symtab.c (lookup_symbol_in_language): Explain when/why
4363 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4364 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4365 appropriate languages.
4366 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4367 and moved to ada-lang.c
4368 (lookup_block_symbol): Explain that this function only returns
4369 symbol matching the requested DOMAIN.
4370 Compare the requested domain with the symbol's domain directly.
4371 (iterate_over_symbols): Compare the requested domain with the
4372 symbol's domain directly.
4373 * symtab.h (symbol_matches_domain): Remove.
4374
3d567982
TT
43752014-04-14 Tom Tromey <tromey@redhat.com>
4376
4377 PR c++/15246:
4378 * c-exp.y (type_aggregate_p): New function.
4379 (qualified_name, classify_inner_name): Use it.
4380 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4381 and TYPE_TARGET_TYPE of an enum type.
4382 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4383 an enum type.
4384 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4385 handle TYPE_DECLARED_CLASS.
4386 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4387 types.
4388 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4389 * valops.c (enum_constant_from_type): New function.
4390 (value_aggregate_elt): Use it.
4391 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4392 TYPE_CODE_ENUM.
4393
c848d642
TT
43942014-04-14 Tom Tromey <tromey@redhat.com>
4395
4396 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4397 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4398 const.
4399 * value.h (value_aggregate_elt): Update.
4400
0626fc76
TT
44012014-04-14 Tom Tromey <tromey@redhat.com>
4402
4403 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4404
5ecaaa66
SA
44052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4406
4407 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4408 (evaluate_subexp_standard): Pass noside argument.
4409 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4410 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4411 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4412 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4413 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4414
1612e0c0
SA
44152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4416
4417 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4418 points to a constant blob.
4419
c451ebe5
SA
44202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4421
4422 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4423 property and store it as the high bound and flag the range accordingly.
4424 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4425 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4426 * gdbtypes.h (enum range_flags): New enum.
4427 (struct range_bounds): Add flags member.
4428
1d42e4c4
SA
44292014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4430
4431 * c-typeprint.c (c_type_print_varspec_suffix): Added
4432 check for not yet resolved high bound. If unresolved, print
4433 "variable length" string to the console instead of random
4434 length.
4435
9f1f738a
SA
44362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4437
4438 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4439 value.
4440 (ada_template_to_fixed_record_type_1): Likewise.
4441 (ada_to_fixed_type_1): Likewise.
4442 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4443 (cp_print_value): Likewise.
4444 * d-valprint.c (dynamic_array_type): Likewise.
4445 * findvar.c (address_of_variable): Likewise.
4446 * jv-valprint.c (java_value_print): Likewise.
4447 * valops.c (value_ind): Likewise.
4448 * value.c (coerce_ref): Likewise.
4449
3c8452d4
SA
44502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4451
4452 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4453 value and retrieve the dynamic type size.
4454
4ad88275
SA
44552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4456
4457 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4458 passed to sizeof is dynamic evaluate the argument to compute the length.
4459
80180f79
SA
44602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4461 Joel Brobecker <brobecker@adacore.com>
4462
4463 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4464 (dwarf2_evaluate_property): New function.
4465 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4466 * dwarf2read.c (attr_to_dynamic_prop): New function.
4467 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4468 attribute.
4469 * gdbtypes.c: Include dwarf2loc.h.
4470 (is_dynamic_type): New function.
4471 (resolve_dynamic_type): New function.
4472 (resolve_dynamic_bounds): New function.
4473 (get_type_length): New function.
4474 (check_typedef): Use get_type_length to compute type length.
4475 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4476 (TYPE_LOW_BOUND_KIND): New macro.
4477 (is_dynamic_type): New function prototype.
4478 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4479 to resolve dynamic properties of the type. Update comment.
4480 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4481
a1556843
RH
44822014-04-14 Richard Henderson <rth@redhat.com>
4483
4484 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4485
0be03e84
DE
44862014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4487 Doug Evans <xdje42@gmail.com>
4488
4489 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4490 dereference TYPE_CODE_REF values.
4491
6b662e19
JB
44922014-04-11 Joel Brobecker <brobecker@adacore.com>
4493
4494 Revert the following changes due to regressions:
4495
4496 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4497 (dwarf2_evaluate_property): New function.
4498 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4499 * dwarf2read.c (attr_to_dynamic_prop): New function.
4500 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4501 attribute.
4502 * gdbtypes.c: Include dwarf2loc.h.
4503 (is_dynamic_type): New function.
4504 (resolve_dynamic_type): New function.
4505 (resolve_dynamic_bounds): New function.
4506 (get_type_length): New function.
4507 (check_typedef): Use get_type_length to compute type length.
4508 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4509 (TYPE_LOW_BOUND_KIND): New macro.
4510 (is_dynamic_type): New function prototype.
4511 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4512 to resolve dynamic properties of the type. Update comment.
4513 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4514
4515 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4516 passed to sizeof is dynamic evaluate the argument to compute the length.
4517
4518 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4519 value and retrieve the dynamic type size.
4520
4521 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4522 (ada_template_to_fixed_record_type_1): Likewise.
4523 (ada_to_fixed_type_1): Likewise.
4524 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4525 (cp_print_value): Likewise.
4526 * d-valprint.c (dynamic_array_type): Likewise.
4527 * eval.c (evaluate_subexp_with_coercion): Likewise.
4528 * findvar.c (address_of_variable): Likewise.
4529 * jv-valprint.c (java_value_print): Likewise.
4530 * valops.c (value_ind): Likewise.
4531 * value.c (coerce_ref): Likewise.
4532
4533 * c-typeprint.c (c_type_print_varspec_suffix): Added
4534 check for not yet resolved high bound. If unresolved, print
4535 "variable length" string to the console instead of random
4536 length.
4537
4538 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4539 property and store it as the high bound and flag the range accordingly.
4540 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4541 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4542 * gdbtypes.h (enum range_flags): New enum.
4543 (struct range_bounds): Add flags member.
4544
4545 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4546 points to a constant blob.
4547
4548 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4549 (evaluate_subexp_standard): Pass noside argument.
4550 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4551 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4552 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4553 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4554 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4555
245a5f0b
KS
45562014-04-11 Keith Seitz <keiths@redhat.com>
4557
4558 PR c++/16675
4559 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4560 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4561 reference types.
4562
3bce8237
SA
45632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4564
4565 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4566 (evaluate_subexp_standard): Pass noside argument.
4567 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4568 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4569 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4570 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4571 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4572
92b09522
SA
45732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4574
4575 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4576 points to a constant blob.
4577
e1969afb
SA
45782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4579
4580 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4581 property and store it as the high bound and flag the range accordingly.
4582 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4583 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4584 * gdbtypes.h (enum range_flags): New enum.
4585 (struct range_bounds): Add flags member.
4586
b86138fb
SA
45872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4588
4589 * c-typeprint.c (c_type_print_varspec_suffix): Added
4590 check for not yet resolved high bound. If unresolved, print
4591 "variable length" string to the console instead of random
4592 length.
4593
bcd629a4
SA
45942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4595
4596 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4597 (ada_template_to_fixed_record_type_1): Likewise.
4598 (ada_to_fixed_type_1): Likewise.
4599 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4600 (cp_print_value): Likewise.
4601 * d-valprint.c (dynamic_array_type): Likewise.
4602 * eval.c (evaluate_subexp_with_coercion): Likewise.
4603 * findvar.c (address_of_variable): Likewise.
4604 * jv-valprint.c (java_value_print): Likewise.
4605 * valops.c (value_ind): Likewise.
4606 * value.c (coerce_ref): Likewise.
4607
04b19544
SA
46082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4609
4610 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4611 value and retrieve the dynamic type size.
4612
26cb189f
SA
46132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4614
4615 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4616 passed to sizeof is dynamic evaluate the argument to compute the length.
4617
37c1ab67
SA
46182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4619
4620 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4621 (dwarf2_evaluate_property): New function.
4622 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4623 * dwarf2read.c (attr_to_dynamic_prop): New function.
4624 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4625 attribute.
4626 * gdbtypes.c: Include dwarf2loc.h.
4627 (is_dynamic_type): New function.
4628 (resolve_dynamic_type): New function.
4629 (resolve_dynamic_bounds): New function.
4630 (get_type_length): New function.
4631 (check_typedef): Use get_type_length to compute type length.
4632 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4633 (TYPE_LOW_BOUND_KIND): New macro.
4634 (is_dynamic_type): New function prototype.
4635 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4636 to resolve dynamic properties of the type. Update comment.
4637 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4638
729efb13
SA
46392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4640
4641 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4642 declaring high/low bounds and change uses accordingly. Call
4643 create_range_type instead of create_static_range_type.
4644 * gdbtypes.c (create_range_type): New function.
4645 (create_range_type): Convert bounds into struct bound_prop and pass
4646 them to create_range_type.
4647 * gdbtypes.h (struct bound_prop): New struct.
4648 (create_range_type): New function prototype.
4649 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4650 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4651 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4652 part of the bound.
4653 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4654
0c9c3474
SA
46552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4656
4657 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4658 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4659 * ada-lang.c: All uses of create_range_type updated.
4660 * coffread.c: All uses of create_range_type updated.
4661 * dwarf2read.c: All uses of create_range_type updated.
4662 * f-exp.y: All uses of create_range_type updated.
4663 * m2-valprint.c: All uses of create_range_type updated.
4664 * mdebugread.c: All uses of create_range_type updated.
4665 * stabsread.c: All uses of create_range_type updated.
4666 * valops.c: All uses of create_range_type updated.
4667 * valprint.c: All uses of create_range_type updated.
4668
9d497a19
PA
46692014-04-10 Pedro Alves <palves@redhat.com>
4670
4671 * breakpoint.c (single_step_breakpoints)
4672 (single_step_gdbarch): Move up in the file.
4673 (one_breakpoint_xfer_memory): New function, factored out from ...
4674 (breakpoint_xfer_memory): ... here. Also process single-step
4675 breakpoints.
4676
15a9128a
TG
46772014-04-09 Tristan Gingold <gingold@adacore.com>
4678
4679 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4680 comments.
4681 (darwin_decode_exception_message): Free port only after use.
4682
9c97a070
PL
46832014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4684
4685 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4686 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4687 when setting the size of call_length.
4688
7af389b8
SC
46892014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4690
4691 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4692 dereference TYPE_CODE_REF values.
4693
86ad98c3
JB
46942014-04-07 Joel Brobecker <brobecker@adacore.com>
4695
4696 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4697 end of warning message.
4698
b0aeadb3
DE
46992014-04-03 Doug Evans <dje@google.com>
4700
4701 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4702 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4703
5979d6b6
AM
47042014-04-02 Alan Modra <amodra@gmail.com>
4705
4706 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4707 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4708 (struct symbol_file_add_from_memory_args): Add size field.
4709 (find_vdso_size): New function.
4710 (add_vsyscall_page): Attempt to find vdso size.
4711
0d60c288
DE
47122014-04-01 Doug Evans <dje@google.com>
4713
4714 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4715
a41f2563
TG
47162014-04-01 Tristan Gingold <gingold@adacore.com>
4717
4718 * darwin-nat.c (darwin_encode_reply): Add prototype.
4719 (darwin_decode_exception_message): Reply to unknown inferiors.
4720 (darwin_decode_message): Handle message by id. Ignore message
4721 to unknown inferior.
4722 (darwin_wait): Discard unknown messages, add debug trace.
4723
11a865c8
DE
47242014-03-31 Doug Evans <dje@google.com>
4725
4726 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4727 comp_dir_string.
4728
770e7fc7
DE
47292014-03-31 Doug Evans <dje@google.com>
4730
4731 New option "set print symbol-loading".
4732 * NEWS: Mention it.
4733 * solib.c (solib_read_symbols): Only print symbol loading messages
4734 if requested.
4735 (solib_add): If symbol loading is in "brief" mode, notify user
4736 symbols are being loaded.
4737 (reload_shared_libraries_1): Ditto.
4738 * symfile.c (print_symbol_loading_off): New static global.
4739 (print_symbol_loading_brief): New static global.
4740 (print_symbol_loading_full): New static global.
4741 (print_symbol_loading_enums): New static global.
4742 (print_symbol_loading): New static global.
4743 (print_symbol_loading_p): New function.
4744 (symbol_file_add_with_addrs): Only print symbol loading messages
4745 if requested.
4746 (_initialize_symfile): Register "print symbol-loading" set/show
4747 command.
4748 * symfile.h (print_symbol_loading_p): Declare.
4749
c32c64b7
DE
47502014-03-30 Doug Evans <xdje42@gmail.com>
4751
4752 * infrun.c (set_last_target_status): New function.
4753 (handle_inferior_event): Call it.
4754
7c0bc051
DE
47552014-03-30 Doug Evans <xdje42@gmail.com>
4756
4757 * inferior.h (enum stop_kind): Improve comment.
4758
8776cfe9
JB
47592014-03-28 Joel Brobecker <brobecker@adacore.com>
4760
4761 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4762 a reference, strip the reference layer before calling
4763 the lang_ops value_has_mutated callback.
4764
410a0ff2
SDJ
47652014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4766
4767 Remove some globals from our parser.
4768 * language.c (unk_lang_parser): Add "struct parser_state"
4769 argument.
4770 * language.h (struct language_defn) <la_parser>: Likewise.
4771 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4772 (initialize_expout): Add "struct parser_state" argument.
4773 Rewrite function to use the parser state.
4774 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4775 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4776 write_exp_elt_longcst, write_exp_elt_dblcst,
4777 write_exp_elt_decfloatcst, write_exp_elt_type,
4778 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4779 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4780 write_dollar_variable): Likewise.
4781 (parse_exp_in_context_1): Use parser state.
4782 (insert_type_address_space): Add "struct parser_state" argument.
4783 Use parser state.
4784 (increase_expout_size): New function.
4785 * parser-defs.h: Forward declare "struct language_defn" and
4786 "struct parser_state".
4787 (expout, expout_size, expout_ptr): Remove extern declarations.
4788 (parse_gdbarch, parse_language): Rewrite macro declarations to
4789 accept the parser state.
4790 (struct parser_state): New struct.
4791 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4792 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4793 write_exp_elt_decfloatcst, write_exp_elt_type,
4794 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4795 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4796 write_exp_msymbol, write_dollar_variable,
4797 mark_struct_expression, insert_type_address_space): Add "struct
4798 parser_state" argument.
4799 (increase_expout_size): New function.
4800 * utils.c (do_clear_parser_state): New function.
4801 (make_cleanup_clear_parser_state): Likewise.
4802 * utils.h (make_cleanup_clear_parser_state): New function
4803 prototype.
4804 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4805 Update calls to write_exp* in order to pass the parser state.
4806 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4807 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4808 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4809 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4810 * stap-probe.c (stap_parse_register_operand): Likewise.
4811 (stap_parse_single_operand): Likewise.
4812 (stap_parse_argument_1): Likewise.
4813 (stap_parse_argument): Use parser state.
4814 * stap-probe.h: Include "parser-defs.h".
4815 (struct stap_parse_info) <pstate>: New field.
4816 * c-exp.y (parse_type): Rewrite to use parser state.
4817 (yyparse): Redefine to c_parse_internal.
4818 (pstate): New global variable.
4819 (parse_number): Add "struct parser_state" argument.
4820 (write_destructor_name): Likewise.
4821 (type_exp): Update calls to write_exp* and similars in order to
4822 use parser state.
4823 (exp1, exp, variable, qualified_name, space_identifier,
4824 typename, typebase): Likewise.
4825 (write_destructor_name, parse_number, lex_one_token,
4826 classify_name, classify_inner_name, c_parse): Add "struct
4827 parser_state" argument. Update function to use parser state.
4828 * c-lang.h: Forward declare "struct parser_state".
4829 (c_parse): Add "struct parser_state" argument.
4830 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4831 (yyparse): Redefine macro to ada_parse_internal.
4832 (pstate): New variable.
4833 (write_int, write_object_renaming, write_var_or_type,
4834 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4835 type_int, type_long, type_long_long, type_float, type_double,
4836 type_long_double, type_char, type_boolean, type_system_address):
4837 Add "struct parser_state" argument.
4838 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4839 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4840 var_or_type, aggregate, aggregate_component_list,
4841 positional_list, others, component_group,
4842 component_associations): Update calls to write_exp* and similar
4843 functions in order to use parser state.
4844 (ada_parse, write_var_from_sym, write_int,
4845 write_exp_op_with_string, write_object_renaming,
4846 find_primitive_type, write_selectors, write_ambiguous_var,
4847 write_var_or_type, write_name_assoc, type_int, type_long,
4848 type_long_long, type_float, type_double, type_long_double,
4849 type_char, type_boolean, type_system_address): Add "struct
4850 parser_state" argument. Adjust function to use parser state.
4851 * ada-lang.c (parse): Likewise.
4852 * ada-lang.h: Forward declare "struct parser_state".
4853 (ada_parse): Add "struct parser_state" argument.
4854 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4855 calls to both functions.
4856 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4857 parser state.
4858 (yyparse): Redefine macro to f_parse_internal.
4859 (pstate): New variable.
4860 (parse_number): Add "struct parser_state" argument.
4861 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4862 and similars in order to use parser state.
4863 (parse_number): Adjust code to use parser state.
4864 (yylex): Likewise.
4865 (f_parse): New function.
4866 * f-lang.h: Forward declare "struct parser_state".
4867 (f_parse): Add "struct parser_state" argument.
4868 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4869 parser state.
4870 (yyparse): Redefine macro for java_parse_internal.
4871 (pstate): New variable.
4872 (push_expression_name, push_expression_name, insert_exp): Add
4873 "struct parser_state" argument.
4874 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4875 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4876 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4877 PostIncrementExpression, PostDecrementExpression,
4878 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4879 UnaryExpressionNotPlusMinus, CastExpression,
4880 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4881 RelationalExpression, EqualityExpression, AndExpression,
4882 ExclusiveOrExpression, InclusiveOrExpression,
4883 ConditionalAndExpression, ConditionalOrExpression,
4884 ConditionalExpression, Assignment, LeftHandSide): Update
4885 calls to write_exp* and similars in order to use parser state.
4886 (parse_number): Ajust code to use parser state.
4887 (yylex): Likewise.
4888 (java_parse): New function.
4889 (push_variable): Add "struct parser_state" argument. Adjust
4890 code to user parser state.
4891 (push_fieldnames, push_qualified_expression_name,
4892 push_expression_name, insert_exp): Likewise.
4893 * jv-lang.h: Forward declare "struct parser_state".
4894 (java_parse): Add "struct parser_state" argument.
4895 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4896 parser state.
4897 (yyparse): Redefine macro to m2_parse_internal.
4898 (pstate): New variable.
4899 (type_exp, exp, fblock, variable, type): Update calls to
4900 write_exp* and similars to use parser state.
4901 (yylex): Likewise.
4902 (m2_parse): New function.
4903 * m2-lang.h: Forward declare "struct parser_state".
4904 (m2_parse): Add "struct parser_state" argument.
4905 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4906 * objc-lang.h: Forward declare "struct parser_state".
4907 (end_msglist): Add "struct parser_state" argument.
4908 * p-exp.y (parse_type): Rewrite macro to use parser state.
4909 (yyparse): Redefine macro to pascal_parse_internal.
4910 (pstate): New variable.
4911 (parse_number): Add "struct parser_state" argument.
4912 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4913 write_exp* and similars in order to use parser state.
4914 (parse_number, yylex): Adjust code to use parser state.
4915 (pascal_parse): New function.
4916 * p-lang.h: Forward declare "struct parser_state".
4917 (pascal_parse): Add "struct parser_state" argument.
4918 * go-exp.y (parse_type): Rewrite macro to use parser state.
4919 (yyparse): Redefine macro to go_parse_internal.
4920 (pstate): New variable.
4921 (parse_number): Add "struct parser_state" argument.
4922 (type_exp, exp1, exp, variable, type): Update calls to
4923 write_exp* and similars in order to use parser state.
4924 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4925 to use parser state.
4926 (go_parse): Likewise.
4927 * go-lang.h: Forward declare "struct parser_state".
4928 (go_parse): Add "struct parser_state" argument.
4929
342587c4
DE
49302014-03-27 Doug Evans <dje@google.com>
4931
4932 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4933
33e80786
DE
49342014-03-27 Doug Evans <dje@google.com>
4935
4936 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4937 Remove argument abbrev_section. All callers updated.
4938
1dbab08b
DE
49392014-03-27 Doug Evans <dje@google.com>
4940
4941 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4942 addr_base, ranges_base.
4943
318d3177
KS
49442014-03-26 Keith Seitz <keiths@redhat.com>
4945
4946 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4947 types, not VAR_DOMAIN.
4948
1e54db15
SL
49492014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4950
4951 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4952 "ra" registers.
4953 * features/nios2-linux.c: Regenerated.
4954 * features/nios2.c: Regenerated.
4955
d3839ede
PA
49562014-03-25 Pedro Alves <palves@redhat.com>
4957
4958 * cli/cli-script.c (script_from_file): Force the interpreter to
4959 sync mode.
4960
7588d2ec
PL
49612014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4962
4963 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4964 small stack allocation.
4965
a6290449
TG
49662014-03-24 Tristan Gingold <gingold@adacore.com>
4967
4968 * darwin-nat.c (exc_server): Remove unused prototype.
4969 (darwin_dump_message): Correctly display data on x86_64.
4970 (darwin_encode_reply): Fix style.
4971 Add comments and fix indentation.
4972
31ae9d24 49732014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
4974
4975 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4976
6339bfc4
DE
49772014-03-22 Doug Evans <xdje42@gmail.com>
4978
4979 * infcmd.c: Whitespace fixes.
4980 (interrupt_command): Merge two function comments into one.
4981
0a07590b
DE
49822014-03-22 Doug Evans <xdje42@gmail.com>
4983
4984 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4985 All uses updated.
4986
b55fbac4
YQ
49872014-03-22 Yao Qi <yao@codesourcery.com>
4988
4989 * remote.c (target_read_live_memory): Remove.
4990 (memory_xfer_live_readonly_partial): Rename it to
4991 remote_xfer_live_readonly_partial. Remove argument 'object'.
4992 All callers updated. Call remote_read_bytes_1
4993 instead of target_read_live_memory.
4994 * tracepoint.c (set_traceframe_number): Remove.
4995 (make_cleanup_restore_traceframe_number): Likewise .
4996 * tracepoint.h (set_traceframe_number): Remove declaration.
4997 (make_cleanup_restore_traceframe_number): Likewise.
4998
9217e74e
YQ
49992014-03-22 Yao Qi <yao@codesourcery.com>
5000
5001 * remote.c (remote_read_bytes): Move code on reading from the
5002 remote stub to ...
5003 (remote_read_bytes_1): ... here. New function.
5004
8acf9577
YQ
50052014-03-22 Yao Qi <yao@codesourcery.com>
5006
5007 * ctf.c (ctf_xfer_partial): Check the return value of
5008 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5009 return TARGET_XFER_UNAVAILABLE.
5010 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5011 * target.c (target_read_live_memory): Move it to remote.c.
5012 (memory_xfer_live_readonly_partial): Likewise.
5013 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5014 * remote.c (target_read_live_memory): Moved from target.c.
5015 (memory_xfer_live_readonly_partial): Likewise.
5016 (remote_read_bytes): Factored out from
5017 memory_xfer_partial_1.
5018
feef67ab
DE
50192014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5020
5021 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5022 NULL pointer.
5023
b65dc60b
PA
50242014-03-21 Pedro Alves <palves@redhat.com>
5025
5026 * infrun.c (normal_stop): Extend comment.
5027
b4ab256d
HZ
50282014-03-21 Hui Zhu <hui@codesourcery.com>
5029 Pedro Alves <palves@redhat.com>
5030
5031 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5032 static buffer.
5033 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5034 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5035 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5036
deba7593
MR
50372014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5038
5039 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5040 `z' formatted output modifier.
5041
1bff71c3
SDJ
50422014-03-20 Tom Tromey <tromey@redhat.com>
5043 Sergio Durigan Junior <sergiodj@redhat.com>
5044
5045 * probe.c (parse_probes): Turn assert into an ordinary error.
5046 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5047 exceptions when parsing probes. Rearrange the code for clarity.
5048
90e28950
TT
50492014-03-20 Tom Tromey <tromey@redhat.com>
5050
5051 PR gdb/14135
5052 * top.c (execute_command): Only dispatch events if the command
5053 started the target.
5054
beb460e8
PA
50552014-03-20 Tom Tromey <tromey@redhat.com>
5056
5057 PR cli/15718
5058 * infcall.c: Include event-top.h.
5059 (run_inferior_call): Call async_disable_stdin if needed.
5060
99619bea
PA
50612014-03-20 Pedro Alves <palves@redhat.com>
5062
5063 * infrun.c (prepare_to_proceed): Delete.
5064 (thread_still_needs_step_over): New function.
5065 (find_thread_needs_step_over): New function.
5066 (proceed): If the current thread needs a step-over, set its
5067 steping_over_breakpoint flag. Adjust to use
5068 find_thread_needs_step_over instead of prepare_to_proceed.
5069 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5070 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5071 breakpoint.
5072 (switch_back_to_stepped_thread): Step over breakpoints of all
5073 threads not the stepping thread, before switching back to the
5074 stepping thread.
5075
2adfaa28
PA
50762014-03-20 Pedro Alves <palves@redhat.com>
5077
5078 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5079 extern.
5080 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5081 * infrun.c (saved_singlestep_ptid)
5082 (stepping_past_singlestep_breakpoint): Delete.
5083 (resume): Remove stepping_past_singlestep_breakpoint handling.
5084 (proceed): Store the prev_pc of the stepping thread too.
5085 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5086 singlestep_pc.
5087 (enum infwait_states): Delete infwait_thread_hop_state.
5088 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5089 field.
5090 (handle_inferior_event): Adjust.
5091 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5092 handling and the thread-hop code. Before removing single-step
5093 breakpoints, check whether the thread hit a single-step breakpoint
5094 of another thread. If it did, the trap is not a random signal.
5095 (switch_back_to_stepped_thread): If the event thread hit a
5096 single-step breakpoint, unblock it before switching to the
5097 stepping thread. Handle the case of the stepped thread having
5098 advanced already.
5099 (keep_going): Handle the case of the current thread moving past a
5100 single-step breakpoint.
5101
31e77af2
PA
51022014-03-20 Pedro Alves <palves@redhat.com>
5103
5104 PR breakpoints/7143
5105 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5106 are being stepped over.
5107 (breakpoint_address_match): Make extern.
5108 * breakpoint.h (breakpoint_address_match): New declaration.
5109 * inferior.h (stepping_past_instruction_at): New declaration.
5110 * infrun.c (struct step_over_info): New type.
5111 (step_over_info): New global.
5112 (set_step_over_info, clear_step_over_info)
5113 (stepping_past_instruction_at): New functions.
5114 (handle_inferior_event): Clear the step-over info when
5115 trap_expected is cleared.
5116 (resume): Remove now stale comment.
5117 (clear_proceed_status): Clear step-over info.
5118 (proceed): Adjust step-over handling to set or clear the step-over
5119 info instead of removing all breakpoints.
5120 (handle_signal_stop): When setting up a thread-hop, don't remove
5121 breakpoints here.
5122 (stop_stepping): Clear step-over info.
5123 (keep_going): Adjust step-over handling to set or clear step-over
5124 info and then always inserting breakpoints, instead of removing
5125 all breakpoints when stepping over one.
5126
b9f437de
PA
51272014-03-20 Pedro Alves <palves@redhat.com>
5128
5129 * infrun.c (previous_inferior_ptid): Adjust comment.
5130 (deferred_step_ptid): Delete.
5131 (infrun_thread_ptid_changed, prepare_to_proceed)
5132 (init_wait_for_inferior): Adjust.
5133 (handle_signal_stop): Delete deferred_step_ptid handling.
5134
06c868a8
JK
51352014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5136
5137 PR gdb/15358
5138 * defs.h (sync_quit_force_run): New declaration.
5139 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5140 * event-top.c (async_sigterm_handler): New declaration.
5141 (async_sigterm_token): New variable.
5142 (async_init_signals): Create also async_sigterm_token.
5143 (async_sigterm_handler): New function.
5144 (sync_quit_force_run): New variable.
5145 (handle_sigterm): Replace quit_force call by other calls.
5146 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5147
dea80df0
MR
51482014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5149
5150 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5151 offset into SPE pseudo registers.
5152
0c7e1a46
PA
51532014-03-18 Pedro Alves <palves@redhat.com>
5154
5155 PR gdb/13860
5156 * inferior.h (print_stop_event): Declare.
5157 * infrun.c (print_stop_event): New, factored out from ...
5158 (normal_stop): ... this.
5159 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5160 of bpstat_print/print_stack_frame.
5161
9c1fcd01
TT
51622014-03-17 Tom Tromey <tromey@redhat.com>
5163
5164 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5165
11aa919a
PMR
51662014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5167
5168 * ada-lang.c (decode_constrained_packed_array): Perform a
5169 minimal coercion for reference with coerce_ref instead of
5170 ada_coerce_ref.
5171
d4ccb5e0
TG
51722014-03-17 Tristan Gingold <gingold@adacore.com>
5173
5174 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5175 (darwin_solib_create_inferior_hook): Emit a warning if version
5176 is unhandled.
5177
49840f2a
UW
51782014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5179
5180 * python/py-value.c (get_field_flag): Cast flag_name argument to
5181 PyObject_GetAttrString to support Python 2.4.
5182
ed4123e5
JK
51832014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5184
5185 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5186 (Global Maintainers): Remove Jan Kratochvil.
5187
d6b64346
PA
51882014-03-14 Pedro Alves <palves@redhat.com>
5189
5190 * inferior.h (terminal_ours_for_output): Rename to ...
5191 (child_terminal_ours_for_output): ... this.
5192 (terminal_save_ours): Rename to ...
5193 (child_terminal_save_ours): ... this.
5194 (terminal_ours): Rename to ...
5195 (child_terminal_ours): ... this.
5196 (terminal_inferior): Rename to ...
5197 (child_terminal_inferior): ... this.
5198 (terminal_init_inferior): Rename to ...
5199 (child_terminal_init_inferior): ... this.
5200 (terminal_init_inferior_with_pgrp): Rename to ...
5201 (child_terminal_init_inferior_with_pgrp): ... this.
5202 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5203 (child_terminal_init_with_pgrp): ... this.
5204 (terminal_save_ours): Rename to ...
5205 (child_terminal_save_ours): ... this.
5206 (terminal_init_inferior): Rename to ...
5207 (child_terminal_init): ... this. Adjust.
5208 (terminal_inferior): Rename to ...
5209 (child_terminal_inferior): ... this.
5210 (terminal_ours_for_output): Rename to ...
5211 (child_terminal_ours_for_output): ... this. Adjust.
5212 (terminal_ours): Rename to ...
5213 (child_terminal_ours): ... this.
5214 (terminal_ours_1): Rename to ...
5215 (child_terminal_ours_1): ... this. Adjust.
5216 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5217 * windows-nat.c (do_initial_windows_stuff): Adjust.
5218 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5219 (gnu_terminal_init): ... this. Adjust.
5220 (gnu_target): Adjust.
5221 * inf-child.c (inf_child_target): Adjust.
5222
5a1e8c7a
DE
52232014-03-13 Doug Evans <xdje42@gmail.com>
5224
5225 PR guile/16612
5226 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5227 new eq?-hashtab.
5228
350e1a76
DE
52292014-03-13 Doug Evans <xdje42@gmail.com>
5230
5231 * value.c (record_latest_value): Call release_value_or_incref
5232 instead of release_value.
5233
a69900ae
PA
52342014-03-13 Pedro Alves <palves@redhat.com>
5235
5236 * procfs.c (procfs_target): Don't override to_shortname,
5237 to_longname or to_doc.
5238
5db9f0bd
PA
52392014-03-13 Pedro Alves <palves@redhat.com>
5240
5241 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5242 Unix in user visible strings.
5243
5e3a2c38
SS
52442014-03-12 Stan Shebs <stan@codesourcery.com>
5245
5246 * gdbtypes.h: Annotate comments for Doxygen, add a page
5247 block comment with some general info.
5248
8bc2fe48
PA
52492014-03-12 Pedro Alves <palves@redhat.com>
5250
5251 * infcmd.c (prepare_execution_command): New function, factored out
5252 from several execution commands.
5253 (run_command_1, continue_command, step_1, jump_command)
5254 (signal_command, until_command, advance_command, finish_command)
5255 (attach_command): Use prepare_execution_command.
5256
638c5f49
OJ
52572014-03-12 Omair Javaid <omair.javaid@linaro.org>
5258
5259 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5260 (MAX_BPTS): Define.
5261 (MAX_WPTS): Define.
5262 (struct arm_linux_thread_points): Removed.
5263 (struct arm_linux_process_info): New.
5264 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5265 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5266 (arm_linux_find_breakpoints_by_tid): Removed.
5267 (struct arch_lwp_info): New.
5268 (arm_linux_find_process_pid): New functions.
5269 (arm_linux_add_process): New functions.
5270 (arm_linux_process_info_get): New functions.
5271 (arm_linux_forget_process): New function.
5272 (arm_linux_get_debug_reg_state): New function.
5273 (struct update_registers_data): New.
5274 (update_registers_callback): New function.
5275 (arm_linux_insert_hw_breakpoint1): Updated.
5276 (arm_linux_remove_hw_breakpoint1): Updated.
5277 (arm_linux_insert_hw_breakpoint): Updated.
5278 (arm_linux_remove_hw_breakpoint): Updated.
5279 (arm_linux_insert_watchpoint): Updated.
5280 (arm_linux_remove_watchpoint): Updated.
5281 (arm_linux_new_thread): Updated.
5282 (arm_linux_prepare_to_resume): New function.
5283 (arm_linux_new_fork): New function.
5284 (_initialize_arm_linux_nat): Updated.
5285
6d03af93
PA
52862014-03-12 Pedro Alves <palves@redhat.com>
5287
5288 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5289
b3ccfe11
TT
52902014-03-12 Tom Tromey <tromey@redhat.com>
5291
5292 * inf-child.c (return_zero): New function.
5293 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5294 * aix-thread.c (aix_thread_inferior_created): New function.
5295 (aix_thread_attach): Remove.
5296 (init_aix_thread_ops): Don't set to_attach.
5297 (_initialize_aix_thread): Register inferior_created observer.
5298 * corelow.c (init_core_ops): Don't set to_attach or
5299 to_create_inferior.
5300 * exec.c (init_exec_ops): Don't set to_attach or
5301 to_create_inferior.
5302 * infcmd.c (run_command_1): Use find_run_target. Make direct
5303 target calls.
5304 (attach_command): Use find_attach_target. Make direct target
5305 calls.
5306 * record-btrace.c (init_record_btrace_ops): Don't set
5307 to_create_inferior.
5308 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5309 Remove.
5310 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5311 set to_create_inferior.
5312 * target.c (complete_target_initialization): Add assertion.
5313 (target_create_inferior): Remove.
5314 (find_default_attach, find_default_create_inferior): Remove.
5315 (find_attach_target, find_run_target): New functions.
5316 (find_default_is_async_p, find_default_can_async_p)
5317 (target_supports_non_stop, target_attach): Remove.
5318 (init_dummy_target): Don't set to_create_inferior or
5319 to_supports_non_stop.
5320 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5321 TARGET_DEFAULT_FUNC.
5322 <to_create_inferior>: Add comment.
5323 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5324 TARGET_DEFAULT_RETURN.
5325 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5326 (find_attach_target, find_run_target): Declare.
5327 (target_create_inferior): Remove.
5328 (target_has_execution_1): Update comment.
5329 (target_supports_non_stop): Remove.
5330 * target-delegates.c: Rebuild.
5331
91f83b02
PA
53322014-03-12 Pedro Alves <palves@redhat.com>
5333
5334 * inf-child.h: Update comment to not mention Unix.
5335
f1aea813
PA
53362014-03-12 Pedro Alves <palves@redhat.com>
5337
5338 * inf-child.c: Update top comment to not mention Unix. Add
5339 generic comment describing how this target is meant to be used.
5340 (inf_child_post_attach, inf_child_post_startup_inferior)
5341 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5342 Unix in comment.
5343
ee8e9165
PA
53442014-03-12 Pedro Alves <palves@redhat.com>
5345
5346 * nto-procfs.c: Include inf-child.h.
5347 (procfs_ops): Delete global.
5348 (procfs_can_run): Delete method.
5349 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5350 target pointer instead of referencing procfs_ops.
5351 (procfs_prepare_to_store): Delete.
5352 (init_procfs_ops): Delete function.
5353 (procfs_target): New function, based on init_procfs_ops, but
5354 inherit inf_child_target.
5355 (_initialize_procfs): Use procfs_target.
5356
51a9c8c5
PA
53572014-03-12 Pedro Alves <palves@redhat.com>
5358
5359 * windows-nat.c: Include inf-child.h.
5360 (windows_ops): Delete global.
5361 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5362 methods.
5363 (init_windows_ops): Delete function.
5364 (windows_target): New function, based on init_windows_ops, but
5365 inherit inf_child_target.
5366 (_initialize_windows_nat): Use windows_target. Install x86
5367 specific target methods here.
5368
c1966e26
DE
53692014-03-10 Doug Evans <xdje42@gmail.com>
5370
5371 * guile/guile.c (call_initialize_gdb_module): New function.
5372 (initialize_guile): Replace call to scm_init_guile with call to
5373 scm_with_guile.
5374
023db19c
JB
53752014-03-10 Joel Brobecker <brobecker@adacore.com>
5376
5377 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5378 in call to TYPE_CODE macro.
5379
5ec18f2b
JG
53802014-03-10 Jerome Guitton <guitton@adacore.com>
5381
8668be63
JB
5382 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5383 Resolve tagged types to full view.
5ec18f2b 5384
7d03f2eb
HZ
53852014-03-10 Hui Zhu <hui@codesourcery.com>
5386
5387 * target.h (target_insert_breakpoint): Remove "hardware" from its
5388 comments.
5389
c5164cbc
DE
53902014-03-07 Doug Evans <dje@google.com>
5391
5392 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5393
c4a3fee2
DE
53942014-03-07 Doug Evans <dje@google.com>
5395
5396 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5397 Remove unused local comp_dir_attr. Assert exactly one of
5398 stub_comp_unit_die, stub_comp_dir is non-NULL.
5399
3156469c
JB
54002014-03-07 Joel Brobecker <brobecker@adacore.com>
5401
5402 * target.h (complete_target_initialization, add_target):
5403 Add comment.
5404
c1a7b7c6
PA
54052014-03-07 Pedro Alves <palves@redhat.com>
5406
5407 * go32-nat.c: Include inf-child.h.
5408 (go32_ops): Delete global.
5409 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5410 Delete methods.
5411 (go32_create_inferior): Push the passed in target pointer instead
5412 of referencing go32_ops.
5413 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5414 (go32_target): New function, based on init_go32_ops, but inherit
5415 inf_child_target.
5416 (_initialize_go32_nat): Use go32_target. Move parts of
5417 init_go32_ops here.
5418
d3c1a85f
JB
54192014-03-06 Joel Brobecker <brobecker@adacore.com>
5420
5421 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5422 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5423 SYMBOL_VALUE_ADDRESS.
5424 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5425
5fa1d40e
YQ
54262014-03-06 Yao Qi <yao@codesourcery.com>
5427
5428 * breakpoint.c (get_tracepoint_by_number): Remove argument
5429 optional_p. All callers updated. Adjust comments. Update
5430 output message.
5431 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5432
0c13193f
YQ
54332014-03-06 Yao Qi <yao@codesourcery.com>
5434
5435 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5436 early if get_number returns zero. Use 'p' instead of 'args'.
5437
2217da06
YQ
54382014-03-06 Yao Qi <yao@codesourcery.com>
5439
5440 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5441 message.
5442
cc3da688
YQ
54432014-03-06 Yao Qi <yao@codesourcery.com>
5444
5445 PR breakpoints/16508
5446 * tracepoint.c (check_trace_running): New function.
5447 (trace_find_command): Move code to check_trace_running and
5448 call check_trace_running.
5449 (trace_find_pc_command): Likewise.
5450 (trace_find_tracepoint_command): Likewise.
5451 (trace_find_line_command): Likewise.
5452 (trace_find_range_command): Likewise.
5453 * tracepoint.h (check_trace_running): Likewise.
5454 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5455
6a5f844b
YQ
54562014-03-06 Yao Qi <yao@codesourcery.com>
5457
5458 * target.h (struct target_ops) <to_traceframe_info>: Use
5459 TARGET_DEFAULT_NORETURN (tcomplain ()).
5460 * target-delegates.c: Regenerated.
5461
0f26cec1
PA
54622014-03-05 Pedro Alves <palves@redhat.com>
5463
5464 PR gdb/16575
5465 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5466 void. Update comment.
5467 (dcache_xfer_memory): Delete.
5468 (dcache_read_memory_partial): New, based on the read bits of
5469 dcache_xfer_memory.
5470 (dcache_update): Add status parameter. Use ULONGEST for len, and
5471 adjust. Discard cache lines if the reason for the update was
5472 error.
5473 * dcache.h (dcache_xfer_memory): Delete declaration.
5474 (dcache_read_memory_partial): New declaration.
5475 (dcache_update): Update prototype.
5476 * target.c (raw_memory_xfer_partial): Update the dcache here.
5477 (memory_xfer_partial_1): Don't handle dcache writes here.
5478
b2b255bd
MF
54792014-03-05 Mike Frysinger <vapier@gentoo.org>
5480
5481 * remote-sim.c (gdbsim_load): Add const to prog.
5482
5d9cf8a4
TT
54832014-03-03 Tom Tromey <tromey@redhat.com>
5484
5485 * elfread.c (probe_key): Change to bfd_data.
5486 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5487 now per-BFD, not per-objfile.
5488 * stap-probe.c (stap_probe_destroy): Update comment.
5489 (handle_stap_probe): Allocate on the per-BFD obstack.
5490
729662a5
TT
54912014-03-03 Tom Tromey <tromey@redhat.com>
5492
5493 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5494 * breakpoint.c (create_longjmp_master_breakpoint): Use
5495 get_probe_address.
5496 (add_location_to_breakpoint, bkpt_probe_insert_location)
5497 (bkpt_probe_remove_location): Update.
5498 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5499 * elfread.c (elf_symfile_relocate_probe): Remove.
5500 (elf_probe_fns): Update.
5501 (insert_exception_resume_breakpoint): Change type of "probe"
5502 parameter to bound_probe.
5503 (check_exception_resume): Update.
5504 * objfiles.c (objfile_relocate1): Don't relocate probes.
5505 * probe.c (bound_probe_s): New typedef.
5506 (parse_probes): Use get_probe_address. Set sal's objfile.
5507 (find_probe_by_pc): Return a bound_probe.
5508 (collect_probes): Return a VEC(bound_probe_s).
5509 (compare_probes): Update.
5510 (gen_ui_out_table_header_info): Change type of "probes"
5511 parameter. Update.
5512 (info_probes_for_ops): Update.
5513 (get_probe_address): New function.
5514 (probe_safe_evaluate_at_pc): Update.
5515 * probe.h (struct probe_ops) <get_probe_address>: New field.
5516 <set_semaphore, clear_semaphore>: Add objfile parameter.
5517 (struct probe) <objfile>: Remove field.
5518 <arch>: New field.
5519 <address>: Update comment.
5520 (struct bound_probe): New.
5521 (find_probe_by_pc): Return a bound_probe.
5522 (get_probe_address): Declare.
5523 * solib-svr4.c (struct probe_and_action) <address>: New field.
5524 (hash_probe_and_action, equal_probe_and_action): Update.
5525 (register_solib_event_probe): Add address parameter.
5526 (solib_event_probe_at): Update.
5527 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5528 get_probe_address.
5529 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5530 (stap_get_probe_address): New function.
5531 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5532 (compile_probe_arg): Update.
5533 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5534 address.
5535 (handle_stap_probe): Don't relocate the probe.
5536 (stap_relocate): Remove.
5537 (stap_gen_info_probes_table_values): Update.
5538 (stap_probe_ops): Remove stap_relocate.
5539 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5540 (debug_sym_probe_fns): Update.
5541 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5542 * symtab.c (init_sal): Use memset.
5543 * symtab.h (struct symtab_and_line) <objfile>: New field.
5544 * tracepoint.c (start_tracing, stop_tracing): Update.
5545
ff887920
TT
55462014-03-03 Tom Tromey <tromey@redhat.com>
5547
5548 * probe.h (parse_probes, find_probe_by_pc)
5549 (find_probes_in_objfile): Fix comments.
5550
f0407826
DE
55512014-03-02 Doug Evans <xdje42@gmail.com>
5552
5553 * infrun.c (handle_signal_stop): Replace test for
5554 TARGET_WAITKIND_STOPPED with an assert.
5555
35e6a711
DE
55562014-03-02 Doug Evans <xdje42@gmail.com>
5557
5558 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5559
667f9d0b
DE
55602014-03-02 Doug Evans <xdje42@gmail.com>
5561
5562 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5563
dc92ace0
MK
55642014-03-01 Mark Kettenis <kettenis@gnu.org>
5565
5566 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5567
a900370f
MK
55682014-03-01 Mark Kettenis <kettenis@gnu.org>
5569
5570 * i386obsd-nat.c: Include "obsd-nat.h".
5571 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5572 add_target.
5573 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5574
b72a7981
MK
55752014-03-01 Mark Kettenis <kettenis@gnu.org>
5576
5577 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5578
96c70aba
MK
55792014-03-01 Mark Kettenis <kettenis@gnu.org>
5580
5581 * mips64obsd-nat.c: Include "obsd-nath".
5582 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5583 add_target
5584 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5585
874a80af
MK
55862014-03-01 Mark Kettenis <kettenis@gnu.org>
5587
8fd408f1
MK
5588 * amd64obsd-nat.c: Include "obsd-nat,h.
5589 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5590 add_target.
874a80af
MK
5591 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5592
9cf95373
SC
55932014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5594
5595 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5596 (find_overload_match): Update call to find_oload_champ.
5597 (find_oload_champ_namespace_loop): Likewise
5598
863e4da4
MK
55992014-02-28 Mark Kettenis <kettenis@gnu.org>
5600
025cac40
MK
5601 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5602
1ed586ce
MK
5603 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5604 * config/sparc/obsd64.mh: New file.
5605 * sparc64obsd-nat.c: New file.
5606
863e4da4
MK
5607 * obsd-nat.h: New file.
5608 * obsd-nat.c: New file.
5609 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5610 (ALLDEPFILES): Add obsd-nat.c.
5611
89de4da4
TT
56122014-02-28 Tom Tromey <tromey@redhat.com>
5613
5614 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5615 * cli-out.h (cli_ui_out_impl): Now const.
5616 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5617 * ui-out.c (struct ui_out) <impl>: Now const.
5618 (default_ui_out_impl): Now const.
5619 (ui_out_new): Make 'impl' parameter const.
5620 * ui-out.h (ui_out_new): Update.
5621
c725e7b6
MK
56222014-02-27 Mark Kettenis <kettenis@gnu.org>
5623
5624 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5625
670b46b3
MK
56262014-02-27 Mark Kettenis <kettenis@gnu.org>
5627
5628 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5629
c91550fc
JK
56302014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5631
5632 Additional PR 8882 fix.
5633 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5634
2fa0369e
PA
56352014-02-27 Pedro Alves <palves@redhat.com>
5636
5637 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5638 isn't set.
5639
d632a097
PA
56402014-02-27 Pedro Alves <palves@redhat.com>
5641
5642 PR 12702
5643 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5644 * nat/linux-waitpid.c: Include string.h.
5645 (status_to_str): Moved here and made extern.
5646 * nat/linux-waitpid.h (status_to_str): New declaration.
5647
2ebd5a35
HZ
56482014-02-27 Hui Zhu <hui@codesourcery.com>
5649
5650 PR 12702
5651 * infrun.c (ptid_match): Move ...
5652 * common/ptid.c (ptid_match): ... here.
5653 * inferior.h (ptid_match): Move ...
5654 * common/ptid.h (ptid_match): ... here.
5655
3cdd631f
MK
56562014-02-27 Mark Kettenis <kettenis@gnu.org>
5657
5658 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5659 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5660 gdb_target_obs.
5661
bee30a64
MK
56622014-02-27 Mark Kettenis <kettenis@gnu.org>
5663
5664 * obsd-tdep.c (obsd_auxv_parse): New function.
5665 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
5666
5667 * gdbarch.sh (auxv_parse): New.
5668 * gdbarch.h: Regenerated.
5669 * gdbarch.c: Regenerated.
5670 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5671
7a5a839f
LC
56722014-02-26 Ludovic Courtès <ludo@gnu.org>
5673
5674 * guile/scm-value.c (gdbscm_history_append_x): New function.
5675 (value_functions): Add it.
5676
31aa7e4e
JB
56772014-02-27 Joel Brobecker <brobecker@adacore.com>
5678
5679 * dwarf2read.c (attr_value_as_address): New function.
5680 (dwarf2_find_base_address, read_call_site_scope): Use
5681 attr_value_as_address in place of DW_ADDR.
5682 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5683 the low and high addresses. Slight rework of the handling
5684 of the high pc being a constant form, and limit it to
5685 DWARF verson 4 or higher.
5686 (dwarf2_record_block_ranges): Likewise.
5687 (read_partial_die): Likewise.
5688 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5689
9b333ba3
TT
56902014-02-26 Tom Tromey <tromey@redhat.com>
5691
5692 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5693
5f6cac40
TT
56942014-02-26 Tom Tromey <tromey@redhat.com>
5695
5696 * elfread.c (elf_read_minimal_symbols): Return early if
5697 minimal symbols have already been read. Add "ei" parameter.
5698 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5699 * minsyms.c (prim_record_minimal_symbol_full): Update.
5700 * objfiles.h (struct objstats) <n_minsyms>: Move...
5701 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5702 * symmisc.c (print_objfile_statistics): Update.
5703
2750ef27
TT
57042014-02-26 Tom Tromey <tromey@redhat.com>
5705
5706 * elfread.c (elf_read_minimal_symbols): New function, from
5707 elf_symfile_read.
5708 (elf_symfile_read): Call it.
5709
34643a32
TT
57102014-02-26 Tom Tromey <tromey@redhat.com>
5711
5712 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5713 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5714 (lookup_minimal_symbol_solib_trampoline)
5715 (lookup_minimal_symbol_by_pc_section_1)
5716 (lookup_minimal_symbol_and_objfile): Update.
5717 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5718 Don't allocate a minimal symbol if minsyms have already been read.
5719 (build_minimal_symbol_hash_tables): Update.
5720 (install_minimal_symbols): Do nothing if minsyms already read.
5721 Use the per-BFD obstack.
5722 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5723 * objfiles.c (allocate_objfile): Call
5724 terminate_minimal_symbol_table later.
5725 (have_minimal_symbols): Update.
5726 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5727 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5728 Move from struct objfile.
5729 <minsyms_read>: New field.
5730 (struct objfile) <msymbols, minimal_symbol_count,
5731 msymbol_hash, msymbol_demangled_hash>: Move.
5732 (ALL_OBJFILE_MSYMBOLS): Update.
5733 * symfile.c (read_symbols): Set minsyms_read.
5734 (reread_symbols): Update.
5735 * symmisc.c (dump_objfile, dump_msymbols): Update.
5736
2273f0ac
TT
57372014-02-26 Tom Tromey <tromey@redhat.com>
5738
5739 * minsyms.c (msymbols_sort): Remove.
5740 * minsyms.h (msymbols_sort): Remove.
5741 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5742 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5743 * elfread.c (elf_symtab_read): Don't add section offsets.
5744 * xcoffread.c (record_minimal_symbol): Don't add section offset
5745 to minimal symbol address.
5746 * somread.c (text_offset, data_offset): Remove.
5747 (som_symtab_read): Don't add section offsets to minimal symbol
5748 addresses.
5749 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5750 Don't add section offsets to minimal symbols.
5751 * coffread.c (coff_symtab_read): Don't add section offsets
5752 to minimal symbol addresses.
5753 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5754 to minimal symbol addresses.
5755 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5756 section offset to minimal symbol addresses.
5757 * mdebugread.c (parse_partial_symbols): Don't add section
5758 offset to minimal symbol addresses.
5759 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5760 offset to minimal symbol addresses.
5761
77e371c0
TT
57622014-02-26 Tom Tromey <tromey@redhat.com>
5763
5764 * ada-lang.c (ada_main_name): Update.
5765 (ada_add_standard_exceptions): Update.
5766 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5767 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5768 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5769 * auxv.c (ld_so_xfer_auxv): Update.
5770 * avr-tdep.c (avr_scan_prologue): Update.
5771 * ax-gdb.c (gen_var_ref): Update.
5772 * blockframe.c (get_pc_function_start)
5773 (find_pc_partial_function_gnu_ifunc): Update.
5774 * breakpoint.c (create_overlay_event_breakpoint)
5775 (create_longjmp_master_breakpoint)
5776 (create_std_terminate_master_breakpoint)
5777 (create_exception_master_breakpoint): Update.
5778 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5779 * c-valprint.c (c_val_print): Update.
5780 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5781 * common/agent.c (agent_look_up_symbols): Update.
5782 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5783 * dwarf2loc.c (call_site_to_target_addr): Update.
5784 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5785 * elfread.c (elf_gnu_ifunc_record_cache)
5786 (elf_gnu_ifunc_resolve_by_got): Update.
5787 * findvar.c (default_read_var_value): Update.
5788 * frame.c (inside_main_func): Update.
5789 * frv-tdep.c (frv_frame_this_id): Update.
5790 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5791 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5792 Update.
5793 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5794 (hppa_hpux_find_dummy_bpaddr): Update.
5795 * hppa-tdep.c (hppa_symbol_address): Update.
5796 * infcmd.c (until_next_command): Update.
5797 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5798 Update.
5799 * linespec.c (minsym_found, add_minsym): Update.
5800 * linux-nat.c (get_signo): Update.
5801 * linux-thread-db.c (inferior_has_bug): Update.
5802 * m32c-tdep.c (m32c_return_value)
5803 (m32c_m16c_address_to_pointer): Update.
5804 * m32r-tdep.c (m32r_frame_this_id): Update.
5805 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5806 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5807 * maint.c (maintenance_translate_address): Update.
5808 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5809 (frob_address): New function.
5810 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5811 frob_address. Rename parameter to "pc_in".
5812 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5813 addresses.
5814 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5815 Update.
5816 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5817 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5818 * objc-lang.c (find_objc_msgsend): Update.
5819 * objfiles.c (objfile_relocate1): Update.
5820 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5821 * p-valprint.c (pascal_val_print): Update.
5822 * parse.c (write_exp_msymbol): Update.
5823 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5824 (ppc_elfv2_skip_entrypoint): Update.
5825 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5826 * printcmd.c (build_address_symbolic, msym_info)
5827 (address_info): Update.
5828 * proc-service.c (ps_pglobal_lookup): Update.
5829 * psymtab.c (find_pc_sect_psymtab_closer)
5830 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5831 Change msymbol parameter to bound_minimal_symbol.
5832 * ravenscar-thread.c (get_running_thread_id): Update.
5833 * remote.c (remote_check_symbols): Update.
5834 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5835 address.
5836 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5837 * solib-dsbt.c (lm_base): Update.
5838 * solib-frv.c (lm_base, main_got): Update.
5839 * solib-irix.c (locate_base): Update.
5840 * solib-som.c (som_solib_create_inferior_hook)
5841 (link_map_start): Update.
5842 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5843 * solib-svr4.c (elf_locate_base, enable_break): Update.
5844 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5845 (flush_ea_cache): Update.
5846 * stabsread.c (define_symbol, scan_file_globals): Update.
5847 * stack.c (find_frame_funname): Update.
5848 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5849 (debug_qf_find_pc_sect_symtab): Update.
5850 * symfile.c (simple_read_overlay_table)
5851 (simple_overlay_update): Update.
5852 * symfile.h (struct quick_symbol_functions)
5853 <find_pc_sect_symtab>: Change type of msymbol to
5854 bound_minimal_symbol.
5855 * symmisc.c (dump_msymbols): Update.
5856 * symtab.c (find_pc_sect_symtab_via_partial)
5857 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5858 (search_symbols, print_msymbol_info): Update.
5859 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5860 (MSYMBOL_VALUE_ADDRESS): Redefine.
5861 (BMSYMBOL_VALUE_ADDRESS): New macro.
5862 * tracepoint.c (scope_info): Update.
5863 * tui/tui-disasm.c (tui_find_disassembly_address)
5864 (tui_get_begin_asm_address): Update.
5865 * valops.c (find_function_in_inferior): Update.
5866 * value.c (value_static_field, value_fn_field): Update.
5867
3b7344d5
TT
58682014-02-26 Tom Tromey <tromey@redhat.com>
5869
5870 * ada-lang.c (ada_update_initial_language): Update.
5871 (ada_main_name, ada_has_this_exception_support): Update.
5872 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5873 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5874 * arm-tdep.c (arm_skip_stub): Update.
5875 * auxv.c (ld_so_xfer_auxv): Update.
5876 * avr-tdep.c (avr_scan_prologue): Update.
5877 * ax-gdb.c (gen_var_ref): Update.
5878 * breakpoint.c (struct breakpoint_objfile_data)
5879 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5880 type to bound_minimal_symbol.
5881 (create_overlay_event_breakpoint)
5882 (create_longjmp_master_breakpoint)
5883 (create_std_terminate_master_breakpoint)
5884 (create_exception_master_breakpoint): Update.
5885 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5886 * c-exp.y (classify_name): Update.
5887 * coffread.c (coff_symfile_read): Update.
5888 * common/agent.c (agent_look_up_symbols): Update.
5889 * d-lang.c (d_main_name): Update.
5890 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5891 * dec-thread.c (enable_dec_thread): Update.
5892 * dwarf2loc.c (call_site_to_target_addr): Update.
5893 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5894 * eval.c (evaluate_subexp_standard): Update.
5895 * findvar.c (struct minsym_lookup_data) <result>: Change type
5896 to bound_minimal_symbol.
5897 <objfile>: Remove.
5898 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5899 * frame.c (inside_main_func): Update.
5900 * frv-tdep.c (frv_frame_this_id): Update.
5901 * gcore.c (call_target_sbrk): Update.
5902 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5903 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5904 Update.
5905 * go-lang.c (go_main_name): Update.
5906 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5907 (hppa_hpux_find_import_stub_for_addr): Update.
5908 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5909 Update. Change return type.
5910 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5911 type.
5912 * jit.c (jit_breakpoint_re_set_internal): Update.
5913 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5914 Update.
5915 * linux-nat.c (get_signo): Update.
5916 * linux-thread-db.c (inferior_has_bug): Update
5917 * m32c-tdep.c (m32c_return_value)
5918 (m32c_m16c_address_to_pointer): Update.
5919 * m32r-tdep.c (m32r_frame_this_id): Update.
5920 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5921 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5922 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5923 lookup_minimal_symbol. Change return type.
5924 (lookup_minimal_symbol): Remove.
5925 (lookup_bound_minimal_symbol): Update.
5926 (lookup_minimal_symbol_text): Change return type.
5927 (lookup_minimal_symbol_solib_trampoline): Change return type.
5928 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5929 (lookup_minimal_symbol_solib_trampoline): Change return type.
5930 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5931 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5932 (value_nsstring, find_imps): Update.
5933 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5934 * p-lang.c (pascal_main_name): Update.
5935 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5936 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5937 * proc-service.c (ps_pglobal_lookup): Update.
5938 * ravenscar-thread.c (get_running_thread_msymbol): Change
5939 return type.
5940 (has_ravenscar_runtime, get_running_thread_id): Update.
5941 * remote.c (remote_check_symbols): Update.
5942 * sol-thread.c (ps_pglobal_lookup): Update.
5943 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5944 * solib-dsbt.c (lm_base): Update.
5945 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5946 Update.
5947 * solib-irix.c (locate_base): Update.
5948 * solib-som.c (som_solib_create_inferior_hook)
5949 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5950 Update.
5951 * solib-spu.c (spu_enable_break): Update.
5952 * solib-svr4.c (elf_locate_base, enable_break): Update.
5953 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5954 (flush_ea_cache): Update.
5955 * stabsread.c (define_symbol): Update.
5956 * symfile.c (simple_read_overlay_table): Update.
5957 * symtab.c (find_pc_sect_line): Update.
5958 * tracepoint.c (scope_info): Update.
5959 * tui-disasm.c (tui_get_begin_asm_address): Update.
5960 * value.c (value_static_field): Update.
5961
40c1a007
TT
59622014-02-26 Tom Tromey <tromey@redhat.com>
5963
5964 * minsyms.c (prim_record_minimal_symbol_full): Use
5965 SET_MSYMBOL_VALUE_ADDRESS.
5966 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5967 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5968 SET_MSYMBOL_VALUE_ADDRESS.
5969 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5970 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5971
efd66ac6
TT
59722014-02-26 Tom Tromey <tromey@redhat.com>
5973
5974 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5975 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5976 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5977 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5978 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5979 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5980 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5981 * ada-lang.c (ada_main_name): Update.
5982 (ada_lookup_simple_minsym): Update.
5983 (ada_make_symbol_completion_list): Update.
5984 (ada_add_standard_exceptions): Update.
5985 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5986 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5987 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5988 * arm-tdep.c (skip_prologue_function): Update.
5989 (arm_skip_stack_protector, arm_skip_stub): Update.
5990 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5991 (arm_wince_skip_main_prologue): Update.
5992 * auxv.c (ld_so_xfer_auxv): Update.
5993 * avr-tdep.c (avr_scan_prologue): Update.
5994 * ax-gdb.c (gen_var_ref): Update.
5995 * block.c (call_site_for_pc): Update.
5996 * blockframe.c (get_pc_function_start): Update.
5997 (find_pc_partial_function_gnu_ifunc): Update.
5998 * breakpoint.c (create_overlay_event_breakpoint): Update.
5999 (create_longjmp_master_breakpoint): Update.
6000 (create_std_terminate_master_breakpoint): Update.
6001 (create_exception_master_breakpoint): Update.
6002 (resolve_sal_pc): Update.
6003 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6004 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6005 Update.
6006 * c-valprint.c (c_val_print): Update.
6007 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6008 * coffread.c (coff_symfile_read): Update.
6009 * common/agent.c (agent_look_up_symbols): Update.
6010 * dbxread.c (find_stab_function_addr): Update.
6011 (end_psymtab): Update.
6012 * dwarf2loc.c (call_site_to_target_addr): Update.
6013 (func_verify_no_selftailcall): Update.
6014 (tailcall_dump): Update.
6015 (call_site_find_chain_1): Update.
6016 (dwarf_expr_reg_to_entry_parameter): Update.
6017 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6018 (elf_gnu_ifunc_resolve_by_got): Update.
6019 * f-valprint.c (info_common_command): Update.
6020 * findvar.c (read_var_value): Update.
6021 * frame.c (get_prev_frame_1): Update.
6022 (inside_main_func): Update.
6023 * frv-tdep.c (frv_skip_main_prologue): Update.
6024 (frv_frame_this_id): Update.
6025 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6026 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6027 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6028 (gnuv3_skip_trampoline): Update.
6029 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6030 (hppa64_hpux_in_solib_call_trampoline): Update.
6031 (hppa_hpux_skip_trampoline_code): Update.
6032 (hppa64_hpux_search_dummy_call_sequence): Update.
6033 (hppa_hpux_find_import_stub_for_addr): Update.
6034 (hppa_hpux_find_dummy_bpaddr): Update.
6035 * hppa-tdep.c (hppa_symbol_address)
6036 (hppa_lookup_stub_minimal_symbol): Update.
6037 * i386-tdep.c (i386_skip_main_prologue): Update.
6038 (i386_pe_skip_trampoline_code): Update.
6039 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6040 * infcall.c (get_function_name): Update.
6041 * infcmd.c (until_next_command): Update.
6042 * jit.c (jit_breakpoint_re_set_internal): Update.
6043 (jit_inferior_init): Update.
6044 * linespec.c (minsym_found): Update.
6045 (add_minsym): Update.
6046 * linux-fork.c (info_checkpoints_command): Update.
6047 * linux-nat.c (get_signo): Update.
6048 * linux-thread-db.c (inferior_has_bug): Update.
6049 * m32c-tdep.c (m32c_return_value): Update.
6050 (m32c_m16c_address_to_pointer): Update.
6051 (m32c_m16c_pointer_to_address): Update.
6052 * m32r-tdep.c (m32r_frame_this_id): Update.
6053 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6054 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6055 * maint.c (maintenance_translate_address): Update.
6056 * minsyms.c (add_minsym_to_hash_table): Update.
6057 (add_minsym_to_demangled_hash_table): Update.
6058 (msymbol_objfile): Update.
6059 (lookup_minimal_symbol): Update.
6060 (iterate_over_minimal_symbols): Update.
6061 (lookup_minimal_symbol_text): Update.
6062 (lookup_minimal_symbol_by_pc_name): Update.
6063 (lookup_minimal_symbol_solib_trampoline): Update.
6064 (lookup_minimal_symbol_by_pc_section_1): Update.
6065 (lookup_minimal_symbol_and_objfile): Update.
6066 (prim_record_minimal_symbol_full): Update.
6067 (compare_minimal_symbols): Update.
6068 (compact_minimal_symbols): Update.
6069 (build_minimal_symbol_hash_tables): Update.
6070 (install_minimal_symbols): Update.
6071 (terminate_minimal_symbol_table): Update.
6072 (find_solib_trampoline_target): Update.
6073 (minimal_symbol_upper_bound): Update.
6074 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6075 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6076 (mips_skip_pic_trampoline_code): Update.
6077 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6078 * objc-lang.c (selectors_info): Update.
6079 (classes_info): Update.
6080 (find_methods): Update.
6081 (find_imps): Update.
6082 (find_objc_msgsend): Update.
6083 * objfiles.c (objfile_relocate1): Update.
6084 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6085 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6086 * p-valprint.c (pascal_val_print): Update.
6087 * parse.c (write_exp_msymbol): Update.
6088 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6089 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6090 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6091 * printcmd.c (build_address_symbolic): Update.
6092 (sym_info): Update.
6093 (address_info): Update.
6094 * proc-service.c (ps_pglobal_lookup): Update.
6095 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6096 (find_pc_sect_psymtab): Update.
6097 * python/py-framefilter.c (py_print_frame): Update.
6098 * ravenscar-thread.c (get_running_thread_id): Update.
6099 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6100 Update.
6101 * remote.c (remote_check_symbols): Update.
6102 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6103 (rs6000_skip_trampoline_code): Update.
6104 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6105 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6106 * solib-dsbt.c (lm_base): Update.
6107 * solib-frv.c (lm_base): Update.
6108 (main_got): Update.
6109 * solib-irix.c (locate_base): Update.
6110 * solib-som.c (som_solib_create_inferior_hook): Update.
6111 (som_solib_desire_dynamic_linker_symbols): Update.
6112 (link_map_start): Update.
6113 * solib-spu.c (spu_enable_break): Update.
6114 (ocl_enable_break): Update.
6115 * solib-svr4.c (elf_locate_base): Update.
6116 (enable_break): Update.
6117 * spu-tdep.c (spu_get_overlay_table): Update.
6118 (spu_catch_start): Update.
6119 (flush_ea_cache): Update.
6120 * stabsread.c (define_symbol): Update.
6121 (scan_file_globals): Update.
6122 * stack.c (find_frame_funname): Update.
6123 (frame_info): Update.
6124 * symfile.c (simple_read_overlay_table): Update.
6125 (simple_overlay_update): Update.
6126 * symmisc.c (dump_msymbols): Update.
6127 * symtab.c (fixup_section): Update.
6128 (find_pc_sect_line): Update.
6129 (skip_prologue_sal): Update.
6130 (search_symbols): Update.
6131 (print_msymbol_info): Update.
6132 (rbreak_command): Update.
6133 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6134 (completion_list_objc_symbol): Update.
6135 (default_make_symbol_completion_list_break_on): Update.
6136 * tracepoint.c (scope_info): Update.
6137 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6138 (tui_get_begin_asm_address): Update.
6139 * valops.c (find_function_in_inferior): Update.
6140 * value.c (value_static_field): Update.
6141 (value_fn_field): Update.
6142
50e65b17
TT
61432014-02-26 Tom Tromey <tromey@redhat.com>
6144
6145 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6146 bound minimal symbols. Move code that knows about minsym
6147 table layout...
6148 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6149 function.
6150 * minsyms.h (minimal_symbol_upper_bound): Declare.
6151 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6152 minimal_symbol_upper_bound.
6153
1b588015
JB
61542014-02-27 Joel Brobecker <brobecker@adacore.com>
6155
6156 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6157 Use the type's name if its basic type does not have a tag.
6158
dbb9c2b1
JB
61592014-02-27 Joel Brobecker <brobecker@adacore.com>
6160
6161 * dwarf2read.c (read_subrange_type): Add comment.
6162
55426c9d
JB
61632014-02-27 Joel Brobecker <brobecker@adacore.com>
6164
6165 * dwarf2read.c (update_enumeration_type_from_children): New
6166 function, mostly extracted from process_structure_scope.
6167 (read_enumeration_type): Call update_enumeration_type_from_children.
6168 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6169 and flag_flag_enum fields.
6170
f2fce0ca
PA
61712014-02-26 Pedro Alves <palves@redhat.com>
6172
6173 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6174 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6175 to_xfer_partial method.
6176
7a44e40e
PA
61772014-02-26 Pedro Alves <palves@redhat.com>
6178
6179 * target.c (complete_target_initialization): Don't install
6180 default_xfer_partial as to_xfer_partial hook.
6181 (nomemory): Delete.
6182 (update_current_target): Don't INHERIT nor de_fault
6183 deprecated_xfer_memory. Delete de_fault macro.
6184 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6185 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6186 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6187 field.
6188
bd265cd0
PA
61892014-02-26 Pedro Alves <palves@redhat.com>
6190
6191 * go32-nat.c (my_write_child): New function.
6192 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6193 (go32_xfer_partial): New function.
6194 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6195 Instead install a to_xfer_partial hook.
6196
9d46c4e5
PA
61972014-02-26 Pedro Alves <palves@redhat.com>
6198
6199 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6200 to_xfer_partial helper. Rewrite.
6201 (procfs_xfer_partial): New function.
6202 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6203 Install a to_xfer_partial hook.
6204
a1583b1f
PA
62052014-02-26 Pedro Alves <palves@redhat.com>
6206
6207 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6208 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6209 (m32r_xfer_partial): New function.
6210 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6211 Install a to_xfer_partial hook.
6212
6df1b29f
PA
62132014-02-26 Pedro Alves <palves@redhat.com>
6214
6215 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6216 helper.
6217 (mips_xfer_partial): New function.
6218 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6219 hook. Install a to_xfer_partial hook.
6220
dc53a7ad
JB
62212014-02-26 Joel Brobecker <brobecker@adacore.com>
6222
6223 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6224 * gdbtypes.c (create_array_type_with_stride): New function,
6225 renaming create_array_type, but with an added parameter
6226 called "bit_stride".
6227 (create_array_type): Re-implement using
6228 create_array_type_with_stride.
6229 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6230 and DW_AT_bit_stride attributes.
6231
12ab52e9
PA
62322014-02-26 Pedro Alves <palves@redhat.com>
6233
6234 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6235 task-specific breakpoints.
6236
d16461ae
PA
62372014-02-25 Pedro Alves <palves@redhat.com>
6238
6239 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6240 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6241
a8b16220
SS
62422014-02-25 Stan Shebs <stan@codesourcery.com>
6243
6244 * defs.h: Annotate comments for Doxygen.
6245
b9e795ee
TT
62462014-02-25 Tom Tromey <tromey@redhat.com>
6247
6248 * target.h (target_ignore): Don't declare.
6249 * target.c (target_ignore): Remove.
6250
849c862e
JK
62512014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6252
6253 PR gdb/16626
6254 * auto-load.c (auto_load_objfile_script_1): Change filename to
6255 debugfile.
6256
475109d8
JB
62572014-02-25 Joel Brobecker <brobecker@adacore.com>
6258
6259 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6260 documentation. Adjust prototype to match the target_ops
6261 to_xfer_partial method. Adjust implementation accordingly.
6262
e186c3bd
HZ
62632014-02-25 Hui Zhu <hui@codesourcery.com>
6264
6265 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6266 to_traceframe_info.
6267
6d451942
KB
62682014-02-25 Kevin Buettner <kevinb@redhat.com>
6269
041ab8b4 6270 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6271 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6272 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6273 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6274 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6275 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6276 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6277 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6278 New constants.
6279 (rl78_register_type): Use a data pointer type for SP and
6280 new pseudo registers mentioned above. Use a 16 bit integer
6281 type for all other register pairs.
6282 (rl78_register_name, rl78_g10_register_name): Update for
6283 new pseudo registers.
6284 (rl78_pseudo_register_read): Likewise.
6285 (rl78_pseudo_register_write): Likewise.
6286 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6287 to the newly added pseudo registers.
6288
eddf0bae
DE
62892014-02-24 Doug Evans <dje@google.com>
6290
6291 * value.c (record_latest_value): Fix comment.
6292 * printcmd.c (print_command_1): Remove code to handle -1 return from
6293 record_latest_value.
6294
e96027e0
PA
62952014-02-24 Pedro Alves <palves@redhat.com>
6296
6297 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6298 deprecated_xfer_memory hook.
6299 (procfs_xfer_partial): Call procfs_xfer_memory instead
6300 of the deprecated_xfer_memory target hook.
6301 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6302 helper.
6303
0837c976
YZ
63042014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6305
6306 * windows-nat.c (windows_xfer_shared_libraries): Return
6307 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6308 requested object is TARGET_OBJECT_LIBRARIES.
6309
bc113b4e
YQ
63102014-02-24 Yao Qi <yao@codesourcery.com>
6311
6312 * target.h (enum target_xfer_status)
6313 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6314 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6315 explicitly. New.
6316 * corefile.c (memory_error_message): User updated.
6317 * exec.c (section_table_read_available_memory): Likewise.
6318 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6319 * target.c (target_xfer_status_to_string): Likewise.
6320 (raw_memory_xfer_partial): Likewise.
6321 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6322 * valops.c (read_value_memory): Likewise.
6323 * exec.h: Update comments.
6324
01cb8804
YQ
63252014-02-24 Yao Qi <yao@codesourcery.com>
6326
6327 * target.c (target_xfer_status_to_string): Rename argument err
6328 to status.
6329 * target.h (target_xfer_status_to_string): Update declaration.
6330 Replace target_xfer_error_to_string with
6331 target_xfer_status_to_string in comment.
6332
93063aa6
YQ
63332014-02-24 Yao Qi <yao@codesourcery.com>
6334
6335 * mips-linux-nat.c (super_close): Update its type.
6336 (mips_linux_close): Pass 'self' to super_close.
6337
5c328c05
YQ
63382014-02-24 Yao Qi <yao@codesourcery.com>
6339
6340 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6341 * corefile.c (read_memory): Adjusted.
6342 * target.c (target_write_with_progress): Adjusted.
6343
f73023dd
YQ
63442014-02-23 Yao Qi <yao@codesourcery.com>
6345
6346 Revert two patches:
6347
6348 2013-10-25 Yao Qi <yao@codesourcery.com>
6349
6350 * remote.c (remote_traceframe_info): Return early if
6351 traceframe is not selected.
6352
6353 2013-07-19 Yao Qi <yao@codesourcery.com>
6354
6355 * target.c (update_current_target): Change the default action
6356 of 'to_traceframe_info' from tcomplain to return_zero.
6357 * target.h (struct target_ops) <to_traceframe_info>: Add more
6358 comments.
6359
5a2eb0ef
YQ
63602014-02-23 Yao Qi <yao@codesourcery.com>
6361
6362 * valops.c (read_value_memory): Rewrite it. Call
6363 target_xfer_partial in a loop.
6364 * exec.h (section_table_available_memory): Remove declaration.
6365 Move comments to ...
6366 * exec.c (section_table_available_memory): ... here. Make it
6367 static.
6368
1ee79381
YQ
63692014-02-23 Yao Qi <yao@codesourcery.com>
6370
6371 * exec.c (section_table_read_available_memory): New function.
6372 * exec.h (section_table_read_available_memory): Declare.
6373 * ctf.c (ctf_xfer_partial): Call
6374 section_table_read_available_memory.
6375 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6376
1ca49d37
YQ
63772014-02-23 Yao Qi <yao@codesourcery.com>
6378
6379 * ctf.c (ctf_xfer_partial): Move code to ...
6380 * exec.c (exec_read_partial_read_only): ... it. New function.
6381 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6382 * tracefile.c: Include "exec.h".
6383 * exec.h (exec_read_partial_read_only): Declare.
6384
a283690e
YQ
63852014-02-23 Yao Qi <yao@codesourcery.com>
6386
6387 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6388 (tfile_has_memory): Remove.
6389 (init_tfile_ops): Don't set fields to_has_all_memory and
6390 to_has_memory of tfile_ops.
6391 * tracefile.c (tracefile_has_all_memory): New function.
6392 (tracefile_has_memory): New function.
6393 (init_tracefile_ops): Initialize fields to_has_all_memory and
6394 to_has_memory of 'ops'.
6395
12e03cd0
YQ
63962014-02-23 Yao Qi <yao@codesourcery.com>
6397
6398 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6399 (ctf_thread_alive, ctf_get_trace_status): Remove.
6400 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6401 init_tracefile_ops.
6402 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6403 (tfile_has_stack, tfile_has_registers): Remove.
6404 (tfile_thread_alive): Remove.
6405 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6406 init_tracefile_ops.
6407 * tracefile.c (tracefile_has_stack): New function.
6408 (tracefile_has_registers): New function.
6409 (tracefile_thread_alive): New function.
6410 (tracefile_get_trace_status): New function.
6411 (init_tracefile_ops): New function.
6412 * tracefile.h (init_tracefile_ops): Declare.
6413
11395323
YQ
64142014-02-23 Yao Qi <yao@codesourcery.com>
6415
6416 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6417 (O_LARGEFILE): Likewise.
6418 (tfile_ops): Likewise.
6419 (TRACE_HEADER_SIZE): Likewise.
6420 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6421 (cur_data_size): Likewise.
6422 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6423 (tfile_close, tfile_files_info): Likewise.
6424 (tfile_get_trace_status): Likewise.
6425 (tfile_get_tracepoint_status): Likewise.
6426 (tfile_get_traceframe_address): Likewise.
6427 (tfile_trace_find, match_blocktype): Likewise.
6428 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6429 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6430 (tfile_get_trace_state_variable_value): Likewise.
6431 (tfile_has_all_memory, tfile_has_memory): Likewise.
6432 (tfile_has_stack, tfile_has_registers): Likewise.
6433 (tfile_thread_alive, build_traceframe_info): Likewise.
6434 (tfile_traceframe_info, init_tfile_ops): Likewise.
6435 (_initialize_tracepoint): Don't call init_tfile_ops
6436 and add_target_with_completer.
6437 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6438 exec.h, completer.h and filenames.h.
6439 (_initialize_tracefile_tfile): New function.
6440
7951c4eb
YQ
64412014-02-23 Yao Qi <yao@codesourcery.com>
6442
6443 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6444 tracefile-tfile.o.
6445 (HFILES_NO_SRCDIR): Add tracefile.h.
6446 * ctf.c: Include "tracefile.h".
6447 * tracefile.h: New file.
6448 * tracefile.c: New file
6449 * tracefile-tfile.c: New file.
6450 * tracepoint.c: Include "tracefile.h".
6451 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6452 (stop_reason_names): Add const.
6453 (trace_file_writer_xfree): Move it to tracefile.c.
6454 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6455 (trace_save_ctf): Likewise.
6456 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6457 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6458 (tfile_write_header, tfile_write_regblock_type): Likewise.
6459 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6460 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6461 (tfile_write_raw_data, tfile_end): Likewise.
6462 (tfile_trace_file_writer_new): Likewise.
6463 (free_uploaded_tp): Make it extern.
6464 (free_uploaded_tsv): Make it extern.
6465 (_initialize_tracepoint): Move code to register command 'tsave'
6466 to tracefile.c.
6467 * tracepoint.h (stop_reason_names): Declare.
6468 (struct trace_frame_write_ops): Move it to tracefile.h.
6469 (struct trace_file_write_ops): Likewise.
6470 (struct trace_file_writer): Likewise.
6471 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6472
184cd072
JK
64732014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6474
6475 PR gdb/16594
6476 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6477 process name.
6478 (get_cores_used_by_process): New parameter num_cores, use it.
6479 (linux_xfer_osdata_processes): Pass num_cores to it.
6480 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6481 process name.
6482
c63528fc
AK
64832014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6484
6485 * target.c (memory_xfer_partial): Fix length arg in call to
6486 breakpoint_xfer_memory.
6487
d7b30f67
SDJ
64882014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6489
6490 PR tdep/16397
6491 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6492 number comes after the + or - signs. Adjust length of register
6493 name to be extracted.
6494
8838afaf
TT
64952014-02-20 Tom Tromey <tromey@redhat.com>
6496
6497 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6498 (ada_varobj_ops): Mark "extern".
6499
05227d14
TT
65002014-02-20 Tom Tromey <tromey@redhat.com>
6501
6502 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6503
1254eefc
DE
65042014-02-20 Doug Evans <xdje42@gmail.com>
6505
6506 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6507 All callers updated.
6508 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6509 All callers updated.
6510 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6511 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6512
adde2bff
DE
65132014-02-20 lin zuojian <manjian2006@gmail.com>
6514 Joel Brobecker <brobecker@adacore.com>
6515 Doug Evans <xdje42@gmail.com>
6516
6517 PR symtab/16581
6518 * dwarf2read.c (struct die_info): New member in_process.
6519 (reset_die_in_process): New function.
6520 (process_die): Set it at the start, reset when returning.
6521 (inherit_abstract_dies): Only call process_die if origin_child_die
6522 not already being processed.
6523
3be75f87
JB
65242014-02-20 Joel Brobecker <brobecker@adacore.com>
6525
6526 * windows-nat.c (handle_unload_dll): Add function documentation.
6527 (do_initial_windows_stuff): Add comment explaining why we wait
6528 until after inferior initialization has finished before
6529 processing all DLLs.
6530
47f7ffdb
JB
65312014-02-20 Joel Brobecker <brobecker@adacore.com>
6532
6533 * windows-nat.c (get_module_name): Delete.
6534 (windows_get_exec_module_filename): New function, mostly
6535 inspired from get_module_name.
6536 (windows_pid_to_exec_file): Replace call to get_module_name
6537 by call to windows_get_exec_module_filename.
6538
1cd9feab
JB
65392014-02-20 Joel Brobecker <brobecker@adacore.com>
6540
6541 * windows-nat.c (handle_load_dll): Rewrite this function's
6542 introductory comment. Remove code using get_module_name
6543 to get the DLL's name.
6544
ea39ad35
JB
65452014-02-20 Joel Brobecker <brobecker@adacore.com>
6546
6547 * windows-nat.c (get_windows_debug_event): Ignore
6548 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6549 if windows_initialization_done == 0.
6550 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6551 Adjust implementation to always load all DLLs.
6552 (do_initial_windows_stuff): Replace call to
6553 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6554
95060284
JB
65552014-02-20 Joel Brobecker <brobecker@adacore.com>
6556
6557 * windows-nat.c (_initialize_windows_nat): Deprecate the
6558 "dll-symbols" command. Turn the "add-shared-symbol-files"
6559 and "assf" aliases into commands, and deprecate them as well.
6560 * NEWS: Add entry explaining that "dll-symbols" and its two
6561 aliases are now deprecated.
6562
8d4fdb12
JB
65632014-02-20 Joel Brobecker <brobecker@adacore.com>
6564
6565 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6566 new-line in debug string. Remove trailing spaces.
6567
1b281443
SS
65682014-02-19 Stan Shebs <stan@codesourcery.com>
6569
6570 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6571
f7bd0f78
SC
65722014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6573
6574 * NEWS: Add entry for the new feature
6575 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6576 and class values.
6577
399ebc3d
SS
65782014-02-19 Stan Shebs <stan@codesourcery.com>
6579
6580 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6581
c658158d
PA
65822014-02-19 Pedro Alves <palves@redhat.com>
6583
6584 * common/ptid.h (struct ptid): Mention that process_stratum
6585 targets should prefer ptid.lwp.
6586
ba348170
PA
65872014-02-19 Pedro Alves <palves@redhat.com>
6588
6589 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6590 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6591 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6592 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6593 store remote thread ids rather than ptid.tid.
6594 (_initialize_remote): Adjust.
6595
ac01945b
TT
65962014-02-19 Tom Tromey <tromey@redhat.com>
6597
6598 * target.c (target_get_unwinder): Rewrite.
6599 (target_get_tailcall_unwinder): Rewrite.
6600 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6601 (record_btrace_to_get_tailcall_unwinder): New function.
6602 (init_record_btrace_ops): Update.
6603 * target.h (struct target_ops) <to_get_unwinder,
6604 to_get_tailcall_unwinder>: Now function pointers. Use
6605 TARGET_DEFAULT_RETURN.
6606
8476dc92
TT
66072014-02-19 Tom Tromey <tromey@redhat.com>
6608
6609 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6610 argument.
6611 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6612
c0eca49f
TT
66132014-02-19 Tom Tromey <tromey@redhat.com>
6614
6615 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6616 directly.
6617 * target-delegates.c: Rebuild.
6618 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6619 TARGET_DEFAULT_FUNC.
6620 * target.c (default_target_decr_pc_after_break): Rename from
6621 forward_target_decr_pc_after_break. Simplify.
6622 (target_decr_pc_after_break): Rely on delegation.
6623
596b6b39
TT
66242014-02-19 Tom Tromey <tromey@redhat.com>
6625
6626 * target.c (update_current_target): Do not INHERIT to_doc or
6627 to_magic. Do not de_fault to_open or to_close.
6628
b427c1bc
TT
66292014-02-19 Tom Tromey <tromey@redhat.com>
6630
6631 * gcore.h (objfile_find_memory_regions): Declare.
6632 * gcore.c (objfile_find_memory_regions): No longer static. Add
6633 "self" argument.
6634 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6635 * exec.c: Include gcore.h.
6636 (exec_set_find_memory_regions): Remove.
6637 (exec_find_memory_regions): Remove.
6638 (exec_do_find_memory_regions): Remove.
6639 (init_exec_ops): Update.
6640 * defs.h (exec_set_find_memory_regions): Remove.
6641
9b144037
TT
66422014-02-19 Tom Tromey <tromey@redhat.com>
6643
6644 * target-delegates.c: Rebuild.
6645 * target.h (struct target_ops) <to_extra_thread_info,
6646 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6647 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6648 not 0, in TARGET_DEFAULT_RETURN.
6649
555bbdeb
TT
66502014-02-19 Tom Tromey <tromey@redhat.com>
6651
6652 * target.c (complete_target_initialization): Remove casts. Use
6653 return_zero_has_execution.
6654 (return_zero): Add "ignore" argument.
6655 (return_zero_has_execution): New function.
6656 (init_dummy_target): Remove casts. Use
6657 return_zero_has_execution.
6658
be4ddd36
TT
66592014-02-19 Tom Tromey <tromey@redhat.com>
6660
6661 * target.c (update_current_target): Update comments. Do not
6662 INHERIT to_stratum.
6663
2117c711
TT
66642014-02-19 Tom Tromey <tromey@redhat.com>
6665
6666 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6667 needed.
6668 * corelow.c (core_read_description): Delegate when needed.
6669 * remote.c (remote_read_description): Delegate when needed.
6670 * target-delegates.c: Rebuild.
6671 * target.c (target_read_description): Rewrite.
6672 * target.h (struct target_ops) <to_read_description>: Update
6673 comment. Use TARGET_DEFAULT_RETURN.
6674
e88ef65c
TT
66752014-02-19 Tom Tromey <tromey@redhat.com>
6676
6677 * target-delegates.c: Rebuild.
6678 * target.c (update_current_target): Don't inherit or default
6679 to_can_run.
6680 (find_default_run_target): Check against delegate_can_run.
6681 * target.h (struct target_ops) <to_can_run>: Use
6682 TARGET_DEFAULT_RETURN.
6683
86a0854a
TT
66842014-02-19 Tom Tromey <tromey@redhat.com>
6685
6686 * target-delegates.c: Rebuild.
6687 * target.c (target_disconnect): Unconditionally delegate.
6688 * target.h (struct target_ops) <to_disconnect>: Use
6689 TARGET_DEFAULT_NORETURN.
6690
ee97f592
TT
66912014-02-19 Tom Tromey <tromey@redhat.com>
6692
6693 * record.c (record_stop): Unconditionally delegate.
6694 * target-delegates.c: Rebuild.
6695 * target.c (target_stop_recording): Unconditionally delegate.
6696 * target.h (struct target_ops) <to_stop_recording>: Use
6697 TARGET_DEFAULT_IGNORE.
6698
6dc7fcf4
TT
66992014-02-19 Tom Tromey <tromey@redhat.com>
6700
6701 * target-delegates.c: Rebuild.
6702 * target.c (target_enable_btrace): Unconditionally delegate.
6703 * target.h (struct target_ops) <to_enable_btrace>: Use
6704 TARGET_DEFAULT_NORETURN.
6705
eb5b20d4
TT
67062014-02-19 Tom Tromey <tromey@redhat.com>
6707
6708 * target-delegates.c: Rebuild.
6709 * target.c (target_read_btrace): Unconditionally delegate.
6710 * target.h (struct target_ops) <to_read_btrace>: Use
6711 TARGET_DEFAULT_NORETURN.
6712
9ace480d
TT
67132014-02-19 Tom Tromey <tromey@redhat.com>
6714
6715 * target-delegates.c: Rebuild.
6716 * target.c (target_teardown_btrace): Unconditionally delegate.
6717 * target.h (struct target_ops) <to_teardown_btrace>: Use
6718 TARGET_DEFAULT_NORETURN.
6719
8dc292d3
TT
67202014-02-19 Tom Tromey <tromey@redhat.com>
6721
6722 * target-delegates.c: Rebuild.
6723 * target.c (target_disable_btrace): Unconditionally delegate.
6724 * target.h (struct target_ops) <to_disable_btrace>: Use
6725 TARGET_DEFAULT_NORETURN.
6726
58a5184e
TT
67272014-02-19 Tom Tromey <tromey@redhat.com>
6728
6729 * target-delegates.c: Rebuild.
6730 * target.c (default_search_memory): New function.
6731 (simple_search_memory): Update comment.
6732 (target_search_memory): Unconditionally delegate.
6733 * target.h (struct target_ops) <to_search_memory>: Use
6734 TARGET_DEFAULT_FUNC.
6735
8de71aab
TT
67362014-02-19 Tom Tromey <tromey@redhat.com>
6737
6738 * auxv.c (default_auxv_parse): No longer static.
6739 (target_auxv_parse): Unconditionally delegate.
6740 * auxv.h (default_auxv_parse): Declare.
6741 * target-delegates.c: Rebuild.
6742 * target.c: Include auxv.h.
6743 * target.h (struct target_ops) <to_auxv_parse>: Use
6744 TARGET_DEFAULT_FUNC.
6745
6b2c5a57
TT
67462014-02-19 Tom Tromey <tromey@redhat.com>
6747
6748 * target-delegates.c: Rebuild.
6749 * target.c (target_memory_map): Unconditionally delegate.
6750 * target.h (struct target_ops) <to_memory_map>: Use
6751 TARGET_DEFAULT_RETURN.
6752
cbffc065
TT
67532014-02-19 Tom Tromey <tromey@redhat.com>
6754
6755 * target-delegates.c: Rebuild.
6756 * target.c (target_thread_alive): Unconditionally delegate.
6757 * target.h (struct target_ops) <to_thread_alive>: Use
6758 TARGET_DEFAULT_RETURN.
6759
f09e2107
TT
67602014-02-19 Tom Tromey <tromey@redhat.com>
6761
6762 * target-delegates.c: Rebuild.
6763 * target.c (target_save_record): Unconditionally delegate.
6764 * target.h (struct target_ops) <to_save_record>: Use
6765 TARGET_DEFAULT_NORETURN.
6766
07366925
TT
67672014-02-19 Tom Tromey <tromey@redhat.com>
6768
6769 * target-delegates.c: Rebuild.
6770 * target.c (target_delete_record): Unconditionally delegate.
6771 * target.h (struct target_ops) <to_delete_record>: Use
6772 TARGET_DEFAULT_NORETURN.
6773
dd2e9d25
TT
67742014-02-19 Tom Tromey <tromey@redhat.com>
6775
6776 * target-delegates.c: Rebuild.
6777 * target.c (target_record_is_replaying): Unconditionally
6778 delegate.
6779 * target.h (struct target_ops) <to_record_is_replaying>: Use
6780 TARGET_DEFAULT_RETURN.
6781
671e76cc
TT
67822014-02-19 Tom Tromey <tromey@redhat.com>
6783
6784 * target-delegates.c: Rebuild.
6785 * target.c (target_goto_record_begin): Unconditionally delegate.
6786 * target.h (struct target_ops) <to_goto_record_begin>: Use
6787 TARGET_DEFAULT_NORETURN.
6788
e9179bb3
TT
67892014-02-19 Tom Tromey <tromey@redhat.com>
6790
6791 * target-delegates.c: Rebuild.
6792 * target.c (target_goto_record_end): Unconditionally delegate.
6793 * target.h (struct target_ops) <to_goto_record_end>: Use
6794 TARGET_DEFAULT_NORETURN.
6795
05969c84
TT
67962014-02-19 Tom Tromey <tromey@redhat.com>
6797
6798 * target-delegates.c: Rebuild.
6799 * target.c (target_goto_record): Unconditionally delegate.
6800 * target.h (struct target_ops) <to_goto_record>: Use
6801 TARGET_DEFAULT_NORETURN.
6802
3679abfa
TT
68032014-02-19 Tom Tromey <tromey@redhat.com>
6804
6805 * target-delegates.c: Rebuild.
6806 * target.c (target_insn_history): Unconditionally delegate.
6807 * target.h (struct target_ops) <to_insn_history>: Use
6808 TARGET_DEFAULT_NORETURN.
6809
8444ab58
TT
68102014-02-19 Tom Tromey <tromey@redhat.com>
6811
6812 * target-delegates.c: Rebuild.
6813 * target.c (target_insn_history_from): Unconditionally delegate.
6814 * target.h (struct target_ops) <to_insn_history_from>: Use
6815 TARGET_DEFAULT_NORETURN.
6816
c29302cc
TT
68172014-02-19 Tom Tromey <tromey@redhat.com>
6818
6819 * target-delegates.c: Rebuild.
6820 * target.c (target_insn_history_range): Unconditionally delegate.
6821 * target.h (struct target_ops) <to_insn_history_range>: Use
6822 TARGET_DEFAULT_NORETURN.
6823
170049d4
TT
68242014-02-19 Tom Tromey <tromey@redhat.com>
6825
6826 * target-delegates.c: Rebuild.
6827 * target.c (target_call_history): Unconditionally delegate.
6828 * target.h (struct target_ops) <to_call_history>: Use
6829 TARGET_DEFAULT_NORETURN.
6830
16fc27d6
TT
68312014-02-19 Tom Tromey <tromey@redhat.com>
6832
6833 * target-delegates.c: Rebuild.
6834 * target.c (target_call_history_from): Unconditionally delegate.
6835 * target.h (struct target_ops) <to_call_history_from>: Use
6836 TARGET_DEFAULT_NORETURN.
6837
115d9817
TT
68382014-02-19 Tom Tromey <tromey@redhat.com>
6839
6840 * target-delegates.c: Rebuild.
6841 * target.c (target_call_history_range): Unconditionally delegate.
6842 * target.h (struct target_ops) <to_call_history_range>: Use
6843 TARGET_DEFAULT_NORETURN.
6844
eb276a6b
TT
68452014-02-19 Tom Tromey <tromey@redhat.com>
6846
6847 * target-delegates.c: Rebuild.
6848 * target.c (target_verify_memory): Unconditionally delegate.
6849 * target.h (struct target_ops) <to_verify_memory>: Use
6850 TARGET_DEFAULT_NORETURN.
6851
9e538d0d
TT
68522014-02-19 Tom Tromey <tromey@redhat.com>
6853
6854 * target-delegates.c: Rebuild.
6855 * target.c (target_core_of_thread): Unconditionally delegate.
6856 * target.h (struct target_ops) <to_core_of_thread>: Use
6857 TARGET_DEFAULT_RETURN.
6858
f6fb2925
TT
68592014-02-19 Tom Tromey <tromey@redhat.com>
6860
6861 * target-delegates.c: Rebuild.
6862 * target.c (target_flash_done): Unconditionally delegate.
6863 * target.h (struct target_ops) <to_flash_done>: Use
6864 TARGET_DEFAULT_NORETURN.
6865
e8a6c6ac
TT
68662014-02-19 Tom Tromey <tromey@redhat.com>
6867
6868 * target-delegates.c: Rebuild.
6869 * target.c (target_flash_erase): Unconditionally delegate.
6870 * target.h (struct target_ops) <to_flash_erase>: Use
6871 TARGET_DEFAULT_NORETURN.
6872
7e35c012
TT
68732014-02-19 Tom Tromey <tromey@redhat.com>
6874
6875 * target-delegates.c: Rebuild.
6876 * target.c (target_get_section_table): Unconditionally delegate.
6877 * target.h (struct target_ops) <to_get_section_table>: Use
6878 TARGET_DEFAULT_RETURN.
6879
770234d3
TT
68802014-02-19 Tom Tromey <tromey@redhat.com>
6881
6882 * target-delegates.c: Rebuild.
6883 * target.c (target_pid_to_str): Unconditionally delegate.
6884 (init_dummy_target): Don't initialize to_pid_to_str.
6885 (default_pid_to_str): Rename from dummy_pid_to_str.
6886 * target.h (struct target_ops) <to_pid_to_str>: Use
6887 TARGET_DEFAULT_FUNC.
6888
09b0dc2b
TT
68892014-02-19 Tom Tromey <tromey@redhat.com>
6890
6891 * target-delegates.c: Rebuild.
6892 * target.c (target_find_new_threads): Unconditionally delegate.
6893 * target.h (struct target_ops) <to_find_new_threads>: Use
6894 TARGET_DEFAULT_RETURN.
6895
7d4f8efa
TT
68962014-02-19 Tom Tromey <tromey@redhat.com>
6897
6898 * target-delegates.c: Rebuild.
6899 * target.c (target_program_signals): Unconditionally delegate.
6900 * target.h (struct target_ops) <to_program_signals>: Use
6901 TARGET_DEFAULT_IGNORE.
6902
035cad7f
TT
69032014-02-19 Tom Tromey <tromey@redhat.com>
6904
6905 * target-delegates.c: Rebuild.
6906 * target.c (target_pass_signals): Unconditionally delegate.
6907 * target.h (struct target_ops) <to_pass_signals>: Use
6908 TARGET_DEFAULT_IGNORE.
6909
8d657035
TT
69102014-02-19 Tom Tromey <tromey@redhat.com>
6911
6912 * target-delegates.c: Rebuild.
6913 * target.c (default_mourn_inferior): New function.
6914 (target_mourn_inferior): Unconditionally delegate.
6915 * target.h (struct target_ops) <to_mourn_inferior>: Use
6916 TARGET_DEFAULT_FUNC.
6917
098dba18
TT
69182014-02-19 Tom Tromey <tromey@redhat.com>
6919
6920 * target-delegates.c: Rebuild.
6921 * target.c (default_follow_fork): New function.
6922 (target_follow_fork): Unconditionally delegate.
6923 * target.h (struct target_ops) <to_follow_fork>: Use
6924 TARGET_DEFAULT_FUNC.
6925
423a4807
TT
69262014-02-19 Tom Tromey <tromey@redhat.com>
6927
6928 * target-delegates.c: Rebuild.
6929 * target.c (target_kill): Unconditionally delegate.
6930 * target.h (struct target_ops) <to_kill>: Use
6931 TARGET_DEFAULT_NORETURN.
6932
6c7e5e5c
TT
69332014-02-19 Tom Tromey <tromey@redhat.com>
6934
6935 * target-delegates.c: Rebuild.
6936 * target.c (target_masked_watch_num_registers): Unconditionally
6937 delegate.
6938 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6939 Use TARGET_DEFAULT_RETURN.
6940
8b1c364c
TT
69412014-02-19 Tom Tromey <tromey@redhat.com>
6942
6943 * target-delegates.c: Rebuild.
6944 * target.c (target_remove_mask_watchpoint): Unconditionally
6945 delegate.
6946 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6947 TARGET_DEFAULT_RETURN.
6948
cd4ae029
TT
69492014-02-19 Tom Tromey <tromey@redhat.com>
6950
6951 * target-delegates.c: Rebuild.
6952 * target.c (target_insert_mask_watchpoint): Unconditionally
6953 delegate.
6954 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6955 TARGET_DEFAULT_RETURN.
6956
a134316b
TT
69572014-02-19 Tom Tromey <tromey@redhat.com>
6958
6959 * target-delegates.c: Rebuild.
6960 * target.c (target_ranged_break_num_registers): Unconditionally
6961 delegate.
6962 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6963 Use TARGET_DEFAULT_RETURN.
6964
ad5989bd
TT
69652014-02-19 Tom Tromey <tromey@redhat.com>
6966
6967 * target-delegates.c: Rebuild.
6968 * target.c (target_fetch_registers): Unconditionally delegate.
6969 * target.h (struct target_ops) <to_fetch_registers>: Use
6970 TARGET_DEFAULT_NORETURN.
6971
46ee7e8d
TT
69722014-02-19 Tom Tromey <tromey@redhat.com>
6973
6974 * target-delegates.c: Rebuild.
6975 * target.c (update_current_target): Don't inherit or default
6976 to_stop.
6977 * target.h (struct target_ops) <to_stop>: Use
6978 TARGET_DEFAULT_IGNORE.
6979
843f59ed
TT
69802014-02-19 Tom Tromey <tromey@redhat.com>
6981
6982 * target-delegates.c: Rebuild.
6983 * target.c (update_current_target): Don't inherit or default
6984 to_can_run_breakpoint_commands.
6985 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6986 Use TARGET_DEFAULT_RETURN.
6987
ccfde2a0
TT
69882014-02-19 Tom Tromey <tromey@redhat.com>
6989
6990 * target-delegates.c: Rebuild.
6991 * target.c (update_current_target): Don't inherit or default
6992 to_supports_evaluation_of_breakpoint_conditions.
6993 * target.h (struct target_ops)
6994 <to_supports_evaluation_of_breakpoint_conditions>: Use
6995 TARGET_DEFAULT_RETURN.
6996
0de91722
TT
69972014-02-19 Tom Tromey <tromey@redhat.com>
6998
6999 * target-delegates.c: Rebuild.
7000 * target.c (update_current_target): Don't inherit or default
7001 to_augmented_libraries_svr4_read.
7002 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7003 Use TARGET_DEFAULT_RETURN.
7004
9a7d8b48
TT
70052014-02-19 Tom Tromey <tromey@redhat.com>
7006
7007 * target-delegates.c: Rebuild.
7008 * target.c (update_current_target): Don't inherit or default
7009 to_can_use_agent.
7010 * target.h (struct target_ops) <to_can_use_agent>: Use
7011 TARGET_DEFAULT_RETURN.
7012
d9db5b21
TT
70132014-02-19 Tom Tromey <tromey@redhat.com>
7014
7015 * target-delegates.c: Rebuild.
7016 * target.c (update_current_target): Don't inherit or default
7017 to_use_agent.
7018 * target.h (struct target_ops) <to_use_agent>: Use
7019 TARGET_DEFAULT_NORETURN.
7020
92155eeb
TT
70212014-02-19 Tom Tromey <tromey@redhat.com>
7022
7023 * target-delegates.c: Rebuild.
7024 * target.c (update_current_target): Don't inherit or default
7025 to_traceframe_info.
7026 (return_null): Remove.
7027 * target.h (struct target_ops) <to_traceframe_info>: Use
7028 TARGET_DEFAULT_RETURN.
7029
d6522a22
TT
70302014-02-19 Tom Tromey <tromey@redhat.com>
7031
7032 * target-delegates.c: Rebuild.
7033 * target.c (update_current_target): Don't inherit or default
7034 to_static_tracepoint_markers_by_strid.
7035 * target.h (struct target_ops)
7036 <to_static_tracepoint_markers_by_strid>: Use
7037 TARGET_DEFAULT_NORETURN.
7038
4c3e4425
TT
70392014-02-19 Tom Tromey <tromey@redhat.com>
7040
7041 * target-delegates.c: Rebuild.
7042 * target.c (update_current_target): Don't inherit or default
7043 to_static_tracepoint_marker_at.
7044 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7045 Use TARGET_DEFAULT_RETURN.
7046
dcd6917f
TT
70472014-02-19 Tom Tromey <tromey@redhat.com>
7048
7049 * target-delegates.c: Rebuild.
7050 * target.c (update_current_target): Don't inherit or default
7051 to_set_permissions.
7052 * target.h (struct target_ops) <to_set_permissions>: Use
7053 TARGET_DEFAULT_IGNORE.
7054
22bcceee
TT
70552014-02-19 Tom Tromey <tromey@redhat.com>
7056
7057 * target-delegates.c: Rebuild.
7058 * target.c (update_current_target): Don't inherit or default
7059 to_get_tib_address.
7060 * target.h (struct target_ops) <to_get_tib_address>: Use
7061 TARGET_DEFAULT_NORETURN.
7062
8586ccaa
TT
70632014-02-19 Tom Tromey <tromey@redhat.com>
7064
7065 * target-delegates.c: Rebuild.
7066 * target.c (update_current_target): Don't inherit or default
7067 to_set_trace_notes.
7068 * target.h (struct target_ops) <to_set_trace_notes>: Use
7069 TARGET_DEFAULT_RETURN.
7070
91df8d1d
TT
70712014-02-19 Tom Tromey <tromey@redhat.com>
7072
7073 * target-delegates.c: Rebuild.
7074 * target.c (update_current_target): Don't initialize
7075 to_set_trace_buffer_size.
7076 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7077 TARGET_DEFAULT_IGNORE.
7078
8d526939
TT
70792014-02-19 Tom Tromey <tromey@redhat.com>
7080
7081 * target-delegates.c: Rebuild.
7082 * target.c (update_current_target): Don't inherit or default
7083 to_set_circular_trace_buffer.
7084 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7085 TARGET_DEFAULT_IGNORE.
7086
0bcfeddf
TT
70872014-02-19 Tom Tromey <tromey@redhat.com>
7088
7089 * target-delegates.c: Rebuild.
7090 * target.c (update_current_target): Don't inherit or default
7091 to_set_disconnected_tracing.
7092 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7093 TARGET_DEFAULT_IGNORE.
7094
9249843f
TT
70952014-02-19 Tom Tromey <tromey@redhat.com>
7096
7097 * target-delegates.c: Rebuild.
7098 * target.c (update_current_target): Don't inherit or default
7099 to_get_min_fast_tracepoint_insn_len.
7100 (return_minus_one): Remove.
7101 * target.h (struct target_ops)
7102 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7103
ace92e7d
TT
71042014-02-19 Tom Tromey <tromey@redhat.com>
7105
7106 * target-delegates.c: Rebuild.
7107 * target.c (update_current_target): Don't inherit or default
7108 to_get_raw_trace_data.
7109 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7110 TARGET_DEFAULT_NORETURN.
7111
08120467
TT
71122014-02-19 Tom Tromey <tromey@redhat.com>
7113
7114 * target-delegates.c: Rebuild.
7115 * target.c (update_current_target): Don't inherit or default
7116 to_upload_trace_state_variables.
7117 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7118 Use TARGET_DEFAULT_RETURN.
7119
1e949b00
TT
71202014-02-19 Tom Tromey <tromey@redhat.com>
7121
7122 * target-delegates.c: Rebuild.
7123 * target.c (update_current_target): Don't inherit or default
7124 to_upload_tracepoints.
7125 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7126 TARGET_DEFAULT_RETURN.
7127
a2e6c147
TT
71282014-02-19 Tom Tromey <tromey@redhat.com>
7129
7130 * target-delegates.c: Rebuild.
7131 * target.c (update_current_target): Don't inherit or default
7132 to_save_trace_data.
7133 * target.h (struct target_ops) <to_save_trace_data>: Use
7134 TARGET_DEFAULT_NORETURN.
7135
959bcd0b
TT
71362014-02-19 Tom Tromey <tromey@redhat.com>
7137
7138 * target-delegates.c: Rebuild.
7139 * target.c (update_current_target): Don't inherit or default
7140 to_get_trace_state_variable_value.
7141 * target.h (struct target_ops)
7142 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7143
afc94e66
TT
71442014-02-19 Tom Tromey <tromey@redhat.com>
7145
7146 * target-delegates.c: Rebuild.
7147 * target.c (update_current_target): Don't inherit or default
7148 to_trace_find.
7149 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7150
e51c07ea
TT
71512014-02-19 Tom Tromey <tromey@redhat.com>
7152
7153 * target-delegates.c: Rebuild.
7154 * target.c (update_current_target): Don't inherit or default
7155 to_trace_stop.
7156 * target.h (struct target_ops) <to_trace_stop>: Use
7157 TARGET_DEFAULT_NORETURN.
7158
6fea14cd
TT
71592014-02-19 Tom Tromey <tromey@redhat.com>
7160
7161 * target-delegates.c: Rebuild.
7162 * target.c (update_current_target): Don't inherit or default
7163 to_get_tracepoint_status.
7164 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7165 TARGET_DEFAULT_NORETURN.
7166
4072d4ff
TT
71672014-02-19 Tom Tromey <tromey@redhat.com>
7168
7169 * target-delegates.c: Rebuild.
7170 * target.c (update_current_target): Don't inherit or default
7171 to_get_trace_status.
7172 * target.h (struct target_ops) <to_get_trace_status>: Use
7173 TARGET_DEFAULT_RETURN.
7174
25da2e80
TT
71752014-02-19 Tom Tromey <tromey@redhat.com>
7176
7177 * target-delegates.c: Rebuild.
7178 * target.c (update_current_target): Don't inherit or default
7179 to_trace_start.
7180 * target.h (struct target_ops) <to_trace_start>: Use
7181 TARGET_DEFAULT_NORETURN.
7182
86dd181d
TT
71832014-02-19 Tom Tromey <tromey@redhat.com>
7184
7185 * target-delegates.c: Rebuild.
7186 * target.c (update_current_target): Don't inherit or default
7187 to_trace_set_readonly_regions.
7188 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7189 Use TARGET_DEFAULT_NORETURN.
7190
05c41993
TT
71912014-02-19 Tom Tromey <tromey@redhat.com>
7192
7193 * target-delegates.c: Rebuild.
7194 * target.c (update_current_target): Don't inherit or default
7195 to_disable_tracepoint.
7196 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7197 TARGET_DEFAULT_NORETURN.
7198
151f70f1
TT
71992014-02-19 Tom Tromey <tromey@redhat.com>
7200
7201 * target-delegates.c: Rebuild.
7202 * target.c (update_current_target): Don't inherit or default
7203 to_enable_tracepoint.
7204 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7205 TARGET_DEFAULT_NORETURN.
7206
94eb98b9
TT
72072014-02-19 Tom Tromey <tromey@redhat.com>
7208
7209 * target-delegates.c: Rebuild.
7210 * target.c (update_current_target): Don't inherit or default
7211 to_download_trace_state_variable.
7212 * target.h (struct target_ops) <to_download_trace_state_variable>:
7213 Use TARGET_DEFAULT_NORETURN.
7214
719acc4a
TT
72152014-02-19 Tom Tromey <tromey@redhat.com>
7216
7217 * target-delegates.c: Rebuild.
7218 * target.c (update_current_target): Don't inherit or default
7219 to_can_download_tracepoint.
7220 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7221 TARGET_DEFAULT_RETURN.
7222
9a980a22
TT
72232014-02-19 Tom Tromey <tromey@redhat.com>
7224
7225 * target-delegates.c: Rebuild.
7226 * target.c (update_current_target): Don't inherit or default
7227 to_download_tracepoint.
7228 * target.h (struct target_ops) <to_download_tracepoint>: Use
7229 TARGET_DEFAULT_NORETURN.
7230
5536135b
TT
72312014-02-19 Tom Tromey <tromey@redhat.com>
7232
7233 * target-delegates.c: Rebuild.
7234 * target.c (update_current_target): Don't inherit or default
7235 to_trace_init.
7236 * target.h (struct target_ops) <to_trace_init>: Use
7237 TARGET_DEFAULT_RETURN.
7238
9409d39e
TT
72392014-02-19 Tom Tromey <tromey@redhat.com>
7240
7241 * target-delegates.c: Rebuild.
7242 * target.c (update_current_target): Don't inherit or default
7243 to_supports_string_tracing.
7244 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7245 TARGET_DEFAULT_RETURN.
7246
aab1b22d
TT
72472014-02-19 Tom Tromey <tromey@redhat.com>
7248
7249 * target-delegates.c: Rebuild.
7250 * target.c (update_current_target): Don't inherit or default
7251 to_supports_enable_disable_tracepoint.
7252 * target.h (struct target_ops)
7253 <to_supports_enable_disable_tracepoint>: Use
7254 TARGET_DEFAULT_RETURN.
7255
a7304748
TT
72562014-02-19 Tom Tromey <tromey@redhat.com>
7257
7258 * target-delegates.c: Rebuild.
7259 * target.c (update_current_target): Don't inherit or default
7260 to_supports_multi_process.
7261 * target.h (struct target_ops) <to_supports_multi_process>: Use
7262 TARGET_DEFAULT_RETURN.
7263
4229b31d
TT
72642014-02-19 Tom Tromey <tromey@redhat.com>
7265
7266 * target-delegates.c: Rebuild.
7267 * target.c (update_current_target): Don't inherit or default
7268 to_get_ada_task_ptid.
7269 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7270 TARGET_DEFAULT_FUNC.
7271
43eba180
TT
72722014-02-19 Tom Tromey <tromey@redhat.com>
7273
7274 * target-delegates.c: Rebuild.
7275 * target.c (update_current_target): Don't inherit or default
7276 to_thread_architecture.
7277 * target.h (struct target_ops) <to_thread_architecture>: Use
7278 TARGET_DEFAULT_FUNC.
7279
fe31bf5b
TT
72802014-02-19 Tom Tromey <tromey@redhat.com>
7281
7282 * target-delegates.c: Rebuild.
7283 * target.c (update_current_target): Don't inherit or default
7284 to_execution_direction.
7285 * target.h (struct target_ops) <to_execution_direction>: Use
7286 TARGET_DEFAULT_FUNC.
7287
53e1cfc7
TT
72882014-02-19 Tom Tromey <tromey@redhat.com>
7289
7290 * target-delegates.c: Rebuild.
7291 * target.c (update_current_target): Don't inherit or default
7292 to_can_execute_reverse.
7293 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7294 TARGET_DEFAULT_RETURN.
7295 (target_can_execute_reverse): Unconditionally delegate.
7296
9bb9d61d
TT
72972014-02-19 Tom Tromey <tromey@redhat.com>
7298
7299 * target-delegates.c: Rebuild.
7300 * target.c (update_current_target): Don't inherit or default
7301 to_goto_bookmark.
7302 (dummy_goto_bookmark): Remove.
7303 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7304 * target.h (struct target_ops) <to_goto_bookmark>: Use
7305 TARGET_DEFAULT_NORETURN.
7306
3dbafbbb
TT
73072014-02-19 Tom Tromey <tromey@redhat.com>
7308
7309 * target-delegates.c: Rebuild.
7310 * target.c (update_current_target): Don't inherit or default
7311 to_get_bookmark.
7312 (dummy_get_bookmark): Remove.
7313 (init_dummy_target): Don't inherit or default to_get_bookmark.
7314 * target.h (struct target_ops) <to_get_bookmark>: Use
7315 TARGET_DEFAULT_NORETURN
7316
16f796b1
TT
73172014-02-19 Tom Tromey <tromey@redhat.com>
7318
7319 * target-delegates.c: Rebuild.
7320 * target.c (update_current_target): Don't inherit or default
7321 to_make_corefile_notes.
7322 (init_dummy_target): Don't initialize to_make_corefile_notes.
7323 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7324 TARGET_DEFAULT_FUNC.
7325
0b5a2719
TT
73262014-02-19 Tom Tromey <tromey@redhat.com>
7327
7328 * target-delegates.c: Rebuild.
7329 * target.c (update_current_target): Don't inherit or default
7330 to_find_memory_regions.
7331 (init_dummy_target): Don't initialize to_find_memory_regions.
7332 * target.h (struct target_ops) <to_find_memory_regions>: Use
7333 TARGET_DEFAULT_FUNC.
7334
d9cb0195
TT
73352014-02-19 Tom Tromey <tromey@redhat.com>
7336
7337 * target-delegates.c: Rebuild.
7338 * target.c (update_current_target): Don't inherit or default
7339 to_log_command.
7340 * target.h (struct target_ops) <to_log_command>: Use
7341 TARGET_DEFAULT_IGNORE.
7342 (target_log_command): Unconditionally delegate.
7343
830ca330
TT
73442014-02-19 Tom Tromey <tromey@redhat.com>
7345
7346 * target-delegates.c: Rebuild.
7347 * target.c (update_current_target): Don't inherit or default
7348 to_pid_to_exec_file.
7349 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7350 TARGET_DEFAULT_RETURN.
7351
825828fc
TT
73522014-02-19 Tom Tromey <tromey@redhat.com>
7353
7354 * target-delegates.c: Rebuild.
7355 * target.c (update_current_target): Don't inherit or default
7356 to_thread_name.
7357 (target_thread_name): Unconditionally delegate.
7358 * target.h (struct target_ops) <to_thread_name>: Use
7359 TARGET_DEFAULT_RETURN.
7360
4a7e6dda
TT
73612014-02-19 Tom Tromey <tromey@redhat.com>
7362
7363 * target-delegates.c: Rebuild.
7364 * target.c (update_current_target): Don't inherit or default
7365 to_extra_thread_info.
7366 * target.h (struct target_ops) <to_extra_thread_info>: Use
7367 TARGET_DEFAULT_RETURN.
7368
0db88c1d
TT
73692014-02-19 Tom Tromey <tromey@redhat.com>
7370
7371 * target-delegates.c: Rebuild.
7372 * target.c (update_current_target): Don't inherit or default
7373 to_has_exited.
7374 * target.h (struct target_ops) <to_has_exited>: Use
7375 TARGET_DEFAULT_RETURN..
7376
6a9fa051
TT
73772014-02-19 Tom Tromey <tromey@redhat.com>
7378
7379 * target-delegates.c: Rebuild.
7380 * target.c (update_current_target): Don't inherit or default
7381 to_set_syscall_catchpoint.
7382 (return_one): Remove.
7383 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7384 TARGET_DEFAULT_RETURN.
7385
62f64d7a
TT
73862014-02-19 Tom Tromey <tromey@redhat.com>
7387
7388 * target-delegates.c: Rebuild.
7389 * target.c (update_current_target): Don't inherit or default
7390 to_insert_exec_catchpoint.
7391 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7392 TARGET_DEFAULT_RETURN.
7393
cda0f38c
TT
73942014-01-08 Tom Tromey <tromey@redhat.com>
7395
7396 * target-delegates.c: Rebuild.
7397 * target.c (update_current_target): Don't inherit or default
7398 to_insert_exec_catchpoint.
7399 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7400 TARGET_DEFAULT_RETURN.
7401
95c3375e
TT
74022014-02-19 Tom Tromey <tromey@redhat.com>
7403
7404 * target-delegates.c: Rebuild.
7405 * target.c (update_current_target): Don't inherit or default
7406 to_remove_vfork_catchpoint.
7407 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7408 TARGET_DEFAULT_RETURN.
7409
7e18a8dc
TT
74102014-02-19 Tom Tromey <tromey@redhat.com>
7411
7412 * target-delegates.c: Rebuild.
7413 * target.c (update_current_target): Don't inherit or default
7414 to_insert_vfork_catchpoint.
7415 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7416 TARGET_DEFAULT_RETURN.
7417
e1a21fb7
TT
74182014-02-19 Tom Tromey <tromey@redhat.com>
7419
7420 * target-delegates.c: Rebuild.
7421 * target.c (update_current_target): Don't inherit or default
7422 to_remove_fork_catchpoint.
7423 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7424 TARGET_DEFAULT_RETURN.
7425
5958ebeb
TT
74262014-02-19 Tom Tromey <tromey@redhat.com>
7427
7428 * target-delegates.c: Rebuild.
7429 * target.c (update_current_target): Don't inherit or default
7430 to_insert_fork_catchpoint.
7431 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7432 TARGET_DEFAULT_RETURN.
7433
340ba4bf
TT
74342014-02-19 Tom Tromey <tromey@redhat.com>
7435
7436 * target-delegates.c: Rebuild.
7437 * target.c (update_current_target): Don't inherit or default
7438 to_post_startup_inferior.
7439 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7440 TARGET_DEFAULT_IGNORE.
7441
7634da87
TT
74422014-02-19 Tom Tromey <tromey@redhat.com>
7443
7444 * target-delegates.c: Rebuild.
7445 * target.c (update_current_target): Don't inherit or default
7446 to_load.
7447 * target.h (struct target_ops) <to_load>: Use
7448 TARGET_DEFAULT_NORETURN.
7449
e19e919f
TT
74502014-02-19 Tom Tromey <tromey@redhat.com>
7451
7452 * target-delegates.c: Rebuild.
7453 * target.c (update_current_target): Don't inherit or default
7454 to_terminal_info.
7455 * target.h (struct target_ops) <to_terminal_info>: Use
7456 TARGET_DEFAULT_FUNC.
7457
c6ea8f79
TT
74582014-02-19 Tom Tromey <tromey@redhat.com>
7459
7460 * target-delegates.c: Rebuild.
7461 * target.c (update_current_target): Don't inherit or default
7462 to_terminal_save_ours.
7463 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7464 TARGET_DEFAULT_IGNORE.
7465
e4a733f1
TT
74662014-02-19 Tom Tromey <tromey@redhat.com>
7467
7468 * target-delegates.c: Rebuild.
7469 * target.c (update_current_target): Don't inherit or default
7470 to_terminal_ours.
7471 * target.h (struct target_ops) <to_terminal_ours>: Use
7472 TARGET_DEFAULT_IGNORE.
7473
74fcbef9
TT
74742014-02-19 Tom Tromey <tromey@redhat.com>
7475
7476 * target-delegates.c: Rebuild.
7477 * target.c (update_current_target): Don't inherit or default
7478 to_terminal_ours_for_output.
7479 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7480 TARGET_DEFAULT_IGNORE.
7481
ddeaacc9
TT
74822014-02-19 Tom Tromey <tromey@redhat.com>
7483
7484 * target-delegates.c: Rebuild.
7485 * target.c (update_current_target): Don't inherit or default
7486 to_terminal_inferior.
7487 * target.h (struct target_ops) <to_terminal_inferior>: Use
7488 TARGET_DEFAULT_IGNORE.
7489
0343661d
TT
74902014-02-19 Tom Tromey <tromey@redhat.com>
7491
7492 * target-delegates.c: Rebuild.
7493 * target.c (update_current_target): Don't inherit or default
7494 to_terminal_init.
7495 * target.h (struct target_ops) <to_terminal_init>: Use
7496 TARGET_DEFAULT_IGNORE.
7497
77cdffe9
TT
74982014-02-19 Tom Tromey <tromey@redhat.com>
7499
7500 * target-delegates.c: Rebuild.
7501 * target.c (update_current_target): Don't inherit or default
7502 to_can_accel_watchpoint_condition.
7503 * target.h (struct target_ops)
7504 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7505
d03655e4
TT
75062014-02-19 Tom Tromey <tromey@redhat.com>
7507
7508 * target-delegates.c: Rebuild.
7509 * target.c (update_current_target): Don't inherit or default
7510 to_region_ok_for_hw_watchpoint.
7511 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7512 Use TARGET_DEFAULT_FUNC.
7513
65f160a9
TT
75142014-02-19 Tom Tromey <tromey@redhat.com>
7515
7516 * target-delegates.c: Rebuild.
7517 * target.c (update_current_target): Don't inherit or default
7518 to_watchpoint_addr_within_range.
7519 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7520 Use TARGET_DEFAULT_FUNC.
7521
61dd109f
TT
75222014-02-19 Tom Tromey <tromey@redhat.com>
7523
7524 * target-delegates.c: Rebuild.
7525 * target.c (update_current_target): Don't inherit or default
7526 to_remove_watchpoint.
7527 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7528 TARGET_DEFAULT_NORETURN.
7529
016facd4
TT
75302014-02-19 Tom Tromey <tromey@redhat.com>
7531
7532 * target-delegates.c: Rebuild.
7533 * target.c (update_current_target): Don't inherit or default
7534 to_insert_watchpoint.
7535 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7536 TARGET_DEFAULT_RETURN.
7537
418dabac
TT
75382014-02-19 Tom Tromey <tromey@redhat.com>
7539
7540 * target-delegates.c: Rebuild.
7541 * target.c (update_current_target): Don't inherit or default
7542 to_remove_hw_breakpoint.
7543 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7544 TARGET_DEFAULT_RETURN.
7545
61b371f9
TT
75462014-02-19 Tom Tromey <tromey@redhat.com>
7547
7548 * target-delegates.c: Rebuild.
7549 * target.c (update_current_target): Don't inherit or default
7550 to_insert_hw_breakpoint.
7551 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7552 TARGET_DEFAULT_RETURN.
7553
52b51d06
TT
75542014-02-19 Tom Tromey <tromey@redhat.com>
7555
7556 * target-delegates.c: Rebuild.
7557 * target.c (update_current_target): Don't inherit or default
7558 to_can_use_hw_breakpoint.
7559 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7560 TARGET_DEFAULT_RETURN.
7561
f86e59b2
TT
75622014-02-19 Tom Tromey <tromey@redhat.com>
7563
7564 * target-delegates.c: Rebuild.
7565 * target.c (update_current_target): Don't inherit or default
7566 to_files_info.
7567 * target.h (struct target_ops) <to_files_info>: Use
7568 TARGET_DEFAULT_IGNORE.
7569
6c628163
TT
75702014-02-19 Tom Tromey <tromey@redhat.com>
7571
7572 * target-delegates.c: Rebuild.
7573 * target.c (update_current_target): Don't inherit or default
7574 to_store.
7575 * target.h (struct target_ops) <to_store>: Use
7576 TARGET_DEFAULT_NORETURN.
7577
bebd3233
TT
75782014-02-19 Tom Tromey <tromey@redhat.com>
7579
7580 * target-delegates.c: Rebuild.
7581 * target.c (update_current_target): Don't inherit or default
7582 to_post_attach.
7583 * target.h (struct target_ops) <to_post_attach>: Use
7584 TARGET_DEFAULT_IGNORE.
7585
a53f3625
TT
75862014-02-19 Tom Tromey <tromey@redhat.com>
7587
7588 * target-delegates.c: Rebuild.
7589 * target.c (update_current_target): Don't inherit or default
7590 to_rcmd.
7591 (default_rcmd): New function.
7592 (do_monitor_command): Unconditionally delegate.
7593 * target.h (struct target_ops) <to_rmcd>: Use
7594 TARGET_DEFAULT_FUNC.
7595
e9a29200
TT
75962014-02-19 Tom Tromey <tromey@redhat.com>
7597
7598 * target-delegates.c: Rebuild.
7599 * target.c (init_dummy_target): Don't initialize to_attach.
7600 (target_attach): Unconditionally delegate.
7601 * target.h (struct target_ops) <to_attach>: Use
7602 TARGET_DEFAULT_FUNC.
7603
09da0d0a
TT
76042014-02-19 Tom Tromey <tromey@redhat.com>
7605
7606 * target-delegates.c: Rebuild.
7607 * target.c (target_detach): Unconditionally delegate.
7608 (init_dummy_target): Don't initialize to_detach.
7609 * target.h (struct target_ops) <to_detach>: Use
7610 TARGET_DEFAULT_IGNORE.
7611
5436ff03
TT
76122014-02-19 Tom Tromey <tromey@redhat.com>
7613
7614 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7615 Add argument.
7616 (target_augmented_libraries_svr4_read): Add argument.
7617 * target.c (update_current_target): Update.
7618 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7619 argument.
7620
f0d960ea
TT
76212014-02-19 Tom Tromey <tromey@redhat.com>
7622
7623 * target.h (struct target_ops) <to_call_history_range>: Add
7624 argument.
7625 * target.c (target_call_history_range): Add argument.
7626 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7627 argument.
7628 (record_btrace_call_history_from): Update.
7629
ec0aea04
TT
76302014-02-19 Tom Tromey <tromey@redhat.com>
7631
7632 * target.h (struct target_ops) <to_call_history_from>: Add
7633 argument.
7634 * target.c (target_call_history_from): Add argument.
7635 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7636 argument.
7637
5df2fcba
TT
76382014-02-19 Tom Tromey <tromey@redhat.com>
7639
7640 * target.h (struct target_ops) <to_call_history>: Add argument.
7641 * target.c (target_call_history): Add argument.
7642 * record-btrace.c (record_btrace_call_history): Add 'self'
7643 argument.
7644
4e99c6b7
TT
76452014-02-19 Tom Tromey <tromey@redhat.com>
7646
7647 * target.h (struct target_ops) <to_insn_history_range>: Add
7648 argument.
7649 * target.c (target_insn_history_range): Add argument.
7650 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7651 argument.
7652 (record_btrace_insn_history_from): Update.
7653
9abc3ff3
TT
76542014-02-19 Tom Tromey <tromey@redhat.com>
7655
7656 * target.h (struct target_ops) <to_insn_history_from>: Add
7657 argument.
7658 * target.c (target_insn_history_from): Add argument.
7659 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7660 argument.
7661
7a6c5609
TT
76622014-02-19 Tom Tromey <tromey@redhat.com>
7663
7664 * target.h (struct target_ops) <to_insn_history>: Add argument.
7665 * target.c (target_insn_history): Add argument.
7666 * record-btrace.c (record_btrace_insn_history): Add 'self'
7667 argument.
7668
606183ac
TT
76692014-02-19 Tom Tromey <tromey@redhat.com>
7670
7671 * target.h (struct target_ops) <to_goto_record>: Add argument.
7672 * target.c (target_goto_record): Add argument.
7673 * record-full.c (record_full_goto): Add 'self' argument.
7674 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7675
307a1b91
TT
76762014-02-19 Tom Tromey <tromey@redhat.com>
7677
7678 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7679 * target.c (target_goto_record_end): Add argument.
7680 * record-full.c (record_full_goto_end): Add 'self' argument.
7681 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7682
08475817
TT
76832014-02-19 Tom Tromey <tromey@redhat.com>
7684
7685 * target.h (struct target_ops) <to_goto_record_begin>: Add
7686 argument.
7687 * target.c (target_goto_record_begin): Add argument.
7688 * record-full.c (record_full_goto_begin): Add 'self' argument.
7689 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7690 argument.
7691
1c63c994
TT
76922014-02-19 Tom Tromey <tromey@redhat.com>
7693
7694 * target.h (struct target_ops) <to_record_is_replaying>: Add
7695 argument.
7696 * target.c (target_record_is_replaying): Add argument.
7697 * record-full.c (record_full_is_replaying): Add 'self' argument.
7698 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7699 argument.
7700 (record_btrace_xfer_partial, record_btrace_store_registers)
7701 (record_btrace_prepare_to_store, record_btrace_resume)
7702 (record_btrace_wait, record_btrace_decr_pc_after_break)
7703 (record_btrace_find_new_threads, record_btrace_thread_alive):
7704 Update.
7705
d1b55219
TT
77062014-02-19 Tom Tromey <tromey@redhat.com>
7707
7708 * target.h (struct target_ops) <to_delete_record>: Add argument.
7709 * target.c (target_delete_record): Add argument.
7710 * record-full.c (record_full_delete): Add 'self' argument.
7711
1390f529
TT
77122014-02-19 Tom Tromey <tromey@redhat.com>
7713
7714 * target.h (struct target_ops) <to_save_record>: Add argument.
7715 * target.c (target_save_record): Add argument.
7716 * record-full.c (record_full_save): Add 'self' argument.
7717 (record_full_save): Add 'self' argument.
7718
630d6a4a
TT
77192014-02-19 Tom Tromey <tromey@redhat.com>
7720
7721 * target.h (struct target_ops) <to_info_record>: Add argument.
7722 * target.c (target_info_record): Add argument.
7723 * record.c (info_record_command): Add argument.
7724 * record-full.c (record_full_info): Add 'self' argument.
7725 * record-btrace.c (record_btrace_info): Add 'self' argument.
7726
c6cd7c02
TT
77272014-02-19 Tom Tromey <tromey@redhat.com>
7728
7729 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7730 * target.c (target_stop_recording): Add argument.
7731 * record.c (record_stop): Add argument.
7732 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7733 argument.
7734
39c49f83
TT
77352014-02-19 Tom Tromey <tromey@redhat.com>
7736
7737 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7738 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7739 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7740 argument.
7741 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7742 (_initialize_amd64_linux_nat): Use it.
7743 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7744 (_initialize_i386_linux_nat): Use it.
7745
1777056d
TT
77462014-02-19 Tom Tromey <tromey@redhat.com>
7747
7748 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7749 * target.c (target_teardown_btrace): Add argument.
7750 * remote.c (remote_teardown_btrace): Add 'self' argument.
7751 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7752 argument.
7753 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7754 argument.
7755
25e95349
TT
77562014-02-19 Tom Tromey <tromey@redhat.com>
7757
7758 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7759 * target.c (target_disable_btrace): Add argument.
7760 * remote.c (remote_disable_btrace): Add 'self' argument.
7761 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7762 argument.
7763 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7764 argument.
7765
e3c49f88
TT
77662014-02-19 Tom Tromey <tromey@redhat.com>
7767
7768 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7769 * target.c (target_enable_btrace): Add argument.
7770 * remote.c (remote_enable_btrace): Add 'self' argument.
7771 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7772 argument.
7773 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7774 argument.
7775
fe38f897
TT
77762014-02-19 Tom Tromey <tromey@redhat.com>
7777
7778 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7779 (target_can_use_agent): Add argument.
7780 * target.c (update_current_target): Update.
7781 * remote.c (remote_can_use_agent): Add 'self' argument.
7782 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7783
2c152180
TT
77842014-02-19 Tom Tromey <tromey@redhat.com>
7785
7786 * target.h (struct target_ops) <to_use_agent>: Add argument.
7787 (target_use_agent): Add argument.
7788 * target.c (update_current_target): Update.
7789 * remote.c (remote_use_agent): Add 'self' argument.
7790 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7791
a893e81f
TT
77922014-02-19 Tom Tromey <tromey@redhat.com>
7793
7794 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7795 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7796 (target_traceframe_info): Add argument.
7797 * target.c (update_current_target): Update.
7798 * remote.c (remote_traceframe_info): Add 'self' argument.
7799 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7800
c686c57f
TT
78012014-02-19 Tom Tromey <tromey@redhat.com>
7802
7803 * target.h (target_static_tracepoint_markers_by_strid): Add
7804 argument.
7805 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7806 'self' argument.
7807 * target.c (update_current_target): Update.
7808 * remote.c (struct target_ops)
7809 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7810 * linux-nat.c (struct target_ops)
7811 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7812
61fc905d
TT
78132014-02-19 Tom Tromey <tromey@redhat.com>
7814
7815 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7816 Add argument.
7817 (target_static_tracepoint_marker_at): Add argument.
7818 * target.c (update_current_target): Update.
7819 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7820 argument.
7821
c378d69d
TT
78222014-02-19 Tom Tromey <tromey@redhat.com>
7823
7824 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7825 (target_set_permissions): Add argument.
7826 * target.c (update_current_target): Update.
7827 * remote.c (remote_set_permissions): Add 'self' argument.
7828 (remote_start_remote): Update.
7829
bd7ae0f5
TT
78302014-02-19 Tom Tromey <tromey@redhat.com>
7831
7832 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7833 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7834 (target_get_tib_address): Add argument.
7835 * target.c (update_current_target): Update.
7836 * remote.c (remote_get_tib_address): Add 'self' argument.
7837
d9e68a2c
TT
78382014-02-19 Tom Tromey <tromey@redhat.com>
7839
7840 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7841 (target_set_trace_notes): Add argument.
7842 * target.c (update_current_target): Update.
7843 * remote.c (remote_set_trace_notes): Add 'self' argument.
7844
4da384be
TT
78452014-02-19 Tom Tromey <tromey@redhat.com>
7846
7847 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7848 argument.
7849 (target_set_trace_buffer_size): Add argument.
7850 * target.c (update_current_target): Update.
7851 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7852
736d5b1f
TT
78532014-02-19 Tom Tromey <tromey@redhat.com>
7854
7855 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7856 argument.
7857 (target_set_circular_trace_buffer): Add argument.
7858 * target.c (update_current_target): Update.
7859 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7860 argument.
7861
37b25738
TT
78622014-02-19 Tom Tromey <tromey@redhat.com>
7863
7864 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7865 argument.
7866 (target_set_disconnected_tracing): Add argument.
7867 * target.c (update_current_target): Update.
7868 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7869
0e67620a
TT
78702014-02-19 Tom Tromey <tromey@redhat.com>
7871
7872 * target.h (struct target_ops)
7873 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7874 (target_get_min_fast_tracepoint_insn_len): Add argument.
7875 * target.c (update_current_target): Update.
7876 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7877 argument.
7878
88ee6f45
TT
78792014-02-19 Tom Tromey <tromey@redhat.com>
7880
7881 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7882 argument.
7883 (target_get_raw_trace_data): Add argument.
7884 * target.c (update_current_target): Update.
7885 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7886
181e3713
TT
78872014-02-19 Tom Tromey <tromey@redhat.com>
7888
7889 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7890 Add argument.
7891 (target_upload_trace_state_variables): Add argument.
7892 * target.c (update_current_target): Update.
7893 * remote.c (remote_upload_trace_state_variables): Add 'self'
7894 argument.
7895 (remote_start_remote): Update.
7896
ab6617cc
TT
78972014-02-19 Tom Tromey <tromey@redhat.com>
7898
7899 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7900 argument.
7901 (target_upload_tracepoints): Add argument.
7902 * target.c (update_current_target): Update.
7903 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7904 (remote_start_remote): Update.
7905
dc3decaf
TT
79062014-02-19 Tom Tromey <tromey@redhat.com>
7907
7908 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7909 (target_save_trace_data): Add argument.
7910 * target.c (update_current_target): Update.
7911 * remote.c (remote_save_trace_data): Add 'self' argument.
7912
4011015b
TT
79132014-02-19 Tom Tromey <tromey@redhat.com>
7914
7915 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7916 argument.
7917 * target.h (struct target_ops)
7918 <to_get_trace_state_variable_value>: Add argument.
7919 (target_get_trace_state_variable_value): Add argument.
7920 * target.c (update_current_target): Update.
7921 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7922 argument.
7923 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7924
bd4c6793
TT
79252014-02-19 Tom Tromey <tromey@redhat.com>
7926
7927 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7928 * target.h (struct target_ops) <to_trace_find>: Add argument.
7929 (target_trace_find): Add argument.
7930 * target.c (update_current_target): Update.
7931 * remote.c (remote_trace_find): Add 'self' argument.
7932 * ctf.c (ctf_trace_find): Add 'self' argument.
7933
74499f1b
TT
79342014-02-19 Tom Tromey <tromey@redhat.com>
7935
7936 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7937 (target_trace_stop): Add argument.
7938 * target.c (update_current_target): Update.
7939 * remote.c (remote_trace_stop): Add 'self' argument.
7940
db90e85c
TT
79412014-02-19 Tom Tromey <tromey@redhat.com>
7942
7943 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7944 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7945 argument.
7946 (target_get_tracepoint_status): Add argument.
7947 * target.c (update_current_target): Update.
7948 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7949
8bd200f1
TT
79502014-02-19 Tom Tromey <tromey@redhat.com>
7951
7952 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7953 * target.h (struct target_ops) <to_get_trace_status>: Add
7954 argument.
7955 (target_get_trace_status): Add argument.
7956 * target.c (update_current_target): Update.
7957 * remote.c (remote_get_trace_status): Add 'self' argument.
7958 (remote_start_remote, remote_can_download_tracepoint): Update.
7959 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7960
e2d1aae3
TT
79612014-02-19 Tom Tromey <tromey@redhat.com>
7962
7963 * target.h (struct target_ops) <to_trace_start>: Add argument.
7964 (target_trace_start): Add argument.
7965 * target.c (update_current_target): Update.
7966 * remote.c (remote_trace_start): Add 'self' argument.
7967
583f9a86
TT
79682014-02-19 Tom Tromey <tromey@redhat.com>
7969
7970 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7971 Add argument.
7972 (target_trace_set_readonly_regions): Add argument.
7973 * target.c (update_current_target): Update.
7974 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7975 argument.
7976
780b049c
TT
79772014-02-19 Tom Tromey <tromey@redhat.com>
7978
7979 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7980 argument.
7981 (target_disable_tracepoint): Add argument.
7982 * target.c (update_current_target): Update.
7983 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7984
46670d57
TT
79852014-02-19 Tom Tromey <tromey@redhat.com>
7986
7987 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7988 argument.
7989 (target_enable_tracepoint): Add argument.
7990 * target.c (update_current_target): Update.
7991 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7992
559d2b81
TT
79932014-02-19 Tom Tromey <tromey@redhat.com>
7994
7995 * target.h (struct target_ops) <to_download_trace_state_variable>:
7996 Add argument.
7997 (target_download_trace_state_variable): Add argument.
7998 * target.c (update_current_target): Update.
7999 * remote.c (remote_download_trace_state_variable): Add 'self'
8000 argument.
8001
a52a8357
TT
80022014-02-19 Tom Tromey <tromey@redhat.com>
8003
8004 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8005 argument.
8006 (target_can_download_tracepoint): Add argument.
8007 * target.c (update_current_target): Update.
8008 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8009
548f7808
TT
80102014-02-19 Tom Tromey <tromey@redhat.com>
8011
8012 * target.h (struct target_ops) <to_download_tracepoint>: Add
8013 argument.
8014 (target_download_tracepoint): Add argument.
8015 * target.c (update_current_target): Update.
8016 * remote.c (remote_download_tracepoint): Add 'self' argument.
8017
ecae04e1
TT
80182014-02-19 Tom Tromey <tromey@redhat.com>
8019
8020 * target.h (struct target_ops) <to_trace_init>: Add argument.
8021 (target_trace_init): Add argument.
8022 * target.c (update_current_target): Update.
8023 * remote.c (remote_trace_init): Add 'self' argument.
8024
fab5aa7c
TT
80252014-02-19 Tom Tromey <tromey@redhat.com>
8026
8027 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8028 * target.c (target_fileio_readlink): Add argument.
8029 * remote.c (remote_hostio_readlink): Add 'self' argument.
8030 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8031
dbbca37d
TT
80322014-02-19 Tom Tromey <tromey@redhat.com>
8033
8034 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8035 * target.c (target_fileio_unlink): Add argument.
8036 * remote.c (remote_hostio_unlink): Add 'self' argument.
8037 (remote_file_delete): Update.
8038 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8039
df39ea25
TT
80402014-02-19 Tom Tromey <tromey@redhat.com>
8041
8042 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8043 * target.c (target_fileio_close): Add argument.
8044 * remote.c (remote_hostio_close): Add 'self' argument.
8045 (remote_hostio_close_cleanup): Update.
8046 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8047 Update.
8048 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8049
a3be983c
TT
80502014-02-19 Tom Tromey <tromey@redhat.com>
8051
8052 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8053 * target.c (target_fileio_pread): Add argument.
8054 * remote.c (remote_hostio_pread): Add 'self' argument.
8055 (remote_bfd_iovec_pread, remote_file_get): Update.
8056 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8057
0d866f62
TT
80582014-02-19 Tom Tromey <tromey@redhat.com>
8059
8060 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8061 * target.c (target_fileio_pwrite): Add argument.
8062 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8063 (remote_file_put): Update.
8064 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8065
cd897586
TT
80662014-02-19 Tom Tromey <tromey@redhat.com>
8067
8068 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8069 * target.c (target_fileio_open): Add argument.
8070 * remote.c (remote_hostio_open): Add 'self' argument.
8071 (remote_bfd_iovec_open): Add 'self' argument.
8072 (remote_file_put): Add 'self' argument.
8073 (remote_file_get): Add 'self' argument.
8074 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8075
78eff0ec
TT
80762014-02-19 Tom Tromey <tromey@redhat.com>
8077
8078 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8079 Add argument.
8080 (target_can_run_breakpoint_commands): Add argument.
8081 * target.c (update_current_target): Update.
8082 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8083 argument.
8084 (remote_insert_breakpoint): Add 'self' argument.
8085 (remote_insert_hw_breakpoint): Add 'self' argument.
8086 (remote_can_run_breakpoint_commands): Add 'self' argument.
8087
efcc2da7
TT
80882014-02-19 Tom Tromey <tromey@redhat.com>
8089
8090 * target.h (struct target_ops)
8091 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8092 (target_supports_evaluation_of_breakpoint_conditions): Add
8093 argument.
8094 * target.c (update_current_target): Update.
8095 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8096 argument.
8097 (remote_insert_breakpoint): Add 'self' argument.
8098 (remote_insert_hw_breakpoint): Add 'self' argument.
8099 (remote_supports_cond_breakpoints): Add 'self' argument.
8100
6de37a3a
TT
81012014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8104 argument.
8105 (target_supports_string_tracing): Add argument.
8106 * target.c (update_current_target): Update.
8107 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8108
2bfc0540
TT
81092014-02-19 Tom Tromey <tromey@redhat.com>
8110
8111 * target.h (struct target_ops)
8112 <to_supports_disable_randomization>: Add argument.
8113 * target.c (find_default_supports_disable_randomization): Add
8114 argument.
8115 (target_supports_disable_randomization): Add argument.
8116 (find_default_supports_disable_randomization): Add 'self'
8117 argument.
8118 * remote.c (extended_remote_supports_disable_randomization): Add
8119 'self' argument.
8120 (remote_supports_disable_randomization): Add 'self' argument.
8121 (extended_remote_create_inferior): Update.
8122 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8123 'self' argument.
8124
7d178d6a
TT
81252014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target.h (struct target_ops)
8128 <to_supports_enable_disable_tracepoint>: Add argument.
8129 (target_supports_enable_disable_tracepoint): Add argument.
8130 * target.c (update_current_target): Update.
8131 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8132 argument.
8133
86ce2668
TT
81342014-02-19 Tom Tromey <tromey@redhat.com>
8135
8136 * target.h (struct target_ops) <to_supports_multi_process>: Add
8137 argument.
8138 (target_supports_multi_process): Add argument.
8139 * target.c (update_current_target): Update.
8140 * remote.c (remote_supports_multi_process): Add 'self' argument.
8141 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8142 argument.
8143 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8144 argument.
8145
4c612759
TT
81462014-02-19 Tom Tromey <tromey@redhat.com>
8147
8148 * target.h (struct target_ops) <to_execution_direction>: Add
8149 argument.
8150 (target_execution_direction): Add argument.
8151 * target.c (default_execution_direction): Add 'self' argument.
8152 * record-full.c (record_full_execution_direction): Add 'self'
8153 argument.
8154
19db3e69
TT
81552014-02-19 Tom Tromey <tromey@redhat.com>
8156
8157 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8158 argument.
8159 (target_can_execute_reverse): Add argument.
8160 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8161 * record-full.c (record_full_can_execute_reverse): Add 'self'
8162 argument.
8163 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8164 argument.
8165
1e6b91a4
TT
81662014-02-19 Tom Tromey <tromey@redhat.com>
8167
8168 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8169 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8170 argument.
8171 (target_get_ada_task_ptid): Add argument.
8172 * target.c (update_current_target): Update.
8173 (default_get_ada_task_ptid): Add 'self' argument.
8174 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8175 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8176 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8177 argument.
8178 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8179 argument.
8180 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8181 argument.
8182 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8183 argument.
8184 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8185 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8186 argument.
8187
3c80fb48
TT
81882014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8191 (target_goto_bookmark): Add argument.
8192 * target.c (dummy_goto_bookmark): Add 'self' argument.
8193 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8194
dd0e2830
TT
81952014-02-19 Tom Tromey <tromey@redhat.com>
8196
8197 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8198 (target_get_bookmark): Add argument.
8199 * target.c (dummy_get_bookmark): Add 'self' argument.
8200 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8201
fc6691b2
TT
82022014-02-19 Tom Tromey <tromey@redhat.com>
8203
8204 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8205 argument.
8206 (target_make_corefile_notes): Add argument.
8207 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8208 * procfs.c (procfs_make_note_section): Add 'self' argument.
8209 (procfs_make_note_section): Add 'self' argument.
8210 (procfs_make_note_section): Add 'self' argument.
8211 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8212 argument.
8213 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8214 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8215 * exec.c (exec_make_note_section): Add 'self' argument.
8216 (exec_make_note_section): Add 'self' argument.
8217
2e73927c
TT
82182014-02-19 Tom Tromey <tromey@redhat.com>
8219
8220 * target.h (struct target_ops) <to_find_memory_regions>: Add
8221 argument.
8222 (target_find_memory_regions): Add argument.
8223 * target.c (dummy_find_memory_regions): Add 'self' argument.
8224 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8225 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8226 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8227 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8228 * exec. (exec_do_find_memory_regions): New global.
8229 (exec_set_find_memory_regions): Rewrite.
8230 (exec_find_memory_regions): New function.
8231 (init_exec_ops): Use exec_find_memory_regions.
8232
2a9a2795
TT
82332014-02-19 Tom Tromey <tromey@redhat.com>
8234
8235 * target.h (struct target_ops) <to_supports_non_stop>: Add
8236 argument.
8237 * target.c (find_default_supports_non_stop): Add argument.
8238 (target_supports_non_stop): Add argument.
8239 (find_default_supports_non_stop): Add 'self' argument.
8240 * remote.c (remote_supports_non_stop): Add 'self' argument.
8241 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8242
4ab76ea3
TT
82432014-02-19 Tom Tromey <tromey@redhat.com>
8244
8245 * target.h (struct target_ops) <to_log_command>: Add argument.
8246 (target_log_command): Add argument.
8247 * serial.h (serial_log_command): Add 'self' argument.
8248 * serial.c (serial_log_command): Add 'self' argument.
8249
8dd27370
TT
82502014-02-19 Tom Tromey <tromey@redhat.com>
8251
8252 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8253 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8254 argument.
8255 (target_pid_to_exec_file): Add argument.
8256 * target.c (debug_to_pid_to_exec_file): Add argument.
8257 (update_current_target): Update.
8258 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8259 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8260 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8261 (linux_handle_extended_wait): Update.
8262 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8263 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8264 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8265 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8266
1aac633b
TT
82672014-02-19 Tom Tromey <tromey@redhat.com>
8268
8269 * target.h (struct target_ops) <to_rcmd>: Add argument.
8270 (target_rcmd): Add argument.
8271 * target.c (debug_to_rcmd): Add argument.
8272 (update_current_target, do_monitor_command): Update.
8273 * remote.c (remote_rcmd): Add 'self' argument.
8274 * monitor.c (monitor_rcmd): Add 'self' argument.
8275
1eab8a48
TT
82762014-02-19 Tom Tromey <tromey@redhat.com>
8277
8278 * windows-nat.c (windows_stop): Add 'self' argument.
8279 * target.h (struct target_ops) <to_stop>: Add argument.
8280 * target.c (target_stop): Add argument.
8281 (debug_to_stop): Add argument.
8282 (update_current_target): Update.
8283 * remote.c (remote_stop): Add 'self' argument.
8284 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8285 (gdbsim_cntrl_c): Update.
8286 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8287 * procfs.c (procfs_stop): Add 'self' argument.
8288 * nto-procfs.c (procfs_stop): Add 'self' argument.
8289 * monitor.c (monitor_stop): Add 'self' argument.
8290 (monitor_open): Update.
8291 * linux-nat.c (linux_nat_stop): Add argument.
8292 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8293 * gnu-nat.c (gnu_stop): Add 'self' argument.
8294 * darwin-nat.c (darwin_stop): Add 'self' argument.
8295
503a628d
TT
82962014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * target.h (struct target_ops) <to_thread_name>: Add argument.
8299 * target.c (target_thread_name): Add argument.
8300 (update_current_target): Update.
8301 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8302
c15906d8
TT
83032014-02-19 Tom Tromey <tromey@redhat.com>
8304
8305 * target.h (struct target_ops) <to_extra_thread_info>: Add
8306 argument.
8307 (target_extra_thread_info): Add argument.
8308 * target.c (update_current_target): Update.
8309 * remote.c (remote_threads_extra_info): Add 'self' argument.
8310 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8311 argument.
8312 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8313 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8314 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8315 argument.
8316 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8317 argument.
8318 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8319 argument.
8320 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8321 argument.
8322
daf5e9b6
TT
83232014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target.h (struct target_ops) <to_program_signals>: Add argument.
8326 * target.c (target_program_signals): Add argument.
8327 * remote.c (remote_program_signals): Add 'self' argument.
8328
94bedb42
TT
83292014-02-19 Tom Tromey <tromey@redhat.com>
8330
8331 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8332 * target.c (target_pass_signals): Add argument.
8333 * remote.c (remote_pass_signals): Add 'self' argument.
8334 (remote_start_remote): Update.
8335 * procfs.c (procfs_pass_signals): Add 'self' argument.
8336 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8337 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8338 (linux_nat_create_inferior, linux_nat_attach): Update.
8339
da82bd6b
TT
83402014-02-19 Tom Tromey <tromey@redhat.com>
8341
8342 * windows-nat.c (windows_can_run): Add 'self' argument.
8343 * target.h (struct target_ops) <to_can_run>: Add argument.
8344 (target_can_run): Add argument.
8345 * target.c (debug_to_can_run): Add argument.
8346 (update_current_target): Update.
8347 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8348 * inf-child.c (inf_child_can_run): Add 'self' argument.
8349 * go32-nat.c (go32_can_run): Add 'self' argument.
8350
d796e1d6
TT
83512014-02-19 Tom Tromey <tromey@redhat.com>
8352
8353 * target.h (struct target_ops) <to_has_exited>: Add argument.
8354 (target_has_exited): Add argument.
8355 * target.c (debug_to_has_exited): Add argument.
8356 (update_current_target): Update.
8357
ff214e67
TT
83582014-02-19 Tom Tromey <tromey@redhat.com>
8359
8360 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8361 argument.
8362 (target_set_syscall_catchpoint): Add argument.
8363 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8364 argument.
8365 * target.c (update_current_target): Update.
8366
758e29d2
TT
83672014-02-19 Tom Tromey <tromey@redhat.com>
8368
8369 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8370 argument.
8371 (target_remove_exec_catchpoint): Add argument.
8372 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8373 (update_current_target): Update.
8374 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8375 argument.
8376
ba025e51
TT
83772014-02-19 Tom Tromey <tromey@redhat.com>
8378
8379 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8380 argument.
8381 (target_insert_exec_catchpoint): Add argument.
8382 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8383 (update_current_target): Update.
8384 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8385 argument.
8386
e98cf0cd
TT
83872014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8390 argument.
8391 (target_remove_vfork_catchpoint): Add argument.
8392 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8393 (update_current_target): Update.
8394 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8395 argument.
8396
3ecc7da0
TT
83972014-02-19 Tom Tromey <tromey@redhat.com>
8398
8399 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8400 argument.
8401 (target_insert_vfork_catchpoint): Add argument.
8402 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8403 (update_current_target): Update.
8404 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8405 argument.
8406
973fc227
TT
84072014-02-19 Tom Tromey <tromey@redhat.com>
8408
8409 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8410 argument.
8411 (target_remove_fork_catchpoint): Add argument.
8412 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8413 (update_current_target): Update.
8414 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8415 argument.
8416
a863b201
TT
84172014-02-19 Tom Tromey <tromey@redhat.com>
8418
8419 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8420 argument.
8421 (target_insert_fork_catchpoint): Add argument.
8422 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8423 (update_current_target): Update.
8424 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8425 argument.
8426
2e97a79e
TT
84272014-02-19 Tom Tromey <tromey@redhat.com>
8428
8429 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8430 argument.
8431 (target_post_startup_inferior): Add argument.
8432 * target.c (debug_to_post_startup_inferior): Add argument.
8433 (update_current_target): Update.
8434 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8435 argument.
8436 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8437 argument.
8438 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8439 argument.
8440 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8441 argument.
8442 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8443 'self' argument.
8444 (super_post_startup_inferior): Likewise.
8445 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8446 'self' argument.
8447 (super_post_startup_inferior): Likewise.
8448 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8449 Add 'self' argument.
8450 (super_post_startup_inferior): Likewise.
8451
71a9f134
TT
84522014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target.h (struct target_ops) <to_load>: Add argument.
8455 * target.c (target_load): Add argument.
8456 (debug_to_load): Add argument.
8457 (update_current_target): Update.
8458 * remote.c (remote_load): Add 'self' argument.
8459 * remote-sim.c (gdbsim_load): Add 'self' argument.
8460 * remote-mips.c (mips_load): Add 'self' argument.
8461 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8462 * monitor.c (monitor_load): Add 'self' argument.
8463 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8464
0a4f40a2
TT
84652014-02-19 Tom Tromey <tromey@redhat.com>
8466
8467 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8468 (target_terminal_info): Add argument.
8469 * target.c (debug_to_terminal_info): Add argument.
8470 (default_terminal_info): Likewise.
8471 * inflow.c (child_terminal_info): Add 'self' argument.
8472 * inferior.h (child_terminal_info): Add 'self' argument.
8473 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8474
ae3bd431
TT
84752014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8478 argument.
8479 (target_terminal_save_ours): Add argument.
8480 * target.c (debug_to_terminal_save_ours): Add argument.
8481 (update_current_target): Update.
8482 * inflow.c (terminal_save_ours): Add 'self' argument.
8483 * inferior.h (terminal_save_ours): Add 'self' argument.
8484
e3594fd1
TT
84852014-02-19 Tom Tromey <tromey@redhat.com>
8486
8487 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8488 (target_terminal_ours): Add argument.
8489 * target.c (debug_to_terminal_ours): Add argument.
8490 (update_current_target): Update.
8491 * remote.c (remote_terminal_ours): Add 'self' argument.
8492 (remote_close): Update.
8493 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8494 * inflow.c (terminal_ours): Add 'self' argument.
8495 * inferior.h (terminal_ours): Add 'self' argument.
8496 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8497
2e1e1a19
TT
84982014-02-19 Pedro Alves <palves@redhat.com>
8499 Tom Tromey <tromey@redhat.com>
8500
8501 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8502 argument.
8503 (target_terminal_ours_for_output): Add argument.
8504 * target.c (debug_to_terminal_ours_for_output): Add argument.
8505 (update_current_target): Update.
8506 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8507 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8508 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8509
d2f640d4
TT
85102014-02-19 Tom Tromey <tromey@redhat.com>
8511
8512 * target.h (struct target_ops) <to_terminal_inferior>: Add
8513 argument.
8514 * target.c (target_terminal_inferior): Add argument.
8515 (update_current_target): Update.
8516 * remote.c (remote_terminal_inferior): Add 'self' argument.
8517 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8518 * inflow.c (terminal_inferior): Add 'self' argument.
8519 * inferior.h (terminal_inferior): Add 'self' argument.
8520 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8521 (go32_terminal_inferior): Add 'self' argument.
8522
c42bf286
TT
85232014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8526 (target_terminal_init): Add argument.
8527 * target.c (debug_to_terminal_init): Add argument.
8528 (update_current_target): Update.
8529 * inflow.c (terminal_init_inferior): Add 'self' argument.
8530 * inferior.h (terminal_init_inferior): Add 'self' argument.
8531 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8532 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8533
c3a5ff89
TT
85342014-02-19 Tom Tromey <tromey@redhat.com>
8535
8536 * target.h (struct target_ops)
8537 <to_can_accel_watchpoint_condition>: Add argument.
8538 (target_can_accel_watchpoint_condition): Add argument.
8539 * target.c (debug_to_can_accel_watchpoint_condition): Add
8540 argument.
8541 (update_current_target): Update.
8542 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8543 'self' argument.
8544
31568a15
TT
85452014-02-19 Tom Tromey <tromey@redhat.com>
8546
8547 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8548 Add argument.
8549 (target_region_ok_for_hw_watchpoint): Add argument.
8550 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8551 (default_region_ok_for_hw_watchpoint): Add argument.
8552 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8553 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8554 argument.
8555 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8556 argument.
8557 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8558 argument.
8559 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8560 'self' argument.
8561 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8562 'self' argument.
8563 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8564 'self' argument.
8565 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8566 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8567 'self' argument.
8568 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8569 Add 'self' argument.
8570
7bb99c53
TT
85712014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8574 argument.
8575 (target_insert_watchpoint): Add argument.
8576 * target.c (debug_to_insert_watchpoint): Add argument.
8577 (update_current_target): Update.
8578 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8579 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8580 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8581 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8582 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8583 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8584 argument.
8585 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8586 (procfs_insert_hw_watchpoint): Add 'self' argument.
8587 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8588 argument.
8589 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8590 argument.
8591 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8592 argument.
8593 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8594 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8595 argument.
8596 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8597 'self' argument.
8598
11b5219a
TT
85992014-02-19 Tom Tromey <tromey@redhat.com>
8600
8601 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8602 argument.
8603 (target_remove_watchpoint): Add argument.
8604 * target.c (debug_to_remove_watchpoint): Add argument.
8605 (update_current_target): Update.
8606 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8607 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8608 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8609 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8610 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8611 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8612 argument.
8613 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8614 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8615 argument.
8616 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8617 argument.
8618 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8619 argument.
8620 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8621 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8622 argument.
8623 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8624 'self' argument.
8625
a64dc96c
TT
86262014-02-19 Tom Tromey <tromey@redhat.com>
8627
8628 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8629 argument.
8630 (target_remove_hw_breakpoint): Add argument.
8631 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8632 (update_current_target): Update.
8633 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8634 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8635 argument.
8636 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8637 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8638 argument.
8639 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8640 'self' argument.
8641
23a26771
TT
86422014-02-19 Tom Tromey <tromey@redhat.com>
8643
8644 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8645 argument.
8646 (target_insert_hw_breakpoint): Add argument.
8647 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8648 (update_current_target): Update.
8649 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8650 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8651 argument.
8652 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8653 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8654 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8655 argument.
8656 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8657 'self' argument.
8658
5461485a
TT
86592014-02-19 Tom Tromey <tromey@redhat.com>
8660
8661 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8662 argument.
8663 (target_can_use_hardware_watchpoint): Add argument.
8664 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8665 (update_current_target): Update.
8666 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8667 argument.
8668 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8669 argument.
8670 * remote.c (remote_check_watch_resources): Add 'self' argument.
8671 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8672 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8673 argument.
8674 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8675 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8676 argument.
8677 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8678 argument.
8679 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8680 argument.
8681 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8682 argument.
8683 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8684 argument.
8685 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8686 argument.
8687 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8688 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8689 argument.
8690 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8691 'self' argument.
8692
f045800c
TT
86932014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target.h (struct target_ops) <to_post_attach>: Add argument.
8696 (target_post_attach): Add argument.
8697 * target.c (debug_to_post_attach): Add argument.
8698 (update_current_target): Update.
8699 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8700 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8701 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8702 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8703 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8704
de90e03d
TT
87052014-02-19 Tom Tromey <tromey@redhat.com>
8706
8707 * windows-nat.c (windows_close): Add 'self' argument.
8708 * tracepoint.c (tfile_close): Add 'self' argument.
8709 * target.h (struct target_ops) <to_close>: Add argument.
8710 * target.c (target_close): Add argument.
8711 (update_current_target): Update.
8712 * remote.c (remote_close): Add 'self' argument.
8713 * remote-sim.c (gdbsim_close): Add 'self' argument.
8714 * remote-mips.c (mips_close): Add 'self' argument.
8715 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8716 * record-full.c (record_full_close): Add 'self' argument.
8717 * record-btrace.c (record_btrace_close): Add 'self' argument.
8718 * monitor.h (monitor_close): Add 'self' argument.
8719 * monitor.c (monitor_close): Add 'self' argument.
8720 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8721 * linux-nat.c (linux_nat_close): Add argument.
8722 * go32-nat.c (go32_close): Add 'self' argument.
8723 * exec.c (exec_close_1): Add 'self' argument.
8724 * ctf.c (ctf_close): Add 'self' argument.
8725 * corelow.c (core_close): Add 'self' argument.
8726 (core_close_cleanup): Update.
8727 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8728 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8729
9dd130a0
TT
87302014-02-19 Tom Tromey <tromey@redhat.com>
8731
8732 * remote.c (remote_load): New function.
8733 (init_remote_ops): Use it.
8734
46917d26
TT
87352014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8738 argument.
8739 * common/linux-btrace.h (linux_supports_btrace): Update.
8740 * remote.c (remote_supports_btrace): Add "self" argument.
8741 * target-delegates.c: Rebuild.
8742 * target.c (target_supports_btrace): Remove.
8743 * target.h (struct target_ops) <to_supports_btrace>: Add
8744 target_ops argument.
8745 (target_supports_btrace): New define.
8746
6b84065d
TT
87472014-02-19 Tom Tromey <tromey@redhat.com>
8748
8749 * record-full.c (record_full_beneath_to_resume_ops)
8750 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8751 (record_full_beneath_to_wait)
8752 (record_full_beneath_to_store_registers_ops)
8753 (record_full_beneath_to_store_registers)
8754 (record_full_beneath_to_xfer_partial_ops)
8755 (record_full_beneath_to_xfer_partial)
8756 (record_full_beneath_to_insert_breakpoint_ops)
8757 (record_full_beneath_to_insert_breakpoint)
8758 (record_full_beneath_to_remove_breakpoint_ops)
8759 (record_full_beneath_to_remove_breakpoint)
8760 (record_full_beneath_to_stopped_by_watchpoint)
8761 (record_full_beneath_to_stopped_data_address)
8762 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8763 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8764 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8765 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8766 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8767 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8768 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8769 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8770 (record_full_resume, record_full_wait_1)
8771 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8772 (record_full_store_registers, record_full_xfer_partial)
8773 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8774 (record_full_async, record_full_core_xfer_partial): Use target
8775 delegation.
8776 * target-delegates.c: Rebuild.
8777 * target.c (current_xfer_partial): Remove.
8778 (update_current_target): Do not INHERIT or de_fault
8779 to_insert_breakpoint, to_remove_breakpoint,
8780 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8781 to_is_async_p, to_async. Do not set to_xfer_partial field.
8782 (default_xfer_partial): Simplify.
8783 (current_xfer_partial): Remove.
8784 (target_wait, target_resume): Simplify.
8785 (find_default_can_async_p, find_default_is_async_p): Update.
8786 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8787 to_xfer_partial, to_stopped_by_watchpoint,
8788 to_stopped_data_address.
8789 (target_store_registers): Simplify.
8790 (forward_target_remove_breakpoint)
8791 (forward_target_insert_breakpoint): Remove.
8792 (target_remove_breakpoint, target_insert_breakpoint)
8793 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8794 * target.h (struct target_ops) <to_resume, to_wait,
8795 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8796 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8797 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8798 markup.
8799 (forward_target_remove_breakpoint)
8800 (forward_target_insert_breakpoint): Remove.
8801 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8802 directly.
8803 (record_btrace_insert_breakpoint): Delegate directly.
8804
1101cb7b
TT
88052014-02-19 Tom Tromey <tromey@redhat.com>
8806
8807 PR build/7701:
8808 * target-delegates.c: New file.
8809 * target.c: Include target-delegates.c.
8810 (init_dummy_target): Call install_dummy_methods.
8811 (complete_target_initialization): Call install_delegators.
8812 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8813 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8814 * make-target-delegates: New file.
8815
8b06beed
TT
88162014-02-19 Tom Tromey <tromey@redhat.com>
8817
8818 * record.c (find_record_target): Use find_target_at.
8819 * target.c (find_target_at): New function.
8820 * target.h (find_target_at): Declare.
8821
6a109b6b
TT
88222014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8825 Add 'ops' argument.
8826 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8827 'ops' argument.
8828 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8829 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8830 'ops' argument.
8831 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8832 argument.
8833 * linux-nat.c (save_sigtrap): Update.
8834 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8835 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8836 (linux_nat_close): Update.
8837 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8838 argument.
8839 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8840 argument.
8841 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8842 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8843 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8844 (tmp_to_async): Add 'ops' argument.
8845 (record_full_stopped_by_watchpoint, record_full_async)
8846 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8847 argument.
8848 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8849 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8850 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8851 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8852 (remote_is_async_p, remote_async): Add 'ops' argument.
8853 (remote_stopped_data_address): Update.
8854 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8855 * target.c (update_current_target)
8856 (find_default_can_async_p, find_default_is_async_p): Update.
8857 (init_dummy_target): Update.
8858 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8859 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8860 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8861 (target_can_async_p, target_is_async_p, target_async)
8862 (target_stopped_by_watchpoint): Update.
8863
e095146b
YQ
88642014-02-19 Yao Qi <yao@codesourcery.com>
8865
8866 PR gdb/16220
8867 * gdbarch.sh: Remove startup_gdbarch.
8868 * gdbarch.c: Regenerated.
8869 * gdbarch.h: Likewise.
8870
bc3c6b36
KB
88712014-02-17 Kevin Buettner <kevinb@redhat.com>
8872
8873 * rl78-tdep.c (rl78_g10_register_name): New function.
8874 (rl78_return_value): Add g10 support.
8875 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8876 g10.
8877
98dc0167 88782014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
8879
8880 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8881 (SUBDIR_GUILE_SRCS): Ditto.
8882 (scm-gsmob.o): Ditto.
8883
842c05cd
YQ
88842014-02-17 Yao Qi <yao@codesourcery.com>
8885
8886 * gnu-nat.c (ILL_RPC): Declare defined function.
8887
25c0bd04
YQ
88882014-02-17 Yao Qi <yao@codesourcery.com>
8889
8890 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8891 mach_msg_type_number_t.
8892 (gnu_write_inferior): Likewise.
8893
a9a758e3
YQ
88942014-02-17 Yao Qi <yao@codesourcery.com>
8895
8896 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8897 in format string.
8898 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8899 (inf_validate_procs, inf_signal): Likewise.
8900 (S_exception_raise_request): Likewise.
8901 (do_mach_notify_dead_name): Likewise.
8902 (steal_exc_port): Likewise.
8903 (gnu_read_inferior): Change 'copy_count''s type to
8904 mach_msg_type_number_t.
8905 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8906 format string.
8907
bae8023e
TS
89082014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8909
c82f56d9
TS
8910 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8911 flag. Adjust all users; in particular...
8912 (gnu_wait): ..., don't decrement its value in here...
8913 (gnu_create_inferior): ..., and instead set the flag in here,
8914 around the startup_inferior call, and call that one with
8915 START_INFERIOR_TRAPS_EXPECTED.
8916
3398af6a
TS
8917 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8918 (ILL_RPC): ... new macro.
8919 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8920 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8921 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8922 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8923 functions with ILL_RPC macro.
8924 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8925 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8926 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8927 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8928 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8929 (S_proc_getlogin_reply, S_proc_getsid_reply)
8930 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8931 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8932 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8933 (S_proc_getnports_reply, S_proc_is_important_reply)
8934 (S_proc_get_code_reply): New stub functions, generated with
8935 ILL_RPC macro.
8936
d47642c9
TS
8937 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8938 collected the type check structures.
8939
bae8023e
TS
8940 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8941
8a55ffb0
DE
89422014-02-14 Doug Evans <dje@google.com>
8943
8944 * target.c (target_write_partial): Fix result type.
8945
c2853f3d
JM
89462014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8947
8948 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8949 the proper offsets to access fpregset_t.
8950
ac61d2db
SA
89512014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8952
8953 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8954 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8955 * h8300-tdep.c (setmachinelist): Remove global.
8956 * hppa-tdep.c (hppa_sigtramp): Remove global.
8957 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8958 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8959 * ravenscar-thread.c (update_target_observer): Remove global.
8960 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8961
9d2d0b8b
TT
89622014-02-12 Tom Tromey <tromey@redhat.com>
8963
8964 * common/rsp-low.c: Update comments.
8965 * common/rsp-low.h: Update comments.
8966
a7191e8b
TT
89672014-02-12 Tom Tromey <tromey@redhat.com>
8968
8969 * common/rsp-low.c (convert_ascii_to_int): Remove.
8970 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8971
ff0e980e
TT
89722014-02-12 Tom Tromey <tromey@redhat.com>
8973
8974 * common/rsp-low.h (unhexify): Don't declare.
8975 * common/rsp-low.c (unhexify): Remove.
8976
e9371aff
TT
89772014-02-12 Tom Tromey <tromey@redhat.com>
8978
8979 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8980 * common/rsp-low.c (convert_int_to_ascii): Remove.
8981
971dc0b8
TT
89822014-02-12 Tom Tromey <tromey@redhat.com>
8983
8984 * common/rsp-low.h (hexify): Don't declare.
8985 * common/rsp-low.c (hexify): Remove.
8986
0a822afb
TT
89872014-02-12 Tom Tromey <tromey@redhat.com>
8988
8989 * common/rsp-low.c (hexify): Never take strlen of argument.
8990
9f1b45b0
TT
89912014-02-12 Tom Tromey <tromey@redhat.com>
8992
8993 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8994 * remote.c (extended_remote_run, remote_rcmd)
8995 (remote_download_trace_state_variable, remote_save_trace_data)
8996 (remote_set_trace_notes): Update.
8997 * tracepoint.c (encode_source_string, tfile_write_status)
8998 (tfile_write_uploaded_tsv): Update.
8999
9c3d6531
TT
90002014-02-12 Tom Tromey <tromey@redhat.com>
9001
9002 * tracepoint.c: Include rsp-low.h.
9003 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9004 * remote.c: Include rsp-low.h.
9005 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9006 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9007 (remote_unescape_input): Move to common/rsp-low.c.
9008 * common/rsp-low.h: New file.
9009 * common/rsp-low.c: New file.
9010 * Makefile.in (SFILES): Add common/rsp-low.c.
9011 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9012 (COMMON_OBS): Add rsp-low.o.
9013 (rsp-low.o): New target.
9014
01fd3ea5
TT
90152014-02-12 Tom Tromey <tromey@redhat.com>
9016
9017 * utils.h: Include print-utils.h.
9018 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9019 (int_string, core_addr_to_string, core_addr_to_string_nz)
9020 (hex_string, hex_string_custom): Don't declare.
9021 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9022 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9023 (hex_string_custom, int_string, core_addr_to_string)
9024 (core_addr_to_string_nz, host_address_to_string): Move to
9025 common/print-utils.c.
9026 * common/print-utils.h: New file.
9027 * common/print-utils.c: New file
9028 * Makefile.in (SFILES): Add common/print-utils.c.
9029 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9030 (COMMON_OBS): Add print-utils.o.
9031 (print-utils.o): New target.
9032
9fb50108
TT
90332014-02-12 Tom Tromey <tromey@redhat.com>
9034
9035 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9036
0548b5db
MK
90372014-02-12 Mark Kettenis <kettenis@gnu.org>
9038
9039 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9040
493443a4
MK
90412014-02-12 Mark Kettenis <kettenis@gnu.org>
9042
9043 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9044 if a PT_IO ptrace request returns sucessfully but indicates that 0
9045 bytes were transferred.
9046
706d0883
PA
90472014-02-12 Pedro Alves <palves@redhat.com>
9048 Kevin Buettner <kevinb@redhat.com>
9049
9050 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9051 TYPE_INSTANCE_FLAG_CODE_SPACE.
9052
5caa2f0b
PA
90532014-02-12 Pedro Alves <palves@redhat.com>
9054
9055 * h8300-tdep.c (pseudo_from_raw_register)
9056 (raw_from_pseudo_register): New functions.
9057 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9058 them.
9059
76fd5f74
PA
90602014-02-12 Pedro Alves <palves@redhat.com>
9061
9062 * h8300-tdep.c (h8300_register_sim_regno): New function.
9063 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9064 gdbarch_register_sim_regno hook.
9065
8f008406
SA
90662014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9067
9068 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9069
195abc10
SA
90702014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9071
9072 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9073
93ffa5b9
MK
90742014-02-12 Mark Kettenis <kettenis@gnu.org>
9075
9076 * obsd-tdep.h (obsd_init_abi): New prototype.
9077 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9078 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9079 (obsd_init_abi): New functions.
9080 * i386obsd-tdep.c: Include "obsd-tdep.h".
9081 (i386obsd_init_abi): Call obsd_init_abi.
9082 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9083 (amd64obsd_init_abi): Call obsd_init_abi.
9084 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9085 obsd-tdep.c to gdb_target_obs.
9086
49caec94
JM
90872014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9088
9089 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9090 double float arguments to 16-byte in the argument slots.
9091
e1402065
DE
90922014-02-11 Doug Evans <xdje42@gmail.com>
9093
9094 * configure.ac: Don't crash if pkg-config is not found and guile
9095 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9096 in guile checks.
9097 * configure: Regenerate.
9098
edcc890f
YQ
90992014-02-11 Yao Qi <yao@codesourcery.com>
9100
9101 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9102 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9103 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9104 * gnu-nat.c (gnu_xfer_memory): Likewise.
9105 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9106 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9107 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9108 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9109
9b409511
YQ
91102014-02-11 Yao Qi <yao@codesourcery.com>
9111
9112 * target.h (enum target_xfer_error): Rename to ...
9113 (enum target_xfer_status): ... it. New. All users updated.
9114 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9115 New.
9116 (TARGET_XFER_STATUS_ERROR_P): New macro.
9117 (target_xfer_error_to_string): Remove declaration.
9118 (target_xfer_status_to_string): Declare.
9119 (target_xfer_partial_ftype): Adjust it.
9120 (struct target_ops) <to_xfer_partial>: Return
9121 target_xfer_status. Add argument xfered_len. Update
9122 comments.
9123 * target.c (target_xfer_error_to_string): Rename to ...
9124 (target_xfer_status_to_string): ... it. New. All callers
9125 updated.
9126 (target_read_live_memory): Likewise. Call target_xfer_partial
9127 instead of target_read.
9128 (memory_xfer_live_readonly_partial): Return
9129 target_xfer_status. Add argument xfered_len.
9130 (raw_memory_xfer_partial): Likewise.
9131 (memory_xfer_partial_1): Likewise.
9132 (memory_xfer_partial): Likewise.
9133 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9134 properly. Update debug message.
9135 (default_xfer_partial, current_xfer_partial): Likewise.
9136 (target_write_partial): Likewise.
9137 (target_read_partial): Likewise. All callers updated.
9138 (read_whatever_is_readable): Likewise.
9139 (target_write_with_progress): Likewise.
9140 (target_read_alloc_1): Likewise.
9141
9142 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9143 * auxv.c (procfs_xfer_auxv): Likewise.
9144 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9145 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9146 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9147 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9148 * corefile.c (read_memory): Adjust.
9149 * corelow.c (core_xfer_partial): Likewise.
9150 * ctf.c (ctf_xfer_partial): Likewise.
9151 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9152 updated.
9153 (darwin_xfer_partial): Likewise.
9154 * exec.c (section_table_xfer_memory_partial): Likewise. All
9155 callers updated.
9156 (exec_xfer_partial): Likewise.
9157 * exec.h (section_table_xfer_memory_partial): Update
9158 declaration.
9159 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9160 negative.
9161 (gnu_xfer_partial): Likewise.
9162 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9163 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9164 (ia64_hpux_xfer_solib_got): Likewise.
9165 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9166 type of 'partial_len' to ULONGEST.
9167 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9168 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9169 (linux_nat_xfer_partial): Likewise.
9170 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9171 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9172 * monitor.c (monitor_xfer_memory): Likewise.
9173 (monitor_xfer_partial): Likewise.
9174 * procfs.c (procfs_xfer_partial): Likewise.
9175 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9176 * record-full.c (record_full_xfer_partial): Likewise.
9177 (record_full_core_xfer_partial): Likewise.
9178 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9179 (gdbsim_xfer_partial): Likewise.
9180 * remote.c (remote_write_bytes_aux): Likewise. All callers
9181 updated.
9182 (remote_write_bytes, remote_read_bytes): Likewise. All
9183 callers updated.
9184 (remote_flash_erase): Likewise. All callers updated.
9185 (remote_write_qxfer): Likewise. All callers updated.
9186 (remote_read_qxfer): Likewise. All callers updated.
9187 (remote_xfer_partial): Likewise.
9188 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9189 (rs6000_xfer_shared_libraries): Likewise.
9190 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9191 (sol_thread_xfer_partial): Likewise.
9192 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9193 (sparc_xfer_partial): Likewise.
9194 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9195 updated.
9196 (spu_xfer_partial): Likewise.
9197 * spu-multiarch.c (spu_xfer_partial): Likewise.
9198 * tracepoint.c (tfile_xfer_partial): Likewise.
9199 * windows-nat.c (windows_xfer_memory): Likewise.
9200 (windows_xfer_shared_libraries): Likewise.
9201 (windows_xfer_partial): Likewise.
9202 * valprint.c: Replace 'target_xfer_error' with
9203 'target_xfer_status' in comments.
9204
a8e63083
JB
92052014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9206
9207 Checked in by Joel Brobecker <brobecker@adacore.com>.
9208 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9209
e86b67d3
JB
92102014-02-11 Joel Brobecker <brobecker@adacore.com>
9211
9212 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9213 function parameters.
9214
4b7d1f7f
WN
92152014-02-10 Will Newton <will.newton@linaro.org>
9216
9217 * elfread.c (elf_rel_plt_read): Look for a .got section if
9218 looking up .got.plt fails.
9219 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9220 on address passed to elf_gnu_ifunc_record_cache.
9221 (elf_gnu_ifunc_resolve_addr): Likewise.
9222 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9223
961842b2
JM
92242014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9225
9226 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9227 (X_RETTURN): New macro.
9228 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9229
9230 * sparc64-tdep.c (sparc64_init_abi): Hook
9231 sparc_in_function_epilogue_p.
9232
3f03e7b1
GB
92332014-02-10 Gary Benson <gbenson@redhat.com>
9234
9235 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9236 Rename name_matcher to symbol_matcher.
9237
96f861ef
GB
92382014-02-10 Gary Benson <gbenson@redhat.com>
9239
9240 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9241 Use expand_symtabs_file_matcher_ftype and
9242 expand_symtabs_symbol_matcher_ftype.
9243
ee01b665
JB
92442014-02-10 Joel Brobecker <brobecker@adacore.com>
9245
9246 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9247 (struct ada_symbol_cache): New.
9248 (ada_free_symbol_cache): Forward declare.
9249 (struct ada_pspace_data): New.
9250 (ada_pspace_data_handle): New static global.
9251 (get_ada_pspace_data, ada_pspace_data_cleanup)
9252 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9253 (cache_space, cache): Delete, now folded inside struct
9254 ada_pspace_data.
9255 (ada_get_symbol_cache): New function.
9256 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9257 implementation.
9258 (_initialize_ada_language): Remove initialization of cache_space.
9259 Move call to observer_attach_inferior_exit up, grouping it
9260 with the other observer registrations inside this function.
9261 Rename command to be more general. Add call to
9262 register_program_space_data_with_cleanup.
9263
143adbbf
JB
92642014-02-10 Joel Brobecker <brobecker@adacore.com>
9265
9266 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9267 ada_new_objfile_observer.
9268 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9269 (_initialize_tasks): Update uses of ada_new_objfile_observer
9270 and ada_tasks_normal_stop_observer.
9271
aa4fb036
JB
92722014-02-10 Joel Brobecker <brobecker@adacore.com>
9273
9274 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9275 returned by the 'Length attribute to integer.
9276
9dee8cc6
JB
92772014-02-10 Joel Brobecker <brobecker@adacore.com>
9278
9279 * ada-lang.c (_initialize_ada_language): Initialize
9280 cache_space obstack.
9281
3d9434b5
JB
92822014-02-10 Joel Brobecker <brobecker@adacore.com>
9283
9284 * ada-lang.c (HASH_SIZE): New macro.
9285 (struct cache_entry): New type.
9286 (cache_space, cache): New static globals.
9287 (ada_clear_symbol_cache, find_entry): New functions.
9288 (lookup_cached_symbol, cache_symbol): Implement.
9289 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9290 (_initialize_ada_language): Attach ada_new_objfile_observer
9291 and ada_free_objfile_observer.
9292
f0c5f9b2
JB
92932014-02-10 Joel Brobecker <brobecker@adacore.com>
9294
9295 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9296 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9297 struct block * parameter.
9298 (ada_lookup_symbol_list_worker): Constify local variable "block".
9299 Remove cast which is no longer necessary.
9300
ed3ef339
DE
93012014-02-10 Doug Evans <xdje42@gmail.com>
9302
9303 Add Guile as an extension language.
9304 * NEWS: Mention Guile scripting.
9305 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9306 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9307 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9308 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9309 (CLIBS): Add GUILE_LIBS.
9310 (install-guile): New rule.
9311 (guile.o): New rule.
9312 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9313 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9314 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9315 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9316 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9317 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9318 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9319 * configure.ac: New option --with-guile.
9320 * configure: Regenerate.
9321 * config.in: Regenerate.
9322 * auto-load.c: Remove #include "python/python.h". Add #include
9323 "gdb/section-scripts.h".
9324 (source_section_scripts): Handle Guile scripts.
9325 (_initialize_auto_load): Add name of Guile objfile script to
9326 scripts-directory help text.
9327 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9328 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9329 (struct breakpoint): New member scm_bp_object.
9330 * defs.h (enum command_control_type): New value guile_control.
9331 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9332 "extension.h".
9333 (show_user): Update comment.
9334 (_initialize_cli_cmds): Update help text for "show user". Update help
9335 text for max-user-call-depth.
9336 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9337 "extension.h".
9338 (multi_line_command_p): Add guile_control.
9339 (print_command_lines): Handle guile_control.
9340 (execute_control_command, recurse_read_control_structure): Ditto.
9341 (process_next_line): Recognize "guile" commands.
9342 * disasm.c (gdb_disassemble_info): Make non-static.
9343 * disasm.h: #include "dis-asm.h".
9344 (struct gdbarch): Add forward decl.
9345 (gdb_disassemble_info): Declare.
9346 * extension.c: #include "guile/guile.h".
9347 (extension_languages): Add guile.
9348 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9349 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9350 * gdbtypes.c (get_unsigned_type_max): New function.
9351 (get_signed_type_minmax): New function.
9352 * gdbtypes.h (get_unsigned_type_max): Declare.
9353 (get_signed_type_minmax): Declare.
9354 * guile/README: New file.
9355 * guile/guile-internal.h: New file.
9356 * guile/guile.c: New file.
9357 * guile/guile.h: New file.
9358 * guile/scm-arch.c: New file.
9359 * guile/scm-auto-load.c: New file.
9360 * guile/scm-block.c: New file.
9361 * guile/scm-breakpoint.c: New file.
9362 * guile/scm-disasm.c: New file.
9363 * guile/scm-exception.c: New file.
9364 * guile/scm-frame.c: New file.
9365 * guile/scm-gsmob.c: New file.
9366 * guile/scm-iterator.c: New file.
9367 * guile/scm-lazy-string.c: New file.
9368 * guile/scm-math.c: New file.
9369 * guile/scm-objfile.c: New file.
9370 * guile/scm-ports.c: New file.
9371 * guile/scm-pretty-print.c: New file.
9372 * guile/scm-safe-call.c: New file.
9373 * guile/scm-string.c: New file.
9374 * guile/scm-symbol.c: New file.
9375 * guile/scm-symtab.c: New file.
9376 * guile/scm-type.c: New file.
9377 * guile/scm-utils.c: New file.
9378 * guile/scm-value.c: New file.
9379 * guile/lib/gdb.scm: New file.
9380 * guile/lib/gdb/boot.scm: New file.
9381 * guile/lib/gdb/experimental.scm: New file.
9382 * guile/lib/gdb/init.scm: New file.
9383 * guile/lib/gdb/iterator.scm: New file.
9384 * guile/lib/gdb/printing.scm: New file.
9385 * guile/lib/gdb/types.scm: New file.
9386 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9387 (VPATH): Add $(GUILE_SRCDIR).
9388 (GUILE_DIR): New variable.
9389 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9390 (all): Add stamp-guile dependency.
9391 (stamp-guile): New rule.
9392 (clean-guile, install-guile, uninstall-guile): New rules.
9393 (install-only): Add install-guile dependency.
9394 (uninstall): Add uninstall-guile dependency.
9395 (clean): Add clean-guile dependency.
9396
ac020ec5
DE
93972014-02-09 Doug Evans <xdje42@gmail.com>
9398
9399 Revert this patch (which I approved, mea culpa).
9400
9401 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9402
9403 * Makefile.in (all-lib): Remove.
9404 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9405
2a081c59
JK
94062014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9407
9408 Fix Python stack corruption.
9409 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9410 gdb_py_longest.
9411
0a6bd22d
MK
94122014-02-08 Mark Kettenis <kettenis@gnu.org>
9413
9414 * Makefile.in (all-lib): Remove.
9415 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9416
1a860409
DE
94172014-02-07 Doug Evans <dje@google.com>
9418
9419 * extension-priv.h (extension_language_script_ops): Add comment.
9420 (extension_language_ops): Add comment.
caf5a491 9421 (active_ext_lang_state): Fix typo in comment.
1a860409 9422
d137e6dc
PA
94232014-02-07 Pedro Alves <palves@redhat.com>
9424
0dcb32c3 9425 PR breakpoints/16292
d137e6dc
PA
9426 * infrun.c (handle_signal_stop) <signal arrives while stepping
9427 over a breakpoint>: Switch back to the stepping thread.
9428
ce6d0892
YQ
94292014-02-07 Yao Qi <yao@codesourcery.com>
9430
9431 * target.c (target_xfer_partial): Return zero if LEN is zero.
9432
2ed4b548
YQ
94332014-02-07 Yao Qi <yao@codesourcery.com>
9434
9435 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9436 (ld_so_xfer_auxv): Likewise.
9437 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9438 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9439 * corelow.c (core_xfer_partial): Likewise.
9440 * ctf.c (ctf_xfer_partial): Likewise.
9441 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9442 (darwin_xfer_partial): Likewise.
9443 * exec.c (exec_xfer_partial): Likewise.
9444 * gnu-nat.c (gnu_xfer_partial): Likewise.
9445 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9446 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9447 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9448 * linux-nat.c (linux_xfer_siginfo): Likewise.
9449 (linux_proc_xfer_spu): Likewise.
9450 * procfs.c (procfs_xfer_partial): Likewise.
9451 * record-full.c (record_full_xfer_partial): Likewise.
9452 (record_full_core_xfer_partial): Likewise.
9453 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9454 * remote.c (remote_write_qxfer): Likewise.
9455 (remote_write_qxfer, remote_read_qxfer): Likewise.
9456 (remote_xfer_partial): Likewise.
9457 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9458 (rs6000_xfer_shared_libraries): Likewise.
9459 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9460 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9461 (spu_xfer_partial): Likewise.
9462 * target.c (memory_xfer_partial_1): Likewise.
9463 * tracepoint.c (tfile_xfer_partial): Likewise.
9464 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9465 (windows_xfer_partial): Likewise.
9466
c09f20e4
YQ
94672014-02-07 Yao Qi <yao@codesourcery.com>
9468
9469 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9470 comments.
9471 (core_xfer_shared_libraries_aix): Likewise.
9472 * gdbarch.c, gdbarch.h: Regenerated.
9473 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9474 ULONGEST. Change 'len_avail' type to ULONGEST.
9475 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9476 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9477 declaration.
9478 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9479
8635b3bf
YQ
94802014-02-07 Yao Qi <yao@codesourcery.com>
9481
9482 * corefile.c (memory_error): Get 'exception' from ERR and pass
9483 'exception' to throw_error.
9484
6dddc817
DE
94852014-02-06 Doug Evans <xdje42@gmail.com>
9486
9487 * configure.ac (libpython checking): Remove all but python.o from
9488 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9489 * configure: Regenerate.
9490
9491 * Makefile.in (SFILES): Add extension.c.
9492 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9493 (COMMON_OBS): Add extension.o.
9494 * extension.h: New file.
9495 * extension-priv.h: New file.
9496 * extension.c: New file.
9497
9498 * python/python-internal.h: #include "extension.h".
9499 (gdbpy_auto_load_enabled): Declare.
9500 (gdbpy_apply_val_pretty_printer): Declare.
9501 (gdbpy_apply_frame_filter): Declare.
9502 (gdbpy_preserve_values): Declare.
9503 (gdbpy_breakpoint_cond_says_stop): Declare.
9504 (gdbpy_breakpoint_has_cond): Declare.
9505 (void source_python_script_for_objfile): Delete.
9506 * python/python.c: #include "extension-priv.h".
9507 Delete inclusion of "observer.h".
9508 (extension_language_python): Moved here and renamed from
9509 script_language_python in py-auto-load.c.
9510 Redefined to be of type extension_language_defn.
9511 (python_extension_script_ops): New global.
9512 (python_extension_ops): New global.
9513 (struct python_env): New member previous_active.
9514 (restore_python_env): Call restore_active_ext_lang.
9515 (ensure_python_env): Call set_active_ext_lang.
9516 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9517 New arg extlang.
9518 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9519 New arg extlang.
9520 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9521 New arg extlang.
9522 (gdbpy_eval_from_control_command): Renamed from
9523 eval_python_from_control_command, made static. New arg extlang.
9524 (gdbpy_source_script) Renamed from source_python_script, made static.
9525 New arg extlang.
9526 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9527 result to int. New arg extlang.
9528 (gdbpy_source_objfile_script): Renamed from
9529 source_python_script_for_objfile, made static. New arg extlang.
9530 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9531 static. New args extlang, extlang_printers. Change result type to
9532 "void".
9533 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9534 static. New arg extlang. Rename arg printers to extlang_printers
9535 and change type to ext_lang_type_printers *.
9536 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9537 static. Replace argument arg with extlang, extlang_printers.
9538 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9539 (!HAVE_PYTHON, source_python_script): Delete.
9540 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9541 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9542 (!HAVE_PYTHON, start_type_printers): Delete.
9543 (!HAVE_PYTHON, apply_type_printers): Delete.
9544 (!HAVE_PYTHON, free_type_printers): Delete.
9545 (_initialize_python): Delete call to observer_attach_before_prompt.
9546 (finalize_python): Set/restore active extension language.
9547 (gdbpy_finish_initialization) Renamed from
9548 finish_python_initialization, made static. New arg extlang.
9549 (gdbpy_initialized): New function.
9550 * python/python.h: #include "extension.h". Delete #include
9551 "value.h", "mi/mi-cmds.h".
9552 (extension_language_python): Declare.
9553 (GDBPY_AUTO_FILE_NAME): Delete.
9554 (enum py_bt_status): Moved to extension.h and renamed to
9555 ext_lang_bt_status.
9556 (enum frame_filter_flags): Moved to extension.h.
9557 (enum py_frame_args): Moved to extension.h and renamed to
9558 ext_lang_frame_args.
9559 (finish_python_initialization): Delete.
9560 (eval_python_from_control_command): Delete.
9561 (source_python_script): Delete.
9562 (apply_val_pretty_printer): Delete.
9563 (apply_frame_filter): Delete.
9564 (preserve_python_values): Delete.
9565 (gdbpy_script_language_defn): Delete.
9566 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9567 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9568
9569 * auto-load.c: #include "extension.h".
9570 (GDB_AUTO_FILE_NAME): Delete.
9571 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9572 (script_language_gdb): Delete, moved to extension.c and renamed to
9573 extension_language_gdb.
9574 (source_gdb_script_for_objfile): Delete.
9575 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9576 (loaded_script): Change type of language member to
9577 struct extension_language_defn *.
9578 (init_loaded_scripts_info): Initialize
9579 unsupported_script_warning_printed.
9580 (maybe_add_script): Make static. Change type of language arg to
9581 struct extension_language_defn *.
9582 (clear_section_scripts): Reset unsupported_script_warning_printed.
9583 (auto_load_objfile_script_1): Rewrite to use extension language API.
9584 (auto_load_objfile_script): Make public. Remove support-compiled-in
9585 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9586 (source_section_scripts): Rewrite to use extension language API.
9587 (load_auto_scripts_for_objfile): Rewrite to use
9588 auto_load_scripts_for_objfile.
9589 (collect_matching_scripts_data): Change type of language member to
9590 struct extension_language_defn *.
9591 (auto_load_info_scripts): Change type of language arg to
9592 struct extension_language_defn *.
9593 (unsupported_script_warning_print): New function.
9594 (script_not_found_warning_print): Make static.
9595 (_initialize_auto_load): Rewrite construction of scripts-directory
9596 help.
9597 * auto-load.h (struct objfile): Add forward decl.
9598 (struct script_language): Delete.
9599 (struct auto_load_pspace_info): Add forward decl.
9600 (struct extension_language_defn): Add forward decl.
9601 (maybe_add_script): Delete.
9602 (auto_load_objfile_script): Declare.
9603 (script_not_found_warning_print): Delete.
9604 (auto_load_info_scripts): Update prototype.
9605 (auto_load_gdb_scripts_enabled): Declare.
9606 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9607 auto_load_python_scripts_enabled and made public.
9608 (script_language_python): Delete, moved to python.c.
9609 (gdbpy_script_language_defn): Delete.
9610 (info_auto_load_python_scripts): Update to use
9611 extension_language_python.
9612
9613 * breakpoint.c (condition_command): Replace call to
9614 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9615 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9616 with call to breakpoint_ext_lang_cond_says_stop.
9617 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9618 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9619 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9620 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9621 New arg slang.
9622 (local_setattro): Print name of extension language with existing
9623 stop condition.
9624
9625 * valprint.c (val_print, value_print): Update to call
9626 apply_ext_lang_val_pretty_printer.
9627 * cp-valprint.c (cp_print_value): Update call to
9628 apply_ext_lang_val_pretty_printer.
9629 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9630 (gdbpy_apply_val_pretty_printer): Renamed from
9631 apply_val_pretty_printer. New arg extlang.
9632 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9633
9634 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9635 extension language API.
9636 * cli/cli-script.c (execute_control_command): Update to call
9637 eval_ext_lang_from_control_command.
9638
9639 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9640 enum ext_lang_bt_status values. Update call to
9641 apply_ext_lang_frame_filter.
9642 (mi_cmd_stack_list_locals): Ditto.
9643 (mi_cmd_stack_list_args): Ditto.
9644 (mi_cmd_stack_list_variables): Ditto.
9645 * mi/mi-main.c: Delete #include "python/python-internal.h".
9646 Add #include "extension.h".
9647 (mi_cmd_list_features): Replace reference to python internal variable
9648 gdb_python_initialized with call to ext_lang_initialized_p.
9649
9650 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9651 Update to use enum ext_lang_frame_args. Update to call
9652 apply_ext_lang_frame_filter.
9653 * python/py-framefilter.c (extract_sym): Update to use enum
9654 ext_lang_bt_status.
9655 (extract_value, py_print_type, py_print_value): Ditto.
9656 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9657 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9658 (py_print_frame): Ditto.
9659 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9660 New arg extlang. Update to use enum ext_lang_bt_status.
9661
9662 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9663 finish_python_initialization. Replace with call to
9664 finish_ext_lang_initialization.
9665
9666 * typeprint.c (do_free_global_table): Update to call
9667 free_ext_lang_type_printers.
9668 (create_global_typedef_table): Update to call
9669 start_ext_lang_type_printers.
9670 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9671 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9672 (type_print_options): Change type of global_printers from "void *"
9673 to "struct ext_lang_type_printers *".
9674
9675 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9676 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9677 (gdbpy_preserve_values): Renamed from preserve_python_values.
9678 New arg extlang.
9679 (!HAVE_PYTHON, preserve_python_values): Delete.
9680
9681 * utils.c (quit_flag): Delete, moved to extension.c.
9682 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9683 extension.c.
9684
9685 * eval.c: Delete #include "python/python.h".
9686 * main.c: Delete #include "python/python.h".
9687
9688 * defs.h: Update comment.
9689
6af79985
JB
96902014-02-06 Joel Brobecker <brobecker@adacore.com>
9691
9692 GDB 7.7 released.
9693
12c5175d
MK
96942014-02-05 Mark Kettenis <kettenis@gnu.org>
9695
9696 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9697 defined.
9698
8dc5b319
YQ
96992014-02-05 Yao Qi <yao@codesourcery.com>
9700
9701 * remote.c (remote_pass_signals): Remove local 'buf' and use
9702 rs->buf.
9703 (remote_program_signals): Likewise.
9704
de7b2893
YQ
97052014-02-05 Yao Qi <yao@codesourcery.com>
9706
9707 * ctf.c: Include "inferior.h" and "gdbthread.h".
9708 (CTF_PID): A new macro.
9709 (ctf_open): Call inferior_appeared and add_thread_silent.
9710 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9711 (ctf_thread_alive): New function.
9712 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9713
66d032ac
YQ
97142014-02-05 Yao Qi <yao@codesourcery.com>
9715
9716 Revert this patch:
9717
9718 2013-05-24 Yao Qi <yao@codesourcery.com>
9719
9720 * tracepoint.c (TFILE_PID): Remove.
9721 (tfile_open): Don't add thread and inferior.
9722 (tfile_close): Don't set 'inferior_ptid'. Don't call
9723 exit_inferior_silent.
9724 (tfile_thread_alive): Remove.
9725 (init_tfile_ops): Don't set field 'to_thread_alive' of
9726 tfile_ops.
9727
f4ccffad
CE
97282014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9729
9730 * remote.c (remote_start_remote): Call remote_check_symbols even
9731 if only symbol-file (not file) has been given.
9732
591a12a1
UW
97332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9734
9735 * gdbarch.sh (skip_entrypoint): New callback.
9736 * gdbarch.c, gdbarch.h: Regenerate.
9737 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9738 * infrun.c (fill_in_stop_func): Likewise.
9739 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9740 (ppc_elfv2_elf_make_msymbol_special): New function.
9741 (ppc_elfv2_skip_entrypoint): Likewise.
9742 (ppc_linux_init_abi): Install them for ELFv2.
9743
cc0e89c5
UW
97442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9745
9746 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9747 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9748 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9749 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9750 structures returned in GPRs.
9751
52f548e4
UW
97522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9753
9754 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9755 offset to the stack parameter list for the ELFv2 ABI.
9756
d4094b6a
UW
97572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9758
9759 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9760 set_gdbarch_convert_from_func_ptr_addr and
9761 set_gdbarch_elf_make_msymbol_special for ELFv1.
9762 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9763 function descriptors on ELFv1.
9764 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9765 set up r12 at function entry.
9766
cd453cd0
UW
97672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9768
9769 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9770 (struct gdbarch_tdep): New member elf_abi.
9771
9772 * rs6000-tdep.c: Include "elf/ppc64.h".
9773 (rs6000_gdbarch_init): Detect ELF ABI version.
9774
0ff3e01f
UW
97752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9776
9777 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9778 within a register pair holding a DFP 128-bit value on little-endian.
9779 (ppc64_sysv_abi_return_value_base): Likewise.
9780 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9781 (dfp_pseudo_register_write): Likewise.
9782
5b757e5d
UW
97832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9784
9785 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9786 offset on little-endian when passing _Decimal32.
9787 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9788
084ee545
UW
97892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9790
9791 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9792 of the overlapped FP register within the VSX register on little-
9793 endian platforms.
9794 (efpr_pseudo_register_write): Likewise.
9795
d63167af
UW
97962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9797
9798 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9799 offset on little-endian when passing small structures.
9800
e765b44c
UW
98012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9802
9803 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9804 (struct ppc64_sysv_argpos): New data structure.
9805 (ppc64_sysv_abi_push_float): Remove.
9806 (ppc64_sysv_abi_push_val): New function.
9807 (ppc64_sysv_abi_push_integer): Likewise.
9808 (ppc64_sysv_abi_push_freg): Likewise.
9809 (ppc64_sysv_abi_push_vreg): Likewise.
9810 (ppc64_sysv_abi_push_param): Likewise.
9811 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9812 (ppc64_sysv_abi_return_value_base): New function.
9813 (ppc64_sysv_abi_return_value): Refactor to use it.
9814
36c24d95
UW
98152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9816
9817 * NEWS: Document new target powerpc64le-*-linux*.
9818
26fd9228
MK
98192014-02-04 Mark Kettenis <kettenis@gnu.org>
9820
9821 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9822 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9823 core dumps.
9824 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9825 register set used in ELF core dumps. Add floating-point register set.
9826
c5bb7362
KB
98272014-02-03 Kevin Buettner <kevinb@redhat.com>
9828
74228e77 9829 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
9830 dwarf2_to_gdb[] table using symbolic constants. Adjust
9831 penultimate entry from number representing the PC register
9832 to symbolic constant representing the MDR register. Add
9833 constant for the PC register to the end of the table.
9834
af09351e
MK
98352014-02-03 Mark Kettenis <kettenis@gnu.org>
9836
9837 * bsd-kvm.c: Include <sys/param.h>
9838
8507e05d
MK
98392014-02-03 Mark Kettenis <kettenis@gnu.org>
9840
9841 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9842
ae56bfb8
JB
98432014-01-31 Joel Brobecker <brobecker@adacore.com>
9844
9845 * ada-lang.h (clear_ada_sym_cache): Delete.
9846
718ee4dc
UW
98472014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
9848
9849 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9850
401e27fd
JM
98512014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9852
9853 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9854 the sigreturn register save area only if the syscall is
9855 sigreturn.
9856
a7c88acd
JB
98572014-01-29 Joel Brobecker <brobecker@adacore.com>
9858
9859 * valops.c (value_slice): Minor reformatting.
9860
fa0079ea
UW
98612014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
9862
9863 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9864
c6044dd1
JB
98652014-01-28 Joel Brobecker <brobecker@adacore.com>
9866
9867 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9868 New static globals.
9869 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9870 (ada_ignore_descriptive_types_p): New static global.
9871 (find_parallel_type_by_descriptive_type): Return immediately
9872 if ada_ignore_descriptive_types_p is set.
9873 (_initialize_ada_language): Register new commands "maintenance
9874 set ada", "maintenance show ada", "maintenance set ada
9875 ignore-descriptive-types" and "maintenance show ada
9876 ignore-descriptive-types".
9877 * NEWS: Add entry for new "maint ada set/show
9878 ignore-descriptive-types" commands.
9879
568e808b
MM
98802014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9881
9882 * record-btrace.c (record_btrace_close): Call btrace_teardown
9883 for all threads.
9884
467d141b
JB
98852014-01-27 Joel Brobecker <brobecker@adacore.com>
9886
9887 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9888 "ui-out.h".
9889
fb151210
JB
98902014-01-27 Joel Brobecker <brobecker@adacore.com>
9891
9892 * ada-typeprint (type_is_full_subrange_of_target_type):
9893 New function.
9894 (print_range): Add parameter bounds_prefered_p. If not set,
9895 try printing range types using the name of their base type.
9896 (print_range_type): Add parameter bounds_prefered_p.
9897 Use it in call to print_range.
9898 (print_array_type, ada_print_type): Update calls to print_range
9899 and print_range_type.
9900
aba02109
JB
99012014-01-27 Joel Brobecker <brobecker@adacore.com>
9902
9903 * ada-typeprint.c (print_array_type, print_choices, print_range)
9904 (print_range_bound, print_dynamic_range_bound, print_range_type):
9905 Remove declaration.
9906
e62e21fd
JB
99072014-01-27 Joel Brobecker <brobecker@adacore.com>
9908
9909 * ada-typeprint.c (print_range): Add missing empty line
9910 after local declaration.
9911
859cf5d1
JB
99122014-01-27 Joel Brobecker <brobecker@adacore.com>
9913
9914 * ada-valprint.c (print_optional_low_bound): Get index_type's
9915 target type for as long as it is a TYPE_CODE_RANGE.
9916
25790f6f
JB
99172014-01-27 Joel Brobecker <brobecker@adacore.com>
9918
9919 * procfs.c (procfs_make_note_section): Remove assertion and
9920 associated comment.
9921
6b6aa828
YQ
99222014-01-24 Yao Qi <yao@codesourcery.com>
9923
9924 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9925 * corelow.c (get_core_siginfo): Likewise.
9926
5d6df423
YQ
99272014-01-24 Yao Qi <yao@codesourcery.com>
9928
9929 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9930 ULONGEST. Don't check 'len' is negative.
9931 (remote_write_bytes): Change type of 'len' to ULONGEST.
9932
83b645b8
TT
99332014-01-23 Tom Tromey <tromey@redhat.com>
9934
9935 PR python/16485:
9936 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9937 Handle exception from frame.block.
9938 (FrameVars.fetch_frame_locals): Likewise.
9939
0740f8d8
TT
99402014-01-23 Tom Tromey <tromey@redhat.com>
9941
9942 PR python/16487:
9943 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9944 on a NULL pointer. Move "goto error" to correct place.
9945
21909fa1
TT
99462014-01-23 Tom Tromey <tromey@redhat.com>
9947
9948 PR python/16491:
9949 * python/py-framefilter.c (apply_frame_filter): Call
9950 ensure_python_env after computing gdbarch.
9951
17fde6d0
YQ
99522014-01-23 Yao Qi <yao@codesourcery.com>
9953
9954 * target.c (raw_memory_xfer_partial): Change argument type
9955 from void * to gdb_byte *.
9956 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9957
87ce2a04
DE
99582014-01-22 Doug Evans <dje@google.com>
9959
9960 New gdbserver option --debug-format=timestamp.
9961 * NEWS: Mention it.
9962
237b092b
AA
99632014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9964
9965 * syscalls/s390x-linux.xml: New file.
9966 * syscalls/s390-linux.xml: New file.
9967 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9968 (XML_SYSCALL_FILENAME_S390X): Likewise.
9969 (op_svc): New enum value for SVC opcode.
9970 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9971 (s390_linux_get_syscall_number): New function.
9972 (s390_gdbarch_init): Register '*get_syscall_number' and the
9973 syscall xml file name.
9974 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9975 "s390-linux.xml" and "s390x-linux.xml".
9976 * NEWS: Announce new feature.
9977
54bff650
BS
99782014-01-22 Baruch Siach <baruch@tkos.co.il>
9979
9980 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9981
14e361d7
PA
99822014-01-22 Pedro Alves <palves@redhat.com>
9983
9984 * xtensa-config.c: Include defs.h.
9985
46bbb3ed
JB
99862014-01-22 Joel Brobecker <brobecker@adacore.com>
9987
9988 * common/common-utils.h: Add "ARI:" comment beside __func__
9989 reference.
9990
3a80edfc
JB
99912014-01-22 Joel Brobecker <brobecker@adacore.com>
9992
9993 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9994 documentation a bit.
9995
4869db5e
RM
99962014-01-21 Roland McGrath <mcgrathr@google.com>
9997
9998 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9999 * configure: Regenerate.
10000 * aclocal.m4: Regenerate.
10001 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10002 New substituted variables.
10003 (install-strip): New target.
10004 (INSTALL_SCRIPT): New substituted variable.
10005 (FLAGS_TO_PASS): Add it.
10006 (install-only): Use $(INSTALL_SCRIPT) rather than
10007 $(INSTALL_PROGRAM) for gcore.
10008
9ea4267d
TT
100092014-01-20 Tom Tromey <tromey@redhat.com>
10010
10011 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10012 together.
10013
1f2bdf09
TT
100142014-01-20 Tom Tromey <tromey@redhat.com>
10015
10016 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10017 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10018 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10019 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10020 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10021 (struct cmd_list_element) <flags>: Remove.
10022 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10023 doc_allocated>: New fields.
10024 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10025 bitfields.
10026 * maint.c (maintenance_do_deprecate): Update.
10027 * top.c (execute_command): Update.
10028
e671835b
BS
100292014-01-20 Baruch Siach <baruch@tkos.co.il>
10030
10031 * xtensa-linux-nat.c: Include asm/ptrace.h.
10032
50367cd2
IB
100332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10034
10035 * Makefile.in (SFILES): Add d-support.c.
10036 (COMMON_OBS): Add d-support.o.
10037 * d-lang.h (d_parse_symbol): Add comment, now defined in
10038 d-support.c.
10039 * d-lang.c (parse_call_convention)
10040 (parse_attributes, parse_function_types)
10041 (parse_function_args, parse_type, parse_identifier)
10042 (call_convention_p, d_parse_symbol): Move functions to ...
10043 * d-support.c: ... New file.
10044
ec9f644a
IB
100452014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10046
10047 * d-lang.h (d_parse_symbol): Add declaration.
10048 * d-lang.c (extract_identifiers)
10049 (extract_type_info): Remove functions.
10050 (parse_call_convention, parse_attributes)
10051 (parse_function_types, parse_function_args)
10052 (parse_type, parse_identifier, call_convention_p)
10053 (d_parse_symbol): New functions.
10054 (d_demangle): Use d_parse_symbol to demangle D symbols.
10055
94b1b47e
IB
100562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10057
10058 * d-lang.h (struct builtin_d_type): New data type.
10059 (builtin_d_type): Add declaration.
10060 * d-lang.c (d_language_arch_info, build_d_types)
10061 (builtin_d_type): New functions.
10062 (enum d_primitive_types): New data type.
10063 (d_language_defn): Change c_language_arch_info to
10064 d_language_arch_info.
10065 (d_type_data): New static variable.
10066 (_initialize_d_language): Initialize d_type_data.
10067
63778547
IB
100682014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10069
10070 * d-lang.h (d_main_name): Add declaration.
10071 * d-lang.c (d_main_name): New function.
10072 * symtab.c (find_main_name): Add call to d_main_name.
10073
3271ba66
IB
100742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10075
10076 * d-lang.c (d_language_defn): Change macro_expansion_c to
10077 macro_expansion_no.
10078
d36b3012
IB
100792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10080
10081 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10082
c90a6fb7
SDJ
100832014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10084
10085 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10086 gdb_exception" declaration.
10087 * remote.c (getpkt_or_notif_sane): Likewise.
10088
749234e5
DE
100892014-01-17 Doug Evans <dje@google.com>
10090
10091 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10092 function, contents of dirnames_to_char_ptr_vec_append moved here.
10093 (delim_string_to_char_ptr_vec): New function.
10094 (dirnames_to_char_ptr_vec_append): Rewrite.
10095 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10096
df049a58
DE
100972014-01-17 Doug Evans <dje@google.com>
10098
10099 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10100 and moved here ...
10101 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10102 #include "common-utils.h".
10103 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10104 * common/vec.h (VEC_ASSERT_PASS): Update.
10105 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10106 (MACH_CHECK_ERROR): Update.
10107
69f97648
SM
101082014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10109
10110 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10111 comments.
10112 * gdbarch.h: Regenerate.
10113
98b1cfdc
TT
101142014-01-16 Tom Tromey <tromey@redhat.com>
10115
10116 * value.c (struct value) <regnum>: Move earlier.
10117
77a19445
TT
101182014-01-16 Tom Tromey <tromey@redhat.com>
10119
10120 * remote.c (extended_remote_create_inferior): Rename from
10121 extended_remote_create_inferior_1. Add "ops" argument. Remove
10122 old implementation.
10123
62261490
PA
101242014-01-16 Pedro Alves <palves@redhat.com>
10125
10126 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10127 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10128 the backchain.
10129
4d65956b
DE
101302014-01-16 Doug Evans <dje@google.com>
10131
10132 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10133
52834460
MM
101342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10135
10136 * btrace.h (btrace_thread_flag): New.
10137 (struct btrace_thread_info) <flags>: New.
10138 * record-btrace.c (record_btrace_resume_thread)
10139 (record_btrace_find_thread_to_move, btrace_step_no_history)
10140 (btrace_step_stopped, record_btrace_start_replaying)
10141 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10142 (record_btrace_find_resume_thread): New.
10143 (record_btrace_resume, record_btrace_wait): Extend.
10144 (record_btrace_can_execute_reverse): New.
10145 (record_btrace_open): Fail in non-stop mode.
10146 (record_btrace_set_replay): Split into this, ...
10147 (record_btrace_stop_replaying): ... this, ...
10148 (record_btrace_clear_histories): ... and this.
10149 (init_record_btrace_ops): Init to_can_execute_reverse.
10150 * NEWS: Announce it.
10151
118e6252
MM
101522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10153
10154 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10155 (forward_target_decr_pc_after_break)
10156 (target_decr_pc_after_break): New.
10157 * target.c (forward_target_decr_pc_after_break)
10158 (target_decr_pc_after_break): New.
10159 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10160 instead of gdbarch_decr_pc_after_break.
10161 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10162 instead of gdbarch_decr_pc_after_break.
10163 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10164 instead of gdbarch_decr_pc_after_break.
10165 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10166 instead of gdbarch_decr_pc_after_break.
10167 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10168 instead of gdbarch_decr_pc_after_break.
10169 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10170 instead of gdbarch_decr_pc_after_break.
10171
6e07b1d2
MM
101722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10173
10174 * btrace.c: Include regcache.h.
10175 (btrace_add_pc): New.
10176 (btrace_enable): Call btrace_add_pc.
10177 (btrace_is_empty): New.
10178 * btrace.h (btrace_is_empty): New.
10179 * record-btrace.c (require_btrace, record_btrace_info): Call
10180 btrace_is_empty.
10181
969c39fb
MM
101822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10183
10184 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10185 Support delta reads.
10186 (linux_disable_btrace): Change return type.
10187 * common/linux-btrace.h (linux_read_btrace): Change parameters
10188 and return type to allow error reporting. Update users.
10189 (linux_disable_btrace): Change return type. Update users.
10190 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10191 New.
10192 (btrace_error): New.
10193 (btrace_block) <begin>: Comment on BEGIN == 0.
10194 * btrace.c (btrace_compute_ftrace): Start from the end of
10195 the current trace.
10196 (btrace_stitch_trace, btrace_clear_history): New.
10197 (btrace_fetch): Read delta trace, return if replaying.
10198 (btrace_clear): Move clear history code to btrace_clear_history.
10199 (parse_xml_btrace): Throw an error if parsing failed.
10200 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10201 and return type to allow error reporting.
10202 (target_read_btrace): Change parameters and return type to allow
10203 error reporting.
10204 * target.c (target_read_btrace): Update.
10205 * remote.c (remote_read_btrace): Support delta reads. Pass
10206 errors on.
10207 * NEWS: Announce it.
10208
0b722aec
MM
102092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10210
10211 * record.h (record_btrace_frame_unwind)
10212 (record_btrace_tailcall_frame_unwind): New declarations.
10213 * dwarf2-frame: Include record.h
10214 (dwarf2_frame_cfa): Throw an error for btrace frames.
10215 * record-btrace.c: Include hashtab.h.
10216 (btrace_get_bfun_name): New.
10217 (btrace_call_history): Call btrace_get_bfun_name.
10218 (struct btrace_frame_cache): New.
10219 (bfcache): New.
10220 (bfcache_hash, bfcache_eq, bfcache_new): New.
10221 (btrace_get_frame_function): New.
10222 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10223 (record_btrace_frame_this_id): Compute own id.
10224 (record_btrace_frame_prev_register): Provide PC, throw_error
10225 for all other registers.
10226 (record_btrace_frame_sniffer): Detect btrace frames.
10227 (record_btrace_tailcall_frame_sniffer): New.
10228 (record_btrace_frame_dealloc_cache): New.
10229 (record_btrace_frame_unwind): Add new functions.
10230 (record_btrace_tailcall_frame_unwind): New.
10231 (_initialize_record_btrace): Allocate cache.
10232 * btrace.c (btrace_clear): Call reinit_frame_cache.
10233 * NEWS: Announce it.
10234
066ce621
MM
102352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10236
10237 * record-btrace.c (record_btrace_set_replay)
10238 (record_btrace_goto_begin, record_btrace_goto_end)
10239 (record_btrace_goto): New.
10240 (init_record_btrace_ops): Initialize them.
10241 * NEWS: Announce it.
10242
e2887aa3
MM
102432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10244
10245 * record-btrace.c (record_btrace_find_new_threads)
10246 (record_btrace_thread_alive): New.
10247 (init_record_btrace_ops): Initialize to_find_new_threads and
10248 to_thread_alive.
10249
b2f4cfde
MM
102502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10251
10252 * record-btrace.c (record_btrace_resume): New.
10253 (record_btrace_wait): New.
10254 (init_record_btrace_ops): Initialize to_wait and to_resume.
10255
633785ff
MM
102562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10257
10258 * record-btrace.c (record_btrace_xfer_partial)
10259 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10260 (record_btrace_allow_memory_access): New.
10261 (init_record_btrace_ops): Initialize new methods.
10262 * target.c (raw_memory_xfer_partial): Bail out if target reports
10263 that this memory is not available.
10264
3db08215
MM
102652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10266
10267 * target.h (target_ops) <to_insert_breakpoint>
10268 <to_remove_breakpoint>: Add target_ops parameter.
10269 (forward_target_insert_breakpoint): New.
10270 (forward_target_remove_breakpoint): New.
10271 (memory_remove_breakpoint, memory_insert_breakpoint):
10272 Add target_ops parameter.
10273 * target.c (target_insert_breakpoint): Split into this and ...
10274 (forward_target_insert_breakpoint): ... this.
10275 (target_remove_breakpoint): Split into this and ...
10276 (forward_target_remove_breakpoint): ... this.
10277 (debug_to_insert_breakpoint): Add target_ops parameter.
10278 Call forward_target_insert_breakpoint.
10279 (debug_to_remove_breakpoint): Add target_ops parameter.
10280 Call forward_target_remove_breakpoint.
10281 (update_current_target): Do not inherit or default to_insert_breakpoint
10282 and to_remove_breakpoint.
10283 * corelow.c (ignore): Add target_ops parameter.
10284 * exec.c (ignore): Add target_ops parameter.
10285 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10286 Add target_ops parameter.
10287 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10288 Add target_ops parameter.
10289 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10290 Add target_ops parameter.
10291 * record-full.c (record_full_beneath_to_insert_breakpoint)
10292 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10293 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10294 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10295 (record_full_core_remove_breakpoint): Add target_ops parameter.
10296 Update users.
10297 (record_full_beneath_to_insert_breakpoint_ops)
10298 (record_full_beneath_to_remove_breakpoint_ops)
10299 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10300 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10301 tmp_to_remove_breakpoint_ops,
10302 record_full_beneath_to_insert_breakpoint_ops, and
10303 record_full_beneath_to_remove_breakpoint_ops.
10304 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10305 (m32r_remove_breakpoint): Add target_ops parameter.
10306 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10307 Add target_ops parameter.
10308 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10309 Add target_ops parameter.
10310
cecac1ab
MM
103112014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10312 Markus Metzger <markus.t.metzger@intel.com>
10313
10314 * record-btrace.c: Include frame-unwind.h.
10315 (record_btrace_frame_unwind_stop_reason)
10316 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10317 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10318 New.
10319 (init_record_btrace_ops): Install it.
10320
824344ca
MM
103212014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10322
10323 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10324 get_prev_frame_1.
10325
32261e52
MM
103262014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10327
10328 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10329 earlier.
10330
ea001bdc
MM
103312014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10332
10333 * frame-unwind.c: Include target.h.
10334 (frame_unwind_try_unwinder): New function with code from ...
10335 (frame_unwind_find_by_frame): ... here. New variable
10336 unwinder_from_target, call also target_get_unwinder)
10337 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10338 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10339 * target.h (struct target_ops): New fields to_get_unwinder and
10340 to_get_tailcall_unwinder.
10341 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10342
1f3ef581
MM
103432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10344
10345 * record-btrace.c (record_btrace_fetch_registers)
10346 (record_btrace_store_registers)
10347 (record_btrace_to_prepare_to_store): New.
10348 (init_record_btrace_ops): Add the above.
10349
f32dbf8c
MM
103502014-01-16 Tom Tromey <tromey@redhat.com>
10351
10352 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10353 * target.h (struct target_ops) <to_prepare_to_store>: Add
10354 argument.
10355 (target_prepare_to_store): Add argument.
10356 * target.c (debug_to_prepare_to_store): Add argument.
10357 (update_current_target): Update.
10358 * remote.c (remote_prepare_to_store): Add 'self' argument.
10359 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10360 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10361 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10362 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10363 argument.
10364 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10365 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10366 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10367 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10368 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10369
07bbe694
MM
103702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10371
10372 * btrace.h (replay) <replay>: New.
10373 (btrace_is_replaying): New.
10374 * btrace.c (btrace_clear): Free replay iterator.
10375 (btrace_is_replaying): New.
10376 * record-btrace.c (record_btrace_is_replaying): New.
10377 (record_btrace_info): Print insn number if replaying.
10378 (record_btrace_insn_history): Start at replay position.
10379 (record_btrace_call_history): Start at replay position.
10380 (init_record_btrace_ops): Init to_record_is_replaying.
10381
0688d04e
MM
103822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10383
10384 * record-btrace.c (record_btrace_insn_history_range): Include
10385 end.
10386 (record_btrace_insn_history_from): Adjust range.
10387 (record_btrace_call_history_range): Include
10388 end.
10389 (record_btrace_call_history_from): Adjust range.
10390 * NEWS: Announce changes.
10391
8710b709
MM
103922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10393
10394 * record.h (enum record_print_flag)
10395 <record_print_indent_calls>: New.
10396 * record.c (get_call_history_modifiers): Recognize /c modifier.
10397 (_initialize_record): Document /c modifier.
10398 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10399 Reorder fields. Optionally indent the function name. Update
10400 all users.
10401 * NEWS: Announce changes.
10402
d0fa7535
MM
104032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10404
10405 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10406
5de9129b
MM
104072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10408
10409 * btrace.c (ftrace_new_function): Start counting at one.
10410 * record-btrace.c (record_btrace_info): Adjust number of calls
10411 and insns.
10412 * NEWS: Announce it.
10413
7acbe133
MM
104142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10415
10416 * record-btrace.c (btrace_call_history_insn_range): Print
10417 insn range as [begin, end].
10418
23a7fe75
MM
104192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10420
10421 * btrace.h (struct btrace_func_link): New.
10422 (enum btrace_function_flag): New.
10423 (struct btrace_inst): Rename to ...
10424 (struct btrace_insn): ...this. Update all users.
10425 (struct btrace_func) <ibegin, iend>: Remove.
10426 (struct btrace_func_link): New.
10427 (struct btrace_func): Rename to ...
10428 (struct btrace_function): ...this. Update all users.
10429 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10430 (number, level, flags>: New.
10431 (struct btrace_insn_iterator): Rename to ...
10432 (struct btrace_insn_history): ...this.
10433 Update all users.
10434 (struct btrace_insn_iterator, btrace_call_iterator): New.
10435 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10436 (struct btrace_target_info) <begin, end, level>
10437 <insn_history, call_history>: New.
10438 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10439 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10440 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10441 (btrace_call_number, btrace_call_begin, btrace_call_end)
10442 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10443 (btrace_find_function_by_number, btrace_set_insn_history)
10444 (btrace_set_call_history): New.
10445 * btrace.c (btrace_init_insn_iterator)
10446 (btrace_init_func_iterator, compute_itrace): Remove.
10447 (ftrace_print_function_name, ftrace_print_filename)
10448 (ftrace_skip_file): Change
10449 parameter to const.
10450 (ftrace_init_func): Remove.
10451 (ftrace_debug): Use new btrace_function fields.
10452 (ftrace_function_switched): Also consider gaining and
10453 losing symbol information).
10454 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10455 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10456 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10457 New.
10458 (ftrace_new_function): Move. Remove debug print.
10459 (ftrace_update_lines, ftrace_update_insns): New.
10460 (ftrace_update_function): Check for call, ret, and jump.
10461 (compute_ftrace): Renamed to ...
10462 (btrace_compute_ftrace): ...this. Rewritten to compute call
10463 stack.
10464 (btrace_fetch, btrace_clear): Updated.
10465 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10466 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10467 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10468 (btrace_call_number, btrace_call_begin, btrace_call_end)
10469 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10470 (btrace_find_function_by_number, btrace_set_insn_history)
10471 (btrace_set_call_history): New.
10472 * record-btrace.c (require_btrace): Use new btrace thread
10473 info fields.
10474 (record_btrace_info, btrace_insn_history)
10475 (record_btrace_insn_history, record_btrace_insn_history_range):
10476 Use new btrace thread info fields and new iterator.
10477 (btrace_func_history_src_line): Rename to ...
10478 (btrace_call_history_src_line): ...this. Use new btrace
10479 thread info fields.
10480 (btrace_func_history): Rename to ...
10481 (btrace_call_history): ...this. Use new btrace thread info
10482 fields and new iterator.
10483 (record_btrace_call_history, record_btrace_call_history_range):
10484 Use new btrace thread info fields and new iterator.
10485
8372a7cb
MM
104862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10487
10488 * frame.h (frame_id_build_unavailable_stack_special): New.
10489 * frame.c (frame_id_build_unavailable_stack_special): New.
10490
c2170eef
MM
104912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10492
10493 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10494 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10495 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10496 to gdbarch.
10497 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10498 (i386_insn_is_jump, i386_jmp_p): New.
10499 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10500 insn_is_jump to gdbarch.
10501 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10502 * gdbarch.h: Regenerated.
10503 * gdbarch.c: Regenerated.
10504 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10505 (default_insn_is_jump): New.
10506 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10507 (default_insn_is_jump): New.
10508
864089d2
MM
105092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10510
10511 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10512 Change to ...
10513 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10514 (btrace_read_type) <btrace_read_new>: Change to ...
10515 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10516
ed9edfb5
MM
105172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10518
10519 * common/linux-btrace.c (linux_read_btrace): Free trace from
10520 previous iteration.
10521
fbcbc3fd
DE
105222014-01-15 Doug Evans <dje@google.com>
10523
10524 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10525 uint32_t.
10526
3d548a53
TT
105272014-01-15 Tom Tromey <tromey@redhat.com>
10528
10529 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10530 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10531 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10532 (set_objfile_main_name): New function.
10533 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10534 language_of_main>: New fields.
10535 (set_objfile_main_name): Declare.
10536 * symtab.c (find_main_name): Loop over objfiles to find the main
10537 name and language.
10538 (set_main_name): Now static.
10539 (get_main_info): Add comment.
10540 * symtab.h (set_main_name): Don't declare.
10541
32ac0d11
TT
105422014-01-15 Tom Tromey <tromey@redhat.com>
10543
10544 * symtab.c (main_progspace_key): New global.
10545 (struct main_info): New.
10546 (name_of_main, language_of_main): Remove.
10547 (get_main_info, main_info_cleanup): New function.
10548 (set_main_name, main_name, main_language): Use get_main_info.
10549 (_initialize_symtab): Initialize main_progspace_key.
10550
9e6c82ad
TT
105512014-01-15 Tom Tromey <tromey@redhat.com>
10552
10553 * dbxread.c (process_one_symbol): Update.
10554 * dwarf2read.c (read_partial_die): Update.
10555 * symfile.c (set_initial_language): Call main_language.
10556 * symtab.c (language_of_main): Now static.
10557 (set_main_name): Add 'lang' parameter.
10558 (find_main_name): Update.
10559 (main_language): New function.
10560 (symtab_observer_executable_changed): Update.
10561 * symtab.h (set_main_name): Update.
10562 (language_of_main): Remove.
10563 (main_language): Declare.
10564
6ef55de7
TT
105652014-01-15 Tom Tromey <tromey@redhat.com>
10566
10567 * symfile.c (init_entry_point_info): Use new "initialized" field.
10568 Update.
10569 * objfiles.h (struct entry_point) <initialized>: New field.
10570 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10571 (struct objfile) <ei>: ...here. Remove.
10572 * objfiles.c (entry_point_address_query): Update.
10573
53eddfa6
TT
105742014-01-15 Tom Tromey <tromey@redhat.com>
10575
10576 * objfiles.c (entry_point_address_query): Relocate entry point
10577 address.
10578 (objfile_relocate1): Do not relocate entry point address.
10579 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10580 <the_bfd_section_index>: New field.
10581 * symfile.c (init_entry_point_info): Find the entry point's
10582 section.
10583
d56e56aa
TT
105842014-01-15 Tom Tromey <tromey@redhat.com>
10585
10586 * solib-frv.c (enable_break): Use entry_point_address_query.
10587
33a97bbe
OJ
105882014-01-15 Omair Javaid <omair.javaid@linaro.org>
10589
10590 * NEWS: Add note on improved process record-replay on
10591 arm*-linux* targets.
10592
c6ec2b30
OJ
105932014-01-15 Omair Javaid <omair.javaid@linaro.org>
10594
10595 * arm-tdep.c (enum arm_record_result): New enum.
10596 (arm_record_unsupported_insn): New function.
10597 (arm_record_coproc_data_proc): Removed.
10598 (thumb2_record_ld_st_multiple): New function.
10599 (thumb2_record_ld_st_dual_ex_tbb): New function.
10600 (thumb2_record_data_proc_sreg_mimm): New function.
10601 (thumb2_record_ps_dest_generic): New function.
10602 (thumb2_record_branch_misc_cntrl): New function.
10603 (thumb2_record_str_single_data): New function.
10604 (thumb2_record_ld_mem_hints): New function.
10605 (thumb2_record_ld_word): New function.
10606 (thumb2_record_lmul_lmla_div): New function.
10607 (thumb2_record_decode_insn_handler): New function.
10608 (decode_insn): Add thumb32 instruction handlers.
10609
97dfe206
OJ
106102014-01-15 Omair Javaid <omair.javaid@linaro.org>
10611
10612 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10613 (struct arm_linux_record_tdep): Declare.
10614 (arm_canonicalize_syscall): New function.
10615 (arm_all_but_pc_registers_record): New function.
10616 (arm_linux_syscall_record): New function.
10617 (arm_linux_init_abi): Add syscall recording constructs.
10618 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10619 decoding. (arm_record_coproc_data_proc): Update arm syscall
10620 decoding.
10621 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10622 <arm_syscall_record>: New field.
10623 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10624 gdb_target_obs.
10625
9904a494
OJ
106262014-01-15 Omair Javaid <omair.javaid@linaro.org>
10627
10628 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10629 register for push instruction recording.
10630
f969241e
OJ
106312014-01-15 Omair Javaid <omair.javaid@linaro.org>
10632
10633 * arm-tdep.c (thumb_record_misc): Update to correct logical
10634 error while recording ldm, ldmia and pop instructions.
10635
bfbbec00
OJ
106362014-01-15 Omair Javaid <omair.javaid@linaro.org>
10637
10638 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10639
e40adcc9
PA
106402014-01-15 Pedro Alves <palves@redhat.com>
10641
10642 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10643 (go32_resume, go32_fetch_registers, store_register)
10644 (go32_store_registers, go32_prepare_to_store)
10645 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10646 (go32_create_inferior, go32_can_run, go32_terminal_init)
10647 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10648 declarations.
10649
b0a16e66
TT
106502014-01-15 Tom Tromey <tromey@redhat.com>
10651
10652 * target.h (async_callback_ftype): New typedef.
10653 (struct target_ops) <to_async>: Use it.
10654
bf7105a4
JB
106552014-01-15 Joel Brobecker <brobecker@adacore.com>
10656
10657 * python/py-value.c (get_field_type): Remove unnecessary curly
10658 braces for single-statement if block.
10659
a8f35c2e
JB
106602014-01-15 Joel Brobecker <brobecker@adacore.com>
10661
10662 * python/py-type.c (convert_field): Add missing empty line
10663 after declarations.
10664
bb4142cf
DE
106652014-01-14 Doug Evans <dje@google.com>
10666
10667 * symfile.h (expand_symtabs_matching): Renamed from
10668 expand_partial_symbol_names. Update prototype.
10669 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10670 * symfile.c (expand_symtabs_matching): Renamed from
10671 expand_partial_symbol_names. New args file_matcher, kind.
10672 Rename arg fun to symbol_matcher.
10673 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10674 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10675 ada_expand_partial_symbol_name.
10676 (ada_make_symbol_completion_list): Update to call
10677 expand_symtabs_matching.
10678 (ada_add_global_exceptions): Call expand_symtabs_matching.
10679 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10680 call map_symbol_filenames.
10681 * symtab.c (sources_info): Update to call map_symbol_filenames.
10682 (search_symbols): Call expand_symtabs_matching.
10683 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10684 (default_make_symbol_completion_list_break_on): Update to call
10685 expand_symtabs_matching.
10686 (make_source_files_completion_list): Update to call
10687 map_symbol_filenames.
10688
206f2a57
DE
106892014-01-14 Doug Evans <dje@google.com>
10690
10691 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10692 (expand_symtabs_symbol_matcher_ftype): New typedef.
10693 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10694 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10695 * symfile.c (expand_partial_symbol_names): Update to use
10696 expand_symtabs_symbol_matcher_ftype.
10697 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10698 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10699 Arg name_matcher renamed to symbol_matcher.
10700 * psymtab.c (recursively_search_psymtabs): Update to use
10701 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10702 sym_matcher.
10703 (expand_symtabs_matching_via_partial): Update to use
10704 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10705 Arg name_matcher renamed to symbol_matcher.
10706
540c2971
DE
107072014-01-14 Doug Evans <dje@google.com>
10708
10709 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10710 (map_partial_symbol_filenames): Ditto.
10711 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10712 (map_partial_symbol_filenames): Ditto.
10713 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10714 (map_partial_symbol_filenames): Ditto.
10715 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10716 (map_partial_symbol_filenames): Ditto.
10717 * symtab.c: Delete #include "psymtab.h".
10718
8213266a
PA
107192014-01-14 Pedro Alves <palves@redhat.com>
10720 Tom Tromey <tromey@redhat.com>
10721
10722 * infrun.c (use_displaced_stepping): Use find_record_target
10723 instead of RECORD_IS_USED.
10724 (adjust_pc_after_break): Use record_full_is_used instead of
10725 RECORD_IS_USED.
10726 * record-btrace.c (record_btrace_open): Call record_preopen
10727 instead of checking RECORD_IS_USED.
10728 * record-full.c (record_full_shortname)
10729 (record_full_core_shortname): New globals.
10730 (record_full_is_used): New function.
10731 (find_full_open): Call record_preopen instead of checking
10732 RECORD_IS_USED.
10733 (init_record_full_ops): Set the target's shortname to
10734 record_full_shortname.
10735 (init_record_full_core_ops): Set the target's shortname to
10736 record_full_core_shortname.
10737 * record-full.h (record_full_is_used): Declare.
10738 * record.c (find_record_target): Make extern.
10739 (record_preopen): New function.
10740 * record.h (RECORD_IS_USED): Delete macro.
10741 (find_record_target, record_preopen): Declare functions.
10742
7ec1862d
YQ
107432014-01-14 Yao Qi <yao@codesourcery.com>
10744
10745 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10746 'len''s type to ULONGEST.
10747 (core_xfer_shared_libraries_aix): Likewise.
10748 * gdbarch.c, gdbarch.h: Regenerated.
10749 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10750 Change type of 'len' to ULONGEST.
10751 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10752 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10753
dea80a27
YQ
107542014-01-14 Yao Qi <yao@codesourcery.com>
10755
10756 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10757 type of 'len' to ULONGEST.
10758 (linux_xfer_osdata_processgroups): Likewise.
10759 (linux_xfer_osdata_threads): Likewise.
10760 (linux_xfer_osdata_fds): Likewise.
10761 (linux_xfer_osdata_isockets): Likewise.
10762 (linux_xfer_osdata_shm): Likewise.
10763 (linux_xfer_osdata_sem): Likewise.
10764 (linux_xfer_osdata_msg): Likewise.
10765 (linux_common_xfer_osdata): Likewise.
10766 (struct osdata_type) <getter>: Likewise.
10767 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10768 the declaration.
10769
b55e14c7
YQ
107702014-01-14 Yao Qi <yao@codesourcery.com>
10771
10772 * target.h (target_xfer_partial_ftype): Update.
10773 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10774 ULONGEST.
10775 * aix-thread.c (aix_thread_xfer_partial): Change type of
10776 argument 'len' to ULONGEST.
10777 * auxv.c (procfs_xfer_auxv): Likewise.
10778 (ld_so_xfer_auxv): Likewise.
10779 (memory_xfer_auxv): Likewise.
10780 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10781 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10782 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10783 * corelow.c (core_xfer_partial): Likewise.
10784 * ctf.c (ctf_xfer_partial): Likewise.
10785 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10786 '%u'.
10787 (darwin_read_dyld_info): Likewise.
10788 (darwin_xfer_partial): Likewise.
10789 * exec.c (section_table_xfer_memory_partial): Likewise.
10790 (exec_xfer_partial): Likewise.
10791 * exec.h (section_table_xfer_memory_partial): Update
10792 declaration.
10793 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10794 instead of plongest.
10795 (gnu_xfer_partial): Likewise.
10796 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10797 (ia64_hpux_xfer_solib_got): Likewise.
10798 (ia64_hpux_xfer_partial): Likewise.
10799 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10800 * inf-ptrace.c (inf_ptrace_xfer_partial):
10801 * inf-ttrace.c (inf_ttrace_xfer_partial):
10802 * linux-nat.c (linux_xfer_siginfo): Likewise.
10803 (linux_nat_xfer_partial): Likewise.
10804 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10805 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10806 * monitor.c (monitor_xfer_memory): Likewise.
10807 (monitor_xfer_partial): Likewise.
10808 * procfs.c (procfs_xfer_partial): Likewise.
10809 * record-full.c (record_full_xfer_partial): Likewise.
10810 (record_full_core_xfer_partial): Likewise.
10811 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10812 instead of plongest.
10813 (gdbsim_xfer_partial): Likewise.
10814 * remote.c (remote_xfer_partial): Likewise.
10815 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10816 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10817 declaration.
10818 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10819 (rs6000_xfer_shared_libraries): Likewise.
10820 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10821 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10822 (sparc_xfer_partial): Likewise.
10823 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10824 (spu_xfer_partial): Likewise.
10825 * spu-multiarch.c (spu_xfer_partial): Likewise.
10826 * target.c (target_read_live_memory): Likewise.
10827 (memory_xfer_live_readonly_partial): Likewise.
10828 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10829 (target_xfer_partial, default_xfer_partial): Likewise.
10830 (current_xfer_partial): Likewise.
10831 * tracepoint.c (tfile_xfer_partial): Likewise.
10832 * windows-nat.c (windows_xfer_memory): Likewise. Call
10833 pulongest instead of plongest.
10834 (windows_xfer_partial): Likewise.
10835 (windows_xfer_shared_libraries): Likewise.
10836
05804640
YQ
108372014-01-14 Yao Qi <yao@codesourcery.com>
10838
10839 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10840 target_xfer_partial_ftype.
10841
b5b08fb4
SC
108422014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10843
10844 PR python/15464
10845 PR python/16113
10846 * valops.c (value_struct_elt_bitpos): New function
10847 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10848 object to 'None' if the field name is an empty string ("").
10849 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10850 attribute to look for a field when 'name' is 'None'.
10851 (get_field_type): New function
10852
13aaf454
DE
108532014-01-13 Doug Evans <dje@google.com>
10854
10855 PR symtab/16426
10856 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10857 (try_open_dwop_file): Ditto.
10858 * gdb_bfd.c: #include "vec.h".
10859 (bfdp): New typedef.
10860 (struct gdb_bfd_data): New member included_bfds.
10861 (gdb_bfd_unref): Unref all included bfds.
10862 (gdb_bfd_record_inclusion): New function.
10863 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10864
c2cec97c
TT
108652014-01-13 Tom Tromey <tromey@redhat.com>
10866
10867 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10868
78e5999d
TT
108692014-01-13 Tom Tromey <tromey@redhat.com>
10870
10871 * defs.h (use_windows): Remove.
10872 * gdb.c (main): Update.
10873 * main.c (captured_main, gdb_main): Update.
10874 * main.h (struct captured_main_args) <use_windows>: Remove.
10875 * top.c (use_windows): Remove.
10876
f2052bbe
TT
108772014-01-13 Tom Tromey <tromey@redhat.com>
10878
10879 * defs.h (deprecated_flush_hook): Remove.
10880
fde4f8ed
JK
108812014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10882
10883 PR threads/16216
10884 * linux-thread-db.c (try_thread_db_load): Add parameter
10885 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10886 (try_thread_db_load_from_pdir_1): Move it there from here.
10887 (try_thread_db_load_from_sdir): Update caller.
10888 (try_thread_db_load_from_dir): Move it there from here.
10889
bdf61915
PP
108902014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10891
10892 * regformats/regdat.sh: Always rewrite the register file.
10893
f71e1a8d
PA
108942014-01-13 Pedro Alves <palves@redhat.com>
10895
10896 * Makefile.in (CHECK_HEADERS): New variable.
10897 (check-headers:): New rule.
10898
42c85435
TT
108992014-01-13 Tom Tromey <tromey@redhat.com>
10900
10901 * cli/cli-setshow.c (do_set_command): Update.
10902 * defs.h (deprecated_set_hook): Remove.
10903 * top.c (deprecated_set_hook): Remove.
10904
f8de5129
PA
109052014-01-13 Pedro Alves <palves@redhat.com>
10906
10907 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10908 the tracepoint if the PC is a pseudo-register.
10909
fc270c35
TT
109102014-01-13 Tom Tromey <tromey@redhat.com>
10911
10912 * defs.h (XCALLOC): Remove.
10913 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10914 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10915 * dwarf2loc.c (allocate_piece_closure): Likewise.
10916 * elfread.c (elf_symfile_segments): Likewise.
10917 (elf_symfile_segments): Likewise.
10918 * gdbtypes.c (copy_type_recursive): Likewise.
10919 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10920 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10921 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10922 XCALLOC.
10923 * mt-tdep.c (mt_gdbarch_init): Likewise.
10924 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10925 XCALLOC.
10926 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10927 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10928 * registry.c (registry_alloc_data): Likewise.
10929 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10930 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10931 * serial.c (serial_fdopen_ops): Likewise.
10932 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10933 XCALLOC.
10934 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10935 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10936 not XCALLOC.
10937
70ba0933
TT
109382014-01-13 Tom Tromey <tromey@redhat.com>
10939
10940 * defs.h (XMALLOC): Remove.
10941 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10942 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10943 * cli-out.c (struct ui_out *): Likewise.
10944 * cli/cli-dump.c (add_dump_command): Likewise.
10945 (add_dump_command): Likewise.
10946 * complaints.c (get_complaints): Likewise.
10947 (find_complaint): Likewise.
10948 * dwarf2-frame.c (execute_cfa_program): Likewise.
10949 * dwarf2read.c (abbrev_table_read_table): Likewise.
10950 * gdbarch.sh: Likewise.
10951 * gdbarch.c: Rebuild.
10952 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10953 * interps.c (interp_new): Likewise.
10954 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10955 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10956 * mi/mi-console.c (mi_console_file_new): Likewise.
10957 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10958 * mi/mi-out.c (mi_out_new): Likewise.
10959 * mi/mi-parse.c (mi_parse): Likewise.
10960 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10961 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10962 * observer.c (xalloc_observer_list_node): Likewise.
10963 * regcache.c (regcache_xmalloc_1): Likewise.
10964 * reggroups.c (reggroup_new): Likewise.
10965 (_initialize_reggroup): Likewise.
10966 * registry.c (register_data_with_cleanup): Likewise.
10967 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10968 * ser-base.c (serial_ttystate): Likewise.
10969 * ser-mingw.c (make_pipe_state): Likewise.
10970 * ser-pipe.c (pipe_open): Likewise.
10971 * serial.c (serial_open): Likewise.
10972 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10973 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10974 (tui_alloc_win_info): Likewise.
10975 (tui_add_content_elements): Likewise.
10976 * tui/tui-file.c (tui_file_new): Likewise.
10977 * tui/tui-out.c (tui_out_new): Likewise.
10978 * ui-file.c (mem_file_new): Likewise.
10979 * ui-out.c (push_level): Likewise.
10980 (make_cleanup_ui_out_end): Likewise.
10981 (append_header_to_list): Likewise.
10982 (ui_out_new): Likewise.
10983 * user-regs.c (user_reg_add_builtin): Likewise.
10984
41bf6aca
TT
109852014-01-13 Tom Tromey <tromey@redhat.com>
10986
10987 * defs.h (XZALLOC): Remove.
10988 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10989 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10990 (get_ada_tasks_inferior_data): Likewise.
10991 * auto-load.c (get_auto_load_pspace_data): Likewise.
10992 * auxv.c (get_auxv_inferior_data): Likewise.
10993 * bfd-target.c (target_bfd_reopen): Likewise.
10994 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10995 (deprecated_insert_raw_breakpoint): Likewise.
10996 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10997 * corelow.c (core_open): Likewise.
10998 * darwin-nat.c (darwin_check_new_threads): Likewise.
10999 (darwin_attach_pid): Likewise.
11000 * dummy-frame.c (dummy_frame_push): Likewise.
11001 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11002 * dwarf2loc.c (allocate_piece_closure): Likewise.
11003 * elfread.c (elf_symfile_segments): Likewise.
11004 * eval.c (ptrmath_type_p): Likewise.
11005 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11006 * gdbtypes.c (alloc_type_arch): Likewise.
11007 (alloc_type_instance): Likewise.
11008 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11009 * inf-child.c (inf_child_can_use_agent): Likewise.
11010 * inflow.c (get_inflow_inferior_data): Likewise.
11011 * infrun.c (save_infcall_suspend_state): Likewise.
11012 * jit.c (jit_reader_load): Likewise.
11013 (get_jit_objfile_data): Likewise.
11014 (get_jit_program_space_data): Likewise.
11015 (jit_object_open_impl): Likewise.
11016 (jit_symtab_open_impl): Likewise.
11017 (jit_block_open_impl): Likewise.
11018 (jit_frame_sniffer): Likewise.
11019 * linux-fork.c (add_fork): Likewise.
11020 * maint.c (make_command_stats_cleanup): Likewise.
11021 * objfiles.c (get_objfile_pspace_data): Likewise.
11022 * opencl-lang.c (struct lval_closure): Likewise.
11023 * osdata.c (osdata_start_osdata): Likewise.
11024 * progspace.c (new_address_space): Likewise.
11025 (add_program_space): Likewise.
11026 * remote-sim.c (get_sim_inferior_data): Likewise.
11027 * sh-tdep.c (sh_gdbarch_init): Likewise.
11028 * skip.c (Ignore): Likewise.
11029 (skip_delete_command): Likewise.
11030 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11031 (library_list_start_library): Likewise.
11032 (solib_aix_current_sos): Likewise.
11033 * solib-darwin.c (get_darwin_info): Likewise.
11034 (darwin_current_sos): Likewise.
11035 * solib-dsbt.c (get_dsbt_info): Likewise.
11036 * solib-ia64-hpux.c (new_so_list): Likewise.
11037 (ia64_hpux_get_solib_linkage_addr): Likewise.
11038 * solib-spu.c (append_ocl_sos): Likewise.
11039 (spu_current_sos): Likewise.
11040 * solib-svr4.c (get_svr4_info): Likewise.
11041 (svr4_keep_data_in_core): Likewise.
11042 (library_list_start_library): Likewise.
11043 (svr4_default_sos): Likewise.
11044 (svr4_read_so_list): Likewise.
11045 * solib-target.c (library_list_start_library): Likewise.
11046 (solib_target_current_sos): Likewise.
11047 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11048 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11049 * symfile.c (default_symfile_segments): Likewise.
11050 * target-descriptions.c (tdesc_data_init): Likewise.
11051 (tdesc_create_reg): Likewise.
11052 (struct tdesc_type *): Likewise.
11053 (tdesc_create_vector): Likewise.
11054 (tdesc_set_struct_size): Likewise.
11055 (struct tdesc_type *): Likewise.
11056 (tdesc_free_feature): Likewise.
11057 (tdesc_create_feature): Likewise.
11058 * windows-nat.c (windows_add_thread): Likewise.
11059 (windows_make_so): Likewise.
11060 * xml-support.c (gdb_xml_body_text): Likewise.
11061 (gdb_xml_create_parser_and_cleanup): Likewise.
11062 (xml_process_xincludes): Likewise.
11063 * xml-syscall.c (allocate_syscalls_info): Likewise.
11064 (syscall_create_syscall_desc): Likewise.
11065
5acfdbae
SDJ
110662014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11067
11068 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11069 function, with code from i386_stap_parse_special_token.
11070 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11071 (i386_stap_parse_special_token): Move code to the two functions
11072 above; simplify it.
11073
0000e5cc
PA
110742014-01-09 Pedro Alves <palves@redhat.com>
11075 Hui Zhu <hui@codesourcery.com>
11076
11077 PR gdb/16101
11078 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11079 bp_err_string. Don't mark the location shlib_disabled if the
11080 error thrown wasn't a generic or memory error. Catch errors
11081 thrown while inserting breakpoints in overlayed code. Output
11082 error message of software breakpoints.
11083 * remote.c (remote_insert_breakpoint): If this breakpoint has
11084 target-side commands but this stub doesn't support Z0 packets,
11085 throw NOT_SUPPORTED_ERROR error.
11086 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11087 * target.h (target_insert_breakpoint): Extend comment.
11088 (target_insert_hw_breakpoint): Add comment.
11089
b7ea362b
PA
110902014-01-08 Pedro Alves <palves@redhat.com>
11091
11092 * remote.c (remote_add_thread): Add threads silently if starting
11093 up.
11094 (remote_notice_new_inferior): If in all-stop, and starting up,
11095 don't call notice_new_inferior.
11096 (get_current_thread): New function, factored out from ...
11097 (add_current_inferior_and_thread): ... this. Adjust.
11098 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11099 found any thread, then select the remote's current thread as GDB's
11100 current thread too.
11101
b7bba001
JB
111022014-01-08 Joel Brobecker <brobecker@adacore.com>
11103
11104 * NEWS: Create a new section for the next release branch.
11105 Rename the section of the current branch, now that it has
11106 been cut.
11107
16dfbded
JB
111082014-01-08 Joel Brobecker <brobecker@adacore.com>
11109
11110 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11111 * version.in: Bump version to 7.7.50.DATE-cvs.
11112
22c90ac1
YQ
111132014-01-08 Yao Qi <yao@codesourcery.com>
11114
11115 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11116 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11117 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11118
d64ad97c
YQ
111192014-01-08 Yao Qi <yao@codesourcery.com>
11120
11121 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11122 return value of bfd_get_filename to symbol_file_add_from_bfd.
11123
f93ba80c
PM
111242014-01-08 Pierre Muller <muller@sourceware.org>
11125
11126 Fix PR16201.
11127 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11128 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11129 to prim_record_mininal_symbol_and_info.
11130 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11131 in call to prim_record_minimal_symbol_and_info.
11132 (read_pe_exported_syms): Set index field of section_data.
11133
a4d9ba85
AP
111342014-01-07 Andrew Pinski <apinski@cavium.com>
11135
11136 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11137 * features/aarch64.c: Regenerate.
11138
1b67eb02
AS
111392014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11140
11141 * target.c (return_null): Define.
11142 (update_current_target): Use it instead of return_zero for
11143 functions that return a pointer.
11144
5e3f4fab
EBM
111452014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11146
11147 * source.c (add_path): Fix check for duplicated paths in the previously
11148 included paths.
11149
e2616788
HK
111502014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11151
11152 * ada-lang.c: Remove duplicated include statements.
11153 * alphabsd-nat.c: Ditto.
11154 * amd64-darwin-tdep.c: Ditto.
11155 * amd64fbsd-nat.c: Ditto.
11156 * auto-load.c: Ditto.
11157 * ax-gdb.c: Ditto.
11158 * breakpoint.c: Ditto.
11159 * dbxread.c: Ditto.
11160 * fork-child.c: Ditto.
11161 * gdb_usleep.c: Ditto.
11162 * i386-darwin-tdep.c: Ditto.
11163 * i386fbsd-nat.c: Ditto.
11164 * infcmd.c: Ditto.
11165 * inferior.c: Ditto.
11166 * jv-lang.c: Ditto.
11167 * linux-nat.c: Ditto.
11168 * linux-tdep.c: Ditto.
11169 * m68kbsd-nat.c: Ditto.
11170 * m68klinux-nat.c: Ditto.
11171 * microblaze-tdep.c: Ditto.
11172 * mips-linux-tdep.c: Ditto.
11173 * mn10300-tdep.c: Ditto.
11174 * nto-tdep.c: Ditto.
11175 * opencl-lang.c: Ditto.
11176 * osdata.c: Ditto.
11177 * printcmd.c: Ditto.
11178 * regcache.c: Ditto.
11179 * remote-m32r-sdi.c: Ditto.
11180 * remote.c: Ditto.
11181 * symfile.c: Ditto.
11182 * symtab.c: Ditto.
11183 * tilegx-linux-nat.c: Ditto.
11184 * tilegx-tdep.c: Ditto.
11185 * tracepoint.c: Ditto.
11186 * valops.c: Ditto.
11187 * vaxbsd-nat.c: Ditto.
11188 * windows-nat.c: Ditto.
11189 * xtensa-tdep.c: Ditto.
11190
bd1f7788
YQ
111912014-01-07 Yao Qi <yao@codesourcery.com>
11192
11193 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11194
79301218
JB
111952014-01-07 Yao Qi <yao@codesourcery.com>
11196 Joel Brobecker <brobecker@adacore.com>
11197
11198 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11199 (pdc_write_regs): Likewise.
11200 (fetch_regs_kernel_thread): Likewise.
11201 (store_regs_kernel_thread): Likewise.
11202
112032014-01-07 Joel Brobecker <brobecker@adacore.com>
11204
11205 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11206 tagged type objects to their actual type.
11207
8e355c5d
JB
112082014-01-07 Joel Brobecker <brobecker@adacore.com>
11209
11210 * ada-valprint.c (print_field_values): Add "language" parameter.
11211 Update calls to print_field_values and print_variant_part.
11212 Pass new parameter "language" in call to val_print instead
11213 of "current_language". Replace call to ada_val_print by call
11214 to val_print.
11215 (print_variant_part): Add "language" parameter.
11216 (ada_val_print_struct_union): Update call to print_field_values.
11217
4fbf5aa5
JB
112182014-01-07 Joel Brobecker <brobecker@adacore.com>
11219
11220 * ada-valprint.c (ui_memcpy): Delete.
11221 (ada_print_floating): Update documentation. Add empty line
11222 between between function documentation and implementation.
11223 Delete variable "buffer". Use ui_file_xstrdup in place of
11224 ui_file_put. Minor adjustments following this change.
11225
71855601
JB
112262014-01-07 Joel Brobecker <brobecker@adacore.com>
11227
11228 * ada-valprint.c (ada_val_print_string): New function,
11229 extracted from ada_val_print_array.
11230 (ada_val_print_array): Replace extracted code by call
11231 to ada_val_print_string followed by a return. Move
11232 "else" branch to the function's top block.
11233
4eb27a30
JB
112342014-01-07 Joel Brobecker <brobecker@adacore.com>
11235
11236 * ada-valprint.c (ada_val_print_array): Move implementation
11237 down. Rename parameter "offset" and "val" into "offset_aligned"
11238 and "original_value" respectively. Add parameter "offset".
11239
34b27950
JB
112402014-01-07 Joel Brobecker <brobecker@adacore.com>
11241
11242 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11243 re-organizing the code. Change the "???" message printed
11244 when target type is a TYPE_CODE_UNDEF into
11245 "<ref to undefined type>".
11246
079e4591
JB
112472014-01-07 Joel Brobecker <brobecker@adacore.com>
11248
11249 * ada-valprint.c (print_record): Delete, implementation inlined...
11250 (ada_val_print_struct_union): ... here. Remove call to
11251 ada_check_typedef in inlined implementation.
11252
8004dfd1
JB
112532014-01-07 Joel Brobecker <brobecker@adacore.com>
11254
11255 * ada-valprint.c (ada_val_print_gnat_array): New function,
11256 extracted from ada_val_print_1;
11257 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11258 (ada_val_print_flt, ada_val_print_struct_union)
11259 (ada_val_print_ref): Likewise.
11260 (ada_val_print_1): Delete variables i and elttype.
11261 Replace extracted-out code by call to corresponding
11262 new functions.
11263
760a2db0
JB
112642014-01-07 Joel Brobecker <brobecker@adacore.com>
11265
11266 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11267
3a92c861
JB
112682014-01-07 Joel Brobecker <brobecker@adacore.com>
11269
11270 * ada-valprint.c (ada_val_print_1): Replace calls to
11271 ada_val_print_1 by calls to val_print.
11272
cd1630f9
JB
112732014-01-07 Joel Brobecker <brobecker@adacore.com>
11274
11275 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11276 Update calls to self accordingly. Replace calls to c_val_print
11277 by calls to val_print.
11278
bdf779a0
JB
112792014-01-07 Joel Brobecker <brobecker@adacore.com>
11280
11281 * ada-valprint.c (print_record): Delete declaration.
11282 (adjust_type_signedness, ada_val_print_1): Likewise.
11283 (ada_val_print): Move function implementation down.
11284 (print_variant_part, print_field_values, print_record):
11285 Move function implementation up.
11286
c0d48811
JB
112872014-01-07 Joel Brobecker <brobecker@adacore.com>
11288
11289 * python/py-type.c (typy_get_name): New function.
11290 (type_object_getset): Add entry for attribute "name".
11291 * NEWS: Add entry mentioning this new attribute.
11292
c26e9cbb
YQ
112932014-01-07 Yao Qi <yao@codesourcery.com>
11294
11295 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11296 statement.
11297
0cc6f43d
YQ
112982014-01-07 Yao Qi <yao@codesourcery.com>
11299
11300 * gnu-nat.c (info_port_rights): Add qualifier const to
11301 argument args.
11302
eec03155
YQ
113032014-01-07 Yao Qi <yao@codesourcery.com>
11304
11305 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11306
f04a82ef
YQ
113072014-01-07 Yao Qi <yao@codesourcery.com>
11308
11309 * gnu-nat.c (make_inf) Update declaration.
11310 (make_inf): Make it static.
11311 (inf_set_traced): Likewise.
11312 (inf_port_to_thread, inf_task_died_status): Likewise.
11313
d57dda0a
YQ
113142014-01-07 Yao Qi <yao@codesourcery.com>
11315
11316 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11317
3aa8c969
YQ
113182014-01-07 Yao Qi <yao@codesourcery.com>
11319
11320 * gnu-nat.c (_initialize_gnu_nat): Declare.
11321
94123b4f
YQ
113222014-01-07 Yao Qi <yao@codesourcery.com>
11323
11324 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11325 'enum bfd_endian'.
11326 (struct gdbarch_info) <byte_order>: Change type to
11327 'enum bfd_endian'.
11328 <byte_order_for_code>: Likewise.
11329 * gdbarch.c, gdbarch.h: Regenerated.
11330
dc81d70a
TT
113312014-01-06 Sasha Smundak <asmundak@google.com>
11332
11333 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11334
cc2f3c35
TT
113352014-01-06 Tom Tromey <tromey@redhat.com>
11336
11337 * doublest.c (convert_doublest_to_floatformat): Use const, not
11338 CONST.
11339 * somread.c (som_symtab_read): Likewise.
11340
adcf2eed
HZ
113412014-01-07 Hui Zhu <hui@codesourcery.com>
11342
11343 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11344 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11345 (gdb_bfd_fopen): Ditto.
11346 (gdb_bfd_openr): Ditto.
11347 (gdb_bfd_openw): Ditto.
11348 (gdb_bfd_openr_iovec): Ditto.
11349 (gdb_bfd_fdopenr): Ditto.
11350 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11351 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11352 with xstrdup.
11353 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11354 with xstrdup.
11355 * symfile-mem.c (symbol_file_add_from_memory): Removed
11356 gdb_bfd_stash_filename.
11357
50722198
DE
113582014-01-03 Doug Evans <dje@google.com>
11359
11360 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11361 output.
11362
2fa4b862
JB
113632014-01-01 Joel Brobecker <brobecker@adacore.com>
11364
11365 Update year range in copyright notice of all files.
11366
28498c42
JB
113672014-01-01 Joel Brobecker <brobecker@adacore.com>
11368
11369 * top.c (print_gdb_version): Set copyright year to 2014.
11370
7b6e1046
JB
113712014-01-01 Joel Brobecker <brobecker@adacore.com>
11372
11373 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11374
df96af55 11375For older changes see ChangeLog-2013.
c906108c
SS
11376\f
11377Local Variables:
11378mode: change-log
11379left-margin: 8
11380fill-column: 74
11381version-control: never
57da7796 11382coding: utf-8
c906108c 11383End:
This page took 2.094174 seconds and 4 git commands to generate.