Non-stop + software single-step archs: don't force displaced-stepping for all single...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
36728e82
PA
12014-10-15 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (resume): Don't force displaced-stepping for all
4 single-steps on software single-stepping archs.
5
34b7e8a6
PA
62014-10-15 Pedro Alves <palves@redhat.com>
7
8 * breakpoint.c (single_step_breakpoints): Delete global.
9 (insert_single_step_breakpoint): Adjust to store the breakpoint
10 pointer in the current thread.
11 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
12 (cancel_single_step_breakpoints): Delete functions.
13 (breakpoint_has_location_inserted_here): Make extern.
14 (single_step_breakpoint_inserted_here_p): Adjust to walk the
15 breakpoint list.
16 * breakpoint.h (breakpoint_has_location_inserted_here): New
17 declaration.
18 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
19 (cancel_single_step_breakpoints): Remove declarations.
20 * gdbthread.h (struct thread_control_state)
21 <single_step_breakpoints>: New field.
22 (delete_single_step_breakpoints)
23 (thread_has_single_step_breakpoints_set)
24 (thread_has_single_step_breakpoint_here): New declarations.
25 * infrun.c (follow_exec): Also clear the single-step breakpoints.
26 (singlestep_breakpoints_inserted_p, singlestep_ptid)
27 (singlestep_pc): Delete globals.
28 (infrun_thread_ptid_changed): Remove references to removed
29 globals.
30 (resume_cleanups): Delete the current thread's single-step
31 breakpoints.
32 (maybe_software_singlestep): Remove references to removed globals.
33 (resume): Adjust to use thread_has_single_step_breakpoints_set and
34 delete_single_step_breakpoints.
35 (init_wait_for_inferior): Remove references to removed globals.
36 (delete_thread_infrun_breakpoints): Delete the thread's
37 single-step breakpoints too.
38 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
39 single-step breakpoints here.
40 (delete_stopped_threads_single_step_breakpoints): New function.
41 (adjust_pc_after_break): Adjust to use
42 thread_has_single_step_breakpoints_set.
43 (handle_inferior_event): Remove references to removed globals.
44 Use delete_stopped_threads_single_step_breakpoints.
45 (handle_signal_stop): Adjust to per-thread single-step
46 breakpoints. Swap test order to do cheaper tests first.
47 (switch_back_to_stepped_thread): Extend debug output. Remove
48 references to removed globals.
49 * record-full.c (record_full_wait_1): Adjust to per-thread
50 single-step breakpoints.
51 * thread.c (delete_single_step_breakpoints)
52 (thread_has_single_step_breakpoints_set)
53 (thread_has_single_step_breakpoint_here): New functions.
54 (clear_thread_inferior_resources): Also delete the thread's
55 single-step breakpoints.
56
5b834a0a
PA
572014-10-15 Pedro Alves <palves@redhat.com>
58
59 * thread.c (delete_thread_breakpoint): New function.
60 (delete_step_resume_breakpoint)
61 (delete_exception_resume_breakpoint): Use it.
62 (delete_at_next_stop): New function.
63 (clear_thread_inferior_resources): Use delete_at_next_stop.
64
a1fd2fa5
PA
652014-10-15 Pedro Alves <palves@redhat.com>
66
67 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
68 (breakpoint_inserted_here_p): ... here. Remove special case for
69 software single-step breakpoints.
70 (find_non_raw_software_breakpoint_inserted_here): Inline ...
71 (software_breakpoint_inserted_here_p): ... here. Remove special
72 case for software single-step breakpoints.
73 (bp_target_info_copy_insertion_state)
74 (deprecated_insert_raw_breakpoint)
75 (deprecated_remove_raw_breakpoint): Delete functions.
76 * breakpoint.h (deprecated_insert_raw_breakpoint)
77 (deprecated_remove_raw_breakpoint): Remove declarations.
78
7c16b83e
PA
792014-10-15 Pedro Alves <palves@redhat.com>
80
81 PR breakpoints/9649
82 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
83 Delete array globals.
84 (single_step_breakpoints): New global.
85 (breakpoint_xfer_memory): Remove special handling for single-step
86 breakpoints.
87 (update_breakpoints_after_exec): Delete bp_single_step
88 breakpoints.
89 (detach_breakpoints): Remove special handling for single-step
90 breakpoints.
91 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
92 (bpstat_stop_status): Add comment.
93 (bpstat_what, bptype_string, print_one_breakpoint_location)
94 (adjust_breakpoint_address, init_bp_location): Handle
95 bp_single_step.
96 (new_single_step_breakpoint): New function.
97 (set_momentary_breakpoint, bkpt_remove_location): Remove special
98 handling for single-step breakpoints.
99 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
100 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
101 Rewrite.
102 (detach_single_step_breakpoints, find_single_step_breakpoint):
103 Delete functions.
104 (breakpoint_has_location_inserted_here): New function.
105 (single_step_breakpoint_inserted_here_p): Rewrite.
106 * breakpoint.h: Remove FIXME.
107 (enum bptype) <bp_single_step>: New enum value.
108 (insert_single_step_breakpoint): Update comment.
109 * infrun.c (resume_cleanups)
110 (delete_step_thread_step_resume_breakpoint): Remove single-step
111 breakpoints.
112 (fetch_inferior_event): Install a cleanup that removes infrun
113 breakpoints.
114 (switch_back_to_stepped_thread) <expect thread advanced also>:
115 Clear step-over info.
116
0cbcdb96
PA
1172014-10-15 Pedro Alves <palves@redhat.com>
118
119 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
120 (delete_thread_infrun_breakpoints): New function, with parts
121 salvaged from delete_step_resume_breakpoint_callback.
122 (delete_step_thread_step_resume_breakpoint): Delete.
123 (for_each_just_stopped_thread_callback_func): New typedef.
124 (for_each_just_stopped_thread): New function.
125 (delete_just_stopped_threads_infrun_breakpoints): New function.
126 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
127 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
128 ... this. Adjust.
129 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
130
963f9c80
PA
1312014-10-15 Pedro Alves <palves@redhat.com>
132
133 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
134 trying to step past a non-steppable watchpoint.
135 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
136 field.
137 * infrun.c (struct step_over_info): Add new field
138 'nonsteppable_watchpoint_p' and adjust comments.
139 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
140 Adjust.
141 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
142 (stepping_past_nonsteppable_watchpoint): New function.
143 (step_over_info_valid_p): Also return true if stepping past a
144 nonsteppable watchpoint.
145 (proceed): Adjust call to set_step_over_info. Remove reference to
146 init_infwait_state.
147 (init_wait_for_inferior): Remove reference to init_infwait_state.
148 (waiton_ptid): Delete global.
149 (struct execution_control_state)
150 <stepped_after_stopped_by_watchpoint>: Delete field.
151 (wait_for_inferior, fetch_inferior_event): Always pass
152 minus_one_ptid to target_wait.
153 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
154 field.
155 (init_infwait_state): Delete function.
156 (handle_inferior_event): Remove infwait_state handling.
157 (handle_signal_stop) <watchpoints handling>: Adjust after
158 stepped_after_stopped_by_watchpoint removal. Don't remove
159 breakpoints here nor set infwait_state. Set the thread's
160 stepping_over_watchpoint flag, and call keep_going instead.
161 (keep_going): Handle stepping_over_watchpoint. Adjust
162 set_step_over_info calls.
163 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
164 function.
165
6cc83d2a
PA
1662014-10-15 Pedro Alves <palves@redhat.com>
167
168 * infrun.c (step_over_info_valid_p): New function.
169 (resume): Use step_over_info_valid_p instead of checking the
170 threads's trap_expected flag.
171
6979730b
DE
1722014-10-15 Doug Evans <dje@google.com>
173 Walfred Tedeschi <walfred.tedeschi@intel.com>
174
175 PR python/17364
176 * python/lib/gdb/__init__.py (packages): Add "printer".
177 * python/lib/gdb/command/bound_registers.py: Moved to ...
178 * python/lib/gdb/printer/bound_registers.py: ... here.
179 Add printer to global set of builtin printers. Rename printer from
180 "bound" to "mpx_bound128".
181 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
182 registered as global "builtin" printer.
183 (add_builtin_pretty_printer): New function.
184 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
185 gdb/printer/__init__.py.
186
35a49624
IB
1872014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
188
189 * Makefile.in (SFILES): Remove d-support.c.
190 (COMMON_OBS): Remove d-support.o.
191 * d-lang.h (d_parse_symbol): Remove declaration.
192 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
193 * d-support.c: Remove file.
194
8fa0c4f8
AA
1952014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
196
197 * gdb/infrun.c (process_event_stop_test): Apply
198 gdbarch_addr_bits_remove to longjmp resume address.
199
3666da81
PA
2002014-10-15 Pedro Alves <palves@redhat.com>
201
202 * regformats/microblaze.dat: Delete file.
203
449aa9df
AKA
2042014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
205
206 * features/Makefile (microblaze-expedite): Replace pc with rpc.
207 * regformats/microblaze-with-stack-protect.dat: Regenerate.
208
ebb8ece2
SC
2092014-10-15 Siva Chandra Reddy <sivachandra@google.com>
210
211 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
212 as non-trivial.
213
82c48ac7
SC
2142014-10-15 Siva Chandra Reddy <sivachandra@google.com>
215
216 PR c++/13403
217 PR c++/15154
218 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
219 with qualified args.
220
c40cc657
JB
2212014-10-14 Joel Brobecker <brobecker@adacore.com>
222
223 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
224 of the case where the second operand is a pointer.
225 <BINOP_SUB>: Likewise.
226
0ea5cda8
SDJ
2272014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
228
229 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
230 only if it is not NULL.
231 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
232 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
233 (struct probe_ops) <clear_semaphore>: Likewise.
234 * tracepoint.c (start_tracing): Call set_semaphore only if it is
235 not NULL.
236 (stop_tracing): Likewise, for clear_semaphore.
237
f7088df3
SDJ
2382014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
239
240 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
241 using language_c, instead of current_language.
242
4e1bbde0
DE
2432014-10-13 Doug Evans <dje@google.com>
244
6ff5a0f6 245 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 246 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 247 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
248 (pspy_new, pspace_to_pspace_object): Call it.
249
c780cc2f
JK
2502014-10-13 Miroslav Franc <mfranc@redhat.com>
251 Jan Kratochvil <jan.kratochvil@redhat.com>
252
253 Fix "save breakpoints" for "catch" command.
254 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
255 newline.
256
99894e11
JK
2572014-10-12 Miroslav Franc <mfranc@redhat.com>
258
259 Fix "save breakpoints" for "disable $bpnum" command.
260 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
261
3831839c
PA
2622014-10-10 Pedro Alves <palves@redhat.com>
263
264 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
265 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
266 (HFILES_NO_SRCDIR): Remove solib-irix.h.
267 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
268 and been removed.
269 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
270 * configure.ac: Remove references to IRIX.
271 * configure.host: Add *-*-irix* to the obsolete hosts section.
272 Remove all other references to irix.
273 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
274 Delete files.
275
cc3afae2
AKA
2762014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
277
278 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
279 isn't valid, release the tdesc arch data and return NULL.
280
cdfa0b0a
PA
2812014-10-10 Pedro Alves <palves@redhat.com>
282
283 * linux-tdep.c: Include observer.h.
284 (linux_inferior_data): New global.
285 (struct linux_info): New structure.
286 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
287 (get_linux_inferior_data): New functions.
288 (linux_vsyscall_range): Rename to ...
289 (linux_vsyscall_range_raw): ... this.
290 (linux_vsyscall_range): New function; handles caching.
291 (_initialize_linux_tdep): Register linux_inferior_data. Install
292 inferior_exit and inferior_appeared observers.
293
8b9a549d
PA
2942014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
295 Pedro Alves <palves@redhat.com>
296
297 PR symtab/14466
298 * solib-svr4.c (svr4_read_so_list): Rename to ...
299 (svr4_current_sos_1): ... this and change the function comment.
300 (svr4_current_sos): New function.
301
3437254d
PA
3022014-10-10 Pedro Alves <palves@redhat.com>
303
304 * arch-utils.c (default_vsyscall_range): New function.
305 * arch-utils.h (default_vsyscall_range): New declaration.
306 * gdbarch.sh (vsyscall_range): New hook.
307 * gdbarch.h, gdbarch.c: Regenerate.
308 * linux-tdep.c (linux_vsyscall_range): New function.
309 (linux_init_abi): Install linux_vsyscall_range as
310 vsyscall_range gdbarch hook.
311 * memrange.c (address_in_mem_range): New function.
312 * memrange.h (address_in_mem_range): New declaration.
313 * symfile-mem.c (find_vdso_size): Delete function.
314 (add_vsyscall_page): Use gdbarch_vsyscall_range.
315
31cc0b80
PA
3162014-10-10 Pedro Alves <palves@redhat.com>
317
318 * infrun.c (normal_stop): Fix typo in comment.
319
3e3286a2
SDJ
3202014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
321
322 PR tdep/9390
323 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
324 typo when using logical AND to determine instruction type.
325
fcbdedf8
YQ
3262014-10-09 Yao Qi <yao@codesourcery.com>
327
328 * infrun.c (handle_signal_stop): Remove local variable
329 'printed'.
330
db984616
SS
3312014-10-08 Stan Shebs <stan@codesourcery.com>
332
333 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
334
3ba37e6c
GB
3352014-10-08 Gary Benson <gbenson@redhat.com>
336
337 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
338
a442d071
GB
3392014-10-08 Gary Benson <gbenson@redhat.com>
340
341 * common/common-defs.h: Include common-exceptions.h.
342 * exceptions.h: Do not include common-exceptions.h.
343
6f1947e8
GB
3442014-10-08 Gary Benson <gbenson@redhat.com>
345
346 * common/common-defs.h: Include cleanups.h.
347 * common/common-exceptions.c: Do not include cleanups.h.
348 * utils.h: Likewise.
349
c765fdb9
GB
3502014-10-08 Gary Benson <gbenson@redhat.com>
351
352 * ada-lang.c: Do not include exceptions.h.
353 * ada-valprint.c: Likewise.
354 * amd64-tdep.c: Likewise.
355 * auto-load.c: Likewise.
356 * block.c: Likewise.
357 * break-catch-throw.c: Likewise.
358 * breakpoint.c: Likewise.
359 * btrace.c: Likewise.
360 * c-lang.c: Likewise.
361 * cli/cli-cmds.c: Likewise.
362 * cli/cli-interp.c: Likewise.
363 * cli/cli-script.c: Likewise.
364 * completer.c: Likewise.
365 * corefile.c: Likewise.
366 * corelow.c: Likewise.
367 * cp-abi.c: Likewise.
368 * cp-support.c: Likewise.
369 * cp-valprint.c: Likewise.
370 * darwin-nat.c: Likewise.
371 * dwarf2-frame-tailcall.c: Likewise.
372 * dwarf2-frame.c: Likewise.
373 * dwarf2loc.c: Likewise.
374 * dwarf2read.c: Likewise.
375 * eval.c: Likewise.
376 * event-loop.c: Likewise.
377 * event-top.c: Likewise.
378 * f-valprint.c: Likewise.
379 * frame-unwind.c: Likewise.
380 * frame.c: Likewise.
381 * gdbtypes.c: Likewise.
382 * gnu-v2-abi.c: Likewise.
383 * gnu-v3-abi.c: Likewise.
384 * guile/scm-auto-load.c: Likewise.
385 * guile/scm-breakpoint.c: Likewise.
386 * guile/scm-cmd.c: Likewise.
387 * guile/scm-frame.c: Likewise.
388 * guile/scm-lazy-string.c: Likewise.
389 * guile/scm-param.c: Likewise.
390 * guile/scm-symbol.c: Likewise.
391 * guile/scm-type.c: Likewise.
392 * hppa-hpux-tdep.c: Likewise.
393 * i386-tdep.c: Likewise.
394 * inf-loop.c: Likewise.
395 * infcall.c: Likewise.
396 * infcmd.c: Likewise.
397 * infrun.c: Likewise.
398 * interps.c: Likewise.
399 * interps.h: Likewise.
400 * jit.c: Likewise.
401 * linespec.c: Likewise.
402 * linux-nat.c: Likewise.
403 * linux-thread-db.c: Likewise.
404 * m32r-rom.c: Likewise.
405 * main.c: Likewise.
406 * memory-map.c: Likewise.
407 * mi/mi-cmd-break.c: Likewise.
408 * mi/mi-cmd-stack.c: Likewise.
409 * mi/mi-interp.c: Likewise.
410 * mi/mi-main.c: Likewise.
411 * monitor.c: Likewise.
412 * nto-procfs.c: Likewise.
413 * objc-lang.c: Likewise.
414 * p-valprint.c: Likewise.
415 * parse.c: Likewise.
416 * ppc-linux-tdep.c: Likewise.
417 * printcmd.c: Likewise.
418 * probe.c: Likewise.
419 * python/py-auto-load.c: Likewise.
420 * python/py-breakpoint.c: Likewise.
421 * python/py-cmd.c: Likewise.
422 * python/py-finishbreakpoint.c: Likewise.
423 * python/py-frame.c: Likewise.
424 * python/py-framefilter.c: Likewise.
425 * python/py-function.c: Likewise.
426 * python/py-gdb-readline.c: Likewise.
427 * python/py-inferior.c: Likewise.
428 * python/py-infthread.c: Likewise.
429 * python/py-lazy-string.c: Likewise.
430 * python/py-linetable.c: Likewise.
431 * python/py-param.c: Likewise.
432 * python/py-prettyprint.c: Likewise.
433 * python/py-symbol.c: Likewise.
434 * python/py-type.c: Likewise.
435 * python/py-value.c: Likewise.
436 * python/python-internal.h: Likewise.
437 * python/python.c: Likewise.
438 * record-btrace.c: Likewise.
439 * record-full.c: Likewise.
440 * regcache.c: Likewise.
441 * remote-fileio.c: Likewise.
442 * remote-mips.c: Likewise.
443 * remote.c: Likewise.
444 * rs6000-aix-tdep.c: Likewise.
445 * rs6000-nat.c: Likewise.
446 * skip.c: Likewise.
447 * solib-darwin.c: Likewise.
448 * solib-dsbt.c: Likewise.
449 * solib-frv.c: Likewise.
450 * solib-ia64-hpux.c: Likewise.
451 * solib-spu.c: Likewise.
452 * solib-svr4.c: Likewise.
453 * solib.c: Likewise.
454 * spu-tdep.c: Likewise.
455 * stack.c: Likewise.
456 * stap-probe.c: Likewise.
457 * symfile-mem.c: Likewise.
458 * symmisc.c: Likewise.
459 * target.c: Likewise.
460 * thread.c: Likewise.
461 * top.c: Likewise.
462 * tracepoint.c: Likewise.
463 * tui/tui-interp.c: Likewise.
464 * typeprint.c: Likewise.
465 * utils.c: Likewise.
466 * valarith.c: Likewise.
467 * valops.c: Likewise.
468 * valprint.c: Likewise.
469 * value.c: Likewise.
470 * varobj.c: Likewise.
471 * windows-nat.c: Likewise.
472 * xml-support.c: Likewise.
473
484933d1
MR
4742014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
475
476 * mips-tdep.c (add_offset_16): Rewrite to implement what the
477 name implies.
478 (extended_mips16_next_pc): Update accordingly.
479
ab50adb6
MR
4802014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
481
482 * mips-tdep.c (mips16_instruction_is_compact_branch): New
483 function.
484 (micromips_instruction_is_compact_branch): Likewise.
485 (mips16_scan_prologue): Terminate scanning upon seeing a branch
486 or a compact jump, reaching a jump delay slot, or seeing a
487 second non-prologue instruction.
488 (micromips_scan_prologue): Also terminate scanning upon seeing a
489 compact branch or jump, or reaching a branch or jump delay slot.
490 (mips32_scan_prologue): Terminate scanning upon reaching a branch
491 or jump delay slot, or seeing a second non-prologue instruction.
492 (mips32_instruction_has_delay_slot): Retain instruction
493 examination code only, update arguments accordingly and move
494 instruction fetch pieces to...
495 (mips32_insn_at_pc_has_delay_slot): ... this new function.
496 (micromips_instruction_has_delay_slot): Likewise and to...
497 (micromips_insn_at_pc_has_delay_slot): ... this new function.
498 (mips16_instruction_has_delay_slot): Likewise and to...
499 (mips16_insn_at_pc_has_delay_slot): ... this new function.
500 (mips_single_step_through_delay): Update accordingly.
501 (mips_adjust_breakpoint_address): Likewise.
502
ae790652
MR
5032014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
504
505 * mips-tdep.c (micromips_instruction_has_delay_slot): When
506 !mustbe32 also return 1 for 32-bit instructions.
507 (mips16_instruction_has_delay_slot): Likewise. Add an
508 explanatory comment.
509
9b807e7b
MR
5102014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
511
512 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
513 symbols special.
514
0d5ed153
MR
5152014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
516
517 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
518 update comments.
519 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
520 for the breakpoint's address. Don't preinitialize `placed_size'.
521 (insert_bp_location): Set `reqstd_address' rather than
522 `placed_address'.
523 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
524 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
525 address.
526 (bkpt_remove_location): Likewise.
527 (deprecated_insert_raw_breakpoint): Likewise.
528 (deprecated_remove_raw_breakpoint): Likewise.
529 (find_single_step_breakpoint): Likewise.
530 * mem-break.c (default_memory_insert_breakpoint): Use
531 `reqstd_address' for the breakpoint's address. Don't set
532 `placed_address' or `placed_size' if breakpoint contents couldn't
533 have been determined.
534 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
535 the breakpoint's address.
536 (remote_insert_hw_breakpoint): Likewise. Don't set
537 `placed_address' or `placed_size' if breakpoint couldn't have been
538 set.
539 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
540 `reqstd_address' for the breakpoint's address.
541 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
542 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
543 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
544 * microblaze-linux-tdep.c
545 (microblaze_linux_memory_remove_breakpoint): Likewise.
546 * monitor.c (monitor_insert_breakpoint): Likewise.
547 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
548 (procfs_insert_hw_breakpoint): Likewise.
549 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
550 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
551 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
552 * remote-mips.c (mips_insert_breakpoint): Likewise.
553 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
554
3e871532
LM
5552014-10-03 Luis Machado <lgustavo@codesourcery.com>
556
557 * valops.c (value_assign): Check for bit field assignments
558 before calling architecture-specific register value
559 conversion functions.
560
ec48dc8b
PM
5612014-10-03 Pierre Muller <muller@sourceware.org>
562
563 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
564
b57bacec
PA
5652014-10-02 Pedro Alves <palves@redhat.com>
566
567 * breakpoint.c (breakpoints_should_be_inserted_now): Use
568 threads_are_executing.
569 * breakpoint.h (breakpoints_should_be_inserted_now): Add
570 describing comment.
571 * gdbthread.h (threads_are_executing): Declare.
572 (handle_signal_stop) <random signals>: Don't print about the
573 signal here if stopping.
574 (end_stepping_range): Don't notify observers here.
575 (normal_stop): Update the thread list. If stopped by a random
576 signal or a stepping range ended, notify observers.
577 * thread.c (threads_executing): New global.
578 (init_thread_list): Clear 'threads_executing'.
579 (set_executing): Set or clear 'threads_executing'.
580 (threads_are_executing): New function.
581 (update_threads_executing): New function.
582 (update_thread_list): Use it.
583
13fd3ff3
PA
5842014-10-02 Pedro Alves <palves@redhat.com>
585
586 PR breakpoints/17431
587 * breakpoint.c (update_breakpoints_after_exec): Don't create
588 overlay, longjmp, std terminate nor exception breakpoints here.
589
32990ada
PA
5902014-10-02 Pedro Alves <palves@redhat.com>
591
592 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
593 Adjust comments.
594 * inferior.c (find_inferior_for_program_space): Give preference to
595 the current inferior.
596 * inferior.h (find_inferior_for_program_space): Update comment.
597 * progspace.c (switch_to_program_space_and_thread): Prefer the
598 current inferior if it's bound to the program space requested. If
599 the inferior found doesn't have a PID yet, don't bother looking up
600 a thread.
601 * progspace.h (switch_to_program_space_and_thread): Adjust
602 comment.
603 * thread.c (any_thread_of_process, any_live_thread_of_process):
604 Give preference to the current thread.
605
0fec99e8
PA
6062014-10-01 Pedro Alves <palves@redhat.com>
607
608 * breakpoint.c (insert_bp_location): Error out if inserting a
609 software breakpoint at a read-only address.
610 * target.c (memory_xfer_check_region): New function, factored out
611 from ...
612 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
613 ULONGEST.
614 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
615 against the memory region attributes.
616
2ddf4301
SM
6172014-10-01 Simon Marchi <simon.marchi@ericsson.com>
618
619 * NEWS: Announce new exit-code field in -list-thread-groups
620 output.
621 * inferior.c (exit_inferior_1): Don't clear exit code.
622 (inferior_appeared): Clear exit code.
623 * mi/mi-main.c (print_one_inferior): Add printing of the exit
624 code.
625
5fdeec1d
PA
6262014-10-01 Pedro Alves <palves@redhat.com>
627
628 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
629 GENERATED" along with emacs/vi read-only markers.
630 * regformats/aarch64.dat: Regenerate.
631 * regformats/arm-with-iwmmxt.dat: Regenerate.
632 * regformats/arm-with-neon.dat: Regenerate.
633 * regformats/arm-with-vfpv2.dat: Regenerate.
634 * regformats/arm-with-vfpv3.dat: Regenerate.
635 * regformats/i386/amd64-avx-linux.dat: Regenerate.
636 * regformats/i386/amd64-avx.dat: Regenerate.
637 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
638 * regformats/i386/amd64-avx512.dat: Regenerate.
639 * regformats/i386/amd64-linux.dat: Regenerate.
640 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
641 * regformats/i386/amd64-mpx.dat: Regenerate.
642 * regformats/i386/amd64.dat: Regenerate.
643 * regformats/i386/i386-avx-linux.dat: Regenerate.
644 * regformats/i386/i386-avx.dat: Regenerate.
645 * regformats/i386/i386-avx512-linux.dat: Regenerate.
646 * regformats/i386/i386-avx512.dat: Regenerate.
647 * regformats/i386/i386-linux.dat: Regenerate.
648 * regformats/i386/i386-mmx-linux.dat: Regenerate.
649 * regformats/i386/i386-mmx.dat: Regenerate.
650 * regformats/i386/i386-mpx-linux.dat: Regenerate.
651 * regformats/i386/i386-mpx.dat: Regenerate.
652 * regformats/i386/i386.dat: Regenerate.
653 * regformats/i386/x32-avx-linux.dat: Regenerate.
654 * regformats/i386/x32-avx.dat: Regenerate.
655 * regformats/i386/x32-avx512-linux.dat: Regenerate.
656 * regformats/i386/x32-avx512.dat: Regenerate.
657 * regformats/i386/x32-linux.dat: Regenerate.
658 * regformats/i386/x32.dat: Regenerate.
659 * regformats/microblaze-with-stack-protect.dat: Regenerate.
660 * regformats/mips-dsp-linux.dat: Regenerate.
661 * regformats/mips-linux.dat: Regenerate.
662 * regformats/mips64-dsp-linux.dat: Regenerate.
663 * regformats/mips64-linux.dat: Regenerate.
664 * regformats/nios2-linux.dat: Regenerate.
665 * regformats/rs6000/powerpc-32.dat: Regenerate.
666 * regformats/rs6000/powerpc-32l.dat: Regenerate.
667 * regformats/rs6000/powerpc-64l.dat: Regenerate.
668 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
669 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
670 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
671 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
672 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
673 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
674 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
675 * regformats/s390-linux32.dat: Regenerate.
676 * regformats/s390-linux32v1.dat: Regenerate.
677 * regformats/s390-linux32v2.dat: Regenerate.
678 * regformats/s390-linux64.dat: Regenerate.
679 * regformats/s390-linux64v1.dat: Regenerate.
680 * regformats/s390-linux64v2.dat: Regenerate.
681 * regformats/s390-te-linux64.dat: Regenerate.
682 * regformats/s390x-linux64.dat: Regenerate.
683 * regformats/s390x-linux64v1.dat: Regenerate.
684 * regformats/s390x-linux64v2.dat: Regenerate.
685 * regformats/s390x-te-linux64.dat: Regenerate.
686 * regformats/tic6x-c62x-linux.dat: Regenerate.
687 * regformats/tic6x-c62x.dat: Regenerate.
688 * regformats/tic6x-c64x-linux.dat: Regenerate.
689 * regformats/tic6x-c64x.dat: Regenerate.
690 * regformats/tic6x-c64xp-linux.dat: Regenerate.
691 * regformats/tic6x-c64xp.dat: Regenerate.
692
db74e4ba
PA
6932014-10-01 Pedro Alves <palves@redhat.com>
694
695 * features/Makefile: Update comments.
696 (XMLTOC): List all xml files we build C files from.
697 (clean-cfiles): New rule.
698
d63f2f84
PA
6992014-10-01 Pedro Alves <palves@redhat.com>
700
701 * features/i386/amd64-avx512-linux.c: Regenerate.
702 * features/i386/amd64-avx512.c: Regenerate.
703 * features/i386/x32-avx512-linux.c: Regenerate.
704 * features/i386/x32-avx512.c: Regenerate.
705
20ad026d
PA
7062014-10-01 Pedro Alves <palves@redhat.com>
707
708 * features/Makefile (WHICH): Remove arm-with-m,
709 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
710
acc9fe45
PA
7112014-10-01 Pedro Alves <palves@redhat.com>
712
713 * features/Makefile (clean): New rule.
714
e001e535
PA
7152014-10-01 Pedro Alves <palves@redhat.com>
716
717 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
718 (zmm14h): Add missing end quotes.
719
bdc14417
PA
7202014-10-01 Pedro Alves <palves@redhat.com>
721
722 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
723 * features/aarch64.c: Regenerate.
724
d83ad864
DB
7252014-09-30 Don Breazeal <donb@codesourcery.com>
726
727 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
728 code so as to work with follow_fork_inferior.
729 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
730 (inf_ttrace_create_inferior): Remove reference to
731 inf_ttrace_vfork_ppid.
732 (inf_ttrace_attach): Ditto.
733 (inf_ttrace_detach): Ditto.
734 (inf_ttrace_kill): Use current_inferior instead of
735 inf_ttrace_vfork_ppid.
736 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
737 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
738 inferior away from the parent.
739 * infrun.c (follow_fork): Call follow_fork_inferior instead of
740 target_follow_fork.
741 (follow_fork_inferior): New function.
742 (follow_inferior_reset_breakpoints): Make function static.
743 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
744 * linux-nat.c (linux_child_follow_fork): Move target-independent
745 code to infrun.c:follow_fork_inferior.
746
29082443
AA
7472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
748
749 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
750 * gdbarch.c: Regenerate.
751 * gdbarch.h: Likewise.
752 * corelow.c (sniff_core_bfd): Drop presence check for deleted
753 gdbarch method 'regset_from_core_section'.
754 (get_core_register_section): Remove handling for the case that
755 regset == NULL and regset_from_core_section is defined.
756 (get_core_registers): Drop check for deleted method.
757 * procfs.c (procfs_do_thread_registers): Adjust comment.
758
f968fe80
AA
7592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
760
761 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
762 (linux_nat_make_corefile_notes): Remove.
763 (linux_target_install_ops): Do not set target method
764 'make_corefile_notes'.
765 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
766 Remove field.
767 (linux_corefile_thread_callback): Instead of args->collect, call
768 linux_collect_thread_registers.
769 (linux_make_corefile_notes): Remove 'collect' parameter. Return
770 NULL unless there is a regset iterator.
771 (linux_make_corefile_notes_1): Remove.
772 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
773 by linux_make_corefile_notes.
774 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
775
174ad59a
AA
7762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
777
778 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
779 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
780 Remove.
781 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
782
97094034
AA
7832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
784
785 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
786 (xtensa_iterate_over_regset_sections): New.
787 (xtensa_gdbarch_init): Adjust gdbarch initialization.
788
f73d3ce7
AA
7892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
790
791 * vax-tdep.c (vax_regset_from_core_section): Remove.
792 (vax_iterate_over_regset_sections): New.
793 (vax_gdbarch_init): Adjust gdbarch initialization.
794
cb24567a
AA
7952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
796
797 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
798 (tilegx_regset_from_core_section): Remove.
799 (tilegx_iterate_over_regset_sections): New.
800 (tilegx_linux_init_abi): Adjust gdbarch initialization.
801
e5139de8
AA
8022014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
803
804 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
805 (sparc_iterate_over_regset_sections): New.
806 (sparc32_gdbarch_init): Adjust gdbarch initialization.
807 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
808 targets.
809 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
810 (sparc64fbsd_init_abi): Call fbsd_init_abi.
811 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
812 target method 'make_corefile_notes'.
813
c6d41a6f
AA
8142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
815
816 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
817 'sizeof_gregset' and 'sizeof_fpregset'.
818 * sh-tdep.c (sh_regset_from_core_section): Remove.
819 (sh_iterate_over_regset_sections): New.
820 (sh_gdbarch_init): Adjust gdbarch initialization.
821 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
822 sizeof_fpregset.
823 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
824 'sizeof_gregset'.
825
9845a0b5
AA
8262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
827
828 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
829 (score7_linux_iterate_over_regset_sections): New.
830 (score_gdbarch_init): Adjust gdbarch initialization.
831
23ea9aeb
AA
8322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
833
834 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
835 FreeBSD targets.
836 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
837 method 'make_corefile_notes'.
838 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
839 (ppcfbsd_regset_from_core_section): Remove.
840 (ppcfbsd_iterate_over_regset_sections): New.
841 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
842 initialization.
843 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
844 (ppcnbsd_iterate_over_regset_sections): New.
845 (ppcnbsd_init_abi): Adjust.
846 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
847 (ppcobsd_iterate_over_regset_sections): New.
848 (ppcobsd_init_abi): Adjust.
849 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
850 (rs6000_aix_iterate_over_regset_sections): New.
851 (rs6000_aix_init_osabi): Adjust.
852
c5b8d704
AA
8532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
854
855 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
856 (nios2_regset_from_core_section): Remove.
857 (nios2_iterate_over_regset_sections): New.
858 (nios2_linux_init_abi): Adjust gdbarch initialization.
859
3636e608
AA
8602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
861
862 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
863 (am33_iterate_over_regset_sections): New.
864 (am33_linux_init_osabi): Adjust gdbarch initialization.
865
d4036235
AA
8662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
867
868 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
869 (mips_linux_iterate_over_regset_sections): New.
870 (mips_linux_init_abi): Adjust gdbarch initialization.
871 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
872 (mips64obsd_iterate_over_regset_sections): New.
873 (mips64obsd_init_abi): Adjust.
874 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
875 (mipsnbsd_iterate_over_regset_sections): New.
876 (mipsnbsd_init_abi): Adjust.
877
b61ddd6e
AA
8782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
879
880 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
881 (m88k_iterate_over_regset_sections): New.
882 (m88k_gdbarch_init): Adjust gdbarch initialization.
883
55a2906a
AA
8842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
885
886 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
887 (ia64_linux_iterate_over_regset_sections): New.
888 (ia64_linux_init_abi): Adjust gdbarch initialization.
889
022c98ab
AA
8902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
891
892 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
893 (m68kbsd_iterate_over_regset_sections): New.
894 (m68kbsd_init_abi): Adjust gdbarch initialization.
895 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
896 (m68k_linux_iterate_over_regset_sections): New.
897 (m68k_linux_init_abi): Adjust gdbarch initialization.
898
5fac247f
AA
8992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
900
901 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
902 (m32r_linux_regset_from_core_section): Remove.
903 (m32r_linux_iterate_over_regset_sections): New.
904 (m32r_linux_init_abi): Adjust gdbarch initialization.
905
490496c3
AA
9062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
907
908 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
909 (amd64obsd_iterate_over_regset_sections): New.
910 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
911 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
912 Remove.
913 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
914 regset_from_core_section initialization.
915 * i386-tdep.c (i386_regset_from_core_section): Remove.
916 (i386_iterate_over_regset_sections): New.
917 (i386_gdbarch_init): Adjust gdbarch initialization.
918 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
919 (i386_iterate_over_regset_sections): New prototype.
920 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
921 Remove.
922 (i386obsd_aout_iterate_over_regset_sections): New.
923 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
924 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
925 targets.
926 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
927 (amd64fbsd_init_abi): Call fbsd_init_abi.
928 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
929 (i386fbsd4_init_abi): Call fbsd_init_abi.
930 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
931 target method 'make_corefile_notes'.
932 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
933
50c5eb53
AA
9342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
935
936 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
937 (hppa_hpux_iterate_over_regset_sections): New.
938 (hppa_hpux_init_abi): Adjust gdbarch initialization.
939 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
940 (hppa_linux_iterate_over_regset_sections): New.
941 (hppa_linux_init_abi): Adjust.
942 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
943 (hppanbsd_iterate_over_regset_sections): New.
944 (hppanbsd_init_abi): Adjust.
945 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
946 (hppaobsd_iterate_over_regset_sections): New.
947 (hppaobsd_init_abi): Adjust.
948
66afae4f
AA
9492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
950
951 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
952 (frv_linux_iterate_over_regset_sections): New.
953 (frv_linux_init_abi): Adjust gdbarch initialization.
954
ed09174e
AA
9552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
956
957 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
958 (armbsd_iterate_over_regset_sections): New prototype.
959 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
960 (armbsd_iterate_over_regset_sections): New.
961 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
962 initialization.
963
dff2166e
AA
9642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
965
966 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
967 (alpha_linux_iterate_over_regset_sections): New.
968 (alpha_linux_init_abi): Adjust gdbarch initialization.
969 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
970 prototype.
971 (alphanbsd_iterate_over_regset_sections): New prototype.
972
4108500a
AA
9732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
974
975 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
976 Remove.
977 (aarch64_linux_iterate_over_regset_sections): New.
978 (aarch64_linux_init_abi): Adjust gdbarch initialization.
979
a904c024
AA
9802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
981
982 * fbsd-tdep.c: New file.
983 * fbsd-tdep.h: New file.
984 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
985 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
986 (ALLDEPFILES): Add fbsd-tdep.c.
987
8f0435f7
AA
9882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
989
990 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
991 parameter.
992 * gdbarch.h: Regenerate.
993 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
994 iterator.
995 (get_core_register_section): Add parameter 'regset' and use it, if
996 set. Add parameter 'min_size' and verify the bfd section size
997 against it.
998 (get_core_registers_cb): Add parameter 'regset' and pass it to
999 get_core_register section. For the "standard" register sections
1000 ".reg" and ".reg2", set an appropriate default for human_name.
1001 (get_core_registers): Don't abort when the gdbarch has an iterator
1002 but no regset_from_core_section. Add NULL/0 for parameters
1003 'regset'/'min_size' in calls to get_core_register_section.
1004 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1005 'regset' and use it instead of calling the
1006 regset_from_core_section gdbarch method.
1007 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1008 * i386-tdep.c (i386_supply_xstateregset)
1009 (i386_collect_xstateregset, i386_xstateregset): Moved to
1010 i386-linux-tdep.c.
1011 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1012 .reg-xstate.
1013 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1014 core file support only if the regset iterator hasn't been set.
1015 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1016 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1017 Moved from i386-tdep.c and renamed to *_linux*.
1018 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1019 each callback invocation. Allow any .reg-xstate size when reading
1020 from a core file.
1021 * amd64-tdep.c (amd64_supply_xstateregset)
1022 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1023 amd64-linux-tdep.c.
1024 (amd64_regset_from_core_section): Remove.
1025 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1026 install an amd64-specific regset_from_core_section gdbarch method.
1027 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1028 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1029 Moved from amd64-tdep.c and renamed to *_linux*.
1030 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1031 to each callback invocation. Allow any .reg-xstate size when
1032 reading from a core file.
1033 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1034 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1035 each callback invocation.
1036 (arm_linux_init_abi): No longer set the regset_from_core_section
1037 gdbarch method.
1038 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1039 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1040 each callback invocation.
1041 (ppc_linux_init_abi): No longer set the regset_from_core_section
1042 gdbarch method.
1043 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1044 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1045 (s390_regset_from_core_section): Remove.
1046 (s390_iterate_over_regset_sections): Add regset parameter to each
1047 callback invocation.
1048 (s390_gdbarch_init): No longer set the regset_from_core_section
1049 gdbarch method. Drop initialization of deleted tdep fields.
1050
5aa82d05
AA
10512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1052
1053 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1054 (amd64_linux_iterate_over_regset_sections): New.
1055 (amd64_linux_init_abi_common): Don't install the regset section
1056 list, but the new iterator in gdbarch.
1057 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1058 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1059 (arm_linux_iterate_over_regset_sections): ...here. New function.
1060 (arm_linux_init_abi): Set iterator instead of section list.
1061 * corelow.c (get_core_registers_cb): New function, logic moved
1062 from...
1063 (get_core_registers): ...loop body here. Use new iterator method
1064 instead of walking through the regset section list.
1065 * gdbarch.sh: Remove 'core_regset_sections'. New method
1066 'iterate_over_regset_sections'. New typedef
1067 'iterate_over_regset_sections_cb'.
1068 * gdbarch.c: Regenerate.
1069 * gdbarch.h: Likewise.
1070 * i386-linux-tdep.c (i386_linux_regset_sections)
1071 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1072 Remove.
1073 (i386_linux_iterate_over_regset_sections): New.
1074 (i386_linux_init_abi): Don't choose a regset section list, but
1075 install new iterator in gdbarch.
1076 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1077 (linux_collect_regset_section_cb): New function, logic moved
1078 from...
1079 (linux_collect_thread_registers): ...loop body here. Use iterator
1080 method instead of walking through list.
1081 (linux_make_corefile_notes_1): Check for presence of iterator
1082 method instead of regset section list.
1083 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1084 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1085 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1086 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1087 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1088 (ppc_linux_init_abi): Don't choose from above regset section
1089 lists, but install new iterator in gdbarch.
1090 * regset.h (struct core_regset_section): Remove.
1091 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1092 have_linux_v1, have_linux_v2, and have_tdb.
1093 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1094 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1095 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1096 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1097 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1098 (s390_iterate_over_regset_sections): ...here. New function. Use
1099 new tdep fields.
1100 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1101 regset section lists, but install new iterator.
1102
2eca4a8d
JK
11032014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1104
1105 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1106
a73c2b56
SM
11072014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1108
1109 * progspace.c (print_program_space): Don't prune program spaces
1110 before printing them.
1111
03d46957
PA
11122014-09-25 Pedro Alves <palves@redhat.com>
1113
1114 * infrun.c (user_visible_resume_ptid): Don't check
1115 singlestep_breakpoints_inserted_p.
1116
e558d7c1
PA
11172014-09-25 Pedro Alves <palves@redhat.com>
1118
1119 * breakpoint.c (should_be_inserted): Add debug output.
1120
7f89fd65
PA
11212014-09-25 Pedro Alves <palves@redhat.com>
1122
1123 * infrun.c (stepping_past_instruction_at)
1124 (clear_exit_convenience_vars): Point at infrun.h instead of
1125 inferior.h.
1126 (handle_signal_stop): Fix typo.
1127
b7576e5c
YQ
11282014-09-24 Yao Qi <yao@codesourcery.com>
1129
1130 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1131 bitmask.
1132
9a6cf368
GB
11332014-09-22 Gary Benson <gbenson@redhat.com>
1134
1135 * target.c (target_stop): Updated comment.
1136
03f4463b
GB
11372014-09-22 Gary Benson <gbenson@redhat.com>
1138
1139 * target/target.h (target_stop_ptid): Renamed as...
1140 (target_stop_and_wait): New function. Updated comment.
1141 All uses updated.
1142 (target_continue_ptid): Renamed as...
1143 (target_continue_no_signal): New function. Updated comment.
1144 All uses updated.
1145
a25a5a45
PA
11462014-09-22 Pedro Alves <palves@redhat.com>
1147
1148 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1149 and "auto" merged.
1150 * breakpoint.c (enum ugll_insert_mode): New enum.
1151 (always_inserted_mode): Now a plain boolean.
1152 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1153 (breakpoints_always_inserted_mode): Delete.
1154 (breakpoints_should_be_inserted_now): New function.
1155 (insert_breakpoints): Pass UGLL_INSERT to
1156 update_global_location_list instead of calling
1157 insert_breakpoint_locations manually.
1158 (create_solib_event_breakpoint_1): New, factored out from ...
1159 (create_solib_event_breakpoint): ... this.
1160 (create_and_insert_solib_event_breakpoint): Use
1161 create_solib_event_breakpoint_1 instead of calling
1162 insert_breakpoint_locations manually.
1163 (update_global_location_list): Change parameter type from boolean
1164 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1165 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1166 (update_global_location_list_nothrow): Change parameter type from
1167 boolean to enum ugll_insert_mode.
1168 (_initialize_breakpoint): "breakpoint always-inserted" option is
1169 now a boolean command. Update help text.
1170 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1171 (breakpoints_should_be_inserted_now): New declaration.
1172 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1173 Remove breakpoints_always_inserted_mode check.
1174 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1175 * remote.c (remote_start_remote): Likewise.
1176
04086b45
PA
11772014-09-22 Pedro Alves <palves@redhat.com>
1178
1179 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1180 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1181 Instead, pass UGLL_INSERT to update_global_location_list.
1182 (update_global_location_list): Change parameter type from boolean
1183 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1184 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1185 (create_solib_event_breakpoint_1): New, factored out from ...
1186 (create_solib_event_breakpoint): ... this.
1187 (create_and_insert_solib_event_breakpoint): Use
1188 create_solib_event_breakpoint_1 instead of calling
1189 insert_breakpoint_locations manually.
1190 (update_global_location_list): Handle UGLL_INSERT.
1191
44702360
PA
11922014-09-22 Pedro Alves <palves@redhat.com>
1193
1194 * breakpoint.c (enum ugll_insert_mode): New enum.
1195 (update_global_location_list)
1196 (update_global_location_list_nothrow): Change parameter type from
1197 boolean to enum ugll_insert_mode. All callers adjusted.
1198
93c6145a
JB
11992014-09-19 Joel Brobecker <brobecker@adacore.com>
1200
1201 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1202 SystemTap support in GDB.
1203
89a5711c
DB
12042014-09-19 Don Breazeal <donb@codesourcery.com>
1205
1206 * linux-nat.c (linux_handle_extended_wait): Call
1207 linux_ptrace_get_extended_event.
1208 (wait_lwp): Call linux_is_extended_waitstatus.
1209 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1210 and linux_is_extended_waitstatus.
1211 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1212 linux_ptrace_get_extended_event.
1213 (linux_ptrace_get_extended_event): New function.
1214 (linux_is_extended_waitstatus): New function.
1215 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1216 (linux_is_extended_waitstatus): New declarations.
1217
c3b7b696
YQ
12182014-09-19 Yao Qi <yao@codesourcery.com>
1219
1220 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1221 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1222 comments. Callers update.
1223 (dwarf_decode_lines): Likewise.
1224 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1225 comments. Skip the line table if 'lowpc' is greater than
1226 'address'. Don't check
1227 dwarf2_per_objfile->has_section_at_zero.
1228
2b4fd423
DE
12292014-09-18 Doug Evans <dje@google.com>
1230
1231 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1232 * python/py-symtab.c (stpy_get_producer): New function.
1233 (symtab_object_getset): Add "producer" attribute.
1234
5e43d467
UW
12352014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1236
1237 PR gdb/17384
1238 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1239 (do_captured_read_memory_integer): Remove.
1240 (safe_read_memory_integer): Use target_read_memory directly instead
1241 of catching errors in do_captured_read_memory_integer.
1242
04e79979
MR
12432014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1244
1245 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1246 not gdb/doc.
1247
76aeec5b
SDJ
12482014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1249
1250 * objc-lang.c (find_implementation_from_class): Remove dead code.
1251
2f693f9d
SDJ
12522014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1253
1254 PR cli/7233
1255 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1256 "fprintf_unfiltered (gdb_stdlog...)".
1257
bb9d5f81
PP
12582014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1259
1260 PR breakpoints/12526
1261 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1262 val_bitsize.
1263 * breakpoint.c (watch_command_1): Use these fields to retain
1264 bitfield information.
1265 (extract_bitfield_from_watchpoint_value): New function.
1266 (watchpoint_check): Use it.
1267 (update_watchpoint): Use it. Optimize the address and length of a
1268 HW watchpoint pointing to a bitfield.
1269 * value.h (unpack_value_bitfield): New prototype.
1270 * value.c (unpack_value_bitfield): Make extern.
1271
05db5edd
ST
12722014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1273
1274 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1275 x86-dregs.o.
1276 * gnu-nat.c (inf_threads): New function.
1277 * gnu-nat.h (inf_threads_ftype): New typedef.
1278 (inf_threads): New declaration.
1279 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1280 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1281 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1282 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1283 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1284 (i386_gnu_dr_get_control): New functions.
1285 (reg_addr): New structure.
1286 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1287 i386 debugging register hooks.
1288 * NEWS: Mention this.
1289
5a578da5
OJ
12902014-08-13 Omair Javaid <omair.javaid@linaro.org>
1291
1292 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1293 vector data transfer instructions.
1294 (arm_record_coproc_data_proc): Updated.
1295
f20f80dd
OJ
12962014-08-13 Omair Javaid <omair.javaid@linaro.org>
1297
1298 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1299 arm_record_exreg_ld_st_insn.
1300 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1301 load/store insns.
1302
851f26ae
OJ
13032014-08-13 Omair Javaid <omair.javaid@linaro.org>
1304
1305 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1306 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1307 processing instructions.
1308
1e1b6563
OJ
13092014-08-13 Omair Javaid <omair.javaid@linaro.org>
1310
1311 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1312 for advance SIMD struct ld/st insn.
1313 (thumb2_record_decode_insn_handler): Replace stub handler with
1314 thumb2_record_asimd_struct_ld_st.
1315
60cc5e93
OJ
13162014-08-13 Omair Javaid <omair.javaid@linaro.org>
1317
1318 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1319 for asimd, vfp and coprocessor insns.
1320 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1321 and coprocessor insns.
1322 (thumb2_record_coproc_insn): New function.
1323 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1324 handlers.
1325 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1326 opcode 110 insns.
1327
81219e53
DE
13282014-09-13 Doug Evans <xdje42@gmail.com>
1329
1330 * NEWS: Mention new "queue-signal" command.
1331 * infcmd.c (queue_signal_command): New function.
1332 (_initialize_infcmd): Add new queue-signal command.
1333
d36bf488
DE
13342014-09-13 Doug Evans <xdje42@gmail.com>
1335
1336 * linux-nat.c (wait_lwp): Add debugging printf.
1337 (linux_nat_wait_1): Ditto.
1338
f37f681c
PA
13392014-09-12 Pedro Alves <palves@redhat.com>
1340
1341 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1342 (create_and_insert_solib_event_breakpoint): New functions.
1343 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1344 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1345 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1346 (remove_dbx_link_breakpoint): Delete function.
1347 (insert_dbx_link_bpt_in_file): Use
1348 create_and_insert_solib_event_breakpoint instead of
1349 deprecated_insert_raw_breakpoint.
1350 (procfs_wait): Don't check whether we hit __dbx_link here.
1351 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1352 here.
1353 * solib-irix.c (base_breakpoint): Delete global.
1354 (disable_break): Delete function.
1355 (enable_break): Use create_solib_event_breakpoint
1356 instead of deprecated_insert_raw_breakpoint.
1357 (irix_solib_handle_event): New function.
1358 (irix_solib_create_inferior_hook): Don't run the target or disable
1359 the mapping-complete breakpoint here.
1360 (_initialize_irix_solib): Install irix_solib_handle_event as
1361 so_ops->handle_event hook.
1362
9d9bf2df
EBM
13632014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1364 Ulrich Weigand  <uweigand@de.ibm.com>
1365
1366 PR tdep/17379
1367 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1368 instead of read_memory_unsigned_integer.
1369
b006a80e
GB
13702014-09-12 Gary Benson <gbenson@redhat.com>
1371
1372 * nat/linux-waitpid.c: Include common-defs.h.
1373 [GDBSERVER]: Add FIXME comment.
1374 [!GDBSERVER]: Don't include defs.h or signal.h.
1375 (linux_debug) [!GDBSERVER]: Remove empty block.
1376
296b1496
GB
13772014-09-12 Gary Benson <gbenson@redhat.com>
1378
1379 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1380 Don't include defs.h or server.h.
1381
53f81362
GB
13822014-09-12 Gary Benson <gbenson@redhat.com>
1383
1384 * nat/linux-btrace.c: Include common-defs.h.
1385 Don't include defs.h, server.h or gdbthread.h.
1386 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1387
727605ca
GB
13882014-09-12 Gary Benson <gbenson@redhat.com>
1389
1390 * common/agent.c: Include common-defs.h.
1391 Don't include defs.h or server.h.
1392 * common/buffer.c: Likewise.
1393 * common/common-debug.c: Likewise.
1394 * common/common-utils.c: Likewise.
1395 * common/errors.c: Likewise.
1396 * common/filestuff.c: Likewise.
1397 * common/format.c: Likewise.
1398 * common/gdb_vecs.c: Likewise.
1399 * common/print-utils.c: Likewise.
1400 * common/ptid.c: Likewise.
1401 * common/rsp-low.c: Likewise.
1402 * common/signals.c: Likewise.
1403 * common/vec.c: Likewise.
1404 * common/xml-utils.c: Likewise.
1405 * nat/linux-osdata.c: Likewise.
1406 * nat/linux-procfs.c: Likewise.
1407 * nat/linux-ptrace.c: Likewise.
1408 * nat/mips-linux-watch.c: Likewise.
1409 * target/waitstatus.c: Likewise.
1410
361c8ade
GB
14112014-09-12 Tom Tromey <tromey@redhat.com>
1412 Gary Benson <gbenson@redhat.com>
1413
1414 * common/common-regcache.h: New file.
1415 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1416 * regcache.h: Include common-regcache.h.
1417 (regcache_read_pc): Don't declare.
1418 * regcache.c (get_thread_regcache_for_ptid): New function.
1419 * nat/linux-btrace.c: Don't include regcache.h.
1420 Include common-regcache.h.
1421 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1422
a01cbb49
TS
14232014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1424
1425 * regcache.h (struct regset): Declare.
1426
98880d46
PA
14272014-09-11 Pedro Alves <palves@redhat.com>
1428
1429 PR gdb/17347
1430 * main.c: Include "infrun.h".
1431 (catch_command_errors, catch_command_errors_const): Wait for the
1432 foreground command to complete.
1433 * top.c (maybe_wait_sync_command_done): New function, factored out
1434 from ...
1435 (maybe_wait_sync_command_done): ... here.
1436 * top.h (maybe_wait_sync_command_done): New declaration.
1437
bd9269f7
GB
14382014-09-11 Tom Tromey <tromey@redhat.com>
1439 Gary Benson <gbenson@redhat.com>
1440
1441 * common/symbol.h: New file.
1442 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1443 * minsyms.c (find_minimal_symbol_address): New function.
1444 * common/agent.c: Include common/symbol.h.
1445 [!GDBSERVER]: Don't include objfiles.h.
1446 (agent_look_up_symbols): Use find_minimal_symbol_address.
1447
f8c1d06b
GB
14482014-09-11 Gary Benson <gbenson@redhat.com>
1449
1450 * target/target.h (target_stop_ptid, target_continue_ptid):
1451 Declare.
1452 * target.c (target_stop_ptid, target_continue_ptid): New
1453 functions.
1454 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1455 (agent_run_command): Always use target_stop_ptid and
1456 target_continue_ptid.
1457
721ec300
GB
14582014-09-11 Tom Tromey <tromey@redhat.com>
1459 Gary Benson <gbenson@redhat.com>
1460
1461 * target/target.h: New file.
1462 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1463 * target.h: Include target/target.h.
1464 (target_read_memory, target_write_memory): Don't declare.
1465 * target.c (target_read_uint32): New function.
1466 * common/agent.c: Include target/target.h.
1467 [!GDBSERVER]: Don't include target.h.
1468 (helper_thread_id): Type changed to uint32_t.
1469 (agent_get_helper_thread_id): Use target_read_uint32.
1470 (agent_run_command): Always use target_read_memory and
1471 target_write_memory.
1472 (agent_capability): Type changed to uint32_t.
1473 (agent_capability_check): Use target_read_uint32.
1474
c5e92cca
GB
14752014-09-11 Gary Benson <gbenson@redhat.com>
1476
1477 * common/common-debug.h (show_debug_regs): Declare.
1478 * common/common-debug.c (show_debug_regs): Define.
1479 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1480 all uses with show_debug_regs. Replace all uses that considered
1481 debug_hw_points as a multi-value integer with straight boolean
1482 uses.
1483 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1484 with show_debug_regs.
1485 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1486 all uses with show_debug_regs.
1487 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1488 uses with show_debug_regs.
1489
eeef931a
UW
14902014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1491
1492 * findvar.c (address_from_register): Handle targets requiring
1493 a special conversion routine even for plain pointer types.
1494
8efa9855
UW
14952014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1496
1497 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1498 (store_register): Do not call exec_one_dummy_insn.
1499
eb479039
JB
15002014-09-10 Joel Brobecker <brobecker@adacore.com>
1501
1502 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1503 dereference it first. Use value_enclosing_type instead of
1504 value_type.
1505 (ada_array_length): Likewise.
1506
deede10c
JB
15072014-09-10 Joel Brobecker <brobecker@adacore.com>
1508
1509 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1510 Adjust function implementation and documentation accordingly.
1511 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1512 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1513 Update call to ada_value_ptr_subscript.
1514
7828a5f5
JB
15152014-09-10 Joel Brobecker <brobecker@adacore.com>
1516
1517 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1518 instead of VAL's type.
1519
35782f14
JB
15202014-09-10 Joel Brobecker <brobecker@adacore.com>
1521
1522 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1523
d342a0da
DE
15242014-09-09 Doug Evans <xdje42@gmail.com>
1525
1526 PR guile/17367
1527 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1528 last parameter to pkg-config, not first.
1529 * configure.ac: Pass --with-guile provided pkg-config path to
1530 GDB_GUILE_PROGRAM_NAMES.
1531 * configure: Regenerate.
1532
b4a3d263
GKB
15332014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1534
1535 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1536 Bertazi".
1537
6e466374
MR
15382014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1539
1540 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1541 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1542 the list of sections determining GDB_OSABI_IRIX.
1543
a1ada89a
JH
15442014-09-09 James Hogan <james.hogan@imgtec.com>
1545
1546 * MAINTAINERS (Write After Approval): Add "James Hogan".
1547
86db008d
JH
15482014-09-09 James Hogan <james.hogan@imgtec.com>
1549
1550 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1551
72fde3df
JB
15522014-09-09 Joel Brobecker <brobecker@adacore.com>
1553
1554 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1555
92d8d229
DE
15562014-09-08 Doug Evans <xdje42@gmail.com>
1557
1558 PR 17247
1559 * guile.c: #include <signal.h>.
1560 (_initialize_guile): Block SIGCHLD while initializing Guile.
1561
1562 Replaces the following, which is reverted.
1563
1564 2014-07-26 Doug Evans <xdje42@gmail.com>
1565
1566 PR 17185
1567 * configure.ac: Add check for header gc/gc.h.
1568 Add check for function setenv.
1569 * configure: Regenerate.
1570 * config.in: Regenerate.
1571 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1572
d81412aa
DE
15732014-09-08 Doug Evans <xdje42@gmail.com>
1574
1575 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1576 with named constant. Fix style of pointer comparison.
1577 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1578
a9f116cb
GKB
15792014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1580
1581 PR gdb/17035
1582 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1583 decide whether we display the command on "show user".
1584 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1585 printing command name.
1586 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1587 * cli/cli-decode.c (cli_user_command_p): Create helper function
1588 to verify whether cmd_list_element is a user-defined command.
1589
c75bd3a2
JK
15902014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1591
1592 PR python/17355
1593 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1594 Fix goto out of TRY_CATCH.
1595
faa42425 15962014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1597 Tom Tromey <tromey@redhat.com>
faa42425
DE
1598
1599 PR 15276
1600 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1601 $_any_caller_matches.
1602 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1603 * python/lib/gdb/function/caller_is.py: New file.
1604
0d41ba00
DE
16052014-09-06 Doug Evans <xdje42@gmail.com>
1606
1607 * infcmd.c (program_info): Fix typo.
1608
474ca4f6
SDJ
16092014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1610
1611 PR gdb/17235
1612 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1613 'number'. New variable 'has_digit'. Rewrite code to deal with
1614 subexpressions on SDT probes.
1615
ebf13736
PA
16162014-09-04 Pedro Alves <palves@redhat.com>
1617
1618 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1619 the input is only one character long.
1620
eb0b0463
SDJ
16212014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1622
1623 PR fortran/17237
1624 * f-valprint.c (f_val_print): Specify the correct print option to
1625 use when printing integer values.
1626
5ee44bfa
GB
16272014-09-04 Gary Benson <gbenson@redhat.com>
1628
1629 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1630 Remove code to cope with LWPs wrapped as PIDs.
1631 Add assertions to ensure no wrapped LWPs are passed.
1632
4875ffdb
PA
16332014-09-04 Pedro Alves <palves@redhat.com>
1634
1635 * value.c (value_ranges_copy_adjusted): New function, factored out
1636 from ...
1637 (value_contents_copy_raw): ... here.
1638 (unpack_value_bits_as_long_1): Rename back to ...
1639 (unpack_bits_as_long): ... this. Remove 'original_value' and
1640 'result' parameters. Change return type to LONGEST.
1641 (unpack_value_bits_as_long): Delete.
1642 (unpack_value_field_as_long_1): Delete.
1643 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1644 (unpack_value_bitfield): New function.
1645 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1646 (value_fetch_lazy): Use unpack_value_bitfield.
1647 * value.h (unpack_value_bits_as_long): Delete declaration.
1648
5f3b99cf
SS
16492014-09-03 Sasha Smundak <asmundak@google.com>
1650
1651 * python/py-frame.c (frapy_read_register): New function.
1652
ac740bc7
JH
16532014-09-03 James Hogan <james.hogan@imgtec.com>
1654
1655 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1656 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1657
7d793aa9
SDJ
16582014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1659
1660 PR python/16699
1661 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1662 function.
1663 (add_cmd): Set "completer_handle_brkchars" to NULL.
1664 * cli/cli-decode.h (struct cmd_list_element)
1665 <completer_handle_brkchars>: New field.
1666 * command.h (completer_ftype_void): New typedef.
1667 (set_cmd_completer_handle_brkchars): New prototype.
1668 * completer.c (set_gdb_completion_word_break_characters): New
1669 function.
1670 (complete_line_internal): Call "completer_handle_brkchars"
1671 callback from command.
1672 * completer.h: Include "command.h".
1673 (set_gdb_completion_word_break_characters): New prototype.
1674 * python/py-cmd.c (cmdpy_completer_helper): New function.
1675 (cmdpy_completer_handle_brkchars): New function.
1676 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1677 (cmdpy_init): Set completer_handle_brkchars to
1678 cmdpy_completer_handle_brkchars.
1679
97ea6506
GB
16802014-09-03 Gary Benson <gbenson@redhat.com>
1681
1682 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1683 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1684 Loop conditions changed to equivalent form.
1685 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1686 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1687 ALL_DEBUG_ADDRESS_REGISTERS.
1688
d1437815
JB
16892014-09-03 Joel Brobecker <brobecker@adacore.com>
1690
1691 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1692 description fix.
1693
9b94fcf1
DE
16942014-09-02 Doug Evans <dje@google.com>
1695
1696 * typeprint.c (find_global_typedef): Fix comment.
1697
df7e5265
GB
16982014-09-02 Gary Benson <gbenson@redhat.com>
1699
1700 * i386-nat.h: Renamed as...
1701 * x86-nat.h: New file. All type, function and variable name
1702 prefixes changed from "i386_" to "x86_". All references updated.
1703 * i386-nat.c: Renamed as...
1704 * x86-nat.c: New file. All type, function and variable name
1705 prefixes changed from "i386_" to "x86_". All references updated.
1706 * common/i386-xstate.h: Renamed as...
1707 * common/x86-xstate.h: New file. All type, function and variable
1708 name prefixes changed from "i386_" to "x86_". All references
1709 updated.
1710 * nat/i386-cpuid.h: Renamed as...
1711 * nat/x86-cpuid.h: New file. All type, function and variable name
1712 prefixes changed from "i386_" to "x86_". All references updated.
1713 * nat/i386-gcc-cpuid.h: Renamed as...
1714 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1715 name prefixes changed from "i386_" to "x86_". All references
1716 updated.
1717 * nat/i386-dregs.h: Renamed as...
1718 * nat/x86-dregs.h: New file. All type, function and variable name
1719 prefixes changed from "i386_" to "x86_". All references updated.
1720 * nat/i386-dregs.c: Renamed as...
1721 * nat/x86-dregs.c: New file. All type, function and variable name
1722 prefixes changed from "i386_" to "x86_". All references updated.
1723
1c3569d4
MR
17242014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1725
1726 * varobj.c (_initialize_varobj): Move to the end of file.
1727
ff55e1b5
GB
17282014-08-29 Gary Benson <gbenson@redhat.com>
1729
1730 * common/common-exceptions.h: New file.
1731 * common/common-exceptions.c: Likewise.
1732 * Makefile.in (SFILES): Add common/common-exceptions.c.
1733 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1734 (COMMON_OBS): Add common-exceptions.o.
1735 (common-exceptions.o): New rule.
1736 * exceptions.h (common-exceptions.h): Include.
1737 (gdb_setjmp.h): Do not include.
1738 (return_reason): Moved to common-exceptions.h.
1739 (enum return_reason): Likewise.
1740 (RETURN_MASK): Likewise.
1741 (typedef return_mask): Likewise.
1742 (enum errors): Likewise.
1743 (struct gdb_exception): Likewise.
1744 (exceptions_state_mc_init): Likewise.
1745 (exceptions_state_mc_action_iter): Likewise.
1746 (exceptions_state_mc_action_iter_1): Likewise.
1747 (TRY_CATCH): Likewise.
1748 (throw_exception): Likewise.
1749 (throw_verror): Likewise.
1750 (throw_vquit): Likewise.
1751 (throw_error): Likewise.
1752 (throw_quit): Likewise.
1753 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1754 (enum catcher_action): Likewise.
1755 (struct catcher): Likewise.
1756 (current_catcher): Likewise.
1757 (catcher_list_size): Likewise.
1758 (exceptions_state_mc_init): Likewise.
1759 (catcher_pop): Likewise.
1760 (exceptions_state_mc): Likewise.
1761 (exceptions_state_mc_action_iter): Likewise.
1762 (exceptions_state_mc_action_iter_1): Likewise.
1763 (throw_exception): Likewise.
1764 (exception_messages): Likewise.
1765 (exception_messages_size): Likewise.
1766 (throw_it): Likewise.
1767 (throw_verror): Likewise.
1768 (throw_vquit): Likewise.
1769 (throw_error): Likewise.
1770 (throw_quit): Likewise.
1771 (prepare_to_throw_exception): New function.
1772
e9bcb658
GB
17732014-08-29 Gary Benson <gbenson@redhat.com>
1774
1775 * common/gdb_setjmp.h: New file.
1776 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1777 * configure.ac: Move sigsetjmp check...
1778 * common/common.m4: ...here.
1779 * configure: Regenerate.
1780 * cp-support.c (SIGJMP_BUF): Delete.
1781 (SIGSETJMP): Likewise.
1782 (SIGLONGJMP): Likewise.
1783 * exceptions.h (gdb_setjmp.h): Include.
1784 (setjmp.h): Do not include.
1785 (EXCEPTIONS_SIGJMP_BUF): Delete.
1786 (EXCEPTIONS_SIGSETJMP): Likewise.
1787 (EXCEPTIONS_SIGLONGJMP): Likewise.
1788 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1789 from gdb_setjmp.h.
1790 * exceptions.c: Likewise.
1791
e3180625
GB
17922014-08-29 Gary Benson <gbenson@redhat.com>
1793
1794 * cleanups.h: Moved to...
1795 * common/cleanups.h: New file.
1796 * cleanups.c: Moved to...
1797 * common/cleanups.c: New file. Include common-defs.h and
1798 cleanups.h. Do not include defs.h.
1799 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1800 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1801 (cleanups.o): New rule.
1802
e3d6ba5d
GB
18032014-08-29 Gary Benson <gbenson@redhat.com>
1804
1805 * common/errors.h (internal_warning): New declaration.
1806 (internal_vwarning): Likewise.
1807 * common/errors.c (internal_warning): New function.
1808 * utils.h (internal_warning): Don't declare.
1809 (internal_vwarning): Likewise.
1810 * utils.c (internal_warning): Removed.
1811
075c7033
GB
18122014-08-29 Gary Benson <gbenson@redhat.com>
1813
1814 * main.c (captured_main): Use warning during startup.
1815 Prefix startup warning messages with command name.
1816
91b35fd0
GB
18172014-08-29 Gary Benson <gbenson@redhat.com>
1818
1819 * main.c (captured_main): Handle usage errors with error.
1820
b1ec390e
GB
18212014-08-29 Gary Benson <gbenson@redhat.com>
1822
1823 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1824 exit pair with a call to error. Wrap the message with _().
1825
fd0ef3dd
GB
18262014-08-29 Gary Benson <gbenson@redhat.com>
1827
1828 * main.c (captured_main): Replace a fprintf/exit
1829 pair with a call to error. Wrap the message with _().
1830
e0e6bcab
GB
18312014-08-29 Gary Benson <gbenson@redhat.com>
1832
1833 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1834 pairs with calls to error. Wrap the message with _().
1835
0d2f5c07
GB
18362014-08-29 Gary Benson <gbenson@redhat.com>
1837
1838 * utils.c (vwarning): Protect calls to target_terminal_ours
1839 and wrap_here.
1840
5df43998
GB
18412014-08-29 Gary Benson <gbenson@redhat.com>
1842
1843 * exceptions.c (print_flush): Protect calls to
1844 target_terminal_ours and wrap_here.
1845
2437fd32
GB
18462014-08-29 Gary Benson <gbenson@redhat.com>
1847
1848 * utils.h (filtered_printing_initialized): New declaration.
1849 * utils.c (abort_with_message): New function.
1850 (internal_vproblem): Use abort_with_message for first level
1851 recursive internal problems, and if gdb_stderr is not set up.
1852 Protect calls to target_terminal_ours, begin_line and query.
1853
f1f58506
DE
18542014-08-28 Doug Evans <dje@google.com>
1855
1856 * symtab.c (in_prologue): Move definition to better spot.
1857 (skip_prologue_using_sal): Ditto.
1858
aab2f208
DE
18592014-08-28 Doug Evans <dje@google.com>
1860
1861 * symtab.c (find_function_start_sal): Move definition to better spot.
1862
6b65d1b6
YQ
18632014-08-28 Yao Qi <yao@codesourcery.com>
1864
1865 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1866 found_stack_adjust in forward scan. Remove condition check
1867 on found_stack_adjust which is always true. Indent the code.
1868
a1b34d15
YQ
18692014-08-28 Yao Qi <yao@codesourcery.com>
1870
1871 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1872 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1873 (dwarf_decode_lines): Remove argument
1874 want_line_info. Remove condition check on want_line_info.
1875 Callers update.
1876
d5962de5
DE
18772014-08-27 Doug Evans <dje@google.com>
1878
1879 * dwarf2read.c (dwarf_record_line): Fix typo.
1880
9b139002
SDJ
18812014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1882
1883 * target.h (struct target_ops::to_terminal_save_ours): Remove
1884 declaration.
1885 (target_terminal_save_ours): Remove macro.
1886 * target-delegates.c: Regenerate.
1887 * inf-child.c (inf_child_target): Don't set the nonexistent
1888 field to_terminal_save_ours.
1889 * inferior.h (child_terminal_save_ours): Remove declaration.
1890 * terminal.h (gdb_save_tty_state): New declaration.
1891 * inflow.c (child_terminal_save_ours): Rename to ...
1892 (gdb_save_tty_state): ... this.
1893 * tui/tui.c: Include terminal.h.
1894 (tui_enable): Use gdb_save_tty_state instead of
1895 target_terminal_save_ours.
1896 (tui_disable): Likewise.
1897
9debeba0
DE
18982014-08-25 Doug Evans <dje@google.com>
1899
1900 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1901 Pass NULL instead of 0 for context pointer.
1902
428fc5fc
YQ
19032014-08-25 Yao Qi <yao@codesourcery.com>
1904
1905 * dwarf2read.c: Fix grammatical error.
1906
cdc07690
YQ
19072014-08-24 Yao Qi <yao@codesourcery.com>
1908
1909 * dwarf2read.c (scan_partial_symbols): Update comments.
1910 Rename argument 'need_pc' with 'set_addrmap'.
1911 (add_partial_namespace): Rename argument 'need_pc' with
1912 'set_addrmap'.
1913 (add_partial_module): Likewise.
1914 (add_partial_subprogram): Likewise. Update comments.
1915 (dwarf2_name): Fix typo.
1916
a05a36a5
DE
19172014-08-22 Doug Evans <dje@google.com>
1918
1919 PR 17276
1920 * dwarf2read.c (dwarf_record_line_p): New function.
1921 (dwarf_decode_lines_1): Ignore subsequent line number entries
1922 for the same line if any entry had a non-zero discriminator.
1923
252a6764
DE
19242014-08-22 Doug Evans <dje@google.com>
1925
1926 * buildsym.h (record_line_ftype): New typedef.
1927 (record_line): Use it.
1928 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1929 (dwarf_decode_lines_1): Call them.
1930
510db052
YQ
19312014-08-22 Yao Qi <yao@codesourcery.com>
1932
1933 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1934 (ctf_end): Remove code.
1935
22fd09ae
JK
19362014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1937
1938 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1939 (linux_make_corefile_notes): call update_thread_list, protected against
1940 exceptions.
1941
656e8868
PA
19422014-08-21 Pedro Alves <palves@redhat.com>
1943
1944 * infcmd.c (attach_command): Remove comment.
1945
de589d04
WN
19462014-08-21 Bin Cheng <bin.cheng@arm.com>
1947
1948 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1949 unsigned LONGEST to ULONGEST.
1950
2a31c623
PA
19512014-08-20 Pedro Alves <palves@redhat.com>
1952
1953 * Makefile.in (check-read1): New rule.
1954
d36430db
JB
19552014-08-20 Joel Brobecker <brobecker@adacore.com>
1956
1957 * value.c (value_from_contents_and_address): Strip resolved_type's
1958 typedef layers before checking its TYPE_DATA_LOCATION.
1959
000339af
PA
19602014-08-20 Pedro Alves <palves@redhat.com>
1961
1962 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1963
5f52445b
YQ
19642014-08-20 Yao Qi <yao@codesourcery.com>
1965
1966 * amd64-tdep.c (amd64_classify): Add a blank line after the
1967 example. Move "*/" to a new line.
1968 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1969 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1970 * dwarf2read.c (psymtab_include_file_name): Likewise.
1971
9a0dc9e3
PA
19722014-08-19 Andrew Burgess <aburgess@broadcom.com>
1973 Pedro Alves <palves@redhat.com>
1974
1975 PR symtab/14604
1976 PR symtab/14605
1977 * ada-lang.c (coerce_unspec_val_to_type): Use
1978 value_contents_copy_raw.
1979 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1980 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1981 * cp-valprint.c (cp_print_value_fields): Let the common printing
1982 code handle optimized out values.
1983 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1984 * d-valprint.c (dynamic_array_type): Use
1985 value_bits_any_optimized_out.
1986 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1987 check_any_valid fields.
1988 (check_pieced_value_bits): Delete and inline ...
1989 (check_pieced_synthetic_pointer): ... here.
1990 (check_pieced_value_validity): Delete.
1991 (check_pieced_value_invalid): Delete.
1992 (pieced_value_funcs): Remove check_validity and check_any_valid
1993 fields.
1994 (read_pieced_value): Use mark_value_bits_optimized_out.
1995 (write_pieced_value): Switch to use
1996 mark_value_bytes_optimized_out.
1997 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1998 of assuming the whole value is optimized out.
1999 * findvar.c (read_frame_register_value): Remove special handling
2000 of optimized out registers.
2001 (value_from_register): Use mark_value_bytes_optimized_out.
2002 * frame-unwind.c (frame_unwind_got_optimized): Use
2003 mark_value_bytes_optimized_out.
2004 * jv-valprint.c (java_value_print): Adjust.
2005 (java_print_value_fields): Let the common printing code handle
2006 optimized out values.
2007 * mips-tdep.c (mips_print_register): Remove special handling of
2008 optimized out registers.
2009 * opencl-lang.c (lval_func_check_validity): Delete.
2010 (lval_func_check_any_valid): Delete.
2011 (opencl_value_funcs): Remove check_validity and check_any_valid
2012 fields.
2013 * p-valprint.c (pascal_object_print_value_fields): Let the common
2014 printing code handle optimized out values.
2015 * stack.c (read_frame_arg): Remove special handling of optimized
2016 out values. Fetch both VAL and ENTRYVAL before comparing
2017 contents. Adjust to value_available_contents_eq rename.
2018 * valprint.c (valprint_check_validity)
2019 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2020 (val_print_array_elements): Adjust.
2021 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2022 (value_bits_any_optimized_out): New function.
2023 (value_entirely_covered_by_range_vector): New function, factored
2024 out from value_entirely_unavailable.
2025 (value_entirely_unavailable): Reimplement.
2026 (value_entirely_optimized_out): New function.
2027 (insert_into_bit_range_vector): New function, factored out from
2028 mark_value_bits_unavailable.
2029 (mark_value_bits_unavailable): Reimplement.
2030 (struct ranges_and_idx): New struct.
2031 (find_first_range_overlap_and_match): New function, factored out
2032 from value_available_contents_bits_eq.
2033 (value_available_contents_bits_eq): Rename to ...
2034 (value_contents_bits_eq): ... this. Check both unavailable
2035 contents and optimized out contents.
2036 (value_available_contents_eq): Rename to ...
2037 (value_contents_eq): ... this.
2038 (allocate_value_lazy): Remove reference to the old optimized_out
2039 boolean.
2040 (allocate_optimized_out_value): Use
2041 mark_value_bytes_optimized_out.
2042 (require_not_optimized_out): Adjust to check whether the
2043 optimized_out vec is empty.
2044 (ranges_copy_adjusted): New function, factored out from
2045 value_contents_copy_raw.
2046 (value_contents_copy_raw): Also copy the optimized out ranges.
2047 Assert the destination ranges aren't optimized out.
2048 (value_contents_copy): Update comment, remove call to
2049 require_not_optimized_out.
2050 (value_contents_equal): Adjust to check whether the optimized_out
2051 vec is empty.
2052 (set_value_optimized_out, value_optimized_out_const): Delete.
2053 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2054 New functions.
2055 (value_entirely_optimized_out, value_bits_valid): Delete.
2056 (value_copy): Take a VEC copy of the 'optimized_out' field.
2057 (value_primitive_field): Remove special handling of optimized out.
2058 (value_fetch_lazy): Assert that lazy values have no unavailable
2059 regions. Use value_bits_any_optimized_out. Remove some special
2060 handling for optimized out values.
2061 * value.h: Add intro comment about <optimized out> and
2062 <unavailable>.
2063 (struct lval_funcs): Remove check_validity and check_any_valid
2064 fields.
2065 (set_value_optimized_out, value_optimized_out_const): Remove.
2066 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2067 New declarations.
2068 (value_bits_any_optimized_out): New declaration.
2069 (value_bits_valid): Delete declaration.
2070 (value_available_contents_eq): Rename to ...
2071 (value_contents_eq): ... this, and extend comments.
2072
6694c411
JK
20732014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2074
2075 Fix -fsanitize=address on unreadable inferior strings.
2076 * valprint.c (val_print_string): Fix access before BUFFER.
2077
89a1c21a
SM
20782014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2079
2080 * target.c (target_struct_size): Remove.
2081 (target_struct_allocsize): Remove.
2082 (DEFAULT_ALLOCSIZE): Remove.
2083 (target_ops_p): New typedef.
2084 (DEF_VEC_P (target_ops_p)): New vector type.
2085 (target_structs): Change type to VEC (target_ops_p).
2086 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2087 (find_default_run_target): Rewrite for loop following changes to
2088 target_structs.
2089
cb417230
JB
20902014-08-19 Joel Brobecker <brobecker@adacore.com>
2091
2092 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2093 Adjust code accordingly. Adjust function description comment.
2094
817e0957
YQ
20952014-08-19 Yao Qi <yao@codesourcery.com>
2096
2097 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2098 types.
2099
2974be62
AM
21002014-08-19 Alan Modra <amodra@gmail.com>
2101
2102 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2103 * config.in: Regenerate.
2104 * configure: Regenerate.
2105
34abf635
GB
21062014-08-19 Tom Tromey <tromey@redhat.com>
2107 Gary Benson <gbenson@redhat.com>
2108
2109 * common/common-debug.h: New file.
2110 * common/common-debug.c: Likewise.
2111 * debug.c: Likewise.
2112 * Makefile.in (SFILES): Add common/common-debug.c.
2113 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2114 (COMMON_OBS): Add common-debug.o and debug.o.
2115 (common-debug.o): New rule.
2116 * common/common-defs.h: Include common-debug.h.
2117 * common/agent.c (debug_agent_printf): New function.
2118 (DEBUG_AGENT): Redefine.
2119 * nat/i386-dregs.c (debug_printf): Undefine.
2120
f6e94d78
GB
21212014-08-19 Gary Benson <gbenson@redhat.com>
2122
2123 * common/common-defs.h: Include print-utils.h.
2124 * utils.h: Do not include print-utils.h.
2125
9239eeab
GB
21262014-08-19 Tom Tromey <tromey@redhat.com>
2127 Gary Benson <gbenson@redhat.com>
2128
2129 * common/common-types.h: New file.
2130 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2131 * common/common-defs.h: Include common-types.h.
2132 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2133 (ULONGEST): Remove.
2134
ef87c8bb
GB
21352014-08-19 Tom Tromey <tromey@redhat.com>
2136 Gary Benson <gbenson@redhat.com>
2137
2138 * common/errors.h: New file.
2139 * common/errors.c: Likewise.
2140 * Makefile.in (SFILES): Add common/errors.c.
2141 (HFILES_NO_SRCDIR): Add common/errors.h.
2142 (COMMON_OBS): Add errors.o.
2143 (errors.o): New rule.
2144 * common/common-defs.h: Include errors.h.
2145 * utils.h (perror_with_name, error, verror, warning, vwarning):
2146 Don't declare.
2147 * common/common-utils.h: (malloc_failure, internal_error):
2148 Likewise.
2149
196a707b
GB
21502014-08-19 Gary Benson <gbenson@redhat.com>
2151
2152 * utils.c (internal_vproblem): Always print the message.
2153
ded4fc8f
DE
21542014-08-18 Doug Evans <dje@google.com>
2155
2156 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2157
950c97d8
JB
21582014-08-18 Joel Brobecker <brobecker@adacore.com>
2159
2160 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2161 Return 0 if TYPE is dynamic.
2162 (print_range): Add handling of dynamic ranges.
2163
3cdcd0ce
JB
21642014-08-18 Keven Boell <keven.boell@intel.com>
2165 Joel Brobecker <brobecker@adacore.com>
2166
2167 * gdbtypes.h (struct main_type): Add field "data_location".
2168 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2169 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2170 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2171 a dynamic data location.
2172 (resolve_dynamic_type): Add DW_AT_data_location handling.
2173 (copy_recursive, copy_type): Copy the data_location information
2174 when present.
2175 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2176 * value.c (value_from_contents_and_address): Add
2177 DW_AT_data_location handling.
2178
08412b07
JB
21792014-08-18 Keven Boell <keven.boell@intel.com>
2180 Joel Brobecker <brobecker@adacore.com>
2181
2182 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2183 field "get_object_address".
2184 * dwarf2expr.c (execute_stack_op): Add handling for
2185 DW_OP_push_object_address.
2186 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2187 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2188 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2189 (dwarf_expr_get_obj_addr): New function.
2190 (dwarf_expr_ctx_funcs): Add get_object_address field.
2191 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2192 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2193 (dwarf2_evaluate_property): Add parameter "address". Use it.
2194 (needs_get_obj_addr): New function.
2195 (needs_frame_ctx_funcs): Add get_object_address field.
2196 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2197 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2198 (resolve_dynamic_array): Likewise.
2199
84754697
JB
22002014-08-18 Joel Brobecker <brobecker@adacore.com>
2201
2202 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2203 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2204 fixed value for records and unions for which some GNAT encodings
2205 are present.
2206
da5c522f
JB
22072014-08-18 Joel Brobecker <brobecker@adacore.com>
2208
2209 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2210 rewrite to avoid "else if" and "else" constructs. Should be
2211 a no-op in practice.
2212
0d72a7c3
JB
22132014-08-18 Joel Brobecker <brobecker@adacore.com>
2214
2215 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2216 of lexical block.
2217
e66d4446
SC
22182014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2219
2220 PR c++/17132
2221 * eval.c: Update all calls to find_overload_match.
2222 * valarith.c: Likewise.
2223 (value_user_defined_cpp_op, value_user_defined_op): New
2224 argument NOSIDE. Update all callers.
2225 * valops.c (find_overload_match): New argument NOSIDE.
2226 * value.h (find_overload_match): Update signature.
2227
940df408
SC
22282014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2229
2230 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2231 'items' methods instead of 'iteritems' method on dictionaries.
2232
699ca60a
DE
22332014-08-15 Doug Evans <dje@google.com>
2234
2235 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2236 closer to use.
2237
37780ee5
DE
22382014-08-15 Doug Evans <dje@google.com>
2239
2240 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2241
0ad93d4f
DE
22422014-08-15 Doug Evans <dje@google.com>
2243
2244 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2245
20d8c372
DE
22462014-08-15 Doug Evans <dje@google.com>
2247
2248 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2249 unused.
2250
cb039ba4
EZ
22512014-08-15 Eli Zaretskii <eliz@gnu.org>
2252
2253 * dcache.h: Include target.h, to avoid compile time warnings.
2254
eb7a547a
JB
22552014-08-15 Joel Brobecker <brobecker@adacore.com>
2256
2257 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2258 frame_info" partial declaration.
2259 * gdbarch.h: Regenerate.
2260
783cecc8
YQ
22612014-08-15 Yao Qi <yao@codesourcery.com>
2262
2263 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2264 Add parameter 'decode_for_pst_p'. Callers update.
2265
65c749e7
YQ
22662014-08-13 Yao Qi <yao@codesourcery.com>
2267
2268 PR build/17104
2269 * configure.ac: Use local variable 'pos'.
2270 * configure: Regenerated.
2271
d769e349
DE
22722014-08-11 Doug Evans <dje@google.com>
2273
2274 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2275 message, it is redundant with "Reading symbols from ..." message.
2276
24f1235e
DE
22772014-08-10 Doug Evans <xdje42@gmail.com>
2278
2279 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2280
dcd2e6ef
YQ
22812014-08-09 Yao Qi <yao@codesourcery.com>
2282
2283 PR remote/9053
2284 * remote.c (remote_xfer_partial): Remove dead code.
2285
070bdf0b
AA
22862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2287
2288 * ia64-linux-tdep.c: Include "regset.h".
2289 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2290 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2291 (ia64_linux_supply_fpregset): New function.
2292 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2293 (ia64_linux_regset_from_core_section): New function.
2294 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2295 method.
2296
08f9f542
AA
22972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2298
2299 * m68klinux-tdep.c: Include "regset.h".
2300 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2301 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2302 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2303 (m68k_linux_regset_from_core_section): New function.
2304 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2305 method.
2306
8f1cee41
AA
23072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2308
2309 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2310 function. Move logic to...
2311 (tilegx_linux_regmap): ... this new register map.
2312 (tilegx_linux_regset): Refer to register map, replace supply
2313 method by regcache_supply_regset, and add collect method.
2314 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2315 TILEGX_FIRST_EASY_REGNUM.
2316
c5741217
AA
23172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2318
2319 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2320 that calls regcache_supply_regset and handles the EPC register
2321 separately. Move main logic to...
2322 (score7_linux_gregmap): ... this new register map.
2323 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2324 (score7_linux_gregset): Refer to register map. Add collect method.
2325 (score7_linux_regset_from_core_section): Replace
2326 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2327 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2328 (struct regset): Delete unused forward declaraction.
2329 (struct pt_regs): Delete structure definition.
2330 (elf_gregset_t): Delete typedef.
2331
81580573
AA
23322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2333
2334 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2335 (nios2_core_regset): Add collect method.
2336
ba199d7d
AA
23372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2338
2339 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2340 platform-independent and don't write to read-only input buffer.
2341 (m32r_linux_collect_gregset): New function.
2342 (m32r_linux_gregset): Add collect method.
2343
0006a9da
AA
23442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2345
2346 * hppa-linux-tdep.c (greg_map): Rename to...
2347 (hppa_linux_gregmap): ... this. Also convert to
2348 regcache_map_entry format.
2349 (hppa_linux_supply_regset): Delete function.
2350 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2351 (hppa_linux_fpregmap): ... this new register map.
2352 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2353 register map, replace supply method by regcache_supply_regset, and
2354 add collect method regcache_collect_regset.
2355
901e1b23
AA
23562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2357
2358 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2359 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2360 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2361 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2362 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2363 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2364 (frv_linux_supply_gregset): Replace main logic by call to
2365 regcache_supply_regset, but keep clearing gr32-gr63.
2366 (frv_linux_supply_fpregset): Delete function.
2367 (frv_linux_gregset): Refer to appropriate register map and add
2368 regcache_collect_regset as the collect method.
2369 (frv_linux_fpregset): Likewise. Also exchange the supply method
2370 by regcache_supply_regset.
2371
1d6e7555
AA
23722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2373
2374 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2375 by call to alpha_supply_int_regs.
2376 (alpha_linux_collect_gregset): New function.
2377 (alpha_linux_supply_fpregset): Replace logic by call to
2378 alpha_supply_fp_regs.
2379 (alpha_linux_collect_fpregset): New function.
2380 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2381
d4d793bf
AA
23822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2383
2384 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2385 by call to regcache_collect_regset.
2386 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2387 instead of aarch64_linux_supply_gregset/_fpregset.
2388 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2389 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2390 header file instead.
2391 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2392 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2393 functions. Move logic to ...
2394 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2395 register maps.
2396 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2397 refer to new register maps, replace *_regset_from_core by
2398 regcache_supply_regset, and also use regcache_collect_regset.
2399 * aarch64-linux-tdep.h: Include "regset.h".
2400 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2401 Delete prototypes.
2402 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2403 macros, moved from C source file.
2404 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2405 variable declarations.
2406
99b7da5d
AA
24072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2408
2409 * s390-linux-nat.c: Include "regset.h".
2410 (regmap_gregset): Delete macro.
2411 (s390_64_regmap_gregset): New register map for
2412 regcache_supply/_collect_regset.
2413 (s390_64_gregset): New regset.
2414 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2415 (regmap_fpregset): Delete macro.
2416 (s390_native_supply, s390_native_collect): Delete functions.
2417 (supply_gregset, fill_gregset): Replace s390-specific regmap
2418 handling by a call to regcache_supply/_collect_regset.
2419 (supply_fpregset, fill_fpregset): Call regcache_supply/
2420 _collect_regset instead of s390_native_supply/_collect.
2421 (fetch_regset, store_regset): Likewise. Also change the last
2422 parameter to a regset instead of a regmap.
2423 (s390_linux_fetch_inferior_registers)
2424 (390_linux_store_inferior_registers): Adjust last parameter in
2425 calls to fetch_regset and store_regset.
2426 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2427 (s390_gregmap): ... this. Also make static const and convert to
2428 regcache_map_entry format.
2429 (s390x_regmap_gregset): Delete.
2430 (s390_regmap_fpregset): Rename to...
2431 (s390_fpregmap): ... this. Make static const and convert to
2432 regcache_map_entry format.
2433 (s390_regmap_upper, s390_regmap_last_break)
2434 (s390x_regmap_last_break, s390_regmap_system_call)
2435 (s390_regmap_tdb): Likewise.
2436 (s390_supply_regset, s390_collect_regset): Remove functions.
2437 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2438 s390_supply_regset.
2439 (s390_gregset, s390_fpregset, s390_upper_regset)
2440 (s390_last_break_regset, s390x_last_break_regset)
2441 (s390_system_call_regset, s390_tdb_regset): Make global and
2442 replace s390_supply/_collect_regset by regcache_supply/
2443 _collect_regset.
2444 (s390x_gregset): Delete.
2445 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2446 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2447 (s390_regmap_fpregset, s390_regmap_last_break)
2448 (s390x_regmap_last_break, s390_regmap_system_call)
2449 (s390_regmap_tdb): Delete global variable declarations.
2450 (s390_gregset, s390_fpregset, s390_last_break_regset)
2451 (s390x_last_break_regset, s390_system_call_regset)
2452 (s390_tdb_regset): New global variable declarations.
2453
0b309272
AA
24542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2455
2456 * regcache.c: Include "regset.h".
2457 (regcache_transfer_regset): New local function.
2458 (regcache_supply_regset, regcache_collect_regset): New functions.
2459 * regcache.h (struct regcache_map_entry): New structure.
2460 (REGCACHE_MAP_SKIP): New enum value.
2461 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2462
7fefa8d7
AA
24632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2464
2465 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2466 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2467 (ppc_linux_collect_gregset ): Likewise.
2468 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2469 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2470 (ppc_collect_vrregset): Likewise.
2471 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2472 Likewise.
2473
96c4f946
YQ
24742014-08-07 Yao Qi <yao@codesourcery.com>
2475
2476 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2477 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2478 * remote.c (remote_read_bytes): Likewise.
2479
fffbe6a8
YQ
24802014-08-07 Yao Qi <yao@codesourcery.com>
2481
2482 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2483
5ee8a82c
YQ
24842014-08-07 Yao Qi <yao@codesourcery.com>
2485
2486 PR remote/17230
2487 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2488 TARGET_XFER_OK instead of 0.
2489
bb974a24
GB
24902014-08-07 Gary Benson <gbenson@redhat.com>
2491
2492 * common/common-defs.h: Include errno.h.
2493 * defs.h: Do not include errno.h.
2494 * ada-typeprint.c: Likewise.
2495 * c-typeprint.c: Likewise.
2496 * core-regset.c: Likewise.
2497 * corefile.c: Likewise.
2498 * corelow.c: Likewise.
2499 * event-loop.c: Likewise.
2500 * f-typeprint.c: Likewise.
2501 * gnu-nat.c: Likewise.
2502 * go32-nat.c: Likewise.
2503 * i386gnu-nat.c: Likewise.
2504 * m2-typeprint.c: Likewise.
2505 * nat/linux-btrace.c: Likewise.
2506 * p-typeprint.c: Likewise.
2507 * procfs.c: Likewise.
2508 * remote-sim.c: Likewise.
2509 * rs6000-nat.c: Likewise.
2510 * target.c: Likewise.
2511 * typeprint.c: Likewise.
2512 * ui-file.c: Likewise.
2513 * valops.c: Likewise.
2514 * valprint.c: Likewise.
2515
6d3d12eb
GB
25162014-08-07 Gary Benson <gbenson@redhat.com>
2517
2518 * common/common-defs.h: Include string.h.
2519 * aarch64-tdep.c: Do not include string.h.
2520 * ada-exp.y: Likewise.
2521 * ada-lang.c: Likewise.
2522 * ada-lex.l: Likewise.
2523 * ada-typeprint.c: Likewise.
2524 * ada-valprint.c: Likewise.
2525 * aix-thread.c: Likewise.
2526 * alpha-linux-tdep.c: Likewise.
2527 * alpha-mdebug-tdep.c: Likewise.
2528 * alpha-nat.c: Likewise.
2529 * alpha-osf1-tdep.c: Likewise.
2530 * alpha-tdep.c: Likewise.
2531 * alphanbsd-tdep.c: Likewise.
2532 * amd64-dicos-tdep.c: Likewise.
2533 * amd64-linux-tdep.c: Likewise.
2534 * amd64-nat.c: Likewise.
2535 * amd64-sol2-tdep.c: Likewise.
2536 * amd64fbsd-tdep.c: Likewise.
2537 * amd64obsd-tdep.c: Likewise.
2538 * arch-utils.c: Likewise.
2539 * arm-linux-nat.c: Likewise.
2540 * arm-linux-tdep.c: Likewise.
2541 * arm-tdep.c: Likewise.
2542 * arm-wince-tdep.c: Likewise.
2543 * armbsd-tdep.c: Likewise.
2544 * armnbsd-nat.c: Likewise.
2545 * armnbsd-tdep.c: Likewise.
2546 * armobsd-tdep.c: Likewise.
2547 * avr-tdep.c: Likewise.
2548 * ax-gdb.c: Likewise.
2549 * ax-general.c: Likewise.
2550 * bcache.c: Likewise.
2551 * bfin-tdep.c: Likewise.
2552 * breakpoint.c: Likewise.
2553 * build-id.c: Likewise.
2554 * buildsym.c: Likewise.
2555 * c-exp.y: Likewise.
2556 * c-lang.c: Likewise.
2557 * c-typeprint.c: Likewise.
2558 * c-valprint.c: Likewise.
2559 * charset.c: Likewise.
2560 * cli-out.c: Likewise.
2561 * cli/cli-cmds.c: Likewise.
2562 * cli/cli-decode.c: Likewise.
2563 * cli/cli-dump.c: Likewise.
2564 * cli/cli-interp.c: Likewise.
2565 * cli/cli-logging.c: Likewise.
2566 * cli/cli-script.c: Likewise.
2567 * cli/cli-setshow.c: Likewise.
2568 * cli/cli-utils.c: Likewise.
2569 * coffread.c: Likewise.
2570 * common/agent.c: Likewise.
2571 * common/buffer.c: Likewise.
2572 * common/buffer.h: Likewise.
2573 * common/common-utils.c: Likewise.
2574 * common/filestuff.c: Likewise.
2575 * common/filestuff.c: Likewise.
2576 * common/format.c: Likewise.
2577 * common/print-utils.c: Likewise.
2578 * common/rsp-low.c: Likewise.
2579 * common/signals.c: Likewise.
2580 * common/vec.h: Likewise.
2581 * common/xml-utils.c: Likewise.
2582 * core-regset.c: Likewise.
2583 * corefile.c: Likewise.
2584 * corelow.c: Likewise.
2585 * cp-abi.c: Likewise.
2586 * cp-name-parser.y: Likewise.
2587 * cp-support.c: Likewise.
2588 * cp-valprint.c: Likewise.
2589 * cris-tdep.c: Likewise.
2590 * d-exp.y: Likewise.
2591 * darwin-nat.c: Likewise.
2592 * dbxread.c: Likewise.
2593 * dcache.c: Likewise.
2594 * demangle.c: Likewise.
2595 * dicos-tdep.c: Likewise.
2596 * disasm.c: Likewise.
2597 * doublest.c: Likewise.
2598 * dsrec.c: Likewise.
2599 * dummy-frame.c: Likewise.
2600 * dwarf2-frame.c: Likewise.
2601 * dwarf2loc.c: Likewise.
2602 * dwarf2read.c: Likewise.
2603 * elfread.c: Likewise.
2604 * environ.c: Likewise.
2605 * eval.c: Likewise.
2606 * event-loop.c: Likewise.
2607 * exceptions.c: Likewise.
2608 * exec.c: Likewise.
2609 * expprint.c: Likewise.
2610 * f-exp.y: Likewise.
2611 * f-lang.c: Likewise.
2612 * f-typeprint.c: Likewise.
2613 * f-valprint.c: Likewise.
2614 * fbsd-nat.c: Likewise.
2615 * findcmd.c: Likewise.
2616 * findvar.c: Likewise.
2617 * fork-child.c: Likewise.
2618 * frame.c: Likewise.
2619 * frv-linux-tdep.c: Likewise.
2620 * frv-tdep.c: Likewise.
2621 * gdb.c: Likewise.
2622 * gdb_bfd.c: Likewise.
2623 * gdbarch.c: Likewise.
2624 * gdbarch.sh: Likewise.
2625 * gdbtypes.c: Likewise.
2626 * gnu-nat.c: Likewise.
2627 * gnu-v2-abi.c: Likewise.
2628 * gnu-v3-abi.c: Likewise.
2629 * go-exp.y: Likewise.
2630 * go-lang.c: Likewise.
2631 * go32-nat.c: Likewise.
2632 * guile/guile.c: Likewise.
2633 * guile/scm-auto-load.c: Likewise.
2634 * hppa-hpux-tdep.c: Likewise.
2635 * hppa-linux-nat.c: Likewise.
2636 * hppanbsd-tdep.c: Likewise.
2637 * hppaobsd-tdep.c: Likewise.
2638 * i386-cygwin-tdep.c: Likewise.
2639 * i386-dicos-tdep.c: Likewise.
2640 * i386-linux-tdep.c: Likewise.
2641 * i386-nto-tdep.c: Likewise.
2642 * i386-sol2-tdep.c: Likewise.
2643 * i386-tdep.c: Likewise.
2644 * i386bsd-tdep.c: Likewise.
2645 * i386gnu-nat.c: Likewise.
2646 * i386nbsd-tdep.c: Likewise.
2647 * i386obsd-tdep.c: Likewise.
2648 * i387-tdep.c: Likewise.
2649 * ia64-libunwind-tdep.c: Likewise.
2650 * ia64-linux-nat.c: Likewise.
2651 * inf-child.c: Likewise.
2652 * inf-ptrace.c: Likewise.
2653 * inf-ttrace.c: Likewise.
2654 * infcall.c: Likewise.
2655 * infcmd.c: Likewise.
2656 * inflow.c: Likewise.
2657 * infrun.c: Likewise.
2658 * interps.c: Likewise.
2659 * iq2000-tdep.c: Likewise.
2660 * irix5-nat.c: Likewise.
2661 * jv-exp.y: Likewise.
2662 * jv-lang.c: Likewise.
2663 * jv-typeprint.c: Likewise.
2664 * jv-valprint.c: Likewise.
2665 * language.c: Likewise.
2666 * linux-fork.c: Likewise.
2667 * linux-nat.c: Likewise.
2668 * lm32-tdep.c: Likewise.
2669 * m2-exp.y: Likewise.
2670 * m2-typeprint.c: Likewise.
2671 * m32c-tdep.c: Likewise.
2672 * m32r-linux-nat.c: Likewise.
2673 * m32r-linux-tdep.c: Likewise.
2674 * m32r-rom.c: Likewise.
2675 * m32r-tdep.c: Likewise.
2676 * m68hc11-tdep.c: Likewise.
2677 * m68k-tdep.c: Likewise.
2678 * m68kbsd-tdep.c: Likewise.
2679 * m68klinux-nat.c: Likewise.
2680 * m68klinux-tdep.c: Likewise.
2681 * m88k-tdep.c: Likewise.
2682 * machoread.c: Likewise.
2683 * macrocmd.c: Likewise.
2684 * main.c: Likewise.
2685 * mdebugread.c: Likewise.
2686 * mem-break.c: Likewise.
2687 * memattr.c: Likewise.
2688 * memory-map.c: Likewise.
2689 * mep-tdep.c: Likewise.
2690 * mi/mi-cmd-break.c: Likewise.
2691 * mi/mi-cmd-disas.c: Likewise.
2692 * mi/mi-cmd-env.c: Likewise.
2693 * mi/mi-cmd-stack.c: Likewise.
2694 * mi/mi-cmd-var.c: Likewise.
2695 * mi/mi-cmds.c: Likewise.
2696 * mi/mi-console.c: Likewise.
2697 * mi/mi-getopt.c: Likewise.
2698 * mi/mi-interp.c: Likewise.
2699 * mi/mi-main.c: Likewise.
2700 * mi/mi-parse.c: Likewise.
2701 * microblaze-rom.c: Likewise.
2702 * microblaze-tdep.c: Likewise.
2703 * mingw-hdep.c: Likewise.
2704 * minidebug.c: Likewise.
2705 * minsyms.c: Likewise.
2706 * mips-irix-tdep.c: Likewise.
2707 * mips-linux-tdep.c: Likewise.
2708 * mips-tdep.c: Likewise.
2709 * mips64obsd-tdep.c: Likewise.
2710 * mipsnbsd-tdep.c: Likewise.
2711 * mipsread.c: Likewise.
2712 * mn10300-linux-tdep.c: Likewise.
2713 * mn10300-tdep.c: Likewise.
2714 * monitor.c: Likewise.
2715 * moxie-tdep.c: Likewise.
2716 * mt-tdep.c: Likewise.
2717 * nat/linux-btrace.c: Likewise.
2718 * nat/linux-osdata.c: Likewise.
2719 * nat/linux-procfs.c: Likewise.
2720 * nat/linux-ptrace.c: Likewise.
2721 * nat/linux-waitpid.c: Likewise.
2722 * nbsd-tdep.c: Likewise.
2723 * nios2-linux-tdep.c: Likewise.
2724 * nto-procfs.c: Likewise.
2725 * nto-tdep.c: Likewise.
2726 * objc-lang.c: Likewise.
2727 * objfiles.c: Likewise.
2728 * opencl-lang.c: Likewise.
2729 * osabi.c: Likewise.
2730 * osdata.c: Likewise.
2731 * p-exp.y: Likewise.
2732 * p-lang.c: Likewise.
2733 * p-typeprint.c: Likewise.
2734 * parse.c: Likewise.
2735 * posix-hdep.c: Likewise.
2736 * ppc-linux-nat.c: Likewise.
2737 * ppc-sysv-tdep.c: Likewise.
2738 * ppcfbsd-tdep.c: Likewise.
2739 * ppcnbsd-tdep.c: Likewise.
2740 * ppcobsd-tdep.c: Likewise.
2741 * printcmd.c: Likewise.
2742 * procfs.c: Likewise.
2743 * prologue-value.c: Likewise.
2744 * python/py-auto-load.c: Likewise.
2745 * python/py-gdb-readline.c: Likewise.
2746 * ravenscar-thread.c: Likewise.
2747 * regcache.c: Likewise.
2748 * registry.c: Likewise.
2749 * remote-fileio.c: Likewise.
2750 * remote-m32r-sdi.c: Likewise.
2751 * remote-mips.c: Likewise.
2752 * remote-notif.c: Likewise.
2753 * remote-sim.c: Likewise.
2754 * remote.c: Likewise.
2755 * reverse.c: Likewise.
2756 * rs6000-aix-tdep.c: Likewise.
2757 * ser-base.c: Likewise.
2758 * ser-go32.c: Likewise.
2759 * ser-mingw.c: Likewise.
2760 * ser-pipe.c: Likewise.
2761 * ser-tcp.c: Likewise.
2762 * ser-unix.c: Likewise.
2763 * serial.c: Likewise.
2764 * sh-tdep.c: Likewise.
2765 * sh64-tdep.c: Likewise.
2766 * shnbsd-tdep.c: Likewise.
2767 * skip.c: Likewise.
2768 * sol-thread.c: Likewise.
2769 * solib-dsbt.c: Likewise.
2770 * solib-frv.c: Likewise.
2771 * solib-osf.c: Likewise.
2772 * solib-som.c: Likewise.
2773 * solib-spu.c: Likewise.
2774 * solib-target.c: Likewise.
2775 * solib.c: Likewise.
2776 * somread.c: Likewise.
2777 * source.c: Likewise.
2778 * sparc-nat.c: Likewise.
2779 * sparc-sol2-tdep.c: Likewise.
2780 * sparc-tdep.c: Likewise.
2781 * sparc64-tdep.c: Likewise.
2782 * sparc64fbsd-tdep.c: Likewise.
2783 * sparc64nbsd-tdep.c: Likewise.
2784 * sparcnbsd-tdep.c: Likewise.
2785 * spu-linux-nat.c: Likewise.
2786 * spu-multiarch.c: Likewise.
2787 * spu-tdep.c: Likewise.
2788 * stabsread.c: Likewise.
2789 * stack.c: Likewise.
2790 * std-regs.c: Likewise.
2791 * symfile.c: Likewise.
2792 * symmisc.c: Likewise.
2793 * symtab.c: Likewise.
2794 * target.c: Likewise.
2795 * thread.c: Likewise.
2796 * tilegx-linux-nat.c: Likewise.
2797 * tilegx-tdep.c: Likewise.
2798 * top.c: Likewise.
2799 * tracepoint.c: Likewise.
2800 * tui/tui-command.c: Likewise.
2801 * tui/tui-data.c: Likewise.
2802 * tui/tui-disasm.c: Likewise.
2803 * tui/tui-file.c: Likewise.
2804 * tui/tui-layout.c: Likewise.
2805 * tui/tui-out.c: Likewise.
2806 * tui/tui-regs.c: Likewise.
2807 * tui/tui-source.c: Likewise.
2808 * tui/tui-stack.c: Likewise.
2809 * tui/tui-win.c: Likewise.
2810 * tui/tui-windata.c: Likewise.
2811 * tui/tui-winsource.c: Likewise.
2812 * typeprint.c: Likewise.
2813 * ui-file.c: Likewise.
2814 * ui-out.c: Likewise.
2815 * user-regs.c: Likewise.
2816 * utils.c: Likewise.
2817 * v850-tdep.c: Likewise.
2818 * valarith.c: Likewise.
2819 * valops.c: Likewise.
2820 * valprint.c: Likewise.
2821 * value.c: Likewise.
2822 * varobj.c: Likewise.
2823 * vax-tdep.c: Likewise.
2824 * vaxnbsd-tdep.c: Likewise.
2825 * vaxobsd-tdep.c: Likewise.
2826 * windows-nat.c: Likewise.
2827 * xcoffread.c: Likewise.
2828 * xml-support.c: Likewise.
2829 * xstormy16-tdep.c: Likewise.
2830 * xtensa-linux-nat.c: Likewise.
2831
dccbb609
GB
28322014-08-07 Gary Benson <gbenson@redhat.com>
2833
2834 * common/common-defs.h: Include gdb_assert.h.
2835 * aarch64-tdep.c: Do not include gdb_assert.h.
2836 * addrmap.c: Likewise.
2837 * aix-thread.c: Likewise.
2838 * alpha-linux-tdep.c: Likewise.
2839 * alpha-mdebug-tdep.c: Likewise.
2840 * alphanbsd-tdep.c: Likewise.
2841 * amd64-nat.c: Likewise.
2842 * amd64-tdep.c: Likewise.
2843 * amd64bsd-nat.c: Likewise.
2844 * amd64fbsd-nat.c: Likewise.
2845 * amd64fbsd-tdep.c: Likewise.
2846 * amd64nbsd-nat.c: Likewise.
2847 * amd64nbsd-tdep.c: Likewise.
2848 * amd64obsd-nat.c: Likewise.
2849 * amd64obsd-tdep.c: Likewise.
2850 * arch-utils.c: Likewise.
2851 * arm-tdep.c: Likewise.
2852 * armbsd-tdep.c: Likewise.
2853 * auxv.c: Likewise.
2854 * bcache.c: Likewise.
2855 * bfin-tdep.c: Likewise.
2856 * blockframe.c: Likewise.
2857 * breakpoint.c: Likewise.
2858 * bsd-kvm.c: Likewise.
2859 * bsd-uthread.c: Likewise.
2860 * buildsym.c: Likewise.
2861 * c-exp.y: Likewise.
2862 * c-lang.c: Likewise.
2863 * charset.c: Likewise.
2864 * cleanups.c: Likewise.
2865 * cli-out.c: Likewise.
2866 * cli/cli-decode.c: Likewise.
2867 * cli/cli-dump.c: Likewise.
2868 * cli/cli-logging.c: Likewise.
2869 * cli/cli-script.c: Likewise.
2870 * cli/cli-utils.c: Likewise.
2871 * coffread.c: Likewise.
2872 * common/common-utils.c: Likewise.
2873 * common/queue.h: Likewise.
2874 * common/signals.c: Likewise.
2875 * common/vec.h: Likewise.
2876 * complaints.c: Likewise.
2877 * completer.c: Likewise.
2878 * corelow.c: Likewise.
2879 * cp-abi.c: Likewise.
2880 * cp-name-parser.y: Likewise.
2881 * cp-namespace.c: Likewise.
2882 * cp-support.c: Likewise.
2883 * cris-tdep.c: Likewise.
2884 * dbxread.c: Likewise.
2885 * dictionary.c: Likewise.
2886 * doublest.c: Likewise.
2887 * dsrec.c: Likewise.
2888 * dummy-frame.c: Likewise.
2889 * dwarf2-frame-tailcall.c: Likewise.
2890 * dwarf2-frame.c: Likewise.
2891 * dwarf2expr.c: Likewise.
2892 * dwarf2loc.c: Likewise.
2893 * dwarf2read.c: Likewise.
2894 * eval.c: Likewise.
2895 * event-loop.c: Likewise.
2896 * exceptions.c: Likewise.
2897 * expprint.c: Likewise.
2898 * f-valprint.c: Likewise.
2899 * fbsd-nat.c: Likewise.
2900 * findvar.c: Likewise.
2901 * frame-unwind.c: Likewise.
2902 * frame.c: Likewise.
2903 * frv-tdep.c: Likewise.
2904 * gcore.c: Likewise.
2905 * gdb-dlfcn.c: Likewise.
2906 * gdb_bfd.c: Likewise.
2907 * gdbarch.c: Likewise.
2908 * gdbarch.sh: Likewise.
2909 * gdbtypes.c: Likewise.
2910 * gnu-nat.c: Likewise.
2911 * gnu-v3-abi.c: Likewise.
2912 * go-lang.c: Likewise.
2913 * guile/scm-exception.c: Likewise.
2914 * guile/scm-gsmob.c: Likewise.
2915 * guile/scm-lazy-string.c: Likewise.
2916 * guile/scm-math.c: Likewise.
2917 * guile/scm-pretty-print.c: Likewise.
2918 * guile/scm-safe-call.c: Likewise.
2919 * guile/scm-utils.c: Likewise.
2920 * guile/scm-value.c: Likewise.
2921 * h8300-tdep.c: Likewise.
2922 * hppa-hpux-nat.c: Likewise.
2923 * hppa-tdep.c: Likewise.
2924 * hppanbsd-tdep.c: Likewise.
2925 * hppaobsd-tdep.c: Likewise.
2926 * i386-darwin-nat.c: Likewise.
2927 * i386-darwin-tdep.c: Likewise.
2928 * i386-nto-tdep.c: Likewise.
2929 * i386-tdep.c: Likewise.
2930 * i386bsd-nat.c: Likewise.
2931 * i386fbsd-tdep.c: Likewise.
2932 * i386gnu-nat.c: Likewise.
2933 * i386nbsd-tdep.c: Likewise.
2934 * i386obsd-tdep.c: Likewise.
2935 * i387-tdep.c: Likewise.
2936 * ia64-libunwind-tdep.c: Likewise.
2937 * ia64-tdep.c: Likewise.
2938 * inf-ptrace.c: Likewise.
2939 * inf-ttrace.c: Likewise.
2940 * infcall.c: Likewise.
2941 * infcmd.c: Likewise.
2942 * infrun.c: Likewise.
2943 * inline-frame.c: Likewise.
2944 * interps.c: Likewise.
2945 * jv-lang.c: Likewise.
2946 * jv-typeprint.c: Likewise.
2947 * linux-fork.c: Likewise.
2948 * linux-nat.c: Likewise.
2949 * linux-thread-db.c: Likewise.
2950 * m32c-tdep.c: Likewise.
2951 * m32r-linux-nat.c: Likewise.
2952 * m32r-tdep.c: Likewise.
2953 * m68k-tdep.c: Likewise.
2954 * m68kbsd-nat.c: Likewise.
2955 * m68kbsd-tdep.c: Likewise.
2956 * m88k-tdep.c: Likewise.
2957 * machoread.c: Likewise.
2958 * macroexp.c: Likewise.
2959 * macrotab.c: Likewise.
2960 * maint.c: Likewise.
2961 * mdebugread.c: Likewise.
2962 * memory-map.c: Likewise.
2963 * mep-tdep.c: Likewise.
2964 * mi/mi-common.c: Likewise.
2965 * microblaze-tdep.c: Likewise.
2966 * mingw-hdep.c: Likewise.
2967 * mips-linux-nat.c: Likewise.
2968 * mips-linux-tdep.c: Likewise.
2969 * mips-tdep.c: Likewise.
2970 * mips64obsd-tdep.c: Likewise.
2971 * mipsnbsd-tdep.c: Likewise.
2972 * mn10300-linux-tdep.c: Likewise.
2973 * mn10300-tdep.c: Likewise.
2974 * moxie-tdep.c: Likewise.
2975 * mt-tdep.c: Likewise.
2976 * nat/linux-btrace.c: Likewise.
2977 * nat/linux-osdata.c: Likewise.
2978 * nat/linux-ptrace.c: Likewise.
2979 * nat/mips-linux-watch.c: Likewise.
2980 * nios2-linux-tdep.c: Likewise.
2981 * nios2-tdep.c: Likewise.
2982 * objc-lang.c: Likewise.
2983 * objfiles.c: Likewise.
2984 * obsd-nat.c: Likewise.
2985 * opencl-lang.c: Likewise.
2986 * osabi.c: Likewise.
2987 * parse.c: Likewise.
2988 * ppc-linux-nat.c: Likewise.
2989 * ppc-sysv-tdep.c: Likewise.
2990 * ppcfbsd-nat.c: Likewise.
2991 * ppcfbsd-tdep.c: Likewise.
2992 * ppcnbsd-nat.c: Likewise.
2993 * ppcnbsd-tdep.c: Likewise.
2994 * ppcobsd-nat.c: Likewise.
2995 * ppcobsd-tdep.c: Likewise.
2996 * printcmd.c: Likewise.
2997 * procfs.c: Likewise.
2998 * prologue-value.c: Likewise.
2999 * psymtab.c: Likewise.
3000 * python/py-lazy-string.c: Likewise.
3001 * python/py-value.c: Likewise.
3002 * regcache.c: Likewise.
3003 * reggroups.c: Likewise.
3004 * registry.c: Likewise.
3005 * remote-sim.c: Likewise.
3006 * remote.c: Likewise.
3007 * rs6000-aix-tdep.c: Likewise.
3008 * rs6000-tdep.c: Likewise.
3009 * s390-linux-tdep.c: Likewise.
3010 * score-tdep.c: Likewise.
3011 * ser-base.c: Likewise.
3012 * ser-mingw.c: Likewise.
3013 * sh-tdep.c: Likewise.
3014 * sh64-tdep.c: Likewise.
3015 * solib-darwin.c: Likewise.
3016 * solib-spu.c: Likewise.
3017 * solib-svr4.c: Likewise.
3018 * source.c: Likewise.
3019 * sparc-nat.c: Likewise.
3020 * sparc-sol2-tdep.c: Likewise.
3021 * sparc-tdep.c: Likewise.
3022 * sparc64-sol2-tdep.c: Likewise.
3023 * sparc64-tdep.c: Likewise.
3024 * sparc64fbsd-tdep.c: Likewise.
3025 * sparc64nbsd-tdep.c: Likewise.
3026 * sparc64obsd-tdep.c: Likewise.
3027 * sparcnbsd-tdep.c: Likewise.
3028 * sparcobsd-tdep.c: Likewise.
3029 * spu-multiarch.c: Likewise.
3030 * spu-tdep.c: Likewise.
3031 * stabsread.c: Likewise.
3032 * stack.c: Likewise.
3033 * symfile.c: Likewise.
3034 * symtab.c: Likewise.
3035 * target-descriptions.c: Likewise.
3036 * target-memory.c: Likewise.
3037 * target.c: Likewise.
3038 * tic6x-linux-tdep.c: Likewise.
3039 * tic6x-tdep.c: Likewise.
3040 * tilegx-linux-nat.c: Likewise.
3041 * tilegx-tdep.c: Likewise.
3042 * top.c: Likewise.
3043 * tramp-frame.c: Likewise.
3044 * tui/tui-out.c: Likewise.
3045 * tui/tui-winsource.c: Likewise.
3046 * ui-out.c: Likewise.
3047 * user-regs.c: Likewise.
3048 * utils.c: Likewise.
3049 * v850-tdep.c: Likewise.
3050 * valops.c: Likewise.
3051 * value.c: Likewise.
3052 * varobj.c: Likewise.
3053 * vax-nat.c: Likewise.
3054 * xml-syscall.c: Likewise.
3055 * xml-tdesc.c: Likewise.
3056 * xstormy16-tdep.c: Likewise.
3057 * xtensa-linux-nat.c: Likewise.
3058 * xtensa-tdep.c: Likewise.
3059
e76df0d0
GB
30602014-08-07 Gary Benson <gbenson@redhat.com>
3061
3062 * common/common-defs.h: Include common-utils.h.
3063 * defs.h: Do not include common-utils.h.
3064 * common/gdb_assert.h: Likewise.
3065 * darwin-nat.h: Likewise.
3066 * nat/linux-btrace.c: Likewise.
3067 * target/waitstatus.h: Likewise.
3068
4cb9c816
GB
30692014-08-07 Gary Benson <gbenson@redhat.com>
3070
3071 * common/common-defs.h: Include ptid.h.
3072 * defs.h: Do not include ptid.h.
3073 * inferior.h: Likewise.
3074 * infrun.h: Likewise.
3075 * nat/linux-btrace.h: Likewise.
3076 * nat/linux-osdata.h: Likewise.
3077 * target/waitstatus.h: Likewise.
3078
3995eeee
GB
30792014-08-07 Gary Benson <gbenson@redhat.com>
3080
3081 * common/common-defs.h: Include gdb_locale.h.
3082 * defs.h: Do not include gdb_locale.h.
3083
cb9f1a9b
GB
30842014-08-07 Gary Benson <gbenson@redhat.com>
3085
3086 * common/common-defs.h: Include gdb/signals.h.
3087 * defs.h: Do not include gdb/signals.h.
3088
a5fceff8
GB
30892014-08-07 Gary Benson <gbenson@redhat.com>
3090
3091 * common/common-defs.h: Include pathmax.h.
3092 * defs.h: Do not include pathmax.h.
3093
b9391142
GB
30942014-08-07 Gary Benson <gbenson@redhat.com>
3095
3096 * common/common-defs.h: Include libiberty.h.
3097 * defs.h: Do not include libiberty.h.
3098 * common/queue.h: Likewise.
3099 * cp-name-parser.y: Likewise.
3100 * mi/mi-cmd-catch.c: Likewise.
3101 * python/python.c: Likewise.
3102
0e443c87
GB
31032014-08-07 Gary Benson <gbenson@redhat.com>
3104
3105 * common/common-defs.h: Include ansidecl.h.
3106 * defs.h: Do not include ansidecl.h.
3107 * common/buffer.h: Likewise.
3108 * common/common-utils.h: Likewise.
3109
8ebb3f56
GB
31102014-08-07 Gary Benson <gbenson@redhat.com>
3111
3112 * common/common-defs.h: Include stddef.h.
3113 * defs.h: Do not include stddef.h.
3114 * common/common-utils.h: Likewise.
3115 * amd64fbsd-nat.c: Likewise.
3116 * bcache.c: Likewise.
3117 * charset.c: Likewise.
3118 * common/buffer.h: Likewise.
3119 * common/vec.h: Likewise.
3120 * i386bsd-nat.c: Likewise.
3121 * nat/linux-btrace.h: Likewise.
3122 * ppcfbsd-nat.c: Likewise.
3123 * ppcnbsd-tdep.h: Likewise.
3124 * ppcobsd-nat.c: Likewise.
3125 * ppcobsd-tdep.h: Likewise.
3126 * python/py-gdb-readline.c: Likewise.
3127
8980bdf6
GB
31282014-08-07 Gary Benson <gbenson@redhat.com>
3129
3130 * common/common-defs.h: Include stdarg.h.
3131 * defs.h: Do not include stdarg.h.
3132 * ada-lang.c: Likewise.
3133 * common/common-utils.h: Likewise.
3134 * guile/scm-string.c: Likewise.
3135 * guile/scm-utils.c: Likewise.
3136 * m32c-tdep.c: Likewise.
3137
d7096f71
GB
31382014-08-07 Gary Benson <gbenson@redhat.com>
3139
3140 * common/common-defs.h: Include stdlib.h.
3141 * defs.h: Do not include stdlib.h.
3142 * addrmap.c: Likewise.
3143 * bcache.c: Likewise.
3144 * common/buffer.c: Likewise.
3145 * common/common-utils.c: Likewise.
3146 * cp-name-parser.y: Likewise.
3147 * go32-nat.c: Likewise.
3148 * mn10300-linux-tdep.c: Likewise.
3149 * nat/linux-osdata.c: Likewise.
3150 * tui/tui.c: Likewise.
3151 * windows-nat.c: Likewise.
3152
d02f550d
GB
31532014-08-07 Gary Benson <gbenson@redhat.com>
3154
3155 * common/common-defs.h: Include stdio.h.
3156 * defs.h: Do not include stdio.h.
3157 * ada-lang.c: Likewise.
3158 * common/buffer.c: Likewise.
3159 * common/common-utils.c: Likewise.
3160 * cp-name-parser.y: Likewise.
3161 * gnu-nat.c: Likewise.
3162 * go32-nat.c: Likewise.
3163 * i386gnu-nat.c: Likewise.
3164 * proc-api.c: Likewise.
3165 * proc-events.c: Likewise.
3166 * proc-flags.c: Likewise.
3167 * proc-why.c: Likewise.
3168 * python/python-internal.h: Likewise.
3169 * target-memory.c: Likewise.
3170 * tui/tui-io.c: Likewise.
3171 * tui/tui.c: Likewise.
3172
b6d7a4bf
SM
31732014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3174
3175 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3176 (scan_dyntag_auxv): Same.
3177
af19829b
YQ
31782014-08-06 Yao Qi <yao@codesourcery.com>
3179
3180 * amd64-linux-nat.c: Remove duplicated include
3181 "x86-linux-nat.h".
3182 * i386-linux-nat.c: Likewise.
3183
8e07a239
YQ
31842014-08-06 Yao Qi <yao@codesourcery.com>
3185
3186 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3187 operand" with "Special opcode" in comments.
3188
7bfe8241
GB
31892014-08-05 Gary Benson <gbenson@redhat.com>
3190
3191 * interps.c (initialize_interps): Remove prototype.
3192 (interpreter_initialized): Remove static global.
3193 (interp_add): Do not call initialize_interps.
3194 (initialize_interps): Remove function.
3195
d6c95504
GB
31962014-08-05 Gary Benson <gbenson@redhat.com>
3197
3198 * utils.c (vwarning): Remove spurious va_end.
3199
241fd515
AM
32002014-08-05 Alan Modra <amodra@gmail.com>
3201
3202 * charset.c (convert_between_encodings): Cast result of obstack_base.
3203 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3204 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3205 (read_unwind_info): Use size_t for some locals.
3206 * jit.c (finalize_symtab): Likewise.
3207 * utils.c (hashtab_obstack_allocate): Likewise.
3208 * symmisc.c (print_objfile_statistics): Update format strings.
3209
dc304a94
JK
32102014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3211
3212 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3213 (Changes in GDB 7.8): ... here.
3214
3cecbbbe
TT
32152014-08-04 Tom Tromey <tromey@redhat.com>
3216
3217 * target.c (set_targetdebug): New function.
3218 (initialize_targets): Pass set_targetdebug when creating "set
3219 debug target".
3220
6908c509
JB
32212014-08-01 Joel Brobecker <brobecker@adacore.com>
3222
3223 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3224 if detecting a variable-sized field that is not the last field.
3225 Fix struct type length computation.
3226
53e8f97d
JB
32272014-08-01 Joel Brobecker <brobecker@adacore.com>
3228
3229 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3230 Add debug trace.
3231
e068c55d
JB
32322014-08-01 Joel Brobecker <brobecker@adacore.com>
3233
3234 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3235 Remove "+ 8" offset in computation of CHAIN_VMA.
3236
4d4ca2a1
DE
32372014-07-31 Doug Evans <dje@google.com>
3238
3239 * inflow.c (child_terminal_inferior): Add comment.
3240 (child_terminal_ours_for_output): Add comment.
3241 (child_terminal_ours): Add comment.
3242 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3243 (linux_nat_terminal_ours): Add comment.
3244
462f517e
GB
32452014-07-31 Gary Benson <gbenson@redhat.com>
3246
3247 * common/btrace-common.h: Do not include defs.h or server.h.
3248 * nat/mips-linux-watch.h: Likewise.
3249 * gdb-dlfcn.h: Do not include defs.h.
3250 * tracefile.h: Likewise.
3251
74228e77
RM
32522014-07-30 Roland McGrath <mcgrathr@google.com>
3253
3254 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3255
014f9477
TT
32562014-07-30 Tom Tromey <tromey@redhat.com>
3257
3258 * bsd-kvm.c (bsd_kvm_open): Constify.
3259 * corelow.c (core_open): Constify.
3260 * ctf.c (ctf_open): Constify.
3261 * dbug-rom.c (dbug_open): Constify.
3262 * exec.c (exec_open): Constify.
3263 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3264 * microblaze-rom.c (picobug_open): Constify.
3265 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3266 Constify.
3267 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3268 * record-btrace.c (record_btrace_open): Constify.
3269 * record-full.c (record_full_core_open_1, record_full_open_1)
3270 (record_full_open): Constify.
3271 * remote-m32r-sdi.c (m32r_open): Constify.
3272 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3273 (rockhopper_open, lsi_open): Constify.
3274 * remote-sim.c (gdbsim_open): Constify.
3275 * remote.c (remote_open, extended_remote_open, remote_open_1):
3276 Constify.
3277 * target.h (struct target_ops) <to_open>: Make "arg" const.
3278 * tracefile-tfile.c (tfile_open): Constify.
3279
e799154c
TT
32802014-07-30 Tom Tromey <tromey@redhat.com>
3281
3282 * breakpoint.c (map_breakpoint_numbers): Update.
3283 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3284 (get_number_const): New function.
3285 (get_number): Rewrite using get_number_const.
3286 (init_number_or_range): Make "string" const.
3287 (number_is_in_list): Make "list" const.
3288 * cli/cli-utils.h (get_number_const): Declare.
3289 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3290 (init_number_or_range, number_is_in_list): Update.
3291 * printcmd.c (map_display_numbers): Update.
3292 * value.c (value_from_history_ref): Constify.
3293 * value.h (value_from_history_ref): Update.
3294
5f08566b
TT
32952014-07-30 Tom Tromey <tromey@redhat.com>
3296
3297 * corefile.c (hook_type, call_extra_exec_file_hooks)
3298 (specify_exec_file_hook): Constify.
3299 * exec.c (exec_file_attach): Make "filename" const.
3300 * gdbcore.h (deprecated_exec_file_display_hook)
3301 (specify_exec_file_hook, exec_file_attach): Constify.
3302 * main.c (captured_main): Use catch_command_errors_const.
3303
8981c758
TT
33042014-07-30 Tom Tromey <tromey@redhat.com>
3305
3306 * target.c (open_target): New function.
3307 (add_target_with_completer, add_deprecated_target_alias): Use
3308 set_cmd_sfunc, set_cmd_context.
3309 (debug_to_open): Remove.
3310 (setup_target_debug): Update.
3311
a1c7835a
YQ
33122014-07-30 Yao Qi <yao@codesourcery.com>
3313
3314 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3315 comments.
3316 * parse.c (exp_iterate): Update comments.
3317
976411d6
GB
33182014-07-30 Gary Benson <gbenson@redhat.com>
3319
3320 * common/common-defs.h: New file.
3321 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3322 * defs.h: Include common-defs.h.
3323 Do not include config.h or build-gnulib/config.h.
3324
5d4848a4
GB
33252014-07-30 Gary Benson <gbenson@redhat.com>
3326
3327 * common/common-utils.h: Do not include config.h.
3328 * nat/linux-btrace.h: Likewise.
3329
d41f6d8e
GB
33302014-07-30 Gary Benson <gbenson@redhat.com>
3331
3332 * btrace.c: Include defs.h.
3333 * common/ptid.c: Include defs.h or server.h as appropriate.
3334 * nat/mips-linux-watch.c: Likewise.
3335
84202f9c
TT
33362014-07-29 Tom Tromey <tromey@redhat.com>
3337
3338 * target.c (target_is_pushed): Simplify.
3339
2530441c
JB
33402014-07-29 Joel Brobecker <brobecker@adacore.com>
3341
3342 GDB 7.8 released.
3343
7e09a223
YQ
33442014-07-29 Yao Qi <yao@codesourcery.com>
3345
3346 PR gdb/17206
3347 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3348
7ebdbe92
DE
33492014-07-28 Doug Evans <xdje42@gmail.com>
3350
3351 PR guile/17203
3352 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3353 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3354 parameters.
3355
f347ffc9
WN
33562014-07-28 Will Newton <will.newton@linaro.org>
3357
3358 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3359 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3360 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3361 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3362 (THUMB2_EABI_SYSCALL): Likewise.
3363 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3364 struct tramp_frame.
3365 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3366 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3367
37c5f1f7
DE
33682014-07-27 Doug Evans <xdje42@gmail.com>
3369
3370 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3371
0c3abbc7
DE
33722014-07-27 Doug Evans <xdje42@gmail.com>
3373
3374 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3375
e76c5d17
DE
33762014-07-26 Ludovic Courtès <ludo@gnu.org>
3377 Doug Evans <xdje42@gmail.com>
3378
3379 PR guile/17146
3380 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3381 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3382 * configure.ac: Try to use guild to compile an scm file, if it fails
3383 then disable guile support.
3384 * configure: Regenerate.
3385 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3386 GUILE_FILE_LIST.
3387 (GUILE_COMPILED_FILES): New variable.
3388 (GUILE_FILES) Update.
3389 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3390 (stamp-guile): Compile scm files.
3391 * guile/guile.c (boot_guile_support): New function.
3392 (standard_throw_args_p): New function.
3393 (print_standard_throw_error, print_throw_error): New functions.
3394 (handle_boot_error): New function.
3395 (initialize_scheme_side): Rewrite to call boot_guile_support.
3396 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3397 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3398
186fcde0
DE
33992014-07-26 Ludovic Courtès <ludo@gnu.org>
3400 Doug Evans <xdje42@gmail.com>
3401
3402 PR guile/17146
3403 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3404 * guile/lib/gdb/support.scm: New file.
3405 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3406 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3407 All uses updated.
3408 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3409 All uses updated.
3410 (%assert-type): Ditto, and renamed to assert-type.
3411 (%exception-print-style): Delete.
3412
4df42755
DE
34132014-07-26 Doug Evans <xdje42@gmail.com>
3414
3415 PR build/17105
3416 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3417 * configure: Regenerate.
3418 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3419 PYTHON_FILES.
3420 (PYTHON_FILES): New variable.
3421 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3422 (GUILE_FILES): New variable.
3423 (stamp-python, install-python, uninstall-python): Handle empty
3424 file list.
3425 (stamp-guile, install-guile, uninstall-guile): Ditto.
3426
ee7333ae
DE
34272014-07-26 Doug Evans <xdje42@gmail.com>
3428
3429 PR guile/17177
3430 * guile/lib/gdb.scm (pretty-printers): Export.
3431 (set-pretty-printers!): Export.
3432 * guile/lib/gdb/printing.scm (gdb module): Update.
3433 (prepend-pretty-printer!, append-pretty-printer!): Update.
3434 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3435 (pretty_printer_list_var): Delete.
3436 (pretty_printer_list): New static global.
3437 (gdbscm_pretty_printers): New function.
3438 (gdbscm_set_pretty_printers_x): New function.
3439 (ppscm_find_pretty_printer_from_gdb): Update.
3440 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3441 (gdbscm_initialize_pretty_printers): Update.
3442
74edf516
DE
34432014-07-26 Doug Evans <xdje42@gmail.com>
3444
3445 PR 17185
3446 * configure.ac: Add check for header gc/gc.h.
3447 Add check for function setenv.
3448 * configure: Regenerate.
3449 * config.in: Regenerate.
3450 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3451
d54398a7
MR
34522014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3453
3454 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3455 variation in gdbarch matching.
3456
ab16fce8
TT
34572014-07-25 Tom Tromey <tromey@redhat.com>
3458
3459 * exec.c (using_exec_ops): Remove.
3460 (exec_close_1): Update. Remove extraneous block, reindent.
3461 (add_target_sections): Use target_is_pushed.
3462
88056fbb
PA
34632014-07-25 Pedro Alves <palves@redhat.com>
3464
3465 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3466 * monitor.c (monitor_create_inferior): Likewise.
3467 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3468 * remote-sim.c (gdbsim_create_inferior): Likewise.
3469 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3470 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3471 * windows-nat.c (do_initial_windows_stuff): Likewise.
3472
70509625
PA
34732014-07-25 Pedro Alves <palves@redhat.com>
3474
3475 * NEWS: Mention signal passing and "signal" command changes.
3476 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3477 comment.
3478 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3479 call.
3480 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3481 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3482 (jump_command): Adjust clear_proceed_status call.
3483 (signal_command): Warn if other thread that are resumed have
3484 signals that will be delivered. Adjust clear_proceed_status call.
3485 (until_next_command, finish_command)
3486 (proceed_after_attach_callback, attach_command_post_wait)
3487 (attach_command): Adjust clear_proceed_status call.
3488 * infrun.c (proceed_after_vfork_done): Likewise.
3489 (proceed_after_attach_callback): Adjust comment.
3490 (clear_proceed_status_thread): Clear stop_signal if not in pass
3491 state.
3492 (clear_proceed_status_callback): Delete.
3493 (clear_proceed_status): New 'step' parameter. Only clear the
3494 proceed status of threads the command being prepared is about to
3495 resume.
3496 (proceed): If passed in an explicit signal, override stop_signal
3497 with it. Don't pass the last stop signal to the thread we're
3498 resuming.
3499 (init_wait_for_inferior): Adjust clear_proceed_status call.
3500 (switch_back_to_stepped_thread): Clear the signal if it should not
3501 be passed.
3502 * infrun.h (clear_proceed_status): New 'step' parameter.
3503 (user_visible_resume_ptid): Add comment.
3504 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3505 signal is in pass state.
3506 * remote.c (append_pending_thread_resumptions): Likewise.
3507 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3508
d8be2939
TT
35092014-07-25 Tom Tromey <tromey@redhat.com>
3510
3511 * target.h (target_stopped_data_address)
3512 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3513 parentheses.
3514
7d0d9d2b
PL
35152014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3516
3517 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3518 comments.
3519 (avr_pointer_to_address): Likewise.
3520
e9e7f724
TT
35212014-07-24 Tom Tromey <tromey@redhat.com>
3522
3523 * monitor.c (compile_pattern): Update.
3524 * target.h (struct target_ops) <to_shortname, to_longname,
3525 to_doc>: Now const.
3526
1947513d
TT
35272014-07-24 Tom Tromey <tromey@redhat.com>
3528
3529 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3530 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3531 (add_info_alias, add_com): Make "doc" const.
3532 (print_doc_line): Make "str" const.
3533 (delete_cmd): Update.
3534 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3535 (print_doc_line): Update.
3536 * cli/cli-script.c (document_command): Update.
3537 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3538 (add_com, add_info, add_info_alias): Update.
3539 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3540 * python/py-cmd.c (cmdpy_destroyer): Update.
3541
64e61d29
TT
35422014-07-24 Tom Tromey <tromey@redhat.com>
3543
3544 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3545 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3546 (help_cmd_list): Constify.
3547 (lookup_cmd): Update.
3548 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3549 const.
3550 (help_cmd_list, apropos_cmd): Update.
3551 * cli/cli-script.c (show_user): Update.
3552 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3553 * cli/cli-setshow.h (cmd_show_list): Update.
3554 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3555 (cmd_show_list): Update.
3556 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3557 * python/py-cmd.c (cmdpy_destroyer): Update.
3558
429e55ea
TT
35592014-07-24 Tom Tromey <tromey@redhat.com>
3560
3561 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3562 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3563 const.
3564 * command.h (deprecate_cmd): Update.
3565 * maint.c (maintenance_do_deprecate): Add casts.
3566
64669f3b
TT
35672014-07-24 Tom Tromey <tromey@redhat.com>
3568
3569 * cli/cli-decode.c (help_cmd): Make parameter "const".
3570 * cli/cli-decode.h (help_cmd): Update.
3571
d3d3328b
TT
35722014-07-24 Tom Tromey <tromey@redhat.com>
3573
3574 * stack.c (up_silently_base, down_silently_base): Make argument
3575 const.
3576
414842dc
TT
35772014-07-24 Tom Tromey <tromey@redhat.com>
3578
3579 * solib.c (solib_add): Make "pattern" const.
3580 * solib.h (solib_add): Update.
3581
baa336ce
TT
35822014-07-24 Tom Tromey <tromey@redhat.com>
3583
3584 * remote.c (remote_serial_open, print_packet, putpkt)
3585 (putpkt_binary): Constify.
3586 * remote.h (putpkt): Update.
3587
5a19e2d0
TT
35882014-07-24 Tom Tromey <tromey@redhat.com>
3589
3590 * monitor.c (monitor_open): Make "args" const.
3591 * monitor.h (monitor_open): Update.
3592
fc4baa5e
TT
35932014-07-24 Tom Tromey <tromey@redhat.com>
3594
3595 * maint.c (match_bfd_flags): Make "string" const.
3596 (print_bfd_section_info): Remove casts.
3597 (print_objfile_section_info): Make "string" const.
3598
0d5f0dbe
TT
35992014-07-24 Tom Tromey <tromey@redhat.com>
3600
3601 * inf-child.c (inf_child_open_target): Make "arg" const.
3602 * inf-child.h (inf_child_open_target): Update.
3603
41c77899
TT
36042014-07-24 Tom Tromey <tromey@redhat.com>
3605
3606 * environ.c (unset_in_environ): Make "var" const.
3607 * environ.h (unset_in_environ): Update.
3608
93db0d79
TT
36092014-07-24 Tom Tromey <tromey@redhat.com>
3610
3611 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3612 Make "cmd" const.
3613 (scan_filename_with_cleanup): Likewise.
3614 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3615 Make arguments const.
3616 (restore_command): Update.
3617
36d6eb95
PA
36182014-07-24 Pedro Alves <palves@redhat.com>
3619
3620 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3621
8009206a
TT
36222014-07-24 Tom Tromey <tromey@redhat.com>
3623 Gary Benson <gbenson@redhat.com>
3624
3625 * nat/linux-ptrace.c (additional_flags): New global.
3626 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3627 additional_flags; don't check GDBSERVER.
3628 (linux_ptrace_set_additional_flags): New function.
3629 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3630 Declare.
3631 * linux-nat.c (_initialize_linux_nat): Call
3632 linux_ptrace_set_additional_flags.
3633
a7068b60
TT
36342014-07-24 Tom Tromey <tromey@redhat.com>
3635
3636 * make-target-delegates (munge_type, write_debugmethod): New
3637 functions.
3638 (debug_names): New global.
3639 ($TARGET_DEBUG_PRINTER): New global.
3640 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3641 name.
3642 Write debug methods. Generate init_debug_target.
3643 * target-debug.h: New file.
3644 * target-delegates.c: Rebuild.
3645 * target.c: Include target-debug.h.
3646 (debug_target): Hoist definition.
3647 (target_kill, target_get_section_table, target_memory_map)
3648 (target_flash_erase, target_flash_done, target_detach)
3649 (target_disconnect, target_wait, target_resume)
3650 (target_pass_signals, target_program_signals, target_follow_fork)
3651 (target_mourn_inferior, target_search_memory)
3652 (target_thread_address_space, target_close)
3653 (target_find_new_threads, target_core_of_thread)
3654 (target_verify_memory, target_insert_mask_watchpoint)
3655 (target_remove_mask_watchpoint): Remove targetdebug code.
3656 (debug_to_post_attach, debug_to_prepare_to_store)
3657 (debug_to_files_info, debug_to_insert_breakpoint)
3658 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3659 (debug_to_region_ok_for_hw_watchpoint)
3660 (debug_to_can_accel_watchpoint_condition)
3661 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3662 (debug_to_watchpoint_addr_within_range)
3663 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3664 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3665 (debug_to_terminal_init, debug_to_terminal_inferior)
3666 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3667 (debug_to_terminal_save_ours, debug_to_terminal_info)
3668 (debug_to_load, debug_to_post_startup_inferior)
3669 (debug_to_insert_fork_catchpoint)
3670 (debug_to_remove_fork_catchpoint)
3671 (debug_to_insert_vfork_catchpoint)
3672 (debug_to_remove_vfork_catchpoint)
3673 (debug_to_insert_exec_catchpoint)
3674 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3675 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3676 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3677 (setup_target_debug): Call init_debug_target.
3678 * target.h (TARGET_DEBUG_PRINTER): New macro.
3679 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3680 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3681
2c51604d
GB
36822014-07-24 Gary Benson <gbenson@redhat.com>
3683
3684 * exceptions.h (throw_vfatal): Renamed to...
3685 (throw_vquit): New declaration.
3686 (throw_quit): Likewise.
3687 * exceptions.c (throw_vfatal): Renamed to...
3688 (throw_vquit): New function.
3689 (throw_quit): Likewise.
3690 (throw_error): Call throw_verror rather than throw_it.
3691 * utils.h (vfatal): Removed.
3692 (fatal): Likewise.
3693 * utils.c (vfatal): Removed.
3694 (fatal): Likewise.
3695 (internal_verror): Replaced call to fatal with call to throw_quit.
3696 (quit): Replaced calls to fatal with calls to throw_quit.
3697
34211963
ME
36982014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3699
3700 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3701 target_read_code.
3702
a52b4d3e
ME
37032014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3704
3705 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3706 less than zero in conditional expression.
3707
a8bdc56b
TT
37082014-07-23 Tom Tromey <tromey@redhat.com>
3709
3710 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3711 ($INTRO_PART): Don't match whitespace.
3712 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3713 argument matching.
3714 ($METHOD): Add $METHOD_TRAILER.
3715 (trim): Rewrite.
3716 (scan_target_h): New sub.
3717 Change main loop not to collect state.
3718 * target-delegates.c: Rebuild.
3719
91b52240
GB
37202014-07-23 Gary Benson <gbenson@redhat.com>
3721
3722 * cp-support.c (gdb_demangle): Fix build on systems without
3723 sigaltstack.
3724
45326f6f
JK
37252014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3726
3727 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3728 for reference entry value target data value.
3729
e214cf6c
JK
37302014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3731
3732 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3733 value_available_contents_eq.
3734
bddbbedd
PA
37352014-07-22 Pedro Alves <palves@redhat.com>
3736
3737 * value.c (allocate_optimized_out_value): Don't mark value as
3738 non-lazy.
3739
45c71484
JW
37402014-07-22 Jiong Wang <jiong.wang@arm.com>
3741
3742 * MAINTAINERS (Write After Approval): Update my email address.
3743
9597b22a
DE
37442014-07-20 Doug Evans <dje@google.com>
3745
3746 PR server/17147
3747 * remote.c (putpkt_binary): Add text to error message.
3748
91101fe5
YQ
37492014-07-20 Yao Qi <yao@codesourcery.com>
3750
3751 * eval.c: Remove "Chill" from comments.
3752 * gdbtypes.h: Likewise.
3753 * symtab.h: Likewise.
3754
c9402c95
YQ
37552014-07-20 Yao Qi <yao@codesourcery.com>
3756
3757 * std-operator.def: Update comments to TERNOP_SLICE.
3758
ae8fddda
YQ
37592014-07-20 Yao Qi <yao@codesourcery.com>
3760
3761 * std-operator.def: Remove BINOP_RANGE.
3762 * breakpoint.c (watchpoint_exp_is_const): Update.
3763 * expprint.c (dump_subexp_body_standard): Likewise.
3764 * eval.c (init_array_element): Remove dead code.
3765 (evaluate_subexp_standard): Likewise.
3766
9c816640
YQ
37672014-07-20 Yao Qi <yao@codesourcery.com>
3768
3769 * std-operator.def: Remove BINOP_IN.
3770 * breakpoint.c (watchpoint_exp_is_const): Update.
3771 * eval.c (evaluate_subexp_standard): Likewise.
3772 * expprint.c (dump_subexp_body_standard): Likewise.
3773
164224e9
ME
37742014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3775
3776 * microblaze-tdep.c (microblaze_register_names): Add
3777 the rshr and rslr register names.
3778 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3779 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3780 Use of tdesc_numbered_register. Use of
3781 microblaze_register_g_packet_guesses. Use of
3782 tdesc_use_registers. Use of set_gdbarch_register_type.
3783 (microblaze_register_g_packet_guesses): New.
3784 * microblaze-tdep.h (microblaze_reg_num): Add
3785 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3786 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3787 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3788 * features/microblaze-core.xml: New file.
3789 * features/microblaze-stack-protect.xml: New file.
3790 * features/microblaze-with-stack-protect.c: New file.
3791 * features/microblaze-with-stack-protect.xml: New file.
3792 * features/microblaze.xml: New file.
3793 * features/microblaze.c: New file.
3794 * features/Makefile (microblaze-with-stack-protect): Add
3795 microblaze-with-stack-protect microblaze and microblaze-expedite.
3796 * regformats/microblaze-with-stack-protect.dat: New file.
3797 * regformats/microblaze.dat: New file.
3798 * doc/gdb.texinfo (MicroBlaze Features): Added.
3799
e8b2341c
TT
38002014-07-18 Tom Tromey <tromey@redhat.com>
3801
3802 * exec.c (exec_ops): Now static.
3803 * exec.h (exec_ops): Don't declare.
3804
44e89118
TT
38052014-07-18 Tom Tromey <tromey@redhat.com>
3806
3807 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3808 to find_target_beneath.
3809 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3810 find_target_beneath.
3811 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3812
b0ed115f
TT
38132014-07-18 Tom Tromey <tromey@redhat.com>
3814
3815 PR gdb/17130:
3816 * utils.c (quit): Use target_supports_terminal_ours.
3817 * target.h (target_supports_terminal_ours): Declare.
3818 * target.c (target_supports_delete_record): Don't check
3819 to_delete_record against NULL.
3820 (target_supports_terminal_ours): New function.
3821
e75fdfca
TT
38222014-07-18 Tom Tromey <tromey@redhat.com>
3823
3824 PR gdb/17130:
3825 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3826 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3827 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3828 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3829 * windows-nat.c (windows_xfer_partial): Always delegate.
3830 * record-btrace.c (record_btrace_xfer_partial): Simplify
3831 delegation.
3832 (record_btrace_fetch_registers, record_btrace_store_registers)
3833 (record_btrace_prepare_to_store, record_btrace_resume)
3834 (record_btrace_wait, record_btrace_find_new_threads)
3835 (record_btrace_thread_alive): Likewise.
3836 * procfs.c (procfs_xfer_partial): Always delegate.
3837 * corelow.c (core_xfer_partial): Always delegate.
3838 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3839
83814951
TT
38402014-07-18 Tom Tromey <tromey@redhat.com>
3841
3842 * exec.c (exec_make_note_section): Move earlier.
3843
b8b8facf
DE
38442014-07-17 Doug Evans <dje@google.com>
3845
74b49205 3846 PR gdb/17170
b8b8facf
DE
3847 * maint.c (count_symtabs_and_blocks): Handle NULL
3848 current_program_space.
3849 (report_command_stats): Check global enabled flag in addition to
3850 recorded enabled flag.
3851 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3852
69ff6be5
PA
38532014-07-16 Pedro Alves <palves@redhat.com>
3854
3855 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3856
252db1b5
TT
38572014-07-16 Tom Tromey <tromey@redhat.com>
3858
3859 * target.h (struct target_ops) <to_delete_record>: Reformat
3860 comment.
3861
a432721e
TT
38622014-07-16 Tom Tromey <tromey@redhat.com>
3863
3864 * target-delegates.c: Rebuild.
3865
487d9753
PL
38662014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3867
3868 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3869 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3870 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3871 (avr_pointer_to_address): Likewise.
3872 (avr_address_class_type_flags): New function.
3873 (avr_address_class_type_flags_to_name): Likewise.
3874 (avr_address_class_name_to_type_flags): Likewise.
3875 (avr_gdbarch_init): Set address_class_type_flags,
3876 address_class_type_flags_to_name and
3877 address_class_name_to_type_flags.
3878
57745c90
PA
38792014-07-15 Pedro Alves <palves@redhat.com>
3880
3881 * linux-nat.c (kill_callback): Save errno and work with saved
3882 copy.
3883
2d40be18
SM
38842014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3885
3886 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3887
572f6555
EBM
38882014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3889
3890 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3891 breakpoint support correctly.
3892
cc1c52ad
PA
38932014-07-14 Pedro Alves <palves@redhat.com>
3894
3895 * utils.c (prompt_for_continue): Call target_terminal_ours.
3896
1e973570
PA
38972014-07-14 Pedro Alves <palves@redhat.com>
3898
3899 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3900 catch_errors. Don't re-enable stdin or notify observers where,
3901 and rethrow error.
3902 (fetch_inferior_event_wrapper): Delete.
3903
93d6eb10
PA
39042014-07-14 Pedro Alves <palves@redhat.com>
3905
3906 PR gdb/17072
3907 * top.c: Include "inf-loop.h".
3908 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3909 field.
3910 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3911 was async before.
3912 (gdb_readline_wrapper): Store whether the target is async, and
3913 make it sync.
3914
0017922d
PA
39152014-07-14 Pedro Alves <palves@redhat.com>
3916
3917 PR gdb/17072
3918 * top.c (gdb_readline_wrapper_line): Tweak comment.
3919 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3920 the input handler callback.
3921
94696ad3
PA
39222014-07-14 Pedro Alves <palves@redhat.com>
3923
3924 PR gdb/17072
3925 * main.c: Include event-top.h.
3926 (handle_command_errors): New function.
3927 (catch_command_errors, catch_command_errors_const): Use it.
3928
9d1e69a2
PA
39292014-07-14 Pedro Alves <palves@redhat.com>
3930
3931 * exceptions.c (catch_command_errors, catch_command_errors_const):
3932 Moved to main.c.
3933 * exceptions.h (catch_command_errors_ftype)
3934 (catch_command_errors_const_ftype): Moved to main.c.
3935 (catch_command_errors, catch_command_errors_const): Delete
3936 declarations.
3937 * main.c (catch_command_errors_ftype)
3938 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3939 (catch_command_errors, catch_command_errors_const)): Moved here
3940 from exceptions.c and make static.
3941
feefc97b
PA
39422014-07-14 Pedro Alves <palves@redhat.com>
3943
3944 * exceptions.c (print_any_exception): Delete.
3945 (catch_exceptions_with_msg): Use exception_print instead of
3946 print_any_exception.
3947 (catch_errors): Use exception_fprintf instead of
3948 print_any_exception.
3949 (catch_command_errors, catch_command_errors_const): Use
3950 exception_print instead of print_any_exception.
3951
c933f875
PA
39522014-07-14 Pedro Alves <palves@redhat.com>
3953
3954 * infcall.c (run_inferior_call): Set 'sync_execution' while
3955 running the inferior call.
3956
feb6f816
PA
39572014-07-14 Pedro Alves <palves@redhat.com>
3958
3959 * value.c (value_contents_equal): Delete function.
3960 * value.h (value_contents_equal): Delete declaration.
3961
d98b7a16
TT
39622014-07-14 Tom Tromey <tromey@redhat.com>
3963
3964 PR exp/17106:
3965 * gdbtypes.c (is_dynamic_type_internal): New function, from
3966 is_dynamic_type.
3967 (is_dynamic_type): Rewrite.
3968 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3969 (resolve_dynamic_struct): Likewise.
3970 (resolve_dynamic_type_internal): New function, from
3971 resolve_dynamic_type.
3972 (resolve_dynamic_type): Rewrite.
3973
548740d6
TT
39742014-07-14 Tom Tromey <tromey@redhat.com>
3975
3976 * target.c (target_require_runnable): Also check record_stratum.
3977 Update comment.
3978
808f7ab1
YQ
39792014-07-11 Yao Qi <yao@codesourcery.com>
3980
3981 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3982 thumb_instruction_restores_sp return true.
3983
540314bd
YQ
39842014-07-11 Yao Qi <yao@codesourcery.com>
3985
3986 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3987 (thumb_in_function_epilogue_p): Call
3988 thumb_instruction_restores_sp.
3989
1db01f22
YQ
39902014-07-11 Yao Qi <yao@codesourcery.com>
3991
3992 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3993 'add sp, #imm'.
3994 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3995
3116063b
GB
39962014-07-11 Gary Benson <gbenson@redhat.com>
3997
3998 * amd64-linux-nat.c (gdbcore.h): Remove include.
3999 (regset.h): Likewise.
4000 (nat/linux-btrace.h): Likewise.
4001 (btrace.h): Likewise.
4002 (gdb_assert.h): Likewise.
4003 (string.h): Likewise.
4004 (sys/uio.h): Likewise.
4005 (sys/debugreg.h): Likewise.
4006 (sys/syscall.h): Likewise.
4007 (sys/procfs.h): Likewise.
4008 (sys/user.h): Likewise.
4009 (asm/ptrace.h): Likewise.
4010 (i386-nat.h): Likewise.
4011 * i386-linux-nat.c (i386-nat.h): Likewise.
4012 (regset.h): Likewise.
4013 (target.h): Likewise.
4014 (linux-nat.h): Likewise.
4015 (nat/linux-btrace.h): Likewise.
4016 (btrace.h): Likewise.
4017 (gdb_assert.h): Likewise.
4018 (string.h): Likewise.
4019 (sys/uio.h): Likewise.
4020 (sys/user.h): Likewise.
4021 (sys/procfs.h): Likewise.
4022 (sys/reg.h): Likewise.
4023 (sys/debugreg.h): Likewise.
4024 (ORIG_EAX): Remove definition.
4025
040baaf6
GB
40262014-07-11 Gary Benson <gbenson@redhat.com>
4027
4028 * i386-linux-nat.h: New file.
4029 * x86-linux-nat.h: Likewise.
4030 * x86-linux-nat.c: Likewise.
4031 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4032 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4033 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4034 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4035 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4036 (PTRACE_SETREGSET): Likewise.
4037 (arch_lwp_info): Now in x86-linux-nat.c.
4038 (have_ptrace_getregset): Now in x86-linux-nat.h.
4039 (x86_linux_dr_get): Now in x86-linux-nat.c.
4040 (x86_linux_dr_set): Likewise.
4041 (x86_linux_dr_get_addr): Likewise.
4042 (x86_linux_dr_get_control): Likewise.
4043 (x86_linux_dr_get_status): Likewise.
4044 (update_debug_registers_callback): Likewise.
4045 (x86_linux_dr_set_control): Likewise.
4046 (x86_linux_dr_set_addr): Likewise.
4047 (x86_linux_prepare_to_resume): Likewise.
4048 (x86_linux_new_thread): Likewise.
4049 (x86_linux_new_fork): Likewise.
4050 (x86_linux_get_thread_area): Likewise.
4051 (super_post_startup_inferior): Likewise.
4052 (x86_linux_child_post_startup_inferior): Likewise.
4053 (AMD64_LINUX_USER64_CS): Likewise.
4054 (AMD64_LINUX_X32_DS): Likewise.
4055 (x86_linux_read_description): Likewise.
4056 (x86_linux_enable_btrace): Likewise.
4057 (x86_linux_disable_btrace): Likewise.
4058 (x86_linux_teardown_btrace): Likewise.
4059 (x86_linux_read_btrace): Likewise.
4060 (x86_linux_create_target): Likewise.
4061 (x86_linux_add_target): Likewise.
4062 * i386-linux-nat.c (x86-linux-nat.h): New include.
4063 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4064 (PTRACE_SETREGSET): Likewise.
4065 (arch_lwp_info): Now in x86-linux-nat.c.
4066 (have_ptrace_getregset): Now in x86-linux-nat.h.
4067 (x86_linux_dr_get): Now in x86-linux-nat.c.
4068 (x86_linux_dr_set): Likewise.
4069 (x86_linux_dr_get_addr): Likewise.
4070 (x86_linux_dr_get_control): Likewise.
4071 (x86_linux_dr_get_status): Likewise.
4072 (update_debug_registers_callback): Likewise.
4073 (x86_linux_dr_set_control): Likewise.
4074 (x86_linux_dr_set_addr): Likewise.
4075 (x86_linux_prepare_to_resume): Likewise.
4076 (x86_linux_new_thread): Likewise.
4077 (x86_linux_new_fork): Likewise.
4078 (x86_linux_get_thread_area): Likewise.
4079 (super_post_startup_inferior): Likewise.
4080 (x86_linux_child_post_startup_inferior): Likewise.
4081 (AMD64_LINUX_USER64_CS): Likewise.
4082 (AMD64_LINUX_X32_DS): Likewise.
4083 (x86_linux_read_description): Likewise.
4084 (x86_linux_enable_btrace): Likewise.
4085 (x86_linux_disable_btrace): Likewise.
4086 (x86_linux_teardown_btrace): Likewise.
4087 (x86_linux_read_btrace): Likewise.
4088 (x86_linux_create_target): Likewise.
4089 (x86_linux_add_target): Likewise.
4090
1aa7e42c
GB
40912014-07-11 Gary Benson <gbenson@redhat.com>
4092
4093 * amd64-linux-nat.c: Comment and whitespace changes.
4094 * i386-linux-nat.c: Comment and whitespace changes.
4095
c1e246a0
GB
40962014-07-11 Gary Benson <gbenson@redhat.com>
4097
4098 * amd64-linux-nat.c (x86_linux_create_target): New function.
4099 (x86_linux_add_target): Likewise.
4100 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4101 * i386-linux-nat.c (x86_linux_create_target): New function.
4102 (x86_linux_add_target): Likewise.
4103 (_initialize_i386_linux_nat): Delegate to the above new functions.
4104
8c420b8d
GB
41052014-07-11 Gary Benson <gbenson@redhat.com>
4106
4107 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4108 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4109 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4110 (ps_get_thread_area): Delegate to the above.
4111
cb1da100
GB
41122014-07-11 Gary Benson <gbenson@redhat.com>
4113
4114 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4115 x86_linux_read_description. All uses updated. amd64-specific
4116 code conditionalized. Conditionalized i386-specific code added.
4117 Redundant cast removed.
4118 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4119 x86_linux_read_description. All uses updated. i386-specific
4120 code conditionalized. Conditionalized amd64-specific code added.
4121 One sizeof replaced with the actual type it is describing.
4122
2acf3cd0
GB
41232014-07-11 Gary Benson <gbenson@redhat.com>
4124
4125 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4126 x86_linux_dr_get. All uses updated.
4127 (amd64_linux_dr_set): Renamed to
4128 x86_linux_dr_set. All uses updated.
4129 (amd64_linux_dr_get_addr): Renamed to
4130 x86_linux_dr_get_addr. All uses updated.
4131 (amd64_linux_dr_get_control): Renamed to
4132 x86_linux_dr_get_control. All uses updated.
4133 (amd64_linux_dr_get_status): Renamed to
4134 x86_linux_dr_get_status. All uses updated.
4135 (amd64_linux_dr_set_control): Renamed to
4136 x86_linux_dr_set_control. All uses updated.
4137 (amd64_linux_dr_set_addr): Renamed to
4138 x86_linux_dr_set_addr. All uses updated.
4139 (amd64_linux_prepare_to_resume): Renamed to
4140 x86_linux_prepare_to_resume. All uses updated.
4141 (amd64_linux_new_thread): Renamed to
4142 x86_linux_new_thread. All uses updated.
4143 (amd64_linux_new_fork): Renamed to
4144 x86_linux_new_fork. All uses updated.
4145 (amd64_linux_child_post_startup_inferior): Renamed to
4146 x86_linux_child_post_startup_inferior. All uses updated.
4147 (amd64_linux_enable_btrace): Renamed to
4148 x86_linux_enable_btrace. All uses updated.
4149 (amd64_linux_disable_btrace): Renamed to
4150 x86_linux_disable_btrace. All uses updated.
4151 (amd64_linux_teardown_btrace): Renamed to
4152 x86_linux_teardown_btrace. All uses updated.
4153 (amd64_linux_read_btrace): Renamed to
4154 x86_linux_read_btrace. All uses updated.
4155 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4156 x86_linux_dr_get. All uses updated.
4157 (i386_linux_dr_set): Renamed to
4158 x86_linux_dr_set. All uses updated.
4159 (i386_linux_dr_get_addr): Renamed to
4160 x86_linux_dr_get_addr. All uses updated.
4161 (i386_linux_dr_get_control): Renamed to
4162 x86_linux_dr_get_control. All uses updated.
4163 (i386_linux_dr_get_status): Renamed to
4164 x86_linux_dr_get_status. All uses updated.
4165 (i386_linux_dr_set_control): Renamed to
4166 x86_linux_dr_set_control. All uses updated.
4167 (i386_linux_dr_set_addr): Renamed to
4168 x86_linux_dr_set_addr. All uses updated.
4169 (i386_linux_prepare_to_resume): Renamed to
4170 x86_linux_prepare_to_resume. All uses updated.
4171 (i386_linux_new_thread): Renamed to
4172 x86_linux_new_thread. All uses updated.
4173 (i386_linux_new_fork): Renamed to
4174 x86_linux_new_fork. All uses updated.
4175 (i386_linux_child_post_startup_inferior): Renamed to
4176 x86_linux_child_post_startup_inferior. All uses updated.
4177 (i386_linux_enable_btrace): Renamed to
4178 x86_linux_enable_btrace. All uses updated.
4179 (i386_linux_disable_btrace): Renamed to
4180 x86_linux_disable_btrace. All uses updated.
4181 (i386_linux_teardown_btrace): Renamed to
4182 x86_linux_teardown_btrace. All uses updated.
4183 (i386_linux_read_btrace): Renamed to
4184 x86_linux_read_btrace. All uses updated.
4185
b9c1d481
AS
41862014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4187
4188 * remote.c (extended_remote_post_attach): New function.
4189 (init_extended_remote_ops): Install it as to_post_attach method.
4190
7180e04a
PA
41912014-07-09 Pedro Alves <palves@redhat.com>
4192
4193 * infcmd.c (attach_command_post_wait): Don't call
4194 target_terminal_inferior here.
4195 (attach_command): Call it here instead.
4196
9a9a7608
AB
41972014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4198
4199 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4200 field.
4201 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4202 from varobj.c, with additional checks.
4203 (c_varobj_ops): Fill in is_path_expr_parent field.
4204 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4205 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4206 field.
4207 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4208 ops method.
4209 (varobj_default_is_path_expr_parent): New function.
4210 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4211 (varobj_default_is_path_expr_parent): Declare new function.
4212
1f267ae3
MM
42132014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4214
4215 * infcmd.c (finish_backward): Turn internal error into normal error.
4216
b2ee242b
PA
42172014-07-07 Pedro Alves <palves@redhat.com>
4218
8a869bca 4219 PR gdb/17096
b2ee242b
PA
4220 * remote.c (async_handle_remote_sigint)
4221 (async_handle_remote_sigint_twice): Call
4222 gdb_call_async_signal_handler instead of
4223 mark_async_signal_handler.
4224
38e229b2
TT
42252014-07-07 Tom Tromey <tromey@redhat.com>
4226
4227 * target-delegates.c: Rebuild.
4228 * target.c (target_info_record): Remove.
4229 * record.c (info_record_command): Unconditionally call
4230 to_info_record.
4231 * target.h (struct target_ops) <to_info_record>: Use
4232 TARGET_DEFAULT_IGNORE.
4233 (target_info_record): Remove.
4234
f0f9ff95
TT
42352014-07-07 Tom Tromey <tromey@redhat.com>
4236
4237 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4238 TARGET_DEFAULT_NORETURN.
4239 * target.c (generic_tls_error): New function.
4240 (target_translate_tls_address): Don't search target stack.
4241 * target-delegates.c: Rebuild.
4242 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4243 stack.
4244 * linux-thread-db.c (thread_db_get_thread_local_address):
4245 Unconditionally call beneath target.
4246
4a5be5ee
MK
42472014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4248
4249 * cli/cli-logging.c (pop_output_files): Assign targerr to
4250 gdb_stdtargerr.
4251
92c3b204
AB
42522014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4253
4254 * MAINTAINERS (Write After Approval): Update my email address.
4255
9b11e3a7
GB
42562014-07-02 Gary Benson <gbenson@redhat.com>
4257
4258 * proc-service.c (ps_xfer_memory): Update comment.
4259 (ps_pstop): Remove unused function.
4260 (ps_pcontinue): Likewise.
4261 (ps_lstop): Likewise.
4262 (ps_lcontinue): Likewise.
4263 (ps_lgetxregsize): Likewise.
4264 (ps_lgetxregs): Likewise.
4265 (ps_lsetxregs): Likewise.
4266 (ps_plog): Likewise.
4267 (ps_ptread): Likewise.
4268 (ps_ptwrite): Likewise.
4269
cf363f18
MW
42702014-07-01 Mark Wielaard <mjw@redhat.com>
4271
4272 * dwarf2read.c (add_array_cv_type): New function.
4273 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4274 (read_tag_volatile_type): Likewise.
4275
82ae6c8d
TT
42762014-07-01 Tom Tromey <tromey@redhat.com>
4277
4278 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4279 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4280 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4281 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4282 * command.h (cmd_cfunc_ftype): Move earlier.
4283 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4284 (add_com, add_info): Use cmd_cfunc_ftype.
4285
96142726
TT
42862014-06-30 Tom Tromey <tromey@redhat.com>
4287
4288 * symtab.c (operator_chars): Make parameters and return type
4289 const.
4290 (file_matches): Make "files" const.
4291 (struct search_symbols_data) <files>: Now const.
4292 (search_symbols): Make "regexp" and "files" parameters const.
4293 Update.
4294 (symtab_symbol_info): Remove cast.
4295 (rbreak_command): Update.
4296 * symtab.h (search_symbols): Update.
4297
b67a2c6f
YQ
42982014-06-27 Yao Qi <yao@codesourcery.com>
4299
4300 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4301 Change parameter type to 'struct thread_info *'. Caller
4302 updated.
4303 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4304 Update declaration.
4305 * dummy-frame.c (struct dummy_frame_id): New.
4306 (dummy_frame_id_eq): New function.
4307 (struct dummy_frame) <id>: Change its type to 'struct
4308 dummy_frame_id'.
4309 (dummy_frame_push): Add parameter ptid and save it in
4310 dummy_frame_id.
4311 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4312 inferior_ptid.
4313 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4314 to inferior_ptid.
4315 (lookup_dummy_frame): Change parameter type to 'struct
4316 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4317 instead of frame_id_eq.
4318 (dummy_frame_pop): Add parameter ptid. Callers updated.
4319 Update comments. Compose dummy_frame_id and pass it to
4320 lookup_dummy_frame.
4321 (dummy_frame_discard): Add parameter ptid.
4322 (dummy_frame_sniffer): Compose dummy_frame_id and call
4323 dummy_frame_id_eq instead of frame_id_eq.
4324 (fprint_dummy_frames): Print ptid.
4325 * dummy-frame.h: Remove comments.
4326 (dummy_frame_push): Add ptid in declaration.
4327 (dummy_frame_pop, dummy_frame_discard): Likewise.
4328
5b10184c
TT
43292014-06-26 Tom Tromey <tromey@redhat.com>
4330
4331 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4332 * command.h (error_no_arg): Update.
4333
06900326
TT
43342014-06-26 Tom Tromey <tromey@redhat.com>
4335
4336 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4337 (do_show_command): Make "arg" const.
4338 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4339
c2bcbb1d
TT
43402014-06-26 Tom Tromey <tromey@redhat.com>
4341
4342 * record-full.c (record_full_get_bookmark): Make "args" const.
4343 (record_full_goto_bookmark): Make "raw_bookmark" const.
4344 * record.c (record_goto): New function.
4345 (cmd_record_goto): Use it. Now static.
4346 * record.h (record_goto): Declare.
4347 (cmd_record_goto): Remove declaration.
4348 * target-delegates.c: Rebuild.
4349 * target.h (struct target_ops) <to_get_bookmark,
4350 to_goto_bookmark>: Make parameter const.
4351
9cbe5fff
TT
43522014-06-26 Tom Tromey <tromey@redhat.com>
4353
4354 * defs.h (generic_load): Update.
4355 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4356 * monitor.c (monitor_load): Make "args" const.
4357 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4358 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4359 const.
4360 (mips_load): Make "file" const.
4361 * remote-sim.c (gdbsim_load): Make "args" const.
4362 * remote.c (remote_load): Make "name" const.
4363 * symfile.c (generic_load): Make "args" const.
4364 * target-delegates.c: Rebuild.
4365 * target.c (target_load): Make "arg" const.
4366 (debug_to_load): Make "args" const.
4367 * target.h (struct target_ops) <to_load>: Make parameter const.
4368 (target_load): Update.
4369
34a68019
TT
43702014-06-26 Tom Tromey <tromey@redhat.com>
4371
4372 PR symtab/16902:
4373 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4374 (dwarf2_physname, read_partial_die)
4375 (guess_partial_die_structure_name, fixup_partial_die)
4376 (guess_full_die_structure_name, anonymous_struct_prefix)
4377 (dwarf2_name): Use per-BFD obstack.
4378
efc889c1
YQ
43792014-06-26 Yao Qi <yao@codesourcery.com>
4380
4381 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4382 dummyframe and this_id into inner block below.
4383
4395285e
YQ
43842014-06-26 Yao Qi <yao@codesourcery.com>
4385
4386 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4387 with "signal_pass[0]" in the initialization of signal_pass.
4388
aef92902
MM
43892014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4390
4391 * record-btrace.c (record_btrace_generating_corefile)
4392 (record_btrace_prepare_to_generate_core)
4393 (record_btrace_done_generating_core): New.
4394 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4395 (record_btrace_store_registers, record_btrace_prepare_to_store):
4396 Forward request when generating a core file.
4397 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4398 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4399 to_done_generating_core.
4400
5fff78c4
MM
44012014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4402
4403 * target.h (target_ops) <to_prepare_to_generate_core>
4404 <to_done_generating_core>: New.
4405 (target_prepare_to_generate_core, target_done_generating_core): New.
4406 * target.c (target_prepare_to_generate_core)
4407 (target_done_generating_core): New.
4408 * target-delegates.c: Regenerate.
4409 * gcore.c: (write_gcore_file): Rename to ...
4410 (write_gcore_file_1): ...this.
4411 (write_gcore_file): Call target_prepare_to_generate_core
4412 and target_done_generating_core.
4413
1d1f1ccb
MM
44142014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4415
4416 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4417 * gcore.c (write_gcore_file): Free memory returned from
4418 make_corefile_notes.
4419 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4420 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4421
3343ef86
YQ
44222014-06-24 Yao Qi <yao@codesourcery.com>
4423
4424 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4425 (arm_linux_init_abi): Set skip_trampoline_code with
4426 gdbarch_skip_trampoline_code instead of
4427 find_solib_trampoline_target.
4428
18d18ac8
YQ
44292014-06-24 Yao Qi <yao@codesourcery.com>
4430
4431 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4432 arm_skip_bx_reg returns non-zero.
4433
80d8d390
YQ
44342014-06-24 Yao Qi <yao@codesourcery.com>
4435
4436 * arm-tdep.c (arm_skip_bx_reg): New function.
4437 (arm_skip_stub): Call arm_skip_bx_reg.
4438
6a18a01c
DB
44392014-06-23 Don Breazeal <donb@codesourcery.com>
4440
4441 * MAINTAINERS: Add myself as write-after-approval maintainer.
4442
8e9db26e
PA
44432014-06-23 Pedro Alves <palves@redhat.com>
4444
4445 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4446 DR_CONTROL before setting DR0..DR3.
4447 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4448 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4449 bits of DR_CONTROL related to the debug register slot being
4450 disabled. If all slots are vacant, clear local slowdown as well,
4451 and assert DR_CONTROL is 0.
4452
70afc5b7
SC
44532014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4454
4455 * python/lib/gdb/command/xmethods.py
4456 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4457 current progspace only if the string "progspace" matches LOCUS_RE.
4458
840ed64d
JK
44592014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4460
4461 Fix --with-system-readline with readline-6.3 patch 5.
4462 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4463 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4464 types.
4465
26f2dc30
TT
44662014-06-20 Tom Tromey <tromey@redhat.com>
4467
4468 * dwarf2read.c (dw2_get_real_path): Use correct type in
4469 OBSTACK_CALLOC.
4470 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4471
125f8a3d
GB
44722014-06-20 Gary Benson <gbenson@redhat.com>
4473
4474 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4475 * common/glibc_thread_db.h: Likewise.
4476 * common/i386-cpuid.h: Likewise.
4477 * common/i386-gcc-cpuid.h: Likewise.
4478 * common/linux-btrace.h: Likewise.
4479 * common/linux-osdata.h: Likewise.
4480 * common/linux-procfs.h: Likewise.
4481 * common/linux-ptrace.h: Likewise.
4482 * common/mips-linux-watch.h: Likewise.
4483 * common/linux-btrace.c: Moved to nat.
4484 * common/linux-osdata.c: Likewise.
4485 * common/linux-procfs.c: Likewise.
4486 * common/linux-ptrace.c: Likewise.
4487 * common/mips-linux-watch.c: Likewise.
4488 * nat/gdb_thread_db.h: Moved from common.
4489 * nat/glibc_thread_db.h: Likewise.
4490 * nat/i386-cpuid.h: Likewise.
4491 * nat/i386-gcc-cpuid.h: Likewise.
4492 * nat/linux-btrace.c: Likewise.
4493 * nat/linux-btrace.h: Likewise.
4494 * nat/linux-osdata.c: Likewise.
4495 * nat/linux-osdata.h: Likewise.
4496 * nat/linux-procfs.c: Likewise.
4497 * nat/linux-procfs.h: Likewise.
4498 * nat/linux-ptrace.c: Likewise.
4499 * nat/linux-ptrace.h: Likewise.
4500 * nat/mips-linux-watch.c: Likewise.
4501 * nat/mips-linux-watch.h: Likewise.
4502 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4503 (object file files): Reordered.
4504 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4505 of glibc_thread_db.h.
4506
42995dbd
GB
45072014-06-20 Gary Benson <gbenson@redhat.com>
4508
4509 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4510 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4511 (i386_dr_low): Likewise.
4512 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4513 (i386_dr_low_set_addr): Likewise.
4514 (i386_dr_low_get_addr): Likewise.
4515 (i386_dr_low_can_set_control): Likewise.
4516 (i386_dr_low_set_control): Likewise.
4517 (i386_dr_low_get_control): Likewise.
4518 (i386_dr_low_get_status): Likewise.
4519 (i386_get_debug_register_length): Likewise.
4520 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4521 (i386_dr_low): Likewise.
4522 * nat/i386-dregs.c (i386-low.h): Remove include.
4523 (i386-nat.h): Likewise.
4524 (nat/i386-dregs.h): New include.
4525 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4526 (i386_dr_low_set_addr): Likewise.
4527 (i386_dr_low_get_addr): Likewise.
4528 (i386_dr_low_can_set_control): Likewise.
4529 (i386_dr_low_set_control): Likewise.
4530 (i386_dr_low_get_control): Likewise.
4531 (i386_dr_low_get_status): Likewise.
4532 (i386_get_debug_register_length): Likewise.
4533 (debug_hw_points): Likewise.
4534
3ed9baed
IB
45352014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4536
4537 * Makefile.in (SFILES): Add d-exp.y.
4538 (YYFILES): Add d-exp.c.
4539 (YYOBJ): Add d-exp.o.
4540 (local-maintainer-clean): Delete d-exp.c.
4541 * d-exp.y: New file.
4542 * d-lang.h (d_parse): New declaration.
4543 (d_error): New declaration.
4544 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4545 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4546 PREC_ORDER operators.
4547 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4548
78c164b0
YQ
45492014-06-19 Yao Qi <yao@codesourcery.com>
4550
4551 * gdbthread.h (any_running): Remove the declaration.
4552 * thread.c (any_running): Remove.
4553
f6e29b6e
YQ
45542014-06-19 Yao Qi <yao@codesourcery.com>
4555
4556 * gdbthread.h (struct thread_info) <state>: Change its type to
4557 'enum thread_state'. Update comments.
4558
034f788c
PA
45592014-06-19 Pedro Alves <palves@redhat.com>
4560
4561 * gdbthread.h (ALL_THREADS): Delete.
4562 (ALL_NON_EXITED_THREADS): New macro.
4563 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4564 instead of ALL_THREADS.
4565 * infrun.c (find_thread_needs_step_over)
4566 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4567 instead of ALL_THREADS.
4568 * record-btrace.c (record_btrace_open)
4569 (record_btrace_stop_recording, record_btrace_close)
4570 (record_btrace_is_replaying, record_btrace_resume)
4571 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4572 * remote.c (append_pending_thread_resumptions): Likewise.
4573 * thread.c (thread_apply_all_command): Likewise.
4574
46e33252
GB
45752014-06-19 Gary Benson <gbenson@redhat.com>
4576
4577 * i386-nat.c (i386_stopped_by_watchpoint):
4578 Use i386_dr_stopped_by_watchpoint.
4579 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4580 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4581
3a8ee006
GB
45822014-06-19 Gary Benson <gbenson@redhat.com>
4583
4584 * nat/i386-dregs.c: New file.
4585 * Makefile.in (i386-dregs.o): New rule.
4586 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4587 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4588 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4589 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4590 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4591 * config/i386/go32.mh (NATDEPFILES): Likewise.
4592 * config/i386/linux.mh (NATDEPFILES): Likewise.
4593 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4594 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4595 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4596 * i386-nat.h (debug_hw_points): New declaration.
4597 * i386-nat.c (breakpoint.h): Remove include.
4598 (command.h): Likewise.
4599 (target.h): Likewise.
4600 (gdb_assert.h): Likewise.
4601 (debug_hw_points): Made nonstatic.
4602 (debug_printf): Now in i386-dregs.c.
4603 (TARGET_HAS_DR_LEN_8): Likewise.
4604 (DR_CONTROL_SHIFT): Likewise.
4605 (DR_CONTROL_SIZE): Likewise.
4606 (DR_RW_EXECUTE): Likewise.
4607 (DR_RW_WRITE): Likewise.
4608 (DR_RW_READ): Likewise.
4609 (DR_RW_IORW): Likewise.
4610 (DR_LEN_1): Likewise.
4611 (DR_LEN_2): Likewise.
4612 (DR_LEN_4): Likewise.
4613 (DR_LEN_8): Likewise.
4614 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4615 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4616 (DR_ENABLE_SIZE): Likewise.
4617 (DR_LOCAL_SLOWDOWN): Likewise.
4618 (DR_GLOBAL_SLOWDOWN): Likewise.
4619 (DR_CONTROL_RESERVED): Likewise.
4620 (I386_DR_CONTROL_MASK): Likewise.
4621 (I386_DR_VACANT): Likewise.
4622 (I386_DR_LOCAL_ENABLE): Likewise.
4623 (I386_DR_GLOBAL_ENABLE): Likewise.
4624 (I386_DR_DISABLE): Likewise.
4625 (I386_DR_SET_RW_LEN): Likewise.
4626 (I386_DR_GET_RW_LEN): Likewise.
4627 (I386_DR_WATCH_HIT): Likewise.
4628 (i386_wp_op_t): Likewise.
4629 (i386_show_dr): Likewise.
4630 (i386_length_and_rw_bits): Likewise.
4631 (i386_insert_aligned_watchpoint): Likewise.
4632 (i386_remove_aligned_watchpoint): Likewise.
4633 (i386_handle_nonaligned_watchpoint): Likewise.
4634 (i386_update_inferior_debug_regs): Likewise.
4635 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4636 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4637 (i386_region_ok_for_watchpoint):
4638 Use i386_dr_region_ok_for_watchpoint.
4639 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4640
322a8e06
GB
46412014-06-19 Gary Benson <gbenson@redhat.com>
4642
4643 * i386-nat.c (i386_insert_hw_breakpoint): Use
4644 i386_insert_watchpoint.
4645 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4646
8f26655c
GB
46472014-06-19 Gary Benson <gbenson@redhat.com>
4648
4649 * i386-nat.c (i386_dr_show): Renamed to
4650 i386_show_dr and made static. All uses updated.
4651 (i386_dr_length_and_rw_bits): Renamed to
4652 i386_length_and_rw_bits and made static.
4653 All uses updated.
4654 (i386_dr_insert_aligned_watchpoint): Renamed to
4655 i386_insert_aligned_watchpoint and made static.
4656 All uses updated.
4657 (i386_dr_remove_aligned_watchpoint): Renamed to
4658 i386_remove_aligned_watchpoint and made static.
4659 All uses updated.
4660 (i386_dr_update_inferior_debug_regs): Renamed to
4661 i386_update_inferior_debug_regs and made static.
4662 All uses updated.
4663 * nat/i386-dregs.h (i386_dr_show): Removed.
4664 (i386_dr_length_and_rw_bits): Likewise.
4665 (i386_dr_insert_aligned_watchpoint): Likewise.
4666 (i386_dr_remove_aligned_watchpoint): Likewise.
4667 (i386_dr_update_inferior_debug_regs): Likewise.
4668
992c7d70
GB
46692014-06-19 Gary Benson <gbenson@redhat.com>
4670
4671 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4672 * configure: Regenerate.
4673 * config.in: Likewise.
4674 * main.c (signal.h): New include.
4675 (setup_alternate_signal_stack): New function.
4676 (captured_main): Call the above.
4677 * cp-support.c (signal.h): New include.
4678 (catch_demangler_crashes): New flag.
4679 (SIGJMP_BUF): New define.
4680 (SIGSETJMP): Likewise.
4681 (SIGLONGJMP): Likewise.
4682 (gdb_demangle_jmp_buf): New static global.
4683 (gdb_demangle_attempt_core_dump): Likewise.
4684 (gdb_demangle_signal_handler): New function.
4685 (gdb_demangle): If catch_demangler_crashes is set, install the
4686 above signal handler before calling bfd_demangle, and restore
4687 the original signal handler afterwards. Display the offending
4688 symbol and call demangler_warning the first time a segmentation
4689 fault is caught.
4690 (_initialize_cp_support): New maint set/show command.
4691
eae7090b
GB
46922014-06-19 Gary Benson <gbenson@redhat.com>
4693
4694 * utils.h (resource_limit_kind): New enum.
4695 (can_dump_core): New declaration.
4696 (warn_cant_dump_core): Likewise.
4697 (dump_core): Likewise.
4698 * utils.c (dump_core): Made nonstatic. Added new
4699 parameter "limit_kind".
4700 (can_dump_core): Made nonstatic. Moved printing code to...
4701 (warn_cant_dump_core): New function.
4702 (can_dump_core_warn): Likewise.
4703 (internal_vproblem): Replace calls to can_dump_core with
4704 calls to can_dump_core_warn. Supply new argument to each.
4705
57fcfb1b
GB
47062014-06-19 Gary Benson <gbenson@redhat.com>
4707
4708 * utils.h (demangler_vwarning): New declaration.
4709 (demangler_warning): Likewise.
4710 * utils.c (struct internal_problem)
4711 <user_settable_should_quit>: New field.
4712 <user_settable_should_dump_core>: Likewise
4713 (internal_error_problem): Add values for above new fields.
4714 (internal_warning_problem): Likewise.
4715 (demangler_warning_problem): New static global.
4716 (demangler_vwarning): New function.
4717 (demangler_warning): Likewise.
4718 (add_internal_problem_command): Selectively add commands.
4719 (_initialize_utils): New internal problem command.
4720 * maint.c (maintenance_demangler_warning): New function.
4721 (_initialize_maint_cmds): New command.
4722
17a40b44
TT
47232014-06-18 Tom Tromey <tromey@redhat.com>
4724
4725 * f-valprint.c (info_common_command_for_block): Update.
4726 * symtab.h (struct general_symbol_info) <common_block>: Now
4727 const.
4728
346d1dfe
TT
47292014-06-18 Tom Tromey <tromey@redhat.com>
4730
4731 * symtab.h (struct symtab) <blockvector>: Now const.
4732 * ada-lang.c (ada_add_global_exceptions): Update.
4733 * buildsym.c (augment_type_symtab): Update.
4734 * dwarf2read.c (dw2_lookup_symbol): Update.
4735 * jit.c (finalize_symtab): Update.
4736 * jv-lang.c (add_class_symtab_symbol): Update.
4737 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4738 Update.
4739 * objfiles.c (objfile_relocate1): Update.
4740 * psymtab.c (lookup_symbol_aux_psymtabs)
4741 (maintenance_check_psymtabs): Update.
4742 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4743 Update.
4744 * spu-tdep.c (spu_catch_start): Update.
4745 * symmisc.c (dump_symtab_1): Update.
4746 * symtab.c (lookup_global_symbol_from_objfile)
4747 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4748 (basic_lookup_transparent_type_quick)
4749 (basic_lookup_transparent_type, find_pc_sect_symtab)
4750 (find_pc_sect_line, search_symbols): Update.
4751 * block.c (find_block_in_blockvector): Make "bl" const.
4752 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4753 const.
4754 (blockvector_contains_pc): Make "bv" const.
4755 (block_for_pc_sect): Update.
4756 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4757 (blockvector_contains_pc): Update.
4758 * breakpoint.c (resolve_sal_pc): Update.
4759 * inline-frame.c (block_starting_point_at): Update.
4760
1834676b
TT
47612014-06-18 Tom Tromey <tromey@redhat.com>
4762
4763 * completer.c (complete_line): Make "line_buffer" const.
4764 * completer.h (complete_line): Update.
4765
ac1a991b
TT
47662014-06-18 Tom Tromey <tromey@redhat.com>
4767
4768 * symtab.c (add_macro_name): Remove unneeded cast.
4769
5bc98e52
TT
47702014-06-18 Tom Tromey <tromey@redhat.com>
4771
4772 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4773 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4774
8236def8
TT
47752014-06-18 Tom Tromey <tromey@redhat.com>
4776
4777 * probe.c (info_probes_for_ops): Make "arg" const.
4778 * probe.h (info_probes_for_ops): Update.
4779
3977b71f
TT
47802014-06-18 Tom Tromey <tromey@redhat.com>
4781
4782 * varobj.c (varobj_create): Update.
4783 * valops.c (value_of_this): Update.
4784 * tracepoint.c (add_local_symbols, scope_info): Update.
4785 * symtab.h (struct general_symbol_info) <block>: Now const.
4786 * symtab.c (skip_prologue_sal)
4787 (default_make_symbol_completion_list_break_on)
4788 (skip_prologue_using_sal): Update.
4789 * stack.h (iterate_over_block_locals)
4790 (iterate_over_block_local_vars): Update.
4791 * stack.c (print_frame_args): Update.
4792 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4793 parameter const.
4794 (get_selected_block): Make return type const.
4795 * python/py-frame.c (frapy_block): Update.
4796 * python/py-block.c (gdbpy_block_for_pc): Update.
4797 * p-exp.y (%union) <bval>: Now const.
4798 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4799 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4800 * m2-exp.y (%union) <bval>: Now const.
4801 * linespec.c (get_current_search_block): Make return type const.
4802 (create_sals_line_offset, find_label_symbols): Update.
4803 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4804 Update.
4805 (block_starting_point_at): Make "block" const.
4806 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4807 (check_exception_resume): Update.
4808 * guile/scm-frame.c (gdbscm_frame_block): Update.
4809 * guile/scm-block.c (gdbscm_lookup_block): Update.
4810 * frame.h (get_frame_block): Update.
4811 (get_selected_block): Make return type const.
4812 * frame.c (frame_id_inner): Update.
4813 * f-valprint.c (info_common_command_for_block)
4814 (info_common_command): Update.
4815 * dwarf2loc.c (dwarf2_find_location_expression)
4816 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4817 (locexpr_describe_location_piece): Update.
4818 * c-exp.y (%union) <bval>: Now const.
4819 * breakpoint.c (resolve_sal_pc): Update.
4820 * blockframe.c (get_frame_block):Make return type const.
4821 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4822 (block_innermost_frame): Update.
4823 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4824 (block_for_pc, block_for_pc_sect): Update.
4825 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4826 'pblock' const.
4827 (block_for_pc_sect, block_for_pc): Make return type const.
4828 * ax-gdb.c (gen_expr): Update.
4829 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4830 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4831 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4832 (ada_read_var_value): Update.
4833 * ada-exp.y (struct name_info) <block>: Now const.
4834 (%union): Likewise.
4835 (block_lookup): Constify.
4836
b9228891
GB
48372014-06-18 Gary Benson <gbenson@redhat.com>
4838
4839 * nat/i386-dregs.h: New file.
4840 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4841 * i386-nat.h (i386-dregs.h): New include.
4842 (DR_FIRSTADDR): Now in i386-dregs.h.
4843 (DR_LASTADDR): Likewise.
4844 (DR_NADDR): Likewise.
4845 (DR_STATUS): Likewise.
4846 (DR_CONTROL): Likewise.
4847 (i386_debug_reg_state): Likewise.
4848 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4849
a1aa2221
LM
48502014-06-18 Don Breazeal <donb@codesourcery.com>
4851
4852 * breakpoint.c (set_longjmp_breakpoint): Call
4853 momentary_breakpoint_from_master with additional argument.
4854 (set_longjmp_breakpoint_for_call_dummy): Call
4855 momentary_breakpoint_from_master with additional argument.
4856 (set_std_terminate_breakpoint): Call
4857 momentary_breakpoint_from_master with additional argument.
4858 (momentary_breakpoint_from_master): Add argument to function
4859 definition and use it to initialize structure member flag.
74228e77 4860 (clone_momentary_breakpoint): Call
a1aa2221
LM
4861 momentary_breakpoint_from_master with additional argument.
4862 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4863 member flags set in momentary_breakpoint_from_master.
4864
4be83cc2
GB
48652014-06-18 Gary Benson <gbenson@redhat.com>
4866
4867 * i386-nat.c (i386_show_dr): Renamed to
4868 i386_dr_show and made nonstatic. All uses updated.
4869 (i386_length_and_rw_bits): Renamed to
4870 i386_dr_length_and_rw_bits and made nonstatic.
4871 All uses updated.
4872 (i386_insert_aligned_watchpoint): Renamed to
4873 i386_dr_insert_aligned_watchpoint and made nonstatic.
4874 All uses updated.
4875 (i386_remove_aligned_watchpoint): Renamed to
4876 i386_dr_remove_aligned_watchpoint and made nonstatic.
4877 All uses updated.
4878 (i386_update_inferior_debug_regs): Renamed to
4879 i386_dr_update_inferior_debug_regs and made nonstatic.
4880 All uses updated.
4881
131aa0d4
GB
48822014-06-18 Gary Benson <gbenson@redhat.com>
4883
4884 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4885 (i386_dr_low_can_set_control): Likewise.
4886 (i386_dr_low_set_addr): Likewise.
4887 (i386_dr_low_set_control): Likewise.
4888 (i386_dr_low_get_addr): Likewise.
4889 (i386_dr_low_get_status): Likewise.
4890 (i386_dr_low_get_control): Likewise.
4891 (i386_insert_aligned_watchpoint): Use new macros.
4892 (i386_update_inferior_debug_regs): Likewise.
4893 (i386_stopped_data_address): Likewise.
4894
d9305f7f
GB
48952014-06-18 Gary Benson <gbenson@redhat.com>
4896
4897 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4898 New parameter. All uses updated.
4899
ea008da4
GB
49002014-06-18 Gary Benson <gbenson@redhat.com>
4901
4902 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4903 All uses updated.
4904
1b6d4134
GB
49052014-06-18 Gary Benson <gbenson@redhat.com>
4906
4907 * i386-nat.c (debug_printf): New macro.
4908 (i386_get_debug_register_length): Likewise.
4909 (TARGET_HAS_DR_LEN_8): Use above macro.
4910 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4911 and printf_unfiltered. Use phex to format values.
4912
9b4550ef
GB
49132014-06-18 Gary Benson <gbenson@redhat.com>
4914
4915 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4916 Make const.
4917
6e62758f
GB
49182014-06-18 Gary Benson <gbenson@redhat.com>
4919
4920 * i386-nat.c: Comment changes.
4921
51c79e94
GB
49222014-06-18 Gary Benson <gbenson@redhat.com>
4923
4924 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4925
3e11889a
GB
49262014-06-18 Gary Benson <gbenson@redhat.com>
4927
4928 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4929 (i386_insert_aligned_watchpoint): Likewise.
4930 (i386_remove_aligned_watchpoint): Likewise.
4931 (i386_handle_nonaligned_watchpoint): Likewise.
4932
fc6e2f03
GB
49332014-06-18 Gary Benson <gbenson@redhat.com>
4934
4935 * i386-nat.c: Whitespace changes.
4936
2afe7d50
SB
49372014-06-17 Samuel Bronson <naesten@gmail.com>
4938
4939 * MAINTAINERS: Update Roland McGrath's email address.
4940 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4941 Red Hat a while ago, and giving me a current address.
2afe7d50 4942
3bca49ee
TT
49432014-06-17 Tom Tromey <tromey@redhat.com>
4944
4945 * utils.h (savestring): Remove declaration.
4946
6e366df1
TT
49472014-06-17 Tom Tromey <tromey@redhat.com>
4948
4949 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4950
6be47f0c
KS
49512014-06-16 Keith Seitz <keiths@redhat.com>
4952
4953 PR mi/15863
4954 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4955 to update the varobj if inferior_ptid is null_ptid.
4956
7bc112c1
TT
49572014-06-16 Tom Tromey <tromey@redhat.com>
4958
4959 * target.h (struct target_ops) <to_info_proc>: Make parameter
4960 const.
4961 (target_info_proc): Update.
4962 * target.c (target_info_proc): Make "args" const.
4963 * procfs.c (procfs_info_proc): Update.
4964 * linux-tdep.c (linux_info_proc): Update.
4965 (linux_core_info_proc_mappings): Make "args" const.
4966 (linux_core_info_proc): Update.
4967 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4968 * gdbarch.c: Rebuild.
4969 * gdbarch.h: Rebuild.
4970 * corelow.c (core_info_proc): Update.
4971
fee354ee
TT
49722014-06-16 Tom Tromey <tromey@redhat.com>
4973
4974 * target.h (struct target_ops) <to_disconnect>: Make parameter
4975 const.
4976 (target_disconnect): Update.
4977 * target.c (target_disconnect): Make "args" const.
4978 * target-delegates.c: Rebuild.
4979 * remote.c (remote_disconnect): Update.
4980 * record.h (record_disconnect): Update.
4981 * record.c (record_disconnect): Update.
4982 * inf-child.c (inf_child_disconnect): Update.
4983
a30bf1f1
TT
49842014-06-16 Tom Tromey <tromey@redhat.com>
4985
4986 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4987 * target.c (debug_to_rcmd, default_rcmd): Update.
4988 * target-delegates.c: Rebuild.
4989 * remote.c (remote_rcmd): Update.
4990 * monitor.c (monitor_rcmd): Update.
4991
d03de421
PA
49922014-06-16 Pedro Alves <palves@redhat.com>
4993
4994 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4995 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4996 have OBJF_SHARED set.
4997 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4998 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4999 instead of OBJF_USERLOADED.
5000 * objfiles.h (OBJF_SHARED): Update comment.
5001 (userloaded_objfile_contains_address_p): Rename to ...
5002 (shared_objfile_contains_address_p): ... this, and update
5003 comments.
5004 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5005 new objfile.
5006 (remove_symbol_file_command): Skip objfiles that don't have
5007 OBJF_SHARED set.
5008
99f4262f
TT
50092014-06-16 Tom Tromey <tromey@redhat.com>
5010
5011 * minsyms.h (prim_record_minimal_symbol)
5012 (prim_record_minimal_symbol_and_info): Update comments.
5013
97d66cc6
EZ
50142014-06-14 Eli Zaretskii <eliz@gnu.org>
5015
5016 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5017 or --without-guile, according to how GDB was built.
5018
635c7e8a
TT
50192014-06-13 Tom Tromey <tromey@redhat.com>
5020
5021 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5022 to help_list.
5023 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5024 to help_list.
5025 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5026 help_list.
5027 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5028 help_list.Pass all_commands, not -1, to help_list.
5029 * cli/cli-dump.c (dump_command, append_command)
5030 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5031 (binary_dump_command, binary_append_command): Pass all_commands,
5032 not -1, to help_list.
5033 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5034 -1, to help_list.
5035 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5036 -1, to help_list.
5037 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5038 help_list.
5039 * top.c (set_history): Pass all_commands, not -1, to help_list.
5040 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5041 all_commands, not -1, to help_list.
5042 * symfile.c (overlay_command): Pass all_commands, not -1, to
5043 help_list.
5044 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5045 help_list.
5046 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5047 help_list.
5048 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5049 -1, to help_list.
5050 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5051 not -1, to help_list.
5052 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5053 not -1, to help_list.
5054 * maint.c (maintenance_command, maintenance_info_command)
5055 (maintenance_print_command, maintenance_set_cmd): Pass
5056 all_commands, not -1, to help_list.
5057 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5058 help_list.
5059 * language.c (set_check): Pass all_commands, not -1, to help_list.
5060 * infcmd.c (unset_command): Pass all_commands, not -1, to
5061 help_list.
5062 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5063 help_list.
5064 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5065 help_list.
5066 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5067 help_list.
5068 * breakpoint.c (save_command): Pass all_commands, not -1, to
5069 help_list.
5070 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5071 all_commands, not -1, to help_list.
5072
b94ade42
PL
50732014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5074
5075 * regcache.c (struct register_to_invalidate): New structure.
5076 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5077 functions.
5078 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5079
31f628ae
YQ
50802014-06-12 Yao Qi <yao@codesourcery.com>
5081
5082 * varobj.c (varobj_get_num_children): Call
5083 varobj_is_dynamic_p.
5084 (varobj_list_children): Likewise.
5085 (varobj_update): Likewise. Update comments.
5086
cde5ef40
YQ
50872014-06-12 Yao Qi <yao@codesourcery.com>
5088
5089 * varobj.c (varobj_pretty_printed_p): Rename to ...
5090 (varobj_is_dynamic_p): ... this. New function.
5091 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5092 (varobj_is_dynamic_p): Declare.
5093 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5094 (mi_print_value_p, varobj_update_one): Likewise.
5095
576ea091
YQ
50962014-06-12 Pedro Alves <pedro@codesourcery.com>
5097 Yao Qi <yao@codesourcery.com>
5098
5099 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5100 (varobj_get_iterator): Wrap up code for pretty-printer by
5101 "#if HAVE_PYTHON" and "#endif".
5102 (update_dynamic_varobj_children): Likewise.
5103
827f100c
YQ
51042014-06-12 Pedro Alves <pedro@codesourcery.com>
5105 Yao Qi <yao@codesourcery.com>
5106
5107 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5108 gdb_python_initialized is false. Move some code from varobj.c.
5109 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5110 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5111 (struct varobj_item): Moved to varobj-iter.h".
5112 (varobj_clear_saved_item): New function.
5113 (update_dynamic_varobj_children): Move python-related code to
5114 py-varobj.c.
5115 (free_variable): Call varobj_clear_saved_item and
5116 varobj_iter_delete.
5117
e5250216
YQ
51182014-06-12 Pedro Alves <pedro@codesourcery.com>
5119 Yao Qi <yao@codesourcery.com>
5120
5121 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5122 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5123 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5124 (py-varobj.o): New rule.
5125 * python/py-varobj.c: New file.
5126 * python/python-internal.h (py_varobj_get_iterator): Declare.
5127 * varobj-iter.h: New file.
5128 * varobj.c: Include "varobj-iter.h"
5129 (struct varobj) <child_iter>: Change its type from "PyObject *"
5130 to "struct varobj_iter *".
5131 <saved_item>: Likewise.
5132 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5133 [HAVE_PYTHON] (varobj_get_iterator): New function.
5134 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5135 python-specific code to python/py-varobj.c.
5136 (install_visualizer): Call varobj_iter_delete instead of
5137 Py_XDECREF.
5138 * varobj.h (varobj_ensure_python_env): Declare.
5139
5a2e0d6e
YQ
51402014-06-12 Yao Qi <yao@codesourcery.com>
5141
5142 * varobj.c (struct varobj_item): New structure.
5143 (create_child_with_value): Update declaration.
5144 (varobj_add_child): Replace arguments 'name' and 'value' with
5145 'item'. All callers updated.
5146 (install_dynamic_child): Likewise.
5147 (update_dynamic_varobj_children): Likewise.
5148 (varobj_add_child): Likewise.
5149 (create_child_with_value): Likewise.
5150
919b9a93
JB
51512014-06-11 Joel Brobecker <brobecker@adacore.com>
5152
5153 * NEWS: Create a new section for the next release branch.
5154 Rename the section of the current branch, now that it has
5155 been cut.
5156
71a55bdf
JB
51572014-06-11 Joel Brobecker <brobecker@adacore.com>
5158
5159 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5160 * version.in: Bump version to 7.8.50.DATE-cvs.
5161
364fe1f7
PA
51622014-06-11 Pedro Alves <palves@redhat.com>
5163
5164 PR remote/17028
5165 * ser-mingw.c (net_windows_socket_check_pending): New function.
5166 (net_windows_select_thread): Ignore spurious wakeups. Use
5167 net_windows_socket_check_pending.
5168 (net_windows_wait_handle): Check for pending events with
5169 ioctlsocket, through net_windows_socket_check_pending, instead of
5170 checking the socket's event.
5171
5a6c7709
SC
51722014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5173
5174 * python/python-internal.h (gdb_PyObject_GetAttrString)
5175 (gdb_PyObject_HasAttrString): New inline function definitions.
5176 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5177 char * of the second argument to PyObject_GetAttrString.
74228e77 5178
0e58ee40
JB
51792014-06-10 Joel Brobecker <brobecker@adacore.com>
5180
5181 * serial.c (serial_write): Fix index of character to be printed
5182 in call to serial_logchar when serial debug traces are enabled.
5183
d190df30
JB
51842014-06-10 Joel Brobecker <brobecker@adacore.com>
5185
5186 * gdbtypes (resolve_dynamic_range): Add function description.
5187
b4b01d36
PA
51882014-06-09 Pedro Alves <palves@redhat.com>
5189
5190 * linux-nat.c (linux_child_follow_fork): Initialize status with
5191 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5192 inner block. Only pass the signal to PTRACE_DETACH if in pass
5193 state.
5194
3657956b
GB
51952014-06-09 Gary Benson <gbenson@redhat.com>
5196
5197 * common/signals.c (gdb_signal_from_host): Reorder to separate
5198 the always-available ANSI-standard signals from the signals that
5199 require checking.
5200 (do_gdb_signal_to_host): Likewise.
5201 * proc-events.c (signal_table): Likewise.
5202
c077881a
HZ
52032014-06-08 Hui Zhu <hui@codesourcery.com>
5204
5205 * common/linux-ptrace.c (linux_disable_event_reporting): New
5206 function.
5207 * common/linux-ptrace.h (linux_disable_event_reporting): New
5208 declaration.
5209 * linux-nat.c (linux_child_follow_fork): Do a single step before
5210 detach.
5211
4186eb54
KS
52122014-06-07 Keith Seitz <keiths@redhat.com>
5213
5214 Revert:
5215 PR c++/16253
5216 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5217 from symbol_matches_domain in symtab.c. All local callers
5218 of symbol_matches_domain updated.
5219 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5220 search STRUCT_DOMAIN.
5221 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5222 independently. standard_lookup will do that automatically.
5223 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5224 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5225 (cp_lookup_symbol_in_namespace): Likewise.
5226 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5227 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5228 may return a STRUCT_DOMAIN match.
5229 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5230 * cp-support.c: Include language.h.
5231 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5232 VAR_DOMAIN.
5233 * psymtab.c (match_partial_symbol): Compare the requested
5234 domain with the symbol's domain directly.
5235 (lookup_partial_symbol): Likewise.
5236 * symtab.c (lookup_symbol_in_language): Explain when/why
5237 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5238 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5239 appropriate languages.
5240 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5241 and moved to ada-lang.c
5242 (lookup_block_symbol): Explain that this function only returns
5243 symbol matching the requested DOMAIN.
5244 Compare the requested domain with the symbol's domain directly.
5245 (iterate_over_symbols): Compare the requested domain with the
5246 symbol's domain directly.
5247 * symtab.h (symbol_matches_domain): Remove.
5248
25326a28 52492014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5250
5251 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5252 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5253 (gdbscm_guile_version_is_at_least): Declare.
5254 (gdbscm_scm_string_to_int): Declare.
5255 * guile/guile.c (gdbscm_guile_major_version): New global.
5256 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5257 (guile_datadir): New static global.
5258 (gdbscm_guile_data_directory): New function.
5259 (initialize_scheme_side): Update.
5260 (misc_guile_functions): Add guile-data-directory.
5261 (initialize_gdb_module): Fetch guile version number.
5262 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5263 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5264 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5265 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5266 comments.
5267 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5268 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5269 * guile/scm-value.c (gdbscm_value_to_string): Only call
5270 scm_port_conversion_strategy if Guile version >= 2.0.6.
5271
0a770bb2 52722014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5273
5274 * main.c (print_gdb_help): Add -q and --silent.
5275
73ba372c
GB
52762014-06-06 Gary Benson <gbenson@redhat.com>
5277
5278 * common/signals.c: Remove preprocessor conditionals for
5279 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5280 SIGSEGV and SIGTERM.
5281 * proc-events.c: Likewise.
5282
c33b2f12
MM
52832014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5284
5285 * symfile.c (symfile_free_objfile): Remove restriction to
5286 OBJF_USERLOADED.
5287 * symfile-mem.c (symbol_file_add_from_memory): Call
5288 add_target_sections_of_objfile.
5289
fb934770
LC
52902014-06-05 Ludovic Courtès <ludo@gnu.org>
5291
5292 * guile/scm-value.c (gdbscm_history_append_x): Use
5293 'vlscm_get_value_smob_arg_unsafe' instead of
5294 'vlscm_scm_to_value'.
5295
6ef284bd
SM
52962014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5297
5298 PR mi/15806
5299 * utils.c (printchar): Don't escape at all if quoter is NUL.
5300 Update function documentation to clarify effect of parameter
5301 QUOTER.
5302 * remote.c (escape_buffer): Pass '\\' as the quoter to
5303 fputstrn_unfiltered.
5304 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5305 generate the output.
5306 (mi_solib_unloaded): Same.
5307
270c9937
JB
53082014-06-05 Joel Brobecker <brobecker@adacore.com>
5309
5310 * development.sh: Delete.
5311 * Makefile.in (config.status): Adjust dependency on development.sh.
5312 * configure.ac: Adjust development.sh source call.
5313 * configure: Regenerate.
5314
16f691fb
DE
53152014-06-04 Doug Evans <xdje42@gmail.com>
5316
5317 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5318 is_scheme_bkpt, spec.
5319 (bpscm_make_breakpoint_smob): Initialize new members.
5320 (gdbscm_create_breakpoint_x): Split into two ...
5321 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5322 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5323 (scheme_function breakpoint_functions): Update.
5324 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5325 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5326 register-breakpoint!.
5327
ef7cab6b
JB
53282014-06-04 Joel Brobecker <brobecker@adacorer.com>
5329
5330 PR server/17023
5331 * mem-break.c (z_type_supported): Return zero if
5332 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5333
012370f6
TT
53342014-06-04 Tom Tromey <tromey@redhat.com>
5335
5336 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5337 value_from_contents_and_address_unresolved.
5338 (ada_template_to_fixed_record_type_1): Likewise.
5339 (ada_which_variant_applies): Likewise.
5340 * value.h (value_from_contents_and_address_unresolved): Declare.
5341 * value.c (value_from_contents_and_address_unresolved): New
5342 function.
5343 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5344 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5345 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5346
92e2a17f
TT
53472014-06-04 Tom Tromey <tromey@redhat.com>
5348
5349 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5350
c0939df1
TT
53512014-06-04 Tom Tromey <tromey@redhat.com>
5352
5353 * procfs.c (procfs_attach): Make "args" const.
5354 * windows-nat.c (windows_attach): Make "args" const.
5355 * nto-procfs.c (procfs_attach): Make "args" const.
5356 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5357 * go32-nat.c (go32_attach): Make "args" const.
5358 * gnu-nat.c (gnu_attach): Make "args" const.
5359 * darwin-nat.c (darwin_attach): Make "args" const.
5360 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5361 * linux-nat.c (linux_nat_attach): Make "args" const.
5362 * remote.c (extended_remote_attach_1, extended_remote_attach):
5363 Make "args" const.
5364 * target.h (struct target_ops) <to_attach>: Make "args" const.
5365 (find_default_attach): Likewise.
5366 * utils.c (parse_pid_to_attach): Make "args" const.
5367 * utils.h (parse_pid_to_attach): Update.
5368
8eaff7cd
TT
53692014-06-04 Tom Tromey <tromey@redhat.com>
5370
5371 * target-delegates.c: Rebuild.
5372 * target.c (default_thread_address_space): New function.
5373 (target_thread_address_space): Simplify.
5374 * target.h (struct target_ops) <to_thread_address_space>: Add
5375 TARGET_DEFAULT_FUNC.
5376
1913f160
DE
53772014-06-04 Doug Evans <xdje42@gmail.com>
5378
5379 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5380
70ad5bff
MM
53812014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5382
5383 * record-btrace.c: Include event-loop.h and inf-loop.h.
5384 (record_btrace_resume_exec_dir)
5385 (record_btrace_async_inferior_event_handler)
5386 (record_btrace_handle_async_inferior_event): New.
5387 (record_btrace_open): Create async event handler.
5388 (record_btrace_close): Delete async event handler.
5389 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5390 Mark async event handler.
5391 (record_btrace_execution_direction): New.
5392 (init_record_btrace_ops): Initialize to_execution_direction.
5393
b6210538
DE
53942014-06-03 Doug Evans <xdje42@gmail.com>
5395
5396 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5397 (gdbscm_make_parameter): Ditto.
5398
a5b1fd27
DE
53992014-06-03 Doug Evans <dje@google.com>
5400
5401 * exec.c (exec_close_1): Call clear_section_table instead of
5402 resize_section_table.
5403 (clear_section_table): New function.
5404 (resize_section_table): Make static. Rename arg num_added to
5405 adjustment.
5406 * exec.h (clear_section_table): Declare.
5407 (resize_section_table): Delete.
5408 * progspace.c (release_program_space): Call clear_section_table
5409 instead of resize_section_table.
5410
0c6e92a5
SC
54112014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5412
5413 * NEWS (Python Scripting): Add entry about the new xmethods
5414 feature.
5415
883964a7
SC
54162014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5417
5418 * python/py-xmethods.c: New file.
5419 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5420 (objfpy_dealloc): XDECREF on the new xmethods field.
5421 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5422 field.
5423 (objfpy_get_xmethods): New function.
5424 (objfile_getset): New entry 'xmethods'.
5425 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5426 (pspy_dealloc): XDECREF on the new xmethods field.
5427 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5428 field.
5429 (pspy_get_xmethods): New function.
5430 (pspace_getset): New entry 'xmethods'.
5431 * python/python-internal.h: Add declarations for new functions.
5432 * python/python.c (_initialize_python): Invoke
5433 gdbpy_initialize_xmethods.
5434 * python/lib/gdb/__init__.py (xmethods): New
5435 attribute.
5436 * python/lib/gdb/xmethod.py: New file.
5437 * python/lib/gdb/command/xmethods.py: New file.
5438
58992dc5
SC
54392014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5440
5441 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5442 best match method returned by find_overload_match is an xmethod.
5443 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5444 the best matching operator returned by find_overload_match is an
5445 xmethod.
5446 * valops.c: #include "extension.h".
5447 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5448 Return void. The list of matching source methods is returned in
5449 "fn_list" and a vector of matching debug method workers is
5450 returned in "xm_worker_vec". Update all callers.
5451 (value_find_oload_method_list): Likewise.
5452 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5453 non-NULL, then the index of the best matching method in this
5454 vector is returned. Update all callers.
5455 (find_overload_match): Include xmethods while performing overload
5456 resolution.
5457
e81e7f5e
SC
54582014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5459
5460 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5461 * extension-priv.h (struct extension_language_ops): Add the
5462 xmethod interface.
5463 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5464 get_matching_xmethod_workers, get_xmethod_argtypes,
5465 invoke_xmethod, free_xmethod_worker,
5466 free_xmethod_worker_vec): New functions.
5467 * extension.h: #include "common/vec.h".
5468 New function declarations.
5469 (struct xmethod_worker): New struct.
5470 (VEC (xmethod_worker_ptr)): New vector type.
5471 (xmethod_worker_ptr): New typedef.
5472 (xmethod_worker_vec): Likewise.
5473 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5474 builtin_type.
5475 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5476 (struct builtin_type): New field "xmethod".
5477 * valarith.c (value_ptradd): Assert that the value argument is not
5478 lval_xcallable.
5479 * valops.c (value_must_coerce_to_target): Return 0 for
5480 lval_xcallable values.
5481 * value.c (struct value): New field XM_WORKER in the field
5482 LOCATION.
5483 (value_address, value_raw_address): Return 0 for lval_xcallable
5484 values.
5485 (set_value_address): Assert that the value is not an
5486 lval_xcallable.
5487 (value_free): Free the associated xmethod worker when freeing
5488 lval_xcallable values.
5489 (set_value_component_location): Assert that the WHOLE value is not
5490 lval_xcallable.
5491 (value_of_xmethod, call_xmethod): New functions.
5492 * value.h: Declare "struct xmethod_worker".
5493 Declare new functions value_of_xmethod, call_xmethod.
5494
ef370185
JB
54952014-06-03 Joel Brobecker <brobecker@adacore.com>
5496 Pedro Alves <palves@redhat.com>
5497
5498 PR breakpoints/17000
5499 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5500 New function, extracted from software_breakpoint_inserted_here_p.
5501 (software_breakpoint_inserted_here_p): Replace factored out code
5502 by call to find_non_raw_software_breakpoint_inserted_here.
5503 (bp_target_info_copy_insertion_state): New function.
5504 (bkpt_insert_location): Handle the case of a single-step
5505 breakpoint already inserted at the same address.
5506 (bkpt_remove_location): Handle the case of a single-step
5507 breakpoint still inserted at the same address.
5508 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5509 breakpoint already inserted at the same address.
5510 (deprecated_remove_raw_breakpoint): Handle the case of a
5511 non-raw breakpoint still inserted at the same address.
5512 (find_single_step_breakpoint): New function, extracted from
5513 single_step_breakpoint_inserted_here_p.
5514 (find_single_step_breakpoint): New function,
5515 factored out from single_step_breakpoint_inserted_here_p.
5516 (single_step_breakpoint_inserted_here_p): Reimplement.
5517
1e2ccb61
BM
55182014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5519
5520 Pushed by Joel Brobecker <brobecker@adacore.com>
5521 * source.c (show_substitute_path_command): Fix display of matching
5522 substitution rules.
5523
d3448d85
GB
55242014-06-03 Gary Benson <gbenson@redhat.com>
5525
5526 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5527
06eb1586
DE
55282014-06-02 Doug Evans <xdje42@gmail.com>
5529
5530 Add parameter support for Guile.
5531 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5532 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5533 (scm-param.o): New rule.
5534 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5535 (gdbscm_misc_error): Declare.
5536 (gdbscm_canonicalize_command_name): Declare.
5537 (gdbscm_scm_to_host_string): Declare.
5538 (gdbscm_scm_from_host_string): Declare.
5539 (gdbscm_initialize_parameters): Declare.
5540 * guile/guile.c (initialize_gdb_module): Call
5541 gdbscm_initialize_parameters.
5542 * guile/lib/gdb.scm: Export parameter symbols.
5543 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5544 cmdscm_canonicalize_name and made public. All callers updated.
5545 * guile/scm-exception.c (gdbscm_misc_error): New function.
5546 * guile/scm-param.c: New file.
5547 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5548 (gdbscm_scm_to_host_string): New function.
5549 (gdbscm_scm_from_host_string): New function.
5550 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5551
e698b8c4
DE
55522014-06-02 Doug Evans <xdje42@gmail.com>
5553
5554 Add command support for Guile.
5555 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5556 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5557 (scm-cmd.o): New rule.
5558 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5559 (gdbscm_user_error_p): Declare.
5560 (gdbscm_parse_command_name): Declare.
5561 (gdbscm_valid_command_class_p): Declare.
5562 (gdbscm_initialize_commands): Declare.
5563 * guile/guile.c (initialize_gdb_module): Call
5564 gdbscm_initialize_commands.
5565 * guile/lib/gdb.scm: Export command symbols.
5566 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5567 (throw-user-error): New function.
5568 * guile/scm-cmd.c: New file.
5569 * guile/scm-exception.c (user_error_symbol): New static global.
5570 (gdbscm_user_error_p): New function.
5571 (gdbscm_initialize_exceptions): Set user_error_symbol.
5572 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5573
fb1f94b0
PM
55742014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5575
5576 * top.c (command_loop): Handle comments here...
5577 (command_line_input): ... not here.
5578
ded03782
DE
55792014-06-02 Doug Evans <xdje42@gmail.com>
5580
5581 Add progspace support for Guile.
5582 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5583 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5584 (scm-progspace.o): New rule.
5585 * guile/guile-internal.h (pspace_smob): New typedef.
5586 (psscm_pspace_smob_pretty_printers): Declare.
5587 (psscm_pspace_smob_from_pspace): Declare.
5588 (psscm_scm_from_pspace): Declare.
5589 * guile/guile.c (initialize_gdb_module): Call
5590 gdbscm_initialize_pspaces.
5591 * guile/lib/gdb.scm: Export progspace symbols.
5592 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5593 support.
5594 (append-pretty-printer!): Ditto.
5595 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5596 Implement.
5597 * guile/scm-progspace.c: New file.
5598
397998fc
AM
55992014-06-03 Alan Modra <amodra@gmail.com>
5600
5601 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5602 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5603
6aa5f3a6
DE
56042014-06-02 Doug Evans <dje@google.com>
5605
5606 Add support for skeletonless type units.
5607 * dwarf2read.c (struct dwarf2_per_objfile): New member
5608 n_allocated_type_units.
5609 (struct dwarf2_per_objfile) <tu_stats>: New member
5610 nr_all_type_units_reallocs.
5611 (create_signatured_type_table_from_index): Initialize
5612 n_allocated_type_units
5613 (create_all_type_units): Ditto.
5614 (add_type_unit): Move up in file. New arg slot.
5615 All callers updated. Increase space for all_type_units more
5616 efficiently.
5617 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5618 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5619 (lookup_dwp_signatured_type): Ditto.
5620 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5621 All callers updated.
5622 (build_type_psymtabs_1): Leave type_unit_groups as
5623 NULL if no TUs present.
5624 (print_tu_stats): New function.
5625 (process_skeletonless_type_unit): New function.
5626 (process_dwo_file_for_skeletonless_type_units): New
5627 function.
5628 (process_skeletonless_type_units): New function.
5629 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5630 Call print tu_stats if debugging enabled.
5631
41fac0cf
PA
56322014-06-02 Pedro Alves <palves@redhat.com>
5633
5634 * breakpoint.c (build_target_command_list): Don't build a command
5635 list if we have any duplicate location that isn't a dprintf.
5636
cd1608cc
PA
56372014-06-02 Pedro Alves <palves@redhat.com>
5638
5639 * breakpoint.c (dprintf_breakpoint_hit): New function.
5640 (initialize_breakpoint_ops): Install it as dprintf's
5641 breakpoint_hit method.
5642
486ef3b9
JB
56432014-06-02 Joel Brobecker <brobecker@adacore.com>
5644
5645 * source.c (substitute_path_rule_matches): Simplify using
5646 filename_ncmp instead of FILENAME_CMP.
5647
230cd560
JB
56482014-06-02 Joel Brobecker <brobecker@adacore.com>
5649
5650 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5651
16954d5d
LC
56522014-06-01 Ludovic Courtès <ludo@gnu.org>
5653
5654 * configure.ac: When Guile is available, check for the
5655 availability of 'scm_new_smob'.
5656 * configure, config.h.in: Regenerate.
5657 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5658 function.
5659
53e8a631
AB
56602014-05-30 Andrew Burgess <aburgess@broadcom.com>
5661
5662 * frame.c (struct frame_info): Add stop_string field.
5663 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5664 (get_prev_frame_always): Old content moved into
5665 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5666 TRY_CATCH, handle MEMORY_ERROR exceptions.
5667 (frame_stop_reason_string): New function definition.
5668 * frame.h (unwind_stop_reason_to_string): Extend comment to
5669 mention frame_stop_reason_string.
5670 (frame_stop_reason_string): New function declaration.
5671 * stack.c (frame_info): Switch to frame_stop_reason_string.
5672 (backtrace_command_1): Switch to frame_stop_reason_string.
5673 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5674 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5675 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5676
70e38b8e
AB
56772014-05-30 Andrew Burgess <aburgess@broadcom.com>
5678
5679 * frame.c (frame_stop_reason_string): Rename to ...
5680 (unwind_stop_reason_to_string): this.
5681 * frame.h (frame_stop_reason_string): Rename to ...
5682 (unwind_stop_reason_to_string): this.
5683 * stack.c (frame_info): Update call to frame_stop_reason_string.
5684 (backtrace_command_1): Likewise.
5685 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5686 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5687
938f0e2f
AB
56882014-05-30 Andrew Burgess <aburgess@broadcom.com>
5689
5690 * frame.c (remove_prev_frame): New function.
5691 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5692 remove_prev_frame.
5693
a09dd441
PA
56942014-05-29 Pedro Alves <palves@redhat.com>
5695
5696 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5697 and make it const. When a single-step decays to a continue,
5698 clear 'step', not 'hw_step'. Pass whether the caller wanted
5699 to step to user_visible_resume_ptid, not what we ask the
5700 target to do.
5701
bdc36728
PA
57022014-05-29 Pedro Alves <palves@redhat.com>
5703
5704 * infrun.c (process_event_stop_test, handle_step_into_function)
5705 (handle_step_into_function_backward): Adjust.
5706 Don't set the even thread's stop_step and call stop_waiting before
5707 calling end_stepping_range. Instead do that ...
5708 (end_stepping_range): ... here. Take an ecs pointer parameter.
5709
22bcd14b
PA
57102014-05-29 Pedro Alves <palves@redhat.com>
5711
5712 * infrun.c (stop_stepping): Rename to ...
5713 (stop_waiting): ... this.
5714 (proceed): Update comment.
5715 (process_event_stop_test, handle_inferior_event)
5716 (handle_signal_stop, handle_step_into_function)
5717 (handle_step_into_function_backward): Update.
5718
4ae57c05
PA
57192014-05-29 Pedro Alves <palves@redhat.com>
5720
5721 * infcall.c (run_inferior_call): Don't check whether the current
5722 thread is running after the proceed call.
5723
329ea579
PA
57242014-05-29 Pedro Alves <palves@redhat.com>
5725 Tom Tromey <tromey@redhat.com>
5726
5727 * NEWS: Mention "maint set target-async", "set mi-async", and that
5728 background execution commands are now always available.
5729 * target.h (target_async_permitted): Update comment.
5730 * target.c (target_async_permitted, target_async_permitted_1):
5731 Default to 1.
5732 (set_target_async_command): Rename to ...
5733 (maint_set_target_async_command): ... this.
5734 (show_target_async_command): Rename to ...
5735 (maint_show_target_async_command): ... this.
5736 (_initialize_target): Adjust.
5737 * infcmd.c (prepare_execution_command): Make extern.
5738 * inferior.h (prepare_execution_command): Declare.
5739 * infrun.c (set_observer_mode): Leave target async alone.
5740 * mi/mi-interp.c (mi_interpreter_init): Install
5741 mi_on_sync_execution_done as sync_execution_done observer.
5742 (mi_on_sync_execution_done): New function.
5743 (mi_execute_command_input_handler): Don't print the prompt if we
5744 just started a synchronous command with an async target.
5745 (mi_on_resume): Check sync_execution before printing prompt.
5746 * mi/mi-main.h (mi_async_p): Declare.
5747 * mi/mi-main.c: Include gdbcmd.h.
5748 (mi_async_p): New function.
5749 (mi_async, mi_async_1): New globals.
5750 (set_mi_async_command, show_mi_async_command, mi_async): New
5751 functions.
5752 (exec_continue): Call prepare_execution_command.
5753 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5754 (mi_execute_async_cli_command): Use mi_async_p.
5755 (_initialize_mi_main): Install "set mi-async". Make
5756 "target-async" a deprecated alias.
5757
92bcb5f9
PA
57582014-05-29 Pedro Alves <palves@redhat.com>
5759
5760 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5761 (_initialize_cli_interp): Adjust.
5762 * event-loop.c: Include "observer.h".
5763 (start_event_loop): Notify 'command_error' observers instead of
5764 calling display_gdb_prompt. Remove FIXME comment.
5765 * event-top.c (display_gdb_prompt): Remove call into the
5766 interpreters.
5767 * inf-loop.c: Include "observer.h".
5768 (inferior_event_handler): Notify 'command_error' observers instead
5769 of calling display_gdb_prompt.
5770 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5771 observers instead of calling display_gdb_prompt.
5772 * interps.c (interp_set): Don't call display_gdb_prompt.
5773 (current_interp_display_prompt_p): Delete.
5774 * interps.h (interp_prompt_p): Delete declaration.
5775 (interp_prompt_p_ftype): Delete.
5776 (struct interp_procs) <prompt_proc_p>: Delete field.
5777 (current_interp_display_prompt_p): Delete declaration.
5778 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5779 (_initialize_mi_interp): Adjust.
5780 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5781 'command_error' observers.
5782 (tui_on_sync_execution_done, tui_on_command_error): New
5783 functions.
5784 (tui_display_prompt_p): Delete.
5785 (_initialize_tui_interp): Adjust.
5786
fd664c91
PA
57872014-05-29 Pedro Alves <palves@redhat.com>
5788
5789 PR gdb/13860
5790 * cli/cli-interp.c: Include infrun.h and observer.h.
5791 (cli_uiout, cli_interp): New globals.
5792 (cli_on_signal_received, cli_on_end_stepping_range)
5793 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5794 functions.
5795 (cli_interpreter_init): Install them as 'end_stepping_range',
5796 'signal_received' 'signal_exited', 'exited' and 'no_history'
5797 observers.
5798 (_initialize_cli_interp): Remove cli_interp local.
5799 * infrun.c (handle_inferior_event): Call the several stop reason
5800 observers instead of printing the stop reason directly.
5801 (end_stepping_range): New function.
5802 (print_end_stepping_range_reason, print_signal_exited_reason)
5803 (print_exited_reason, print_signal_received_reason)
5804 (print_no_history_reason): Make static, and add an uiout
5805 parameter. Print to that instead of to CURRENT_UIOUT.
5806 * infrun.h (print_end_stepping_range_reason)
5807 (print_signal_exited_reason, print_exited_reason)
5808 (print_signal_received_reason print_no_history_reason): New
5809 declarations.
5810 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5811 'mi_uiout'.
5812 <cli_uiout>: New field.
5813 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5814 uiout for CLI output. Install 'signal_received',
5815 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5816 observers.
5817 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5818 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5819 (mi_on_no_history): New functions.
5820 (ui_out_free_cleanup): Delete function.
5821 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5822 instead use the one already stored in the MI interpreter data.
5823 (mi_ui_out): Adjust.
5824 * tui/tui-interp.c: Include infrun.h and observer.h.
5825 (tui_interp): New global.
5826 (tui_on_signal_received, tui_on_end_stepping_range)
5827 (tui_on_signal_exited, tui_on_exited)
5828 (tui_on_no_history): New functions.
5829 (tui_init): Install them as 'end_stepping_range',
5830 'signal_received' 'signal_exited', 'exited' and 'no_history'
5831 observers.
5832 (_initialize_tui_interp): Delete tui_interp local.
5833
8817a6f2
PA
58342014-05-29 Pedro Alves <palves@redhat.com>
5835
5836 PR gdb/15713
5837 * linux-nat.c (linux_nat_resume_callback): Rename the second
5838 parameter to 'except'. Skip LP if it points to EXCEPT.
5839 (linux_nat_resume): Don't mark the event lwp as not stopped
5840 before resuming sibling lwps. Instead ask
5841 linux_nat_resume_callback to skip the event lwp. Mark it as not
5842 stopped after actually resuming it.
5843 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5844 resuming it.
5845 (wait_lwp): Mark the lwp as stopped here.
5846 (stop_wait_callback): Mark the lwp as not stopped right after
5847 resuming it. Don't mark lwps as stopped here.
5848 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5849 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5850
251bde03
PA
58512014-05-29 Pedro Alves <palves@redhat.com>
5852
5853 PR PR15693
5854 * infrun.c (resume): Determine how much to resume depending on
5855 whether the caller wanted a step, not whether we can hardware step
5856 the target. Mark all threads that we intend to run as running,
5857 unless we're calling an inferior function.
5858 (normal_stop): If the thread is running an infcall, don't finish
5859 thread state.
5860 * target.c (target_resume): Don't mark threads as running here.
5861
7f3c0343
JB
58622014-05-28 Joel Brobecker <brobecker@adacore.com>
5863
5864 * serial.c (_initialize_serial): Remove support for
5865 the "set remotebaud" and "show remotebaud" commands.
5866 * NEWS: Add entry documenting the removal of that command.
5867
ee34b3f9
YQ
58682014-05-28 Yao Qi <yao@codesourcery.com>
5869
5870 * charset.c: Fix typo in comments.
5871
add6c04d
GB
58722014-05-27 Gary Benson <gbenson@redhat.com>
5873
5874 * utils.c (internal_vproblem): Prompt for a bug report.
5875
92c48fc5
AW
58762014-05-26 Andy Wingo <wingo@igalia.com>
5877
5878 * guile/scm-arch.c (arscm_mark_arch_smob):
5879 * guile/scm-block.c (bkscm_mark_block_smob)
5880 (bkscm_mark_block_syms_progress_smob):
5881 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5882 * guile/scm-exception.c (exscm_mark_exception_smob):
5883 * guile/scm-frame.c (frscm_mark_frame_smob):
5884 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5885 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5886 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5887 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5888 (ppscm_mark_pretty_printer_worker_smob):
5889 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5890 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5891 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5892 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5893 mark functions.
5894 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5895 function.
5896
b2715b27
AW
58972014-05-26 Andy Wingo <wingo@igalia.com>
5898 Doug Evans <xdje42@gmail.com>
5899
5900 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5901 empty_base_class. All uses updated.
5902 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5903 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5904 Adapt all callers.
5905 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5906 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5907 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5908 (gdbscm_gsmob_has_property_p, add_property_name)
5909 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5910 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5911 (gdb-object-has-property?, gdb-object-properties): Remove.
5912 (gdb-object-kind): Renamed from gsmob-kind.
5913
214ab2da
AW
59142014-05-26 Andy Wingo <wingo@igalia.com>
5915
5916 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5917 * configure: Regenerate.
5918
589fdceb
MM
59192014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5920
5921 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5922
67b5c0c1
MM
59232014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5924
5925 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5926 (replay_memory_access_read_only, replay_memory_access_read_write)
5927 (replay_memory_access_types, replay_memory_access)
5928 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5929 (cmd_set_record_btrace, cmd_show_record_btrace)
5930 (cmd_show_replay_memory_access): New.
5931 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5932 (record_btrace_remove_breakpoint): Replace
5933 record_btrace_allow_memory_access with replay_memory_access.
5934 (_initialize_record_btrace): Add commands.
5935 * NEWS: Announce it.
5936
036cd381
RR
59372014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5938
5939 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5940
c77c1e42
RR
59412014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5942
5943 * MAINTAINERS (Write After Approval): Move self back from
5944 paper trail.
5945
45741a9c
PA
59462014-05-22 Pedro Alves <palves@redhat.com>
5947
5948 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5949 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5950 (disable_randomization, enum exec_direction_kind)
5951 (execution_direction, stop_registers, start_remote)
5952 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5953 (wait_for_inferior, normal_stop, get_last_target_status)
5954 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5955 (insert_step_resume_breakpoint_at_sal)
5956 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5957 (set_step_info, print_stop_event, signal_stop_state)
5958 (signal_print_state, signal_pass_state, signal_stop_update)
5959 (signal_print_update, signal_pass_update)
5960 (update_signals_program_target, clear_exit_convenience_vars)
5961 (displaced_step_dump_bytes, update_observer_mode)
5962 (signal_catch_update, gdb_signal_from_command): Move
5963 declarations ...
5964 * infrun.h: ... to this new file.
5965 * amd64-tdep.c: Include infrun.h.
5966 * annotate.c: Include infrun.h.
5967 * arch-utils.c: Include infrun.h.
5968 * arm-linux-tdep.c: Include infrun.h.
5969 * arm-tdep.c: Include infrun.h.
5970 * break-catch-sig.c: Include infrun.h.
5971 * breakpoint.c: Include infrun.h.
5972 * common/agent.c: Include infrun.h instead of inferior.h.
5973 * corelow.c: Include infrun.h.
5974 * event-top.c: Include infrun.h.
5975 * go32-nat.c: Include infrun.h.
5976 * i386-tdep.c: Include infrun.h.
5977 * inf-loop.c: Include infrun.h.
5978 * infcall.c: Include infrun.h.
5979 * infcmd.c: Include infrun.h.
5980 * infrun.c: Include infrun.h.
5981 * linux-fork.c: Include infrun.h.
5982 * linux-nat.c: Include infrun.h.
5983 * linux-thread-db.c: Include infrun.h.
5984 * monitor.c: Include infrun.h.
5985 * nto-tdep.c: Include infrun.h.
5986 * procfs.c: Include infrun.h.
5987 * record-btrace.c: Include infrun.h.
5988 * record-full.c: Include infrun.h.
5989 * remote-m32r-sdi.c: Include infrun.h.
5990 * remote-mips.c: Include infrun.h.
5991 * remote-notif.c: Include infrun.h.
5992 * remote-sim.c: Include infrun.h.
5993 * remote.c: Include infrun.h.
5994 * reverse.c: Include infrun.h.
5995 * rs6000-tdep.c: Include infrun.h.
5996 * s390-linux-tdep.c: Include infrun.h.
5997 * solib-irix.c: Include infrun.h.
5998 * solib-osf.c: Include infrun.h.
5999 * solib-svr4.c: Include infrun.h.
6000 * target.c: Include infrun.h.
6001 * top.c: Include infrun.h.
6002 * windows-nat.c: Include infrun.h.
6003 * mi/mi-interp.c: Include infrun.h.
6004 * mi/mi-main.c: Include infrun.h.
6005 * python/py-threadevent.c: Include infrun.h.
6006
98eb56a4
PA
60072014-05-22 Pedro Alves <palves@redhat.com>
6008
6009 * infrun.c (handle_inferior_event): Store the exit code for
6010 --return-child-result here, instead of ...
6011 (print_exited_reason): ... here.
6012
17b2616c
PA
60132014-05-21 Pedro Alves <palves@redhat.com>
6014
6015 PR gdb/13860
6016 * gdbthread.h (struct thread_control_state): New field
6017 `command_interp'.
6018 * infrun.c (follow_fork): Copy the new thread control field to the
6019 child fork thread.
6020 (clear_proceed_status_thread): Clear the new thread control field.
6021 (proceed): Set the new thread control field.
6022 * interps.h (command_interp): Declare.
6023 * interps.c (command_interpreter): New global.
6024 (command_interp): New function.
6025 (interp_exec): Set `command_interpreter' while here.
6026 * cli-out.c (cli_uiout_dtor): New function.
6027 (cli_ui_out_impl): Install it.
6028 * mi/mi-interp.c: Include cli-out.h.
6029 (mi_cmd_interpreter_exec): Add comment.
6030 (restore_current_uiout_cleanup): New function.
6031 (ui_out_free_cleanup): New function.
6032 (mi_on_normal_stop): If finishing an execution command started by
6033 a CLI command, or any kind of breakpoint-like event triggered,
6034 print the stop event to the output (CLI) stream.
6035 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6036
5166082f
PA
60372014-05-21 Pedro Alves <palves@redhat.com>
6038
6039 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6040 current source line having changed.
6041 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6042 * infrun.c (normal_stop): Adjust call to
6043 set_current_sal_from_frame.
6044 * source.c (clear_lines_listed_range): New function.
6045 (set_current_source_symtab_and_line, identify_source_line): Clear
6046 the lines listed range.
6047 (line_info): Handle the first "info line" after the current source
6048 line having changed.
6049 * stack.c (print_stack_frame): Remove center handling.
6050 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6051 center sal.line.
6052
c1ee2fb3
PA
60532014-05-21 Pedro Alves <palves@redhat.com>
6054
6055 * inf-child.c (inf_child_mourn_inferior): New function.
6056 * inf-child.h (inf_child_mourn_inferior): New declaration.
6057 * darwin-nat.c (darwin_mourn_inferior): Use
6058 inf_child_mourn_inferior.
6059 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6060 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6061 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6062 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6063 * windows-nat.c (windows_mourn_inferior): Likewise.
6064
5c6d4fb2
DE
60652014-05-21 Doug Evans <xdje42@gmail.com>
6066
250748cb 6067 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6068
4a2722c5
DE
60692014-05-21 Doug Evans <xdje42@gmail.com>
6070
17292b30 6071 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6072 (gdbscm_out_of_range_error): Ditto.
6073 (gdbscm_memory_error): Ditto.
250748cb
DE
6074 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6075 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6076 (gdbscm_out_of_range_error): Update.
6077 (gdbscm_memory_error): Update.
6078 (gdbscm_scm_to_target_string_unsafe): Delete.
6079
6a3cb8e8
PA
60802014-05-21 Pedro Alves <palves@redhat.com>
6081
6082 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6083 globals.
6084 (inf_child_open_target): New function.
6085 (inf_child_open): Use inf_child_open_target to push the target
6086 instead of erroring out.
6087 (inf_child_disconnect, inf_child_close)
6088 (inf_child_maybe_unpush_target): New functions.
6089 (inf_child_target): Install inf_child_disconnect and
6090 inf_child_close. Store a pointer to the returned object.
6091 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6092 declarations.
6093 * target.c (auto_connect_native_target): New global.
6094 (show_default_run_target): New function.
6095 (find_default_run_target): Return NULL if automatically connecting
6096 to the native target is disabled.
6097 (_initialize_target): Install set/show auto-connect-native-target.
6098 * NEWS: Mention "set auto-connect-native-target", and "target
6099 native".
6100 * linux-nat.c (super_close): New global.
6101 (linux_nat_close): Call super_close.
6102 (linux_nat_add_target): Store a pointer to the base class's
6103 to_close method.
6104 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6105 inf_child_maybe_unpush.
6106 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6107 already pushed.
6108 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6109 the inferior. Use inf_child_maybe_unpush_target.
6110 (inf_ttrace_attach): Don't push the target if it is already
6111 pushed.
6112 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6113 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6114 after mourning the inferior. Use inf_child_maybe_unpush_target.
6115 (darwin_attach_pid): Don't push the target if it is already
6116 pushed.
6117 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6118 mourning the inferior. Use inf_child_maybe_unpush_target.
6119 (gnu_detach): Use inf_child_maybe_unpush_target.
6120 * go32-nat.c (go32_create_inferior): Don't push the target if it
6121 is already pushed.
6122 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6123 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6124 (procfs_open): Rename to ...
6125 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6126 comments. Can target_preopen before changing node. Call
6127 inf_child_open_target to push the target explicitly.
6128 (procfs_attach): Don't push the target if it is already pushed.
6129 (procfs_detach): Use inf_child_maybe_unpush_target.
6130 (procfs_create_inferior): Don't push the target if it is already
6131 pushed.
6132 (nto_native_ops): New global.
6133 (procfs_open): Reimplement.
6134 (procfs_native_open): New function.
6135 (init_procfs_targets): Install procfs_native_open as to_open of
6136 "target native". Store a pointer to the "native" target in
6137 nto_native_ops.
6138 * procfs.c (procfs_attach): Don't push the target if it is already
6139 pushed.
6140 (procfs_detach): Use inf_child_maybe_unpush_target.
6141 (procfs_mourn_inferior): Only unpush the target after mourning the
6142 inferior. Use inf_child_maybe_unpush_target.
6143 (procfs_init_inferior): Don't push the target if it is already
6144 pushed.
6145 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6146 if it is already pushed.
6147
930ee1b1
PA
61482014-05-21 Pedro Alves <palves@redhat.com>
6149
6150 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6151 and "procfs" targets are now called "native" instead.
6152
1f5d1b13
PA
61532014-05-21 Pedro Alves <palves@redhat.com>
6154
6155 * go32-nat.c (go32_open): Delete.
6156 (go32_target): Don't override the to_open method.
6157
132f8e03
PA
61582014-05-21 Pedro Alves <palves@redhat.com>
6159
6160 * nto-procfs.c (procfs_can_run): New function.
6161 (nto_procfs_ops): New global.
6162 (init_procfs_targets): New, based on procfs_target. Install
6163 "target native" in addition to "target procfs".
6164 (_initialize_procfs): Call init_procfs_targets instead of adding
6165 the target here.
6166
03c136c3
PA
61672014-05-21 Pedro Alves <palves@redhat.com>
6168
6169 * windows-nat.c (windows_target): Don't override to_shortname,
6170 to_longname or to_doc.
6171
a635d0f3
PA
61722014-05-21 Pedro Alves <palves@redhat.com>
6173
6174 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6175 to_doc.
6176
4f9b5133
PA
61772014-05-21 Pedro Alves <palves@redhat.com>
6178
6179 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6180 to_shortname, to_longname or to_doc.
6181
bc85afde
PA
61822014-05-21 Pedro Alves <palves@redhat.com>
6183
6184 * go32-nat.c (go32_target): Don't override to_shortname,
6185 to_longname or to_doc.
6186
4ebfc96e
PA
61872014-05-21 Pedro Alves <palves@redhat.com>
6188
6189 * inf-child.c (inf_child_open): Remove mention of "child".
6190 (inf_child_target): Rename target to "native" instead of "child".
6191
2648dfed
AA
61922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6193
6194 * Makefile.in (SFILES): Delete "regset.c".
6195 (COMMON_OBS): Delete "regset.o".
6196 * regset.c: Remove.
6197 * regset.h (regset_alloc): Delete prototype.
6198
b13feb94
AA
61992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6200
6201 * sparc-linux-tdep.c (sparc32_linux_gregset)
6202 (sparc32_linux_fpregset): New static regset structures.
6203 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6204 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6205 'fpregset' fields.
6206 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6207 (sparc64_linux_fpregset): New static regset structures.
6208 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6209 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6210 New static regset structures.
6211 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6212 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6213 New static regset structures.
6214 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6215 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6216 New static regset structures.
6217 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6218 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6219 New static regset structures.
6220 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6221
b4fd25c9
AA
62222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6223
6224 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6225 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6226 register maps ("regmaps") from "*regset" to "*regmap". Do this
6227 for all regmap types and variables.
6228 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6229 (sparc32_linux_supply_core_gregset)
6230 (sparc32_linux_collect_core_gregset)
6231 (sparc32_linux_supply_core_fpregset)
6232 (sparc32_linux_collect_core_fpregset): Likewise.
6233 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6234 (sparc_gregmap, sparc_fpregmap): ... these.
6235 (sparc_supply_gregset, sparc_collect_gregset)
6236 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6237 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6238 (_initialize_sparc_nat): Rename regmaps.
6239 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6240 (sparc_gregmap, sparc_fpregmap): ... these.
6241 (sparc_supply_gregset, sparc_collect_gregset)
6242 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6243 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6244 Rename macros to...
6245 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6246 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6247 Likewise.
6248 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6249 Rename to...
6250 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6251 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6252 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6253 regmaps.
6254 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6255 (sparc32_bsd_fpregset): Rename to...
6256 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6257 (sparc32_bsd_fpregmap): ... these.
6258 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6259 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6260 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6261 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6262 (struct sparc_gregmap, struct sparc_fpregmap)
6263 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6264 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6265 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6266 (sparc32_supply_regset, sparc32_collect_gregset)
6267 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6268 prototypes.
6269 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6270 (sparc64_linux_ptrace_gregmap): ... this.
6271 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6272 (_initialize_sparc64_linux_nat): Rename regmaps.
6273 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6274 (sparc64_linux_core_gregmap): ... this.
6275 (sparc64_linux_supply_core_gregset)
6276 (sparc64_linux_collect_core_gregset)
6277 (sparc64_linux_supply_core_fpregset)
6278 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6279 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6280 (sparc64_sol2_fpregset): Rename to...
6281 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6282 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6283 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6284 regmaps.
6285 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6286 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6287 (sparc64_bsd_fpregset): Rename to...
6288 (struct sparc_gregmap, sparc64_sol2_gregmap)
6289 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6290 (sparc64_bsd_fpregmap): ... these.
6291 (sparc64_supply_gregset, sparc64_collect_gregset)
6292 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6293 prototypes.
6294 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6295 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6296 (sparc64fbsd_gregmap): ... this.
6297 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6298 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6299 Rename regmaps.
6300 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6301 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6302 (sparc64nbsd_collect_fpregset): Likewise.
6303 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6304 (sparc64nbsd_gregmap): ... this.
6305 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6306 regmaps.
6307 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6308 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6309 (sparc64obsd_gregmap): ... this.
6310 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6311 regmaps.
6312 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6313 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6314 (sparc32nbsd_gregmap): ... this.
6315 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6316 regmaps.
6317
8fea3224
AA
63182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6319
6320 * score-tdep.c (score7_linux_gregset): New static regset
6321 structure.
6322 (score7_linux_regset_from_core_section): Remove dynamic regset
6323 allocation.
6324 (score_gdbarch_init): Drop allocation of tdep structure.
6325 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6326
24534243
AA
63272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6328
6329 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6330 regset structures.
6331 (am33_regset_from_core_section): Remove dynamic regset
6332 allocations.
6333
b7195f27
AA
63342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6335
6336 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6337 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6338 structures.
6339 (mips_linux_regset_from_core_section): Remove dynamic regset
6340 allocations.
6341 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6342 'gregset64', 'fpregset', and 'fpregset64'.
6343 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6344 deleted tdep fields.
6345
ecc37a5a
AA
63462014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6347
6348 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6349 regset structures.
6350 (amd64_regset_from_core_section): Remove dynamic regset
6351 allocations.
6352 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6353 structure.
6354 (amd64obsd_regset_from_core_section): Remove dynamic regset
6355 allocation.
6356 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6357 Likewise.
6358 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6359 x86-common regset supply function.
6360 * i386-tdep.c (i386_collect_gregset): Make static.
6361 (i386_gregset): New global regset structure.
6362 (i386_fpregset, i386_xstateregset): New static regset structures.
6363 (i386_regset_from_core_section): Remove dynamic regset
6364 allocations.
6365 (i386_gdbarch_init): Remove initialization of tdep fields
6366 'gregset', 'fpregset', and 'xstateregset'.
6367 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6368 'fpregset', and 'xstateregset'.
6369 (i386_collect_gregset): Remove prototype.
6370 (i386_gregset): New declaration.
6371 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6372 structure.
6373 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6374 allocation.
6375
b7611c43
AA
63762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6377
6378 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6379 (arm_linux_vfpregset): New static regset structures.
6380 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6381 regset structures.
6382 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6383 and 'vfpregset' fields.
6384
a069a2bd
AA
63852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6386
6387 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6388 (aarch64_linux_fpregset): New static regset structures.
6389 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6390 of regset structures.
6391 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6392 'fpregset' fields.
6393
09424cff
AA
63942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6395
6396 * regset.h (struct regset): Remove gdbarch field.
6397 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6398 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6399 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6400 Likewise.
6401 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6402 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6403 (ppc32_linux_vsxregset): Likewise.
6404 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6405 via the regcache instead of the regset.
6406 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6407 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6408 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6409 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6410 Likewise.
6411
3ca7dae4
AA
64122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6413
6414 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6415 Constify structures.
6416 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6417 (alphanbsd_aout_gregset): Likewise.
6418 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6419 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6420 Likewise.
6421 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6422 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6423 Likewise.
6424 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6425 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6426 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6427 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6428 * m88k-tdep.c (m88k_gregset): Likewise.
6429 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6430 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6431 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6432 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6433 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6434 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6435 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6436 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6437 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6438 Likewise.
6439 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6440 * sh-tdep.h (sh_corefile_gregset): Likewise.
6441 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6442 * vax-tdep.c (vax_gregset): Likewise.
6443
5876f503
JK
64442014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6445
6446 Fix TLS access for -static -pthread.
6447 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6448 (try_thread_db_load_1): Initialize it.
6449 (thread_db_get_thread_local_address): Call it if LM is zero.
6450 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6451 * target.h (struct target_ops) (to_get_thread_local_address): Add
6452 load_module_addr comment.
6453
0256a6ac
PA
64542014-05-21 Pedro Alves <palves@redhat.com>
6455
6456 * dcache.c (dcache_read_memory_partial): If reading the cache line
6457 fails, fallback to reading just the memory the caller wanted.
6458
227533ac
DE
64592014-05-20 Doug Evans <dje@google.com>
6460
6461 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6462 instead of get_current_arch.
6463
936d2992
PA
64642014-05-20 Pedro Alves <palves@redhat.com>
6465
6466 * NEWS: Mention that compare-sections now works with all targets.
6467
6468 * remote.c (PACKET_qCRC): New enum value.
6469 (remote_verify_memory): Don't send qCRC if the target has no
6470 execution. Use packet_support/packet_ok. If the target doesn't
6471 support the qCRC packet, fallback to a deep memory copy.
6472 (compare_sections_command): Say "target image" instead of "remote
6473 executable".
6474 (_initialize_remote): Add PACKET_qCRC to the list of config
6475 packets that have no associated command. Extend comment.
6476 * target.c (simple_verify_memory, default_verify_memory): New
6477 function.
6478 * target.h (struct target_ops) <to_verify_memory>: Default to
6479 default_verify_memory.
6480 (simple_verify_memory): New declaration.
6481 * target-delegates.c: Regenerate.
6482
e59fa00f
MM
64832014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6484
6485 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6486
f2205de0
HZ
64872014-05-20 Hui Zhu <hui@codesourcery.com>
6488 Yao Qi <yao@codesourcery.com>
6489
6490 PR backtrace/16558
6491 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6492 and change address of sp and pc.
6493
c4e54771
TT
64942014-05-19 Tom Tromey <tromey@redhat.com>
6495
6496 * gdbtypes.c (rank_function): Use XNEWVEC.
6497 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6498
73051182
DE
64992014-05-19 Doug Evans <dje@google.com>
6500
6501 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6502 build_type_unit_groups and moved closer to only caller. Remove
6503 arguments. All references updated. Remove outdated .gdb_index
6504 comment.
6505 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6506 build_type_psymtabs_1.
6507
8832e7e3
DE
65082014-05-19 Doug Evans <dje@google.com>
6509
6510 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6511 n_type_unit_groups, all_type_unit_groups. All uses removed.
6512 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6513 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6514 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6515 (add_type_unit_group_to_table): Delete.
6516
cd8ae15e
DE
65172014-05-19 Doug Evans <dje@google.com>
6518
6519 * eval.c (evaluate_subexp_standard): Add some comments.
6520
08f4850b
DE
65212014-05-17 Doug Evans <xdje42@gmail.com>
6522
6523 * progspace.c (remove_program_space): Delete, unused.
6524 * progspace.h (remove_program_space): Ditto.
6525
bed8455c
DE
65262014-05-17 Doug Evans <xdje42@gmail.com>
6527
6528 * inferior.c (prune_inferiors): Fix comment.
6529 (remove_inferior_command): Call prune_program_spaces.
6530
8d551b02
DE
65312014-05-16 Doug Evans <dje@google.com>
6532
6533 New command line option -D.
6534 * NEWS: Mention it.
6535 * main.c (set_gdb_data_directory): New function.
6536 (captured_main): Recognize -D. Flag error for --data-directory "".
6537 Call set_gdb_data_directory.
6538 (print_gdb_help): Print --data-directory, -D.
6539 * main.h (set_gdb_data_directory): Declare.
6540 * top.c (staged_gdb_datadir): New static global.
6541 (set_gdb_datadir): Call set_gdb_data_directory
6542 (show_gdb_datadir): New function.
6543 (init_main): Update init of data-directory parameter.
6544
18848e28
GF
65452014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6546
6547 Import the "dirfd" gnulib module.
6548 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6549 * gnulib/aclocal.m4: Update.
6550 * gnulib/config.in: Update.
6551 * gnulib/configure: Update.
6552 * gnulib/import/Makefile.am: Update.
6553 * gnulib/import/Makefile.in: Update.
6554 * gnulib/import/dirfd.c: New.
6555 * gnulib/import/m4/dirfd.m4: New.
6556 * gnulib/import/m4/gnulib-cache.m4: Update.
6557 * gnulib/import/m4/gnulib-comp.m4: Update.
6558
95c64f92
YQ
65592014-05-16 Pierre Muller <muller@sourceware.org>
6560 Yao Qi <yao@codesourcery.com>
6561
6562 * valprint.c (print_wchar): Move the code on checking whether
6563 W is a printable wide char to the default branch of switch
6564 statement below. Call wchar_printable instead of gdb_iswprint.
6565
cac395ea
TM
65662014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6567
19679eca 6568 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6569 ldr.w and ldrd instructions.
6570
83655187
DE
65712014-05-15 Doug Evans <dje@google.com>
6572
6573 * dwarf2read.c (read_structure_type): Delete outdated comments.
6574
dd756689
TT
65752014-05-14 Tom Tromey <tromey@redhat.com>
6576
6577 * macrocmd.c (print_macro_definition): Reindent.
6578
75ddda77
DE
65792014-05-13 Doug Evans <xdje42@gmail.com>
6580
6581 * python/py-cmd.c (cmdpy_completer): Add comment.
6582 (completers): Make const.
6583
b0f16a3e
SM
65842014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6585
6586 * infrun.c (resume): Remove should_resume (unused). Move up
6587 declaration of resume_ptid.
6588
033c3379
TT
65892014-05-13 Tom Tromey <tromey@redhat.com>
6590
6591 * language.h (unop_type_check): Remove.
6592 (binop_type_check): Don't declare.
6593
9b44a3a5
AA
65942014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6595
6596 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6597 call to regcache_raw_collect.
6598
303a33fa
SM
65992014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6600
6601 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6602 mi_console->quote as the quoting character.
6603
196100a0
SM
66042014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6605
6606 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6607
f989a1c8
TT
66082014-04-29 Tom Tromey <tromey@redhat.com>
6609
6610 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6611 "show debug varobj".
6612
9404b58f
KM
66132014-05-07 Kyle McMartin <kyle@redhat.com>
6614
6615 Pushed by Joel Brobecker <brobecker@adacore.com>.
6616 * aarch64-tdep.c (aarch64_software_single_step): New function.
6617 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6618 with aarch64_software_single_step.
6619
5e49ba57
JB
66202014-05-05 Joel Brobecker <brobecker@adacore.com>
6621
6622 GDB 7.7.1 released.
6623
c888a17d
KS
66242014-05-05 Keith Seitz <keiths@redhat.com>
6625
6626 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6627 variable or history value is successfully parsed.
6628
290a839c
YQ
66292014-05-05 Yao Qi <yao@codesourcery.com>
6630 Pedro Alves <palves@redhat.com>
6631
6632 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6633 address of blocks that intersects the requested range. Trim
6634 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6635 sections.
6636 * ctf.c (ctf_xfer_partial): Likewise.
6637
91256dc2
YQ
66382014-05-05 Yao Qi <yao@codesourcery.com>
6639
6640 * printcmd.c (display_command): Remove the check to
6641 target_has_execution.
6642
07284463
MK
66432014-05-03 Mark Kettenis <kettenis@gnu.org>
6644
6645 * ppcobsd-nat.c: Include "obsd-nat.h".
6646 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6647 add_target.
6648 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6649
30a1e6cc
SDJ
66502014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6651
6652 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6653 and 16-bit signed and unsigned arguments. Update comment.
6654 (stap_parse_probe_arguments): Extend code to handle such
6655 arguments. Use warning instead of complaint to notify about
6656 unrecognized bitness.
6657
f33da99a
SDJ
66582014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6659
6660 PR breakpoints/16889
6661 * stap-probe.c (stap_parse_probe_arguments): Simplify
6662 check for non-prefixed probes (i.e., probes whose
6663 arguments do not start with "N@"). Always set the
6664 argument type to a sane value.
6665
95cf3b38
DT
66662014-05-01 David Taylor <dtaylor@emc.com>
6667
6668 * remote.c (compare_sections_command): Add -r option to compare
6669 all loadable read-only sections.
6670
1cfdf534
SC
66712014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6672
6673 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6674 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6675 Update all callers.
6676 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6677 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6678 Remove unused CORE_ADDR argument. Update all callers.
6679
ca4f7f8b
PA
66802014-04-29 Pedro Alves <palves@redhat.com>
6681
6682 * remote.c (struct packet_config) <detect>: Extend comment.
6683 (add_packet_config_cmd): Don't set the config's detect or support
6684 fields here.
6685 (init_all_packet_configs): Also initialize the config's 'detect'
6686 field.
6687 (reset_all_packet_configs_support): New function.
6688 (remote_open_1): Call reset_all_packet_configs_support instead of
6689 init_all_packet_configs.
6690 (_initialize_remote): Initialize all packet configs. Assert that
6691 all packets have an associated command, except a few known
6692 outliers.
6693
11c1ba78
JB
66942014-04-28 Joel Brobecker <brobecker@adacore.com>
6695
6696 * dwarf2read.c (read_subrange_type): Handle dynamic
6697 DW_AT_lower_bound attributes.
6698
8739bc53
JB
66992014-04-28 Joel Brobecker <brobecker@adacore.com>
6700
6701 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6702 dynamic bounds before computing its upper bound.
6703 (ada_discrete_type_low_bound): Same as above with the lower bound.
6704
6f8a3220
JB
67052014-04-28 Joel Brobecker <brobecker@adacore.com>
6706
6707 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6708 range types. Adjust the array handling implementation to
6709 take advantage of this change.
6710 (resolve_dynamic_range): New function, mostly extracted from
6711 resolve_dynamic_bounds.
6712 (resolve_dynamic_array): New function, mostly extracted from
6713 resolve_dynamic_bounds.
6714 (resolve_dynamic_bounds): Delete.
6715 (resolve_dynamic_type): Reimplement. Add handling of
6716 TYPE_CODE_RANGE types.
6717
4d072ce4
JB
67182014-04-28 Joel Brobecker <brobecker@adacore.com>
6719
6720 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6721 handling of parallel ___XA types.
6722
52865325
JB
67232014-04-28 Joel Brobecker <brobecker@adacore.com>
6724
6725 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6726 unnecessary second call to static_unwrap_type.
6727
433e77fa
HZ
67282014-04-27 Hui Zhu <hui@codesourcery.com>
6729
6730 * stack.c (print_frame_info): Call do_gdb_disassembly with
6731 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6732
b51a69ee
DE
67332014-04-26 Doug Evans <xdje42@gmail.com>
6734
6735 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6736
7ae1a6a6
PA
67372014-04-25 Pedro Alves <palves@redhat.com>
6738
6739 PR server/16255
6740 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6741 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6742 and newline from built string.
6743 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6744 (linux_ptrace_attach_fail_reason): ... this.
6745 * linux-nat.c (linux_nat_attach): Adjust to use
6746 linux_ptrace_attach_fail_reason.
6747
4082afcc
PA
67482014-04-25 Pedro Alves <palves@redhat.com>
6749
6750 * remote.c (struct remote_state): Remove multi_process_aware,
6751 non_stop_aware, cond_tracepoints, cond_breakpoints,
6752 breakpoint_commands, fast_tracepoints, static_tracepoints,
6753 install_in_trace, disconnected_tracing,
6754 enable_disable_tracepoints, string_tracing, and
6755 augmented_libraries_svr4_read fields.
6756 (remote_multi_process_p): Move further below in the file.
6757 (struct packet_config): Add comments.
6758 (update_packet_config): Delete function.
6759 (show_packet_config_cmd): Use packet_config_support.
6760 (add_packet_config_cmd): Use NULL as set callback.
6761 (packet_ok): "set remote foo-packet"-style commands no longer
6762 change config->supported -- adjust.
6763 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6764 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6765 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6766 (PACKET_QNonStop, PACKET_multiprocess_feature)
6767 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6768 (PACKET_DisconnectedTracing_feature)
6769 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6770 (set_remote_protocol_packet_cmd): Delete function.
6771 (packet_config_support, packet_support): New functions.
6772 (set_remote_protocol_Z_packet_cmd): Don't call
6773 update_packet_config.
6774 (remote_query_attached, remote_pass_signals)
6775 (remote_program_signals, remote_threads_info)
6776 (remote_threads_extra_info, remote_start_remote): Use
6777 packet_support.
6778 (remote_start_remote): Use packet_config_support and
6779 packet_support.
6780 (init_all_packet_configs): Set all packets to unknown support,
6781 instead of calling update_packet_config.
6782 (remote_check_symbols): Use packet_support.
6783 (remote_supported_packet): Unconditionally set the packet config's
6784 support status.
6785 (remote_multi_process_feature, remote_non_stop_feature)
6786 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6787 (remote_breakpoint_commands_feature)
6788 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6789 (remote_install_in_trace_feature)
6790 (remote_disconnected_tracing_feature)
6791 (remote_enable_disable_tracepoint_feature)
6792 (remote_string_tracing_feature)
6793 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6794 (remote_protocol_features): Adjust to use remote_supported_packet
6795 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6796 "ConditionalTracepoints", "ConditionalBreakpoints",
6797 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6798 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6799 "EnableDisableTracepoints", and "tracenz".
6800 (remote_query_supported): Use packet_support.
6801 (remote_open_1): Adjust.
6802 (extended_remote_attach_1): Use packet_support. Switch on the
6803 result of packet_ok instead of checking whether the packet ended
6804 up disabled.
6805 (remote_vcont_resume): Use packet_support.
6806 (remote_resume, remote_stop_ns, fetch_register_using_p)
6807 (remote_prepare_to_store, store_register_using_P)
6808 (check_binary_download, remote_write_bytes): Use packet_support.
6809 (remote_vkill): Use packet_support. Switch on the result of
6810 packet_ok instead of checking whether the packet ended up
6811 disabled.
6812 (extended_remote_supports_disable_randomization): Use
6813 packet_support.
6814 (extended_remote_run): Switch on the result of packet_ok instead
6815 of checking whether the packet ended up disabled.
6816 (remote_insert_breakpoint, remote_remove_breakpoint)
6817 (remote_insert_watchpoint, remote_remove_watchpoint)
6818 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6819 packet_support.
6820 (remote_search_memory): Use packet_config_support.
6821 (remote_get_thread_local_address, remote_get_tib_address)
6822 (remote_hostio_send_command, remote_can_execute_reverse): Use
6823 packet_support.
6824 (remote_supports_cond_tracepoints)
6825 (remote_supports_cond_breakpoints)
6826 (remote_supports_fast_tracepoints)
6827 (remote_supports_static_tracepoints)
6828 (remote_supports_install_in_trace)
6829 (remote_supports_enable_disable_tracepoint)
6830 (remote_supports_string_tracing)
6831 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6832 the packet config says the feature is enabled or disabled.
6833 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6834 (remote_get_trace_status): Use packet_support.
6835 (remote_set_disconnected_tracing): Adjust to check whether the
6836 feature is enabled with packet_support.
6837 (remote_set_trace_buffer_size, remote_use_agent)
6838 (remote_can_use_agent, remote_supports_btrace): Use
6839 packet_support.
6840 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6841 Use packet_config_support.
6842 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6843 the packet config says the feature is enabled or disabled.
6844 (set_range_stepping): Use packet_support.
6845
bdb52a22
TT
68462014-04-25 Tom Tromey <tromey@redhat.com>
6847
6848 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6849 argument.
6850
e9475ead
SA
68512014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6852
6853 * NEWS: Mention support for C99 variable length arrays.
6854
82eacd52
JB
68552014-04-24 Joel Brobecker <brobecker@adacore.com>
6856
6857 * ada-lang.c (standard_exc): Expand introductory comment.
6858
01f9f808
MS
68592014-04-24 Michael Sturm <michael.sturm@mintel.com>
6860 Walfred Tedeschi <walfred.tedeschi@intel.com>
6861
6862 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6863 AVX512 registers.
6864 (amd64_linux_read_description): Add code to handle AVX512 xstate
6865 mask and return respective tdesc.
6866 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6867 and features/i386/x32-avx512-linux.c.
6868 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6869 (amd64_linux_core_read_description): Add code to handle AVX512
6870 xstate mask and return respective tdesc.
6871 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6872 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6873 calculation.
6874 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6875 (tdesc_amd64_avx512_linux): New prototype.
6876 (tdesc_x32_avx512_linux): Likewise.
6877 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6878 features/i386/x32-avx512.c.
6879 (amd64_ymm_avx512_names): New register names for pseudo
6880 registers YMM16-31.
6881 (amd64_ymmh_avx512_names): New register names for raw registers
6882 YMMH16-31.
6883 (amd64_k_names): New register names for K registers.
6884 (amd64_zmmh_names): New register names for ZMM raw registers.
6885 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6886 (amd64_xmm_avx512_names): New register names for XMM16-31
6887 registers.
6888 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6889 registers.
6890 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6891 if feature is present.
6892 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6893 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6894 (AMD64_NUM_REGS): Adjust to new number of registers.
6895 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6896 registers supplied via XSTATE by AVX512 registers.
6897 (i386_linux_read_description): Add case for AVX512.
6898 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6899 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6900 (i386_linux_core_read_description): Add case for AVX512.
6901 (i386_linux_init_abi): Install supported register note section
6902 for AVX512.
6903 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6904 AVX512.
6905 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6906 registers to be number of zmm7h + 1.
6907 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6908 * i386-tdep.c: Include features/i386/i386-avx512.c.
6909 (i386_zmm_names): Add ZMM pseudo register names array.
6910 (i386_zmmh_names): Add ZMM raw register names array.
6911 (i386_k_names): Add K raw register names array.
6912 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6913 registers. AVX512 has 16 more ZMM registers than there are YMM
6914 registers.
6915 (i386_zmmh_regnum_p): Add function to look up register number of
6916 ZMM raw registers.
6917 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6918 (i386_k_regnum_p): Likewise for K raw registers.
6919 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6920 registers added by AVX512.
6921 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6922 registers added by AVX512.
6923 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6924 added by AVX512.
6925 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6926 (i386_pseudo_register_name): Add ZMM pseudo registers.
6927 (i386_zmm_type): Construct and return vector registers type for ZMM
6928 registers.
6929 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6930 ZMM0-31 pseudo registers and K registers.
6931 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6932 and YMM16-31 registers from register cache.
6933 (i386_pseudo_register_write): Add code to write K, ZMM and
6934 YMM16-31 registers.
6935 (i386_register_reggroup_p): Add code to include/exclude AVX512
6936 registers in/from respective register groups.
6937 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6938 registers if feature is present in xcr0.
6939 (i386_gdbarch_init): Add code to initialize AVX512 feature
6940 variables in tdep structure, wire in pseudo registers and call
6941 initialize_tdesc_i386_avx512.
6942 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6943 variables.
6944 (i386_regnum): Add AVX512 registers.
6945 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6946 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6947 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6948 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6949 512 bits wide.
6950 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6951 (i386_ymm_avx512_regnum_p): Likewise.
6952 (i386_k_regnum_p): Likewise.
6953 (i386_zmm_regnum_p): Likewise.
6954 (i386_zmmh_regnum_p): Likewise.
6955 * i387-tdep.c : Update year in copyright notice.
6956 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6957 XSAVE buffer.
6958 (XSAVE_YMM_AVX512_ADDR): New macro.
6959 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6960 XSAVE buffer.
6961 (XSAVE_XMM_AVX512_ADDR): New macro.
6962 (xsave_avx512_k_offset): New table for K register offsets in
6963 XSAVE buffer.
6964 (XSAVE_AVX512_K_ADDR): New macro.
6965 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6966 in XSAVE buffer.
6967 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6968 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6969 buffer.
6970 (i387_collect_xsave): Add code to collect AVX512 registers from
6971 XSAVE buffer.
6972 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6973 of XMM16-31 registers.
6974 (I387_NUM_K_REGS): New define for number of K registers.
6975 (I387_K0_REGNUM): New define for K0 register number.
6976 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6977 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6978 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6979 registers.
6980 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6981 (I387_XMM16_REGNUM): New define for XMM16 register number.
6982 (I387_YMM0_REGNUM): New define for YMM0 register number.
6983 (I387_KEND_REGNUM): New define for last K register number.
6984 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6985 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6986 number.
6987 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6988 number.
6989 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6990 size.
6991 * features/Makefile: Add AVX512 related files.
6992 * features/i386/32bit-avx512.xml: New file.
6993 * features/i386/64bit-avx512.xml: Likewise.
6994 * features/i386/amd64-avx512-linux.c: Likewise.
6995 * features/i386/amd64-avx512-linux.xml: Likewise.
6996 * features/i386/amd64-avx512.c: Likewise.
6997 * features/i386/amd64-avx512.xml: Likewise.
6998 * features/i386/i386-avx512-linux.c: Likewise.
6999 * features/i386/i386-avx512-linux.xml: Likewise.
7000 * features/i386/i386-avx512.c: Likewise.
7001 * features/i386/i386-avx512.xml: Likewise.
7002 * features/i386/x32-avx512-linux.c: Likewise.
7003 * features/i386/x32-avx512-linux.xml: Likewise.
7004 * features/i386/x32-avx512.c: Likewise.
7005 * features/i386/x32-avx512.xml: Likewise.
7006 * regformats/i386/amd64-avx512-linux.dat: New file.
7007 * regformats/i386/amd64-avx512.dat: Likewise.
7008 * regformats/i386/i386-avx512-linux.dat: Likewise.
7009 * regformats/i386/i386-avx512.dat: Likewise.
7010 * regformats/i386/x32-avx512-linux.dat: Likewise.
7011 * regformats/i386/x32-avx512.dat: Likewise.
7012 * NEWS: Add note about new support for AVX512.
7013
7014
08351840
PA
70152014-04-23 Pedro Alves <palves@redhat.com>
7016
7017 * breakpoint.c (insert_bp_location): Tolerate errors if the
7018 breakpoint is set in a user-loaded objfile.
7019 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7020 location is marked shlib_disabled. If the breakpoint is set in a
7021 user-loaded objfile is a GDB-side memory breakpoint, validate it
7022 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7023 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7024 flag.
7025 * mem-break.c (memory_validate_breakpoint): New function.
7026 * objfiles.c (userloaded_objfile_contains_address_p): New
7027 function.
7028 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7029 * target.h (memory_validate_breakpoint): New declaration.
7030
076855f9
PA
70312014-04-23 Pedro Alves <palves@redhat.com>
7032
7033 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7034 the breakpoint is set in a shared library, only suppress
7035 errors for software breakpoints, not hardware breakpoints.
7036
483805cf
PA
70372014-04-22 Pedro Alves <palves@redhat.com>
7038
7039 * infrun.c (schedlock_applies): New function, factored out from
7040 find_thread_needs_step_over.
7041 (find_thread_needs_step_over): Use it.
7042 (switch_back_to_stepped_thread): Always clear trap_expected if the
7043 step over is finished. Return early if scheduler locking applies.
7044 Look for the stepping thread and a potential step-over thread with
7045 a single loop.
7046 (currently_stepping_or_nexting_callback): Delete.
7047
a75fef0e
NC
70482014-04-22 Nick Clifton <nickc@redhat.com>
7049
7050 * NEWS: Mention that ARM sim now supports tracing.
7051
48b6e87e
YQ
70522014-04-22 Yao Qi <yao@codesourcery.com>
7053
7054 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7055 to ...
7056 * tracefile.c (tracefile_fetch_registers): ... it. New
7057 function.
7058 * tracefile.h (tracefile_fetch_registers): Declare.
7059 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7060 tracefile_fetch_registers.
7061
17617f2d
EZ
70622014-04-19 Eli Zaretskii <eliz@gnu.org>
7063
7064 PR gdb/14018
7065 * windows-nat.c (thread_rec): Don't display a warning when
7066 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7067 fails for any reason, set th->suspended to -1, so that we don't
7068 try to resume such a thread. Also, don't return NULL in these
7069 cases, to avoid completely ruin the session due to "PC register is
7070 not available" error.
7071 (do_windows_fetch_inferior_registers): Check errors in
7072 GetThreadContext call.
7073 (windows_continue): Accept an additional argument KILLED; if not
7074 zero, ignore errors in the SetThreadContext call, since the
7075 inferior was killed and is shutting down.
7076 (windows_resume, get_windows_debug_event)
7077 (windows_create_inferior, windows_mourn_inferior)
7078 (windows_kill_inferior): All callers of windows_continue changed
7079 to adjust to its new calling sequence.
7080
5723a6fd
YQ
70812014-04-19 Yao Qi <yao@codesourcery.com>
7082
7083 * ctf.c (ctf_open): Call post_create_inferior.
7084
614d5099
YQ
70852014-04-19 Yao Qi <yao@codesourcery.com>
7086
7087 * ctf.c (handle_id): New static variable.
7088 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7089 value. Get the declaration of event "register" and get length
7090 of field "contents".
7091
dac3e710
YQ
70922014-04-19 Yao Qi <yao@codesourcery.com>
7093
7094 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7095
2bca57ba
SC
70962014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7097
7098 * valops.c (oload_method_static): Remove unnecessary argument
7099 METHOD. Update all callers.
7100
51d48146
PA
71012014-04-18 Pedro alves <palves@redhat.com>
7102 Tom Tromey <tromey@redhat.com>
7103
7104 PR backtrace/15558
7105 * frame.c (get_prev_frame_1): Rename to ...
7106 (get_prev_frame_always): ... this, and make extern. Adjust.
7107 (skip_artificial_frames): Use get_prev_frame_always.
7108 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7109 (get_frame_unwind_stop_reason): Adjust to rename.
7110 * frame.h (get_prev_frame_always): Declare.
7111 * inline-frame.c: Include frame.h.
7112 (inline_frame_this_id): Use get_prev_frame_always.
7113
1bdad2e0
TG
71142014-04-18 Tristan Gingold <gingold@adacore.com>
7115
7116 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7117 code by using bfd_mach_o_get_base_address.
7118
7ce16bd4
UW
71192014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7120
7121 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7122 (spu_ax_pseudo_register_collect): New function.
7123 (spu_ax_pseudo_register_push_stack): Likewise.
7124 (spu_dwarf_reg_to_regnum): Likewise.
7125 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7126
2ed3c037
UW
71272014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7128
7129 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7130 Replace FRAME argument with FRAME_ID.
7131 * gdbarch.c, gdbarch.h: Regenerate.
7132 * findvar.c (default_value_from_register): Add GDBARCH argument;
7133 replace FRAME by FRAME_ID. No longer call get_frame_id.
7134 (value_from_register): Update call to gdbarch_value_from_register.
7135 * value.h (default_value_from_register): Update prototype.
7136 * s390-linux-tdep.c (s390_value_from_register): Update interface
7137 and call to default_value_from_register.
7138 * spu-tdep.c (spu_value_from_register): Likewise.
7139
7140 * findvar.c (address_from_register): Remove TYPE argument.
7141 Do not call value_from_register; use gdbarch_value_from_register
7142 with null_frame_id instead.
7143 * value.h (address_from_register): Update prototype.
7144 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7145 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7146 address_from_register interface change.
7147
71e50e83
YQ
71482014-04-17 Yao Qi <yao@codesourcery.com>
7149
7150 * gdbtypes.h: Update comments to link to types and macros'
7151 definitions.
7152
7a23c549
SC
71532014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7154
7155 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7156
22869d73
KS
71572014-04-16 Keith Seitz <keiths@redhat.com>
7158
7159 PR gdb/15827
7160 * dwarf2read.c (skip_one_die): Check that all relative-offset
7161 sibling DIEs fall within range of the current reader's buffer.
7162 (read_partial_die): Likewise.
7163
c4f87ca6
KS
71642014-04-16 Keith Seitz <keiths@redhat.com>
7165
7166 PR c++/16597
7167 * cp-namespace.c (lookup_symbol_file): If the type name of
7168 `this' is NULL, return immediately.
7169
b50c8614
KS
71702014-04-14 Keith Seitz <keiths@redhat.com>
7171
7172 PR c++/16253
7173 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7174 from symbol_matches_domain in symtab.c. All local callers
7175 of symbol_matches_domain updated.
7176 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7177 search STRUCT_DOMAIN.
7178 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7179 independently. standard_lookup will do that automatically.
7180 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7181 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7182 (cp_lookup_symbol_in_namespace): Likewise.
7183 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7184 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7185 may return a STRUCT_DOMAIN match.
7186 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7187 * cp-support.c: Include language.h.
7188 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7189 VAR_DOMAIN.
7190 * psymtab.c (match_partial_symbol): Compare the requested
7191 domain with the symbol's domain directly.
7192 (lookup_partial_symbol): Likewise.
7193 * symtab.c (lookup_symbol_in_language): Explain when/why
7194 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7195 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7196 appropriate languages.
7197 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7198 and moved to ada-lang.c
7199 (lookup_block_symbol): Explain that this function only returns
7200 symbol matching the requested DOMAIN.
7201 Compare the requested domain with the symbol's domain directly.
7202 (iterate_over_symbols): Compare the requested domain with the
7203 symbol's domain directly.
7204 * symtab.h (symbol_matches_domain): Remove.
7205
3d567982
TT
72062014-04-14 Tom Tromey <tromey@redhat.com>
7207
7208 PR c++/15246:
7209 * c-exp.y (type_aggregate_p): New function.
7210 (qualified_name, classify_inner_name): Use it.
7211 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7212 and TYPE_TARGET_TYPE of an enum type.
7213 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7214 an enum type.
7215 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7216 handle TYPE_DECLARED_CLASS.
7217 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7218 types.
7219 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7220 * valops.c (enum_constant_from_type): New function.
7221 (value_aggregate_elt): Use it.
7222 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7223 TYPE_CODE_ENUM.
7224
c848d642
TT
72252014-04-14 Tom Tromey <tromey@redhat.com>
7226
7227 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7228 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7229 const.
7230 * value.h (value_aggregate_elt): Update.
7231
0626fc76
TT
72322014-04-14 Tom Tromey <tromey@redhat.com>
7233
7234 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7235
5ecaaa66
SA
72362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7237
7238 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7239 (evaluate_subexp_standard): Pass noside argument.
7240 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7241 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7242 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7243 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7244 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7245
1612e0c0
SA
72462014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7247
7248 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7249 points to a constant blob.
7250
c451ebe5
SA
72512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7252
7253 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7254 property and store it as the high bound and flag the range accordingly.
7255 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7256 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7257 * gdbtypes.h (enum range_flags): New enum.
7258 (struct range_bounds): Add flags member.
7259
1d42e4c4
SA
72602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7261
7262 * c-typeprint.c (c_type_print_varspec_suffix): Added
7263 check for not yet resolved high bound. If unresolved, print
7264 "variable length" string to the console instead of random
7265 length.
7266
9f1f738a
SA
72672014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7268
7269 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7270 value.
7271 (ada_template_to_fixed_record_type_1): Likewise.
7272 (ada_to_fixed_type_1): Likewise.
7273 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7274 (cp_print_value): Likewise.
7275 * d-valprint.c (dynamic_array_type): Likewise.
7276 * findvar.c (address_of_variable): Likewise.
7277 * jv-valprint.c (java_value_print): Likewise.
7278 * valops.c (value_ind): Likewise.
7279 * value.c (coerce_ref): Likewise.
7280
3c8452d4
SA
72812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7282
7283 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7284 value and retrieve the dynamic type size.
7285
4ad88275
SA
72862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7287
7288 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7289 passed to sizeof is dynamic evaluate the argument to compute the length.
7290
80180f79
SA
72912014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7292 Joel Brobecker <brobecker@adacore.com>
7293
7294 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7295 (dwarf2_evaluate_property): New function.
7296 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7297 * dwarf2read.c (attr_to_dynamic_prop): New function.
7298 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7299 attribute.
7300 * gdbtypes.c: Include dwarf2loc.h.
7301 (is_dynamic_type): New function.
7302 (resolve_dynamic_type): New function.
7303 (resolve_dynamic_bounds): New function.
7304 (get_type_length): New function.
7305 (check_typedef): Use get_type_length to compute type length.
7306 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7307 (TYPE_LOW_BOUND_KIND): New macro.
7308 (is_dynamic_type): New function prototype.
7309 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7310 to resolve dynamic properties of the type. Update comment.
7311 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7312
a1556843
RH
73132014-04-14 Richard Henderson <rth@redhat.com>
7314
7315 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7316
0be03e84
DE
73172014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7318 Doug Evans <xdje42@gmail.com>
7319
7320 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7321 dereference TYPE_CODE_REF values.
7322
6b662e19
JB
73232014-04-11 Joel Brobecker <brobecker@adacore.com>
7324
7325 Revert the following changes due to regressions:
7326
7327 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7328 (dwarf2_evaluate_property): New function.
7329 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7330 * dwarf2read.c (attr_to_dynamic_prop): New function.
7331 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7332 attribute.
7333 * gdbtypes.c: Include dwarf2loc.h.
7334 (is_dynamic_type): New function.
7335 (resolve_dynamic_type): New function.
7336 (resolve_dynamic_bounds): New function.
7337 (get_type_length): New function.
7338 (check_typedef): Use get_type_length to compute type length.
7339 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7340 (TYPE_LOW_BOUND_KIND): New macro.
7341 (is_dynamic_type): New function prototype.
7342 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7343 to resolve dynamic properties of the type. Update comment.
7344 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7345
7346 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7347 passed to sizeof is dynamic evaluate the argument to compute the length.
7348
7349 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7350 value and retrieve the dynamic type size.
7351
7352 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7353 (ada_template_to_fixed_record_type_1): Likewise.
7354 (ada_to_fixed_type_1): Likewise.
7355 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7356 (cp_print_value): Likewise.
7357 * d-valprint.c (dynamic_array_type): Likewise.
7358 * eval.c (evaluate_subexp_with_coercion): Likewise.
7359 * findvar.c (address_of_variable): Likewise.
7360 * jv-valprint.c (java_value_print): Likewise.
7361 * valops.c (value_ind): Likewise.
7362 * value.c (coerce_ref): Likewise.
7363
7364 * c-typeprint.c (c_type_print_varspec_suffix): Added
7365 check for not yet resolved high bound. If unresolved, print
7366 "variable length" string to the console instead of random
7367 length.
7368
7369 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7370 property and store it as the high bound and flag the range accordingly.
7371 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7372 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7373 * gdbtypes.h (enum range_flags): New enum.
7374 (struct range_bounds): Add flags member.
7375
7376 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7377 points to a constant blob.
7378
7379 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7380 (evaluate_subexp_standard): Pass noside argument.
7381 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7382 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7383 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7384 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7385 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7386
245a5f0b
KS
73872014-04-11 Keith Seitz <keiths@redhat.com>
7388
7389 PR c++/16675
7390 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7391 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7392 reference types.
7393
3bce8237
SA
73942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7395
7396 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7397 (evaluate_subexp_standard): Pass noside argument.
7398 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7399 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7400 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7401 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7402 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7403
92b09522
SA
74042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7405
7406 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7407 points to a constant blob.
7408
e1969afb
SA
74092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7410
7411 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7412 property and store it as the high bound and flag the range accordingly.
7413 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7414 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7415 * gdbtypes.h (enum range_flags): New enum.
7416 (struct range_bounds): Add flags member.
7417
b86138fb
SA
74182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7419
7420 * c-typeprint.c (c_type_print_varspec_suffix): Added
7421 check for not yet resolved high bound. If unresolved, print
7422 "variable length" string to the console instead of random
7423 length.
7424
bcd629a4
SA
74252014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7426
7427 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7428 (ada_template_to_fixed_record_type_1): Likewise.
7429 (ada_to_fixed_type_1): Likewise.
7430 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7431 (cp_print_value): Likewise.
7432 * d-valprint.c (dynamic_array_type): Likewise.
7433 * eval.c (evaluate_subexp_with_coercion): Likewise.
7434 * findvar.c (address_of_variable): Likewise.
7435 * jv-valprint.c (java_value_print): Likewise.
7436 * valops.c (value_ind): Likewise.
7437 * value.c (coerce_ref): Likewise.
7438
04b19544
SA
74392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7440
7441 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7442 value and retrieve the dynamic type size.
7443
26cb189f
SA
74442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7445
7446 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7447 passed to sizeof is dynamic evaluate the argument to compute the length.
7448
37c1ab67
SA
74492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7450
7451 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7452 (dwarf2_evaluate_property): New function.
7453 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7454 * dwarf2read.c (attr_to_dynamic_prop): New function.
7455 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7456 attribute.
7457 * gdbtypes.c: Include dwarf2loc.h.
7458 (is_dynamic_type): New function.
7459 (resolve_dynamic_type): New function.
7460 (resolve_dynamic_bounds): New function.
7461 (get_type_length): New function.
7462 (check_typedef): Use get_type_length to compute type length.
7463 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7464 (TYPE_LOW_BOUND_KIND): New macro.
7465 (is_dynamic_type): New function prototype.
7466 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7467 to resolve dynamic properties of the type. Update comment.
7468 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7469
729efb13
SA
74702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7471
7472 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7473 declaring high/low bounds and change uses accordingly. Call
7474 create_range_type instead of create_static_range_type.
7475 * gdbtypes.c (create_range_type): New function.
7476 (create_range_type): Convert bounds into struct bound_prop and pass
7477 them to create_range_type.
7478 * gdbtypes.h (struct bound_prop): New struct.
7479 (create_range_type): New function prototype.
7480 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7481 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7482 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7483 part of the bound.
7484 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7485
0c9c3474
SA
74862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7487
7488 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7489 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7490 * ada-lang.c: All uses of create_range_type updated.
7491 * coffread.c: All uses of create_range_type updated.
7492 * dwarf2read.c: All uses of create_range_type updated.
7493 * f-exp.y: All uses of create_range_type updated.
7494 * m2-valprint.c: All uses of create_range_type updated.
7495 * mdebugread.c: All uses of create_range_type updated.
7496 * stabsread.c: All uses of create_range_type updated.
7497 * valops.c: All uses of create_range_type updated.
7498 * valprint.c: All uses of create_range_type updated.
7499
9d497a19
PA
75002014-04-10 Pedro Alves <palves@redhat.com>
7501
7502 * breakpoint.c (single_step_breakpoints)
7503 (single_step_gdbarch): Move up in the file.
7504 (one_breakpoint_xfer_memory): New function, factored out from ...
7505 (breakpoint_xfer_memory): ... here. Also process single-step
7506 breakpoints.
7507
15a9128a
TG
75082014-04-09 Tristan Gingold <gingold@adacore.com>
7509
7510 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7511 comments.
7512 (darwin_decode_exception_message): Free port only after use.
7513
9c97a070
PL
75142014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7515
7516 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7517 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7518 when setting the size of call_length.
7519
7af389b8
SC
75202014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7521
7522 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7523 dereference TYPE_CODE_REF values.
7524
86ad98c3
JB
75252014-04-07 Joel Brobecker <brobecker@adacore.com>
7526
7527 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7528 end of warning message.
7529
b0aeadb3
DE
75302014-04-03 Doug Evans <dje@google.com>
7531
7532 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7533 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7534
5979d6b6
AM
75352014-04-02 Alan Modra <amodra@gmail.com>
7536
7537 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7538 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7539 (struct symbol_file_add_from_memory_args): Add size field.
7540 (find_vdso_size): New function.
7541 (add_vsyscall_page): Attempt to find vdso size.
7542
0d60c288
DE
75432014-04-01 Doug Evans <dje@google.com>
7544
7545 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7546
a41f2563
TG
75472014-04-01 Tristan Gingold <gingold@adacore.com>
7548
7549 * darwin-nat.c (darwin_encode_reply): Add prototype.
7550 (darwin_decode_exception_message): Reply to unknown inferiors.
7551 (darwin_decode_message): Handle message by id. Ignore message
7552 to unknown inferior.
7553 (darwin_wait): Discard unknown messages, add debug trace.
7554
11a865c8
DE
75552014-03-31 Doug Evans <dje@google.com>
7556
7557 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7558 comp_dir_string.
7559
770e7fc7
DE
75602014-03-31 Doug Evans <dje@google.com>
7561
7562 New option "set print symbol-loading".
7563 * NEWS: Mention it.
7564 * solib.c (solib_read_symbols): Only print symbol loading messages
7565 if requested.
7566 (solib_add): If symbol loading is in "brief" mode, notify user
7567 symbols are being loaded.
7568 (reload_shared_libraries_1): Ditto.
7569 * symfile.c (print_symbol_loading_off): New static global.
7570 (print_symbol_loading_brief): New static global.
7571 (print_symbol_loading_full): New static global.
7572 (print_symbol_loading_enums): New static global.
7573 (print_symbol_loading): New static global.
7574 (print_symbol_loading_p): New function.
7575 (symbol_file_add_with_addrs): Only print symbol loading messages
7576 if requested.
7577 (_initialize_symfile): Register "print symbol-loading" set/show
7578 command.
7579 * symfile.h (print_symbol_loading_p): Declare.
7580
c32c64b7
DE
75812014-03-30 Doug Evans <xdje42@gmail.com>
7582
7583 * infrun.c (set_last_target_status): New function.
7584 (handle_inferior_event): Call it.
7585
7c0bc051
DE
75862014-03-30 Doug Evans <xdje42@gmail.com>
7587
7588 * inferior.h (enum stop_kind): Improve comment.
7589
8776cfe9
JB
75902014-03-28 Joel Brobecker <brobecker@adacore.com>
7591
7592 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7593 a reference, strip the reference layer before calling
7594 the lang_ops value_has_mutated callback.
7595
410a0ff2
SDJ
75962014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7597
7598 Remove some globals from our parser.
7599 * language.c (unk_lang_parser): Add "struct parser_state"
7600 argument.
7601 * language.h (struct language_defn) <la_parser>: Likewise.
7602 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7603 (initialize_expout): Add "struct parser_state" argument.
7604 Rewrite function to use the parser state.
7605 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7606 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7607 write_exp_elt_longcst, write_exp_elt_dblcst,
7608 write_exp_elt_decfloatcst, write_exp_elt_type,
7609 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7610 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7611 write_dollar_variable): Likewise.
7612 (parse_exp_in_context_1): Use parser state.
7613 (insert_type_address_space): Add "struct parser_state" argument.
7614 Use parser state.
7615 (increase_expout_size): New function.
7616 * parser-defs.h: Forward declare "struct language_defn" and
7617 "struct parser_state".
7618 (expout, expout_size, expout_ptr): Remove extern declarations.
7619 (parse_gdbarch, parse_language): Rewrite macro declarations to
7620 accept the parser state.
7621 (struct parser_state): New struct.
7622 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7623 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7624 write_exp_elt_decfloatcst, write_exp_elt_type,
7625 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7626 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7627 write_exp_msymbol, write_dollar_variable,
7628 mark_struct_expression, insert_type_address_space): Add "struct
7629 parser_state" argument.
7630 (increase_expout_size): New function.
7631 * utils.c (do_clear_parser_state): New function.
7632 (make_cleanup_clear_parser_state): Likewise.
7633 * utils.h (make_cleanup_clear_parser_state): New function
7634 prototype.
7635 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7636 Update calls to write_exp* in order to pass the parser state.
7637 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7638 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7639 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7640 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7641 * stap-probe.c (stap_parse_register_operand): Likewise.
7642 (stap_parse_single_operand): Likewise.
7643 (stap_parse_argument_1): Likewise.
7644 (stap_parse_argument): Use parser state.
7645 * stap-probe.h: Include "parser-defs.h".
7646 (struct stap_parse_info) <pstate>: New field.
7647 * c-exp.y (parse_type): Rewrite to use parser state.
7648 (yyparse): Redefine to c_parse_internal.
7649 (pstate): New global variable.
7650 (parse_number): Add "struct parser_state" argument.
7651 (write_destructor_name): Likewise.
7652 (type_exp): Update calls to write_exp* and similars in order to
7653 use parser state.
7654 (exp1, exp, variable, qualified_name, space_identifier,
7655 typename, typebase): Likewise.
7656 (write_destructor_name, parse_number, lex_one_token,
7657 classify_name, classify_inner_name, c_parse): Add "struct
7658 parser_state" argument. Update function to use parser state.
7659 * c-lang.h: Forward declare "struct parser_state".
7660 (c_parse): Add "struct parser_state" argument.
7661 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7662 (yyparse): Redefine macro to ada_parse_internal.
7663 (pstate): New variable.
7664 (write_int, write_object_renaming, write_var_or_type,
7665 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7666 type_int, type_long, type_long_long, type_float, type_double,
7667 type_long_double, type_char, type_boolean, type_system_address):
7668 Add "struct parser_state" argument.
7669 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7670 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7671 var_or_type, aggregate, aggregate_component_list,
7672 positional_list, others, component_group,
7673 component_associations): Update calls to write_exp* and similar
7674 functions in order to use parser state.
7675 (ada_parse, write_var_from_sym, write_int,
7676 write_exp_op_with_string, write_object_renaming,
7677 find_primitive_type, write_selectors, write_ambiguous_var,
7678 write_var_or_type, write_name_assoc, type_int, type_long,
7679 type_long_long, type_float, type_double, type_long_double,
7680 type_char, type_boolean, type_system_address): Add "struct
7681 parser_state" argument. Adjust function to use parser state.
7682 * ada-lang.c (parse): Likewise.
7683 * ada-lang.h: Forward declare "struct parser_state".
7684 (ada_parse): Add "struct parser_state" argument.
7685 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7686 calls to both functions.
7687 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7688 parser state.
7689 (yyparse): Redefine macro to f_parse_internal.
7690 (pstate): New variable.
7691 (parse_number): Add "struct parser_state" argument.
7692 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7693 and similars in order to use parser state.
7694 (parse_number): Adjust code to use parser state.
7695 (yylex): Likewise.
7696 (f_parse): New function.
7697 * f-lang.h: Forward declare "struct parser_state".
7698 (f_parse): Add "struct parser_state" argument.
7699 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7700 parser state.
7701 (yyparse): Redefine macro for java_parse_internal.
7702 (pstate): New variable.
7703 (push_expression_name, push_expression_name, insert_exp): Add
7704 "struct parser_state" argument.
7705 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7706 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7707 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7708 PostIncrementExpression, PostDecrementExpression,
7709 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7710 UnaryExpressionNotPlusMinus, CastExpression,
7711 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7712 RelationalExpression, EqualityExpression, AndExpression,
7713 ExclusiveOrExpression, InclusiveOrExpression,
7714 ConditionalAndExpression, ConditionalOrExpression,
7715 ConditionalExpression, Assignment, LeftHandSide): Update
7716 calls to write_exp* and similars in order to use parser state.
7717 (parse_number): Ajust code to use parser state.
7718 (yylex): Likewise.
7719 (java_parse): New function.
7720 (push_variable): Add "struct parser_state" argument. Adjust
7721 code to user parser state.
7722 (push_fieldnames, push_qualified_expression_name,
7723 push_expression_name, insert_exp): Likewise.
7724 * jv-lang.h: Forward declare "struct parser_state".
7725 (java_parse): Add "struct parser_state" argument.
7726 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7727 parser state.
7728 (yyparse): Redefine macro to m2_parse_internal.
7729 (pstate): New variable.
7730 (type_exp, exp, fblock, variable, type): Update calls to
7731 write_exp* and similars to use parser state.
7732 (yylex): Likewise.
7733 (m2_parse): New function.
7734 * m2-lang.h: Forward declare "struct parser_state".
7735 (m2_parse): Add "struct parser_state" argument.
7736 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7737 * objc-lang.h: Forward declare "struct parser_state".
7738 (end_msglist): Add "struct parser_state" argument.
7739 * p-exp.y (parse_type): Rewrite macro to use parser state.
7740 (yyparse): Redefine macro to pascal_parse_internal.
7741 (pstate): New variable.
7742 (parse_number): Add "struct parser_state" argument.
7743 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7744 write_exp* and similars in order to use parser state.
7745 (parse_number, yylex): Adjust code to use parser state.
7746 (pascal_parse): New function.
7747 * p-lang.h: Forward declare "struct parser_state".
7748 (pascal_parse): Add "struct parser_state" argument.
7749 * go-exp.y (parse_type): Rewrite macro to use parser state.
7750 (yyparse): Redefine macro to go_parse_internal.
7751 (pstate): New variable.
7752 (parse_number): Add "struct parser_state" argument.
7753 (type_exp, exp1, exp, variable, type): Update calls to
7754 write_exp* and similars in order to use parser state.
7755 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7756 to use parser state.
7757 (go_parse): Likewise.
7758 * go-lang.h: Forward declare "struct parser_state".
7759 (go_parse): Add "struct parser_state" argument.
7760
342587c4
DE
77612014-03-27 Doug Evans <dje@google.com>
7762
7763 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7764
33e80786
DE
77652014-03-27 Doug Evans <dje@google.com>
7766
7767 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7768 Remove argument abbrev_section. All callers updated.
7769
1dbab08b
DE
77702014-03-27 Doug Evans <dje@google.com>
7771
7772 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7773 addr_base, ranges_base.
7774
318d3177
KS
77752014-03-26 Keith Seitz <keiths@redhat.com>
7776
7777 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7778 types, not VAR_DOMAIN.
7779
1e54db15
SL
77802014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7781
7782 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7783 "ra" registers.
7784 * features/nios2-linux.c: Regenerated.
7785 * features/nios2.c: Regenerated.
7786
d3839ede
PA
77872014-03-25 Pedro Alves <palves@redhat.com>
7788
7789 * cli/cli-script.c (script_from_file): Force the interpreter to
7790 sync mode.
7791
7588d2ec
PL
77922014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7793
7794 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7795 small stack allocation.
7796
a6290449
TG
77972014-03-24 Tristan Gingold <gingold@adacore.com>
7798
7799 * darwin-nat.c (exc_server): Remove unused prototype.
7800 (darwin_dump_message): Correctly display data on x86_64.
7801 (darwin_encode_reply): Fix style.
7802 Add comments and fix indentation.
7803
31ae9d24 78042014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7805
7806 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7807
6339bfc4
DE
78082014-03-22 Doug Evans <xdje42@gmail.com>
7809
7810 * infcmd.c: Whitespace fixes.
7811 (interrupt_command): Merge two function comments into one.
7812
0a07590b
DE
78132014-03-22 Doug Evans <xdje42@gmail.com>
7814
7815 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7816 All uses updated.
7817
b55fbac4
YQ
78182014-03-22 Yao Qi <yao@codesourcery.com>
7819
7820 * remote.c (target_read_live_memory): Remove.
7821 (memory_xfer_live_readonly_partial): Rename it to
7822 remote_xfer_live_readonly_partial. Remove argument 'object'.
7823 All callers updated. Call remote_read_bytes_1
7824 instead of target_read_live_memory.
7825 * tracepoint.c (set_traceframe_number): Remove.
7826 (make_cleanup_restore_traceframe_number): Likewise .
7827 * tracepoint.h (set_traceframe_number): Remove declaration.
7828 (make_cleanup_restore_traceframe_number): Likewise.
7829
9217e74e
YQ
78302014-03-22 Yao Qi <yao@codesourcery.com>
7831
7832 * remote.c (remote_read_bytes): Move code on reading from the
7833 remote stub to ...
7834 (remote_read_bytes_1): ... here. New function.
7835
8acf9577
YQ
78362014-03-22 Yao Qi <yao@codesourcery.com>
7837
7838 * ctf.c (ctf_xfer_partial): Check the return value of
7839 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7840 return TARGET_XFER_UNAVAILABLE.
7841 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7842 * target.c (target_read_live_memory): Move it to remote.c.
7843 (memory_xfer_live_readonly_partial): Likewise.
7844 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7845 * remote.c (target_read_live_memory): Moved from target.c.
7846 (memory_xfer_live_readonly_partial): Likewise.
7847 (remote_read_bytes): Factored out from
7848 memory_xfer_partial_1.
7849
feef67ab
DE
78502014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7851
7852 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7853 NULL pointer.
7854
b65dc60b
PA
78552014-03-21 Pedro Alves <palves@redhat.com>
7856
7857 * infrun.c (normal_stop): Extend comment.
7858
b4ab256d
HZ
78592014-03-21 Hui Zhu <hui@codesourcery.com>
7860 Pedro Alves <palves@redhat.com>
7861
7862 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7863 static buffer.
7864 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7865 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7866 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7867
deba7593
MR
78682014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7869
7870 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7871 `z' formatted output modifier.
7872
1bff71c3
SDJ
78732014-03-20 Tom Tromey <tromey@redhat.com>
7874 Sergio Durigan Junior <sergiodj@redhat.com>
7875
7876 * probe.c (parse_probes): Turn assert into an ordinary error.
7877 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7878 exceptions when parsing probes. Rearrange the code for clarity.
7879
90e28950
TT
78802014-03-20 Tom Tromey <tromey@redhat.com>
7881
7882 PR gdb/14135
7883 * top.c (execute_command): Only dispatch events if the command
7884 started the target.
7885
beb460e8
PA
78862014-03-20 Tom Tromey <tromey@redhat.com>
7887
7888 PR cli/15718
7889 * infcall.c: Include event-top.h.
7890 (run_inferior_call): Call async_disable_stdin if needed.
7891
99619bea
PA
78922014-03-20 Pedro Alves <palves@redhat.com>
7893
7894 * infrun.c (prepare_to_proceed): Delete.
7895 (thread_still_needs_step_over): New function.
7896 (find_thread_needs_step_over): New function.
7897 (proceed): If the current thread needs a step-over, set its
7898 steping_over_breakpoint flag. Adjust to use
7899 find_thread_needs_step_over instead of prepare_to_proceed.
7900 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7901 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7902 breakpoint.
7903 (switch_back_to_stepped_thread): Step over breakpoints of all
7904 threads not the stepping thread, before switching back to the
7905 stepping thread.
7906
2adfaa28
PA
79072014-03-20 Pedro Alves <palves@redhat.com>
7908
7909 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7910 extern.
7911 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7912 * infrun.c (saved_singlestep_ptid)
7913 (stepping_past_singlestep_breakpoint): Delete.
7914 (resume): Remove stepping_past_singlestep_breakpoint handling.
7915 (proceed): Store the prev_pc of the stepping thread too.
7916 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7917 singlestep_pc.
7918 (enum infwait_states): Delete infwait_thread_hop_state.
7919 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7920 field.
7921 (handle_inferior_event): Adjust.
7922 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7923 handling and the thread-hop code. Before removing single-step
7924 breakpoints, check whether the thread hit a single-step breakpoint
7925 of another thread. If it did, the trap is not a random signal.
7926 (switch_back_to_stepped_thread): If the event thread hit a
7927 single-step breakpoint, unblock it before switching to the
7928 stepping thread. Handle the case of the stepped thread having
7929 advanced already.
7930 (keep_going): Handle the case of the current thread moving past a
7931 single-step breakpoint.
7932
31e77af2
PA
79332014-03-20 Pedro Alves <palves@redhat.com>
7934
7935 PR breakpoints/7143
7936 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7937 are being stepped over.
7938 (breakpoint_address_match): Make extern.
7939 * breakpoint.h (breakpoint_address_match): New declaration.
7940 * inferior.h (stepping_past_instruction_at): New declaration.
7941 * infrun.c (struct step_over_info): New type.
7942 (step_over_info): New global.
7943 (set_step_over_info, clear_step_over_info)
7944 (stepping_past_instruction_at): New functions.
7945 (handle_inferior_event): Clear the step-over info when
7946 trap_expected is cleared.
7947 (resume): Remove now stale comment.
7948 (clear_proceed_status): Clear step-over info.
7949 (proceed): Adjust step-over handling to set or clear the step-over
7950 info instead of removing all breakpoints.
7951 (handle_signal_stop): When setting up a thread-hop, don't remove
7952 breakpoints here.
7953 (stop_stepping): Clear step-over info.
7954 (keep_going): Adjust step-over handling to set or clear step-over
7955 info and then always inserting breakpoints, instead of removing
7956 all breakpoints when stepping over one.
7957
b9f437de
PA
79582014-03-20 Pedro Alves <palves@redhat.com>
7959
7960 * infrun.c (previous_inferior_ptid): Adjust comment.
7961 (deferred_step_ptid): Delete.
7962 (infrun_thread_ptid_changed, prepare_to_proceed)
7963 (init_wait_for_inferior): Adjust.
7964 (handle_signal_stop): Delete deferred_step_ptid handling.
7965
06c868a8
JK
79662014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7967
7968 PR gdb/15358
7969 * defs.h (sync_quit_force_run): New declaration.
7970 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7971 * event-top.c (async_sigterm_handler): New declaration.
7972 (async_sigterm_token): New variable.
7973 (async_init_signals): Create also async_sigterm_token.
7974 (async_sigterm_handler): New function.
7975 (sync_quit_force_run): New variable.
7976 (handle_sigterm): Replace quit_force call by other calls.
7977 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7978
dea80df0
MR
79792014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7980
7981 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7982 offset into SPE pseudo registers.
7983
0c7e1a46
PA
79842014-03-18 Pedro Alves <palves@redhat.com>
7985
7986 PR gdb/13860
7987 * inferior.h (print_stop_event): Declare.
7988 * infrun.c (print_stop_event): New, factored out from ...
7989 (normal_stop): ... this.
7990 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7991 of bpstat_print/print_stack_frame.
7992
9c1fcd01
TT
79932014-03-17 Tom Tromey <tromey@redhat.com>
7994
7995 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7996
11aa919a
PMR
79972014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7998
7999 * ada-lang.c (decode_constrained_packed_array): Perform a
8000 minimal coercion for reference with coerce_ref instead of
8001 ada_coerce_ref.
8002
d4ccb5e0
TG
80032014-03-17 Tristan Gingold <gingold@adacore.com>
8004
8005 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8006 (darwin_solib_create_inferior_hook): Emit a warning if version
8007 is unhandled.
8008
49840f2a
UW
80092014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8010
8011 * python/py-value.c (get_field_flag): Cast flag_name argument to
8012 PyObject_GetAttrString to support Python 2.4.
8013
ed4123e5
JK
80142014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8015
8016 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8017 (Global Maintainers): Remove Jan Kratochvil.
8018
d6b64346
PA
80192014-03-14 Pedro Alves <palves@redhat.com>
8020
8021 * inferior.h (terminal_ours_for_output): Rename to ...
8022 (child_terminal_ours_for_output): ... this.
8023 (terminal_save_ours): Rename to ...
8024 (child_terminal_save_ours): ... this.
8025 (terminal_ours): Rename to ...
8026 (child_terminal_ours): ... this.
8027 (terminal_inferior): Rename to ...
8028 (child_terminal_inferior): ... this.
8029 (terminal_init_inferior): Rename to ...
8030 (child_terminal_init_inferior): ... this.
8031 (terminal_init_inferior_with_pgrp): Rename to ...
8032 (child_terminal_init_inferior_with_pgrp): ... this.
8033 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8034 (child_terminal_init_with_pgrp): ... this.
8035 (terminal_save_ours): Rename to ...
8036 (child_terminal_save_ours): ... this.
8037 (terminal_init_inferior): Rename to ...
8038 (child_terminal_init): ... this. Adjust.
8039 (terminal_inferior): Rename to ...
8040 (child_terminal_inferior): ... this.
8041 (terminal_ours_for_output): Rename to ...
8042 (child_terminal_ours_for_output): ... this. Adjust.
8043 (terminal_ours): Rename to ...
8044 (child_terminal_ours): ... this.
8045 (terminal_ours_1): Rename to ...
8046 (child_terminal_ours_1): ... this. Adjust.
8047 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8048 * windows-nat.c (do_initial_windows_stuff): Adjust.
8049 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8050 (gnu_terminal_init): ... this. Adjust.
8051 (gnu_target): Adjust.
8052 * inf-child.c (inf_child_target): Adjust.
8053
5a1e8c7a
DE
80542014-03-13 Doug Evans <xdje42@gmail.com>
8055
8056 PR guile/16612
8057 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8058 new eq?-hashtab.
8059
350e1a76
DE
80602014-03-13 Doug Evans <xdje42@gmail.com>
8061
8062 * value.c (record_latest_value): Call release_value_or_incref
8063 instead of release_value.
8064
a69900ae
PA
80652014-03-13 Pedro Alves <palves@redhat.com>
8066
8067 * procfs.c (procfs_target): Don't override to_shortname,
8068 to_longname or to_doc.
8069
5db9f0bd
PA
80702014-03-13 Pedro Alves <palves@redhat.com>
8071
8072 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8073 Unix in user visible strings.
8074
5e3a2c38
SS
80752014-03-12 Stan Shebs <stan@codesourcery.com>
8076
8077 * gdbtypes.h: Annotate comments for Doxygen, add a page
8078 block comment with some general info.
8079
8bc2fe48
PA
80802014-03-12 Pedro Alves <palves@redhat.com>
8081
8082 * infcmd.c (prepare_execution_command): New function, factored out
8083 from several execution commands.
8084 (run_command_1, continue_command, step_1, jump_command)
8085 (signal_command, until_command, advance_command, finish_command)
8086 (attach_command): Use prepare_execution_command.
8087
638c5f49
OJ
80882014-03-12 Omair Javaid <omair.javaid@linaro.org>
8089
8090 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8091 (MAX_BPTS): Define.
8092 (MAX_WPTS): Define.
8093 (struct arm_linux_thread_points): Removed.
8094 (struct arm_linux_process_info): New.
8095 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8096 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8097 (arm_linux_find_breakpoints_by_tid): Removed.
8098 (struct arch_lwp_info): New.
8099 (arm_linux_find_process_pid): New functions.
8100 (arm_linux_add_process): New functions.
8101 (arm_linux_process_info_get): New functions.
8102 (arm_linux_forget_process): New function.
8103 (arm_linux_get_debug_reg_state): New function.
8104 (struct update_registers_data): New.
8105 (update_registers_callback): New function.
8106 (arm_linux_insert_hw_breakpoint1): Updated.
8107 (arm_linux_remove_hw_breakpoint1): Updated.
8108 (arm_linux_insert_hw_breakpoint): Updated.
8109 (arm_linux_remove_hw_breakpoint): Updated.
8110 (arm_linux_insert_watchpoint): Updated.
8111 (arm_linux_remove_watchpoint): Updated.
8112 (arm_linux_new_thread): Updated.
8113 (arm_linux_prepare_to_resume): New function.
8114 (arm_linux_new_fork): New function.
8115 (_initialize_arm_linux_nat): Updated.
8116
6d03af93
PA
81172014-03-12 Pedro Alves <palves@redhat.com>
8118
8119 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8120
b3ccfe11
TT
81212014-03-12 Tom Tromey <tromey@redhat.com>
8122
8123 * inf-child.c (return_zero): New function.
8124 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8125 * aix-thread.c (aix_thread_inferior_created): New function.
8126 (aix_thread_attach): Remove.
8127 (init_aix_thread_ops): Don't set to_attach.
8128 (_initialize_aix_thread): Register inferior_created observer.
8129 * corelow.c (init_core_ops): Don't set to_attach or
8130 to_create_inferior.
8131 * exec.c (init_exec_ops): Don't set to_attach or
8132 to_create_inferior.
8133 * infcmd.c (run_command_1): Use find_run_target. Make direct
8134 target calls.
8135 (attach_command): Use find_attach_target. Make direct target
8136 calls.
8137 * record-btrace.c (init_record_btrace_ops): Don't set
8138 to_create_inferior.
8139 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8140 Remove.
8141 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8142 set to_create_inferior.
8143 * target.c (complete_target_initialization): Add assertion.
8144 (target_create_inferior): Remove.
8145 (find_default_attach, find_default_create_inferior): Remove.
8146 (find_attach_target, find_run_target): New functions.
8147 (find_default_is_async_p, find_default_can_async_p)
8148 (target_supports_non_stop, target_attach): Remove.
8149 (init_dummy_target): Don't set to_create_inferior or
8150 to_supports_non_stop.
8151 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8152 TARGET_DEFAULT_FUNC.
8153 <to_create_inferior>: Add comment.
8154 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8155 TARGET_DEFAULT_RETURN.
8156 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8157 (find_attach_target, find_run_target): Declare.
8158 (target_create_inferior): Remove.
8159 (target_has_execution_1): Update comment.
8160 (target_supports_non_stop): Remove.
8161 * target-delegates.c: Rebuild.
8162
91f83b02
PA
81632014-03-12 Pedro Alves <palves@redhat.com>
8164
8165 * inf-child.h: Update comment to not mention Unix.
8166
f1aea813
PA
81672014-03-12 Pedro Alves <palves@redhat.com>
8168
8169 * inf-child.c: Update top comment to not mention Unix. Add
8170 generic comment describing how this target is meant to be used.
8171 (inf_child_post_attach, inf_child_post_startup_inferior)
8172 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8173 Unix in comment.
8174
ee8e9165
PA
81752014-03-12 Pedro Alves <palves@redhat.com>
8176
8177 * nto-procfs.c: Include inf-child.h.
8178 (procfs_ops): Delete global.
8179 (procfs_can_run): Delete method.
8180 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8181 target pointer instead of referencing procfs_ops.
8182 (procfs_prepare_to_store): Delete.
8183 (init_procfs_ops): Delete function.
8184 (procfs_target): New function, based on init_procfs_ops, but
8185 inherit inf_child_target.
8186 (_initialize_procfs): Use procfs_target.
8187
51a9c8c5
PA
81882014-03-12 Pedro Alves <palves@redhat.com>
8189
8190 * windows-nat.c: Include inf-child.h.
8191 (windows_ops): Delete global.
8192 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8193 methods.
8194 (init_windows_ops): Delete function.
8195 (windows_target): New function, based on init_windows_ops, but
8196 inherit inf_child_target.
8197 (_initialize_windows_nat): Use windows_target. Install x86
8198 specific target methods here.
8199
c1966e26
DE
82002014-03-10 Doug Evans <xdje42@gmail.com>
8201
8202 * guile/guile.c (call_initialize_gdb_module): New function.
8203 (initialize_guile): Replace call to scm_init_guile with call to
8204 scm_with_guile.
8205
023db19c
JB
82062014-03-10 Joel Brobecker <brobecker@adacore.com>
8207
8208 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8209 in call to TYPE_CODE macro.
8210
5ec18f2b
JG
82112014-03-10 Jerome Guitton <guitton@adacore.com>
8212
8668be63
JB
8213 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8214 Resolve tagged types to full view.
5ec18f2b 8215
7d03f2eb
HZ
82162014-03-10 Hui Zhu <hui@codesourcery.com>
8217
8218 * target.h (target_insert_breakpoint): Remove "hardware" from its
8219 comments.
8220
c5164cbc
DE
82212014-03-07 Doug Evans <dje@google.com>
8222
8223 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8224
c4a3fee2
DE
82252014-03-07 Doug Evans <dje@google.com>
8226
8227 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8228 Remove unused local comp_dir_attr. Assert exactly one of
8229 stub_comp_unit_die, stub_comp_dir is non-NULL.
8230
3156469c
JB
82312014-03-07 Joel Brobecker <brobecker@adacore.com>
8232
8233 * target.h (complete_target_initialization, add_target):
8234 Add comment.
8235
c1a7b7c6
PA
82362014-03-07 Pedro Alves <palves@redhat.com>
8237
8238 * go32-nat.c: Include inf-child.h.
8239 (go32_ops): Delete global.
8240 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8241 Delete methods.
8242 (go32_create_inferior): Push the passed in target pointer instead
8243 of referencing go32_ops.
8244 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8245 (go32_target): New function, based on init_go32_ops, but inherit
8246 inf_child_target.
8247 (_initialize_go32_nat): Use go32_target. Move parts of
8248 init_go32_ops here.
8249
d3c1a85f
JB
82502014-03-06 Joel Brobecker <brobecker@adacore.com>
8251
8252 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8253 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8254 SYMBOL_VALUE_ADDRESS.
8255 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8256
5fa1d40e
YQ
82572014-03-06 Yao Qi <yao@codesourcery.com>
8258
8259 * breakpoint.c (get_tracepoint_by_number): Remove argument
8260 optional_p. All callers updated. Adjust comments. Update
8261 output message.
8262 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8263
0c13193f
YQ
82642014-03-06 Yao Qi <yao@codesourcery.com>
8265
8266 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8267 early if get_number returns zero. Use 'p' instead of 'args'.
8268
2217da06
YQ
82692014-03-06 Yao Qi <yao@codesourcery.com>
8270
8271 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8272 message.
8273
cc3da688
YQ
82742014-03-06 Yao Qi <yao@codesourcery.com>
8275
8276 PR breakpoints/16508
8277 * tracepoint.c (check_trace_running): New function.
8278 (trace_find_command): Move code to check_trace_running and
8279 call check_trace_running.
8280 (trace_find_pc_command): Likewise.
8281 (trace_find_tracepoint_command): Likewise.
8282 (trace_find_line_command): Likewise.
8283 (trace_find_range_command): Likewise.
8284 * tracepoint.h (check_trace_running): Likewise.
8285 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8286
6a5f844b
YQ
82872014-03-06 Yao Qi <yao@codesourcery.com>
8288
8289 * target.h (struct target_ops) <to_traceframe_info>: Use
8290 TARGET_DEFAULT_NORETURN (tcomplain ()).
8291 * target-delegates.c: Regenerated.
8292
0f26cec1
PA
82932014-03-05 Pedro Alves <palves@redhat.com>
8294
8295 PR gdb/16575
8296 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8297 void. Update comment.
8298 (dcache_xfer_memory): Delete.
8299 (dcache_read_memory_partial): New, based on the read bits of
8300 dcache_xfer_memory.
8301 (dcache_update): Add status parameter. Use ULONGEST for len, and
8302 adjust. Discard cache lines if the reason for the update was
8303 error.
8304 * dcache.h (dcache_xfer_memory): Delete declaration.
8305 (dcache_read_memory_partial): New declaration.
8306 (dcache_update): Update prototype.
8307 * target.c (raw_memory_xfer_partial): Update the dcache here.
8308 (memory_xfer_partial_1): Don't handle dcache writes here.
8309
b2b255bd
MF
83102014-03-05 Mike Frysinger <vapier@gentoo.org>
8311
8312 * remote-sim.c (gdbsim_load): Add const to prog.
8313
5d9cf8a4
TT
83142014-03-03 Tom Tromey <tromey@redhat.com>
8315
8316 * elfread.c (probe_key): Change to bfd_data.
8317 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8318 now per-BFD, not per-objfile.
8319 * stap-probe.c (stap_probe_destroy): Update comment.
8320 (handle_stap_probe): Allocate on the per-BFD obstack.
8321
729662a5
TT
83222014-03-03 Tom Tromey <tromey@redhat.com>
8323
8324 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8325 * breakpoint.c (create_longjmp_master_breakpoint): Use
8326 get_probe_address.
8327 (add_location_to_breakpoint, bkpt_probe_insert_location)
8328 (bkpt_probe_remove_location): Update.
8329 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8330 * elfread.c (elf_symfile_relocate_probe): Remove.
8331 (elf_probe_fns): Update.
8332 (insert_exception_resume_breakpoint): Change type of "probe"
8333 parameter to bound_probe.
8334 (check_exception_resume): Update.
8335 * objfiles.c (objfile_relocate1): Don't relocate probes.
8336 * probe.c (bound_probe_s): New typedef.
8337 (parse_probes): Use get_probe_address. Set sal's objfile.
8338 (find_probe_by_pc): Return a bound_probe.
8339 (collect_probes): Return a VEC(bound_probe_s).
8340 (compare_probes): Update.
8341 (gen_ui_out_table_header_info): Change type of "probes"
8342 parameter. Update.
8343 (info_probes_for_ops): Update.
8344 (get_probe_address): New function.
8345 (probe_safe_evaluate_at_pc): Update.
8346 * probe.h (struct probe_ops) <get_probe_address>: New field.
8347 <set_semaphore, clear_semaphore>: Add objfile parameter.
8348 (struct probe) <objfile>: Remove field.
8349 <arch>: New field.
8350 <address>: Update comment.
8351 (struct bound_probe): New.
8352 (find_probe_by_pc): Return a bound_probe.
8353 (get_probe_address): Declare.
8354 * solib-svr4.c (struct probe_and_action) <address>: New field.
8355 (hash_probe_and_action, equal_probe_and_action): Update.
8356 (register_solib_event_probe): Add address parameter.
8357 (solib_event_probe_at): Update.
8358 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8359 get_probe_address.
8360 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8361 (stap_get_probe_address): New function.
8362 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8363 (compile_probe_arg): Update.
8364 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8365 address.
8366 (handle_stap_probe): Don't relocate the probe.
8367 (stap_relocate): Remove.
8368 (stap_gen_info_probes_table_values): Update.
8369 (stap_probe_ops): Remove stap_relocate.
8370 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8371 (debug_sym_probe_fns): Update.
8372 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8373 * symtab.c (init_sal): Use memset.
8374 * symtab.h (struct symtab_and_line) <objfile>: New field.
8375 * tracepoint.c (start_tracing, stop_tracing): Update.
8376
ff887920
TT
83772014-03-03 Tom Tromey <tromey@redhat.com>
8378
8379 * probe.h (parse_probes, find_probe_by_pc)
8380 (find_probes_in_objfile): Fix comments.
8381
f0407826
DE
83822014-03-02 Doug Evans <xdje42@gmail.com>
8383
8384 * infrun.c (handle_signal_stop): Replace test for
8385 TARGET_WAITKIND_STOPPED with an assert.
8386
35e6a711
DE
83872014-03-02 Doug Evans <xdje42@gmail.com>
8388
8389 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8390
667f9d0b
DE
83912014-03-02 Doug Evans <xdje42@gmail.com>
8392
8393 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8394
dc92ace0
MK
83952014-03-01 Mark Kettenis <kettenis@gnu.org>
8396
8397 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8398
a900370f
MK
83992014-03-01 Mark Kettenis <kettenis@gnu.org>
8400
8401 * i386obsd-nat.c: Include "obsd-nat.h".
8402 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8403 add_target.
8404 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8405
b72a7981
MK
84062014-03-01 Mark Kettenis <kettenis@gnu.org>
8407
8408 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8409
96c70aba
MK
84102014-03-01 Mark Kettenis <kettenis@gnu.org>
8411
8412 * mips64obsd-nat.c: Include "obsd-nath".
8413 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8414 add_target
8415 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8416
874a80af
MK
84172014-03-01 Mark Kettenis <kettenis@gnu.org>
8418
8fd408f1
MK
8419 * amd64obsd-nat.c: Include "obsd-nat,h.
8420 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8421 add_target.
874a80af
MK
8422 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8423
9cf95373
SC
84242014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8425
8426 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8427 (find_overload_match): Update call to find_oload_champ.
8428 (find_oload_champ_namespace_loop): Likewise
8429
863e4da4
MK
84302014-02-28 Mark Kettenis <kettenis@gnu.org>
8431
025cac40
MK
8432 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8433
1ed586ce
MK
8434 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8435 * config/sparc/obsd64.mh: New file.
8436 * sparc64obsd-nat.c: New file.
8437
863e4da4
MK
8438 * obsd-nat.h: New file.
8439 * obsd-nat.c: New file.
8440 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8441 (ALLDEPFILES): Add obsd-nat.c.
8442
89de4da4
TT
84432014-02-28 Tom Tromey <tromey@redhat.com>
8444
8445 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8446 * cli-out.h (cli_ui_out_impl): Now const.
8447 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8448 * ui-out.c (struct ui_out) <impl>: Now const.
8449 (default_ui_out_impl): Now const.
8450 (ui_out_new): Make 'impl' parameter const.
8451 * ui-out.h (ui_out_new): Update.
8452
c725e7b6
MK
84532014-02-27 Mark Kettenis <kettenis@gnu.org>
8454
8455 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8456
670b46b3
MK
84572014-02-27 Mark Kettenis <kettenis@gnu.org>
8458
8459 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8460
c91550fc
JK
84612014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8462
8463 Additional PR 8882 fix.
8464 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8465
2fa0369e
PA
84662014-02-27 Pedro Alves <palves@redhat.com>
8467
8468 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8469 isn't set.
8470
d632a097
PA
84712014-02-27 Pedro Alves <palves@redhat.com>
8472
8473 PR 12702
8474 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8475 * nat/linux-waitpid.c: Include string.h.
8476 (status_to_str): Moved here and made extern.
8477 * nat/linux-waitpid.h (status_to_str): New declaration.
8478
2ebd5a35
HZ
84792014-02-27 Hui Zhu <hui@codesourcery.com>
8480
8481 PR 12702
8482 * infrun.c (ptid_match): Move ...
8483 * common/ptid.c (ptid_match): ... here.
8484 * inferior.h (ptid_match): Move ...
8485 * common/ptid.h (ptid_match): ... here.
8486
3cdd631f
MK
84872014-02-27 Mark Kettenis <kettenis@gnu.org>
8488
8489 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8490 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8491 gdb_target_obs.
8492
bee30a64
MK
84932014-02-27 Mark Kettenis <kettenis@gnu.org>
8494
8495 * obsd-tdep.c (obsd_auxv_parse): New function.
8496 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8497
8498 * gdbarch.sh (auxv_parse): New.
8499 * gdbarch.h: Regenerated.
8500 * gdbarch.c: Regenerated.
8501 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8502
7a5a839f
LC
85032014-02-26 Ludovic Courtès <ludo@gnu.org>
8504
8505 * guile/scm-value.c (gdbscm_history_append_x): New function.
8506 (value_functions): Add it.
8507
31aa7e4e
JB
85082014-02-27 Joel Brobecker <brobecker@adacore.com>
8509
8510 * dwarf2read.c (attr_value_as_address): New function.
8511 (dwarf2_find_base_address, read_call_site_scope): Use
8512 attr_value_as_address in place of DW_ADDR.
8513 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8514 the low and high addresses. Slight rework of the handling
8515 of the high pc being a constant form, and limit it to
8516 DWARF verson 4 or higher.
8517 (dwarf2_record_block_ranges): Likewise.
8518 (read_partial_die): Likewise.
8519 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8520
9b333ba3
TT
85212014-02-26 Tom Tromey <tromey@redhat.com>
8522
8523 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8524
5f6cac40
TT
85252014-02-26 Tom Tromey <tromey@redhat.com>
8526
8527 * elfread.c (elf_read_minimal_symbols): Return early if
8528 minimal symbols have already been read. Add "ei" parameter.
8529 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8530 * minsyms.c (prim_record_minimal_symbol_full): Update.
8531 * objfiles.h (struct objstats) <n_minsyms>: Move...
8532 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8533 * symmisc.c (print_objfile_statistics): Update.
8534
2750ef27
TT
85352014-02-26 Tom Tromey <tromey@redhat.com>
8536
8537 * elfread.c (elf_read_minimal_symbols): New function, from
8538 elf_symfile_read.
8539 (elf_symfile_read): Call it.
8540
34643a32
TT
85412014-02-26 Tom Tromey <tromey@redhat.com>
8542
8543 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8544 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8545 (lookup_minimal_symbol_solib_trampoline)
8546 (lookup_minimal_symbol_by_pc_section_1)
8547 (lookup_minimal_symbol_and_objfile): Update.
8548 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8549 Don't allocate a minimal symbol if minsyms have already been read.
8550 (build_minimal_symbol_hash_tables): Update.
8551 (install_minimal_symbols): Do nothing if minsyms already read.
8552 Use the per-BFD obstack.
8553 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8554 * objfiles.c (allocate_objfile): Call
8555 terminate_minimal_symbol_table later.
8556 (have_minimal_symbols): Update.
8557 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8558 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8559 Move from struct objfile.
8560 <minsyms_read>: New field.
8561 (struct objfile) <msymbols, minimal_symbol_count,
8562 msymbol_hash, msymbol_demangled_hash>: Move.
8563 (ALL_OBJFILE_MSYMBOLS): Update.
8564 * symfile.c (read_symbols): Set minsyms_read.
8565 (reread_symbols): Update.
8566 * symmisc.c (dump_objfile, dump_msymbols): Update.
8567
2273f0ac
TT
85682014-02-26 Tom Tromey <tromey@redhat.com>
8569
8570 * minsyms.c (msymbols_sort): Remove.
8571 * minsyms.h (msymbols_sort): Remove.
8572 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8573 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8574 * elfread.c (elf_symtab_read): Don't add section offsets.
8575 * xcoffread.c (record_minimal_symbol): Don't add section offset
8576 to minimal symbol address.
8577 * somread.c (text_offset, data_offset): Remove.
8578 (som_symtab_read): Don't add section offsets to minimal symbol
8579 addresses.
8580 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8581 Don't add section offsets to minimal symbols.
8582 * coffread.c (coff_symtab_read): Don't add section offsets
8583 to minimal symbol addresses.
8584 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8585 to minimal symbol addresses.
8586 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8587 section offset to minimal symbol addresses.
8588 * mdebugread.c (parse_partial_symbols): Don't add section
8589 offset to minimal symbol addresses.
8590 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8591 offset to minimal symbol addresses.
8592
77e371c0
TT
85932014-02-26 Tom Tromey <tromey@redhat.com>
8594
8595 * ada-lang.c (ada_main_name): Update.
8596 (ada_add_standard_exceptions): Update.
8597 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8598 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8599 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8600 * auxv.c (ld_so_xfer_auxv): Update.
8601 * avr-tdep.c (avr_scan_prologue): Update.
8602 * ax-gdb.c (gen_var_ref): Update.
8603 * blockframe.c (get_pc_function_start)
8604 (find_pc_partial_function_gnu_ifunc): Update.
8605 * breakpoint.c (create_overlay_event_breakpoint)
8606 (create_longjmp_master_breakpoint)
8607 (create_std_terminate_master_breakpoint)
8608 (create_exception_master_breakpoint): Update.
8609 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8610 * c-valprint.c (c_val_print): Update.
8611 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8612 * common/agent.c (agent_look_up_symbols): Update.
8613 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8614 * dwarf2loc.c (call_site_to_target_addr): Update.
8615 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8616 * elfread.c (elf_gnu_ifunc_record_cache)
8617 (elf_gnu_ifunc_resolve_by_got): Update.
8618 * findvar.c (default_read_var_value): Update.
8619 * frame.c (inside_main_func): Update.
8620 * frv-tdep.c (frv_frame_this_id): Update.
8621 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8622 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8623 Update.
8624 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8625 (hppa_hpux_find_dummy_bpaddr): Update.
8626 * hppa-tdep.c (hppa_symbol_address): Update.
8627 * infcmd.c (until_next_command): Update.
8628 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8629 Update.
8630 * linespec.c (minsym_found, add_minsym): Update.
8631 * linux-nat.c (get_signo): Update.
8632 * linux-thread-db.c (inferior_has_bug): Update.
8633 * m32c-tdep.c (m32c_return_value)
8634 (m32c_m16c_address_to_pointer): Update.
8635 * m32r-tdep.c (m32r_frame_this_id): Update.
8636 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8637 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8638 * maint.c (maintenance_translate_address): Update.
8639 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8640 (frob_address): New function.
8641 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8642 frob_address. Rename parameter to "pc_in".
8643 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8644 addresses.
8645 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8646 Update.
8647 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8648 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8649 * objc-lang.c (find_objc_msgsend): Update.
8650 * objfiles.c (objfile_relocate1): Update.
8651 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8652 * p-valprint.c (pascal_val_print): Update.
8653 * parse.c (write_exp_msymbol): Update.
8654 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8655 (ppc_elfv2_skip_entrypoint): Update.
8656 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8657 * printcmd.c (build_address_symbolic, msym_info)
8658 (address_info): Update.
8659 * proc-service.c (ps_pglobal_lookup): Update.
8660 * psymtab.c (find_pc_sect_psymtab_closer)
8661 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8662 Change msymbol parameter to bound_minimal_symbol.
8663 * ravenscar-thread.c (get_running_thread_id): Update.
8664 * remote.c (remote_check_symbols): Update.
8665 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8666 address.
8667 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8668 * solib-dsbt.c (lm_base): Update.
8669 * solib-frv.c (lm_base, main_got): Update.
8670 * solib-irix.c (locate_base): Update.
8671 * solib-som.c (som_solib_create_inferior_hook)
8672 (link_map_start): Update.
8673 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8674 * solib-svr4.c (elf_locate_base, enable_break): Update.
8675 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8676 (flush_ea_cache): Update.
8677 * stabsread.c (define_symbol, scan_file_globals): Update.
8678 * stack.c (find_frame_funname): Update.
8679 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8680 (debug_qf_find_pc_sect_symtab): Update.
8681 * symfile.c (simple_read_overlay_table)
8682 (simple_overlay_update): Update.
8683 * symfile.h (struct quick_symbol_functions)
8684 <find_pc_sect_symtab>: Change type of msymbol to
8685 bound_minimal_symbol.
8686 * symmisc.c (dump_msymbols): Update.
8687 * symtab.c (find_pc_sect_symtab_via_partial)
8688 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8689 (search_symbols, print_msymbol_info): Update.
8690 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8691 (MSYMBOL_VALUE_ADDRESS): Redefine.
8692 (BMSYMBOL_VALUE_ADDRESS): New macro.
8693 * tracepoint.c (scope_info): Update.
8694 * tui/tui-disasm.c (tui_find_disassembly_address)
8695 (tui_get_begin_asm_address): Update.
8696 * valops.c (find_function_in_inferior): Update.
8697 * value.c (value_static_field, value_fn_field): Update.
8698
3b7344d5
TT
86992014-02-26 Tom Tromey <tromey@redhat.com>
8700
8701 * ada-lang.c (ada_update_initial_language): Update.
8702 (ada_main_name, ada_has_this_exception_support): Update.
8703 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8704 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8705 * arm-tdep.c (arm_skip_stub): Update.
8706 * auxv.c (ld_so_xfer_auxv): Update.
8707 * avr-tdep.c (avr_scan_prologue): Update.
8708 * ax-gdb.c (gen_var_ref): Update.
8709 * breakpoint.c (struct breakpoint_objfile_data)
8710 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8711 type to bound_minimal_symbol.
8712 (create_overlay_event_breakpoint)
8713 (create_longjmp_master_breakpoint)
8714 (create_std_terminate_master_breakpoint)
8715 (create_exception_master_breakpoint): Update.
8716 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8717 * c-exp.y (classify_name): Update.
8718 * coffread.c (coff_symfile_read): Update.
8719 * common/agent.c (agent_look_up_symbols): Update.
8720 * d-lang.c (d_main_name): Update.
8721 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8722 * dec-thread.c (enable_dec_thread): Update.
8723 * dwarf2loc.c (call_site_to_target_addr): Update.
8724 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8725 * eval.c (evaluate_subexp_standard): Update.
8726 * findvar.c (struct minsym_lookup_data) <result>: Change type
8727 to bound_minimal_symbol.
8728 <objfile>: Remove.
8729 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8730 * frame.c (inside_main_func): Update.
8731 * frv-tdep.c (frv_frame_this_id): Update.
8732 * gcore.c (call_target_sbrk): Update.
8733 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8734 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8735 Update.
8736 * go-lang.c (go_main_name): Update.
8737 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8738 (hppa_hpux_find_import_stub_for_addr): Update.
8739 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8740 Update. Change return type.
8741 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8742 type.
8743 * jit.c (jit_breakpoint_re_set_internal): Update.
8744 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8745 Update.
8746 * linux-nat.c (get_signo): Update.
8747 * linux-thread-db.c (inferior_has_bug): Update
8748 * m32c-tdep.c (m32c_return_value)
8749 (m32c_m16c_address_to_pointer): Update.
8750 * m32r-tdep.c (m32r_frame_this_id): Update.
8751 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8752 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8753 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8754 lookup_minimal_symbol. Change return type.
8755 (lookup_minimal_symbol): Remove.
8756 (lookup_bound_minimal_symbol): Update.
8757 (lookup_minimal_symbol_text): Change return type.
8758 (lookup_minimal_symbol_solib_trampoline): Change return type.
8759 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8760 (lookup_minimal_symbol_solib_trampoline): Change return type.
8761 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8762 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8763 (value_nsstring, find_imps): Update.
8764 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8765 * p-lang.c (pascal_main_name): Update.
8766 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8767 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8768 * proc-service.c (ps_pglobal_lookup): Update.
8769 * ravenscar-thread.c (get_running_thread_msymbol): Change
8770 return type.
8771 (has_ravenscar_runtime, get_running_thread_id): Update.
8772 * remote.c (remote_check_symbols): Update.
8773 * sol-thread.c (ps_pglobal_lookup): Update.
8774 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8775 * solib-dsbt.c (lm_base): Update.
8776 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8777 Update.
8778 * solib-irix.c (locate_base): Update.
8779 * solib-som.c (som_solib_create_inferior_hook)
8780 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8781 Update.
8782 * solib-spu.c (spu_enable_break): Update.
8783 * solib-svr4.c (elf_locate_base, enable_break): Update.
8784 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8785 (flush_ea_cache): Update.
8786 * stabsread.c (define_symbol): Update.
8787 * symfile.c (simple_read_overlay_table): Update.
8788 * symtab.c (find_pc_sect_line): Update.
8789 * tracepoint.c (scope_info): Update.
8790 * tui-disasm.c (tui_get_begin_asm_address): Update.
8791 * value.c (value_static_field): Update.
8792
40c1a007
TT
87932014-02-26 Tom Tromey <tromey@redhat.com>
8794
8795 * minsyms.c (prim_record_minimal_symbol_full): Use
8796 SET_MSYMBOL_VALUE_ADDRESS.
8797 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8798 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8799 SET_MSYMBOL_VALUE_ADDRESS.
8800 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8801 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8802
efd66ac6
TT
88032014-02-26 Tom Tromey <tromey@redhat.com>
8804
8805 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8806 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8807 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8808 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8809 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8810 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8811 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8812 * ada-lang.c (ada_main_name): Update.
8813 (ada_lookup_simple_minsym): Update.
8814 (ada_make_symbol_completion_list): Update.
8815 (ada_add_standard_exceptions): Update.
8816 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8817 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8818 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8819 * arm-tdep.c (skip_prologue_function): Update.
8820 (arm_skip_stack_protector, arm_skip_stub): Update.
8821 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8822 (arm_wince_skip_main_prologue): Update.
8823 * auxv.c (ld_so_xfer_auxv): Update.
8824 * avr-tdep.c (avr_scan_prologue): Update.
8825 * ax-gdb.c (gen_var_ref): Update.
8826 * block.c (call_site_for_pc): Update.
8827 * blockframe.c (get_pc_function_start): Update.
8828 (find_pc_partial_function_gnu_ifunc): Update.
8829 * breakpoint.c (create_overlay_event_breakpoint): Update.
8830 (create_longjmp_master_breakpoint): Update.
8831 (create_std_terminate_master_breakpoint): Update.
8832 (create_exception_master_breakpoint): Update.
8833 (resolve_sal_pc): Update.
8834 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8835 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8836 Update.
8837 * c-valprint.c (c_val_print): Update.
8838 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8839 * coffread.c (coff_symfile_read): Update.
8840 * common/agent.c (agent_look_up_symbols): Update.
8841 * dbxread.c (find_stab_function_addr): Update.
8842 (end_psymtab): Update.
8843 * dwarf2loc.c (call_site_to_target_addr): Update.
8844 (func_verify_no_selftailcall): Update.
8845 (tailcall_dump): Update.
8846 (call_site_find_chain_1): Update.
8847 (dwarf_expr_reg_to_entry_parameter): Update.
8848 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8849 (elf_gnu_ifunc_resolve_by_got): Update.
8850 * f-valprint.c (info_common_command): Update.
8851 * findvar.c (read_var_value): Update.
8852 * frame.c (get_prev_frame_1): Update.
8853 (inside_main_func): Update.
8854 * frv-tdep.c (frv_skip_main_prologue): Update.
8855 (frv_frame_this_id): Update.
8856 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8857 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8858 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8859 (gnuv3_skip_trampoline): Update.
8860 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8861 (hppa64_hpux_in_solib_call_trampoline): Update.
8862 (hppa_hpux_skip_trampoline_code): Update.
8863 (hppa64_hpux_search_dummy_call_sequence): Update.
8864 (hppa_hpux_find_import_stub_for_addr): Update.
8865 (hppa_hpux_find_dummy_bpaddr): Update.
8866 * hppa-tdep.c (hppa_symbol_address)
8867 (hppa_lookup_stub_minimal_symbol): Update.
8868 * i386-tdep.c (i386_skip_main_prologue): Update.
8869 (i386_pe_skip_trampoline_code): Update.
8870 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8871 * infcall.c (get_function_name): Update.
8872 * infcmd.c (until_next_command): Update.
8873 * jit.c (jit_breakpoint_re_set_internal): Update.
8874 (jit_inferior_init): Update.
8875 * linespec.c (minsym_found): Update.
8876 (add_minsym): Update.
8877 * linux-fork.c (info_checkpoints_command): Update.
8878 * linux-nat.c (get_signo): Update.
8879 * linux-thread-db.c (inferior_has_bug): Update.
8880 * m32c-tdep.c (m32c_return_value): Update.
8881 (m32c_m16c_address_to_pointer): Update.
8882 (m32c_m16c_pointer_to_address): Update.
8883 * m32r-tdep.c (m32r_frame_this_id): Update.
8884 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8885 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8886 * maint.c (maintenance_translate_address): Update.
8887 * minsyms.c (add_minsym_to_hash_table): Update.
8888 (add_minsym_to_demangled_hash_table): Update.
8889 (msymbol_objfile): Update.
8890 (lookup_minimal_symbol): Update.
8891 (iterate_over_minimal_symbols): Update.
8892 (lookup_minimal_symbol_text): Update.
8893 (lookup_minimal_symbol_by_pc_name): Update.
8894 (lookup_minimal_symbol_solib_trampoline): Update.
8895 (lookup_minimal_symbol_by_pc_section_1): Update.
8896 (lookup_minimal_symbol_and_objfile): Update.
8897 (prim_record_minimal_symbol_full): Update.
8898 (compare_minimal_symbols): Update.
8899 (compact_minimal_symbols): Update.
8900 (build_minimal_symbol_hash_tables): Update.
8901 (install_minimal_symbols): Update.
8902 (terminate_minimal_symbol_table): Update.
8903 (find_solib_trampoline_target): Update.
8904 (minimal_symbol_upper_bound): Update.
8905 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8906 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8907 (mips_skip_pic_trampoline_code): Update.
8908 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8909 * objc-lang.c (selectors_info): Update.
8910 (classes_info): Update.
8911 (find_methods): Update.
8912 (find_imps): Update.
8913 (find_objc_msgsend): Update.
8914 * objfiles.c (objfile_relocate1): Update.
8915 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8916 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8917 * p-valprint.c (pascal_val_print): Update.
8918 * parse.c (write_exp_msymbol): Update.
8919 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8920 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8921 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8922 * printcmd.c (build_address_symbolic): Update.
8923 (sym_info): Update.
8924 (address_info): Update.
8925 * proc-service.c (ps_pglobal_lookup): Update.
8926 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8927 (find_pc_sect_psymtab): Update.
8928 * python/py-framefilter.c (py_print_frame): Update.
8929 * ravenscar-thread.c (get_running_thread_id): Update.
8930 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8931 Update.
8932 * remote.c (remote_check_symbols): Update.
8933 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8934 (rs6000_skip_trampoline_code): Update.
8935 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8936 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8937 * solib-dsbt.c (lm_base): Update.
8938 * solib-frv.c (lm_base): Update.
8939 (main_got): Update.
8940 * solib-irix.c (locate_base): Update.
8941 * solib-som.c (som_solib_create_inferior_hook): Update.
8942 (som_solib_desire_dynamic_linker_symbols): Update.
8943 (link_map_start): Update.
8944 * solib-spu.c (spu_enable_break): Update.
8945 (ocl_enable_break): Update.
8946 * solib-svr4.c (elf_locate_base): Update.
8947 (enable_break): Update.
8948 * spu-tdep.c (spu_get_overlay_table): Update.
8949 (spu_catch_start): Update.
8950 (flush_ea_cache): Update.
8951 * stabsread.c (define_symbol): Update.
8952 (scan_file_globals): Update.
8953 * stack.c (find_frame_funname): Update.
8954 (frame_info): Update.
8955 * symfile.c (simple_read_overlay_table): Update.
8956 (simple_overlay_update): Update.
8957 * symmisc.c (dump_msymbols): Update.
8958 * symtab.c (fixup_section): Update.
8959 (find_pc_sect_line): Update.
8960 (skip_prologue_sal): Update.
8961 (search_symbols): Update.
8962 (print_msymbol_info): Update.
8963 (rbreak_command): Update.
8964 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8965 (completion_list_objc_symbol): Update.
8966 (default_make_symbol_completion_list_break_on): Update.
8967 * tracepoint.c (scope_info): Update.
8968 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8969 (tui_get_begin_asm_address): Update.
8970 * valops.c (find_function_in_inferior): Update.
8971 * value.c (value_static_field): Update.
8972 (value_fn_field): Update.
8973
50e65b17
TT
89742014-02-26 Tom Tromey <tromey@redhat.com>
8975
8976 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8977 bound minimal symbols. Move code that knows about minsym
8978 table layout...
8979 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8980 function.
8981 * minsyms.h (minimal_symbol_upper_bound): Declare.
8982 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8983 minimal_symbol_upper_bound.
8984
1b588015
JB
89852014-02-27 Joel Brobecker <brobecker@adacore.com>
8986
8987 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8988 Use the type's name if its basic type does not have a tag.
8989
dbb9c2b1
JB
89902014-02-27 Joel Brobecker <brobecker@adacore.com>
8991
8992 * dwarf2read.c (read_subrange_type): Add comment.
8993
55426c9d
JB
89942014-02-27 Joel Brobecker <brobecker@adacore.com>
8995
8996 * dwarf2read.c (update_enumeration_type_from_children): New
8997 function, mostly extracted from process_structure_scope.
8998 (read_enumeration_type): Call update_enumeration_type_from_children.
8999 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9000 and flag_flag_enum fields.
9001
f2fce0ca
PA
90022014-02-26 Pedro Alves <palves@redhat.com>
9003
9004 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9005 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9006 to_xfer_partial method.
9007
7a44e40e
PA
90082014-02-26 Pedro Alves <palves@redhat.com>
9009
9010 * target.c (complete_target_initialization): Don't install
9011 default_xfer_partial as to_xfer_partial hook.
9012 (nomemory): Delete.
9013 (update_current_target): Don't INHERIT nor de_fault
9014 deprecated_xfer_memory. Delete de_fault macro.
9015 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9016 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9017 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9018 field.
9019
bd265cd0
PA
90202014-02-26 Pedro Alves <palves@redhat.com>
9021
9022 * go32-nat.c (my_write_child): New function.
9023 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9024 (go32_xfer_partial): New function.
9025 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9026 Instead install a to_xfer_partial hook.
9027
9d46c4e5
PA
90282014-02-26 Pedro Alves <palves@redhat.com>
9029
9030 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9031 to_xfer_partial helper. Rewrite.
9032 (procfs_xfer_partial): New function.
9033 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9034 Install a to_xfer_partial hook.
9035
a1583b1f
PA
90362014-02-26 Pedro Alves <palves@redhat.com>
9037
9038 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9039 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9040 (m32r_xfer_partial): New function.
9041 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9042 Install a to_xfer_partial hook.
9043
6df1b29f
PA
90442014-02-26 Pedro Alves <palves@redhat.com>
9045
9046 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9047 helper.
9048 (mips_xfer_partial): New function.
9049 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9050 hook. Install a to_xfer_partial hook.
9051
dc53a7ad
JB
90522014-02-26 Joel Brobecker <brobecker@adacore.com>
9053
9054 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9055 * gdbtypes.c (create_array_type_with_stride): New function,
9056 renaming create_array_type, but with an added parameter
9057 called "bit_stride".
9058 (create_array_type): Re-implement using
9059 create_array_type_with_stride.
9060 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9061 and DW_AT_bit_stride attributes.
9062
12ab52e9
PA
90632014-02-26 Pedro Alves <palves@redhat.com>
9064
9065 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9066 task-specific breakpoints.
9067
d16461ae
PA
90682014-02-25 Pedro Alves <palves@redhat.com>
9069
9070 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9071 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9072
a8b16220
SS
90732014-02-25 Stan Shebs <stan@codesourcery.com>
9074
9075 * defs.h: Annotate comments for Doxygen.
9076
b9e795ee
TT
90772014-02-25 Tom Tromey <tromey@redhat.com>
9078
9079 * target.h (target_ignore): Don't declare.
9080 * target.c (target_ignore): Remove.
9081
849c862e
JK
90822014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9083
9084 PR gdb/16626
9085 * auto-load.c (auto_load_objfile_script_1): Change filename to
9086 debugfile.
9087
475109d8
JB
90882014-02-25 Joel Brobecker <brobecker@adacore.com>
9089
9090 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9091 documentation. Adjust prototype to match the target_ops
9092 to_xfer_partial method. Adjust implementation accordingly.
9093
e186c3bd
HZ
90942014-02-25 Hui Zhu <hui@codesourcery.com>
9095
9096 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9097 to_traceframe_info.
9098
6d451942
KB
90992014-02-25 Kevin Buettner <kevinb@redhat.com>
9100
041ab8b4 9101 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9102 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9103 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9104 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9105 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9106 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9107 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9108 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9109 New constants.
9110 (rl78_register_type): Use a data pointer type for SP and
9111 new pseudo registers mentioned above. Use a 16 bit integer
9112 type for all other register pairs.
9113 (rl78_register_name, rl78_g10_register_name): Update for
9114 new pseudo registers.
9115 (rl78_pseudo_register_read): Likewise.
9116 (rl78_pseudo_register_write): Likewise.
9117 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9118 to the newly added pseudo registers.
9119
eddf0bae
DE
91202014-02-24 Doug Evans <dje@google.com>
9121
9122 * value.c (record_latest_value): Fix comment.
9123 * printcmd.c (print_command_1): Remove code to handle -1 return from
9124 record_latest_value.
9125
e96027e0
PA
91262014-02-24 Pedro Alves <palves@redhat.com>
9127
9128 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9129 deprecated_xfer_memory hook.
9130 (procfs_xfer_partial): Call procfs_xfer_memory instead
9131 of the deprecated_xfer_memory target hook.
9132 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9133 helper.
9134
0837c976
YZ
91352014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9136
9137 * windows-nat.c (windows_xfer_shared_libraries): Return
9138 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9139 requested object is TARGET_OBJECT_LIBRARIES.
9140
bc113b4e
YQ
91412014-02-24 Yao Qi <yao@codesourcery.com>
9142
9143 * target.h (enum target_xfer_status)
9144 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9145 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9146 explicitly. New.
9147 * corefile.c (memory_error_message): User updated.
9148 * exec.c (section_table_read_available_memory): Likewise.
9149 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9150 * target.c (target_xfer_status_to_string): Likewise.
9151 (raw_memory_xfer_partial): Likewise.
9152 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9153 * valops.c (read_value_memory): Likewise.
9154 * exec.h: Update comments.
9155
01cb8804
YQ
91562014-02-24 Yao Qi <yao@codesourcery.com>
9157
9158 * target.c (target_xfer_status_to_string): Rename argument err
9159 to status.
9160 * target.h (target_xfer_status_to_string): Update declaration.
9161 Replace target_xfer_error_to_string with
9162 target_xfer_status_to_string in comment.
9163
93063aa6
YQ
91642014-02-24 Yao Qi <yao@codesourcery.com>
9165
9166 * mips-linux-nat.c (super_close): Update its type.
9167 (mips_linux_close): Pass 'self' to super_close.
9168
5c328c05
YQ
91692014-02-24 Yao Qi <yao@codesourcery.com>
9170
9171 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9172 * corefile.c (read_memory): Adjusted.
9173 * target.c (target_write_with_progress): Adjusted.
9174
f73023dd
YQ
91752014-02-23 Yao Qi <yao@codesourcery.com>
9176
9177 Revert two patches:
9178
9179 2013-10-25 Yao Qi <yao@codesourcery.com>
9180
9181 * remote.c (remote_traceframe_info): Return early if
9182 traceframe is not selected.
9183
9184 2013-07-19 Yao Qi <yao@codesourcery.com>
9185
9186 * target.c (update_current_target): Change the default action
9187 of 'to_traceframe_info' from tcomplain to return_zero.
9188 * target.h (struct target_ops) <to_traceframe_info>: Add more
9189 comments.
9190
5a2eb0ef
YQ
91912014-02-23 Yao Qi <yao@codesourcery.com>
9192
9193 * valops.c (read_value_memory): Rewrite it. Call
9194 target_xfer_partial in a loop.
9195 * exec.h (section_table_available_memory): Remove declaration.
9196 Move comments to ...
9197 * exec.c (section_table_available_memory): ... here. Make it
9198 static.
9199
1ee79381
YQ
92002014-02-23 Yao Qi <yao@codesourcery.com>
9201
9202 * exec.c (section_table_read_available_memory): New function.
9203 * exec.h (section_table_read_available_memory): Declare.
9204 * ctf.c (ctf_xfer_partial): Call
9205 section_table_read_available_memory.
9206 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9207
1ca49d37
YQ
92082014-02-23 Yao Qi <yao@codesourcery.com>
9209
9210 * ctf.c (ctf_xfer_partial): Move code to ...
9211 * exec.c (exec_read_partial_read_only): ... it. New function.
9212 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9213 * tracefile.c: Include "exec.h".
9214 * exec.h (exec_read_partial_read_only): Declare.
9215
a283690e
YQ
92162014-02-23 Yao Qi <yao@codesourcery.com>
9217
9218 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9219 (tfile_has_memory): Remove.
9220 (init_tfile_ops): Don't set fields to_has_all_memory and
9221 to_has_memory of tfile_ops.
9222 * tracefile.c (tracefile_has_all_memory): New function.
9223 (tracefile_has_memory): New function.
9224 (init_tracefile_ops): Initialize fields to_has_all_memory and
9225 to_has_memory of 'ops'.
9226
12e03cd0
YQ
92272014-02-23 Yao Qi <yao@codesourcery.com>
9228
9229 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9230 (ctf_thread_alive, ctf_get_trace_status): Remove.
9231 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9232 init_tracefile_ops.
9233 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9234 (tfile_has_stack, tfile_has_registers): Remove.
9235 (tfile_thread_alive): Remove.
9236 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9237 init_tracefile_ops.
9238 * tracefile.c (tracefile_has_stack): New function.
9239 (tracefile_has_registers): New function.
9240 (tracefile_thread_alive): New function.
9241 (tracefile_get_trace_status): New function.
9242 (init_tracefile_ops): New function.
9243 * tracefile.h (init_tracefile_ops): Declare.
9244
11395323
YQ
92452014-02-23 Yao Qi <yao@codesourcery.com>
9246
9247 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9248 (O_LARGEFILE): Likewise.
9249 (tfile_ops): Likewise.
9250 (TRACE_HEADER_SIZE): Likewise.
9251 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9252 (cur_data_size): Likewise.
9253 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9254 (tfile_close, tfile_files_info): Likewise.
9255 (tfile_get_trace_status): Likewise.
9256 (tfile_get_tracepoint_status): Likewise.
9257 (tfile_get_traceframe_address): Likewise.
9258 (tfile_trace_find, match_blocktype): Likewise.
9259 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9260 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9261 (tfile_get_trace_state_variable_value): Likewise.
9262 (tfile_has_all_memory, tfile_has_memory): Likewise.
9263 (tfile_has_stack, tfile_has_registers): Likewise.
9264 (tfile_thread_alive, build_traceframe_info): Likewise.
9265 (tfile_traceframe_info, init_tfile_ops): Likewise.
9266 (_initialize_tracepoint): Don't call init_tfile_ops
9267 and add_target_with_completer.
9268 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9269 exec.h, completer.h and filenames.h.
9270 (_initialize_tracefile_tfile): New function.
9271
7951c4eb
YQ
92722014-02-23 Yao Qi <yao@codesourcery.com>
9273
9274 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9275 tracefile-tfile.o.
9276 (HFILES_NO_SRCDIR): Add tracefile.h.
9277 * ctf.c: Include "tracefile.h".
9278 * tracefile.h: New file.
9279 * tracefile.c: New file
9280 * tracefile-tfile.c: New file.
9281 * tracepoint.c: Include "tracefile.h".
9282 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9283 (stop_reason_names): Add const.
9284 (trace_file_writer_xfree): Move it to tracefile.c.
9285 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9286 (trace_save_ctf): Likewise.
9287 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9288 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9289 (tfile_write_header, tfile_write_regblock_type): Likewise.
9290 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9291 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9292 (tfile_write_raw_data, tfile_end): Likewise.
9293 (tfile_trace_file_writer_new): Likewise.
9294 (free_uploaded_tp): Make it extern.
9295 (free_uploaded_tsv): Make it extern.
9296 (_initialize_tracepoint): Move code to register command 'tsave'
9297 to tracefile.c.
9298 * tracepoint.h (stop_reason_names): Declare.
9299 (struct trace_frame_write_ops): Move it to tracefile.h.
9300 (struct trace_file_write_ops): Likewise.
9301 (struct trace_file_writer): Likewise.
9302 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9303
184cd072
JK
93042014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9305
9306 PR gdb/16594
9307 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9308 process name.
9309 (get_cores_used_by_process): New parameter num_cores, use it.
9310 (linux_xfer_osdata_processes): Pass num_cores to it.
9311 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9312 process name.
9313
c63528fc
AK
93142014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9315
9316 * target.c (memory_xfer_partial): Fix length arg in call to
9317 breakpoint_xfer_memory.
9318
d7b30f67
SDJ
93192014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9320
9321 PR tdep/16397
9322 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9323 number comes after the + or - signs. Adjust length of register
9324 name to be extracted.
9325
8838afaf
TT
93262014-02-20 Tom Tromey <tromey@redhat.com>
9327
9328 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9329 (ada_varobj_ops): Mark "extern".
9330
05227d14
TT
93312014-02-20 Tom Tromey <tromey@redhat.com>
9332
9333 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9334
1254eefc
DE
93352014-02-20 Doug Evans <xdje42@gmail.com>
9336
9337 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9338 All callers updated.
9339 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9340 All callers updated.
9341 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9342 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9343
adde2bff
DE
93442014-02-20 lin zuojian <manjian2006@gmail.com>
9345 Joel Brobecker <brobecker@adacore.com>
9346 Doug Evans <xdje42@gmail.com>
9347
9348 PR symtab/16581
9349 * dwarf2read.c (struct die_info): New member in_process.
9350 (reset_die_in_process): New function.
9351 (process_die): Set it at the start, reset when returning.
9352 (inherit_abstract_dies): Only call process_die if origin_child_die
9353 not already being processed.
9354
3be75f87
JB
93552014-02-20 Joel Brobecker <brobecker@adacore.com>
9356
9357 * windows-nat.c (handle_unload_dll): Add function documentation.
9358 (do_initial_windows_stuff): Add comment explaining why we wait
9359 until after inferior initialization has finished before
9360 processing all DLLs.
9361
47f7ffdb
JB
93622014-02-20 Joel Brobecker <brobecker@adacore.com>
9363
9364 * windows-nat.c (get_module_name): Delete.
9365 (windows_get_exec_module_filename): New function, mostly
9366 inspired from get_module_name.
9367 (windows_pid_to_exec_file): Replace call to get_module_name
9368 by call to windows_get_exec_module_filename.
9369
1cd9feab
JB
93702014-02-20 Joel Brobecker <brobecker@adacore.com>
9371
9372 * windows-nat.c (handle_load_dll): Rewrite this function's
9373 introductory comment. Remove code using get_module_name
9374 to get the DLL's name.
9375
ea39ad35
JB
93762014-02-20 Joel Brobecker <brobecker@adacore.com>
9377
9378 * windows-nat.c (get_windows_debug_event): Ignore
9379 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9380 if windows_initialization_done == 0.
9381 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9382 Adjust implementation to always load all DLLs.
9383 (do_initial_windows_stuff): Replace call to
9384 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9385
95060284
JB
93862014-02-20 Joel Brobecker <brobecker@adacore.com>
9387
9388 * windows-nat.c (_initialize_windows_nat): Deprecate the
9389 "dll-symbols" command. Turn the "add-shared-symbol-files"
9390 and "assf" aliases into commands, and deprecate them as well.
9391 * NEWS: Add entry explaining that "dll-symbols" and its two
9392 aliases are now deprecated.
9393
8d4fdb12
JB
93942014-02-20 Joel Brobecker <brobecker@adacore.com>
9395
9396 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9397 new-line in debug string. Remove trailing spaces.
9398
1b281443
SS
93992014-02-19 Stan Shebs <stan@codesourcery.com>
9400
9401 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9402
f7bd0f78
SC
94032014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9404
9405 * NEWS: Add entry for the new feature
9406 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9407 and class values.
9408
399ebc3d
SS
94092014-02-19 Stan Shebs <stan@codesourcery.com>
9410
9411 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9412
c658158d
PA
94132014-02-19 Pedro Alves <palves@redhat.com>
9414
9415 * common/ptid.h (struct ptid): Mention that process_stratum
9416 targets should prefer ptid.lwp.
9417
ba348170
PA
94182014-02-19 Pedro Alves <palves@redhat.com>
9419
9420 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9421 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9422 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9423 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9424 store remote thread ids rather than ptid.tid.
9425 (_initialize_remote): Adjust.
9426
ac01945b
TT
94272014-02-19 Tom Tromey <tromey@redhat.com>
9428
9429 * target.c (target_get_unwinder): Rewrite.
9430 (target_get_tailcall_unwinder): Rewrite.
9431 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9432 (record_btrace_to_get_tailcall_unwinder): New function.
9433 (init_record_btrace_ops): Update.
9434 * target.h (struct target_ops) <to_get_unwinder,
9435 to_get_tailcall_unwinder>: Now function pointers. Use
9436 TARGET_DEFAULT_RETURN.
9437
8476dc92
TT
94382014-02-19 Tom Tromey <tromey@redhat.com>
9439
9440 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9441 argument.
9442 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9443
c0eca49f
TT
94442014-02-19 Tom Tromey <tromey@redhat.com>
9445
9446 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9447 directly.
9448 * target-delegates.c: Rebuild.
9449 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9450 TARGET_DEFAULT_FUNC.
9451 * target.c (default_target_decr_pc_after_break): Rename from
9452 forward_target_decr_pc_after_break. Simplify.
9453 (target_decr_pc_after_break): Rely on delegation.
9454
596b6b39
TT
94552014-02-19 Tom Tromey <tromey@redhat.com>
9456
9457 * target.c (update_current_target): Do not INHERIT to_doc or
9458 to_magic. Do not de_fault to_open or to_close.
9459
b427c1bc
TT
94602014-02-19 Tom Tromey <tromey@redhat.com>
9461
9462 * gcore.h (objfile_find_memory_regions): Declare.
9463 * gcore.c (objfile_find_memory_regions): No longer static. Add
9464 "self" argument.
9465 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9466 * exec.c: Include gcore.h.
9467 (exec_set_find_memory_regions): Remove.
9468 (exec_find_memory_regions): Remove.
9469 (exec_do_find_memory_regions): Remove.
9470 (init_exec_ops): Update.
9471 * defs.h (exec_set_find_memory_regions): Remove.
9472
9b144037
TT
94732014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 * target-delegates.c: Rebuild.
9476 * target.h (struct target_ops) <to_extra_thread_info,
9477 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9478 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9479 not 0, in TARGET_DEFAULT_RETURN.
9480
555bbdeb
TT
94812014-02-19 Tom Tromey <tromey@redhat.com>
9482
9483 * target.c (complete_target_initialization): Remove casts. Use
9484 return_zero_has_execution.
9485 (return_zero): Add "ignore" argument.
9486 (return_zero_has_execution): New function.
9487 (init_dummy_target): Remove casts. Use
9488 return_zero_has_execution.
9489
be4ddd36
TT
94902014-02-19 Tom Tromey <tromey@redhat.com>
9491
9492 * target.c (update_current_target): Update comments. Do not
9493 INHERIT to_stratum.
9494
2117c711
TT
94952014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9498 needed.
9499 * corelow.c (core_read_description): Delegate when needed.
9500 * remote.c (remote_read_description): Delegate when needed.
9501 * target-delegates.c: Rebuild.
9502 * target.c (target_read_description): Rewrite.
9503 * target.h (struct target_ops) <to_read_description>: Update
9504 comment. Use TARGET_DEFAULT_RETURN.
9505
e88ef65c
TT
95062014-02-19 Tom Tromey <tromey@redhat.com>
9507
9508 * target-delegates.c: Rebuild.
9509 * target.c (update_current_target): Don't inherit or default
9510 to_can_run.
9511 (find_default_run_target): Check against delegate_can_run.
9512 * target.h (struct target_ops) <to_can_run>: Use
9513 TARGET_DEFAULT_RETURN.
9514
86a0854a
TT
95152014-02-19 Tom Tromey <tromey@redhat.com>
9516
9517 * target-delegates.c: Rebuild.
9518 * target.c (target_disconnect): Unconditionally delegate.
9519 * target.h (struct target_ops) <to_disconnect>: Use
9520 TARGET_DEFAULT_NORETURN.
9521
ee97f592
TT
95222014-02-19 Tom Tromey <tromey@redhat.com>
9523
9524 * record.c (record_stop): Unconditionally delegate.
9525 * target-delegates.c: Rebuild.
9526 * target.c (target_stop_recording): Unconditionally delegate.
9527 * target.h (struct target_ops) <to_stop_recording>: Use
9528 TARGET_DEFAULT_IGNORE.
9529
6dc7fcf4
TT
95302014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target-delegates.c: Rebuild.
9533 * target.c (target_enable_btrace): Unconditionally delegate.
9534 * target.h (struct target_ops) <to_enable_btrace>: Use
9535 TARGET_DEFAULT_NORETURN.
9536
eb5b20d4
TT
95372014-02-19 Tom Tromey <tromey@redhat.com>
9538
9539 * target-delegates.c: Rebuild.
9540 * target.c (target_read_btrace): Unconditionally delegate.
9541 * target.h (struct target_ops) <to_read_btrace>: Use
9542 TARGET_DEFAULT_NORETURN.
9543
9ace480d
TT
95442014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target-delegates.c: Rebuild.
9547 * target.c (target_teardown_btrace): Unconditionally delegate.
9548 * target.h (struct target_ops) <to_teardown_btrace>: Use
9549 TARGET_DEFAULT_NORETURN.
9550
8dc292d3
TT
95512014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * target-delegates.c: Rebuild.
9554 * target.c (target_disable_btrace): Unconditionally delegate.
9555 * target.h (struct target_ops) <to_disable_btrace>: Use
9556 TARGET_DEFAULT_NORETURN.
9557
58a5184e
TT
95582014-02-19 Tom Tromey <tromey@redhat.com>
9559
9560 * target-delegates.c: Rebuild.
9561 * target.c (default_search_memory): New function.
9562 (simple_search_memory): Update comment.
9563 (target_search_memory): Unconditionally delegate.
9564 * target.h (struct target_ops) <to_search_memory>: Use
9565 TARGET_DEFAULT_FUNC.
9566
8de71aab
TT
95672014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * auxv.c (default_auxv_parse): No longer static.
9570 (target_auxv_parse): Unconditionally delegate.
9571 * auxv.h (default_auxv_parse): Declare.
9572 * target-delegates.c: Rebuild.
9573 * target.c: Include auxv.h.
9574 * target.h (struct target_ops) <to_auxv_parse>: Use
9575 TARGET_DEFAULT_FUNC.
9576
6b2c5a57
TT
95772014-02-19 Tom Tromey <tromey@redhat.com>
9578
9579 * target-delegates.c: Rebuild.
9580 * target.c (target_memory_map): Unconditionally delegate.
9581 * target.h (struct target_ops) <to_memory_map>: Use
9582 TARGET_DEFAULT_RETURN.
9583
cbffc065
TT
95842014-02-19 Tom Tromey <tromey@redhat.com>
9585
9586 * target-delegates.c: Rebuild.
9587 * target.c (target_thread_alive): Unconditionally delegate.
9588 * target.h (struct target_ops) <to_thread_alive>: Use
9589 TARGET_DEFAULT_RETURN.
9590
f09e2107
TT
95912014-02-19 Tom Tromey <tromey@redhat.com>
9592
9593 * target-delegates.c: Rebuild.
9594 * target.c (target_save_record): Unconditionally delegate.
9595 * target.h (struct target_ops) <to_save_record>: Use
9596 TARGET_DEFAULT_NORETURN.
9597
07366925
TT
95982014-02-19 Tom Tromey <tromey@redhat.com>
9599
9600 * target-delegates.c: Rebuild.
9601 * target.c (target_delete_record): Unconditionally delegate.
9602 * target.h (struct target_ops) <to_delete_record>: Use
9603 TARGET_DEFAULT_NORETURN.
9604
dd2e9d25
TT
96052014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * target-delegates.c: Rebuild.
9608 * target.c (target_record_is_replaying): Unconditionally
9609 delegate.
9610 * target.h (struct target_ops) <to_record_is_replaying>: Use
9611 TARGET_DEFAULT_RETURN.
9612
671e76cc
TT
96132014-02-19 Tom Tromey <tromey@redhat.com>
9614
9615 * target-delegates.c: Rebuild.
9616 * target.c (target_goto_record_begin): Unconditionally delegate.
9617 * target.h (struct target_ops) <to_goto_record_begin>: Use
9618 TARGET_DEFAULT_NORETURN.
9619
e9179bb3
TT
96202014-02-19 Tom Tromey <tromey@redhat.com>
9621
9622 * target-delegates.c: Rebuild.
9623 * target.c (target_goto_record_end): Unconditionally delegate.
9624 * target.h (struct target_ops) <to_goto_record_end>: Use
9625 TARGET_DEFAULT_NORETURN.
9626
05969c84
TT
96272014-02-19 Tom Tromey <tromey@redhat.com>
9628
9629 * target-delegates.c: Rebuild.
9630 * target.c (target_goto_record): Unconditionally delegate.
9631 * target.h (struct target_ops) <to_goto_record>: Use
9632 TARGET_DEFAULT_NORETURN.
9633
3679abfa
TT
96342014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target-delegates.c: Rebuild.
9637 * target.c (target_insn_history): Unconditionally delegate.
9638 * target.h (struct target_ops) <to_insn_history>: Use
9639 TARGET_DEFAULT_NORETURN.
9640
8444ab58
TT
96412014-02-19 Tom Tromey <tromey@redhat.com>
9642
9643 * target-delegates.c: Rebuild.
9644 * target.c (target_insn_history_from): Unconditionally delegate.
9645 * target.h (struct target_ops) <to_insn_history_from>: Use
9646 TARGET_DEFAULT_NORETURN.
9647
c29302cc
TT
96482014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target-delegates.c: Rebuild.
9651 * target.c (target_insn_history_range): Unconditionally delegate.
9652 * target.h (struct target_ops) <to_insn_history_range>: Use
9653 TARGET_DEFAULT_NORETURN.
9654
170049d4
TT
96552014-02-19 Tom Tromey <tromey@redhat.com>
9656
9657 * target-delegates.c: Rebuild.
9658 * target.c (target_call_history): Unconditionally delegate.
9659 * target.h (struct target_ops) <to_call_history>: Use
9660 TARGET_DEFAULT_NORETURN.
9661
16fc27d6
TT
96622014-02-19 Tom Tromey <tromey@redhat.com>
9663
9664 * target-delegates.c: Rebuild.
9665 * target.c (target_call_history_from): Unconditionally delegate.
9666 * target.h (struct target_ops) <to_call_history_from>: Use
9667 TARGET_DEFAULT_NORETURN.
9668
115d9817
TT
96692014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * target-delegates.c: Rebuild.
9672 * target.c (target_call_history_range): Unconditionally delegate.
9673 * target.h (struct target_ops) <to_call_history_range>: Use
9674 TARGET_DEFAULT_NORETURN.
9675
eb276a6b
TT
96762014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target-delegates.c: Rebuild.
9679 * target.c (target_verify_memory): Unconditionally delegate.
9680 * target.h (struct target_ops) <to_verify_memory>: Use
9681 TARGET_DEFAULT_NORETURN.
9682
9e538d0d
TT
96832014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target-delegates.c: Rebuild.
9686 * target.c (target_core_of_thread): Unconditionally delegate.
9687 * target.h (struct target_ops) <to_core_of_thread>: Use
9688 TARGET_DEFAULT_RETURN.
9689
f6fb2925
TT
96902014-02-19 Tom Tromey <tromey@redhat.com>
9691
9692 * target-delegates.c: Rebuild.
9693 * target.c (target_flash_done): Unconditionally delegate.
9694 * target.h (struct target_ops) <to_flash_done>: Use
9695 TARGET_DEFAULT_NORETURN.
9696
e8a6c6ac
TT
96972014-02-19 Tom Tromey <tromey@redhat.com>
9698
9699 * target-delegates.c: Rebuild.
9700 * target.c (target_flash_erase): Unconditionally delegate.
9701 * target.h (struct target_ops) <to_flash_erase>: Use
9702 TARGET_DEFAULT_NORETURN.
9703
7e35c012
TT
97042014-02-19 Tom Tromey <tromey@redhat.com>
9705
9706 * target-delegates.c: Rebuild.
9707 * target.c (target_get_section_table): Unconditionally delegate.
9708 * target.h (struct target_ops) <to_get_section_table>: Use
9709 TARGET_DEFAULT_RETURN.
9710
770234d3
TT
97112014-02-19 Tom Tromey <tromey@redhat.com>
9712
9713 * target-delegates.c: Rebuild.
9714 * target.c (target_pid_to_str): Unconditionally delegate.
9715 (init_dummy_target): Don't initialize to_pid_to_str.
9716 (default_pid_to_str): Rename from dummy_pid_to_str.
9717 * target.h (struct target_ops) <to_pid_to_str>: Use
9718 TARGET_DEFAULT_FUNC.
9719
09b0dc2b
TT
97202014-02-19 Tom Tromey <tromey@redhat.com>
9721
9722 * target-delegates.c: Rebuild.
9723 * target.c (target_find_new_threads): Unconditionally delegate.
9724 * target.h (struct target_ops) <to_find_new_threads>: Use
9725 TARGET_DEFAULT_RETURN.
9726
7d4f8efa
TT
97272014-02-19 Tom Tromey <tromey@redhat.com>
9728
9729 * target-delegates.c: Rebuild.
9730 * target.c (target_program_signals): Unconditionally delegate.
9731 * target.h (struct target_ops) <to_program_signals>: Use
9732 TARGET_DEFAULT_IGNORE.
9733
035cad7f
TT
97342014-02-19 Tom Tromey <tromey@redhat.com>
9735
9736 * target-delegates.c: Rebuild.
9737 * target.c (target_pass_signals): Unconditionally delegate.
9738 * target.h (struct target_ops) <to_pass_signals>: Use
9739 TARGET_DEFAULT_IGNORE.
9740
8d657035
TT
97412014-02-19 Tom Tromey <tromey@redhat.com>
9742
9743 * target-delegates.c: Rebuild.
9744 * target.c (default_mourn_inferior): New function.
9745 (target_mourn_inferior): Unconditionally delegate.
9746 * target.h (struct target_ops) <to_mourn_inferior>: Use
9747 TARGET_DEFAULT_FUNC.
9748
098dba18
TT
97492014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * target-delegates.c: Rebuild.
9752 * target.c (default_follow_fork): New function.
9753 (target_follow_fork): Unconditionally delegate.
9754 * target.h (struct target_ops) <to_follow_fork>: Use
9755 TARGET_DEFAULT_FUNC.
9756
423a4807
TT
97572014-02-19 Tom Tromey <tromey@redhat.com>
9758
9759 * target-delegates.c: Rebuild.
9760 * target.c (target_kill): Unconditionally delegate.
9761 * target.h (struct target_ops) <to_kill>: Use
9762 TARGET_DEFAULT_NORETURN.
9763
6c7e5e5c
TT
97642014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target-delegates.c: Rebuild.
9767 * target.c (target_masked_watch_num_registers): Unconditionally
9768 delegate.
9769 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9770 Use TARGET_DEFAULT_RETURN.
9771
8b1c364c
TT
97722014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target-delegates.c: Rebuild.
9775 * target.c (target_remove_mask_watchpoint): Unconditionally
9776 delegate.
9777 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9778 TARGET_DEFAULT_RETURN.
9779
cd4ae029
TT
97802014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target-delegates.c: Rebuild.
9783 * target.c (target_insert_mask_watchpoint): Unconditionally
9784 delegate.
9785 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9786 TARGET_DEFAULT_RETURN.
9787
a134316b
TT
97882014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target-delegates.c: Rebuild.
9791 * target.c (target_ranged_break_num_registers): Unconditionally
9792 delegate.
9793 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9794 Use TARGET_DEFAULT_RETURN.
9795
ad5989bd
TT
97962014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target-delegates.c: Rebuild.
9799 * target.c (target_fetch_registers): Unconditionally delegate.
9800 * target.h (struct target_ops) <to_fetch_registers>: Use
9801 TARGET_DEFAULT_NORETURN.
9802
46ee7e8d
TT
98032014-02-19 Tom Tromey <tromey@redhat.com>
9804
9805 * target-delegates.c: Rebuild.
9806 * target.c (update_current_target): Don't inherit or default
9807 to_stop.
9808 * target.h (struct target_ops) <to_stop>: Use
9809 TARGET_DEFAULT_IGNORE.
9810
843f59ed
TT
98112014-02-19 Tom Tromey <tromey@redhat.com>
9812
9813 * target-delegates.c: Rebuild.
9814 * target.c (update_current_target): Don't inherit or default
9815 to_can_run_breakpoint_commands.
9816 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9817 Use TARGET_DEFAULT_RETURN.
9818
ccfde2a0
TT
98192014-02-19 Tom Tromey <tromey@redhat.com>
9820
9821 * target-delegates.c: Rebuild.
9822 * target.c (update_current_target): Don't inherit or default
9823 to_supports_evaluation_of_breakpoint_conditions.
9824 * target.h (struct target_ops)
9825 <to_supports_evaluation_of_breakpoint_conditions>: Use
9826 TARGET_DEFAULT_RETURN.
9827
0de91722
TT
98282014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * target-delegates.c: Rebuild.
9831 * target.c (update_current_target): Don't inherit or default
9832 to_augmented_libraries_svr4_read.
9833 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9834 Use TARGET_DEFAULT_RETURN.
9835
9a7d8b48
TT
98362014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target-delegates.c: Rebuild.
9839 * target.c (update_current_target): Don't inherit or default
9840 to_can_use_agent.
9841 * target.h (struct target_ops) <to_can_use_agent>: Use
9842 TARGET_DEFAULT_RETURN.
9843
d9db5b21
TT
98442014-02-19 Tom Tromey <tromey@redhat.com>
9845
9846 * target-delegates.c: Rebuild.
9847 * target.c (update_current_target): Don't inherit or default
9848 to_use_agent.
9849 * target.h (struct target_ops) <to_use_agent>: Use
9850 TARGET_DEFAULT_NORETURN.
9851
92155eeb
TT
98522014-02-19 Tom Tromey <tromey@redhat.com>
9853
9854 * target-delegates.c: Rebuild.
9855 * target.c (update_current_target): Don't inherit or default
9856 to_traceframe_info.
9857 (return_null): Remove.
9858 * target.h (struct target_ops) <to_traceframe_info>: Use
9859 TARGET_DEFAULT_RETURN.
9860
d6522a22
TT
98612014-02-19 Tom Tromey <tromey@redhat.com>
9862
9863 * target-delegates.c: Rebuild.
9864 * target.c (update_current_target): Don't inherit or default
9865 to_static_tracepoint_markers_by_strid.
9866 * target.h (struct target_ops)
9867 <to_static_tracepoint_markers_by_strid>: Use
9868 TARGET_DEFAULT_NORETURN.
9869
4c3e4425
TT
98702014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target-delegates.c: Rebuild.
9873 * target.c (update_current_target): Don't inherit or default
9874 to_static_tracepoint_marker_at.
9875 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9876 Use TARGET_DEFAULT_RETURN.
9877
dcd6917f
TT
98782014-02-19 Tom Tromey <tromey@redhat.com>
9879
9880 * target-delegates.c: Rebuild.
9881 * target.c (update_current_target): Don't inherit or default
9882 to_set_permissions.
9883 * target.h (struct target_ops) <to_set_permissions>: Use
9884 TARGET_DEFAULT_IGNORE.
9885
22bcceee
TT
98862014-02-19 Tom Tromey <tromey@redhat.com>
9887
9888 * target-delegates.c: Rebuild.
9889 * target.c (update_current_target): Don't inherit or default
9890 to_get_tib_address.
9891 * target.h (struct target_ops) <to_get_tib_address>: Use
9892 TARGET_DEFAULT_NORETURN.
9893
8586ccaa
TT
98942014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target-delegates.c: Rebuild.
9897 * target.c (update_current_target): Don't inherit or default
9898 to_set_trace_notes.
9899 * target.h (struct target_ops) <to_set_trace_notes>: Use
9900 TARGET_DEFAULT_RETURN.
9901
91df8d1d
TT
99022014-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 * target-delegates.c: Rebuild.
9905 * target.c (update_current_target): Don't initialize
9906 to_set_trace_buffer_size.
9907 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9908 TARGET_DEFAULT_IGNORE.
9909
8d526939
TT
99102014-02-19 Tom Tromey <tromey@redhat.com>
9911
9912 * target-delegates.c: Rebuild.
9913 * target.c (update_current_target): Don't inherit or default
9914 to_set_circular_trace_buffer.
9915 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9916 TARGET_DEFAULT_IGNORE.
9917
0bcfeddf
TT
99182014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target-delegates.c: Rebuild.
9921 * target.c (update_current_target): Don't inherit or default
9922 to_set_disconnected_tracing.
9923 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9924 TARGET_DEFAULT_IGNORE.
9925
9249843f
TT
99262014-02-19 Tom Tromey <tromey@redhat.com>
9927
9928 * target-delegates.c: Rebuild.
9929 * target.c (update_current_target): Don't inherit or default
9930 to_get_min_fast_tracepoint_insn_len.
9931 (return_minus_one): Remove.
9932 * target.h (struct target_ops)
9933 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9934
ace92e7d
TT
99352014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * target-delegates.c: Rebuild.
9938 * target.c (update_current_target): Don't inherit or default
9939 to_get_raw_trace_data.
9940 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9941 TARGET_DEFAULT_NORETURN.
9942
08120467
TT
99432014-02-19 Tom Tromey <tromey@redhat.com>
9944
9945 * target-delegates.c: Rebuild.
9946 * target.c (update_current_target): Don't inherit or default
9947 to_upload_trace_state_variables.
9948 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9949 Use TARGET_DEFAULT_RETURN.
9950
1e949b00
TT
99512014-02-19 Tom Tromey <tromey@redhat.com>
9952
9953 * target-delegates.c: Rebuild.
9954 * target.c (update_current_target): Don't inherit or default
9955 to_upload_tracepoints.
9956 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9957 TARGET_DEFAULT_RETURN.
9958
a2e6c147
TT
99592014-02-19 Tom Tromey <tromey@redhat.com>
9960
9961 * target-delegates.c: Rebuild.
9962 * target.c (update_current_target): Don't inherit or default
9963 to_save_trace_data.
9964 * target.h (struct target_ops) <to_save_trace_data>: Use
9965 TARGET_DEFAULT_NORETURN.
9966
959bcd0b
TT
99672014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target-delegates.c: Rebuild.
9970 * target.c (update_current_target): Don't inherit or default
9971 to_get_trace_state_variable_value.
9972 * target.h (struct target_ops)
9973 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9974
afc94e66
TT
99752014-02-19 Tom Tromey <tromey@redhat.com>
9976
9977 * target-delegates.c: Rebuild.
9978 * target.c (update_current_target): Don't inherit or default
9979 to_trace_find.
9980 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9981
e51c07ea
TT
99822014-02-19 Tom Tromey <tromey@redhat.com>
9983
9984 * target-delegates.c: Rebuild.
9985 * target.c (update_current_target): Don't inherit or default
9986 to_trace_stop.
9987 * target.h (struct target_ops) <to_trace_stop>: Use
9988 TARGET_DEFAULT_NORETURN.
9989
6fea14cd
TT
99902014-02-19 Tom Tromey <tromey@redhat.com>
9991
9992 * target-delegates.c: Rebuild.
9993 * target.c (update_current_target): Don't inherit or default
9994 to_get_tracepoint_status.
9995 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9996 TARGET_DEFAULT_NORETURN.
9997
4072d4ff
TT
99982014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target-delegates.c: Rebuild.
10001 * target.c (update_current_target): Don't inherit or default
10002 to_get_trace_status.
10003 * target.h (struct target_ops) <to_get_trace_status>: Use
10004 TARGET_DEFAULT_RETURN.
10005
25da2e80
TT
100062014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target-delegates.c: Rebuild.
10009 * target.c (update_current_target): Don't inherit or default
10010 to_trace_start.
10011 * target.h (struct target_ops) <to_trace_start>: Use
10012 TARGET_DEFAULT_NORETURN.
10013
86dd181d
TT
100142014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target-delegates.c: Rebuild.
10017 * target.c (update_current_target): Don't inherit or default
10018 to_trace_set_readonly_regions.
10019 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10020 Use TARGET_DEFAULT_NORETURN.
10021
05c41993
TT
100222014-02-19 Tom Tromey <tromey@redhat.com>
10023
10024 * target-delegates.c: Rebuild.
10025 * target.c (update_current_target): Don't inherit or default
10026 to_disable_tracepoint.
10027 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10028 TARGET_DEFAULT_NORETURN.
10029
151f70f1
TT
100302014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * target-delegates.c: Rebuild.
10033 * target.c (update_current_target): Don't inherit or default
10034 to_enable_tracepoint.
10035 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10036 TARGET_DEFAULT_NORETURN.
10037
94eb98b9
TT
100382014-02-19 Tom Tromey <tromey@redhat.com>
10039
10040 * target-delegates.c: Rebuild.
10041 * target.c (update_current_target): Don't inherit or default
10042 to_download_trace_state_variable.
10043 * target.h (struct target_ops) <to_download_trace_state_variable>:
10044 Use TARGET_DEFAULT_NORETURN.
10045
719acc4a
TT
100462014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * target-delegates.c: Rebuild.
10049 * target.c (update_current_target): Don't inherit or default
10050 to_can_download_tracepoint.
10051 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10052 TARGET_DEFAULT_RETURN.
10053
9a980a22
TT
100542014-02-19 Tom Tromey <tromey@redhat.com>
10055
10056 * target-delegates.c: Rebuild.
10057 * target.c (update_current_target): Don't inherit or default
10058 to_download_tracepoint.
10059 * target.h (struct target_ops) <to_download_tracepoint>: Use
10060 TARGET_DEFAULT_NORETURN.
10061
5536135b
TT
100622014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target-delegates.c: Rebuild.
10065 * target.c (update_current_target): Don't inherit or default
10066 to_trace_init.
10067 * target.h (struct target_ops) <to_trace_init>: Use
10068 TARGET_DEFAULT_RETURN.
10069
9409d39e
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_supports_string_tracing.
10075 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10076 TARGET_DEFAULT_RETURN.
10077
aab1b22d
TT
100782014-02-19 Tom Tromey <tromey@redhat.com>
10079
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10082 to_supports_enable_disable_tracepoint.
10083 * target.h (struct target_ops)
10084 <to_supports_enable_disable_tracepoint>: Use
10085 TARGET_DEFAULT_RETURN.
10086
a7304748
TT
100872014-02-19 Tom Tromey <tromey@redhat.com>
10088
10089 * target-delegates.c: Rebuild.
10090 * target.c (update_current_target): Don't inherit or default
10091 to_supports_multi_process.
10092 * target.h (struct target_ops) <to_supports_multi_process>: Use
10093 TARGET_DEFAULT_RETURN.
10094
4229b31d
TT
100952014-02-19 Tom Tromey <tromey@redhat.com>
10096
10097 * target-delegates.c: Rebuild.
10098 * target.c (update_current_target): Don't inherit or default
10099 to_get_ada_task_ptid.
10100 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10101 TARGET_DEFAULT_FUNC.
10102
43eba180
TT
101032014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target-delegates.c: Rebuild.
10106 * target.c (update_current_target): Don't inherit or default
10107 to_thread_architecture.
10108 * target.h (struct target_ops) <to_thread_architecture>: Use
10109 TARGET_DEFAULT_FUNC.
10110
fe31bf5b
TT
101112014-02-19 Tom Tromey <tromey@redhat.com>
10112
10113 * target-delegates.c: Rebuild.
10114 * target.c (update_current_target): Don't inherit or default
10115 to_execution_direction.
10116 * target.h (struct target_ops) <to_execution_direction>: Use
10117 TARGET_DEFAULT_FUNC.
10118
53e1cfc7
TT
101192014-02-19 Tom Tromey <tromey@redhat.com>
10120
10121 * target-delegates.c: Rebuild.
10122 * target.c (update_current_target): Don't inherit or default
10123 to_can_execute_reverse.
10124 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10125 TARGET_DEFAULT_RETURN.
10126 (target_can_execute_reverse): Unconditionally delegate.
10127
9bb9d61d
TT
101282014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target-delegates.c: Rebuild.
10131 * target.c (update_current_target): Don't inherit or default
10132 to_goto_bookmark.
10133 (dummy_goto_bookmark): Remove.
10134 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10135 * target.h (struct target_ops) <to_goto_bookmark>: Use
10136 TARGET_DEFAULT_NORETURN.
10137
3dbafbbb
TT
101382014-02-19 Tom Tromey <tromey@redhat.com>
10139
10140 * target-delegates.c: Rebuild.
10141 * target.c (update_current_target): Don't inherit or default
10142 to_get_bookmark.
10143 (dummy_get_bookmark): Remove.
10144 (init_dummy_target): Don't inherit or default to_get_bookmark.
10145 * target.h (struct target_ops) <to_get_bookmark>: Use
10146 TARGET_DEFAULT_NORETURN
10147
16f796b1
TT
101482014-02-19 Tom Tromey <tromey@redhat.com>
10149
10150 * target-delegates.c: Rebuild.
10151 * target.c (update_current_target): Don't inherit or default
10152 to_make_corefile_notes.
10153 (init_dummy_target): Don't initialize to_make_corefile_notes.
10154 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10155 TARGET_DEFAULT_FUNC.
10156
0b5a2719
TT
101572014-02-19 Tom Tromey <tromey@redhat.com>
10158
10159 * target-delegates.c: Rebuild.
10160 * target.c (update_current_target): Don't inherit or default
10161 to_find_memory_regions.
10162 (init_dummy_target): Don't initialize to_find_memory_regions.
10163 * target.h (struct target_ops) <to_find_memory_regions>: Use
10164 TARGET_DEFAULT_FUNC.
10165
d9cb0195
TT
101662014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * target-delegates.c: Rebuild.
10169 * target.c (update_current_target): Don't inherit or default
10170 to_log_command.
10171 * target.h (struct target_ops) <to_log_command>: Use
10172 TARGET_DEFAULT_IGNORE.
10173 (target_log_command): Unconditionally delegate.
10174
830ca330
TT
101752014-02-19 Tom Tromey <tromey@redhat.com>
10176
10177 * target-delegates.c: Rebuild.
10178 * target.c (update_current_target): Don't inherit or default
10179 to_pid_to_exec_file.
10180 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10181 TARGET_DEFAULT_RETURN.
10182
825828fc
TT
101832014-02-19 Tom Tromey <tromey@redhat.com>
10184
10185 * target-delegates.c: Rebuild.
10186 * target.c (update_current_target): Don't inherit or default
10187 to_thread_name.
10188 (target_thread_name): Unconditionally delegate.
10189 * target.h (struct target_ops) <to_thread_name>: Use
10190 TARGET_DEFAULT_RETURN.
10191
4a7e6dda
TT
101922014-02-19 Tom Tromey <tromey@redhat.com>
10193
10194 * target-delegates.c: Rebuild.
10195 * target.c (update_current_target): Don't inherit or default
10196 to_extra_thread_info.
10197 * target.h (struct target_ops) <to_extra_thread_info>: Use
10198 TARGET_DEFAULT_RETURN.
10199
0db88c1d
TT
102002014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * target-delegates.c: Rebuild.
10203 * target.c (update_current_target): Don't inherit or default
10204 to_has_exited.
10205 * target.h (struct target_ops) <to_has_exited>: Use
10206 TARGET_DEFAULT_RETURN..
10207
6a9fa051
TT
102082014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target-delegates.c: Rebuild.
10211 * target.c (update_current_target): Don't inherit or default
10212 to_set_syscall_catchpoint.
10213 (return_one): Remove.
10214 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10215 TARGET_DEFAULT_RETURN.
10216
62f64d7a
TT
102172014-02-19 Tom Tromey <tromey@redhat.com>
10218
10219 * target-delegates.c: Rebuild.
10220 * target.c (update_current_target): Don't inherit or default
10221 to_insert_exec_catchpoint.
10222 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10223 TARGET_DEFAULT_RETURN.
10224
cda0f38c
TT
102252014-01-08 Tom Tromey <tromey@redhat.com>
10226
10227 * target-delegates.c: Rebuild.
10228 * target.c (update_current_target): Don't inherit or default
10229 to_insert_exec_catchpoint.
10230 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10231 TARGET_DEFAULT_RETURN.
10232
95c3375e
TT
102332014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target-delegates.c: Rebuild.
10236 * target.c (update_current_target): Don't inherit or default
10237 to_remove_vfork_catchpoint.
10238 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10239 TARGET_DEFAULT_RETURN.
10240
7e18a8dc
TT
102412014-02-19 Tom Tromey <tromey@redhat.com>
10242
10243 * target-delegates.c: Rebuild.
10244 * target.c (update_current_target): Don't inherit or default
10245 to_insert_vfork_catchpoint.
10246 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10247 TARGET_DEFAULT_RETURN.
10248
e1a21fb7
TT
102492014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target-delegates.c: Rebuild.
10252 * target.c (update_current_target): Don't inherit or default
10253 to_remove_fork_catchpoint.
10254 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10255 TARGET_DEFAULT_RETURN.
10256
5958ebeb
TT
102572014-02-19 Tom Tromey <tromey@redhat.com>
10258
10259 * target-delegates.c: Rebuild.
10260 * target.c (update_current_target): Don't inherit or default
10261 to_insert_fork_catchpoint.
10262 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10263 TARGET_DEFAULT_RETURN.
10264
340ba4bf
TT
102652014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * target-delegates.c: Rebuild.
10268 * target.c (update_current_target): Don't inherit or default
10269 to_post_startup_inferior.
10270 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10271 TARGET_DEFAULT_IGNORE.
10272
7634da87
TT
102732014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target-delegates.c: Rebuild.
10276 * target.c (update_current_target): Don't inherit or default
10277 to_load.
10278 * target.h (struct target_ops) <to_load>: Use
10279 TARGET_DEFAULT_NORETURN.
10280
e19e919f
TT
102812014-02-19 Tom Tromey <tromey@redhat.com>
10282
10283 * target-delegates.c: Rebuild.
10284 * target.c (update_current_target): Don't inherit or default
10285 to_terminal_info.
10286 * target.h (struct target_ops) <to_terminal_info>: Use
10287 TARGET_DEFAULT_FUNC.
10288
c6ea8f79
TT
102892014-02-19 Tom Tromey <tromey@redhat.com>
10290
10291 * target-delegates.c: Rebuild.
10292 * target.c (update_current_target): Don't inherit or default
10293 to_terminal_save_ours.
10294 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10295 TARGET_DEFAULT_IGNORE.
10296
e4a733f1
TT
102972014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target-delegates.c: Rebuild.
10300 * target.c (update_current_target): Don't inherit or default
10301 to_terminal_ours.
10302 * target.h (struct target_ops) <to_terminal_ours>: Use
10303 TARGET_DEFAULT_IGNORE.
10304
74fcbef9
TT
103052014-02-19 Tom Tromey <tromey@redhat.com>
10306
10307 * target-delegates.c: Rebuild.
10308 * target.c (update_current_target): Don't inherit or default
10309 to_terminal_ours_for_output.
10310 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10311 TARGET_DEFAULT_IGNORE.
10312
ddeaacc9
TT
103132014-02-19 Tom Tromey <tromey@redhat.com>
10314
10315 * target-delegates.c: Rebuild.
10316 * target.c (update_current_target): Don't inherit or default
10317 to_terminal_inferior.
10318 * target.h (struct target_ops) <to_terminal_inferior>: Use
10319 TARGET_DEFAULT_IGNORE.
10320
0343661d
TT
103212014-02-19 Tom Tromey <tromey@redhat.com>
10322
10323 * target-delegates.c: Rebuild.
10324 * target.c (update_current_target): Don't inherit or default
10325 to_terminal_init.
10326 * target.h (struct target_ops) <to_terminal_init>: Use
10327 TARGET_DEFAULT_IGNORE.
10328
77cdffe9
TT
103292014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target-delegates.c: Rebuild.
10332 * target.c (update_current_target): Don't inherit or default
10333 to_can_accel_watchpoint_condition.
10334 * target.h (struct target_ops)
10335 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10336
d03655e4
TT
103372014-02-19 Tom Tromey <tromey@redhat.com>
10338
10339 * target-delegates.c: Rebuild.
10340 * target.c (update_current_target): Don't inherit or default
10341 to_region_ok_for_hw_watchpoint.
10342 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10343 Use TARGET_DEFAULT_FUNC.
10344
65f160a9
TT
103452014-02-19 Tom Tromey <tromey@redhat.com>
10346
10347 * target-delegates.c: Rebuild.
10348 * target.c (update_current_target): Don't inherit or default
10349 to_watchpoint_addr_within_range.
10350 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10351 Use TARGET_DEFAULT_FUNC.
10352
61dd109f
TT
103532014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target-delegates.c: Rebuild.
10356 * target.c (update_current_target): Don't inherit or default
10357 to_remove_watchpoint.
10358 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10359 TARGET_DEFAULT_NORETURN.
10360
016facd4
TT
103612014-02-19 Tom Tromey <tromey@redhat.com>
10362
10363 * target-delegates.c: Rebuild.
10364 * target.c (update_current_target): Don't inherit or default
10365 to_insert_watchpoint.
10366 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10367 TARGET_DEFAULT_RETURN.
10368
418dabac
TT
103692014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target-delegates.c: Rebuild.
10372 * target.c (update_current_target): Don't inherit or default
10373 to_remove_hw_breakpoint.
10374 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10375 TARGET_DEFAULT_RETURN.
10376
61b371f9
TT
103772014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target-delegates.c: Rebuild.
10380 * target.c (update_current_target): Don't inherit or default
10381 to_insert_hw_breakpoint.
10382 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10383 TARGET_DEFAULT_RETURN.
10384
52b51d06
TT
103852014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * target-delegates.c: Rebuild.
10388 * target.c (update_current_target): Don't inherit or default
10389 to_can_use_hw_breakpoint.
10390 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10391 TARGET_DEFAULT_RETURN.
10392
f86e59b2
TT
103932014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target-delegates.c: Rebuild.
10396 * target.c (update_current_target): Don't inherit or default
10397 to_files_info.
10398 * target.h (struct target_ops) <to_files_info>: Use
10399 TARGET_DEFAULT_IGNORE.
10400
6c628163
TT
104012014-02-19 Tom Tromey <tromey@redhat.com>
10402
10403 * target-delegates.c: Rebuild.
10404 * target.c (update_current_target): Don't inherit or default
10405 to_store.
10406 * target.h (struct target_ops) <to_store>: Use
10407 TARGET_DEFAULT_NORETURN.
10408
bebd3233
TT
104092014-02-19 Tom Tromey <tromey@redhat.com>
10410
10411 * target-delegates.c: Rebuild.
10412 * target.c (update_current_target): Don't inherit or default
10413 to_post_attach.
10414 * target.h (struct target_ops) <to_post_attach>: Use
10415 TARGET_DEFAULT_IGNORE.
10416
a53f3625
TT
104172014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target-delegates.c: Rebuild.
10420 * target.c (update_current_target): Don't inherit or default
10421 to_rcmd.
10422 (default_rcmd): New function.
10423 (do_monitor_command): Unconditionally delegate.
10424 * target.h (struct target_ops) <to_rmcd>: Use
10425 TARGET_DEFAULT_FUNC.
10426
e9a29200
TT
104272014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target-delegates.c: Rebuild.
10430 * target.c (init_dummy_target): Don't initialize to_attach.
10431 (target_attach): Unconditionally delegate.
10432 * target.h (struct target_ops) <to_attach>: Use
10433 TARGET_DEFAULT_FUNC.
10434
09da0d0a
TT
104352014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * target-delegates.c: Rebuild.
10438 * target.c (target_detach): Unconditionally delegate.
10439 (init_dummy_target): Don't initialize to_detach.
10440 * target.h (struct target_ops) <to_detach>: Use
10441 TARGET_DEFAULT_IGNORE.
10442
5436ff03
TT
104432014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10446 Add argument.
10447 (target_augmented_libraries_svr4_read): Add argument.
10448 * target.c (update_current_target): Update.
10449 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10450 argument.
10451
f0d960ea
TT
104522014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * target.h (struct target_ops) <to_call_history_range>: Add
10455 argument.
10456 * target.c (target_call_history_range): Add argument.
10457 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10458 argument.
10459 (record_btrace_call_history_from): Update.
10460
ec0aea04
TT
104612014-02-19 Tom Tromey <tromey@redhat.com>
10462
10463 * target.h (struct target_ops) <to_call_history_from>: Add
10464 argument.
10465 * target.c (target_call_history_from): Add argument.
10466 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10467 argument.
10468
5df2fcba
TT
104692014-02-19 Tom Tromey <tromey@redhat.com>
10470
10471 * target.h (struct target_ops) <to_call_history>: Add argument.
10472 * target.c (target_call_history): Add argument.
10473 * record-btrace.c (record_btrace_call_history): Add 'self'
10474 argument.
10475
4e99c6b7
TT
104762014-02-19 Tom Tromey <tromey@redhat.com>
10477
10478 * target.h (struct target_ops) <to_insn_history_range>: Add
10479 argument.
10480 * target.c (target_insn_history_range): Add argument.
10481 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10482 argument.
10483 (record_btrace_insn_history_from): Update.
10484
9abc3ff3
TT
104852014-02-19 Tom Tromey <tromey@redhat.com>
10486
10487 * target.h (struct target_ops) <to_insn_history_from>: Add
10488 argument.
10489 * target.c (target_insn_history_from): Add argument.
10490 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10491 argument.
10492
7a6c5609
TT
104932014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target.h (struct target_ops) <to_insn_history>: Add argument.
10496 * target.c (target_insn_history): Add argument.
10497 * record-btrace.c (record_btrace_insn_history): Add 'self'
10498 argument.
10499
606183ac
TT
105002014-02-19 Tom Tromey <tromey@redhat.com>
10501
10502 * target.h (struct target_ops) <to_goto_record>: Add argument.
10503 * target.c (target_goto_record): Add argument.
10504 * record-full.c (record_full_goto): Add 'self' argument.
10505 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10506
307a1b91
TT
105072014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10510 * target.c (target_goto_record_end): Add argument.
10511 * record-full.c (record_full_goto_end): Add 'self' argument.
10512 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10513
08475817
TT
105142014-02-19 Tom Tromey <tromey@redhat.com>
10515
10516 * target.h (struct target_ops) <to_goto_record_begin>: Add
10517 argument.
10518 * target.c (target_goto_record_begin): Add argument.
10519 * record-full.c (record_full_goto_begin): Add 'self' argument.
10520 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10521 argument.
10522
1c63c994
TT
105232014-02-19 Tom Tromey <tromey@redhat.com>
10524
10525 * target.h (struct target_ops) <to_record_is_replaying>: Add
10526 argument.
10527 * target.c (target_record_is_replaying): Add argument.
10528 * record-full.c (record_full_is_replaying): Add 'self' argument.
10529 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10530 argument.
10531 (record_btrace_xfer_partial, record_btrace_store_registers)
10532 (record_btrace_prepare_to_store, record_btrace_resume)
10533 (record_btrace_wait, record_btrace_decr_pc_after_break)
10534 (record_btrace_find_new_threads, record_btrace_thread_alive):
10535 Update.
10536
d1b55219
TT
105372014-02-19 Tom Tromey <tromey@redhat.com>
10538
10539 * target.h (struct target_ops) <to_delete_record>: Add argument.
10540 * target.c (target_delete_record): Add argument.
10541 * record-full.c (record_full_delete): Add 'self' argument.
10542
1390f529
TT
105432014-02-19 Tom Tromey <tromey@redhat.com>
10544
10545 * target.h (struct target_ops) <to_save_record>: Add argument.
10546 * target.c (target_save_record): Add argument.
10547 * record-full.c (record_full_save): Add 'self' argument.
10548 (record_full_save): Add 'self' argument.
10549
630d6a4a
TT
105502014-02-19 Tom Tromey <tromey@redhat.com>
10551
10552 * target.h (struct target_ops) <to_info_record>: Add argument.
10553 * target.c (target_info_record): Add argument.
10554 * record.c (info_record_command): Add argument.
10555 * record-full.c (record_full_info): Add 'self' argument.
10556 * record-btrace.c (record_btrace_info): Add 'self' argument.
10557
c6cd7c02
TT
105582014-02-19 Tom Tromey <tromey@redhat.com>
10559
10560 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10561 * target.c (target_stop_recording): Add argument.
10562 * record.c (record_stop): Add argument.
10563 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10564 argument.
10565
39c49f83
TT
105662014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10569 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10570 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10571 argument.
10572 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10573 (_initialize_amd64_linux_nat): Use it.
10574 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10575 (_initialize_i386_linux_nat): Use it.
10576
1777056d
TT
105772014-02-19 Tom Tromey <tromey@redhat.com>
10578
10579 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10580 * target.c (target_teardown_btrace): Add argument.
10581 * remote.c (remote_teardown_btrace): Add 'self' argument.
10582 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10583 argument.
10584 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10585 argument.
10586
25e95349
TT
105872014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10590 * target.c (target_disable_btrace): Add argument.
10591 * remote.c (remote_disable_btrace): Add 'self' argument.
10592 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10593 argument.
10594 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10595 argument.
10596
e3c49f88
TT
105972014-02-19 Tom Tromey <tromey@redhat.com>
10598
10599 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10600 * target.c (target_enable_btrace): Add argument.
10601 * remote.c (remote_enable_btrace): Add 'self' argument.
10602 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10603 argument.
10604 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10605 argument.
10606
fe38f897
TT
106072014-02-19 Tom Tromey <tromey@redhat.com>
10608
10609 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10610 (target_can_use_agent): Add argument.
10611 * target.c (update_current_target): Update.
10612 * remote.c (remote_can_use_agent): Add 'self' argument.
10613 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10614
2c152180
TT
106152014-02-19 Tom Tromey <tromey@redhat.com>
10616
10617 * target.h (struct target_ops) <to_use_agent>: Add argument.
10618 (target_use_agent): Add argument.
10619 * target.c (update_current_target): Update.
10620 * remote.c (remote_use_agent): Add 'self' argument.
10621 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10622
a893e81f
TT
106232014-02-19 Tom Tromey <tromey@redhat.com>
10624
10625 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10626 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10627 (target_traceframe_info): Add argument.
10628 * target.c (update_current_target): Update.
10629 * remote.c (remote_traceframe_info): Add 'self' argument.
10630 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10631
c686c57f
TT
106322014-02-19 Tom Tromey <tromey@redhat.com>
10633
10634 * target.h (target_static_tracepoint_markers_by_strid): Add
10635 argument.
10636 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10637 'self' argument.
10638 * target.c (update_current_target): Update.
10639 * remote.c (struct target_ops)
10640 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10641 * linux-nat.c (struct target_ops)
10642 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10643
61fc905d
TT
106442014-02-19 Tom Tromey <tromey@redhat.com>
10645
10646 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10647 Add argument.
10648 (target_static_tracepoint_marker_at): Add argument.
10649 * target.c (update_current_target): Update.
10650 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10651 argument.
10652
c378d69d
TT
106532014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10656 (target_set_permissions): Add argument.
10657 * target.c (update_current_target): Update.
10658 * remote.c (remote_set_permissions): Add 'self' argument.
10659 (remote_start_remote): Update.
10660
bd7ae0f5
TT
106612014-02-19 Tom Tromey <tromey@redhat.com>
10662
10663 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10664 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10665 (target_get_tib_address): Add argument.
10666 * target.c (update_current_target): Update.
10667 * remote.c (remote_get_tib_address): Add 'self' argument.
10668
d9e68a2c
TT
106692014-02-19 Tom Tromey <tromey@redhat.com>
10670
10671 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10672 (target_set_trace_notes): Add argument.
10673 * target.c (update_current_target): Update.
10674 * remote.c (remote_set_trace_notes): Add 'self' argument.
10675
4da384be
TT
106762014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10679 argument.
10680 (target_set_trace_buffer_size): Add argument.
10681 * target.c (update_current_target): Update.
10682 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10683
736d5b1f
TT
106842014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10687 argument.
10688 (target_set_circular_trace_buffer): Add argument.
10689 * target.c (update_current_target): Update.
10690 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10691 argument.
10692
37b25738
TT
106932014-02-19 Tom Tromey <tromey@redhat.com>
10694
10695 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10696 argument.
10697 (target_set_disconnected_tracing): Add argument.
10698 * target.c (update_current_target): Update.
10699 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10700
0e67620a
TT
107012014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * target.h (struct target_ops)
10704 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10705 (target_get_min_fast_tracepoint_insn_len): Add argument.
10706 * target.c (update_current_target): Update.
10707 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10708 argument.
10709
88ee6f45
TT
107102014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10713 argument.
10714 (target_get_raw_trace_data): Add argument.
10715 * target.c (update_current_target): Update.
10716 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10717
181e3713
TT
107182014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10721 Add argument.
10722 (target_upload_trace_state_variables): Add argument.
10723 * target.c (update_current_target): Update.
10724 * remote.c (remote_upload_trace_state_variables): Add 'self'
10725 argument.
10726 (remote_start_remote): Update.
10727
ab6617cc
TT
107282014-02-19 Tom Tromey <tromey@redhat.com>
10729
10730 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10731 argument.
10732 (target_upload_tracepoints): Add argument.
10733 * target.c (update_current_target): Update.
10734 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10735 (remote_start_remote): Update.
10736
dc3decaf
TT
107372014-02-19 Tom Tromey <tromey@redhat.com>
10738
10739 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10740 (target_save_trace_data): Add argument.
10741 * target.c (update_current_target): Update.
10742 * remote.c (remote_save_trace_data): Add 'self' argument.
10743
4011015b
TT
107442014-02-19 Tom Tromey <tromey@redhat.com>
10745
10746 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10747 argument.
10748 * target.h (struct target_ops)
10749 <to_get_trace_state_variable_value>: Add argument.
10750 (target_get_trace_state_variable_value): Add argument.
10751 * target.c (update_current_target): Update.
10752 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10753 argument.
10754 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10755
bd4c6793
TT
107562014-02-19 Tom Tromey <tromey@redhat.com>
10757
10758 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10759 * target.h (struct target_ops) <to_trace_find>: Add argument.
10760 (target_trace_find): Add argument.
10761 * target.c (update_current_target): Update.
10762 * remote.c (remote_trace_find): Add 'self' argument.
10763 * ctf.c (ctf_trace_find): Add 'self' argument.
10764
74499f1b
TT
107652014-02-19 Tom Tromey <tromey@redhat.com>
10766
10767 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10768 (target_trace_stop): Add argument.
10769 * target.c (update_current_target): Update.
10770 * remote.c (remote_trace_stop): Add 'self' argument.
10771
db90e85c
TT
107722014-02-19 Tom Tromey <tromey@redhat.com>
10773
10774 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10775 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10776 argument.
10777 (target_get_tracepoint_status): Add argument.
10778 * target.c (update_current_target): Update.
10779 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10780
8bd200f1
TT
107812014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10784 * target.h (struct target_ops) <to_get_trace_status>: Add
10785 argument.
10786 (target_get_trace_status): Add argument.
10787 * target.c (update_current_target): Update.
10788 * remote.c (remote_get_trace_status): Add 'self' argument.
10789 (remote_start_remote, remote_can_download_tracepoint): Update.
10790 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10791
e2d1aae3
TT
107922014-02-19 Tom Tromey <tromey@redhat.com>
10793
10794 * target.h (struct target_ops) <to_trace_start>: Add argument.
10795 (target_trace_start): Add argument.
10796 * target.c (update_current_target): Update.
10797 * remote.c (remote_trace_start): Add 'self' argument.
10798
583f9a86
TT
107992014-02-19 Tom Tromey <tromey@redhat.com>
10800
10801 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10802 Add argument.
10803 (target_trace_set_readonly_regions): Add argument.
10804 * target.c (update_current_target): Update.
10805 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10806 argument.
10807
780b049c
TT
108082014-02-19 Tom Tromey <tromey@redhat.com>
10809
10810 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10811 argument.
10812 (target_disable_tracepoint): Add argument.
10813 * target.c (update_current_target): Update.
10814 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10815
46670d57
TT
108162014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10819 argument.
10820 (target_enable_tracepoint): Add argument.
10821 * target.c (update_current_target): Update.
10822 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10823
559d2b81
TT
108242014-02-19 Tom Tromey <tromey@redhat.com>
10825
10826 * target.h (struct target_ops) <to_download_trace_state_variable>:
10827 Add argument.
10828 (target_download_trace_state_variable): Add argument.
10829 * target.c (update_current_target): Update.
10830 * remote.c (remote_download_trace_state_variable): Add 'self'
10831 argument.
10832
a52a8357
TT
108332014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10836 argument.
10837 (target_can_download_tracepoint): Add argument.
10838 * target.c (update_current_target): Update.
10839 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10840
548f7808
TT
108412014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target.h (struct target_ops) <to_download_tracepoint>: Add
10844 argument.
10845 (target_download_tracepoint): Add argument.
10846 * target.c (update_current_target): Update.
10847 * remote.c (remote_download_tracepoint): Add 'self' argument.
10848
ecae04e1
TT
108492014-02-19 Tom Tromey <tromey@redhat.com>
10850
10851 * target.h (struct target_ops) <to_trace_init>: Add argument.
10852 (target_trace_init): Add argument.
10853 * target.c (update_current_target): Update.
10854 * remote.c (remote_trace_init): Add 'self' argument.
10855
fab5aa7c
TT
108562014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10859 * target.c (target_fileio_readlink): Add argument.
10860 * remote.c (remote_hostio_readlink): Add 'self' argument.
10861 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10862
dbbca37d
TT
108632014-02-19 Tom Tromey <tromey@redhat.com>
10864
10865 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10866 * target.c (target_fileio_unlink): Add argument.
10867 * remote.c (remote_hostio_unlink): Add 'self' argument.
10868 (remote_file_delete): Update.
10869 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10870
df39ea25
TT
108712014-02-19 Tom Tromey <tromey@redhat.com>
10872
10873 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10874 * target.c (target_fileio_close): Add argument.
10875 * remote.c (remote_hostio_close): Add 'self' argument.
10876 (remote_hostio_close_cleanup): Update.
10877 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10878 Update.
10879 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10880
a3be983c
TT
108812014-02-19 Tom Tromey <tromey@redhat.com>
10882
10883 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10884 * target.c (target_fileio_pread): Add argument.
10885 * remote.c (remote_hostio_pread): Add 'self' argument.
10886 (remote_bfd_iovec_pread, remote_file_get): Update.
10887 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10888
0d866f62
TT
108892014-02-19 Tom Tromey <tromey@redhat.com>
10890
10891 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10892 * target.c (target_fileio_pwrite): Add argument.
10893 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10894 (remote_file_put): Update.
10895 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10896
cd897586
TT
108972014-02-19 Tom Tromey <tromey@redhat.com>
10898
10899 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10900 * target.c (target_fileio_open): Add argument.
10901 * remote.c (remote_hostio_open): Add 'self' argument.
10902 (remote_bfd_iovec_open): Add 'self' argument.
10903 (remote_file_put): Add 'self' argument.
10904 (remote_file_get): Add 'self' argument.
10905 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10906
78eff0ec
TT
109072014-02-19 Tom Tromey <tromey@redhat.com>
10908
10909 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10910 Add argument.
10911 (target_can_run_breakpoint_commands): Add argument.
10912 * target.c (update_current_target): Update.
10913 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10914 argument.
10915 (remote_insert_breakpoint): Add 'self' argument.
10916 (remote_insert_hw_breakpoint): Add 'self' argument.
10917 (remote_can_run_breakpoint_commands): Add 'self' argument.
10918
efcc2da7
TT
109192014-02-19 Tom Tromey <tromey@redhat.com>
10920
10921 * target.h (struct target_ops)
10922 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10923 (target_supports_evaluation_of_breakpoint_conditions): Add
10924 argument.
10925 * target.c (update_current_target): Update.
10926 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10927 argument.
10928 (remote_insert_breakpoint): Add 'self' argument.
10929 (remote_insert_hw_breakpoint): Add 'self' argument.
10930 (remote_supports_cond_breakpoints): Add 'self' argument.
10931
6de37a3a
TT
109322014-02-19 Tom Tromey <tromey@redhat.com>
10933
10934 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10935 argument.
10936 (target_supports_string_tracing): Add argument.
10937 * target.c (update_current_target): Update.
10938 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10939
2bfc0540
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target.h (struct target_ops)
10943 <to_supports_disable_randomization>: Add argument.
10944 * target.c (find_default_supports_disable_randomization): Add
10945 argument.
10946 (target_supports_disable_randomization): Add argument.
10947 (find_default_supports_disable_randomization): Add 'self'
10948 argument.
10949 * remote.c (extended_remote_supports_disable_randomization): Add
10950 'self' argument.
10951 (remote_supports_disable_randomization): Add 'self' argument.
10952 (extended_remote_create_inferior): Update.
10953 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10954 'self' argument.
10955
7d178d6a
TT
109562014-02-19 Tom Tromey <tromey@redhat.com>
10957
10958 * target.h (struct target_ops)
10959 <to_supports_enable_disable_tracepoint>: Add argument.
10960 (target_supports_enable_disable_tracepoint): Add argument.
10961 * target.c (update_current_target): Update.
10962 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10963 argument.
10964
86ce2668
TT
109652014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * target.h (struct target_ops) <to_supports_multi_process>: Add
10968 argument.
10969 (target_supports_multi_process): Add argument.
10970 * target.c (update_current_target): Update.
10971 * remote.c (remote_supports_multi_process): Add 'self' argument.
10972 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10973 argument.
10974 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10975 argument.
10976
4c612759
TT
109772014-02-19 Tom Tromey <tromey@redhat.com>
10978
10979 * target.h (struct target_ops) <to_execution_direction>: Add
10980 argument.
10981 (target_execution_direction): Add argument.
10982 * target.c (default_execution_direction): Add 'self' argument.
10983 * record-full.c (record_full_execution_direction): Add 'self'
10984 argument.
10985
19db3e69
TT
109862014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10989 argument.
10990 (target_can_execute_reverse): Add argument.
10991 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10992 * record-full.c (record_full_can_execute_reverse): Add 'self'
10993 argument.
10994 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10995 argument.
10996
1e6b91a4
TT
109972014-02-19 Tom Tromey <tromey@redhat.com>
10998
10999 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11000 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11001 argument.
11002 (target_get_ada_task_ptid): Add argument.
11003 * target.c (update_current_target): Update.
11004 (default_get_ada_task_ptid): Add 'self' argument.
11005 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11006 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11007 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11008 argument.
11009 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11010 argument.
11011 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11012 argument.
11013 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11014 argument.
11015 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11016 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11017 argument.
11018
3c80fb48
TT
110192014-02-19 Tom Tromey <tromey@redhat.com>
11020
11021 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11022 (target_goto_bookmark): Add argument.
11023 * target.c (dummy_goto_bookmark): Add 'self' argument.
11024 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11025
dd0e2830
TT
110262014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11029 (target_get_bookmark): Add argument.
11030 * target.c (dummy_get_bookmark): Add 'self' argument.
11031 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11032
fc6691b2
TT
110332014-02-19 Tom Tromey <tromey@redhat.com>
11034
11035 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11036 argument.
11037 (target_make_corefile_notes): Add argument.
11038 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11039 * procfs.c (procfs_make_note_section): Add 'self' argument.
11040 (procfs_make_note_section): Add 'self' argument.
11041 (procfs_make_note_section): Add 'self' argument.
11042 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11043 argument.
11044 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11045 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11046 * exec.c (exec_make_note_section): Add 'self' argument.
11047 (exec_make_note_section): Add 'self' argument.
11048
2e73927c
TT
110492014-02-19 Tom Tromey <tromey@redhat.com>
11050
11051 * target.h (struct target_ops) <to_find_memory_regions>: Add
11052 argument.
11053 (target_find_memory_regions): Add argument.
11054 * target.c (dummy_find_memory_regions): Add 'self' argument.
11055 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11056 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11057 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11058 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11059 * exec. (exec_do_find_memory_regions): New global.
11060 (exec_set_find_memory_regions): Rewrite.
11061 (exec_find_memory_regions): New function.
11062 (init_exec_ops): Use exec_find_memory_regions.
11063
2a9a2795
TT
110642014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target.h (struct target_ops) <to_supports_non_stop>: Add
11067 argument.
11068 * target.c (find_default_supports_non_stop): Add argument.
11069 (target_supports_non_stop): Add argument.
11070 (find_default_supports_non_stop): Add 'self' argument.
11071 * remote.c (remote_supports_non_stop): Add 'self' argument.
11072 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11073
4ab76ea3
TT
110742014-02-19 Tom Tromey <tromey@redhat.com>
11075
11076 * target.h (struct target_ops) <to_log_command>: Add argument.
11077 (target_log_command): Add argument.
11078 * serial.h (serial_log_command): Add 'self' argument.
11079 * serial.c (serial_log_command): Add 'self' argument.
11080
8dd27370
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11084 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11085 argument.
11086 (target_pid_to_exec_file): Add argument.
11087 * target.c (debug_to_pid_to_exec_file): Add argument.
11088 (update_current_target): Update.
11089 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11090 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11091 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11092 (linux_handle_extended_wait): Update.
11093 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11094 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11095 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11096 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11097
1aac633b
TT
110982014-02-19 Tom Tromey <tromey@redhat.com>
11099
11100 * target.h (struct target_ops) <to_rcmd>: Add argument.
11101 (target_rcmd): Add argument.
11102 * target.c (debug_to_rcmd): Add argument.
11103 (update_current_target, do_monitor_command): Update.
11104 * remote.c (remote_rcmd): Add 'self' argument.
11105 * monitor.c (monitor_rcmd): Add 'self' argument.
11106
1eab8a48
TT
111072014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * windows-nat.c (windows_stop): Add 'self' argument.
11110 * target.h (struct target_ops) <to_stop>: Add argument.
11111 * target.c (target_stop): Add argument.
11112 (debug_to_stop): Add argument.
11113 (update_current_target): Update.
11114 * remote.c (remote_stop): Add 'self' argument.
11115 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11116 (gdbsim_cntrl_c): Update.
11117 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11118 * procfs.c (procfs_stop): Add 'self' argument.
11119 * nto-procfs.c (procfs_stop): Add 'self' argument.
11120 * monitor.c (monitor_stop): Add 'self' argument.
11121 (monitor_open): Update.
11122 * linux-nat.c (linux_nat_stop): Add argument.
11123 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11124 * gnu-nat.c (gnu_stop): Add 'self' argument.
11125 * darwin-nat.c (darwin_stop): Add 'self' argument.
11126
503a628d
TT
111272014-02-19 Tom Tromey <tromey@redhat.com>
11128
11129 * target.h (struct target_ops) <to_thread_name>: Add argument.
11130 * target.c (target_thread_name): Add argument.
11131 (update_current_target): Update.
11132 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11133
c15906d8
TT
111342014-02-19 Tom Tromey <tromey@redhat.com>
11135
11136 * target.h (struct target_ops) <to_extra_thread_info>: Add
11137 argument.
11138 (target_extra_thread_info): Add argument.
11139 * target.c (update_current_target): Update.
11140 * remote.c (remote_threads_extra_info): Add 'self' argument.
11141 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11142 argument.
11143 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11144 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11145 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11146 argument.
11147 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11148 argument.
11149 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11150 argument.
11151 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11152 argument.
11153
daf5e9b6
TT
111542014-02-19 Tom Tromey <tromey@redhat.com>
11155
11156 * target.h (struct target_ops) <to_program_signals>: Add argument.
11157 * target.c (target_program_signals): Add argument.
11158 * remote.c (remote_program_signals): Add 'self' argument.
11159
94bedb42
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11163 * target.c (target_pass_signals): Add argument.
11164 * remote.c (remote_pass_signals): Add 'self' argument.
11165 (remote_start_remote): Update.
11166 * procfs.c (procfs_pass_signals): Add 'self' argument.
11167 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11168 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11169 (linux_nat_create_inferior, linux_nat_attach): Update.
11170
da82bd6b
TT
111712014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * windows-nat.c (windows_can_run): Add 'self' argument.
11174 * target.h (struct target_ops) <to_can_run>: Add argument.
11175 (target_can_run): Add argument.
11176 * target.c (debug_to_can_run): Add argument.
11177 (update_current_target): Update.
11178 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11179 * inf-child.c (inf_child_can_run): Add 'self' argument.
11180 * go32-nat.c (go32_can_run): Add 'self' argument.
11181
d796e1d6
TT
111822014-02-19 Tom Tromey <tromey@redhat.com>
11183
11184 * target.h (struct target_ops) <to_has_exited>: Add argument.
11185 (target_has_exited): Add argument.
11186 * target.c (debug_to_has_exited): Add argument.
11187 (update_current_target): Update.
11188
ff214e67
TT
111892014-02-19 Tom Tromey <tromey@redhat.com>
11190
11191 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11192 argument.
11193 (target_set_syscall_catchpoint): Add argument.
11194 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11195 argument.
11196 * target.c (update_current_target): Update.
11197
758e29d2
TT
111982014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11201 argument.
11202 (target_remove_exec_catchpoint): Add argument.
11203 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11204 (update_current_target): Update.
11205 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11206 argument.
11207
ba025e51
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11211 argument.
11212 (target_insert_exec_catchpoint): Add argument.
11213 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11214 (update_current_target): Update.
11215 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11216 argument.
11217
e98cf0cd
TT
112182014-02-19 Tom Tromey <tromey@redhat.com>
11219
11220 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11221 argument.
11222 (target_remove_vfork_catchpoint): Add argument.
11223 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11224 (update_current_target): Update.
11225 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11226 argument.
11227
3ecc7da0
TT
112282014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11231 argument.
11232 (target_insert_vfork_catchpoint): Add argument.
11233 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11234 (update_current_target): Update.
11235 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11236 argument.
11237
973fc227
TT
112382014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11241 argument.
11242 (target_remove_fork_catchpoint): Add argument.
11243 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11244 (update_current_target): Update.
11245 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11246 argument.
11247
a863b201
TT
112482014-02-19 Tom Tromey <tromey@redhat.com>
11249
11250 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11251 argument.
11252 (target_insert_fork_catchpoint): Add argument.
11253 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11254 (update_current_target): Update.
11255 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11256 argument.
11257
2e97a79e
TT
112582014-02-19 Tom Tromey <tromey@redhat.com>
11259
11260 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11261 argument.
11262 (target_post_startup_inferior): Add argument.
11263 * target.c (debug_to_post_startup_inferior): Add argument.
11264 (update_current_target): Update.
11265 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11266 argument.
11267 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11268 argument.
11269 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11270 argument.
11271 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11272 argument.
11273 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11274 'self' argument.
11275 (super_post_startup_inferior): Likewise.
11276 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11277 'self' argument.
11278 (super_post_startup_inferior): Likewise.
11279 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11280 Add 'self' argument.
11281 (super_post_startup_inferior): Likewise.
11282
71a9f134
TT
112832014-02-19 Tom Tromey <tromey@redhat.com>
11284
11285 * target.h (struct target_ops) <to_load>: Add argument.
11286 * target.c (target_load): Add argument.
11287 (debug_to_load): Add argument.
11288 (update_current_target): Update.
11289 * remote.c (remote_load): Add 'self' argument.
11290 * remote-sim.c (gdbsim_load): Add 'self' argument.
11291 * remote-mips.c (mips_load): Add 'self' argument.
11292 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11293 * monitor.c (monitor_load): Add 'self' argument.
11294 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11295
0a4f40a2
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11299 (target_terminal_info): Add argument.
11300 * target.c (debug_to_terminal_info): Add argument.
11301 (default_terminal_info): Likewise.
11302 * inflow.c (child_terminal_info): Add 'self' argument.
11303 * inferior.h (child_terminal_info): Add 'self' argument.
11304 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11305
ae3bd431
TT
113062014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11309 argument.
11310 (target_terminal_save_ours): Add argument.
11311 * target.c (debug_to_terminal_save_ours): Add argument.
11312 (update_current_target): Update.
11313 * inflow.c (terminal_save_ours): Add 'self' argument.
11314 * inferior.h (terminal_save_ours): Add 'self' argument.
11315
e3594fd1
TT
113162014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11319 (target_terminal_ours): Add argument.
11320 * target.c (debug_to_terminal_ours): Add argument.
11321 (update_current_target): Update.
11322 * remote.c (remote_terminal_ours): Add 'self' argument.
11323 (remote_close): Update.
11324 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11325 * inflow.c (terminal_ours): Add 'self' argument.
11326 * inferior.h (terminal_ours): Add 'self' argument.
11327 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11328
2e1e1a19
TT
113292014-02-19 Pedro Alves <palves@redhat.com>
11330 Tom Tromey <tromey@redhat.com>
11331
11332 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11333 argument.
11334 (target_terminal_ours_for_output): Add argument.
11335 * target.c (debug_to_terminal_ours_for_output): Add argument.
11336 (update_current_target): Update.
11337 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11338 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11339 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11340
d2f640d4
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target.h (struct target_ops) <to_terminal_inferior>: Add
11344 argument.
11345 * target.c (target_terminal_inferior): Add argument.
11346 (update_current_target): Update.
11347 * remote.c (remote_terminal_inferior): Add 'self' argument.
11348 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11349 * inflow.c (terminal_inferior): Add 'self' argument.
11350 * inferior.h (terminal_inferior): Add 'self' argument.
11351 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11352 (go32_terminal_inferior): Add 'self' argument.
11353
c42bf286
TT
113542014-02-19 Tom Tromey <tromey@redhat.com>
11355
11356 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11357 (target_terminal_init): Add argument.
11358 * target.c (debug_to_terminal_init): Add argument.
11359 (update_current_target): Update.
11360 * inflow.c (terminal_init_inferior): Add 'self' argument.
11361 * inferior.h (terminal_init_inferior): Add 'self' argument.
11362 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11363 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11364
c3a5ff89
TT
113652014-02-19 Tom Tromey <tromey@redhat.com>
11366
11367 * target.h (struct target_ops)
11368 <to_can_accel_watchpoint_condition>: Add argument.
11369 (target_can_accel_watchpoint_condition): Add argument.
11370 * target.c (debug_to_can_accel_watchpoint_condition): Add
11371 argument.
11372 (update_current_target): Update.
11373 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11374 'self' argument.
11375
31568a15
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11379 Add argument.
11380 (target_region_ok_for_hw_watchpoint): Add argument.
11381 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11382 (default_region_ok_for_hw_watchpoint): Add argument.
11383 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11384 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11385 argument.
11386 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11387 argument.
11388 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11389 argument.
11390 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11391 'self' argument.
11392 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11393 'self' argument.
11394 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11395 'self' argument.
11396 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11397 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11398 'self' argument.
11399 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11400 Add 'self' argument.
11401
7bb99c53
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11405 argument.
11406 (target_insert_watchpoint): Add argument.
11407 * target.c (debug_to_insert_watchpoint): Add argument.
11408 (update_current_target): Update.
11409 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11410 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11411 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11412 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11413 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11414 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11415 argument.
11416 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11417 (procfs_insert_hw_watchpoint): Add 'self' argument.
11418 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11419 argument.
11420 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11421 argument.
11422 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11423 argument.
11424 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11425 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11426 argument.
11427 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11428 'self' argument.
11429
11b5219a
TT
114302014-02-19 Tom Tromey <tromey@redhat.com>
11431
11432 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11433 argument.
11434 (target_remove_watchpoint): Add argument.
11435 * target.c (debug_to_remove_watchpoint): Add argument.
11436 (update_current_target): Update.
11437 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11438 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11439 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11440 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11441 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11442 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11443 argument.
11444 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11445 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11446 argument.
11447 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11448 argument.
11449 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11450 argument.
11451 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11452 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11453 argument.
11454 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11455 'self' argument.
11456
a64dc96c
TT
114572014-02-19 Tom Tromey <tromey@redhat.com>
11458
11459 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11460 argument.
11461 (target_remove_hw_breakpoint): Add argument.
11462 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11463 (update_current_target): Update.
11464 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11465 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11466 argument.
11467 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11468 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11469 argument.
11470 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11471 'self' argument.
11472
23a26771
TT
114732014-02-19 Tom Tromey <tromey@redhat.com>
11474
11475 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11476 argument.
11477 (target_insert_hw_breakpoint): Add argument.
11478 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11479 (update_current_target): Update.
11480 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11481 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11482 argument.
11483 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11484 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11485 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11486 argument.
11487 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11488 'self' argument.
11489
5461485a
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11493 argument.
11494 (target_can_use_hardware_watchpoint): Add argument.
11495 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11496 (update_current_target): Update.
11497 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11498 argument.
11499 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11500 argument.
11501 * remote.c (remote_check_watch_resources): Add 'self' argument.
11502 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11503 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11504 argument.
11505 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11506 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11507 argument.
11508 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11509 argument.
11510 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11511 argument.
11512 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11513 argument.
11514 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11515 argument.
11516 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11517 argument.
11518 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11519 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11520 argument.
11521 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11522 'self' argument.
11523
f045800c
TT
115242014-02-19 Tom Tromey <tromey@redhat.com>
11525
11526 * target.h (struct target_ops) <to_post_attach>: Add argument.
11527 (target_post_attach): Add argument.
11528 * target.c (debug_to_post_attach): Add argument.
11529 (update_current_target): Update.
11530 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11531 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11532 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11533 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11534 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11535
de90e03d
TT
115362014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * windows-nat.c (windows_close): Add 'self' argument.
11539 * tracepoint.c (tfile_close): Add 'self' argument.
11540 * target.h (struct target_ops) <to_close>: Add argument.
11541 * target.c (target_close): Add argument.
11542 (update_current_target): Update.
11543 * remote.c (remote_close): Add 'self' argument.
11544 * remote-sim.c (gdbsim_close): Add 'self' argument.
11545 * remote-mips.c (mips_close): Add 'self' argument.
11546 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11547 * record-full.c (record_full_close): Add 'self' argument.
11548 * record-btrace.c (record_btrace_close): Add 'self' argument.
11549 * monitor.h (monitor_close): Add 'self' argument.
11550 * monitor.c (monitor_close): Add 'self' argument.
11551 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11552 * linux-nat.c (linux_nat_close): Add argument.
11553 * go32-nat.c (go32_close): Add 'self' argument.
11554 * exec.c (exec_close_1): Add 'self' argument.
11555 * ctf.c (ctf_close): Add 'self' argument.
11556 * corelow.c (core_close): Add 'self' argument.
11557 (core_close_cleanup): Update.
11558 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11559 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11560
9dd130a0
TT
115612014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * remote.c (remote_load): New function.
11564 (init_remote_ops): Use it.
11565
46917d26
TT
115662014-02-19 Tom Tromey <tromey@redhat.com>
11567
11568 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11569 argument.
11570 * common/linux-btrace.h (linux_supports_btrace): Update.
11571 * remote.c (remote_supports_btrace): Add "self" argument.
11572 * target-delegates.c: Rebuild.
11573 * target.c (target_supports_btrace): Remove.
11574 * target.h (struct target_ops) <to_supports_btrace>: Add
11575 target_ops argument.
11576 (target_supports_btrace): New define.
11577
6b84065d
TT
115782014-02-19 Tom Tromey <tromey@redhat.com>
11579
11580 * record-full.c (record_full_beneath_to_resume_ops)
11581 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11582 (record_full_beneath_to_wait)
11583 (record_full_beneath_to_store_registers_ops)
11584 (record_full_beneath_to_store_registers)
11585 (record_full_beneath_to_xfer_partial_ops)
11586 (record_full_beneath_to_xfer_partial)
11587 (record_full_beneath_to_insert_breakpoint_ops)
11588 (record_full_beneath_to_insert_breakpoint)
11589 (record_full_beneath_to_remove_breakpoint_ops)
11590 (record_full_beneath_to_remove_breakpoint)
11591 (record_full_beneath_to_stopped_by_watchpoint)
11592 (record_full_beneath_to_stopped_data_address)
11593 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11594 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11595 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11596 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11597 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11598 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11599 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11600 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11601 (record_full_resume, record_full_wait_1)
11602 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11603 (record_full_store_registers, record_full_xfer_partial)
11604 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11605 (record_full_async, record_full_core_xfer_partial): Use target
11606 delegation.
11607 * target-delegates.c: Rebuild.
11608 * target.c (current_xfer_partial): Remove.
11609 (update_current_target): Do not INHERIT or de_fault
11610 to_insert_breakpoint, to_remove_breakpoint,
11611 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11612 to_is_async_p, to_async. Do not set to_xfer_partial field.
11613 (default_xfer_partial): Simplify.
11614 (current_xfer_partial): Remove.
11615 (target_wait, target_resume): Simplify.
11616 (find_default_can_async_p, find_default_is_async_p): Update.
11617 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11618 to_xfer_partial, to_stopped_by_watchpoint,
11619 to_stopped_data_address.
11620 (target_store_registers): Simplify.
11621 (forward_target_remove_breakpoint)
11622 (forward_target_insert_breakpoint): Remove.
11623 (target_remove_breakpoint, target_insert_breakpoint)
11624 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11625 * target.h (struct target_ops) <to_resume, to_wait,
11626 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11627 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11628 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11629 markup.
11630 (forward_target_remove_breakpoint)
11631 (forward_target_insert_breakpoint): Remove.
11632 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11633 directly.
11634 (record_btrace_insert_breakpoint): Delegate directly.
11635
1101cb7b
TT
116362014-02-19 Tom Tromey <tromey@redhat.com>
11637
11638 PR build/7701:
11639 * target-delegates.c: New file.
11640 * target.c: Include target-delegates.c.
11641 (init_dummy_target): Call install_dummy_methods.
11642 (complete_target_initialization): Call install_delegators.
11643 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11644 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11645 * make-target-delegates: New file.
11646
8b06beed
TT
116472014-02-19 Tom Tromey <tromey@redhat.com>
11648
11649 * record.c (find_record_target): Use find_target_at.
11650 * target.c (find_target_at): New function.
11651 * target.h (find_target_at): Declare.
11652
6a109b6b
TT
116532014-02-19 Tom Tromey <tromey@redhat.com>
11654
11655 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11656 Add 'ops' argument.
11657 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11658 'ops' argument.
11659 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11660 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11661 'ops' argument.
11662 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11663 argument.
11664 * linux-nat.c (save_sigtrap): Update.
11665 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11666 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11667 (linux_nat_close): Update.
11668 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11669 argument.
11670 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11671 argument.
11672 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11673 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11674 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11675 (tmp_to_async): Add 'ops' argument.
11676 (record_full_stopped_by_watchpoint, record_full_async)
11677 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11678 argument.
11679 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11680 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11681 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11682 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11683 (remote_is_async_p, remote_async): Add 'ops' argument.
11684 (remote_stopped_data_address): Update.
11685 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11686 * target.c (update_current_target)
11687 (find_default_can_async_p, find_default_is_async_p): Update.
11688 (init_dummy_target): Update.
11689 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11690 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11691 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11692 (target_can_async_p, target_is_async_p, target_async)
11693 (target_stopped_by_watchpoint): Update.
11694
e095146b
YQ
116952014-02-19 Yao Qi <yao@codesourcery.com>
11696
11697 PR gdb/16220
11698 * gdbarch.sh: Remove startup_gdbarch.
11699 * gdbarch.c: Regenerated.
11700 * gdbarch.h: Likewise.
11701
bc3c6b36
KB
117022014-02-17 Kevin Buettner <kevinb@redhat.com>
11703
11704 * rl78-tdep.c (rl78_g10_register_name): New function.
11705 (rl78_return_value): Add g10 support.
11706 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11707 g10.
11708
98dc0167 117092014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11710
11711 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11712 (SUBDIR_GUILE_SRCS): Ditto.
11713 (scm-gsmob.o): Ditto.
11714
842c05cd
YQ
117152014-02-17 Yao Qi <yao@codesourcery.com>
11716
11717 * gnu-nat.c (ILL_RPC): Declare defined function.
11718
25c0bd04
YQ
117192014-02-17 Yao Qi <yao@codesourcery.com>
11720
11721 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11722 mach_msg_type_number_t.
11723 (gnu_write_inferior): Likewise.
11724
a9a758e3
YQ
117252014-02-17 Yao Qi <yao@codesourcery.com>
11726
11727 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11728 in format string.
11729 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11730 (inf_validate_procs, inf_signal): Likewise.
11731 (S_exception_raise_request): Likewise.
11732 (do_mach_notify_dead_name): Likewise.
11733 (steal_exc_port): Likewise.
11734 (gnu_read_inferior): Change 'copy_count''s type to
11735 mach_msg_type_number_t.
11736 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11737 format string.
11738
bae8023e
TS
117392014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11740
c82f56d9
TS
11741 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11742 flag. Adjust all users; in particular...
11743 (gnu_wait): ..., don't decrement its value in here...
11744 (gnu_create_inferior): ..., and instead set the flag in here,
11745 around the startup_inferior call, and call that one with
11746 START_INFERIOR_TRAPS_EXPECTED.
11747
3398af6a
TS
11748 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11749 (ILL_RPC): ... new macro.
11750 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11751 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11752 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11753 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11754 functions with ILL_RPC macro.
11755 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11756 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11757 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11758 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11759 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11760 (S_proc_getlogin_reply, S_proc_getsid_reply)
11761 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11762 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11763 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11764 (S_proc_getnports_reply, S_proc_is_important_reply)
11765 (S_proc_get_code_reply): New stub functions, generated with
11766 ILL_RPC macro.
11767
d47642c9
TS
11768 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11769 collected the type check structures.
11770
bae8023e
TS
11771 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11772
8a55ffb0
DE
117732014-02-14 Doug Evans <dje@google.com>
11774
11775 * target.c (target_write_partial): Fix result type.
11776
c2853f3d
JM
117772014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11778
11779 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11780 the proper offsets to access fpregset_t.
11781
ac61d2db
SA
117822014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11783
11784 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11785 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11786 * h8300-tdep.c (setmachinelist): Remove global.
11787 * hppa-tdep.c (hppa_sigtramp): Remove global.
11788 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11789 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11790 * ravenscar-thread.c (update_target_observer): Remove global.
11791 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11792
9d2d0b8b
TT
117932014-02-12 Tom Tromey <tromey@redhat.com>
11794
11795 * common/rsp-low.c: Update comments.
11796 * common/rsp-low.h: Update comments.
11797
a7191e8b
TT
117982014-02-12 Tom Tromey <tromey@redhat.com>
11799
11800 * common/rsp-low.c (convert_ascii_to_int): Remove.
11801 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11802
ff0e980e
TT
118032014-02-12 Tom Tromey <tromey@redhat.com>
11804
11805 * common/rsp-low.h (unhexify): Don't declare.
11806 * common/rsp-low.c (unhexify): Remove.
11807
e9371aff
TT
118082014-02-12 Tom Tromey <tromey@redhat.com>
11809
11810 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11811 * common/rsp-low.c (convert_int_to_ascii): Remove.
11812
971dc0b8
TT
118132014-02-12 Tom Tromey <tromey@redhat.com>
11814
11815 * common/rsp-low.h (hexify): Don't declare.
11816 * common/rsp-low.c (hexify): Remove.
11817
0a822afb
TT
118182014-02-12 Tom Tromey <tromey@redhat.com>
11819
11820 * common/rsp-low.c (hexify): Never take strlen of argument.
11821
9f1b45b0
TT
118222014-02-12 Tom Tromey <tromey@redhat.com>
11823
11824 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11825 * remote.c (extended_remote_run, remote_rcmd)
11826 (remote_download_trace_state_variable, remote_save_trace_data)
11827 (remote_set_trace_notes): Update.
11828 * tracepoint.c (encode_source_string, tfile_write_status)
11829 (tfile_write_uploaded_tsv): Update.
11830
9c3d6531
TT
118312014-02-12 Tom Tromey <tromey@redhat.com>
11832
11833 * tracepoint.c: Include rsp-low.h.
11834 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11835 * remote.c: Include rsp-low.h.
11836 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11837 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11838 (remote_unescape_input): Move to common/rsp-low.c.
11839 * common/rsp-low.h: New file.
11840 * common/rsp-low.c: New file.
11841 * Makefile.in (SFILES): Add common/rsp-low.c.
11842 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11843 (COMMON_OBS): Add rsp-low.o.
11844 (rsp-low.o): New target.
11845
01fd3ea5
TT
118462014-02-12 Tom Tromey <tromey@redhat.com>
11847
11848 * utils.h: Include print-utils.h.
11849 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11850 (int_string, core_addr_to_string, core_addr_to_string_nz)
11851 (hex_string, hex_string_custom): Don't declare.
11852 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11853 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11854 (hex_string_custom, int_string, core_addr_to_string)
11855 (core_addr_to_string_nz, host_address_to_string): Move to
11856 common/print-utils.c.
11857 * common/print-utils.h: New file.
11858 * common/print-utils.c: New file
11859 * Makefile.in (SFILES): Add common/print-utils.c.
11860 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11861 (COMMON_OBS): Add print-utils.o.
11862 (print-utils.o): New target.
11863
9fb50108
TT
118642014-02-12 Tom Tromey <tromey@redhat.com>
11865
11866 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11867
0548b5db
MK
118682014-02-12 Mark Kettenis <kettenis@gnu.org>
11869
11870 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11871
493443a4
MK
118722014-02-12 Mark Kettenis <kettenis@gnu.org>
11873
11874 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11875 if a PT_IO ptrace request returns sucessfully but indicates that 0
11876 bytes were transferred.
11877
706d0883
PA
118782014-02-12 Pedro Alves <palves@redhat.com>
11879 Kevin Buettner <kevinb@redhat.com>
11880
11881 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11882 TYPE_INSTANCE_FLAG_CODE_SPACE.
11883
5caa2f0b
PA
118842014-02-12 Pedro Alves <palves@redhat.com>
11885
11886 * h8300-tdep.c (pseudo_from_raw_register)
11887 (raw_from_pseudo_register): New functions.
11888 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11889 them.
11890
76fd5f74
PA
118912014-02-12 Pedro Alves <palves@redhat.com>
11892
11893 * h8300-tdep.c (h8300_register_sim_regno): New function.
11894 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11895 gdbarch_register_sim_regno hook.
11896
8f008406
SA
118972014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11898
11899 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11900
195abc10
SA
119012014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11902
11903 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11904
93ffa5b9
MK
119052014-02-12 Mark Kettenis <kettenis@gnu.org>
11906
11907 * obsd-tdep.h (obsd_init_abi): New prototype.
11908 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11909 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11910 (obsd_init_abi): New functions.
11911 * i386obsd-tdep.c: Include "obsd-tdep.h".
11912 (i386obsd_init_abi): Call obsd_init_abi.
11913 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11914 (amd64obsd_init_abi): Call obsd_init_abi.
11915 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11916 obsd-tdep.c to gdb_target_obs.
11917
49caec94
JM
119182014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11919
11920 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11921 double float arguments to 16-byte in the argument slots.
11922
e1402065
DE
119232014-02-11 Doug Evans <xdje42@gmail.com>
11924
11925 * configure.ac: Don't crash if pkg-config is not found and guile
11926 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11927 in guile checks.
11928 * configure: Regenerate.
11929
edcc890f
YQ
119302014-02-11 Yao Qi <yao@codesourcery.com>
11931
11932 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11933 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11934 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11935 * gnu-nat.c (gnu_xfer_memory): Likewise.
11936 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11937 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11938 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11939 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11940
9b409511
YQ
119412014-02-11 Yao Qi <yao@codesourcery.com>
11942
11943 * target.h (enum target_xfer_error): Rename to ...
11944 (enum target_xfer_status): ... it. New. All users updated.
11945 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11946 New.
11947 (TARGET_XFER_STATUS_ERROR_P): New macro.
11948 (target_xfer_error_to_string): Remove declaration.
11949 (target_xfer_status_to_string): Declare.
11950 (target_xfer_partial_ftype): Adjust it.
11951 (struct target_ops) <to_xfer_partial>: Return
11952 target_xfer_status. Add argument xfered_len. Update
11953 comments.
11954 * target.c (target_xfer_error_to_string): Rename to ...
11955 (target_xfer_status_to_string): ... it. New. All callers
11956 updated.
11957 (target_read_live_memory): Likewise. Call target_xfer_partial
11958 instead of target_read.
11959 (memory_xfer_live_readonly_partial): Return
11960 target_xfer_status. Add argument xfered_len.
11961 (raw_memory_xfer_partial): Likewise.
11962 (memory_xfer_partial_1): Likewise.
11963 (memory_xfer_partial): Likewise.
11964 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11965 properly. Update debug message.
11966 (default_xfer_partial, current_xfer_partial): Likewise.
11967 (target_write_partial): Likewise.
11968 (target_read_partial): Likewise. All callers updated.
11969 (read_whatever_is_readable): Likewise.
11970 (target_write_with_progress): Likewise.
11971 (target_read_alloc_1): Likewise.
11972
11973 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11974 * auxv.c (procfs_xfer_auxv): Likewise.
11975 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11976 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11977 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11978 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11979 * corefile.c (read_memory): Adjust.
11980 * corelow.c (core_xfer_partial): Likewise.
11981 * ctf.c (ctf_xfer_partial): Likewise.
11982 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11983 updated.
11984 (darwin_xfer_partial): Likewise.
11985 * exec.c (section_table_xfer_memory_partial): Likewise. All
11986 callers updated.
11987 (exec_xfer_partial): Likewise.
11988 * exec.h (section_table_xfer_memory_partial): Update
11989 declaration.
11990 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11991 negative.
11992 (gnu_xfer_partial): Likewise.
11993 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11994 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11995 (ia64_hpux_xfer_solib_got): Likewise.
11996 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11997 type of 'partial_len' to ULONGEST.
11998 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11999 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12000 (linux_nat_xfer_partial): Likewise.
12001 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12002 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12003 * monitor.c (monitor_xfer_memory): Likewise.
12004 (monitor_xfer_partial): Likewise.
12005 * procfs.c (procfs_xfer_partial): Likewise.
12006 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12007 * record-full.c (record_full_xfer_partial): Likewise.
12008 (record_full_core_xfer_partial): Likewise.
12009 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12010 (gdbsim_xfer_partial): Likewise.
12011 * remote.c (remote_write_bytes_aux): Likewise. All callers
12012 updated.
12013 (remote_write_bytes, remote_read_bytes): Likewise. All
12014 callers updated.
12015 (remote_flash_erase): Likewise. All callers updated.
12016 (remote_write_qxfer): Likewise. All callers updated.
12017 (remote_read_qxfer): Likewise. All callers updated.
12018 (remote_xfer_partial): Likewise.
12019 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12020 (rs6000_xfer_shared_libraries): Likewise.
12021 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12022 (sol_thread_xfer_partial): Likewise.
12023 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12024 (sparc_xfer_partial): Likewise.
12025 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12026 updated.
12027 (spu_xfer_partial): Likewise.
12028 * spu-multiarch.c (spu_xfer_partial): Likewise.
12029 * tracepoint.c (tfile_xfer_partial): Likewise.
12030 * windows-nat.c (windows_xfer_memory): Likewise.
12031 (windows_xfer_shared_libraries): Likewise.
12032 (windows_xfer_partial): Likewise.
12033 * valprint.c: Replace 'target_xfer_error' with
12034 'target_xfer_status' in comments.
12035
a8e63083
JB
120362014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12037
12038 Checked in by Joel Brobecker <brobecker@adacore.com>.
12039 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12040
e86b67d3
JB
120412014-02-11 Joel Brobecker <brobecker@adacore.com>
12042
12043 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12044 function parameters.
12045
4b7d1f7f
WN
120462014-02-10 Will Newton <will.newton@linaro.org>
12047
12048 * elfread.c (elf_rel_plt_read): Look for a .got section if
12049 looking up .got.plt fails.
12050 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12051 on address passed to elf_gnu_ifunc_record_cache.
12052 (elf_gnu_ifunc_resolve_addr): Likewise.
12053 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12054
961842b2
JM
120552014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12056
12057 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12058 (X_RETTURN): New macro.
12059 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12060
12061 * sparc64-tdep.c (sparc64_init_abi): Hook
12062 sparc_in_function_epilogue_p.
12063
3f03e7b1
GB
120642014-02-10 Gary Benson <gbenson@redhat.com>
12065
12066 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12067 Rename name_matcher to symbol_matcher.
12068
96f861ef
GB
120692014-02-10 Gary Benson <gbenson@redhat.com>
12070
12071 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12072 Use expand_symtabs_file_matcher_ftype and
12073 expand_symtabs_symbol_matcher_ftype.
12074
ee01b665
JB
120752014-02-10 Joel Brobecker <brobecker@adacore.com>
12076
12077 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12078 (struct ada_symbol_cache): New.
12079 (ada_free_symbol_cache): Forward declare.
12080 (struct ada_pspace_data): New.
12081 (ada_pspace_data_handle): New static global.
12082 (get_ada_pspace_data, ada_pspace_data_cleanup)
12083 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12084 (cache_space, cache): Delete, now folded inside struct
12085 ada_pspace_data.
12086 (ada_get_symbol_cache): New function.
12087 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12088 implementation.
12089 (_initialize_ada_language): Remove initialization of cache_space.
12090 Move call to observer_attach_inferior_exit up, grouping it
12091 with the other observer registrations inside this function.
12092 Rename command to be more general. Add call to
12093 register_program_space_data_with_cleanup.
12094
143adbbf
JB
120952014-02-10 Joel Brobecker <brobecker@adacore.com>
12096
12097 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12098 ada_new_objfile_observer.
12099 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12100 (_initialize_tasks): Update uses of ada_new_objfile_observer
12101 and ada_tasks_normal_stop_observer.
12102
aa4fb036
JB
121032014-02-10 Joel Brobecker <brobecker@adacore.com>
12104
12105 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12106 returned by the 'Length attribute to integer.
12107
9dee8cc6
JB
121082014-02-10 Joel Brobecker <brobecker@adacore.com>
12109
12110 * ada-lang.c (_initialize_ada_language): Initialize
12111 cache_space obstack.
12112
3d9434b5
JB
121132014-02-10 Joel Brobecker <brobecker@adacore.com>
12114
12115 * ada-lang.c (HASH_SIZE): New macro.
12116 (struct cache_entry): New type.
12117 (cache_space, cache): New static globals.
12118 (ada_clear_symbol_cache, find_entry): New functions.
12119 (lookup_cached_symbol, cache_symbol): Implement.
12120 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12121 (_initialize_ada_language): Attach ada_new_objfile_observer
12122 and ada_free_objfile_observer.
12123
f0c5f9b2
JB
121242014-02-10 Joel Brobecker <brobecker@adacore.com>
12125
12126 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12127 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12128 struct block * parameter.
12129 (ada_lookup_symbol_list_worker): Constify local variable "block".
12130 Remove cast which is no longer necessary.
12131
ed3ef339
DE
121322014-02-10 Doug Evans <xdje42@gmail.com>
12133
12134 Add Guile as an extension language.
12135 * NEWS: Mention Guile scripting.
12136 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12137 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12138 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12139 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12140 (CLIBS): Add GUILE_LIBS.
12141 (install-guile): New rule.
12142 (guile.o): New rule.
12143 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12144 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12145 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12146 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12147 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12148 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12149 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12150 * configure.ac: New option --with-guile.
12151 * configure: Regenerate.
12152 * config.in: Regenerate.
12153 * auto-load.c: Remove #include "python/python.h". Add #include
12154 "gdb/section-scripts.h".
12155 (source_section_scripts): Handle Guile scripts.
12156 (_initialize_auto_load): Add name of Guile objfile script to
12157 scripts-directory help text.
12158 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12159 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12160 (struct breakpoint): New member scm_bp_object.
12161 * defs.h (enum command_control_type): New value guile_control.
12162 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12163 "extension.h".
12164 (show_user): Update comment.
12165 (_initialize_cli_cmds): Update help text for "show user". Update help
12166 text for max-user-call-depth.
12167 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12168 "extension.h".
12169 (multi_line_command_p): Add guile_control.
12170 (print_command_lines): Handle guile_control.
12171 (execute_control_command, recurse_read_control_structure): Ditto.
12172 (process_next_line): Recognize "guile" commands.
12173 * disasm.c (gdb_disassemble_info): Make non-static.
12174 * disasm.h: #include "dis-asm.h".
12175 (struct gdbarch): Add forward decl.
12176 (gdb_disassemble_info): Declare.
12177 * extension.c: #include "guile/guile.h".
12178 (extension_languages): Add guile.
12179 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12180 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12181 * gdbtypes.c (get_unsigned_type_max): New function.
12182 (get_signed_type_minmax): New function.
12183 * gdbtypes.h (get_unsigned_type_max): Declare.
12184 (get_signed_type_minmax): Declare.
12185 * guile/README: New file.
12186 * guile/guile-internal.h: New file.
12187 * guile/guile.c: New file.
12188 * guile/guile.h: New file.
12189 * guile/scm-arch.c: New file.
12190 * guile/scm-auto-load.c: New file.
12191 * guile/scm-block.c: New file.
12192 * guile/scm-breakpoint.c: New file.
12193 * guile/scm-disasm.c: New file.
12194 * guile/scm-exception.c: New file.
12195 * guile/scm-frame.c: New file.
12196 * guile/scm-gsmob.c: New file.
12197 * guile/scm-iterator.c: New file.
12198 * guile/scm-lazy-string.c: New file.
12199 * guile/scm-math.c: New file.
12200 * guile/scm-objfile.c: New file.
12201 * guile/scm-ports.c: New file.
12202 * guile/scm-pretty-print.c: New file.
12203 * guile/scm-safe-call.c: New file.
12204 * guile/scm-string.c: New file.
12205 * guile/scm-symbol.c: New file.
12206 * guile/scm-symtab.c: New file.
12207 * guile/scm-type.c: New file.
12208 * guile/scm-utils.c: New file.
12209 * guile/scm-value.c: New file.
12210 * guile/lib/gdb.scm: New file.
12211 * guile/lib/gdb/boot.scm: New file.
12212 * guile/lib/gdb/experimental.scm: New file.
12213 * guile/lib/gdb/init.scm: New file.
12214 * guile/lib/gdb/iterator.scm: New file.
12215 * guile/lib/gdb/printing.scm: New file.
12216 * guile/lib/gdb/types.scm: New file.
12217 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12218 (VPATH): Add $(GUILE_SRCDIR).
12219 (GUILE_DIR): New variable.
12220 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12221 (all): Add stamp-guile dependency.
12222 (stamp-guile): New rule.
12223 (clean-guile, install-guile, uninstall-guile): New rules.
12224 (install-only): Add install-guile dependency.
12225 (uninstall): Add uninstall-guile dependency.
12226 (clean): Add clean-guile dependency.
12227
ac020ec5
DE
122282014-02-09 Doug Evans <xdje42@gmail.com>
12229
12230 Revert this patch (which I approved, mea culpa).
12231
12232 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12233
12234 * Makefile.in (all-lib): Remove.
12235 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12236
2a081c59
JK
122372014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12238
12239 Fix Python stack corruption.
12240 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12241 gdb_py_longest.
12242
0a6bd22d
MK
122432014-02-08 Mark Kettenis <kettenis@gnu.org>
12244
12245 * Makefile.in (all-lib): Remove.
12246 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12247
1a860409
DE
122482014-02-07 Doug Evans <dje@google.com>
12249
12250 * extension-priv.h (extension_language_script_ops): Add comment.
12251 (extension_language_ops): Add comment.
caf5a491 12252 (active_ext_lang_state): Fix typo in comment.
1a860409 12253
d137e6dc
PA
122542014-02-07 Pedro Alves <palves@redhat.com>
12255
0dcb32c3 12256 PR breakpoints/16292
d137e6dc
PA
12257 * infrun.c (handle_signal_stop) <signal arrives while stepping
12258 over a breakpoint>: Switch back to the stepping thread.
12259
ce6d0892
YQ
122602014-02-07 Yao Qi <yao@codesourcery.com>
12261
12262 * target.c (target_xfer_partial): Return zero if LEN is zero.
12263
2ed4b548
YQ
122642014-02-07 Yao Qi <yao@codesourcery.com>
12265
12266 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12267 (ld_so_xfer_auxv): Likewise.
12268 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12269 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12270 * corelow.c (core_xfer_partial): Likewise.
12271 * ctf.c (ctf_xfer_partial): Likewise.
12272 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12273 (darwin_xfer_partial): Likewise.
12274 * exec.c (exec_xfer_partial): Likewise.
12275 * gnu-nat.c (gnu_xfer_partial): Likewise.
12276 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12277 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12278 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12279 * linux-nat.c (linux_xfer_siginfo): Likewise.
12280 (linux_proc_xfer_spu): Likewise.
12281 * procfs.c (procfs_xfer_partial): Likewise.
12282 * record-full.c (record_full_xfer_partial): Likewise.
12283 (record_full_core_xfer_partial): Likewise.
12284 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12285 * remote.c (remote_write_qxfer): Likewise.
12286 (remote_write_qxfer, remote_read_qxfer): Likewise.
12287 (remote_xfer_partial): Likewise.
12288 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12289 (rs6000_xfer_shared_libraries): Likewise.
12290 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12291 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12292 (spu_xfer_partial): Likewise.
12293 * target.c (memory_xfer_partial_1): Likewise.
12294 * tracepoint.c (tfile_xfer_partial): Likewise.
12295 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12296 (windows_xfer_partial): Likewise.
12297
c09f20e4
YQ
122982014-02-07 Yao Qi <yao@codesourcery.com>
12299
12300 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12301 comments.
12302 (core_xfer_shared_libraries_aix): Likewise.
12303 * gdbarch.c, gdbarch.h: Regenerated.
12304 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12305 ULONGEST. Change 'len_avail' type to ULONGEST.
12306 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12307 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12308 declaration.
12309 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12310
8635b3bf
YQ
123112014-02-07 Yao Qi <yao@codesourcery.com>
12312
12313 * corefile.c (memory_error): Get 'exception' from ERR and pass
12314 'exception' to throw_error.
12315
6dddc817
DE
123162014-02-06 Doug Evans <xdje42@gmail.com>
12317
12318 * configure.ac (libpython checking): Remove all but python.o from
12319 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12320 * configure: Regenerate.
12321
12322 * Makefile.in (SFILES): Add extension.c.
12323 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12324 (COMMON_OBS): Add extension.o.
12325 * extension.h: New file.
12326 * extension-priv.h: New file.
12327 * extension.c: New file.
12328
12329 * python/python-internal.h: #include "extension.h".
12330 (gdbpy_auto_load_enabled): Declare.
12331 (gdbpy_apply_val_pretty_printer): Declare.
12332 (gdbpy_apply_frame_filter): Declare.
12333 (gdbpy_preserve_values): Declare.
12334 (gdbpy_breakpoint_cond_says_stop): Declare.
12335 (gdbpy_breakpoint_has_cond): Declare.
12336 (void source_python_script_for_objfile): Delete.
12337 * python/python.c: #include "extension-priv.h".
12338 Delete inclusion of "observer.h".
12339 (extension_language_python): Moved here and renamed from
12340 script_language_python in py-auto-load.c.
12341 Redefined to be of type extension_language_defn.
12342 (python_extension_script_ops): New global.
12343 (python_extension_ops): New global.
12344 (struct python_env): New member previous_active.
12345 (restore_python_env): Call restore_active_ext_lang.
12346 (ensure_python_env): Call set_active_ext_lang.
12347 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12348 New arg extlang.
12349 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12350 New arg extlang.
12351 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12352 New arg extlang.
12353 (gdbpy_eval_from_control_command): Renamed from
12354 eval_python_from_control_command, made static. New arg extlang.
12355 (gdbpy_source_script) Renamed from source_python_script, made static.
12356 New arg extlang.
12357 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12358 result to int. New arg extlang.
12359 (gdbpy_source_objfile_script): Renamed from
12360 source_python_script_for_objfile, made static. New arg extlang.
12361 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12362 static. New args extlang, extlang_printers. Change result type to
12363 "void".
12364 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12365 static. New arg extlang. Rename arg printers to extlang_printers
12366 and change type to ext_lang_type_printers *.
12367 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12368 static. Replace argument arg with extlang, extlang_printers.
12369 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12370 (!HAVE_PYTHON, source_python_script): Delete.
12371 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12372 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12373 (!HAVE_PYTHON, start_type_printers): Delete.
12374 (!HAVE_PYTHON, apply_type_printers): Delete.
12375 (!HAVE_PYTHON, free_type_printers): Delete.
12376 (_initialize_python): Delete call to observer_attach_before_prompt.
12377 (finalize_python): Set/restore active extension language.
12378 (gdbpy_finish_initialization) Renamed from
12379 finish_python_initialization, made static. New arg extlang.
12380 (gdbpy_initialized): New function.
12381 * python/python.h: #include "extension.h". Delete #include
12382 "value.h", "mi/mi-cmds.h".
12383 (extension_language_python): Declare.
12384 (GDBPY_AUTO_FILE_NAME): Delete.
12385 (enum py_bt_status): Moved to extension.h and renamed to
12386 ext_lang_bt_status.
12387 (enum frame_filter_flags): Moved to extension.h.
12388 (enum py_frame_args): Moved to extension.h and renamed to
12389 ext_lang_frame_args.
12390 (finish_python_initialization): Delete.
12391 (eval_python_from_control_command): Delete.
12392 (source_python_script): Delete.
12393 (apply_val_pretty_printer): Delete.
12394 (apply_frame_filter): Delete.
12395 (preserve_python_values): Delete.
12396 (gdbpy_script_language_defn): Delete.
12397 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12398 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12399
12400 * auto-load.c: #include "extension.h".
12401 (GDB_AUTO_FILE_NAME): Delete.
12402 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12403 (script_language_gdb): Delete, moved to extension.c and renamed to
12404 extension_language_gdb.
12405 (source_gdb_script_for_objfile): Delete.
12406 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12407 (loaded_script): Change type of language member to
12408 struct extension_language_defn *.
12409 (init_loaded_scripts_info): Initialize
12410 unsupported_script_warning_printed.
12411 (maybe_add_script): Make static. Change type of language arg to
12412 struct extension_language_defn *.
12413 (clear_section_scripts): Reset unsupported_script_warning_printed.
12414 (auto_load_objfile_script_1): Rewrite to use extension language API.
12415 (auto_load_objfile_script): Make public. Remove support-compiled-in
12416 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12417 (source_section_scripts): Rewrite to use extension language API.
12418 (load_auto_scripts_for_objfile): Rewrite to use
12419 auto_load_scripts_for_objfile.
12420 (collect_matching_scripts_data): Change type of language member to
12421 struct extension_language_defn *.
12422 (auto_load_info_scripts): Change type of language arg to
12423 struct extension_language_defn *.
12424 (unsupported_script_warning_print): New function.
12425 (script_not_found_warning_print): Make static.
12426 (_initialize_auto_load): Rewrite construction of scripts-directory
12427 help.
12428 * auto-load.h (struct objfile): Add forward decl.
12429 (struct script_language): Delete.
12430 (struct auto_load_pspace_info): Add forward decl.
12431 (struct extension_language_defn): Add forward decl.
12432 (maybe_add_script): Delete.
12433 (auto_load_objfile_script): Declare.
12434 (script_not_found_warning_print): Delete.
12435 (auto_load_info_scripts): Update prototype.
12436 (auto_load_gdb_scripts_enabled): Declare.
12437 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12438 auto_load_python_scripts_enabled and made public.
12439 (script_language_python): Delete, moved to python.c.
12440 (gdbpy_script_language_defn): Delete.
12441 (info_auto_load_python_scripts): Update to use
12442 extension_language_python.
12443
12444 * breakpoint.c (condition_command): Replace call to
12445 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12446 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12447 with call to breakpoint_ext_lang_cond_says_stop.
12448 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12449 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12450 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12451 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12452 New arg slang.
12453 (local_setattro): Print name of extension language with existing
12454 stop condition.
12455
12456 * valprint.c (val_print, value_print): Update to call
12457 apply_ext_lang_val_pretty_printer.
12458 * cp-valprint.c (cp_print_value): Update call to
12459 apply_ext_lang_val_pretty_printer.
12460 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12461 (gdbpy_apply_val_pretty_printer): Renamed from
12462 apply_val_pretty_printer. New arg extlang.
12463 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12464
12465 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12466 extension language API.
12467 * cli/cli-script.c (execute_control_command): Update to call
12468 eval_ext_lang_from_control_command.
12469
12470 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12471 enum ext_lang_bt_status values. Update call to
12472 apply_ext_lang_frame_filter.
12473 (mi_cmd_stack_list_locals): Ditto.
12474 (mi_cmd_stack_list_args): Ditto.
12475 (mi_cmd_stack_list_variables): Ditto.
12476 * mi/mi-main.c: Delete #include "python/python-internal.h".
12477 Add #include "extension.h".
12478 (mi_cmd_list_features): Replace reference to python internal variable
12479 gdb_python_initialized with call to ext_lang_initialized_p.
12480
12481 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12482 Update to use enum ext_lang_frame_args. Update to call
12483 apply_ext_lang_frame_filter.
12484 * python/py-framefilter.c (extract_sym): Update to use enum
12485 ext_lang_bt_status.
12486 (extract_value, py_print_type, py_print_value): Ditto.
12487 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12488 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12489 (py_print_frame): Ditto.
12490 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12491 New arg extlang. Update to use enum ext_lang_bt_status.
12492
12493 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12494 finish_python_initialization. Replace with call to
12495 finish_ext_lang_initialization.
12496
12497 * typeprint.c (do_free_global_table): Update to call
12498 free_ext_lang_type_printers.
12499 (create_global_typedef_table): Update to call
12500 start_ext_lang_type_printers.
12501 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12502 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12503 (type_print_options): Change type of global_printers from "void *"
12504 to "struct ext_lang_type_printers *".
12505
12506 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12507 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12508 (gdbpy_preserve_values): Renamed from preserve_python_values.
12509 New arg extlang.
12510 (!HAVE_PYTHON, preserve_python_values): Delete.
12511
12512 * utils.c (quit_flag): Delete, moved to extension.c.
12513 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12514 extension.c.
12515
12516 * eval.c: Delete #include "python/python.h".
12517 * main.c: Delete #include "python/python.h".
12518
12519 * defs.h: Update comment.
12520
6af79985
JB
125212014-02-06 Joel Brobecker <brobecker@adacore.com>
12522
12523 GDB 7.7 released.
12524
12c5175d
MK
125252014-02-05 Mark Kettenis <kettenis@gnu.org>
12526
12527 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12528 defined.
12529
8dc5b319
YQ
125302014-02-05 Yao Qi <yao@codesourcery.com>
12531
12532 * remote.c (remote_pass_signals): Remove local 'buf' and use
12533 rs->buf.
12534 (remote_program_signals): Likewise.
12535
de7b2893
YQ
125362014-02-05 Yao Qi <yao@codesourcery.com>
12537
12538 * ctf.c: Include "inferior.h" and "gdbthread.h".
12539 (CTF_PID): A new macro.
12540 (ctf_open): Call inferior_appeared and add_thread_silent.
12541 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12542 (ctf_thread_alive): New function.
12543 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12544
66d032ac
YQ
125452014-02-05 Yao Qi <yao@codesourcery.com>
12546
12547 Revert this patch:
12548
12549 2013-05-24 Yao Qi <yao@codesourcery.com>
12550
12551 * tracepoint.c (TFILE_PID): Remove.
12552 (tfile_open): Don't add thread and inferior.
12553 (tfile_close): Don't set 'inferior_ptid'. Don't call
12554 exit_inferior_silent.
12555 (tfile_thread_alive): Remove.
12556 (init_tfile_ops): Don't set field 'to_thread_alive' of
12557 tfile_ops.
12558
f4ccffad
CE
125592014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12560
12561 * remote.c (remote_start_remote): Call remote_check_symbols even
12562 if only symbol-file (not file) has been given.
12563
591a12a1
UW
125642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12565
12566 * gdbarch.sh (skip_entrypoint): New callback.
12567 * gdbarch.c, gdbarch.h: Regenerate.
12568 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12569 * infrun.c (fill_in_stop_func): Likewise.
12570 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12571 (ppc_elfv2_elf_make_msymbol_special): New function.
12572 (ppc_elfv2_skip_entrypoint): Likewise.
12573 (ppc_linux_init_abi): Install them for ELFv2.
12574
cc0e89c5
UW
125752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12576
12577 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12578 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12579 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12580 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12581 structures returned in GPRs.
12582
52f548e4
UW
125832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12584
12585 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12586 offset to the stack parameter list for the ELFv2 ABI.
12587
d4094b6a
UW
125882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12589
12590 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12591 set_gdbarch_convert_from_func_ptr_addr and
12592 set_gdbarch_elf_make_msymbol_special for ELFv1.
12593 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12594 function descriptors on ELFv1.
12595 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12596 set up r12 at function entry.
12597
cd453cd0
UW
125982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12599
12600 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12601 (struct gdbarch_tdep): New member elf_abi.
12602
12603 * rs6000-tdep.c: Include "elf/ppc64.h".
12604 (rs6000_gdbarch_init): Detect ELF ABI version.
12605
0ff3e01f
UW
126062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12607
12608 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12609 within a register pair holding a DFP 128-bit value on little-endian.
12610 (ppc64_sysv_abi_return_value_base): Likewise.
12611 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12612 (dfp_pseudo_register_write): Likewise.
12613
5b757e5d
UW
126142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12615
12616 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12617 offset on little-endian when passing _Decimal32.
12618 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12619
084ee545
UW
126202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12621
12622 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12623 of the overlapped FP register within the VSX register on little-
12624 endian platforms.
12625 (efpr_pseudo_register_write): Likewise.
12626
d63167af
UW
126272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12628
12629 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12630 offset on little-endian when passing small structures.
12631
e765b44c
UW
126322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12633
12634 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12635 (struct ppc64_sysv_argpos): New data structure.
12636 (ppc64_sysv_abi_push_float): Remove.
12637 (ppc64_sysv_abi_push_val): New function.
12638 (ppc64_sysv_abi_push_integer): Likewise.
12639 (ppc64_sysv_abi_push_freg): Likewise.
12640 (ppc64_sysv_abi_push_vreg): Likewise.
12641 (ppc64_sysv_abi_push_param): Likewise.
12642 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12643 (ppc64_sysv_abi_return_value_base): New function.
12644 (ppc64_sysv_abi_return_value): Refactor to use it.
12645
36c24d95
UW
126462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12647
12648 * NEWS: Document new target powerpc64le-*-linux*.
12649
26fd9228
MK
126502014-02-04 Mark Kettenis <kettenis@gnu.org>
12651
12652 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12653 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12654 core dumps.
12655 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12656 register set used in ELF core dumps. Add floating-point register set.
12657
c5bb7362
KB
126582014-02-03 Kevin Buettner <kevinb@redhat.com>
12659
74228e77 12660 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12661 dwarf2_to_gdb[] table using symbolic constants. Adjust
12662 penultimate entry from number representing the PC register
12663 to symbolic constant representing the MDR register. Add
12664 constant for the PC register to the end of the table.
12665
af09351e
MK
126662014-02-03 Mark Kettenis <kettenis@gnu.org>
12667
12668 * bsd-kvm.c: Include <sys/param.h>
12669
8507e05d
MK
126702014-02-03 Mark Kettenis <kettenis@gnu.org>
12671
12672 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12673
ae56bfb8
JB
126742014-01-31 Joel Brobecker <brobecker@adacore.com>
12675
12676 * ada-lang.h (clear_ada_sym_cache): Delete.
12677
718ee4dc
UW
126782014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12679
12680 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12681
401e27fd
JM
126822014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12683
12684 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12685 the sigreturn register save area only if the syscall is
12686 sigreturn.
12687
a7c88acd
JB
126882014-01-29 Joel Brobecker <brobecker@adacore.com>
12689
12690 * valops.c (value_slice): Minor reformatting.
12691
fa0079ea
UW
126922014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12693
12694 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12695
c6044dd1
JB
126962014-01-28 Joel Brobecker <brobecker@adacore.com>
12697
12698 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12699 New static globals.
12700 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12701 (ada_ignore_descriptive_types_p): New static global.
12702 (find_parallel_type_by_descriptive_type): Return immediately
12703 if ada_ignore_descriptive_types_p is set.
12704 (_initialize_ada_language): Register new commands "maintenance
12705 set ada", "maintenance show ada", "maintenance set ada
12706 ignore-descriptive-types" and "maintenance show ada
12707 ignore-descriptive-types".
12708 * NEWS: Add entry for new "maint ada set/show
12709 ignore-descriptive-types" commands.
12710
568e808b
MM
127112014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12712
12713 * record-btrace.c (record_btrace_close): Call btrace_teardown
12714 for all threads.
12715
467d141b
JB
127162014-01-27 Joel Brobecker <brobecker@adacore.com>
12717
12718 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12719 "ui-out.h".
12720
fb151210
JB
127212014-01-27 Joel Brobecker <brobecker@adacore.com>
12722
12723 * ada-typeprint (type_is_full_subrange_of_target_type):
12724 New function.
12725 (print_range): Add parameter bounds_prefered_p. If not set,
12726 try printing range types using the name of their base type.
12727 (print_range_type): Add parameter bounds_prefered_p.
12728 Use it in call to print_range.
12729 (print_array_type, ada_print_type): Update calls to print_range
12730 and print_range_type.
12731
aba02109
JB
127322014-01-27 Joel Brobecker <brobecker@adacore.com>
12733
12734 * ada-typeprint.c (print_array_type, print_choices, print_range)
12735 (print_range_bound, print_dynamic_range_bound, print_range_type):
12736 Remove declaration.
12737
e62e21fd
JB
127382014-01-27 Joel Brobecker <brobecker@adacore.com>
12739
12740 * ada-typeprint.c (print_range): Add missing empty line
12741 after local declaration.
12742
859cf5d1
JB
127432014-01-27 Joel Brobecker <brobecker@adacore.com>
12744
12745 * ada-valprint.c (print_optional_low_bound): Get index_type's
12746 target type for as long as it is a TYPE_CODE_RANGE.
12747
25790f6f
JB
127482014-01-27 Joel Brobecker <brobecker@adacore.com>
12749
12750 * procfs.c (procfs_make_note_section): Remove assertion and
12751 associated comment.
12752
6b6aa828
YQ
127532014-01-24 Yao Qi <yao@codesourcery.com>
12754
12755 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12756 * corelow.c (get_core_siginfo): Likewise.
12757
5d6df423
YQ
127582014-01-24 Yao Qi <yao@codesourcery.com>
12759
12760 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12761 ULONGEST. Don't check 'len' is negative.
12762 (remote_write_bytes): Change type of 'len' to ULONGEST.
12763
83b645b8
TT
127642014-01-23 Tom Tromey <tromey@redhat.com>
12765
12766 PR python/16485:
12767 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12768 Handle exception from frame.block.
12769 (FrameVars.fetch_frame_locals): Likewise.
12770
0740f8d8
TT
127712014-01-23 Tom Tromey <tromey@redhat.com>
12772
12773 PR python/16487:
12774 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12775 on a NULL pointer. Move "goto error" to correct place.
12776
21909fa1
TT
127772014-01-23 Tom Tromey <tromey@redhat.com>
12778
12779 PR python/16491:
12780 * python/py-framefilter.c (apply_frame_filter): Call
12781 ensure_python_env after computing gdbarch.
12782
17fde6d0
YQ
127832014-01-23 Yao Qi <yao@codesourcery.com>
12784
12785 * target.c (raw_memory_xfer_partial): Change argument type
12786 from void * to gdb_byte *.
12787 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12788
87ce2a04
DE
127892014-01-22 Doug Evans <dje@google.com>
12790
12791 New gdbserver option --debug-format=timestamp.
12792 * NEWS: Mention it.
12793
237b092b
AA
127942014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12795
12796 * syscalls/s390x-linux.xml: New file.
12797 * syscalls/s390-linux.xml: New file.
12798 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12799 (XML_SYSCALL_FILENAME_S390X): Likewise.
12800 (op_svc): New enum value for SVC opcode.
12801 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12802 (s390_linux_get_syscall_number): New function.
12803 (s390_gdbarch_init): Register '*get_syscall_number' and the
12804 syscall xml file name.
12805 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12806 "s390-linux.xml" and "s390x-linux.xml".
12807 * NEWS: Announce new feature.
12808
54bff650
BS
128092014-01-22 Baruch Siach <baruch@tkos.co.il>
12810
12811 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12812
14e361d7
PA
128132014-01-22 Pedro Alves <palves@redhat.com>
12814
12815 * xtensa-config.c: Include defs.h.
12816
46bbb3ed
JB
128172014-01-22 Joel Brobecker <brobecker@adacore.com>
12818
12819 * common/common-utils.h: Add "ARI:" comment beside __func__
12820 reference.
12821
3a80edfc
JB
128222014-01-22 Joel Brobecker <brobecker@adacore.com>
12823
12824 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12825 documentation a bit.
12826
4869db5e
RM
128272014-01-21 Roland McGrath <mcgrathr@google.com>
12828
12829 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12830 * configure: Regenerate.
12831 * aclocal.m4: Regenerate.
12832 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12833 New substituted variables.
12834 (install-strip): New target.
12835 (INSTALL_SCRIPT): New substituted variable.
12836 (FLAGS_TO_PASS): Add it.
12837 (install-only): Use $(INSTALL_SCRIPT) rather than
12838 $(INSTALL_PROGRAM) for gcore.
12839
9ea4267d
TT
128402014-01-20 Tom Tromey <tromey@redhat.com>
12841
12842 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12843 together.
12844
1f2bdf09
TT
128452014-01-20 Tom Tromey <tromey@redhat.com>
12846
12847 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12848 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12849 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12850 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12851 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12852 (struct cmd_list_element) <flags>: Remove.
12853 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12854 doc_allocated>: New fields.
12855 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12856 bitfields.
12857 * maint.c (maintenance_do_deprecate): Update.
12858 * top.c (execute_command): Update.
12859
e671835b
BS
128602014-01-20 Baruch Siach <baruch@tkos.co.il>
12861
12862 * xtensa-linux-nat.c: Include asm/ptrace.h.
12863
50367cd2
IB
128642014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12865
12866 * Makefile.in (SFILES): Add d-support.c.
12867 (COMMON_OBS): Add d-support.o.
12868 * d-lang.h (d_parse_symbol): Add comment, now defined in
12869 d-support.c.
12870 * d-lang.c (parse_call_convention)
12871 (parse_attributes, parse_function_types)
12872 (parse_function_args, parse_type, parse_identifier)
12873 (call_convention_p, d_parse_symbol): Move functions to ...
12874 * d-support.c: ... New file.
12875
ec9f644a
IB
128762014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12877
12878 * d-lang.h (d_parse_symbol): Add declaration.
12879 * d-lang.c (extract_identifiers)
12880 (extract_type_info): Remove functions.
12881 (parse_call_convention, parse_attributes)
12882 (parse_function_types, parse_function_args)
12883 (parse_type, parse_identifier, call_convention_p)
12884 (d_parse_symbol): New functions.
12885 (d_demangle): Use d_parse_symbol to demangle D symbols.
12886
94b1b47e
IB
128872014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12888
12889 * d-lang.h (struct builtin_d_type): New data type.
12890 (builtin_d_type): Add declaration.
12891 * d-lang.c (d_language_arch_info, build_d_types)
12892 (builtin_d_type): New functions.
12893 (enum d_primitive_types): New data type.
12894 (d_language_defn): Change c_language_arch_info to
12895 d_language_arch_info.
12896 (d_type_data): New static variable.
12897 (_initialize_d_language): Initialize d_type_data.
12898
63778547
IB
128992014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12900
12901 * d-lang.h (d_main_name): Add declaration.
12902 * d-lang.c (d_main_name): New function.
12903 * symtab.c (find_main_name): Add call to d_main_name.
12904
3271ba66
IB
129052014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12906
12907 * d-lang.c (d_language_defn): Change macro_expansion_c to
12908 macro_expansion_no.
12909
d36b3012
IB
129102014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12911
12912 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12913
c90a6fb7
SDJ
129142014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12915
12916 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12917 gdb_exception" declaration.
12918 * remote.c (getpkt_or_notif_sane): Likewise.
12919
749234e5
DE
129202014-01-17 Doug Evans <dje@google.com>
12921
12922 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12923 function, contents of dirnames_to_char_ptr_vec_append moved here.
12924 (delim_string_to_char_ptr_vec): New function.
12925 (dirnames_to_char_ptr_vec_append): Rewrite.
12926 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12927
df049a58
DE
129282014-01-17 Doug Evans <dje@google.com>
12929
12930 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12931 and moved here ...
12932 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12933 #include "common-utils.h".
12934 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12935 * common/vec.h (VEC_ASSERT_PASS): Update.
12936 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12937 (MACH_CHECK_ERROR): Update.
12938
69f97648
SM
129392014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12940
12941 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12942 comments.
12943 * gdbarch.h: Regenerate.
12944
98b1cfdc
TT
129452014-01-16 Tom Tromey <tromey@redhat.com>
12946
12947 * value.c (struct value) <regnum>: Move earlier.
12948
77a19445
TT
129492014-01-16 Tom Tromey <tromey@redhat.com>
12950
12951 * remote.c (extended_remote_create_inferior): Rename from
12952 extended_remote_create_inferior_1. Add "ops" argument. Remove
12953 old implementation.
12954
62261490
PA
129552014-01-16 Pedro Alves <palves@redhat.com>
12956
12957 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12958 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12959 the backchain.
12960
4d65956b
DE
129612014-01-16 Doug Evans <dje@google.com>
12962
12963 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12964
52834460
MM
129652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12966
12967 * btrace.h (btrace_thread_flag): New.
12968 (struct btrace_thread_info) <flags>: New.
12969 * record-btrace.c (record_btrace_resume_thread)
12970 (record_btrace_find_thread_to_move, btrace_step_no_history)
12971 (btrace_step_stopped, record_btrace_start_replaying)
12972 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12973 (record_btrace_find_resume_thread): New.
12974 (record_btrace_resume, record_btrace_wait): Extend.
12975 (record_btrace_can_execute_reverse): New.
12976 (record_btrace_open): Fail in non-stop mode.
12977 (record_btrace_set_replay): Split into this, ...
12978 (record_btrace_stop_replaying): ... this, ...
12979 (record_btrace_clear_histories): ... and this.
12980 (init_record_btrace_ops): Init to_can_execute_reverse.
12981 * NEWS: Announce it.
12982
118e6252
MM
129832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12984
12985 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12986 (forward_target_decr_pc_after_break)
12987 (target_decr_pc_after_break): New.
12988 * target.c (forward_target_decr_pc_after_break)
12989 (target_decr_pc_after_break): New.
12990 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12991 instead of gdbarch_decr_pc_after_break.
12992 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12993 instead of gdbarch_decr_pc_after_break.
12994 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12995 instead of gdbarch_decr_pc_after_break.
12996 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12997 instead of gdbarch_decr_pc_after_break.
12998 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12999 instead of gdbarch_decr_pc_after_break.
13000 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13001 instead of gdbarch_decr_pc_after_break.
13002
6e07b1d2
MM
130032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13004
13005 * btrace.c: Include regcache.h.
13006 (btrace_add_pc): New.
13007 (btrace_enable): Call btrace_add_pc.
13008 (btrace_is_empty): New.
13009 * btrace.h (btrace_is_empty): New.
13010 * record-btrace.c (require_btrace, record_btrace_info): Call
13011 btrace_is_empty.
13012
969c39fb
MM
130132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13014
13015 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13016 Support delta reads.
13017 (linux_disable_btrace): Change return type.
13018 * common/linux-btrace.h (linux_read_btrace): Change parameters
13019 and return type to allow error reporting. Update users.
13020 (linux_disable_btrace): Change return type. Update users.
13021 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13022 New.
13023 (btrace_error): New.
13024 (btrace_block) <begin>: Comment on BEGIN == 0.
13025 * btrace.c (btrace_compute_ftrace): Start from the end of
13026 the current trace.
13027 (btrace_stitch_trace, btrace_clear_history): New.
13028 (btrace_fetch): Read delta trace, return if replaying.
13029 (btrace_clear): Move clear history code to btrace_clear_history.
13030 (parse_xml_btrace): Throw an error if parsing failed.
13031 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13032 and return type to allow error reporting.
13033 (target_read_btrace): Change parameters and return type to allow
13034 error reporting.
13035 * target.c (target_read_btrace): Update.
13036 * remote.c (remote_read_btrace): Support delta reads. Pass
13037 errors on.
13038 * NEWS: Announce it.
13039
0b722aec
MM
130402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13041
13042 * record.h (record_btrace_frame_unwind)
13043 (record_btrace_tailcall_frame_unwind): New declarations.
13044 * dwarf2-frame: Include record.h
13045 (dwarf2_frame_cfa): Throw an error for btrace frames.
13046 * record-btrace.c: Include hashtab.h.
13047 (btrace_get_bfun_name): New.
13048 (btrace_call_history): Call btrace_get_bfun_name.
13049 (struct btrace_frame_cache): New.
13050 (bfcache): New.
13051 (bfcache_hash, bfcache_eq, bfcache_new): New.
13052 (btrace_get_frame_function): New.
13053 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13054 (record_btrace_frame_this_id): Compute own id.
13055 (record_btrace_frame_prev_register): Provide PC, throw_error
13056 for all other registers.
13057 (record_btrace_frame_sniffer): Detect btrace frames.
13058 (record_btrace_tailcall_frame_sniffer): New.
13059 (record_btrace_frame_dealloc_cache): New.
13060 (record_btrace_frame_unwind): Add new functions.
13061 (record_btrace_tailcall_frame_unwind): New.
13062 (_initialize_record_btrace): Allocate cache.
13063 * btrace.c (btrace_clear): Call reinit_frame_cache.
13064 * NEWS: Announce it.
13065
066ce621
MM
130662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13067
13068 * record-btrace.c (record_btrace_set_replay)
13069 (record_btrace_goto_begin, record_btrace_goto_end)
13070 (record_btrace_goto): New.
13071 (init_record_btrace_ops): Initialize them.
13072 * NEWS: Announce it.
13073
e2887aa3
MM
130742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13075
13076 * record-btrace.c (record_btrace_find_new_threads)
13077 (record_btrace_thread_alive): New.
13078 (init_record_btrace_ops): Initialize to_find_new_threads and
13079 to_thread_alive.
13080
b2f4cfde
MM
130812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13082
13083 * record-btrace.c (record_btrace_resume): New.
13084 (record_btrace_wait): New.
13085 (init_record_btrace_ops): Initialize to_wait and to_resume.
13086
633785ff
MM
130872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13088
13089 * record-btrace.c (record_btrace_xfer_partial)
13090 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13091 (record_btrace_allow_memory_access): New.
13092 (init_record_btrace_ops): Initialize new methods.
13093 * target.c (raw_memory_xfer_partial): Bail out if target reports
13094 that this memory is not available.
13095
3db08215
MM
130962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13097
13098 * target.h (target_ops) <to_insert_breakpoint>
13099 <to_remove_breakpoint>: Add target_ops parameter.
13100 (forward_target_insert_breakpoint): New.
13101 (forward_target_remove_breakpoint): New.
13102 (memory_remove_breakpoint, memory_insert_breakpoint):
13103 Add target_ops parameter.
13104 * target.c (target_insert_breakpoint): Split into this and ...
13105 (forward_target_insert_breakpoint): ... this.
13106 (target_remove_breakpoint): Split into this and ...
13107 (forward_target_remove_breakpoint): ... this.
13108 (debug_to_insert_breakpoint): Add target_ops parameter.
13109 Call forward_target_insert_breakpoint.
13110 (debug_to_remove_breakpoint): Add target_ops parameter.
13111 Call forward_target_remove_breakpoint.
13112 (update_current_target): Do not inherit or default to_insert_breakpoint
13113 and to_remove_breakpoint.
13114 * corelow.c (ignore): Add target_ops parameter.
13115 * exec.c (ignore): Add target_ops parameter.
13116 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13117 Add target_ops parameter.
13118 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13119 Add target_ops parameter.
13120 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13121 Add target_ops parameter.
13122 * record-full.c (record_full_beneath_to_insert_breakpoint)
13123 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13124 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13125 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13126 (record_full_core_remove_breakpoint): Add target_ops parameter.
13127 Update users.
13128 (record_full_beneath_to_insert_breakpoint_ops)
13129 (record_full_beneath_to_remove_breakpoint_ops)
13130 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13131 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13132 tmp_to_remove_breakpoint_ops,
13133 record_full_beneath_to_insert_breakpoint_ops, and
13134 record_full_beneath_to_remove_breakpoint_ops.
13135 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13136 (m32r_remove_breakpoint): Add target_ops parameter.
13137 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13138 Add target_ops parameter.
13139 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13140 Add target_ops parameter.
13141
cecac1ab
MM
131422014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13143 Markus Metzger <markus.t.metzger@intel.com>
13144
13145 * record-btrace.c: Include frame-unwind.h.
13146 (record_btrace_frame_unwind_stop_reason)
13147 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13148 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13149 New.
13150 (init_record_btrace_ops): Install it.
13151
824344ca
MM
131522014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13153
13154 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13155 get_prev_frame_1.
13156
32261e52
MM
131572014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13158
13159 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13160 earlier.
13161
ea001bdc
MM
131622014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13163
13164 * frame-unwind.c: Include target.h.
13165 (frame_unwind_try_unwinder): New function with code from ...
13166 (frame_unwind_find_by_frame): ... here. New variable
13167 unwinder_from_target, call also target_get_unwinder)
13168 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13169 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13170 * target.h (struct target_ops): New fields to_get_unwinder and
13171 to_get_tailcall_unwinder.
13172 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13173
1f3ef581
MM
131742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13175
13176 * record-btrace.c (record_btrace_fetch_registers)
13177 (record_btrace_store_registers)
13178 (record_btrace_to_prepare_to_store): New.
13179 (init_record_btrace_ops): Add the above.
13180
f32dbf8c
MM
131812014-01-16 Tom Tromey <tromey@redhat.com>
13182
13183 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13184 * target.h (struct target_ops) <to_prepare_to_store>: Add
13185 argument.
13186 (target_prepare_to_store): Add argument.
13187 * target.c (debug_to_prepare_to_store): Add argument.
13188 (update_current_target): Update.
13189 * remote.c (remote_prepare_to_store): Add 'self' argument.
13190 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13191 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13192 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13193 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13194 argument.
13195 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13196 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13197 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13198 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13199 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13200
07bbe694
MM
132012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13202
13203 * btrace.h (replay) <replay>: New.
13204 (btrace_is_replaying): New.
13205 * btrace.c (btrace_clear): Free replay iterator.
13206 (btrace_is_replaying): New.
13207 * record-btrace.c (record_btrace_is_replaying): New.
13208 (record_btrace_info): Print insn number if replaying.
13209 (record_btrace_insn_history): Start at replay position.
13210 (record_btrace_call_history): Start at replay position.
13211 (init_record_btrace_ops): Init to_record_is_replaying.
13212
0688d04e
MM
132132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13214
13215 * record-btrace.c (record_btrace_insn_history_range): Include
13216 end.
13217 (record_btrace_insn_history_from): Adjust range.
13218 (record_btrace_call_history_range): Include
13219 end.
13220 (record_btrace_call_history_from): Adjust range.
13221 * NEWS: Announce changes.
13222
8710b709
MM
132232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13224
13225 * record.h (enum record_print_flag)
13226 <record_print_indent_calls>: New.
13227 * record.c (get_call_history_modifiers): Recognize /c modifier.
13228 (_initialize_record): Document /c modifier.
13229 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13230 Reorder fields. Optionally indent the function name. Update
13231 all users.
13232 * NEWS: Announce changes.
13233
d0fa7535
MM
132342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13235
13236 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13237
5de9129b
MM
132382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13239
13240 * btrace.c (ftrace_new_function): Start counting at one.
13241 * record-btrace.c (record_btrace_info): Adjust number of calls
13242 and insns.
13243 * NEWS: Announce it.
13244
7acbe133
MM
132452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13246
13247 * record-btrace.c (btrace_call_history_insn_range): Print
13248 insn range as [begin, end].
13249
23a7fe75
MM
132502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13251
13252 * btrace.h (struct btrace_func_link): New.
13253 (enum btrace_function_flag): New.
13254 (struct btrace_inst): Rename to ...
13255 (struct btrace_insn): ...this. Update all users.
13256 (struct btrace_func) <ibegin, iend>: Remove.
13257 (struct btrace_func_link): New.
13258 (struct btrace_func): Rename to ...
13259 (struct btrace_function): ...this. Update all users.
13260 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13261 (number, level, flags>: New.
13262 (struct btrace_insn_iterator): Rename to ...
13263 (struct btrace_insn_history): ...this.
13264 Update all users.
13265 (struct btrace_insn_iterator, btrace_call_iterator): New.
13266 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13267 (struct btrace_target_info) <begin, end, level>
13268 <insn_history, call_history>: New.
13269 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13270 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13271 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13272 (btrace_call_number, btrace_call_begin, btrace_call_end)
13273 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13274 (btrace_find_function_by_number, btrace_set_insn_history)
13275 (btrace_set_call_history): New.
13276 * btrace.c (btrace_init_insn_iterator)
13277 (btrace_init_func_iterator, compute_itrace): Remove.
13278 (ftrace_print_function_name, ftrace_print_filename)
13279 (ftrace_skip_file): Change
13280 parameter to const.
13281 (ftrace_init_func): Remove.
13282 (ftrace_debug): Use new btrace_function fields.
13283 (ftrace_function_switched): Also consider gaining and
13284 losing symbol information).
13285 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13286 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13287 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13288 New.
13289 (ftrace_new_function): Move. Remove debug print.
13290 (ftrace_update_lines, ftrace_update_insns): New.
13291 (ftrace_update_function): Check for call, ret, and jump.
13292 (compute_ftrace): Renamed to ...
13293 (btrace_compute_ftrace): ...this. Rewritten to compute call
13294 stack.
13295 (btrace_fetch, btrace_clear): Updated.
13296 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13297 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13298 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13299 (btrace_call_number, btrace_call_begin, btrace_call_end)
13300 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13301 (btrace_find_function_by_number, btrace_set_insn_history)
13302 (btrace_set_call_history): New.
13303 * record-btrace.c (require_btrace): Use new btrace thread
13304 info fields.
13305 (record_btrace_info, btrace_insn_history)
13306 (record_btrace_insn_history, record_btrace_insn_history_range):
13307 Use new btrace thread info fields and new iterator.
13308 (btrace_func_history_src_line): Rename to ...
13309 (btrace_call_history_src_line): ...this. Use new btrace
13310 thread info fields.
13311 (btrace_func_history): Rename to ...
13312 (btrace_call_history): ...this. Use new btrace thread info
13313 fields and new iterator.
13314 (record_btrace_call_history, record_btrace_call_history_range):
13315 Use new btrace thread info fields and new iterator.
13316
8372a7cb
MM
133172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13318
13319 * frame.h (frame_id_build_unavailable_stack_special): New.
13320 * frame.c (frame_id_build_unavailable_stack_special): New.
13321
c2170eef
MM
133222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13323
13324 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13325 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13326 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13327 to gdbarch.
13328 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13329 (i386_insn_is_jump, i386_jmp_p): New.
13330 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13331 insn_is_jump to gdbarch.
13332 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13333 * gdbarch.h: Regenerated.
13334 * gdbarch.c: Regenerated.
13335 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13336 (default_insn_is_jump): New.
13337 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13338 (default_insn_is_jump): New.
13339
864089d2
MM
133402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13341
13342 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13343 Change to ...
13344 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13345 (btrace_read_type) <btrace_read_new>: Change to ...
13346 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13347
ed9edfb5
MM
133482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13349
13350 * common/linux-btrace.c (linux_read_btrace): Free trace from
13351 previous iteration.
13352
fbcbc3fd
DE
133532014-01-15 Doug Evans <dje@google.com>
13354
13355 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13356 uint32_t.
13357
3d548a53
TT
133582014-01-15 Tom Tromey <tromey@redhat.com>
13359
13360 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13361 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13362 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13363 (set_objfile_main_name): New function.
13364 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13365 language_of_main>: New fields.
13366 (set_objfile_main_name): Declare.
13367 * symtab.c (find_main_name): Loop over objfiles to find the main
13368 name and language.
13369 (set_main_name): Now static.
13370 (get_main_info): Add comment.
13371 * symtab.h (set_main_name): Don't declare.
13372
32ac0d11
TT
133732014-01-15 Tom Tromey <tromey@redhat.com>
13374
13375 * symtab.c (main_progspace_key): New global.
13376 (struct main_info): New.
13377 (name_of_main, language_of_main): Remove.
13378 (get_main_info, main_info_cleanup): New function.
13379 (set_main_name, main_name, main_language): Use get_main_info.
13380 (_initialize_symtab): Initialize main_progspace_key.
13381
9e6c82ad
TT
133822014-01-15 Tom Tromey <tromey@redhat.com>
13383
13384 * dbxread.c (process_one_symbol): Update.
13385 * dwarf2read.c (read_partial_die): Update.
13386 * symfile.c (set_initial_language): Call main_language.
13387 * symtab.c (language_of_main): Now static.
13388 (set_main_name): Add 'lang' parameter.
13389 (find_main_name): Update.
13390 (main_language): New function.
13391 (symtab_observer_executable_changed): Update.
13392 * symtab.h (set_main_name): Update.
13393 (language_of_main): Remove.
13394 (main_language): Declare.
13395
6ef55de7
TT
133962014-01-15 Tom Tromey <tromey@redhat.com>
13397
13398 * symfile.c (init_entry_point_info): Use new "initialized" field.
13399 Update.
13400 * objfiles.h (struct entry_point) <initialized>: New field.
13401 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13402 (struct objfile) <ei>: ...here. Remove.
13403 * objfiles.c (entry_point_address_query): Update.
13404
53eddfa6
TT
134052014-01-15 Tom Tromey <tromey@redhat.com>
13406
13407 * objfiles.c (entry_point_address_query): Relocate entry point
13408 address.
13409 (objfile_relocate1): Do not relocate entry point address.
13410 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13411 <the_bfd_section_index>: New field.
13412 * symfile.c (init_entry_point_info): Find the entry point's
13413 section.
13414
d56e56aa
TT
134152014-01-15 Tom Tromey <tromey@redhat.com>
13416
13417 * solib-frv.c (enable_break): Use entry_point_address_query.
13418
33a97bbe
OJ
134192014-01-15 Omair Javaid <omair.javaid@linaro.org>
13420
13421 * NEWS: Add note on improved process record-replay on
13422 arm*-linux* targets.
13423
c6ec2b30
OJ
134242014-01-15 Omair Javaid <omair.javaid@linaro.org>
13425
13426 * arm-tdep.c (enum arm_record_result): New enum.
13427 (arm_record_unsupported_insn): New function.
13428 (arm_record_coproc_data_proc): Removed.
13429 (thumb2_record_ld_st_multiple): New function.
13430 (thumb2_record_ld_st_dual_ex_tbb): New function.
13431 (thumb2_record_data_proc_sreg_mimm): New function.
13432 (thumb2_record_ps_dest_generic): New function.
13433 (thumb2_record_branch_misc_cntrl): New function.
13434 (thumb2_record_str_single_data): New function.
13435 (thumb2_record_ld_mem_hints): New function.
13436 (thumb2_record_ld_word): New function.
13437 (thumb2_record_lmul_lmla_div): New function.
13438 (thumb2_record_decode_insn_handler): New function.
13439 (decode_insn): Add thumb32 instruction handlers.
13440
97dfe206
OJ
134412014-01-15 Omair Javaid <omair.javaid@linaro.org>
13442
13443 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13444 (struct arm_linux_record_tdep): Declare.
13445 (arm_canonicalize_syscall): New function.
13446 (arm_all_but_pc_registers_record): New function.
13447 (arm_linux_syscall_record): New function.
13448 (arm_linux_init_abi): Add syscall recording constructs.
13449 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13450 decoding. (arm_record_coproc_data_proc): Update arm syscall
13451 decoding.
13452 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13453 <arm_syscall_record>: New field.
13454 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13455 gdb_target_obs.
13456
9904a494
OJ
134572014-01-15 Omair Javaid <omair.javaid@linaro.org>
13458
13459 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13460 register for push instruction recording.
13461
f969241e
OJ
134622014-01-15 Omair Javaid <omair.javaid@linaro.org>
13463
13464 * arm-tdep.c (thumb_record_misc): Update to correct logical
13465 error while recording ldm, ldmia and pop instructions.
13466
bfbbec00
OJ
134672014-01-15 Omair Javaid <omair.javaid@linaro.org>
13468
13469 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13470
e40adcc9
PA
134712014-01-15 Pedro Alves <palves@redhat.com>
13472
13473 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13474 (go32_resume, go32_fetch_registers, store_register)
13475 (go32_store_registers, go32_prepare_to_store)
13476 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13477 (go32_create_inferior, go32_can_run, go32_terminal_init)
13478 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13479 declarations.
13480
b0a16e66
TT
134812014-01-15 Tom Tromey <tromey@redhat.com>
13482
13483 * target.h (async_callback_ftype): New typedef.
13484 (struct target_ops) <to_async>: Use it.
13485
bf7105a4
JB
134862014-01-15 Joel Brobecker <brobecker@adacore.com>
13487
13488 * python/py-value.c (get_field_type): Remove unnecessary curly
13489 braces for single-statement if block.
13490
a8f35c2e
JB
134912014-01-15 Joel Brobecker <brobecker@adacore.com>
13492
13493 * python/py-type.c (convert_field): Add missing empty line
13494 after declarations.
13495
bb4142cf
DE
134962014-01-14 Doug Evans <dje@google.com>
13497
13498 * symfile.h (expand_symtabs_matching): Renamed from
13499 expand_partial_symbol_names. Update prototype.
13500 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13501 * symfile.c (expand_symtabs_matching): Renamed from
13502 expand_partial_symbol_names. New args file_matcher, kind.
13503 Rename arg fun to symbol_matcher.
13504 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13505 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13506 ada_expand_partial_symbol_name.
13507 (ada_make_symbol_completion_list): Update to call
13508 expand_symtabs_matching.
13509 (ada_add_global_exceptions): Call expand_symtabs_matching.
13510 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13511 call map_symbol_filenames.
13512 * symtab.c (sources_info): Update to call map_symbol_filenames.
13513 (search_symbols): Call expand_symtabs_matching.
13514 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13515 (default_make_symbol_completion_list_break_on): Update to call
13516 expand_symtabs_matching.
13517 (make_source_files_completion_list): Update to call
13518 map_symbol_filenames.
13519
206f2a57
DE
135202014-01-14 Doug Evans <dje@google.com>
13521
13522 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13523 (expand_symtabs_symbol_matcher_ftype): New typedef.
13524 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13525 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13526 * symfile.c (expand_partial_symbol_names): Update to use
13527 expand_symtabs_symbol_matcher_ftype.
13528 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13529 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13530 Arg name_matcher renamed to symbol_matcher.
13531 * psymtab.c (recursively_search_psymtabs): Update to use
13532 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13533 sym_matcher.
13534 (expand_symtabs_matching_via_partial): Update to use
13535 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13536 Arg name_matcher renamed to symbol_matcher.
13537
540c2971
DE
135382014-01-14 Doug Evans <dje@google.com>
13539
13540 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13541 (map_partial_symbol_filenames): Ditto.
13542 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13543 (map_partial_symbol_filenames): Ditto.
13544 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13545 (map_partial_symbol_filenames): Ditto.
13546 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13547 (map_partial_symbol_filenames): Ditto.
13548 * symtab.c: Delete #include "psymtab.h".
13549
8213266a
PA
135502014-01-14 Pedro Alves <palves@redhat.com>
13551 Tom Tromey <tromey@redhat.com>
13552
13553 * infrun.c (use_displaced_stepping): Use find_record_target
13554 instead of RECORD_IS_USED.
13555 (adjust_pc_after_break): Use record_full_is_used instead of
13556 RECORD_IS_USED.
13557 * record-btrace.c (record_btrace_open): Call record_preopen
13558 instead of checking RECORD_IS_USED.
13559 * record-full.c (record_full_shortname)
13560 (record_full_core_shortname): New globals.
13561 (record_full_is_used): New function.
13562 (find_full_open): Call record_preopen instead of checking
13563 RECORD_IS_USED.
13564 (init_record_full_ops): Set the target's shortname to
13565 record_full_shortname.
13566 (init_record_full_core_ops): Set the target's shortname to
13567 record_full_core_shortname.
13568 * record-full.h (record_full_is_used): Declare.
13569 * record.c (find_record_target): Make extern.
13570 (record_preopen): New function.
13571 * record.h (RECORD_IS_USED): Delete macro.
13572 (find_record_target, record_preopen): Declare functions.
13573
7ec1862d
YQ
135742014-01-14 Yao Qi <yao@codesourcery.com>
13575
13576 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13577 'len''s type to ULONGEST.
13578 (core_xfer_shared_libraries_aix): Likewise.
13579 * gdbarch.c, gdbarch.h: Regenerated.
13580 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13581 Change type of 'len' to ULONGEST.
13582 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13583 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13584
dea80a27
YQ
135852014-01-14 Yao Qi <yao@codesourcery.com>
13586
13587 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13588 type of 'len' to ULONGEST.
13589 (linux_xfer_osdata_processgroups): Likewise.
13590 (linux_xfer_osdata_threads): Likewise.
13591 (linux_xfer_osdata_fds): Likewise.
13592 (linux_xfer_osdata_isockets): Likewise.
13593 (linux_xfer_osdata_shm): Likewise.
13594 (linux_xfer_osdata_sem): Likewise.
13595 (linux_xfer_osdata_msg): Likewise.
13596 (linux_common_xfer_osdata): Likewise.
13597 (struct osdata_type) <getter>: Likewise.
13598 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13599 the declaration.
13600
b55e14c7
YQ
136012014-01-14 Yao Qi <yao@codesourcery.com>
13602
13603 * target.h (target_xfer_partial_ftype): Update.
13604 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13605 ULONGEST.
13606 * aix-thread.c (aix_thread_xfer_partial): Change type of
13607 argument 'len' to ULONGEST.
13608 * auxv.c (procfs_xfer_auxv): Likewise.
13609 (ld_so_xfer_auxv): Likewise.
13610 (memory_xfer_auxv): Likewise.
13611 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13612 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13613 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13614 * corelow.c (core_xfer_partial): Likewise.
13615 * ctf.c (ctf_xfer_partial): Likewise.
13616 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13617 '%u'.
13618 (darwin_read_dyld_info): Likewise.
13619 (darwin_xfer_partial): Likewise.
13620 * exec.c (section_table_xfer_memory_partial): Likewise.
13621 (exec_xfer_partial): Likewise.
13622 * exec.h (section_table_xfer_memory_partial): Update
13623 declaration.
13624 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13625 instead of plongest.
13626 (gnu_xfer_partial): Likewise.
13627 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13628 (ia64_hpux_xfer_solib_got): Likewise.
13629 (ia64_hpux_xfer_partial): Likewise.
13630 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13631 * inf-ptrace.c (inf_ptrace_xfer_partial):
13632 * inf-ttrace.c (inf_ttrace_xfer_partial):
13633 * linux-nat.c (linux_xfer_siginfo): Likewise.
13634 (linux_nat_xfer_partial): Likewise.
13635 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13636 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13637 * monitor.c (monitor_xfer_memory): Likewise.
13638 (monitor_xfer_partial): Likewise.
13639 * procfs.c (procfs_xfer_partial): Likewise.
13640 * record-full.c (record_full_xfer_partial): Likewise.
13641 (record_full_core_xfer_partial): Likewise.
13642 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13643 instead of plongest.
13644 (gdbsim_xfer_partial): Likewise.
13645 * remote.c (remote_xfer_partial): Likewise.
13646 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13647 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13648 declaration.
13649 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13650 (rs6000_xfer_shared_libraries): Likewise.
13651 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13652 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13653 (sparc_xfer_partial): Likewise.
13654 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13655 (spu_xfer_partial): Likewise.
13656 * spu-multiarch.c (spu_xfer_partial): Likewise.
13657 * target.c (target_read_live_memory): Likewise.
13658 (memory_xfer_live_readonly_partial): Likewise.
13659 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13660 (target_xfer_partial, default_xfer_partial): Likewise.
13661 (current_xfer_partial): Likewise.
13662 * tracepoint.c (tfile_xfer_partial): Likewise.
13663 * windows-nat.c (windows_xfer_memory): Likewise. Call
13664 pulongest instead of plongest.
13665 (windows_xfer_partial): Likewise.
13666 (windows_xfer_shared_libraries): Likewise.
13667
05804640
YQ
136682014-01-14 Yao Qi <yao@codesourcery.com>
13669
13670 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13671 target_xfer_partial_ftype.
13672
b5b08fb4
SC
136732014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13674
13675 PR python/15464
13676 PR python/16113
13677 * valops.c (value_struct_elt_bitpos): New function
13678 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13679 object to 'None' if the field name is an empty string ("").
13680 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13681 attribute to look for a field when 'name' is 'None'.
13682 (get_field_type): New function
13683
13aaf454
DE
136842014-01-13 Doug Evans <dje@google.com>
13685
13686 PR symtab/16426
13687 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13688 (try_open_dwop_file): Ditto.
13689 * gdb_bfd.c: #include "vec.h".
13690 (bfdp): New typedef.
13691 (struct gdb_bfd_data): New member included_bfds.
13692 (gdb_bfd_unref): Unref all included bfds.
13693 (gdb_bfd_record_inclusion): New function.
13694 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13695
c2cec97c
TT
136962014-01-13 Tom Tromey <tromey@redhat.com>
13697
13698 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13699
78e5999d
TT
137002014-01-13 Tom Tromey <tromey@redhat.com>
13701
13702 * defs.h (use_windows): Remove.
13703 * gdb.c (main): Update.
13704 * main.c (captured_main, gdb_main): Update.
13705 * main.h (struct captured_main_args) <use_windows>: Remove.
13706 * top.c (use_windows): Remove.
13707
f2052bbe
TT
137082014-01-13 Tom Tromey <tromey@redhat.com>
13709
13710 * defs.h (deprecated_flush_hook): Remove.
13711
fde4f8ed
JK
137122014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13713
13714 PR threads/16216
13715 * linux-thread-db.c (try_thread_db_load): Add parameter
13716 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13717 (try_thread_db_load_from_pdir_1): Move it there from here.
13718 (try_thread_db_load_from_sdir): Update caller.
13719 (try_thread_db_load_from_dir): Move it there from here.
13720
bdf61915
PP
137212014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13722
13723 * regformats/regdat.sh: Always rewrite the register file.
13724
f71e1a8d
PA
137252014-01-13 Pedro Alves <palves@redhat.com>
13726
13727 * Makefile.in (CHECK_HEADERS): New variable.
13728 (check-headers:): New rule.
13729
42c85435
TT
137302014-01-13 Tom Tromey <tromey@redhat.com>
13731
13732 * cli/cli-setshow.c (do_set_command): Update.
13733 * defs.h (deprecated_set_hook): Remove.
13734 * top.c (deprecated_set_hook): Remove.
13735
f8de5129
PA
137362014-01-13 Pedro Alves <palves@redhat.com>
13737
13738 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13739 the tracepoint if the PC is a pseudo-register.
13740
fc270c35
TT
137412014-01-13 Tom Tromey <tromey@redhat.com>
13742
13743 * defs.h (XCALLOC): Remove.
13744 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13745 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13746 * dwarf2loc.c (allocate_piece_closure): Likewise.
13747 * elfread.c (elf_symfile_segments): Likewise.
13748 (elf_symfile_segments): Likewise.
13749 * gdbtypes.c (copy_type_recursive): Likewise.
13750 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13751 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13752 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13753 XCALLOC.
13754 * mt-tdep.c (mt_gdbarch_init): Likewise.
13755 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13756 XCALLOC.
13757 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13758 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13759 * registry.c (registry_alloc_data): Likewise.
13760 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13761 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13762 * serial.c (serial_fdopen_ops): Likewise.
13763 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13764 XCALLOC.
13765 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13766 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13767 not XCALLOC.
13768
70ba0933
TT
137692014-01-13 Tom Tromey <tromey@redhat.com>
13770
13771 * defs.h (XMALLOC): Remove.
13772 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13773 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13774 * cli-out.c (struct ui_out *): Likewise.
13775 * cli/cli-dump.c (add_dump_command): Likewise.
13776 (add_dump_command): Likewise.
13777 * complaints.c (get_complaints): Likewise.
13778 (find_complaint): Likewise.
13779 * dwarf2-frame.c (execute_cfa_program): Likewise.
13780 * dwarf2read.c (abbrev_table_read_table): Likewise.
13781 * gdbarch.sh: Likewise.
13782 * gdbarch.c: Rebuild.
13783 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13784 * interps.c (interp_new): Likewise.
13785 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13786 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13787 * mi/mi-console.c (mi_console_file_new): Likewise.
13788 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13789 * mi/mi-out.c (mi_out_new): Likewise.
13790 * mi/mi-parse.c (mi_parse): Likewise.
13791 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13792 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13793 * observer.c (xalloc_observer_list_node): Likewise.
13794 * regcache.c (regcache_xmalloc_1): Likewise.
13795 * reggroups.c (reggroup_new): Likewise.
13796 (_initialize_reggroup): Likewise.
13797 * registry.c (register_data_with_cleanup): Likewise.
13798 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13799 * ser-base.c (serial_ttystate): Likewise.
13800 * ser-mingw.c (make_pipe_state): Likewise.
13801 * ser-pipe.c (pipe_open): Likewise.
13802 * serial.c (serial_open): Likewise.
13803 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13804 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13805 (tui_alloc_win_info): Likewise.
13806 (tui_add_content_elements): Likewise.
13807 * tui/tui-file.c (tui_file_new): Likewise.
13808 * tui/tui-out.c (tui_out_new): Likewise.
13809 * ui-file.c (mem_file_new): Likewise.
13810 * ui-out.c (push_level): Likewise.
13811 (make_cleanup_ui_out_end): Likewise.
13812 (append_header_to_list): Likewise.
13813 (ui_out_new): Likewise.
13814 * user-regs.c (user_reg_add_builtin): Likewise.
13815
41bf6aca
TT
138162014-01-13 Tom Tromey <tromey@redhat.com>
13817
13818 * defs.h (XZALLOC): Remove.
13819 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13820 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13821 (get_ada_tasks_inferior_data): Likewise.
13822 * auto-load.c (get_auto_load_pspace_data): Likewise.
13823 * auxv.c (get_auxv_inferior_data): Likewise.
13824 * bfd-target.c (target_bfd_reopen): Likewise.
13825 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13826 (deprecated_insert_raw_breakpoint): Likewise.
13827 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13828 * corelow.c (core_open): Likewise.
13829 * darwin-nat.c (darwin_check_new_threads): Likewise.
13830 (darwin_attach_pid): Likewise.
13831 * dummy-frame.c (dummy_frame_push): Likewise.
13832 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13833 * dwarf2loc.c (allocate_piece_closure): Likewise.
13834 * elfread.c (elf_symfile_segments): Likewise.
13835 * eval.c (ptrmath_type_p): Likewise.
13836 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13837 * gdbtypes.c (alloc_type_arch): Likewise.
13838 (alloc_type_instance): Likewise.
13839 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13840 * inf-child.c (inf_child_can_use_agent): Likewise.
13841 * inflow.c (get_inflow_inferior_data): Likewise.
13842 * infrun.c (save_infcall_suspend_state): Likewise.
13843 * jit.c (jit_reader_load): Likewise.
13844 (get_jit_objfile_data): Likewise.
13845 (get_jit_program_space_data): Likewise.
13846 (jit_object_open_impl): Likewise.
13847 (jit_symtab_open_impl): Likewise.
13848 (jit_block_open_impl): Likewise.
13849 (jit_frame_sniffer): Likewise.
13850 * linux-fork.c (add_fork): Likewise.
13851 * maint.c (make_command_stats_cleanup): Likewise.
13852 * objfiles.c (get_objfile_pspace_data): Likewise.
13853 * opencl-lang.c (struct lval_closure): Likewise.
13854 * osdata.c (osdata_start_osdata): Likewise.
13855 * progspace.c (new_address_space): Likewise.
13856 (add_program_space): Likewise.
13857 * remote-sim.c (get_sim_inferior_data): Likewise.
13858 * sh-tdep.c (sh_gdbarch_init): Likewise.
13859 * skip.c (Ignore): Likewise.
13860 (skip_delete_command): Likewise.
13861 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13862 (library_list_start_library): Likewise.
13863 (solib_aix_current_sos): Likewise.
13864 * solib-darwin.c (get_darwin_info): Likewise.
13865 (darwin_current_sos): Likewise.
13866 * solib-dsbt.c (get_dsbt_info): Likewise.
13867 * solib-ia64-hpux.c (new_so_list): Likewise.
13868 (ia64_hpux_get_solib_linkage_addr): Likewise.
13869 * solib-spu.c (append_ocl_sos): Likewise.
13870 (spu_current_sos): Likewise.
13871 * solib-svr4.c (get_svr4_info): Likewise.
13872 (svr4_keep_data_in_core): Likewise.
13873 (library_list_start_library): Likewise.
13874 (svr4_default_sos): Likewise.
13875 (svr4_read_so_list): Likewise.
13876 * solib-target.c (library_list_start_library): Likewise.
13877 (solib_target_current_sos): Likewise.
13878 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13879 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13880 * symfile.c (default_symfile_segments): Likewise.
13881 * target-descriptions.c (tdesc_data_init): Likewise.
13882 (tdesc_create_reg): Likewise.
13883 (struct tdesc_type *): Likewise.
13884 (tdesc_create_vector): Likewise.
13885 (tdesc_set_struct_size): Likewise.
13886 (struct tdesc_type *): Likewise.
13887 (tdesc_free_feature): Likewise.
13888 (tdesc_create_feature): Likewise.
13889 * windows-nat.c (windows_add_thread): Likewise.
13890 (windows_make_so): Likewise.
13891 * xml-support.c (gdb_xml_body_text): Likewise.
13892 (gdb_xml_create_parser_and_cleanup): Likewise.
13893 (xml_process_xincludes): Likewise.
13894 * xml-syscall.c (allocate_syscalls_info): Likewise.
13895 (syscall_create_syscall_desc): Likewise.
13896
5acfdbae
SDJ
138972014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13898
13899 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13900 function, with code from i386_stap_parse_special_token.
13901 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13902 (i386_stap_parse_special_token): Move code to the two functions
13903 above; simplify it.
13904
0000e5cc
PA
139052014-01-09 Pedro Alves <palves@redhat.com>
13906 Hui Zhu <hui@codesourcery.com>
13907
13908 PR gdb/16101
13909 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13910 bp_err_string. Don't mark the location shlib_disabled if the
13911 error thrown wasn't a generic or memory error. Catch errors
13912 thrown while inserting breakpoints in overlayed code. Output
13913 error message of software breakpoints.
13914 * remote.c (remote_insert_breakpoint): If this breakpoint has
13915 target-side commands but this stub doesn't support Z0 packets,
13916 throw NOT_SUPPORTED_ERROR error.
13917 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13918 * target.h (target_insert_breakpoint): Extend comment.
13919 (target_insert_hw_breakpoint): Add comment.
13920
b7ea362b
PA
139212014-01-08 Pedro Alves <palves@redhat.com>
13922
13923 * remote.c (remote_add_thread): Add threads silently if starting
13924 up.
13925 (remote_notice_new_inferior): If in all-stop, and starting up,
13926 don't call notice_new_inferior.
13927 (get_current_thread): New function, factored out from ...
13928 (add_current_inferior_and_thread): ... this. Adjust.
13929 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13930 found any thread, then select the remote's current thread as GDB's
13931 current thread too.
13932
b7bba001
JB
139332014-01-08 Joel Brobecker <brobecker@adacore.com>
13934
13935 * NEWS: Create a new section for the next release branch.
13936 Rename the section of the current branch, now that it has
13937 been cut.
13938
16dfbded
JB
139392014-01-08 Joel Brobecker <brobecker@adacore.com>
13940
13941 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13942 * version.in: Bump version to 7.7.50.DATE-cvs.
13943
22c90ac1
YQ
139442014-01-08 Yao Qi <yao@codesourcery.com>
13945
13946 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13947 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13948 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13949
d64ad97c
YQ
139502014-01-08 Yao Qi <yao@codesourcery.com>
13951
13952 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13953 return value of bfd_get_filename to symbol_file_add_from_bfd.
13954
f93ba80c
PM
139552014-01-08 Pierre Muller <muller@sourceware.org>
13956
13957 Fix PR16201.
13958 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13959 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13960 to prim_record_mininal_symbol_and_info.
13961 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13962 in call to prim_record_minimal_symbol_and_info.
13963 (read_pe_exported_syms): Set index field of section_data.
13964
a4d9ba85
AP
139652014-01-07 Andrew Pinski <apinski@cavium.com>
13966
13967 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13968 * features/aarch64.c: Regenerate.
13969
1b67eb02
AS
139702014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13971
13972 * target.c (return_null): Define.
13973 (update_current_target): Use it instead of return_zero for
13974 functions that return a pointer.
13975
5e3f4fab
EBM
139762014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13977
13978 * source.c (add_path): Fix check for duplicated paths in the previously
13979 included paths.
13980
e2616788
HK
139812014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13982
13983 * ada-lang.c: Remove duplicated include statements.
13984 * alphabsd-nat.c: Ditto.
13985 * amd64-darwin-tdep.c: Ditto.
13986 * amd64fbsd-nat.c: Ditto.
13987 * auto-load.c: Ditto.
13988 * ax-gdb.c: Ditto.
13989 * breakpoint.c: Ditto.
13990 * dbxread.c: Ditto.
13991 * fork-child.c: Ditto.
13992 * gdb_usleep.c: Ditto.
13993 * i386-darwin-tdep.c: Ditto.
13994 * i386fbsd-nat.c: Ditto.
13995 * infcmd.c: Ditto.
13996 * inferior.c: Ditto.
13997 * jv-lang.c: Ditto.
13998 * linux-nat.c: Ditto.
13999 * linux-tdep.c: Ditto.
14000 * m68kbsd-nat.c: Ditto.
14001 * m68klinux-nat.c: Ditto.
14002 * microblaze-tdep.c: Ditto.
14003 * mips-linux-tdep.c: Ditto.
14004 * mn10300-tdep.c: Ditto.
14005 * nto-tdep.c: Ditto.
14006 * opencl-lang.c: Ditto.
14007 * osdata.c: Ditto.
14008 * printcmd.c: Ditto.
14009 * regcache.c: Ditto.
14010 * remote-m32r-sdi.c: Ditto.
14011 * remote.c: Ditto.
14012 * symfile.c: Ditto.
14013 * symtab.c: Ditto.
14014 * tilegx-linux-nat.c: Ditto.
14015 * tilegx-tdep.c: Ditto.
14016 * tracepoint.c: Ditto.
14017 * valops.c: Ditto.
14018 * vaxbsd-nat.c: Ditto.
14019 * windows-nat.c: Ditto.
14020 * xtensa-tdep.c: Ditto.
14021
bd1f7788
YQ
140222014-01-07 Yao Qi <yao@codesourcery.com>
14023
14024 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14025
79301218
JB
140262014-01-07 Yao Qi <yao@codesourcery.com>
14027 Joel Brobecker <brobecker@adacore.com>
14028
14029 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14030 (pdc_write_regs): Likewise.
14031 (fetch_regs_kernel_thread): Likewise.
14032 (store_regs_kernel_thread): Likewise.
14033
140342014-01-07 Joel Brobecker <brobecker@adacore.com>
14035
14036 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14037 tagged type objects to their actual type.
14038
8e355c5d
JB
140392014-01-07 Joel Brobecker <brobecker@adacore.com>
14040
14041 * ada-valprint.c (print_field_values): Add "language" parameter.
14042 Update calls to print_field_values and print_variant_part.
14043 Pass new parameter "language" in call to val_print instead
14044 of "current_language". Replace call to ada_val_print by call
14045 to val_print.
14046 (print_variant_part): Add "language" parameter.
14047 (ada_val_print_struct_union): Update call to print_field_values.
14048
4fbf5aa5
JB
140492014-01-07 Joel Brobecker <brobecker@adacore.com>
14050
14051 * ada-valprint.c (ui_memcpy): Delete.
14052 (ada_print_floating): Update documentation. Add empty line
14053 between between function documentation and implementation.
14054 Delete variable "buffer". Use ui_file_xstrdup in place of
14055 ui_file_put. Minor adjustments following this change.
14056
71855601
JB
140572014-01-07 Joel Brobecker <brobecker@adacore.com>
14058
14059 * ada-valprint.c (ada_val_print_string): New function,
14060 extracted from ada_val_print_array.
14061 (ada_val_print_array): Replace extracted code by call
14062 to ada_val_print_string followed by a return. Move
14063 "else" branch to the function's top block.
14064
4eb27a30
JB
140652014-01-07 Joel Brobecker <brobecker@adacore.com>
14066
14067 * ada-valprint.c (ada_val_print_array): Move implementation
14068 down. Rename parameter "offset" and "val" into "offset_aligned"
14069 and "original_value" respectively. Add parameter "offset".
14070
34b27950
JB
140712014-01-07 Joel Brobecker <brobecker@adacore.com>
14072
14073 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14074 re-organizing the code. Change the "???" message printed
14075 when target type is a TYPE_CODE_UNDEF into
14076 "<ref to undefined type>".
14077
079e4591
JB
140782014-01-07 Joel Brobecker <brobecker@adacore.com>
14079
14080 * ada-valprint.c (print_record): Delete, implementation inlined...
14081 (ada_val_print_struct_union): ... here. Remove call to
14082 ada_check_typedef in inlined implementation.
14083
8004dfd1
JB
140842014-01-07 Joel Brobecker <brobecker@adacore.com>
14085
14086 * ada-valprint.c (ada_val_print_gnat_array): New function,
14087 extracted from ada_val_print_1;
14088 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14089 (ada_val_print_flt, ada_val_print_struct_union)
14090 (ada_val_print_ref): Likewise.
14091 (ada_val_print_1): Delete variables i and elttype.
14092 Replace extracted-out code by call to corresponding
14093 new functions.
14094
760a2db0
JB
140952014-01-07 Joel Brobecker <brobecker@adacore.com>
14096
14097 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14098
3a92c861
JB
140992014-01-07 Joel Brobecker <brobecker@adacore.com>
14100
14101 * ada-valprint.c (ada_val_print_1): Replace calls to
14102 ada_val_print_1 by calls to val_print.
14103
cd1630f9
JB
141042014-01-07 Joel Brobecker <brobecker@adacore.com>
14105
14106 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14107 Update calls to self accordingly. Replace calls to c_val_print
14108 by calls to val_print.
14109
bdf779a0
JB
141102014-01-07 Joel Brobecker <brobecker@adacore.com>
14111
14112 * ada-valprint.c (print_record): Delete declaration.
14113 (adjust_type_signedness, ada_val_print_1): Likewise.
14114 (ada_val_print): Move function implementation down.
14115 (print_variant_part, print_field_values, print_record):
14116 Move function implementation up.
14117
c0d48811
JB
141182014-01-07 Joel Brobecker <brobecker@adacore.com>
14119
14120 * python/py-type.c (typy_get_name): New function.
14121 (type_object_getset): Add entry for attribute "name".
14122 * NEWS: Add entry mentioning this new attribute.
14123
c26e9cbb
YQ
141242014-01-07 Yao Qi <yao@codesourcery.com>
14125
14126 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14127 statement.
14128
0cc6f43d
YQ
141292014-01-07 Yao Qi <yao@codesourcery.com>
14130
14131 * gnu-nat.c (info_port_rights): Add qualifier const to
14132 argument args.
14133
eec03155
YQ
141342014-01-07 Yao Qi <yao@codesourcery.com>
14135
14136 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14137
f04a82ef
YQ
141382014-01-07 Yao Qi <yao@codesourcery.com>
14139
14140 * gnu-nat.c (make_inf) Update declaration.
14141 (make_inf): Make it static.
14142 (inf_set_traced): Likewise.
14143 (inf_port_to_thread, inf_task_died_status): Likewise.
14144
d57dda0a
YQ
141452014-01-07 Yao Qi <yao@codesourcery.com>
14146
14147 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14148
3aa8c969
YQ
141492014-01-07 Yao Qi <yao@codesourcery.com>
14150
14151 * gnu-nat.c (_initialize_gnu_nat): Declare.
14152
94123b4f
YQ
141532014-01-07 Yao Qi <yao@codesourcery.com>
14154
14155 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14156 'enum bfd_endian'.
14157 (struct gdbarch_info) <byte_order>: Change type to
14158 'enum bfd_endian'.
14159 <byte_order_for_code>: Likewise.
14160 * gdbarch.c, gdbarch.h: Regenerated.
14161
dc81d70a
TT
141622014-01-06 Sasha Smundak <asmundak@google.com>
14163
14164 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14165
cc2f3c35
TT
141662014-01-06 Tom Tromey <tromey@redhat.com>
14167
14168 * doublest.c (convert_doublest_to_floatformat): Use const, not
14169 CONST.
14170 * somread.c (som_symtab_read): Likewise.
14171
adcf2eed
HZ
141722014-01-07 Hui Zhu <hui@codesourcery.com>
14173
14174 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14175 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14176 (gdb_bfd_fopen): Ditto.
14177 (gdb_bfd_openr): Ditto.
14178 (gdb_bfd_openw): Ditto.
14179 (gdb_bfd_openr_iovec): Ditto.
14180 (gdb_bfd_fdopenr): Ditto.
14181 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14182 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14183 with xstrdup.
14184 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14185 with xstrdup.
14186 * symfile-mem.c (symbol_file_add_from_memory): Removed
14187 gdb_bfd_stash_filename.
14188
50722198
DE
141892014-01-03 Doug Evans <dje@google.com>
14190
14191 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14192 output.
14193
2fa4b862
JB
141942014-01-01 Joel Brobecker <brobecker@adacore.com>
14195
14196 Update year range in copyright notice of all files.
14197
28498c42
JB
141982014-01-01 Joel Brobecker <brobecker@adacore.com>
14199
14200 * top.c (print_gdb_version): Set copyright year to 2014.
14201
7b6e1046
JB
142022014-01-01 Joel Brobecker <brobecker@adacore.com>
14203
14204 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14205
df96af55 14206For older changes see ChangeLog-2013.
c906108c
SS
14207\f
14208Local Variables:
14209mode: change-log
14210left-margin: 8
14211fill-column: 74
14212version-control: never
57da7796 14213coding: utf-8
c906108c 14214End:
This page took 2.881538 seconds and 4 git commands to generate.