]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Put single-step breakpoints on the bp_location chain
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7c16b83e
PA
12014-10-15 Pedro Alves <palves@redhat.com>
2
3 PR breakpoints/9649
4 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
5 Delete array globals.
6 (single_step_breakpoints): New global.
7 (breakpoint_xfer_memory): Remove special handling for single-step
8 breakpoints.
9 (update_breakpoints_after_exec): Delete bp_single_step
10 breakpoints.
11 (detach_breakpoints): Remove special handling for single-step
12 breakpoints.
13 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
14 (bpstat_stop_status): Add comment.
15 (bpstat_what, bptype_string, print_one_breakpoint_location)
16 (adjust_breakpoint_address, init_bp_location): Handle
17 bp_single_step.
18 (new_single_step_breakpoint): New function.
19 (set_momentary_breakpoint, bkpt_remove_location): Remove special
20 handling for single-step breakpoints.
21 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
22 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
23 Rewrite.
24 (detach_single_step_breakpoints, find_single_step_breakpoint):
25 Delete functions.
26 (breakpoint_has_location_inserted_here): New function.
27 (single_step_breakpoint_inserted_here_p): Rewrite.
28 * breakpoint.h: Remove FIXME.
29 (enum bptype) <bp_single_step>: New enum value.
30 (insert_single_step_breakpoint): Update comment.
31 * infrun.c (resume_cleanups)
32 (delete_step_thread_step_resume_breakpoint): Remove single-step
33 breakpoints.
34 (fetch_inferior_event): Install a cleanup that removes infrun
35 breakpoints.
36 (switch_back_to_stepped_thread) <expect thread advanced also>:
37 Clear step-over info.
38
0cbcdb96
PA
392014-10-15 Pedro Alves <palves@redhat.com>
40
41 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
42 (delete_thread_infrun_breakpoints): New function, with parts
43 salvaged from delete_step_resume_breakpoint_callback.
44 (delete_step_thread_step_resume_breakpoint): Delete.
45 (for_each_just_stopped_thread_callback_func): New typedef.
46 (for_each_just_stopped_thread): New function.
47 (delete_just_stopped_threads_infrun_breakpoints): New function.
48 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
49 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
50 ... this. Adjust.
51 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
52
963f9c80
PA
532014-10-15 Pedro Alves <palves@redhat.com>
54
55 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
56 trying to step past a non-steppable watchpoint.
57 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
58 field.
59 * infrun.c (struct step_over_info): Add new field
60 'nonsteppable_watchpoint_p' and adjust comments.
61 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
62 Adjust.
63 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
64 (stepping_past_nonsteppable_watchpoint): New function.
65 (step_over_info_valid_p): Also return true if stepping past a
66 nonsteppable watchpoint.
67 (proceed): Adjust call to set_step_over_info. Remove reference to
68 init_infwait_state.
69 (init_wait_for_inferior): Remove reference to init_infwait_state.
70 (waiton_ptid): Delete global.
71 (struct execution_control_state)
72 <stepped_after_stopped_by_watchpoint>: Delete field.
73 (wait_for_inferior, fetch_inferior_event): Always pass
74 minus_one_ptid to target_wait.
75 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
76 field.
77 (init_infwait_state): Delete function.
78 (handle_inferior_event): Remove infwait_state handling.
79 (handle_signal_stop) <watchpoints handling>: Adjust after
80 stepped_after_stopped_by_watchpoint removal. Don't remove
81 breakpoints here nor set infwait_state. Set the thread's
82 stepping_over_watchpoint flag, and call keep_going instead.
83 (keep_going): Handle stepping_over_watchpoint. Adjust
84 set_step_over_info calls.
85 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
86 function.
87
6cc83d2a
PA
882014-10-15 Pedro Alves <palves@redhat.com>
89
90 * infrun.c (step_over_info_valid_p): New function.
91 (resume): Use step_over_info_valid_p instead of checking the
92 threads's trap_expected flag.
93
6979730b
DE
942014-10-15 Doug Evans <dje@google.com>
95 Walfred Tedeschi <walfred.tedeschi@intel.com>
96
97 PR python/17364
98 * python/lib/gdb/__init__.py (packages): Add "printer".
99 * python/lib/gdb/command/bound_registers.py: Moved to ...
100 * python/lib/gdb/printer/bound_registers.py: ... here.
101 Add printer to global set of builtin printers. Rename printer from
102 "bound" to "mpx_bound128".
103 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
104 registered as global "builtin" printer.
105 (add_builtin_pretty_printer): New function.
106 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
107 gdb/printer/__init__.py.
108
35a49624
IB
1092014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
110
111 * Makefile.in (SFILES): Remove d-support.c.
112 (COMMON_OBS): Remove d-support.o.
113 * d-lang.h (d_parse_symbol): Remove declaration.
114 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
115 * d-support.c: Remove file.
116
8fa0c4f8
AA
1172014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
118
119 * gdb/infrun.c (process_event_stop_test): Apply
120 gdbarch_addr_bits_remove to longjmp resume address.
121
3666da81
PA
1222014-10-15 Pedro Alves <palves@redhat.com>
123
124 * regformats/microblaze.dat: Delete file.
125
449aa9df
AKA
1262014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
127
128 * features/Makefile (microblaze-expedite): Replace pc with rpc.
129 * regformats/microblaze-with-stack-protect.dat: Regenerate.
130
ebb8ece2
SC
1312014-10-15 Siva Chandra Reddy <sivachandra@google.com>
132
133 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
134 as non-trivial.
135
82c48ac7
SC
1362014-10-15 Siva Chandra Reddy <sivachandra@google.com>
137
138 PR c++/13403
139 PR c++/15154
140 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
141 with qualified args.
142
c40cc657
JB
1432014-10-14 Joel Brobecker <brobecker@adacore.com>
144
145 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
146 of the case where the second operand is a pointer.
147 <BINOP_SUB>: Likewise.
148
0ea5cda8
SDJ
1492014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
150
151 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
152 only if it is not NULL.
153 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
154 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
155 (struct probe_ops) <clear_semaphore>: Likewise.
156 * tracepoint.c (start_tracing): Call set_semaphore only if it is
157 not NULL.
158 (stop_tracing): Likewise, for clear_semaphore.
159
f7088df3
SDJ
1602014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
161
162 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
163 using language_c, instead of current_language.
164
4e1bbde0
DE
1652014-10-13 Doug Evans <dje@google.com>
166
6ff5a0f6 167 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 168 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 169 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
170 (pspy_new, pspace_to_pspace_object): Call it.
171
c780cc2f
JK
1722014-10-13 Miroslav Franc <mfranc@redhat.com>
173 Jan Kratochvil <jan.kratochvil@redhat.com>
174
175 Fix "save breakpoints" for "catch" command.
176 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
177 newline.
178
99894e11
JK
1792014-10-12 Miroslav Franc <mfranc@redhat.com>
180
181 Fix "save breakpoints" for "disable $bpnum" command.
182 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
183
3831839c
PA
1842014-10-10 Pedro Alves <palves@redhat.com>
185
186 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
187 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
188 (HFILES_NO_SRCDIR): Remove solib-irix.h.
189 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
190 and been removed.
191 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
192 * configure.ac: Remove references to IRIX.
193 * configure.host: Add *-*-irix* to the obsolete hosts section.
194 Remove all other references to irix.
195 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
196 Delete files.
197
cc3afae2
AKA
1982014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
199
200 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
201 isn't valid, release the tdesc arch data and return NULL.
202
cdfa0b0a
PA
2032014-10-10 Pedro Alves <palves@redhat.com>
204
205 * linux-tdep.c: Include observer.h.
206 (linux_inferior_data): New global.
207 (struct linux_info): New structure.
208 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
209 (get_linux_inferior_data): New functions.
210 (linux_vsyscall_range): Rename to ...
211 (linux_vsyscall_range_raw): ... this.
212 (linux_vsyscall_range): New function; handles caching.
213 (_initialize_linux_tdep): Register linux_inferior_data. Install
214 inferior_exit and inferior_appeared observers.
215
8b9a549d
PA
2162014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
217 Pedro Alves <palves@redhat.com>
218
219 PR symtab/14466
220 * solib-svr4.c (svr4_read_so_list): Rename to ...
221 (svr4_current_sos_1): ... this and change the function comment.
222 (svr4_current_sos): New function.
223
3437254d
PA
2242014-10-10 Pedro Alves <palves@redhat.com>
225
226 * arch-utils.c (default_vsyscall_range): New function.
227 * arch-utils.h (default_vsyscall_range): New declaration.
228 * gdbarch.sh (vsyscall_range): New hook.
229 * gdbarch.h, gdbarch.c: Regenerate.
230 * linux-tdep.c (linux_vsyscall_range): New function.
231 (linux_init_abi): Install linux_vsyscall_range as
232 vsyscall_range gdbarch hook.
233 * memrange.c (address_in_mem_range): New function.
234 * memrange.h (address_in_mem_range): New declaration.
235 * symfile-mem.c (find_vdso_size): Delete function.
236 (add_vsyscall_page): Use gdbarch_vsyscall_range.
237
31cc0b80
PA
2382014-10-10 Pedro Alves <palves@redhat.com>
239
240 * infrun.c (normal_stop): Fix typo in comment.
241
3e3286a2
SDJ
2422014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
243
244 PR tdep/9390
245 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
246 typo when using logical AND to determine instruction type.
247
fcbdedf8
YQ
2482014-10-09 Yao Qi <yao@codesourcery.com>
249
250 * infrun.c (handle_signal_stop): Remove local variable
251 'printed'.
252
db984616
SS
2532014-10-08 Stan Shebs <stan@codesourcery.com>
254
255 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
256
3ba37e6c
GB
2572014-10-08 Gary Benson <gbenson@redhat.com>
258
259 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
260
a442d071
GB
2612014-10-08 Gary Benson <gbenson@redhat.com>
262
263 * common/common-defs.h: Include common-exceptions.h.
264 * exceptions.h: Do not include common-exceptions.h.
265
6f1947e8
GB
2662014-10-08 Gary Benson <gbenson@redhat.com>
267
268 * common/common-defs.h: Include cleanups.h.
269 * common/common-exceptions.c: Do not include cleanups.h.
270 * utils.h: Likewise.
271
c765fdb9
GB
2722014-10-08 Gary Benson <gbenson@redhat.com>
273
274 * ada-lang.c: Do not include exceptions.h.
275 * ada-valprint.c: Likewise.
276 * amd64-tdep.c: Likewise.
277 * auto-load.c: Likewise.
278 * block.c: Likewise.
279 * break-catch-throw.c: Likewise.
280 * breakpoint.c: Likewise.
281 * btrace.c: Likewise.
282 * c-lang.c: Likewise.
283 * cli/cli-cmds.c: Likewise.
284 * cli/cli-interp.c: Likewise.
285 * cli/cli-script.c: Likewise.
286 * completer.c: Likewise.
287 * corefile.c: Likewise.
288 * corelow.c: Likewise.
289 * cp-abi.c: Likewise.
290 * cp-support.c: Likewise.
291 * cp-valprint.c: Likewise.
292 * darwin-nat.c: Likewise.
293 * dwarf2-frame-tailcall.c: Likewise.
294 * dwarf2-frame.c: Likewise.
295 * dwarf2loc.c: Likewise.
296 * dwarf2read.c: Likewise.
297 * eval.c: Likewise.
298 * event-loop.c: Likewise.
299 * event-top.c: Likewise.
300 * f-valprint.c: Likewise.
301 * frame-unwind.c: Likewise.
302 * frame.c: Likewise.
303 * gdbtypes.c: Likewise.
304 * gnu-v2-abi.c: Likewise.
305 * gnu-v3-abi.c: Likewise.
306 * guile/scm-auto-load.c: Likewise.
307 * guile/scm-breakpoint.c: Likewise.
308 * guile/scm-cmd.c: Likewise.
309 * guile/scm-frame.c: Likewise.
310 * guile/scm-lazy-string.c: Likewise.
311 * guile/scm-param.c: Likewise.
312 * guile/scm-symbol.c: Likewise.
313 * guile/scm-type.c: Likewise.
314 * hppa-hpux-tdep.c: Likewise.
315 * i386-tdep.c: Likewise.
316 * inf-loop.c: Likewise.
317 * infcall.c: Likewise.
318 * infcmd.c: Likewise.
319 * infrun.c: Likewise.
320 * interps.c: Likewise.
321 * interps.h: Likewise.
322 * jit.c: Likewise.
323 * linespec.c: Likewise.
324 * linux-nat.c: Likewise.
325 * linux-thread-db.c: Likewise.
326 * m32r-rom.c: Likewise.
327 * main.c: Likewise.
328 * memory-map.c: Likewise.
329 * mi/mi-cmd-break.c: Likewise.
330 * mi/mi-cmd-stack.c: Likewise.
331 * mi/mi-interp.c: Likewise.
332 * mi/mi-main.c: Likewise.
333 * monitor.c: Likewise.
334 * nto-procfs.c: Likewise.
335 * objc-lang.c: Likewise.
336 * p-valprint.c: Likewise.
337 * parse.c: Likewise.
338 * ppc-linux-tdep.c: Likewise.
339 * printcmd.c: Likewise.
340 * probe.c: Likewise.
341 * python/py-auto-load.c: Likewise.
342 * python/py-breakpoint.c: Likewise.
343 * python/py-cmd.c: Likewise.
344 * python/py-finishbreakpoint.c: Likewise.
345 * python/py-frame.c: Likewise.
346 * python/py-framefilter.c: Likewise.
347 * python/py-function.c: Likewise.
348 * python/py-gdb-readline.c: Likewise.
349 * python/py-inferior.c: Likewise.
350 * python/py-infthread.c: Likewise.
351 * python/py-lazy-string.c: Likewise.
352 * python/py-linetable.c: Likewise.
353 * python/py-param.c: Likewise.
354 * python/py-prettyprint.c: Likewise.
355 * python/py-symbol.c: Likewise.
356 * python/py-type.c: Likewise.
357 * python/py-value.c: Likewise.
358 * python/python-internal.h: Likewise.
359 * python/python.c: Likewise.
360 * record-btrace.c: Likewise.
361 * record-full.c: Likewise.
362 * regcache.c: Likewise.
363 * remote-fileio.c: Likewise.
364 * remote-mips.c: Likewise.
365 * remote.c: Likewise.
366 * rs6000-aix-tdep.c: Likewise.
367 * rs6000-nat.c: Likewise.
368 * skip.c: Likewise.
369 * solib-darwin.c: Likewise.
370 * solib-dsbt.c: Likewise.
371 * solib-frv.c: Likewise.
372 * solib-ia64-hpux.c: Likewise.
373 * solib-spu.c: Likewise.
374 * solib-svr4.c: Likewise.
375 * solib.c: Likewise.
376 * spu-tdep.c: Likewise.
377 * stack.c: Likewise.
378 * stap-probe.c: Likewise.
379 * symfile-mem.c: Likewise.
380 * symmisc.c: Likewise.
381 * target.c: Likewise.
382 * thread.c: Likewise.
383 * top.c: Likewise.
384 * tracepoint.c: Likewise.
385 * tui/tui-interp.c: Likewise.
386 * typeprint.c: Likewise.
387 * utils.c: Likewise.
388 * valarith.c: Likewise.
389 * valops.c: Likewise.
390 * valprint.c: Likewise.
391 * value.c: Likewise.
392 * varobj.c: Likewise.
393 * windows-nat.c: Likewise.
394 * xml-support.c: Likewise.
395
484933d1
MR
3962014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
397
398 * mips-tdep.c (add_offset_16): Rewrite to implement what the
399 name implies.
400 (extended_mips16_next_pc): Update accordingly.
401
ab50adb6
MR
4022014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
403
404 * mips-tdep.c (mips16_instruction_is_compact_branch): New
405 function.
406 (micromips_instruction_is_compact_branch): Likewise.
407 (mips16_scan_prologue): Terminate scanning upon seeing a branch
408 or a compact jump, reaching a jump delay slot, or seeing a
409 second non-prologue instruction.
410 (micromips_scan_prologue): Also terminate scanning upon seeing a
411 compact branch or jump, or reaching a branch or jump delay slot.
412 (mips32_scan_prologue): Terminate scanning upon reaching a branch
413 or jump delay slot, or seeing a second non-prologue instruction.
414 (mips32_instruction_has_delay_slot): Retain instruction
415 examination code only, update arguments accordingly and move
416 instruction fetch pieces to...
417 (mips32_insn_at_pc_has_delay_slot): ... this new function.
418 (micromips_instruction_has_delay_slot): Likewise and to...
419 (micromips_insn_at_pc_has_delay_slot): ... this new function.
420 (mips16_instruction_has_delay_slot): Likewise and to...
421 (mips16_insn_at_pc_has_delay_slot): ... this new function.
422 (mips_single_step_through_delay): Update accordingly.
423 (mips_adjust_breakpoint_address): Likewise.
424
ae790652
MR
4252014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
426
427 * mips-tdep.c (micromips_instruction_has_delay_slot): When
428 !mustbe32 also return 1 for 32-bit instructions.
429 (mips16_instruction_has_delay_slot): Likewise. Add an
430 explanatory comment.
431
9b807e7b
MR
4322014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
433
434 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
435 symbols special.
436
0d5ed153
MR
4372014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
438
439 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
440 update comments.
441 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
442 for the breakpoint's address. Don't preinitialize `placed_size'.
443 (insert_bp_location): Set `reqstd_address' rather than
444 `placed_address'.
445 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
446 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
447 address.
448 (bkpt_remove_location): Likewise.
449 (deprecated_insert_raw_breakpoint): Likewise.
450 (deprecated_remove_raw_breakpoint): Likewise.
451 (find_single_step_breakpoint): Likewise.
452 * mem-break.c (default_memory_insert_breakpoint): Use
453 `reqstd_address' for the breakpoint's address. Don't set
454 `placed_address' or `placed_size' if breakpoint contents couldn't
455 have been determined.
456 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
457 the breakpoint's address.
458 (remote_insert_hw_breakpoint): Likewise. Don't set
459 `placed_address' or `placed_size' if breakpoint couldn't have been
460 set.
461 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
462 `reqstd_address' for the breakpoint's address.
463 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
464 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
465 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
466 * microblaze-linux-tdep.c
467 (microblaze_linux_memory_remove_breakpoint): Likewise.
468 * monitor.c (monitor_insert_breakpoint): Likewise.
469 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
470 (procfs_insert_hw_breakpoint): Likewise.
471 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
472 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
473 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
474 * remote-mips.c (mips_insert_breakpoint): Likewise.
475 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
476
3e871532
LM
4772014-10-03 Luis Machado <lgustavo@codesourcery.com>
478
479 * valops.c (value_assign): Check for bit field assignments
480 before calling architecture-specific register value
481 conversion functions.
482
ec48dc8b
PM
4832014-10-03 Pierre Muller <muller@sourceware.org>
484
485 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
486
b57bacec
PA
4872014-10-02 Pedro Alves <palves@redhat.com>
488
489 * breakpoint.c (breakpoints_should_be_inserted_now): Use
490 threads_are_executing.
491 * breakpoint.h (breakpoints_should_be_inserted_now): Add
492 describing comment.
493 * gdbthread.h (threads_are_executing): Declare.
494 (handle_signal_stop) <random signals>: Don't print about the
495 signal here if stopping.
496 (end_stepping_range): Don't notify observers here.
497 (normal_stop): Update the thread list. If stopped by a random
498 signal or a stepping range ended, notify observers.
499 * thread.c (threads_executing): New global.
500 (init_thread_list): Clear 'threads_executing'.
501 (set_executing): Set or clear 'threads_executing'.
502 (threads_are_executing): New function.
503 (update_threads_executing): New function.
504 (update_thread_list): Use it.
505
13fd3ff3
PA
5062014-10-02 Pedro Alves <palves@redhat.com>
507
508 PR breakpoints/17431
509 * breakpoint.c (update_breakpoints_after_exec): Don't create
510 overlay, longjmp, std terminate nor exception breakpoints here.
511
32990ada
PA
5122014-10-02 Pedro Alves <palves@redhat.com>
513
514 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
515 Adjust comments.
516 * inferior.c (find_inferior_for_program_space): Give preference to
517 the current inferior.
518 * inferior.h (find_inferior_for_program_space): Update comment.
519 * progspace.c (switch_to_program_space_and_thread): Prefer the
520 current inferior if it's bound to the program space requested. If
521 the inferior found doesn't have a PID yet, don't bother looking up
522 a thread.
523 * progspace.h (switch_to_program_space_and_thread): Adjust
524 comment.
525 * thread.c (any_thread_of_process, any_live_thread_of_process):
526 Give preference to the current thread.
527
0fec99e8
PA
5282014-10-01 Pedro Alves <palves@redhat.com>
529
530 * breakpoint.c (insert_bp_location): Error out if inserting a
531 software breakpoint at a read-only address.
532 * target.c (memory_xfer_check_region): New function, factored out
533 from ...
534 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
535 ULONGEST.
536 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
537 against the memory region attributes.
538
2ddf4301
SM
5392014-10-01 Simon Marchi <simon.marchi@ericsson.com>
540
541 * NEWS: Announce new exit-code field in -list-thread-groups
542 output.
543 * inferior.c (exit_inferior_1): Don't clear exit code.
544 (inferior_appeared): Clear exit code.
545 * mi/mi-main.c (print_one_inferior): Add printing of the exit
546 code.
547
5fdeec1d
PA
5482014-10-01 Pedro Alves <palves@redhat.com>
549
550 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
551 GENERATED" along with emacs/vi read-only markers.
552 * regformats/aarch64.dat: Regenerate.
553 * regformats/arm-with-iwmmxt.dat: Regenerate.
554 * regformats/arm-with-neon.dat: Regenerate.
555 * regformats/arm-with-vfpv2.dat: Regenerate.
556 * regformats/arm-with-vfpv3.dat: Regenerate.
557 * regformats/i386/amd64-avx-linux.dat: Regenerate.
558 * regformats/i386/amd64-avx.dat: Regenerate.
559 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
560 * regformats/i386/amd64-avx512.dat: Regenerate.
561 * regformats/i386/amd64-linux.dat: Regenerate.
562 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
563 * regformats/i386/amd64-mpx.dat: Regenerate.
564 * regformats/i386/amd64.dat: Regenerate.
565 * regformats/i386/i386-avx-linux.dat: Regenerate.
566 * regformats/i386/i386-avx.dat: Regenerate.
567 * regformats/i386/i386-avx512-linux.dat: Regenerate.
568 * regformats/i386/i386-avx512.dat: Regenerate.
569 * regformats/i386/i386-linux.dat: Regenerate.
570 * regformats/i386/i386-mmx-linux.dat: Regenerate.
571 * regformats/i386/i386-mmx.dat: Regenerate.
572 * regformats/i386/i386-mpx-linux.dat: Regenerate.
573 * regformats/i386/i386-mpx.dat: Regenerate.
574 * regformats/i386/i386.dat: Regenerate.
575 * regformats/i386/x32-avx-linux.dat: Regenerate.
576 * regformats/i386/x32-avx.dat: Regenerate.
577 * regformats/i386/x32-avx512-linux.dat: Regenerate.
578 * regformats/i386/x32-avx512.dat: Regenerate.
579 * regformats/i386/x32-linux.dat: Regenerate.
580 * regformats/i386/x32.dat: Regenerate.
581 * regformats/microblaze-with-stack-protect.dat: Regenerate.
582 * regformats/mips-dsp-linux.dat: Regenerate.
583 * regformats/mips-linux.dat: Regenerate.
584 * regformats/mips64-dsp-linux.dat: Regenerate.
585 * regformats/mips64-linux.dat: Regenerate.
586 * regformats/nios2-linux.dat: Regenerate.
587 * regformats/rs6000/powerpc-32.dat: Regenerate.
588 * regformats/rs6000/powerpc-32l.dat: Regenerate.
589 * regformats/rs6000/powerpc-64l.dat: Regenerate.
590 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
591 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
592 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
593 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
594 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
595 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
596 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
597 * regformats/s390-linux32.dat: Regenerate.
598 * regformats/s390-linux32v1.dat: Regenerate.
599 * regformats/s390-linux32v2.dat: Regenerate.
600 * regformats/s390-linux64.dat: Regenerate.
601 * regformats/s390-linux64v1.dat: Regenerate.
602 * regformats/s390-linux64v2.dat: Regenerate.
603 * regformats/s390-te-linux64.dat: Regenerate.
604 * regformats/s390x-linux64.dat: Regenerate.
605 * regformats/s390x-linux64v1.dat: Regenerate.
606 * regformats/s390x-linux64v2.dat: Regenerate.
607 * regformats/s390x-te-linux64.dat: Regenerate.
608 * regformats/tic6x-c62x-linux.dat: Regenerate.
609 * regformats/tic6x-c62x.dat: Regenerate.
610 * regformats/tic6x-c64x-linux.dat: Regenerate.
611 * regformats/tic6x-c64x.dat: Regenerate.
612 * regformats/tic6x-c64xp-linux.dat: Regenerate.
613 * regformats/tic6x-c64xp.dat: Regenerate.
614
db74e4ba
PA
6152014-10-01 Pedro Alves <palves@redhat.com>
616
617 * features/Makefile: Update comments.
618 (XMLTOC): List all xml files we build C files from.
619 (clean-cfiles): New rule.
620
d63f2f84
PA
6212014-10-01 Pedro Alves <palves@redhat.com>
622
623 * features/i386/amd64-avx512-linux.c: Regenerate.
624 * features/i386/amd64-avx512.c: Regenerate.
625 * features/i386/x32-avx512-linux.c: Regenerate.
626 * features/i386/x32-avx512.c: Regenerate.
627
20ad026d
PA
6282014-10-01 Pedro Alves <palves@redhat.com>
629
630 * features/Makefile (WHICH): Remove arm-with-m,
631 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
632
acc9fe45
PA
6332014-10-01 Pedro Alves <palves@redhat.com>
634
635 * features/Makefile (clean): New rule.
636
e001e535
PA
6372014-10-01 Pedro Alves <palves@redhat.com>
638
639 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
640 (zmm14h): Add missing end quotes.
641
bdc14417
PA
6422014-10-01 Pedro Alves <palves@redhat.com>
643
644 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
645 * features/aarch64.c: Regenerate.
646
d83ad864
DB
6472014-09-30 Don Breazeal <donb@codesourcery.com>
648
649 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
650 code so as to work with follow_fork_inferior.
651 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
652 (inf_ttrace_create_inferior): Remove reference to
653 inf_ttrace_vfork_ppid.
654 (inf_ttrace_attach): Ditto.
655 (inf_ttrace_detach): Ditto.
656 (inf_ttrace_kill): Use current_inferior instead of
657 inf_ttrace_vfork_ppid.
658 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
659 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
660 inferior away from the parent.
661 * infrun.c (follow_fork): Call follow_fork_inferior instead of
662 target_follow_fork.
663 (follow_fork_inferior): New function.
664 (follow_inferior_reset_breakpoints): Make function static.
665 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
666 * linux-nat.c (linux_child_follow_fork): Move target-independent
667 code to infrun.c:follow_fork_inferior.
668
29082443
AA
6692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
670
671 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
672 * gdbarch.c: Regenerate.
673 * gdbarch.h: Likewise.
674 * corelow.c (sniff_core_bfd): Drop presence check for deleted
675 gdbarch method 'regset_from_core_section'.
676 (get_core_register_section): Remove handling for the case that
677 regset == NULL and regset_from_core_section is defined.
678 (get_core_registers): Drop check for deleted method.
679 * procfs.c (procfs_do_thread_registers): Adjust comment.
680
f968fe80
AA
6812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
682
683 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
684 (linux_nat_make_corefile_notes): Remove.
685 (linux_target_install_ops): Do not set target method
686 'make_corefile_notes'.
687 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
688 Remove field.
689 (linux_corefile_thread_callback): Instead of args->collect, call
690 linux_collect_thread_registers.
691 (linux_make_corefile_notes): Remove 'collect' parameter. Return
692 NULL unless there is a regset iterator.
693 (linux_make_corefile_notes_1): Remove.
694 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
695 by linux_make_corefile_notes.
696 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
697
174ad59a
AA
6982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
699
700 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
701 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
702 Remove.
703 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
704
97094034
AA
7052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
706
707 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
708 (xtensa_iterate_over_regset_sections): New.
709 (xtensa_gdbarch_init): Adjust gdbarch initialization.
710
f73d3ce7
AA
7112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
712
713 * vax-tdep.c (vax_regset_from_core_section): Remove.
714 (vax_iterate_over_regset_sections): New.
715 (vax_gdbarch_init): Adjust gdbarch initialization.
716
cb24567a
AA
7172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
718
719 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
720 (tilegx_regset_from_core_section): Remove.
721 (tilegx_iterate_over_regset_sections): New.
722 (tilegx_linux_init_abi): Adjust gdbarch initialization.
723
e5139de8
AA
7242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
725
726 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
727 (sparc_iterate_over_regset_sections): New.
728 (sparc32_gdbarch_init): Adjust gdbarch initialization.
729 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
730 targets.
731 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
732 (sparc64fbsd_init_abi): Call fbsd_init_abi.
733 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
734 target method 'make_corefile_notes'.
735
c6d41a6f
AA
7362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
737
738 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
739 'sizeof_gregset' and 'sizeof_fpregset'.
740 * sh-tdep.c (sh_regset_from_core_section): Remove.
741 (sh_iterate_over_regset_sections): New.
742 (sh_gdbarch_init): Adjust gdbarch initialization.
743 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
744 sizeof_fpregset.
745 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
746 'sizeof_gregset'.
747
9845a0b5
AA
7482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
749
750 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
751 (score7_linux_iterate_over_regset_sections): New.
752 (score_gdbarch_init): Adjust gdbarch initialization.
753
23ea9aeb
AA
7542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
755
756 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
757 FreeBSD targets.
758 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
759 method 'make_corefile_notes'.
760 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
761 (ppcfbsd_regset_from_core_section): Remove.
762 (ppcfbsd_iterate_over_regset_sections): New.
763 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
764 initialization.
765 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
766 (ppcnbsd_iterate_over_regset_sections): New.
767 (ppcnbsd_init_abi): Adjust.
768 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
769 (ppcobsd_iterate_over_regset_sections): New.
770 (ppcobsd_init_abi): Adjust.
771 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
772 (rs6000_aix_iterate_over_regset_sections): New.
773 (rs6000_aix_init_osabi): Adjust.
774
c5b8d704
AA
7752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
776
777 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
778 (nios2_regset_from_core_section): Remove.
779 (nios2_iterate_over_regset_sections): New.
780 (nios2_linux_init_abi): Adjust gdbarch initialization.
781
3636e608
AA
7822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
783
784 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
785 (am33_iterate_over_regset_sections): New.
786 (am33_linux_init_osabi): Adjust gdbarch initialization.
787
d4036235
AA
7882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
789
790 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
791 (mips_linux_iterate_over_regset_sections): New.
792 (mips_linux_init_abi): Adjust gdbarch initialization.
793 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
794 (mips64obsd_iterate_over_regset_sections): New.
795 (mips64obsd_init_abi): Adjust.
796 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
797 (mipsnbsd_iterate_over_regset_sections): New.
798 (mipsnbsd_init_abi): Adjust.
799
b61ddd6e
AA
8002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
801
802 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
803 (m88k_iterate_over_regset_sections): New.
804 (m88k_gdbarch_init): Adjust gdbarch initialization.
805
55a2906a
AA
8062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
807
808 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
809 (ia64_linux_iterate_over_regset_sections): New.
810 (ia64_linux_init_abi): Adjust gdbarch initialization.
811
022c98ab
AA
8122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
813
814 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
815 (m68kbsd_iterate_over_regset_sections): New.
816 (m68kbsd_init_abi): Adjust gdbarch initialization.
817 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
818 (m68k_linux_iterate_over_regset_sections): New.
819 (m68k_linux_init_abi): Adjust gdbarch initialization.
820
5fac247f
AA
8212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
822
823 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
824 (m32r_linux_regset_from_core_section): Remove.
825 (m32r_linux_iterate_over_regset_sections): New.
826 (m32r_linux_init_abi): Adjust gdbarch initialization.
827
490496c3
AA
8282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
829
830 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
831 (amd64obsd_iterate_over_regset_sections): New.
832 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
833 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
834 Remove.
835 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
836 regset_from_core_section initialization.
837 * i386-tdep.c (i386_regset_from_core_section): Remove.
838 (i386_iterate_over_regset_sections): New.
839 (i386_gdbarch_init): Adjust gdbarch initialization.
840 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
841 (i386_iterate_over_regset_sections): New prototype.
842 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
843 Remove.
844 (i386obsd_aout_iterate_over_regset_sections): New.
845 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
846 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
847 targets.
848 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
849 (amd64fbsd_init_abi): Call fbsd_init_abi.
850 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
851 (i386fbsd4_init_abi): Call fbsd_init_abi.
852 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
853 target method 'make_corefile_notes'.
854 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
855
50c5eb53
AA
8562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
857
858 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
859 (hppa_hpux_iterate_over_regset_sections): New.
860 (hppa_hpux_init_abi): Adjust gdbarch initialization.
861 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
862 (hppa_linux_iterate_over_regset_sections): New.
863 (hppa_linux_init_abi): Adjust.
864 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
865 (hppanbsd_iterate_over_regset_sections): New.
866 (hppanbsd_init_abi): Adjust.
867 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
868 (hppaobsd_iterate_over_regset_sections): New.
869 (hppaobsd_init_abi): Adjust.
870
66afae4f
AA
8712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
872
873 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
874 (frv_linux_iterate_over_regset_sections): New.
875 (frv_linux_init_abi): Adjust gdbarch initialization.
876
ed09174e
AA
8772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
878
879 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
880 (armbsd_iterate_over_regset_sections): New prototype.
881 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
882 (armbsd_iterate_over_regset_sections): New.
883 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
884 initialization.
885
dff2166e
AA
8862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
887
888 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
889 (alpha_linux_iterate_over_regset_sections): New.
890 (alpha_linux_init_abi): Adjust gdbarch initialization.
891 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
892 prototype.
893 (alphanbsd_iterate_over_regset_sections): New prototype.
894
4108500a
AA
8952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
896
897 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
898 Remove.
899 (aarch64_linux_iterate_over_regset_sections): New.
900 (aarch64_linux_init_abi): Adjust gdbarch initialization.
901
a904c024
AA
9022014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
903
904 * fbsd-tdep.c: New file.
905 * fbsd-tdep.h: New file.
906 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
907 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
908 (ALLDEPFILES): Add fbsd-tdep.c.
909
8f0435f7
AA
9102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
911
912 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
913 parameter.
914 * gdbarch.h: Regenerate.
915 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
916 iterator.
917 (get_core_register_section): Add parameter 'regset' and use it, if
918 set. Add parameter 'min_size' and verify the bfd section size
919 against it.
920 (get_core_registers_cb): Add parameter 'regset' and pass it to
921 get_core_register section. For the "standard" register sections
922 ".reg" and ".reg2", set an appropriate default for human_name.
923 (get_core_registers): Don't abort when the gdbarch has an iterator
924 but no regset_from_core_section. Add NULL/0 for parameters
925 'regset'/'min_size' in calls to get_core_register_section.
926 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
927 'regset' and use it instead of calling the
928 regset_from_core_section gdbarch method.
929 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
930 * i386-tdep.c (i386_supply_xstateregset)
931 (i386_collect_xstateregset, i386_xstateregset): Moved to
932 i386-linux-tdep.c.
933 (i386_regset_from_core_section): Drop handling for .reg-xfp and
934 .reg-xstate.
935 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
936 core file support only if the regset iterator hasn't been set.
937 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
938 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
939 Moved from i386-tdep.c and renamed to *_linux*.
940 (i386_linux_iterate_over_regset_sections): Add regset parameter to
941 each callback invocation. Allow any .reg-xstate size when reading
942 from a core file.
943 * amd64-tdep.c (amd64_supply_xstateregset)
944 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
945 amd64-linux-tdep.c.
946 (amd64_regset_from_core_section): Remove.
947 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
948 install an amd64-specific regset_from_core_section gdbarch method.
949 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
950 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
951 Moved from amd64-tdep.c and renamed to *_linux*.
952 (amd64_linux_iterate_over_regset_sections): Add regset parameter
953 to each callback invocation. Allow any .reg-xstate size when
954 reading from a core file.
955 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
956 (arm_linux_iterate_over_regset_sections): Add regset parameter to
957 each callback invocation.
958 (arm_linux_init_abi): No longer set the regset_from_core_section
959 gdbarch method.
960 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
961 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
962 each callback invocation.
963 (ppc_linux_init_abi): No longer set the regset_from_core_section
964 gdbarch method.
965 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
966 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
967 (s390_regset_from_core_section): Remove.
968 (s390_iterate_over_regset_sections): Add regset parameter to each
969 callback invocation.
970 (s390_gdbarch_init): No longer set the regset_from_core_section
971 gdbarch method. Drop initialization of deleted tdep fields.
972
5aa82d05
AA
9732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
974
975 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
976 (amd64_linux_iterate_over_regset_sections): New.
977 (amd64_linux_init_abi_common): Don't install the regset section
978 list, but the new iterator in gdbarch.
979 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
980 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
981 (arm_linux_iterate_over_regset_sections): ...here. New function.
982 (arm_linux_init_abi): Set iterator instead of section list.
983 * corelow.c (get_core_registers_cb): New function, logic moved
984 from...
985 (get_core_registers): ...loop body here. Use new iterator method
986 instead of walking through the regset section list.
987 * gdbarch.sh: Remove 'core_regset_sections'. New method
988 'iterate_over_regset_sections'. New typedef
989 'iterate_over_regset_sections_cb'.
990 * gdbarch.c: Regenerate.
991 * gdbarch.h: Likewise.
992 * i386-linux-tdep.c (i386_linux_regset_sections)
993 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
994 Remove.
995 (i386_linux_iterate_over_regset_sections): New.
996 (i386_linux_init_abi): Don't choose a regset section list, but
997 install new iterator in gdbarch.
998 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
999 (linux_collect_regset_section_cb): New function, logic moved
1000 from...
1001 (linux_collect_thread_registers): ...loop body here. Use iterator
1002 method instead of walking through list.
1003 (linux_make_corefile_notes_1): Check for presence of iterator
1004 method instead of regset section list.
1005 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1006 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1007 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1008 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1009 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1010 (ppc_linux_init_abi): Don't choose from above regset section
1011 lists, but install new iterator in gdbarch.
1012 * regset.h (struct core_regset_section): Remove.
1013 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1014 have_linux_v1, have_linux_v2, and have_tdb.
1015 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1016 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1017 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1018 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1019 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1020 (s390_iterate_over_regset_sections): ...here. New function. Use
1021 new tdep fields.
1022 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1023 regset section lists, but install new iterator.
1024
2eca4a8d
JK
10252014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1026
1027 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1028
a73c2b56
SM
10292014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1030
1031 * progspace.c (print_program_space): Don't prune program spaces
1032 before printing them.
1033
03d46957
PA
10342014-09-25 Pedro Alves <palves@redhat.com>
1035
1036 * infrun.c (user_visible_resume_ptid): Don't check
1037 singlestep_breakpoints_inserted_p.
1038
e558d7c1
PA
10392014-09-25 Pedro Alves <palves@redhat.com>
1040
1041 * breakpoint.c (should_be_inserted): Add debug output.
1042
7f89fd65
PA
10432014-09-25 Pedro Alves <palves@redhat.com>
1044
1045 * infrun.c (stepping_past_instruction_at)
1046 (clear_exit_convenience_vars): Point at infrun.h instead of
1047 inferior.h.
1048 (handle_signal_stop): Fix typo.
1049
b7576e5c
YQ
10502014-09-24 Yao Qi <yao@codesourcery.com>
1051
1052 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1053 bitmask.
1054
9a6cf368
GB
10552014-09-22 Gary Benson <gbenson@redhat.com>
1056
1057 * target.c (target_stop): Updated comment.
1058
03f4463b
GB
10592014-09-22 Gary Benson <gbenson@redhat.com>
1060
1061 * target/target.h (target_stop_ptid): Renamed as...
1062 (target_stop_and_wait): New function. Updated comment.
1063 All uses updated.
1064 (target_continue_ptid): Renamed as...
1065 (target_continue_no_signal): New function. Updated comment.
1066 All uses updated.
1067
a25a5a45
PA
10682014-09-22 Pedro Alves <palves@redhat.com>
1069
1070 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1071 and "auto" merged.
1072 * breakpoint.c (enum ugll_insert_mode): New enum.
1073 (always_inserted_mode): Now a plain boolean.
1074 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1075 (breakpoints_always_inserted_mode): Delete.
1076 (breakpoints_should_be_inserted_now): New function.
1077 (insert_breakpoints): Pass UGLL_INSERT to
1078 update_global_location_list instead of calling
1079 insert_breakpoint_locations manually.
1080 (create_solib_event_breakpoint_1): New, factored out from ...
1081 (create_solib_event_breakpoint): ... this.
1082 (create_and_insert_solib_event_breakpoint): Use
1083 create_solib_event_breakpoint_1 instead of calling
1084 insert_breakpoint_locations manually.
1085 (update_global_location_list): Change parameter type from boolean
1086 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1087 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1088 (update_global_location_list_nothrow): Change parameter type from
1089 boolean to enum ugll_insert_mode.
1090 (_initialize_breakpoint): "breakpoint always-inserted" option is
1091 now a boolean command. Update help text.
1092 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1093 (breakpoints_should_be_inserted_now): New declaration.
1094 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1095 Remove breakpoints_always_inserted_mode check.
1096 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1097 * remote.c (remote_start_remote): Likewise.
1098
04086b45
PA
10992014-09-22 Pedro Alves <palves@redhat.com>
1100
1101 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1102 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1103 Instead, pass UGLL_INSERT to update_global_location_list.
1104 (update_global_location_list): Change parameter type from boolean
1105 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1106 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1107 (create_solib_event_breakpoint_1): New, factored out from ...
1108 (create_solib_event_breakpoint): ... this.
1109 (create_and_insert_solib_event_breakpoint): Use
1110 create_solib_event_breakpoint_1 instead of calling
1111 insert_breakpoint_locations manually.
1112 (update_global_location_list): Handle UGLL_INSERT.
1113
44702360
PA
11142014-09-22 Pedro Alves <palves@redhat.com>
1115
1116 * breakpoint.c (enum ugll_insert_mode): New enum.
1117 (update_global_location_list)
1118 (update_global_location_list_nothrow): Change parameter type from
1119 boolean to enum ugll_insert_mode. All callers adjusted.
1120
93c6145a
JB
11212014-09-19 Joel Brobecker <brobecker@adacore.com>
1122
1123 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1124 SystemTap support in GDB.
1125
89a5711c
DB
11262014-09-19 Don Breazeal <donb@codesourcery.com>
1127
1128 * linux-nat.c (linux_handle_extended_wait): Call
1129 linux_ptrace_get_extended_event.
1130 (wait_lwp): Call linux_is_extended_waitstatus.
1131 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1132 and linux_is_extended_waitstatus.
1133 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1134 linux_ptrace_get_extended_event.
1135 (linux_ptrace_get_extended_event): New function.
1136 (linux_is_extended_waitstatus): New function.
1137 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1138 (linux_is_extended_waitstatus): New declarations.
1139
c3b7b696
YQ
11402014-09-19 Yao Qi <yao@codesourcery.com>
1141
1142 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1143 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1144 comments. Callers update.
1145 (dwarf_decode_lines): Likewise.
1146 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1147 comments. Skip the line table if 'lowpc' is greater than
1148 'address'. Don't check
1149 dwarf2_per_objfile->has_section_at_zero.
1150
2b4fd423
DE
11512014-09-18 Doug Evans <dje@google.com>
1152
1153 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1154 * python/py-symtab.c (stpy_get_producer): New function.
1155 (symtab_object_getset): Add "producer" attribute.
1156
5e43d467
UW
11572014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1158
1159 PR gdb/17384
1160 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1161 (do_captured_read_memory_integer): Remove.
1162 (safe_read_memory_integer): Use target_read_memory directly instead
1163 of catching errors in do_captured_read_memory_integer.
1164
04e79979
MR
11652014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1166
1167 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1168 not gdb/doc.
1169
76aeec5b
SDJ
11702014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1171
1172 * objc-lang.c (find_implementation_from_class): Remove dead code.
1173
2f693f9d
SDJ
11742014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1175
1176 PR cli/7233
1177 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1178 "fprintf_unfiltered (gdb_stdlog...)".
1179
bb9d5f81
PP
11802014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1181
1182 PR breakpoints/12526
1183 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1184 val_bitsize.
1185 * breakpoint.c (watch_command_1): Use these fields to retain
1186 bitfield information.
1187 (extract_bitfield_from_watchpoint_value): New function.
1188 (watchpoint_check): Use it.
1189 (update_watchpoint): Use it. Optimize the address and length of a
1190 HW watchpoint pointing to a bitfield.
1191 * value.h (unpack_value_bitfield): New prototype.
1192 * value.c (unpack_value_bitfield): Make extern.
1193
05db5edd
ST
11942014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1195
1196 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1197 x86-dregs.o.
1198 * gnu-nat.c (inf_threads): New function.
1199 * gnu-nat.h (inf_threads_ftype): New typedef.
1200 (inf_threads): New declaration.
1201 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1202 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1203 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1204 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1205 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1206 (i386_gnu_dr_get_control): New functions.
1207 (reg_addr): New structure.
1208 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1209 i386 debugging register hooks.
1210 * NEWS: Mention this.
1211
5a578da5
OJ
12122014-08-13 Omair Javaid <omair.javaid@linaro.org>
1213
1214 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1215 vector data transfer instructions.
1216 (arm_record_coproc_data_proc): Updated.
1217
f20f80dd
OJ
12182014-08-13 Omair Javaid <omair.javaid@linaro.org>
1219
1220 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1221 arm_record_exreg_ld_st_insn.
1222 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1223 load/store insns.
1224
851f26ae
OJ
12252014-08-13 Omair Javaid <omair.javaid@linaro.org>
1226
1227 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1228 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1229 processing instructions.
1230
1e1b6563
OJ
12312014-08-13 Omair Javaid <omair.javaid@linaro.org>
1232
1233 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1234 for advance SIMD struct ld/st insn.
1235 (thumb2_record_decode_insn_handler): Replace stub handler with
1236 thumb2_record_asimd_struct_ld_st.
1237
60cc5e93
OJ
12382014-08-13 Omair Javaid <omair.javaid@linaro.org>
1239
1240 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1241 for asimd, vfp and coprocessor insns.
1242 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1243 and coprocessor insns.
1244 (thumb2_record_coproc_insn): New function.
1245 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1246 handlers.
1247 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1248 opcode 110 insns.
1249
81219e53
DE
12502014-09-13 Doug Evans <xdje42@gmail.com>
1251
1252 * NEWS: Mention new "queue-signal" command.
1253 * infcmd.c (queue_signal_command): New function.
1254 (_initialize_infcmd): Add new queue-signal command.
1255
d36bf488
DE
12562014-09-13 Doug Evans <xdje42@gmail.com>
1257
1258 * linux-nat.c (wait_lwp): Add debugging printf.
1259 (linux_nat_wait_1): Ditto.
1260
f37f681c
PA
12612014-09-12 Pedro Alves <palves@redhat.com>
1262
1263 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1264 (create_and_insert_solib_event_breakpoint): New functions.
1265 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1266 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1267 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1268 (remove_dbx_link_breakpoint): Delete function.
1269 (insert_dbx_link_bpt_in_file): Use
1270 create_and_insert_solib_event_breakpoint instead of
1271 deprecated_insert_raw_breakpoint.
1272 (procfs_wait): Don't check whether we hit __dbx_link here.
1273 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1274 here.
1275 * solib-irix.c (base_breakpoint): Delete global.
1276 (disable_break): Delete function.
1277 (enable_break): Use create_solib_event_breakpoint
1278 instead of deprecated_insert_raw_breakpoint.
1279 (irix_solib_handle_event): New function.
1280 (irix_solib_create_inferior_hook): Don't run the target or disable
1281 the mapping-complete breakpoint here.
1282 (_initialize_irix_solib): Install irix_solib_handle_event as
1283 so_ops->handle_event hook.
1284
9d9bf2df
EBM
12852014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1286 Ulrich Weigand  <uweigand@de.ibm.com>
1287
1288 PR tdep/17379
1289 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1290 instead of read_memory_unsigned_integer.
1291
b006a80e
GB
12922014-09-12 Gary Benson <gbenson@redhat.com>
1293
1294 * nat/linux-waitpid.c: Include common-defs.h.
1295 [GDBSERVER]: Add FIXME comment.
1296 [!GDBSERVER]: Don't include defs.h or signal.h.
1297 (linux_debug) [!GDBSERVER]: Remove empty block.
1298
296b1496
GB
12992014-09-12 Gary Benson <gbenson@redhat.com>
1300
1301 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1302 Don't include defs.h or server.h.
1303
53f81362
GB
13042014-09-12 Gary Benson <gbenson@redhat.com>
1305
1306 * nat/linux-btrace.c: Include common-defs.h.
1307 Don't include defs.h, server.h or gdbthread.h.
1308 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1309
727605ca
GB
13102014-09-12 Gary Benson <gbenson@redhat.com>
1311
1312 * common/agent.c: Include common-defs.h.
1313 Don't include defs.h or server.h.
1314 * common/buffer.c: Likewise.
1315 * common/common-debug.c: Likewise.
1316 * common/common-utils.c: Likewise.
1317 * common/errors.c: Likewise.
1318 * common/filestuff.c: Likewise.
1319 * common/format.c: Likewise.
1320 * common/gdb_vecs.c: Likewise.
1321 * common/print-utils.c: Likewise.
1322 * common/ptid.c: Likewise.
1323 * common/rsp-low.c: Likewise.
1324 * common/signals.c: Likewise.
1325 * common/vec.c: Likewise.
1326 * common/xml-utils.c: Likewise.
1327 * nat/linux-osdata.c: Likewise.
1328 * nat/linux-procfs.c: Likewise.
1329 * nat/linux-ptrace.c: Likewise.
1330 * nat/mips-linux-watch.c: Likewise.
1331 * target/waitstatus.c: Likewise.
1332
361c8ade
GB
13332014-09-12 Tom Tromey <tromey@redhat.com>
1334 Gary Benson <gbenson@redhat.com>
1335
1336 * common/common-regcache.h: New file.
1337 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1338 * regcache.h: Include common-regcache.h.
1339 (regcache_read_pc): Don't declare.
1340 * regcache.c (get_thread_regcache_for_ptid): New function.
1341 * nat/linux-btrace.c: Don't include regcache.h.
1342 Include common-regcache.h.
1343 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1344
a01cbb49
TS
13452014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1346
1347 * regcache.h (struct regset): Declare.
1348
98880d46
PA
13492014-09-11 Pedro Alves <palves@redhat.com>
1350
1351 PR gdb/17347
1352 * main.c: Include "infrun.h".
1353 (catch_command_errors, catch_command_errors_const): Wait for the
1354 foreground command to complete.
1355 * top.c (maybe_wait_sync_command_done): New function, factored out
1356 from ...
1357 (maybe_wait_sync_command_done): ... here.
1358 * top.h (maybe_wait_sync_command_done): New declaration.
1359
bd9269f7
GB
13602014-09-11 Tom Tromey <tromey@redhat.com>
1361 Gary Benson <gbenson@redhat.com>
1362
1363 * common/symbol.h: New file.
1364 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1365 * minsyms.c (find_minimal_symbol_address): New function.
1366 * common/agent.c: Include common/symbol.h.
1367 [!GDBSERVER]: Don't include objfiles.h.
1368 (agent_look_up_symbols): Use find_minimal_symbol_address.
1369
f8c1d06b
GB
13702014-09-11 Gary Benson <gbenson@redhat.com>
1371
1372 * target/target.h (target_stop_ptid, target_continue_ptid):
1373 Declare.
1374 * target.c (target_stop_ptid, target_continue_ptid): New
1375 functions.
1376 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1377 (agent_run_command): Always use target_stop_ptid and
1378 target_continue_ptid.
1379
721ec300
GB
13802014-09-11 Tom Tromey <tromey@redhat.com>
1381 Gary Benson <gbenson@redhat.com>
1382
1383 * target/target.h: New file.
1384 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1385 * target.h: Include target/target.h.
1386 (target_read_memory, target_write_memory): Don't declare.
1387 * target.c (target_read_uint32): New function.
1388 * common/agent.c: Include target/target.h.
1389 [!GDBSERVER]: Don't include target.h.
1390 (helper_thread_id): Type changed to uint32_t.
1391 (agent_get_helper_thread_id): Use target_read_uint32.
1392 (agent_run_command): Always use target_read_memory and
1393 target_write_memory.
1394 (agent_capability): Type changed to uint32_t.
1395 (agent_capability_check): Use target_read_uint32.
1396
c5e92cca
GB
13972014-09-11 Gary Benson <gbenson@redhat.com>
1398
1399 * common/common-debug.h (show_debug_regs): Declare.
1400 * common/common-debug.c (show_debug_regs): Define.
1401 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1402 all uses with show_debug_regs. Replace all uses that considered
1403 debug_hw_points as a multi-value integer with straight boolean
1404 uses.
1405 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1406 with show_debug_regs.
1407 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1408 all uses with show_debug_regs.
1409 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1410 uses with show_debug_regs.
1411
eeef931a
UW
14122014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1413
1414 * findvar.c (address_from_register): Handle targets requiring
1415 a special conversion routine even for plain pointer types.
1416
8efa9855
UW
14172014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1418
1419 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1420 (store_register): Do not call exec_one_dummy_insn.
1421
eb479039
JB
14222014-09-10 Joel Brobecker <brobecker@adacore.com>
1423
1424 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1425 dereference it first. Use value_enclosing_type instead of
1426 value_type.
1427 (ada_array_length): Likewise.
1428
deede10c
JB
14292014-09-10 Joel Brobecker <brobecker@adacore.com>
1430
1431 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1432 Adjust function implementation and documentation accordingly.
1433 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1434 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1435 Update call to ada_value_ptr_subscript.
1436
7828a5f5
JB
14372014-09-10 Joel Brobecker <brobecker@adacore.com>
1438
1439 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1440 instead of VAL's type.
1441
35782f14
JB
14422014-09-10 Joel Brobecker <brobecker@adacore.com>
1443
1444 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1445
d342a0da
DE
14462014-09-09 Doug Evans <xdje42@gmail.com>
1447
1448 PR guile/17367
1449 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1450 last parameter to pkg-config, not first.
1451 * configure.ac: Pass --with-guile provided pkg-config path to
1452 GDB_GUILE_PROGRAM_NAMES.
1453 * configure: Regenerate.
1454
b4a3d263
GKB
14552014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1456
1457 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1458 Bertazi".
1459
6e466374
MR
14602014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1461
1462 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1463 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1464 the list of sections determining GDB_OSABI_IRIX.
1465
a1ada89a
JH
14662014-09-09 James Hogan <james.hogan@imgtec.com>
1467
1468 * MAINTAINERS (Write After Approval): Add "James Hogan".
1469
86db008d
JH
14702014-09-09 James Hogan <james.hogan@imgtec.com>
1471
1472 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1473
72fde3df
JB
14742014-09-09 Joel Brobecker <brobecker@adacore.com>
1475
1476 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1477
92d8d229
DE
14782014-09-08 Doug Evans <xdje42@gmail.com>
1479
1480 PR 17247
1481 * guile.c: #include <signal.h>.
1482 (_initialize_guile): Block SIGCHLD while initializing Guile.
1483
1484 Replaces the following, which is reverted.
1485
1486 2014-07-26 Doug Evans <xdje42@gmail.com>
1487
1488 PR 17185
1489 * configure.ac: Add check for header gc/gc.h.
1490 Add check for function setenv.
1491 * configure: Regenerate.
1492 * config.in: Regenerate.
1493 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1494
d81412aa
DE
14952014-09-08 Doug Evans <xdje42@gmail.com>
1496
1497 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1498 with named constant. Fix style of pointer comparison.
1499 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1500
a9f116cb
GKB
15012014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1502
1503 PR gdb/17035
1504 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1505 decide whether we display the command on "show user".
1506 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1507 printing command name.
1508 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1509 * cli/cli-decode.c (cli_user_command_p): Create helper function
1510 to verify whether cmd_list_element is a user-defined command.
1511
c75bd3a2
JK
15122014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1513
1514 PR python/17355
1515 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1516 Fix goto out of TRY_CATCH.
1517
faa42425 15182014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1519 Tom Tromey <tromey@redhat.com>
faa42425
DE
1520
1521 PR 15276
1522 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1523 $_any_caller_matches.
1524 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1525 * python/lib/gdb/function/caller_is.py: New file.
1526
0d41ba00
DE
15272014-09-06 Doug Evans <xdje42@gmail.com>
1528
1529 * infcmd.c (program_info): Fix typo.
1530
474ca4f6
SDJ
15312014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1532
1533 PR gdb/17235
1534 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1535 'number'. New variable 'has_digit'. Rewrite code to deal with
1536 subexpressions on SDT probes.
1537
ebf13736
PA
15382014-09-04 Pedro Alves <palves@redhat.com>
1539
1540 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1541 the input is only one character long.
1542
eb0b0463
SDJ
15432014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1544
1545 PR fortran/17237
1546 * f-valprint.c (f_val_print): Specify the correct print option to
1547 use when printing integer values.
1548
5ee44bfa
GB
15492014-09-04 Gary Benson <gbenson@redhat.com>
1550
1551 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1552 Remove code to cope with LWPs wrapped as PIDs.
1553 Add assertions to ensure no wrapped LWPs are passed.
1554
4875ffdb
PA
15552014-09-04 Pedro Alves <palves@redhat.com>
1556
1557 * value.c (value_ranges_copy_adjusted): New function, factored out
1558 from ...
1559 (value_contents_copy_raw): ... here.
1560 (unpack_value_bits_as_long_1): Rename back to ...
1561 (unpack_bits_as_long): ... this. Remove 'original_value' and
1562 'result' parameters. Change return type to LONGEST.
1563 (unpack_value_bits_as_long): Delete.
1564 (unpack_value_field_as_long_1): Delete.
1565 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1566 (unpack_value_bitfield): New function.
1567 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1568 (value_fetch_lazy): Use unpack_value_bitfield.
1569 * value.h (unpack_value_bits_as_long): Delete declaration.
1570
5f3b99cf
SS
15712014-09-03 Sasha Smundak <asmundak@google.com>
1572
1573 * python/py-frame.c (frapy_read_register): New function.
1574
ac740bc7
JH
15752014-09-03 James Hogan <james.hogan@imgtec.com>
1576
1577 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1578 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1579
7d793aa9
SDJ
15802014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1581
1582 PR python/16699
1583 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1584 function.
1585 (add_cmd): Set "completer_handle_brkchars" to NULL.
1586 * cli/cli-decode.h (struct cmd_list_element)
1587 <completer_handle_brkchars>: New field.
1588 * command.h (completer_ftype_void): New typedef.
1589 (set_cmd_completer_handle_brkchars): New prototype.
1590 * completer.c (set_gdb_completion_word_break_characters): New
1591 function.
1592 (complete_line_internal): Call "completer_handle_brkchars"
1593 callback from command.
1594 * completer.h: Include "command.h".
1595 (set_gdb_completion_word_break_characters): New prototype.
1596 * python/py-cmd.c (cmdpy_completer_helper): New function.
1597 (cmdpy_completer_handle_brkchars): New function.
1598 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1599 (cmdpy_init): Set completer_handle_brkchars to
1600 cmdpy_completer_handle_brkchars.
1601
97ea6506
GB
16022014-09-03 Gary Benson <gbenson@redhat.com>
1603
1604 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1605 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1606 Loop conditions changed to equivalent form.
1607 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1608 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1609 ALL_DEBUG_ADDRESS_REGISTERS.
1610
d1437815
JB
16112014-09-03 Joel Brobecker <brobecker@adacore.com>
1612
1613 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1614 description fix.
1615
9b94fcf1
DE
16162014-09-02 Doug Evans <dje@google.com>
1617
1618 * typeprint.c (find_global_typedef): Fix comment.
1619
df7e5265
GB
16202014-09-02 Gary Benson <gbenson@redhat.com>
1621
1622 * i386-nat.h: Renamed as...
1623 * x86-nat.h: New file. All type, function and variable name
1624 prefixes changed from "i386_" to "x86_". All references updated.
1625 * i386-nat.c: Renamed as...
1626 * x86-nat.c: New file. All type, function and variable name
1627 prefixes changed from "i386_" to "x86_". All references updated.
1628 * common/i386-xstate.h: Renamed as...
1629 * common/x86-xstate.h: New file. All type, function and variable
1630 name prefixes changed from "i386_" to "x86_". All references
1631 updated.
1632 * nat/i386-cpuid.h: Renamed as...
1633 * nat/x86-cpuid.h: New file. All type, function and variable name
1634 prefixes changed from "i386_" to "x86_". All references updated.
1635 * nat/i386-gcc-cpuid.h: Renamed as...
1636 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1637 name prefixes changed from "i386_" to "x86_". All references
1638 updated.
1639 * nat/i386-dregs.h: Renamed as...
1640 * nat/x86-dregs.h: New file. All type, function and variable name
1641 prefixes changed from "i386_" to "x86_". All references updated.
1642 * nat/i386-dregs.c: Renamed as...
1643 * nat/x86-dregs.c: New file. All type, function and variable name
1644 prefixes changed from "i386_" to "x86_". All references updated.
1645
1c3569d4
MR
16462014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1647
1648 * varobj.c (_initialize_varobj): Move to the end of file.
1649
ff55e1b5
GB
16502014-08-29 Gary Benson <gbenson@redhat.com>
1651
1652 * common/common-exceptions.h: New file.
1653 * common/common-exceptions.c: Likewise.
1654 * Makefile.in (SFILES): Add common/common-exceptions.c.
1655 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1656 (COMMON_OBS): Add common-exceptions.o.
1657 (common-exceptions.o): New rule.
1658 * exceptions.h (common-exceptions.h): Include.
1659 (gdb_setjmp.h): Do not include.
1660 (return_reason): Moved to common-exceptions.h.
1661 (enum return_reason): Likewise.
1662 (RETURN_MASK): Likewise.
1663 (typedef return_mask): Likewise.
1664 (enum errors): Likewise.
1665 (struct gdb_exception): Likewise.
1666 (exceptions_state_mc_init): Likewise.
1667 (exceptions_state_mc_action_iter): Likewise.
1668 (exceptions_state_mc_action_iter_1): Likewise.
1669 (TRY_CATCH): Likewise.
1670 (throw_exception): Likewise.
1671 (throw_verror): Likewise.
1672 (throw_vquit): Likewise.
1673 (throw_error): Likewise.
1674 (throw_quit): Likewise.
1675 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1676 (enum catcher_action): Likewise.
1677 (struct catcher): Likewise.
1678 (current_catcher): Likewise.
1679 (catcher_list_size): Likewise.
1680 (exceptions_state_mc_init): Likewise.
1681 (catcher_pop): Likewise.
1682 (exceptions_state_mc): Likewise.
1683 (exceptions_state_mc_action_iter): Likewise.
1684 (exceptions_state_mc_action_iter_1): Likewise.
1685 (throw_exception): Likewise.
1686 (exception_messages): Likewise.
1687 (exception_messages_size): Likewise.
1688 (throw_it): Likewise.
1689 (throw_verror): Likewise.
1690 (throw_vquit): Likewise.
1691 (throw_error): Likewise.
1692 (throw_quit): Likewise.
1693 (prepare_to_throw_exception): New function.
1694
e9bcb658
GB
16952014-08-29 Gary Benson <gbenson@redhat.com>
1696
1697 * common/gdb_setjmp.h: New file.
1698 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1699 * configure.ac: Move sigsetjmp check...
1700 * common/common.m4: ...here.
1701 * configure: Regenerate.
1702 * cp-support.c (SIGJMP_BUF): Delete.
1703 (SIGSETJMP): Likewise.
1704 (SIGLONGJMP): Likewise.
1705 * exceptions.h (gdb_setjmp.h): Include.
1706 (setjmp.h): Do not include.
1707 (EXCEPTIONS_SIGJMP_BUF): Delete.
1708 (EXCEPTIONS_SIGSETJMP): Likewise.
1709 (EXCEPTIONS_SIGLONGJMP): Likewise.
1710 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1711 from gdb_setjmp.h.
1712 * exceptions.c: Likewise.
1713
e3180625
GB
17142014-08-29 Gary Benson <gbenson@redhat.com>
1715
1716 * cleanups.h: Moved to...
1717 * common/cleanups.h: New file.
1718 * cleanups.c: Moved to...
1719 * common/cleanups.c: New file. Include common-defs.h and
1720 cleanups.h. Do not include defs.h.
1721 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1722 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1723 (cleanups.o): New rule.
1724
e3d6ba5d
GB
17252014-08-29 Gary Benson <gbenson@redhat.com>
1726
1727 * common/errors.h (internal_warning): New declaration.
1728 (internal_vwarning): Likewise.
1729 * common/errors.c (internal_warning): New function.
1730 * utils.h (internal_warning): Don't declare.
1731 (internal_vwarning): Likewise.
1732 * utils.c (internal_warning): Removed.
1733
075c7033
GB
17342014-08-29 Gary Benson <gbenson@redhat.com>
1735
1736 * main.c (captured_main): Use warning during startup.
1737 Prefix startup warning messages with command name.
1738
91b35fd0
GB
17392014-08-29 Gary Benson <gbenson@redhat.com>
1740
1741 * main.c (captured_main): Handle usage errors with error.
1742
b1ec390e
GB
17432014-08-29 Gary Benson <gbenson@redhat.com>
1744
1745 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1746 exit pair with a call to error. Wrap the message with _().
1747
fd0ef3dd
GB
17482014-08-29 Gary Benson <gbenson@redhat.com>
1749
1750 * main.c (captured_main): Replace a fprintf/exit
1751 pair with a call to error. Wrap the message with _().
1752
e0e6bcab
GB
17532014-08-29 Gary Benson <gbenson@redhat.com>
1754
1755 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1756 pairs with calls to error. Wrap the message with _().
1757
0d2f5c07
GB
17582014-08-29 Gary Benson <gbenson@redhat.com>
1759
1760 * utils.c (vwarning): Protect calls to target_terminal_ours
1761 and wrap_here.
1762
5df43998
GB
17632014-08-29 Gary Benson <gbenson@redhat.com>
1764
1765 * exceptions.c (print_flush): Protect calls to
1766 target_terminal_ours and wrap_here.
1767
2437fd32
GB
17682014-08-29 Gary Benson <gbenson@redhat.com>
1769
1770 * utils.h (filtered_printing_initialized): New declaration.
1771 * utils.c (abort_with_message): New function.
1772 (internal_vproblem): Use abort_with_message for first level
1773 recursive internal problems, and if gdb_stderr is not set up.
1774 Protect calls to target_terminal_ours, begin_line and query.
1775
f1f58506
DE
17762014-08-28 Doug Evans <dje@google.com>
1777
1778 * symtab.c (in_prologue): Move definition to better spot.
1779 (skip_prologue_using_sal): Ditto.
1780
aab2f208
DE
17812014-08-28 Doug Evans <dje@google.com>
1782
1783 * symtab.c (find_function_start_sal): Move definition to better spot.
1784
6b65d1b6
YQ
17852014-08-28 Yao Qi <yao@codesourcery.com>
1786
1787 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1788 found_stack_adjust in forward scan. Remove condition check
1789 on found_stack_adjust which is always true. Indent the code.
1790
a1b34d15
YQ
17912014-08-28 Yao Qi <yao@codesourcery.com>
1792
1793 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1794 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1795 (dwarf_decode_lines): Remove argument
1796 want_line_info. Remove condition check on want_line_info.
1797 Callers update.
1798
d5962de5
DE
17992014-08-27 Doug Evans <dje@google.com>
1800
1801 * dwarf2read.c (dwarf_record_line): Fix typo.
1802
9b139002
SDJ
18032014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1804
1805 * target.h (struct target_ops::to_terminal_save_ours): Remove
1806 declaration.
1807 (target_terminal_save_ours): Remove macro.
1808 * target-delegates.c: Regenerate.
1809 * inf-child.c (inf_child_target): Don't set the nonexistent
1810 field to_terminal_save_ours.
1811 * inferior.h (child_terminal_save_ours): Remove declaration.
1812 * terminal.h (gdb_save_tty_state): New declaration.
1813 * inflow.c (child_terminal_save_ours): Rename to ...
1814 (gdb_save_tty_state): ... this.
1815 * tui/tui.c: Include terminal.h.
1816 (tui_enable): Use gdb_save_tty_state instead of
1817 target_terminal_save_ours.
1818 (tui_disable): Likewise.
1819
9debeba0
DE
18202014-08-25 Doug Evans <dje@google.com>
1821
1822 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1823 Pass NULL instead of 0 for context pointer.
1824
428fc5fc
YQ
18252014-08-25 Yao Qi <yao@codesourcery.com>
1826
1827 * dwarf2read.c: Fix grammatical error.
1828
cdc07690
YQ
18292014-08-24 Yao Qi <yao@codesourcery.com>
1830
1831 * dwarf2read.c (scan_partial_symbols): Update comments.
1832 Rename argument 'need_pc' with 'set_addrmap'.
1833 (add_partial_namespace): Rename argument 'need_pc' with
1834 'set_addrmap'.
1835 (add_partial_module): Likewise.
1836 (add_partial_subprogram): Likewise. Update comments.
1837 (dwarf2_name): Fix typo.
1838
a05a36a5
DE
18392014-08-22 Doug Evans <dje@google.com>
1840
1841 PR 17276
1842 * dwarf2read.c (dwarf_record_line_p): New function.
1843 (dwarf_decode_lines_1): Ignore subsequent line number entries
1844 for the same line if any entry had a non-zero discriminator.
1845
252a6764
DE
18462014-08-22 Doug Evans <dje@google.com>
1847
1848 * buildsym.h (record_line_ftype): New typedef.
1849 (record_line): Use it.
1850 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1851 (dwarf_decode_lines_1): Call them.
1852
510db052
YQ
18532014-08-22 Yao Qi <yao@codesourcery.com>
1854
1855 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1856 (ctf_end): Remove code.
1857
22fd09ae
JK
18582014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1859
1860 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1861 (linux_make_corefile_notes): call update_thread_list, protected against
1862 exceptions.
1863
656e8868
PA
18642014-08-21 Pedro Alves <palves@redhat.com>
1865
1866 * infcmd.c (attach_command): Remove comment.
1867
de589d04
WN
18682014-08-21 Bin Cheng <bin.cheng@arm.com>
1869
1870 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1871 unsigned LONGEST to ULONGEST.
1872
2a31c623
PA
18732014-08-20 Pedro Alves <palves@redhat.com>
1874
1875 * Makefile.in (check-read1): New rule.
1876
d36430db
JB
18772014-08-20 Joel Brobecker <brobecker@adacore.com>
1878
1879 * value.c (value_from_contents_and_address): Strip resolved_type's
1880 typedef layers before checking its TYPE_DATA_LOCATION.
1881
000339af
PA
18822014-08-20 Pedro Alves <palves@redhat.com>
1883
1884 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1885
5f52445b
YQ
18862014-08-20 Yao Qi <yao@codesourcery.com>
1887
1888 * amd64-tdep.c (amd64_classify): Add a blank line after the
1889 example. Move "*/" to a new line.
1890 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1891 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1892 * dwarf2read.c (psymtab_include_file_name): Likewise.
1893
9a0dc9e3
PA
18942014-08-19 Andrew Burgess <aburgess@broadcom.com>
1895 Pedro Alves <palves@redhat.com>
1896
1897 PR symtab/14604
1898 PR symtab/14605
1899 * ada-lang.c (coerce_unspec_val_to_type): Use
1900 value_contents_copy_raw.
1901 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1902 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1903 * cp-valprint.c (cp_print_value_fields): Let the common printing
1904 code handle optimized out values.
1905 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1906 * d-valprint.c (dynamic_array_type): Use
1907 value_bits_any_optimized_out.
1908 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1909 check_any_valid fields.
1910 (check_pieced_value_bits): Delete and inline ...
1911 (check_pieced_synthetic_pointer): ... here.
1912 (check_pieced_value_validity): Delete.
1913 (check_pieced_value_invalid): Delete.
1914 (pieced_value_funcs): Remove check_validity and check_any_valid
1915 fields.
1916 (read_pieced_value): Use mark_value_bits_optimized_out.
1917 (write_pieced_value): Switch to use
1918 mark_value_bytes_optimized_out.
1919 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1920 of assuming the whole value is optimized out.
1921 * findvar.c (read_frame_register_value): Remove special handling
1922 of optimized out registers.
1923 (value_from_register): Use mark_value_bytes_optimized_out.
1924 * frame-unwind.c (frame_unwind_got_optimized): Use
1925 mark_value_bytes_optimized_out.
1926 * jv-valprint.c (java_value_print): Adjust.
1927 (java_print_value_fields): Let the common printing code handle
1928 optimized out values.
1929 * mips-tdep.c (mips_print_register): Remove special handling of
1930 optimized out registers.
1931 * opencl-lang.c (lval_func_check_validity): Delete.
1932 (lval_func_check_any_valid): Delete.
1933 (opencl_value_funcs): Remove check_validity and check_any_valid
1934 fields.
1935 * p-valprint.c (pascal_object_print_value_fields): Let the common
1936 printing code handle optimized out values.
1937 * stack.c (read_frame_arg): Remove special handling of optimized
1938 out values. Fetch both VAL and ENTRYVAL before comparing
1939 contents. Adjust to value_available_contents_eq rename.
1940 * valprint.c (valprint_check_validity)
1941 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1942 (val_print_array_elements): Adjust.
1943 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1944 (value_bits_any_optimized_out): New function.
1945 (value_entirely_covered_by_range_vector): New function, factored
1946 out from value_entirely_unavailable.
1947 (value_entirely_unavailable): Reimplement.
1948 (value_entirely_optimized_out): New function.
1949 (insert_into_bit_range_vector): New function, factored out from
1950 mark_value_bits_unavailable.
1951 (mark_value_bits_unavailable): Reimplement.
1952 (struct ranges_and_idx): New struct.
1953 (find_first_range_overlap_and_match): New function, factored out
1954 from value_available_contents_bits_eq.
1955 (value_available_contents_bits_eq): Rename to ...
1956 (value_contents_bits_eq): ... this. Check both unavailable
1957 contents and optimized out contents.
1958 (value_available_contents_eq): Rename to ...
1959 (value_contents_eq): ... this.
1960 (allocate_value_lazy): Remove reference to the old optimized_out
1961 boolean.
1962 (allocate_optimized_out_value): Use
1963 mark_value_bytes_optimized_out.
1964 (require_not_optimized_out): Adjust to check whether the
1965 optimized_out vec is empty.
1966 (ranges_copy_adjusted): New function, factored out from
1967 value_contents_copy_raw.
1968 (value_contents_copy_raw): Also copy the optimized out ranges.
1969 Assert the destination ranges aren't optimized out.
1970 (value_contents_copy): Update comment, remove call to
1971 require_not_optimized_out.
1972 (value_contents_equal): Adjust to check whether the optimized_out
1973 vec is empty.
1974 (set_value_optimized_out, value_optimized_out_const): Delete.
1975 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1976 New functions.
1977 (value_entirely_optimized_out, value_bits_valid): Delete.
1978 (value_copy): Take a VEC copy of the 'optimized_out' field.
1979 (value_primitive_field): Remove special handling of optimized out.
1980 (value_fetch_lazy): Assert that lazy values have no unavailable
1981 regions. Use value_bits_any_optimized_out. Remove some special
1982 handling for optimized out values.
1983 * value.h: Add intro comment about <optimized out> and
1984 <unavailable>.
1985 (struct lval_funcs): Remove check_validity and check_any_valid
1986 fields.
1987 (set_value_optimized_out, value_optimized_out_const): Remove.
1988 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1989 New declarations.
1990 (value_bits_any_optimized_out): New declaration.
1991 (value_bits_valid): Delete declaration.
1992 (value_available_contents_eq): Rename to ...
1993 (value_contents_eq): ... this, and extend comments.
1994
6694c411
JK
19952014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1996
1997 Fix -fsanitize=address on unreadable inferior strings.
1998 * valprint.c (val_print_string): Fix access before BUFFER.
1999
89a1c21a
SM
20002014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2001
2002 * target.c (target_struct_size): Remove.
2003 (target_struct_allocsize): Remove.
2004 (DEFAULT_ALLOCSIZE): Remove.
2005 (target_ops_p): New typedef.
2006 (DEF_VEC_P (target_ops_p)): New vector type.
2007 (target_structs): Change type to VEC (target_ops_p).
2008 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2009 (find_default_run_target): Rewrite for loop following changes to
2010 target_structs.
2011
cb417230
JB
20122014-08-19 Joel Brobecker <brobecker@adacore.com>
2013
2014 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2015 Adjust code accordingly. Adjust function description comment.
2016
817e0957
YQ
20172014-08-19 Yao Qi <yao@codesourcery.com>
2018
2019 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2020 types.
2021
2974be62
AM
20222014-08-19 Alan Modra <amodra@gmail.com>
2023
2024 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2025 * config.in: Regenerate.
2026 * configure: Regenerate.
2027
34abf635
GB
20282014-08-19 Tom Tromey <tromey@redhat.com>
2029 Gary Benson <gbenson@redhat.com>
2030
2031 * common/common-debug.h: New file.
2032 * common/common-debug.c: Likewise.
2033 * debug.c: Likewise.
2034 * Makefile.in (SFILES): Add common/common-debug.c.
2035 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2036 (COMMON_OBS): Add common-debug.o and debug.o.
2037 (common-debug.o): New rule.
2038 * common/common-defs.h: Include common-debug.h.
2039 * common/agent.c (debug_agent_printf): New function.
2040 (DEBUG_AGENT): Redefine.
2041 * nat/i386-dregs.c (debug_printf): Undefine.
2042
f6e94d78
GB
20432014-08-19 Gary Benson <gbenson@redhat.com>
2044
2045 * common/common-defs.h: Include print-utils.h.
2046 * utils.h: Do not include print-utils.h.
2047
9239eeab
GB
20482014-08-19 Tom Tromey <tromey@redhat.com>
2049 Gary Benson <gbenson@redhat.com>
2050
2051 * common/common-types.h: New file.
2052 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2053 * common/common-defs.h: Include common-types.h.
2054 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2055 (ULONGEST): Remove.
2056
ef87c8bb
GB
20572014-08-19 Tom Tromey <tromey@redhat.com>
2058 Gary Benson <gbenson@redhat.com>
2059
2060 * common/errors.h: New file.
2061 * common/errors.c: Likewise.
2062 * Makefile.in (SFILES): Add common/errors.c.
2063 (HFILES_NO_SRCDIR): Add common/errors.h.
2064 (COMMON_OBS): Add errors.o.
2065 (errors.o): New rule.
2066 * common/common-defs.h: Include errors.h.
2067 * utils.h (perror_with_name, error, verror, warning, vwarning):
2068 Don't declare.
2069 * common/common-utils.h: (malloc_failure, internal_error):
2070 Likewise.
2071
196a707b
GB
20722014-08-19 Gary Benson <gbenson@redhat.com>
2073
2074 * utils.c (internal_vproblem): Always print the message.
2075
ded4fc8f
DE
20762014-08-18 Doug Evans <dje@google.com>
2077
2078 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2079
950c97d8
JB
20802014-08-18 Joel Brobecker <brobecker@adacore.com>
2081
2082 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2083 Return 0 if TYPE is dynamic.
2084 (print_range): Add handling of dynamic ranges.
2085
3cdcd0ce
JB
20862014-08-18 Keven Boell <keven.boell@intel.com>
2087 Joel Brobecker <brobecker@adacore.com>
2088
2089 * gdbtypes.h (struct main_type): Add field "data_location".
2090 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2091 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2092 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2093 a dynamic data location.
2094 (resolve_dynamic_type): Add DW_AT_data_location handling.
2095 (copy_recursive, copy_type): Copy the data_location information
2096 when present.
2097 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2098 * value.c (value_from_contents_and_address): Add
2099 DW_AT_data_location handling.
2100
08412b07
JB
21012014-08-18 Keven Boell <keven.boell@intel.com>
2102 Joel Brobecker <brobecker@adacore.com>
2103
2104 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2105 field "get_object_address".
2106 * dwarf2expr.c (execute_stack_op): Add handling for
2107 DW_OP_push_object_address.
2108 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2109 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2110 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2111 (dwarf_expr_get_obj_addr): New function.
2112 (dwarf_expr_ctx_funcs): Add get_object_address field.
2113 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2114 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2115 (dwarf2_evaluate_property): Add parameter "address". Use it.
2116 (needs_get_obj_addr): New function.
2117 (needs_frame_ctx_funcs): Add get_object_address field.
2118 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2119 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2120 (resolve_dynamic_array): Likewise.
2121
84754697
JB
21222014-08-18 Joel Brobecker <brobecker@adacore.com>
2123
2124 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2125 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2126 fixed value for records and unions for which some GNAT encodings
2127 are present.
2128
da5c522f
JB
21292014-08-18 Joel Brobecker <brobecker@adacore.com>
2130
2131 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2132 rewrite to avoid "else if" and "else" constructs. Should be
2133 a no-op in practice.
2134
0d72a7c3
JB
21352014-08-18 Joel Brobecker <brobecker@adacore.com>
2136
2137 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2138 of lexical block.
2139
e66d4446
SC
21402014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2141
2142 PR c++/17132
2143 * eval.c: Update all calls to find_overload_match.
2144 * valarith.c: Likewise.
2145 (value_user_defined_cpp_op, value_user_defined_op): New
2146 argument NOSIDE. Update all callers.
2147 * valops.c (find_overload_match): New argument NOSIDE.
2148 * value.h (find_overload_match): Update signature.
2149
940df408
SC
21502014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2151
2152 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2153 'items' methods instead of 'iteritems' method on dictionaries.
2154
699ca60a
DE
21552014-08-15 Doug Evans <dje@google.com>
2156
2157 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2158 closer to use.
2159
37780ee5
DE
21602014-08-15 Doug Evans <dje@google.com>
2161
2162 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2163
0ad93d4f
DE
21642014-08-15 Doug Evans <dje@google.com>
2165
2166 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2167
20d8c372
DE
21682014-08-15 Doug Evans <dje@google.com>
2169
2170 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2171 unused.
2172
cb039ba4
EZ
21732014-08-15 Eli Zaretskii <eliz@gnu.org>
2174
2175 * dcache.h: Include target.h, to avoid compile time warnings.
2176
eb7a547a
JB
21772014-08-15 Joel Brobecker <brobecker@adacore.com>
2178
2179 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2180 frame_info" partial declaration.
2181 * gdbarch.h: Regenerate.
2182
783cecc8
YQ
21832014-08-15 Yao Qi <yao@codesourcery.com>
2184
2185 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2186 Add parameter 'decode_for_pst_p'. Callers update.
2187
65c749e7
YQ
21882014-08-13 Yao Qi <yao@codesourcery.com>
2189
2190 PR build/17104
2191 * configure.ac: Use local variable 'pos'.
2192 * configure: Regenerated.
2193
d769e349
DE
21942014-08-11 Doug Evans <dje@google.com>
2195
2196 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2197 message, it is redundant with "Reading symbols from ..." message.
2198
24f1235e
DE
21992014-08-10 Doug Evans <xdje42@gmail.com>
2200
2201 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2202
dcd2e6ef
YQ
22032014-08-09 Yao Qi <yao@codesourcery.com>
2204
2205 PR remote/9053
2206 * remote.c (remote_xfer_partial): Remove dead code.
2207
070bdf0b
AA
22082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2209
2210 * ia64-linux-tdep.c: Include "regset.h".
2211 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2212 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2213 (ia64_linux_supply_fpregset): New function.
2214 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2215 (ia64_linux_regset_from_core_section): New function.
2216 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2217 method.
2218
08f9f542
AA
22192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2220
2221 * m68klinux-tdep.c: Include "regset.h".
2222 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2223 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2224 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2225 (m68k_linux_regset_from_core_section): New function.
2226 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2227 method.
2228
8f1cee41
AA
22292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2230
2231 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2232 function. Move logic to...
2233 (tilegx_linux_regmap): ... this new register map.
2234 (tilegx_linux_regset): Refer to register map, replace supply
2235 method by regcache_supply_regset, and add collect method.
2236 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2237 TILEGX_FIRST_EASY_REGNUM.
2238
c5741217
AA
22392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2240
2241 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2242 that calls regcache_supply_regset and handles the EPC register
2243 separately. Move main logic to...
2244 (score7_linux_gregmap): ... this new register map.
2245 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2246 (score7_linux_gregset): Refer to register map. Add collect method.
2247 (score7_linux_regset_from_core_section): Replace
2248 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2249 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2250 (struct regset): Delete unused forward declaraction.
2251 (struct pt_regs): Delete structure definition.
2252 (elf_gregset_t): Delete typedef.
2253
81580573
AA
22542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2255
2256 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2257 (nios2_core_regset): Add collect method.
2258
ba199d7d
AA
22592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2260
2261 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2262 platform-independent and don't write to read-only input buffer.
2263 (m32r_linux_collect_gregset): New function.
2264 (m32r_linux_gregset): Add collect method.
2265
0006a9da
AA
22662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2267
2268 * hppa-linux-tdep.c (greg_map): Rename to...
2269 (hppa_linux_gregmap): ... this. Also convert to
2270 regcache_map_entry format.
2271 (hppa_linux_supply_regset): Delete function.
2272 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2273 (hppa_linux_fpregmap): ... this new register map.
2274 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2275 register map, replace supply method by regcache_supply_regset, and
2276 add collect method regcache_collect_regset.
2277
901e1b23
AA
22782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2279
2280 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2281 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2282 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2283 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2284 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2285 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2286 (frv_linux_supply_gregset): Replace main logic by call to
2287 regcache_supply_regset, but keep clearing gr32-gr63.
2288 (frv_linux_supply_fpregset): Delete function.
2289 (frv_linux_gregset): Refer to appropriate register map and add
2290 regcache_collect_regset as the collect method.
2291 (frv_linux_fpregset): Likewise. Also exchange the supply method
2292 by regcache_supply_regset.
2293
1d6e7555
AA
22942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2295
2296 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2297 by call to alpha_supply_int_regs.
2298 (alpha_linux_collect_gregset): New function.
2299 (alpha_linux_supply_fpregset): Replace logic by call to
2300 alpha_supply_fp_regs.
2301 (alpha_linux_collect_fpregset): New function.
2302 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2303
d4d793bf
AA
23042014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2305
2306 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2307 by call to regcache_collect_regset.
2308 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2309 instead of aarch64_linux_supply_gregset/_fpregset.
2310 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2311 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2312 header file instead.
2313 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2314 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2315 functions. Move logic to ...
2316 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2317 register maps.
2318 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2319 refer to new register maps, replace *_regset_from_core by
2320 regcache_supply_regset, and also use regcache_collect_regset.
2321 * aarch64-linux-tdep.h: Include "regset.h".
2322 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2323 Delete prototypes.
2324 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2325 macros, moved from C source file.
2326 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2327 variable declarations.
2328
99b7da5d
AA
23292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2330
2331 * s390-linux-nat.c: Include "regset.h".
2332 (regmap_gregset): Delete macro.
2333 (s390_64_regmap_gregset): New register map for
2334 regcache_supply/_collect_regset.
2335 (s390_64_gregset): New regset.
2336 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2337 (regmap_fpregset): Delete macro.
2338 (s390_native_supply, s390_native_collect): Delete functions.
2339 (supply_gregset, fill_gregset): Replace s390-specific regmap
2340 handling by a call to regcache_supply/_collect_regset.
2341 (supply_fpregset, fill_fpregset): Call regcache_supply/
2342 _collect_regset instead of s390_native_supply/_collect.
2343 (fetch_regset, store_regset): Likewise. Also change the last
2344 parameter to a regset instead of a regmap.
2345 (s390_linux_fetch_inferior_registers)
2346 (390_linux_store_inferior_registers): Adjust last parameter in
2347 calls to fetch_regset and store_regset.
2348 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2349 (s390_gregmap): ... this. Also make static const and convert to
2350 regcache_map_entry format.
2351 (s390x_regmap_gregset): Delete.
2352 (s390_regmap_fpregset): Rename to...
2353 (s390_fpregmap): ... this. Make static const and convert to
2354 regcache_map_entry format.
2355 (s390_regmap_upper, s390_regmap_last_break)
2356 (s390x_regmap_last_break, s390_regmap_system_call)
2357 (s390_regmap_tdb): Likewise.
2358 (s390_supply_regset, s390_collect_regset): Remove functions.
2359 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2360 s390_supply_regset.
2361 (s390_gregset, s390_fpregset, s390_upper_regset)
2362 (s390_last_break_regset, s390x_last_break_regset)
2363 (s390_system_call_regset, s390_tdb_regset): Make global and
2364 replace s390_supply/_collect_regset by regcache_supply/
2365 _collect_regset.
2366 (s390x_gregset): Delete.
2367 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2368 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2369 (s390_regmap_fpregset, s390_regmap_last_break)
2370 (s390x_regmap_last_break, s390_regmap_system_call)
2371 (s390_regmap_tdb): Delete global variable declarations.
2372 (s390_gregset, s390_fpregset, s390_last_break_regset)
2373 (s390x_last_break_regset, s390_system_call_regset)
2374 (s390_tdb_regset): New global variable declarations.
2375
0b309272
AA
23762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2377
2378 * regcache.c: Include "regset.h".
2379 (regcache_transfer_regset): New local function.
2380 (regcache_supply_regset, regcache_collect_regset): New functions.
2381 * regcache.h (struct regcache_map_entry): New structure.
2382 (REGCACHE_MAP_SKIP): New enum value.
2383 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2384
7fefa8d7
AA
23852014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2386
2387 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2388 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2389 (ppc_linux_collect_gregset ): Likewise.
2390 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2391 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2392 (ppc_collect_vrregset): Likewise.
2393 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2394 Likewise.
2395
96c4f946
YQ
23962014-08-07 Yao Qi <yao@codesourcery.com>
2397
2398 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2399 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2400 * remote.c (remote_read_bytes): Likewise.
2401
fffbe6a8
YQ
24022014-08-07 Yao Qi <yao@codesourcery.com>
2403
2404 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2405
5ee8a82c
YQ
24062014-08-07 Yao Qi <yao@codesourcery.com>
2407
2408 PR remote/17230
2409 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2410 TARGET_XFER_OK instead of 0.
2411
bb974a24
GB
24122014-08-07 Gary Benson <gbenson@redhat.com>
2413
2414 * common/common-defs.h: Include errno.h.
2415 * defs.h: Do not include errno.h.
2416 * ada-typeprint.c: Likewise.
2417 * c-typeprint.c: Likewise.
2418 * core-regset.c: Likewise.
2419 * corefile.c: Likewise.
2420 * corelow.c: Likewise.
2421 * event-loop.c: Likewise.
2422 * f-typeprint.c: Likewise.
2423 * gnu-nat.c: Likewise.
2424 * go32-nat.c: Likewise.
2425 * i386gnu-nat.c: Likewise.
2426 * m2-typeprint.c: Likewise.
2427 * nat/linux-btrace.c: Likewise.
2428 * p-typeprint.c: Likewise.
2429 * procfs.c: Likewise.
2430 * remote-sim.c: Likewise.
2431 * rs6000-nat.c: Likewise.
2432 * target.c: Likewise.
2433 * typeprint.c: Likewise.
2434 * ui-file.c: Likewise.
2435 * valops.c: Likewise.
2436 * valprint.c: Likewise.
2437
6d3d12eb
GB
24382014-08-07 Gary Benson <gbenson@redhat.com>
2439
2440 * common/common-defs.h: Include string.h.
2441 * aarch64-tdep.c: Do not include string.h.
2442 * ada-exp.y: Likewise.
2443 * ada-lang.c: Likewise.
2444 * ada-lex.l: Likewise.
2445 * ada-typeprint.c: Likewise.
2446 * ada-valprint.c: Likewise.
2447 * aix-thread.c: Likewise.
2448 * alpha-linux-tdep.c: Likewise.
2449 * alpha-mdebug-tdep.c: Likewise.
2450 * alpha-nat.c: Likewise.
2451 * alpha-osf1-tdep.c: Likewise.
2452 * alpha-tdep.c: Likewise.
2453 * alphanbsd-tdep.c: Likewise.
2454 * amd64-dicos-tdep.c: Likewise.
2455 * amd64-linux-tdep.c: Likewise.
2456 * amd64-nat.c: Likewise.
2457 * amd64-sol2-tdep.c: Likewise.
2458 * amd64fbsd-tdep.c: Likewise.
2459 * amd64obsd-tdep.c: Likewise.
2460 * arch-utils.c: Likewise.
2461 * arm-linux-nat.c: Likewise.
2462 * arm-linux-tdep.c: Likewise.
2463 * arm-tdep.c: Likewise.
2464 * arm-wince-tdep.c: Likewise.
2465 * armbsd-tdep.c: Likewise.
2466 * armnbsd-nat.c: Likewise.
2467 * armnbsd-tdep.c: Likewise.
2468 * armobsd-tdep.c: Likewise.
2469 * avr-tdep.c: Likewise.
2470 * ax-gdb.c: Likewise.
2471 * ax-general.c: Likewise.
2472 * bcache.c: Likewise.
2473 * bfin-tdep.c: Likewise.
2474 * breakpoint.c: Likewise.
2475 * build-id.c: Likewise.
2476 * buildsym.c: Likewise.
2477 * c-exp.y: Likewise.
2478 * c-lang.c: Likewise.
2479 * c-typeprint.c: Likewise.
2480 * c-valprint.c: Likewise.
2481 * charset.c: Likewise.
2482 * cli-out.c: Likewise.
2483 * cli/cli-cmds.c: Likewise.
2484 * cli/cli-decode.c: Likewise.
2485 * cli/cli-dump.c: Likewise.
2486 * cli/cli-interp.c: Likewise.
2487 * cli/cli-logging.c: Likewise.
2488 * cli/cli-script.c: Likewise.
2489 * cli/cli-setshow.c: Likewise.
2490 * cli/cli-utils.c: Likewise.
2491 * coffread.c: Likewise.
2492 * common/agent.c: Likewise.
2493 * common/buffer.c: Likewise.
2494 * common/buffer.h: Likewise.
2495 * common/common-utils.c: Likewise.
2496 * common/filestuff.c: Likewise.
2497 * common/filestuff.c: Likewise.
2498 * common/format.c: Likewise.
2499 * common/print-utils.c: Likewise.
2500 * common/rsp-low.c: Likewise.
2501 * common/signals.c: Likewise.
2502 * common/vec.h: Likewise.
2503 * common/xml-utils.c: Likewise.
2504 * core-regset.c: Likewise.
2505 * corefile.c: Likewise.
2506 * corelow.c: Likewise.
2507 * cp-abi.c: Likewise.
2508 * cp-name-parser.y: Likewise.
2509 * cp-support.c: Likewise.
2510 * cp-valprint.c: Likewise.
2511 * cris-tdep.c: Likewise.
2512 * d-exp.y: Likewise.
2513 * darwin-nat.c: Likewise.
2514 * dbxread.c: Likewise.
2515 * dcache.c: Likewise.
2516 * demangle.c: Likewise.
2517 * dicos-tdep.c: Likewise.
2518 * disasm.c: Likewise.
2519 * doublest.c: Likewise.
2520 * dsrec.c: Likewise.
2521 * dummy-frame.c: Likewise.
2522 * dwarf2-frame.c: Likewise.
2523 * dwarf2loc.c: Likewise.
2524 * dwarf2read.c: Likewise.
2525 * elfread.c: Likewise.
2526 * environ.c: Likewise.
2527 * eval.c: Likewise.
2528 * event-loop.c: Likewise.
2529 * exceptions.c: Likewise.
2530 * exec.c: Likewise.
2531 * expprint.c: Likewise.
2532 * f-exp.y: Likewise.
2533 * f-lang.c: Likewise.
2534 * f-typeprint.c: Likewise.
2535 * f-valprint.c: Likewise.
2536 * fbsd-nat.c: Likewise.
2537 * findcmd.c: Likewise.
2538 * findvar.c: Likewise.
2539 * fork-child.c: Likewise.
2540 * frame.c: Likewise.
2541 * frv-linux-tdep.c: Likewise.
2542 * frv-tdep.c: Likewise.
2543 * gdb.c: Likewise.
2544 * gdb_bfd.c: Likewise.
2545 * gdbarch.c: Likewise.
2546 * gdbarch.sh: Likewise.
2547 * gdbtypes.c: Likewise.
2548 * gnu-nat.c: Likewise.
2549 * gnu-v2-abi.c: Likewise.
2550 * gnu-v3-abi.c: Likewise.
2551 * go-exp.y: Likewise.
2552 * go-lang.c: Likewise.
2553 * go32-nat.c: Likewise.
2554 * guile/guile.c: Likewise.
2555 * guile/scm-auto-load.c: Likewise.
2556 * hppa-hpux-tdep.c: Likewise.
2557 * hppa-linux-nat.c: Likewise.
2558 * hppanbsd-tdep.c: Likewise.
2559 * hppaobsd-tdep.c: Likewise.
2560 * i386-cygwin-tdep.c: Likewise.
2561 * i386-dicos-tdep.c: Likewise.
2562 * i386-linux-tdep.c: Likewise.
2563 * i386-nto-tdep.c: Likewise.
2564 * i386-sol2-tdep.c: Likewise.
2565 * i386-tdep.c: Likewise.
2566 * i386bsd-tdep.c: Likewise.
2567 * i386gnu-nat.c: Likewise.
2568 * i386nbsd-tdep.c: Likewise.
2569 * i386obsd-tdep.c: Likewise.
2570 * i387-tdep.c: Likewise.
2571 * ia64-libunwind-tdep.c: Likewise.
2572 * ia64-linux-nat.c: Likewise.
2573 * inf-child.c: Likewise.
2574 * inf-ptrace.c: Likewise.
2575 * inf-ttrace.c: Likewise.
2576 * infcall.c: Likewise.
2577 * infcmd.c: Likewise.
2578 * inflow.c: Likewise.
2579 * infrun.c: Likewise.
2580 * interps.c: Likewise.
2581 * iq2000-tdep.c: Likewise.
2582 * irix5-nat.c: Likewise.
2583 * jv-exp.y: Likewise.
2584 * jv-lang.c: Likewise.
2585 * jv-typeprint.c: Likewise.
2586 * jv-valprint.c: Likewise.
2587 * language.c: Likewise.
2588 * linux-fork.c: Likewise.
2589 * linux-nat.c: Likewise.
2590 * lm32-tdep.c: Likewise.
2591 * m2-exp.y: Likewise.
2592 * m2-typeprint.c: Likewise.
2593 * m32c-tdep.c: Likewise.
2594 * m32r-linux-nat.c: Likewise.
2595 * m32r-linux-tdep.c: Likewise.
2596 * m32r-rom.c: Likewise.
2597 * m32r-tdep.c: Likewise.
2598 * m68hc11-tdep.c: Likewise.
2599 * m68k-tdep.c: Likewise.
2600 * m68kbsd-tdep.c: Likewise.
2601 * m68klinux-nat.c: Likewise.
2602 * m68klinux-tdep.c: Likewise.
2603 * m88k-tdep.c: Likewise.
2604 * machoread.c: Likewise.
2605 * macrocmd.c: Likewise.
2606 * main.c: Likewise.
2607 * mdebugread.c: Likewise.
2608 * mem-break.c: Likewise.
2609 * memattr.c: Likewise.
2610 * memory-map.c: Likewise.
2611 * mep-tdep.c: Likewise.
2612 * mi/mi-cmd-break.c: Likewise.
2613 * mi/mi-cmd-disas.c: Likewise.
2614 * mi/mi-cmd-env.c: Likewise.
2615 * mi/mi-cmd-stack.c: Likewise.
2616 * mi/mi-cmd-var.c: Likewise.
2617 * mi/mi-cmds.c: Likewise.
2618 * mi/mi-console.c: Likewise.
2619 * mi/mi-getopt.c: Likewise.
2620 * mi/mi-interp.c: Likewise.
2621 * mi/mi-main.c: Likewise.
2622 * mi/mi-parse.c: Likewise.
2623 * microblaze-rom.c: Likewise.
2624 * microblaze-tdep.c: Likewise.
2625 * mingw-hdep.c: Likewise.
2626 * minidebug.c: Likewise.
2627 * minsyms.c: Likewise.
2628 * mips-irix-tdep.c: Likewise.
2629 * mips-linux-tdep.c: Likewise.
2630 * mips-tdep.c: Likewise.
2631 * mips64obsd-tdep.c: Likewise.
2632 * mipsnbsd-tdep.c: Likewise.
2633 * mipsread.c: Likewise.
2634 * mn10300-linux-tdep.c: Likewise.
2635 * mn10300-tdep.c: Likewise.
2636 * monitor.c: Likewise.
2637 * moxie-tdep.c: Likewise.
2638 * mt-tdep.c: Likewise.
2639 * nat/linux-btrace.c: Likewise.
2640 * nat/linux-osdata.c: Likewise.
2641 * nat/linux-procfs.c: Likewise.
2642 * nat/linux-ptrace.c: Likewise.
2643 * nat/linux-waitpid.c: Likewise.
2644 * nbsd-tdep.c: Likewise.
2645 * nios2-linux-tdep.c: Likewise.
2646 * nto-procfs.c: Likewise.
2647 * nto-tdep.c: Likewise.
2648 * objc-lang.c: Likewise.
2649 * objfiles.c: Likewise.
2650 * opencl-lang.c: Likewise.
2651 * osabi.c: Likewise.
2652 * osdata.c: Likewise.
2653 * p-exp.y: Likewise.
2654 * p-lang.c: Likewise.
2655 * p-typeprint.c: Likewise.
2656 * parse.c: Likewise.
2657 * posix-hdep.c: Likewise.
2658 * ppc-linux-nat.c: Likewise.
2659 * ppc-sysv-tdep.c: Likewise.
2660 * ppcfbsd-tdep.c: Likewise.
2661 * ppcnbsd-tdep.c: Likewise.
2662 * ppcobsd-tdep.c: Likewise.
2663 * printcmd.c: Likewise.
2664 * procfs.c: Likewise.
2665 * prologue-value.c: Likewise.
2666 * python/py-auto-load.c: Likewise.
2667 * python/py-gdb-readline.c: Likewise.
2668 * ravenscar-thread.c: Likewise.
2669 * regcache.c: Likewise.
2670 * registry.c: Likewise.
2671 * remote-fileio.c: Likewise.
2672 * remote-m32r-sdi.c: Likewise.
2673 * remote-mips.c: Likewise.
2674 * remote-notif.c: Likewise.
2675 * remote-sim.c: Likewise.
2676 * remote.c: Likewise.
2677 * reverse.c: Likewise.
2678 * rs6000-aix-tdep.c: Likewise.
2679 * ser-base.c: Likewise.
2680 * ser-go32.c: Likewise.
2681 * ser-mingw.c: Likewise.
2682 * ser-pipe.c: Likewise.
2683 * ser-tcp.c: Likewise.
2684 * ser-unix.c: Likewise.
2685 * serial.c: Likewise.
2686 * sh-tdep.c: Likewise.
2687 * sh64-tdep.c: Likewise.
2688 * shnbsd-tdep.c: Likewise.
2689 * skip.c: Likewise.
2690 * sol-thread.c: Likewise.
2691 * solib-dsbt.c: Likewise.
2692 * solib-frv.c: Likewise.
2693 * solib-osf.c: Likewise.
2694 * solib-som.c: Likewise.
2695 * solib-spu.c: Likewise.
2696 * solib-target.c: Likewise.
2697 * solib.c: Likewise.
2698 * somread.c: Likewise.
2699 * source.c: Likewise.
2700 * sparc-nat.c: Likewise.
2701 * sparc-sol2-tdep.c: Likewise.
2702 * sparc-tdep.c: Likewise.
2703 * sparc64-tdep.c: Likewise.
2704 * sparc64fbsd-tdep.c: Likewise.
2705 * sparc64nbsd-tdep.c: Likewise.
2706 * sparcnbsd-tdep.c: Likewise.
2707 * spu-linux-nat.c: Likewise.
2708 * spu-multiarch.c: Likewise.
2709 * spu-tdep.c: Likewise.
2710 * stabsread.c: Likewise.
2711 * stack.c: Likewise.
2712 * std-regs.c: Likewise.
2713 * symfile.c: Likewise.
2714 * symmisc.c: Likewise.
2715 * symtab.c: Likewise.
2716 * target.c: Likewise.
2717 * thread.c: Likewise.
2718 * tilegx-linux-nat.c: Likewise.
2719 * tilegx-tdep.c: Likewise.
2720 * top.c: Likewise.
2721 * tracepoint.c: Likewise.
2722 * tui/tui-command.c: Likewise.
2723 * tui/tui-data.c: Likewise.
2724 * tui/tui-disasm.c: Likewise.
2725 * tui/tui-file.c: Likewise.
2726 * tui/tui-layout.c: Likewise.
2727 * tui/tui-out.c: Likewise.
2728 * tui/tui-regs.c: Likewise.
2729 * tui/tui-source.c: Likewise.
2730 * tui/tui-stack.c: Likewise.
2731 * tui/tui-win.c: Likewise.
2732 * tui/tui-windata.c: Likewise.
2733 * tui/tui-winsource.c: Likewise.
2734 * typeprint.c: Likewise.
2735 * ui-file.c: Likewise.
2736 * ui-out.c: Likewise.
2737 * user-regs.c: Likewise.
2738 * utils.c: Likewise.
2739 * v850-tdep.c: Likewise.
2740 * valarith.c: Likewise.
2741 * valops.c: Likewise.
2742 * valprint.c: Likewise.
2743 * value.c: Likewise.
2744 * varobj.c: Likewise.
2745 * vax-tdep.c: Likewise.
2746 * vaxnbsd-tdep.c: Likewise.
2747 * vaxobsd-tdep.c: Likewise.
2748 * windows-nat.c: Likewise.
2749 * xcoffread.c: Likewise.
2750 * xml-support.c: Likewise.
2751 * xstormy16-tdep.c: Likewise.
2752 * xtensa-linux-nat.c: Likewise.
2753
dccbb609
GB
27542014-08-07 Gary Benson <gbenson@redhat.com>
2755
2756 * common/common-defs.h: Include gdb_assert.h.
2757 * aarch64-tdep.c: Do not include gdb_assert.h.
2758 * addrmap.c: Likewise.
2759 * aix-thread.c: Likewise.
2760 * alpha-linux-tdep.c: Likewise.
2761 * alpha-mdebug-tdep.c: Likewise.
2762 * alphanbsd-tdep.c: Likewise.
2763 * amd64-nat.c: Likewise.
2764 * amd64-tdep.c: Likewise.
2765 * amd64bsd-nat.c: Likewise.
2766 * amd64fbsd-nat.c: Likewise.
2767 * amd64fbsd-tdep.c: Likewise.
2768 * amd64nbsd-nat.c: Likewise.
2769 * amd64nbsd-tdep.c: Likewise.
2770 * amd64obsd-nat.c: Likewise.
2771 * amd64obsd-tdep.c: Likewise.
2772 * arch-utils.c: Likewise.
2773 * arm-tdep.c: Likewise.
2774 * armbsd-tdep.c: Likewise.
2775 * auxv.c: Likewise.
2776 * bcache.c: Likewise.
2777 * bfin-tdep.c: Likewise.
2778 * blockframe.c: Likewise.
2779 * breakpoint.c: Likewise.
2780 * bsd-kvm.c: Likewise.
2781 * bsd-uthread.c: Likewise.
2782 * buildsym.c: Likewise.
2783 * c-exp.y: Likewise.
2784 * c-lang.c: Likewise.
2785 * charset.c: Likewise.
2786 * cleanups.c: Likewise.
2787 * cli-out.c: Likewise.
2788 * cli/cli-decode.c: Likewise.
2789 * cli/cli-dump.c: Likewise.
2790 * cli/cli-logging.c: Likewise.
2791 * cli/cli-script.c: Likewise.
2792 * cli/cli-utils.c: Likewise.
2793 * coffread.c: Likewise.
2794 * common/common-utils.c: Likewise.
2795 * common/queue.h: Likewise.
2796 * common/signals.c: Likewise.
2797 * common/vec.h: Likewise.
2798 * complaints.c: Likewise.
2799 * completer.c: Likewise.
2800 * corelow.c: Likewise.
2801 * cp-abi.c: Likewise.
2802 * cp-name-parser.y: Likewise.
2803 * cp-namespace.c: Likewise.
2804 * cp-support.c: Likewise.
2805 * cris-tdep.c: Likewise.
2806 * dbxread.c: Likewise.
2807 * dictionary.c: Likewise.
2808 * doublest.c: Likewise.
2809 * dsrec.c: Likewise.
2810 * dummy-frame.c: Likewise.
2811 * dwarf2-frame-tailcall.c: Likewise.
2812 * dwarf2-frame.c: Likewise.
2813 * dwarf2expr.c: Likewise.
2814 * dwarf2loc.c: Likewise.
2815 * dwarf2read.c: Likewise.
2816 * eval.c: Likewise.
2817 * event-loop.c: Likewise.
2818 * exceptions.c: Likewise.
2819 * expprint.c: Likewise.
2820 * f-valprint.c: Likewise.
2821 * fbsd-nat.c: Likewise.
2822 * findvar.c: Likewise.
2823 * frame-unwind.c: Likewise.
2824 * frame.c: Likewise.
2825 * frv-tdep.c: Likewise.
2826 * gcore.c: Likewise.
2827 * gdb-dlfcn.c: Likewise.
2828 * gdb_bfd.c: Likewise.
2829 * gdbarch.c: Likewise.
2830 * gdbarch.sh: Likewise.
2831 * gdbtypes.c: Likewise.
2832 * gnu-nat.c: Likewise.
2833 * gnu-v3-abi.c: Likewise.
2834 * go-lang.c: Likewise.
2835 * guile/scm-exception.c: Likewise.
2836 * guile/scm-gsmob.c: Likewise.
2837 * guile/scm-lazy-string.c: Likewise.
2838 * guile/scm-math.c: Likewise.
2839 * guile/scm-pretty-print.c: Likewise.
2840 * guile/scm-safe-call.c: Likewise.
2841 * guile/scm-utils.c: Likewise.
2842 * guile/scm-value.c: Likewise.
2843 * h8300-tdep.c: Likewise.
2844 * hppa-hpux-nat.c: Likewise.
2845 * hppa-tdep.c: Likewise.
2846 * hppanbsd-tdep.c: Likewise.
2847 * hppaobsd-tdep.c: Likewise.
2848 * i386-darwin-nat.c: Likewise.
2849 * i386-darwin-tdep.c: Likewise.
2850 * i386-nto-tdep.c: Likewise.
2851 * i386-tdep.c: Likewise.
2852 * i386bsd-nat.c: Likewise.
2853 * i386fbsd-tdep.c: Likewise.
2854 * i386gnu-nat.c: Likewise.
2855 * i386nbsd-tdep.c: Likewise.
2856 * i386obsd-tdep.c: Likewise.
2857 * i387-tdep.c: Likewise.
2858 * ia64-libunwind-tdep.c: Likewise.
2859 * ia64-tdep.c: Likewise.
2860 * inf-ptrace.c: Likewise.
2861 * inf-ttrace.c: Likewise.
2862 * infcall.c: Likewise.
2863 * infcmd.c: Likewise.
2864 * infrun.c: Likewise.
2865 * inline-frame.c: Likewise.
2866 * interps.c: Likewise.
2867 * jv-lang.c: Likewise.
2868 * jv-typeprint.c: Likewise.
2869 * linux-fork.c: Likewise.
2870 * linux-nat.c: Likewise.
2871 * linux-thread-db.c: Likewise.
2872 * m32c-tdep.c: Likewise.
2873 * m32r-linux-nat.c: Likewise.
2874 * m32r-tdep.c: Likewise.
2875 * m68k-tdep.c: Likewise.
2876 * m68kbsd-nat.c: Likewise.
2877 * m68kbsd-tdep.c: Likewise.
2878 * m88k-tdep.c: Likewise.
2879 * machoread.c: Likewise.
2880 * macroexp.c: Likewise.
2881 * macrotab.c: Likewise.
2882 * maint.c: Likewise.
2883 * mdebugread.c: Likewise.
2884 * memory-map.c: Likewise.
2885 * mep-tdep.c: Likewise.
2886 * mi/mi-common.c: Likewise.
2887 * microblaze-tdep.c: Likewise.
2888 * mingw-hdep.c: Likewise.
2889 * mips-linux-nat.c: Likewise.
2890 * mips-linux-tdep.c: Likewise.
2891 * mips-tdep.c: Likewise.
2892 * mips64obsd-tdep.c: Likewise.
2893 * mipsnbsd-tdep.c: Likewise.
2894 * mn10300-linux-tdep.c: Likewise.
2895 * mn10300-tdep.c: Likewise.
2896 * moxie-tdep.c: Likewise.
2897 * mt-tdep.c: Likewise.
2898 * nat/linux-btrace.c: Likewise.
2899 * nat/linux-osdata.c: Likewise.
2900 * nat/linux-ptrace.c: Likewise.
2901 * nat/mips-linux-watch.c: Likewise.
2902 * nios2-linux-tdep.c: Likewise.
2903 * nios2-tdep.c: Likewise.
2904 * objc-lang.c: Likewise.
2905 * objfiles.c: Likewise.
2906 * obsd-nat.c: Likewise.
2907 * opencl-lang.c: Likewise.
2908 * osabi.c: Likewise.
2909 * parse.c: Likewise.
2910 * ppc-linux-nat.c: Likewise.
2911 * ppc-sysv-tdep.c: Likewise.
2912 * ppcfbsd-nat.c: Likewise.
2913 * ppcfbsd-tdep.c: Likewise.
2914 * ppcnbsd-nat.c: Likewise.
2915 * ppcnbsd-tdep.c: Likewise.
2916 * ppcobsd-nat.c: Likewise.
2917 * ppcobsd-tdep.c: Likewise.
2918 * printcmd.c: Likewise.
2919 * procfs.c: Likewise.
2920 * prologue-value.c: Likewise.
2921 * psymtab.c: Likewise.
2922 * python/py-lazy-string.c: Likewise.
2923 * python/py-value.c: Likewise.
2924 * regcache.c: Likewise.
2925 * reggroups.c: Likewise.
2926 * registry.c: Likewise.
2927 * remote-sim.c: Likewise.
2928 * remote.c: Likewise.
2929 * rs6000-aix-tdep.c: Likewise.
2930 * rs6000-tdep.c: Likewise.
2931 * s390-linux-tdep.c: Likewise.
2932 * score-tdep.c: Likewise.
2933 * ser-base.c: Likewise.
2934 * ser-mingw.c: Likewise.
2935 * sh-tdep.c: Likewise.
2936 * sh64-tdep.c: Likewise.
2937 * solib-darwin.c: Likewise.
2938 * solib-spu.c: Likewise.
2939 * solib-svr4.c: Likewise.
2940 * source.c: Likewise.
2941 * sparc-nat.c: Likewise.
2942 * sparc-sol2-tdep.c: Likewise.
2943 * sparc-tdep.c: Likewise.
2944 * sparc64-sol2-tdep.c: Likewise.
2945 * sparc64-tdep.c: Likewise.
2946 * sparc64fbsd-tdep.c: Likewise.
2947 * sparc64nbsd-tdep.c: Likewise.
2948 * sparc64obsd-tdep.c: Likewise.
2949 * sparcnbsd-tdep.c: Likewise.
2950 * sparcobsd-tdep.c: Likewise.
2951 * spu-multiarch.c: Likewise.
2952 * spu-tdep.c: Likewise.
2953 * stabsread.c: Likewise.
2954 * stack.c: Likewise.
2955 * symfile.c: Likewise.
2956 * symtab.c: Likewise.
2957 * target-descriptions.c: Likewise.
2958 * target-memory.c: Likewise.
2959 * target.c: Likewise.
2960 * tic6x-linux-tdep.c: Likewise.
2961 * tic6x-tdep.c: Likewise.
2962 * tilegx-linux-nat.c: Likewise.
2963 * tilegx-tdep.c: Likewise.
2964 * top.c: Likewise.
2965 * tramp-frame.c: Likewise.
2966 * tui/tui-out.c: Likewise.
2967 * tui/tui-winsource.c: Likewise.
2968 * ui-out.c: Likewise.
2969 * user-regs.c: Likewise.
2970 * utils.c: Likewise.
2971 * v850-tdep.c: Likewise.
2972 * valops.c: Likewise.
2973 * value.c: Likewise.
2974 * varobj.c: Likewise.
2975 * vax-nat.c: Likewise.
2976 * xml-syscall.c: Likewise.
2977 * xml-tdesc.c: Likewise.
2978 * xstormy16-tdep.c: Likewise.
2979 * xtensa-linux-nat.c: Likewise.
2980 * xtensa-tdep.c: Likewise.
2981
e76df0d0
GB
29822014-08-07 Gary Benson <gbenson@redhat.com>
2983
2984 * common/common-defs.h: Include common-utils.h.
2985 * defs.h: Do not include common-utils.h.
2986 * common/gdb_assert.h: Likewise.
2987 * darwin-nat.h: Likewise.
2988 * nat/linux-btrace.c: Likewise.
2989 * target/waitstatus.h: Likewise.
2990
4cb9c816
GB
29912014-08-07 Gary Benson <gbenson@redhat.com>
2992
2993 * common/common-defs.h: Include ptid.h.
2994 * defs.h: Do not include ptid.h.
2995 * inferior.h: Likewise.
2996 * infrun.h: Likewise.
2997 * nat/linux-btrace.h: Likewise.
2998 * nat/linux-osdata.h: Likewise.
2999 * target/waitstatus.h: Likewise.
3000
3995eeee
GB
30012014-08-07 Gary Benson <gbenson@redhat.com>
3002
3003 * common/common-defs.h: Include gdb_locale.h.
3004 * defs.h: Do not include gdb_locale.h.
3005
cb9f1a9b
GB
30062014-08-07 Gary Benson <gbenson@redhat.com>
3007
3008 * common/common-defs.h: Include gdb/signals.h.
3009 * defs.h: Do not include gdb/signals.h.
3010
a5fceff8
GB
30112014-08-07 Gary Benson <gbenson@redhat.com>
3012
3013 * common/common-defs.h: Include pathmax.h.
3014 * defs.h: Do not include pathmax.h.
3015
b9391142
GB
30162014-08-07 Gary Benson <gbenson@redhat.com>
3017
3018 * common/common-defs.h: Include libiberty.h.
3019 * defs.h: Do not include libiberty.h.
3020 * common/queue.h: Likewise.
3021 * cp-name-parser.y: Likewise.
3022 * mi/mi-cmd-catch.c: Likewise.
3023 * python/python.c: Likewise.
3024
0e443c87
GB
30252014-08-07 Gary Benson <gbenson@redhat.com>
3026
3027 * common/common-defs.h: Include ansidecl.h.
3028 * defs.h: Do not include ansidecl.h.
3029 * common/buffer.h: Likewise.
3030 * common/common-utils.h: Likewise.
3031
8ebb3f56
GB
30322014-08-07 Gary Benson <gbenson@redhat.com>
3033
3034 * common/common-defs.h: Include stddef.h.
3035 * defs.h: Do not include stddef.h.
3036 * common/common-utils.h: Likewise.
3037 * amd64fbsd-nat.c: Likewise.
3038 * bcache.c: Likewise.
3039 * charset.c: Likewise.
3040 * common/buffer.h: Likewise.
3041 * common/vec.h: Likewise.
3042 * i386bsd-nat.c: Likewise.
3043 * nat/linux-btrace.h: Likewise.
3044 * ppcfbsd-nat.c: Likewise.
3045 * ppcnbsd-tdep.h: Likewise.
3046 * ppcobsd-nat.c: Likewise.
3047 * ppcobsd-tdep.h: Likewise.
3048 * python/py-gdb-readline.c: Likewise.
3049
8980bdf6
GB
30502014-08-07 Gary Benson <gbenson@redhat.com>
3051
3052 * common/common-defs.h: Include stdarg.h.
3053 * defs.h: Do not include stdarg.h.
3054 * ada-lang.c: Likewise.
3055 * common/common-utils.h: Likewise.
3056 * guile/scm-string.c: Likewise.
3057 * guile/scm-utils.c: Likewise.
3058 * m32c-tdep.c: Likewise.
3059
d7096f71
GB
30602014-08-07 Gary Benson <gbenson@redhat.com>
3061
3062 * common/common-defs.h: Include stdlib.h.
3063 * defs.h: Do not include stdlib.h.
3064 * addrmap.c: Likewise.
3065 * bcache.c: Likewise.
3066 * common/buffer.c: Likewise.
3067 * common/common-utils.c: Likewise.
3068 * cp-name-parser.y: Likewise.
3069 * go32-nat.c: Likewise.
3070 * mn10300-linux-tdep.c: Likewise.
3071 * nat/linux-osdata.c: Likewise.
3072 * tui/tui.c: Likewise.
3073 * windows-nat.c: Likewise.
3074
d02f550d
GB
30752014-08-07 Gary Benson <gbenson@redhat.com>
3076
3077 * common/common-defs.h: Include stdio.h.
3078 * defs.h: Do not include stdio.h.
3079 * ada-lang.c: Likewise.
3080 * common/buffer.c: Likewise.
3081 * common/common-utils.c: Likewise.
3082 * cp-name-parser.y: Likewise.
3083 * gnu-nat.c: Likewise.
3084 * go32-nat.c: Likewise.
3085 * i386gnu-nat.c: Likewise.
3086 * proc-api.c: Likewise.
3087 * proc-events.c: Likewise.
3088 * proc-flags.c: Likewise.
3089 * proc-why.c: Likewise.
3090 * python/python-internal.h: Likewise.
3091 * target-memory.c: Likewise.
3092 * tui/tui-io.c: Likewise.
3093 * tui/tui.c: Likewise.
3094
b6d7a4bf
SM
30952014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3096
3097 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3098 (scan_dyntag_auxv): Same.
3099
af19829b
YQ
31002014-08-06 Yao Qi <yao@codesourcery.com>
3101
3102 * amd64-linux-nat.c: Remove duplicated include
3103 "x86-linux-nat.h".
3104 * i386-linux-nat.c: Likewise.
3105
8e07a239
YQ
31062014-08-06 Yao Qi <yao@codesourcery.com>
3107
3108 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3109 operand" with "Special opcode" in comments.
3110
7bfe8241
GB
31112014-08-05 Gary Benson <gbenson@redhat.com>
3112
3113 * interps.c (initialize_interps): Remove prototype.
3114 (interpreter_initialized): Remove static global.
3115 (interp_add): Do not call initialize_interps.
3116 (initialize_interps): Remove function.
3117
d6c95504
GB
31182014-08-05 Gary Benson <gbenson@redhat.com>
3119
3120 * utils.c (vwarning): Remove spurious va_end.
3121
241fd515
AM
31222014-08-05 Alan Modra <amodra@gmail.com>
3123
3124 * charset.c (convert_between_encodings): Cast result of obstack_base.
3125 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3126 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3127 (read_unwind_info): Use size_t for some locals.
3128 * jit.c (finalize_symtab): Likewise.
3129 * utils.c (hashtab_obstack_allocate): Likewise.
3130 * symmisc.c (print_objfile_statistics): Update format strings.
3131
dc304a94
JK
31322014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3133
3134 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3135 (Changes in GDB 7.8): ... here.
3136
3cecbbbe
TT
31372014-08-04 Tom Tromey <tromey@redhat.com>
3138
3139 * target.c (set_targetdebug): New function.
3140 (initialize_targets): Pass set_targetdebug when creating "set
3141 debug target".
3142
6908c509
JB
31432014-08-01 Joel Brobecker <brobecker@adacore.com>
3144
3145 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3146 if detecting a variable-sized field that is not the last field.
3147 Fix struct type length computation.
3148
53e8f97d
JB
31492014-08-01 Joel Brobecker <brobecker@adacore.com>
3150
3151 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3152 Add debug trace.
3153
e068c55d
JB
31542014-08-01 Joel Brobecker <brobecker@adacore.com>
3155
3156 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3157 Remove "+ 8" offset in computation of CHAIN_VMA.
3158
4d4ca2a1
DE
31592014-07-31 Doug Evans <dje@google.com>
3160
3161 * inflow.c (child_terminal_inferior): Add comment.
3162 (child_terminal_ours_for_output): Add comment.
3163 (child_terminal_ours): Add comment.
3164 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3165 (linux_nat_terminal_ours): Add comment.
3166
462f517e
GB
31672014-07-31 Gary Benson <gbenson@redhat.com>
3168
3169 * common/btrace-common.h: Do not include defs.h or server.h.
3170 * nat/mips-linux-watch.h: Likewise.
3171 * gdb-dlfcn.h: Do not include defs.h.
3172 * tracefile.h: Likewise.
3173
74228e77
RM
31742014-07-30 Roland McGrath <mcgrathr@google.com>
3175
3176 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3177
014f9477
TT
31782014-07-30 Tom Tromey <tromey@redhat.com>
3179
3180 * bsd-kvm.c (bsd_kvm_open): Constify.
3181 * corelow.c (core_open): Constify.
3182 * ctf.c (ctf_open): Constify.
3183 * dbug-rom.c (dbug_open): Constify.
3184 * exec.c (exec_open): Constify.
3185 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3186 * microblaze-rom.c (picobug_open): Constify.
3187 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3188 Constify.
3189 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3190 * record-btrace.c (record_btrace_open): Constify.
3191 * record-full.c (record_full_core_open_1, record_full_open_1)
3192 (record_full_open): Constify.
3193 * remote-m32r-sdi.c (m32r_open): Constify.
3194 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3195 (rockhopper_open, lsi_open): Constify.
3196 * remote-sim.c (gdbsim_open): Constify.
3197 * remote.c (remote_open, extended_remote_open, remote_open_1):
3198 Constify.
3199 * target.h (struct target_ops) <to_open>: Make "arg" const.
3200 * tracefile-tfile.c (tfile_open): Constify.
3201
e799154c
TT
32022014-07-30 Tom Tromey <tromey@redhat.com>
3203
3204 * breakpoint.c (map_breakpoint_numbers): Update.
3205 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3206 (get_number_const): New function.
3207 (get_number): Rewrite using get_number_const.
3208 (init_number_or_range): Make "string" const.
3209 (number_is_in_list): Make "list" const.
3210 * cli/cli-utils.h (get_number_const): Declare.
3211 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3212 (init_number_or_range, number_is_in_list): Update.
3213 * printcmd.c (map_display_numbers): Update.
3214 * value.c (value_from_history_ref): Constify.
3215 * value.h (value_from_history_ref): Update.
3216
5f08566b
TT
32172014-07-30 Tom Tromey <tromey@redhat.com>
3218
3219 * corefile.c (hook_type, call_extra_exec_file_hooks)
3220 (specify_exec_file_hook): Constify.
3221 * exec.c (exec_file_attach): Make "filename" const.
3222 * gdbcore.h (deprecated_exec_file_display_hook)
3223 (specify_exec_file_hook, exec_file_attach): Constify.
3224 * main.c (captured_main): Use catch_command_errors_const.
3225
8981c758
TT
32262014-07-30 Tom Tromey <tromey@redhat.com>
3227
3228 * target.c (open_target): New function.
3229 (add_target_with_completer, add_deprecated_target_alias): Use
3230 set_cmd_sfunc, set_cmd_context.
3231 (debug_to_open): Remove.
3232 (setup_target_debug): Update.
3233
a1c7835a
YQ
32342014-07-30 Yao Qi <yao@codesourcery.com>
3235
3236 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3237 comments.
3238 * parse.c (exp_iterate): Update comments.
3239
976411d6
GB
32402014-07-30 Gary Benson <gbenson@redhat.com>
3241
3242 * common/common-defs.h: New file.
3243 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3244 * defs.h: Include common-defs.h.
3245 Do not include config.h or build-gnulib/config.h.
3246
5d4848a4
GB
32472014-07-30 Gary Benson <gbenson@redhat.com>
3248
3249 * common/common-utils.h: Do not include config.h.
3250 * nat/linux-btrace.h: Likewise.
3251
d41f6d8e
GB
32522014-07-30 Gary Benson <gbenson@redhat.com>
3253
3254 * btrace.c: Include defs.h.
3255 * common/ptid.c: Include defs.h or server.h as appropriate.
3256 * nat/mips-linux-watch.c: Likewise.
3257
84202f9c
TT
32582014-07-29 Tom Tromey <tromey@redhat.com>
3259
3260 * target.c (target_is_pushed): Simplify.
3261
2530441c
JB
32622014-07-29 Joel Brobecker <brobecker@adacore.com>
3263
3264 GDB 7.8 released.
3265
7e09a223
YQ
32662014-07-29 Yao Qi <yao@codesourcery.com>
3267
3268 PR gdb/17206
3269 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3270
7ebdbe92
DE
32712014-07-28 Doug Evans <xdje42@gmail.com>
3272
3273 PR guile/17203
3274 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3275 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3276 parameters.
3277
f347ffc9
WN
32782014-07-28 Will Newton <will.newton@linaro.org>
3279
3280 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3281 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3282 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3283 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3284 (THUMB2_EABI_SYSCALL): Likewise.
3285 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3286 struct tramp_frame.
3287 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3288 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3289
37c5f1f7
DE
32902014-07-27 Doug Evans <xdje42@gmail.com>
3291
3292 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3293
0c3abbc7
DE
32942014-07-27 Doug Evans <xdje42@gmail.com>
3295
3296 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3297
e76c5d17
DE
32982014-07-26 Ludovic Courtès <ludo@gnu.org>
3299 Doug Evans <xdje42@gmail.com>
3300
3301 PR guile/17146
3302 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3303 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3304 * configure.ac: Try to use guild to compile an scm file, if it fails
3305 then disable guile support.
3306 * configure: Regenerate.
3307 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3308 GUILE_FILE_LIST.
3309 (GUILE_COMPILED_FILES): New variable.
3310 (GUILE_FILES) Update.
3311 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3312 (stamp-guile): Compile scm files.
3313 * guile/guile.c (boot_guile_support): New function.
3314 (standard_throw_args_p): New function.
3315 (print_standard_throw_error, print_throw_error): New functions.
3316 (handle_boot_error): New function.
3317 (initialize_scheme_side): Rewrite to call boot_guile_support.
3318 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3319 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3320
186fcde0
DE
33212014-07-26 Ludovic Courtès <ludo@gnu.org>
3322 Doug Evans <xdje42@gmail.com>
3323
3324 PR guile/17146
3325 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3326 * guile/lib/gdb/support.scm: New file.
3327 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3328 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3329 All uses updated.
3330 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3331 All uses updated.
3332 (%assert-type): Ditto, and renamed to assert-type.
3333 (%exception-print-style): Delete.
3334
4df42755
DE
33352014-07-26 Doug Evans <xdje42@gmail.com>
3336
3337 PR build/17105
3338 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3339 * configure: Regenerate.
3340 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3341 PYTHON_FILES.
3342 (PYTHON_FILES): New variable.
3343 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3344 (GUILE_FILES): New variable.
3345 (stamp-python, install-python, uninstall-python): Handle empty
3346 file list.
3347 (stamp-guile, install-guile, uninstall-guile): Ditto.
3348
ee7333ae
DE
33492014-07-26 Doug Evans <xdje42@gmail.com>
3350
3351 PR guile/17177
3352 * guile/lib/gdb.scm (pretty-printers): Export.
3353 (set-pretty-printers!): Export.
3354 * guile/lib/gdb/printing.scm (gdb module): Update.
3355 (prepend-pretty-printer!, append-pretty-printer!): Update.
3356 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3357 (pretty_printer_list_var): Delete.
3358 (pretty_printer_list): New static global.
3359 (gdbscm_pretty_printers): New function.
3360 (gdbscm_set_pretty_printers_x): New function.
3361 (ppscm_find_pretty_printer_from_gdb): Update.
3362 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3363 (gdbscm_initialize_pretty_printers): Update.
3364
74edf516
DE
33652014-07-26 Doug Evans <xdje42@gmail.com>
3366
3367 PR 17185
3368 * configure.ac: Add check for header gc/gc.h.
3369 Add check for function setenv.
3370 * configure: Regenerate.
3371 * config.in: Regenerate.
3372 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3373
d54398a7
MR
33742014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3375
3376 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3377 variation in gdbarch matching.
3378
ab16fce8
TT
33792014-07-25 Tom Tromey <tromey@redhat.com>
3380
3381 * exec.c (using_exec_ops): Remove.
3382 (exec_close_1): Update. Remove extraneous block, reindent.
3383 (add_target_sections): Use target_is_pushed.
3384
88056fbb
PA
33852014-07-25 Pedro Alves <palves@redhat.com>
3386
3387 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3388 * monitor.c (monitor_create_inferior): Likewise.
3389 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3390 * remote-sim.c (gdbsim_create_inferior): Likewise.
3391 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3392 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3393 * windows-nat.c (do_initial_windows_stuff): Likewise.
3394
70509625
PA
33952014-07-25 Pedro Alves <palves@redhat.com>
3396
3397 * NEWS: Mention signal passing and "signal" command changes.
3398 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3399 comment.
3400 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3401 call.
3402 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3403 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3404 (jump_command): Adjust clear_proceed_status call.
3405 (signal_command): Warn if other thread that are resumed have
3406 signals that will be delivered. Adjust clear_proceed_status call.
3407 (until_next_command, finish_command)
3408 (proceed_after_attach_callback, attach_command_post_wait)
3409 (attach_command): Adjust clear_proceed_status call.
3410 * infrun.c (proceed_after_vfork_done): Likewise.
3411 (proceed_after_attach_callback): Adjust comment.
3412 (clear_proceed_status_thread): Clear stop_signal if not in pass
3413 state.
3414 (clear_proceed_status_callback): Delete.
3415 (clear_proceed_status): New 'step' parameter. Only clear the
3416 proceed status of threads the command being prepared is about to
3417 resume.
3418 (proceed): If passed in an explicit signal, override stop_signal
3419 with it. Don't pass the last stop signal to the thread we're
3420 resuming.
3421 (init_wait_for_inferior): Adjust clear_proceed_status call.
3422 (switch_back_to_stepped_thread): Clear the signal if it should not
3423 be passed.
3424 * infrun.h (clear_proceed_status): New 'step' parameter.
3425 (user_visible_resume_ptid): Add comment.
3426 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3427 signal is in pass state.
3428 * remote.c (append_pending_thread_resumptions): Likewise.
3429 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3430
d8be2939
TT
34312014-07-25 Tom Tromey <tromey@redhat.com>
3432
3433 * target.h (target_stopped_data_address)
3434 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3435 parentheses.
3436
7d0d9d2b
PL
34372014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3438
3439 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3440 comments.
3441 (avr_pointer_to_address): Likewise.
3442
e9e7f724
TT
34432014-07-24 Tom Tromey <tromey@redhat.com>
3444
3445 * monitor.c (compile_pattern): Update.
3446 * target.h (struct target_ops) <to_shortname, to_longname,
3447 to_doc>: Now const.
3448
1947513d
TT
34492014-07-24 Tom Tromey <tromey@redhat.com>
3450
3451 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3452 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3453 (add_info_alias, add_com): Make "doc" const.
3454 (print_doc_line): Make "str" const.
3455 (delete_cmd): Update.
3456 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3457 (print_doc_line): Update.
3458 * cli/cli-script.c (document_command): Update.
3459 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3460 (add_com, add_info, add_info_alias): Update.
3461 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3462 * python/py-cmd.c (cmdpy_destroyer): Update.
3463
64e61d29
TT
34642014-07-24 Tom Tromey <tromey@redhat.com>
3465
3466 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3467 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3468 (help_cmd_list): Constify.
3469 (lookup_cmd): Update.
3470 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3471 const.
3472 (help_cmd_list, apropos_cmd): Update.
3473 * cli/cli-script.c (show_user): Update.
3474 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3475 * cli/cli-setshow.h (cmd_show_list): Update.
3476 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3477 (cmd_show_list): Update.
3478 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3479 * python/py-cmd.c (cmdpy_destroyer): Update.
3480
429e55ea
TT
34812014-07-24 Tom Tromey <tromey@redhat.com>
3482
3483 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3484 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3485 const.
3486 * command.h (deprecate_cmd): Update.
3487 * maint.c (maintenance_do_deprecate): Add casts.
3488
64669f3b
TT
34892014-07-24 Tom Tromey <tromey@redhat.com>
3490
3491 * cli/cli-decode.c (help_cmd): Make parameter "const".
3492 * cli/cli-decode.h (help_cmd): Update.
3493
d3d3328b
TT
34942014-07-24 Tom Tromey <tromey@redhat.com>
3495
3496 * stack.c (up_silently_base, down_silently_base): Make argument
3497 const.
3498
414842dc
TT
34992014-07-24 Tom Tromey <tromey@redhat.com>
3500
3501 * solib.c (solib_add): Make "pattern" const.
3502 * solib.h (solib_add): Update.
3503
baa336ce
TT
35042014-07-24 Tom Tromey <tromey@redhat.com>
3505
3506 * remote.c (remote_serial_open, print_packet, putpkt)
3507 (putpkt_binary): Constify.
3508 * remote.h (putpkt): Update.
3509
5a19e2d0
TT
35102014-07-24 Tom Tromey <tromey@redhat.com>
3511
3512 * monitor.c (monitor_open): Make "args" const.
3513 * monitor.h (monitor_open): Update.
3514
fc4baa5e
TT
35152014-07-24 Tom Tromey <tromey@redhat.com>
3516
3517 * maint.c (match_bfd_flags): Make "string" const.
3518 (print_bfd_section_info): Remove casts.
3519 (print_objfile_section_info): Make "string" const.
3520
0d5f0dbe
TT
35212014-07-24 Tom Tromey <tromey@redhat.com>
3522
3523 * inf-child.c (inf_child_open_target): Make "arg" const.
3524 * inf-child.h (inf_child_open_target): Update.
3525
41c77899
TT
35262014-07-24 Tom Tromey <tromey@redhat.com>
3527
3528 * environ.c (unset_in_environ): Make "var" const.
3529 * environ.h (unset_in_environ): Update.
3530
93db0d79
TT
35312014-07-24 Tom Tromey <tromey@redhat.com>
3532
3533 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3534 Make "cmd" const.
3535 (scan_filename_with_cleanup): Likewise.
3536 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3537 Make arguments const.
3538 (restore_command): Update.
3539
36d6eb95
PA
35402014-07-24 Pedro Alves <palves@redhat.com>
3541
3542 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3543
8009206a
TT
35442014-07-24 Tom Tromey <tromey@redhat.com>
3545 Gary Benson <gbenson@redhat.com>
3546
3547 * nat/linux-ptrace.c (additional_flags): New global.
3548 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3549 additional_flags; don't check GDBSERVER.
3550 (linux_ptrace_set_additional_flags): New function.
3551 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3552 Declare.
3553 * linux-nat.c (_initialize_linux_nat): Call
3554 linux_ptrace_set_additional_flags.
3555
a7068b60
TT
35562014-07-24 Tom Tromey <tromey@redhat.com>
3557
3558 * make-target-delegates (munge_type, write_debugmethod): New
3559 functions.
3560 (debug_names): New global.
3561 ($TARGET_DEBUG_PRINTER): New global.
3562 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3563 name.
3564 Write debug methods. Generate init_debug_target.
3565 * target-debug.h: New file.
3566 * target-delegates.c: Rebuild.
3567 * target.c: Include target-debug.h.
3568 (debug_target): Hoist definition.
3569 (target_kill, target_get_section_table, target_memory_map)
3570 (target_flash_erase, target_flash_done, target_detach)
3571 (target_disconnect, target_wait, target_resume)
3572 (target_pass_signals, target_program_signals, target_follow_fork)
3573 (target_mourn_inferior, target_search_memory)
3574 (target_thread_address_space, target_close)
3575 (target_find_new_threads, target_core_of_thread)
3576 (target_verify_memory, target_insert_mask_watchpoint)
3577 (target_remove_mask_watchpoint): Remove targetdebug code.
3578 (debug_to_post_attach, debug_to_prepare_to_store)
3579 (debug_to_files_info, debug_to_insert_breakpoint)
3580 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3581 (debug_to_region_ok_for_hw_watchpoint)
3582 (debug_to_can_accel_watchpoint_condition)
3583 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3584 (debug_to_watchpoint_addr_within_range)
3585 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3586 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3587 (debug_to_terminal_init, debug_to_terminal_inferior)
3588 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3589 (debug_to_terminal_save_ours, debug_to_terminal_info)
3590 (debug_to_load, debug_to_post_startup_inferior)
3591 (debug_to_insert_fork_catchpoint)
3592 (debug_to_remove_fork_catchpoint)
3593 (debug_to_insert_vfork_catchpoint)
3594 (debug_to_remove_vfork_catchpoint)
3595 (debug_to_insert_exec_catchpoint)
3596 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3597 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3598 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3599 (setup_target_debug): Call init_debug_target.
3600 * target.h (TARGET_DEBUG_PRINTER): New macro.
3601 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3602 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3603
2c51604d
GB
36042014-07-24 Gary Benson <gbenson@redhat.com>
3605
3606 * exceptions.h (throw_vfatal): Renamed to...
3607 (throw_vquit): New declaration.
3608 (throw_quit): Likewise.
3609 * exceptions.c (throw_vfatal): Renamed to...
3610 (throw_vquit): New function.
3611 (throw_quit): Likewise.
3612 (throw_error): Call throw_verror rather than throw_it.
3613 * utils.h (vfatal): Removed.
3614 (fatal): Likewise.
3615 * utils.c (vfatal): Removed.
3616 (fatal): Likewise.
3617 (internal_verror): Replaced call to fatal with call to throw_quit.
3618 (quit): Replaced calls to fatal with calls to throw_quit.
3619
34211963
ME
36202014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3621
3622 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3623 target_read_code.
3624
a52b4d3e
ME
36252014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3626
3627 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3628 less than zero in conditional expression.
3629
a8bdc56b
TT
36302014-07-23 Tom Tromey <tromey@redhat.com>
3631
3632 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3633 ($INTRO_PART): Don't match whitespace.
3634 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3635 argument matching.
3636 ($METHOD): Add $METHOD_TRAILER.
3637 (trim): Rewrite.
3638 (scan_target_h): New sub.
3639 Change main loop not to collect state.
3640 * target-delegates.c: Rebuild.
3641
91b52240
GB
36422014-07-23 Gary Benson <gbenson@redhat.com>
3643
3644 * cp-support.c (gdb_demangle): Fix build on systems without
3645 sigaltstack.
3646
45326f6f
JK
36472014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3648
3649 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3650 for reference entry value target data value.
3651
e214cf6c
JK
36522014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3653
3654 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3655 value_available_contents_eq.
3656
bddbbedd
PA
36572014-07-22 Pedro Alves <palves@redhat.com>
3658
3659 * value.c (allocate_optimized_out_value): Don't mark value as
3660 non-lazy.
3661
45c71484
JW
36622014-07-22 Jiong Wang <jiong.wang@arm.com>
3663
3664 * MAINTAINERS (Write After Approval): Update my email address.
3665
9597b22a
DE
36662014-07-20 Doug Evans <dje@google.com>
3667
3668 PR server/17147
3669 * remote.c (putpkt_binary): Add text to error message.
3670
91101fe5
YQ
36712014-07-20 Yao Qi <yao@codesourcery.com>
3672
3673 * eval.c: Remove "Chill" from comments.
3674 * gdbtypes.h: Likewise.
3675 * symtab.h: Likewise.
3676
c9402c95
YQ
36772014-07-20 Yao Qi <yao@codesourcery.com>
3678
3679 * std-operator.def: Update comments to TERNOP_SLICE.
3680
ae8fddda
YQ
36812014-07-20 Yao Qi <yao@codesourcery.com>
3682
3683 * std-operator.def: Remove BINOP_RANGE.
3684 * breakpoint.c (watchpoint_exp_is_const): Update.
3685 * expprint.c (dump_subexp_body_standard): Likewise.
3686 * eval.c (init_array_element): Remove dead code.
3687 (evaluate_subexp_standard): Likewise.
3688
9c816640
YQ
36892014-07-20 Yao Qi <yao@codesourcery.com>
3690
3691 * std-operator.def: Remove BINOP_IN.
3692 * breakpoint.c (watchpoint_exp_is_const): Update.
3693 * eval.c (evaluate_subexp_standard): Likewise.
3694 * expprint.c (dump_subexp_body_standard): Likewise.
3695
164224e9
ME
36962014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3697
3698 * microblaze-tdep.c (microblaze_register_names): Add
3699 the rshr and rslr register names.
3700 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3701 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3702 Use of tdesc_numbered_register. Use of
3703 microblaze_register_g_packet_guesses. Use of
3704 tdesc_use_registers. Use of set_gdbarch_register_type.
3705 (microblaze_register_g_packet_guesses): New.
3706 * microblaze-tdep.h (microblaze_reg_num): Add
3707 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3708 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3709 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3710 * features/microblaze-core.xml: New file.
3711 * features/microblaze-stack-protect.xml: New file.
3712 * features/microblaze-with-stack-protect.c: New file.
3713 * features/microblaze-with-stack-protect.xml: New file.
3714 * features/microblaze.xml: New file.
3715 * features/microblaze.c: New file.
3716 * features/Makefile (microblaze-with-stack-protect): Add
3717 microblaze-with-stack-protect microblaze and microblaze-expedite.
3718 * regformats/microblaze-with-stack-protect.dat: New file.
3719 * regformats/microblaze.dat: New file.
3720 * doc/gdb.texinfo (MicroBlaze Features): Added.
3721
e8b2341c
TT
37222014-07-18 Tom Tromey <tromey@redhat.com>
3723
3724 * exec.c (exec_ops): Now static.
3725 * exec.h (exec_ops): Don't declare.
3726
44e89118
TT
37272014-07-18 Tom Tromey <tromey@redhat.com>
3728
3729 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3730 to find_target_beneath.
3731 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3732 find_target_beneath.
3733 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3734
b0ed115f
TT
37352014-07-18 Tom Tromey <tromey@redhat.com>
3736
3737 PR gdb/17130:
3738 * utils.c (quit): Use target_supports_terminal_ours.
3739 * target.h (target_supports_terminal_ours): Declare.
3740 * target.c (target_supports_delete_record): Don't check
3741 to_delete_record against NULL.
3742 (target_supports_terminal_ours): New function.
3743
e75fdfca
TT
37442014-07-18 Tom Tromey <tromey@redhat.com>
3745
3746 PR gdb/17130:
3747 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3748 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3749 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3750 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3751 * windows-nat.c (windows_xfer_partial): Always delegate.
3752 * record-btrace.c (record_btrace_xfer_partial): Simplify
3753 delegation.
3754 (record_btrace_fetch_registers, record_btrace_store_registers)
3755 (record_btrace_prepare_to_store, record_btrace_resume)
3756 (record_btrace_wait, record_btrace_find_new_threads)
3757 (record_btrace_thread_alive): Likewise.
3758 * procfs.c (procfs_xfer_partial): Always delegate.
3759 * corelow.c (core_xfer_partial): Always delegate.
3760 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3761
83814951
TT
37622014-07-18 Tom Tromey <tromey@redhat.com>
3763
3764 * exec.c (exec_make_note_section): Move earlier.
3765
b8b8facf
DE
37662014-07-17 Doug Evans <dje@google.com>
3767
74b49205 3768 PR gdb/17170
b8b8facf
DE
3769 * maint.c (count_symtabs_and_blocks): Handle NULL
3770 current_program_space.
3771 (report_command_stats): Check global enabled flag in addition to
3772 recorded enabled flag.
3773 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3774
69ff6be5
PA
37752014-07-16 Pedro Alves <palves@redhat.com>
3776
3777 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3778
252db1b5
TT
37792014-07-16 Tom Tromey <tromey@redhat.com>
3780
3781 * target.h (struct target_ops) <to_delete_record>: Reformat
3782 comment.
3783
a432721e
TT
37842014-07-16 Tom Tromey <tromey@redhat.com>
3785
3786 * target-delegates.c: Rebuild.
3787
487d9753
PL
37882014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3789
3790 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3791 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3792 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3793 (avr_pointer_to_address): Likewise.
3794 (avr_address_class_type_flags): New function.
3795 (avr_address_class_type_flags_to_name): Likewise.
3796 (avr_address_class_name_to_type_flags): Likewise.
3797 (avr_gdbarch_init): Set address_class_type_flags,
3798 address_class_type_flags_to_name and
3799 address_class_name_to_type_flags.
3800
57745c90
PA
38012014-07-15 Pedro Alves <palves@redhat.com>
3802
3803 * linux-nat.c (kill_callback): Save errno and work with saved
3804 copy.
3805
2d40be18
SM
38062014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3807
3808 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3809
572f6555
EBM
38102014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3811
3812 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3813 breakpoint support correctly.
3814
cc1c52ad
PA
38152014-07-14 Pedro Alves <palves@redhat.com>
3816
3817 * utils.c (prompt_for_continue): Call target_terminal_ours.
3818
1e973570
PA
38192014-07-14 Pedro Alves <palves@redhat.com>
3820
3821 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3822 catch_errors. Don't re-enable stdin or notify observers where,
3823 and rethrow error.
3824 (fetch_inferior_event_wrapper): Delete.
3825
93d6eb10
PA
38262014-07-14 Pedro Alves <palves@redhat.com>
3827
3828 PR gdb/17072
3829 * top.c: Include "inf-loop.h".
3830 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3831 field.
3832 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3833 was async before.
3834 (gdb_readline_wrapper): Store whether the target is async, and
3835 make it sync.
3836
0017922d
PA
38372014-07-14 Pedro Alves <palves@redhat.com>
3838
3839 PR gdb/17072
3840 * top.c (gdb_readline_wrapper_line): Tweak comment.
3841 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3842 the input handler callback.
3843
94696ad3
PA
38442014-07-14 Pedro Alves <palves@redhat.com>
3845
3846 PR gdb/17072
3847 * main.c: Include event-top.h.
3848 (handle_command_errors): New function.
3849 (catch_command_errors, catch_command_errors_const): Use it.
3850
9d1e69a2
PA
38512014-07-14 Pedro Alves <palves@redhat.com>
3852
3853 * exceptions.c (catch_command_errors, catch_command_errors_const):
3854 Moved to main.c.
3855 * exceptions.h (catch_command_errors_ftype)
3856 (catch_command_errors_const_ftype): Moved to main.c.
3857 (catch_command_errors, catch_command_errors_const): Delete
3858 declarations.
3859 * main.c (catch_command_errors_ftype)
3860 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3861 (catch_command_errors, catch_command_errors_const)): Moved here
3862 from exceptions.c and make static.
3863
feefc97b
PA
38642014-07-14 Pedro Alves <palves@redhat.com>
3865
3866 * exceptions.c (print_any_exception): Delete.
3867 (catch_exceptions_with_msg): Use exception_print instead of
3868 print_any_exception.
3869 (catch_errors): Use exception_fprintf instead of
3870 print_any_exception.
3871 (catch_command_errors, catch_command_errors_const): Use
3872 exception_print instead of print_any_exception.
3873
c933f875
PA
38742014-07-14 Pedro Alves <palves@redhat.com>
3875
3876 * infcall.c (run_inferior_call): Set 'sync_execution' while
3877 running the inferior call.
3878
feb6f816
PA
38792014-07-14 Pedro Alves <palves@redhat.com>
3880
3881 * value.c (value_contents_equal): Delete function.
3882 * value.h (value_contents_equal): Delete declaration.
3883
d98b7a16
TT
38842014-07-14 Tom Tromey <tromey@redhat.com>
3885
3886 PR exp/17106:
3887 * gdbtypes.c (is_dynamic_type_internal): New function, from
3888 is_dynamic_type.
3889 (is_dynamic_type): Rewrite.
3890 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3891 (resolve_dynamic_struct): Likewise.
3892 (resolve_dynamic_type_internal): New function, from
3893 resolve_dynamic_type.
3894 (resolve_dynamic_type): Rewrite.
3895
548740d6
TT
38962014-07-14 Tom Tromey <tromey@redhat.com>
3897
3898 * target.c (target_require_runnable): Also check record_stratum.
3899 Update comment.
3900
808f7ab1
YQ
39012014-07-11 Yao Qi <yao@codesourcery.com>
3902
3903 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3904 thumb_instruction_restores_sp return true.
3905
540314bd
YQ
39062014-07-11 Yao Qi <yao@codesourcery.com>
3907
3908 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3909 (thumb_in_function_epilogue_p): Call
3910 thumb_instruction_restores_sp.
3911
1db01f22
YQ
39122014-07-11 Yao Qi <yao@codesourcery.com>
3913
3914 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3915 'add sp, #imm'.
3916 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3917
3116063b
GB
39182014-07-11 Gary Benson <gbenson@redhat.com>
3919
3920 * amd64-linux-nat.c (gdbcore.h): Remove include.
3921 (regset.h): Likewise.
3922 (nat/linux-btrace.h): Likewise.
3923 (btrace.h): Likewise.
3924 (gdb_assert.h): Likewise.
3925 (string.h): Likewise.
3926 (sys/uio.h): Likewise.
3927 (sys/debugreg.h): Likewise.
3928 (sys/syscall.h): Likewise.
3929 (sys/procfs.h): Likewise.
3930 (sys/user.h): Likewise.
3931 (asm/ptrace.h): Likewise.
3932 (i386-nat.h): Likewise.
3933 * i386-linux-nat.c (i386-nat.h): Likewise.
3934 (regset.h): Likewise.
3935 (target.h): Likewise.
3936 (linux-nat.h): Likewise.
3937 (nat/linux-btrace.h): Likewise.
3938 (btrace.h): Likewise.
3939 (gdb_assert.h): Likewise.
3940 (string.h): Likewise.
3941 (sys/uio.h): Likewise.
3942 (sys/user.h): Likewise.
3943 (sys/procfs.h): Likewise.
3944 (sys/reg.h): Likewise.
3945 (sys/debugreg.h): Likewise.
3946 (ORIG_EAX): Remove definition.
3947
040baaf6
GB
39482014-07-11 Gary Benson <gbenson@redhat.com>
3949
3950 * i386-linux-nat.h: New file.
3951 * x86-linux-nat.h: Likewise.
3952 * x86-linux-nat.c: Likewise.
3953 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3954 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3955 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3956 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3957 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3958 (PTRACE_SETREGSET): Likewise.
3959 (arch_lwp_info): Now in x86-linux-nat.c.
3960 (have_ptrace_getregset): Now in x86-linux-nat.h.
3961 (x86_linux_dr_get): Now in x86-linux-nat.c.
3962 (x86_linux_dr_set): Likewise.
3963 (x86_linux_dr_get_addr): Likewise.
3964 (x86_linux_dr_get_control): Likewise.
3965 (x86_linux_dr_get_status): Likewise.
3966 (update_debug_registers_callback): Likewise.
3967 (x86_linux_dr_set_control): Likewise.
3968 (x86_linux_dr_set_addr): Likewise.
3969 (x86_linux_prepare_to_resume): Likewise.
3970 (x86_linux_new_thread): Likewise.
3971 (x86_linux_new_fork): Likewise.
3972 (x86_linux_get_thread_area): Likewise.
3973 (super_post_startup_inferior): Likewise.
3974 (x86_linux_child_post_startup_inferior): Likewise.
3975 (AMD64_LINUX_USER64_CS): Likewise.
3976 (AMD64_LINUX_X32_DS): Likewise.
3977 (x86_linux_read_description): Likewise.
3978 (x86_linux_enable_btrace): Likewise.
3979 (x86_linux_disable_btrace): Likewise.
3980 (x86_linux_teardown_btrace): Likewise.
3981 (x86_linux_read_btrace): Likewise.
3982 (x86_linux_create_target): Likewise.
3983 (x86_linux_add_target): Likewise.
3984 * i386-linux-nat.c (x86-linux-nat.h): New include.
3985 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3986 (PTRACE_SETREGSET): Likewise.
3987 (arch_lwp_info): Now in x86-linux-nat.c.
3988 (have_ptrace_getregset): Now in x86-linux-nat.h.
3989 (x86_linux_dr_get): Now in x86-linux-nat.c.
3990 (x86_linux_dr_set): Likewise.
3991 (x86_linux_dr_get_addr): Likewise.
3992 (x86_linux_dr_get_control): Likewise.
3993 (x86_linux_dr_get_status): Likewise.
3994 (update_debug_registers_callback): Likewise.
3995 (x86_linux_dr_set_control): Likewise.
3996 (x86_linux_dr_set_addr): Likewise.
3997 (x86_linux_prepare_to_resume): Likewise.
3998 (x86_linux_new_thread): Likewise.
3999 (x86_linux_new_fork): Likewise.
4000 (x86_linux_get_thread_area): Likewise.
4001 (super_post_startup_inferior): Likewise.
4002 (x86_linux_child_post_startup_inferior): Likewise.
4003 (AMD64_LINUX_USER64_CS): Likewise.
4004 (AMD64_LINUX_X32_DS): Likewise.
4005 (x86_linux_read_description): Likewise.
4006 (x86_linux_enable_btrace): Likewise.
4007 (x86_linux_disable_btrace): Likewise.
4008 (x86_linux_teardown_btrace): Likewise.
4009 (x86_linux_read_btrace): Likewise.
4010 (x86_linux_create_target): Likewise.
4011 (x86_linux_add_target): Likewise.
4012
1aa7e42c
GB
40132014-07-11 Gary Benson <gbenson@redhat.com>
4014
4015 * amd64-linux-nat.c: Comment and whitespace changes.
4016 * i386-linux-nat.c: Comment and whitespace changes.
4017
c1e246a0
GB
40182014-07-11 Gary Benson <gbenson@redhat.com>
4019
4020 * amd64-linux-nat.c (x86_linux_create_target): New function.
4021 (x86_linux_add_target): Likewise.
4022 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4023 * i386-linux-nat.c (x86_linux_create_target): New function.
4024 (x86_linux_add_target): Likewise.
4025 (_initialize_i386_linux_nat): Delegate to the above new functions.
4026
8c420b8d
GB
40272014-07-11 Gary Benson <gbenson@redhat.com>
4028
4029 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4030 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4031 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4032 (ps_get_thread_area): Delegate to the above.
4033
cb1da100
GB
40342014-07-11 Gary Benson <gbenson@redhat.com>
4035
4036 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4037 x86_linux_read_description. All uses updated. amd64-specific
4038 code conditionalized. Conditionalized i386-specific code added.
4039 Redundant cast removed.
4040 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4041 x86_linux_read_description. All uses updated. i386-specific
4042 code conditionalized. Conditionalized amd64-specific code added.
4043 One sizeof replaced with the actual type it is describing.
4044
2acf3cd0
GB
40452014-07-11 Gary Benson <gbenson@redhat.com>
4046
4047 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4048 x86_linux_dr_get. All uses updated.
4049 (amd64_linux_dr_set): Renamed to
4050 x86_linux_dr_set. All uses updated.
4051 (amd64_linux_dr_get_addr): Renamed to
4052 x86_linux_dr_get_addr. All uses updated.
4053 (amd64_linux_dr_get_control): Renamed to
4054 x86_linux_dr_get_control. All uses updated.
4055 (amd64_linux_dr_get_status): Renamed to
4056 x86_linux_dr_get_status. All uses updated.
4057 (amd64_linux_dr_set_control): Renamed to
4058 x86_linux_dr_set_control. All uses updated.
4059 (amd64_linux_dr_set_addr): Renamed to
4060 x86_linux_dr_set_addr. All uses updated.
4061 (amd64_linux_prepare_to_resume): Renamed to
4062 x86_linux_prepare_to_resume. All uses updated.
4063 (amd64_linux_new_thread): Renamed to
4064 x86_linux_new_thread. All uses updated.
4065 (amd64_linux_new_fork): Renamed to
4066 x86_linux_new_fork. All uses updated.
4067 (amd64_linux_child_post_startup_inferior): Renamed to
4068 x86_linux_child_post_startup_inferior. All uses updated.
4069 (amd64_linux_enable_btrace): Renamed to
4070 x86_linux_enable_btrace. All uses updated.
4071 (amd64_linux_disable_btrace): Renamed to
4072 x86_linux_disable_btrace. All uses updated.
4073 (amd64_linux_teardown_btrace): Renamed to
4074 x86_linux_teardown_btrace. All uses updated.
4075 (amd64_linux_read_btrace): Renamed to
4076 x86_linux_read_btrace. All uses updated.
4077 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4078 x86_linux_dr_get. All uses updated.
4079 (i386_linux_dr_set): Renamed to
4080 x86_linux_dr_set. All uses updated.
4081 (i386_linux_dr_get_addr): Renamed to
4082 x86_linux_dr_get_addr. All uses updated.
4083 (i386_linux_dr_get_control): Renamed to
4084 x86_linux_dr_get_control. All uses updated.
4085 (i386_linux_dr_get_status): Renamed to
4086 x86_linux_dr_get_status. All uses updated.
4087 (i386_linux_dr_set_control): Renamed to
4088 x86_linux_dr_set_control. All uses updated.
4089 (i386_linux_dr_set_addr): Renamed to
4090 x86_linux_dr_set_addr. All uses updated.
4091 (i386_linux_prepare_to_resume): Renamed to
4092 x86_linux_prepare_to_resume. All uses updated.
4093 (i386_linux_new_thread): Renamed to
4094 x86_linux_new_thread. All uses updated.
4095 (i386_linux_new_fork): Renamed to
4096 x86_linux_new_fork. All uses updated.
4097 (i386_linux_child_post_startup_inferior): Renamed to
4098 x86_linux_child_post_startup_inferior. All uses updated.
4099 (i386_linux_enable_btrace): Renamed to
4100 x86_linux_enable_btrace. All uses updated.
4101 (i386_linux_disable_btrace): Renamed to
4102 x86_linux_disable_btrace. All uses updated.
4103 (i386_linux_teardown_btrace): Renamed to
4104 x86_linux_teardown_btrace. All uses updated.
4105 (i386_linux_read_btrace): Renamed to
4106 x86_linux_read_btrace. All uses updated.
4107
b9c1d481
AS
41082014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4109
4110 * remote.c (extended_remote_post_attach): New function.
4111 (init_extended_remote_ops): Install it as to_post_attach method.
4112
7180e04a
PA
41132014-07-09 Pedro Alves <palves@redhat.com>
4114
4115 * infcmd.c (attach_command_post_wait): Don't call
4116 target_terminal_inferior here.
4117 (attach_command): Call it here instead.
4118
9a9a7608
AB
41192014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4120
4121 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4122 field.
4123 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4124 from varobj.c, with additional checks.
4125 (c_varobj_ops): Fill in is_path_expr_parent field.
4126 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4127 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4128 field.
4129 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4130 ops method.
4131 (varobj_default_is_path_expr_parent): New function.
4132 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4133 (varobj_default_is_path_expr_parent): Declare new function.
4134
1f267ae3
MM
41352014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4136
4137 * infcmd.c (finish_backward): Turn internal error into normal error.
4138
b2ee242b
PA
41392014-07-07 Pedro Alves <palves@redhat.com>
4140
8a869bca 4141 PR gdb/17096
b2ee242b
PA
4142 * remote.c (async_handle_remote_sigint)
4143 (async_handle_remote_sigint_twice): Call
4144 gdb_call_async_signal_handler instead of
4145 mark_async_signal_handler.
4146
38e229b2
TT
41472014-07-07 Tom Tromey <tromey@redhat.com>
4148
4149 * target-delegates.c: Rebuild.
4150 * target.c (target_info_record): Remove.
4151 * record.c (info_record_command): Unconditionally call
4152 to_info_record.
4153 * target.h (struct target_ops) <to_info_record>: Use
4154 TARGET_DEFAULT_IGNORE.
4155 (target_info_record): Remove.
4156
f0f9ff95
TT
41572014-07-07 Tom Tromey <tromey@redhat.com>
4158
4159 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4160 TARGET_DEFAULT_NORETURN.
4161 * target.c (generic_tls_error): New function.
4162 (target_translate_tls_address): Don't search target stack.
4163 * target-delegates.c: Rebuild.
4164 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4165 stack.
4166 * linux-thread-db.c (thread_db_get_thread_local_address):
4167 Unconditionally call beneath target.
4168
4a5be5ee
MK
41692014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4170
4171 * cli/cli-logging.c (pop_output_files): Assign targerr to
4172 gdb_stdtargerr.
4173
92c3b204
AB
41742014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4175
4176 * MAINTAINERS (Write After Approval): Update my email address.
4177
9b11e3a7
GB
41782014-07-02 Gary Benson <gbenson@redhat.com>
4179
4180 * proc-service.c (ps_xfer_memory): Update comment.
4181 (ps_pstop): Remove unused function.
4182 (ps_pcontinue): Likewise.
4183 (ps_lstop): Likewise.
4184 (ps_lcontinue): Likewise.
4185 (ps_lgetxregsize): Likewise.
4186 (ps_lgetxregs): Likewise.
4187 (ps_lsetxregs): Likewise.
4188 (ps_plog): Likewise.
4189 (ps_ptread): Likewise.
4190 (ps_ptwrite): Likewise.
4191
cf363f18
MW
41922014-07-01 Mark Wielaard <mjw@redhat.com>
4193
4194 * dwarf2read.c (add_array_cv_type): New function.
4195 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4196 (read_tag_volatile_type): Likewise.
4197
82ae6c8d
TT
41982014-07-01 Tom Tromey <tromey@redhat.com>
4199
4200 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4201 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4202 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4203 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4204 * command.h (cmd_cfunc_ftype): Move earlier.
4205 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4206 (add_com, add_info): Use cmd_cfunc_ftype.
4207
96142726
TT
42082014-06-30 Tom Tromey <tromey@redhat.com>
4209
4210 * symtab.c (operator_chars): Make parameters and return type
4211 const.
4212 (file_matches): Make "files" const.
4213 (struct search_symbols_data) <files>: Now const.
4214 (search_symbols): Make "regexp" and "files" parameters const.
4215 Update.
4216 (symtab_symbol_info): Remove cast.
4217 (rbreak_command): Update.
4218 * symtab.h (search_symbols): Update.
4219
b67a2c6f
YQ
42202014-06-27 Yao Qi <yao@codesourcery.com>
4221
4222 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4223 Change parameter type to 'struct thread_info *'. Caller
4224 updated.
4225 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4226 Update declaration.
4227 * dummy-frame.c (struct dummy_frame_id): New.
4228 (dummy_frame_id_eq): New function.
4229 (struct dummy_frame) <id>: Change its type to 'struct
4230 dummy_frame_id'.
4231 (dummy_frame_push): Add parameter ptid and save it in
4232 dummy_frame_id.
4233 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4234 inferior_ptid.
4235 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4236 to inferior_ptid.
4237 (lookup_dummy_frame): Change parameter type to 'struct
4238 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4239 instead of frame_id_eq.
4240 (dummy_frame_pop): Add parameter ptid. Callers updated.
4241 Update comments. Compose dummy_frame_id and pass it to
4242 lookup_dummy_frame.
4243 (dummy_frame_discard): Add parameter ptid.
4244 (dummy_frame_sniffer): Compose dummy_frame_id and call
4245 dummy_frame_id_eq instead of frame_id_eq.
4246 (fprint_dummy_frames): Print ptid.
4247 * dummy-frame.h: Remove comments.
4248 (dummy_frame_push): Add ptid in declaration.
4249 (dummy_frame_pop, dummy_frame_discard): Likewise.
4250
5b10184c
TT
42512014-06-26 Tom Tromey <tromey@redhat.com>
4252
4253 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4254 * command.h (error_no_arg): Update.
4255
06900326
TT
42562014-06-26 Tom Tromey <tromey@redhat.com>
4257
4258 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4259 (do_show_command): Make "arg" const.
4260 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4261
c2bcbb1d
TT
42622014-06-26 Tom Tromey <tromey@redhat.com>
4263
4264 * record-full.c (record_full_get_bookmark): Make "args" const.
4265 (record_full_goto_bookmark): Make "raw_bookmark" const.
4266 * record.c (record_goto): New function.
4267 (cmd_record_goto): Use it. Now static.
4268 * record.h (record_goto): Declare.
4269 (cmd_record_goto): Remove declaration.
4270 * target-delegates.c: Rebuild.
4271 * target.h (struct target_ops) <to_get_bookmark,
4272 to_goto_bookmark>: Make parameter const.
4273
9cbe5fff
TT
42742014-06-26 Tom Tromey <tromey@redhat.com>
4275
4276 * defs.h (generic_load): Update.
4277 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4278 * monitor.c (monitor_load): Make "args" const.
4279 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4280 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4281 const.
4282 (mips_load): Make "file" const.
4283 * remote-sim.c (gdbsim_load): Make "args" const.
4284 * remote.c (remote_load): Make "name" const.
4285 * symfile.c (generic_load): Make "args" const.
4286 * target-delegates.c: Rebuild.
4287 * target.c (target_load): Make "arg" const.
4288 (debug_to_load): Make "args" const.
4289 * target.h (struct target_ops) <to_load>: Make parameter const.
4290 (target_load): Update.
4291
34a68019
TT
42922014-06-26 Tom Tromey <tromey@redhat.com>
4293
4294 PR symtab/16902:
4295 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4296 (dwarf2_physname, read_partial_die)
4297 (guess_partial_die_structure_name, fixup_partial_die)
4298 (guess_full_die_structure_name, anonymous_struct_prefix)
4299 (dwarf2_name): Use per-BFD obstack.
4300
efc889c1
YQ
43012014-06-26 Yao Qi <yao@codesourcery.com>
4302
4303 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4304 dummyframe and this_id into inner block below.
4305
4395285e
YQ
43062014-06-26 Yao Qi <yao@codesourcery.com>
4307
4308 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4309 with "signal_pass[0]" in the initialization of signal_pass.
4310
aef92902
MM
43112014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4312
4313 * record-btrace.c (record_btrace_generating_corefile)
4314 (record_btrace_prepare_to_generate_core)
4315 (record_btrace_done_generating_core): New.
4316 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4317 (record_btrace_store_registers, record_btrace_prepare_to_store):
4318 Forward request when generating a core file.
4319 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4320 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4321 to_done_generating_core.
4322
5fff78c4
MM
43232014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4324
4325 * target.h (target_ops) <to_prepare_to_generate_core>
4326 <to_done_generating_core>: New.
4327 (target_prepare_to_generate_core, target_done_generating_core): New.
4328 * target.c (target_prepare_to_generate_core)
4329 (target_done_generating_core): New.
4330 * target-delegates.c: Regenerate.
4331 * gcore.c: (write_gcore_file): Rename to ...
4332 (write_gcore_file_1): ...this.
4333 (write_gcore_file): Call target_prepare_to_generate_core
4334 and target_done_generating_core.
4335
1d1f1ccb
MM
43362014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4337
4338 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4339 * gcore.c (write_gcore_file): Free memory returned from
4340 make_corefile_notes.
4341 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4342 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4343
3343ef86
YQ
43442014-06-24 Yao Qi <yao@codesourcery.com>
4345
4346 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4347 (arm_linux_init_abi): Set skip_trampoline_code with
4348 gdbarch_skip_trampoline_code instead of
4349 find_solib_trampoline_target.
4350
18d18ac8
YQ
43512014-06-24 Yao Qi <yao@codesourcery.com>
4352
4353 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4354 arm_skip_bx_reg returns non-zero.
4355
80d8d390
YQ
43562014-06-24 Yao Qi <yao@codesourcery.com>
4357
4358 * arm-tdep.c (arm_skip_bx_reg): New function.
4359 (arm_skip_stub): Call arm_skip_bx_reg.
4360
6a18a01c
DB
43612014-06-23 Don Breazeal <donb@codesourcery.com>
4362
4363 * MAINTAINERS: Add myself as write-after-approval maintainer.
4364
8e9db26e
PA
43652014-06-23 Pedro Alves <palves@redhat.com>
4366
4367 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4368 DR_CONTROL before setting DR0..DR3.
4369 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4370 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4371 bits of DR_CONTROL related to the debug register slot being
4372 disabled. If all slots are vacant, clear local slowdown as well,
4373 and assert DR_CONTROL is 0.
4374
70afc5b7
SC
43752014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4376
4377 * python/lib/gdb/command/xmethods.py
4378 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4379 current progspace only if the string "progspace" matches LOCUS_RE.
4380
840ed64d
JK
43812014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4382
4383 Fix --with-system-readline with readline-6.3 patch 5.
4384 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4385 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4386 types.
4387
26f2dc30
TT
43882014-06-20 Tom Tromey <tromey@redhat.com>
4389
4390 * dwarf2read.c (dw2_get_real_path): Use correct type in
4391 OBSTACK_CALLOC.
4392 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4393
125f8a3d
GB
43942014-06-20 Gary Benson <gbenson@redhat.com>
4395
4396 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4397 * common/glibc_thread_db.h: Likewise.
4398 * common/i386-cpuid.h: Likewise.
4399 * common/i386-gcc-cpuid.h: Likewise.
4400 * common/linux-btrace.h: Likewise.
4401 * common/linux-osdata.h: Likewise.
4402 * common/linux-procfs.h: Likewise.
4403 * common/linux-ptrace.h: Likewise.
4404 * common/mips-linux-watch.h: Likewise.
4405 * common/linux-btrace.c: Moved to nat.
4406 * common/linux-osdata.c: Likewise.
4407 * common/linux-procfs.c: Likewise.
4408 * common/linux-ptrace.c: Likewise.
4409 * common/mips-linux-watch.c: Likewise.
4410 * nat/gdb_thread_db.h: Moved from common.
4411 * nat/glibc_thread_db.h: Likewise.
4412 * nat/i386-cpuid.h: Likewise.
4413 * nat/i386-gcc-cpuid.h: Likewise.
4414 * nat/linux-btrace.c: Likewise.
4415 * nat/linux-btrace.h: Likewise.
4416 * nat/linux-osdata.c: Likewise.
4417 * nat/linux-osdata.h: Likewise.
4418 * nat/linux-procfs.c: Likewise.
4419 * nat/linux-procfs.h: Likewise.
4420 * nat/linux-ptrace.c: Likewise.
4421 * nat/linux-ptrace.h: Likewise.
4422 * nat/mips-linux-watch.c: Likewise.
4423 * nat/mips-linux-watch.h: Likewise.
4424 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4425 (object file files): Reordered.
4426 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4427 of glibc_thread_db.h.
4428
42995dbd
GB
44292014-06-20 Gary Benson <gbenson@redhat.com>
4430
4431 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4432 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4433 (i386_dr_low): Likewise.
4434 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4435 (i386_dr_low_set_addr): Likewise.
4436 (i386_dr_low_get_addr): Likewise.
4437 (i386_dr_low_can_set_control): Likewise.
4438 (i386_dr_low_set_control): Likewise.
4439 (i386_dr_low_get_control): Likewise.
4440 (i386_dr_low_get_status): Likewise.
4441 (i386_get_debug_register_length): Likewise.
4442 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4443 (i386_dr_low): Likewise.
4444 * nat/i386-dregs.c (i386-low.h): Remove include.
4445 (i386-nat.h): Likewise.
4446 (nat/i386-dregs.h): New include.
4447 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4448 (i386_dr_low_set_addr): Likewise.
4449 (i386_dr_low_get_addr): Likewise.
4450 (i386_dr_low_can_set_control): Likewise.
4451 (i386_dr_low_set_control): Likewise.
4452 (i386_dr_low_get_control): Likewise.
4453 (i386_dr_low_get_status): Likewise.
4454 (i386_get_debug_register_length): Likewise.
4455 (debug_hw_points): Likewise.
4456
3ed9baed
IB
44572014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4458
4459 * Makefile.in (SFILES): Add d-exp.y.
4460 (YYFILES): Add d-exp.c.
4461 (YYOBJ): Add d-exp.o.
4462 (local-maintainer-clean): Delete d-exp.c.
4463 * d-exp.y: New file.
4464 * d-lang.h (d_parse): New declaration.
4465 (d_error): New declaration.
4466 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4467 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4468 PREC_ORDER operators.
4469 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4470
78c164b0
YQ
44712014-06-19 Yao Qi <yao@codesourcery.com>
4472
4473 * gdbthread.h (any_running): Remove the declaration.
4474 * thread.c (any_running): Remove.
4475
f6e29b6e
YQ
44762014-06-19 Yao Qi <yao@codesourcery.com>
4477
4478 * gdbthread.h (struct thread_info) <state>: Change its type to
4479 'enum thread_state'. Update comments.
4480
034f788c
PA
44812014-06-19 Pedro Alves <palves@redhat.com>
4482
4483 * gdbthread.h (ALL_THREADS): Delete.
4484 (ALL_NON_EXITED_THREADS): New macro.
4485 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4486 instead of ALL_THREADS.
4487 * infrun.c (find_thread_needs_step_over)
4488 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4489 instead of ALL_THREADS.
4490 * record-btrace.c (record_btrace_open)
4491 (record_btrace_stop_recording, record_btrace_close)
4492 (record_btrace_is_replaying, record_btrace_resume)
4493 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4494 * remote.c (append_pending_thread_resumptions): Likewise.
4495 * thread.c (thread_apply_all_command): Likewise.
4496
46e33252
GB
44972014-06-19 Gary Benson <gbenson@redhat.com>
4498
4499 * i386-nat.c (i386_stopped_by_watchpoint):
4500 Use i386_dr_stopped_by_watchpoint.
4501 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4502 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4503
3a8ee006
GB
45042014-06-19 Gary Benson <gbenson@redhat.com>
4505
4506 * nat/i386-dregs.c: New file.
4507 * Makefile.in (i386-dregs.o): New rule.
4508 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4509 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4510 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4511 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4512 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4513 * config/i386/go32.mh (NATDEPFILES): Likewise.
4514 * config/i386/linux.mh (NATDEPFILES): Likewise.
4515 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4516 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4517 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4518 * i386-nat.h (debug_hw_points): New declaration.
4519 * i386-nat.c (breakpoint.h): Remove include.
4520 (command.h): Likewise.
4521 (target.h): Likewise.
4522 (gdb_assert.h): Likewise.
4523 (debug_hw_points): Made nonstatic.
4524 (debug_printf): Now in i386-dregs.c.
4525 (TARGET_HAS_DR_LEN_8): Likewise.
4526 (DR_CONTROL_SHIFT): Likewise.
4527 (DR_CONTROL_SIZE): Likewise.
4528 (DR_RW_EXECUTE): Likewise.
4529 (DR_RW_WRITE): Likewise.
4530 (DR_RW_READ): Likewise.
4531 (DR_RW_IORW): Likewise.
4532 (DR_LEN_1): Likewise.
4533 (DR_LEN_2): Likewise.
4534 (DR_LEN_4): Likewise.
4535 (DR_LEN_8): Likewise.
4536 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4537 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4538 (DR_ENABLE_SIZE): Likewise.
4539 (DR_LOCAL_SLOWDOWN): Likewise.
4540 (DR_GLOBAL_SLOWDOWN): Likewise.
4541 (DR_CONTROL_RESERVED): Likewise.
4542 (I386_DR_CONTROL_MASK): Likewise.
4543 (I386_DR_VACANT): Likewise.
4544 (I386_DR_LOCAL_ENABLE): Likewise.
4545 (I386_DR_GLOBAL_ENABLE): Likewise.
4546 (I386_DR_DISABLE): Likewise.
4547 (I386_DR_SET_RW_LEN): Likewise.
4548 (I386_DR_GET_RW_LEN): Likewise.
4549 (I386_DR_WATCH_HIT): Likewise.
4550 (i386_wp_op_t): Likewise.
4551 (i386_show_dr): Likewise.
4552 (i386_length_and_rw_bits): Likewise.
4553 (i386_insert_aligned_watchpoint): Likewise.
4554 (i386_remove_aligned_watchpoint): Likewise.
4555 (i386_handle_nonaligned_watchpoint): Likewise.
4556 (i386_update_inferior_debug_regs): Likewise.
4557 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4558 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4559 (i386_region_ok_for_watchpoint):
4560 Use i386_dr_region_ok_for_watchpoint.
4561 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4562
322a8e06
GB
45632014-06-19 Gary Benson <gbenson@redhat.com>
4564
4565 * i386-nat.c (i386_insert_hw_breakpoint): Use
4566 i386_insert_watchpoint.
4567 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4568
8f26655c
GB
45692014-06-19 Gary Benson <gbenson@redhat.com>
4570
4571 * i386-nat.c (i386_dr_show): Renamed to
4572 i386_show_dr and made static. All uses updated.
4573 (i386_dr_length_and_rw_bits): Renamed to
4574 i386_length_and_rw_bits and made static.
4575 All uses updated.
4576 (i386_dr_insert_aligned_watchpoint): Renamed to
4577 i386_insert_aligned_watchpoint and made static.
4578 All uses updated.
4579 (i386_dr_remove_aligned_watchpoint): Renamed to
4580 i386_remove_aligned_watchpoint and made static.
4581 All uses updated.
4582 (i386_dr_update_inferior_debug_regs): Renamed to
4583 i386_update_inferior_debug_regs and made static.
4584 All uses updated.
4585 * nat/i386-dregs.h (i386_dr_show): Removed.
4586 (i386_dr_length_and_rw_bits): Likewise.
4587 (i386_dr_insert_aligned_watchpoint): Likewise.
4588 (i386_dr_remove_aligned_watchpoint): Likewise.
4589 (i386_dr_update_inferior_debug_regs): Likewise.
4590
992c7d70
GB
45912014-06-19 Gary Benson <gbenson@redhat.com>
4592
4593 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4594 * configure: Regenerate.
4595 * config.in: Likewise.
4596 * main.c (signal.h): New include.
4597 (setup_alternate_signal_stack): New function.
4598 (captured_main): Call the above.
4599 * cp-support.c (signal.h): New include.
4600 (catch_demangler_crashes): New flag.
4601 (SIGJMP_BUF): New define.
4602 (SIGSETJMP): Likewise.
4603 (SIGLONGJMP): Likewise.
4604 (gdb_demangle_jmp_buf): New static global.
4605 (gdb_demangle_attempt_core_dump): Likewise.
4606 (gdb_demangle_signal_handler): New function.
4607 (gdb_demangle): If catch_demangler_crashes is set, install the
4608 above signal handler before calling bfd_demangle, and restore
4609 the original signal handler afterwards. Display the offending
4610 symbol and call demangler_warning the first time a segmentation
4611 fault is caught.
4612 (_initialize_cp_support): New maint set/show command.
4613
eae7090b
GB
46142014-06-19 Gary Benson <gbenson@redhat.com>
4615
4616 * utils.h (resource_limit_kind): New enum.
4617 (can_dump_core): New declaration.
4618 (warn_cant_dump_core): Likewise.
4619 (dump_core): Likewise.
4620 * utils.c (dump_core): Made nonstatic. Added new
4621 parameter "limit_kind".
4622 (can_dump_core): Made nonstatic. Moved printing code to...
4623 (warn_cant_dump_core): New function.
4624 (can_dump_core_warn): Likewise.
4625 (internal_vproblem): Replace calls to can_dump_core with
4626 calls to can_dump_core_warn. Supply new argument to each.
4627
57fcfb1b
GB
46282014-06-19 Gary Benson <gbenson@redhat.com>
4629
4630 * utils.h (demangler_vwarning): New declaration.
4631 (demangler_warning): Likewise.
4632 * utils.c (struct internal_problem)
4633 <user_settable_should_quit>: New field.
4634 <user_settable_should_dump_core>: Likewise
4635 (internal_error_problem): Add values for above new fields.
4636 (internal_warning_problem): Likewise.
4637 (demangler_warning_problem): New static global.
4638 (demangler_vwarning): New function.
4639 (demangler_warning): Likewise.
4640 (add_internal_problem_command): Selectively add commands.
4641 (_initialize_utils): New internal problem command.
4642 * maint.c (maintenance_demangler_warning): New function.
4643 (_initialize_maint_cmds): New command.
4644
17a40b44
TT
46452014-06-18 Tom Tromey <tromey@redhat.com>
4646
4647 * f-valprint.c (info_common_command_for_block): Update.
4648 * symtab.h (struct general_symbol_info) <common_block>: Now
4649 const.
4650
346d1dfe
TT
46512014-06-18 Tom Tromey <tromey@redhat.com>
4652
4653 * symtab.h (struct symtab) <blockvector>: Now const.
4654 * ada-lang.c (ada_add_global_exceptions): Update.
4655 * buildsym.c (augment_type_symtab): Update.
4656 * dwarf2read.c (dw2_lookup_symbol): Update.
4657 * jit.c (finalize_symtab): Update.
4658 * jv-lang.c (add_class_symtab_symbol): Update.
4659 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4660 Update.
4661 * objfiles.c (objfile_relocate1): Update.
4662 * psymtab.c (lookup_symbol_aux_psymtabs)
4663 (maintenance_check_psymtabs): Update.
4664 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4665 Update.
4666 * spu-tdep.c (spu_catch_start): Update.
4667 * symmisc.c (dump_symtab_1): Update.
4668 * symtab.c (lookup_global_symbol_from_objfile)
4669 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4670 (basic_lookup_transparent_type_quick)
4671 (basic_lookup_transparent_type, find_pc_sect_symtab)
4672 (find_pc_sect_line, search_symbols): Update.
4673 * block.c (find_block_in_blockvector): Make "bl" const.
4674 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4675 const.
4676 (blockvector_contains_pc): Make "bv" const.
4677 (block_for_pc_sect): Update.
4678 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4679 (blockvector_contains_pc): Update.
4680 * breakpoint.c (resolve_sal_pc): Update.
4681 * inline-frame.c (block_starting_point_at): Update.
4682
1834676b
TT
46832014-06-18 Tom Tromey <tromey@redhat.com>
4684
4685 * completer.c (complete_line): Make "line_buffer" const.
4686 * completer.h (complete_line): Update.
4687
ac1a991b
TT
46882014-06-18 Tom Tromey <tromey@redhat.com>
4689
4690 * symtab.c (add_macro_name): Remove unneeded cast.
4691
5bc98e52
TT
46922014-06-18 Tom Tromey <tromey@redhat.com>
4693
4694 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4695 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4696
8236def8
TT
46972014-06-18 Tom Tromey <tromey@redhat.com>
4698
4699 * probe.c (info_probes_for_ops): Make "arg" const.
4700 * probe.h (info_probes_for_ops): Update.
4701
3977b71f
TT
47022014-06-18 Tom Tromey <tromey@redhat.com>
4703
4704 * varobj.c (varobj_create): Update.
4705 * valops.c (value_of_this): Update.
4706 * tracepoint.c (add_local_symbols, scope_info): Update.
4707 * symtab.h (struct general_symbol_info) <block>: Now const.
4708 * symtab.c (skip_prologue_sal)
4709 (default_make_symbol_completion_list_break_on)
4710 (skip_prologue_using_sal): Update.
4711 * stack.h (iterate_over_block_locals)
4712 (iterate_over_block_local_vars): Update.
4713 * stack.c (print_frame_args): Update.
4714 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4715 parameter const.
4716 (get_selected_block): Make return type const.
4717 * python/py-frame.c (frapy_block): Update.
4718 * python/py-block.c (gdbpy_block_for_pc): Update.
4719 * p-exp.y (%union) <bval>: Now const.
4720 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4721 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4722 * m2-exp.y (%union) <bval>: Now const.
4723 * linespec.c (get_current_search_block): Make return type const.
4724 (create_sals_line_offset, find_label_symbols): Update.
4725 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4726 Update.
4727 (block_starting_point_at): Make "block" const.
4728 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4729 (check_exception_resume): Update.
4730 * guile/scm-frame.c (gdbscm_frame_block): Update.
4731 * guile/scm-block.c (gdbscm_lookup_block): Update.
4732 * frame.h (get_frame_block): Update.
4733 (get_selected_block): Make return type const.
4734 * frame.c (frame_id_inner): Update.
4735 * f-valprint.c (info_common_command_for_block)
4736 (info_common_command): Update.
4737 * dwarf2loc.c (dwarf2_find_location_expression)
4738 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4739 (locexpr_describe_location_piece): Update.
4740 * c-exp.y (%union) <bval>: Now const.
4741 * breakpoint.c (resolve_sal_pc): Update.
4742 * blockframe.c (get_frame_block):Make return type const.
4743 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4744 (block_innermost_frame): Update.
4745 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4746 (block_for_pc, block_for_pc_sect): Update.
4747 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4748 'pblock' const.
4749 (block_for_pc_sect, block_for_pc): Make return type const.
4750 * ax-gdb.c (gen_expr): Update.
4751 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4752 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4753 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4754 (ada_read_var_value): Update.
4755 * ada-exp.y (struct name_info) <block>: Now const.
4756 (%union): Likewise.
4757 (block_lookup): Constify.
4758
b9228891
GB
47592014-06-18 Gary Benson <gbenson@redhat.com>
4760
4761 * nat/i386-dregs.h: New file.
4762 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4763 * i386-nat.h (i386-dregs.h): New include.
4764 (DR_FIRSTADDR): Now in i386-dregs.h.
4765 (DR_LASTADDR): Likewise.
4766 (DR_NADDR): Likewise.
4767 (DR_STATUS): Likewise.
4768 (DR_CONTROL): Likewise.
4769 (i386_debug_reg_state): Likewise.
4770 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4771
a1aa2221
LM
47722014-06-18 Don Breazeal <donb@codesourcery.com>
4773
4774 * breakpoint.c (set_longjmp_breakpoint): Call
4775 momentary_breakpoint_from_master with additional argument.
4776 (set_longjmp_breakpoint_for_call_dummy): Call
4777 momentary_breakpoint_from_master with additional argument.
4778 (set_std_terminate_breakpoint): Call
4779 momentary_breakpoint_from_master with additional argument.
4780 (momentary_breakpoint_from_master): Add argument to function
4781 definition and use it to initialize structure member flag.
74228e77 4782 (clone_momentary_breakpoint): Call
a1aa2221
LM
4783 momentary_breakpoint_from_master with additional argument.
4784 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4785 member flags set in momentary_breakpoint_from_master.
4786
4be83cc2
GB
47872014-06-18 Gary Benson <gbenson@redhat.com>
4788
4789 * i386-nat.c (i386_show_dr): Renamed to
4790 i386_dr_show and made nonstatic. All uses updated.
4791 (i386_length_and_rw_bits): Renamed to
4792 i386_dr_length_and_rw_bits and made nonstatic.
4793 All uses updated.
4794 (i386_insert_aligned_watchpoint): Renamed to
4795 i386_dr_insert_aligned_watchpoint and made nonstatic.
4796 All uses updated.
4797 (i386_remove_aligned_watchpoint): Renamed to
4798 i386_dr_remove_aligned_watchpoint and made nonstatic.
4799 All uses updated.
4800 (i386_update_inferior_debug_regs): Renamed to
4801 i386_dr_update_inferior_debug_regs and made nonstatic.
4802 All uses updated.
4803
131aa0d4
GB
48042014-06-18 Gary Benson <gbenson@redhat.com>
4805
4806 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4807 (i386_dr_low_can_set_control): Likewise.
4808 (i386_dr_low_set_addr): Likewise.
4809 (i386_dr_low_set_control): Likewise.
4810 (i386_dr_low_get_addr): Likewise.
4811 (i386_dr_low_get_status): Likewise.
4812 (i386_dr_low_get_control): Likewise.
4813 (i386_insert_aligned_watchpoint): Use new macros.
4814 (i386_update_inferior_debug_regs): Likewise.
4815 (i386_stopped_data_address): Likewise.
4816
d9305f7f
GB
48172014-06-18 Gary Benson <gbenson@redhat.com>
4818
4819 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4820 New parameter. All uses updated.
4821
ea008da4
GB
48222014-06-18 Gary Benson <gbenson@redhat.com>
4823
4824 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4825 All uses updated.
4826
1b6d4134
GB
48272014-06-18 Gary Benson <gbenson@redhat.com>
4828
4829 * i386-nat.c (debug_printf): New macro.
4830 (i386_get_debug_register_length): Likewise.
4831 (TARGET_HAS_DR_LEN_8): Use above macro.
4832 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4833 and printf_unfiltered. Use phex to format values.
4834
9b4550ef
GB
48352014-06-18 Gary Benson <gbenson@redhat.com>
4836
4837 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4838 Make const.
4839
6e62758f
GB
48402014-06-18 Gary Benson <gbenson@redhat.com>
4841
4842 * i386-nat.c: Comment changes.
4843
51c79e94
GB
48442014-06-18 Gary Benson <gbenson@redhat.com>
4845
4846 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4847
3e11889a
GB
48482014-06-18 Gary Benson <gbenson@redhat.com>
4849
4850 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4851 (i386_insert_aligned_watchpoint): Likewise.
4852 (i386_remove_aligned_watchpoint): Likewise.
4853 (i386_handle_nonaligned_watchpoint): Likewise.
4854
fc6e2f03
GB
48552014-06-18 Gary Benson <gbenson@redhat.com>
4856
4857 * i386-nat.c: Whitespace changes.
4858
2afe7d50
SB
48592014-06-17 Samuel Bronson <naesten@gmail.com>
4860
4861 * MAINTAINERS: Update Roland McGrath's email address.
4862 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4863 Red Hat a while ago, and giving me a current address.
2afe7d50 4864
3bca49ee
TT
48652014-06-17 Tom Tromey <tromey@redhat.com>
4866
4867 * utils.h (savestring): Remove declaration.
4868
6e366df1
TT
48692014-06-17 Tom Tromey <tromey@redhat.com>
4870
4871 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4872
6be47f0c
KS
48732014-06-16 Keith Seitz <keiths@redhat.com>
4874
4875 PR mi/15863
4876 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4877 to update the varobj if inferior_ptid is null_ptid.
4878
7bc112c1
TT
48792014-06-16 Tom Tromey <tromey@redhat.com>
4880
4881 * target.h (struct target_ops) <to_info_proc>: Make parameter
4882 const.
4883 (target_info_proc): Update.
4884 * target.c (target_info_proc): Make "args" const.
4885 * procfs.c (procfs_info_proc): Update.
4886 * linux-tdep.c (linux_info_proc): Update.
4887 (linux_core_info_proc_mappings): Make "args" const.
4888 (linux_core_info_proc): Update.
4889 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4890 * gdbarch.c: Rebuild.
4891 * gdbarch.h: Rebuild.
4892 * corelow.c (core_info_proc): Update.
4893
fee354ee
TT
48942014-06-16 Tom Tromey <tromey@redhat.com>
4895
4896 * target.h (struct target_ops) <to_disconnect>: Make parameter
4897 const.
4898 (target_disconnect): Update.
4899 * target.c (target_disconnect): Make "args" const.
4900 * target-delegates.c: Rebuild.
4901 * remote.c (remote_disconnect): Update.
4902 * record.h (record_disconnect): Update.
4903 * record.c (record_disconnect): Update.
4904 * inf-child.c (inf_child_disconnect): Update.
4905
a30bf1f1
TT
49062014-06-16 Tom Tromey <tromey@redhat.com>
4907
4908 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4909 * target.c (debug_to_rcmd, default_rcmd): Update.
4910 * target-delegates.c: Rebuild.
4911 * remote.c (remote_rcmd): Update.
4912 * monitor.c (monitor_rcmd): Update.
4913
d03de421
PA
49142014-06-16 Pedro Alves <palves@redhat.com>
4915
4916 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4917 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4918 have OBJF_SHARED set.
4919 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4920 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4921 instead of OBJF_USERLOADED.
4922 * objfiles.h (OBJF_SHARED): Update comment.
4923 (userloaded_objfile_contains_address_p): Rename to ...
4924 (shared_objfile_contains_address_p): ... this, and update
4925 comments.
4926 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4927 new objfile.
4928 (remove_symbol_file_command): Skip objfiles that don't have
4929 OBJF_SHARED set.
4930
99f4262f
TT
49312014-06-16 Tom Tromey <tromey@redhat.com>
4932
4933 * minsyms.h (prim_record_minimal_symbol)
4934 (prim_record_minimal_symbol_and_info): Update comments.
4935
97d66cc6
EZ
49362014-06-14 Eli Zaretskii <eliz@gnu.org>
4937
4938 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4939 or --without-guile, according to how GDB was built.
4940
635c7e8a
TT
49412014-06-13 Tom Tromey <tromey@redhat.com>
4942
4943 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4944 to help_list.
4945 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4946 to help_list.
4947 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4948 help_list.
4949 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4950 help_list.Pass all_commands, not -1, to help_list.
4951 * cli/cli-dump.c (dump_command, append_command)
4952 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4953 (binary_dump_command, binary_append_command): Pass all_commands,
4954 not -1, to help_list.
4955 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4956 -1, to help_list.
4957 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4958 -1, to help_list.
4959 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4960 help_list.
4961 * top.c (set_history): Pass all_commands, not -1, to help_list.
4962 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4963 all_commands, not -1, to help_list.
4964 * symfile.c (overlay_command): Pass all_commands, not -1, to
4965 help_list.
4966 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4967 help_list.
4968 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4969 help_list.
4970 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4971 -1, to help_list.
4972 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4973 not -1, to help_list.
4974 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4975 not -1, to help_list.
4976 * maint.c (maintenance_command, maintenance_info_command)
4977 (maintenance_print_command, maintenance_set_cmd): Pass
4978 all_commands, not -1, to help_list.
4979 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4980 help_list.
4981 * language.c (set_check): Pass all_commands, not -1, to help_list.
4982 * infcmd.c (unset_command): Pass all_commands, not -1, to
4983 help_list.
4984 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4985 help_list.
4986 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4987 help_list.
4988 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4989 help_list.
4990 * breakpoint.c (save_command): Pass all_commands, not -1, to
4991 help_list.
4992 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4993 all_commands, not -1, to help_list.
4994
b94ade42
PL
49952014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4996
4997 * regcache.c (struct register_to_invalidate): New structure.
4998 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4999 functions.
5000 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5001
31f628ae
YQ
50022014-06-12 Yao Qi <yao@codesourcery.com>
5003
5004 * varobj.c (varobj_get_num_children): Call
5005 varobj_is_dynamic_p.
5006 (varobj_list_children): Likewise.
5007 (varobj_update): Likewise. Update comments.
5008
cde5ef40
YQ
50092014-06-12 Yao Qi <yao@codesourcery.com>
5010
5011 * varobj.c (varobj_pretty_printed_p): Rename to ...
5012 (varobj_is_dynamic_p): ... this. New function.
5013 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5014 (varobj_is_dynamic_p): Declare.
5015 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5016 (mi_print_value_p, varobj_update_one): Likewise.
5017
576ea091
YQ
50182014-06-12 Pedro Alves <pedro@codesourcery.com>
5019 Yao Qi <yao@codesourcery.com>
5020
5021 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5022 (varobj_get_iterator): Wrap up code for pretty-printer by
5023 "#if HAVE_PYTHON" and "#endif".
5024 (update_dynamic_varobj_children): Likewise.
5025
827f100c
YQ
50262014-06-12 Pedro Alves <pedro@codesourcery.com>
5027 Yao Qi <yao@codesourcery.com>
5028
5029 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5030 gdb_python_initialized is false. Move some code from varobj.c.
5031 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5032 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5033 (struct varobj_item): Moved to varobj-iter.h".
5034 (varobj_clear_saved_item): New function.
5035 (update_dynamic_varobj_children): Move python-related code to
5036 py-varobj.c.
5037 (free_variable): Call varobj_clear_saved_item and
5038 varobj_iter_delete.
5039
e5250216
YQ
50402014-06-12 Pedro Alves <pedro@codesourcery.com>
5041 Yao Qi <yao@codesourcery.com>
5042
5043 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5044 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5045 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5046 (py-varobj.o): New rule.
5047 * python/py-varobj.c: New file.
5048 * python/python-internal.h (py_varobj_get_iterator): Declare.
5049 * varobj-iter.h: New file.
5050 * varobj.c: Include "varobj-iter.h"
5051 (struct varobj) <child_iter>: Change its type from "PyObject *"
5052 to "struct varobj_iter *".
5053 <saved_item>: Likewise.
5054 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5055 [HAVE_PYTHON] (varobj_get_iterator): New function.
5056 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5057 python-specific code to python/py-varobj.c.
5058 (install_visualizer): Call varobj_iter_delete instead of
5059 Py_XDECREF.
5060 * varobj.h (varobj_ensure_python_env): Declare.
5061
5a2e0d6e
YQ
50622014-06-12 Yao Qi <yao@codesourcery.com>
5063
5064 * varobj.c (struct varobj_item): New structure.
5065 (create_child_with_value): Update declaration.
5066 (varobj_add_child): Replace arguments 'name' and 'value' with
5067 'item'. All callers updated.
5068 (install_dynamic_child): Likewise.
5069 (update_dynamic_varobj_children): Likewise.
5070 (varobj_add_child): Likewise.
5071 (create_child_with_value): Likewise.
5072
919b9a93
JB
50732014-06-11 Joel Brobecker <brobecker@adacore.com>
5074
5075 * NEWS: Create a new section for the next release branch.
5076 Rename the section of the current branch, now that it has
5077 been cut.
5078
71a55bdf
JB
50792014-06-11 Joel Brobecker <brobecker@adacore.com>
5080
5081 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5082 * version.in: Bump version to 7.8.50.DATE-cvs.
5083
364fe1f7
PA
50842014-06-11 Pedro Alves <palves@redhat.com>
5085
5086 PR remote/17028
5087 * ser-mingw.c (net_windows_socket_check_pending): New function.
5088 (net_windows_select_thread): Ignore spurious wakeups. Use
5089 net_windows_socket_check_pending.
5090 (net_windows_wait_handle): Check for pending events with
5091 ioctlsocket, through net_windows_socket_check_pending, instead of
5092 checking the socket's event.
5093
5a6c7709
SC
50942014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5095
5096 * python/python-internal.h (gdb_PyObject_GetAttrString)
5097 (gdb_PyObject_HasAttrString): New inline function definitions.
5098 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5099 char * of the second argument to PyObject_GetAttrString.
74228e77 5100
0e58ee40
JB
51012014-06-10 Joel Brobecker <brobecker@adacore.com>
5102
5103 * serial.c (serial_write): Fix index of character to be printed
5104 in call to serial_logchar when serial debug traces are enabled.
5105
d190df30
JB
51062014-06-10 Joel Brobecker <brobecker@adacore.com>
5107
5108 * gdbtypes (resolve_dynamic_range): Add function description.
5109
b4b01d36
PA
51102014-06-09 Pedro Alves <palves@redhat.com>
5111
5112 * linux-nat.c (linux_child_follow_fork): Initialize status with
5113 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5114 inner block. Only pass the signal to PTRACE_DETACH if in pass
5115 state.
5116
3657956b
GB
51172014-06-09 Gary Benson <gbenson@redhat.com>
5118
5119 * common/signals.c (gdb_signal_from_host): Reorder to separate
5120 the always-available ANSI-standard signals from the signals that
5121 require checking.
5122 (do_gdb_signal_to_host): Likewise.
5123 * proc-events.c (signal_table): Likewise.
5124
c077881a
HZ
51252014-06-08 Hui Zhu <hui@codesourcery.com>
5126
5127 * common/linux-ptrace.c (linux_disable_event_reporting): New
5128 function.
5129 * common/linux-ptrace.h (linux_disable_event_reporting): New
5130 declaration.
5131 * linux-nat.c (linux_child_follow_fork): Do a single step before
5132 detach.
5133
4186eb54
KS
51342014-06-07 Keith Seitz <keiths@redhat.com>
5135
5136 Revert:
5137 PR c++/16253
5138 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5139 from symbol_matches_domain in symtab.c. All local callers
5140 of symbol_matches_domain updated.
5141 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5142 search STRUCT_DOMAIN.
5143 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5144 independently. standard_lookup will do that automatically.
5145 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5146 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5147 (cp_lookup_symbol_in_namespace): Likewise.
5148 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5149 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5150 may return a STRUCT_DOMAIN match.
5151 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5152 * cp-support.c: Include language.h.
5153 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5154 VAR_DOMAIN.
5155 * psymtab.c (match_partial_symbol): Compare the requested
5156 domain with the symbol's domain directly.
5157 (lookup_partial_symbol): Likewise.
5158 * symtab.c (lookup_symbol_in_language): Explain when/why
5159 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5160 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5161 appropriate languages.
5162 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5163 and moved to ada-lang.c
5164 (lookup_block_symbol): Explain that this function only returns
5165 symbol matching the requested DOMAIN.
5166 Compare the requested domain with the symbol's domain directly.
5167 (iterate_over_symbols): Compare the requested domain with the
5168 symbol's domain directly.
5169 * symtab.h (symbol_matches_domain): Remove.
5170
25326a28 51712014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5172
5173 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5174 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5175 (gdbscm_guile_version_is_at_least): Declare.
5176 (gdbscm_scm_string_to_int): Declare.
5177 * guile/guile.c (gdbscm_guile_major_version): New global.
5178 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5179 (guile_datadir): New static global.
5180 (gdbscm_guile_data_directory): New function.
5181 (initialize_scheme_side): Update.
5182 (misc_guile_functions): Add guile-data-directory.
5183 (initialize_gdb_module): Fetch guile version number.
5184 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5185 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5186 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5187 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5188 comments.
5189 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5190 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5191 * guile/scm-value.c (gdbscm_value_to_string): Only call
5192 scm_port_conversion_strategy if Guile version >= 2.0.6.
5193
0a770bb2 51942014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5195
5196 * main.c (print_gdb_help): Add -q and --silent.
5197
73ba372c
GB
51982014-06-06 Gary Benson <gbenson@redhat.com>
5199
5200 * common/signals.c: Remove preprocessor conditionals for
5201 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5202 SIGSEGV and SIGTERM.
5203 * proc-events.c: Likewise.
5204
c33b2f12
MM
52052014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5206
5207 * symfile.c (symfile_free_objfile): Remove restriction to
5208 OBJF_USERLOADED.
5209 * symfile-mem.c (symbol_file_add_from_memory): Call
5210 add_target_sections_of_objfile.
5211
fb934770
LC
52122014-06-05 Ludovic Courtès <ludo@gnu.org>
5213
5214 * guile/scm-value.c (gdbscm_history_append_x): Use
5215 'vlscm_get_value_smob_arg_unsafe' instead of
5216 'vlscm_scm_to_value'.
5217
6ef284bd
SM
52182014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5219
5220 PR mi/15806
5221 * utils.c (printchar): Don't escape at all if quoter is NUL.
5222 Update function documentation to clarify effect of parameter
5223 QUOTER.
5224 * remote.c (escape_buffer): Pass '\\' as the quoter to
5225 fputstrn_unfiltered.
5226 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5227 generate the output.
5228 (mi_solib_unloaded): Same.
5229
270c9937
JB
52302014-06-05 Joel Brobecker <brobecker@adacore.com>
5231
5232 * development.sh: Delete.
5233 * Makefile.in (config.status): Adjust dependency on development.sh.
5234 * configure.ac: Adjust development.sh source call.
5235 * configure: Regenerate.
5236
16f691fb
DE
52372014-06-04 Doug Evans <xdje42@gmail.com>
5238
5239 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5240 is_scheme_bkpt, spec.
5241 (bpscm_make_breakpoint_smob): Initialize new members.
5242 (gdbscm_create_breakpoint_x): Split into two ...
5243 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5244 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5245 (scheme_function breakpoint_functions): Update.
5246 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5247 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5248 register-breakpoint!.
5249
ef7cab6b
JB
52502014-06-04 Joel Brobecker <brobecker@adacorer.com>
5251
5252 PR server/17023
5253 * mem-break.c (z_type_supported): Return zero if
5254 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5255
012370f6
TT
52562014-06-04 Tom Tromey <tromey@redhat.com>
5257
5258 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5259 value_from_contents_and_address_unresolved.
5260 (ada_template_to_fixed_record_type_1): Likewise.
5261 (ada_which_variant_applies): Likewise.
5262 * value.h (value_from_contents_and_address_unresolved): Declare.
5263 * value.c (value_from_contents_and_address_unresolved): New
5264 function.
5265 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5266 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5267 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5268
92e2a17f
TT
52692014-06-04 Tom Tromey <tromey@redhat.com>
5270
5271 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5272
c0939df1
TT
52732014-06-04 Tom Tromey <tromey@redhat.com>
5274
5275 * procfs.c (procfs_attach): Make "args" const.
5276 * windows-nat.c (windows_attach): Make "args" const.
5277 * nto-procfs.c (procfs_attach): Make "args" const.
5278 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5279 * go32-nat.c (go32_attach): Make "args" const.
5280 * gnu-nat.c (gnu_attach): Make "args" const.
5281 * darwin-nat.c (darwin_attach): Make "args" const.
5282 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5283 * linux-nat.c (linux_nat_attach): Make "args" const.
5284 * remote.c (extended_remote_attach_1, extended_remote_attach):
5285 Make "args" const.
5286 * target.h (struct target_ops) <to_attach>: Make "args" const.
5287 (find_default_attach): Likewise.
5288 * utils.c (parse_pid_to_attach): Make "args" const.
5289 * utils.h (parse_pid_to_attach): Update.
5290
8eaff7cd
TT
52912014-06-04 Tom Tromey <tromey@redhat.com>
5292
5293 * target-delegates.c: Rebuild.
5294 * target.c (default_thread_address_space): New function.
5295 (target_thread_address_space): Simplify.
5296 * target.h (struct target_ops) <to_thread_address_space>: Add
5297 TARGET_DEFAULT_FUNC.
5298
1913f160
DE
52992014-06-04 Doug Evans <xdje42@gmail.com>
5300
5301 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5302
70ad5bff
MM
53032014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5304
5305 * record-btrace.c: Include event-loop.h and inf-loop.h.
5306 (record_btrace_resume_exec_dir)
5307 (record_btrace_async_inferior_event_handler)
5308 (record_btrace_handle_async_inferior_event): New.
5309 (record_btrace_open): Create async event handler.
5310 (record_btrace_close): Delete async event handler.
5311 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5312 Mark async event handler.
5313 (record_btrace_execution_direction): New.
5314 (init_record_btrace_ops): Initialize to_execution_direction.
5315
b6210538
DE
53162014-06-03 Doug Evans <xdje42@gmail.com>
5317
5318 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5319 (gdbscm_make_parameter): Ditto.
5320
a5b1fd27
DE
53212014-06-03 Doug Evans <dje@google.com>
5322
5323 * exec.c (exec_close_1): Call clear_section_table instead of
5324 resize_section_table.
5325 (clear_section_table): New function.
5326 (resize_section_table): Make static. Rename arg num_added to
5327 adjustment.
5328 * exec.h (clear_section_table): Declare.
5329 (resize_section_table): Delete.
5330 * progspace.c (release_program_space): Call clear_section_table
5331 instead of resize_section_table.
5332
0c6e92a5
SC
53332014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5334
5335 * NEWS (Python Scripting): Add entry about the new xmethods
5336 feature.
5337
883964a7
SC
53382014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5339
5340 * python/py-xmethods.c: New file.
5341 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5342 (objfpy_dealloc): XDECREF on the new xmethods field.
5343 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5344 field.
5345 (objfpy_get_xmethods): New function.
5346 (objfile_getset): New entry 'xmethods'.
5347 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5348 (pspy_dealloc): XDECREF on the new xmethods field.
5349 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5350 field.
5351 (pspy_get_xmethods): New function.
5352 (pspace_getset): New entry 'xmethods'.
5353 * python/python-internal.h: Add declarations for new functions.
5354 * python/python.c (_initialize_python): Invoke
5355 gdbpy_initialize_xmethods.
5356 * python/lib/gdb/__init__.py (xmethods): New
5357 attribute.
5358 * python/lib/gdb/xmethod.py: New file.
5359 * python/lib/gdb/command/xmethods.py: New file.
5360
58992dc5
SC
53612014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5362
5363 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5364 best match method returned by find_overload_match is an xmethod.
5365 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5366 the best matching operator returned by find_overload_match is an
5367 xmethod.
5368 * valops.c: #include "extension.h".
5369 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5370 Return void. The list of matching source methods is returned in
5371 "fn_list" and a vector of matching debug method workers is
5372 returned in "xm_worker_vec". Update all callers.
5373 (value_find_oload_method_list): Likewise.
5374 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5375 non-NULL, then the index of the best matching method in this
5376 vector is returned. Update all callers.
5377 (find_overload_match): Include xmethods while performing overload
5378 resolution.
5379
e81e7f5e
SC
53802014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5381
5382 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5383 * extension-priv.h (struct extension_language_ops): Add the
5384 xmethod interface.
5385 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5386 get_matching_xmethod_workers, get_xmethod_argtypes,
5387 invoke_xmethod, free_xmethod_worker,
5388 free_xmethod_worker_vec): New functions.
5389 * extension.h: #include "common/vec.h".
5390 New function declarations.
5391 (struct xmethod_worker): New struct.
5392 (VEC (xmethod_worker_ptr)): New vector type.
5393 (xmethod_worker_ptr): New typedef.
5394 (xmethod_worker_vec): Likewise.
5395 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5396 builtin_type.
5397 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5398 (struct builtin_type): New field "xmethod".
5399 * valarith.c (value_ptradd): Assert that the value argument is not
5400 lval_xcallable.
5401 * valops.c (value_must_coerce_to_target): Return 0 for
5402 lval_xcallable values.
5403 * value.c (struct value): New field XM_WORKER in the field
5404 LOCATION.
5405 (value_address, value_raw_address): Return 0 for lval_xcallable
5406 values.
5407 (set_value_address): Assert that the value is not an
5408 lval_xcallable.
5409 (value_free): Free the associated xmethod worker when freeing
5410 lval_xcallable values.
5411 (set_value_component_location): Assert that the WHOLE value is not
5412 lval_xcallable.
5413 (value_of_xmethod, call_xmethod): New functions.
5414 * value.h: Declare "struct xmethod_worker".
5415 Declare new functions value_of_xmethod, call_xmethod.
5416
ef370185
JB
54172014-06-03 Joel Brobecker <brobecker@adacore.com>
5418 Pedro Alves <palves@redhat.com>
5419
5420 PR breakpoints/17000
5421 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5422 New function, extracted from software_breakpoint_inserted_here_p.
5423 (software_breakpoint_inserted_here_p): Replace factored out code
5424 by call to find_non_raw_software_breakpoint_inserted_here.
5425 (bp_target_info_copy_insertion_state): New function.
5426 (bkpt_insert_location): Handle the case of a single-step
5427 breakpoint already inserted at the same address.
5428 (bkpt_remove_location): Handle the case of a single-step
5429 breakpoint still inserted at the same address.
5430 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5431 breakpoint already inserted at the same address.
5432 (deprecated_remove_raw_breakpoint): Handle the case of a
5433 non-raw breakpoint still inserted at the same address.
5434 (find_single_step_breakpoint): New function, extracted from
5435 single_step_breakpoint_inserted_here_p.
5436 (find_single_step_breakpoint): New function,
5437 factored out from single_step_breakpoint_inserted_here_p.
5438 (single_step_breakpoint_inserted_here_p): Reimplement.
5439
1e2ccb61
BM
54402014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5441
5442 Pushed by Joel Brobecker <brobecker@adacore.com>
5443 * source.c (show_substitute_path_command): Fix display of matching
5444 substitution rules.
5445
d3448d85
GB
54462014-06-03 Gary Benson <gbenson@redhat.com>
5447
5448 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5449
06eb1586
DE
54502014-06-02 Doug Evans <xdje42@gmail.com>
5451
5452 Add parameter support for Guile.
5453 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5454 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5455 (scm-param.o): New rule.
5456 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5457 (gdbscm_misc_error): Declare.
5458 (gdbscm_canonicalize_command_name): Declare.
5459 (gdbscm_scm_to_host_string): Declare.
5460 (gdbscm_scm_from_host_string): Declare.
5461 (gdbscm_initialize_parameters): Declare.
5462 * guile/guile.c (initialize_gdb_module): Call
5463 gdbscm_initialize_parameters.
5464 * guile/lib/gdb.scm: Export parameter symbols.
5465 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5466 cmdscm_canonicalize_name and made public. All callers updated.
5467 * guile/scm-exception.c (gdbscm_misc_error): New function.
5468 * guile/scm-param.c: New file.
5469 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5470 (gdbscm_scm_to_host_string): New function.
5471 (gdbscm_scm_from_host_string): New function.
5472 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5473
e698b8c4
DE
54742014-06-02 Doug Evans <xdje42@gmail.com>
5475
5476 Add command support for Guile.
5477 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5478 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5479 (scm-cmd.o): New rule.
5480 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5481 (gdbscm_user_error_p): Declare.
5482 (gdbscm_parse_command_name): Declare.
5483 (gdbscm_valid_command_class_p): Declare.
5484 (gdbscm_initialize_commands): Declare.
5485 * guile/guile.c (initialize_gdb_module): Call
5486 gdbscm_initialize_commands.
5487 * guile/lib/gdb.scm: Export command symbols.
5488 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5489 (throw-user-error): New function.
5490 * guile/scm-cmd.c: New file.
5491 * guile/scm-exception.c (user_error_symbol): New static global.
5492 (gdbscm_user_error_p): New function.
5493 (gdbscm_initialize_exceptions): Set user_error_symbol.
5494 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5495
fb1f94b0
PM
54962014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5497
5498 * top.c (command_loop): Handle comments here...
5499 (command_line_input): ... not here.
5500
ded03782
DE
55012014-06-02 Doug Evans <xdje42@gmail.com>
5502
5503 Add progspace support for Guile.
5504 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5505 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5506 (scm-progspace.o): New rule.
5507 * guile/guile-internal.h (pspace_smob): New typedef.
5508 (psscm_pspace_smob_pretty_printers): Declare.
5509 (psscm_pspace_smob_from_pspace): Declare.
5510 (psscm_scm_from_pspace): Declare.
5511 * guile/guile.c (initialize_gdb_module): Call
5512 gdbscm_initialize_pspaces.
5513 * guile/lib/gdb.scm: Export progspace symbols.
5514 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5515 support.
5516 (append-pretty-printer!): Ditto.
5517 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5518 Implement.
5519 * guile/scm-progspace.c: New file.
5520
397998fc
AM
55212014-06-03 Alan Modra <amodra@gmail.com>
5522
5523 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5524 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5525
6aa5f3a6
DE
55262014-06-02 Doug Evans <dje@google.com>
5527
5528 Add support for skeletonless type units.
5529 * dwarf2read.c (struct dwarf2_per_objfile): New member
5530 n_allocated_type_units.
5531 (struct dwarf2_per_objfile) <tu_stats>: New member
5532 nr_all_type_units_reallocs.
5533 (create_signatured_type_table_from_index): Initialize
5534 n_allocated_type_units
5535 (create_all_type_units): Ditto.
5536 (add_type_unit): Move up in file. New arg slot.
5537 All callers updated. Increase space for all_type_units more
5538 efficiently.
5539 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5540 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5541 (lookup_dwp_signatured_type): Ditto.
5542 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5543 All callers updated.
5544 (build_type_psymtabs_1): Leave type_unit_groups as
5545 NULL if no TUs present.
5546 (print_tu_stats): New function.
5547 (process_skeletonless_type_unit): New function.
5548 (process_dwo_file_for_skeletonless_type_units): New
5549 function.
5550 (process_skeletonless_type_units): New function.
5551 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5552 Call print tu_stats if debugging enabled.
5553
41fac0cf
PA
55542014-06-02 Pedro Alves <palves@redhat.com>
5555
5556 * breakpoint.c (build_target_command_list): Don't build a command
5557 list if we have any duplicate location that isn't a dprintf.
5558
cd1608cc
PA
55592014-06-02 Pedro Alves <palves@redhat.com>
5560
5561 * breakpoint.c (dprintf_breakpoint_hit): New function.
5562 (initialize_breakpoint_ops): Install it as dprintf's
5563 breakpoint_hit method.
5564
486ef3b9
JB
55652014-06-02 Joel Brobecker <brobecker@adacore.com>
5566
5567 * source.c (substitute_path_rule_matches): Simplify using
5568 filename_ncmp instead of FILENAME_CMP.
5569
230cd560
JB
55702014-06-02 Joel Brobecker <brobecker@adacore.com>
5571
5572 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5573
16954d5d
LC
55742014-06-01 Ludovic Courtès <ludo@gnu.org>
5575
5576 * configure.ac: When Guile is available, check for the
5577 availability of 'scm_new_smob'.
5578 * configure, config.h.in: Regenerate.
5579 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5580 function.
5581
53e8a631
AB
55822014-05-30 Andrew Burgess <aburgess@broadcom.com>
5583
5584 * frame.c (struct frame_info): Add stop_string field.
5585 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5586 (get_prev_frame_always): Old content moved into
5587 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5588 TRY_CATCH, handle MEMORY_ERROR exceptions.
5589 (frame_stop_reason_string): New function definition.
5590 * frame.h (unwind_stop_reason_to_string): Extend comment to
5591 mention frame_stop_reason_string.
5592 (frame_stop_reason_string): New function declaration.
5593 * stack.c (frame_info): Switch to frame_stop_reason_string.
5594 (backtrace_command_1): Switch to frame_stop_reason_string.
5595 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5596 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5597 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5598
70e38b8e
AB
55992014-05-30 Andrew Burgess <aburgess@broadcom.com>
5600
5601 * frame.c (frame_stop_reason_string): Rename to ...
5602 (unwind_stop_reason_to_string): this.
5603 * frame.h (frame_stop_reason_string): Rename to ...
5604 (unwind_stop_reason_to_string): this.
5605 * stack.c (frame_info): Update call to frame_stop_reason_string.
5606 (backtrace_command_1): Likewise.
5607 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5608 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5609
938f0e2f
AB
56102014-05-30 Andrew Burgess <aburgess@broadcom.com>
5611
5612 * frame.c (remove_prev_frame): New function.
5613 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5614 remove_prev_frame.
5615
a09dd441
PA
56162014-05-29 Pedro Alves <palves@redhat.com>
5617
5618 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5619 and make it const. When a single-step decays to a continue,
5620 clear 'step', not 'hw_step'. Pass whether the caller wanted
5621 to step to user_visible_resume_ptid, not what we ask the
5622 target to do.
5623
bdc36728
PA
56242014-05-29 Pedro Alves <palves@redhat.com>
5625
5626 * infrun.c (process_event_stop_test, handle_step_into_function)
5627 (handle_step_into_function_backward): Adjust.
5628 Don't set the even thread's stop_step and call stop_waiting before
5629 calling end_stepping_range. Instead do that ...
5630 (end_stepping_range): ... here. Take an ecs pointer parameter.
5631
22bcd14b
PA
56322014-05-29 Pedro Alves <palves@redhat.com>
5633
5634 * infrun.c (stop_stepping): Rename to ...
5635 (stop_waiting): ... this.
5636 (proceed): Update comment.
5637 (process_event_stop_test, handle_inferior_event)
5638 (handle_signal_stop, handle_step_into_function)
5639 (handle_step_into_function_backward): Update.
5640
4ae57c05
PA
56412014-05-29 Pedro Alves <palves@redhat.com>
5642
5643 * infcall.c (run_inferior_call): Don't check whether the current
5644 thread is running after the proceed call.
5645
329ea579
PA
56462014-05-29 Pedro Alves <palves@redhat.com>
5647 Tom Tromey <tromey@redhat.com>
5648
5649 * NEWS: Mention "maint set target-async", "set mi-async", and that
5650 background execution commands are now always available.
5651 * target.h (target_async_permitted): Update comment.
5652 * target.c (target_async_permitted, target_async_permitted_1):
5653 Default to 1.
5654 (set_target_async_command): Rename to ...
5655 (maint_set_target_async_command): ... this.
5656 (show_target_async_command): Rename to ...
5657 (maint_show_target_async_command): ... this.
5658 (_initialize_target): Adjust.
5659 * infcmd.c (prepare_execution_command): Make extern.
5660 * inferior.h (prepare_execution_command): Declare.
5661 * infrun.c (set_observer_mode): Leave target async alone.
5662 * mi/mi-interp.c (mi_interpreter_init): Install
5663 mi_on_sync_execution_done as sync_execution_done observer.
5664 (mi_on_sync_execution_done): New function.
5665 (mi_execute_command_input_handler): Don't print the prompt if we
5666 just started a synchronous command with an async target.
5667 (mi_on_resume): Check sync_execution before printing prompt.
5668 * mi/mi-main.h (mi_async_p): Declare.
5669 * mi/mi-main.c: Include gdbcmd.h.
5670 (mi_async_p): New function.
5671 (mi_async, mi_async_1): New globals.
5672 (set_mi_async_command, show_mi_async_command, mi_async): New
5673 functions.
5674 (exec_continue): Call prepare_execution_command.
5675 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5676 (mi_execute_async_cli_command): Use mi_async_p.
5677 (_initialize_mi_main): Install "set mi-async". Make
5678 "target-async" a deprecated alias.
5679
92bcb5f9
PA
56802014-05-29 Pedro Alves <palves@redhat.com>
5681
5682 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5683 (_initialize_cli_interp): Adjust.
5684 * event-loop.c: Include "observer.h".
5685 (start_event_loop): Notify 'command_error' observers instead of
5686 calling display_gdb_prompt. Remove FIXME comment.
5687 * event-top.c (display_gdb_prompt): Remove call into the
5688 interpreters.
5689 * inf-loop.c: Include "observer.h".
5690 (inferior_event_handler): Notify 'command_error' observers instead
5691 of calling display_gdb_prompt.
5692 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5693 observers instead of calling display_gdb_prompt.
5694 * interps.c (interp_set): Don't call display_gdb_prompt.
5695 (current_interp_display_prompt_p): Delete.
5696 * interps.h (interp_prompt_p): Delete declaration.
5697 (interp_prompt_p_ftype): Delete.
5698 (struct interp_procs) <prompt_proc_p>: Delete field.
5699 (current_interp_display_prompt_p): Delete declaration.
5700 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5701 (_initialize_mi_interp): Adjust.
5702 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5703 'command_error' observers.
5704 (tui_on_sync_execution_done, tui_on_command_error): New
5705 functions.
5706 (tui_display_prompt_p): Delete.
5707 (_initialize_tui_interp): Adjust.
5708
fd664c91
PA
57092014-05-29 Pedro Alves <palves@redhat.com>
5710
5711 PR gdb/13860
5712 * cli/cli-interp.c: Include infrun.h and observer.h.
5713 (cli_uiout, cli_interp): New globals.
5714 (cli_on_signal_received, cli_on_end_stepping_range)
5715 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5716 functions.
5717 (cli_interpreter_init): Install them as 'end_stepping_range',
5718 'signal_received' 'signal_exited', 'exited' and 'no_history'
5719 observers.
5720 (_initialize_cli_interp): Remove cli_interp local.
5721 * infrun.c (handle_inferior_event): Call the several stop reason
5722 observers instead of printing the stop reason directly.
5723 (end_stepping_range): New function.
5724 (print_end_stepping_range_reason, print_signal_exited_reason)
5725 (print_exited_reason, print_signal_received_reason)
5726 (print_no_history_reason): Make static, and add an uiout
5727 parameter. Print to that instead of to CURRENT_UIOUT.
5728 * infrun.h (print_end_stepping_range_reason)
5729 (print_signal_exited_reason, print_exited_reason)
5730 (print_signal_received_reason print_no_history_reason): New
5731 declarations.
5732 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5733 'mi_uiout'.
5734 <cli_uiout>: New field.
5735 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5736 uiout for CLI output. Install 'signal_received',
5737 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5738 observers.
5739 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5740 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5741 (mi_on_no_history): New functions.
5742 (ui_out_free_cleanup): Delete function.
5743 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5744 instead use the one already stored in the MI interpreter data.
5745 (mi_ui_out): Adjust.
5746 * tui/tui-interp.c: Include infrun.h and observer.h.
5747 (tui_interp): New global.
5748 (tui_on_signal_received, tui_on_end_stepping_range)
5749 (tui_on_signal_exited, tui_on_exited)
5750 (tui_on_no_history): New functions.
5751 (tui_init): Install them as 'end_stepping_range',
5752 'signal_received' 'signal_exited', 'exited' and 'no_history'
5753 observers.
5754 (_initialize_tui_interp): Delete tui_interp local.
5755
8817a6f2
PA
57562014-05-29 Pedro Alves <palves@redhat.com>
5757
5758 PR gdb/15713
5759 * linux-nat.c (linux_nat_resume_callback): Rename the second
5760 parameter to 'except'. Skip LP if it points to EXCEPT.
5761 (linux_nat_resume): Don't mark the event lwp as not stopped
5762 before resuming sibling lwps. Instead ask
5763 linux_nat_resume_callback to skip the event lwp. Mark it as not
5764 stopped after actually resuming it.
5765 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5766 resuming it.
5767 (wait_lwp): Mark the lwp as stopped here.
5768 (stop_wait_callback): Mark the lwp as not stopped right after
5769 resuming it. Don't mark lwps as stopped here.
5770 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5771 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5772
251bde03
PA
57732014-05-29 Pedro Alves <palves@redhat.com>
5774
5775 PR PR15693
5776 * infrun.c (resume): Determine how much to resume depending on
5777 whether the caller wanted a step, not whether we can hardware step
5778 the target. Mark all threads that we intend to run as running,
5779 unless we're calling an inferior function.
5780 (normal_stop): If the thread is running an infcall, don't finish
5781 thread state.
5782 * target.c (target_resume): Don't mark threads as running here.
5783
7f3c0343
JB
57842014-05-28 Joel Brobecker <brobecker@adacore.com>
5785
5786 * serial.c (_initialize_serial): Remove support for
5787 the "set remotebaud" and "show remotebaud" commands.
5788 * NEWS: Add entry documenting the removal of that command.
5789
ee34b3f9
YQ
57902014-05-28 Yao Qi <yao@codesourcery.com>
5791
5792 * charset.c: Fix typo in comments.
5793
add6c04d
GB
57942014-05-27 Gary Benson <gbenson@redhat.com>
5795
5796 * utils.c (internal_vproblem): Prompt for a bug report.
5797
92c48fc5
AW
57982014-05-26 Andy Wingo <wingo@igalia.com>
5799
5800 * guile/scm-arch.c (arscm_mark_arch_smob):
5801 * guile/scm-block.c (bkscm_mark_block_smob)
5802 (bkscm_mark_block_syms_progress_smob):
5803 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5804 * guile/scm-exception.c (exscm_mark_exception_smob):
5805 * guile/scm-frame.c (frscm_mark_frame_smob):
5806 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5807 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5808 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5809 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5810 (ppscm_mark_pretty_printer_worker_smob):
5811 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5812 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5813 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5814 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5815 mark functions.
5816 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5817 function.
5818
b2715b27
AW
58192014-05-26 Andy Wingo <wingo@igalia.com>
5820 Doug Evans <xdje42@gmail.com>
5821
5822 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5823 empty_base_class. All uses updated.
5824 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5825 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5826 Adapt all callers.
5827 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5828 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5829 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5830 (gdbscm_gsmob_has_property_p, add_property_name)
5831 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5832 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5833 (gdb-object-has-property?, gdb-object-properties): Remove.
5834 (gdb-object-kind): Renamed from gsmob-kind.
5835
214ab2da
AW
58362014-05-26 Andy Wingo <wingo@igalia.com>
5837
5838 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5839 * configure: Regenerate.
5840
589fdceb
MM
58412014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5842
5843 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5844
67b5c0c1
MM
58452014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5846
5847 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5848 (replay_memory_access_read_only, replay_memory_access_read_write)
5849 (replay_memory_access_types, replay_memory_access)
5850 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5851 (cmd_set_record_btrace, cmd_show_record_btrace)
5852 (cmd_show_replay_memory_access): New.
5853 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5854 (record_btrace_remove_breakpoint): Replace
5855 record_btrace_allow_memory_access with replay_memory_access.
5856 (_initialize_record_btrace): Add commands.
5857 * NEWS: Announce it.
5858
036cd381
RR
58592014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5860
5861 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5862
c77c1e42
RR
58632014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5864
5865 * MAINTAINERS (Write After Approval): Move self back from
5866 paper trail.
5867
45741a9c
PA
58682014-05-22 Pedro Alves <palves@redhat.com>
5869
5870 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5871 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5872 (disable_randomization, enum exec_direction_kind)
5873 (execution_direction, stop_registers, start_remote)
5874 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5875 (wait_for_inferior, normal_stop, get_last_target_status)
5876 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5877 (insert_step_resume_breakpoint_at_sal)
5878 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5879 (set_step_info, print_stop_event, signal_stop_state)
5880 (signal_print_state, signal_pass_state, signal_stop_update)
5881 (signal_print_update, signal_pass_update)
5882 (update_signals_program_target, clear_exit_convenience_vars)
5883 (displaced_step_dump_bytes, update_observer_mode)
5884 (signal_catch_update, gdb_signal_from_command): Move
5885 declarations ...
5886 * infrun.h: ... to this new file.
5887 * amd64-tdep.c: Include infrun.h.
5888 * annotate.c: Include infrun.h.
5889 * arch-utils.c: Include infrun.h.
5890 * arm-linux-tdep.c: Include infrun.h.
5891 * arm-tdep.c: Include infrun.h.
5892 * break-catch-sig.c: Include infrun.h.
5893 * breakpoint.c: Include infrun.h.
5894 * common/agent.c: Include infrun.h instead of inferior.h.
5895 * corelow.c: Include infrun.h.
5896 * event-top.c: Include infrun.h.
5897 * go32-nat.c: Include infrun.h.
5898 * i386-tdep.c: Include infrun.h.
5899 * inf-loop.c: Include infrun.h.
5900 * infcall.c: Include infrun.h.
5901 * infcmd.c: Include infrun.h.
5902 * infrun.c: Include infrun.h.
5903 * linux-fork.c: Include infrun.h.
5904 * linux-nat.c: Include infrun.h.
5905 * linux-thread-db.c: Include infrun.h.
5906 * monitor.c: Include infrun.h.
5907 * nto-tdep.c: Include infrun.h.
5908 * procfs.c: Include infrun.h.
5909 * record-btrace.c: Include infrun.h.
5910 * record-full.c: Include infrun.h.
5911 * remote-m32r-sdi.c: Include infrun.h.
5912 * remote-mips.c: Include infrun.h.
5913 * remote-notif.c: Include infrun.h.
5914 * remote-sim.c: Include infrun.h.
5915 * remote.c: Include infrun.h.
5916 * reverse.c: Include infrun.h.
5917 * rs6000-tdep.c: Include infrun.h.
5918 * s390-linux-tdep.c: Include infrun.h.
5919 * solib-irix.c: Include infrun.h.
5920 * solib-osf.c: Include infrun.h.
5921 * solib-svr4.c: Include infrun.h.
5922 * target.c: Include infrun.h.
5923 * top.c: Include infrun.h.
5924 * windows-nat.c: Include infrun.h.
5925 * mi/mi-interp.c: Include infrun.h.
5926 * mi/mi-main.c: Include infrun.h.
5927 * python/py-threadevent.c: Include infrun.h.
5928
98eb56a4
PA
59292014-05-22 Pedro Alves <palves@redhat.com>
5930
5931 * infrun.c (handle_inferior_event): Store the exit code for
5932 --return-child-result here, instead of ...
5933 (print_exited_reason): ... here.
5934
17b2616c
PA
59352014-05-21 Pedro Alves <palves@redhat.com>
5936
5937 PR gdb/13860
5938 * gdbthread.h (struct thread_control_state): New field
5939 `command_interp'.
5940 * infrun.c (follow_fork): Copy the new thread control field to the
5941 child fork thread.
5942 (clear_proceed_status_thread): Clear the new thread control field.
5943 (proceed): Set the new thread control field.
5944 * interps.h (command_interp): Declare.
5945 * interps.c (command_interpreter): New global.
5946 (command_interp): New function.
5947 (interp_exec): Set `command_interpreter' while here.
5948 * cli-out.c (cli_uiout_dtor): New function.
5949 (cli_ui_out_impl): Install it.
5950 * mi/mi-interp.c: Include cli-out.h.
5951 (mi_cmd_interpreter_exec): Add comment.
5952 (restore_current_uiout_cleanup): New function.
5953 (ui_out_free_cleanup): New function.
5954 (mi_on_normal_stop): If finishing an execution command started by
5955 a CLI command, or any kind of breakpoint-like event triggered,
5956 print the stop event to the output (CLI) stream.
5957 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5958
5166082f
PA
59592014-05-21 Pedro Alves <palves@redhat.com>
5960
5961 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5962 current source line having changed.
5963 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5964 * infrun.c (normal_stop): Adjust call to
5965 set_current_sal_from_frame.
5966 * source.c (clear_lines_listed_range): New function.
5967 (set_current_source_symtab_and_line, identify_source_line): Clear
5968 the lines listed range.
5969 (line_info): Handle the first "info line" after the current source
5970 line having changed.
5971 * stack.c (print_stack_frame): Remove center handling.
5972 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5973 center sal.line.
5974
c1ee2fb3
PA
59752014-05-21 Pedro Alves <palves@redhat.com>
5976
5977 * inf-child.c (inf_child_mourn_inferior): New function.
5978 * inf-child.h (inf_child_mourn_inferior): New declaration.
5979 * darwin-nat.c (darwin_mourn_inferior): Use
5980 inf_child_mourn_inferior.
5981 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5982 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5983 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5984 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5985 * windows-nat.c (windows_mourn_inferior): Likewise.
5986
5c6d4fb2
DE
59872014-05-21 Doug Evans <xdje42@gmail.com>
5988
250748cb 5989 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5990
4a2722c5
DE
59912014-05-21 Doug Evans <xdje42@gmail.com>
5992
17292b30 5993 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5994 (gdbscm_out_of_range_error): Ditto.
5995 (gdbscm_memory_error): Ditto.
250748cb
DE
5996 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5997 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5998 (gdbscm_out_of_range_error): Update.
5999 (gdbscm_memory_error): Update.
6000 (gdbscm_scm_to_target_string_unsafe): Delete.
6001
6a3cb8e8
PA
60022014-05-21 Pedro Alves <palves@redhat.com>
6003
6004 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6005 globals.
6006 (inf_child_open_target): New function.
6007 (inf_child_open): Use inf_child_open_target to push the target
6008 instead of erroring out.
6009 (inf_child_disconnect, inf_child_close)
6010 (inf_child_maybe_unpush_target): New functions.
6011 (inf_child_target): Install inf_child_disconnect and
6012 inf_child_close. Store a pointer to the returned object.
6013 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6014 declarations.
6015 * target.c (auto_connect_native_target): New global.
6016 (show_default_run_target): New function.
6017 (find_default_run_target): Return NULL if automatically connecting
6018 to the native target is disabled.
6019 (_initialize_target): Install set/show auto-connect-native-target.
6020 * NEWS: Mention "set auto-connect-native-target", and "target
6021 native".
6022 * linux-nat.c (super_close): New global.
6023 (linux_nat_close): Call super_close.
6024 (linux_nat_add_target): Store a pointer to the base class's
6025 to_close method.
6026 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6027 inf_child_maybe_unpush.
6028 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6029 already pushed.
6030 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6031 the inferior. Use inf_child_maybe_unpush_target.
6032 (inf_ttrace_attach): Don't push the target if it is already
6033 pushed.
6034 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6035 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6036 after mourning the inferior. Use inf_child_maybe_unpush_target.
6037 (darwin_attach_pid): Don't push the target if it is already
6038 pushed.
6039 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6040 mourning the inferior. Use inf_child_maybe_unpush_target.
6041 (gnu_detach): Use inf_child_maybe_unpush_target.
6042 * go32-nat.c (go32_create_inferior): Don't push the target if it
6043 is already pushed.
6044 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6045 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6046 (procfs_open): Rename to ...
6047 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6048 comments. Can target_preopen before changing node. Call
6049 inf_child_open_target to push the target explicitly.
6050 (procfs_attach): Don't push the target if it is already pushed.
6051 (procfs_detach): Use inf_child_maybe_unpush_target.
6052 (procfs_create_inferior): Don't push the target if it is already
6053 pushed.
6054 (nto_native_ops): New global.
6055 (procfs_open): Reimplement.
6056 (procfs_native_open): New function.
6057 (init_procfs_targets): Install procfs_native_open as to_open of
6058 "target native". Store a pointer to the "native" target in
6059 nto_native_ops.
6060 * procfs.c (procfs_attach): Don't push the target if it is already
6061 pushed.
6062 (procfs_detach): Use inf_child_maybe_unpush_target.
6063 (procfs_mourn_inferior): Only unpush the target after mourning the
6064 inferior. Use inf_child_maybe_unpush_target.
6065 (procfs_init_inferior): Don't push the target if it is already
6066 pushed.
6067 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6068 if it is already pushed.
6069
930ee1b1
PA
60702014-05-21 Pedro Alves <palves@redhat.com>
6071
6072 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6073 and "procfs" targets are now called "native" instead.
6074
1f5d1b13
PA
60752014-05-21 Pedro Alves <palves@redhat.com>
6076
6077 * go32-nat.c (go32_open): Delete.
6078 (go32_target): Don't override the to_open method.
6079
132f8e03
PA
60802014-05-21 Pedro Alves <palves@redhat.com>
6081
6082 * nto-procfs.c (procfs_can_run): New function.
6083 (nto_procfs_ops): New global.
6084 (init_procfs_targets): New, based on procfs_target. Install
6085 "target native" in addition to "target procfs".
6086 (_initialize_procfs): Call init_procfs_targets instead of adding
6087 the target here.
6088
03c136c3
PA
60892014-05-21 Pedro Alves <palves@redhat.com>
6090
6091 * windows-nat.c (windows_target): Don't override to_shortname,
6092 to_longname or to_doc.
6093
a635d0f3
PA
60942014-05-21 Pedro Alves <palves@redhat.com>
6095
6096 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6097 to_doc.
6098
4f9b5133
PA
60992014-05-21 Pedro Alves <palves@redhat.com>
6100
6101 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6102 to_shortname, to_longname or to_doc.
6103
bc85afde
PA
61042014-05-21 Pedro Alves <palves@redhat.com>
6105
6106 * go32-nat.c (go32_target): Don't override to_shortname,
6107 to_longname or to_doc.
6108
4ebfc96e
PA
61092014-05-21 Pedro Alves <palves@redhat.com>
6110
6111 * inf-child.c (inf_child_open): Remove mention of "child".
6112 (inf_child_target): Rename target to "native" instead of "child".
6113
2648dfed
AA
61142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6115
6116 * Makefile.in (SFILES): Delete "regset.c".
6117 (COMMON_OBS): Delete "regset.o".
6118 * regset.c: Remove.
6119 * regset.h (regset_alloc): Delete prototype.
6120
b13feb94
AA
61212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6122
6123 * sparc-linux-tdep.c (sparc32_linux_gregset)
6124 (sparc32_linux_fpregset): New static regset structures.
6125 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6126 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6127 'fpregset' fields.
6128 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6129 (sparc64_linux_fpregset): New static regset structures.
6130 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6131 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6132 New static regset structures.
6133 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6134 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6135 New static regset structures.
6136 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6137 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6138 New static regset structures.
6139 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6140 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6141 New static regset structures.
6142 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6143
b4fd25c9
AA
61442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6145
6146 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6147 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6148 register maps ("regmaps") from "*regset" to "*regmap". Do this
6149 for all regmap types and variables.
6150 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6151 (sparc32_linux_supply_core_gregset)
6152 (sparc32_linux_collect_core_gregset)
6153 (sparc32_linux_supply_core_fpregset)
6154 (sparc32_linux_collect_core_fpregset): Likewise.
6155 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6156 (sparc_gregmap, sparc_fpregmap): ... these.
6157 (sparc_supply_gregset, sparc_collect_gregset)
6158 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6159 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6160 (_initialize_sparc_nat): Rename regmaps.
6161 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6162 (sparc_gregmap, sparc_fpregmap): ... these.
6163 (sparc_supply_gregset, sparc_collect_gregset)
6164 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6165 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6166 Rename macros to...
6167 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6168 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6169 Likewise.
6170 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6171 Rename to...
6172 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6173 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6174 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6175 regmaps.
6176 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6177 (sparc32_bsd_fpregset): Rename to...
6178 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6179 (sparc32_bsd_fpregmap): ... these.
6180 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6181 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6182 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6183 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6184 (struct sparc_gregmap, struct sparc_fpregmap)
6185 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6186 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6187 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6188 (sparc32_supply_regset, sparc32_collect_gregset)
6189 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6190 prototypes.
6191 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6192 (sparc64_linux_ptrace_gregmap): ... this.
6193 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6194 (_initialize_sparc64_linux_nat): Rename regmaps.
6195 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6196 (sparc64_linux_core_gregmap): ... this.
6197 (sparc64_linux_supply_core_gregset)
6198 (sparc64_linux_collect_core_gregset)
6199 (sparc64_linux_supply_core_fpregset)
6200 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6201 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6202 (sparc64_sol2_fpregset): Rename to...
6203 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6204 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6205 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6206 regmaps.
6207 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6208 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6209 (sparc64_bsd_fpregset): Rename to...
6210 (struct sparc_gregmap, sparc64_sol2_gregmap)
6211 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6212 (sparc64_bsd_fpregmap): ... these.
6213 (sparc64_supply_gregset, sparc64_collect_gregset)
6214 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6215 prototypes.
6216 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6217 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6218 (sparc64fbsd_gregmap): ... this.
6219 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6220 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6221 Rename regmaps.
6222 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6223 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6224 (sparc64nbsd_collect_fpregset): Likewise.
6225 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6226 (sparc64nbsd_gregmap): ... this.
6227 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6228 regmaps.
6229 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6230 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6231 (sparc64obsd_gregmap): ... this.
6232 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6233 regmaps.
6234 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6235 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6236 (sparc32nbsd_gregmap): ... this.
6237 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6238 regmaps.
6239
8fea3224
AA
62402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6241
6242 * score-tdep.c (score7_linux_gregset): New static regset
6243 structure.
6244 (score7_linux_regset_from_core_section): Remove dynamic regset
6245 allocation.
6246 (score_gdbarch_init): Drop allocation of tdep structure.
6247 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6248
24534243
AA
62492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6250
6251 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6252 regset structures.
6253 (am33_regset_from_core_section): Remove dynamic regset
6254 allocations.
6255
b7195f27
AA
62562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6257
6258 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6259 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6260 structures.
6261 (mips_linux_regset_from_core_section): Remove dynamic regset
6262 allocations.
6263 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6264 'gregset64', 'fpregset', and 'fpregset64'.
6265 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6266 deleted tdep fields.
6267
ecc37a5a
AA
62682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6269
6270 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6271 regset structures.
6272 (amd64_regset_from_core_section): Remove dynamic regset
6273 allocations.
6274 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6275 structure.
6276 (amd64obsd_regset_from_core_section): Remove dynamic regset
6277 allocation.
6278 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6279 Likewise.
6280 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6281 x86-common regset supply function.
6282 * i386-tdep.c (i386_collect_gregset): Make static.
6283 (i386_gregset): New global regset structure.
6284 (i386_fpregset, i386_xstateregset): New static regset structures.
6285 (i386_regset_from_core_section): Remove dynamic regset
6286 allocations.
6287 (i386_gdbarch_init): Remove initialization of tdep fields
6288 'gregset', 'fpregset', and 'xstateregset'.
6289 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6290 'fpregset', and 'xstateregset'.
6291 (i386_collect_gregset): Remove prototype.
6292 (i386_gregset): New declaration.
6293 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6294 structure.
6295 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6296 allocation.
6297
b7611c43
AA
62982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6299
6300 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6301 (arm_linux_vfpregset): New static regset structures.
6302 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6303 regset structures.
6304 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6305 and 'vfpregset' fields.
6306
a069a2bd
AA
63072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6308
6309 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6310 (aarch64_linux_fpregset): New static regset structures.
6311 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6312 of regset structures.
6313 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6314 'fpregset' fields.
6315
09424cff
AA
63162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6317
6318 * regset.h (struct regset): Remove gdbarch field.
6319 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6320 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6321 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6322 Likewise.
6323 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6324 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6325 (ppc32_linux_vsxregset): Likewise.
6326 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6327 via the regcache instead of the regset.
6328 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6329 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6330 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6331 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6332 Likewise.
6333
3ca7dae4
AA
63342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6335
6336 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6337 Constify structures.
6338 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6339 (alphanbsd_aout_gregset): Likewise.
6340 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6341 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6342 Likewise.
6343 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6344 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6345 Likewise.
6346 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6347 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6348 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6349 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6350 * m88k-tdep.c (m88k_gregset): Likewise.
6351 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6352 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6353 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6354 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6355 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6356 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6357 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6358 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6359 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6360 Likewise.
6361 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6362 * sh-tdep.h (sh_corefile_gregset): Likewise.
6363 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6364 * vax-tdep.c (vax_gregset): Likewise.
6365
5876f503
JK
63662014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6367
6368 Fix TLS access for -static -pthread.
6369 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6370 (try_thread_db_load_1): Initialize it.
6371 (thread_db_get_thread_local_address): Call it if LM is zero.
6372 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6373 * target.h (struct target_ops) (to_get_thread_local_address): Add
6374 load_module_addr comment.
6375
0256a6ac
PA
63762014-05-21 Pedro Alves <palves@redhat.com>
6377
6378 * dcache.c (dcache_read_memory_partial): If reading the cache line
6379 fails, fallback to reading just the memory the caller wanted.
6380
227533ac
DE
63812014-05-20 Doug Evans <dje@google.com>
6382
6383 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6384 instead of get_current_arch.
6385
936d2992
PA
63862014-05-20 Pedro Alves <palves@redhat.com>
6387
6388 * NEWS: Mention that compare-sections now works with all targets.
6389
6390 * remote.c (PACKET_qCRC): New enum value.
6391 (remote_verify_memory): Don't send qCRC if the target has no
6392 execution. Use packet_support/packet_ok. If the target doesn't
6393 support the qCRC packet, fallback to a deep memory copy.
6394 (compare_sections_command): Say "target image" instead of "remote
6395 executable".
6396 (_initialize_remote): Add PACKET_qCRC to the list of config
6397 packets that have no associated command. Extend comment.
6398 * target.c (simple_verify_memory, default_verify_memory): New
6399 function.
6400 * target.h (struct target_ops) <to_verify_memory>: Default to
6401 default_verify_memory.
6402 (simple_verify_memory): New declaration.
6403 * target-delegates.c: Regenerate.
6404
e59fa00f
MM
64052014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6406
6407 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6408
f2205de0
HZ
64092014-05-20 Hui Zhu <hui@codesourcery.com>
6410 Yao Qi <yao@codesourcery.com>
6411
6412 PR backtrace/16558
6413 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6414 and change address of sp and pc.
6415
c4e54771
TT
64162014-05-19 Tom Tromey <tromey@redhat.com>
6417
6418 * gdbtypes.c (rank_function): Use XNEWVEC.
6419 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6420
73051182
DE
64212014-05-19 Doug Evans <dje@google.com>
6422
6423 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6424 build_type_unit_groups and moved closer to only caller. Remove
6425 arguments. All references updated. Remove outdated .gdb_index
6426 comment.
6427 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6428 build_type_psymtabs_1.
6429
8832e7e3
DE
64302014-05-19 Doug Evans <dje@google.com>
6431
6432 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6433 n_type_unit_groups, all_type_unit_groups. All uses removed.
6434 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6435 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6436 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6437 (add_type_unit_group_to_table): Delete.
6438
cd8ae15e
DE
64392014-05-19 Doug Evans <dje@google.com>
6440
6441 * eval.c (evaluate_subexp_standard): Add some comments.
6442
08f4850b
DE
64432014-05-17 Doug Evans <xdje42@gmail.com>
6444
6445 * progspace.c (remove_program_space): Delete, unused.
6446 * progspace.h (remove_program_space): Ditto.
6447
bed8455c
DE
64482014-05-17 Doug Evans <xdje42@gmail.com>
6449
6450 * inferior.c (prune_inferiors): Fix comment.
6451 (remove_inferior_command): Call prune_program_spaces.
6452
8d551b02
DE
64532014-05-16 Doug Evans <dje@google.com>
6454
6455 New command line option -D.
6456 * NEWS: Mention it.
6457 * main.c (set_gdb_data_directory): New function.
6458 (captured_main): Recognize -D. Flag error for --data-directory "".
6459 Call set_gdb_data_directory.
6460 (print_gdb_help): Print --data-directory, -D.
6461 * main.h (set_gdb_data_directory): Declare.
6462 * top.c (staged_gdb_datadir): New static global.
6463 (set_gdb_datadir): Call set_gdb_data_directory
6464 (show_gdb_datadir): New function.
6465 (init_main): Update init of data-directory parameter.
6466
18848e28
GF
64672014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6468
6469 Import the "dirfd" gnulib module.
6470 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6471 * gnulib/aclocal.m4: Update.
6472 * gnulib/config.in: Update.
6473 * gnulib/configure: Update.
6474 * gnulib/import/Makefile.am: Update.
6475 * gnulib/import/Makefile.in: Update.
6476 * gnulib/import/dirfd.c: New.
6477 * gnulib/import/m4/dirfd.m4: New.
6478 * gnulib/import/m4/gnulib-cache.m4: Update.
6479 * gnulib/import/m4/gnulib-comp.m4: Update.
6480
95c64f92
YQ
64812014-05-16 Pierre Muller <muller@sourceware.org>
6482 Yao Qi <yao@codesourcery.com>
6483
6484 * valprint.c (print_wchar): Move the code on checking whether
6485 W is a printable wide char to the default branch of switch
6486 statement below. Call wchar_printable instead of gdb_iswprint.
6487
cac395ea
TM
64882014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6489
19679eca 6490 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6491 ldr.w and ldrd instructions.
6492
83655187
DE
64932014-05-15 Doug Evans <dje@google.com>
6494
6495 * dwarf2read.c (read_structure_type): Delete outdated comments.
6496
dd756689
TT
64972014-05-14 Tom Tromey <tromey@redhat.com>
6498
6499 * macrocmd.c (print_macro_definition): Reindent.
6500
75ddda77
DE
65012014-05-13 Doug Evans <xdje42@gmail.com>
6502
6503 * python/py-cmd.c (cmdpy_completer): Add comment.
6504 (completers): Make const.
6505
b0f16a3e
SM
65062014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6507
6508 * infrun.c (resume): Remove should_resume (unused). Move up
6509 declaration of resume_ptid.
6510
033c3379
TT
65112014-05-13 Tom Tromey <tromey@redhat.com>
6512
6513 * language.h (unop_type_check): Remove.
6514 (binop_type_check): Don't declare.
6515
9b44a3a5
AA
65162014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6517
6518 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6519 call to regcache_raw_collect.
6520
303a33fa
SM
65212014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6522
6523 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6524 mi_console->quote as the quoting character.
6525
196100a0
SM
65262014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6527
6528 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6529
f989a1c8
TT
65302014-04-29 Tom Tromey <tromey@redhat.com>
6531
6532 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6533 "show debug varobj".
6534
9404b58f
KM
65352014-05-07 Kyle McMartin <kyle@redhat.com>
6536
6537 Pushed by Joel Brobecker <brobecker@adacore.com>.
6538 * aarch64-tdep.c (aarch64_software_single_step): New function.
6539 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6540 with aarch64_software_single_step.
6541
5e49ba57
JB
65422014-05-05 Joel Brobecker <brobecker@adacore.com>
6543
6544 GDB 7.7.1 released.
6545
c888a17d
KS
65462014-05-05 Keith Seitz <keiths@redhat.com>
6547
6548 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6549 variable or history value is successfully parsed.
6550
290a839c
YQ
65512014-05-05 Yao Qi <yao@codesourcery.com>
6552 Pedro Alves <palves@redhat.com>
6553
6554 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6555 address of blocks that intersects the requested range. Trim
6556 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6557 sections.
6558 * ctf.c (ctf_xfer_partial): Likewise.
6559
91256dc2
YQ
65602014-05-05 Yao Qi <yao@codesourcery.com>
6561
6562 * printcmd.c (display_command): Remove the check to
6563 target_has_execution.
6564
07284463
MK
65652014-05-03 Mark Kettenis <kettenis@gnu.org>
6566
6567 * ppcobsd-nat.c: Include "obsd-nat.h".
6568 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6569 add_target.
6570 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6571
30a1e6cc
SDJ
65722014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6573
6574 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6575 and 16-bit signed and unsigned arguments. Update comment.
6576 (stap_parse_probe_arguments): Extend code to handle such
6577 arguments. Use warning instead of complaint to notify about
6578 unrecognized bitness.
6579
f33da99a
SDJ
65802014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6581
6582 PR breakpoints/16889
6583 * stap-probe.c (stap_parse_probe_arguments): Simplify
6584 check for non-prefixed probes (i.e., probes whose
6585 arguments do not start with "N@"). Always set the
6586 argument type to a sane value.
6587
95cf3b38
DT
65882014-05-01 David Taylor <dtaylor@emc.com>
6589
6590 * remote.c (compare_sections_command): Add -r option to compare
6591 all loadable read-only sections.
6592
1cfdf534
SC
65932014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6594
6595 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6596 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6597 Update all callers.
6598 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6599 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6600 Remove unused CORE_ADDR argument. Update all callers.
6601
ca4f7f8b
PA
66022014-04-29 Pedro Alves <palves@redhat.com>
6603
6604 * remote.c (struct packet_config) <detect>: Extend comment.
6605 (add_packet_config_cmd): Don't set the config's detect or support
6606 fields here.
6607 (init_all_packet_configs): Also initialize the config's 'detect'
6608 field.
6609 (reset_all_packet_configs_support): New function.
6610 (remote_open_1): Call reset_all_packet_configs_support instead of
6611 init_all_packet_configs.
6612 (_initialize_remote): Initialize all packet configs. Assert that
6613 all packets have an associated command, except a few known
6614 outliers.
6615
11c1ba78
JB
66162014-04-28 Joel Brobecker <brobecker@adacore.com>
6617
6618 * dwarf2read.c (read_subrange_type): Handle dynamic
6619 DW_AT_lower_bound attributes.
6620
8739bc53
JB
66212014-04-28 Joel Brobecker <brobecker@adacore.com>
6622
6623 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6624 dynamic bounds before computing its upper bound.
6625 (ada_discrete_type_low_bound): Same as above with the lower bound.
6626
6f8a3220
JB
66272014-04-28 Joel Brobecker <brobecker@adacore.com>
6628
6629 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6630 range types. Adjust the array handling implementation to
6631 take advantage of this change.
6632 (resolve_dynamic_range): New function, mostly extracted from
6633 resolve_dynamic_bounds.
6634 (resolve_dynamic_array): New function, mostly extracted from
6635 resolve_dynamic_bounds.
6636 (resolve_dynamic_bounds): Delete.
6637 (resolve_dynamic_type): Reimplement. Add handling of
6638 TYPE_CODE_RANGE types.
6639
4d072ce4
JB
66402014-04-28 Joel Brobecker <brobecker@adacore.com>
6641
6642 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6643 handling of parallel ___XA types.
6644
52865325
JB
66452014-04-28 Joel Brobecker <brobecker@adacore.com>
6646
6647 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6648 unnecessary second call to static_unwrap_type.
6649
433e77fa
HZ
66502014-04-27 Hui Zhu <hui@codesourcery.com>
6651
6652 * stack.c (print_frame_info): Call do_gdb_disassembly with
6653 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6654
b51a69ee
DE
66552014-04-26 Doug Evans <xdje42@gmail.com>
6656
6657 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6658
7ae1a6a6
PA
66592014-04-25 Pedro Alves <palves@redhat.com>
6660
6661 PR server/16255
6662 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6663 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6664 and newline from built string.
6665 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6666 (linux_ptrace_attach_fail_reason): ... this.
6667 * linux-nat.c (linux_nat_attach): Adjust to use
6668 linux_ptrace_attach_fail_reason.
6669
4082afcc
PA
66702014-04-25 Pedro Alves <palves@redhat.com>
6671
6672 * remote.c (struct remote_state): Remove multi_process_aware,
6673 non_stop_aware, cond_tracepoints, cond_breakpoints,
6674 breakpoint_commands, fast_tracepoints, static_tracepoints,
6675 install_in_trace, disconnected_tracing,
6676 enable_disable_tracepoints, string_tracing, and
6677 augmented_libraries_svr4_read fields.
6678 (remote_multi_process_p): Move further below in the file.
6679 (struct packet_config): Add comments.
6680 (update_packet_config): Delete function.
6681 (show_packet_config_cmd): Use packet_config_support.
6682 (add_packet_config_cmd): Use NULL as set callback.
6683 (packet_ok): "set remote foo-packet"-style commands no longer
6684 change config->supported -- adjust.
6685 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6686 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6687 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6688 (PACKET_QNonStop, PACKET_multiprocess_feature)
6689 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6690 (PACKET_DisconnectedTracing_feature)
6691 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6692 (set_remote_protocol_packet_cmd): Delete function.
6693 (packet_config_support, packet_support): New functions.
6694 (set_remote_protocol_Z_packet_cmd): Don't call
6695 update_packet_config.
6696 (remote_query_attached, remote_pass_signals)
6697 (remote_program_signals, remote_threads_info)
6698 (remote_threads_extra_info, remote_start_remote): Use
6699 packet_support.
6700 (remote_start_remote): Use packet_config_support and
6701 packet_support.
6702 (init_all_packet_configs): Set all packets to unknown support,
6703 instead of calling update_packet_config.
6704 (remote_check_symbols): Use packet_support.
6705 (remote_supported_packet): Unconditionally set the packet config's
6706 support status.
6707 (remote_multi_process_feature, remote_non_stop_feature)
6708 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6709 (remote_breakpoint_commands_feature)
6710 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6711 (remote_install_in_trace_feature)
6712 (remote_disconnected_tracing_feature)
6713 (remote_enable_disable_tracepoint_feature)
6714 (remote_string_tracing_feature)
6715 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6716 (remote_protocol_features): Adjust to use remote_supported_packet
6717 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6718 "ConditionalTracepoints", "ConditionalBreakpoints",
6719 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6720 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6721 "EnableDisableTracepoints", and "tracenz".
6722 (remote_query_supported): Use packet_support.
6723 (remote_open_1): Adjust.
6724 (extended_remote_attach_1): Use packet_support. Switch on the
6725 result of packet_ok instead of checking whether the packet ended
6726 up disabled.
6727 (remote_vcont_resume): Use packet_support.
6728 (remote_resume, remote_stop_ns, fetch_register_using_p)
6729 (remote_prepare_to_store, store_register_using_P)
6730 (check_binary_download, remote_write_bytes): Use packet_support.
6731 (remote_vkill): Use packet_support. Switch on the result of
6732 packet_ok instead of checking whether the packet ended up
6733 disabled.
6734 (extended_remote_supports_disable_randomization): Use
6735 packet_support.
6736 (extended_remote_run): Switch on the result of packet_ok instead
6737 of checking whether the packet ended up disabled.
6738 (remote_insert_breakpoint, remote_remove_breakpoint)
6739 (remote_insert_watchpoint, remote_remove_watchpoint)
6740 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6741 packet_support.
6742 (remote_search_memory): Use packet_config_support.
6743 (remote_get_thread_local_address, remote_get_tib_address)
6744 (remote_hostio_send_command, remote_can_execute_reverse): Use
6745 packet_support.
6746 (remote_supports_cond_tracepoints)
6747 (remote_supports_cond_breakpoints)
6748 (remote_supports_fast_tracepoints)
6749 (remote_supports_static_tracepoints)
6750 (remote_supports_install_in_trace)
6751 (remote_supports_enable_disable_tracepoint)
6752 (remote_supports_string_tracing)
6753 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6754 the packet config says the feature is enabled or disabled.
6755 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6756 (remote_get_trace_status): Use packet_support.
6757 (remote_set_disconnected_tracing): Adjust to check whether the
6758 feature is enabled with packet_support.
6759 (remote_set_trace_buffer_size, remote_use_agent)
6760 (remote_can_use_agent, remote_supports_btrace): Use
6761 packet_support.
6762 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6763 Use packet_config_support.
6764 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6765 the packet config says the feature is enabled or disabled.
6766 (set_range_stepping): Use packet_support.
6767
bdb52a22
TT
67682014-04-25 Tom Tromey <tromey@redhat.com>
6769
6770 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6771 argument.
6772
e9475ead
SA
67732014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6774
6775 * NEWS: Mention support for C99 variable length arrays.
6776
82eacd52
JB
67772014-04-24 Joel Brobecker <brobecker@adacore.com>
6778
6779 * ada-lang.c (standard_exc): Expand introductory comment.
6780
01f9f808
MS
67812014-04-24 Michael Sturm <michael.sturm@mintel.com>
6782 Walfred Tedeschi <walfred.tedeschi@intel.com>
6783
6784 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6785 AVX512 registers.
6786 (amd64_linux_read_description): Add code to handle AVX512 xstate
6787 mask and return respective tdesc.
6788 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6789 and features/i386/x32-avx512-linux.c.
6790 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6791 (amd64_linux_core_read_description): Add code to handle AVX512
6792 xstate mask and return respective tdesc.
6793 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6794 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6795 calculation.
6796 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6797 (tdesc_amd64_avx512_linux): New prototype.
6798 (tdesc_x32_avx512_linux): Likewise.
6799 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6800 features/i386/x32-avx512.c.
6801 (amd64_ymm_avx512_names): New register names for pseudo
6802 registers YMM16-31.
6803 (amd64_ymmh_avx512_names): New register names for raw registers
6804 YMMH16-31.
6805 (amd64_k_names): New register names for K registers.
6806 (amd64_zmmh_names): New register names for ZMM raw registers.
6807 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6808 (amd64_xmm_avx512_names): New register names for XMM16-31
6809 registers.
6810 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6811 registers.
6812 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6813 if feature is present.
6814 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6815 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6816 (AMD64_NUM_REGS): Adjust to new number of registers.
6817 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6818 registers supplied via XSTATE by AVX512 registers.
6819 (i386_linux_read_description): Add case for AVX512.
6820 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6821 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6822 (i386_linux_core_read_description): Add case for AVX512.
6823 (i386_linux_init_abi): Install supported register note section
6824 for AVX512.
6825 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6826 AVX512.
6827 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6828 registers to be number of zmm7h + 1.
6829 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6830 * i386-tdep.c: Include features/i386/i386-avx512.c.
6831 (i386_zmm_names): Add ZMM pseudo register names array.
6832 (i386_zmmh_names): Add ZMM raw register names array.
6833 (i386_k_names): Add K raw register names array.
6834 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6835 registers. AVX512 has 16 more ZMM registers than there are YMM
6836 registers.
6837 (i386_zmmh_regnum_p): Add function to look up register number of
6838 ZMM raw registers.
6839 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6840 (i386_k_regnum_p): Likewise for K raw registers.
6841 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6842 registers added by AVX512.
6843 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6844 registers added by AVX512.
6845 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6846 added by AVX512.
6847 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6848 (i386_pseudo_register_name): Add ZMM pseudo registers.
6849 (i386_zmm_type): Construct and return vector registers type for ZMM
6850 registers.
6851 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6852 ZMM0-31 pseudo registers and K registers.
6853 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6854 and YMM16-31 registers from register cache.
6855 (i386_pseudo_register_write): Add code to write K, ZMM and
6856 YMM16-31 registers.
6857 (i386_register_reggroup_p): Add code to include/exclude AVX512
6858 registers in/from respective register groups.
6859 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6860 registers if feature is present in xcr0.
6861 (i386_gdbarch_init): Add code to initialize AVX512 feature
6862 variables in tdep structure, wire in pseudo registers and call
6863 initialize_tdesc_i386_avx512.
6864 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6865 variables.
6866 (i386_regnum): Add AVX512 registers.
6867 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6868 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6869 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6870 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6871 512 bits wide.
6872 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6873 (i386_ymm_avx512_regnum_p): Likewise.
6874 (i386_k_regnum_p): Likewise.
6875 (i386_zmm_regnum_p): Likewise.
6876 (i386_zmmh_regnum_p): Likewise.
6877 * i387-tdep.c : Update year in copyright notice.
6878 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6879 XSAVE buffer.
6880 (XSAVE_YMM_AVX512_ADDR): New macro.
6881 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6882 XSAVE buffer.
6883 (XSAVE_XMM_AVX512_ADDR): New macro.
6884 (xsave_avx512_k_offset): New table for K register offsets in
6885 XSAVE buffer.
6886 (XSAVE_AVX512_K_ADDR): New macro.
6887 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6888 in XSAVE buffer.
6889 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6890 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6891 buffer.
6892 (i387_collect_xsave): Add code to collect AVX512 registers from
6893 XSAVE buffer.
6894 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6895 of XMM16-31 registers.
6896 (I387_NUM_K_REGS): New define for number of K registers.
6897 (I387_K0_REGNUM): New define for K0 register number.
6898 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6899 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6900 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6901 registers.
6902 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6903 (I387_XMM16_REGNUM): New define for XMM16 register number.
6904 (I387_YMM0_REGNUM): New define for YMM0 register number.
6905 (I387_KEND_REGNUM): New define for last K register number.
6906 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6907 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6908 number.
6909 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6910 number.
6911 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6912 size.
6913 * features/Makefile: Add AVX512 related files.
6914 * features/i386/32bit-avx512.xml: New file.
6915 * features/i386/64bit-avx512.xml: Likewise.
6916 * features/i386/amd64-avx512-linux.c: Likewise.
6917 * features/i386/amd64-avx512-linux.xml: Likewise.
6918 * features/i386/amd64-avx512.c: Likewise.
6919 * features/i386/amd64-avx512.xml: Likewise.
6920 * features/i386/i386-avx512-linux.c: Likewise.
6921 * features/i386/i386-avx512-linux.xml: Likewise.
6922 * features/i386/i386-avx512.c: Likewise.
6923 * features/i386/i386-avx512.xml: Likewise.
6924 * features/i386/x32-avx512-linux.c: Likewise.
6925 * features/i386/x32-avx512-linux.xml: Likewise.
6926 * features/i386/x32-avx512.c: Likewise.
6927 * features/i386/x32-avx512.xml: Likewise.
6928 * regformats/i386/amd64-avx512-linux.dat: New file.
6929 * regformats/i386/amd64-avx512.dat: Likewise.
6930 * regformats/i386/i386-avx512-linux.dat: Likewise.
6931 * regformats/i386/i386-avx512.dat: Likewise.
6932 * regformats/i386/x32-avx512-linux.dat: Likewise.
6933 * regformats/i386/x32-avx512.dat: Likewise.
6934 * NEWS: Add note about new support for AVX512.
6935
6936
08351840
PA
69372014-04-23 Pedro Alves <palves@redhat.com>
6938
6939 * breakpoint.c (insert_bp_location): Tolerate errors if the
6940 breakpoint is set in a user-loaded objfile.
6941 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6942 location is marked shlib_disabled. If the breakpoint is set in a
6943 user-loaded objfile is a GDB-side memory breakpoint, validate it
6944 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6945 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6946 flag.
6947 * mem-break.c (memory_validate_breakpoint): New function.
6948 * objfiles.c (userloaded_objfile_contains_address_p): New
6949 function.
6950 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6951 * target.h (memory_validate_breakpoint): New declaration.
6952
076855f9
PA
69532014-04-23 Pedro Alves <palves@redhat.com>
6954
6955 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6956 the breakpoint is set in a shared library, only suppress
6957 errors for software breakpoints, not hardware breakpoints.
6958
483805cf
PA
69592014-04-22 Pedro Alves <palves@redhat.com>
6960
6961 * infrun.c (schedlock_applies): New function, factored out from
6962 find_thread_needs_step_over.
6963 (find_thread_needs_step_over): Use it.
6964 (switch_back_to_stepped_thread): Always clear trap_expected if the
6965 step over is finished. Return early if scheduler locking applies.
6966 Look for the stepping thread and a potential step-over thread with
6967 a single loop.
6968 (currently_stepping_or_nexting_callback): Delete.
6969
a75fef0e
NC
69702014-04-22 Nick Clifton <nickc@redhat.com>
6971
6972 * NEWS: Mention that ARM sim now supports tracing.
6973
48b6e87e
YQ
69742014-04-22 Yao Qi <yao@codesourcery.com>
6975
6976 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6977 to ...
6978 * tracefile.c (tracefile_fetch_registers): ... it. New
6979 function.
6980 * tracefile.h (tracefile_fetch_registers): Declare.
6981 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6982 tracefile_fetch_registers.
6983
17617f2d
EZ
69842014-04-19 Eli Zaretskii <eliz@gnu.org>
6985
6986 PR gdb/14018
6987 * windows-nat.c (thread_rec): Don't display a warning when
6988 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6989 fails for any reason, set th->suspended to -1, so that we don't
6990 try to resume such a thread. Also, don't return NULL in these
6991 cases, to avoid completely ruin the session due to "PC register is
6992 not available" error.
6993 (do_windows_fetch_inferior_registers): Check errors in
6994 GetThreadContext call.
6995 (windows_continue): Accept an additional argument KILLED; if not
6996 zero, ignore errors in the SetThreadContext call, since the
6997 inferior was killed and is shutting down.
6998 (windows_resume, get_windows_debug_event)
6999 (windows_create_inferior, windows_mourn_inferior)
7000 (windows_kill_inferior): All callers of windows_continue changed
7001 to adjust to its new calling sequence.
7002
5723a6fd
YQ
70032014-04-19 Yao Qi <yao@codesourcery.com>
7004
7005 * ctf.c (ctf_open): Call post_create_inferior.
7006
614d5099
YQ
70072014-04-19 Yao Qi <yao@codesourcery.com>
7008
7009 * ctf.c (handle_id): New static variable.
7010 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7011 value. Get the declaration of event "register" and get length
7012 of field "contents".
7013
dac3e710
YQ
70142014-04-19 Yao Qi <yao@codesourcery.com>
7015
7016 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7017
2bca57ba
SC
70182014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7019
7020 * valops.c (oload_method_static): Remove unnecessary argument
7021 METHOD. Update all callers.
7022
51d48146
PA
70232014-04-18 Pedro alves <palves@redhat.com>
7024 Tom Tromey <tromey@redhat.com>
7025
7026 PR backtrace/15558
7027 * frame.c (get_prev_frame_1): Rename to ...
7028 (get_prev_frame_always): ... this, and make extern. Adjust.
7029 (skip_artificial_frames): Use get_prev_frame_always.
7030 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7031 (get_frame_unwind_stop_reason): Adjust to rename.
7032 * frame.h (get_prev_frame_always): Declare.
7033 * inline-frame.c: Include frame.h.
7034 (inline_frame_this_id): Use get_prev_frame_always.
7035
1bdad2e0
TG
70362014-04-18 Tristan Gingold <gingold@adacore.com>
7037
7038 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7039 code by using bfd_mach_o_get_base_address.
7040
7ce16bd4
UW
70412014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7042
7043 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7044 (spu_ax_pseudo_register_collect): New function.
7045 (spu_ax_pseudo_register_push_stack): Likewise.
7046 (spu_dwarf_reg_to_regnum): Likewise.
7047 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7048
2ed3c037
UW
70492014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7050
7051 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7052 Replace FRAME argument with FRAME_ID.
7053 * gdbarch.c, gdbarch.h: Regenerate.
7054 * findvar.c (default_value_from_register): Add GDBARCH argument;
7055 replace FRAME by FRAME_ID. No longer call get_frame_id.
7056 (value_from_register): Update call to gdbarch_value_from_register.
7057 * value.h (default_value_from_register): Update prototype.
7058 * s390-linux-tdep.c (s390_value_from_register): Update interface
7059 and call to default_value_from_register.
7060 * spu-tdep.c (spu_value_from_register): Likewise.
7061
7062 * findvar.c (address_from_register): Remove TYPE argument.
7063 Do not call value_from_register; use gdbarch_value_from_register
7064 with null_frame_id instead.
7065 * value.h (address_from_register): Update prototype.
7066 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7067 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7068 address_from_register interface change.
7069
71e50e83
YQ
70702014-04-17 Yao Qi <yao@codesourcery.com>
7071
7072 * gdbtypes.h: Update comments to link to types and macros'
7073 definitions.
7074
7a23c549
SC
70752014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7076
7077 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7078
22869d73
KS
70792014-04-16 Keith Seitz <keiths@redhat.com>
7080
7081 PR gdb/15827
7082 * dwarf2read.c (skip_one_die): Check that all relative-offset
7083 sibling DIEs fall within range of the current reader's buffer.
7084 (read_partial_die): Likewise.
7085
c4f87ca6
KS
70862014-04-16 Keith Seitz <keiths@redhat.com>
7087
7088 PR c++/16597
7089 * cp-namespace.c (lookup_symbol_file): If the type name of
7090 `this' is NULL, return immediately.
7091
b50c8614
KS
70922014-04-14 Keith Seitz <keiths@redhat.com>
7093
7094 PR c++/16253
7095 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7096 from symbol_matches_domain in symtab.c. All local callers
7097 of symbol_matches_domain updated.
7098 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7099 search STRUCT_DOMAIN.
7100 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7101 independently. standard_lookup will do that automatically.
7102 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7103 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7104 (cp_lookup_symbol_in_namespace): Likewise.
7105 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7106 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7107 may return a STRUCT_DOMAIN match.
7108 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7109 * cp-support.c: Include language.h.
7110 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7111 VAR_DOMAIN.
7112 * psymtab.c (match_partial_symbol): Compare the requested
7113 domain with the symbol's domain directly.
7114 (lookup_partial_symbol): Likewise.
7115 * symtab.c (lookup_symbol_in_language): Explain when/why
7116 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7117 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7118 appropriate languages.
7119 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7120 and moved to ada-lang.c
7121 (lookup_block_symbol): Explain that this function only returns
7122 symbol matching the requested DOMAIN.
7123 Compare the requested domain with the symbol's domain directly.
7124 (iterate_over_symbols): Compare the requested domain with the
7125 symbol's domain directly.
7126 * symtab.h (symbol_matches_domain): Remove.
7127
3d567982
TT
71282014-04-14 Tom Tromey <tromey@redhat.com>
7129
7130 PR c++/15246:
7131 * c-exp.y (type_aggregate_p): New function.
7132 (qualified_name, classify_inner_name): Use it.
7133 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7134 and TYPE_TARGET_TYPE of an enum type.
7135 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7136 an enum type.
7137 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7138 handle TYPE_DECLARED_CLASS.
7139 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7140 types.
7141 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7142 * valops.c (enum_constant_from_type): New function.
7143 (value_aggregate_elt): Use it.
7144 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7145 TYPE_CODE_ENUM.
7146
c848d642
TT
71472014-04-14 Tom Tromey <tromey@redhat.com>
7148
7149 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7150 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7151 const.
7152 * value.h (value_aggregate_elt): Update.
7153
0626fc76
TT
71542014-04-14 Tom Tromey <tromey@redhat.com>
7155
7156 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7157
5ecaaa66
SA
71582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7159
7160 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7161 (evaluate_subexp_standard): Pass noside argument.
7162 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7163 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7164 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7165 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7166 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7167
1612e0c0
SA
71682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7169
7170 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7171 points to a constant blob.
7172
c451ebe5
SA
71732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7174
7175 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7176 property and store it as the high bound and flag the range accordingly.
7177 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7178 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7179 * gdbtypes.h (enum range_flags): New enum.
7180 (struct range_bounds): Add flags member.
7181
1d42e4c4
SA
71822014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7183
7184 * c-typeprint.c (c_type_print_varspec_suffix): Added
7185 check for not yet resolved high bound. If unresolved, print
7186 "variable length" string to the console instead of random
7187 length.
7188
9f1f738a
SA
71892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7190
7191 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7192 value.
7193 (ada_template_to_fixed_record_type_1): Likewise.
7194 (ada_to_fixed_type_1): Likewise.
7195 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7196 (cp_print_value): Likewise.
7197 * d-valprint.c (dynamic_array_type): Likewise.
7198 * findvar.c (address_of_variable): Likewise.
7199 * jv-valprint.c (java_value_print): Likewise.
7200 * valops.c (value_ind): Likewise.
7201 * value.c (coerce_ref): Likewise.
7202
3c8452d4
SA
72032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7204
7205 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7206 value and retrieve the dynamic type size.
7207
4ad88275
SA
72082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7209
7210 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7211 passed to sizeof is dynamic evaluate the argument to compute the length.
7212
80180f79
SA
72132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7214 Joel Brobecker <brobecker@adacore.com>
7215
7216 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7217 (dwarf2_evaluate_property): New function.
7218 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7219 * dwarf2read.c (attr_to_dynamic_prop): New function.
7220 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7221 attribute.
7222 * gdbtypes.c: Include dwarf2loc.h.
7223 (is_dynamic_type): New function.
7224 (resolve_dynamic_type): New function.
7225 (resolve_dynamic_bounds): New function.
7226 (get_type_length): New function.
7227 (check_typedef): Use get_type_length to compute type length.
7228 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7229 (TYPE_LOW_BOUND_KIND): New macro.
7230 (is_dynamic_type): New function prototype.
7231 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7232 to resolve dynamic properties of the type. Update comment.
7233 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7234
a1556843
RH
72352014-04-14 Richard Henderson <rth@redhat.com>
7236
7237 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7238
0be03e84
DE
72392014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7240 Doug Evans <xdje42@gmail.com>
7241
7242 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7243 dereference TYPE_CODE_REF values.
7244
6b662e19
JB
72452014-04-11 Joel Brobecker <brobecker@adacore.com>
7246
7247 Revert the following changes due to regressions:
7248
7249 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7250 (dwarf2_evaluate_property): New function.
7251 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7252 * dwarf2read.c (attr_to_dynamic_prop): New function.
7253 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7254 attribute.
7255 * gdbtypes.c: Include dwarf2loc.h.
7256 (is_dynamic_type): New function.
7257 (resolve_dynamic_type): New function.
7258 (resolve_dynamic_bounds): New function.
7259 (get_type_length): New function.
7260 (check_typedef): Use get_type_length to compute type length.
7261 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7262 (TYPE_LOW_BOUND_KIND): New macro.
7263 (is_dynamic_type): New function prototype.
7264 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7265 to resolve dynamic properties of the type. Update comment.
7266 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7267
7268 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7269 passed to sizeof is dynamic evaluate the argument to compute the length.
7270
7271 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7272 value and retrieve the dynamic type size.
7273
7274 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7275 (ada_template_to_fixed_record_type_1): Likewise.
7276 (ada_to_fixed_type_1): Likewise.
7277 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7278 (cp_print_value): Likewise.
7279 * d-valprint.c (dynamic_array_type): Likewise.
7280 * eval.c (evaluate_subexp_with_coercion): Likewise.
7281 * findvar.c (address_of_variable): Likewise.
7282 * jv-valprint.c (java_value_print): Likewise.
7283 * valops.c (value_ind): Likewise.
7284 * value.c (coerce_ref): Likewise.
7285
7286 * c-typeprint.c (c_type_print_varspec_suffix): Added
7287 check for not yet resolved high bound. If unresolved, print
7288 "variable length" string to the console instead of random
7289 length.
7290
7291 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7292 property and store it as the high bound and flag the range accordingly.
7293 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7294 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7295 * gdbtypes.h (enum range_flags): New enum.
7296 (struct range_bounds): Add flags member.
7297
7298 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7299 points to a constant blob.
7300
7301 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7302 (evaluate_subexp_standard): Pass noside argument.
7303 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7304 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7305 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7306 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7307 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7308
245a5f0b
KS
73092014-04-11 Keith Seitz <keiths@redhat.com>
7310
7311 PR c++/16675
7312 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7313 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7314 reference types.
7315
3bce8237
SA
73162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7317
7318 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7319 (evaluate_subexp_standard): Pass noside argument.
7320 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7321 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7322 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7323 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7324 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7325
92b09522
SA
73262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7327
7328 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7329 points to a constant blob.
7330
e1969afb
SA
73312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7332
7333 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7334 property and store it as the high bound and flag the range accordingly.
7335 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7336 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7337 * gdbtypes.h (enum range_flags): New enum.
7338 (struct range_bounds): Add flags member.
7339
b86138fb
SA
73402014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7341
7342 * c-typeprint.c (c_type_print_varspec_suffix): Added
7343 check for not yet resolved high bound. If unresolved, print
7344 "variable length" string to the console instead of random
7345 length.
7346
bcd629a4
SA
73472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7348
7349 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7350 (ada_template_to_fixed_record_type_1): Likewise.
7351 (ada_to_fixed_type_1): Likewise.
7352 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7353 (cp_print_value): Likewise.
7354 * d-valprint.c (dynamic_array_type): Likewise.
7355 * eval.c (evaluate_subexp_with_coercion): Likewise.
7356 * findvar.c (address_of_variable): Likewise.
7357 * jv-valprint.c (java_value_print): Likewise.
7358 * valops.c (value_ind): Likewise.
7359 * value.c (coerce_ref): Likewise.
7360
04b19544
SA
73612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7362
7363 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7364 value and retrieve the dynamic type size.
7365
26cb189f
SA
73662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7367
7368 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7369 passed to sizeof is dynamic evaluate the argument to compute the length.
7370
37c1ab67
SA
73712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7372
7373 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7374 (dwarf2_evaluate_property): New function.
7375 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7376 * dwarf2read.c (attr_to_dynamic_prop): New function.
7377 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7378 attribute.
7379 * gdbtypes.c: Include dwarf2loc.h.
7380 (is_dynamic_type): New function.
7381 (resolve_dynamic_type): New function.
7382 (resolve_dynamic_bounds): New function.
7383 (get_type_length): New function.
7384 (check_typedef): Use get_type_length to compute type length.
7385 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7386 (TYPE_LOW_BOUND_KIND): New macro.
7387 (is_dynamic_type): New function prototype.
7388 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7389 to resolve dynamic properties of the type. Update comment.
7390 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7391
729efb13
SA
73922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7393
7394 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7395 declaring high/low bounds and change uses accordingly. Call
7396 create_range_type instead of create_static_range_type.
7397 * gdbtypes.c (create_range_type): New function.
7398 (create_range_type): Convert bounds into struct bound_prop and pass
7399 them to create_range_type.
7400 * gdbtypes.h (struct bound_prop): New struct.
7401 (create_range_type): New function prototype.
7402 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7403 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7404 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7405 part of the bound.
7406 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7407
0c9c3474
SA
74082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7409
7410 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7411 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7412 * ada-lang.c: All uses of create_range_type updated.
7413 * coffread.c: All uses of create_range_type updated.
7414 * dwarf2read.c: All uses of create_range_type updated.
7415 * f-exp.y: All uses of create_range_type updated.
7416 * m2-valprint.c: All uses of create_range_type updated.
7417 * mdebugread.c: All uses of create_range_type updated.
7418 * stabsread.c: All uses of create_range_type updated.
7419 * valops.c: All uses of create_range_type updated.
7420 * valprint.c: All uses of create_range_type updated.
7421
9d497a19
PA
74222014-04-10 Pedro Alves <palves@redhat.com>
7423
7424 * breakpoint.c (single_step_breakpoints)
7425 (single_step_gdbarch): Move up in the file.
7426 (one_breakpoint_xfer_memory): New function, factored out from ...
7427 (breakpoint_xfer_memory): ... here. Also process single-step
7428 breakpoints.
7429
15a9128a
TG
74302014-04-09 Tristan Gingold <gingold@adacore.com>
7431
7432 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7433 comments.
7434 (darwin_decode_exception_message): Free port only after use.
7435
9c97a070
PL
74362014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7437
7438 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7439 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7440 when setting the size of call_length.
7441
7af389b8
SC
74422014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7443
7444 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7445 dereference TYPE_CODE_REF values.
7446
86ad98c3
JB
74472014-04-07 Joel Brobecker <brobecker@adacore.com>
7448
7449 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7450 end of warning message.
7451
b0aeadb3
DE
74522014-04-03 Doug Evans <dje@google.com>
7453
7454 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7455 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7456
5979d6b6
AM
74572014-04-02 Alan Modra <amodra@gmail.com>
7458
7459 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7460 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7461 (struct symbol_file_add_from_memory_args): Add size field.
7462 (find_vdso_size): New function.
7463 (add_vsyscall_page): Attempt to find vdso size.
7464
0d60c288
DE
74652014-04-01 Doug Evans <dje@google.com>
7466
7467 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7468
a41f2563
TG
74692014-04-01 Tristan Gingold <gingold@adacore.com>
7470
7471 * darwin-nat.c (darwin_encode_reply): Add prototype.
7472 (darwin_decode_exception_message): Reply to unknown inferiors.
7473 (darwin_decode_message): Handle message by id. Ignore message
7474 to unknown inferior.
7475 (darwin_wait): Discard unknown messages, add debug trace.
7476
11a865c8
DE
74772014-03-31 Doug Evans <dje@google.com>
7478
7479 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7480 comp_dir_string.
7481
770e7fc7
DE
74822014-03-31 Doug Evans <dje@google.com>
7483
7484 New option "set print symbol-loading".
7485 * NEWS: Mention it.
7486 * solib.c (solib_read_symbols): Only print symbol loading messages
7487 if requested.
7488 (solib_add): If symbol loading is in "brief" mode, notify user
7489 symbols are being loaded.
7490 (reload_shared_libraries_1): Ditto.
7491 * symfile.c (print_symbol_loading_off): New static global.
7492 (print_symbol_loading_brief): New static global.
7493 (print_symbol_loading_full): New static global.
7494 (print_symbol_loading_enums): New static global.
7495 (print_symbol_loading): New static global.
7496 (print_symbol_loading_p): New function.
7497 (symbol_file_add_with_addrs): Only print symbol loading messages
7498 if requested.
7499 (_initialize_symfile): Register "print symbol-loading" set/show
7500 command.
7501 * symfile.h (print_symbol_loading_p): Declare.
7502
c32c64b7
DE
75032014-03-30 Doug Evans <xdje42@gmail.com>
7504
7505 * infrun.c (set_last_target_status): New function.
7506 (handle_inferior_event): Call it.
7507
7c0bc051
DE
75082014-03-30 Doug Evans <xdje42@gmail.com>
7509
7510 * inferior.h (enum stop_kind): Improve comment.
7511
8776cfe9
JB
75122014-03-28 Joel Brobecker <brobecker@adacore.com>
7513
7514 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7515 a reference, strip the reference layer before calling
7516 the lang_ops value_has_mutated callback.
7517
410a0ff2
SDJ
75182014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7519
7520 Remove some globals from our parser.
7521 * language.c (unk_lang_parser): Add "struct parser_state"
7522 argument.
7523 * language.h (struct language_defn) <la_parser>: Likewise.
7524 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7525 (initialize_expout): Add "struct parser_state" argument.
7526 Rewrite function to use the parser state.
7527 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7528 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7529 write_exp_elt_longcst, write_exp_elt_dblcst,
7530 write_exp_elt_decfloatcst, write_exp_elt_type,
7531 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7532 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7533 write_dollar_variable): Likewise.
7534 (parse_exp_in_context_1): Use parser state.
7535 (insert_type_address_space): Add "struct parser_state" argument.
7536 Use parser state.
7537 (increase_expout_size): New function.
7538 * parser-defs.h: Forward declare "struct language_defn" and
7539 "struct parser_state".
7540 (expout, expout_size, expout_ptr): Remove extern declarations.
7541 (parse_gdbarch, parse_language): Rewrite macro declarations to
7542 accept the parser state.
7543 (struct parser_state): New struct.
7544 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7545 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7546 write_exp_elt_decfloatcst, write_exp_elt_type,
7547 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7548 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7549 write_exp_msymbol, write_dollar_variable,
7550 mark_struct_expression, insert_type_address_space): Add "struct
7551 parser_state" argument.
7552 (increase_expout_size): New function.
7553 * utils.c (do_clear_parser_state): New function.
7554 (make_cleanup_clear_parser_state): Likewise.
7555 * utils.h (make_cleanup_clear_parser_state): New function
7556 prototype.
7557 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7558 Update calls to write_exp* in order to pass the parser state.
7559 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7560 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7561 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7562 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7563 * stap-probe.c (stap_parse_register_operand): Likewise.
7564 (stap_parse_single_operand): Likewise.
7565 (stap_parse_argument_1): Likewise.
7566 (stap_parse_argument): Use parser state.
7567 * stap-probe.h: Include "parser-defs.h".
7568 (struct stap_parse_info) <pstate>: New field.
7569 * c-exp.y (parse_type): Rewrite to use parser state.
7570 (yyparse): Redefine to c_parse_internal.
7571 (pstate): New global variable.
7572 (parse_number): Add "struct parser_state" argument.
7573 (write_destructor_name): Likewise.
7574 (type_exp): Update calls to write_exp* and similars in order to
7575 use parser state.
7576 (exp1, exp, variable, qualified_name, space_identifier,
7577 typename, typebase): Likewise.
7578 (write_destructor_name, parse_number, lex_one_token,
7579 classify_name, classify_inner_name, c_parse): Add "struct
7580 parser_state" argument. Update function to use parser state.
7581 * c-lang.h: Forward declare "struct parser_state".
7582 (c_parse): Add "struct parser_state" argument.
7583 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7584 (yyparse): Redefine macro to ada_parse_internal.
7585 (pstate): New variable.
7586 (write_int, write_object_renaming, write_var_or_type,
7587 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7588 type_int, type_long, type_long_long, type_float, type_double,
7589 type_long_double, type_char, type_boolean, type_system_address):
7590 Add "struct parser_state" argument.
7591 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7592 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7593 var_or_type, aggregate, aggregate_component_list,
7594 positional_list, others, component_group,
7595 component_associations): Update calls to write_exp* and similar
7596 functions in order to use parser state.
7597 (ada_parse, write_var_from_sym, write_int,
7598 write_exp_op_with_string, write_object_renaming,
7599 find_primitive_type, write_selectors, write_ambiguous_var,
7600 write_var_or_type, write_name_assoc, type_int, type_long,
7601 type_long_long, type_float, type_double, type_long_double,
7602 type_char, type_boolean, type_system_address): Add "struct
7603 parser_state" argument. Adjust function to use parser state.
7604 * ada-lang.c (parse): Likewise.
7605 * ada-lang.h: Forward declare "struct parser_state".
7606 (ada_parse): Add "struct parser_state" argument.
7607 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7608 calls to both functions.
7609 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7610 parser state.
7611 (yyparse): Redefine macro to f_parse_internal.
7612 (pstate): New variable.
7613 (parse_number): Add "struct parser_state" argument.
7614 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7615 and similars in order to use parser state.
7616 (parse_number): Adjust code to use parser state.
7617 (yylex): Likewise.
7618 (f_parse): New function.
7619 * f-lang.h: Forward declare "struct parser_state".
7620 (f_parse): Add "struct parser_state" argument.
7621 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7622 parser state.
7623 (yyparse): Redefine macro for java_parse_internal.
7624 (pstate): New variable.
7625 (push_expression_name, push_expression_name, insert_exp): Add
7626 "struct parser_state" argument.
7627 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7628 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7629 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7630 PostIncrementExpression, PostDecrementExpression,
7631 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7632 UnaryExpressionNotPlusMinus, CastExpression,
7633 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7634 RelationalExpression, EqualityExpression, AndExpression,
7635 ExclusiveOrExpression, InclusiveOrExpression,
7636 ConditionalAndExpression, ConditionalOrExpression,
7637 ConditionalExpression, Assignment, LeftHandSide): Update
7638 calls to write_exp* and similars in order to use parser state.
7639 (parse_number): Ajust code to use parser state.
7640 (yylex): Likewise.
7641 (java_parse): New function.
7642 (push_variable): Add "struct parser_state" argument. Adjust
7643 code to user parser state.
7644 (push_fieldnames, push_qualified_expression_name,
7645 push_expression_name, insert_exp): Likewise.
7646 * jv-lang.h: Forward declare "struct parser_state".
7647 (java_parse): Add "struct parser_state" argument.
7648 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7649 parser state.
7650 (yyparse): Redefine macro to m2_parse_internal.
7651 (pstate): New variable.
7652 (type_exp, exp, fblock, variable, type): Update calls to
7653 write_exp* and similars to use parser state.
7654 (yylex): Likewise.
7655 (m2_parse): New function.
7656 * m2-lang.h: Forward declare "struct parser_state".
7657 (m2_parse): Add "struct parser_state" argument.
7658 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7659 * objc-lang.h: Forward declare "struct parser_state".
7660 (end_msglist): Add "struct parser_state" argument.
7661 * p-exp.y (parse_type): Rewrite macro to use parser state.
7662 (yyparse): Redefine macro to pascal_parse_internal.
7663 (pstate): New variable.
7664 (parse_number): Add "struct parser_state" argument.
7665 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7666 write_exp* and similars in order to use parser state.
7667 (parse_number, yylex): Adjust code to use parser state.
7668 (pascal_parse): New function.
7669 * p-lang.h: Forward declare "struct parser_state".
7670 (pascal_parse): Add "struct parser_state" argument.
7671 * go-exp.y (parse_type): Rewrite macro to use parser state.
7672 (yyparse): Redefine macro to go_parse_internal.
7673 (pstate): New variable.
7674 (parse_number): Add "struct parser_state" argument.
7675 (type_exp, exp1, exp, variable, type): Update calls to
7676 write_exp* and similars in order to use parser state.
7677 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7678 to use parser state.
7679 (go_parse): Likewise.
7680 * go-lang.h: Forward declare "struct parser_state".
7681 (go_parse): Add "struct parser_state" argument.
7682
342587c4
DE
76832014-03-27 Doug Evans <dje@google.com>
7684
7685 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7686
33e80786
DE
76872014-03-27 Doug Evans <dje@google.com>
7688
7689 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7690 Remove argument abbrev_section. All callers updated.
7691
1dbab08b
DE
76922014-03-27 Doug Evans <dje@google.com>
7693
7694 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7695 addr_base, ranges_base.
7696
318d3177
KS
76972014-03-26 Keith Seitz <keiths@redhat.com>
7698
7699 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7700 types, not VAR_DOMAIN.
7701
1e54db15
SL
77022014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7703
7704 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7705 "ra" registers.
7706 * features/nios2-linux.c: Regenerated.
7707 * features/nios2.c: Regenerated.
7708
d3839ede
PA
77092014-03-25 Pedro Alves <palves@redhat.com>
7710
7711 * cli/cli-script.c (script_from_file): Force the interpreter to
7712 sync mode.
7713
7588d2ec
PL
77142014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7715
7716 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7717 small stack allocation.
7718
a6290449
TG
77192014-03-24 Tristan Gingold <gingold@adacore.com>
7720
7721 * darwin-nat.c (exc_server): Remove unused prototype.
7722 (darwin_dump_message): Correctly display data on x86_64.
7723 (darwin_encode_reply): Fix style.
7724 Add comments and fix indentation.
7725
31ae9d24 77262014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7727
7728 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7729
6339bfc4
DE
77302014-03-22 Doug Evans <xdje42@gmail.com>
7731
7732 * infcmd.c: Whitespace fixes.
7733 (interrupt_command): Merge two function comments into one.
7734
0a07590b
DE
77352014-03-22 Doug Evans <xdje42@gmail.com>
7736
7737 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7738 All uses updated.
7739
b55fbac4
YQ
77402014-03-22 Yao Qi <yao@codesourcery.com>
7741
7742 * remote.c (target_read_live_memory): Remove.
7743 (memory_xfer_live_readonly_partial): Rename it to
7744 remote_xfer_live_readonly_partial. Remove argument 'object'.
7745 All callers updated. Call remote_read_bytes_1
7746 instead of target_read_live_memory.
7747 * tracepoint.c (set_traceframe_number): Remove.
7748 (make_cleanup_restore_traceframe_number): Likewise .
7749 * tracepoint.h (set_traceframe_number): Remove declaration.
7750 (make_cleanup_restore_traceframe_number): Likewise.
7751
9217e74e
YQ
77522014-03-22 Yao Qi <yao@codesourcery.com>
7753
7754 * remote.c (remote_read_bytes): Move code on reading from the
7755 remote stub to ...
7756 (remote_read_bytes_1): ... here. New function.
7757
8acf9577
YQ
77582014-03-22 Yao Qi <yao@codesourcery.com>
7759
7760 * ctf.c (ctf_xfer_partial): Check the return value of
7761 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7762 return TARGET_XFER_UNAVAILABLE.
7763 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7764 * target.c (target_read_live_memory): Move it to remote.c.
7765 (memory_xfer_live_readonly_partial): Likewise.
7766 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7767 * remote.c (target_read_live_memory): Moved from target.c.
7768 (memory_xfer_live_readonly_partial): Likewise.
7769 (remote_read_bytes): Factored out from
7770 memory_xfer_partial_1.
7771
feef67ab
DE
77722014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7773
7774 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7775 NULL pointer.
7776
b65dc60b
PA
77772014-03-21 Pedro Alves <palves@redhat.com>
7778
7779 * infrun.c (normal_stop): Extend comment.
7780
b4ab256d
HZ
77812014-03-21 Hui Zhu <hui@codesourcery.com>
7782 Pedro Alves <palves@redhat.com>
7783
7784 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7785 static buffer.
7786 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7787 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7788 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7789
deba7593
MR
77902014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7791
7792 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7793 `z' formatted output modifier.
7794
1bff71c3
SDJ
77952014-03-20 Tom Tromey <tromey@redhat.com>
7796 Sergio Durigan Junior <sergiodj@redhat.com>
7797
7798 * probe.c (parse_probes): Turn assert into an ordinary error.
7799 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7800 exceptions when parsing probes. Rearrange the code for clarity.
7801
90e28950
TT
78022014-03-20 Tom Tromey <tromey@redhat.com>
7803
7804 PR gdb/14135
7805 * top.c (execute_command): Only dispatch events if the command
7806 started the target.
7807
beb460e8
PA
78082014-03-20 Tom Tromey <tromey@redhat.com>
7809
7810 PR cli/15718
7811 * infcall.c: Include event-top.h.
7812 (run_inferior_call): Call async_disable_stdin if needed.
7813
99619bea
PA
78142014-03-20 Pedro Alves <palves@redhat.com>
7815
7816 * infrun.c (prepare_to_proceed): Delete.
7817 (thread_still_needs_step_over): New function.
7818 (find_thread_needs_step_over): New function.
7819 (proceed): If the current thread needs a step-over, set its
7820 steping_over_breakpoint flag. Adjust to use
7821 find_thread_needs_step_over instead of prepare_to_proceed.
7822 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7823 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7824 breakpoint.
7825 (switch_back_to_stepped_thread): Step over breakpoints of all
7826 threads not the stepping thread, before switching back to the
7827 stepping thread.
7828
2adfaa28
PA
78292014-03-20 Pedro Alves <palves@redhat.com>
7830
7831 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7832 extern.
7833 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7834 * infrun.c (saved_singlestep_ptid)
7835 (stepping_past_singlestep_breakpoint): Delete.
7836 (resume): Remove stepping_past_singlestep_breakpoint handling.
7837 (proceed): Store the prev_pc of the stepping thread too.
7838 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7839 singlestep_pc.
7840 (enum infwait_states): Delete infwait_thread_hop_state.
7841 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7842 field.
7843 (handle_inferior_event): Adjust.
7844 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7845 handling and the thread-hop code. Before removing single-step
7846 breakpoints, check whether the thread hit a single-step breakpoint
7847 of another thread. If it did, the trap is not a random signal.
7848 (switch_back_to_stepped_thread): If the event thread hit a
7849 single-step breakpoint, unblock it before switching to the
7850 stepping thread. Handle the case of the stepped thread having
7851 advanced already.
7852 (keep_going): Handle the case of the current thread moving past a
7853 single-step breakpoint.
7854
31e77af2
PA
78552014-03-20 Pedro Alves <palves@redhat.com>
7856
7857 PR breakpoints/7143
7858 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7859 are being stepped over.
7860 (breakpoint_address_match): Make extern.
7861 * breakpoint.h (breakpoint_address_match): New declaration.
7862 * inferior.h (stepping_past_instruction_at): New declaration.
7863 * infrun.c (struct step_over_info): New type.
7864 (step_over_info): New global.
7865 (set_step_over_info, clear_step_over_info)
7866 (stepping_past_instruction_at): New functions.
7867 (handle_inferior_event): Clear the step-over info when
7868 trap_expected is cleared.
7869 (resume): Remove now stale comment.
7870 (clear_proceed_status): Clear step-over info.
7871 (proceed): Adjust step-over handling to set or clear the step-over
7872 info instead of removing all breakpoints.
7873 (handle_signal_stop): When setting up a thread-hop, don't remove
7874 breakpoints here.
7875 (stop_stepping): Clear step-over info.
7876 (keep_going): Adjust step-over handling to set or clear step-over
7877 info and then always inserting breakpoints, instead of removing
7878 all breakpoints when stepping over one.
7879
b9f437de
PA
78802014-03-20 Pedro Alves <palves@redhat.com>
7881
7882 * infrun.c (previous_inferior_ptid): Adjust comment.
7883 (deferred_step_ptid): Delete.
7884 (infrun_thread_ptid_changed, prepare_to_proceed)
7885 (init_wait_for_inferior): Adjust.
7886 (handle_signal_stop): Delete deferred_step_ptid handling.
7887
06c868a8
JK
78882014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7889
7890 PR gdb/15358
7891 * defs.h (sync_quit_force_run): New declaration.
7892 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7893 * event-top.c (async_sigterm_handler): New declaration.
7894 (async_sigterm_token): New variable.
7895 (async_init_signals): Create also async_sigterm_token.
7896 (async_sigterm_handler): New function.
7897 (sync_quit_force_run): New variable.
7898 (handle_sigterm): Replace quit_force call by other calls.
7899 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7900
dea80df0
MR
79012014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7902
7903 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7904 offset into SPE pseudo registers.
7905
0c7e1a46
PA
79062014-03-18 Pedro Alves <palves@redhat.com>
7907
7908 PR gdb/13860
7909 * inferior.h (print_stop_event): Declare.
7910 * infrun.c (print_stop_event): New, factored out from ...
7911 (normal_stop): ... this.
7912 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7913 of bpstat_print/print_stack_frame.
7914
9c1fcd01
TT
79152014-03-17 Tom Tromey <tromey@redhat.com>
7916
7917 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7918
11aa919a
PMR
79192014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7920
7921 * ada-lang.c (decode_constrained_packed_array): Perform a
7922 minimal coercion for reference with coerce_ref instead of
7923 ada_coerce_ref.
7924
d4ccb5e0
TG
79252014-03-17 Tristan Gingold <gingold@adacore.com>
7926
7927 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7928 (darwin_solib_create_inferior_hook): Emit a warning if version
7929 is unhandled.
7930
49840f2a
UW
79312014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7932
7933 * python/py-value.c (get_field_flag): Cast flag_name argument to
7934 PyObject_GetAttrString to support Python 2.4.
7935
ed4123e5
JK
79362014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7937
7938 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7939 (Global Maintainers): Remove Jan Kratochvil.
7940
d6b64346
PA
79412014-03-14 Pedro Alves <palves@redhat.com>
7942
7943 * inferior.h (terminal_ours_for_output): Rename to ...
7944 (child_terminal_ours_for_output): ... this.
7945 (terminal_save_ours): Rename to ...
7946 (child_terminal_save_ours): ... this.
7947 (terminal_ours): Rename to ...
7948 (child_terminal_ours): ... this.
7949 (terminal_inferior): Rename to ...
7950 (child_terminal_inferior): ... this.
7951 (terminal_init_inferior): Rename to ...
7952 (child_terminal_init_inferior): ... this.
7953 (terminal_init_inferior_with_pgrp): Rename to ...
7954 (child_terminal_init_inferior_with_pgrp): ... this.
7955 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7956 (child_terminal_init_with_pgrp): ... this.
7957 (terminal_save_ours): Rename to ...
7958 (child_terminal_save_ours): ... this.
7959 (terminal_init_inferior): Rename to ...
7960 (child_terminal_init): ... this. Adjust.
7961 (terminal_inferior): Rename to ...
7962 (child_terminal_inferior): ... this.
7963 (terminal_ours_for_output): Rename to ...
7964 (child_terminal_ours_for_output): ... this. Adjust.
7965 (terminal_ours): Rename to ...
7966 (child_terminal_ours): ... this.
7967 (terminal_ours_1): Rename to ...
7968 (child_terminal_ours_1): ... this. Adjust.
7969 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7970 * windows-nat.c (do_initial_windows_stuff): Adjust.
7971 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7972 (gnu_terminal_init): ... this. Adjust.
7973 (gnu_target): Adjust.
7974 * inf-child.c (inf_child_target): Adjust.
7975
5a1e8c7a
DE
79762014-03-13 Doug Evans <xdje42@gmail.com>
7977
7978 PR guile/16612
7979 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7980 new eq?-hashtab.
7981
350e1a76
DE
79822014-03-13 Doug Evans <xdje42@gmail.com>
7983
7984 * value.c (record_latest_value): Call release_value_or_incref
7985 instead of release_value.
7986
a69900ae
PA
79872014-03-13 Pedro Alves <palves@redhat.com>
7988
7989 * procfs.c (procfs_target): Don't override to_shortname,
7990 to_longname or to_doc.
7991
5db9f0bd
PA
79922014-03-13 Pedro Alves <palves@redhat.com>
7993
7994 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7995 Unix in user visible strings.
7996
5e3a2c38
SS
79972014-03-12 Stan Shebs <stan@codesourcery.com>
7998
7999 * gdbtypes.h: Annotate comments for Doxygen, add a page
8000 block comment with some general info.
8001
8bc2fe48
PA
80022014-03-12 Pedro Alves <palves@redhat.com>
8003
8004 * infcmd.c (prepare_execution_command): New function, factored out
8005 from several execution commands.
8006 (run_command_1, continue_command, step_1, jump_command)
8007 (signal_command, until_command, advance_command, finish_command)
8008 (attach_command): Use prepare_execution_command.
8009
638c5f49
OJ
80102014-03-12 Omair Javaid <omair.javaid@linaro.org>
8011
8012 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8013 (MAX_BPTS): Define.
8014 (MAX_WPTS): Define.
8015 (struct arm_linux_thread_points): Removed.
8016 (struct arm_linux_process_info): New.
8017 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8018 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8019 (arm_linux_find_breakpoints_by_tid): Removed.
8020 (struct arch_lwp_info): New.
8021 (arm_linux_find_process_pid): New functions.
8022 (arm_linux_add_process): New functions.
8023 (arm_linux_process_info_get): New functions.
8024 (arm_linux_forget_process): New function.
8025 (arm_linux_get_debug_reg_state): New function.
8026 (struct update_registers_data): New.
8027 (update_registers_callback): New function.
8028 (arm_linux_insert_hw_breakpoint1): Updated.
8029 (arm_linux_remove_hw_breakpoint1): Updated.
8030 (arm_linux_insert_hw_breakpoint): Updated.
8031 (arm_linux_remove_hw_breakpoint): Updated.
8032 (arm_linux_insert_watchpoint): Updated.
8033 (arm_linux_remove_watchpoint): Updated.
8034 (arm_linux_new_thread): Updated.
8035 (arm_linux_prepare_to_resume): New function.
8036 (arm_linux_new_fork): New function.
8037 (_initialize_arm_linux_nat): Updated.
8038
6d03af93
PA
80392014-03-12 Pedro Alves <palves@redhat.com>
8040
8041 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8042
b3ccfe11
TT
80432014-03-12 Tom Tromey <tromey@redhat.com>
8044
8045 * inf-child.c (return_zero): New function.
8046 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8047 * aix-thread.c (aix_thread_inferior_created): New function.
8048 (aix_thread_attach): Remove.
8049 (init_aix_thread_ops): Don't set to_attach.
8050 (_initialize_aix_thread): Register inferior_created observer.
8051 * corelow.c (init_core_ops): Don't set to_attach or
8052 to_create_inferior.
8053 * exec.c (init_exec_ops): Don't set to_attach or
8054 to_create_inferior.
8055 * infcmd.c (run_command_1): Use find_run_target. Make direct
8056 target calls.
8057 (attach_command): Use find_attach_target. Make direct target
8058 calls.
8059 * record-btrace.c (init_record_btrace_ops): Don't set
8060 to_create_inferior.
8061 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8062 Remove.
8063 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8064 set to_create_inferior.
8065 * target.c (complete_target_initialization): Add assertion.
8066 (target_create_inferior): Remove.
8067 (find_default_attach, find_default_create_inferior): Remove.
8068 (find_attach_target, find_run_target): New functions.
8069 (find_default_is_async_p, find_default_can_async_p)
8070 (target_supports_non_stop, target_attach): Remove.
8071 (init_dummy_target): Don't set to_create_inferior or
8072 to_supports_non_stop.
8073 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8074 TARGET_DEFAULT_FUNC.
8075 <to_create_inferior>: Add comment.
8076 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8077 TARGET_DEFAULT_RETURN.
8078 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8079 (find_attach_target, find_run_target): Declare.
8080 (target_create_inferior): Remove.
8081 (target_has_execution_1): Update comment.
8082 (target_supports_non_stop): Remove.
8083 * target-delegates.c: Rebuild.
8084
91f83b02
PA
80852014-03-12 Pedro Alves <palves@redhat.com>
8086
8087 * inf-child.h: Update comment to not mention Unix.
8088
f1aea813
PA
80892014-03-12 Pedro Alves <palves@redhat.com>
8090
8091 * inf-child.c: Update top comment to not mention Unix. Add
8092 generic comment describing how this target is meant to be used.
8093 (inf_child_post_attach, inf_child_post_startup_inferior)
8094 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8095 Unix in comment.
8096
ee8e9165
PA
80972014-03-12 Pedro Alves <palves@redhat.com>
8098
8099 * nto-procfs.c: Include inf-child.h.
8100 (procfs_ops): Delete global.
8101 (procfs_can_run): Delete method.
8102 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8103 target pointer instead of referencing procfs_ops.
8104 (procfs_prepare_to_store): Delete.
8105 (init_procfs_ops): Delete function.
8106 (procfs_target): New function, based on init_procfs_ops, but
8107 inherit inf_child_target.
8108 (_initialize_procfs): Use procfs_target.
8109
51a9c8c5
PA
81102014-03-12 Pedro Alves <palves@redhat.com>
8111
8112 * windows-nat.c: Include inf-child.h.
8113 (windows_ops): Delete global.
8114 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8115 methods.
8116 (init_windows_ops): Delete function.
8117 (windows_target): New function, based on init_windows_ops, but
8118 inherit inf_child_target.
8119 (_initialize_windows_nat): Use windows_target. Install x86
8120 specific target methods here.
8121
c1966e26
DE
81222014-03-10 Doug Evans <xdje42@gmail.com>
8123
8124 * guile/guile.c (call_initialize_gdb_module): New function.
8125 (initialize_guile): Replace call to scm_init_guile with call to
8126 scm_with_guile.
8127
023db19c
JB
81282014-03-10 Joel Brobecker <brobecker@adacore.com>
8129
8130 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8131 in call to TYPE_CODE macro.
8132
5ec18f2b
JG
81332014-03-10 Jerome Guitton <guitton@adacore.com>
8134
8668be63
JB
8135 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8136 Resolve tagged types to full view.
5ec18f2b 8137
7d03f2eb
HZ
81382014-03-10 Hui Zhu <hui@codesourcery.com>
8139
8140 * target.h (target_insert_breakpoint): Remove "hardware" from its
8141 comments.
8142
c5164cbc
DE
81432014-03-07 Doug Evans <dje@google.com>
8144
8145 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8146
c4a3fee2
DE
81472014-03-07 Doug Evans <dje@google.com>
8148
8149 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8150 Remove unused local comp_dir_attr. Assert exactly one of
8151 stub_comp_unit_die, stub_comp_dir is non-NULL.
8152
3156469c
JB
81532014-03-07 Joel Brobecker <brobecker@adacore.com>
8154
8155 * target.h (complete_target_initialization, add_target):
8156 Add comment.
8157
c1a7b7c6
PA
81582014-03-07 Pedro Alves <palves@redhat.com>
8159
8160 * go32-nat.c: Include inf-child.h.
8161 (go32_ops): Delete global.
8162 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8163 Delete methods.
8164 (go32_create_inferior): Push the passed in target pointer instead
8165 of referencing go32_ops.
8166 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8167 (go32_target): New function, based on init_go32_ops, but inherit
8168 inf_child_target.
8169 (_initialize_go32_nat): Use go32_target. Move parts of
8170 init_go32_ops here.
8171
d3c1a85f
JB
81722014-03-06 Joel Brobecker <brobecker@adacore.com>
8173
8174 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8175 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8176 SYMBOL_VALUE_ADDRESS.
8177 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8178
5fa1d40e
YQ
81792014-03-06 Yao Qi <yao@codesourcery.com>
8180
8181 * breakpoint.c (get_tracepoint_by_number): Remove argument
8182 optional_p. All callers updated. Adjust comments. Update
8183 output message.
8184 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8185
0c13193f
YQ
81862014-03-06 Yao Qi <yao@codesourcery.com>
8187
8188 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8189 early if get_number returns zero. Use 'p' instead of 'args'.
8190
2217da06
YQ
81912014-03-06 Yao Qi <yao@codesourcery.com>
8192
8193 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8194 message.
8195
cc3da688
YQ
81962014-03-06 Yao Qi <yao@codesourcery.com>
8197
8198 PR breakpoints/16508
8199 * tracepoint.c (check_trace_running): New function.
8200 (trace_find_command): Move code to check_trace_running and
8201 call check_trace_running.
8202 (trace_find_pc_command): Likewise.
8203 (trace_find_tracepoint_command): Likewise.
8204 (trace_find_line_command): Likewise.
8205 (trace_find_range_command): Likewise.
8206 * tracepoint.h (check_trace_running): Likewise.
8207 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8208
6a5f844b
YQ
82092014-03-06 Yao Qi <yao@codesourcery.com>
8210
8211 * target.h (struct target_ops) <to_traceframe_info>: Use
8212 TARGET_DEFAULT_NORETURN (tcomplain ()).
8213 * target-delegates.c: Regenerated.
8214
0f26cec1
PA
82152014-03-05 Pedro Alves <palves@redhat.com>
8216
8217 PR gdb/16575
8218 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8219 void. Update comment.
8220 (dcache_xfer_memory): Delete.
8221 (dcache_read_memory_partial): New, based on the read bits of
8222 dcache_xfer_memory.
8223 (dcache_update): Add status parameter. Use ULONGEST for len, and
8224 adjust. Discard cache lines if the reason for the update was
8225 error.
8226 * dcache.h (dcache_xfer_memory): Delete declaration.
8227 (dcache_read_memory_partial): New declaration.
8228 (dcache_update): Update prototype.
8229 * target.c (raw_memory_xfer_partial): Update the dcache here.
8230 (memory_xfer_partial_1): Don't handle dcache writes here.
8231
b2b255bd
MF
82322014-03-05 Mike Frysinger <vapier@gentoo.org>
8233
8234 * remote-sim.c (gdbsim_load): Add const to prog.
8235
5d9cf8a4
TT
82362014-03-03 Tom Tromey <tromey@redhat.com>
8237
8238 * elfread.c (probe_key): Change to bfd_data.
8239 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8240 now per-BFD, not per-objfile.
8241 * stap-probe.c (stap_probe_destroy): Update comment.
8242 (handle_stap_probe): Allocate on the per-BFD obstack.
8243
729662a5
TT
82442014-03-03 Tom Tromey <tromey@redhat.com>
8245
8246 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8247 * breakpoint.c (create_longjmp_master_breakpoint): Use
8248 get_probe_address.
8249 (add_location_to_breakpoint, bkpt_probe_insert_location)
8250 (bkpt_probe_remove_location): Update.
8251 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8252 * elfread.c (elf_symfile_relocate_probe): Remove.
8253 (elf_probe_fns): Update.
8254 (insert_exception_resume_breakpoint): Change type of "probe"
8255 parameter to bound_probe.
8256 (check_exception_resume): Update.
8257 * objfiles.c (objfile_relocate1): Don't relocate probes.
8258 * probe.c (bound_probe_s): New typedef.
8259 (parse_probes): Use get_probe_address. Set sal's objfile.
8260 (find_probe_by_pc): Return a bound_probe.
8261 (collect_probes): Return a VEC(bound_probe_s).
8262 (compare_probes): Update.
8263 (gen_ui_out_table_header_info): Change type of "probes"
8264 parameter. Update.
8265 (info_probes_for_ops): Update.
8266 (get_probe_address): New function.
8267 (probe_safe_evaluate_at_pc): Update.
8268 * probe.h (struct probe_ops) <get_probe_address>: New field.
8269 <set_semaphore, clear_semaphore>: Add objfile parameter.
8270 (struct probe) <objfile>: Remove field.
8271 <arch>: New field.
8272 <address>: Update comment.
8273 (struct bound_probe): New.
8274 (find_probe_by_pc): Return a bound_probe.
8275 (get_probe_address): Declare.
8276 * solib-svr4.c (struct probe_and_action) <address>: New field.
8277 (hash_probe_and_action, equal_probe_and_action): Update.
8278 (register_solib_event_probe): Add address parameter.
8279 (solib_event_probe_at): Update.
8280 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8281 get_probe_address.
8282 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8283 (stap_get_probe_address): New function.
8284 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8285 (compile_probe_arg): Update.
8286 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8287 address.
8288 (handle_stap_probe): Don't relocate the probe.
8289 (stap_relocate): Remove.
8290 (stap_gen_info_probes_table_values): Update.
8291 (stap_probe_ops): Remove stap_relocate.
8292 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8293 (debug_sym_probe_fns): Update.
8294 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8295 * symtab.c (init_sal): Use memset.
8296 * symtab.h (struct symtab_and_line) <objfile>: New field.
8297 * tracepoint.c (start_tracing, stop_tracing): Update.
8298
ff887920
TT
82992014-03-03 Tom Tromey <tromey@redhat.com>
8300
8301 * probe.h (parse_probes, find_probe_by_pc)
8302 (find_probes_in_objfile): Fix comments.
8303
f0407826
DE
83042014-03-02 Doug Evans <xdje42@gmail.com>
8305
8306 * infrun.c (handle_signal_stop): Replace test for
8307 TARGET_WAITKIND_STOPPED with an assert.
8308
35e6a711
DE
83092014-03-02 Doug Evans <xdje42@gmail.com>
8310
8311 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8312
667f9d0b
DE
83132014-03-02 Doug Evans <xdje42@gmail.com>
8314
8315 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8316
dc92ace0
MK
83172014-03-01 Mark Kettenis <kettenis@gnu.org>
8318
8319 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8320
a900370f
MK
83212014-03-01 Mark Kettenis <kettenis@gnu.org>
8322
8323 * i386obsd-nat.c: Include "obsd-nat.h".
8324 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8325 add_target.
8326 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8327
b72a7981
MK
83282014-03-01 Mark Kettenis <kettenis@gnu.org>
8329
8330 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8331
96c70aba
MK
83322014-03-01 Mark Kettenis <kettenis@gnu.org>
8333
8334 * mips64obsd-nat.c: Include "obsd-nath".
8335 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8336 add_target
8337 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8338
874a80af
MK
83392014-03-01 Mark Kettenis <kettenis@gnu.org>
8340
8fd408f1
MK
8341 * amd64obsd-nat.c: Include "obsd-nat,h.
8342 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8343 add_target.
874a80af
MK
8344 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8345
9cf95373
SC
83462014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8347
8348 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8349 (find_overload_match): Update call to find_oload_champ.
8350 (find_oload_champ_namespace_loop): Likewise
8351
863e4da4
MK
83522014-02-28 Mark Kettenis <kettenis@gnu.org>
8353
025cac40
MK
8354 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8355
1ed586ce
MK
8356 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8357 * config/sparc/obsd64.mh: New file.
8358 * sparc64obsd-nat.c: New file.
8359
863e4da4
MK
8360 * obsd-nat.h: New file.
8361 * obsd-nat.c: New file.
8362 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8363 (ALLDEPFILES): Add obsd-nat.c.
8364
89de4da4
TT
83652014-02-28 Tom Tromey <tromey@redhat.com>
8366
8367 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8368 * cli-out.h (cli_ui_out_impl): Now const.
8369 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8370 * ui-out.c (struct ui_out) <impl>: Now const.
8371 (default_ui_out_impl): Now const.
8372 (ui_out_new): Make 'impl' parameter const.
8373 * ui-out.h (ui_out_new): Update.
8374
c725e7b6
MK
83752014-02-27 Mark Kettenis <kettenis@gnu.org>
8376
8377 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8378
670b46b3
MK
83792014-02-27 Mark Kettenis <kettenis@gnu.org>
8380
8381 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8382
c91550fc
JK
83832014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8384
8385 Additional PR 8882 fix.
8386 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8387
2fa0369e
PA
83882014-02-27 Pedro Alves <palves@redhat.com>
8389
8390 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8391 isn't set.
8392
d632a097
PA
83932014-02-27 Pedro Alves <palves@redhat.com>
8394
8395 PR 12702
8396 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8397 * nat/linux-waitpid.c: Include string.h.
8398 (status_to_str): Moved here and made extern.
8399 * nat/linux-waitpid.h (status_to_str): New declaration.
8400
2ebd5a35
HZ
84012014-02-27 Hui Zhu <hui@codesourcery.com>
8402
8403 PR 12702
8404 * infrun.c (ptid_match): Move ...
8405 * common/ptid.c (ptid_match): ... here.
8406 * inferior.h (ptid_match): Move ...
8407 * common/ptid.h (ptid_match): ... here.
8408
3cdd631f
MK
84092014-02-27 Mark Kettenis <kettenis@gnu.org>
8410
8411 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8412 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8413 gdb_target_obs.
8414
bee30a64
MK
84152014-02-27 Mark Kettenis <kettenis@gnu.org>
8416
8417 * obsd-tdep.c (obsd_auxv_parse): New function.
8418 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8419
8420 * gdbarch.sh (auxv_parse): New.
8421 * gdbarch.h: Regenerated.
8422 * gdbarch.c: Regenerated.
8423 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8424
7a5a839f
LC
84252014-02-26 Ludovic Courtès <ludo@gnu.org>
8426
8427 * guile/scm-value.c (gdbscm_history_append_x): New function.
8428 (value_functions): Add it.
8429
31aa7e4e
JB
84302014-02-27 Joel Brobecker <brobecker@adacore.com>
8431
8432 * dwarf2read.c (attr_value_as_address): New function.
8433 (dwarf2_find_base_address, read_call_site_scope): Use
8434 attr_value_as_address in place of DW_ADDR.
8435 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8436 the low and high addresses. Slight rework of the handling
8437 of the high pc being a constant form, and limit it to
8438 DWARF verson 4 or higher.
8439 (dwarf2_record_block_ranges): Likewise.
8440 (read_partial_die): Likewise.
8441 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8442
9b333ba3
TT
84432014-02-26 Tom Tromey <tromey@redhat.com>
8444
8445 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8446
5f6cac40
TT
84472014-02-26 Tom Tromey <tromey@redhat.com>
8448
8449 * elfread.c (elf_read_minimal_symbols): Return early if
8450 minimal symbols have already been read. Add "ei" parameter.
8451 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8452 * minsyms.c (prim_record_minimal_symbol_full): Update.
8453 * objfiles.h (struct objstats) <n_minsyms>: Move...
8454 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8455 * symmisc.c (print_objfile_statistics): Update.
8456
2750ef27
TT
84572014-02-26 Tom Tromey <tromey@redhat.com>
8458
8459 * elfread.c (elf_read_minimal_symbols): New function, from
8460 elf_symfile_read.
8461 (elf_symfile_read): Call it.
8462
34643a32
TT
84632014-02-26 Tom Tromey <tromey@redhat.com>
8464
8465 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8466 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8467 (lookup_minimal_symbol_solib_trampoline)
8468 (lookup_minimal_symbol_by_pc_section_1)
8469 (lookup_minimal_symbol_and_objfile): Update.
8470 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8471 Don't allocate a minimal symbol if minsyms have already been read.
8472 (build_minimal_symbol_hash_tables): Update.
8473 (install_minimal_symbols): Do nothing if minsyms already read.
8474 Use the per-BFD obstack.
8475 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8476 * objfiles.c (allocate_objfile): Call
8477 terminate_minimal_symbol_table later.
8478 (have_minimal_symbols): Update.
8479 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8480 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8481 Move from struct objfile.
8482 <minsyms_read>: New field.
8483 (struct objfile) <msymbols, minimal_symbol_count,
8484 msymbol_hash, msymbol_demangled_hash>: Move.
8485 (ALL_OBJFILE_MSYMBOLS): Update.
8486 * symfile.c (read_symbols): Set minsyms_read.
8487 (reread_symbols): Update.
8488 * symmisc.c (dump_objfile, dump_msymbols): Update.
8489
2273f0ac
TT
84902014-02-26 Tom Tromey <tromey@redhat.com>
8491
8492 * minsyms.c (msymbols_sort): Remove.
8493 * minsyms.h (msymbols_sort): Remove.
8494 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8495 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8496 * elfread.c (elf_symtab_read): Don't add section offsets.
8497 * xcoffread.c (record_minimal_symbol): Don't add section offset
8498 to minimal symbol address.
8499 * somread.c (text_offset, data_offset): Remove.
8500 (som_symtab_read): Don't add section offsets to minimal symbol
8501 addresses.
8502 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8503 Don't add section offsets to minimal symbols.
8504 * coffread.c (coff_symtab_read): Don't add section offsets
8505 to minimal symbol addresses.
8506 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8507 to minimal symbol addresses.
8508 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8509 section offset to minimal symbol addresses.
8510 * mdebugread.c (parse_partial_symbols): Don't add section
8511 offset to minimal symbol addresses.
8512 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8513 offset to minimal symbol addresses.
8514
77e371c0
TT
85152014-02-26 Tom Tromey <tromey@redhat.com>
8516
8517 * ada-lang.c (ada_main_name): Update.
8518 (ada_add_standard_exceptions): Update.
8519 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8520 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8521 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8522 * auxv.c (ld_so_xfer_auxv): Update.
8523 * avr-tdep.c (avr_scan_prologue): Update.
8524 * ax-gdb.c (gen_var_ref): Update.
8525 * blockframe.c (get_pc_function_start)
8526 (find_pc_partial_function_gnu_ifunc): Update.
8527 * breakpoint.c (create_overlay_event_breakpoint)
8528 (create_longjmp_master_breakpoint)
8529 (create_std_terminate_master_breakpoint)
8530 (create_exception_master_breakpoint): Update.
8531 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8532 * c-valprint.c (c_val_print): Update.
8533 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8534 * common/agent.c (agent_look_up_symbols): Update.
8535 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8536 * dwarf2loc.c (call_site_to_target_addr): Update.
8537 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8538 * elfread.c (elf_gnu_ifunc_record_cache)
8539 (elf_gnu_ifunc_resolve_by_got): Update.
8540 * findvar.c (default_read_var_value): Update.
8541 * frame.c (inside_main_func): Update.
8542 * frv-tdep.c (frv_frame_this_id): Update.
8543 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8544 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8545 Update.
8546 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8547 (hppa_hpux_find_dummy_bpaddr): Update.
8548 * hppa-tdep.c (hppa_symbol_address): Update.
8549 * infcmd.c (until_next_command): Update.
8550 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8551 Update.
8552 * linespec.c (minsym_found, add_minsym): Update.
8553 * linux-nat.c (get_signo): Update.
8554 * linux-thread-db.c (inferior_has_bug): Update.
8555 * m32c-tdep.c (m32c_return_value)
8556 (m32c_m16c_address_to_pointer): Update.
8557 * m32r-tdep.c (m32r_frame_this_id): Update.
8558 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8559 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8560 * maint.c (maintenance_translate_address): Update.
8561 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8562 (frob_address): New function.
8563 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8564 frob_address. Rename parameter to "pc_in".
8565 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8566 addresses.
8567 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8568 Update.
8569 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8570 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8571 * objc-lang.c (find_objc_msgsend): Update.
8572 * objfiles.c (objfile_relocate1): Update.
8573 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8574 * p-valprint.c (pascal_val_print): Update.
8575 * parse.c (write_exp_msymbol): Update.
8576 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8577 (ppc_elfv2_skip_entrypoint): Update.
8578 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8579 * printcmd.c (build_address_symbolic, msym_info)
8580 (address_info): Update.
8581 * proc-service.c (ps_pglobal_lookup): Update.
8582 * psymtab.c (find_pc_sect_psymtab_closer)
8583 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8584 Change msymbol parameter to bound_minimal_symbol.
8585 * ravenscar-thread.c (get_running_thread_id): Update.
8586 * remote.c (remote_check_symbols): Update.
8587 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8588 address.
8589 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8590 * solib-dsbt.c (lm_base): Update.
8591 * solib-frv.c (lm_base, main_got): Update.
8592 * solib-irix.c (locate_base): Update.
8593 * solib-som.c (som_solib_create_inferior_hook)
8594 (link_map_start): Update.
8595 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8596 * solib-svr4.c (elf_locate_base, enable_break): Update.
8597 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8598 (flush_ea_cache): Update.
8599 * stabsread.c (define_symbol, scan_file_globals): Update.
8600 * stack.c (find_frame_funname): Update.
8601 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8602 (debug_qf_find_pc_sect_symtab): Update.
8603 * symfile.c (simple_read_overlay_table)
8604 (simple_overlay_update): Update.
8605 * symfile.h (struct quick_symbol_functions)
8606 <find_pc_sect_symtab>: Change type of msymbol to
8607 bound_minimal_symbol.
8608 * symmisc.c (dump_msymbols): Update.
8609 * symtab.c (find_pc_sect_symtab_via_partial)
8610 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8611 (search_symbols, print_msymbol_info): Update.
8612 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8613 (MSYMBOL_VALUE_ADDRESS): Redefine.
8614 (BMSYMBOL_VALUE_ADDRESS): New macro.
8615 * tracepoint.c (scope_info): Update.
8616 * tui/tui-disasm.c (tui_find_disassembly_address)
8617 (tui_get_begin_asm_address): Update.
8618 * valops.c (find_function_in_inferior): Update.
8619 * value.c (value_static_field, value_fn_field): Update.
8620
3b7344d5
TT
86212014-02-26 Tom Tromey <tromey@redhat.com>
8622
8623 * ada-lang.c (ada_update_initial_language): Update.
8624 (ada_main_name, ada_has_this_exception_support): Update.
8625 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8626 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8627 * arm-tdep.c (arm_skip_stub): Update.
8628 * auxv.c (ld_so_xfer_auxv): Update.
8629 * avr-tdep.c (avr_scan_prologue): Update.
8630 * ax-gdb.c (gen_var_ref): Update.
8631 * breakpoint.c (struct breakpoint_objfile_data)
8632 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8633 type to bound_minimal_symbol.
8634 (create_overlay_event_breakpoint)
8635 (create_longjmp_master_breakpoint)
8636 (create_std_terminate_master_breakpoint)
8637 (create_exception_master_breakpoint): Update.
8638 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8639 * c-exp.y (classify_name): Update.
8640 * coffread.c (coff_symfile_read): Update.
8641 * common/agent.c (agent_look_up_symbols): Update.
8642 * d-lang.c (d_main_name): Update.
8643 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8644 * dec-thread.c (enable_dec_thread): Update.
8645 * dwarf2loc.c (call_site_to_target_addr): Update.
8646 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8647 * eval.c (evaluate_subexp_standard): Update.
8648 * findvar.c (struct minsym_lookup_data) <result>: Change type
8649 to bound_minimal_symbol.
8650 <objfile>: Remove.
8651 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8652 * frame.c (inside_main_func): Update.
8653 * frv-tdep.c (frv_frame_this_id): Update.
8654 * gcore.c (call_target_sbrk): Update.
8655 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8656 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8657 Update.
8658 * go-lang.c (go_main_name): Update.
8659 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8660 (hppa_hpux_find_import_stub_for_addr): Update.
8661 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8662 Update. Change return type.
8663 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8664 type.
8665 * jit.c (jit_breakpoint_re_set_internal): Update.
8666 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8667 Update.
8668 * linux-nat.c (get_signo): Update.
8669 * linux-thread-db.c (inferior_has_bug): Update
8670 * m32c-tdep.c (m32c_return_value)
8671 (m32c_m16c_address_to_pointer): Update.
8672 * m32r-tdep.c (m32r_frame_this_id): Update.
8673 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8674 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8675 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8676 lookup_minimal_symbol. Change return type.
8677 (lookup_minimal_symbol): Remove.
8678 (lookup_bound_minimal_symbol): Update.
8679 (lookup_minimal_symbol_text): Change return type.
8680 (lookup_minimal_symbol_solib_trampoline): Change return type.
8681 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8682 (lookup_minimal_symbol_solib_trampoline): Change return type.
8683 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8684 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8685 (value_nsstring, find_imps): Update.
8686 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8687 * p-lang.c (pascal_main_name): Update.
8688 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8689 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8690 * proc-service.c (ps_pglobal_lookup): Update.
8691 * ravenscar-thread.c (get_running_thread_msymbol): Change
8692 return type.
8693 (has_ravenscar_runtime, get_running_thread_id): Update.
8694 * remote.c (remote_check_symbols): Update.
8695 * sol-thread.c (ps_pglobal_lookup): Update.
8696 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8697 * solib-dsbt.c (lm_base): Update.
8698 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8699 Update.
8700 * solib-irix.c (locate_base): Update.
8701 * solib-som.c (som_solib_create_inferior_hook)
8702 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8703 Update.
8704 * solib-spu.c (spu_enable_break): Update.
8705 * solib-svr4.c (elf_locate_base, enable_break): Update.
8706 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8707 (flush_ea_cache): Update.
8708 * stabsread.c (define_symbol): Update.
8709 * symfile.c (simple_read_overlay_table): Update.
8710 * symtab.c (find_pc_sect_line): Update.
8711 * tracepoint.c (scope_info): Update.
8712 * tui-disasm.c (tui_get_begin_asm_address): Update.
8713 * value.c (value_static_field): Update.
8714
40c1a007
TT
87152014-02-26 Tom Tromey <tromey@redhat.com>
8716
8717 * minsyms.c (prim_record_minimal_symbol_full): Use
8718 SET_MSYMBOL_VALUE_ADDRESS.
8719 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8720 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8721 SET_MSYMBOL_VALUE_ADDRESS.
8722 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8723 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8724
efd66ac6
TT
87252014-02-26 Tom Tromey <tromey@redhat.com>
8726
8727 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8728 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8729 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8730 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8731 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8732 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8733 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8734 * ada-lang.c (ada_main_name): Update.
8735 (ada_lookup_simple_minsym): Update.
8736 (ada_make_symbol_completion_list): Update.
8737 (ada_add_standard_exceptions): Update.
8738 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8739 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8740 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8741 * arm-tdep.c (skip_prologue_function): Update.
8742 (arm_skip_stack_protector, arm_skip_stub): Update.
8743 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8744 (arm_wince_skip_main_prologue): Update.
8745 * auxv.c (ld_so_xfer_auxv): Update.
8746 * avr-tdep.c (avr_scan_prologue): Update.
8747 * ax-gdb.c (gen_var_ref): Update.
8748 * block.c (call_site_for_pc): Update.
8749 * blockframe.c (get_pc_function_start): Update.
8750 (find_pc_partial_function_gnu_ifunc): Update.
8751 * breakpoint.c (create_overlay_event_breakpoint): Update.
8752 (create_longjmp_master_breakpoint): Update.
8753 (create_std_terminate_master_breakpoint): Update.
8754 (create_exception_master_breakpoint): Update.
8755 (resolve_sal_pc): Update.
8756 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8757 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8758 Update.
8759 * c-valprint.c (c_val_print): Update.
8760 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8761 * coffread.c (coff_symfile_read): Update.
8762 * common/agent.c (agent_look_up_symbols): Update.
8763 * dbxread.c (find_stab_function_addr): Update.
8764 (end_psymtab): Update.
8765 * dwarf2loc.c (call_site_to_target_addr): Update.
8766 (func_verify_no_selftailcall): Update.
8767 (tailcall_dump): Update.
8768 (call_site_find_chain_1): Update.
8769 (dwarf_expr_reg_to_entry_parameter): Update.
8770 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8771 (elf_gnu_ifunc_resolve_by_got): Update.
8772 * f-valprint.c (info_common_command): Update.
8773 * findvar.c (read_var_value): Update.
8774 * frame.c (get_prev_frame_1): Update.
8775 (inside_main_func): Update.
8776 * frv-tdep.c (frv_skip_main_prologue): Update.
8777 (frv_frame_this_id): Update.
8778 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8779 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8780 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8781 (gnuv3_skip_trampoline): Update.
8782 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8783 (hppa64_hpux_in_solib_call_trampoline): Update.
8784 (hppa_hpux_skip_trampoline_code): Update.
8785 (hppa64_hpux_search_dummy_call_sequence): Update.
8786 (hppa_hpux_find_import_stub_for_addr): Update.
8787 (hppa_hpux_find_dummy_bpaddr): Update.
8788 * hppa-tdep.c (hppa_symbol_address)
8789 (hppa_lookup_stub_minimal_symbol): Update.
8790 * i386-tdep.c (i386_skip_main_prologue): Update.
8791 (i386_pe_skip_trampoline_code): Update.
8792 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8793 * infcall.c (get_function_name): Update.
8794 * infcmd.c (until_next_command): Update.
8795 * jit.c (jit_breakpoint_re_set_internal): Update.
8796 (jit_inferior_init): Update.
8797 * linespec.c (minsym_found): Update.
8798 (add_minsym): Update.
8799 * linux-fork.c (info_checkpoints_command): Update.
8800 * linux-nat.c (get_signo): Update.
8801 * linux-thread-db.c (inferior_has_bug): Update.
8802 * m32c-tdep.c (m32c_return_value): Update.
8803 (m32c_m16c_address_to_pointer): Update.
8804 (m32c_m16c_pointer_to_address): Update.
8805 * m32r-tdep.c (m32r_frame_this_id): Update.
8806 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8807 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8808 * maint.c (maintenance_translate_address): Update.
8809 * minsyms.c (add_minsym_to_hash_table): Update.
8810 (add_minsym_to_demangled_hash_table): Update.
8811 (msymbol_objfile): Update.
8812 (lookup_minimal_symbol): Update.
8813 (iterate_over_minimal_symbols): Update.
8814 (lookup_minimal_symbol_text): Update.
8815 (lookup_minimal_symbol_by_pc_name): Update.
8816 (lookup_minimal_symbol_solib_trampoline): Update.
8817 (lookup_minimal_symbol_by_pc_section_1): Update.
8818 (lookup_minimal_symbol_and_objfile): Update.
8819 (prim_record_minimal_symbol_full): Update.
8820 (compare_minimal_symbols): Update.
8821 (compact_minimal_symbols): Update.
8822 (build_minimal_symbol_hash_tables): Update.
8823 (install_minimal_symbols): Update.
8824 (terminate_minimal_symbol_table): Update.
8825 (find_solib_trampoline_target): Update.
8826 (minimal_symbol_upper_bound): Update.
8827 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8828 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8829 (mips_skip_pic_trampoline_code): Update.
8830 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8831 * objc-lang.c (selectors_info): Update.
8832 (classes_info): Update.
8833 (find_methods): Update.
8834 (find_imps): Update.
8835 (find_objc_msgsend): Update.
8836 * objfiles.c (objfile_relocate1): Update.
8837 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8838 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8839 * p-valprint.c (pascal_val_print): Update.
8840 * parse.c (write_exp_msymbol): Update.
8841 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8842 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8843 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8844 * printcmd.c (build_address_symbolic): Update.
8845 (sym_info): Update.
8846 (address_info): Update.
8847 * proc-service.c (ps_pglobal_lookup): Update.
8848 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8849 (find_pc_sect_psymtab): Update.
8850 * python/py-framefilter.c (py_print_frame): Update.
8851 * ravenscar-thread.c (get_running_thread_id): Update.
8852 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8853 Update.
8854 * remote.c (remote_check_symbols): Update.
8855 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8856 (rs6000_skip_trampoline_code): Update.
8857 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8858 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8859 * solib-dsbt.c (lm_base): Update.
8860 * solib-frv.c (lm_base): Update.
8861 (main_got): Update.
8862 * solib-irix.c (locate_base): Update.
8863 * solib-som.c (som_solib_create_inferior_hook): Update.
8864 (som_solib_desire_dynamic_linker_symbols): Update.
8865 (link_map_start): Update.
8866 * solib-spu.c (spu_enable_break): Update.
8867 (ocl_enable_break): Update.
8868 * solib-svr4.c (elf_locate_base): Update.
8869 (enable_break): Update.
8870 * spu-tdep.c (spu_get_overlay_table): Update.
8871 (spu_catch_start): Update.
8872 (flush_ea_cache): Update.
8873 * stabsread.c (define_symbol): Update.
8874 (scan_file_globals): Update.
8875 * stack.c (find_frame_funname): Update.
8876 (frame_info): Update.
8877 * symfile.c (simple_read_overlay_table): Update.
8878 (simple_overlay_update): Update.
8879 * symmisc.c (dump_msymbols): Update.
8880 * symtab.c (fixup_section): Update.
8881 (find_pc_sect_line): Update.
8882 (skip_prologue_sal): Update.
8883 (search_symbols): Update.
8884 (print_msymbol_info): Update.
8885 (rbreak_command): Update.
8886 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8887 (completion_list_objc_symbol): Update.
8888 (default_make_symbol_completion_list_break_on): Update.
8889 * tracepoint.c (scope_info): Update.
8890 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8891 (tui_get_begin_asm_address): Update.
8892 * valops.c (find_function_in_inferior): Update.
8893 * value.c (value_static_field): Update.
8894 (value_fn_field): Update.
8895
50e65b17
TT
88962014-02-26 Tom Tromey <tromey@redhat.com>
8897
8898 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8899 bound minimal symbols. Move code that knows about minsym
8900 table layout...
8901 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8902 function.
8903 * minsyms.h (minimal_symbol_upper_bound): Declare.
8904 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8905 minimal_symbol_upper_bound.
8906
1b588015
JB
89072014-02-27 Joel Brobecker <brobecker@adacore.com>
8908
8909 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8910 Use the type's name if its basic type does not have a tag.
8911
dbb9c2b1
JB
89122014-02-27 Joel Brobecker <brobecker@adacore.com>
8913
8914 * dwarf2read.c (read_subrange_type): Add comment.
8915
55426c9d
JB
89162014-02-27 Joel Brobecker <brobecker@adacore.com>
8917
8918 * dwarf2read.c (update_enumeration_type_from_children): New
8919 function, mostly extracted from process_structure_scope.
8920 (read_enumeration_type): Call update_enumeration_type_from_children.
8921 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8922 and flag_flag_enum fields.
8923
f2fce0ca
PA
89242014-02-26 Pedro Alves <palves@redhat.com>
8925
8926 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8927 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8928 to_xfer_partial method.
8929
7a44e40e
PA
89302014-02-26 Pedro Alves <palves@redhat.com>
8931
8932 * target.c (complete_target_initialization): Don't install
8933 default_xfer_partial as to_xfer_partial hook.
8934 (nomemory): Delete.
8935 (update_current_target): Don't INHERIT nor de_fault
8936 deprecated_xfer_memory. Delete de_fault macro.
8937 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8938 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8939 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8940 field.
8941
bd265cd0
PA
89422014-02-26 Pedro Alves <palves@redhat.com>
8943
8944 * go32-nat.c (my_write_child): New function.
8945 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8946 (go32_xfer_partial): New function.
8947 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8948 Instead install a to_xfer_partial hook.
8949
9d46c4e5
PA
89502014-02-26 Pedro Alves <palves@redhat.com>
8951
8952 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8953 to_xfer_partial helper. Rewrite.
8954 (procfs_xfer_partial): New function.
8955 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8956 Install a to_xfer_partial hook.
8957
a1583b1f
PA
89582014-02-26 Pedro Alves <palves@redhat.com>
8959
8960 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8961 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8962 (m32r_xfer_partial): New function.
8963 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8964 Install a to_xfer_partial hook.
8965
6df1b29f
PA
89662014-02-26 Pedro Alves <palves@redhat.com>
8967
8968 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8969 helper.
8970 (mips_xfer_partial): New function.
8971 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8972 hook. Install a to_xfer_partial hook.
8973
dc53a7ad
JB
89742014-02-26 Joel Brobecker <brobecker@adacore.com>
8975
8976 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8977 * gdbtypes.c (create_array_type_with_stride): New function,
8978 renaming create_array_type, but with an added parameter
8979 called "bit_stride".
8980 (create_array_type): Re-implement using
8981 create_array_type_with_stride.
8982 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8983 and DW_AT_bit_stride attributes.
8984
12ab52e9
PA
89852014-02-26 Pedro Alves <palves@redhat.com>
8986
8987 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8988 task-specific breakpoints.
8989
d16461ae
PA
89902014-02-25 Pedro Alves <palves@redhat.com>
8991
8992 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8993 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8994
a8b16220
SS
89952014-02-25 Stan Shebs <stan@codesourcery.com>
8996
8997 * defs.h: Annotate comments for Doxygen.
8998
b9e795ee
TT
89992014-02-25 Tom Tromey <tromey@redhat.com>
9000
9001 * target.h (target_ignore): Don't declare.
9002 * target.c (target_ignore): Remove.
9003
849c862e
JK
90042014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9005
9006 PR gdb/16626
9007 * auto-load.c (auto_load_objfile_script_1): Change filename to
9008 debugfile.
9009
475109d8
JB
90102014-02-25 Joel Brobecker <brobecker@adacore.com>
9011
9012 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9013 documentation. Adjust prototype to match the target_ops
9014 to_xfer_partial method. Adjust implementation accordingly.
9015
e186c3bd
HZ
90162014-02-25 Hui Zhu <hui@codesourcery.com>
9017
9018 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9019 to_traceframe_info.
9020
6d451942
KB
90212014-02-25 Kevin Buettner <kevinb@redhat.com>
9022
041ab8b4 9023 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9024 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9025 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9026 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9027 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9028 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9029 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9030 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9031 New constants.
9032 (rl78_register_type): Use a data pointer type for SP and
9033 new pseudo registers mentioned above. Use a 16 bit integer
9034 type for all other register pairs.
9035 (rl78_register_name, rl78_g10_register_name): Update for
9036 new pseudo registers.
9037 (rl78_pseudo_register_read): Likewise.
9038 (rl78_pseudo_register_write): Likewise.
9039 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9040 to the newly added pseudo registers.
9041
eddf0bae
DE
90422014-02-24 Doug Evans <dje@google.com>
9043
9044 * value.c (record_latest_value): Fix comment.
9045 * printcmd.c (print_command_1): Remove code to handle -1 return from
9046 record_latest_value.
9047
e96027e0
PA
90482014-02-24 Pedro Alves <palves@redhat.com>
9049
9050 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9051 deprecated_xfer_memory hook.
9052 (procfs_xfer_partial): Call procfs_xfer_memory instead
9053 of the deprecated_xfer_memory target hook.
9054 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9055 helper.
9056
0837c976
YZ
90572014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9058
9059 * windows-nat.c (windows_xfer_shared_libraries): Return
9060 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9061 requested object is TARGET_OBJECT_LIBRARIES.
9062
bc113b4e
YQ
90632014-02-24 Yao Qi <yao@codesourcery.com>
9064
9065 * target.h (enum target_xfer_status)
9066 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9067 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9068 explicitly. New.
9069 * corefile.c (memory_error_message): User updated.
9070 * exec.c (section_table_read_available_memory): Likewise.
9071 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9072 * target.c (target_xfer_status_to_string): Likewise.
9073 (raw_memory_xfer_partial): Likewise.
9074 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9075 * valops.c (read_value_memory): Likewise.
9076 * exec.h: Update comments.
9077
01cb8804
YQ
90782014-02-24 Yao Qi <yao@codesourcery.com>
9079
9080 * target.c (target_xfer_status_to_string): Rename argument err
9081 to status.
9082 * target.h (target_xfer_status_to_string): Update declaration.
9083 Replace target_xfer_error_to_string with
9084 target_xfer_status_to_string in comment.
9085
93063aa6
YQ
90862014-02-24 Yao Qi <yao@codesourcery.com>
9087
9088 * mips-linux-nat.c (super_close): Update its type.
9089 (mips_linux_close): Pass 'self' to super_close.
9090
5c328c05
YQ
90912014-02-24 Yao Qi <yao@codesourcery.com>
9092
9093 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9094 * corefile.c (read_memory): Adjusted.
9095 * target.c (target_write_with_progress): Adjusted.
9096
f73023dd
YQ
90972014-02-23 Yao Qi <yao@codesourcery.com>
9098
9099 Revert two patches:
9100
9101 2013-10-25 Yao Qi <yao@codesourcery.com>
9102
9103 * remote.c (remote_traceframe_info): Return early if
9104 traceframe is not selected.
9105
9106 2013-07-19 Yao Qi <yao@codesourcery.com>
9107
9108 * target.c (update_current_target): Change the default action
9109 of 'to_traceframe_info' from tcomplain to return_zero.
9110 * target.h (struct target_ops) <to_traceframe_info>: Add more
9111 comments.
9112
5a2eb0ef
YQ
91132014-02-23 Yao Qi <yao@codesourcery.com>
9114
9115 * valops.c (read_value_memory): Rewrite it. Call
9116 target_xfer_partial in a loop.
9117 * exec.h (section_table_available_memory): Remove declaration.
9118 Move comments to ...
9119 * exec.c (section_table_available_memory): ... here. Make it
9120 static.
9121
1ee79381
YQ
91222014-02-23 Yao Qi <yao@codesourcery.com>
9123
9124 * exec.c (section_table_read_available_memory): New function.
9125 * exec.h (section_table_read_available_memory): Declare.
9126 * ctf.c (ctf_xfer_partial): Call
9127 section_table_read_available_memory.
9128 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9129
1ca49d37
YQ
91302014-02-23 Yao Qi <yao@codesourcery.com>
9131
9132 * ctf.c (ctf_xfer_partial): Move code to ...
9133 * exec.c (exec_read_partial_read_only): ... it. New function.
9134 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9135 * tracefile.c: Include "exec.h".
9136 * exec.h (exec_read_partial_read_only): Declare.
9137
a283690e
YQ
91382014-02-23 Yao Qi <yao@codesourcery.com>
9139
9140 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9141 (tfile_has_memory): Remove.
9142 (init_tfile_ops): Don't set fields to_has_all_memory and
9143 to_has_memory of tfile_ops.
9144 * tracefile.c (tracefile_has_all_memory): New function.
9145 (tracefile_has_memory): New function.
9146 (init_tracefile_ops): Initialize fields to_has_all_memory and
9147 to_has_memory of 'ops'.
9148
12e03cd0
YQ
91492014-02-23 Yao Qi <yao@codesourcery.com>
9150
9151 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9152 (ctf_thread_alive, ctf_get_trace_status): Remove.
9153 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9154 init_tracefile_ops.
9155 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9156 (tfile_has_stack, tfile_has_registers): Remove.
9157 (tfile_thread_alive): Remove.
9158 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9159 init_tracefile_ops.
9160 * tracefile.c (tracefile_has_stack): New function.
9161 (tracefile_has_registers): New function.
9162 (tracefile_thread_alive): New function.
9163 (tracefile_get_trace_status): New function.
9164 (init_tracefile_ops): New function.
9165 * tracefile.h (init_tracefile_ops): Declare.
9166
11395323
YQ
91672014-02-23 Yao Qi <yao@codesourcery.com>
9168
9169 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9170 (O_LARGEFILE): Likewise.
9171 (tfile_ops): Likewise.
9172 (TRACE_HEADER_SIZE): Likewise.
9173 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9174 (cur_data_size): Likewise.
9175 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9176 (tfile_close, tfile_files_info): Likewise.
9177 (tfile_get_trace_status): Likewise.
9178 (tfile_get_tracepoint_status): Likewise.
9179 (tfile_get_traceframe_address): Likewise.
9180 (tfile_trace_find, match_blocktype): Likewise.
9181 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9182 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9183 (tfile_get_trace_state_variable_value): Likewise.
9184 (tfile_has_all_memory, tfile_has_memory): Likewise.
9185 (tfile_has_stack, tfile_has_registers): Likewise.
9186 (tfile_thread_alive, build_traceframe_info): Likewise.
9187 (tfile_traceframe_info, init_tfile_ops): Likewise.
9188 (_initialize_tracepoint): Don't call init_tfile_ops
9189 and add_target_with_completer.
9190 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9191 exec.h, completer.h and filenames.h.
9192 (_initialize_tracefile_tfile): New function.
9193
7951c4eb
YQ
91942014-02-23 Yao Qi <yao@codesourcery.com>
9195
9196 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9197 tracefile-tfile.o.
9198 (HFILES_NO_SRCDIR): Add tracefile.h.
9199 * ctf.c: Include "tracefile.h".
9200 * tracefile.h: New file.
9201 * tracefile.c: New file
9202 * tracefile-tfile.c: New file.
9203 * tracepoint.c: Include "tracefile.h".
9204 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9205 (stop_reason_names): Add const.
9206 (trace_file_writer_xfree): Move it to tracefile.c.
9207 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9208 (trace_save_ctf): Likewise.
9209 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9210 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9211 (tfile_write_header, tfile_write_regblock_type): Likewise.
9212 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9213 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9214 (tfile_write_raw_data, tfile_end): Likewise.
9215 (tfile_trace_file_writer_new): Likewise.
9216 (free_uploaded_tp): Make it extern.
9217 (free_uploaded_tsv): Make it extern.
9218 (_initialize_tracepoint): Move code to register command 'tsave'
9219 to tracefile.c.
9220 * tracepoint.h (stop_reason_names): Declare.
9221 (struct trace_frame_write_ops): Move it to tracefile.h.
9222 (struct trace_file_write_ops): Likewise.
9223 (struct trace_file_writer): Likewise.
9224 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9225
184cd072
JK
92262014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9227
9228 PR gdb/16594
9229 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9230 process name.
9231 (get_cores_used_by_process): New parameter num_cores, use it.
9232 (linux_xfer_osdata_processes): Pass num_cores to it.
9233 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9234 process name.
9235
c63528fc
AK
92362014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9237
9238 * target.c (memory_xfer_partial): Fix length arg in call to
9239 breakpoint_xfer_memory.
9240
d7b30f67
SDJ
92412014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9242
9243 PR tdep/16397
9244 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9245 number comes after the + or - signs. Adjust length of register
9246 name to be extracted.
9247
8838afaf
TT
92482014-02-20 Tom Tromey <tromey@redhat.com>
9249
9250 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9251 (ada_varobj_ops): Mark "extern".
9252
05227d14
TT
92532014-02-20 Tom Tromey <tromey@redhat.com>
9254
9255 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9256
1254eefc
DE
92572014-02-20 Doug Evans <xdje42@gmail.com>
9258
9259 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9260 All callers updated.
9261 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9262 All callers updated.
9263 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9264 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9265
adde2bff
DE
92662014-02-20 lin zuojian <manjian2006@gmail.com>
9267 Joel Brobecker <brobecker@adacore.com>
9268 Doug Evans <xdje42@gmail.com>
9269
9270 PR symtab/16581
9271 * dwarf2read.c (struct die_info): New member in_process.
9272 (reset_die_in_process): New function.
9273 (process_die): Set it at the start, reset when returning.
9274 (inherit_abstract_dies): Only call process_die if origin_child_die
9275 not already being processed.
9276
3be75f87
JB
92772014-02-20 Joel Brobecker <brobecker@adacore.com>
9278
9279 * windows-nat.c (handle_unload_dll): Add function documentation.
9280 (do_initial_windows_stuff): Add comment explaining why we wait
9281 until after inferior initialization has finished before
9282 processing all DLLs.
9283
47f7ffdb
JB
92842014-02-20 Joel Brobecker <brobecker@adacore.com>
9285
9286 * windows-nat.c (get_module_name): Delete.
9287 (windows_get_exec_module_filename): New function, mostly
9288 inspired from get_module_name.
9289 (windows_pid_to_exec_file): Replace call to get_module_name
9290 by call to windows_get_exec_module_filename.
9291
1cd9feab
JB
92922014-02-20 Joel Brobecker <brobecker@adacore.com>
9293
9294 * windows-nat.c (handle_load_dll): Rewrite this function's
9295 introductory comment. Remove code using get_module_name
9296 to get the DLL's name.
9297
ea39ad35
JB
92982014-02-20 Joel Brobecker <brobecker@adacore.com>
9299
9300 * windows-nat.c (get_windows_debug_event): Ignore
9301 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9302 if windows_initialization_done == 0.
9303 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9304 Adjust implementation to always load all DLLs.
9305 (do_initial_windows_stuff): Replace call to
9306 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9307
95060284
JB
93082014-02-20 Joel Brobecker <brobecker@adacore.com>
9309
9310 * windows-nat.c (_initialize_windows_nat): Deprecate the
9311 "dll-symbols" command. Turn the "add-shared-symbol-files"
9312 and "assf" aliases into commands, and deprecate them as well.
9313 * NEWS: Add entry explaining that "dll-symbols" and its two
9314 aliases are now deprecated.
9315
8d4fdb12
JB
93162014-02-20 Joel Brobecker <brobecker@adacore.com>
9317
9318 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9319 new-line in debug string. Remove trailing spaces.
9320
1b281443
SS
93212014-02-19 Stan Shebs <stan@codesourcery.com>
9322
9323 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9324
f7bd0f78
SC
93252014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9326
9327 * NEWS: Add entry for the new feature
9328 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9329 and class values.
9330
399ebc3d
SS
93312014-02-19 Stan Shebs <stan@codesourcery.com>
9332
9333 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9334
c658158d
PA
93352014-02-19 Pedro Alves <palves@redhat.com>
9336
9337 * common/ptid.h (struct ptid): Mention that process_stratum
9338 targets should prefer ptid.lwp.
9339
ba348170
PA
93402014-02-19 Pedro Alves <palves@redhat.com>
9341
9342 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9343 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9344 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9345 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9346 store remote thread ids rather than ptid.tid.
9347 (_initialize_remote): Adjust.
9348
ac01945b
TT
93492014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * target.c (target_get_unwinder): Rewrite.
9352 (target_get_tailcall_unwinder): Rewrite.
9353 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9354 (record_btrace_to_get_tailcall_unwinder): New function.
9355 (init_record_btrace_ops): Update.
9356 * target.h (struct target_ops) <to_get_unwinder,
9357 to_get_tailcall_unwinder>: Now function pointers. Use
9358 TARGET_DEFAULT_RETURN.
9359
8476dc92
TT
93602014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9363 argument.
9364 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9365
c0eca49f
TT
93662014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9369 directly.
9370 * target-delegates.c: Rebuild.
9371 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9372 TARGET_DEFAULT_FUNC.
9373 * target.c (default_target_decr_pc_after_break): Rename from
9374 forward_target_decr_pc_after_break. Simplify.
9375 (target_decr_pc_after_break): Rely on delegation.
9376
596b6b39
TT
93772014-02-19 Tom Tromey <tromey@redhat.com>
9378
9379 * target.c (update_current_target): Do not INHERIT to_doc or
9380 to_magic. Do not de_fault to_open or to_close.
9381
b427c1bc
TT
93822014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * gcore.h (objfile_find_memory_regions): Declare.
9385 * gcore.c (objfile_find_memory_regions): No longer static. Add
9386 "self" argument.
9387 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9388 * exec.c: Include gcore.h.
9389 (exec_set_find_memory_regions): Remove.
9390 (exec_find_memory_regions): Remove.
9391 (exec_do_find_memory_regions): Remove.
9392 (init_exec_ops): Update.
9393 * defs.h (exec_set_find_memory_regions): Remove.
9394
9b144037
TT
93952014-02-19 Tom Tromey <tromey@redhat.com>
9396
9397 * target-delegates.c: Rebuild.
9398 * target.h (struct target_ops) <to_extra_thread_info,
9399 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9400 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9401 not 0, in TARGET_DEFAULT_RETURN.
9402
555bbdeb
TT
94032014-02-19 Tom Tromey <tromey@redhat.com>
9404
9405 * target.c (complete_target_initialization): Remove casts. Use
9406 return_zero_has_execution.
9407 (return_zero): Add "ignore" argument.
9408 (return_zero_has_execution): New function.
9409 (init_dummy_target): Remove casts. Use
9410 return_zero_has_execution.
9411
be4ddd36
TT
94122014-02-19 Tom Tromey <tromey@redhat.com>
9413
9414 * target.c (update_current_target): Update comments. Do not
9415 INHERIT to_stratum.
9416
2117c711
TT
94172014-02-19 Tom Tromey <tromey@redhat.com>
9418
9419 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9420 needed.
9421 * corelow.c (core_read_description): Delegate when needed.
9422 * remote.c (remote_read_description): Delegate when needed.
9423 * target-delegates.c: Rebuild.
9424 * target.c (target_read_description): Rewrite.
9425 * target.h (struct target_ops) <to_read_description>: Update
9426 comment. Use TARGET_DEFAULT_RETURN.
9427
e88ef65c
TT
94282014-02-19 Tom Tromey <tromey@redhat.com>
9429
9430 * target-delegates.c: Rebuild.
9431 * target.c (update_current_target): Don't inherit or default
9432 to_can_run.
9433 (find_default_run_target): Check against delegate_can_run.
9434 * target.h (struct target_ops) <to_can_run>: Use
9435 TARGET_DEFAULT_RETURN.
9436
86a0854a
TT
94372014-02-19 Tom Tromey <tromey@redhat.com>
9438
9439 * target-delegates.c: Rebuild.
9440 * target.c (target_disconnect): Unconditionally delegate.
9441 * target.h (struct target_ops) <to_disconnect>: Use
9442 TARGET_DEFAULT_NORETURN.
9443
ee97f592
TT
94442014-02-19 Tom Tromey <tromey@redhat.com>
9445
9446 * record.c (record_stop): Unconditionally delegate.
9447 * target-delegates.c: Rebuild.
9448 * target.c (target_stop_recording): Unconditionally delegate.
9449 * target.h (struct target_ops) <to_stop_recording>: Use
9450 TARGET_DEFAULT_IGNORE.
9451
6dc7fcf4
TT
94522014-02-19 Tom Tromey <tromey@redhat.com>
9453
9454 * target-delegates.c: Rebuild.
9455 * target.c (target_enable_btrace): Unconditionally delegate.
9456 * target.h (struct target_ops) <to_enable_btrace>: Use
9457 TARGET_DEFAULT_NORETURN.
9458
eb5b20d4
TT
94592014-02-19 Tom Tromey <tromey@redhat.com>
9460
9461 * target-delegates.c: Rebuild.
9462 * target.c (target_read_btrace): Unconditionally delegate.
9463 * target.h (struct target_ops) <to_read_btrace>: Use
9464 TARGET_DEFAULT_NORETURN.
9465
9ace480d
TT
94662014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * target-delegates.c: Rebuild.
9469 * target.c (target_teardown_btrace): Unconditionally delegate.
9470 * target.h (struct target_ops) <to_teardown_btrace>: Use
9471 TARGET_DEFAULT_NORETURN.
9472
8dc292d3
TT
94732014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 * target-delegates.c: Rebuild.
9476 * target.c (target_disable_btrace): Unconditionally delegate.
9477 * target.h (struct target_ops) <to_disable_btrace>: Use
9478 TARGET_DEFAULT_NORETURN.
9479
58a5184e
TT
94802014-02-19 Tom Tromey <tromey@redhat.com>
9481
9482 * target-delegates.c: Rebuild.
9483 * target.c (default_search_memory): New function.
9484 (simple_search_memory): Update comment.
9485 (target_search_memory): Unconditionally delegate.
9486 * target.h (struct target_ops) <to_search_memory>: Use
9487 TARGET_DEFAULT_FUNC.
9488
8de71aab
TT
94892014-02-19 Tom Tromey <tromey@redhat.com>
9490
9491 * auxv.c (default_auxv_parse): No longer static.
9492 (target_auxv_parse): Unconditionally delegate.
9493 * auxv.h (default_auxv_parse): Declare.
9494 * target-delegates.c: Rebuild.
9495 * target.c: Include auxv.h.
9496 * target.h (struct target_ops) <to_auxv_parse>: Use
9497 TARGET_DEFAULT_FUNC.
9498
6b2c5a57
TT
94992014-02-19 Tom Tromey <tromey@redhat.com>
9500
9501 * target-delegates.c: Rebuild.
9502 * target.c (target_memory_map): Unconditionally delegate.
9503 * target.h (struct target_ops) <to_memory_map>: Use
9504 TARGET_DEFAULT_RETURN.
9505
cbffc065
TT
95062014-02-19 Tom Tromey <tromey@redhat.com>
9507
9508 * target-delegates.c: Rebuild.
9509 * target.c (target_thread_alive): Unconditionally delegate.
9510 * target.h (struct target_ops) <to_thread_alive>: Use
9511 TARGET_DEFAULT_RETURN.
9512
f09e2107
TT
95132014-02-19 Tom Tromey <tromey@redhat.com>
9514
9515 * target-delegates.c: Rebuild.
9516 * target.c (target_save_record): Unconditionally delegate.
9517 * target.h (struct target_ops) <to_save_record>: Use
9518 TARGET_DEFAULT_NORETURN.
9519
07366925
TT
95202014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target-delegates.c: Rebuild.
9523 * target.c (target_delete_record): Unconditionally delegate.
9524 * target.h (struct target_ops) <to_delete_record>: Use
9525 TARGET_DEFAULT_NORETURN.
9526
dd2e9d25
TT
95272014-02-19 Tom Tromey <tromey@redhat.com>
9528
9529 * target-delegates.c: Rebuild.
9530 * target.c (target_record_is_replaying): Unconditionally
9531 delegate.
9532 * target.h (struct target_ops) <to_record_is_replaying>: Use
9533 TARGET_DEFAULT_RETURN.
9534
671e76cc
TT
95352014-02-19 Tom Tromey <tromey@redhat.com>
9536
9537 * target-delegates.c: Rebuild.
9538 * target.c (target_goto_record_begin): Unconditionally delegate.
9539 * target.h (struct target_ops) <to_goto_record_begin>: Use
9540 TARGET_DEFAULT_NORETURN.
9541
e9179bb3
TT
95422014-02-19 Tom Tromey <tromey@redhat.com>
9543
9544 * target-delegates.c: Rebuild.
9545 * target.c (target_goto_record_end): Unconditionally delegate.
9546 * target.h (struct target_ops) <to_goto_record_end>: Use
9547 TARGET_DEFAULT_NORETURN.
9548
05969c84
TT
95492014-02-19 Tom Tromey <tromey@redhat.com>
9550
9551 * target-delegates.c: Rebuild.
9552 * target.c (target_goto_record): Unconditionally delegate.
9553 * target.h (struct target_ops) <to_goto_record>: Use
9554 TARGET_DEFAULT_NORETURN.
9555
3679abfa
TT
95562014-02-19 Tom Tromey <tromey@redhat.com>
9557
9558 * target-delegates.c: Rebuild.
9559 * target.c (target_insn_history): Unconditionally delegate.
9560 * target.h (struct target_ops) <to_insn_history>: Use
9561 TARGET_DEFAULT_NORETURN.
9562
8444ab58
TT
95632014-02-19 Tom Tromey <tromey@redhat.com>
9564
9565 * target-delegates.c: Rebuild.
9566 * target.c (target_insn_history_from): Unconditionally delegate.
9567 * target.h (struct target_ops) <to_insn_history_from>: Use
9568 TARGET_DEFAULT_NORETURN.
9569
c29302cc
TT
95702014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target-delegates.c: Rebuild.
9573 * target.c (target_insn_history_range): Unconditionally delegate.
9574 * target.h (struct target_ops) <to_insn_history_range>: Use
9575 TARGET_DEFAULT_NORETURN.
9576
170049d4
TT
95772014-02-19 Tom Tromey <tromey@redhat.com>
9578
9579 * target-delegates.c: Rebuild.
9580 * target.c (target_call_history): Unconditionally delegate.
9581 * target.h (struct target_ops) <to_call_history>: Use
9582 TARGET_DEFAULT_NORETURN.
9583
16fc27d6
TT
95842014-02-19 Tom Tromey <tromey@redhat.com>
9585
9586 * target-delegates.c: Rebuild.
9587 * target.c (target_call_history_from): Unconditionally delegate.
9588 * target.h (struct target_ops) <to_call_history_from>: Use
9589 TARGET_DEFAULT_NORETURN.
9590
115d9817
TT
95912014-02-19 Tom Tromey <tromey@redhat.com>
9592
9593 * target-delegates.c: Rebuild.
9594 * target.c (target_call_history_range): Unconditionally delegate.
9595 * target.h (struct target_ops) <to_call_history_range>: Use
9596 TARGET_DEFAULT_NORETURN.
9597
eb276a6b
TT
95982014-02-19 Tom Tromey <tromey@redhat.com>
9599
9600 * target-delegates.c: Rebuild.
9601 * target.c (target_verify_memory): Unconditionally delegate.
9602 * target.h (struct target_ops) <to_verify_memory>: Use
9603 TARGET_DEFAULT_NORETURN.
9604
9e538d0d
TT
96052014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * target-delegates.c: Rebuild.
9608 * target.c (target_core_of_thread): Unconditionally delegate.
9609 * target.h (struct target_ops) <to_core_of_thread>: Use
9610 TARGET_DEFAULT_RETURN.
9611
f6fb2925
TT
96122014-02-19 Tom Tromey <tromey@redhat.com>
9613
9614 * target-delegates.c: Rebuild.
9615 * target.c (target_flash_done): Unconditionally delegate.
9616 * target.h (struct target_ops) <to_flash_done>: Use
9617 TARGET_DEFAULT_NORETURN.
9618
e8a6c6ac
TT
96192014-02-19 Tom Tromey <tromey@redhat.com>
9620
9621 * target-delegates.c: Rebuild.
9622 * target.c (target_flash_erase): Unconditionally delegate.
9623 * target.h (struct target_ops) <to_flash_erase>: Use
9624 TARGET_DEFAULT_NORETURN.
9625
7e35c012
TT
96262014-02-19 Tom Tromey <tromey@redhat.com>
9627
9628 * target-delegates.c: Rebuild.
9629 * target.c (target_get_section_table): Unconditionally delegate.
9630 * target.h (struct target_ops) <to_get_section_table>: Use
9631 TARGET_DEFAULT_RETURN.
9632
770234d3
TT
96332014-02-19 Tom Tromey <tromey@redhat.com>
9634
9635 * target-delegates.c: Rebuild.
9636 * target.c (target_pid_to_str): Unconditionally delegate.
9637 (init_dummy_target): Don't initialize to_pid_to_str.
9638 (default_pid_to_str): Rename from dummy_pid_to_str.
9639 * target.h (struct target_ops) <to_pid_to_str>: Use
9640 TARGET_DEFAULT_FUNC.
9641
09b0dc2b
TT
96422014-02-19 Tom Tromey <tromey@redhat.com>
9643
9644 * target-delegates.c: Rebuild.
9645 * target.c (target_find_new_threads): Unconditionally delegate.
9646 * target.h (struct target_ops) <to_find_new_threads>: Use
9647 TARGET_DEFAULT_RETURN.
9648
7d4f8efa
TT
96492014-02-19 Tom Tromey <tromey@redhat.com>
9650
9651 * target-delegates.c: Rebuild.
9652 * target.c (target_program_signals): Unconditionally delegate.
9653 * target.h (struct target_ops) <to_program_signals>: Use
9654 TARGET_DEFAULT_IGNORE.
9655
035cad7f
TT
96562014-02-19 Tom Tromey <tromey@redhat.com>
9657
9658 * target-delegates.c: Rebuild.
9659 * target.c (target_pass_signals): Unconditionally delegate.
9660 * target.h (struct target_ops) <to_pass_signals>: Use
9661 TARGET_DEFAULT_IGNORE.
9662
8d657035
TT
96632014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target-delegates.c: Rebuild.
9666 * target.c (default_mourn_inferior): New function.
9667 (target_mourn_inferior): Unconditionally delegate.
9668 * target.h (struct target_ops) <to_mourn_inferior>: Use
9669 TARGET_DEFAULT_FUNC.
9670
098dba18
TT
96712014-02-19 Tom Tromey <tromey@redhat.com>
9672
9673 * target-delegates.c: Rebuild.
9674 * target.c (default_follow_fork): New function.
9675 (target_follow_fork): Unconditionally delegate.
9676 * target.h (struct target_ops) <to_follow_fork>: Use
9677 TARGET_DEFAULT_FUNC.
9678
423a4807
TT
96792014-02-19 Tom Tromey <tromey@redhat.com>
9680
9681 * target-delegates.c: Rebuild.
9682 * target.c (target_kill): Unconditionally delegate.
9683 * target.h (struct target_ops) <to_kill>: Use
9684 TARGET_DEFAULT_NORETURN.
9685
6c7e5e5c
TT
96862014-02-19 Tom Tromey <tromey@redhat.com>
9687
9688 * target-delegates.c: Rebuild.
9689 * target.c (target_masked_watch_num_registers): Unconditionally
9690 delegate.
9691 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9692 Use TARGET_DEFAULT_RETURN.
9693
8b1c364c
TT
96942014-02-19 Tom Tromey <tromey@redhat.com>
9695
9696 * target-delegates.c: Rebuild.
9697 * target.c (target_remove_mask_watchpoint): Unconditionally
9698 delegate.
9699 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9700 TARGET_DEFAULT_RETURN.
9701
cd4ae029
TT
97022014-02-19 Tom Tromey <tromey@redhat.com>
9703
9704 * target-delegates.c: Rebuild.
9705 * target.c (target_insert_mask_watchpoint): Unconditionally
9706 delegate.
9707 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9708 TARGET_DEFAULT_RETURN.
9709
a134316b
TT
97102014-02-19 Tom Tromey <tromey@redhat.com>
9711
9712 * target-delegates.c: Rebuild.
9713 * target.c (target_ranged_break_num_registers): Unconditionally
9714 delegate.
9715 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9716 Use TARGET_DEFAULT_RETURN.
9717
ad5989bd
TT
97182014-02-19 Tom Tromey <tromey@redhat.com>
9719
9720 * target-delegates.c: Rebuild.
9721 * target.c (target_fetch_registers): Unconditionally delegate.
9722 * target.h (struct target_ops) <to_fetch_registers>: Use
9723 TARGET_DEFAULT_NORETURN.
9724
46ee7e8d
TT
97252014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * target-delegates.c: Rebuild.
9728 * target.c (update_current_target): Don't inherit or default
9729 to_stop.
9730 * target.h (struct target_ops) <to_stop>: Use
9731 TARGET_DEFAULT_IGNORE.
9732
843f59ed
TT
97332014-02-19 Tom Tromey <tromey@redhat.com>
9734
9735 * target-delegates.c: Rebuild.
9736 * target.c (update_current_target): Don't inherit or default
9737 to_can_run_breakpoint_commands.
9738 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9739 Use TARGET_DEFAULT_RETURN.
9740
ccfde2a0
TT
97412014-02-19 Tom Tromey <tromey@redhat.com>
9742
9743 * target-delegates.c: Rebuild.
9744 * target.c (update_current_target): Don't inherit or default
9745 to_supports_evaluation_of_breakpoint_conditions.
9746 * target.h (struct target_ops)
9747 <to_supports_evaluation_of_breakpoint_conditions>: Use
9748 TARGET_DEFAULT_RETURN.
9749
0de91722
TT
97502014-02-19 Tom Tromey <tromey@redhat.com>
9751
9752 * target-delegates.c: Rebuild.
9753 * target.c (update_current_target): Don't inherit or default
9754 to_augmented_libraries_svr4_read.
9755 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9756 Use TARGET_DEFAULT_RETURN.
9757
9a7d8b48
TT
97582014-02-19 Tom Tromey <tromey@redhat.com>
9759
9760 * target-delegates.c: Rebuild.
9761 * target.c (update_current_target): Don't inherit or default
9762 to_can_use_agent.
9763 * target.h (struct target_ops) <to_can_use_agent>: Use
9764 TARGET_DEFAULT_RETURN.
9765
d9db5b21
TT
97662014-02-19 Tom Tromey <tromey@redhat.com>
9767
9768 * target-delegates.c: Rebuild.
9769 * target.c (update_current_target): Don't inherit or default
9770 to_use_agent.
9771 * target.h (struct target_ops) <to_use_agent>: Use
9772 TARGET_DEFAULT_NORETURN.
9773
92155eeb
TT
97742014-02-19 Tom Tromey <tromey@redhat.com>
9775
9776 * target-delegates.c: Rebuild.
9777 * target.c (update_current_target): Don't inherit or default
9778 to_traceframe_info.
9779 (return_null): Remove.
9780 * target.h (struct target_ops) <to_traceframe_info>: Use
9781 TARGET_DEFAULT_RETURN.
9782
d6522a22
TT
97832014-02-19 Tom Tromey <tromey@redhat.com>
9784
9785 * target-delegates.c: Rebuild.
9786 * target.c (update_current_target): Don't inherit or default
9787 to_static_tracepoint_markers_by_strid.
9788 * target.h (struct target_ops)
9789 <to_static_tracepoint_markers_by_strid>: Use
9790 TARGET_DEFAULT_NORETURN.
9791
4c3e4425
TT
97922014-02-19 Tom Tromey <tromey@redhat.com>
9793
9794 * target-delegates.c: Rebuild.
9795 * target.c (update_current_target): Don't inherit or default
9796 to_static_tracepoint_marker_at.
9797 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9798 Use TARGET_DEFAULT_RETURN.
9799
dcd6917f
TT
98002014-02-19 Tom Tromey <tromey@redhat.com>
9801
9802 * target-delegates.c: Rebuild.
9803 * target.c (update_current_target): Don't inherit or default
9804 to_set_permissions.
9805 * target.h (struct target_ops) <to_set_permissions>: Use
9806 TARGET_DEFAULT_IGNORE.
9807
22bcceee
TT
98082014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * target-delegates.c: Rebuild.
9811 * target.c (update_current_target): Don't inherit or default
9812 to_get_tib_address.
9813 * target.h (struct target_ops) <to_get_tib_address>: Use
9814 TARGET_DEFAULT_NORETURN.
9815
8586ccaa
TT
98162014-02-19 Tom Tromey <tromey@redhat.com>
9817
9818 * target-delegates.c: Rebuild.
9819 * target.c (update_current_target): Don't inherit or default
9820 to_set_trace_notes.
9821 * target.h (struct target_ops) <to_set_trace_notes>: Use
9822 TARGET_DEFAULT_RETURN.
9823
91df8d1d
TT
98242014-02-19 Tom Tromey <tromey@redhat.com>
9825
9826 * target-delegates.c: Rebuild.
9827 * target.c (update_current_target): Don't initialize
9828 to_set_trace_buffer_size.
9829 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9830 TARGET_DEFAULT_IGNORE.
9831
8d526939
TT
98322014-02-19 Tom Tromey <tromey@redhat.com>
9833
9834 * target-delegates.c: Rebuild.
9835 * target.c (update_current_target): Don't inherit or default
9836 to_set_circular_trace_buffer.
9837 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9838 TARGET_DEFAULT_IGNORE.
9839
0bcfeddf
TT
98402014-02-19 Tom Tromey <tromey@redhat.com>
9841
9842 * target-delegates.c: Rebuild.
9843 * target.c (update_current_target): Don't inherit or default
9844 to_set_disconnected_tracing.
9845 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9846 TARGET_DEFAULT_IGNORE.
9847
9249843f
TT
98482014-02-19 Tom Tromey <tromey@redhat.com>
9849
9850 * target-delegates.c: Rebuild.
9851 * target.c (update_current_target): Don't inherit or default
9852 to_get_min_fast_tracepoint_insn_len.
9853 (return_minus_one): Remove.
9854 * target.h (struct target_ops)
9855 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9856
ace92e7d
TT
98572014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * target-delegates.c: Rebuild.
9860 * target.c (update_current_target): Don't inherit or default
9861 to_get_raw_trace_data.
9862 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9863 TARGET_DEFAULT_NORETURN.
9864
08120467
TT
98652014-02-19 Tom Tromey <tromey@redhat.com>
9866
9867 * target-delegates.c: Rebuild.
9868 * target.c (update_current_target): Don't inherit or default
9869 to_upload_trace_state_variables.
9870 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9871 Use TARGET_DEFAULT_RETURN.
9872
1e949b00
TT
98732014-02-19 Tom Tromey <tromey@redhat.com>
9874
9875 * target-delegates.c: Rebuild.
9876 * target.c (update_current_target): Don't inherit or default
9877 to_upload_tracepoints.
9878 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9879 TARGET_DEFAULT_RETURN.
9880
a2e6c147
TT
98812014-02-19 Tom Tromey <tromey@redhat.com>
9882
9883 * target-delegates.c: Rebuild.
9884 * target.c (update_current_target): Don't inherit or default
9885 to_save_trace_data.
9886 * target.h (struct target_ops) <to_save_trace_data>: Use
9887 TARGET_DEFAULT_NORETURN.
9888
959bcd0b
TT
98892014-02-19 Tom Tromey <tromey@redhat.com>
9890
9891 * target-delegates.c: Rebuild.
9892 * target.c (update_current_target): Don't inherit or default
9893 to_get_trace_state_variable_value.
9894 * target.h (struct target_ops)
9895 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9896
afc94e66
TT
98972014-02-19 Tom Tromey <tromey@redhat.com>
9898
9899 * target-delegates.c: Rebuild.
9900 * target.c (update_current_target): Don't inherit or default
9901 to_trace_find.
9902 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9903
e51c07ea
TT
99042014-02-19 Tom Tromey <tromey@redhat.com>
9905
9906 * target-delegates.c: Rebuild.
9907 * target.c (update_current_target): Don't inherit or default
9908 to_trace_stop.
9909 * target.h (struct target_ops) <to_trace_stop>: Use
9910 TARGET_DEFAULT_NORETURN.
9911
6fea14cd
TT
99122014-02-19 Tom Tromey <tromey@redhat.com>
9913
9914 * target-delegates.c: Rebuild.
9915 * target.c (update_current_target): Don't inherit or default
9916 to_get_tracepoint_status.
9917 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9918 TARGET_DEFAULT_NORETURN.
9919
4072d4ff
TT
99202014-02-19 Tom Tromey <tromey@redhat.com>
9921
9922 * target-delegates.c: Rebuild.
9923 * target.c (update_current_target): Don't inherit or default
9924 to_get_trace_status.
9925 * target.h (struct target_ops) <to_get_trace_status>: Use
9926 TARGET_DEFAULT_RETURN.
9927
25da2e80
TT
99282014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target-delegates.c: Rebuild.
9931 * target.c (update_current_target): Don't inherit or default
9932 to_trace_start.
9933 * target.h (struct target_ops) <to_trace_start>: Use
9934 TARGET_DEFAULT_NORETURN.
9935
86dd181d
TT
99362014-02-19 Tom Tromey <tromey@redhat.com>
9937
9938 * target-delegates.c: Rebuild.
9939 * target.c (update_current_target): Don't inherit or default
9940 to_trace_set_readonly_regions.
9941 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9942 Use TARGET_DEFAULT_NORETURN.
9943
05c41993
TT
99442014-02-19 Tom Tromey <tromey@redhat.com>
9945
9946 * target-delegates.c: Rebuild.
9947 * target.c (update_current_target): Don't inherit or default
9948 to_disable_tracepoint.
9949 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9950 TARGET_DEFAULT_NORETURN.
9951
151f70f1
TT
99522014-02-19 Tom Tromey <tromey@redhat.com>
9953
9954 * target-delegates.c: Rebuild.
9955 * target.c (update_current_target): Don't inherit or default
9956 to_enable_tracepoint.
9957 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9958 TARGET_DEFAULT_NORETURN.
9959
94eb98b9
TT
99602014-02-19 Tom Tromey <tromey@redhat.com>
9961
9962 * target-delegates.c: Rebuild.
9963 * target.c (update_current_target): Don't inherit or default
9964 to_download_trace_state_variable.
9965 * target.h (struct target_ops) <to_download_trace_state_variable>:
9966 Use TARGET_DEFAULT_NORETURN.
9967
719acc4a
TT
99682014-02-19 Tom Tromey <tromey@redhat.com>
9969
9970 * target-delegates.c: Rebuild.
9971 * target.c (update_current_target): Don't inherit or default
9972 to_can_download_tracepoint.
9973 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9974 TARGET_DEFAULT_RETURN.
9975
9a980a22
TT
99762014-02-19 Tom Tromey <tromey@redhat.com>
9977
9978 * target-delegates.c: Rebuild.
9979 * target.c (update_current_target): Don't inherit or default
9980 to_download_tracepoint.
9981 * target.h (struct target_ops) <to_download_tracepoint>: Use
9982 TARGET_DEFAULT_NORETURN.
9983
5536135b
TT
99842014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target-delegates.c: Rebuild.
9987 * target.c (update_current_target): Don't inherit or default
9988 to_trace_init.
9989 * target.h (struct target_ops) <to_trace_init>: Use
9990 TARGET_DEFAULT_RETURN.
9991
9409d39e
TT
99922014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target-delegates.c: Rebuild.
9995 * target.c (update_current_target): Don't inherit or default
9996 to_supports_string_tracing.
9997 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9998 TARGET_DEFAULT_RETURN.
9999
aab1b22d
TT
100002014-02-19 Tom Tromey <tromey@redhat.com>
10001
10002 * target-delegates.c: Rebuild.
10003 * target.c (update_current_target): Don't inherit or default
10004 to_supports_enable_disable_tracepoint.
10005 * target.h (struct target_ops)
10006 <to_supports_enable_disable_tracepoint>: Use
10007 TARGET_DEFAULT_RETURN.
10008
a7304748
TT
100092014-02-19 Tom Tromey <tromey@redhat.com>
10010
10011 * target-delegates.c: Rebuild.
10012 * target.c (update_current_target): Don't inherit or default
10013 to_supports_multi_process.
10014 * target.h (struct target_ops) <to_supports_multi_process>: Use
10015 TARGET_DEFAULT_RETURN.
10016
4229b31d
TT
100172014-02-19 Tom Tromey <tromey@redhat.com>
10018
10019 * target-delegates.c: Rebuild.
10020 * target.c (update_current_target): Don't inherit or default
10021 to_get_ada_task_ptid.
10022 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10023 TARGET_DEFAULT_FUNC.
10024
43eba180
TT
100252014-02-19 Tom Tromey <tromey@redhat.com>
10026
10027 * target-delegates.c: Rebuild.
10028 * target.c (update_current_target): Don't inherit or default
10029 to_thread_architecture.
10030 * target.h (struct target_ops) <to_thread_architecture>: Use
10031 TARGET_DEFAULT_FUNC.
10032
fe31bf5b
TT
100332014-02-19 Tom Tromey <tromey@redhat.com>
10034
10035 * target-delegates.c: Rebuild.
10036 * target.c (update_current_target): Don't inherit or default
10037 to_execution_direction.
10038 * target.h (struct target_ops) <to_execution_direction>: Use
10039 TARGET_DEFAULT_FUNC.
10040
53e1cfc7
TT
100412014-02-19 Tom Tromey <tromey@redhat.com>
10042
10043 * target-delegates.c: Rebuild.
10044 * target.c (update_current_target): Don't inherit or default
10045 to_can_execute_reverse.
10046 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10047 TARGET_DEFAULT_RETURN.
10048 (target_can_execute_reverse): Unconditionally delegate.
10049
9bb9d61d
TT
100502014-02-19 Tom Tromey <tromey@redhat.com>
10051
10052 * target-delegates.c: Rebuild.
10053 * target.c (update_current_target): Don't inherit or default
10054 to_goto_bookmark.
10055 (dummy_goto_bookmark): Remove.
10056 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10057 * target.h (struct target_ops) <to_goto_bookmark>: Use
10058 TARGET_DEFAULT_NORETURN.
10059
3dbafbbb
TT
100602014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target-delegates.c: Rebuild.
10063 * target.c (update_current_target): Don't inherit or default
10064 to_get_bookmark.
10065 (dummy_get_bookmark): Remove.
10066 (init_dummy_target): Don't inherit or default to_get_bookmark.
10067 * target.h (struct target_ops) <to_get_bookmark>: Use
10068 TARGET_DEFAULT_NORETURN
10069
16f796b1
TT
100702014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target-delegates.c: Rebuild.
10073 * target.c (update_current_target): Don't inherit or default
10074 to_make_corefile_notes.
10075 (init_dummy_target): Don't initialize to_make_corefile_notes.
10076 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10077 TARGET_DEFAULT_FUNC.
10078
0b5a2719
TT
100792014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * target-delegates.c: Rebuild.
10082 * target.c (update_current_target): Don't inherit or default
10083 to_find_memory_regions.
10084 (init_dummy_target): Don't initialize to_find_memory_regions.
10085 * target.h (struct target_ops) <to_find_memory_regions>: Use
10086 TARGET_DEFAULT_FUNC.
10087
d9cb0195
TT
100882014-02-19 Tom Tromey <tromey@redhat.com>
10089
10090 * target-delegates.c: Rebuild.
10091 * target.c (update_current_target): Don't inherit or default
10092 to_log_command.
10093 * target.h (struct target_ops) <to_log_command>: Use
10094 TARGET_DEFAULT_IGNORE.
10095 (target_log_command): Unconditionally delegate.
10096
830ca330
TT
100972014-02-19 Tom Tromey <tromey@redhat.com>
10098
10099 * target-delegates.c: Rebuild.
10100 * target.c (update_current_target): Don't inherit or default
10101 to_pid_to_exec_file.
10102 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10103 TARGET_DEFAULT_RETURN.
10104
825828fc
TT
101052014-02-19 Tom Tromey <tromey@redhat.com>
10106
10107 * target-delegates.c: Rebuild.
10108 * target.c (update_current_target): Don't inherit or default
10109 to_thread_name.
10110 (target_thread_name): Unconditionally delegate.
10111 * target.h (struct target_ops) <to_thread_name>: Use
10112 TARGET_DEFAULT_RETURN.
10113
4a7e6dda
TT
101142014-02-19 Tom Tromey <tromey@redhat.com>
10115
10116 * target-delegates.c: Rebuild.
10117 * target.c (update_current_target): Don't inherit or default
10118 to_extra_thread_info.
10119 * target.h (struct target_ops) <to_extra_thread_info>: Use
10120 TARGET_DEFAULT_RETURN.
10121
0db88c1d
TT
101222014-02-19 Tom Tromey <tromey@redhat.com>
10123
10124 * target-delegates.c: Rebuild.
10125 * target.c (update_current_target): Don't inherit or default
10126 to_has_exited.
10127 * target.h (struct target_ops) <to_has_exited>: Use
10128 TARGET_DEFAULT_RETURN..
10129
6a9fa051
TT
101302014-02-19 Tom Tromey <tromey@redhat.com>
10131
10132 * target-delegates.c: Rebuild.
10133 * target.c (update_current_target): Don't inherit or default
10134 to_set_syscall_catchpoint.
10135 (return_one): Remove.
10136 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10137 TARGET_DEFAULT_RETURN.
10138
62f64d7a
TT
101392014-02-19 Tom Tromey <tromey@redhat.com>
10140
10141 * target-delegates.c: Rebuild.
10142 * target.c (update_current_target): Don't inherit or default
10143 to_insert_exec_catchpoint.
10144 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10145 TARGET_DEFAULT_RETURN.
10146
cda0f38c
TT
101472014-01-08 Tom Tromey <tromey@redhat.com>
10148
10149 * target-delegates.c: Rebuild.
10150 * target.c (update_current_target): Don't inherit or default
10151 to_insert_exec_catchpoint.
10152 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10153 TARGET_DEFAULT_RETURN.
10154
95c3375e
TT
101552014-02-19 Tom Tromey <tromey@redhat.com>
10156
10157 * target-delegates.c: Rebuild.
10158 * target.c (update_current_target): Don't inherit or default
10159 to_remove_vfork_catchpoint.
10160 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10161 TARGET_DEFAULT_RETURN.
10162
7e18a8dc
TT
101632014-02-19 Tom Tromey <tromey@redhat.com>
10164
10165 * target-delegates.c: Rebuild.
10166 * target.c (update_current_target): Don't inherit or default
10167 to_insert_vfork_catchpoint.
10168 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10169 TARGET_DEFAULT_RETURN.
10170
e1a21fb7
TT
101712014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target-delegates.c: Rebuild.
10174 * target.c (update_current_target): Don't inherit or default
10175 to_remove_fork_catchpoint.
10176 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10177 TARGET_DEFAULT_RETURN.
10178
5958ebeb
TT
101792014-02-19 Tom Tromey <tromey@redhat.com>
10180
10181 * target-delegates.c: Rebuild.
10182 * target.c (update_current_target): Don't inherit or default
10183 to_insert_fork_catchpoint.
10184 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10185 TARGET_DEFAULT_RETURN.
10186
340ba4bf
TT
101872014-02-19 Tom Tromey <tromey@redhat.com>
10188
10189 * target-delegates.c: Rebuild.
10190 * target.c (update_current_target): Don't inherit or default
10191 to_post_startup_inferior.
10192 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10193 TARGET_DEFAULT_IGNORE.
10194
7634da87
TT
101952014-02-19 Tom Tromey <tromey@redhat.com>
10196
10197 * target-delegates.c: Rebuild.
10198 * target.c (update_current_target): Don't inherit or default
10199 to_load.
10200 * target.h (struct target_ops) <to_load>: Use
10201 TARGET_DEFAULT_NORETURN.
10202
e19e919f
TT
102032014-02-19 Tom Tromey <tromey@redhat.com>
10204
10205 * target-delegates.c: Rebuild.
10206 * target.c (update_current_target): Don't inherit or default
10207 to_terminal_info.
10208 * target.h (struct target_ops) <to_terminal_info>: Use
10209 TARGET_DEFAULT_FUNC.
10210
c6ea8f79
TT
102112014-02-19 Tom Tromey <tromey@redhat.com>
10212
10213 * target-delegates.c: Rebuild.
10214 * target.c (update_current_target): Don't inherit or default
10215 to_terminal_save_ours.
10216 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10217 TARGET_DEFAULT_IGNORE.
10218
e4a733f1
TT
102192014-02-19 Tom Tromey <tromey@redhat.com>
10220
10221 * target-delegates.c: Rebuild.
10222 * target.c (update_current_target): Don't inherit or default
10223 to_terminal_ours.
10224 * target.h (struct target_ops) <to_terminal_ours>: Use
10225 TARGET_DEFAULT_IGNORE.
10226
74fcbef9
TT
102272014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * target-delegates.c: Rebuild.
10230 * target.c (update_current_target): Don't inherit or default
10231 to_terminal_ours_for_output.
10232 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10233 TARGET_DEFAULT_IGNORE.
10234
ddeaacc9
TT
102352014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target-delegates.c: Rebuild.
10238 * target.c (update_current_target): Don't inherit or default
10239 to_terminal_inferior.
10240 * target.h (struct target_ops) <to_terminal_inferior>: Use
10241 TARGET_DEFAULT_IGNORE.
10242
0343661d
TT
102432014-02-19 Tom Tromey <tromey@redhat.com>
10244
10245 * target-delegates.c: Rebuild.
10246 * target.c (update_current_target): Don't inherit or default
10247 to_terminal_init.
10248 * target.h (struct target_ops) <to_terminal_init>: Use
10249 TARGET_DEFAULT_IGNORE.
10250
77cdffe9
TT
102512014-02-19 Tom Tromey <tromey@redhat.com>
10252
10253 * target-delegates.c: Rebuild.
10254 * target.c (update_current_target): Don't inherit or default
10255 to_can_accel_watchpoint_condition.
10256 * target.h (struct target_ops)
10257 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10258
d03655e4
TT
102592014-02-19 Tom Tromey <tromey@redhat.com>
10260
10261 * target-delegates.c: Rebuild.
10262 * target.c (update_current_target): Don't inherit or default
10263 to_region_ok_for_hw_watchpoint.
10264 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10265 Use TARGET_DEFAULT_FUNC.
10266
65f160a9
TT
102672014-02-19 Tom Tromey <tromey@redhat.com>
10268
10269 * target-delegates.c: Rebuild.
10270 * target.c (update_current_target): Don't inherit or default
10271 to_watchpoint_addr_within_range.
10272 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10273 Use TARGET_DEFAULT_FUNC.
10274
61dd109f
TT
102752014-02-19 Tom Tromey <tromey@redhat.com>
10276
10277 * target-delegates.c: Rebuild.
10278 * target.c (update_current_target): Don't inherit or default
10279 to_remove_watchpoint.
10280 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10281 TARGET_DEFAULT_NORETURN.
10282
016facd4
TT
102832014-02-19 Tom Tromey <tromey@redhat.com>
10284
10285 * target-delegates.c: Rebuild.
10286 * target.c (update_current_target): Don't inherit or default
10287 to_insert_watchpoint.
10288 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10289 TARGET_DEFAULT_RETURN.
10290
418dabac
TT
102912014-02-19 Tom Tromey <tromey@redhat.com>
10292
10293 * target-delegates.c: Rebuild.
10294 * target.c (update_current_target): Don't inherit or default
10295 to_remove_hw_breakpoint.
10296 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10297 TARGET_DEFAULT_RETURN.
10298
61b371f9
TT
102992014-02-19 Tom Tromey <tromey@redhat.com>
10300
10301 * target-delegates.c: Rebuild.
10302 * target.c (update_current_target): Don't inherit or default
10303 to_insert_hw_breakpoint.
10304 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10305 TARGET_DEFAULT_RETURN.
10306
52b51d06
TT
103072014-02-19 Tom Tromey <tromey@redhat.com>
10308
10309 * target-delegates.c: Rebuild.
10310 * target.c (update_current_target): Don't inherit or default
10311 to_can_use_hw_breakpoint.
10312 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10313 TARGET_DEFAULT_RETURN.
10314
f86e59b2
TT
103152014-02-19 Tom Tromey <tromey@redhat.com>
10316
10317 * target-delegates.c: Rebuild.
10318 * target.c (update_current_target): Don't inherit or default
10319 to_files_info.
10320 * target.h (struct target_ops) <to_files_info>: Use
10321 TARGET_DEFAULT_IGNORE.
10322
6c628163
TT
103232014-02-19 Tom Tromey <tromey@redhat.com>
10324
10325 * target-delegates.c: Rebuild.
10326 * target.c (update_current_target): Don't inherit or default
10327 to_store.
10328 * target.h (struct target_ops) <to_store>: Use
10329 TARGET_DEFAULT_NORETURN.
10330
bebd3233
TT
103312014-02-19 Tom Tromey <tromey@redhat.com>
10332
10333 * target-delegates.c: Rebuild.
10334 * target.c (update_current_target): Don't inherit or default
10335 to_post_attach.
10336 * target.h (struct target_ops) <to_post_attach>: Use
10337 TARGET_DEFAULT_IGNORE.
10338
a53f3625
TT
103392014-02-19 Tom Tromey <tromey@redhat.com>
10340
10341 * target-delegates.c: Rebuild.
10342 * target.c (update_current_target): Don't inherit or default
10343 to_rcmd.
10344 (default_rcmd): New function.
10345 (do_monitor_command): Unconditionally delegate.
10346 * target.h (struct target_ops) <to_rmcd>: Use
10347 TARGET_DEFAULT_FUNC.
10348
e9a29200
TT
103492014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target-delegates.c: Rebuild.
10352 * target.c (init_dummy_target): Don't initialize to_attach.
10353 (target_attach): Unconditionally delegate.
10354 * target.h (struct target_ops) <to_attach>: Use
10355 TARGET_DEFAULT_FUNC.
10356
09da0d0a
TT
103572014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target-delegates.c: Rebuild.
10360 * target.c (target_detach): Unconditionally delegate.
10361 (init_dummy_target): Don't initialize to_detach.
10362 * target.h (struct target_ops) <to_detach>: Use
10363 TARGET_DEFAULT_IGNORE.
10364
5436ff03
TT
103652014-02-19 Tom Tromey <tromey@redhat.com>
10366
10367 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10368 Add argument.
10369 (target_augmented_libraries_svr4_read): Add argument.
10370 * target.c (update_current_target): Update.
10371 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10372 argument.
10373
f0d960ea
TT
103742014-02-19 Tom Tromey <tromey@redhat.com>
10375
10376 * target.h (struct target_ops) <to_call_history_range>: Add
10377 argument.
10378 * target.c (target_call_history_range): Add argument.
10379 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10380 argument.
10381 (record_btrace_call_history_from): Update.
10382
ec0aea04
TT
103832014-02-19 Tom Tromey <tromey@redhat.com>
10384
10385 * target.h (struct target_ops) <to_call_history_from>: Add
10386 argument.
10387 * target.c (target_call_history_from): Add argument.
10388 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10389 argument.
10390
5df2fcba
TT
103912014-02-19 Tom Tromey <tromey@redhat.com>
10392
10393 * target.h (struct target_ops) <to_call_history>: Add argument.
10394 * target.c (target_call_history): Add argument.
10395 * record-btrace.c (record_btrace_call_history): Add 'self'
10396 argument.
10397
4e99c6b7
TT
103982014-02-19 Tom Tromey <tromey@redhat.com>
10399
10400 * target.h (struct target_ops) <to_insn_history_range>: Add
10401 argument.
10402 * target.c (target_insn_history_range): Add argument.
10403 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10404 argument.
10405 (record_btrace_insn_history_from): Update.
10406
9abc3ff3
TT
104072014-02-19 Tom Tromey <tromey@redhat.com>
10408
10409 * target.h (struct target_ops) <to_insn_history_from>: Add
10410 argument.
10411 * target.c (target_insn_history_from): Add argument.
10412 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10413 argument.
10414
7a6c5609
TT
104152014-02-19 Tom Tromey <tromey@redhat.com>
10416
10417 * target.h (struct target_ops) <to_insn_history>: Add argument.
10418 * target.c (target_insn_history): Add argument.
10419 * record-btrace.c (record_btrace_insn_history): Add 'self'
10420 argument.
10421
606183ac
TT
104222014-02-19 Tom Tromey <tromey@redhat.com>
10423
10424 * target.h (struct target_ops) <to_goto_record>: Add argument.
10425 * target.c (target_goto_record): Add argument.
10426 * record-full.c (record_full_goto): Add 'self' argument.
10427 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10428
307a1b91
TT
104292014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10432 * target.c (target_goto_record_end): Add argument.
10433 * record-full.c (record_full_goto_end): Add 'self' argument.
10434 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10435
08475817
TT
104362014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target.h (struct target_ops) <to_goto_record_begin>: Add
10439 argument.
10440 * target.c (target_goto_record_begin): Add argument.
10441 * record-full.c (record_full_goto_begin): Add 'self' argument.
10442 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10443 argument.
10444
1c63c994
TT
104452014-02-19 Tom Tromey <tromey@redhat.com>
10446
10447 * target.h (struct target_ops) <to_record_is_replaying>: Add
10448 argument.
10449 * target.c (target_record_is_replaying): Add argument.
10450 * record-full.c (record_full_is_replaying): Add 'self' argument.
10451 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10452 argument.
10453 (record_btrace_xfer_partial, record_btrace_store_registers)
10454 (record_btrace_prepare_to_store, record_btrace_resume)
10455 (record_btrace_wait, record_btrace_decr_pc_after_break)
10456 (record_btrace_find_new_threads, record_btrace_thread_alive):
10457 Update.
10458
d1b55219
TT
104592014-02-19 Tom Tromey <tromey@redhat.com>
10460
10461 * target.h (struct target_ops) <to_delete_record>: Add argument.
10462 * target.c (target_delete_record): Add argument.
10463 * record-full.c (record_full_delete): Add 'self' argument.
10464
1390f529
TT
104652014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target.h (struct target_ops) <to_save_record>: Add argument.
10468 * target.c (target_save_record): Add argument.
10469 * record-full.c (record_full_save): Add 'self' argument.
10470 (record_full_save): Add 'self' argument.
10471
630d6a4a
TT
104722014-02-19 Tom Tromey <tromey@redhat.com>
10473
10474 * target.h (struct target_ops) <to_info_record>: Add argument.
10475 * target.c (target_info_record): Add argument.
10476 * record.c (info_record_command): Add argument.
10477 * record-full.c (record_full_info): Add 'self' argument.
10478 * record-btrace.c (record_btrace_info): Add 'self' argument.
10479
c6cd7c02
TT
104802014-02-19 Tom Tromey <tromey@redhat.com>
10481
10482 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10483 * target.c (target_stop_recording): Add argument.
10484 * record.c (record_stop): Add argument.
10485 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10486 argument.
10487
39c49f83
TT
104882014-02-19 Tom Tromey <tromey@redhat.com>
10489
10490 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10491 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10492 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10493 argument.
10494 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10495 (_initialize_amd64_linux_nat): Use it.
10496 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10497 (_initialize_i386_linux_nat): Use it.
10498
1777056d
TT
104992014-02-19 Tom Tromey <tromey@redhat.com>
10500
10501 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10502 * target.c (target_teardown_btrace): Add argument.
10503 * remote.c (remote_teardown_btrace): Add 'self' argument.
10504 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10505 argument.
10506 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10507 argument.
10508
25e95349
TT
105092014-02-19 Tom Tromey <tromey@redhat.com>
10510
10511 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10512 * target.c (target_disable_btrace): Add argument.
10513 * remote.c (remote_disable_btrace): Add 'self' argument.
10514 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10515 argument.
10516 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10517 argument.
10518
e3c49f88
TT
105192014-02-19 Tom Tromey <tromey@redhat.com>
10520
10521 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10522 * target.c (target_enable_btrace): Add argument.
10523 * remote.c (remote_enable_btrace): Add 'self' argument.
10524 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10525 argument.
10526 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10527 argument.
10528
fe38f897
TT
105292014-02-19 Tom Tromey <tromey@redhat.com>
10530
10531 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10532 (target_can_use_agent): Add argument.
10533 * target.c (update_current_target): Update.
10534 * remote.c (remote_can_use_agent): Add 'self' argument.
10535 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10536
2c152180
TT
105372014-02-19 Tom Tromey <tromey@redhat.com>
10538
10539 * target.h (struct target_ops) <to_use_agent>: Add argument.
10540 (target_use_agent): Add argument.
10541 * target.c (update_current_target): Update.
10542 * remote.c (remote_use_agent): Add 'self' argument.
10543 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10544
a893e81f
TT
105452014-02-19 Tom Tromey <tromey@redhat.com>
10546
10547 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10548 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10549 (target_traceframe_info): Add argument.
10550 * target.c (update_current_target): Update.
10551 * remote.c (remote_traceframe_info): Add 'self' argument.
10552 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10553
c686c57f
TT
105542014-02-19 Tom Tromey <tromey@redhat.com>
10555
10556 * target.h (target_static_tracepoint_markers_by_strid): Add
10557 argument.
10558 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10559 'self' argument.
10560 * target.c (update_current_target): Update.
10561 * remote.c (struct target_ops)
10562 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10563 * linux-nat.c (struct target_ops)
10564 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10565
61fc905d
TT
105662014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10569 Add argument.
10570 (target_static_tracepoint_marker_at): Add argument.
10571 * target.c (update_current_target): Update.
10572 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10573 argument.
10574
c378d69d
TT
105752014-02-19 Tom Tromey <tromey@redhat.com>
10576
10577 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10578 (target_set_permissions): Add argument.
10579 * target.c (update_current_target): Update.
10580 * remote.c (remote_set_permissions): Add 'self' argument.
10581 (remote_start_remote): Update.
10582
bd7ae0f5
TT
105832014-02-19 Tom Tromey <tromey@redhat.com>
10584
10585 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10586 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10587 (target_get_tib_address): Add argument.
10588 * target.c (update_current_target): Update.
10589 * remote.c (remote_get_tib_address): Add 'self' argument.
10590
d9e68a2c
TT
105912014-02-19 Tom Tromey <tromey@redhat.com>
10592
10593 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10594 (target_set_trace_notes): Add argument.
10595 * target.c (update_current_target): Update.
10596 * remote.c (remote_set_trace_notes): Add 'self' argument.
10597
4da384be
TT
105982014-02-19 Tom Tromey <tromey@redhat.com>
10599
10600 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10601 argument.
10602 (target_set_trace_buffer_size): Add argument.
10603 * target.c (update_current_target): Update.
10604 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10605
736d5b1f
TT
106062014-02-19 Tom Tromey <tromey@redhat.com>
10607
10608 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10609 argument.
10610 (target_set_circular_trace_buffer): Add argument.
10611 * target.c (update_current_target): Update.
10612 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10613 argument.
10614
37b25738
TT
106152014-02-19 Tom Tromey <tromey@redhat.com>
10616
10617 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10618 argument.
10619 (target_set_disconnected_tracing): Add argument.
10620 * target.c (update_current_target): Update.
10621 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10622
0e67620a
TT
106232014-02-19 Tom Tromey <tromey@redhat.com>
10624
10625 * target.h (struct target_ops)
10626 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10627 (target_get_min_fast_tracepoint_insn_len): Add argument.
10628 * target.c (update_current_target): Update.
10629 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10630 argument.
10631
88ee6f45
TT
106322014-02-19 Tom Tromey <tromey@redhat.com>
10633
10634 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10635 argument.
10636 (target_get_raw_trace_data): Add argument.
10637 * target.c (update_current_target): Update.
10638 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10639
181e3713
TT
106402014-02-19 Tom Tromey <tromey@redhat.com>
10641
10642 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10643 Add argument.
10644 (target_upload_trace_state_variables): Add argument.
10645 * target.c (update_current_target): Update.
10646 * remote.c (remote_upload_trace_state_variables): Add 'self'
10647 argument.
10648 (remote_start_remote): Update.
10649
ab6617cc
TT
106502014-02-19 Tom Tromey <tromey@redhat.com>
10651
10652 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10653 argument.
10654 (target_upload_tracepoints): Add argument.
10655 * target.c (update_current_target): Update.
10656 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10657 (remote_start_remote): Update.
10658
dc3decaf
TT
106592014-02-19 Tom Tromey <tromey@redhat.com>
10660
10661 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10662 (target_save_trace_data): Add argument.
10663 * target.c (update_current_target): Update.
10664 * remote.c (remote_save_trace_data): Add 'self' argument.
10665
4011015b
TT
106662014-02-19 Tom Tromey <tromey@redhat.com>
10667
10668 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10669 argument.
10670 * target.h (struct target_ops)
10671 <to_get_trace_state_variable_value>: Add argument.
10672 (target_get_trace_state_variable_value): Add argument.
10673 * target.c (update_current_target): Update.
10674 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10675 argument.
10676 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10677
bd4c6793
TT
106782014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10681 * target.h (struct target_ops) <to_trace_find>: Add argument.
10682 (target_trace_find): Add argument.
10683 * target.c (update_current_target): Update.
10684 * remote.c (remote_trace_find): Add 'self' argument.
10685 * ctf.c (ctf_trace_find): Add 'self' argument.
10686
74499f1b
TT
106872014-02-19 Tom Tromey <tromey@redhat.com>
10688
10689 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10690 (target_trace_stop): Add argument.
10691 * target.c (update_current_target): Update.
10692 * remote.c (remote_trace_stop): Add 'self' argument.
10693
db90e85c
TT
106942014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10697 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10698 argument.
10699 (target_get_tracepoint_status): Add argument.
10700 * target.c (update_current_target): Update.
10701 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10702
8bd200f1
TT
107032014-02-19 Tom Tromey <tromey@redhat.com>
10704
10705 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10706 * target.h (struct target_ops) <to_get_trace_status>: Add
10707 argument.
10708 (target_get_trace_status): Add argument.
10709 * target.c (update_current_target): Update.
10710 * remote.c (remote_get_trace_status): Add 'self' argument.
10711 (remote_start_remote, remote_can_download_tracepoint): Update.
10712 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10713
e2d1aae3
TT
107142014-02-19 Tom Tromey <tromey@redhat.com>
10715
10716 * target.h (struct target_ops) <to_trace_start>: Add argument.
10717 (target_trace_start): Add argument.
10718 * target.c (update_current_target): Update.
10719 * remote.c (remote_trace_start): Add 'self' argument.
10720
583f9a86
TT
107212014-02-19 Tom Tromey <tromey@redhat.com>
10722
10723 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10724 Add argument.
10725 (target_trace_set_readonly_regions): Add argument.
10726 * target.c (update_current_target): Update.
10727 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10728 argument.
10729
780b049c
TT
107302014-02-19 Tom Tromey <tromey@redhat.com>
10731
10732 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10733 argument.
10734 (target_disable_tracepoint): Add argument.
10735 * target.c (update_current_target): Update.
10736 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10737
46670d57
TT
107382014-02-19 Tom Tromey <tromey@redhat.com>
10739
10740 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10741 argument.
10742 (target_enable_tracepoint): Add argument.
10743 * target.c (update_current_target): Update.
10744 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10745
559d2b81
TT
107462014-02-19 Tom Tromey <tromey@redhat.com>
10747
10748 * target.h (struct target_ops) <to_download_trace_state_variable>:
10749 Add argument.
10750 (target_download_trace_state_variable): Add argument.
10751 * target.c (update_current_target): Update.
10752 * remote.c (remote_download_trace_state_variable): Add 'self'
10753 argument.
10754
a52a8357
TT
107552014-02-19 Tom Tromey <tromey@redhat.com>
10756
10757 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10758 argument.
10759 (target_can_download_tracepoint): Add argument.
10760 * target.c (update_current_target): Update.
10761 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10762
548f7808
TT
107632014-02-19 Tom Tromey <tromey@redhat.com>
10764
10765 * target.h (struct target_ops) <to_download_tracepoint>: Add
10766 argument.
10767 (target_download_tracepoint): Add argument.
10768 * target.c (update_current_target): Update.
10769 * remote.c (remote_download_tracepoint): Add 'self' argument.
10770
ecae04e1
TT
107712014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target.h (struct target_ops) <to_trace_init>: Add argument.
10774 (target_trace_init): Add argument.
10775 * target.c (update_current_target): Update.
10776 * remote.c (remote_trace_init): Add 'self' argument.
10777
fab5aa7c
TT
107782014-02-19 Tom Tromey <tromey@redhat.com>
10779
10780 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10781 * target.c (target_fileio_readlink): Add argument.
10782 * remote.c (remote_hostio_readlink): Add 'self' argument.
10783 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10784
dbbca37d
TT
107852014-02-19 Tom Tromey <tromey@redhat.com>
10786
10787 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10788 * target.c (target_fileio_unlink): Add argument.
10789 * remote.c (remote_hostio_unlink): Add 'self' argument.
10790 (remote_file_delete): Update.
10791 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10792
df39ea25
TT
107932014-02-19 Tom Tromey <tromey@redhat.com>
10794
10795 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10796 * target.c (target_fileio_close): Add argument.
10797 * remote.c (remote_hostio_close): Add 'self' argument.
10798 (remote_hostio_close_cleanup): Update.
10799 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10800 Update.
10801 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10802
a3be983c
TT
108032014-02-19 Tom Tromey <tromey@redhat.com>
10804
10805 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10806 * target.c (target_fileio_pread): Add argument.
10807 * remote.c (remote_hostio_pread): Add 'self' argument.
10808 (remote_bfd_iovec_pread, remote_file_get): Update.
10809 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10810
0d866f62
TT
108112014-02-19 Tom Tromey <tromey@redhat.com>
10812
10813 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10814 * target.c (target_fileio_pwrite): Add argument.
10815 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10816 (remote_file_put): Update.
10817 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10818
cd897586
TT
108192014-02-19 Tom Tromey <tromey@redhat.com>
10820
10821 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10822 * target.c (target_fileio_open): Add argument.
10823 * remote.c (remote_hostio_open): Add 'self' argument.
10824 (remote_bfd_iovec_open): Add 'self' argument.
10825 (remote_file_put): Add 'self' argument.
10826 (remote_file_get): Add 'self' argument.
10827 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10828
78eff0ec
TT
108292014-02-19 Tom Tromey <tromey@redhat.com>
10830
10831 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10832 Add argument.
10833 (target_can_run_breakpoint_commands): Add argument.
10834 * target.c (update_current_target): Update.
10835 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10836 argument.
10837 (remote_insert_breakpoint): Add 'self' argument.
10838 (remote_insert_hw_breakpoint): Add 'self' argument.
10839 (remote_can_run_breakpoint_commands): Add 'self' argument.
10840
efcc2da7
TT
108412014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target.h (struct target_ops)
10844 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10845 (target_supports_evaluation_of_breakpoint_conditions): Add
10846 argument.
10847 * target.c (update_current_target): Update.
10848 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10849 argument.
10850 (remote_insert_breakpoint): Add 'self' argument.
10851 (remote_insert_hw_breakpoint): Add 'self' argument.
10852 (remote_supports_cond_breakpoints): Add 'self' argument.
10853
6de37a3a
TT
108542014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10857 argument.
10858 (target_supports_string_tracing): Add argument.
10859 * target.c (update_current_target): Update.
10860 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10861
2bfc0540
TT
108622014-02-19 Tom Tromey <tromey@redhat.com>
10863
10864 * target.h (struct target_ops)
10865 <to_supports_disable_randomization>: Add argument.
10866 * target.c (find_default_supports_disable_randomization): Add
10867 argument.
10868 (target_supports_disable_randomization): Add argument.
10869 (find_default_supports_disable_randomization): Add 'self'
10870 argument.
10871 * remote.c (extended_remote_supports_disable_randomization): Add
10872 'self' argument.
10873 (remote_supports_disable_randomization): Add 'self' argument.
10874 (extended_remote_create_inferior): Update.
10875 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10876 'self' argument.
10877
7d178d6a
TT
108782014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * target.h (struct target_ops)
10881 <to_supports_enable_disable_tracepoint>: Add argument.
10882 (target_supports_enable_disable_tracepoint): Add argument.
10883 * target.c (update_current_target): Update.
10884 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10885 argument.
10886
86ce2668
TT
108872014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * target.h (struct target_ops) <to_supports_multi_process>: Add
10890 argument.
10891 (target_supports_multi_process): Add argument.
10892 * target.c (update_current_target): Update.
10893 * remote.c (remote_supports_multi_process): Add 'self' argument.
10894 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10895 argument.
10896 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10897 argument.
10898
4c612759
TT
108992014-02-19 Tom Tromey <tromey@redhat.com>
10900
10901 * target.h (struct target_ops) <to_execution_direction>: Add
10902 argument.
10903 (target_execution_direction): Add argument.
10904 * target.c (default_execution_direction): Add 'self' argument.
10905 * record-full.c (record_full_execution_direction): Add 'self'
10906 argument.
10907
19db3e69
TT
109082014-02-19 Tom Tromey <tromey@redhat.com>
10909
10910 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10911 argument.
10912 (target_can_execute_reverse): Add argument.
10913 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10914 * record-full.c (record_full_can_execute_reverse): Add 'self'
10915 argument.
10916 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10917 argument.
10918
1e6b91a4
TT
109192014-02-19 Tom Tromey <tromey@redhat.com>
10920
10921 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10922 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10923 argument.
10924 (target_get_ada_task_ptid): Add argument.
10925 * target.c (update_current_target): Update.
10926 (default_get_ada_task_ptid): Add 'self' argument.
10927 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10928 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10929 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10930 argument.
10931 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10932 argument.
10933 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10934 argument.
10935 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10936 argument.
10937 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10938 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10939 argument.
10940
3c80fb48
TT
109412014-02-19 Tom Tromey <tromey@redhat.com>
10942
10943 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10944 (target_goto_bookmark): Add argument.
10945 * target.c (dummy_goto_bookmark): Add 'self' argument.
10946 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10947
dd0e2830
TT
109482014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10951 (target_get_bookmark): Add argument.
10952 * target.c (dummy_get_bookmark): Add 'self' argument.
10953 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10954
fc6691b2
TT
109552014-02-19 Tom Tromey <tromey@redhat.com>
10956
10957 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10958 argument.
10959 (target_make_corefile_notes): Add argument.
10960 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10961 * procfs.c (procfs_make_note_section): Add 'self' argument.
10962 (procfs_make_note_section): Add 'self' argument.
10963 (procfs_make_note_section): Add 'self' argument.
10964 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10965 argument.
10966 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10967 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10968 * exec.c (exec_make_note_section): Add 'self' argument.
10969 (exec_make_note_section): Add 'self' argument.
10970
2e73927c
TT
109712014-02-19 Tom Tromey <tromey@redhat.com>
10972
10973 * target.h (struct target_ops) <to_find_memory_regions>: Add
10974 argument.
10975 (target_find_memory_regions): Add argument.
10976 * target.c (dummy_find_memory_regions): Add 'self' argument.
10977 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10978 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10979 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10980 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10981 * exec. (exec_do_find_memory_regions): New global.
10982 (exec_set_find_memory_regions): Rewrite.
10983 (exec_find_memory_regions): New function.
10984 (init_exec_ops): Use exec_find_memory_regions.
10985
2a9a2795
TT
109862014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target.h (struct target_ops) <to_supports_non_stop>: Add
10989 argument.
10990 * target.c (find_default_supports_non_stop): Add argument.
10991 (target_supports_non_stop): Add argument.
10992 (find_default_supports_non_stop): Add 'self' argument.
10993 * remote.c (remote_supports_non_stop): Add 'self' argument.
10994 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10995
4ab76ea3
TT
109962014-02-19 Tom Tromey <tromey@redhat.com>
10997
10998 * target.h (struct target_ops) <to_log_command>: Add argument.
10999 (target_log_command): Add argument.
11000 * serial.h (serial_log_command): Add 'self' argument.
11001 * serial.c (serial_log_command): Add 'self' argument.
11002
8dd27370
TT
110032014-02-19 Tom Tromey <tromey@redhat.com>
11004
11005 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11006 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11007 argument.
11008 (target_pid_to_exec_file): Add argument.
11009 * target.c (debug_to_pid_to_exec_file): Add argument.
11010 (update_current_target): Update.
11011 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11012 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11013 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11014 (linux_handle_extended_wait): Update.
11015 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11016 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11017 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11018 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11019
1aac633b
TT
110202014-02-19 Tom Tromey <tromey@redhat.com>
11021
11022 * target.h (struct target_ops) <to_rcmd>: Add argument.
11023 (target_rcmd): Add argument.
11024 * target.c (debug_to_rcmd): Add argument.
11025 (update_current_target, do_monitor_command): Update.
11026 * remote.c (remote_rcmd): Add 'self' argument.
11027 * monitor.c (monitor_rcmd): Add 'self' argument.
11028
1eab8a48
TT
110292014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * windows-nat.c (windows_stop): Add 'self' argument.
11032 * target.h (struct target_ops) <to_stop>: Add argument.
11033 * target.c (target_stop): Add argument.
11034 (debug_to_stop): Add argument.
11035 (update_current_target): Update.
11036 * remote.c (remote_stop): Add 'self' argument.
11037 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11038 (gdbsim_cntrl_c): Update.
11039 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11040 * procfs.c (procfs_stop): Add 'self' argument.
11041 * nto-procfs.c (procfs_stop): Add 'self' argument.
11042 * monitor.c (monitor_stop): Add 'self' argument.
11043 (monitor_open): Update.
11044 * linux-nat.c (linux_nat_stop): Add argument.
11045 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11046 * gnu-nat.c (gnu_stop): Add 'self' argument.
11047 * darwin-nat.c (darwin_stop): Add 'self' argument.
11048
503a628d
TT
110492014-02-19 Tom Tromey <tromey@redhat.com>
11050
11051 * target.h (struct target_ops) <to_thread_name>: Add argument.
11052 * target.c (target_thread_name): Add argument.
11053 (update_current_target): Update.
11054 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11055
c15906d8
TT
110562014-02-19 Tom Tromey <tromey@redhat.com>
11057
11058 * target.h (struct target_ops) <to_extra_thread_info>: Add
11059 argument.
11060 (target_extra_thread_info): Add argument.
11061 * target.c (update_current_target): Update.
11062 * remote.c (remote_threads_extra_info): Add 'self' argument.
11063 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11064 argument.
11065 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11066 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11067 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11068 argument.
11069 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11070 argument.
11071 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11072 argument.
11073 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11074 argument.
11075
daf5e9b6
TT
110762014-02-19 Tom Tromey <tromey@redhat.com>
11077
11078 * target.h (struct target_ops) <to_program_signals>: Add argument.
11079 * target.c (target_program_signals): Add argument.
11080 * remote.c (remote_program_signals): Add 'self' argument.
11081
94bedb42
TT
110822014-02-19 Tom Tromey <tromey@redhat.com>
11083
11084 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11085 * target.c (target_pass_signals): Add argument.
11086 * remote.c (remote_pass_signals): Add 'self' argument.
11087 (remote_start_remote): Update.
11088 * procfs.c (procfs_pass_signals): Add 'self' argument.
11089 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11090 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11091 (linux_nat_create_inferior, linux_nat_attach): Update.
11092
da82bd6b
TT
110932014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * windows-nat.c (windows_can_run): Add 'self' argument.
11096 * target.h (struct target_ops) <to_can_run>: Add argument.
11097 (target_can_run): Add argument.
11098 * target.c (debug_to_can_run): Add argument.
11099 (update_current_target): Update.
11100 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11101 * inf-child.c (inf_child_can_run): Add 'self' argument.
11102 * go32-nat.c (go32_can_run): Add 'self' argument.
11103
d796e1d6
TT
111042014-02-19 Tom Tromey <tromey@redhat.com>
11105
11106 * target.h (struct target_ops) <to_has_exited>: Add argument.
11107 (target_has_exited): Add argument.
11108 * target.c (debug_to_has_exited): Add argument.
11109 (update_current_target): Update.
11110
ff214e67
TT
111112014-02-19 Tom Tromey <tromey@redhat.com>
11112
11113 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11114 argument.
11115 (target_set_syscall_catchpoint): Add argument.
11116 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11117 argument.
11118 * target.c (update_current_target): Update.
11119
758e29d2
TT
111202014-02-19 Tom Tromey <tromey@redhat.com>
11121
11122 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11123 argument.
11124 (target_remove_exec_catchpoint): Add argument.
11125 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11126 (update_current_target): Update.
11127 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11128 argument.
11129
ba025e51
TT
111302014-02-19 Tom Tromey <tromey@redhat.com>
11131
11132 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11133 argument.
11134 (target_insert_exec_catchpoint): Add argument.
11135 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11136 (update_current_target): Update.
11137 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11138 argument.
11139
e98cf0cd
TT
111402014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11143 argument.
11144 (target_remove_vfork_catchpoint): Add argument.
11145 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11146 (update_current_target): Update.
11147 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11148 argument.
11149
3ecc7da0
TT
111502014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11153 argument.
11154 (target_insert_vfork_catchpoint): Add argument.
11155 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11156 (update_current_target): Update.
11157 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11158 argument.
11159
973fc227
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11163 argument.
11164 (target_remove_fork_catchpoint): Add argument.
11165 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11166 (update_current_target): Update.
11167 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11168 argument.
11169
a863b201
TT
111702014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11173 argument.
11174 (target_insert_fork_catchpoint): Add argument.
11175 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11176 (update_current_target): Update.
11177 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11178 argument.
11179
2e97a79e
TT
111802014-02-19 Tom Tromey <tromey@redhat.com>
11181
11182 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11183 argument.
11184 (target_post_startup_inferior): Add argument.
11185 * target.c (debug_to_post_startup_inferior): Add argument.
11186 (update_current_target): Update.
11187 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11188 argument.
11189 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11190 argument.
11191 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11192 argument.
11193 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11194 argument.
11195 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11196 'self' argument.
11197 (super_post_startup_inferior): Likewise.
11198 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11199 'self' argument.
11200 (super_post_startup_inferior): Likewise.
11201 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11202 Add 'self' argument.
11203 (super_post_startup_inferior): Likewise.
11204
71a9f134
TT
112052014-02-19 Tom Tromey <tromey@redhat.com>
11206
11207 * target.h (struct target_ops) <to_load>: Add argument.
11208 * target.c (target_load): Add argument.
11209 (debug_to_load): Add argument.
11210 (update_current_target): Update.
11211 * remote.c (remote_load): Add 'self' argument.
11212 * remote-sim.c (gdbsim_load): Add 'self' argument.
11213 * remote-mips.c (mips_load): Add 'self' argument.
11214 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11215 * monitor.c (monitor_load): Add 'self' argument.
11216 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11217
0a4f40a2
TT
112182014-02-19 Tom Tromey <tromey@redhat.com>
11219
11220 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11221 (target_terminal_info): Add argument.
11222 * target.c (debug_to_terminal_info): Add argument.
11223 (default_terminal_info): Likewise.
11224 * inflow.c (child_terminal_info): Add 'self' argument.
11225 * inferior.h (child_terminal_info): Add 'self' argument.
11226 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11227
ae3bd431
TT
112282014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11231 argument.
11232 (target_terminal_save_ours): Add argument.
11233 * target.c (debug_to_terminal_save_ours): Add argument.
11234 (update_current_target): Update.
11235 * inflow.c (terminal_save_ours): Add 'self' argument.
11236 * inferior.h (terminal_save_ours): Add 'self' argument.
11237
e3594fd1
TT
112382014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11241 (target_terminal_ours): Add argument.
11242 * target.c (debug_to_terminal_ours): Add argument.
11243 (update_current_target): Update.
11244 * remote.c (remote_terminal_ours): Add 'self' argument.
11245 (remote_close): Update.
11246 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11247 * inflow.c (terminal_ours): Add 'self' argument.
11248 * inferior.h (terminal_ours): Add 'self' argument.
11249 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11250
2e1e1a19
TT
112512014-02-19 Pedro Alves <palves@redhat.com>
11252 Tom Tromey <tromey@redhat.com>
11253
11254 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11255 argument.
11256 (target_terminal_ours_for_output): Add argument.
11257 * target.c (debug_to_terminal_ours_for_output): Add argument.
11258 (update_current_target): Update.
11259 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11260 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11261 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11262
d2f640d4
TT
112632014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * target.h (struct target_ops) <to_terminal_inferior>: Add
11266 argument.
11267 * target.c (target_terminal_inferior): Add argument.
11268 (update_current_target): Update.
11269 * remote.c (remote_terminal_inferior): Add 'self' argument.
11270 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11271 * inflow.c (terminal_inferior): Add 'self' argument.
11272 * inferior.h (terminal_inferior): Add 'self' argument.
11273 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11274 (go32_terminal_inferior): Add 'self' argument.
11275
c42bf286
TT
112762014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11279 (target_terminal_init): Add argument.
11280 * target.c (debug_to_terminal_init): Add argument.
11281 (update_current_target): Update.
11282 * inflow.c (terminal_init_inferior): Add 'self' argument.
11283 * inferior.h (terminal_init_inferior): Add 'self' argument.
11284 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11285 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11286
c3a5ff89
TT
112872014-02-19 Tom Tromey <tromey@redhat.com>
11288
11289 * target.h (struct target_ops)
11290 <to_can_accel_watchpoint_condition>: Add argument.
11291 (target_can_accel_watchpoint_condition): Add argument.
11292 * target.c (debug_to_can_accel_watchpoint_condition): Add
11293 argument.
11294 (update_current_target): Update.
11295 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11296 'self' argument.
11297
31568a15
TT
112982014-02-19 Tom Tromey <tromey@redhat.com>
11299
11300 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11301 Add argument.
11302 (target_region_ok_for_hw_watchpoint): Add argument.
11303 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11304 (default_region_ok_for_hw_watchpoint): Add argument.
11305 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11306 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11307 argument.
11308 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11309 argument.
11310 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11311 argument.
11312 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11313 'self' argument.
11314 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11315 'self' argument.
11316 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11317 'self' argument.
11318 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11319 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11320 'self' argument.
11321 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11322 Add 'self' argument.
11323
7bb99c53
TT
113242014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11327 argument.
11328 (target_insert_watchpoint): Add argument.
11329 * target.c (debug_to_insert_watchpoint): Add argument.
11330 (update_current_target): Update.
11331 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11332 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11333 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11334 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11335 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11336 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11337 argument.
11338 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11339 (procfs_insert_hw_watchpoint): Add 'self' argument.
11340 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11341 argument.
11342 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11343 argument.
11344 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11345 argument.
11346 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11347 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11348 argument.
11349 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11350 'self' argument.
11351
11b5219a
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11355 argument.
11356 (target_remove_watchpoint): Add argument.
11357 * target.c (debug_to_remove_watchpoint): Add argument.
11358 (update_current_target): Update.
11359 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11360 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11361 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11362 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11363 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11364 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11365 argument.
11366 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11367 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11368 argument.
11369 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11370 argument.
11371 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11372 argument.
11373 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11374 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11375 argument.
11376 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11377 'self' argument.
11378
a64dc96c
TT
113792014-02-19 Tom Tromey <tromey@redhat.com>
11380
11381 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11382 argument.
11383 (target_remove_hw_breakpoint): Add argument.
11384 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11385 (update_current_target): Update.
11386 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11387 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11388 argument.
11389 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11390 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11391 argument.
11392 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11393 'self' argument.
11394
23a26771
TT
113952014-02-19 Tom Tromey <tromey@redhat.com>
11396
11397 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11398 argument.
11399 (target_insert_hw_breakpoint): Add argument.
11400 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11401 (update_current_target): Update.
11402 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11403 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11404 argument.
11405 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11406 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11407 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11408 argument.
11409 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11410 'self' argument.
11411
5461485a
TT
114122014-02-19 Tom Tromey <tromey@redhat.com>
11413
11414 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11415 argument.
11416 (target_can_use_hardware_watchpoint): Add argument.
11417 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11418 (update_current_target): Update.
11419 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11420 argument.
11421 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11422 argument.
11423 * remote.c (remote_check_watch_resources): Add 'self' argument.
11424 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11425 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11426 argument.
11427 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11428 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11429 argument.
11430 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11431 argument.
11432 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11433 argument.
11434 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11435 argument.
11436 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11437 argument.
11438 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11439 argument.
11440 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11441 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11442 argument.
11443 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11444 'self' argument.
11445
f045800c
TT
114462014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target.h (struct target_ops) <to_post_attach>: Add argument.
11449 (target_post_attach): Add argument.
11450 * target.c (debug_to_post_attach): Add argument.
11451 (update_current_target): Update.
11452 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11453 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11454 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11455 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11456 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11457
de90e03d
TT
114582014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * windows-nat.c (windows_close): Add 'self' argument.
11461 * tracepoint.c (tfile_close): Add 'self' argument.
11462 * target.h (struct target_ops) <to_close>: Add argument.
11463 * target.c (target_close): Add argument.
11464 (update_current_target): Update.
11465 * remote.c (remote_close): Add 'self' argument.
11466 * remote-sim.c (gdbsim_close): Add 'self' argument.
11467 * remote-mips.c (mips_close): Add 'self' argument.
11468 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11469 * record-full.c (record_full_close): Add 'self' argument.
11470 * record-btrace.c (record_btrace_close): Add 'self' argument.
11471 * monitor.h (monitor_close): Add 'self' argument.
11472 * monitor.c (monitor_close): Add 'self' argument.
11473 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11474 * linux-nat.c (linux_nat_close): Add argument.
11475 * go32-nat.c (go32_close): Add 'self' argument.
11476 * exec.c (exec_close_1): Add 'self' argument.
11477 * ctf.c (ctf_close): Add 'self' argument.
11478 * corelow.c (core_close): Add 'self' argument.
11479 (core_close_cleanup): Update.
11480 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11481 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11482
9dd130a0
TT
114832014-02-19 Tom Tromey <tromey@redhat.com>
11484
11485 * remote.c (remote_load): New function.
11486 (init_remote_ops): Use it.
11487
46917d26
TT
114882014-02-19 Tom Tromey <tromey@redhat.com>
11489
11490 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11491 argument.
11492 * common/linux-btrace.h (linux_supports_btrace): Update.
11493 * remote.c (remote_supports_btrace): Add "self" argument.
11494 * target-delegates.c: Rebuild.
11495 * target.c (target_supports_btrace): Remove.
11496 * target.h (struct target_ops) <to_supports_btrace>: Add
11497 target_ops argument.
11498 (target_supports_btrace): New define.
11499
6b84065d
TT
115002014-02-19 Tom Tromey <tromey@redhat.com>
11501
11502 * record-full.c (record_full_beneath_to_resume_ops)
11503 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11504 (record_full_beneath_to_wait)
11505 (record_full_beneath_to_store_registers_ops)
11506 (record_full_beneath_to_store_registers)
11507 (record_full_beneath_to_xfer_partial_ops)
11508 (record_full_beneath_to_xfer_partial)
11509 (record_full_beneath_to_insert_breakpoint_ops)
11510 (record_full_beneath_to_insert_breakpoint)
11511 (record_full_beneath_to_remove_breakpoint_ops)
11512 (record_full_beneath_to_remove_breakpoint)
11513 (record_full_beneath_to_stopped_by_watchpoint)
11514 (record_full_beneath_to_stopped_data_address)
11515 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11516 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11517 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11518 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11519 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11520 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11521 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11522 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11523 (record_full_resume, record_full_wait_1)
11524 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11525 (record_full_store_registers, record_full_xfer_partial)
11526 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11527 (record_full_async, record_full_core_xfer_partial): Use target
11528 delegation.
11529 * target-delegates.c: Rebuild.
11530 * target.c (current_xfer_partial): Remove.
11531 (update_current_target): Do not INHERIT or de_fault
11532 to_insert_breakpoint, to_remove_breakpoint,
11533 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11534 to_is_async_p, to_async. Do not set to_xfer_partial field.
11535 (default_xfer_partial): Simplify.
11536 (current_xfer_partial): Remove.
11537 (target_wait, target_resume): Simplify.
11538 (find_default_can_async_p, find_default_is_async_p): Update.
11539 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11540 to_xfer_partial, to_stopped_by_watchpoint,
11541 to_stopped_data_address.
11542 (target_store_registers): Simplify.
11543 (forward_target_remove_breakpoint)
11544 (forward_target_insert_breakpoint): Remove.
11545 (target_remove_breakpoint, target_insert_breakpoint)
11546 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11547 * target.h (struct target_ops) <to_resume, to_wait,
11548 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11549 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11550 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11551 markup.
11552 (forward_target_remove_breakpoint)
11553 (forward_target_insert_breakpoint): Remove.
11554 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11555 directly.
11556 (record_btrace_insert_breakpoint): Delegate directly.
11557
1101cb7b
TT
115582014-02-19 Tom Tromey <tromey@redhat.com>
11559
11560 PR build/7701:
11561 * target-delegates.c: New file.
11562 * target.c: Include target-delegates.c.
11563 (init_dummy_target): Call install_dummy_methods.
11564 (complete_target_initialization): Call install_delegators.
11565 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11566 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11567 * make-target-delegates: New file.
11568
8b06beed
TT
115692014-02-19 Tom Tromey <tromey@redhat.com>
11570
11571 * record.c (find_record_target): Use find_target_at.
11572 * target.c (find_target_at): New function.
11573 * target.h (find_target_at): Declare.
11574
6a109b6b
TT
115752014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11578 Add 'ops' argument.
11579 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11580 'ops' argument.
11581 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11582 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11583 'ops' argument.
11584 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11585 argument.
11586 * linux-nat.c (save_sigtrap): Update.
11587 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11588 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11589 (linux_nat_close): Update.
11590 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11591 argument.
11592 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11593 argument.
11594 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11595 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11596 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11597 (tmp_to_async): Add 'ops' argument.
11598 (record_full_stopped_by_watchpoint, record_full_async)
11599 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11600 argument.
11601 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11602 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11603 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11604 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11605 (remote_is_async_p, remote_async): Add 'ops' argument.
11606 (remote_stopped_data_address): Update.
11607 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11608 * target.c (update_current_target)
11609 (find_default_can_async_p, find_default_is_async_p): Update.
11610 (init_dummy_target): Update.
11611 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11612 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11613 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11614 (target_can_async_p, target_is_async_p, target_async)
11615 (target_stopped_by_watchpoint): Update.
11616
e095146b
YQ
116172014-02-19 Yao Qi <yao@codesourcery.com>
11618
11619 PR gdb/16220
11620 * gdbarch.sh: Remove startup_gdbarch.
11621 * gdbarch.c: Regenerated.
11622 * gdbarch.h: Likewise.
11623
bc3c6b36
KB
116242014-02-17 Kevin Buettner <kevinb@redhat.com>
11625
11626 * rl78-tdep.c (rl78_g10_register_name): New function.
11627 (rl78_return_value): Add g10 support.
11628 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11629 g10.
11630
98dc0167 116312014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11632
11633 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11634 (SUBDIR_GUILE_SRCS): Ditto.
11635 (scm-gsmob.o): Ditto.
11636
842c05cd
YQ
116372014-02-17 Yao Qi <yao@codesourcery.com>
11638
11639 * gnu-nat.c (ILL_RPC): Declare defined function.
11640
25c0bd04
YQ
116412014-02-17 Yao Qi <yao@codesourcery.com>
11642
11643 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11644 mach_msg_type_number_t.
11645 (gnu_write_inferior): Likewise.
11646
a9a758e3
YQ
116472014-02-17 Yao Qi <yao@codesourcery.com>
11648
11649 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11650 in format string.
11651 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11652 (inf_validate_procs, inf_signal): Likewise.
11653 (S_exception_raise_request): Likewise.
11654 (do_mach_notify_dead_name): Likewise.
11655 (steal_exc_port): Likewise.
11656 (gnu_read_inferior): Change 'copy_count''s type to
11657 mach_msg_type_number_t.
11658 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11659 format string.
11660
bae8023e
TS
116612014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11662
c82f56d9
TS
11663 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11664 flag. Adjust all users; in particular...
11665 (gnu_wait): ..., don't decrement its value in here...
11666 (gnu_create_inferior): ..., and instead set the flag in here,
11667 around the startup_inferior call, and call that one with
11668 START_INFERIOR_TRAPS_EXPECTED.
11669
3398af6a
TS
11670 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11671 (ILL_RPC): ... new macro.
11672 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11673 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11674 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11675 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11676 functions with ILL_RPC macro.
11677 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11678 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11679 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11680 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11681 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11682 (S_proc_getlogin_reply, S_proc_getsid_reply)
11683 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11684 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11685 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11686 (S_proc_getnports_reply, S_proc_is_important_reply)
11687 (S_proc_get_code_reply): New stub functions, generated with
11688 ILL_RPC macro.
11689
d47642c9
TS
11690 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11691 collected the type check structures.
11692
bae8023e
TS
11693 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11694
8a55ffb0
DE
116952014-02-14 Doug Evans <dje@google.com>
11696
11697 * target.c (target_write_partial): Fix result type.
11698
c2853f3d
JM
116992014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11700
11701 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11702 the proper offsets to access fpregset_t.
11703
ac61d2db
SA
117042014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11705
11706 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11707 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11708 * h8300-tdep.c (setmachinelist): Remove global.
11709 * hppa-tdep.c (hppa_sigtramp): Remove global.
11710 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11711 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11712 * ravenscar-thread.c (update_target_observer): Remove global.
11713 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11714
9d2d0b8b
TT
117152014-02-12 Tom Tromey <tromey@redhat.com>
11716
11717 * common/rsp-low.c: Update comments.
11718 * common/rsp-low.h: Update comments.
11719
a7191e8b
TT
117202014-02-12 Tom Tromey <tromey@redhat.com>
11721
11722 * common/rsp-low.c (convert_ascii_to_int): Remove.
11723 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11724
ff0e980e
TT
117252014-02-12 Tom Tromey <tromey@redhat.com>
11726
11727 * common/rsp-low.h (unhexify): Don't declare.
11728 * common/rsp-low.c (unhexify): Remove.
11729
e9371aff
TT
117302014-02-12 Tom Tromey <tromey@redhat.com>
11731
11732 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11733 * common/rsp-low.c (convert_int_to_ascii): Remove.
11734
971dc0b8
TT
117352014-02-12 Tom Tromey <tromey@redhat.com>
11736
11737 * common/rsp-low.h (hexify): Don't declare.
11738 * common/rsp-low.c (hexify): Remove.
11739
0a822afb
TT
117402014-02-12 Tom Tromey <tromey@redhat.com>
11741
11742 * common/rsp-low.c (hexify): Never take strlen of argument.
11743
9f1b45b0
TT
117442014-02-12 Tom Tromey <tromey@redhat.com>
11745
11746 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11747 * remote.c (extended_remote_run, remote_rcmd)
11748 (remote_download_trace_state_variable, remote_save_trace_data)
11749 (remote_set_trace_notes): Update.
11750 * tracepoint.c (encode_source_string, tfile_write_status)
11751 (tfile_write_uploaded_tsv): Update.
11752
9c3d6531
TT
117532014-02-12 Tom Tromey <tromey@redhat.com>
11754
11755 * tracepoint.c: Include rsp-low.h.
11756 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11757 * remote.c: Include rsp-low.h.
11758 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11759 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11760 (remote_unescape_input): Move to common/rsp-low.c.
11761 * common/rsp-low.h: New file.
11762 * common/rsp-low.c: New file.
11763 * Makefile.in (SFILES): Add common/rsp-low.c.
11764 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11765 (COMMON_OBS): Add rsp-low.o.
11766 (rsp-low.o): New target.
11767
01fd3ea5
TT
117682014-02-12 Tom Tromey <tromey@redhat.com>
11769
11770 * utils.h: Include print-utils.h.
11771 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11772 (int_string, core_addr_to_string, core_addr_to_string_nz)
11773 (hex_string, hex_string_custom): Don't declare.
11774 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11775 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11776 (hex_string_custom, int_string, core_addr_to_string)
11777 (core_addr_to_string_nz, host_address_to_string): Move to
11778 common/print-utils.c.
11779 * common/print-utils.h: New file.
11780 * common/print-utils.c: New file
11781 * Makefile.in (SFILES): Add common/print-utils.c.
11782 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11783 (COMMON_OBS): Add print-utils.o.
11784 (print-utils.o): New target.
11785
9fb50108
TT
117862014-02-12 Tom Tromey <tromey@redhat.com>
11787
11788 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11789
0548b5db
MK
117902014-02-12 Mark Kettenis <kettenis@gnu.org>
11791
11792 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11793
493443a4
MK
117942014-02-12 Mark Kettenis <kettenis@gnu.org>
11795
11796 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11797 if a PT_IO ptrace request returns sucessfully but indicates that 0
11798 bytes were transferred.
11799
706d0883
PA
118002014-02-12 Pedro Alves <palves@redhat.com>
11801 Kevin Buettner <kevinb@redhat.com>
11802
11803 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11804 TYPE_INSTANCE_FLAG_CODE_SPACE.
11805
5caa2f0b
PA
118062014-02-12 Pedro Alves <palves@redhat.com>
11807
11808 * h8300-tdep.c (pseudo_from_raw_register)
11809 (raw_from_pseudo_register): New functions.
11810 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11811 them.
11812
76fd5f74
PA
118132014-02-12 Pedro Alves <palves@redhat.com>
11814
11815 * h8300-tdep.c (h8300_register_sim_regno): New function.
11816 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11817 gdbarch_register_sim_regno hook.
11818
8f008406
SA
118192014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11820
11821 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11822
195abc10
SA
118232014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11824
11825 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11826
93ffa5b9
MK
118272014-02-12 Mark Kettenis <kettenis@gnu.org>
11828
11829 * obsd-tdep.h (obsd_init_abi): New prototype.
11830 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11831 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11832 (obsd_init_abi): New functions.
11833 * i386obsd-tdep.c: Include "obsd-tdep.h".
11834 (i386obsd_init_abi): Call obsd_init_abi.
11835 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11836 (amd64obsd_init_abi): Call obsd_init_abi.
11837 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11838 obsd-tdep.c to gdb_target_obs.
11839
49caec94
JM
118402014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11841
11842 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11843 double float arguments to 16-byte in the argument slots.
11844
e1402065
DE
118452014-02-11 Doug Evans <xdje42@gmail.com>
11846
11847 * configure.ac: Don't crash if pkg-config is not found and guile
11848 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11849 in guile checks.
11850 * configure: Regenerate.
11851
edcc890f
YQ
118522014-02-11 Yao Qi <yao@codesourcery.com>
11853
11854 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11855 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11856 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11857 * gnu-nat.c (gnu_xfer_memory): Likewise.
11858 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11859 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11860 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11861 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11862
9b409511
YQ
118632014-02-11 Yao Qi <yao@codesourcery.com>
11864
11865 * target.h (enum target_xfer_error): Rename to ...
11866 (enum target_xfer_status): ... it. New. All users updated.
11867 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11868 New.
11869 (TARGET_XFER_STATUS_ERROR_P): New macro.
11870 (target_xfer_error_to_string): Remove declaration.
11871 (target_xfer_status_to_string): Declare.
11872 (target_xfer_partial_ftype): Adjust it.
11873 (struct target_ops) <to_xfer_partial>: Return
11874 target_xfer_status. Add argument xfered_len. Update
11875 comments.
11876 * target.c (target_xfer_error_to_string): Rename to ...
11877 (target_xfer_status_to_string): ... it. New. All callers
11878 updated.
11879 (target_read_live_memory): Likewise. Call target_xfer_partial
11880 instead of target_read.
11881 (memory_xfer_live_readonly_partial): Return
11882 target_xfer_status. Add argument xfered_len.
11883 (raw_memory_xfer_partial): Likewise.
11884 (memory_xfer_partial_1): Likewise.
11885 (memory_xfer_partial): Likewise.
11886 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11887 properly. Update debug message.
11888 (default_xfer_partial, current_xfer_partial): Likewise.
11889 (target_write_partial): Likewise.
11890 (target_read_partial): Likewise. All callers updated.
11891 (read_whatever_is_readable): Likewise.
11892 (target_write_with_progress): Likewise.
11893 (target_read_alloc_1): Likewise.
11894
11895 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11896 * auxv.c (procfs_xfer_auxv): Likewise.
11897 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11898 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11899 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11900 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11901 * corefile.c (read_memory): Adjust.
11902 * corelow.c (core_xfer_partial): Likewise.
11903 * ctf.c (ctf_xfer_partial): Likewise.
11904 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11905 updated.
11906 (darwin_xfer_partial): Likewise.
11907 * exec.c (section_table_xfer_memory_partial): Likewise. All
11908 callers updated.
11909 (exec_xfer_partial): Likewise.
11910 * exec.h (section_table_xfer_memory_partial): Update
11911 declaration.
11912 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11913 negative.
11914 (gnu_xfer_partial): Likewise.
11915 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11916 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11917 (ia64_hpux_xfer_solib_got): Likewise.
11918 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11919 type of 'partial_len' to ULONGEST.
11920 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11921 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11922 (linux_nat_xfer_partial): Likewise.
11923 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11924 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11925 * monitor.c (monitor_xfer_memory): Likewise.
11926 (monitor_xfer_partial): Likewise.
11927 * procfs.c (procfs_xfer_partial): Likewise.
11928 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11929 * record-full.c (record_full_xfer_partial): Likewise.
11930 (record_full_core_xfer_partial): Likewise.
11931 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11932 (gdbsim_xfer_partial): Likewise.
11933 * remote.c (remote_write_bytes_aux): Likewise. All callers
11934 updated.
11935 (remote_write_bytes, remote_read_bytes): Likewise. All
11936 callers updated.
11937 (remote_flash_erase): Likewise. All callers updated.
11938 (remote_write_qxfer): Likewise. All callers updated.
11939 (remote_read_qxfer): Likewise. All callers updated.
11940 (remote_xfer_partial): Likewise.
11941 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11942 (rs6000_xfer_shared_libraries): Likewise.
11943 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11944 (sol_thread_xfer_partial): Likewise.
11945 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11946 (sparc_xfer_partial): Likewise.
11947 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11948 updated.
11949 (spu_xfer_partial): Likewise.
11950 * spu-multiarch.c (spu_xfer_partial): Likewise.
11951 * tracepoint.c (tfile_xfer_partial): Likewise.
11952 * windows-nat.c (windows_xfer_memory): Likewise.
11953 (windows_xfer_shared_libraries): Likewise.
11954 (windows_xfer_partial): Likewise.
11955 * valprint.c: Replace 'target_xfer_error' with
11956 'target_xfer_status' in comments.
11957
a8e63083
JB
119582014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11959
11960 Checked in by Joel Brobecker <brobecker@adacore.com>.
11961 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11962
e86b67d3
JB
119632014-02-11 Joel Brobecker <brobecker@adacore.com>
11964
11965 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11966 function parameters.
11967
4b7d1f7f
WN
119682014-02-10 Will Newton <will.newton@linaro.org>
11969
11970 * elfread.c (elf_rel_plt_read): Look for a .got section if
11971 looking up .got.plt fails.
11972 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11973 on address passed to elf_gnu_ifunc_record_cache.
11974 (elf_gnu_ifunc_resolve_addr): Likewise.
11975 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11976
961842b2
JM
119772014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11978
11979 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11980 (X_RETTURN): New macro.
11981 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11982
11983 * sparc64-tdep.c (sparc64_init_abi): Hook
11984 sparc_in_function_epilogue_p.
11985
3f03e7b1
GB
119862014-02-10 Gary Benson <gbenson@redhat.com>
11987
11988 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11989 Rename name_matcher to symbol_matcher.
11990
96f861ef
GB
119912014-02-10 Gary Benson <gbenson@redhat.com>
11992
11993 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11994 Use expand_symtabs_file_matcher_ftype and
11995 expand_symtabs_symbol_matcher_ftype.
11996
ee01b665
JB
119972014-02-10 Joel Brobecker <brobecker@adacore.com>
11998
11999 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12000 (struct ada_symbol_cache): New.
12001 (ada_free_symbol_cache): Forward declare.
12002 (struct ada_pspace_data): New.
12003 (ada_pspace_data_handle): New static global.
12004 (get_ada_pspace_data, ada_pspace_data_cleanup)
12005 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12006 (cache_space, cache): Delete, now folded inside struct
12007 ada_pspace_data.
12008 (ada_get_symbol_cache): New function.
12009 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12010 implementation.
12011 (_initialize_ada_language): Remove initialization of cache_space.
12012 Move call to observer_attach_inferior_exit up, grouping it
12013 with the other observer registrations inside this function.
12014 Rename command to be more general. Add call to
12015 register_program_space_data_with_cleanup.
12016
143adbbf
JB
120172014-02-10 Joel Brobecker <brobecker@adacore.com>
12018
12019 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12020 ada_new_objfile_observer.
12021 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12022 (_initialize_tasks): Update uses of ada_new_objfile_observer
12023 and ada_tasks_normal_stop_observer.
12024
aa4fb036
JB
120252014-02-10 Joel Brobecker <brobecker@adacore.com>
12026
12027 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12028 returned by the 'Length attribute to integer.
12029
9dee8cc6
JB
120302014-02-10 Joel Brobecker <brobecker@adacore.com>
12031
12032 * ada-lang.c (_initialize_ada_language): Initialize
12033 cache_space obstack.
12034
3d9434b5
JB
120352014-02-10 Joel Brobecker <brobecker@adacore.com>
12036
12037 * ada-lang.c (HASH_SIZE): New macro.
12038 (struct cache_entry): New type.
12039 (cache_space, cache): New static globals.
12040 (ada_clear_symbol_cache, find_entry): New functions.
12041 (lookup_cached_symbol, cache_symbol): Implement.
12042 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12043 (_initialize_ada_language): Attach ada_new_objfile_observer
12044 and ada_free_objfile_observer.
12045
f0c5f9b2
JB
120462014-02-10 Joel Brobecker <brobecker@adacore.com>
12047
12048 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12049 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12050 struct block * parameter.
12051 (ada_lookup_symbol_list_worker): Constify local variable "block".
12052 Remove cast which is no longer necessary.
12053
ed3ef339
DE
120542014-02-10 Doug Evans <xdje42@gmail.com>
12055
12056 Add Guile as an extension language.
12057 * NEWS: Mention Guile scripting.
12058 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12059 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12060 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12061 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12062 (CLIBS): Add GUILE_LIBS.
12063 (install-guile): New rule.
12064 (guile.o): New rule.
12065 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12066 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12067 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12068 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12069 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12070 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12071 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12072 * configure.ac: New option --with-guile.
12073 * configure: Regenerate.
12074 * config.in: Regenerate.
12075 * auto-load.c: Remove #include "python/python.h". Add #include
12076 "gdb/section-scripts.h".
12077 (source_section_scripts): Handle Guile scripts.
12078 (_initialize_auto_load): Add name of Guile objfile script to
12079 scripts-directory help text.
12080 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12081 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12082 (struct breakpoint): New member scm_bp_object.
12083 * defs.h (enum command_control_type): New value guile_control.
12084 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12085 "extension.h".
12086 (show_user): Update comment.
12087 (_initialize_cli_cmds): Update help text for "show user". Update help
12088 text for max-user-call-depth.
12089 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12090 "extension.h".
12091 (multi_line_command_p): Add guile_control.
12092 (print_command_lines): Handle guile_control.
12093 (execute_control_command, recurse_read_control_structure): Ditto.
12094 (process_next_line): Recognize "guile" commands.
12095 * disasm.c (gdb_disassemble_info): Make non-static.
12096 * disasm.h: #include "dis-asm.h".
12097 (struct gdbarch): Add forward decl.
12098 (gdb_disassemble_info): Declare.
12099 * extension.c: #include "guile/guile.h".
12100 (extension_languages): Add guile.
12101 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12102 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12103 * gdbtypes.c (get_unsigned_type_max): New function.
12104 (get_signed_type_minmax): New function.
12105 * gdbtypes.h (get_unsigned_type_max): Declare.
12106 (get_signed_type_minmax): Declare.
12107 * guile/README: New file.
12108 * guile/guile-internal.h: New file.
12109 * guile/guile.c: New file.
12110 * guile/guile.h: New file.
12111 * guile/scm-arch.c: New file.
12112 * guile/scm-auto-load.c: New file.
12113 * guile/scm-block.c: New file.
12114 * guile/scm-breakpoint.c: New file.
12115 * guile/scm-disasm.c: New file.
12116 * guile/scm-exception.c: New file.
12117 * guile/scm-frame.c: New file.
12118 * guile/scm-gsmob.c: New file.
12119 * guile/scm-iterator.c: New file.
12120 * guile/scm-lazy-string.c: New file.
12121 * guile/scm-math.c: New file.
12122 * guile/scm-objfile.c: New file.
12123 * guile/scm-ports.c: New file.
12124 * guile/scm-pretty-print.c: New file.
12125 * guile/scm-safe-call.c: New file.
12126 * guile/scm-string.c: New file.
12127 * guile/scm-symbol.c: New file.
12128 * guile/scm-symtab.c: New file.
12129 * guile/scm-type.c: New file.
12130 * guile/scm-utils.c: New file.
12131 * guile/scm-value.c: New file.
12132 * guile/lib/gdb.scm: New file.
12133 * guile/lib/gdb/boot.scm: New file.
12134 * guile/lib/gdb/experimental.scm: New file.
12135 * guile/lib/gdb/init.scm: New file.
12136 * guile/lib/gdb/iterator.scm: New file.
12137 * guile/lib/gdb/printing.scm: New file.
12138 * guile/lib/gdb/types.scm: New file.
12139 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12140 (VPATH): Add $(GUILE_SRCDIR).
12141 (GUILE_DIR): New variable.
12142 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12143 (all): Add stamp-guile dependency.
12144 (stamp-guile): New rule.
12145 (clean-guile, install-guile, uninstall-guile): New rules.
12146 (install-only): Add install-guile dependency.
12147 (uninstall): Add uninstall-guile dependency.
12148 (clean): Add clean-guile dependency.
12149
ac020ec5
DE
121502014-02-09 Doug Evans <xdje42@gmail.com>
12151
12152 Revert this patch (which I approved, mea culpa).
12153
12154 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12155
12156 * Makefile.in (all-lib): Remove.
12157 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12158
2a081c59
JK
121592014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12160
12161 Fix Python stack corruption.
12162 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12163 gdb_py_longest.
12164
0a6bd22d
MK
121652014-02-08 Mark Kettenis <kettenis@gnu.org>
12166
12167 * Makefile.in (all-lib): Remove.
12168 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12169
1a860409
DE
121702014-02-07 Doug Evans <dje@google.com>
12171
12172 * extension-priv.h (extension_language_script_ops): Add comment.
12173 (extension_language_ops): Add comment.
caf5a491 12174 (active_ext_lang_state): Fix typo in comment.
1a860409 12175
d137e6dc
PA
121762014-02-07 Pedro Alves <palves@redhat.com>
12177
0dcb32c3 12178 PR breakpoints/16292
d137e6dc
PA
12179 * infrun.c (handle_signal_stop) <signal arrives while stepping
12180 over a breakpoint>: Switch back to the stepping thread.
12181
ce6d0892
YQ
121822014-02-07 Yao Qi <yao@codesourcery.com>
12183
12184 * target.c (target_xfer_partial): Return zero if LEN is zero.
12185
2ed4b548
YQ
121862014-02-07 Yao Qi <yao@codesourcery.com>
12187
12188 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12189 (ld_so_xfer_auxv): Likewise.
12190 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12191 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12192 * corelow.c (core_xfer_partial): Likewise.
12193 * ctf.c (ctf_xfer_partial): Likewise.
12194 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12195 (darwin_xfer_partial): Likewise.
12196 * exec.c (exec_xfer_partial): Likewise.
12197 * gnu-nat.c (gnu_xfer_partial): Likewise.
12198 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12199 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12200 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12201 * linux-nat.c (linux_xfer_siginfo): Likewise.
12202 (linux_proc_xfer_spu): Likewise.
12203 * procfs.c (procfs_xfer_partial): Likewise.
12204 * record-full.c (record_full_xfer_partial): Likewise.
12205 (record_full_core_xfer_partial): Likewise.
12206 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12207 * remote.c (remote_write_qxfer): Likewise.
12208 (remote_write_qxfer, remote_read_qxfer): Likewise.
12209 (remote_xfer_partial): Likewise.
12210 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12211 (rs6000_xfer_shared_libraries): Likewise.
12212 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12213 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12214 (spu_xfer_partial): Likewise.
12215 * target.c (memory_xfer_partial_1): Likewise.
12216 * tracepoint.c (tfile_xfer_partial): Likewise.
12217 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12218 (windows_xfer_partial): Likewise.
12219
c09f20e4
YQ
122202014-02-07 Yao Qi <yao@codesourcery.com>
12221
12222 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12223 comments.
12224 (core_xfer_shared_libraries_aix): Likewise.
12225 * gdbarch.c, gdbarch.h: Regenerated.
12226 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12227 ULONGEST. Change 'len_avail' type to ULONGEST.
12228 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12229 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12230 declaration.
12231 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12232
8635b3bf
YQ
122332014-02-07 Yao Qi <yao@codesourcery.com>
12234
12235 * corefile.c (memory_error): Get 'exception' from ERR and pass
12236 'exception' to throw_error.
12237
6dddc817
DE
122382014-02-06 Doug Evans <xdje42@gmail.com>
12239
12240 * configure.ac (libpython checking): Remove all but python.o from
12241 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12242 * configure: Regenerate.
12243
12244 * Makefile.in (SFILES): Add extension.c.
12245 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12246 (COMMON_OBS): Add extension.o.
12247 * extension.h: New file.
12248 * extension-priv.h: New file.
12249 * extension.c: New file.
12250
12251 * python/python-internal.h: #include "extension.h".
12252 (gdbpy_auto_load_enabled): Declare.
12253 (gdbpy_apply_val_pretty_printer): Declare.
12254 (gdbpy_apply_frame_filter): Declare.
12255 (gdbpy_preserve_values): Declare.
12256 (gdbpy_breakpoint_cond_says_stop): Declare.
12257 (gdbpy_breakpoint_has_cond): Declare.
12258 (void source_python_script_for_objfile): Delete.
12259 * python/python.c: #include "extension-priv.h".
12260 Delete inclusion of "observer.h".
12261 (extension_language_python): Moved here and renamed from
12262 script_language_python in py-auto-load.c.
12263 Redefined to be of type extension_language_defn.
12264 (python_extension_script_ops): New global.
12265 (python_extension_ops): New global.
12266 (struct python_env): New member previous_active.
12267 (restore_python_env): Call restore_active_ext_lang.
12268 (ensure_python_env): Call set_active_ext_lang.
12269 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12270 New arg extlang.
12271 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12272 New arg extlang.
12273 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12274 New arg extlang.
12275 (gdbpy_eval_from_control_command): Renamed from
12276 eval_python_from_control_command, made static. New arg extlang.
12277 (gdbpy_source_script) Renamed from source_python_script, made static.
12278 New arg extlang.
12279 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12280 result to int. New arg extlang.
12281 (gdbpy_source_objfile_script): Renamed from
12282 source_python_script_for_objfile, made static. New arg extlang.
12283 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12284 static. New args extlang, extlang_printers. Change result type to
12285 "void".
12286 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12287 static. New arg extlang. Rename arg printers to extlang_printers
12288 and change type to ext_lang_type_printers *.
12289 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12290 static. Replace argument arg with extlang, extlang_printers.
12291 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12292 (!HAVE_PYTHON, source_python_script): Delete.
12293 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12294 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12295 (!HAVE_PYTHON, start_type_printers): Delete.
12296 (!HAVE_PYTHON, apply_type_printers): Delete.
12297 (!HAVE_PYTHON, free_type_printers): Delete.
12298 (_initialize_python): Delete call to observer_attach_before_prompt.
12299 (finalize_python): Set/restore active extension language.
12300 (gdbpy_finish_initialization) Renamed from
12301 finish_python_initialization, made static. New arg extlang.
12302 (gdbpy_initialized): New function.
12303 * python/python.h: #include "extension.h". Delete #include
12304 "value.h", "mi/mi-cmds.h".
12305 (extension_language_python): Declare.
12306 (GDBPY_AUTO_FILE_NAME): Delete.
12307 (enum py_bt_status): Moved to extension.h and renamed to
12308 ext_lang_bt_status.
12309 (enum frame_filter_flags): Moved to extension.h.
12310 (enum py_frame_args): Moved to extension.h and renamed to
12311 ext_lang_frame_args.
12312 (finish_python_initialization): Delete.
12313 (eval_python_from_control_command): Delete.
12314 (source_python_script): Delete.
12315 (apply_val_pretty_printer): Delete.
12316 (apply_frame_filter): Delete.
12317 (preserve_python_values): Delete.
12318 (gdbpy_script_language_defn): Delete.
12319 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12320 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12321
12322 * auto-load.c: #include "extension.h".
12323 (GDB_AUTO_FILE_NAME): Delete.
12324 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12325 (script_language_gdb): Delete, moved to extension.c and renamed to
12326 extension_language_gdb.
12327 (source_gdb_script_for_objfile): Delete.
12328 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12329 (loaded_script): Change type of language member to
12330 struct extension_language_defn *.
12331 (init_loaded_scripts_info): Initialize
12332 unsupported_script_warning_printed.
12333 (maybe_add_script): Make static. Change type of language arg to
12334 struct extension_language_defn *.
12335 (clear_section_scripts): Reset unsupported_script_warning_printed.
12336 (auto_load_objfile_script_1): Rewrite to use extension language API.
12337 (auto_load_objfile_script): Make public. Remove support-compiled-in
12338 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12339 (source_section_scripts): Rewrite to use extension language API.
12340 (load_auto_scripts_for_objfile): Rewrite to use
12341 auto_load_scripts_for_objfile.
12342 (collect_matching_scripts_data): Change type of language member to
12343 struct extension_language_defn *.
12344 (auto_load_info_scripts): Change type of language arg to
12345 struct extension_language_defn *.
12346 (unsupported_script_warning_print): New function.
12347 (script_not_found_warning_print): Make static.
12348 (_initialize_auto_load): Rewrite construction of scripts-directory
12349 help.
12350 * auto-load.h (struct objfile): Add forward decl.
12351 (struct script_language): Delete.
12352 (struct auto_load_pspace_info): Add forward decl.
12353 (struct extension_language_defn): Add forward decl.
12354 (maybe_add_script): Delete.
12355 (auto_load_objfile_script): Declare.
12356 (script_not_found_warning_print): Delete.
12357 (auto_load_info_scripts): Update prototype.
12358 (auto_load_gdb_scripts_enabled): Declare.
12359 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12360 auto_load_python_scripts_enabled and made public.
12361 (script_language_python): Delete, moved to python.c.
12362 (gdbpy_script_language_defn): Delete.
12363 (info_auto_load_python_scripts): Update to use
12364 extension_language_python.
12365
12366 * breakpoint.c (condition_command): Replace call to
12367 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12368 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12369 with call to breakpoint_ext_lang_cond_says_stop.
12370 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12371 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12372 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12373 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12374 New arg slang.
12375 (local_setattro): Print name of extension language with existing
12376 stop condition.
12377
12378 * valprint.c (val_print, value_print): Update to call
12379 apply_ext_lang_val_pretty_printer.
12380 * cp-valprint.c (cp_print_value): Update call to
12381 apply_ext_lang_val_pretty_printer.
12382 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12383 (gdbpy_apply_val_pretty_printer): Renamed from
12384 apply_val_pretty_printer. New arg extlang.
12385 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12386
12387 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12388 extension language API.
12389 * cli/cli-script.c (execute_control_command): Update to call
12390 eval_ext_lang_from_control_command.
12391
12392 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12393 enum ext_lang_bt_status values. Update call to
12394 apply_ext_lang_frame_filter.
12395 (mi_cmd_stack_list_locals): Ditto.
12396 (mi_cmd_stack_list_args): Ditto.
12397 (mi_cmd_stack_list_variables): Ditto.
12398 * mi/mi-main.c: Delete #include "python/python-internal.h".
12399 Add #include "extension.h".
12400 (mi_cmd_list_features): Replace reference to python internal variable
12401 gdb_python_initialized with call to ext_lang_initialized_p.
12402
12403 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12404 Update to use enum ext_lang_frame_args. Update to call
12405 apply_ext_lang_frame_filter.
12406 * python/py-framefilter.c (extract_sym): Update to use enum
12407 ext_lang_bt_status.
12408 (extract_value, py_print_type, py_print_value): Ditto.
12409 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12410 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12411 (py_print_frame): Ditto.
12412 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12413 New arg extlang. Update to use enum ext_lang_bt_status.
12414
12415 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12416 finish_python_initialization. Replace with call to
12417 finish_ext_lang_initialization.
12418
12419 * typeprint.c (do_free_global_table): Update to call
12420 free_ext_lang_type_printers.
12421 (create_global_typedef_table): Update to call
12422 start_ext_lang_type_printers.
12423 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12424 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12425 (type_print_options): Change type of global_printers from "void *"
12426 to "struct ext_lang_type_printers *".
12427
12428 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12429 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12430 (gdbpy_preserve_values): Renamed from preserve_python_values.
12431 New arg extlang.
12432 (!HAVE_PYTHON, preserve_python_values): Delete.
12433
12434 * utils.c (quit_flag): Delete, moved to extension.c.
12435 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12436 extension.c.
12437
12438 * eval.c: Delete #include "python/python.h".
12439 * main.c: Delete #include "python/python.h".
12440
12441 * defs.h: Update comment.
12442
6af79985
JB
124432014-02-06 Joel Brobecker <brobecker@adacore.com>
12444
12445 GDB 7.7 released.
12446
12c5175d
MK
124472014-02-05 Mark Kettenis <kettenis@gnu.org>
12448
12449 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12450 defined.
12451
8dc5b319
YQ
124522014-02-05 Yao Qi <yao@codesourcery.com>
12453
12454 * remote.c (remote_pass_signals): Remove local 'buf' and use
12455 rs->buf.
12456 (remote_program_signals): Likewise.
12457
de7b2893
YQ
124582014-02-05 Yao Qi <yao@codesourcery.com>
12459
12460 * ctf.c: Include "inferior.h" and "gdbthread.h".
12461 (CTF_PID): A new macro.
12462 (ctf_open): Call inferior_appeared and add_thread_silent.
12463 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12464 (ctf_thread_alive): New function.
12465 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12466
66d032ac
YQ
124672014-02-05 Yao Qi <yao@codesourcery.com>
12468
12469 Revert this patch:
12470
12471 2013-05-24 Yao Qi <yao@codesourcery.com>
12472
12473 * tracepoint.c (TFILE_PID): Remove.
12474 (tfile_open): Don't add thread and inferior.
12475 (tfile_close): Don't set 'inferior_ptid'. Don't call
12476 exit_inferior_silent.
12477 (tfile_thread_alive): Remove.
12478 (init_tfile_ops): Don't set field 'to_thread_alive' of
12479 tfile_ops.
12480
f4ccffad
CE
124812014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12482
12483 * remote.c (remote_start_remote): Call remote_check_symbols even
12484 if only symbol-file (not file) has been given.
12485
591a12a1
UW
124862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12487
12488 * gdbarch.sh (skip_entrypoint): New callback.
12489 * gdbarch.c, gdbarch.h: Regenerate.
12490 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12491 * infrun.c (fill_in_stop_func): Likewise.
12492 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12493 (ppc_elfv2_elf_make_msymbol_special): New function.
12494 (ppc_elfv2_skip_entrypoint): Likewise.
12495 (ppc_linux_init_abi): Install them for ELFv2.
12496
cc0e89c5
UW
124972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12498
12499 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12500 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12501 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12502 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12503 structures returned in GPRs.
12504
52f548e4
UW
125052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12506
12507 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12508 offset to the stack parameter list for the ELFv2 ABI.
12509
d4094b6a
UW
125102014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12511
12512 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12513 set_gdbarch_convert_from_func_ptr_addr and
12514 set_gdbarch_elf_make_msymbol_special for ELFv1.
12515 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12516 function descriptors on ELFv1.
12517 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12518 set up r12 at function entry.
12519
cd453cd0
UW
125202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12521
12522 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12523 (struct gdbarch_tdep): New member elf_abi.
12524
12525 * rs6000-tdep.c: Include "elf/ppc64.h".
12526 (rs6000_gdbarch_init): Detect ELF ABI version.
12527
0ff3e01f
UW
125282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12529
12530 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12531 within a register pair holding a DFP 128-bit value on little-endian.
12532 (ppc64_sysv_abi_return_value_base): Likewise.
12533 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12534 (dfp_pseudo_register_write): Likewise.
12535
5b757e5d
UW
125362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12537
12538 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12539 offset on little-endian when passing _Decimal32.
12540 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12541
084ee545
UW
125422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12543
12544 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12545 of the overlapped FP register within the VSX register on little-
12546 endian platforms.
12547 (efpr_pseudo_register_write): Likewise.
12548
d63167af
UW
125492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12550
12551 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12552 offset on little-endian when passing small structures.
12553
e765b44c
UW
125542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12555
12556 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12557 (struct ppc64_sysv_argpos): New data structure.
12558 (ppc64_sysv_abi_push_float): Remove.
12559 (ppc64_sysv_abi_push_val): New function.
12560 (ppc64_sysv_abi_push_integer): Likewise.
12561 (ppc64_sysv_abi_push_freg): Likewise.
12562 (ppc64_sysv_abi_push_vreg): Likewise.
12563 (ppc64_sysv_abi_push_param): Likewise.
12564 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12565 (ppc64_sysv_abi_return_value_base): New function.
12566 (ppc64_sysv_abi_return_value): Refactor to use it.
12567
36c24d95
UW
125682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12569
12570 * NEWS: Document new target powerpc64le-*-linux*.
12571
26fd9228
MK
125722014-02-04 Mark Kettenis <kettenis@gnu.org>
12573
12574 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12575 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12576 core dumps.
12577 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12578 register set used in ELF core dumps. Add floating-point register set.
12579
c5bb7362
KB
125802014-02-03 Kevin Buettner <kevinb@redhat.com>
12581
74228e77 12582 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12583 dwarf2_to_gdb[] table using symbolic constants. Adjust
12584 penultimate entry from number representing the PC register
12585 to symbolic constant representing the MDR register. Add
12586 constant for the PC register to the end of the table.
12587
af09351e
MK
125882014-02-03 Mark Kettenis <kettenis@gnu.org>
12589
12590 * bsd-kvm.c: Include <sys/param.h>
12591
8507e05d
MK
125922014-02-03 Mark Kettenis <kettenis@gnu.org>
12593
12594 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12595
ae56bfb8
JB
125962014-01-31 Joel Brobecker <brobecker@adacore.com>
12597
12598 * ada-lang.h (clear_ada_sym_cache): Delete.
12599
718ee4dc
UW
126002014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12601
12602 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12603
401e27fd
JM
126042014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12605
12606 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12607 the sigreturn register save area only if the syscall is
12608 sigreturn.
12609
a7c88acd
JB
126102014-01-29 Joel Brobecker <brobecker@adacore.com>
12611
12612 * valops.c (value_slice): Minor reformatting.
12613
fa0079ea
UW
126142014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12615
12616 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12617
c6044dd1
JB
126182014-01-28 Joel Brobecker <brobecker@adacore.com>
12619
12620 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12621 New static globals.
12622 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12623 (ada_ignore_descriptive_types_p): New static global.
12624 (find_parallel_type_by_descriptive_type): Return immediately
12625 if ada_ignore_descriptive_types_p is set.
12626 (_initialize_ada_language): Register new commands "maintenance
12627 set ada", "maintenance show ada", "maintenance set ada
12628 ignore-descriptive-types" and "maintenance show ada
12629 ignore-descriptive-types".
12630 * NEWS: Add entry for new "maint ada set/show
12631 ignore-descriptive-types" commands.
12632
568e808b
MM
126332014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12634
12635 * record-btrace.c (record_btrace_close): Call btrace_teardown
12636 for all threads.
12637
467d141b
JB
126382014-01-27 Joel Brobecker <brobecker@adacore.com>
12639
12640 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12641 "ui-out.h".
12642
fb151210
JB
126432014-01-27 Joel Brobecker <brobecker@adacore.com>
12644
12645 * ada-typeprint (type_is_full_subrange_of_target_type):
12646 New function.
12647 (print_range): Add parameter bounds_prefered_p. If not set,
12648 try printing range types using the name of their base type.
12649 (print_range_type): Add parameter bounds_prefered_p.
12650 Use it in call to print_range.
12651 (print_array_type, ada_print_type): Update calls to print_range
12652 and print_range_type.
12653
aba02109
JB
126542014-01-27 Joel Brobecker <brobecker@adacore.com>
12655
12656 * ada-typeprint.c (print_array_type, print_choices, print_range)
12657 (print_range_bound, print_dynamic_range_bound, print_range_type):
12658 Remove declaration.
12659
e62e21fd
JB
126602014-01-27 Joel Brobecker <brobecker@adacore.com>
12661
12662 * ada-typeprint.c (print_range): Add missing empty line
12663 after local declaration.
12664
859cf5d1
JB
126652014-01-27 Joel Brobecker <brobecker@adacore.com>
12666
12667 * ada-valprint.c (print_optional_low_bound): Get index_type's
12668 target type for as long as it is a TYPE_CODE_RANGE.
12669
25790f6f
JB
126702014-01-27 Joel Brobecker <brobecker@adacore.com>
12671
12672 * procfs.c (procfs_make_note_section): Remove assertion and
12673 associated comment.
12674
6b6aa828
YQ
126752014-01-24 Yao Qi <yao@codesourcery.com>
12676
12677 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12678 * corelow.c (get_core_siginfo): Likewise.
12679
5d6df423
YQ
126802014-01-24 Yao Qi <yao@codesourcery.com>
12681
12682 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12683 ULONGEST. Don't check 'len' is negative.
12684 (remote_write_bytes): Change type of 'len' to ULONGEST.
12685
83b645b8
TT
126862014-01-23 Tom Tromey <tromey@redhat.com>
12687
12688 PR python/16485:
12689 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12690 Handle exception from frame.block.
12691 (FrameVars.fetch_frame_locals): Likewise.
12692
0740f8d8
TT
126932014-01-23 Tom Tromey <tromey@redhat.com>
12694
12695 PR python/16487:
12696 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12697 on a NULL pointer. Move "goto error" to correct place.
12698
21909fa1
TT
126992014-01-23 Tom Tromey <tromey@redhat.com>
12700
12701 PR python/16491:
12702 * python/py-framefilter.c (apply_frame_filter): Call
12703 ensure_python_env after computing gdbarch.
12704
17fde6d0
YQ
127052014-01-23 Yao Qi <yao@codesourcery.com>
12706
12707 * target.c (raw_memory_xfer_partial): Change argument type
12708 from void * to gdb_byte *.
12709 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12710
87ce2a04
DE
127112014-01-22 Doug Evans <dje@google.com>
12712
12713 New gdbserver option --debug-format=timestamp.
12714 * NEWS: Mention it.
12715
237b092b
AA
127162014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12717
12718 * syscalls/s390x-linux.xml: New file.
12719 * syscalls/s390-linux.xml: New file.
12720 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12721 (XML_SYSCALL_FILENAME_S390X): Likewise.
12722 (op_svc): New enum value for SVC opcode.
12723 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12724 (s390_linux_get_syscall_number): New function.
12725 (s390_gdbarch_init): Register '*get_syscall_number' and the
12726 syscall xml file name.
12727 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12728 "s390-linux.xml" and "s390x-linux.xml".
12729 * NEWS: Announce new feature.
12730
54bff650
BS
127312014-01-22 Baruch Siach <baruch@tkos.co.il>
12732
12733 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12734
14e361d7
PA
127352014-01-22 Pedro Alves <palves@redhat.com>
12736
12737 * xtensa-config.c: Include defs.h.
12738
46bbb3ed
JB
127392014-01-22 Joel Brobecker <brobecker@adacore.com>
12740
12741 * common/common-utils.h: Add "ARI:" comment beside __func__
12742 reference.
12743
3a80edfc
JB
127442014-01-22 Joel Brobecker <brobecker@adacore.com>
12745
12746 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12747 documentation a bit.
12748
4869db5e
RM
127492014-01-21 Roland McGrath <mcgrathr@google.com>
12750
12751 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12752 * configure: Regenerate.
12753 * aclocal.m4: Regenerate.
12754 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12755 New substituted variables.
12756 (install-strip): New target.
12757 (INSTALL_SCRIPT): New substituted variable.
12758 (FLAGS_TO_PASS): Add it.
12759 (install-only): Use $(INSTALL_SCRIPT) rather than
12760 $(INSTALL_PROGRAM) for gcore.
12761
9ea4267d
TT
127622014-01-20 Tom Tromey <tromey@redhat.com>
12763
12764 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12765 together.
12766
1f2bdf09
TT
127672014-01-20 Tom Tromey <tromey@redhat.com>
12768
12769 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12770 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12771 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12772 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12773 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12774 (struct cmd_list_element) <flags>: Remove.
12775 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12776 doc_allocated>: New fields.
12777 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12778 bitfields.
12779 * maint.c (maintenance_do_deprecate): Update.
12780 * top.c (execute_command): Update.
12781
e671835b
BS
127822014-01-20 Baruch Siach <baruch@tkos.co.il>
12783
12784 * xtensa-linux-nat.c: Include asm/ptrace.h.
12785
50367cd2
IB
127862014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12787
12788 * Makefile.in (SFILES): Add d-support.c.
12789 (COMMON_OBS): Add d-support.o.
12790 * d-lang.h (d_parse_symbol): Add comment, now defined in
12791 d-support.c.
12792 * d-lang.c (parse_call_convention)
12793 (parse_attributes, parse_function_types)
12794 (parse_function_args, parse_type, parse_identifier)
12795 (call_convention_p, d_parse_symbol): Move functions to ...
12796 * d-support.c: ... New file.
12797
ec9f644a
IB
127982014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12799
12800 * d-lang.h (d_parse_symbol): Add declaration.
12801 * d-lang.c (extract_identifiers)
12802 (extract_type_info): Remove functions.
12803 (parse_call_convention, parse_attributes)
12804 (parse_function_types, parse_function_args)
12805 (parse_type, parse_identifier, call_convention_p)
12806 (d_parse_symbol): New functions.
12807 (d_demangle): Use d_parse_symbol to demangle D symbols.
12808
94b1b47e
IB
128092014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12810
12811 * d-lang.h (struct builtin_d_type): New data type.
12812 (builtin_d_type): Add declaration.
12813 * d-lang.c (d_language_arch_info, build_d_types)
12814 (builtin_d_type): New functions.
12815 (enum d_primitive_types): New data type.
12816 (d_language_defn): Change c_language_arch_info to
12817 d_language_arch_info.
12818 (d_type_data): New static variable.
12819 (_initialize_d_language): Initialize d_type_data.
12820
63778547
IB
128212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12822
12823 * d-lang.h (d_main_name): Add declaration.
12824 * d-lang.c (d_main_name): New function.
12825 * symtab.c (find_main_name): Add call to d_main_name.
12826
3271ba66
IB
128272014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12828
12829 * d-lang.c (d_language_defn): Change macro_expansion_c to
12830 macro_expansion_no.
12831
d36b3012
IB
128322014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12833
12834 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12835
c90a6fb7
SDJ
128362014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12837
12838 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12839 gdb_exception" declaration.
12840 * remote.c (getpkt_or_notif_sane): Likewise.
12841
749234e5
DE
128422014-01-17 Doug Evans <dje@google.com>
12843
12844 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12845 function, contents of dirnames_to_char_ptr_vec_append moved here.
12846 (delim_string_to_char_ptr_vec): New function.
12847 (dirnames_to_char_ptr_vec_append): Rewrite.
12848 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12849
df049a58
DE
128502014-01-17 Doug Evans <dje@google.com>
12851
12852 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12853 and moved here ...
12854 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12855 #include "common-utils.h".
12856 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12857 * common/vec.h (VEC_ASSERT_PASS): Update.
12858 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12859 (MACH_CHECK_ERROR): Update.
12860
69f97648
SM
128612014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12862
12863 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12864 comments.
12865 * gdbarch.h: Regenerate.
12866
98b1cfdc
TT
128672014-01-16 Tom Tromey <tromey@redhat.com>
12868
12869 * value.c (struct value) <regnum>: Move earlier.
12870
77a19445
TT
128712014-01-16 Tom Tromey <tromey@redhat.com>
12872
12873 * remote.c (extended_remote_create_inferior): Rename from
12874 extended_remote_create_inferior_1. Add "ops" argument. Remove
12875 old implementation.
12876
62261490
PA
128772014-01-16 Pedro Alves <palves@redhat.com>
12878
12879 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12880 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12881 the backchain.
12882
4d65956b
DE
128832014-01-16 Doug Evans <dje@google.com>
12884
12885 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12886
52834460
MM
128872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12888
12889 * btrace.h (btrace_thread_flag): New.
12890 (struct btrace_thread_info) <flags>: New.
12891 * record-btrace.c (record_btrace_resume_thread)
12892 (record_btrace_find_thread_to_move, btrace_step_no_history)
12893 (btrace_step_stopped, record_btrace_start_replaying)
12894 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12895 (record_btrace_find_resume_thread): New.
12896 (record_btrace_resume, record_btrace_wait): Extend.
12897 (record_btrace_can_execute_reverse): New.
12898 (record_btrace_open): Fail in non-stop mode.
12899 (record_btrace_set_replay): Split into this, ...
12900 (record_btrace_stop_replaying): ... this, ...
12901 (record_btrace_clear_histories): ... and this.
12902 (init_record_btrace_ops): Init to_can_execute_reverse.
12903 * NEWS: Announce it.
12904
118e6252
MM
129052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12906
12907 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12908 (forward_target_decr_pc_after_break)
12909 (target_decr_pc_after_break): New.
12910 * target.c (forward_target_decr_pc_after_break)
12911 (target_decr_pc_after_break): New.
12912 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12913 instead of gdbarch_decr_pc_after_break.
12914 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12915 instead of gdbarch_decr_pc_after_break.
12916 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12917 instead of gdbarch_decr_pc_after_break.
12918 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12919 instead of gdbarch_decr_pc_after_break.
12920 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12921 instead of gdbarch_decr_pc_after_break.
12922 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12923 instead of gdbarch_decr_pc_after_break.
12924
6e07b1d2
MM
129252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12926
12927 * btrace.c: Include regcache.h.
12928 (btrace_add_pc): New.
12929 (btrace_enable): Call btrace_add_pc.
12930 (btrace_is_empty): New.
12931 * btrace.h (btrace_is_empty): New.
12932 * record-btrace.c (require_btrace, record_btrace_info): Call
12933 btrace_is_empty.
12934
969c39fb
MM
129352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12936
12937 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12938 Support delta reads.
12939 (linux_disable_btrace): Change return type.
12940 * common/linux-btrace.h (linux_read_btrace): Change parameters
12941 and return type to allow error reporting. Update users.
12942 (linux_disable_btrace): Change return type. Update users.
12943 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12944 New.
12945 (btrace_error): New.
12946 (btrace_block) <begin>: Comment on BEGIN == 0.
12947 * btrace.c (btrace_compute_ftrace): Start from the end of
12948 the current trace.
12949 (btrace_stitch_trace, btrace_clear_history): New.
12950 (btrace_fetch): Read delta trace, return if replaying.
12951 (btrace_clear): Move clear history code to btrace_clear_history.
12952 (parse_xml_btrace): Throw an error if parsing failed.
12953 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12954 and return type to allow error reporting.
12955 (target_read_btrace): Change parameters and return type to allow
12956 error reporting.
12957 * target.c (target_read_btrace): Update.
12958 * remote.c (remote_read_btrace): Support delta reads. Pass
12959 errors on.
12960 * NEWS: Announce it.
12961
0b722aec
MM
129622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12963
12964 * record.h (record_btrace_frame_unwind)
12965 (record_btrace_tailcall_frame_unwind): New declarations.
12966 * dwarf2-frame: Include record.h
12967 (dwarf2_frame_cfa): Throw an error for btrace frames.
12968 * record-btrace.c: Include hashtab.h.
12969 (btrace_get_bfun_name): New.
12970 (btrace_call_history): Call btrace_get_bfun_name.
12971 (struct btrace_frame_cache): New.
12972 (bfcache): New.
12973 (bfcache_hash, bfcache_eq, bfcache_new): New.
12974 (btrace_get_frame_function): New.
12975 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12976 (record_btrace_frame_this_id): Compute own id.
12977 (record_btrace_frame_prev_register): Provide PC, throw_error
12978 for all other registers.
12979 (record_btrace_frame_sniffer): Detect btrace frames.
12980 (record_btrace_tailcall_frame_sniffer): New.
12981 (record_btrace_frame_dealloc_cache): New.
12982 (record_btrace_frame_unwind): Add new functions.
12983 (record_btrace_tailcall_frame_unwind): New.
12984 (_initialize_record_btrace): Allocate cache.
12985 * btrace.c (btrace_clear): Call reinit_frame_cache.
12986 * NEWS: Announce it.
12987
066ce621
MM
129882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12989
12990 * record-btrace.c (record_btrace_set_replay)
12991 (record_btrace_goto_begin, record_btrace_goto_end)
12992 (record_btrace_goto): New.
12993 (init_record_btrace_ops): Initialize them.
12994 * NEWS: Announce it.
12995
e2887aa3
MM
129962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12997
12998 * record-btrace.c (record_btrace_find_new_threads)
12999 (record_btrace_thread_alive): New.
13000 (init_record_btrace_ops): Initialize to_find_new_threads and
13001 to_thread_alive.
13002
b2f4cfde
MM
130032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13004
13005 * record-btrace.c (record_btrace_resume): New.
13006 (record_btrace_wait): New.
13007 (init_record_btrace_ops): Initialize to_wait and to_resume.
13008
633785ff
MM
130092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13010
13011 * record-btrace.c (record_btrace_xfer_partial)
13012 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13013 (record_btrace_allow_memory_access): New.
13014 (init_record_btrace_ops): Initialize new methods.
13015 * target.c (raw_memory_xfer_partial): Bail out if target reports
13016 that this memory is not available.
13017
3db08215
MM
130182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13019
13020 * target.h (target_ops) <to_insert_breakpoint>
13021 <to_remove_breakpoint>: Add target_ops parameter.
13022 (forward_target_insert_breakpoint): New.
13023 (forward_target_remove_breakpoint): New.
13024 (memory_remove_breakpoint, memory_insert_breakpoint):
13025 Add target_ops parameter.
13026 * target.c (target_insert_breakpoint): Split into this and ...
13027 (forward_target_insert_breakpoint): ... this.
13028 (target_remove_breakpoint): Split into this and ...
13029 (forward_target_remove_breakpoint): ... this.
13030 (debug_to_insert_breakpoint): Add target_ops parameter.
13031 Call forward_target_insert_breakpoint.
13032 (debug_to_remove_breakpoint): Add target_ops parameter.
13033 Call forward_target_remove_breakpoint.
13034 (update_current_target): Do not inherit or default to_insert_breakpoint
13035 and to_remove_breakpoint.
13036 * corelow.c (ignore): Add target_ops parameter.
13037 * exec.c (ignore): Add target_ops parameter.
13038 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13039 Add target_ops parameter.
13040 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13041 Add target_ops parameter.
13042 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13043 Add target_ops parameter.
13044 * record-full.c (record_full_beneath_to_insert_breakpoint)
13045 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13046 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13047 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13048 (record_full_core_remove_breakpoint): Add target_ops parameter.
13049 Update users.
13050 (record_full_beneath_to_insert_breakpoint_ops)
13051 (record_full_beneath_to_remove_breakpoint_ops)
13052 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13053 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13054 tmp_to_remove_breakpoint_ops,
13055 record_full_beneath_to_insert_breakpoint_ops, and
13056 record_full_beneath_to_remove_breakpoint_ops.
13057 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13058 (m32r_remove_breakpoint): Add target_ops parameter.
13059 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13060 Add target_ops parameter.
13061 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13062 Add target_ops parameter.
13063
cecac1ab
MM
130642014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13065 Markus Metzger <markus.t.metzger@intel.com>
13066
13067 * record-btrace.c: Include frame-unwind.h.
13068 (record_btrace_frame_unwind_stop_reason)
13069 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13070 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13071 New.
13072 (init_record_btrace_ops): Install it.
13073
824344ca
MM
130742014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13075
13076 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13077 get_prev_frame_1.
13078
32261e52
MM
130792014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13080
13081 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13082 earlier.
13083
ea001bdc
MM
130842014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13085
13086 * frame-unwind.c: Include target.h.
13087 (frame_unwind_try_unwinder): New function with code from ...
13088 (frame_unwind_find_by_frame): ... here. New variable
13089 unwinder_from_target, call also target_get_unwinder)
13090 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13091 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13092 * target.h (struct target_ops): New fields to_get_unwinder and
13093 to_get_tailcall_unwinder.
13094 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13095
1f3ef581
MM
130962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13097
13098 * record-btrace.c (record_btrace_fetch_registers)
13099 (record_btrace_store_registers)
13100 (record_btrace_to_prepare_to_store): New.
13101 (init_record_btrace_ops): Add the above.
13102
f32dbf8c
MM
131032014-01-16 Tom Tromey <tromey@redhat.com>
13104
13105 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13106 * target.h (struct target_ops) <to_prepare_to_store>: Add
13107 argument.
13108 (target_prepare_to_store): Add argument.
13109 * target.c (debug_to_prepare_to_store): Add argument.
13110 (update_current_target): Update.
13111 * remote.c (remote_prepare_to_store): Add 'self' argument.
13112 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13113 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13114 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13115 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13116 argument.
13117 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13118 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13119 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13120 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13121 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13122
07bbe694
MM
131232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13124
13125 * btrace.h (replay) <replay>: New.
13126 (btrace_is_replaying): New.
13127 * btrace.c (btrace_clear): Free replay iterator.
13128 (btrace_is_replaying): New.
13129 * record-btrace.c (record_btrace_is_replaying): New.
13130 (record_btrace_info): Print insn number if replaying.
13131 (record_btrace_insn_history): Start at replay position.
13132 (record_btrace_call_history): Start at replay position.
13133 (init_record_btrace_ops): Init to_record_is_replaying.
13134
0688d04e
MM
131352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13136
13137 * record-btrace.c (record_btrace_insn_history_range): Include
13138 end.
13139 (record_btrace_insn_history_from): Adjust range.
13140 (record_btrace_call_history_range): Include
13141 end.
13142 (record_btrace_call_history_from): Adjust range.
13143 * NEWS: Announce changes.
13144
8710b709
MM
131452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13146
13147 * record.h (enum record_print_flag)
13148 <record_print_indent_calls>: New.
13149 * record.c (get_call_history_modifiers): Recognize /c modifier.
13150 (_initialize_record): Document /c modifier.
13151 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13152 Reorder fields. Optionally indent the function name. Update
13153 all users.
13154 * NEWS: Announce changes.
13155
d0fa7535
MM
131562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13157
13158 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13159
5de9129b
MM
131602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13161
13162 * btrace.c (ftrace_new_function): Start counting at one.
13163 * record-btrace.c (record_btrace_info): Adjust number of calls
13164 and insns.
13165 * NEWS: Announce it.
13166
7acbe133
MM
131672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13168
13169 * record-btrace.c (btrace_call_history_insn_range): Print
13170 insn range as [begin, end].
13171
23a7fe75
MM
131722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13173
13174 * btrace.h (struct btrace_func_link): New.
13175 (enum btrace_function_flag): New.
13176 (struct btrace_inst): Rename to ...
13177 (struct btrace_insn): ...this. Update all users.
13178 (struct btrace_func) <ibegin, iend>: Remove.
13179 (struct btrace_func_link): New.
13180 (struct btrace_func): Rename to ...
13181 (struct btrace_function): ...this. Update all users.
13182 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13183 (number, level, flags>: New.
13184 (struct btrace_insn_iterator): Rename to ...
13185 (struct btrace_insn_history): ...this.
13186 Update all users.
13187 (struct btrace_insn_iterator, btrace_call_iterator): New.
13188 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13189 (struct btrace_target_info) <begin, end, level>
13190 <insn_history, call_history>: New.
13191 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13192 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13193 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13194 (btrace_call_number, btrace_call_begin, btrace_call_end)
13195 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13196 (btrace_find_function_by_number, btrace_set_insn_history)
13197 (btrace_set_call_history): New.
13198 * btrace.c (btrace_init_insn_iterator)
13199 (btrace_init_func_iterator, compute_itrace): Remove.
13200 (ftrace_print_function_name, ftrace_print_filename)
13201 (ftrace_skip_file): Change
13202 parameter to const.
13203 (ftrace_init_func): Remove.
13204 (ftrace_debug): Use new btrace_function fields.
13205 (ftrace_function_switched): Also consider gaining and
13206 losing symbol information).
13207 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13208 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13209 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13210 New.
13211 (ftrace_new_function): Move. Remove debug print.
13212 (ftrace_update_lines, ftrace_update_insns): New.
13213 (ftrace_update_function): Check for call, ret, and jump.
13214 (compute_ftrace): Renamed to ...
13215 (btrace_compute_ftrace): ...this. Rewritten to compute call
13216 stack.
13217 (btrace_fetch, btrace_clear): Updated.
13218 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13219 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13220 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13221 (btrace_call_number, btrace_call_begin, btrace_call_end)
13222 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13223 (btrace_find_function_by_number, btrace_set_insn_history)
13224 (btrace_set_call_history): New.
13225 * record-btrace.c (require_btrace): Use new btrace thread
13226 info fields.
13227 (record_btrace_info, btrace_insn_history)
13228 (record_btrace_insn_history, record_btrace_insn_history_range):
13229 Use new btrace thread info fields and new iterator.
13230 (btrace_func_history_src_line): Rename to ...
13231 (btrace_call_history_src_line): ...this. Use new btrace
13232 thread info fields.
13233 (btrace_func_history): Rename to ...
13234 (btrace_call_history): ...this. Use new btrace thread info
13235 fields and new iterator.
13236 (record_btrace_call_history, record_btrace_call_history_range):
13237 Use new btrace thread info fields and new iterator.
13238
8372a7cb
MM
132392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13240
13241 * frame.h (frame_id_build_unavailable_stack_special): New.
13242 * frame.c (frame_id_build_unavailable_stack_special): New.
13243
c2170eef
MM
132442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13245
13246 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13247 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13248 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13249 to gdbarch.
13250 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13251 (i386_insn_is_jump, i386_jmp_p): New.
13252 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13253 insn_is_jump to gdbarch.
13254 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13255 * gdbarch.h: Regenerated.
13256 * gdbarch.c: Regenerated.
13257 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13258 (default_insn_is_jump): New.
13259 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13260 (default_insn_is_jump): New.
13261
864089d2
MM
132622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13263
13264 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13265 Change to ...
13266 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13267 (btrace_read_type) <btrace_read_new>: Change to ...
13268 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13269
ed9edfb5
MM
132702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13271
13272 * common/linux-btrace.c (linux_read_btrace): Free trace from
13273 previous iteration.
13274
fbcbc3fd
DE
132752014-01-15 Doug Evans <dje@google.com>
13276
13277 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13278 uint32_t.
13279
3d548a53
TT
132802014-01-15 Tom Tromey <tromey@redhat.com>
13281
13282 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13283 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13284 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13285 (set_objfile_main_name): New function.
13286 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13287 language_of_main>: New fields.
13288 (set_objfile_main_name): Declare.
13289 * symtab.c (find_main_name): Loop over objfiles to find the main
13290 name and language.
13291 (set_main_name): Now static.
13292 (get_main_info): Add comment.
13293 * symtab.h (set_main_name): Don't declare.
13294
32ac0d11
TT
132952014-01-15 Tom Tromey <tromey@redhat.com>
13296
13297 * symtab.c (main_progspace_key): New global.
13298 (struct main_info): New.
13299 (name_of_main, language_of_main): Remove.
13300 (get_main_info, main_info_cleanup): New function.
13301 (set_main_name, main_name, main_language): Use get_main_info.
13302 (_initialize_symtab): Initialize main_progspace_key.
13303
9e6c82ad
TT
133042014-01-15 Tom Tromey <tromey@redhat.com>
13305
13306 * dbxread.c (process_one_symbol): Update.
13307 * dwarf2read.c (read_partial_die): Update.
13308 * symfile.c (set_initial_language): Call main_language.
13309 * symtab.c (language_of_main): Now static.
13310 (set_main_name): Add 'lang' parameter.
13311 (find_main_name): Update.
13312 (main_language): New function.
13313 (symtab_observer_executable_changed): Update.
13314 * symtab.h (set_main_name): Update.
13315 (language_of_main): Remove.
13316 (main_language): Declare.
13317
6ef55de7
TT
133182014-01-15 Tom Tromey <tromey@redhat.com>
13319
13320 * symfile.c (init_entry_point_info): Use new "initialized" field.
13321 Update.
13322 * objfiles.h (struct entry_point) <initialized>: New field.
13323 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13324 (struct objfile) <ei>: ...here. Remove.
13325 * objfiles.c (entry_point_address_query): Update.
13326
53eddfa6
TT
133272014-01-15 Tom Tromey <tromey@redhat.com>
13328
13329 * objfiles.c (entry_point_address_query): Relocate entry point
13330 address.
13331 (objfile_relocate1): Do not relocate entry point address.
13332 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13333 <the_bfd_section_index>: New field.
13334 * symfile.c (init_entry_point_info): Find the entry point's
13335 section.
13336
d56e56aa
TT
133372014-01-15 Tom Tromey <tromey@redhat.com>
13338
13339 * solib-frv.c (enable_break): Use entry_point_address_query.
13340
33a97bbe
OJ
133412014-01-15 Omair Javaid <omair.javaid@linaro.org>
13342
13343 * NEWS: Add note on improved process record-replay on
13344 arm*-linux* targets.
13345
c6ec2b30
OJ
133462014-01-15 Omair Javaid <omair.javaid@linaro.org>
13347
13348 * arm-tdep.c (enum arm_record_result): New enum.
13349 (arm_record_unsupported_insn): New function.
13350 (arm_record_coproc_data_proc): Removed.
13351 (thumb2_record_ld_st_multiple): New function.
13352 (thumb2_record_ld_st_dual_ex_tbb): New function.
13353 (thumb2_record_data_proc_sreg_mimm): New function.
13354 (thumb2_record_ps_dest_generic): New function.
13355 (thumb2_record_branch_misc_cntrl): New function.
13356 (thumb2_record_str_single_data): New function.
13357 (thumb2_record_ld_mem_hints): New function.
13358 (thumb2_record_ld_word): New function.
13359 (thumb2_record_lmul_lmla_div): New function.
13360 (thumb2_record_decode_insn_handler): New function.
13361 (decode_insn): Add thumb32 instruction handlers.
13362
97dfe206
OJ
133632014-01-15 Omair Javaid <omair.javaid@linaro.org>
13364
13365 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13366 (struct arm_linux_record_tdep): Declare.
13367 (arm_canonicalize_syscall): New function.
13368 (arm_all_but_pc_registers_record): New function.
13369 (arm_linux_syscall_record): New function.
13370 (arm_linux_init_abi): Add syscall recording constructs.
13371 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13372 decoding. (arm_record_coproc_data_proc): Update arm syscall
13373 decoding.
13374 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13375 <arm_syscall_record>: New field.
13376 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13377 gdb_target_obs.
13378
9904a494
OJ
133792014-01-15 Omair Javaid <omair.javaid@linaro.org>
13380
13381 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13382 register for push instruction recording.
13383
f969241e
OJ
133842014-01-15 Omair Javaid <omair.javaid@linaro.org>
13385
13386 * arm-tdep.c (thumb_record_misc): Update to correct logical
13387 error while recording ldm, ldmia and pop instructions.
13388
bfbbec00
OJ
133892014-01-15 Omair Javaid <omair.javaid@linaro.org>
13390
13391 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13392
e40adcc9
PA
133932014-01-15 Pedro Alves <palves@redhat.com>
13394
13395 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13396 (go32_resume, go32_fetch_registers, store_register)
13397 (go32_store_registers, go32_prepare_to_store)
13398 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13399 (go32_create_inferior, go32_can_run, go32_terminal_init)
13400 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13401 declarations.
13402
b0a16e66
TT
134032014-01-15 Tom Tromey <tromey@redhat.com>
13404
13405 * target.h (async_callback_ftype): New typedef.
13406 (struct target_ops) <to_async>: Use it.
13407
bf7105a4
JB
134082014-01-15 Joel Brobecker <brobecker@adacore.com>
13409
13410 * python/py-value.c (get_field_type): Remove unnecessary curly
13411 braces for single-statement if block.
13412
a8f35c2e
JB
134132014-01-15 Joel Brobecker <brobecker@adacore.com>
13414
13415 * python/py-type.c (convert_field): Add missing empty line
13416 after declarations.
13417
bb4142cf
DE
134182014-01-14 Doug Evans <dje@google.com>
13419
13420 * symfile.h (expand_symtabs_matching): Renamed from
13421 expand_partial_symbol_names. Update prototype.
13422 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13423 * symfile.c (expand_symtabs_matching): Renamed from
13424 expand_partial_symbol_names. New args file_matcher, kind.
13425 Rename arg fun to symbol_matcher.
13426 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13427 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13428 ada_expand_partial_symbol_name.
13429 (ada_make_symbol_completion_list): Update to call
13430 expand_symtabs_matching.
13431 (ada_add_global_exceptions): Call expand_symtabs_matching.
13432 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13433 call map_symbol_filenames.
13434 * symtab.c (sources_info): Update to call map_symbol_filenames.
13435 (search_symbols): Call expand_symtabs_matching.
13436 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13437 (default_make_symbol_completion_list_break_on): Update to call
13438 expand_symtabs_matching.
13439 (make_source_files_completion_list): Update to call
13440 map_symbol_filenames.
13441
206f2a57
DE
134422014-01-14 Doug Evans <dje@google.com>
13443
13444 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13445 (expand_symtabs_symbol_matcher_ftype): New typedef.
13446 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13447 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13448 * symfile.c (expand_partial_symbol_names): Update to use
13449 expand_symtabs_symbol_matcher_ftype.
13450 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13451 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13452 Arg name_matcher renamed to symbol_matcher.
13453 * psymtab.c (recursively_search_psymtabs): Update to use
13454 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13455 sym_matcher.
13456 (expand_symtabs_matching_via_partial): Update to use
13457 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13458 Arg name_matcher renamed to symbol_matcher.
13459
540c2971
DE
134602014-01-14 Doug Evans <dje@google.com>
13461
13462 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13463 (map_partial_symbol_filenames): Ditto.
13464 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13465 (map_partial_symbol_filenames): Ditto.
13466 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13467 (map_partial_symbol_filenames): Ditto.
13468 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13469 (map_partial_symbol_filenames): Ditto.
13470 * symtab.c: Delete #include "psymtab.h".
13471
8213266a
PA
134722014-01-14 Pedro Alves <palves@redhat.com>
13473 Tom Tromey <tromey@redhat.com>
13474
13475 * infrun.c (use_displaced_stepping): Use find_record_target
13476 instead of RECORD_IS_USED.
13477 (adjust_pc_after_break): Use record_full_is_used instead of
13478 RECORD_IS_USED.
13479 * record-btrace.c (record_btrace_open): Call record_preopen
13480 instead of checking RECORD_IS_USED.
13481 * record-full.c (record_full_shortname)
13482 (record_full_core_shortname): New globals.
13483 (record_full_is_used): New function.
13484 (find_full_open): Call record_preopen instead of checking
13485 RECORD_IS_USED.
13486 (init_record_full_ops): Set the target's shortname to
13487 record_full_shortname.
13488 (init_record_full_core_ops): Set the target's shortname to
13489 record_full_core_shortname.
13490 * record-full.h (record_full_is_used): Declare.
13491 * record.c (find_record_target): Make extern.
13492 (record_preopen): New function.
13493 * record.h (RECORD_IS_USED): Delete macro.
13494 (find_record_target, record_preopen): Declare functions.
13495
7ec1862d
YQ
134962014-01-14 Yao Qi <yao@codesourcery.com>
13497
13498 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13499 'len''s type to ULONGEST.
13500 (core_xfer_shared_libraries_aix): Likewise.
13501 * gdbarch.c, gdbarch.h: Regenerated.
13502 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13503 Change type of 'len' to ULONGEST.
13504 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13505 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13506
dea80a27
YQ
135072014-01-14 Yao Qi <yao@codesourcery.com>
13508
13509 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13510 type of 'len' to ULONGEST.
13511 (linux_xfer_osdata_processgroups): Likewise.
13512 (linux_xfer_osdata_threads): Likewise.
13513 (linux_xfer_osdata_fds): Likewise.
13514 (linux_xfer_osdata_isockets): Likewise.
13515 (linux_xfer_osdata_shm): Likewise.
13516 (linux_xfer_osdata_sem): Likewise.
13517 (linux_xfer_osdata_msg): Likewise.
13518 (linux_common_xfer_osdata): Likewise.
13519 (struct osdata_type) <getter>: Likewise.
13520 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13521 the declaration.
13522
b55e14c7
YQ
135232014-01-14 Yao Qi <yao@codesourcery.com>
13524
13525 * target.h (target_xfer_partial_ftype): Update.
13526 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13527 ULONGEST.
13528 * aix-thread.c (aix_thread_xfer_partial): Change type of
13529 argument 'len' to ULONGEST.
13530 * auxv.c (procfs_xfer_auxv): Likewise.
13531 (ld_so_xfer_auxv): Likewise.
13532 (memory_xfer_auxv): Likewise.
13533 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13534 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13535 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13536 * corelow.c (core_xfer_partial): Likewise.
13537 * ctf.c (ctf_xfer_partial): Likewise.
13538 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13539 '%u'.
13540 (darwin_read_dyld_info): Likewise.
13541 (darwin_xfer_partial): Likewise.
13542 * exec.c (section_table_xfer_memory_partial): Likewise.
13543 (exec_xfer_partial): Likewise.
13544 * exec.h (section_table_xfer_memory_partial): Update
13545 declaration.
13546 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13547 instead of plongest.
13548 (gnu_xfer_partial): Likewise.
13549 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13550 (ia64_hpux_xfer_solib_got): Likewise.
13551 (ia64_hpux_xfer_partial): Likewise.
13552 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13553 * inf-ptrace.c (inf_ptrace_xfer_partial):
13554 * inf-ttrace.c (inf_ttrace_xfer_partial):
13555 * linux-nat.c (linux_xfer_siginfo): Likewise.
13556 (linux_nat_xfer_partial): Likewise.
13557 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13558 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13559 * monitor.c (monitor_xfer_memory): Likewise.
13560 (monitor_xfer_partial): Likewise.
13561 * procfs.c (procfs_xfer_partial): Likewise.
13562 * record-full.c (record_full_xfer_partial): Likewise.
13563 (record_full_core_xfer_partial): Likewise.
13564 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13565 instead of plongest.
13566 (gdbsim_xfer_partial): Likewise.
13567 * remote.c (remote_xfer_partial): Likewise.
13568 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13569 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13570 declaration.
13571 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13572 (rs6000_xfer_shared_libraries): Likewise.
13573 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13574 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13575 (sparc_xfer_partial): Likewise.
13576 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13577 (spu_xfer_partial): Likewise.
13578 * spu-multiarch.c (spu_xfer_partial): Likewise.
13579 * target.c (target_read_live_memory): Likewise.
13580 (memory_xfer_live_readonly_partial): Likewise.
13581 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13582 (target_xfer_partial, default_xfer_partial): Likewise.
13583 (current_xfer_partial): Likewise.
13584 * tracepoint.c (tfile_xfer_partial): Likewise.
13585 * windows-nat.c (windows_xfer_memory): Likewise. Call
13586 pulongest instead of plongest.
13587 (windows_xfer_partial): Likewise.
13588 (windows_xfer_shared_libraries): Likewise.
13589
05804640
YQ
135902014-01-14 Yao Qi <yao@codesourcery.com>
13591
13592 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13593 target_xfer_partial_ftype.
13594
b5b08fb4
SC
135952014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13596
13597 PR python/15464
13598 PR python/16113
13599 * valops.c (value_struct_elt_bitpos): New function
13600 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13601 object to 'None' if the field name is an empty string ("").
13602 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13603 attribute to look for a field when 'name' is 'None'.
13604 (get_field_type): New function
13605
13aaf454
DE
136062014-01-13 Doug Evans <dje@google.com>
13607
13608 PR symtab/16426
13609 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13610 (try_open_dwop_file): Ditto.
13611 * gdb_bfd.c: #include "vec.h".
13612 (bfdp): New typedef.
13613 (struct gdb_bfd_data): New member included_bfds.
13614 (gdb_bfd_unref): Unref all included bfds.
13615 (gdb_bfd_record_inclusion): New function.
13616 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13617
c2cec97c
TT
136182014-01-13 Tom Tromey <tromey@redhat.com>
13619
13620 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13621
78e5999d
TT
136222014-01-13 Tom Tromey <tromey@redhat.com>
13623
13624 * defs.h (use_windows): Remove.
13625 * gdb.c (main): Update.
13626 * main.c (captured_main, gdb_main): Update.
13627 * main.h (struct captured_main_args) <use_windows>: Remove.
13628 * top.c (use_windows): Remove.
13629
f2052bbe
TT
136302014-01-13 Tom Tromey <tromey@redhat.com>
13631
13632 * defs.h (deprecated_flush_hook): Remove.
13633
fde4f8ed
JK
136342014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13635
13636 PR threads/16216
13637 * linux-thread-db.c (try_thread_db_load): Add parameter
13638 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13639 (try_thread_db_load_from_pdir_1): Move it there from here.
13640 (try_thread_db_load_from_sdir): Update caller.
13641 (try_thread_db_load_from_dir): Move it there from here.
13642
bdf61915
PP
136432014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13644
13645 * regformats/regdat.sh: Always rewrite the register file.
13646
f71e1a8d
PA
136472014-01-13 Pedro Alves <palves@redhat.com>
13648
13649 * Makefile.in (CHECK_HEADERS): New variable.
13650 (check-headers:): New rule.
13651
42c85435
TT
136522014-01-13 Tom Tromey <tromey@redhat.com>
13653
13654 * cli/cli-setshow.c (do_set_command): Update.
13655 * defs.h (deprecated_set_hook): Remove.
13656 * top.c (deprecated_set_hook): Remove.
13657
f8de5129
PA
136582014-01-13 Pedro Alves <palves@redhat.com>
13659
13660 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13661 the tracepoint if the PC is a pseudo-register.
13662
fc270c35
TT
136632014-01-13 Tom Tromey <tromey@redhat.com>
13664
13665 * defs.h (XCALLOC): Remove.
13666 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13667 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13668 * dwarf2loc.c (allocate_piece_closure): Likewise.
13669 * elfread.c (elf_symfile_segments): Likewise.
13670 (elf_symfile_segments): Likewise.
13671 * gdbtypes.c (copy_type_recursive): Likewise.
13672 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13673 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13674 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13675 XCALLOC.
13676 * mt-tdep.c (mt_gdbarch_init): Likewise.
13677 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13678 XCALLOC.
13679 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13680 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13681 * registry.c (registry_alloc_data): Likewise.
13682 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13683 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13684 * serial.c (serial_fdopen_ops): Likewise.
13685 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13686 XCALLOC.
13687 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13688 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13689 not XCALLOC.
13690
70ba0933
TT
136912014-01-13 Tom Tromey <tromey@redhat.com>
13692
13693 * defs.h (XMALLOC): Remove.
13694 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13695 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13696 * cli-out.c (struct ui_out *): Likewise.
13697 * cli/cli-dump.c (add_dump_command): Likewise.
13698 (add_dump_command): Likewise.
13699 * complaints.c (get_complaints): Likewise.
13700 (find_complaint): Likewise.
13701 * dwarf2-frame.c (execute_cfa_program): Likewise.
13702 * dwarf2read.c (abbrev_table_read_table): Likewise.
13703 * gdbarch.sh: Likewise.
13704 * gdbarch.c: Rebuild.
13705 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13706 * interps.c (interp_new): Likewise.
13707 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13708 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13709 * mi/mi-console.c (mi_console_file_new): Likewise.
13710 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13711 * mi/mi-out.c (mi_out_new): Likewise.
13712 * mi/mi-parse.c (mi_parse): Likewise.
13713 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13714 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13715 * observer.c (xalloc_observer_list_node): Likewise.
13716 * regcache.c (regcache_xmalloc_1): Likewise.
13717 * reggroups.c (reggroup_new): Likewise.
13718 (_initialize_reggroup): Likewise.
13719 * registry.c (register_data_with_cleanup): Likewise.
13720 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13721 * ser-base.c (serial_ttystate): Likewise.
13722 * ser-mingw.c (make_pipe_state): Likewise.
13723 * ser-pipe.c (pipe_open): Likewise.
13724 * serial.c (serial_open): Likewise.
13725 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13726 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13727 (tui_alloc_win_info): Likewise.
13728 (tui_add_content_elements): Likewise.
13729 * tui/tui-file.c (tui_file_new): Likewise.
13730 * tui/tui-out.c (tui_out_new): Likewise.
13731 * ui-file.c (mem_file_new): Likewise.
13732 * ui-out.c (push_level): Likewise.
13733 (make_cleanup_ui_out_end): Likewise.
13734 (append_header_to_list): Likewise.
13735 (ui_out_new): Likewise.
13736 * user-regs.c (user_reg_add_builtin): Likewise.
13737
41bf6aca
TT
137382014-01-13 Tom Tromey <tromey@redhat.com>
13739
13740 * defs.h (XZALLOC): Remove.
13741 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13742 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13743 (get_ada_tasks_inferior_data): Likewise.
13744 * auto-load.c (get_auto_load_pspace_data): Likewise.
13745 * auxv.c (get_auxv_inferior_data): Likewise.
13746 * bfd-target.c (target_bfd_reopen): Likewise.
13747 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13748 (deprecated_insert_raw_breakpoint): Likewise.
13749 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13750 * corelow.c (core_open): Likewise.
13751 * darwin-nat.c (darwin_check_new_threads): Likewise.
13752 (darwin_attach_pid): Likewise.
13753 * dummy-frame.c (dummy_frame_push): Likewise.
13754 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13755 * dwarf2loc.c (allocate_piece_closure): Likewise.
13756 * elfread.c (elf_symfile_segments): Likewise.
13757 * eval.c (ptrmath_type_p): Likewise.
13758 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13759 * gdbtypes.c (alloc_type_arch): Likewise.
13760 (alloc_type_instance): Likewise.
13761 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13762 * inf-child.c (inf_child_can_use_agent): Likewise.
13763 * inflow.c (get_inflow_inferior_data): Likewise.
13764 * infrun.c (save_infcall_suspend_state): Likewise.
13765 * jit.c (jit_reader_load): Likewise.
13766 (get_jit_objfile_data): Likewise.
13767 (get_jit_program_space_data): Likewise.
13768 (jit_object_open_impl): Likewise.
13769 (jit_symtab_open_impl): Likewise.
13770 (jit_block_open_impl): Likewise.
13771 (jit_frame_sniffer): Likewise.
13772 * linux-fork.c (add_fork): Likewise.
13773 * maint.c (make_command_stats_cleanup): Likewise.
13774 * objfiles.c (get_objfile_pspace_data): Likewise.
13775 * opencl-lang.c (struct lval_closure): Likewise.
13776 * osdata.c (osdata_start_osdata): Likewise.
13777 * progspace.c (new_address_space): Likewise.
13778 (add_program_space): Likewise.
13779 * remote-sim.c (get_sim_inferior_data): Likewise.
13780 * sh-tdep.c (sh_gdbarch_init): Likewise.
13781 * skip.c (Ignore): Likewise.
13782 (skip_delete_command): Likewise.
13783 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13784 (library_list_start_library): Likewise.
13785 (solib_aix_current_sos): Likewise.
13786 * solib-darwin.c (get_darwin_info): Likewise.
13787 (darwin_current_sos): Likewise.
13788 * solib-dsbt.c (get_dsbt_info): Likewise.
13789 * solib-ia64-hpux.c (new_so_list): Likewise.
13790 (ia64_hpux_get_solib_linkage_addr): Likewise.
13791 * solib-spu.c (append_ocl_sos): Likewise.
13792 (spu_current_sos): Likewise.
13793 * solib-svr4.c (get_svr4_info): Likewise.
13794 (svr4_keep_data_in_core): Likewise.
13795 (library_list_start_library): Likewise.
13796 (svr4_default_sos): Likewise.
13797 (svr4_read_so_list): Likewise.
13798 * solib-target.c (library_list_start_library): Likewise.
13799 (solib_target_current_sos): Likewise.
13800 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13801 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13802 * symfile.c (default_symfile_segments): Likewise.
13803 * target-descriptions.c (tdesc_data_init): Likewise.
13804 (tdesc_create_reg): Likewise.
13805 (struct tdesc_type *): Likewise.
13806 (tdesc_create_vector): Likewise.
13807 (tdesc_set_struct_size): Likewise.
13808 (struct tdesc_type *): Likewise.
13809 (tdesc_free_feature): Likewise.
13810 (tdesc_create_feature): Likewise.
13811 * windows-nat.c (windows_add_thread): Likewise.
13812 (windows_make_so): Likewise.
13813 * xml-support.c (gdb_xml_body_text): Likewise.
13814 (gdb_xml_create_parser_and_cleanup): Likewise.
13815 (xml_process_xincludes): Likewise.
13816 * xml-syscall.c (allocate_syscalls_info): Likewise.
13817 (syscall_create_syscall_desc): Likewise.
13818
5acfdbae
SDJ
138192014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13820
13821 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13822 function, with code from i386_stap_parse_special_token.
13823 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13824 (i386_stap_parse_special_token): Move code to the two functions
13825 above; simplify it.
13826
0000e5cc
PA
138272014-01-09 Pedro Alves <palves@redhat.com>
13828 Hui Zhu <hui@codesourcery.com>
13829
13830 PR gdb/16101
13831 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13832 bp_err_string. Don't mark the location shlib_disabled if the
13833 error thrown wasn't a generic or memory error. Catch errors
13834 thrown while inserting breakpoints in overlayed code. Output
13835 error message of software breakpoints.
13836 * remote.c (remote_insert_breakpoint): If this breakpoint has
13837 target-side commands but this stub doesn't support Z0 packets,
13838 throw NOT_SUPPORTED_ERROR error.
13839 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13840 * target.h (target_insert_breakpoint): Extend comment.
13841 (target_insert_hw_breakpoint): Add comment.
13842
b7ea362b
PA
138432014-01-08 Pedro Alves <palves@redhat.com>
13844
13845 * remote.c (remote_add_thread): Add threads silently if starting
13846 up.
13847 (remote_notice_new_inferior): If in all-stop, and starting up,
13848 don't call notice_new_inferior.
13849 (get_current_thread): New function, factored out from ...
13850 (add_current_inferior_and_thread): ... this. Adjust.
13851 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13852 found any thread, then select the remote's current thread as GDB's
13853 current thread too.
13854
b7bba001
JB
138552014-01-08 Joel Brobecker <brobecker@adacore.com>
13856
13857 * NEWS: Create a new section for the next release branch.
13858 Rename the section of the current branch, now that it has
13859 been cut.
13860
16dfbded
JB
138612014-01-08 Joel Brobecker <brobecker@adacore.com>
13862
13863 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13864 * version.in: Bump version to 7.7.50.DATE-cvs.
13865
22c90ac1
YQ
138662014-01-08 Yao Qi <yao@codesourcery.com>
13867
13868 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13869 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13870 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13871
d64ad97c
YQ
138722014-01-08 Yao Qi <yao@codesourcery.com>
13873
13874 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13875 return value of bfd_get_filename to symbol_file_add_from_bfd.
13876
f93ba80c
PM
138772014-01-08 Pierre Muller <muller@sourceware.org>
13878
13879 Fix PR16201.
13880 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13881 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13882 to prim_record_mininal_symbol_and_info.
13883 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13884 in call to prim_record_minimal_symbol_and_info.
13885 (read_pe_exported_syms): Set index field of section_data.
13886
a4d9ba85
AP
138872014-01-07 Andrew Pinski <apinski@cavium.com>
13888
13889 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13890 * features/aarch64.c: Regenerate.
13891
1b67eb02
AS
138922014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13893
13894 * target.c (return_null): Define.
13895 (update_current_target): Use it instead of return_zero for
13896 functions that return a pointer.
13897
5e3f4fab
EBM
138982014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13899
13900 * source.c (add_path): Fix check for duplicated paths in the previously
13901 included paths.
13902
e2616788
HK
139032014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13904
13905 * ada-lang.c: Remove duplicated include statements.
13906 * alphabsd-nat.c: Ditto.
13907 * amd64-darwin-tdep.c: Ditto.
13908 * amd64fbsd-nat.c: Ditto.
13909 * auto-load.c: Ditto.
13910 * ax-gdb.c: Ditto.
13911 * breakpoint.c: Ditto.
13912 * dbxread.c: Ditto.
13913 * fork-child.c: Ditto.
13914 * gdb_usleep.c: Ditto.
13915 * i386-darwin-tdep.c: Ditto.
13916 * i386fbsd-nat.c: Ditto.
13917 * infcmd.c: Ditto.
13918 * inferior.c: Ditto.
13919 * jv-lang.c: Ditto.
13920 * linux-nat.c: Ditto.
13921 * linux-tdep.c: Ditto.
13922 * m68kbsd-nat.c: Ditto.
13923 * m68klinux-nat.c: Ditto.
13924 * microblaze-tdep.c: Ditto.
13925 * mips-linux-tdep.c: Ditto.
13926 * mn10300-tdep.c: Ditto.
13927 * nto-tdep.c: Ditto.
13928 * opencl-lang.c: Ditto.
13929 * osdata.c: Ditto.
13930 * printcmd.c: Ditto.
13931 * regcache.c: Ditto.
13932 * remote-m32r-sdi.c: Ditto.
13933 * remote.c: Ditto.
13934 * symfile.c: Ditto.
13935 * symtab.c: Ditto.
13936 * tilegx-linux-nat.c: Ditto.
13937 * tilegx-tdep.c: Ditto.
13938 * tracepoint.c: Ditto.
13939 * valops.c: Ditto.
13940 * vaxbsd-nat.c: Ditto.
13941 * windows-nat.c: Ditto.
13942 * xtensa-tdep.c: Ditto.
13943
bd1f7788
YQ
139442014-01-07 Yao Qi <yao@codesourcery.com>
13945
13946 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13947
79301218
JB
139482014-01-07 Yao Qi <yao@codesourcery.com>
13949 Joel Brobecker <brobecker@adacore.com>
13950
13951 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13952 (pdc_write_regs): Likewise.
13953 (fetch_regs_kernel_thread): Likewise.
13954 (store_regs_kernel_thread): Likewise.
13955
139562014-01-07 Joel Brobecker <brobecker@adacore.com>
13957
13958 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13959 tagged type objects to their actual type.
13960
8e355c5d
JB
139612014-01-07 Joel Brobecker <brobecker@adacore.com>
13962
13963 * ada-valprint.c (print_field_values): Add "language" parameter.
13964 Update calls to print_field_values and print_variant_part.
13965 Pass new parameter "language" in call to val_print instead
13966 of "current_language". Replace call to ada_val_print by call
13967 to val_print.
13968 (print_variant_part): Add "language" parameter.
13969 (ada_val_print_struct_union): Update call to print_field_values.
13970
4fbf5aa5
JB
139712014-01-07 Joel Brobecker <brobecker@adacore.com>
13972
13973 * ada-valprint.c (ui_memcpy): Delete.
13974 (ada_print_floating): Update documentation. Add empty line
13975 between between function documentation and implementation.
13976 Delete variable "buffer". Use ui_file_xstrdup in place of
13977 ui_file_put. Minor adjustments following this change.
13978
71855601
JB
139792014-01-07 Joel Brobecker <brobecker@adacore.com>
13980
13981 * ada-valprint.c (ada_val_print_string): New function,
13982 extracted from ada_val_print_array.
13983 (ada_val_print_array): Replace extracted code by call
13984 to ada_val_print_string followed by a return. Move
13985 "else" branch to the function's top block.
13986
4eb27a30
JB
139872014-01-07 Joel Brobecker <brobecker@adacore.com>
13988
13989 * ada-valprint.c (ada_val_print_array): Move implementation
13990 down. Rename parameter "offset" and "val" into "offset_aligned"
13991 and "original_value" respectively. Add parameter "offset".
13992
34b27950
JB
139932014-01-07 Joel Brobecker <brobecker@adacore.com>
13994
13995 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13996 re-organizing the code. Change the "???" message printed
13997 when target type is a TYPE_CODE_UNDEF into
13998 "<ref to undefined type>".
13999
079e4591
JB
140002014-01-07 Joel Brobecker <brobecker@adacore.com>
14001
14002 * ada-valprint.c (print_record): Delete, implementation inlined...
14003 (ada_val_print_struct_union): ... here. Remove call to
14004 ada_check_typedef in inlined implementation.
14005
8004dfd1
JB
140062014-01-07 Joel Brobecker <brobecker@adacore.com>
14007
14008 * ada-valprint.c (ada_val_print_gnat_array): New function,
14009 extracted from ada_val_print_1;
14010 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14011 (ada_val_print_flt, ada_val_print_struct_union)
14012 (ada_val_print_ref): Likewise.
14013 (ada_val_print_1): Delete variables i and elttype.
14014 Replace extracted-out code by call to corresponding
14015 new functions.
14016
760a2db0
JB
140172014-01-07 Joel Brobecker <brobecker@adacore.com>
14018
14019 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14020
3a92c861
JB
140212014-01-07 Joel Brobecker <brobecker@adacore.com>
14022
14023 * ada-valprint.c (ada_val_print_1): Replace calls to
14024 ada_val_print_1 by calls to val_print.
14025
cd1630f9
JB
140262014-01-07 Joel Brobecker <brobecker@adacore.com>
14027
14028 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14029 Update calls to self accordingly. Replace calls to c_val_print
14030 by calls to val_print.
14031
bdf779a0
JB
140322014-01-07 Joel Brobecker <brobecker@adacore.com>
14033
14034 * ada-valprint.c (print_record): Delete declaration.
14035 (adjust_type_signedness, ada_val_print_1): Likewise.
14036 (ada_val_print): Move function implementation down.
14037 (print_variant_part, print_field_values, print_record):
14038 Move function implementation up.
14039
c0d48811
JB
140402014-01-07 Joel Brobecker <brobecker@adacore.com>
14041
14042 * python/py-type.c (typy_get_name): New function.
14043 (type_object_getset): Add entry for attribute "name".
14044 * NEWS: Add entry mentioning this new attribute.
14045
c26e9cbb
YQ
140462014-01-07 Yao Qi <yao@codesourcery.com>
14047
14048 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14049 statement.
14050
0cc6f43d
YQ
140512014-01-07 Yao Qi <yao@codesourcery.com>
14052
14053 * gnu-nat.c (info_port_rights): Add qualifier const to
14054 argument args.
14055
eec03155
YQ
140562014-01-07 Yao Qi <yao@codesourcery.com>
14057
14058 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14059
f04a82ef
YQ
140602014-01-07 Yao Qi <yao@codesourcery.com>
14061
14062 * gnu-nat.c (make_inf) Update declaration.
14063 (make_inf): Make it static.
14064 (inf_set_traced): Likewise.
14065 (inf_port_to_thread, inf_task_died_status): Likewise.
14066
d57dda0a
YQ
140672014-01-07 Yao Qi <yao@codesourcery.com>
14068
14069 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14070
3aa8c969
YQ
140712014-01-07 Yao Qi <yao@codesourcery.com>
14072
14073 * gnu-nat.c (_initialize_gnu_nat): Declare.
14074
94123b4f
YQ
140752014-01-07 Yao Qi <yao@codesourcery.com>
14076
14077 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14078 'enum bfd_endian'.
14079 (struct gdbarch_info) <byte_order>: Change type to
14080 'enum bfd_endian'.
14081 <byte_order_for_code>: Likewise.
14082 * gdbarch.c, gdbarch.h: Regenerated.
14083
dc81d70a
TT
140842014-01-06 Sasha Smundak <asmundak@google.com>
14085
14086 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14087
cc2f3c35
TT
140882014-01-06 Tom Tromey <tromey@redhat.com>
14089
14090 * doublest.c (convert_doublest_to_floatformat): Use const, not
14091 CONST.
14092 * somread.c (som_symtab_read): Likewise.
14093
adcf2eed
HZ
140942014-01-07 Hui Zhu <hui@codesourcery.com>
14095
14096 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14097 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14098 (gdb_bfd_fopen): Ditto.
14099 (gdb_bfd_openr): Ditto.
14100 (gdb_bfd_openw): Ditto.
14101 (gdb_bfd_openr_iovec): Ditto.
14102 (gdb_bfd_fdopenr): Ditto.
14103 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14104 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14105 with xstrdup.
14106 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14107 with xstrdup.
14108 * symfile-mem.c (symbol_file_add_from_memory): Removed
14109 gdb_bfd_stash_filename.
14110
50722198
DE
141112014-01-03 Doug Evans <dje@google.com>
14112
14113 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14114 output.
14115
2fa4b862
JB
141162014-01-01 Joel Brobecker <brobecker@adacore.com>
14117
14118 Update year range in copyright notice of all files.
14119
28498c42
JB
141202014-01-01 Joel Brobecker <brobecker@adacore.com>
14121
14122 * top.c (print_gdb_version): Set copyright year to 2014.
14123
7b6e1046
JB
141242014-01-01 Joel Brobecker <brobecker@adacore.com>
14125
14126 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14127
df96af55 14128For older changes see ChangeLog-2013.
c906108c
SS
14129\f
14130Local Variables:
14131mode: change-log
14132left-margin: 8
14133fill-column: 74
14134version-control: never
57da7796 14135coding: utf-8
c906108c 14136End: