Darwin: sanitize %gs and %fs values.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-16 Tristan Gingold <gingold@adacore.com>
2
3 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
4 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
5 on amd64.
6
7 2014-10-15 Pedro Alves <palves@redhat.com>
8
9 * dec-thread.c (dec_thread_count_gdb_threads)
10 (dec_thread_add_gdb_thread): Delete.
11 (dec_thread_update_thread_list): Delete.
12 (dec_thread_find_new_threads): Rename to ...
13 (dec_thread_update_thread_list): ... this. Delete GDB-size
14 threads that are no longer found in dec_thread_list.
15 (resync_thread_list): Delete.
16 (dec_thread_wait): Call dec_thread_update_thread_list instead of
17 resync_thread_list.
18
19 2014-10-15 Pedro Alves <palves@redhat.com>
20
21 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
22 * remote.c (remote_update_thread_list): Skip calling prune_threads
23 if any thread listing method is supported, and instead walk over
24 the set of remote threads listed, deleting those that are not
25 found in GDB's thread list.
26
27 2014-10-15 Pedro Alves <palves@redhat.com>
28
29 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
30 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
31 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
32 (bsd_uthread_target): Adjust.
33 * corelow.c (core_open): Adjust.
34 * dec-thread.c (dec_thread_find_new_threads): Update comment.
35 (dec_thread_update_thread_list): New function.
36 (init_dec_thread_ops): Adjust.
37 * gdbthread.h (prune_threads): New declaration.
38 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
39 (thread_db_update_thread_list): ... this. Call prune_threads.
40 (init_thread_db_ops): Adjust.
41 * nto-procfs.c (procfs_find_new_threads): Rename to ...
42 (procfs_update_thread_list): ... this. Call prune_threads.
43 (procfs_attach, procfs_create_inferior, init_procfs_targets):
44 Adjust.
45 * obsd-nat.c (obsd_find_new_threads): Rename to ...
46 (obsd_update_thread_list): ... this. Call prune_threads.
47 (obsd_add_target): Adjust.
48 * procfs.c (procfs_target): Adjust.
49 (procfs_notice_thread): Update comment.
50 (procfs_find_new_threads): Rename to ...
51 (procfs_update_thread_list): ... this. Call prune_threads.
52 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
53 comment.
54 (ravenscar_wait): Adjust.
55 (ravenscar_find_new_threads): Rename to ...
56 (ravenscar_update_thread_list): ... this. Call prune_threads.
57 (init_ravenscar_thread_ops): Adjust.
58 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
59 (record_btrace_update_thread_list): ... this. Adjust comment.
60 (init_record_btrace_ops): Adjust.
61 * remote.c (remote_threads_info): Rename to ...
62 (remote_update_thread_list): ... this. Call prune_threads.
63 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
64 Adjust.
65 * sol-thread.c (check_for_thread_db): Adjust.
66 (sol_find_new_threads_callback): Rename to ...
67 (sol_update_thread_list_callback): ... this.
68 (sol_find_new_threads): Rename to ...
69 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
70 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
71 * target-delegates.c: Regenerate.
72 * target.c (target_find_new_threads): Rename to ...
73 (target_update_thread_list): ... this.
74 * target.h (struct target_ops): Rename to_find_new_threads field
75 to to_update_thread_list.
76 (target_find_new_threads): Rename to ...
77 (target_update_thread_list): ... this.
78 * thread.c (prune_threads): Make extern.
79 (update_thread_list): Adjust.
80
81 2014-10-15 Pedro Alves <palves@redhat.com>
82
83 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
84 Add describing comment. Return -1 if the qL packet is not
85 supported.
86 (struct thread_item, thread_item_t): Move higher up in
87 the file. Add comments.
88 (struct threads_parsing_context): Move higher up in
89 the file, add comments, and remote to ...
90 (struct threads_listing_context): ... this.
91 (remote_newthread_step): Don't add the thread to GDB's thread
92 database here. Instead push it to the thread_listing_context
93 list.
94 (remote_find_new_threads): Rename to ...
95 (remote_get_threads_with_ql): ... this. Add target_ops and
96 targets_listing_context parameters. Pass down context.
97 (start_thread): Adjust.
98 (clear_threads_parsing_context): Rename to ...
99 (clear_threads_listing_context): ... this.
100 (remote_get_threads_with_qxfer): New, with parts salvaged from old
101 remote_threads_info.
102 (remote_get_threads_with_qthreadinfo): Ditto.
103 (remote_threads_info): Reimplement.
104
105 2014-10-15 Pedro Alves <palves@redhat.com>
106
107 * infrun.c (resume): Don't force displaced-stepping for all
108 single-steps on software single-stepping archs.
109
110 2014-10-15 Pedro Alves <palves@redhat.com>
111
112 * breakpoint.c (single_step_breakpoints): Delete global.
113 (insert_single_step_breakpoint): Adjust to store the breakpoint
114 pointer in the current thread.
115 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
116 (cancel_single_step_breakpoints): Delete functions.
117 (breakpoint_has_location_inserted_here): Make extern.
118 (single_step_breakpoint_inserted_here_p): Adjust to walk the
119 breakpoint list.
120 * breakpoint.h (breakpoint_has_location_inserted_here): New
121 declaration.
122 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
123 (cancel_single_step_breakpoints): Remove declarations.
124 * gdbthread.h (struct thread_control_state)
125 <single_step_breakpoints>: New field.
126 (delete_single_step_breakpoints)
127 (thread_has_single_step_breakpoints_set)
128 (thread_has_single_step_breakpoint_here): New declarations.
129 * infrun.c (follow_exec): Also clear the single-step breakpoints.
130 (singlestep_breakpoints_inserted_p, singlestep_ptid)
131 (singlestep_pc): Delete globals.
132 (infrun_thread_ptid_changed): Remove references to removed
133 globals.
134 (resume_cleanups): Delete the current thread's single-step
135 breakpoints.
136 (maybe_software_singlestep): Remove references to removed globals.
137 (resume): Adjust to use thread_has_single_step_breakpoints_set and
138 delete_single_step_breakpoints.
139 (init_wait_for_inferior): Remove references to removed globals.
140 (delete_thread_infrun_breakpoints): Delete the thread's
141 single-step breakpoints too.
142 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
143 single-step breakpoints here.
144 (delete_stopped_threads_single_step_breakpoints): New function.
145 (adjust_pc_after_break): Adjust to use
146 thread_has_single_step_breakpoints_set.
147 (handle_inferior_event): Remove references to removed globals.
148 Use delete_stopped_threads_single_step_breakpoints.
149 (handle_signal_stop): Adjust to per-thread single-step
150 breakpoints. Swap test order to do cheaper tests first.
151 (switch_back_to_stepped_thread): Extend debug output. Remove
152 references to removed globals.
153 * record-full.c (record_full_wait_1): Adjust to per-thread
154 single-step breakpoints.
155 * thread.c (delete_single_step_breakpoints)
156 (thread_has_single_step_breakpoints_set)
157 (thread_has_single_step_breakpoint_here): New functions.
158 (clear_thread_inferior_resources): Also delete the thread's
159 single-step breakpoints.
160
161 2014-10-15 Pedro Alves <palves@redhat.com>
162
163 * thread.c (delete_thread_breakpoint): New function.
164 (delete_step_resume_breakpoint)
165 (delete_exception_resume_breakpoint): Use it.
166 (delete_at_next_stop): New function.
167 (clear_thread_inferior_resources): Use delete_at_next_stop.
168
169 2014-10-15 Pedro Alves <palves@redhat.com>
170
171 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
172 (breakpoint_inserted_here_p): ... here. Remove special case for
173 software single-step breakpoints.
174 (find_non_raw_software_breakpoint_inserted_here): Inline ...
175 (software_breakpoint_inserted_here_p): ... here. Remove special
176 case for software single-step breakpoints.
177 (bp_target_info_copy_insertion_state)
178 (deprecated_insert_raw_breakpoint)
179 (deprecated_remove_raw_breakpoint): Delete functions.
180 * breakpoint.h (deprecated_insert_raw_breakpoint)
181 (deprecated_remove_raw_breakpoint): Remove declarations.
182
183 2014-10-15 Pedro Alves <palves@redhat.com>
184
185 PR breakpoints/9649
186 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
187 Delete array globals.
188 (single_step_breakpoints): New global.
189 (breakpoint_xfer_memory): Remove special handling for single-step
190 breakpoints.
191 (update_breakpoints_after_exec): Delete bp_single_step
192 breakpoints.
193 (detach_breakpoints): Remove special handling for single-step
194 breakpoints.
195 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
196 (bpstat_stop_status): Add comment.
197 (bpstat_what, bptype_string, print_one_breakpoint_location)
198 (adjust_breakpoint_address, init_bp_location): Handle
199 bp_single_step.
200 (new_single_step_breakpoint): New function.
201 (set_momentary_breakpoint, bkpt_remove_location): Remove special
202 handling for single-step breakpoints.
203 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
204 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
205 Rewrite.
206 (detach_single_step_breakpoints, find_single_step_breakpoint):
207 Delete functions.
208 (breakpoint_has_location_inserted_here): New function.
209 (single_step_breakpoint_inserted_here_p): Rewrite.
210 * breakpoint.h: Remove FIXME.
211 (enum bptype) <bp_single_step>: New enum value.
212 (insert_single_step_breakpoint): Update comment.
213 * infrun.c (resume_cleanups)
214 (delete_step_thread_step_resume_breakpoint): Remove single-step
215 breakpoints.
216 (fetch_inferior_event): Install a cleanup that removes infrun
217 breakpoints.
218 (switch_back_to_stepped_thread) <expect thread advanced also>:
219 Clear step-over info.
220
221 2014-10-15 Pedro Alves <palves@redhat.com>
222
223 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
224 (delete_thread_infrun_breakpoints): New function, with parts
225 salvaged from delete_step_resume_breakpoint_callback.
226 (delete_step_thread_step_resume_breakpoint): Delete.
227 (for_each_just_stopped_thread_callback_func): New typedef.
228 (for_each_just_stopped_thread): New function.
229 (delete_just_stopped_threads_infrun_breakpoints): New function.
230 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
231 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
232 ... this. Adjust.
233 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
234
235 2014-10-15 Pedro Alves <palves@redhat.com>
236
237 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
238 trying to step past a non-steppable watchpoint.
239 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
240 field.
241 * infrun.c (struct step_over_info): Add new field
242 'nonsteppable_watchpoint_p' and adjust comments.
243 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
244 Adjust.
245 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
246 (stepping_past_nonsteppable_watchpoint): New function.
247 (step_over_info_valid_p): Also return true if stepping past a
248 nonsteppable watchpoint.
249 (proceed): Adjust call to set_step_over_info. Remove reference to
250 init_infwait_state.
251 (init_wait_for_inferior): Remove reference to init_infwait_state.
252 (waiton_ptid): Delete global.
253 (struct execution_control_state)
254 <stepped_after_stopped_by_watchpoint>: Delete field.
255 (wait_for_inferior, fetch_inferior_event): Always pass
256 minus_one_ptid to target_wait.
257 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
258 field.
259 (init_infwait_state): Delete function.
260 (handle_inferior_event): Remove infwait_state handling.
261 (handle_signal_stop) <watchpoints handling>: Adjust after
262 stepped_after_stopped_by_watchpoint removal. Don't remove
263 breakpoints here nor set infwait_state. Set the thread's
264 stepping_over_watchpoint flag, and call keep_going instead.
265 (keep_going): Handle stepping_over_watchpoint. Adjust
266 set_step_over_info calls.
267 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
268 function.
269
270 2014-10-15 Pedro Alves <palves@redhat.com>
271
272 * infrun.c (step_over_info_valid_p): New function.
273 (resume): Use step_over_info_valid_p instead of checking the
274 threads's trap_expected flag.
275
276 2014-10-15 Doug Evans <dje@google.com>
277 Walfred Tedeschi <walfred.tedeschi@intel.com>
278
279 PR python/17364
280 * python/lib/gdb/__init__.py (packages): Add "printer".
281 * python/lib/gdb/command/bound_registers.py: Moved to ...
282 * python/lib/gdb/printer/bound_registers.py: ... here.
283 Add printer to global set of builtin printers. Rename printer from
284 "bound" to "mpx_bound128".
285 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
286 registered as global "builtin" printer.
287 (add_builtin_pretty_printer): New function.
288 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
289 gdb/printer/__init__.py.
290
291 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
292
293 * Makefile.in (SFILES): Remove d-support.c.
294 (COMMON_OBS): Remove d-support.o.
295 * d-lang.h (d_parse_symbol): Remove declaration.
296 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
297 * d-support.c: Remove file.
298
299 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
300
301 * gdb/infrun.c (process_event_stop_test): Apply
302 gdbarch_addr_bits_remove to longjmp resume address.
303
304 2014-10-15 Pedro Alves <palves@redhat.com>
305
306 * regformats/microblaze.dat: Delete file.
307
308 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
309
310 * features/Makefile (microblaze-expedite): Replace pc with rpc.
311 * regformats/microblaze-with-stack-protect.dat: Regenerate.
312
313 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
314
315 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
316 as non-trivial.
317
318 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
319
320 PR c++/13403
321 PR c++/15154
322 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
323 with qualified args.
324
325 2014-10-14 Joel Brobecker <brobecker@adacore.com>
326
327 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
328 of the case where the second operand is a pointer.
329 <BINOP_SUB>: Likewise.
330
331 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
332
333 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
334 only if it is not NULL.
335 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
336 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
337 (struct probe_ops) <clear_semaphore>: Likewise.
338 * tracepoint.c (start_tracing): Call set_semaphore only if it is
339 not NULL.
340 (stop_tracing): Likewise, for clear_semaphore.
341
342 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
343
344 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
345 using language_c, instead of current_language.
346
347 2014-10-13 Doug Evans <dje@google.com>
348
349 * python/py-objfile.c (objfpy_initialize): New function.
350 (objfpy_new, objfile_to_objfile_object): Call it.
351 * python/py-progspace.c (pspy_initialize): New function.
352 (pspy_new, pspace_to_pspace_object): Call it.
353
354 2014-10-13 Miroslav Franc <mfranc@redhat.com>
355 Jan Kratochvil <jan.kratochvil@redhat.com>
356
357 Fix "save breakpoints" for "catch" command.
358 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
359 newline.
360
361 2014-10-12 Miroslav Franc <mfranc@redhat.com>
362
363 Fix "save breakpoints" for "disable $bpnum" command.
364 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
365
366 2014-10-10 Pedro Alves <palves@redhat.com>
367
368 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
369 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
370 (HFILES_NO_SRCDIR): Remove solib-irix.h.
371 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
372 and been removed.
373 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
374 * configure.ac: Remove references to IRIX.
375 * configure.host: Add *-*-irix* to the obsolete hosts section.
376 Remove all other references to irix.
377 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
378 Delete files.
379
380 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
381
382 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
383 isn't valid, release the tdesc arch data and return NULL.
384
385 2014-10-10 Pedro Alves <palves@redhat.com>
386
387 * linux-tdep.c: Include observer.h.
388 (linux_inferior_data): New global.
389 (struct linux_info): New structure.
390 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
391 (get_linux_inferior_data): New functions.
392 (linux_vsyscall_range): Rename to ...
393 (linux_vsyscall_range_raw): ... this.
394 (linux_vsyscall_range): New function; handles caching.
395 (_initialize_linux_tdep): Register linux_inferior_data. Install
396 inferior_exit and inferior_appeared observers.
397
398 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
399 Pedro Alves <palves@redhat.com>
400
401 PR symtab/14466
402 * solib-svr4.c (svr4_read_so_list): Rename to ...
403 (svr4_current_sos_1): ... this and change the function comment.
404 (svr4_current_sos): New function.
405
406 2014-10-10 Pedro Alves <palves@redhat.com>
407
408 * arch-utils.c (default_vsyscall_range): New function.
409 * arch-utils.h (default_vsyscall_range): New declaration.
410 * gdbarch.sh (vsyscall_range): New hook.
411 * gdbarch.h, gdbarch.c: Regenerate.
412 * linux-tdep.c (linux_vsyscall_range): New function.
413 (linux_init_abi): Install linux_vsyscall_range as
414 vsyscall_range gdbarch hook.
415 * memrange.c (address_in_mem_range): New function.
416 * memrange.h (address_in_mem_range): New declaration.
417 * symfile-mem.c (find_vdso_size): Delete function.
418 (add_vsyscall_page): Use gdbarch_vsyscall_range.
419
420 2014-10-10 Pedro Alves <palves@redhat.com>
421
422 * infrun.c (normal_stop): Fix typo in comment.
423
424 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
425
426 PR tdep/9390
427 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
428 typo when using logical AND to determine instruction type.
429
430 2014-10-09 Yao Qi <yao@codesourcery.com>
431
432 * infrun.c (handle_signal_stop): Remove local variable
433 'printed'.
434
435 2014-10-08 Stan Shebs <stan@codesourcery.com>
436
437 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
438
439 2014-10-08 Gary Benson <gbenson@redhat.com>
440
441 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
442
443 2014-10-08 Gary Benson <gbenson@redhat.com>
444
445 * common/common-defs.h: Include common-exceptions.h.
446 * exceptions.h: Do not include common-exceptions.h.
447
448 2014-10-08 Gary Benson <gbenson@redhat.com>
449
450 * common/common-defs.h: Include cleanups.h.
451 * common/common-exceptions.c: Do not include cleanups.h.
452 * utils.h: Likewise.
453
454 2014-10-08 Gary Benson <gbenson@redhat.com>
455
456 * ada-lang.c: Do not include exceptions.h.
457 * ada-valprint.c: Likewise.
458 * amd64-tdep.c: Likewise.
459 * auto-load.c: Likewise.
460 * block.c: Likewise.
461 * break-catch-throw.c: Likewise.
462 * breakpoint.c: Likewise.
463 * btrace.c: Likewise.
464 * c-lang.c: Likewise.
465 * cli/cli-cmds.c: Likewise.
466 * cli/cli-interp.c: Likewise.
467 * cli/cli-script.c: Likewise.
468 * completer.c: Likewise.
469 * corefile.c: Likewise.
470 * corelow.c: Likewise.
471 * cp-abi.c: Likewise.
472 * cp-support.c: Likewise.
473 * cp-valprint.c: Likewise.
474 * darwin-nat.c: Likewise.
475 * dwarf2-frame-tailcall.c: Likewise.
476 * dwarf2-frame.c: Likewise.
477 * dwarf2loc.c: Likewise.
478 * dwarf2read.c: Likewise.
479 * eval.c: Likewise.
480 * event-loop.c: Likewise.
481 * event-top.c: Likewise.
482 * f-valprint.c: Likewise.
483 * frame-unwind.c: Likewise.
484 * frame.c: Likewise.
485 * gdbtypes.c: Likewise.
486 * gnu-v2-abi.c: Likewise.
487 * gnu-v3-abi.c: Likewise.
488 * guile/scm-auto-load.c: Likewise.
489 * guile/scm-breakpoint.c: Likewise.
490 * guile/scm-cmd.c: Likewise.
491 * guile/scm-frame.c: Likewise.
492 * guile/scm-lazy-string.c: Likewise.
493 * guile/scm-param.c: Likewise.
494 * guile/scm-symbol.c: Likewise.
495 * guile/scm-type.c: Likewise.
496 * hppa-hpux-tdep.c: Likewise.
497 * i386-tdep.c: Likewise.
498 * inf-loop.c: Likewise.
499 * infcall.c: Likewise.
500 * infcmd.c: Likewise.
501 * infrun.c: Likewise.
502 * interps.c: Likewise.
503 * interps.h: Likewise.
504 * jit.c: Likewise.
505 * linespec.c: Likewise.
506 * linux-nat.c: Likewise.
507 * linux-thread-db.c: Likewise.
508 * m32r-rom.c: Likewise.
509 * main.c: Likewise.
510 * memory-map.c: Likewise.
511 * mi/mi-cmd-break.c: Likewise.
512 * mi/mi-cmd-stack.c: Likewise.
513 * mi/mi-interp.c: Likewise.
514 * mi/mi-main.c: Likewise.
515 * monitor.c: Likewise.
516 * nto-procfs.c: Likewise.
517 * objc-lang.c: Likewise.
518 * p-valprint.c: Likewise.
519 * parse.c: Likewise.
520 * ppc-linux-tdep.c: Likewise.
521 * printcmd.c: Likewise.
522 * probe.c: Likewise.
523 * python/py-auto-load.c: Likewise.
524 * python/py-breakpoint.c: Likewise.
525 * python/py-cmd.c: Likewise.
526 * python/py-finishbreakpoint.c: Likewise.
527 * python/py-frame.c: Likewise.
528 * python/py-framefilter.c: Likewise.
529 * python/py-function.c: Likewise.
530 * python/py-gdb-readline.c: Likewise.
531 * python/py-inferior.c: Likewise.
532 * python/py-infthread.c: Likewise.
533 * python/py-lazy-string.c: Likewise.
534 * python/py-linetable.c: Likewise.
535 * python/py-param.c: Likewise.
536 * python/py-prettyprint.c: Likewise.
537 * python/py-symbol.c: Likewise.
538 * python/py-type.c: Likewise.
539 * python/py-value.c: Likewise.
540 * python/python-internal.h: Likewise.
541 * python/python.c: Likewise.
542 * record-btrace.c: Likewise.
543 * record-full.c: Likewise.
544 * regcache.c: Likewise.
545 * remote-fileio.c: Likewise.
546 * remote-mips.c: Likewise.
547 * remote.c: Likewise.
548 * rs6000-aix-tdep.c: Likewise.
549 * rs6000-nat.c: Likewise.
550 * skip.c: Likewise.
551 * solib-darwin.c: Likewise.
552 * solib-dsbt.c: Likewise.
553 * solib-frv.c: Likewise.
554 * solib-ia64-hpux.c: Likewise.
555 * solib-spu.c: Likewise.
556 * solib-svr4.c: Likewise.
557 * solib.c: Likewise.
558 * spu-tdep.c: Likewise.
559 * stack.c: Likewise.
560 * stap-probe.c: Likewise.
561 * symfile-mem.c: Likewise.
562 * symmisc.c: Likewise.
563 * target.c: Likewise.
564 * thread.c: Likewise.
565 * top.c: Likewise.
566 * tracepoint.c: Likewise.
567 * tui/tui-interp.c: Likewise.
568 * typeprint.c: Likewise.
569 * utils.c: Likewise.
570 * valarith.c: Likewise.
571 * valops.c: Likewise.
572 * valprint.c: Likewise.
573 * value.c: Likewise.
574 * varobj.c: Likewise.
575 * windows-nat.c: Likewise.
576 * xml-support.c: Likewise.
577
578 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
579
580 * mips-tdep.c (add_offset_16): Rewrite to implement what the
581 name implies.
582 (extended_mips16_next_pc): Update accordingly.
583
584 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
585
586 * mips-tdep.c (mips16_instruction_is_compact_branch): New
587 function.
588 (micromips_instruction_is_compact_branch): Likewise.
589 (mips16_scan_prologue): Terminate scanning upon seeing a branch
590 or a compact jump, reaching a jump delay slot, or seeing a
591 second non-prologue instruction.
592 (micromips_scan_prologue): Also terminate scanning upon seeing a
593 compact branch or jump, or reaching a branch or jump delay slot.
594 (mips32_scan_prologue): Terminate scanning upon reaching a branch
595 or jump delay slot, or seeing a second non-prologue instruction.
596 (mips32_instruction_has_delay_slot): Retain instruction
597 examination code only, update arguments accordingly and move
598 instruction fetch pieces to...
599 (mips32_insn_at_pc_has_delay_slot): ... this new function.
600 (micromips_instruction_has_delay_slot): Likewise and to...
601 (micromips_insn_at_pc_has_delay_slot): ... this new function.
602 (mips16_instruction_has_delay_slot): Likewise and to...
603 (mips16_insn_at_pc_has_delay_slot): ... this new function.
604 (mips_single_step_through_delay): Update accordingly.
605 (mips_adjust_breakpoint_address): Likewise.
606
607 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
608
609 * mips-tdep.c (micromips_instruction_has_delay_slot): When
610 !mustbe32 also return 1 for 32-bit instructions.
611 (mips16_instruction_has_delay_slot): Likewise. Add an
612 explanatory comment.
613
614 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
615
616 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
617 symbols special.
618
619 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
620
621 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
622 update comments.
623 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
624 for the breakpoint's address. Don't preinitialize `placed_size'.
625 (insert_bp_location): Set `reqstd_address' rather than
626 `placed_address'.
627 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
628 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
629 address.
630 (bkpt_remove_location): Likewise.
631 (deprecated_insert_raw_breakpoint): Likewise.
632 (deprecated_remove_raw_breakpoint): Likewise.
633 (find_single_step_breakpoint): Likewise.
634 * mem-break.c (default_memory_insert_breakpoint): Use
635 `reqstd_address' for the breakpoint's address. Don't set
636 `placed_address' or `placed_size' if breakpoint contents couldn't
637 have been determined.
638 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
639 the breakpoint's address.
640 (remote_insert_hw_breakpoint): Likewise. Don't set
641 `placed_address' or `placed_size' if breakpoint couldn't have been
642 set.
643 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
644 `reqstd_address' for the breakpoint's address.
645 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
646 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
647 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
648 * microblaze-linux-tdep.c
649 (microblaze_linux_memory_remove_breakpoint): Likewise.
650 * monitor.c (monitor_insert_breakpoint): Likewise.
651 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
652 (procfs_insert_hw_breakpoint): Likewise.
653 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
654 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
655 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
656 * remote-mips.c (mips_insert_breakpoint): Likewise.
657 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
658
659 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
660
661 * valops.c (value_assign): Check for bit field assignments
662 before calling architecture-specific register value
663 conversion functions.
664
665 2014-10-03 Pierre Muller <muller@sourceware.org>
666
667 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
668
669 2014-10-02 Pedro Alves <palves@redhat.com>
670
671 * breakpoint.c (breakpoints_should_be_inserted_now): Use
672 threads_are_executing.
673 * breakpoint.h (breakpoints_should_be_inserted_now): Add
674 describing comment.
675 * gdbthread.h (threads_are_executing): Declare.
676 (handle_signal_stop) <random signals>: Don't print about the
677 signal here if stopping.
678 (end_stepping_range): Don't notify observers here.
679 (normal_stop): Update the thread list. If stopped by a random
680 signal or a stepping range ended, notify observers.
681 * thread.c (threads_executing): New global.
682 (init_thread_list): Clear 'threads_executing'.
683 (set_executing): Set or clear 'threads_executing'.
684 (threads_are_executing): New function.
685 (update_threads_executing): New function.
686 (update_thread_list): Use it.
687
688 2014-10-02 Pedro Alves <palves@redhat.com>
689
690 PR breakpoints/17431
691 * breakpoint.c (update_breakpoints_after_exec): Don't create
692 overlay, longjmp, std terminate nor exception breakpoints here.
693
694 2014-10-02 Pedro Alves <palves@redhat.com>
695
696 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
697 Adjust comments.
698 * inferior.c (find_inferior_for_program_space): Give preference to
699 the current inferior.
700 * inferior.h (find_inferior_for_program_space): Update comment.
701 * progspace.c (switch_to_program_space_and_thread): Prefer the
702 current inferior if it's bound to the program space requested. If
703 the inferior found doesn't have a PID yet, don't bother looking up
704 a thread.
705 * progspace.h (switch_to_program_space_and_thread): Adjust
706 comment.
707 * thread.c (any_thread_of_process, any_live_thread_of_process):
708 Give preference to the current thread.
709
710 2014-10-01 Pedro Alves <palves@redhat.com>
711
712 * breakpoint.c (insert_bp_location): Error out if inserting a
713 software breakpoint at a read-only address.
714 * target.c (memory_xfer_check_region): New function, factored out
715 from ...
716 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
717 ULONGEST.
718 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
719 against the memory region attributes.
720
721 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
722
723 * NEWS: Announce new exit-code field in -list-thread-groups
724 output.
725 * inferior.c (exit_inferior_1): Don't clear exit code.
726 (inferior_appeared): Clear exit code.
727 * mi/mi-main.c (print_one_inferior): Add printing of the exit
728 code.
729
730 2014-10-01 Pedro Alves <palves@redhat.com>
731
732 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
733 GENERATED" along with emacs/vi read-only markers.
734 * regformats/aarch64.dat: Regenerate.
735 * regformats/arm-with-iwmmxt.dat: Regenerate.
736 * regformats/arm-with-neon.dat: Regenerate.
737 * regformats/arm-with-vfpv2.dat: Regenerate.
738 * regformats/arm-with-vfpv3.dat: Regenerate.
739 * regformats/i386/amd64-avx-linux.dat: Regenerate.
740 * regformats/i386/amd64-avx.dat: Regenerate.
741 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
742 * regformats/i386/amd64-avx512.dat: Regenerate.
743 * regformats/i386/amd64-linux.dat: Regenerate.
744 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
745 * regformats/i386/amd64-mpx.dat: Regenerate.
746 * regformats/i386/amd64.dat: Regenerate.
747 * regformats/i386/i386-avx-linux.dat: Regenerate.
748 * regformats/i386/i386-avx.dat: Regenerate.
749 * regformats/i386/i386-avx512-linux.dat: Regenerate.
750 * regformats/i386/i386-avx512.dat: Regenerate.
751 * regformats/i386/i386-linux.dat: Regenerate.
752 * regformats/i386/i386-mmx-linux.dat: Regenerate.
753 * regformats/i386/i386-mmx.dat: Regenerate.
754 * regformats/i386/i386-mpx-linux.dat: Regenerate.
755 * regformats/i386/i386-mpx.dat: Regenerate.
756 * regformats/i386/i386.dat: Regenerate.
757 * regformats/i386/x32-avx-linux.dat: Regenerate.
758 * regformats/i386/x32-avx.dat: Regenerate.
759 * regformats/i386/x32-avx512-linux.dat: Regenerate.
760 * regformats/i386/x32-avx512.dat: Regenerate.
761 * regformats/i386/x32-linux.dat: Regenerate.
762 * regformats/i386/x32.dat: Regenerate.
763 * regformats/microblaze-with-stack-protect.dat: Regenerate.
764 * regformats/mips-dsp-linux.dat: Regenerate.
765 * regformats/mips-linux.dat: Regenerate.
766 * regformats/mips64-dsp-linux.dat: Regenerate.
767 * regformats/mips64-linux.dat: Regenerate.
768 * regformats/nios2-linux.dat: Regenerate.
769 * regformats/rs6000/powerpc-32.dat: Regenerate.
770 * regformats/rs6000/powerpc-32l.dat: Regenerate.
771 * regformats/rs6000/powerpc-64l.dat: Regenerate.
772 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
773 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
774 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
775 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
776 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
777 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
778 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
779 * regformats/s390-linux32.dat: Regenerate.
780 * regformats/s390-linux32v1.dat: Regenerate.
781 * regformats/s390-linux32v2.dat: Regenerate.
782 * regformats/s390-linux64.dat: Regenerate.
783 * regformats/s390-linux64v1.dat: Regenerate.
784 * regformats/s390-linux64v2.dat: Regenerate.
785 * regformats/s390-te-linux64.dat: Regenerate.
786 * regformats/s390x-linux64.dat: Regenerate.
787 * regformats/s390x-linux64v1.dat: Regenerate.
788 * regformats/s390x-linux64v2.dat: Regenerate.
789 * regformats/s390x-te-linux64.dat: Regenerate.
790 * regformats/tic6x-c62x-linux.dat: Regenerate.
791 * regformats/tic6x-c62x.dat: Regenerate.
792 * regformats/tic6x-c64x-linux.dat: Regenerate.
793 * regformats/tic6x-c64x.dat: Regenerate.
794 * regformats/tic6x-c64xp-linux.dat: Regenerate.
795 * regformats/tic6x-c64xp.dat: Regenerate.
796
797 2014-10-01 Pedro Alves <palves@redhat.com>
798
799 * features/Makefile: Update comments.
800 (XMLTOC): List all xml files we build C files from.
801 (clean-cfiles): New rule.
802
803 2014-10-01 Pedro Alves <palves@redhat.com>
804
805 * features/i386/amd64-avx512-linux.c: Regenerate.
806 * features/i386/amd64-avx512.c: Regenerate.
807 * features/i386/x32-avx512-linux.c: Regenerate.
808 * features/i386/x32-avx512.c: Regenerate.
809
810 2014-10-01 Pedro Alves <palves@redhat.com>
811
812 * features/Makefile (WHICH): Remove arm-with-m,
813 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
814
815 2014-10-01 Pedro Alves <palves@redhat.com>
816
817 * features/Makefile (clean): New rule.
818
819 2014-10-01 Pedro Alves <palves@redhat.com>
820
821 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
822 (zmm14h): Add missing end quotes.
823
824 2014-10-01 Pedro Alves <palves@redhat.com>
825
826 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
827 * features/aarch64.c: Regenerate.
828
829 2014-09-30 Don Breazeal <donb@codesourcery.com>
830
831 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
832 code so as to work with follow_fork_inferior.
833 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
834 (inf_ttrace_create_inferior): Remove reference to
835 inf_ttrace_vfork_ppid.
836 (inf_ttrace_attach): Ditto.
837 (inf_ttrace_detach): Ditto.
838 (inf_ttrace_kill): Use current_inferior instead of
839 inf_ttrace_vfork_ppid.
840 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
841 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
842 inferior away from the parent.
843 * infrun.c (follow_fork): Call follow_fork_inferior instead of
844 target_follow_fork.
845 (follow_fork_inferior): New function.
846 (follow_inferior_reset_breakpoints): Make function static.
847 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
848 * linux-nat.c (linux_child_follow_fork): Move target-independent
849 code to infrun.c:follow_fork_inferior.
850
851 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
852
853 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
854 * gdbarch.c: Regenerate.
855 * gdbarch.h: Likewise.
856 * corelow.c (sniff_core_bfd): Drop presence check for deleted
857 gdbarch method 'regset_from_core_section'.
858 (get_core_register_section): Remove handling for the case that
859 regset == NULL and regset_from_core_section is defined.
860 (get_core_registers): Drop check for deleted method.
861 * procfs.c (procfs_do_thread_registers): Adjust comment.
862
863 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
864
865 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
866 (linux_nat_make_corefile_notes): Remove.
867 (linux_target_install_ops): Do not set target method
868 'make_corefile_notes'.
869 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
870 Remove field.
871 (linux_corefile_thread_callback): Instead of args->collect, call
872 linux_collect_thread_registers.
873 (linux_make_corefile_notes): Remove 'collect' parameter. Return
874 NULL unless there is a regset iterator.
875 (linux_make_corefile_notes_1): Remove.
876 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
877 by linux_make_corefile_notes.
878 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
879
880 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
881
882 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
883 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
884 Remove.
885 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
886
887 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
888
889 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
890 (xtensa_iterate_over_regset_sections): New.
891 (xtensa_gdbarch_init): Adjust gdbarch initialization.
892
893 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
894
895 * vax-tdep.c (vax_regset_from_core_section): Remove.
896 (vax_iterate_over_regset_sections): New.
897 (vax_gdbarch_init): Adjust gdbarch initialization.
898
899 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
900
901 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
902 (tilegx_regset_from_core_section): Remove.
903 (tilegx_iterate_over_regset_sections): New.
904 (tilegx_linux_init_abi): Adjust gdbarch initialization.
905
906 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
907
908 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
909 (sparc_iterate_over_regset_sections): New.
910 (sparc32_gdbarch_init): Adjust gdbarch initialization.
911 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
912 targets.
913 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
914 (sparc64fbsd_init_abi): Call fbsd_init_abi.
915 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
916 target method 'make_corefile_notes'.
917
918 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
919
920 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
921 'sizeof_gregset' and 'sizeof_fpregset'.
922 * sh-tdep.c (sh_regset_from_core_section): Remove.
923 (sh_iterate_over_regset_sections): New.
924 (sh_gdbarch_init): Adjust gdbarch initialization.
925 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
926 sizeof_fpregset.
927 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
928 'sizeof_gregset'.
929
930 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
931
932 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
933 (score7_linux_iterate_over_regset_sections): New.
934 (score_gdbarch_init): Adjust gdbarch initialization.
935
936 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
937
938 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
939 FreeBSD targets.
940 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
941 method 'make_corefile_notes'.
942 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
943 (ppcfbsd_regset_from_core_section): Remove.
944 (ppcfbsd_iterate_over_regset_sections): New.
945 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
946 initialization.
947 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
948 (ppcnbsd_iterate_over_regset_sections): New.
949 (ppcnbsd_init_abi): Adjust.
950 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
951 (ppcobsd_iterate_over_regset_sections): New.
952 (ppcobsd_init_abi): Adjust.
953 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
954 (rs6000_aix_iterate_over_regset_sections): New.
955 (rs6000_aix_init_osabi): Adjust.
956
957 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
958
959 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
960 (nios2_regset_from_core_section): Remove.
961 (nios2_iterate_over_regset_sections): New.
962 (nios2_linux_init_abi): Adjust gdbarch initialization.
963
964 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
965
966 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
967 (am33_iterate_over_regset_sections): New.
968 (am33_linux_init_osabi): Adjust gdbarch initialization.
969
970 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
971
972 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
973 (mips_linux_iterate_over_regset_sections): New.
974 (mips_linux_init_abi): Adjust gdbarch initialization.
975 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
976 (mips64obsd_iterate_over_regset_sections): New.
977 (mips64obsd_init_abi): Adjust.
978 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
979 (mipsnbsd_iterate_over_regset_sections): New.
980 (mipsnbsd_init_abi): Adjust.
981
982 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
983
984 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
985 (m88k_iterate_over_regset_sections): New.
986 (m88k_gdbarch_init): Adjust gdbarch initialization.
987
988 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
989
990 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
991 (ia64_linux_iterate_over_regset_sections): New.
992 (ia64_linux_init_abi): Adjust gdbarch initialization.
993
994 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
995
996 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
997 (m68kbsd_iterate_over_regset_sections): New.
998 (m68kbsd_init_abi): Adjust gdbarch initialization.
999 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1000 (m68k_linux_iterate_over_regset_sections): New.
1001 (m68k_linux_init_abi): Adjust gdbarch initialization.
1002
1003 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1004
1005 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1006 (m32r_linux_regset_from_core_section): Remove.
1007 (m32r_linux_iterate_over_regset_sections): New.
1008 (m32r_linux_init_abi): Adjust gdbarch initialization.
1009
1010 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1011
1012 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1013 (amd64obsd_iterate_over_regset_sections): New.
1014 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1015 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1016 Remove.
1017 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1018 regset_from_core_section initialization.
1019 * i386-tdep.c (i386_regset_from_core_section): Remove.
1020 (i386_iterate_over_regset_sections): New.
1021 (i386_gdbarch_init): Adjust gdbarch initialization.
1022 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1023 (i386_iterate_over_regset_sections): New prototype.
1024 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1025 Remove.
1026 (i386obsd_aout_iterate_over_regset_sections): New.
1027 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1028 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1029 targets.
1030 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1031 (amd64fbsd_init_abi): Call fbsd_init_abi.
1032 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1033 (i386fbsd4_init_abi): Call fbsd_init_abi.
1034 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1035 target method 'make_corefile_notes'.
1036 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1037
1038 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1039
1040 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1041 (hppa_hpux_iterate_over_regset_sections): New.
1042 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1043 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1044 (hppa_linux_iterate_over_regset_sections): New.
1045 (hppa_linux_init_abi): Adjust.
1046 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1047 (hppanbsd_iterate_over_regset_sections): New.
1048 (hppanbsd_init_abi): Adjust.
1049 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1050 (hppaobsd_iterate_over_regset_sections): New.
1051 (hppaobsd_init_abi): Adjust.
1052
1053 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1054
1055 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1056 (frv_linux_iterate_over_regset_sections): New.
1057 (frv_linux_init_abi): Adjust gdbarch initialization.
1058
1059 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1060
1061 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1062 (armbsd_iterate_over_regset_sections): New prototype.
1063 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1064 (armbsd_iterate_over_regset_sections): New.
1065 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1066 initialization.
1067
1068 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1069
1070 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1071 (alpha_linux_iterate_over_regset_sections): New.
1072 (alpha_linux_init_abi): Adjust gdbarch initialization.
1073 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1074 prototype.
1075 (alphanbsd_iterate_over_regset_sections): New prototype.
1076
1077 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1078
1079 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1080 Remove.
1081 (aarch64_linux_iterate_over_regset_sections): New.
1082 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1083
1084 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1085
1086 * fbsd-tdep.c: New file.
1087 * fbsd-tdep.h: New file.
1088 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1089 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1090 (ALLDEPFILES): Add fbsd-tdep.c.
1091
1092 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1093
1094 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1095 parameter.
1096 * gdbarch.h: Regenerate.
1097 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1098 iterator.
1099 (get_core_register_section): Add parameter 'regset' and use it, if
1100 set. Add parameter 'min_size' and verify the bfd section size
1101 against it.
1102 (get_core_registers_cb): Add parameter 'regset' and pass it to
1103 get_core_register section. For the "standard" register sections
1104 ".reg" and ".reg2", set an appropriate default for human_name.
1105 (get_core_registers): Don't abort when the gdbarch has an iterator
1106 but no regset_from_core_section. Add NULL/0 for parameters
1107 'regset'/'min_size' in calls to get_core_register_section.
1108 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1109 'regset' and use it instead of calling the
1110 regset_from_core_section gdbarch method.
1111 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1112 * i386-tdep.c (i386_supply_xstateregset)
1113 (i386_collect_xstateregset, i386_xstateregset): Moved to
1114 i386-linux-tdep.c.
1115 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1116 .reg-xstate.
1117 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1118 core file support only if the regset iterator hasn't been set.
1119 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1120 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1121 Moved from i386-tdep.c and renamed to *_linux*.
1122 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1123 each callback invocation. Allow any .reg-xstate size when reading
1124 from a core file.
1125 * amd64-tdep.c (amd64_supply_xstateregset)
1126 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1127 amd64-linux-tdep.c.
1128 (amd64_regset_from_core_section): Remove.
1129 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1130 install an amd64-specific regset_from_core_section gdbarch method.
1131 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1132 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1133 Moved from amd64-tdep.c and renamed to *_linux*.
1134 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1135 to each callback invocation. Allow any .reg-xstate size when
1136 reading from a core file.
1137 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1138 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1139 each callback invocation.
1140 (arm_linux_init_abi): No longer set the regset_from_core_section
1141 gdbarch method.
1142 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1143 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1144 each callback invocation.
1145 (ppc_linux_init_abi): No longer set the regset_from_core_section
1146 gdbarch method.
1147 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1148 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1149 (s390_regset_from_core_section): Remove.
1150 (s390_iterate_over_regset_sections): Add regset parameter to each
1151 callback invocation.
1152 (s390_gdbarch_init): No longer set the regset_from_core_section
1153 gdbarch method. Drop initialization of deleted tdep fields.
1154
1155 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1156
1157 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1158 (amd64_linux_iterate_over_regset_sections): New.
1159 (amd64_linux_init_abi_common): Don't install the regset section
1160 list, but the new iterator in gdbarch.
1161 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1162 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1163 (arm_linux_iterate_over_regset_sections): ...here. New function.
1164 (arm_linux_init_abi): Set iterator instead of section list.
1165 * corelow.c (get_core_registers_cb): New function, logic moved
1166 from...
1167 (get_core_registers): ...loop body here. Use new iterator method
1168 instead of walking through the regset section list.
1169 * gdbarch.sh: Remove 'core_regset_sections'. New method
1170 'iterate_over_regset_sections'. New typedef
1171 'iterate_over_regset_sections_cb'.
1172 * gdbarch.c: Regenerate.
1173 * gdbarch.h: Likewise.
1174 * i386-linux-tdep.c (i386_linux_regset_sections)
1175 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1176 Remove.
1177 (i386_linux_iterate_over_regset_sections): New.
1178 (i386_linux_init_abi): Don't choose a regset section list, but
1179 install new iterator in gdbarch.
1180 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1181 (linux_collect_regset_section_cb): New function, logic moved
1182 from...
1183 (linux_collect_thread_registers): ...loop body here. Use iterator
1184 method instead of walking through list.
1185 (linux_make_corefile_notes_1): Check for presence of iterator
1186 method instead of regset section list.
1187 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1188 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1189 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1190 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1191 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1192 (ppc_linux_init_abi): Don't choose from above regset section
1193 lists, but install new iterator in gdbarch.
1194 * regset.h (struct core_regset_section): Remove.
1195 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1196 have_linux_v1, have_linux_v2, and have_tdb.
1197 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1198 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1199 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1200 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1201 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1202 (s390_iterate_over_regset_sections): ...here. New function. Use
1203 new tdep fields.
1204 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1205 regset section lists, but install new iterator.
1206
1207 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1208
1209 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1210
1211 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1212
1213 * progspace.c (print_program_space): Don't prune program spaces
1214 before printing them.
1215
1216 2014-09-25 Pedro Alves <palves@redhat.com>
1217
1218 * infrun.c (user_visible_resume_ptid): Don't check
1219 singlestep_breakpoints_inserted_p.
1220
1221 2014-09-25 Pedro Alves <palves@redhat.com>
1222
1223 * breakpoint.c (should_be_inserted): Add debug output.
1224
1225 2014-09-25 Pedro Alves <palves@redhat.com>
1226
1227 * infrun.c (stepping_past_instruction_at)
1228 (clear_exit_convenience_vars): Point at infrun.h instead of
1229 inferior.h.
1230 (handle_signal_stop): Fix typo.
1231
1232 2014-09-24 Yao Qi <yao@codesourcery.com>
1233
1234 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1235 bitmask.
1236
1237 2014-09-22 Gary Benson <gbenson@redhat.com>
1238
1239 * target.c (target_stop): Updated comment.
1240
1241 2014-09-22 Gary Benson <gbenson@redhat.com>
1242
1243 * target/target.h (target_stop_ptid): Renamed as...
1244 (target_stop_and_wait): New function. Updated comment.
1245 All uses updated.
1246 (target_continue_ptid): Renamed as...
1247 (target_continue_no_signal): New function. Updated comment.
1248 All uses updated.
1249
1250 2014-09-22 Pedro Alves <palves@redhat.com>
1251
1252 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1253 and "auto" merged.
1254 * breakpoint.c (enum ugll_insert_mode): New enum.
1255 (always_inserted_mode): Now a plain boolean.
1256 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1257 (breakpoints_always_inserted_mode): Delete.
1258 (breakpoints_should_be_inserted_now): New function.
1259 (insert_breakpoints): Pass UGLL_INSERT to
1260 update_global_location_list instead of calling
1261 insert_breakpoint_locations manually.
1262 (create_solib_event_breakpoint_1): New, factored out from ...
1263 (create_solib_event_breakpoint): ... this.
1264 (create_and_insert_solib_event_breakpoint): Use
1265 create_solib_event_breakpoint_1 instead of calling
1266 insert_breakpoint_locations manually.
1267 (update_global_location_list): Change parameter type from boolean
1268 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1269 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1270 (update_global_location_list_nothrow): Change parameter type from
1271 boolean to enum ugll_insert_mode.
1272 (_initialize_breakpoint): "breakpoint always-inserted" option is
1273 now a boolean command. Update help text.
1274 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1275 (breakpoints_should_be_inserted_now): New declaration.
1276 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1277 Remove breakpoints_always_inserted_mode check.
1278 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1279 * remote.c (remote_start_remote): Likewise.
1280
1281 2014-09-22 Pedro Alves <palves@redhat.com>
1282
1283 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1284 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1285 Instead, pass UGLL_INSERT to update_global_location_list.
1286 (update_global_location_list): Change parameter type from boolean
1287 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1288 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1289 (create_solib_event_breakpoint_1): New, factored out from ...
1290 (create_solib_event_breakpoint): ... this.
1291 (create_and_insert_solib_event_breakpoint): Use
1292 create_solib_event_breakpoint_1 instead of calling
1293 insert_breakpoint_locations manually.
1294 (update_global_location_list): Handle UGLL_INSERT.
1295
1296 2014-09-22 Pedro Alves <palves@redhat.com>
1297
1298 * breakpoint.c (enum ugll_insert_mode): New enum.
1299 (update_global_location_list)
1300 (update_global_location_list_nothrow): Change parameter type from
1301 boolean to enum ugll_insert_mode. All callers adjusted.
1302
1303 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1304
1305 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1306 SystemTap support in GDB.
1307
1308 2014-09-19 Don Breazeal <donb@codesourcery.com>
1309
1310 * linux-nat.c (linux_handle_extended_wait): Call
1311 linux_ptrace_get_extended_event.
1312 (wait_lwp): Call linux_is_extended_waitstatus.
1313 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1314 and linux_is_extended_waitstatus.
1315 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1316 linux_ptrace_get_extended_event.
1317 (linux_ptrace_get_extended_event): New function.
1318 (linux_is_extended_waitstatus): New function.
1319 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1320 (linux_is_extended_waitstatus): New declarations.
1321
1322 2014-09-19 Yao Qi <yao@codesourcery.com>
1323
1324 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1325 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1326 comments. Callers update.
1327 (dwarf_decode_lines): Likewise.
1328 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1329 comments. Skip the line table if 'lowpc' is greater than
1330 'address'. Don't check
1331 dwarf2_per_objfile->has_section_at_zero.
1332
1333 2014-09-18 Doug Evans <dje@google.com>
1334
1335 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1336 * python/py-symtab.c (stpy_get_producer): New function.
1337 (symtab_object_getset): Add "producer" attribute.
1338
1339 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1340
1341 PR gdb/17384
1342 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1343 (do_captured_read_memory_integer): Remove.
1344 (safe_read_memory_integer): Use target_read_memory directly instead
1345 of catching errors in do_captured_read_memory_integer.
1346
1347 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1348
1349 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1350 not gdb/doc.
1351
1352 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1353
1354 * objc-lang.c (find_implementation_from_class): Remove dead code.
1355
1356 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1357
1358 PR cli/7233
1359 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1360 "fprintf_unfiltered (gdb_stdlog...)".
1361
1362 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1363
1364 PR breakpoints/12526
1365 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1366 val_bitsize.
1367 * breakpoint.c (watch_command_1): Use these fields to retain
1368 bitfield information.
1369 (extract_bitfield_from_watchpoint_value): New function.
1370 (watchpoint_check): Use it.
1371 (update_watchpoint): Use it. Optimize the address and length of a
1372 HW watchpoint pointing to a bitfield.
1373 * value.h (unpack_value_bitfield): New prototype.
1374 * value.c (unpack_value_bitfield): Make extern.
1375
1376 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1377
1378 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1379 x86-dregs.o.
1380 * gnu-nat.c (inf_threads): New function.
1381 * gnu-nat.h (inf_threads_ftype): New typedef.
1382 (inf_threads): New declaration.
1383 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1384 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1385 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1386 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1387 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1388 (i386_gnu_dr_get_control): New functions.
1389 (reg_addr): New structure.
1390 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1391 i386 debugging register hooks.
1392 * NEWS: Mention this.
1393
1394 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1395
1396 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1397 vector data transfer instructions.
1398 (arm_record_coproc_data_proc): Updated.
1399
1400 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1401
1402 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1403 arm_record_exreg_ld_st_insn.
1404 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1405 load/store insns.
1406
1407 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1408
1409 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1410 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1411 processing instructions.
1412
1413 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1414
1415 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1416 for advance SIMD struct ld/st insn.
1417 (thumb2_record_decode_insn_handler): Replace stub handler with
1418 thumb2_record_asimd_struct_ld_st.
1419
1420 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1421
1422 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1423 for asimd, vfp and coprocessor insns.
1424 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1425 and coprocessor insns.
1426 (thumb2_record_coproc_insn): New function.
1427 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1428 handlers.
1429 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1430 opcode 110 insns.
1431
1432 2014-09-13 Doug Evans <xdje42@gmail.com>
1433
1434 * NEWS: Mention new "queue-signal" command.
1435 * infcmd.c (queue_signal_command): New function.
1436 (_initialize_infcmd): Add new queue-signal command.
1437
1438 2014-09-13 Doug Evans <xdje42@gmail.com>
1439
1440 * linux-nat.c (wait_lwp): Add debugging printf.
1441 (linux_nat_wait_1): Ditto.
1442
1443 2014-09-12 Pedro Alves <palves@redhat.com>
1444
1445 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1446 (create_and_insert_solib_event_breakpoint): New functions.
1447 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1448 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1449 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1450 (remove_dbx_link_breakpoint): Delete function.
1451 (insert_dbx_link_bpt_in_file): Use
1452 create_and_insert_solib_event_breakpoint instead of
1453 deprecated_insert_raw_breakpoint.
1454 (procfs_wait): Don't check whether we hit __dbx_link here.
1455 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1456 here.
1457 * solib-irix.c (base_breakpoint): Delete global.
1458 (disable_break): Delete function.
1459 (enable_break): Use create_solib_event_breakpoint
1460 instead of deprecated_insert_raw_breakpoint.
1461 (irix_solib_handle_event): New function.
1462 (irix_solib_create_inferior_hook): Don't run the target or disable
1463 the mapping-complete breakpoint here.
1464 (_initialize_irix_solib): Install irix_solib_handle_event as
1465 so_ops->handle_event hook.
1466
1467 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1468 Ulrich Weigand  <uweigand@de.ibm.com>
1469
1470 PR tdep/17379
1471 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1472 instead of read_memory_unsigned_integer.
1473
1474 2014-09-12 Gary Benson <gbenson@redhat.com>
1475
1476 * nat/linux-waitpid.c: Include common-defs.h.
1477 [GDBSERVER]: Add FIXME comment.
1478 [!GDBSERVER]: Don't include defs.h or signal.h.
1479 (linux_debug) [!GDBSERVER]: Remove empty block.
1480
1481 2014-09-12 Gary Benson <gbenson@redhat.com>
1482
1483 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1484 Don't include defs.h or server.h.
1485
1486 2014-09-12 Gary Benson <gbenson@redhat.com>
1487
1488 * nat/linux-btrace.c: Include common-defs.h.
1489 Don't include defs.h, server.h or gdbthread.h.
1490 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1491
1492 2014-09-12 Gary Benson <gbenson@redhat.com>
1493
1494 * common/agent.c: Include common-defs.h.
1495 Don't include defs.h or server.h.
1496 * common/buffer.c: Likewise.
1497 * common/common-debug.c: Likewise.
1498 * common/common-utils.c: Likewise.
1499 * common/errors.c: Likewise.
1500 * common/filestuff.c: Likewise.
1501 * common/format.c: Likewise.
1502 * common/gdb_vecs.c: Likewise.
1503 * common/print-utils.c: Likewise.
1504 * common/ptid.c: Likewise.
1505 * common/rsp-low.c: Likewise.
1506 * common/signals.c: Likewise.
1507 * common/vec.c: Likewise.
1508 * common/xml-utils.c: Likewise.
1509 * nat/linux-osdata.c: Likewise.
1510 * nat/linux-procfs.c: Likewise.
1511 * nat/linux-ptrace.c: Likewise.
1512 * nat/mips-linux-watch.c: Likewise.
1513 * target/waitstatus.c: Likewise.
1514
1515 2014-09-12 Tom Tromey <tromey@redhat.com>
1516 Gary Benson <gbenson@redhat.com>
1517
1518 * common/common-regcache.h: New file.
1519 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1520 * regcache.h: Include common-regcache.h.
1521 (regcache_read_pc): Don't declare.
1522 * regcache.c (get_thread_regcache_for_ptid): New function.
1523 * nat/linux-btrace.c: Don't include regcache.h.
1524 Include common-regcache.h.
1525 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1526
1527 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1528
1529 * regcache.h (struct regset): Declare.
1530
1531 2014-09-11 Pedro Alves <palves@redhat.com>
1532
1533 PR gdb/17347
1534 * main.c: Include "infrun.h".
1535 (catch_command_errors, catch_command_errors_const): Wait for the
1536 foreground command to complete.
1537 * top.c (maybe_wait_sync_command_done): New function, factored out
1538 from ...
1539 (maybe_wait_sync_command_done): ... here.
1540 * top.h (maybe_wait_sync_command_done): New declaration.
1541
1542 2014-09-11 Tom Tromey <tromey@redhat.com>
1543 Gary Benson <gbenson@redhat.com>
1544
1545 * common/symbol.h: New file.
1546 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1547 * minsyms.c (find_minimal_symbol_address): New function.
1548 * common/agent.c: Include common/symbol.h.
1549 [!GDBSERVER]: Don't include objfiles.h.
1550 (agent_look_up_symbols): Use find_minimal_symbol_address.
1551
1552 2014-09-11 Gary Benson <gbenson@redhat.com>
1553
1554 * target/target.h (target_stop_ptid, target_continue_ptid):
1555 Declare.
1556 * target.c (target_stop_ptid, target_continue_ptid): New
1557 functions.
1558 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1559 (agent_run_command): Always use target_stop_ptid and
1560 target_continue_ptid.
1561
1562 2014-09-11 Tom Tromey <tromey@redhat.com>
1563 Gary Benson <gbenson@redhat.com>
1564
1565 * target/target.h: New file.
1566 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1567 * target.h: Include target/target.h.
1568 (target_read_memory, target_write_memory): Don't declare.
1569 * target.c (target_read_uint32): New function.
1570 * common/agent.c: Include target/target.h.
1571 [!GDBSERVER]: Don't include target.h.
1572 (helper_thread_id): Type changed to uint32_t.
1573 (agent_get_helper_thread_id): Use target_read_uint32.
1574 (agent_run_command): Always use target_read_memory and
1575 target_write_memory.
1576 (agent_capability): Type changed to uint32_t.
1577 (agent_capability_check): Use target_read_uint32.
1578
1579 2014-09-11 Gary Benson <gbenson@redhat.com>
1580
1581 * common/common-debug.h (show_debug_regs): Declare.
1582 * common/common-debug.c (show_debug_regs): Define.
1583 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1584 all uses with show_debug_regs. Replace all uses that considered
1585 debug_hw_points as a multi-value integer with straight boolean
1586 uses.
1587 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1588 with show_debug_regs.
1589 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1590 all uses with show_debug_regs.
1591 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1592 uses with show_debug_regs.
1593
1594 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1595
1596 * findvar.c (address_from_register): Handle targets requiring
1597 a special conversion routine even for plain pointer types.
1598
1599 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1600
1601 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1602 (store_register): Do not call exec_one_dummy_insn.
1603
1604 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1605
1606 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1607 dereference it first. Use value_enclosing_type instead of
1608 value_type.
1609 (ada_array_length): Likewise.
1610
1611 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1612
1613 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1614 Adjust function implementation and documentation accordingly.
1615 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1616 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1617 Update call to ada_value_ptr_subscript.
1618
1619 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1620
1621 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1622 instead of VAL's type.
1623
1624 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1625
1626 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1627
1628 2014-09-09 Doug Evans <xdje42@gmail.com>
1629
1630 PR guile/17367
1631 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1632 last parameter to pkg-config, not first.
1633 * configure.ac: Pass --with-guile provided pkg-config path to
1634 GDB_GUILE_PROGRAM_NAMES.
1635 * configure: Regenerate.
1636
1637 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1638
1639 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1640 Bertazi".
1641
1642 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1643
1644 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1645 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1646 the list of sections determining GDB_OSABI_IRIX.
1647
1648 2014-09-09 James Hogan <james.hogan@imgtec.com>
1649
1650 * MAINTAINERS (Write After Approval): Add "James Hogan".
1651
1652 2014-09-09 James Hogan <james.hogan@imgtec.com>
1653
1654 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1655
1656 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1657
1658 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1659
1660 2014-09-08 Doug Evans <xdje42@gmail.com>
1661
1662 PR 17247
1663 * guile.c: #include <signal.h>.
1664 (_initialize_guile): Block SIGCHLD while initializing Guile.
1665
1666 Replaces the following, which is reverted.
1667
1668 2014-07-26 Doug Evans <xdje42@gmail.com>
1669
1670 PR 17185
1671 * configure.ac: Add check for header gc/gc.h.
1672 Add check for function setenv.
1673 * configure: Regenerate.
1674 * config.in: Regenerate.
1675 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1676
1677 2014-09-08 Doug Evans <xdje42@gmail.com>
1678
1679 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1680 with named constant. Fix style of pointer comparison.
1681 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1682
1683 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1684
1685 PR gdb/17035
1686 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1687 decide whether we display the command on "show user".
1688 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1689 printing command name.
1690 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1691 * cli/cli-decode.c (cli_user_command_p): Create helper function
1692 to verify whether cmd_list_element is a user-defined command.
1693
1694 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 PR python/17355
1697 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1698 Fix goto out of TRY_CATCH.
1699
1700 2014-09-06 Doug Evans <xdje42@gmail.com>
1701 Tom Tromey <tromey@redhat.com>
1702
1703 PR 15276
1704 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1705 $_any_caller_matches.
1706 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1707 * python/lib/gdb/function/caller_is.py: New file.
1708
1709 2014-09-06 Doug Evans <xdje42@gmail.com>
1710
1711 * infcmd.c (program_info): Fix typo.
1712
1713 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1714
1715 PR gdb/17235
1716 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1717 'number'. New variable 'has_digit'. Rewrite code to deal with
1718 subexpressions on SDT probes.
1719
1720 2014-09-04 Pedro Alves <palves@redhat.com>
1721
1722 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1723 the input is only one character long.
1724
1725 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1726
1727 PR fortran/17237
1728 * f-valprint.c (f_val_print): Specify the correct print option to
1729 use when printing integer values.
1730
1731 2014-09-04 Gary Benson <gbenson@redhat.com>
1732
1733 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1734 Remove code to cope with LWPs wrapped as PIDs.
1735 Add assertions to ensure no wrapped LWPs are passed.
1736
1737 2014-09-04 Pedro Alves <palves@redhat.com>
1738
1739 * value.c (value_ranges_copy_adjusted): New function, factored out
1740 from ...
1741 (value_contents_copy_raw): ... here.
1742 (unpack_value_bits_as_long_1): Rename back to ...
1743 (unpack_bits_as_long): ... this. Remove 'original_value' and
1744 'result' parameters. Change return type to LONGEST.
1745 (unpack_value_bits_as_long): Delete.
1746 (unpack_value_field_as_long_1): Delete.
1747 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1748 (unpack_value_bitfield): New function.
1749 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1750 (value_fetch_lazy): Use unpack_value_bitfield.
1751 * value.h (unpack_value_bits_as_long): Delete declaration.
1752
1753 2014-09-03 Sasha Smundak <asmundak@google.com>
1754
1755 * python/py-frame.c (frapy_read_register): New function.
1756
1757 2014-09-03 James Hogan <james.hogan@imgtec.com>
1758
1759 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1760 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1761
1762 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1763
1764 PR python/16699
1765 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1766 function.
1767 (add_cmd): Set "completer_handle_brkchars" to NULL.
1768 * cli/cli-decode.h (struct cmd_list_element)
1769 <completer_handle_brkchars>: New field.
1770 * command.h (completer_ftype_void): New typedef.
1771 (set_cmd_completer_handle_brkchars): New prototype.
1772 * completer.c (set_gdb_completion_word_break_characters): New
1773 function.
1774 (complete_line_internal): Call "completer_handle_brkchars"
1775 callback from command.
1776 * completer.h: Include "command.h".
1777 (set_gdb_completion_word_break_characters): New prototype.
1778 * python/py-cmd.c (cmdpy_completer_helper): New function.
1779 (cmdpy_completer_handle_brkchars): New function.
1780 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1781 (cmdpy_init): Set completer_handle_brkchars to
1782 cmdpy_completer_handle_brkchars.
1783
1784 2014-09-03 Gary Benson <gbenson@redhat.com>
1785
1786 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1787 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1788 Loop conditions changed to equivalent form.
1789 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1790 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1791 ALL_DEBUG_ADDRESS_REGISTERS.
1792
1793 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1794
1795 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1796 description fix.
1797
1798 2014-09-02 Doug Evans <dje@google.com>
1799
1800 * typeprint.c (find_global_typedef): Fix comment.
1801
1802 2014-09-02 Gary Benson <gbenson@redhat.com>
1803
1804 * i386-nat.h: Renamed as...
1805 * x86-nat.h: New file. All type, function and variable name
1806 prefixes changed from "i386_" to "x86_". All references updated.
1807 * i386-nat.c: Renamed as...
1808 * x86-nat.c: New file. All type, function and variable name
1809 prefixes changed from "i386_" to "x86_". All references updated.
1810 * common/i386-xstate.h: Renamed as...
1811 * common/x86-xstate.h: New file. All type, function and variable
1812 name prefixes changed from "i386_" to "x86_". All references
1813 updated.
1814 * nat/i386-cpuid.h: Renamed as...
1815 * nat/x86-cpuid.h: New file. All type, function and variable name
1816 prefixes changed from "i386_" to "x86_". All references updated.
1817 * nat/i386-gcc-cpuid.h: Renamed as...
1818 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1819 name prefixes changed from "i386_" to "x86_". All references
1820 updated.
1821 * nat/i386-dregs.h: Renamed as...
1822 * nat/x86-dregs.h: New file. All type, function and variable name
1823 prefixes changed from "i386_" to "x86_". All references updated.
1824 * nat/i386-dregs.c: Renamed as...
1825 * nat/x86-dregs.c: New file. All type, function and variable name
1826 prefixes changed from "i386_" to "x86_". All references updated.
1827
1828 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1829
1830 * varobj.c (_initialize_varobj): Move to the end of file.
1831
1832 2014-08-29 Gary Benson <gbenson@redhat.com>
1833
1834 * common/common-exceptions.h: New file.
1835 * common/common-exceptions.c: Likewise.
1836 * Makefile.in (SFILES): Add common/common-exceptions.c.
1837 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1838 (COMMON_OBS): Add common-exceptions.o.
1839 (common-exceptions.o): New rule.
1840 * exceptions.h (common-exceptions.h): Include.
1841 (gdb_setjmp.h): Do not include.
1842 (return_reason): Moved to common-exceptions.h.
1843 (enum return_reason): Likewise.
1844 (RETURN_MASK): Likewise.
1845 (typedef return_mask): Likewise.
1846 (enum errors): Likewise.
1847 (struct gdb_exception): Likewise.
1848 (exceptions_state_mc_init): Likewise.
1849 (exceptions_state_mc_action_iter): Likewise.
1850 (exceptions_state_mc_action_iter_1): Likewise.
1851 (TRY_CATCH): Likewise.
1852 (throw_exception): Likewise.
1853 (throw_verror): Likewise.
1854 (throw_vquit): Likewise.
1855 (throw_error): Likewise.
1856 (throw_quit): Likewise.
1857 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1858 (enum catcher_action): Likewise.
1859 (struct catcher): Likewise.
1860 (current_catcher): Likewise.
1861 (catcher_list_size): Likewise.
1862 (exceptions_state_mc_init): Likewise.
1863 (catcher_pop): Likewise.
1864 (exceptions_state_mc): Likewise.
1865 (exceptions_state_mc_action_iter): Likewise.
1866 (exceptions_state_mc_action_iter_1): Likewise.
1867 (throw_exception): Likewise.
1868 (exception_messages): Likewise.
1869 (exception_messages_size): Likewise.
1870 (throw_it): Likewise.
1871 (throw_verror): Likewise.
1872 (throw_vquit): Likewise.
1873 (throw_error): Likewise.
1874 (throw_quit): Likewise.
1875 (prepare_to_throw_exception): New function.
1876
1877 2014-08-29 Gary Benson <gbenson@redhat.com>
1878
1879 * common/gdb_setjmp.h: New file.
1880 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1881 * configure.ac: Move sigsetjmp check...
1882 * common/common.m4: ...here.
1883 * configure: Regenerate.
1884 * cp-support.c (SIGJMP_BUF): Delete.
1885 (SIGSETJMP): Likewise.
1886 (SIGLONGJMP): Likewise.
1887 * exceptions.h (gdb_setjmp.h): Include.
1888 (setjmp.h): Do not include.
1889 (EXCEPTIONS_SIGJMP_BUF): Delete.
1890 (EXCEPTIONS_SIGSETJMP): Likewise.
1891 (EXCEPTIONS_SIGLONGJMP): Likewise.
1892 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1893 from gdb_setjmp.h.
1894 * exceptions.c: Likewise.
1895
1896 2014-08-29 Gary Benson <gbenson@redhat.com>
1897
1898 * cleanups.h: Moved to...
1899 * common/cleanups.h: New file.
1900 * cleanups.c: Moved to...
1901 * common/cleanups.c: New file. Include common-defs.h and
1902 cleanups.h. Do not include defs.h.
1903 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1904 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1905 (cleanups.o): New rule.
1906
1907 2014-08-29 Gary Benson <gbenson@redhat.com>
1908
1909 * common/errors.h (internal_warning): New declaration.
1910 (internal_vwarning): Likewise.
1911 * common/errors.c (internal_warning): New function.
1912 * utils.h (internal_warning): Don't declare.
1913 (internal_vwarning): Likewise.
1914 * utils.c (internal_warning): Removed.
1915
1916 2014-08-29 Gary Benson <gbenson@redhat.com>
1917
1918 * main.c (captured_main): Use warning during startup.
1919 Prefix startup warning messages with command name.
1920
1921 2014-08-29 Gary Benson <gbenson@redhat.com>
1922
1923 * main.c (captured_main): Handle usage errors with error.
1924
1925 2014-08-29 Gary Benson <gbenson@redhat.com>
1926
1927 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1928 exit pair with a call to error. Wrap the message with _().
1929
1930 2014-08-29 Gary Benson <gbenson@redhat.com>
1931
1932 * main.c (captured_main): Replace a fprintf/exit
1933 pair with a call to error. Wrap the message with _().
1934
1935 2014-08-29 Gary Benson <gbenson@redhat.com>
1936
1937 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1938 pairs with calls to error. Wrap the message with _().
1939
1940 2014-08-29 Gary Benson <gbenson@redhat.com>
1941
1942 * utils.c (vwarning): Protect calls to target_terminal_ours
1943 and wrap_here.
1944
1945 2014-08-29 Gary Benson <gbenson@redhat.com>
1946
1947 * exceptions.c (print_flush): Protect calls to
1948 target_terminal_ours and wrap_here.
1949
1950 2014-08-29 Gary Benson <gbenson@redhat.com>
1951
1952 * utils.h (filtered_printing_initialized): New declaration.
1953 * utils.c (abort_with_message): New function.
1954 (internal_vproblem): Use abort_with_message for first level
1955 recursive internal problems, and if gdb_stderr is not set up.
1956 Protect calls to target_terminal_ours, begin_line and query.
1957
1958 2014-08-28 Doug Evans <dje@google.com>
1959
1960 * symtab.c (in_prologue): Move definition to better spot.
1961 (skip_prologue_using_sal): Ditto.
1962
1963 2014-08-28 Doug Evans <dje@google.com>
1964
1965 * symtab.c (find_function_start_sal): Move definition to better spot.
1966
1967 2014-08-28 Yao Qi <yao@codesourcery.com>
1968
1969 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1970 found_stack_adjust in forward scan. Remove condition check
1971 on found_stack_adjust which is always true. Indent the code.
1972
1973 2014-08-28 Yao Qi <yao@codesourcery.com>
1974
1975 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1976 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1977 (dwarf_decode_lines): Remove argument
1978 want_line_info. Remove condition check on want_line_info.
1979 Callers update.
1980
1981 2014-08-27 Doug Evans <dje@google.com>
1982
1983 * dwarf2read.c (dwarf_record_line): Fix typo.
1984
1985 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1986
1987 * target.h (struct target_ops::to_terminal_save_ours): Remove
1988 declaration.
1989 (target_terminal_save_ours): Remove macro.
1990 * target-delegates.c: Regenerate.
1991 * inf-child.c (inf_child_target): Don't set the nonexistent
1992 field to_terminal_save_ours.
1993 * inferior.h (child_terminal_save_ours): Remove declaration.
1994 * terminal.h (gdb_save_tty_state): New declaration.
1995 * inflow.c (child_terminal_save_ours): Rename to ...
1996 (gdb_save_tty_state): ... this.
1997 * tui/tui.c: Include terminal.h.
1998 (tui_enable): Use gdb_save_tty_state instead of
1999 target_terminal_save_ours.
2000 (tui_disable): Likewise.
2001
2002 2014-08-25 Doug Evans <dje@google.com>
2003
2004 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2005 Pass NULL instead of 0 for context pointer.
2006
2007 2014-08-25 Yao Qi <yao@codesourcery.com>
2008
2009 * dwarf2read.c: Fix grammatical error.
2010
2011 2014-08-24 Yao Qi <yao@codesourcery.com>
2012
2013 * dwarf2read.c (scan_partial_symbols): Update comments.
2014 Rename argument 'need_pc' with 'set_addrmap'.
2015 (add_partial_namespace): Rename argument 'need_pc' with
2016 'set_addrmap'.
2017 (add_partial_module): Likewise.
2018 (add_partial_subprogram): Likewise. Update comments.
2019 (dwarf2_name): Fix typo.
2020
2021 2014-08-22 Doug Evans <dje@google.com>
2022
2023 PR 17276
2024 * dwarf2read.c (dwarf_record_line_p): New function.
2025 (dwarf_decode_lines_1): Ignore subsequent line number entries
2026 for the same line if any entry had a non-zero discriminator.
2027
2028 2014-08-22 Doug Evans <dje@google.com>
2029
2030 * buildsym.h (record_line_ftype): New typedef.
2031 (record_line): Use it.
2032 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2033 (dwarf_decode_lines_1): Call them.
2034
2035 2014-08-22 Yao Qi <yao@codesourcery.com>
2036
2037 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2038 (ctf_end): Remove code.
2039
2040 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2041
2042 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2043 (linux_make_corefile_notes): call update_thread_list, protected against
2044 exceptions.
2045
2046 2014-08-21 Pedro Alves <palves@redhat.com>
2047
2048 * infcmd.c (attach_command): Remove comment.
2049
2050 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2051
2052 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2053 unsigned LONGEST to ULONGEST.
2054
2055 2014-08-20 Pedro Alves <palves@redhat.com>
2056
2057 * Makefile.in (check-read1): New rule.
2058
2059 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2060
2061 * value.c (value_from_contents_and_address): Strip resolved_type's
2062 typedef layers before checking its TYPE_DATA_LOCATION.
2063
2064 2014-08-20 Pedro Alves <palves@redhat.com>
2065
2066 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2067
2068 2014-08-20 Yao Qi <yao@codesourcery.com>
2069
2070 * amd64-tdep.c (amd64_classify): Add a blank line after the
2071 example. Move "*/" to a new line.
2072 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2073 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2074 * dwarf2read.c (psymtab_include_file_name): Likewise.
2075
2076 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2077 Pedro Alves <palves@redhat.com>
2078
2079 PR symtab/14604
2080 PR symtab/14605
2081 * ada-lang.c (coerce_unspec_val_to_type): Use
2082 value_contents_copy_raw.
2083 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2084 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2085 * cp-valprint.c (cp_print_value_fields): Let the common printing
2086 code handle optimized out values.
2087 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2088 * d-valprint.c (dynamic_array_type): Use
2089 value_bits_any_optimized_out.
2090 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2091 check_any_valid fields.
2092 (check_pieced_value_bits): Delete and inline ...
2093 (check_pieced_synthetic_pointer): ... here.
2094 (check_pieced_value_validity): Delete.
2095 (check_pieced_value_invalid): Delete.
2096 (pieced_value_funcs): Remove check_validity and check_any_valid
2097 fields.
2098 (read_pieced_value): Use mark_value_bits_optimized_out.
2099 (write_pieced_value): Switch to use
2100 mark_value_bytes_optimized_out.
2101 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2102 of assuming the whole value is optimized out.
2103 * findvar.c (read_frame_register_value): Remove special handling
2104 of optimized out registers.
2105 (value_from_register): Use mark_value_bytes_optimized_out.
2106 * frame-unwind.c (frame_unwind_got_optimized): Use
2107 mark_value_bytes_optimized_out.
2108 * jv-valprint.c (java_value_print): Adjust.
2109 (java_print_value_fields): Let the common printing code handle
2110 optimized out values.
2111 * mips-tdep.c (mips_print_register): Remove special handling of
2112 optimized out registers.
2113 * opencl-lang.c (lval_func_check_validity): Delete.
2114 (lval_func_check_any_valid): Delete.
2115 (opencl_value_funcs): Remove check_validity and check_any_valid
2116 fields.
2117 * p-valprint.c (pascal_object_print_value_fields): Let the common
2118 printing code handle optimized out values.
2119 * stack.c (read_frame_arg): Remove special handling of optimized
2120 out values. Fetch both VAL and ENTRYVAL before comparing
2121 contents. Adjust to value_available_contents_eq rename.
2122 * valprint.c (valprint_check_validity)
2123 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2124 (val_print_array_elements): Adjust.
2125 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2126 (value_bits_any_optimized_out): New function.
2127 (value_entirely_covered_by_range_vector): New function, factored
2128 out from value_entirely_unavailable.
2129 (value_entirely_unavailable): Reimplement.
2130 (value_entirely_optimized_out): New function.
2131 (insert_into_bit_range_vector): New function, factored out from
2132 mark_value_bits_unavailable.
2133 (mark_value_bits_unavailable): Reimplement.
2134 (struct ranges_and_idx): New struct.
2135 (find_first_range_overlap_and_match): New function, factored out
2136 from value_available_contents_bits_eq.
2137 (value_available_contents_bits_eq): Rename to ...
2138 (value_contents_bits_eq): ... this. Check both unavailable
2139 contents and optimized out contents.
2140 (value_available_contents_eq): Rename to ...
2141 (value_contents_eq): ... this.
2142 (allocate_value_lazy): Remove reference to the old optimized_out
2143 boolean.
2144 (allocate_optimized_out_value): Use
2145 mark_value_bytes_optimized_out.
2146 (require_not_optimized_out): Adjust to check whether the
2147 optimized_out vec is empty.
2148 (ranges_copy_adjusted): New function, factored out from
2149 value_contents_copy_raw.
2150 (value_contents_copy_raw): Also copy the optimized out ranges.
2151 Assert the destination ranges aren't optimized out.
2152 (value_contents_copy): Update comment, remove call to
2153 require_not_optimized_out.
2154 (value_contents_equal): Adjust to check whether the optimized_out
2155 vec is empty.
2156 (set_value_optimized_out, value_optimized_out_const): Delete.
2157 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2158 New functions.
2159 (value_entirely_optimized_out, value_bits_valid): Delete.
2160 (value_copy): Take a VEC copy of the 'optimized_out' field.
2161 (value_primitive_field): Remove special handling of optimized out.
2162 (value_fetch_lazy): Assert that lazy values have no unavailable
2163 regions. Use value_bits_any_optimized_out. Remove some special
2164 handling for optimized out values.
2165 * value.h: Add intro comment about <optimized out> and
2166 <unavailable>.
2167 (struct lval_funcs): Remove check_validity and check_any_valid
2168 fields.
2169 (set_value_optimized_out, value_optimized_out_const): Remove.
2170 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2171 New declarations.
2172 (value_bits_any_optimized_out): New declaration.
2173 (value_bits_valid): Delete declaration.
2174 (value_available_contents_eq): Rename to ...
2175 (value_contents_eq): ... this, and extend comments.
2176
2177 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2178
2179 Fix -fsanitize=address on unreadable inferior strings.
2180 * valprint.c (val_print_string): Fix access before BUFFER.
2181
2182 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2183
2184 * target.c (target_struct_size): Remove.
2185 (target_struct_allocsize): Remove.
2186 (DEFAULT_ALLOCSIZE): Remove.
2187 (target_ops_p): New typedef.
2188 (DEF_VEC_P (target_ops_p)): New vector type.
2189 (target_structs): Change type to VEC (target_ops_p).
2190 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2191 (find_default_run_target): Rewrite for loop following changes to
2192 target_structs.
2193
2194 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2195
2196 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2197 Adjust code accordingly. Adjust function description comment.
2198
2199 2014-08-19 Yao Qi <yao@codesourcery.com>
2200
2201 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2202 types.
2203
2204 2014-08-19 Alan Modra <amodra@gmail.com>
2205
2206 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2207 * config.in: Regenerate.
2208 * configure: Regenerate.
2209
2210 2014-08-19 Tom Tromey <tromey@redhat.com>
2211 Gary Benson <gbenson@redhat.com>
2212
2213 * common/common-debug.h: New file.
2214 * common/common-debug.c: Likewise.
2215 * debug.c: Likewise.
2216 * Makefile.in (SFILES): Add common/common-debug.c.
2217 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2218 (COMMON_OBS): Add common-debug.o and debug.o.
2219 (common-debug.o): New rule.
2220 * common/common-defs.h: Include common-debug.h.
2221 * common/agent.c (debug_agent_printf): New function.
2222 (DEBUG_AGENT): Redefine.
2223 * nat/i386-dregs.c (debug_printf): Undefine.
2224
2225 2014-08-19 Gary Benson <gbenson@redhat.com>
2226
2227 * common/common-defs.h: Include print-utils.h.
2228 * utils.h: Do not include print-utils.h.
2229
2230 2014-08-19 Tom Tromey <tromey@redhat.com>
2231 Gary Benson <gbenson@redhat.com>
2232
2233 * common/common-types.h: New file.
2234 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2235 * common/common-defs.h: Include common-types.h.
2236 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2237 (ULONGEST): Remove.
2238
2239 2014-08-19 Tom Tromey <tromey@redhat.com>
2240 Gary Benson <gbenson@redhat.com>
2241
2242 * common/errors.h: New file.
2243 * common/errors.c: Likewise.
2244 * Makefile.in (SFILES): Add common/errors.c.
2245 (HFILES_NO_SRCDIR): Add common/errors.h.
2246 (COMMON_OBS): Add errors.o.
2247 (errors.o): New rule.
2248 * common/common-defs.h: Include errors.h.
2249 * utils.h (perror_with_name, error, verror, warning, vwarning):
2250 Don't declare.
2251 * common/common-utils.h: (malloc_failure, internal_error):
2252 Likewise.
2253
2254 2014-08-19 Gary Benson <gbenson@redhat.com>
2255
2256 * utils.c (internal_vproblem): Always print the message.
2257
2258 2014-08-18 Doug Evans <dje@google.com>
2259
2260 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2261
2262 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2263
2264 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2265 Return 0 if TYPE is dynamic.
2266 (print_range): Add handling of dynamic ranges.
2267
2268 2014-08-18 Keven Boell <keven.boell@intel.com>
2269 Joel Brobecker <brobecker@adacore.com>
2270
2271 * gdbtypes.h (struct main_type): Add field "data_location".
2272 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2273 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2274 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2275 a dynamic data location.
2276 (resolve_dynamic_type): Add DW_AT_data_location handling.
2277 (copy_recursive, copy_type): Copy the data_location information
2278 when present.
2279 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2280 * value.c (value_from_contents_and_address): Add
2281 DW_AT_data_location handling.
2282
2283 2014-08-18 Keven Boell <keven.boell@intel.com>
2284 Joel Brobecker <brobecker@adacore.com>
2285
2286 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2287 field "get_object_address".
2288 * dwarf2expr.c (execute_stack_op): Add handling for
2289 DW_OP_push_object_address.
2290 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2291 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2292 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2293 (dwarf_expr_get_obj_addr): New function.
2294 (dwarf_expr_ctx_funcs): Add get_object_address field.
2295 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2296 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2297 (dwarf2_evaluate_property): Add parameter "address". Use it.
2298 (needs_get_obj_addr): New function.
2299 (needs_frame_ctx_funcs): Add get_object_address field.
2300 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2301 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2302 (resolve_dynamic_array): Likewise.
2303
2304 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2305
2306 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2307 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2308 fixed value for records and unions for which some GNAT encodings
2309 are present.
2310
2311 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2312
2313 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2314 rewrite to avoid "else if" and "else" constructs. Should be
2315 a no-op in practice.
2316
2317 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2318
2319 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2320 of lexical block.
2321
2322 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2323
2324 PR c++/17132
2325 * eval.c: Update all calls to find_overload_match.
2326 * valarith.c: Likewise.
2327 (value_user_defined_cpp_op, value_user_defined_op): New
2328 argument NOSIDE. Update all callers.
2329 * valops.c (find_overload_match): New argument NOSIDE.
2330 * value.h (find_overload_match): Update signature.
2331
2332 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2333
2334 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2335 'items' methods instead of 'iteritems' method on dictionaries.
2336
2337 2014-08-15 Doug Evans <dje@google.com>
2338
2339 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2340 closer to use.
2341
2342 2014-08-15 Doug Evans <dje@google.com>
2343
2344 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2345
2346 2014-08-15 Doug Evans <dje@google.com>
2347
2348 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2349
2350 2014-08-15 Doug Evans <dje@google.com>
2351
2352 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2353 unused.
2354
2355 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2356
2357 * dcache.h: Include target.h, to avoid compile time warnings.
2358
2359 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2360
2361 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2362 frame_info" partial declaration.
2363 * gdbarch.h: Regenerate.
2364
2365 2014-08-15 Yao Qi <yao@codesourcery.com>
2366
2367 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2368 Add parameter 'decode_for_pst_p'. Callers update.
2369
2370 2014-08-13 Yao Qi <yao@codesourcery.com>
2371
2372 PR build/17104
2373 * configure.ac: Use local variable 'pos'.
2374 * configure: Regenerated.
2375
2376 2014-08-11 Doug Evans <dje@google.com>
2377
2378 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2379 message, it is redundant with "Reading symbols from ..." message.
2380
2381 2014-08-10 Doug Evans <xdje42@gmail.com>
2382
2383 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2384
2385 2014-08-09 Yao Qi <yao@codesourcery.com>
2386
2387 PR remote/9053
2388 * remote.c (remote_xfer_partial): Remove dead code.
2389
2390 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2391
2392 * ia64-linux-tdep.c: Include "regset.h".
2393 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2394 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2395 (ia64_linux_supply_fpregset): New function.
2396 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2397 (ia64_linux_regset_from_core_section): New function.
2398 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2399 method.
2400
2401 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2402
2403 * m68klinux-tdep.c: Include "regset.h".
2404 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2405 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2406 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2407 (m68k_linux_regset_from_core_section): New function.
2408 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2409 method.
2410
2411 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2412
2413 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2414 function. Move logic to...
2415 (tilegx_linux_regmap): ... this new register map.
2416 (tilegx_linux_regset): Refer to register map, replace supply
2417 method by regcache_supply_regset, and add collect method.
2418 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2419 TILEGX_FIRST_EASY_REGNUM.
2420
2421 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2422
2423 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2424 that calls regcache_supply_regset and handles the EPC register
2425 separately. Move main logic to...
2426 (score7_linux_gregmap): ... this new register map.
2427 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2428 (score7_linux_gregset): Refer to register map. Add collect method.
2429 (score7_linux_regset_from_core_section): Replace
2430 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2431 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2432 (struct regset): Delete unused forward declaraction.
2433 (struct pt_regs): Delete structure definition.
2434 (elf_gregset_t): Delete typedef.
2435
2436 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2437
2438 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2439 (nios2_core_regset): Add collect method.
2440
2441 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2442
2443 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2444 platform-independent and don't write to read-only input buffer.
2445 (m32r_linux_collect_gregset): New function.
2446 (m32r_linux_gregset): Add collect method.
2447
2448 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2449
2450 * hppa-linux-tdep.c (greg_map): Rename to...
2451 (hppa_linux_gregmap): ... this. Also convert to
2452 regcache_map_entry format.
2453 (hppa_linux_supply_regset): Delete function.
2454 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2455 (hppa_linux_fpregmap): ... this new register map.
2456 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2457 register map, replace supply method by regcache_supply_regset, and
2458 add collect method regcache_collect_regset.
2459
2460 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2461
2462 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2463 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2464 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2465 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2466 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2467 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2468 (frv_linux_supply_gregset): Replace main logic by call to
2469 regcache_supply_regset, but keep clearing gr32-gr63.
2470 (frv_linux_supply_fpregset): Delete function.
2471 (frv_linux_gregset): Refer to appropriate register map and add
2472 regcache_collect_regset as the collect method.
2473 (frv_linux_fpregset): Likewise. Also exchange the supply method
2474 by regcache_supply_regset.
2475
2476 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2477
2478 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2479 by call to alpha_supply_int_regs.
2480 (alpha_linux_collect_gregset): New function.
2481 (alpha_linux_supply_fpregset): Replace logic by call to
2482 alpha_supply_fp_regs.
2483 (alpha_linux_collect_fpregset): New function.
2484 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2485
2486 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2487
2488 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2489 by call to regcache_collect_regset.
2490 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2491 instead of aarch64_linux_supply_gregset/_fpregset.
2492 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2493 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2494 header file instead.
2495 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2496 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2497 functions. Move logic to ...
2498 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2499 register maps.
2500 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2501 refer to new register maps, replace *_regset_from_core by
2502 regcache_supply_regset, and also use regcache_collect_regset.
2503 * aarch64-linux-tdep.h: Include "regset.h".
2504 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2505 Delete prototypes.
2506 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2507 macros, moved from C source file.
2508 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2509 variable declarations.
2510
2511 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2512
2513 * s390-linux-nat.c: Include "regset.h".
2514 (regmap_gregset): Delete macro.
2515 (s390_64_regmap_gregset): New register map for
2516 regcache_supply/_collect_regset.
2517 (s390_64_gregset): New regset.
2518 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2519 (regmap_fpregset): Delete macro.
2520 (s390_native_supply, s390_native_collect): Delete functions.
2521 (supply_gregset, fill_gregset): Replace s390-specific regmap
2522 handling by a call to regcache_supply/_collect_regset.
2523 (supply_fpregset, fill_fpregset): Call regcache_supply/
2524 _collect_regset instead of s390_native_supply/_collect.
2525 (fetch_regset, store_regset): Likewise. Also change the last
2526 parameter to a regset instead of a regmap.
2527 (s390_linux_fetch_inferior_registers)
2528 (390_linux_store_inferior_registers): Adjust last parameter in
2529 calls to fetch_regset and store_regset.
2530 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2531 (s390_gregmap): ... this. Also make static const and convert to
2532 regcache_map_entry format.
2533 (s390x_regmap_gregset): Delete.
2534 (s390_regmap_fpregset): Rename to...
2535 (s390_fpregmap): ... this. Make static const and convert to
2536 regcache_map_entry format.
2537 (s390_regmap_upper, s390_regmap_last_break)
2538 (s390x_regmap_last_break, s390_regmap_system_call)
2539 (s390_regmap_tdb): Likewise.
2540 (s390_supply_regset, s390_collect_regset): Remove functions.
2541 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2542 s390_supply_regset.
2543 (s390_gregset, s390_fpregset, s390_upper_regset)
2544 (s390_last_break_regset, s390x_last_break_regset)
2545 (s390_system_call_regset, s390_tdb_regset): Make global and
2546 replace s390_supply/_collect_regset by regcache_supply/
2547 _collect_regset.
2548 (s390x_gregset): Delete.
2549 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2550 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2551 (s390_regmap_fpregset, s390_regmap_last_break)
2552 (s390x_regmap_last_break, s390_regmap_system_call)
2553 (s390_regmap_tdb): Delete global variable declarations.
2554 (s390_gregset, s390_fpregset, s390_last_break_regset)
2555 (s390x_last_break_regset, s390_system_call_regset)
2556 (s390_tdb_regset): New global variable declarations.
2557
2558 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2559
2560 * regcache.c: Include "regset.h".
2561 (regcache_transfer_regset): New local function.
2562 (regcache_supply_regset, regcache_collect_regset): New functions.
2563 * regcache.h (struct regcache_map_entry): New structure.
2564 (REGCACHE_MAP_SKIP): New enum value.
2565 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2566
2567 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2568
2569 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2570 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2571 (ppc_linux_collect_gregset ): Likewise.
2572 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2573 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2574 (ppc_collect_vrregset): Likewise.
2575 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2576 Likewise.
2577
2578 2014-08-07 Yao Qi <yao@codesourcery.com>
2579
2580 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2581 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2582 * remote.c (remote_read_bytes): Likewise.
2583
2584 2014-08-07 Yao Qi <yao@codesourcery.com>
2585
2586 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2587
2588 2014-08-07 Yao Qi <yao@codesourcery.com>
2589
2590 PR remote/17230
2591 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2592 TARGET_XFER_OK instead of 0.
2593
2594 2014-08-07 Gary Benson <gbenson@redhat.com>
2595
2596 * common/common-defs.h: Include errno.h.
2597 * defs.h: Do not include errno.h.
2598 * ada-typeprint.c: Likewise.
2599 * c-typeprint.c: Likewise.
2600 * core-regset.c: Likewise.
2601 * corefile.c: Likewise.
2602 * corelow.c: Likewise.
2603 * event-loop.c: Likewise.
2604 * f-typeprint.c: Likewise.
2605 * gnu-nat.c: Likewise.
2606 * go32-nat.c: Likewise.
2607 * i386gnu-nat.c: Likewise.
2608 * m2-typeprint.c: Likewise.
2609 * nat/linux-btrace.c: Likewise.
2610 * p-typeprint.c: Likewise.
2611 * procfs.c: Likewise.
2612 * remote-sim.c: Likewise.
2613 * rs6000-nat.c: Likewise.
2614 * target.c: Likewise.
2615 * typeprint.c: Likewise.
2616 * ui-file.c: Likewise.
2617 * valops.c: Likewise.
2618 * valprint.c: Likewise.
2619
2620 2014-08-07 Gary Benson <gbenson@redhat.com>
2621
2622 * common/common-defs.h: Include string.h.
2623 * aarch64-tdep.c: Do not include string.h.
2624 * ada-exp.y: Likewise.
2625 * ada-lang.c: Likewise.
2626 * ada-lex.l: Likewise.
2627 * ada-typeprint.c: Likewise.
2628 * ada-valprint.c: Likewise.
2629 * aix-thread.c: Likewise.
2630 * alpha-linux-tdep.c: Likewise.
2631 * alpha-mdebug-tdep.c: Likewise.
2632 * alpha-nat.c: Likewise.
2633 * alpha-osf1-tdep.c: Likewise.
2634 * alpha-tdep.c: Likewise.
2635 * alphanbsd-tdep.c: Likewise.
2636 * amd64-dicos-tdep.c: Likewise.
2637 * amd64-linux-tdep.c: Likewise.
2638 * amd64-nat.c: Likewise.
2639 * amd64-sol2-tdep.c: Likewise.
2640 * amd64fbsd-tdep.c: Likewise.
2641 * amd64obsd-tdep.c: Likewise.
2642 * arch-utils.c: Likewise.
2643 * arm-linux-nat.c: Likewise.
2644 * arm-linux-tdep.c: Likewise.
2645 * arm-tdep.c: Likewise.
2646 * arm-wince-tdep.c: Likewise.
2647 * armbsd-tdep.c: Likewise.
2648 * armnbsd-nat.c: Likewise.
2649 * armnbsd-tdep.c: Likewise.
2650 * armobsd-tdep.c: Likewise.
2651 * avr-tdep.c: Likewise.
2652 * ax-gdb.c: Likewise.
2653 * ax-general.c: Likewise.
2654 * bcache.c: Likewise.
2655 * bfin-tdep.c: Likewise.
2656 * breakpoint.c: Likewise.
2657 * build-id.c: Likewise.
2658 * buildsym.c: Likewise.
2659 * c-exp.y: Likewise.
2660 * c-lang.c: Likewise.
2661 * c-typeprint.c: Likewise.
2662 * c-valprint.c: Likewise.
2663 * charset.c: Likewise.
2664 * cli-out.c: Likewise.
2665 * cli/cli-cmds.c: Likewise.
2666 * cli/cli-decode.c: Likewise.
2667 * cli/cli-dump.c: Likewise.
2668 * cli/cli-interp.c: Likewise.
2669 * cli/cli-logging.c: Likewise.
2670 * cli/cli-script.c: Likewise.
2671 * cli/cli-setshow.c: Likewise.
2672 * cli/cli-utils.c: Likewise.
2673 * coffread.c: Likewise.
2674 * common/agent.c: Likewise.
2675 * common/buffer.c: Likewise.
2676 * common/buffer.h: Likewise.
2677 * common/common-utils.c: Likewise.
2678 * common/filestuff.c: Likewise.
2679 * common/filestuff.c: Likewise.
2680 * common/format.c: Likewise.
2681 * common/print-utils.c: Likewise.
2682 * common/rsp-low.c: Likewise.
2683 * common/signals.c: Likewise.
2684 * common/vec.h: Likewise.
2685 * common/xml-utils.c: Likewise.
2686 * core-regset.c: Likewise.
2687 * corefile.c: Likewise.
2688 * corelow.c: Likewise.
2689 * cp-abi.c: Likewise.
2690 * cp-name-parser.y: Likewise.
2691 * cp-support.c: Likewise.
2692 * cp-valprint.c: Likewise.
2693 * cris-tdep.c: Likewise.
2694 * d-exp.y: Likewise.
2695 * darwin-nat.c: Likewise.
2696 * dbxread.c: Likewise.
2697 * dcache.c: Likewise.
2698 * demangle.c: Likewise.
2699 * dicos-tdep.c: Likewise.
2700 * disasm.c: Likewise.
2701 * doublest.c: Likewise.
2702 * dsrec.c: Likewise.
2703 * dummy-frame.c: Likewise.
2704 * dwarf2-frame.c: Likewise.
2705 * dwarf2loc.c: Likewise.
2706 * dwarf2read.c: Likewise.
2707 * elfread.c: Likewise.
2708 * environ.c: Likewise.
2709 * eval.c: Likewise.
2710 * event-loop.c: Likewise.
2711 * exceptions.c: Likewise.
2712 * exec.c: Likewise.
2713 * expprint.c: Likewise.
2714 * f-exp.y: Likewise.
2715 * f-lang.c: Likewise.
2716 * f-typeprint.c: Likewise.
2717 * f-valprint.c: Likewise.
2718 * fbsd-nat.c: Likewise.
2719 * findcmd.c: Likewise.
2720 * findvar.c: Likewise.
2721 * fork-child.c: Likewise.
2722 * frame.c: Likewise.
2723 * frv-linux-tdep.c: Likewise.
2724 * frv-tdep.c: Likewise.
2725 * gdb.c: Likewise.
2726 * gdb_bfd.c: Likewise.
2727 * gdbarch.c: Likewise.
2728 * gdbarch.sh: Likewise.
2729 * gdbtypes.c: Likewise.
2730 * gnu-nat.c: Likewise.
2731 * gnu-v2-abi.c: Likewise.
2732 * gnu-v3-abi.c: Likewise.
2733 * go-exp.y: Likewise.
2734 * go-lang.c: Likewise.
2735 * go32-nat.c: Likewise.
2736 * guile/guile.c: Likewise.
2737 * guile/scm-auto-load.c: Likewise.
2738 * hppa-hpux-tdep.c: Likewise.
2739 * hppa-linux-nat.c: Likewise.
2740 * hppanbsd-tdep.c: Likewise.
2741 * hppaobsd-tdep.c: Likewise.
2742 * i386-cygwin-tdep.c: Likewise.
2743 * i386-dicos-tdep.c: Likewise.
2744 * i386-linux-tdep.c: Likewise.
2745 * i386-nto-tdep.c: Likewise.
2746 * i386-sol2-tdep.c: Likewise.
2747 * i386-tdep.c: Likewise.
2748 * i386bsd-tdep.c: Likewise.
2749 * i386gnu-nat.c: Likewise.
2750 * i386nbsd-tdep.c: Likewise.
2751 * i386obsd-tdep.c: Likewise.
2752 * i387-tdep.c: Likewise.
2753 * ia64-libunwind-tdep.c: Likewise.
2754 * ia64-linux-nat.c: Likewise.
2755 * inf-child.c: Likewise.
2756 * inf-ptrace.c: Likewise.
2757 * inf-ttrace.c: Likewise.
2758 * infcall.c: Likewise.
2759 * infcmd.c: Likewise.
2760 * inflow.c: Likewise.
2761 * infrun.c: Likewise.
2762 * interps.c: Likewise.
2763 * iq2000-tdep.c: Likewise.
2764 * irix5-nat.c: Likewise.
2765 * jv-exp.y: Likewise.
2766 * jv-lang.c: Likewise.
2767 * jv-typeprint.c: Likewise.
2768 * jv-valprint.c: Likewise.
2769 * language.c: Likewise.
2770 * linux-fork.c: Likewise.
2771 * linux-nat.c: Likewise.
2772 * lm32-tdep.c: Likewise.
2773 * m2-exp.y: Likewise.
2774 * m2-typeprint.c: Likewise.
2775 * m32c-tdep.c: Likewise.
2776 * m32r-linux-nat.c: Likewise.
2777 * m32r-linux-tdep.c: Likewise.
2778 * m32r-rom.c: Likewise.
2779 * m32r-tdep.c: Likewise.
2780 * m68hc11-tdep.c: Likewise.
2781 * m68k-tdep.c: Likewise.
2782 * m68kbsd-tdep.c: Likewise.
2783 * m68klinux-nat.c: Likewise.
2784 * m68klinux-tdep.c: Likewise.
2785 * m88k-tdep.c: Likewise.
2786 * machoread.c: Likewise.
2787 * macrocmd.c: Likewise.
2788 * main.c: Likewise.
2789 * mdebugread.c: Likewise.
2790 * mem-break.c: Likewise.
2791 * memattr.c: Likewise.
2792 * memory-map.c: Likewise.
2793 * mep-tdep.c: Likewise.
2794 * mi/mi-cmd-break.c: Likewise.
2795 * mi/mi-cmd-disas.c: Likewise.
2796 * mi/mi-cmd-env.c: Likewise.
2797 * mi/mi-cmd-stack.c: Likewise.
2798 * mi/mi-cmd-var.c: Likewise.
2799 * mi/mi-cmds.c: Likewise.
2800 * mi/mi-console.c: Likewise.
2801 * mi/mi-getopt.c: Likewise.
2802 * mi/mi-interp.c: Likewise.
2803 * mi/mi-main.c: Likewise.
2804 * mi/mi-parse.c: Likewise.
2805 * microblaze-rom.c: Likewise.
2806 * microblaze-tdep.c: Likewise.
2807 * mingw-hdep.c: Likewise.
2808 * minidebug.c: Likewise.
2809 * minsyms.c: Likewise.
2810 * mips-irix-tdep.c: Likewise.
2811 * mips-linux-tdep.c: Likewise.
2812 * mips-tdep.c: Likewise.
2813 * mips64obsd-tdep.c: Likewise.
2814 * mipsnbsd-tdep.c: Likewise.
2815 * mipsread.c: Likewise.
2816 * mn10300-linux-tdep.c: Likewise.
2817 * mn10300-tdep.c: Likewise.
2818 * monitor.c: Likewise.
2819 * moxie-tdep.c: Likewise.
2820 * mt-tdep.c: Likewise.
2821 * nat/linux-btrace.c: Likewise.
2822 * nat/linux-osdata.c: Likewise.
2823 * nat/linux-procfs.c: Likewise.
2824 * nat/linux-ptrace.c: Likewise.
2825 * nat/linux-waitpid.c: Likewise.
2826 * nbsd-tdep.c: Likewise.
2827 * nios2-linux-tdep.c: Likewise.
2828 * nto-procfs.c: Likewise.
2829 * nto-tdep.c: Likewise.
2830 * objc-lang.c: Likewise.
2831 * objfiles.c: Likewise.
2832 * opencl-lang.c: Likewise.
2833 * osabi.c: Likewise.
2834 * osdata.c: Likewise.
2835 * p-exp.y: Likewise.
2836 * p-lang.c: Likewise.
2837 * p-typeprint.c: Likewise.
2838 * parse.c: Likewise.
2839 * posix-hdep.c: Likewise.
2840 * ppc-linux-nat.c: Likewise.
2841 * ppc-sysv-tdep.c: Likewise.
2842 * ppcfbsd-tdep.c: Likewise.
2843 * ppcnbsd-tdep.c: Likewise.
2844 * ppcobsd-tdep.c: Likewise.
2845 * printcmd.c: Likewise.
2846 * procfs.c: Likewise.
2847 * prologue-value.c: Likewise.
2848 * python/py-auto-load.c: Likewise.
2849 * python/py-gdb-readline.c: Likewise.
2850 * ravenscar-thread.c: Likewise.
2851 * regcache.c: Likewise.
2852 * registry.c: Likewise.
2853 * remote-fileio.c: Likewise.
2854 * remote-m32r-sdi.c: Likewise.
2855 * remote-mips.c: Likewise.
2856 * remote-notif.c: Likewise.
2857 * remote-sim.c: Likewise.
2858 * remote.c: Likewise.
2859 * reverse.c: Likewise.
2860 * rs6000-aix-tdep.c: Likewise.
2861 * ser-base.c: Likewise.
2862 * ser-go32.c: Likewise.
2863 * ser-mingw.c: Likewise.
2864 * ser-pipe.c: Likewise.
2865 * ser-tcp.c: Likewise.
2866 * ser-unix.c: Likewise.
2867 * serial.c: Likewise.
2868 * sh-tdep.c: Likewise.
2869 * sh64-tdep.c: Likewise.
2870 * shnbsd-tdep.c: Likewise.
2871 * skip.c: Likewise.
2872 * sol-thread.c: Likewise.
2873 * solib-dsbt.c: Likewise.
2874 * solib-frv.c: Likewise.
2875 * solib-osf.c: Likewise.
2876 * solib-som.c: Likewise.
2877 * solib-spu.c: Likewise.
2878 * solib-target.c: Likewise.
2879 * solib.c: Likewise.
2880 * somread.c: Likewise.
2881 * source.c: Likewise.
2882 * sparc-nat.c: Likewise.
2883 * sparc-sol2-tdep.c: Likewise.
2884 * sparc-tdep.c: Likewise.
2885 * sparc64-tdep.c: Likewise.
2886 * sparc64fbsd-tdep.c: Likewise.
2887 * sparc64nbsd-tdep.c: Likewise.
2888 * sparcnbsd-tdep.c: Likewise.
2889 * spu-linux-nat.c: Likewise.
2890 * spu-multiarch.c: Likewise.
2891 * spu-tdep.c: Likewise.
2892 * stabsread.c: Likewise.
2893 * stack.c: Likewise.
2894 * std-regs.c: Likewise.
2895 * symfile.c: Likewise.
2896 * symmisc.c: Likewise.
2897 * symtab.c: Likewise.
2898 * target.c: Likewise.
2899 * thread.c: Likewise.
2900 * tilegx-linux-nat.c: Likewise.
2901 * tilegx-tdep.c: Likewise.
2902 * top.c: Likewise.
2903 * tracepoint.c: Likewise.
2904 * tui/tui-command.c: Likewise.
2905 * tui/tui-data.c: Likewise.
2906 * tui/tui-disasm.c: Likewise.
2907 * tui/tui-file.c: Likewise.
2908 * tui/tui-layout.c: Likewise.
2909 * tui/tui-out.c: Likewise.
2910 * tui/tui-regs.c: Likewise.
2911 * tui/tui-source.c: Likewise.
2912 * tui/tui-stack.c: Likewise.
2913 * tui/tui-win.c: Likewise.
2914 * tui/tui-windata.c: Likewise.
2915 * tui/tui-winsource.c: Likewise.
2916 * typeprint.c: Likewise.
2917 * ui-file.c: Likewise.
2918 * ui-out.c: Likewise.
2919 * user-regs.c: Likewise.
2920 * utils.c: Likewise.
2921 * v850-tdep.c: Likewise.
2922 * valarith.c: Likewise.
2923 * valops.c: Likewise.
2924 * valprint.c: Likewise.
2925 * value.c: Likewise.
2926 * varobj.c: Likewise.
2927 * vax-tdep.c: Likewise.
2928 * vaxnbsd-tdep.c: Likewise.
2929 * vaxobsd-tdep.c: Likewise.
2930 * windows-nat.c: Likewise.
2931 * xcoffread.c: Likewise.
2932 * xml-support.c: Likewise.
2933 * xstormy16-tdep.c: Likewise.
2934 * xtensa-linux-nat.c: Likewise.
2935
2936 2014-08-07 Gary Benson <gbenson@redhat.com>
2937
2938 * common/common-defs.h: Include gdb_assert.h.
2939 * aarch64-tdep.c: Do not include gdb_assert.h.
2940 * addrmap.c: Likewise.
2941 * aix-thread.c: Likewise.
2942 * alpha-linux-tdep.c: Likewise.
2943 * alpha-mdebug-tdep.c: Likewise.
2944 * alphanbsd-tdep.c: Likewise.
2945 * amd64-nat.c: Likewise.
2946 * amd64-tdep.c: Likewise.
2947 * amd64bsd-nat.c: Likewise.
2948 * amd64fbsd-nat.c: Likewise.
2949 * amd64fbsd-tdep.c: Likewise.
2950 * amd64nbsd-nat.c: Likewise.
2951 * amd64nbsd-tdep.c: Likewise.
2952 * amd64obsd-nat.c: Likewise.
2953 * amd64obsd-tdep.c: Likewise.
2954 * arch-utils.c: Likewise.
2955 * arm-tdep.c: Likewise.
2956 * armbsd-tdep.c: Likewise.
2957 * auxv.c: Likewise.
2958 * bcache.c: Likewise.
2959 * bfin-tdep.c: Likewise.
2960 * blockframe.c: Likewise.
2961 * breakpoint.c: Likewise.
2962 * bsd-kvm.c: Likewise.
2963 * bsd-uthread.c: Likewise.
2964 * buildsym.c: Likewise.
2965 * c-exp.y: Likewise.
2966 * c-lang.c: Likewise.
2967 * charset.c: Likewise.
2968 * cleanups.c: Likewise.
2969 * cli-out.c: Likewise.
2970 * cli/cli-decode.c: Likewise.
2971 * cli/cli-dump.c: Likewise.
2972 * cli/cli-logging.c: Likewise.
2973 * cli/cli-script.c: Likewise.
2974 * cli/cli-utils.c: Likewise.
2975 * coffread.c: Likewise.
2976 * common/common-utils.c: Likewise.
2977 * common/queue.h: Likewise.
2978 * common/signals.c: Likewise.
2979 * common/vec.h: Likewise.
2980 * complaints.c: Likewise.
2981 * completer.c: Likewise.
2982 * corelow.c: Likewise.
2983 * cp-abi.c: Likewise.
2984 * cp-name-parser.y: Likewise.
2985 * cp-namespace.c: Likewise.
2986 * cp-support.c: Likewise.
2987 * cris-tdep.c: Likewise.
2988 * dbxread.c: Likewise.
2989 * dictionary.c: Likewise.
2990 * doublest.c: Likewise.
2991 * dsrec.c: Likewise.
2992 * dummy-frame.c: Likewise.
2993 * dwarf2-frame-tailcall.c: Likewise.
2994 * dwarf2-frame.c: Likewise.
2995 * dwarf2expr.c: Likewise.
2996 * dwarf2loc.c: Likewise.
2997 * dwarf2read.c: Likewise.
2998 * eval.c: Likewise.
2999 * event-loop.c: Likewise.
3000 * exceptions.c: Likewise.
3001 * expprint.c: Likewise.
3002 * f-valprint.c: Likewise.
3003 * fbsd-nat.c: Likewise.
3004 * findvar.c: Likewise.
3005 * frame-unwind.c: Likewise.
3006 * frame.c: Likewise.
3007 * frv-tdep.c: Likewise.
3008 * gcore.c: Likewise.
3009 * gdb-dlfcn.c: Likewise.
3010 * gdb_bfd.c: Likewise.
3011 * gdbarch.c: Likewise.
3012 * gdbarch.sh: Likewise.
3013 * gdbtypes.c: Likewise.
3014 * gnu-nat.c: Likewise.
3015 * gnu-v3-abi.c: Likewise.
3016 * go-lang.c: Likewise.
3017 * guile/scm-exception.c: Likewise.
3018 * guile/scm-gsmob.c: Likewise.
3019 * guile/scm-lazy-string.c: Likewise.
3020 * guile/scm-math.c: Likewise.
3021 * guile/scm-pretty-print.c: Likewise.
3022 * guile/scm-safe-call.c: Likewise.
3023 * guile/scm-utils.c: Likewise.
3024 * guile/scm-value.c: Likewise.
3025 * h8300-tdep.c: Likewise.
3026 * hppa-hpux-nat.c: Likewise.
3027 * hppa-tdep.c: Likewise.
3028 * hppanbsd-tdep.c: Likewise.
3029 * hppaobsd-tdep.c: Likewise.
3030 * i386-darwin-nat.c: Likewise.
3031 * i386-darwin-tdep.c: Likewise.
3032 * i386-nto-tdep.c: Likewise.
3033 * i386-tdep.c: Likewise.
3034 * i386bsd-nat.c: Likewise.
3035 * i386fbsd-tdep.c: Likewise.
3036 * i386gnu-nat.c: Likewise.
3037 * i386nbsd-tdep.c: Likewise.
3038 * i386obsd-tdep.c: Likewise.
3039 * i387-tdep.c: Likewise.
3040 * ia64-libunwind-tdep.c: Likewise.
3041 * ia64-tdep.c: Likewise.
3042 * inf-ptrace.c: Likewise.
3043 * inf-ttrace.c: Likewise.
3044 * infcall.c: Likewise.
3045 * infcmd.c: Likewise.
3046 * infrun.c: Likewise.
3047 * inline-frame.c: Likewise.
3048 * interps.c: Likewise.
3049 * jv-lang.c: Likewise.
3050 * jv-typeprint.c: Likewise.
3051 * linux-fork.c: Likewise.
3052 * linux-nat.c: Likewise.
3053 * linux-thread-db.c: Likewise.
3054 * m32c-tdep.c: Likewise.
3055 * m32r-linux-nat.c: Likewise.
3056 * m32r-tdep.c: Likewise.
3057 * m68k-tdep.c: Likewise.
3058 * m68kbsd-nat.c: Likewise.
3059 * m68kbsd-tdep.c: Likewise.
3060 * m88k-tdep.c: Likewise.
3061 * machoread.c: Likewise.
3062 * macroexp.c: Likewise.
3063 * macrotab.c: Likewise.
3064 * maint.c: Likewise.
3065 * mdebugread.c: Likewise.
3066 * memory-map.c: Likewise.
3067 * mep-tdep.c: Likewise.
3068 * mi/mi-common.c: Likewise.
3069 * microblaze-tdep.c: Likewise.
3070 * mingw-hdep.c: Likewise.
3071 * mips-linux-nat.c: Likewise.
3072 * mips-linux-tdep.c: Likewise.
3073 * mips-tdep.c: Likewise.
3074 * mips64obsd-tdep.c: Likewise.
3075 * mipsnbsd-tdep.c: Likewise.
3076 * mn10300-linux-tdep.c: Likewise.
3077 * mn10300-tdep.c: Likewise.
3078 * moxie-tdep.c: Likewise.
3079 * mt-tdep.c: Likewise.
3080 * nat/linux-btrace.c: Likewise.
3081 * nat/linux-osdata.c: Likewise.
3082 * nat/linux-ptrace.c: Likewise.
3083 * nat/mips-linux-watch.c: Likewise.
3084 * nios2-linux-tdep.c: Likewise.
3085 * nios2-tdep.c: Likewise.
3086 * objc-lang.c: Likewise.
3087 * objfiles.c: Likewise.
3088 * obsd-nat.c: Likewise.
3089 * opencl-lang.c: Likewise.
3090 * osabi.c: Likewise.
3091 * parse.c: Likewise.
3092 * ppc-linux-nat.c: Likewise.
3093 * ppc-sysv-tdep.c: Likewise.
3094 * ppcfbsd-nat.c: Likewise.
3095 * ppcfbsd-tdep.c: Likewise.
3096 * ppcnbsd-nat.c: Likewise.
3097 * ppcnbsd-tdep.c: Likewise.
3098 * ppcobsd-nat.c: Likewise.
3099 * ppcobsd-tdep.c: Likewise.
3100 * printcmd.c: Likewise.
3101 * procfs.c: Likewise.
3102 * prologue-value.c: Likewise.
3103 * psymtab.c: Likewise.
3104 * python/py-lazy-string.c: Likewise.
3105 * python/py-value.c: Likewise.
3106 * regcache.c: Likewise.
3107 * reggroups.c: Likewise.
3108 * registry.c: Likewise.
3109 * remote-sim.c: Likewise.
3110 * remote.c: Likewise.
3111 * rs6000-aix-tdep.c: Likewise.
3112 * rs6000-tdep.c: Likewise.
3113 * s390-linux-tdep.c: Likewise.
3114 * score-tdep.c: Likewise.
3115 * ser-base.c: Likewise.
3116 * ser-mingw.c: Likewise.
3117 * sh-tdep.c: Likewise.
3118 * sh64-tdep.c: Likewise.
3119 * solib-darwin.c: Likewise.
3120 * solib-spu.c: Likewise.
3121 * solib-svr4.c: Likewise.
3122 * source.c: Likewise.
3123 * sparc-nat.c: Likewise.
3124 * sparc-sol2-tdep.c: Likewise.
3125 * sparc-tdep.c: Likewise.
3126 * sparc64-sol2-tdep.c: Likewise.
3127 * sparc64-tdep.c: Likewise.
3128 * sparc64fbsd-tdep.c: Likewise.
3129 * sparc64nbsd-tdep.c: Likewise.
3130 * sparc64obsd-tdep.c: Likewise.
3131 * sparcnbsd-tdep.c: Likewise.
3132 * sparcobsd-tdep.c: Likewise.
3133 * spu-multiarch.c: Likewise.
3134 * spu-tdep.c: Likewise.
3135 * stabsread.c: Likewise.
3136 * stack.c: Likewise.
3137 * symfile.c: Likewise.
3138 * symtab.c: Likewise.
3139 * target-descriptions.c: Likewise.
3140 * target-memory.c: Likewise.
3141 * target.c: Likewise.
3142 * tic6x-linux-tdep.c: Likewise.
3143 * tic6x-tdep.c: Likewise.
3144 * tilegx-linux-nat.c: Likewise.
3145 * tilegx-tdep.c: Likewise.
3146 * top.c: Likewise.
3147 * tramp-frame.c: Likewise.
3148 * tui/tui-out.c: Likewise.
3149 * tui/tui-winsource.c: Likewise.
3150 * ui-out.c: Likewise.
3151 * user-regs.c: Likewise.
3152 * utils.c: Likewise.
3153 * v850-tdep.c: Likewise.
3154 * valops.c: Likewise.
3155 * value.c: Likewise.
3156 * varobj.c: Likewise.
3157 * vax-nat.c: Likewise.
3158 * xml-syscall.c: Likewise.
3159 * xml-tdesc.c: Likewise.
3160 * xstormy16-tdep.c: Likewise.
3161 * xtensa-linux-nat.c: Likewise.
3162 * xtensa-tdep.c: Likewise.
3163
3164 2014-08-07 Gary Benson <gbenson@redhat.com>
3165
3166 * common/common-defs.h: Include common-utils.h.
3167 * defs.h: Do not include common-utils.h.
3168 * common/gdb_assert.h: Likewise.
3169 * darwin-nat.h: Likewise.
3170 * nat/linux-btrace.c: Likewise.
3171 * target/waitstatus.h: Likewise.
3172
3173 2014-08-07 Gary Benson <gbenson@redhat.com>
3174
3175 * common/common-defs.h: Include ptid.h.
3176 * defs.h: Do not include ptid.h.
3177 * inferior.h: Likewise.
3178 * infrun.h: Likewise.
3179 * nat/linux-btrace.h: Likewise.
3180 * nat/linux-osdata.h: Likewise.
3181 * target/waitstatus.h: Likewise.
3182
3183 2014-08-07 Gary Benson <gbenson@redhat.com>
3184
3185 * common/common-defs.h: Include gdb_locale.h.
3186 * defs.h: Do not include gdb_locale.h.
3187
3188 2014-08-07 Gary Benson <gbenson@redhat.com>
3189
3190 * common/common-defs.h: Include gdb/signals.h.
3191 * defs.h: Do not include gdb/signals.h.
3192
3193 2014-08-07 Gary Benson <gbenson@redhat.com>
3194
3195 * common/common-defs.h: Include pathmax.h.
3196 * defs.h: Do not include pathmax.h.
3197
3198 2014-08-07 Gary Benson <gbenson@redhat.com>
3199
3200 * common/common-defs.h: Include libiberty.h.
3201 * defs.h: Do not include libiberty.h.
3202 * common/queue.h: Likewise.
3203 * cp-name-parser.y: Likewise.
3204 * mi/mi-cmd-catch.c: Likewise.
3205 * python/python.c: Likewise.
3206
3207 2014-08-07 Gary Benson <gbenson@redhat.com>
3208
3209 * common/common-defs.h: Include ansidecl.h.
3210 * defs.h: Do not include ansidecl.h.
3211 * common/buffer.h: Likewise.
3212 * common/common-utils.h: Likewise.
3213
3214 2014-08-07 Gary Benson <gbenson@redhat.com>
3215
3216 * common/common-defs.h: Include stddef.h.
3217 * defs.h: Do not include stddef.h.
3218 * common/common-utils.h: Likewise.
3219 * amd64fbsd-nat.c: Likewise.
3220 * bcache.c: Likewise.
3221 * charset.c: Likewise.
3222 * common/buffer.h: Likewise.
3223 * common/vec.h: Likewise.
3224 * i386bsd-nat.c: Likewise.
3225 * nat/linux-btrace.h: Likewise.
3226 * ppcfbsd-nat.c: Likewise.
3227 * ppcnbsd-tdep.h: Likewise.
3228 * ppcobsd-nat.c: Likewise.
3229 * ppcobsd-tdep.h: Likewise.
3230 * python/py-gdb-readline.c: Likewise.
3231
3232 2014-08-07 Gary Benson <gbenson@redhat.com>
3233
3234 * common/common-defs.h: Include stdarg.h.
3235 * defs.h: Do not include stdarg.h.
3236 * ada-lang.c: Likewise.
3237 * common/common-utils.h: Likewise.
3238 * guile/scm-string.c: Likewise.
3239 * guile/scm-utils.c: Likewise.
3240 * m32c-tdep.c: Likewise.
3241
3242 2014-08-07 Gary Benson <gbenson@redhat.com>
3243
3244 * common/common-defs.h: Include stdlib.h.
3245 * defs.h: Do not include stdlib.h.
3246 * addrmap.c: Likewise.
3247 * bcache.c: Likewise.
3248 * common/buffer.c: Likewise.
3249 * common/common-utils.c: Likewise.
3250 * cp-name-parser.y: Likewise.
3251 * go32-nat.c: Likewise.
3252 * mn10300-linux-tdep.c: Likewise.
3253 * nat/linux-osdata.c: Likewise.
3254 * tui/tui.c: Likewise.
3255 * windows-nat.c: Likewise.
3256
3257 2014-08-07 Gary Benson <gbenson@redhat.com>
3258
3259 * common/common-defs.h: Include stdio.h.
3260 * defs.h: Do not include stdio.h.
3261 * ada-lang.c: Likewise.
3262 * common/buffer.c: Likewise.
3263 * common/common-utils.c: Likewise.
3264 * cp-name-parser.y: Likewise.
3265 * gnu-nat.c: Likewise.
3266 * go32-nat.c: Likewise.
3267 * i386gnu-nat.c: Likewise.
3268 * proc-api.c: Likewise.
3269 * proc-events.c: Likewise.
3270 * proc-flags.c: Likewise.
3271 * proc-why.c: Likewise.
3272 * python/python-internal.h: Likewise.
3273 * target-memory.c: Likewise.
3274 * tui/tui-io.c: Likewise.
3275 * tui/tui.c: Likewise.
3276
3277 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3278
3279 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3280 (scan_dyntag_auxv): Same.
3281
3282 2014-08-06 Yao Qi <yao@codesourcery.com>
3283
3284 * amd64-linux-nat.c: Remove duplicated include
3285 "x86-linux-nat.h".
3286 * i386-linux-nat.c: Likewise.
3287
3288 2014-08-06 Yao Qi <yao@codesourcery.com>
3289
3290 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3291 operand" with "Special opcode" in comments.
3292
3293 2014-08-05 Gary Benson <gbenson@redhat.com>
3294
3295 * interps.c (initialize_interps): Remove prototype.
3296 (interpreter_initialized): Remove static global.
3297 (interp_add): Do not call initialize_interps.
3298 (initialize_interps): Remove function.
3299
3300 2014-08-05 Gary Benson <gbenson@redhat.com>
3301
3302 * utils.c (vwarning): Remove spurious va_end.
3303
3304 2014-08-05 Alan Modra <amodra@gmail.com>
3305
3306 * charset.c (convert_between_encodings): Cast result of obstack_base.
3307 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3308 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3309 (read_unwind_info): Use size_t for some locals.
3310 * jit.c (finalize_symtab): Likewise.
3311 * utils.c (hashtab_obstack_allocate): Likewise.
3312 * symmisc.c (print_objfile_statistics): Update format strings.
3313
3314 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3317 (Changes in GDB 7.8): ... here.
3318
3319 2014-08-04 Tom Tromey <tromey@redhat.com>
3320
3321 * target.c (set_targetdebug): New function.
3322 (initialize_targets): Pass set_targetdebug when creating "set
3323 debug target".
3324
3325 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3326
3327 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3328 if detecting a variable-sized field that is not the last field.
3329 Fix struct type length computation.
3330
3331 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3332
3333 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3334 Add debug trace.
3335
3336 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3337
3338 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3339 Remove "+ 8" offset in computation of CHAIN_VMA.
3340
3341 2014-07-31 Doug Evans <dje@google.com>
3342
3343 * inflow.c (child_terminal_inferior): Add comment.
3344 (child_terminal_ours_for_output): Add comment.
3345 (child_terminal_ours): Add comment.
3346 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3347 (linux_nat_terminal_ours): Add comment.
3348
3349 2014-07-31 Gary Benson <gbenson@redhat.com>
3350
3351 * common/btrace-common.h: Do not include defs.h or server.h.
3352 * nat/mips-linux-watch.h: Likewise.
3353 * gdb-dlfcn.h: Do not include defs.h.
3354 * tracefile.h: Likewise.
3355
3356 2014-07-30 Roland McGrath <mcgrathr@google.com>
3357
3358 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3359
3360 2014-07-30 Tom Tromey <tromey@redhat.com>
3361
3362 * bsd-kvm.c (bsd_kvm_open): Constify.
3363 * corelow.c (core_open): Constify.
3364 * ctf.c (ctf_open): Constify.
3365 * dbug-rom.c (dbug_open): Constify.
3366 * exec.c (exec_open): Constify.
3367 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3368 * microblaze-rom.c (picobug_open): Constify.
3369 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3370 Constify.
3371 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3372 * record-btrace.c (record_btrace_open): Constify.
3373 * record-full.c (record_full_core_open_1, record_full_open_1)
3374 (record_full_open): Constify.
3375 * remote-m32r-sdi.c (m32r_open): Constify.
3376 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3377 (rockhopper_open, lsi_open): Constify.
3378 * remote-sim.c (gdbsim_open): Constify.
3379 * remote.c (remote_open, extended_remote_open, remote_open_1):
3380 Constify.
3381 * target.h (struct target_ops) <to_open>: Make "arg" const.
3382 * tracefile-tfile.c (tfile_open): Constify.
3383
3384 2014-07-30 Tom Tromey <tromey@redhat.com>
3385
3386 * breakpoint.c (map_breakpoint_numbers): Update.
3387 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3388 (get_number_const): New function.
3389 (get_number): Rewrite using get_number_const.
3390 (init_number_or_range): Make "string" const.
3391 (number_is_in_list): Make "list" const.
3392 * cli/cli-utils.h (get_number_const): Declare.
3393 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3394 (init_number_or_range, number_is_in_list): Update.
3395 * printcmd.c (map_display_numbers): Update.
3396 * value.c (value_from_history_ref): Constify.
3397 * value.h (value_from_history_ref): Update.
3398
3399 2014-07-30 Tom Tromey <tromey@redhat.com>
3400
3401 * corefile.c (hook_type, call_extra_exec_file_hooks)
3402 (specify_exec_file_hook): Constify.
3403 * exec.c (exec_file_attach): Make "filename" const.
3404 * gdbcore.h (deprecated_exec_file_display_hook)
3405 (specify_exec_file_hook, exec_file_attach): Constify.
3406 * main.c (captured_main): Use catch_command_errors_const.
3407
3408 2014-07-30 Tom Tromey <tromey@redhat.com>
3409
3410 * target.c (open_target): New function.
3411 (add_target_with_completer, add_deprecated_target_alias): Use
3412 set_cmd_sfunc, set_cmd_context.
3413 (debug_to_open): Remove.
3414 (setup_target_debug): Update.
3415
3416 2014-07-30 Yao Qi <yao@codesourcery.com>
3417
3418 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3419 comments.
3420 * parse.c (exp_iterate): Update comments.
3421
3422 2014-07-30 Gary Benson <gbenson@redhat.com>
3423
3424 * common/common-defs.h: New file.
3425 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3426 * defs.h: Include common-defs.h.
3427 Do not include config.h or build-gnulib/config.h.
3428
3429 2014-07-30 Gary Benson <gbenson@redhat.com>
3430
3431 * common/common-utils.h: Do not include config.h.
3432 * nat/linux-btrace.h: Likewise.
3433
3434 2014-07-30 Gary Benson <gbenson@redhat.com>
3435
3436 * btrace.c: Include defs.h.
3437 * common/ptid.c: Include defs.h or server.h as appropriate.
3438 * nat/mips-linux-watch.c: Likewise.
3439
3440 2014-07-29 Tom Tromey <tromey@redhat.com>
3441
3442 * target.c (target_is_pushed): Simplify.
3443
3444 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3445
3446 GDB 7.8 released.
3447
3448 2014-07-29 Yao Qi <yao@codesourcery.com>
3449
3450 PR gdb/17206
3451 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3452
3453 2014-07-28 Doug Evans <xdje42@gmail.com>
3454
3455 PR guile/17203
3456 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3457 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3458 parameters.
3459
3460 2014-07-28 Will Newton <will.newton@linaro.org>
3461
3462 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3463 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3464 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3465 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3466 (THUMB2_EABI_SYSCALL): Likewise.
3467 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3468 struct tramp_frame.
3469 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3470 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3471
3472 2014-07-27 Doug Evans <xdje42@gmail.com>
3473
3474 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3475
3476 2014-07-27 Doug Evans <xdje42@gmail.com>
3477
3478 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3479
3480 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3481 Doug Evans <xdje42@gmail.com>
3482
3483 PR guile/17146
3484 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3485 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3486 * configure.ac: Try to use guild to compile an scm file, if it fails
3487 then disable guile support.
3488 * configure: Regenerate.
3489 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3490 GUILE_FILE_LIST.
3491 (GUILE_COMPILED_FILES): New variable.
3492 (GUILE_FILES) Update.
3493 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3494 (stamp-guile): Compile scm files.
3495 * guile/guile.c (boot_guile_support): New function.
3496 (standard_throw_args_p): New function.
3497 (print_standard_throw_error, print_throw_error): New functions.
3498 (handle_boot_error): New function.
3499 (initialize_scheme_side): Rewrite to call boot_guile_support.
3500 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3501 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3502
3503 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3504 Doug Evans <xdje42@gmail.com>
3505
3506 PR guile/17146
3507 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3508 * guile/lib/gdb/support.scm: New file.
3509 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3510 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3511 All uses updated.
3512 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3513 All uses updated.
3514 (%assert-type): Ditto, and renamed to assert-type.
3515 (%exception-print-style): Delete.
3516
3517 2014-07-26 Doug Evans <xdje42@gmail.com>
3518
3519 PR build/17105
3520 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3521 * configure: Regenerate.
3522 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3523 PYTHON_FILES.
3524 (PYTHON_FILES): New variable.
3525 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3526 (GUILE_FILES): New variable.
3527 (stamp-python, install-python, uninstall-python): Handle empty
3528 file list.
3529 (stamp-guile, install-guile, uninstall-guile): Ditto.
3530
3531 2014-07-26 Doug Evans <xdje42@gmail.com>
3532
3533 PR guile/17177
3534 * guile/lib/gdb.scm (pretty-printers): Export.
3535 (set-pretty-printers!): Export.
3536 * guile/lib/gdb/printing.scm (gdb module): Update.
3537 (prepend-pretty-printer!, append-pretty-printer!): Update.
3538 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3539 (pretty_printer_list_var): Delete.
3540 (pretty_printer_list): New static global.
3541 (gdbscm_pretty_printers): New function.
3542 (gdbscm_set_pretty_printers_x): New function.
3543 (ppscm_find_pretty_printer_from_gdb): Update.
3544 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3545 (gdbscm_initialize_pretty_printers): Update.
3546
3547 2014-07-26 Doug Evans <xdje42@gmail.com>
3548
3549 PR 17185
3550 * configure.ac: Add check for header gc/gc.h.
3551 Add check for function setenv.
3552 * configure: Regenerate.
3553 * config.in: Regenerate.
3554 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3555
3556 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3557
3558 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3559 variation in gdbarch matching.
3560
3561 2014-07-25 Tom Tromey <tromey@redhat.com>
3562
3563 * exec.c (using_exec_ops): Remove.
3564 (exec_close_1): Update. Remove extraneous block, reindent.
3565 (add_target_sections): Use target_is_pushed.
3566
3567 2014-07-25 Pedro Alves <palves@redhat.com>
3568
3569 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3570 * monitor.c (monitor_create_inferior): Likewise.
3571 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3572 * remote-sim.c (gdbsim_create_inferior): Likewise.
3573 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3574 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3575 * windows-nat.c (do_initial_windows_stuff): Likewise.
3576
3577 2014-07-25 Pedro Alves <palves@redhat.com>
3578
3579 * NEWS: Mention signal passing and "signal" command changes.
3580 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3581 comment.
3582 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3583 call.
3584 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3585 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3586 (jump_command): Adjust clear_proceed_status call.
3587 (signal_command): Warn if other thread that are resumed have
3588 signals that will be delivered. Adjust clear_proceed_status call.
3589 (until_next_command, finish_command)
3590 (proceed_after_attach_callback, attach_command_post_wait)
3591 (attach_command): Adjust clear_proceed_status call.
3592 * infrun.c (proceed_after_vfork_done): Likewise.
3593 (proceed_after_attach_callback): Adjust comment.
3594 (clear_proceed_status_thread): Clear stop_signal if not in pass
3595 state.
3596 (clear_proceed_status_callback): Delete.
3597 (clear_proceed_status): New 'step' parameter. Only clear the
3598 proceed status of threads the command being prepared is about to
3599 resume.
3600 (proceed): If passed in an explicit signal, override stop_signal
3601 with it. Don't pass the last stop signal to the thread we're
3602 resuming.
3603 (init_wait_for_inferior): Adjust clear_proceed_status call.
3604 (switch_back_to_stepped_thread): Clear the signal if it should not
3605 be passed.
3606 * infrun.h (clear_proceed_status): New 'step' parameter.
3607 (user_visible_resume_ptid): Add comment.
3608 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3609 signal is in pass state.
3610 * remote.c (append_pending_thread_resumptions): Likewise.
3611 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3612
3613 2014-07-25 Tom Tromey <tromey@redhat.com>
3614
3615 * target.h (target_stopped_data_address)
3616 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3617 parentheses.
3618
3619 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3620
3621 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3622 comments.
3623 (avr_pointer_to_address): Likewise.
3624
3625 2014-07-24 Tom Tromey <tromey@redhat.com>
3626
3627 * monitor.c (compile_pattern): Update.
3628 * target.h (struct target_ops) <to_shortname, to_longname,
3629 to_doc>: Now const.
3630
3631 2014-07-24 Tom Tromey <tromey@redhat.com>
3632
3633 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3634 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3635 (add_info_alias, add_com): Make "doc" const.
3636 (print_doc_line): Make "str" const.
3637 (delete_cmd): Update.
3638 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3639 (print_doc_line): Update.
3640 * cli/cli-script.c (document_command): Update.
3641 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3642 (add_com, add_info, add_info_alias): Update.
3643 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3644 * python/py-cmd.c (cmdpy_destroyer): Update.
3645
3646 2014-07-24 Tom Tromey <tromey@redhat.com>
3647
3648 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3649 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3650 (help_cmd_list): Constify.
3651 (lookup_cmd): Update.
3652 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3653 const.
3654 (help_cmd_list, apropos_cmd): Update.
3655 * cli/cli-script.c (show_user): Update.
3656 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3657 * cli/cli-setshow.h (cmd_show_list): Update.
3658 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3659 (cmd_show_list): Update.
3660 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3661 * python/py-cmd.c (cmdpy_destroyer): Update.
3662
3663 2014-07-24 Tom Tromey <tromey@redhat.com>
3664
3665 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3666 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3667 const.
3668 * command.h (deprecate_cmd): Update.
3669 * maint.c (maintenance_do_deprecate): Add casts.
3670
3671 2014-07-24 Tom Tromey <tromey@redhat.com>
3672
3673 * cli/cli-decode.c (help_cmd): Make parameter "const".
3674 * cli/cli-decode.h (help_cmd): Update.
3675
3676 2014-07-24 Tom Tromey <tromey@redhat.com>
3677
3678 * stack.c (up_silently_base, down_silently_base): Make argument
3679 const.
3680
3681 2014-07-24 Tom Tromey <tromey@redhat.com>
3682
3683 * solib.c (solib_add): Make "pattern" const.
3684 * solib.h (solib_add): Update.
3685
3686 2014-07-24 Tom Tromey <tromey@redhat.com>
3687
3688 * remote.c (remote_serial_open, print_packet, putpkt)
3689 (putpkt_binary): Constify.
3690 * remote.h (putpkt): Update.
3691
3692 2014-07-24 Tom Tromey <tromey@redhat.com>
3693
3694 * monitor.c (monitor_open): Make "args" const.
3695 * monitor.h (monitor_open): Update.
3696
3697 2014-07-24 Tom Tromey <tromey@redhat.com>
3698
3699 * maint.c (match_bfd_flags): Make "string" const.
3700 (print_bfd_section_info): Remove casts.
3701 (print_objfile_section_info): Make "string" const.
3702
3703 2014-07-24 Tom Tromey <tromey@redhat.com>
3704
3705 * inf-child.c (inf_child_open_target): Make "arg" const.
3706 * inf-child.h (inf_child_open_target): Update.
3707
3708 2014-07-24 Tom Tromey <tromey@redhat.com>
3709
3710 * environ.c (unset_in_environ): Make "var" const.
3711 * environ.h (unset_in_environ): Update.
3712
3713 2014-07-24 Tom Tromey <tromey@redhat.com>
3714
3715 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3716 Make "cmd" const.
3717 (scan_filename_with_cleanup): Likewise.
3718 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3719 Make arguments const.
3720 (restore_command): Update.
3721
3722 2014-07-24 Pedro Alves <palves@redhat.com>
3723
3724 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3725
3726 2014-07-24 Tom Tromey <tromey@redhat.com>
3727 Gary Benson <gbenson@redhat.com>
3728
3729 * nat/linux-ptrace.c (additional_flags): New global.
3730 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3731 additional_flags; don't check GDBSERVER.
3732 (linux_ptrace_set_additional_flags): New function.
3733 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3734 Declare.
3735 * linux-nat.c (_initialize_linux_nat): Call
3736 linux_ptrace_set_additional_flags.
3737
3738 2014-07-24 Tom Tromey <tromey@redhat.com>
3739
3740 * make-target-delegates (munge_type, write_debugmethod): New
3741 functions.
3742 (debug_names): New global.
3743 ($TARGET_DEBUG_PRINTER): New global.
3744 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3745 name.
3746 Write debug methods. Generate init_debug_target.
3747 * target-debug.h: New file.
3748 * target-delegates.c: Rebuild.
3749 * target.c: Include target-debug.h.
3750 (debug_target): Hoist definition.
3751 (target_kill, target_get_section_table, target_memory_map)
3752 (target_flash_erase, target_flash_done, target_detach)
3753 (target_disconnect, target_wait, target_resume)
3754 (target_pass_signals, target_program_signals, target_follow_fork)
3755 (target_mourn_inferior, target_search_memory)
3756 (target_thread_address_space, target_close)
3757 (target_find_new_threads, target_core_of_thread)
3758 (target_verify_memory, target_insert_mask_watchpoint)
3759 (target_remove_mask_watchpoint): Remove targetdebug code.
3760 (debug_to_post_attach, debug_to_prepare_to_store)
3761 (debug_to_files_info, debug_to_insert_breakpoint)
3762 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3763 (debug_to_region_ok_for_hw_watchpoint)
3764 (debug_to_can_accel_watchpoint_condition)
3765 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3766 (debug_to_watchpoint_addr_within_range)
3767 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3768 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3769 (debug_to_terminal_init, debug_to_terminal_inferior)
3770 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3771 (debug_to_terminal_save_ours, debug_to_terminal_info)
3772 (debug_to_load, debug_to_post_startup_inferior)
3773 (debug_to_insert_fork_catchpoint)
3774 (debug_to_remove_fork_catchpoint)
3775 (debug_to_insert_vfork_catchpoint)
3776 (debug_to_remove_vfork_catchpoint)
3777 (debug_to_insert_exec_catchpoint)
3778 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3779 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3780 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3781 (setup_target_debug): Call init_debug_target.
3782 * target.h (TARGET_DEBUG_PRINTER): New macro.
3783 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3784 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3785
3786 2014-07-24 Gary Benson <gbenson@redhat.com>
3787
3788 * exceptions.h (throw_vfatal): Renamed to...
3789 (throw_vquit): New declaration.
3790 (throw_quit): Likewise.
3791 * exceptions.c (throw_vfatal): Renamed to...
3792 (throw_vquit): New function.
3793 (throw_quit): Likewise.
3794 (throw_error): Call throw_verror rather than throw_it.
3795 * utils.h (vfatal): Removed.
3796 (fatal): Likewise.
3797 * utils.c (vfatal): Removed.
3798 (fatal): Likewise.
3799 (internal_verror): Replaced call to fatal with call to throw_quit.
3800 (quit): Replaced calls to fatal with calls to throw_quit.
3801
3802 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3803
3804 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3805 target_read_code.
3806
3807 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3808
3809 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3810 less than zero in conditional expression.
3811
3812 2014-07-23 Tom Tromey <tromey@redhat.com>
3813
3814 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3815 ($INTRO_PART): Don't match whitespace.
3816 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3817 argument matching.
3818 ($METHOD): Add $METHOD_TRAILER.
3819 (trim): Rewrite.
3820 (scan_target_h): New sub.
3821 Change main loop not to collect state.
3822 * target-delegates.c: Rebuild.
3823
3824 2014-07-23 Gary Benson <gbenson@redhat.com>
3825
3826 * cp-support.c (gdb_demangle): Fix build on systems without
3827 sigaltstack.
3828
3829 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3830
3831 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3832 for reference entry value target data value.
3833
3834 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3835
3836 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3837 value_available_contents_eq.
3838
3839 2014-07-22 Pedro Alves <palves@redhat.com>
3840
3841 * value.c (allocate_optimized_out_value): Don't mark value as
3842 non-lazy.
3843
3844 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3845
3846 * MAINTAINERS (Write After Approval): Update my email address.
3847
3848 2014-07-20 Doug Evans <dje@google.com>
3849
3850 PR server/17147
3851 * remote.c (putpkt_binary): Add text to error message.
3852
3853 2014-07-20 Yao Qi <yao@codesourcery.com>
3854
3855 * eval.c: Remove "Chill" from comments.
3856 * gdbtypes.h: Likewise.
3857 * symtab.h: Likewise.
3858
3859 2014-07-20 Yao Qi <yao@codesourcery.com>
3860
3861 * std-operator.def: Update comments to TERNOP_SLICE.
3862
3863 2014-07-20 Yao Qi <yao@codesourcery.com>
3864
3865 * std-operator.def: Remove BINOP_RANGE.
3866 * breakpoint.c (watchpoint_exp_is_const): Update.
3867 * expprint.c (dump_subexp_body_standard): Likewise.
3868 * eval.c (init_array_element): Remove dead code.
3869 (evaluate_subexp_standard): Likewise.
3870
3871 2014-07-20 Yao Qi <yao@codesourcery.com>
3872
3873 * std-operator.def: Remove BINOP_IN.
3874 * breakpoint.c (watchpoint_exp_is_const): Update.
3875 * eval.c (evaluate_subexp_standard): Likewise.
3876 * expprint.c (dump_subexp_body_standard): Likewise.
3877
3878 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3879
3880 * microblaze-tdep.c (microblaze_register_names): Add
3881 the rshr and rslr register names.
3882 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3883 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3884 Use of tdesc_numbered_register. Use of
3885 microblaze_register_g_packet_guesses. Use of
3886 tdesc_use_registers. Use of set_gdbarch_register_type.
3887 (microblaze_register_g_packet_guesses): New.
3888 * microblaze-tdep.h (microblaze_reg_num): Add
3889 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3890 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3891 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3892 * features/microblaze-core.xml: New file.
3893 * features/microblaze-stack-protect.xml: New file.
3894 * features/microblaze-with-stack-protect.c: New file.
3895 * features/microblaze-with-stack-protect.xml: New file.
3896 * features/microblaze.xml: New file.
3897 * features/microblaze.c: New file.
3898 * features/Makefile (microblaze-with-stack-protect): Add
3899 microblaze-with-stack-protect microblaze and microblaze-expedite.
3900 * regformats/microblaze-with-stack-protect.dat: New file.
3901 * regformats/microblaze.dat: New file.
3902 * doc/gdb.texinfo (MicroBlaze Features): Added.
3903
3904 2014-07-18 Tom Tromey <tromey@redhat.com>
3905
3906 * exec.c (exec_ops): Now static.
3907 * exec.h (exec_ops): Don't declare.
3908
3909 2014-07-18 Tom Tromey <tromey@redhat.com>
3910
3911 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3912 to find_target_beneath.
3913 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3914 find_target_beneath.
3915 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3916
3917 2014-07-18 Tom Tromey <tromey@redhat.com>
3918
3919 PR gdb/17130:
3920 * utils.c (quit): Use target_supports_terminal_ours.
3921 * target.h (target_supports_terminal_ours): Declare.
3922 * target.c (target_supports_delete_record): Don't check
3923 to_delete_record against NULL.
3924 (target_supports_terminal_ours): New function.
3925
3926 2014-07-18 Tom Tromey <tromey@redhat.com>
3927
3928 PR gdb/17130:
3929 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3930 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3931 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3932 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3933 * windows-nat.c (windows_xfer_partial): Always delegate.
3934 * record-btrace.c (record_btrace_xfer_partial): Simplify
3935 delegation.
3936 (record_btrace_fetch_registers, record_btrace_store_registers)
3937 (record_btrace_prepare_to_store, record_btrace_resume)
3938 (record_btrace_wait, record_btrace_find_new_threads)
3939 (record_btrace_thread_alive): Likewise.
3940 * procfs.c (procfs_xfer_partial): Always delegate.
3941 * corelow.c (core_xfer_partial): Always delegate.
3942 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3943
3944 2014-07-18 Tom Tromey <tromey@redhat.com>
3945
3946 * exec.c (exec_make_note_section): Move earlier.
3947
3948 2014-07-17 Doug Evans <dje@google.com>
3949
3950 PR gdb/17170
3951 * maint.c (count_symtabs_and_blocks): Handle NULL
3952 current_program_space.
3953 (report_command_stats): Check global enabled flag in addition to
3954 recorded enabled flag.
3955 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3956
3957 2014-07-16 Pedro Alves <palves@redhat.com>
3958
3959 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3960
3961 2014-07-16 Tom Tromey <tromey@redhat.com>
3962
3963 * target.h (struct target_ops) <to_delete_record>: Reformat
3964 comment.
3965
3966 2014-07-16 Tom Tromey <tromey@redhat.com>
3967
3968 * target-delegates.c: Rebuild.
3969
3970 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3971
3972 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3973 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3974 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3975 (avr_pointer_to_address): Likewise.
3976 (avr_address_class_type_flags): New function.
3977 (avr_address_class_type_flags_to_name): Likewise.
3978 (avr_address_class_name_to_type_flags): Likewise.
3979 (avr_gdbarch_init): Set address_class_type_flags,
3980 address_class_type_flags_to_name and
3981 address_class_name_to_type_flags.
3982
3983 2014-07-15 Pedro Alves <palves@redhat.com>
3984
3985 * linux-nat.c (kill_callback): Save errno and work with saved
3986 copy.
3987
3988 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3989
3990 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3991
3992 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3993
3994 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3995 breakpoint support correctly.
3996
3997 2014-07-14 Pedro Alves <palves@redhat.com>
3998
3999 * utils.c (prompt_for_continue): Call target_terminal_ours.
4000
4001 2014-07-14 Pedro Alves <palves@redhat.com>
4002
4003 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4004 catch_errors. Don't re-enable stdin or notify observers where,
4005 and rethrow error.
4006 (fetch_inferior_event_wrapper): Delete.
4007
4008 2014-07-14 Pedro Alves <palves@redhat.com>
4009
4010 PR gdb/17072
4011 * top.c: Include "inf-loop.h".
4012 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4013 field.
4014 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4015 was async before.
4016 (gdb_readline_wrapper): Store whether the target is async, and
4017 make it sync.
4018
4019 2014-07-14 Pedro Alves <palves@redhat.com>
4020
4021 PR gdb/17072
4022 * top.c (gdb_readline_wrapper_line): Tweak comment.
4023 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4024 the input handler callback.
4025
4026 2014-07-14 Pedro Alves <palves@redhat.com>
4027
4028 PR gdb/17072
4029 * main.c: Include event-top.h.
4030 (handle_command_errors): New function.
4031 (catch_command_errors, catch_command_errors_const): Use it.
4032
4033 2014-07-14 Pedro Alves <palves@redhat.com>
4034
4035 * exceptions.c (catch_command_errors, catch_command_errors_const):
4036 Moved to main.c.
4037 * exceptions.h (catch_command_errors_ftype)
4038 (catch_command_errors_const_ftype): Moved to main.c.
4039 (catch_command_errors, catch_command_errors_const): Delete
4040 declarations.
4041 * main.c (catch_command_errors_ftype)
4042 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4043 (catch_command_errors, catch_command_errors_const)): Moved here
4044 from exceptions.c and make static.
4045
4046 2014-07-14 Pedro Alves <palves@redhat.com>
4047
4048 * exceptions.c (print_any_exception): Delete.
4049 (catch_exceptions_with_msg): Use exception_print instead of
4050 print_any_exception.
4051 (catch_errors): Use exception_fprintf instead of
4052 print_any_exception.
4053 (catch_command_errors, catch_command_errors_const): Use
4054 exception_print instead of print_any_exception.
4055
4056 2014-07-14 Pedro Alves <palves@redhat.com>
4057
4058 * infcall.c (run_inferior_call): Set 'sync_execution' while
4059 running the inferior call.
4060
4061 2014-07-14 Pedro Alves <palves@redhat.com>
4062
4063 * value.c (value_contents_equal): Delete function.
4064 * value.h (value_contents_equal): Delete declaration.
4065
4066 2014-07-14 Tom Tromey <tromey@redhat.com>
4067
4068 PR exp/17106:
4069 * gdbtypes.c (is_dynamic_type_internal): New function, from
4070 is_dynamic_type.
4071 (is_dynamic_type): Rewrite.
4072 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4073 (resolve_dynamic_struct): Likewise.
4074 (resolve_dynamic_type_internal): New function, from
4075 resolve_dynamic_type.
4076 (resolve_dynamic_type): Rewrite.
4077
4078 2014-07-14 Tom Tromey <tromey@redhat.com>
4079
4080 * target.c (target_require_runnable): Also check record_stratum.
4081 Update comment.
4082
4083 2014-07-11 Yao Qi <yao@codesourcery.com>
4084
4085 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4086 thumb_instruction_restores_sp return true.
4087
4088 2014-07-11 Yao Qi <yao@codesourcery.com>
4089
4090 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4091 (thumb_in_function_epilogue_p): Call
4092 thumb_instruction_restores_sp.
4093
4094 2014-07-11 Yao Qi <yao@codesourcery.com>
4095
4096 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4097 'add sp, #imm'.
4098 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4099
4100 2014-07-11 Gary Benson <gbenson@redhat.com>
4101
4102 * amd64-linux-nat.c (gdbcore.h): Remove include.
4103 (regset.h): Likewise.
4104 (nat/linux-btrace.h): Likewise.
4105 (btrace.h): Likewise.
4106 (gdb_assert.h): Likewise.
4107 (string.h): Likewise.
4108 (sys/uio.h): Likewise.
4109 (sys/debugreg.h): Likewise.
4110 (sys/syscall.h): Likewise.
4111 (sys/procfs.h): Likewise.
4112 (sys/user.h): Likewise.
4113 (asm/ptrace.h): Likewise.
4114 (i386-nat.h): Likewise.
4115 * i386-linux-nat.c (i386-nat.h): Likewise.
4116 (regset.h): Likewise.
4117 (target.h): Likewise.
4118 (linux-nat.h): Likewise.
4119 (nat/linux-btrace.h): Likewise.
4120 (btrace.h): Likewise.
4121 (gdb_assert.h): Likewise.
4122 (string.h): Likewise.
4123 (sys/uio.h): Likewise.
4124 (sys/user.h): Likewise.
4125 (sys/procfs.h): Likewise.
4126 (sys/reg.h): Likewise.
4127 (sys/debugreg.h): Likewise.
4128 (ORIG_EAX): Remove definition.
4129
4130 2014-07-11 Gary Benson <gbenson@redhat.com>
4131
4132 * i386-linux-nat.h: New file.
4133 * x86-linux-nat.h: Likewise.
4134 * x86-linux-nat.c: Likewise.
4135 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4136 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4137 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4138 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4139 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4140 (PTRACE_SETREGSET): Likewise.
4141 (arch_lwp_info): Now in x86-linux-nat.c.
4142 (have_ptrace_getregset): Now in x86-linux-nat.h.
4143 (x86_linux_dr_get): Now in x86-linux-nat.c.
4144 (x86_linux_dr_set): Likewise.
4145 (x86_linux_dr_get_addr): Likewise.
4146 (x86_linux_dr_get_control): Likewise.
4147 (x86_linux_dr_get_status): Likewise.
4148 (update_debug_registers_callback): Likewise.
4149 (x86_linux_dr_set_control): Likewise.
4150 (x86_linux_dr_set_addr): Likewise.
4151 (x86_linux_prepare_to_resume): Likewise.
4152 (x86_linux_new_thread): Likewise.
4153 (x86_linux_new_fork): Likewise.
4154 (x86_linux_get_thread_area): Likewise.
4155 (super_post_startup_inferior): Likewise.
4156 (x86_linux_child_post_startup_inferior): Likewise.
4157 (AMD64_LINUX_USER64_CS): Likewise.
4158 (AMD64_LINUX_X32_DS): Likewise.
4159 (x86_linux_read_description): Likewise.
4160 (x86_linux_enable_btrace): Likewise.
4161 (x86_linux_disable_btrace): Likewise.
4162 (x86_linux_teardown_btrace): Likewise.
4163 (x86_linux_read_btrace): Likewise.
4164 (x86_linux_create_target): Likewise.
4165 (x86_linux_add_target): Likewise.
4166 * i386-linux-nat.c (x86-linux-nat.h): New include.
4167 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4168 (PTRACE_SETREGSET): Likewise.
4169 (arch_lwp_info): Now in x86-linux-nat.c.
4170 (have_ptrace_getregset): Now in x86-linux-nat.h.
4171 (x86_linux_dr_get): Now in x86-linux-nat.c.
4172 (x86_linux_dr_set): Likewise.
4173 (x86_linux_dr_get_addr): Likewise.
4174 (x86_linux_dr_get_control): Likewise.
4175 (x86_linux_dr_get_status): Likewise.
4176 (update_debug_registers_callback): Likewise.
4177 (x86_linux_dr_set_control): Likewise.
4178 (x86_linux_dr_set_addr): Likewise.
4179 (x86_linux_prepare_to_resume): Likewise.
4180 (x86_linux_new_thread): Likewise.
4181 (x86_linux_new_fork): Likewise.
4182 (x86_linux_get_thread_area): Likewise.
4183 (super_post_startup_inferior): Likewise.
4184 (x86_linux_child_post_startup_inferior): Likewise.
4185 (AMD64_LINUX_USER64_CS): Likewise.
4186 (AMD64_LINUX_X32_DS): Likewise.
4187 (x86_linux_read_description): Likewise.
4188 (x86_linux_enable_btrace): Likewise.
4189 (x86_linux_disable_btrace): Likewise.
4190 (x86_linux_teardown_btrace): Likewise.
4191 (x86_linux_read_btrace): Likewise.
4192 (x86_linux_create_target): Likewise.
4193 (x86_linux_add_target): Likewise.
4194
4195 2014-07-11 Gary Benson <gbenson@redhat.com>
4196
4197 * amd64-linux-nat.c: Comment and whitespace changes.
4198 * i386-linux-nat.c: Comment and whitespace changes.
4199
4200 2014-07-11 Gary Benson <gbenson@redhat.com>
4201
4202 * amd64-linux-nat.c (x86_linux_create_target): New function.
4203 (x86_linux_add_target): Likewise.
4204 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4205 * i386-linux-nat.c (x86_linux_create_target): New function.
4206 (x86_linux_add_target): Likewise.
4207 (_initialize_i386_linux_nat): Delegate to the above new functions.
4208
4209 2014-07-11 Gary Benson <gbenson@redhat.com>
4210
4211 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4212 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4213 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4214 (ps_get_thread_area): Delegate to the above.
4215
4216 2014-07-11 Gary Benson <gbenson@redhat.com>
4217
4218 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4219 x86_linux_read_description. All uses updated. amd64-specific
4220 code conditionalized. Conditionalized i386-specific code added.
4221 Redundant cast removed.
4222 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4223 x86_linux_read_description. All uses updated. i386-specific
4224 code conditionalized. Conditionalized amd64-specific code added.
4225 One sizeof replaced with the actual type it is describing.
4226
4227 2014-07-11 Gary Benson <gbenson@redhat.com>
4228
4229 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4230 x86_linux_dr_get. All uses updated.
4231 (amd64_linux_dr_set): Renamed to
4232 x86_linux_dr_set. All uses updated.
4233 (amd64_linux_dr_get_addr): Renamed to
4234 x86_linux_dr_get_addr. All uses updated.
4235 (amd64_linux_dr_get_control): Renamed to
4236 x86_linux_dr_get_control. All uses updated.
4237 (amd64_linux_dr_get_status): Renamed to
4238 x86_linux_dr_get_status. All uses updated.
4239 (amd64_linux_dr_set_control): Renamed to
4240 x86_linux_dr_set_control. All uses updated.
4241 (amd64_linux_dr_set_addr): Renamed to
4242 x86_linux_dr_set_addr. All uses updated.
4243 (amd64_linux_prepare_to_resume): Renamed to
4244 x86_linux_prepare_to_resume. All uses updated.
4245 (amd64_linux_new_thread): Renamed to
4246 x86_linux_new_thread. All uses updated.
4247 (amd64_linux_new_fork): Renamed to
4248 x86_linux_new_fork. All uses updated.
4249 (amd64_linux_child_post_startup_inferior): Renamed to
4250 x86_linux_child_post_startup_inferior. All uses updated.
4251 (amd64_linux_enable_btrace): Renamed to
4252 x86_linux_enable_btrace. All uses updated.
4253 (amd64_linux_disable_btrace): Renamed to
4254 x86_linux_disable_btrace. All uses updated.
4255 (amd64_linux_teardown_btrace): Renamed to
4256 x86_linux_teardown_btrace. All uses updated.
4257 (amd64_linux_read_btrace): Renamed to
4258 x86_linux_read_btrace. All uses updated.
4259 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4260 x86_linux_dr_get. All uses updated.
4261 (i386_linux_dr_set): Renamed to
4262 x86_linux_dr_set. All uses updated.
4263 (i386_linux_dr_get_addr): Renamed to
4264 x86_linux_dr_get_addr. All uses updated.
4265 (i386_linux_dr_get_control): Renamed to
4266 x86_linux_dr_get_control. All uses updated.
4267 (i386_linux_dr_get_status): Renamed to
4268 x86_linux_dr_get_status. All uses updated.
4269 (i386_linux_dr_set_control): Renamed to
4270 x86_linux_dr_set_control. All uses updated.
4271 (i386_linux_dr_set_addr): Renamed to
4272 x86_linux_dr_set_addr. All uses updated.
4273 (i386_linux_prepare_to_resume): Renamed to
4274 x86_linux_prepare_to_resume. All uses updated.
4275 (i386_linux_new_thread): Renamed to
4276 x86_linux_new_thread. All uses updated.
4277 (i386_linux_new_fork): Renamed to
4278 x86_linux_new_fork. All uses updated.
4279 (i386_linux_child_post_startup_inferior): Renamed to
4280 x86_linux_child_post_startup_inferior. All uses updated.
4281 (i386_linux_enable_btrace): Renamed to
4282 x86_linux_enable_btrace. All uses updated.
4283 (i386_linux_disable_btrace): Renamed to
4284 x86_linux_disable_btrace. All uses updated.
4285 (i386_linux_teardown_btrace): Renamed to
4286 x86_linux_teardown_btrace. All uses updated.
4287 (i386_linux_read_btrace): Renamed to
4288 x86_linux_read_btrace. All uses updated.
4289
4290 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4291
4292 * remote.c (extended_remote_post_attach): New function.
4293 (init_extended_remote_ops): Install it as to_post_attach method.
4294
4295 2014-07-09 Pedro Alves <palves@redhat.com>
4296
4297 * infcmd.c (attach_command_post_wait): Don't call
4298 target_terminal_inferior here.
4299 (attach_command): Call it here instead.
4300
4301 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4304 field.
4305 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4306 from varobj.c, with additional checks.
4307 (c_varobj_ops): Fill in is_path_expr_parent field.
4308 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4309 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4310 field.
4311 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4312 ops method.
4313 (varobj_default_is_path_expr_parent): New function.
4314 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4315 (varobj_default_is_path_expr_parent): Declare new function.
4316
4317 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4318
4319 * infcmd.c (finish_backward): Turn internal error into normal error.
4320
4321 2014-07-07 Pedro Alves <palves@redhat.com>
4322
4323 PR gdb/17096
4324 * remote.c (async_handle_remote_sigint)
4325 (async_handle_remote_sigint_twice): Call
4326 gdb_call_async_signal_handler instead of
4327 mark_async_signal_handler.
4328
4329 2014-07-07 Tom Tromey <tromey@redhat.com>
4330
4331 * target-delegates.c: Rebuild.
4332 * target.c (target_info_record): Remove.
4333 * record.c (info_record_command): Unconditionally call
4334 to_info_record.
4335 * target.h (struct target_ops) <to_info_record>: Use
4336 TARGET_DEFAULT_IGNORE.
4337 (target_info_record): Remove.
4338
4339 2014-07-07 Tom Tromey <tromey@redhat.com>
4340
4341 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4342 TARGET_DEFAULT_NORETURN.
4343 * target.c (generic_tls_error): New function.
4344 (target_translate_tls_address): Don't search target stack.
4345 * target-delegates.c: Rebuild.
4346 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4347 stack.
4348 * linux-thread-db.c (thread_db_get_thread_local_address):
4349 Unconditionally call beneath target.
4350
4351 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4352
4353 * cli/cli-logging.c (pop_output_files): Assign targerr to
4354 gdb_stdtargerr.
4355
4356 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4357
4358 * MAINTAINERS (Write After Approval): Update my email address.
4359
4360 2014-07-02 Gary Benson <gbenson@redhat.com>
4361
4362 * proc-service.c (ps_xfer_memory): Update comment.
4363 (ps_pstop): Remove unused function.
4364 (ps_pcontinue): Likewise.
4365 (ps_lstop): Likewise.
4366 (ps_lcontinue): Likewise.
4367 (ps_lgetxregsize): Likewise.
4368 (ps_lgetxregs): Likewise.
4369 (ps_lsetxregs): Likewise.
4370 (ps_plog): Likewise.
4371 (ps_ptread): Likewise.
4372 (ps_ptwrite): Likewise.
4373
4374 2014-07-01 Mark Wielaard <mjw@redhat.com>
4375
4376 * dwarf2read.c (add_array_cv_type): New function.
4377 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4378 (read_tag_volatile_type): Likewise.
4379
4380 2014-07-01 Tom Tromey <tromey@redhat.com>
4381
4382 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4383 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4384 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4385 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4386 * command.h (cmd_cfunc_ftype): Move earlier.
4387 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4388 (add_com, add_info): Use cmd_cfunc_ftype.
4389
4390 2014-06-30 Tom Tromey <tromey@redhat.com>
4391
4392 * symtab.c (operator_chars): Make parameters and return type
4393 const.
4394 (file_matches): Make "files" const.
4395 (struct search_symbols_data) <files>: Now const.
4396 (search_symbols): Make "regexp" and "files" parameters const.
4397 Update.
4398 (symtab_symbol_info): Remove cast.
4399 (rbreak_command): Update.
4400 * symtab.h (search_symbols): Update.
4401
4402 2014-06-27 Yao Qi <yao@codesourcery.com>
4403
4404 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4405 Change parameter type to 'struct thread_info *'. Caller
4406 updated.
4407 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4408 Update declaration.
4409 * dummy-frame.c (struct dummy_frame_id): New.
4410 (dummy_frame_id_eq): New function.
4411 (struct dummy_frame) <id>: Change its type to 'struct
4412 dummy_frame_id'.
4413 (dummy_frame_push): Add parameter ptid and save it in
4414 dummy_frame_id.
4415 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4416 inferior_ptid.
4417 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4418 to inferior_ptid.
4419 (lookup_dummy_frame): Change parameter type to 'struct
4420 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4421 instead of frame_id_eq.
4422 (dummy_frame_pop): Add parameter ptid. Callers updated.
4423 Update comments. Compose dummy_frame_id and pass it to
4424 lookup_dummy_frame.
4425 (dummy_frame_discard): Add parameter ptid.
4426 (dummy_frame_sniffer): Compose dummy_frame_id and call
4427 dummy_frame_id_eq instead of frame_id_eq.
4428 (fprint_dummy_frames): Print ptid.
4429 * dummy-frame.h: Remove comments.
4430 (dummy_frame_push): Add ptid in declaration.
4431 (dummy_frame_pop, dummy_frame_discard): Likewise.
4432
4433 2014-06-26 Tom Tromey <tromey@redhat.com>
4434
4435 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4436 * command.h (error_no_arg): Update.
4437
4438 2014-06-26 Tom Tromey <tromey@redhat.com>
4439
4440 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4441 (do_show_command): Make "arg" const.
4442 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4443
4444 2014-06-26 Tom Tromey <tromey@redhat.com>
4445
4446 * record-full.c (record_full_get_bookmark): Make "args" const.
4447 (record_full_goto_bookmark): Make "raw_bookmark" const.
4448 * record.c (record_goto): New function.
4449 (cmd_record_goto): Use it. Now static.
4450 * record.h (record_goto): Declare.
4451 (cmd_record_goto): Remove declaration.
4452 * target-delegates.c: Rebuild.
4453 * target.h (struct target_ops) <to_get_bookmark,
4454 to_goto_bookmark>: Make parameter const.
4455
4456 2014-06-26 Tom Tromey <tromey@redhat.com>
4457
4458 * defs.h (generic_load): Update.
4459 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4460 * monitor.c (monitor_load): Make "args" const.
4461 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4462 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4463 const.
4464 (mips_load): Make "file" const.
4465 * remote-sim.c (gdbsim_load): Make "args" const.
4466 * remote.c (remote_load): Make "name" const.
4467 * symfile.c (generic_load): Make "args" const.
4468 * target-delegates.c: Rebuild.
4469 * target.c (target_load): Make "arg" const.
4470 (debug_to_load): Make "args" const.
4471 * target.h (struct target_ops) <to_load>: Make parameter const.
4472 (target_load): Update.
4473
4474 2014-06-26 Tom Tromey <tromey@redhat.com>
4475
4476 PR symtab/16902:
4477 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4478 (dwarf2_physname, read_partial_die)
4479 (guess_partial_die_structure_name, fixup_partial_die)
4480 (guess_full_die_structure_name, anonymous_struct_prefix)
4481 (dwarf2_name): Use per-BFD obstack.
4482
4483 2014-06-26 Yao Qi <yao@codesourcery.com>
4484
4485 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4486 dummyframe and this_id into inner block below.
4487
4488 2014-06-26 Yao Qi <yao@codesourcery.com>
4489
4490 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4491 with "signal_pass[0]" in the initialization of signal_pass.
4492
4493 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4494
4495 * record-btrace.c (record_btrace_generating_corefile)
4496 (record_btrace_prepare_to_generate_core)
4497 (record_btrace_done_generating_core): New.
4498 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4499 (record_btrace_store_registers, record_btrace_prepare_to_store):
4500 Forward request when generating a core file.
4501 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4502 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4503 to_done_generating_core.
4504
4505 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4506
4507 * target.h (target_ops) <to_prepare_to_generate_core>
4508 <to_done_generating_core>: New.
4509 (target_prepare_to_generate_core, target_done_generating_core): New.
4510 * target.c (target_prepare_to_generate_core)
4511 (target_done_generating_core): New.
4512 * target-delegates.c: Regenerate.
4513 * gcore.c: (write_gcore_file): Rename to ...
4514 (write_gcore_file_1): ...this.
4515 (write_gcore_file): Call target_prepare_to_generate_core
4516 and target_done_generating_core.
4517
4518 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4519
4520 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4521 * gcore.c (write_gcore_file): Free memory returned from
4522 make_corefile_notes.
4523 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4524 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4525
4526 2014-06-24 Yao Qi <yao@codesourcery.com>
4527
4528 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4529 (arm_linux_init_abi): Set skip_trampoline_code with
4530 gdbarch_skip_trampoline_code instead of
4531 find_solib_trampoline_target.
4532
4533 2014-06-24 Yao Qi <yao@codesourcery.com>
4534
4535 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4536 arm_skip_bx_reg returns non-zero.
4537
4538 2014-06-24 Yao Qi <yao@codesourcery.com>
4539
4540 * arm-tdep.c (arm_skip_bx_reg): New function.
4541 (arm_skip_stub): Call arm_skip_bx_reg.
4542
4543 2014-06-23 Don Breazeal <donb@codesourcery.com>
4544
4545 * MAINTAINERS: Add myself as write-after-approval maintainer.
4546
4547 2014-06-23 Pedro Alves <palves@redhat.com>
4548
4549 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4550 DR_CONTROL before setting DR0..DR3.
4551 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4552 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4553 bits of DR_CONTROL related to the debug register slot being
4554 disabled. If all slots are vacant, clear local slowdown as well,
4555 and assert DR_CONTROL is 0.
4556
4557 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4558
4559 * python/lib/gdb/command/xmethods.py
4560 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4561 current progspace only if the string "progspace" matches LOCUS_RE.
4562
4563 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4564
4565 Fix --with-system-readline with readline-6.3 patch 5.
4566 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4567 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4568 types.
4569
4570 2014-06-20 Tom Tromey <tromey@redhat.com>
4571
4572 * dwarf2read.c (dw2_get_real_path): Use correct type in
4573 OBSTACK_CALLOC.
4574 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4575
4576 2014-06-20 Gary Benson <gbenson@redhat.com>
4577
4578 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4579 * common/glibc_thread_db.h: Likewise.
4580 * common/i386-cpuid.h: Likewise.
4581 * common/i386-gcc-cpuid.h: Likewise.
4582 * common/linux-btrace.h: Likewise.
4583 * common/linux-osdata.h: Likewise.
4584 * common/linux-procfs.h: Likewise.
4585 * common/linux-ptrace.h: Likewise.
4586 * common/mips-linux-watch.h: Likewise.
4587 * common/linux-btrace.c: Moved to nat.
4588 * common/linux-osdata.c: Likewise.
4589 * common/linux-procfs.c: Likewise.
4590 * common/linux-ptrace.c: Likewise.
4591 * common/mips-linux-watch.c: Likewise.
4592 * nat/gdb_thread_db.h: Moved from common.
4593 * nat/glibc_thread_db.h: Likewise.
4594 * nat/i386-cpuid.h: Likewise.
4595 * nat/i386-gcc-cpuid.h: Likewise.
4596 * nat/linux-btrace.c: Likewise.
4597 * nat/linux-btrace.h: Likewise.
4598 * nat/linux-osdata.c: Likewise.
4599 * nat/linux-osdata.h: Likewise.
4600 * nat/linux-procfs.c: Likewise.
4601 * nat/linux-procfs.h: Likewise.
4602 * nat/linux-ptrace.c: Likewise.
4603 * nat/linux-ptrace.h: Likewise.
4604 * nat/mips-linux-watch.c: Likewise.
4605 * nat/mips-linux-watch.h: Likewise.
4606 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4607 (object file files): Reordered.
4608 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4609 of glibc_thread_db.h.
4610
4611 2014-06-20 Gary Benson <gbenson@redhat.com>
4612
4613 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4614 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4615 (i386_dr_low): Likewise.
4616 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4617 (i386_dr_low_set_addr): Likewise.
4618 (i386_dr_low_get_addr): Likewise.
4619 (i386_dr_low_can_set_control): Likewise.
4620 (i386_dr_low_set_control): Likewise.
4621 (i386_dr_low_get_control): Likewise.
4622 (i386_dr_low_get_status): Likewise.
4623 (i386_get_debug_register_length): Likewise.
4624 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4625 (i386_dr_low): Likewise.
4626 * nat/i386-dregs.c (i386-low.h): Remove include.
4627 (i386-nat.h): Likewise.
4628 (nat/i386-dregs.h): New include.
4629 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4630 (i386_dr_low_set_addr): Likewise.
4631 (i386_dr_low_get_addr): Likewise.
4632 (i386_dr_low_can_set_control): Likewise.
4633 (i386_dr_low_set_control): Likewise.
4634 (i386_dr_low_get_control): Likewise.
4635 (i386_dr_low_get_status): Likewise.
4636 (i386_get_debug_register_length): Likewise.
4637 (debug_hw_points): Likewise.
4638
4639 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4640
4641 * Makefile.in (SFILES): Add d-exp.y.
4642 (YYFILES): Add d-exp.c.
4643 (YYOBJ): Add d-exp.o.
4644 (local-maintainer-clean): Delete d-exp.c.
4645 * d-exp.y: New file.
4646 * d-lang.h (d_parse): New declaration.
4647 (d_error): New declaration.
4648 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4649 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4650 PREC_ORDER operators.
4651 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4652
4653 2014-06-19 Yao Qi <yao@codesourcery.com>
4654
4655 * gdbthread.h (any_running): Remove the declaration.
4656 * thread.c (any_running): Remove.
4657
4658 2014-06-19 Yao Qi <yao@codesourcery.com>
4659
4660 * gdbthread.h (struct thread_info) <state>: Change its type to
4661 'enum thread_state'. Update comments.
4662
4663 2014-06-19 Pedro Alves <palves@redhat.com>
4664
4665 * gdbthread.h (ALL_THREADS): Delete.
4666 (ALL_NON_EXITED_THREADS): New macro.
4667 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4668 instead of ALL_THREADS.
4669 * infrun.c (find_thread_needs_step_over)
4670 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4671 instead of ALL_THREADS.
4672 * record-btrace.c (record_btrace_open)
4673 (record_btrace_stop_recording, record_btrace_close)
4674 (record_btrace_is_replaying, record_btrace_resume)
4675 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4676 * remote.c (append_pending_thread_resumptions): Likewise.
4677 * thread.c (thread_apply_all_command): Likewise.
4678
4679 2014-06-19 Gary Benson <gbenson@redhat.com>
4680
4681 * i386-nat.c (i386_stopped_by_watchpoint):
4682 Use i386_dr_stopped_by_watchpoint.
4683 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4684 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4685
4686 2014-06-19 Gary Benson <gbenson@redhat.com>
4687
4688 * nat/i386-dregs.c: New file.
4689 * Makefile.in (i386-dregs.o): New rule.
4690 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4691 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4692 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4693 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4694 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4695 * config/i386/go32.mh (NATDEPFILES): Likewise.
4696 * config/i386/linux.mh (NATDEPFILES): Likewise.
4697 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4698 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4699 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4700 * i386-nat.h (debug_hw_points): New declaration.
4701 * i386-nat.c (breakpoint.h): Remove include.
4702 (command.h): Likewise.
4703 (target.h): Likewise.
4704 (gdb_assert.h): Likewise.
4705 (debug_hw_points): Made nonstatic.
4706 (debug_printf): Now in i386-dregs.c.
4707 (TARGET_HAS_DR_LEN_8): Likewise.
4708 (DR_CONTROL_SHIFT): Likewise.
4709 (DR_CONTROL_SIZE): Likewise.
4710 (DR_RW_EXECUTE): Likewise.
4711 (DR_RW_WRITE): Likewise.
4712 (DR_RW_READ): Likewise.
4713 (DR_RW_IORW): Likewise.
4714 (DR_LEN_1): Likewise.
4715 (DR_LEN_2): Likewise.
4716 (DR_LEN_4): Likewise.
4717 (DR_LEN_8): Likewise.
4718 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4719 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4720 (DR_ENABLE_SIZE): Likewise.
4721 (DR_LOCAL_SLOWDOWN): Likewise.
4722 (DR_GLOBAL_SLOWDOWN): Likewise.
4723 (DR_CONTROL_RESERVED): Likewise.
4724 (I386_DR_CONTROL_MASK): Likewise.
4725 (I386_DR_VACANT): Likewise.
4726 (I386_DR_LOCAL_ENABLE): Likewise.
4727 (I386_DR_GLOBAL_ENABLE): Likewise.
4728 (I386_DR_DISABLE): Likewise.
4729 (I386_DR_SET_RW_LEN): Likewise.
4730 (I386_DR_GET_RW_LEN): Likewise.
4731 (I386_DR_WATCH_HIT): Likewise.
4732 (i386_wp_op_t): Likewise.
4733 (i386_show_dr): Likewise.
4734 (i386_length_and_rw_bits): Likewise.
4735 (i386_insert_aligned_watchpoint): Likewise.
4736 (i386_remove_aligned_watchpoint): Likewise.
4737 (i386_handle_nonaligned_watchpoint): Likewise.
4738 (i386_update_inferior_debug_regs): Likewise.
4739 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4740 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4741 (i386_region_ok_for_watchpoint):
4742 Use i386_dr_region_ok_for_watchpoint.
4743 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4744
4745 2014-06-19 Gary Benson <gbenson@redhat.com>
4746
4747 * i386-nat.c (i386_insert_hw_breakpoint): Use
4748 i386_insert_watchpoint.
4749 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4750
4751 2014-06-19 Gary Benson <gbenson@redhat.com>
4752
4753 * i386-nat.c (i386_dr_show): Renamed to
4754 i386_show_dr and made static. All uses updated.
4755 (i386_dr_length_and_rw_bits): Renamed to
4756 i386_length_and_rw_bits and made static.
4757 All uses updated.
4758 (i386_dr_insert_aligned_watchpoint): Renamed to
4759 i386_insert_aligned_watchpoint and made static.
4760 All uses updated.
4761 (i386_dr_remove_aligned_watchpoint): Renamed to
4762 i386_remove_aligned_watchpoint and made static.
4763 All uses updated.
4764 (i386_dr_update_inferior_debug_regs): Renamed to
4765 i386_update_inferior_debug_regs and made static.
4766 All uses updated.
4767 * nat/i386-dregs.h (i386_dr_show): Removed.
4768 (i386_dr_length_and_rw_bits): Likewise.
4769 (i386_dr_insert_aligned_watchpoint): Likewise.
4770 (i386_dr_remove_aligned_watchpoint): Likewise.
4771 (i386_dr_update_inferior_debug_regs): Likewise.
4772
4773 2014-06-19 Gary Benson <gbenson@redhat.com>
4774
4775 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4776 * configure: Regenerate.
4777 * config.in: Likewise.
4778 * main.c (signal.h): New include.
4779 (setup_alternate_signal_stack): New function.
4780 (captured_main): Call the above.
4781 * cp-support.c (signal.h): New include.
4782 (catch_demangler_crashes): New flag.
4783 (SIGJMP_BUF): New define.
4784 (SIGSETJMP): Likewise.
4785 (SIGLONGJMP): Likewise.
4786 (gdb_demangle_jmp_buf): New static global.
4787 (gdb_demangle_attempt_core_dump): Likewise.
4788 (gdb_demangle_signal_handler): New function.
4789 (gdb_demangle): If catch_demangler_crashes is set, install the
4790 above signal handler before calling bfd_demangle, and restore
4791 the original signal handler afterwards. Display the offending
4792 symbol and call demangler_warning the first time a segmentation
4793 fault is caught.
4794 (_initialize_cp_support): New maint set/show command.
4795
4796 2014-06-19 Gary Benson <gbenson@redhat.com>
4797
4798 * utils.h (resource_limit_kind): New enum.
4799 (can_dump_core): New declaration.
4800 (warn_cant_dump_core): Likewise.
4801 (dump_core): Likewise.
4802 * utils.c (dump_core): Made nonstatic. Added new
4803 parameter "limit_kind".
4804 (can_dump_core): Made nonstatic. Moved printing code to...
4805 (warn_cant_dump_core): New function.
4806 (can_dump_core_warn): Likewise.
4807 (internal_vproblem): Replace calls to can_dump_core with
4808 calls to can_dump_core_warn. Supply new argument to each.
4809
4810 2014-06-19 Gary Benson <gbenson@redhat.com>
4811
4812 * utils.h (demangler_vwarning): New declaration.
4813 (demangler_warning): Likewise.
4814 * utils.c (struct internal_problem)
4815 <user_settable_should_quit>: New field.
4816 <user_settable_should_dump_core>: Likewise
4817 (internal_error_problem): Add values for above new fields.
4818 (internal_warning_problem): Likewise.
4819 (demangler_warning_problem): New static global.
4820 (demangler_vwarning): New function.
4821 (demangler_warning): Likewise.
4822 (add_internal_problem_command): Selectively add commands.
4823 (_initialize_utils): New internal problem command.
4824 * maint.c (maintenance_demangler_warning): New function.
4825 (_initialize_maint_cmds): New command.
4826
4827 2014-06-18 Tom Tromey <tromey@redhat.com>
4828
4829 * f-valprint.c (info_common_command_for_block): Update.
4830 * symtab.h (struct general_symbol_info) <common_block>: Now
4831 const.
4832
4833 2014-06-18 Tom Tromey <tromey@redhat.com>
4834
4835 * symtab.h (struct symtab) <blockvector>: Now const.
4836 * ada-lang.c (ada_add_global_exceptions): Update.
4837 * buildsym.c (augment_type_symtab): Update.
4838 * dwarf2read.c (dw2_lookup_symbol): Update.
4839 * jit.c (finalize_symtab): Update.
4840 * jv-lang.c (add_class_symtab_symbol): Update.
4841 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4842 Update.
4843 * objfiles.c (objfile_relocate1): Update.
4844 * psymtab.c (lookup_symbol_aux_psymtabs)
4845 (maintenance_check_psymtabs): Update.
4846 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4847 Update.
4848 * spu-tdep.c (spu_catch_start): Update.
4849 * symmisc.c (dump_symtab_1): Update.
4850 * symtab.c (lookup_global_symbol_from_objfile)
4851 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4852 (basic_lookup_transparent_type_quick)
4853 (basic_lookup_transparent_type, find_pc_sect_symtab)
4854 (find_pc_sect_line, search_symbols): Update.
4855 * block.c (find_block_in_blockvector): Make "bl" const.
4856 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4857 const.
4858 (blockvector_contains_pc): Make "bv" const.
4859 (block_for_pc_sect): Update.
4860 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4861 (blockvector_contains_pc): Update.
4862 * breakpoint.c (resolve_sal_pc): Update.
4863 * inline-frame.c (block_starting_point_at): Update.
4864
4865 2014-06-18 Tom Tromey <tromey@redhat.com>
4866
4867 * completer.c (complete_line): Make "line_buffer" const.
4868 * completer.h (complete_line): Update.
4869
4870 2014-06-18 Tom Tromey <tromey@redhat.com>
4871
4872 * symtab.c (add_macro_name): Remove unneeded cast.
4873
4874 2014-06-18 Tom Tromey <tromey@redhat.com>
4875
4876 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4877 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4878
4879 2014-06-18 Tom Tromey <tromey@redhat.com>
4880
4881 * probe.c (info_probes_for_ops): Make "arg" const.
4882 * probe.h (info_probes_for_ops): Update.
4883
4884 2014-06-18 Tom Tromey <tromey@redhat.com>
4885
4886 * varobj.c (varobj_create): Update.
4887 * valops.c (value_of_this): Update.
4888 * tracepoint.c (add_local_symbols, scope_info): Update.
4889 * symtab.h (struct general_symbol_info) <block>: Now const.
4890 * symtab.c (skip_prologue_sal)
4891 (default_make_symbol_completion_list_break_on)
4892 (skip_prologue_using_sal): Update.
4893 * stack.h (iterate_over_block_locals)
4894 (iterate_over_block_local_vars): Update.
4895 * stack.c (print_frame_args): Update.
4896 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4897 parameter const.
4898 (get_selected_block): Make return type const.
4899 * python/py-frame.c (frapy_block): Update.
4900 * python/py-block.c (gdbpy_block_for_pc): Update.
4901 * p-exp.y (%union) <bval>: Now const.
4902 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4903 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4904 * m2-exp.y (%union) <bval>: Now const.
4905 * linespec.c (get_current_search_block): Make return type const.
4906 (create_sals_line_offset, find_label_symbols): Update.
4907 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4908 Update.
4909 (block_starting_point_at): Make "block" const.
4910 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4911 (check_exception_resume): Update.
4912 * guile/scm-frame.c (gdbscm_frame_block): Update.
4913 * guile/scm-block.c (gdbscm_lookup_block): Update.
4914 * frame.h (get_frame_block): Update.
4915 (get_selected_block): Make return type const.
4916 * frame.c (frame_id_inner): Update.
4917 * f-valprint.c (info_common_command_for_block)
4918 (info_common_command): Update.
4919 * dwarf2loc.c (dwarf2_find_location_expression)
4920 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4921 (locexpr_describe_location_piece): Update.
4922 * c-exp.y (%union) <bval>: Now const.
4923 * breakpoint.c (resolve_sal_pc): Update.
4924 * blockframe.c (get_frame_block):Make return type const.
4925 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4926 (block_innermost_frame): Update.
4927 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4928 (block_for_pc, block_for_pc_sect): Update.
4929 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4930 'pblock' const.
4931 (block_for_pc_sect, block_for_pc): Make return type const.
4932 * ax-gdb.c (gen_expr): Update.
4933 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4934 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4935 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4936 (ada_read_var_value): Update.
4937 * ada-exp.y (struct name_info) <block>: Now const.
4938 (%union): Likewise.
4939 (block_lookup): Constify.
4940
4941 2014-06-18 Gary Benson <gbenson@redhat.com>
4942
4943 * nat/i386-dregs.h: New file.
4944 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4945 * i386-nat.h (i386-dregs.h): New include.
4946 (DR_FIRSTADDR): Now in i386-dregs.h.
4947 (DR_LASTADDR): Likewise.
4948 (DR_NADDR): Likewise.
4949 (DR_STATUS): Likewise.
4950 (DR_CONTROL): Likewise.
4951 (i386_debug_reg_state): Likewise.
4952 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4953
4954 2014-06-18 Don Breazeal <donb@codesourcery.com>
4955
4956 * breakpoint.c (set_longjmp_breakpoint): Call
4957 momentary_breakpoint_from_master with additional argument.
4958 (set_longjmp_breakpoint_for_call_dummy): Call
4959 momentary_breakpoint_from_master with additional argument.
4960 (set_std_terminate_breakpoint): Call
4961 momentary_breakpoint_from_master with additional argument.
4962 (momentary_breakpoint_from_master): Add argument to function
4963 definition and use it to initialize structure member flag.
4964 (clone_momentary_breakpoint): Call
4965 momentary_breakpoint_from_master with additional argument.
4966 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4967 member flags set in momentary_breakpoint_from_master.
4968
4969 2014-06-18 Gary Benson <gbenson@redhat.com>
4970
4971 * i386-nat.c (i386_show_dr): Renamed to
4972 i386_dr_show and made nonstatic. All uses updated.
4973 (i386_length_and_rw_bits): Renamed to
4974 i386_dr_length_and_rw_bits and made nonstatic.
4975 All uses updated.
4976 (i386_insert_aligned_watchpoint): Renamed to
4977 i386_dr_insert_aligned_watchpoint and made nonstatic.
4978 All uses updated.
4979 (i386_remove_aligned_watchpoint): Renamed to
4980 i386_dr_remove_aligned_watchpoint and made nonstatic.
4981 All uses updated.
4982 (i386_update_inferior_debug_regs): Renamed to
4983 i386_dr_update_inferior_debug_regs and made nonstatic.
4984 All uses updated.
4985
4986 2014-06-18 Gary Benson <gbenson@redhat.com>
4987
4988 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4989 (i386_dr_low_can_set_control): Likewise.
4990 (i386_dr_low_set_addr): Likewise.
4991 (i386_dr_low_set_control): Likewise.
4992 (i386_dr_low_get_addr): Likewise.
4993 (i386_dr_low_get_status): Likewise.
4994 (i386_dr_low_get_control): Likewise.
4995 (i386_insert_aligned_watchpoint): Use new macros.
4996 (i386_update_inferior_debug_regs): Likewise.
4997 (i386_stopped_data_address): Likewise.
4998
4999 2014-06-18 Gary Benson <gbenson@redhat.com>
5000
5001 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5002 New parameter. All uses updated.
5003
5004 2014-06-18 Gary Benson <gbenson@redhat.com>
5005
5006 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5007 All uses updated.
5008
5009 2014-06-18 Gary Benson <gbenson@redhat.com>
5010
5011 * i386-nat.c (debug_printf): New macro.
5012 (i386_get_debug_register_length): Likewise.
5013 (TARGET_HAS_DR_LEN_8): Use above macro.
5014 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5015 and printf_unfiltered. Use phex to format values.
5016
5017 2014-06-18 Gary Benson <gbenson@redhat.com>
5018
5019 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5020 Make const.
5021
5022 2014-06-18 Gary Benson <gbenson@redhat.com>
5023
5024 * i386-nat.c: Comment changes.
5025
5026 2014-06-18 Gary Benson <gbenson@redhat.com>
5027
5028 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5029
5030 2014-06-18 Gary Benson <gbenson@redhat.com>
5031
5032 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5033 (i386_insert_aligned_watchpoint): Likewise.
5034 (i386_remove_aligned_watchpoint): Likewise.
5035 (i386_handle_nonaligned_watchpoint): Likewise.
5036
5037 2014-06-18 Gary Benson <gbenson@redhat.com>
5038
5039 * i386-nat.c: Whitespace changes.
5040
5041 2014-06-17 Samuel Bronson <naesten@gmail.com>
5042
5043 * MAINTAINERS: Update Roland McGrath's email address.
5044 Thanks to Sergio Durigan Junior for pointing out that he left
5045 Red Hat a while ago, and giving me a current address.
5046
5047 2014-06-17 Tom Tromey <tromey@redhat.com>
5048
5049 * utils.h (savestring): Remove declaration.
5050
5051 2014-06-17 Tom Tromey <tromey@redhat.com>
5052
5053 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5054
5055 2014-06-16 Keith Seitz <keiths@redhat.com>
5056
5057 PR mi/15863
5058 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5059 to update the varobj if inferior_ptid is null_ptid.
5060
5061 2014-06-16 Tom Tromey <tromey@redhat.com>
5062
5063 * target.h (struct target_ops) <to_info_proc>: Make parameter
5064 const.
5065 (target_info_proc): Update.
5066 * target.c (target_info_proc): Make "args" const.
5067 * procfs.c (procfs_info_proc): Update.
5068 * linux-tdep.c (linux_info_proc): Update.
5069 (linux_core_info_proc_mappings): Make "args" const.
5070 (linux_core_info_proc): Update.
5071 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5072 * gdbarch.c: Rebuild.
5073 * gdbarch.h: Rebuild.
5074 * corelow.c (core_info_proc): Update.
5075
5076 2014-06-16 Tom Tromey <tromey@redhat.com>
5077
5078 * target.h (struct target_ops) <to_disconnect>: Make parameter
5079 const.
5080 (target_disconnect): Update.
5081 * target.c (target_disconnect): Make "args" const.
5082 * target-delegates.c: Rebuild.
5083 * remote.c (remote_disconnect): Update.
5084 * record.h (record_disconnect): Update.
5085 * record.c (record_disconnect): Update.
5086 * inf-child.c (inf_child_disconnect): Update.
5087
5088 2014-06-16 Tom Tromey <tromey@redhat.com>
5089
5090 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5091 * target.c (debug_to_rcmd, default_rcmd): Update.
5092 * target-delegates.c: Rebuild.
5093 * remote.c (remote_rcmd): Update.
5094 * monitor.c (monitor_rcmd): Update.
5095
5096 2014-06-16 Pedro Alves <palves@redhat.com>
5097
5098 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5099 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5100 have OBJF_SHARED set.
5101 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5102 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5103 instead of OBJF_USERLOADED.
5104 * objfiles.h (OBJF_SHARED): Update comment.
5105 (userloaded_objfile_contains_address_p): Rename to ...
5106 (shared_objfile_contains_address_p): ... this, and update
5107 comments.
5108 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5109 new objfile.
5110 (remove_symbol_file_command): Skip objfiles that don't have
5111 OBJF_SHARED set.
5112
5113 2014-06-16 Tom Tromey <tromey@redhat.com>
5114
5115 * minsyms.h (prim_record_minimal_symbol)
5116 (prim_record_minimal_symbol_and_info): Update comments.
5117
5118 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5119
5120 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5121 or --without-guile, according to how GDB was built.
5122
5123 2014-06-13 Tom Tromey <tromey@redhat.com>
5124
5125 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5126 to help_list.
5127 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5128 to help_list.
5129 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5130 help_list.
5131 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5132 help_list.Pass all_commands, not -1, to help_list.
5133 * cli/cli-dump.c (dump_command, append_command)
5134 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5135 (binary_dump_command, binary_append_command): Pass all_commands,
5136 not -1, to help_list.
5137 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5138 -1, to help_list.
5139 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5140 -1, to help_list.
5141 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5142 help_list.
5143 * top.c (set_history): Pass all_commands, not -1, to help_list.
5144 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5145 all_commands, not -1, to help_list.
5146 * symfile.c (overlay_command): Pass all_commands, not -1, to
5147 help_list.
5148 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5149 help_list.
5150 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5151 help_list.
5152 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5153 -1, to help_list.
5154 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5155 not -1, to help_list.
5156 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5157 not -1, to help_list.
5158 * maint.c (maintenance_command, maintenance_info_command)
5159 (maintenance_print_command, maintenance_set_cmd): Pass
5160 all_commands, not -1, to help_list.
5161 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5162 help_list.
5163 * language.c (set_check): Pass all_commands, not -1, to help_list.
5164 * infcmd.c (unset_command): Pass all_commands, not -1, to
5165 help_list.
5166 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5167 help_list.
5168 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5169 help_list.
5170 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5171 help_list.
5172 * breakpoint.c (save_command): Pass all_commands, not -1, to
5173 help_list.
5174 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5175 all_commands, not -1, to help_list.
5176
5177 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5178
5179 * regcache.c (struct register_to_invalidate): New structure.
5180 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5181 functions.
5182 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5183
5184 2014-06-12 Yao Qi <yao@codesourcery.com>
5185
5186 * varobj.c (varobj_get_num_children): Call
5187 varobj_is_dynamic_p.
5188 (varobj_list_children): Likewise.
5189 (varobj_update): Likewise. Update comments.
5190
5191 2014-06-12 Yao Qi <yao@codesourcery.com>
5192
5193 * varobj.c (varobj_pretty_printed_p): Rename to ...
5194 (varobj_is_dynamic_p): ... this. New function.
5195 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5196 (varobj_is_dynamic_p): Declare.
5197 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5198 (mi_print_value_p, varobj_update_one): Likewise.
5199
5200 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5201 Yao Qi <yao@codesourcery.com>
5202
5203 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5204 (varobj_get_iterator): Wrap up code for pretty-printer by
5205 "#if HAVE_PYTHON" and "#endif".
5206 (update_dynamic_varobj_children): Likewise.
5207
5208 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5209 Yao Qi <yao@codesourcery.com>
5210
5211 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5212 gdb_python_initialized is false. Move some code from varobj.c.
5213 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5214 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5215 (struct varobj_item): Moved to varobj-iter.h".
5216 (varobj_clear_saved_item): New function.
5217 (update_dynamic_varobj_children): Move python-related code to
5218 py-varobj.c.
5219 (free_variable): Call varobj_clear_saved_item and
5220 varobj_iter_delete.
5221
5222 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5223 Yao Qi <yao@codesourcery.com>
5224
5225 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5226 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5227 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5228 (py-varobj.o): New rule.
5229 * python/py-varobj.c: New file.
5230 * python/python-internal.h (py_varobj_get_iterator): Declare.
5231 * varobj-iter.h: New file.
5232 * varobj.c: Include "varobj-iter.h"
5233 (struct varobj) <child_iter>: Change its type from "PyObject *"
5234 to "struct varobj_iter *".
5235 <saved_item>: Likewise.
5236 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5237 [HAVE_PYTHON] (varobj_get_iterator): New function.
5238 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5239 python-specific code to python/py-varobj.c.
5240 (install_visualizer): Call varobj_iter_delete instead of
5241 Py_XDECREF.
5242 * varobj.h (varobj_ensure_python_env): Declare.
5243
5244 2014-06-12 Yao Qi <yao@codesourcery.com>
5245
5246 * varobj.c (struct varobj_item): New structure.
5247 (create_child_with_value): Update declaration.
5248 (varobj_add_child): Replace arguments 'name' and 'value' with
5249 'item'. All callers updated.
5250 (install_dynamic_child): Likewise.
5251 (update_dynamic_varobj_children): Likewise.
5252 (varobj_add_child): Likewise.
5253 (create_child_with_value): Likewise.
5254
5255 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5256
5257 * NEWS: Create a new section for the next release branch.
5258 Rename the section of the current branch, now that it has
5259 been cut.
5260
5261 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5262
5263 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5264 * version.in: Bump version to 7.8.50.DATE-cvs.
5265
5266 2014-06-11 Pedro Alves <palves@redhat.com>
5267
5268 PR remote/17028
5269 * ser-mingw.c (net_windows_socket_check_pending): New function.
5270 (net_windows_select_thread): Ignore spurious wakeups. Use
5271 net_windows_socket_check_pending.
5272 (net_windows_wait_handle): Check for pending events with
5273 ioctlsocket, through net_windows_socket_check_pending, instead of
5274 checking the socket's event.
5275
5276 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5277
5278 * python/python-internal.h (gdb_PyObject_GetAttrString)
5279 (gdb_PyObject_HasAttrString): New inline function definitions.
5280 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5281 char * of the second argument to PyObject_GetAttrString.
5282
5283 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5284
5285 * serial.c (serial_write): Fix index of character to be printed
5286 in call to serial_logchar when serial debug traces are enabled.
5287
5288 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5289
5290 * gdbtypes (resolve_dynamic_range): Add function description.
5291
5292 2014-06-09 Pedro Alves <palves@redhat.com>
5293
5294 * linux-nat.c (linux_child_follow_fork): Initialize status with
5295 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5296 inner block. Only pass the signal to PTRACE_DETACH if in pass
5297 state.
5298
5299 2014-06-09 Gary Benson <gbenson@redhat.com>
5300
5301 * common/signals.c (gdb_signal_from_host): Reorder to separate
5302 the always-available ANSI-standard signals from the signals that
5303 require checking.
5304 (do_gdb_signal_to_host): Likewise.
5305 * proc-events.c (signal_table): Likewise.
5306
5307 2014-06-08 Hui Zhu <hui@codesourcery.com>
5308
5309 * common/linux-ptrace.c (linux_disable_event_reporting): New
5310 function.
5311 * common/linux-ptrace.h (linux_disable_event_reporting): New
5312 declaration.
5313 * linux-nat.c (linux_child_follow_fork): Do a single step before
5314 detach.
5315
5316 2014-06-07 Keith Seitz <keiths@redhat.com>
5317
5318 Revert:
5319 PR c++/16253
5320 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5321 from symbol_matches_domain in symtab.c. All local callers
5322 of symbol_matches_domain updated.
5323 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5324 search STRUCT_DOMAIN.
5325 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5326 independently. standard_lookup will do that automatically.
5327 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5328 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5329 (cp_lookup_symbol_in_namespace): Likewise.
5330 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5331 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5332 may return a STRUCT_DOMAIN match.
5333 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5334 * cp-support.c: Include language.h.
5335 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5336 VAR_DOMAIN.
5337 * psymtab.c (match_partial_symbol): Compare the requested
5338 domain with the symbol's domain directly.
5339 (lookup_partial_symbol): Likewise.
5340 * symtab.c (lookup_symbol_in_language): Explain when/why
5341 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5342 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5343 appropriate languages.
5344 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5345 and moved to ada-lang.c
5346 (lookup_block_symbol): Explain that this function only returns
5347 symbol matching the requested DOMAIN.
5348 Compare the requested domain with the symbol's domain directly.
5349 (iterate_over_symbols): Compare the requested domain with the
5350 symbol's domain directly.
5351 * symtab.h (symbol_matches_domain): Remove.
5352
5353 2014-06-06 Doug Evans <xdje42@gmail.com>
5354
5355 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5356 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5357 (gdbscm_guile_version_is_at_least): Declare.
5358 (gdbscm_scm_string_to_int): Declare.
5359 * guile/guile.c (gdbscm_guile_major_version): New global.
5360 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5361 (guile_datadir): New static global.
5362 (gdbscm_guile_data_directory): New function.
5363 (initialize_scheme_side): Update.
5364 (misc_guile_functions): Add guile-data-directory.
5365 (initialize_gdb_module): Fetch guile version number.
5366 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5367 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5368 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5369 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5370 comments.
5371 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5372 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5373 * guile/scm-value.c (gdbscm_value_to_string): Only call
5374 scm_port_conversion_strategy if Guile version >= 2.0.6.
5375
5376 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5377
5378 * main.c (print_gdb_help): Add -q and --silent.
5379
5380 2014-06-06 Gary Benson <gbenson@redhat.com>
5381
5382 * common/signals.c: Remove preprocessor conditionals for
5383 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5384 SIGSEGV and SIGTERM.
5385 * proc-events.c: Likewise.
5386
5387 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5388
5389 * symfile.c (symfile_free_objfile): Remove restriction to
5390 OBJF_USERLOADED.
5391 * symfile-mem.c (symbol_file_add_from_memory): Call
5392 add_target_sections_of_objfile.
5393
5394 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5395
5396 * guile/scm-value.c (gdbscm_history_append_x): Use
5397 'vlscm_get_value_smob_arg_unsafe' instead of
5398 'vlscm_scm_to_value'.
5399
5400 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5401
5402 PR mi/15806
5403 * utils.c (printchar): Don't escape at all if quoter is NUL.
5404 Update function documentation to clarify effect of parameter
5405 QUOTER.
5406 * remote.c (escape_buffer): Pass '\\' as the quoter to
5407 fputstrn_unfiltered.
5408 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5409 generate the output.
5410 (mi_solib_unloaded): Same.
5411
5412 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5413
5414 * development.sh: Delete.
5415 * Makefile.in (config.status): Adjust dependency on development.sh.
5416 * configure.ac: Adjust development.sh source call.
5417 * configure: Regenerate.
5418
5419 2014-06-04 Doug Evans <xdje42@gmail.com>
5420
5421 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5422 is_scheme_bkpt, spec.
5423 (bpscm_make_breakpoint_smob): Initialize new members.
5424 (gdbscm_create_breakpoint_x): Split into two ...
5425 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5426 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5427 (scheme_function breakpoint_functions): Update.
5428 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5429 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5430 register-breakpoint!.
5431
5432 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5433
5434 PR server/17023
5435 * mem-break.c (z_type_supported): Return zero if
5436 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5437
5438 2014-06-04 Tom Tromey <tromey@redhat.com>
5439
5440 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5441 value_from_contents_and_address_unresolved.
5442 (ada_template_to_fixed_record_type_1): Likewise.
5443 (ada_which_variant_applies): Likewise.
5444 * value.h (value_from_contents_and_address_unresolved): Declare.
5445 * value.c (value_from_contents_and_address_unresolved): New
5446 function.
5447 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5448 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5449 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5450
5451 2014-06-04 Tom Tromey <tromey@redhat.com>
5452
5453 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5454
5455 2014-06-04 Tom Tromey <tromey@redhat.com>
5456
5457 * procfs.c (procfs_attach): Make "args" const.
5458 * windows-nat.c (windows_attach): Make "args" const.
5459 * nto-procfs.c (procfs_attach): Make "args" const.
5460 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5461 * go32-nat.c (go32_attach): Make "args" const.
5462 * gnu-nat.c (gnu_attach): Make "args" const.
5463 * darwin-nat.c (darwin_attach): Make "args" const.
5464 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5465 * linux-nat.c (linux_nat_attach): Make "args" const.
5466 * remote.c (extended_remote_attach_1, extended_remote_attach):
5467 Make "args" const.
5468 * target.h (struct target_ops) <to_attach>: Make "args" const.
5469 (find_default_attach): Likewise.
5470 * utils.c (parse_pid_to_attach): Make "args" const.
5471 * utils.h (parse_pid_to_attach): Update.
5472
5473 2014-06-04 Tom Tromey <tromey@redhat.com>
5474
5475 * target-delegates.c: Rebuild.
5476 * target.c (default_thread_address_space): New function.
5477 (target_thread_address_space): Simplify.
5478 * target.h (struct target_ops) <to_thread_address_space>: Add
5479 TARGET_DEFAULT_FUNC.
5480
5481 2014-06-04 Doug Evans <xdje42@gmail.com>
5482
5483 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5484
5485 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5486
5487 * record-btrace.c: Include event-loop.h and inf-loop.h.
5488 (record_btrace_resume_exec_dir)
5489 (record_btrace_async_inferior_event_handler)
5490 (record_btrace_handle_async_inferior_event): New.
5491 (record_btrace_open): Create async event handler.
5492 (record_btrace_close): Delete async event handler.
5493 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5494 Mark async event handler.
5495 (record_btrace_execution_direction): New.
5496 (init_record_btrace_ops): Initialize to_execution_direction.
5497
5498 2014-06-03 Doug Evans <xdje42@gmail.com>
5499
5500 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5501 (gdbscm_make_parameter): Ditto.
5502
5503 2014-06-03 Doug Evans <dje@google.com>
5504
5505 * exec.c (exec_close_1): Call clear_section_table instead of
5506 resize_section_table.
5507 (clear_section_table): New function.
5508 (resize_section_table): Make static. Rename arg num_added to
5509 adjustment.
5510 * exec.h (clear_section_table): Declare.
5511 (resize_section_table): Delete.
5512 * progspace.c (release_program_space): Call clear_section_table
5513 instead of resize_section_table.
5514
5515 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5516
5517 * NEWS (Python Scripting): Add entry about the new xmethods
5518 feature.
5519
5520 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5521
5522 * python/py-xmethods.c: New file.
5523 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5524 (objfpy_dealloc): XDECREF on the new xmethods field.
5525 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5526 field.
5527 (objfpy_get_xmethods): New function.
5528 (objfile_getset): New entry 'xmethods'.
5529 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5530 (pspy_dealloc): XDECREF on the new xmethods field.
5531 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5532 field.
5533 (pspy_get_xmethods): New function.
5534 (pspace_getset): New entry 'xmethods'.
5535 * python/python-internal.h: Add declarations for new functions.
5536 * python/python.c (_initialize_python): Invoke
5537 gdbpy_initialize_xmethods.
5538 * python/lib/gdb/__init__.py (xmethods): New
5539 attribute.
5540 * python/lib/gdb/xmethod.py: New file.
5541 * python/lib/gdb/command/xmethods.py: New file.
5542
5543 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5544
5545 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5546 best match method returned by find_overload_match is an xmethod.
5547 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5548 the best matching operator returned by find_overload_match is an
5549 xmethod.
5550 * valops.c: #include "extension.h".
5551 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5552 Return void. The list of matching source methods is returned in
5553 "fn_list" and a vector of matching debug method workers is
5554 returned in "xm_worker_vec". Update all callers.
5555 (value_find_oload_method_list): Likewise.
5556 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5557 non-NULL, then the index of the best matching method in this
5558 vector is returned. Update all callers.
5559 (find_overload_match): Include xmethods while performing overload
5560 resolution.
5561
5562 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5563
5564 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5565 * extension-priv.h (struct extension_language_ops): Add the
5566 xmethod interface.
5567 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5568 get_matching_xmethod_workers, get_xmethod_argtypes,
5569 invoke_xmethod, free_xmethod_worker,
5570 free_xmethod_worker_vec): New functions.
5571 * extension.h: #include "common/vec.h".
5572 New function declarations.
5573 (struct xmethod_worker): New struct.
5574 (VEC (xmethod_worker_ptr)): New vector type.
5575 (xmethod_worker_ptr): New typedef.
5576 (xmethod_worker_vec): Likewise.
5577 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5578 builtin_type.
5579 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5580 (struct builtin_type): New field "xmethod".
5581 * valarith.c (value_ptradd): Assert that the value argument is not
5582 lval_xcallable.
5583 * valops.c (value_must_coerce_to_target): Return 0 for
5584 lval_xcallable values.
5585 * value.c (struct value): New field XM_WORKER in the field
5586 LOCATION.
5587 (value_address, value_raw_address): Return 0 for lval_xcallable
5588 values.
5589 (set_value_address): Assert that the value is not an
5590 lval_xcallable.
5591 (value_free): Free the associated xmethod worker when freeing
5592 lval_xcallable values.
5593 (set_value_component_location): Assert that the WHOLE value is not
5594 lval_xcallable.
5595 (value_of_xmethod, call_xmethod): New functions.
5596 * value.h: Declare "struct xmethod_worker".
5597 Declare new functions value_of_xmethod, call_xmethod.
5598
5599 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5600 Pedro Alves <palves@redhat.com>
5601
5602 PR breakpoints/17000
5603 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5604 New function, extracted from software_breakpoint_inserted_here_p.
5605 (software_breakpoint_inserted_here_p): Replace factored out code
5606 by call to find_non_raw_software_breakpoint_inserted_here.
5607 (bp_target_info_copy_insertion_state): New function.
5608 (bkpt_insert_location): Handle the case of a single-step
5609 breakpoint already inserted at the same address.
5610 (bkpt_remove_location): Handle the case of a single-step
5611 breakpoint still inserted at the same address.
5612 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5613 breakpoint already inserted at the same address.
5614 (deprecated_remove_raw_breakpoint): Handle the case of a
5615 non-raw breakpoint still inserted at the same address.
5616 (find_single_step_breakpoint): New function, extracted from
5617 single_step_breakpoint_inserted_here_p.
5618 (find_single_step_breakpoint): New function,
5619 factored out from single_step_breakpoint_inserted_here_p.
5620 (single_step_breakpoint_inserted_here_p): Reimplement.
5621
5622 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5623
5624 Pushed by Joel Brobecker <brobecker@adacore.com>
5625 * source.c (show_substitute_path_command): Fix display of matching
5626 substitution rules.
5627
5628 2014-06-03 Gary Benson <gbenson@redhat.com>
5629
5630 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5631
5632 2014-06-02 Doug Evans <xdje42@gmail.com>
5633
5634 Add parameter support for Guile.
5635 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5636 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5637 (scm-param.o): New rule.
5638 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5639 (gdbscm_misc_error): Declare.
5640 (gdbscm_canonicalize_command_name): Declare.
5641 (gdbscm_scm_to_host_string): Declare.
5642 (gdbscm_scm_from_host_string): Declare.
5643 (gdbscm_initialize_parameters): Declare.
5644 * guile/guile.c (initialize_gdb_module): Call
5645 gdbscm_initialize_parameters.
5646 * guile/lib/gdb.scm: Export parameter symbols.
5647 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5648 cmdscm_canonicalize_name and made public. All callers updated.
5649 * guile/scm-exception.c (gdbscm_misc_error): New function.
5650 * guile/scm-param.c: New file.
5651 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5652 (gdbscm_scm_to_host_string): New function.
5653 (gdbscm_scm_from_host_string): New function.
5654 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5655
5656 2014-06-02 Doug Evans <xdje42@gmail.com>
5657
5658 Add command support for Guile.
5659 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5660 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5661 (scm-cmd.o): New rule.
5662 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5663 (gdbscm_user_error_p): Declare.
5664 (gdbscm_parse_command_name): Declare.
5665 (gdbscm_valid_command_class_p): Declare.
5666 (gdbscm_initialize_commands): Declare.
5667 * guile/guile.c (initialize_gdb_module): Call
5668 gdbscm_initialize_commands.
5669 * guile/lib/gdb.scm: Export command symbols.
5670 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5671 (throw-user-error): New function.
5672 * guile/scm-cmd.c: New file.
5673 * guile/scm-exception.c (user_error_symbol): New static global.
5674 (gdbscm_user_error_p): New function.
5675 (gdbscm_initialize_exceptions): Set user_error_symbol.
5676 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5677
5678 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5679
5680 * top.c (command_loop): Handle comments here...
5681 (command_line_input): ... not here.
5682
5683 2014-06-02 Doug Evans <xdje42@gmail.com>
5684
5685 Add progspace support for Guile.
5686 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5687 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5688 (scm-progspace.o): New rule.
5689 * guile/guile-internal.h (pspace_smob): New typedef.
5690 (psscm_pspace_smob_pretty_printers): Declare.
5691 (psscm_pspace_smob_from_pspace): Declare.
5692 (psscm_scm_from_pspace): Declare.
5693 * guile/guile.c (initialize_gdb_module): Call
5694 gdbscm_initialize_pspaces.
5695 * guile/lib/gdb.scm: Export progspace symbols.
5696 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5697 support.
5698 (append-pretty-printer!): Ditto.
5699 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5700 Implement.
5701 * guile/scm-progspace.c: New file.
5702
5703 2014-06-03 Alan Modra <amodra@gmail.com>
5704
5705 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5706 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5707
5708 2014-06-02 Doug Evans <dje@google.com>
5709
5710 Add support for skeletonless type units.
5711 * dwarf2read.c (struct dwarf2_per_objfile): New member
5712 n_allocated_type_units.
5713 (struct dwarf2_per_objfile) <tu_stats>: New member
5714 nr_all_type_units_reallocs.
5715 (create_signatured_type_table_from_index): Initialize
5716 n_allocated_type_units
5717 (create_all_type_units): Ditto.
5718 (add_type_unit): Move up in file. New arg slot.
5719 All callers updated. Increase space for all_type_units more
5720 efficiently.
5721 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5722 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5723 (lookup_dwp_signatured_type): Ditto.
5724 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5725 All callers updated.
5726 (build_type_psymtabs_1): Leave type_unit_groups as
5727 NULL if no TUs present.
5728 (print_tu_stats): New function.
5729 (process_skeletonless_type_unit): New function.
5730 (process_dwo_file_for_skeletonless_type_units): New
5731 function.
5732 (process_skeletonless_type_units): New function.
5733 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5734 Call print tu_stats if debugging enabled.
5735
5736 2014-06-02 Pedro Alves <palves@redhat.com>
5737
5738 * breakpoint.c (build_target_command_list): Don't build a command
5739 list if we have any duplicate location that isn't a dprintf.
5740
5741 2014-06-02 Pedro Alves <palves@redhat.com>
5742
5743 * breakpoint.c (dprintf_breakpoint_hit): New function.
5744 (initialize_breakpoint_ops): Install it as dprintf's
5745 breakpoint_hit method.
5746
5747 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5748
5749 * source.c (substitute_path_rule_matches): Simplify using
5750 filename_ncmp instead of FILENAME_CMP.
5751
5752 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5753
5754 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5755
5756 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5757
5758 * configure.ac: When Guile is available, check for the
5759 availability of 'scm_new_smob'.
5760 * configure, config.h.in: Regenerate.
5761 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5762 function.
5763
5764 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5765
5766 * frame.c (struct frame_info): Add stop_string field.
5767 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5768 (get_prev_frame_always): Old content moved into
5769 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5770 TRY_CATCH, handle MEMORY_ERROR exceptions.
5771 (frame_stop_reason_string): New function definition.
5772 * frame.h (unwind_stop_reason_to_string): Extend comment to
5773 mention frame_stop_reason_string.
5774 (frame_stop_reason_string): New function declaration.
5775 * stack.c (frame_info): Switch to frame_stop_reason_string.
5776 (backtrace_command_1): Switch to frame_stop_reason_string.
5777 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5778 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5779 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5780
5781 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5782
5783 * frame.c (frame_stop_reason_string): Rename to ...
5784 (unwind_stop_reason_to_string): this.
5785 * frame.h (frame_stop_reason_string): Rename to ...
5786 (unwind_stop_reason_to_string): this.
5787 * stack.c (frame_info): Update call to frame_stop_reason_string.
5788 (backtrace_command_1): Likewise.
5789 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5790 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5791
5792 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5793
5794 * frame.c (remove_prev_frame): New function.
5795 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5796 remove_prev_frame.
5797
5798 2014-05-29 Pedro Alves <palves@redhat.com>
5799
5800 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5801 and make it const. When a single-step decays to a continue,
5802 clear 'step', not 'hw_step'. Pass whether the caller wanted
5803 to step to user_visible_resume_ptid, not what we ask the
5804 target to do.
5805
5806 2014-05-29 Pedro Alves <palves@redhat.com>
5807
5808 * infrun.c (process_event_stop_test, handle_step_into_function)
5809 (handle_step_into_function_backward): Adjust.
5810 Don't set the even thread's stop_step and call stop_waiting before
5811 calling end_stepping_range. Instead do that ...
5812 (end_stepping_range): ... here. Take an ecs pointer parameter.
5813
5814 2014-05-29 Pedro Alves <palves@redhat.com>
5815
5816 * infrun.c (stop_stepping): Rename to ...
5817 (stop_waiting): ... this.
5818 (proceed): Update comment.
5819 (process_event_stop_test, handle_inferior_event)
5820 (handle_signal_stop, handle_step_into_function)
5821 (handle_step_into_function_backward): Update.
5822
5823 2014-05-29 Pedro Alves <palves@redhat.com>
5824
5825 * infcall.c (run_inferior_call): Don't check whether the current
5826 thread is running after the proceed call.
5827
5828 2014-05-29 Pedro Alves <palves@redhat.com>
5829 Tom Tromey <tromey@redhat.com>
5830
5831 * NEWS: Mention "maint set target-async", "set mi-async", and that
5832 background execution commands are now always available.
5833 * target.h (target_async_permitted): Update comment.
5834 * target.c (target_async_permitted, target_async_permitted_1):
5835 Default to 1.
5836 (set_target_async_command): Rename to ...
5837 (maint_set_target_async_command): ... this.
5838 (show_target_async_command): Rename to ...
5839 (maint_show_target_async_command): ... this.
5840 (_initialize_target): Adjust.
5841 * infcmd.c (prepare_execution_command): Make extern.
5842 * inferior.h (prepare_execution_command): Declare.
5843 * infrun.c (set_observer_mode): Leave target async alone.
5844 * mi/mi-interp.c (mi_interpreter_init): Install
5845 mi_on_sync_execution_done as sync_execution_done observer.
5846 (mi_on_sync_execution_done): New function.
5847 (mi_execute_command_input_handler): Don't print the prompt if we
5848 just started a synchronous command with an async target.
5849 (mi_on_resume): Check sync_execution before printing prompt.
5850 * mi/mi-main.h (mi_async_p): Declare.
5851 * mi/mi-main.c: Include gdbcmd.h.
5852 (mi_async_p): New function.
5853 (mi_async, mi_async_1): New globals.
5854 (set_mi_async_command, show_mi_async_command, mi_async): New
5855 functions.
5856 (exec_continue): Call prepare_execution_command.
5857 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5858 (mi_execute_async_cli_command): Use mi_async_p.
5859 (_initialize_mi_main): Install "set mi-async". Make
5860 "target-async" a deprecated alias.
5861
5862 2014-05-29 Pedro Alves <palves@redhat.com>
5863
5864 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5865 (_initialize_cli_interp): Adjust.
5866 * event-loop.c: Include "observer.h".
5867 (start_event_loop): Notify 'command_error' observers instead of
5868 calling display_gdb_prompt. Remove FIXME comment.
5869 * event-top.c (display_gdb_prompt): Remove call into the
5870 interpreters.
5871 * inf-loop.c: Include "observer.h".
5872 (inferior_event_handler): Notify 'command_error' observers instead
5873 of calling display_gdb_prompt.
5874 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5875 observers instead of calling display_gdb_prompt.
5876 * interps.c (interp_set): Don't call display_gdb_prompt.
5877 (current_interp_display_prompt_p): Delete.
5878 * interps.h (interp_prompt_p): Delete declaration.
5879 (interp_prompt_p_ftype): Delete.
5880 (struct interp_procs) <prompt_proc_p>: Delete field.
5881 (current_interp_display_prompt_p): Delete declaration.
5882 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5883 (_initialize_mi_interp): Adjust.
5884 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5885 'command_error' observers.
5886 (tui_on_sync_execution_done, tui_on_command_error): New
5887 functions.
5888 (tui_display_prompt_p): Delete.
5889 (_initialize_tui_interp): Adjust.
5890
5891 2014-05-29 Pedro Alves <palves@redhat.com>
5892
5893 PR gdb/13860
5894 * cli/cli-interp.c: Include infrun.h and observer.h.
5895 (cli_uiout, cli_interp): New globals.
5896 (cli_on_signal_received, cli_on_end_stepping_range)
5897 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5898 functions.
5899 (cli_interpreter_init): Install them as 'end_stepping_range',
5900 'signal_received' 'signal_exited', 'exited' and 'no_history'
5901 observers.
5902 (_initialize_cli_interp): Remove cli_interp local.
5903 * infrun.c (handle_inferior_event): Call the several stop reason
5904 observers instead of printing the stop reason directly.
5905 (end_stepping_range): New function.
5906 (print_end_stepping_range_reason, print_signal_exited_reason)
5907 (print_exited_reason, print_signal_received_reason)
5908 (print_no_history_reason): Make static, and add an uiout
5909 parameter. Print to that instead of to CURRENT_UIOUT.
5910 * infrun.h (print_end_stepping_range_reason)
5911 (print_signal_exited_reason, print_exited_reason)
5912 (print_signal_received_reason print_no_history_reason): New
5913 declarations.
5914 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5915 'mi_uiout'.
5916 <cli_uiout>: New field.
5917 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5918 uiout for CLI output. Install 'signal_received',
5919 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5920 observers.
5921 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5922 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5923 (mi_on_no_history): New functions.
5924 (ui_out_free_cleanup): Delete function.
5925 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5926 instead use the one already stored in the MI interpreter data.
5927 (mi_ui_out): Adjust.
5928 * tui/tui-interp.c: Include infrun.h and observer.h.
5929 (tui_interp): New global.
5930 (tui_on_signal_received, tui_on_end_stepping_range)
5931 (tui_on_signal_exited, tui_on_exited)
5932 (tui_on_no_history): New functions.
5933 (tui_init): Install them as 'end_stepping_range',
5934 'signal_received' 'signal_exited', 'exited' and 'no_history'
5935 observers.
5936 (_initialize_tui_interp): Delete tui_interp local.
5937
5938 2014-05-29 Pedro Alves <palves@redhat.com>
5939
5940 PR gdb/15713
5941 * linux-nat.c (linux_nat_resume_callback): Rename the second
5942 parameter to 'except'. Skip LP if it points to EXCEPT.
5943 (linux_nat_resume): Don't mark the event lwp as not stopped
5944 before resuming sibling lwps. Instead ask
5945 linux_nat_resume_callback to skip the event lwp. Mark it as not
5946 stopped after actually resuming it.
5947 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5948 resuming it.
5949 (wait_lwp): Mark the lwp as stopped here.
5950 (stop_wait_callback): Mark the lwp as not stopped right after
5951 resuming it. Don't mark lwps as stopped here.
5952 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5953 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5954
5955 2014-05-29 Pedro Alves <palves@redhat.com>
5956
5957 PR PR15693
5958 * infrun.c (resume): Determine how much to resume depending on
5959 whether the caller wanted a step, not whether we can hardware step
5960 the target. Mark all threads that we intend to run as running,
5961 unless we're calling an inferior function.
5962 (normal_stop): If the thread is running an infcall, don't finish
5963 thread state.
5964 * target.c (target_resume): Don't mark threads as running here.
5965
5966 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5967
5968 * serial.c (_initialize_serial): Remove support for
5969 the "set remotebaud" and "show remotebaud" commands.
5970 * NEWS: Add entry documenting the removal of that command.
5971
5972 2014-05-28 Yao Qi <yao@codesourcery.com>
5973
5974 * charset.c: Fix typo in comments.
5975
5976 2014-05-27 Gary Benson <gbenson@redhat.com>
5977
5978 * utils.c (internal_vproblem): Prompt for a bug report.
5979
5980 2014-05-26 Andy Wingo <wingo@igalia.com>
5981
5982 * guile/scm-arch.c (arscm_mark_arch_smob):
5983 * guile/scm-block.c (bkscm_mark_block_smob)
5984 (bkscm_mark_block_syms_progress_smob):
5985 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5986 * guile/scm-exception.c (exscm_mark_exception_smob):
5987 * guile/scm-frame.c (frscm_mark_frame_smob):
5988 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5989 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5990 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5991 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5992 (ppscm_mark_pretty_printer_worker_smob):
5993 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5994 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5995 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5996 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5997 mark functions.
5998 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5999 function.
6000
6001 2014-05-26 Andy Wingo <wingo@igalia.com>
6002 Doug Evans <xdje42@gmail.com>
6003
6004 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6005 empty_base_class. All uses updated.
6006 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6007 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6008 Adapt all callers.
6009 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6010 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6011 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6012 (gdbscm_gsmob_has_property_p, add_property_name)
6013 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6014 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6015 (gdb-object-has-property?, gdb-object-properties): Remove.
6016 (gdb-object-kind): Renamed from gsmob-kind.
6017
6018 2014-05-26 Andy Wingo <wingo@igalia.com>
6019
6020 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6021 * configure: Regenerate.
6022
6023 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6024
6025 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6026
6027 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6028
6029 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6030 (replay_memory_access_read_only, replay_memory_access_read_write)
6031 (replay_memory_access_types, replay_memory_access)
6032 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6033 (cmd_set_record_btrace, cmd_show_record_btrace)
6034 (cmd_show_replay_memory_access): New.
6035 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6036 (record_btrace_remove_breakpoint): Replace
6037 record_btrace_allow_memory_access with replay_memory_access.
6038 (_initialize_record_btrace): Add commands.
6039 * NEWS: Announce it.
6040
6041 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6042
6043 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6044
6045 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6046
6047 * MAINTAINERS (Write After Approval): Move self back from
6048 paper trail.
6049
6050 2014-05-22 Pedro Alves <palves@redhat.com>
6051
6052 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6053 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6054 (disable_randomization, enum exec_direction_kind)
6055 (execution_direction, stop_registers, start_remote)
6056 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6057 (wait_for_inferior, normal_stop, get_last_target_status)
6058 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6059 (insert_step_resume_breakpoint_at_sal)
6060 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6061 (set_step_info, print_stop_event, signal_stop_state)
6062 (signal_print_state, signal_pass_state, signal_stop_update)
6063 (signal_print_update, signal_pass_update)
6064 (update_signals_program_target, clear_exit_convenience_vars)
6065 (displaced_step_dump_bytes, update_observer_mode)
6066 (signal_catch_update, gdb_signal_from_command): Move
6067 declarations ...
6068 * infrun.h: ... to this new file.
6069 * amd64-tdep.c: Include infrun.h.
6070 * annotate.c: Include infrun.h.
6071 * arch-utils.c: Include infrun.h.
6072 * arm-linux-tdep.c: Include infrun.h.
6073 * arm-tdep.c: Include infrun.h.
6074 * break-catch-sig.c: Include infrun.h.
6075 * breakpoint.c: Include infrun.h.
6076 * common/agent.c: Include infrun.h instead of inferior.h.
6077 * corelow.c: Include infrun.h.
6078 * event-top.c: Include infrun.h.
6079 * go32-nat.c: Include infrun.h.
6080 * i386-tdep.c: Include infrun.h.
6081 * inf-loop.c: Include infrun.h.
6082 * infcall.c: Include infrun.h.
6083 * infcmd.c: Include infrun.h.
6084 * infrun.c: Include infrun.h.
6085 * linux-fork.c: Include infrun.h.
6086 * linux-nat.c: Include infrun.h.
6087 * linux-thread-db.c: Include infrun.h.
6088 * monitor.c: Include infrun.h.
6089 * nto-tdep.c: Include infrun.h.
6090 * procfs.c: Include infrun.h.
6091 * record-btrace.c: Include infrun.h.
6092 * record-full.c: Include infrun.h.
6093 * remote-m32r-sdi.c: Include infrun.h.
6094 * remote-mips.c: Include infrun.h.
6095 * remote-notif.c: Include infrun.h.
6096 * remote-sim.c: Include infrun.h.
6097 * remote.c: Include infrun.h.
6098 * reverse.c: Include infrun.h.
6099 * rs6000-tdep.c: Include infrun.h.
6100 * s390-linux-tdep.c: Include infrun.h.
6101 * solib-irix.c: Include infrun.h.
6102 * solib-osf.c: Include infrun.h.
6103 * solib-svr4.c: Include infrun.h.
6104 * target.c: Include infrun.h.
6105 * top.c: Include infrun.h.
6106 * windows-nat.c: Include infrun.h.
6107 * mi/mi-interp.c: Include infrun.h.
6108 * mi/mi-main.c: Include infrun.h.
6109 * python/py-threadevent.c: Include infrun.h.
6110
6111 2014-05-22 Pedro Alves <palves@redhat.com>
6112
6113 * infrun.c (handle_inferior_event): Store the exit code for
6114 --return-child-result here, instead of ...
6115 (print_exited_reason): ... here.
6116
6117 2014-05-21 Pedro Alves <palves@redhat.com>
6118
6119 PR gdb/13860
6120 * gdbthread.h (struct thread_control_state): New field
6121 `command_interp'.
6122 * infrun.c (follow_fork): Copy the new thread control field to the
6123 child fork thread.
6124 (clear_proceed_status_thread): Clear the new thread control field.
6125 (proceed): Set the new thread control field.
6126 * interps.h (command_interp): Declare.
6127 * interps.c (command_interpreter): New global.
6128 (command_interp): New function.
6129 (interp_exec): Set `command_interpreter' while here.
6130 * cli-out.c (cli_uiout_dtor): New function.
6131 (cli_ui_out_impl): Install it.
6132 * mi/mi-interp.c: Include cli-out.h.
6133 (mi_cmd_interpreter_exec): Add comment.
6134 (restore_current_uiout_cleanup): New function.
6135 (ui_out_free_cleanup): New function.
6136 (mi_on_normal_stop): If finishing an execution command started by
6137 a CLI command, or any kind of breakpoint-like event triggered,
6138 print the stop event to the output (CLI) stream.
6139 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6140
6141 2014-05-21 Pedro Alves <palves@redhat.com>
6142
6143 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6144 current source line having changed.
6145 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6146 * infrun.c (normal_stop): Adjust call to
6147 set_current_sal_from_frame.
6148 * source.c (clear_lines_listed_range): New function.
6149 (set_current_source_symtab_and_line, identify_source_line): Clear
6150 the lines listed range.
6151 (line_info): Handle the first "info line" after the current source
6152 line having changed.
6153 * stack.c (print_stack_frame): Remove center handling.
6154 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6155 center sal.line.
6156
6157 2014-05-21 Pedro Alves <palves@redhat.com>
6158
6159 * inf-child.c (inf_child_mourn_inferior): New function.
6160 * inf-child.h (inf_child_mourn_inferior): New declaration.
6161 * darwin-nat.c (darwin_mourn_inferior): Use
6162 inf_child_mourn_inferior.
6163 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6164 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6165 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6166 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6167 * windows-nat.c (windows_mourn_inferior): Likewise.
6168
6169 2014-05-21 Doug Evans <xdje42@gmail.com>
6170
6171 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6172
6173 2014-05-21 Doug Evans <xdje42@gmail.com>
6174
6175 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6176 (gdbscm_out_of_range_error): Ditto.
6177 (gdbscm_memory_error): Ditto.
6178 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6179 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6180 (gdbscm_out_of_range_error): Update.
6181 (gdbscm_memory_error): Update.
6182 (gdbscm_scm_to_target_string_unsafe): Delete.
6183
6184 2014-05-21 Pedro Alves <palves@redhat.com>
6185
6186 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6187 globals.
6188 (inf_child_open_target): New function.
6189 (inf_child_open): Use inf_child_open_target to push the target
6190 instead of erroring out.
6191 (inf_child_disconnect, inf_child_close)
6192 (inf_child_maybe_unpush_target): New functions.
6193 (inf_child_target): Install inf_child_disconnect and
6194 inf_child_close. Store a pointer to the returned object.
6195 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6196 declarations.
6197 * target.c (auto_connect_native_target): New global.
6198 (show_default_run_target): New function.
6199 (find_default_run_target): Return NULL if automatically connecting
6200 to the native target is disabled.
6201 (_initialize_target): Install set/show auto-connect-native-target.
6202 * NEWS: Mention "set auto-connect-native-target", and "target
6203 native".
6204 * linux-nat.c (super_close): New global.
6205 (linux_nat_close): Call super_close.
6206 (linux_nat_add_target): Store a pointer to the base class's
6207 to_close method.
6208 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6209 inf_child_maybe_unpush.
6210 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6211 already pushed.
6212 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6213 the inferior. Use inf_child_maybe_unpush_target.
6214 (inf_ttrace_attach): Don't push the target if it is already
6215 pushed.
6216 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6217 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6218 after mourning the inferior. Use inf_child_maybe_unpush_target.
6219 (darwin_attach_pid): Don't push the target if it is already
6220 pushed.
6221 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6222 mourning the inferior. Use inf_child_maybe_unpush_target.
6223 (gnu_detach): Use inf_child_maybe_unpush_target.
6224 * go32-nat.c (go32_create_inferior): Don't push the target if it
6225 is already pushed.
6226 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6227 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6228 (procfs_open): Rename to ...
6229 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6230 comments. Can target_preopen before changing node. Call
6231 inf_child_open_target to push the target explicitly.
6232 (procfs_attach): Don't push the target if it is already pushed.
6233 (procfs_detach): Use inf_child_maybe_unpush_target.
6234 (procfs_create_inferior): Don't push the target if it is already
6235 pushed.
6236 (nto_native_ops): New global.
6237 (procfs_open): Reimplement.
6238 (procfs_native_open): New function.
6239 (init_procfs_targets): Install procfs_native_open as to_open of
6240 "target native". Store a pointer to the "native" target in
6241 nto_native_ops.
6242 * procfs.c (procfs_attach): Don't push the target if it is already
6243 pushed.
6244 (procfs_detach): Use inf_child_maybe_unpush_target.
6245 (procfs_mourn_inferior): Only unpush the target after mourning the
6246 inferior. Use inf_child_maybe_unpush_target.
6247 (procfs_init_inferior): Don't push the target if it is already
6248 pushed.
6249 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6250 if it is already pushed.
6251
6252 2014-05-21 Pedro Alves <palves@redhat.com>
6253
6254 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6255 and "procfs" targets are now called "native" instead.
6256
6257 2014-05-21 Pedro Alves <palves@redhat.com>
6258
6259 * go32-nat.c (go32_open): Delete.
6260 (go32_target): Don't override the to_open method.
6261
6262 2014-05-21 Pedro Alves <palves@redhat.com>
6263
6264 * nto-procfs.c (procfs_can_run): New function.
6265 (nto_procfs_ops): New global.
6266 (init_procfs_targets): New, based on procfs_target. Install
6267 "target native" in addition to "target procfs".
6268 (_initialize_procfs): Call init_procfs_targets instead of adding
6269 the target here.
6270
6271 2014-05-21 Pedro Alves <palves@redhat.com>
6272
6273 * windows-nat.c (windows_target): Don't override to_shortname,
6274 to_longname or to_doc.
6275
6276 2014-05-21 Pedro Alves <palves@redhat.com>
6277
6278 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6279 to_doc.
6280
6281 2014-05-21 Pedro Alves <palves@redhat.com>
6282
6283 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6284 to_shortname, to_longname or to_doc.
6285
6286 2014-05-21 Pedro Alves <palves@redhat.com>
6287
6288 * go32-nat.c (go32_target): Don't override to_shortname,
6289 to_longname or to_doc.
6290
6291 2014-05-21 Pedro Alves <palves@redhat.com>
6292
6293 * inf-child.c (inf_child_open): Remove mention of "child".
6294 (inf_child_target): Rename target to "native" instead of "child".
6295
6296 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6297
6298 * Makefile.in (SFILES): Delete "regset.c".
6299 (COMMON_OBS): Delete "regset.o".
6300 * regset.c: Remove.
6301 * regset.h (regset_alloc): Delete prototype.
6302
6303 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6304
6305 * sparc-linux-tdep.c (sparc32_linux_gregset)
6306 (sparc32_linux_fpregset): New static regset structures.
6307 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6308 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6309 'fpregset' fields.
6310 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6311 (sparc64_linux_fpregset): New static regset structures.
6312 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6313 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6314 New static regset structures.
6315 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6316 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6317 New static regset structures.
6318 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6319 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6320 New static regset structures.
6321 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6322 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6323 New static regset structures.
6324 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6325
6326 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6327
6328 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6329 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6330 register maps ("regmaps") from "*regset" to "*regmap". Do this
6331 for all regmap types and variables.
6332 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6333 (sparc32_linux_supply_core_gregset)
6334 (sparc32_linux_collect_core_gregset)
6335 (sparc32_linux_supply_core_fpregset)
6336 (sparc32_linux_collect_core_fpregset): Likewise.
6337 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6338 (sparc_gregmap, sparc_fpregmap): ... these.
6339 (sparc_supply_gregset, sparc_collect_gregset)
6340 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6341 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6342 (_initialize_sparc_nat): Rename regmaps.
6343 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6344 (sparc_gregmap, sparc_fpregmap): ... these.
6345 (sparc_supply_gregset, sparc_collect_gregset)
6346 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6347 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6348 Rename macros to...
6349 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6350 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6351 Likewise.
6352 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6353 Rename to...
6354 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6355 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6356 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6357 regmaps.
6358 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6359 (sparc32_bsd_fpregset): Rename to...
6360 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6361 (sparc32_bsd_fpregmap): ... these.
6362 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6363 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6364 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6365 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6366 (struct sparc_gregmap, struct sparc_fpregmap)
6367 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6368 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6369 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6370 (sparc32_supply_regset, sparc32_collect_gregset)
6371 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6372 prototypes.
6373 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6374 (sparc64_linux_ptrace_gregmap): ... this.
6375 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6376 (_initialize_sparc64_linux_nat): Rename regmaps.
6377 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6378 (sparc64_linux_core_gregmap): ... this.
6379 (sparc64_linux_supply_core_gregset)
6380 (sparc64_linux_collect_core_gregset)
6381 (sparc64_linux_supply_core_fpregset)
6382 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6383 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6384 (sparc64_sol2_fpregset): Rename to...
6385 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6386 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6387 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6388 regmaps.
6389 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6390 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6391 (sparc64_bsd_fpregset): Rename to...
6392 (struct sparc_gregmap, sparc64_sol2_gregmap)
6393 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6394 (sparc64_bsd_fpregmap): ... these.
6395 (sparc64_supply_gregset, sparc64_collect_gregset)
6396 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6397 prototypes.
6398 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6399 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6400 (sparc64fbsd_gregmap): ... this.
6401 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6402 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6403 Rename regmaps.
6404 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6405 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6406 (sparc64nbsd_collect_fpregset): Likewise.
6407 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6408 (sparc64nbsd_gregmap): ... this.
6409 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6410 regmaps.
6411 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6412 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6413 (sparc64obsd_gregmap): ... this.
6414 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6415 regmaps.
6416 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6417 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6418 (sparc32nbsd_gregmap): ... this.
6419 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6420 regmaps.
6421
6422 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6423
6424 * score-tdep.c (score7_linux_gregset): New static regset
6425 structure.
6426 (score7_linux_regset_from_core_section): Remove dynamic regset
6427 allocation.
6428 (score_gdbarch_init): Drop allocation of tdep structure.
6429 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6430
6431 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6432
6433 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6434 regset structures.
6435 (am33_regset_from_core_section): Remove dynamic regset
6436 allocations.
6437
6438 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6439
6440 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6441 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6442 structures.
6443 (mips_linux_regset_from_core_section): Remove dynamic regset
6444 allocations.
6445 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6446 'gregset64', 'fpregset', and 'fpregset64'.
6447 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6448 deleted tdep fields.
6449
6450 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6451
6452 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6453 regset structures.
6454 (amd64_regset_from_core_section): Remove dynamic regset
6455 allocations.
6456 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6457 structure.
6458 (amd64obsd_regset_from_core_section): Remove dynamic regset
6459 allocation.
6460 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6461 Likewise.
6462 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6463 x86-common regset supply function.
6464 * i386-tdep.c (i386_collect_gregset): Make static.
6465 (i386_gregset): New global regset structure.
6466 (i386_fpregset, i386_xstateregset): New static regset structures.
6467 (i386_regset_from_core_section): Remove dynamic regset
6468 allocations.
6469 (i386_gdbarch_init): Remove initialization of tdep fields
6470 'gregset', 'fpregset', and 'xstateregset'.
6471 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6472 'fpregset', and 'xstateregset'.
6473 (i386_collect_gregset): Remove prototype.
6474 (i386_gregset): New declaration.
6475 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6476 structure.
6477 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6478 allocation.
6479
6480 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6481
6482 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6483 (arm_linux_vfpregset): New static regset structures.
6484 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6485 regset structures.
6486 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6487 and 'vfpregset' fields.
6488
6489 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6490
6491 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6492 (aarch64_linux_fpregset): New static regset structures.
6493 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6494 of regset structures.
6495 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6496 'fpregset' fields.
6497
6498 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6499
6500 * regset.h (struct regset): Remove gdbarch field.
6501 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6502 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6503 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6504 Likewise.
6505 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6506 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6507 (ppc32_linux_vsxregset): Likewise.
6508 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6509 via the regcache instead of the regset.
6510 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6511 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6512 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6513 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6514 Likewise.
6515
6516 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6517
6518 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6519 Constify structures.
6520 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6521 (alphanbsd_aout_gregset): Likewise.
6522 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6523 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6524 Likewise.
6525 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6526 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6527 Likewise.
6528 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6529 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6530 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6531 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6532 * m88k-tdep.c (m88k_gregset): Likewise.
6533 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6534 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6535 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6536 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6537 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6538 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6539 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6540 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6541 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6542 Likewise.
6543 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6544 * sh-tdep.h (sh_corefile_gregset): Likewise.
6545 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6546 * vax-tdep.c (vax_gregset): Likewise.
6547
6548 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6549
6550 Fix TLS access for -static -pthread.
6551 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6552 (try_thread_db_load_1): Initialize it.
6553 (thread_db_get_thread_local_address): Call it if LM is zero.
6554 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6555 * target.h (struct target_ops) (to_get_thread_local_address): Add
6556 load_module_addr comment.
6557
6558 2014-05-21 Pedro Alves <palves@redhat.com>
6559
6560 * dcache.c (dcache_read_memory_partial): If reading the cache line
6561 fails, fallback to reading just the memory the caller wanted.
6562
6563 2014-05-20 Doug Evans <dje@google.com>
6564
6565 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6566 instead of get_current_arch.
6567
6568 2014-05-20 Pedro Alves <palves@redhat.com>
6569
6570 * NEWS: Mention that compare-sections now works with all targets.
6571
6572 * remote.c (PACKET_qCRC): New enum value.
6573 (remote_verify_memory): Don't send qCRC if the target has no
6574 execution. Use packet_support/packet_ok. If the target doesn't
6575 support the qCRC packet, fallback to a deep memory copy.
6576 (compare_sections_command): Say "target image" instead of "remote
6577 executable".
6578 (_initialize_remote): Add PACKET_qCRC to the list of config
6579 packets that have no associated command. Extend comment.
6580 * target.c (simple_verify_memory, default_verify_memory): New
6581 function.
6582 * target.h (struct target_ops) <to_verify_memory>: Default to
6583 default_verify_memory.
6584 (simple_verify_memory): New declaration.
6585 * target-delegates.c: Regenerate.
6586
6587 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6588
6589 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6590
6591 2014-05-20 Hui Zhu <hui@codesourcery.com>
6592 Yao Qi <yao@codesourcery.com>
6593
6594 PR backtrace/16558
6595 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6596 and change address of sp and pc.
6597
6598 2014-05-19 Tom Tromey <tromey@redhat.com>
6599
6600 * gdbtypes.c (rank_function): Use XNEWVEC.
6601 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6602
6603 2014-05-19 Doug Evans <dje@google.com>
6604
6605 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6606 build_type_unit_groups and moved closer to only caller. Remove
6607 arguments. All references updated. Remove outdated .gdb_index
6608 comment.
6609 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6610 build_type_psymtabs_1.
6611
6612 2014-05-19 Doug Evans <dje@google.com>
6613
6614 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6615 n_type_unit_groups, all_type_unit_groups. All uses removed.
6616 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6617 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6618 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6619 (add_type_unit_group_to_table): Delete.
6620
6621 2014-05-19 Doug Evans <dje@google.com>
6622
6623 * eval.c (evaluate_subexp_standard): Add some comments.
6624
6625 2014-05-17 Doug Evans <xdje42@gmail.com>
6626
6627 * progspace.c (remove_program_space): Delete, unused.
6628 * progspace.h (remove_program_space): Ditto.
6629
6630 2014-05-17 Doug Evans <xdje42@gmail.com>
6631
6632 * inferior.c (prune_inferiors): Fix comment.
6633 (remove_inferior_command): Call prune_program_spaces.
6634
6635 2014-05-16 Doug Evans <dje@google.com>
6636
6637 New command line option -D.
6638 * NEWS: Mention it.
6639 * main.c (set_gdb_data_directory): New function.
6640 (captured_main): Recognize -D. Flag error for --data-directory "".
6641 Call set_gdb_data_directory.
6642 (print_gdb_help): Print --data-directory, -D.
6643 * main.h (set_gdb_data_directory): Declare.
6644 * top.c (staged_gdb_datadir): New static global.
6645 (set_gdb_datadir): Call set_gdb_data_directory
6646 (show_gdb_datadir): New function.
6647 (init_main): Update init of data-directory parameter.
6648
6649 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6650
6651 Import the "dirfd" gnulib module.
6652 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6653 * gnulib/aclocal.m4: Update.
6654 * gnulib/config.in: Update.
6655 * gnulib/configure: Update.
6656 * gnulib/import/Makefile.am: Update.
6657 * gnulib/import/Makefile.in: Update.
6658 * gnulib/import/dirfd.c: New.
6659 * gnulib/import/m4/dirfd.m4: New.
6660 * gnulib/import/m4/gnulib-cache.m4: Update.
6661 * gnulib/import/m4/gnulib-comp.m4: Update.
6662
6663 2014-05-16 Pierre Muller <muller@sourceware.org>
6664 Yao Qi <yao@codesourcery.com>
6665
6666 * valprint.c (print_wchar): Move the code on checking whether
6667 W is a printable wide char to the default branch of switch
6668 statement below. Call wchar_printable instead of gdb_iswprint.
6669
6670 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6671
6672 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6673 ldr.w and ldrd instructions.
6674
6675 2014-05-15 Doug Evans <dje@google.com>
6676
6677 * dwarf2read.c (read_structure_type): Delete outdated comments.
6678
6679 2014-05-14 Tom Tromey <tromey@redhat.com>
6680
6681 * macrocmd.c (print_macro_definition): Reindent.
6682
6683 2014-05-13 Doug Evans <xdje42@gmail.com>
6684
6685 * python/py-cmd.c (cmdpy_completer): Add comment.
6686 (completers): Make const.
6687
6688 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6689
6690 * infrun.c (resume): Remove should_resume (unused). Move up
6691 declaration of resume_ptid.
6692
6693 2014-05-13 Tom Tromey <tromey@redhat.com>
6694
6695 * language.h (unop_type_check): Remove.
6696 (binop_type_check): Don't declare.
6697
6698 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6699
6700 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6701 call to regcache_raw_collect.
6702
6703 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6704
6705 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6706 mi_console->quote as the quoting character.
6707
6708 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6709
6710 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6711
6712 2014-04-29 Tom Tromey <tromey@redhat.com>
6713
6714 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6715 "show debug varobj".
6716
6717 2014-05-07 Kyle McMartin <kyle@redhat.com>
6718
6719 Pushed by Joel Brobecker <brobecker@adacore.com>.
6720 * aarch64-tdep.c (aarch64_software_single_step): New function.
6721 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6722 with aarch64_software_single_step.
6723
6724 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6725
6726 GDB 7.7.1 released.
6727
6728 2014-05-05 Keith Seitz <keiths@redhat.com>
6729
6730 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6731 variable or history value is successfully parsed.
6732
6733 2014-05-05 Yao Qi <yao@codesourcery.com>
6734 Pedro Alves <palves@redhat.com>
6735
6736 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6737 address of blocks that intersects the requested range. Trim
6738 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6739 sections.
6740 * ctf.c (ctf_xfer_partial): Likewise.
6741
6742 2014-05-05 Yao Qi <yao@codesourcery.com>
6743
6744 * printcmd.c (display_command): Remove the check to
6745 target_has_execution.
6746
6747 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6748
6749 * ppcobsd-nat.c: Include "obsd-nat.h".
6750 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6751 add_target.
6752 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6753
6754 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6755
6756 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6757 and 16-bit signed and unsigned arguments. Update comment.
6758 (stap_parse_probe_arguments): Extend code to handle such
6759 arguments. Use warning instead of complaint to notify about
6760 unrecognized bitness.
6761
6762 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6763
6764 PR breakpoints/16889
6765 * stap-probe.c (stap_parse_probe_arguments): Simplify
6766 check for non-prefixed probes (i.e., probes whose
6767 arguments do not start with "N@"). Always set the
6768 argument type to a sane value.
6769
6770 2014-05-01 David Taylor <dtaylor@emc.com>
6771
6772 * remote.c (compare_sections_command): Add -r option to compare
6773 all loadable read-only sections.
6774
6775 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6776
6777 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6778 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6779 Update all callers.
6780 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6781 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6782 Remove unused CORE_ADDR argument. Update all callers.
6783
6784 2014-04-29 Pedro Alves <palves@redhat.com>
6785
6786 * remote.c (struct packet_config) <detect>: Extend comment.
6787 (add_packet_config_cmd): Don't set the config's detect or support
6788 fields here.
6789 (init_all_packet_configs): Also initialize the config's 'detect'
6790 field.
6791 (reset_all_packet_configs_support): New function.
6792 (remote_open_1): Call reset_all_packet_configs_support instead of
6793 init_all_packet_configs.
6794 (_initialize_remote): Initialize all packet configs. Assert that
6795 all packets have an associated command, except a few known
6796 outliers.
6797
6798 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6799
6800 * dwarf2read.c (read_subrange_type): Handle dynamic
6801 DW_AT_lower_bound attributes.
6802
6803 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6804
6805 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6806 dynamic bounds before computing its upper bound.
6807 (ada_discrete_type_low_bound): Same as above with the lower bound.
6808
6809 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6810
6811 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6812 range types. Adjust the array handling implementation to
6813 take advantage of this change.
6814 (resolve_dynamic_range): New function, mostly extracted from
6815 resolve_dynamic_bounds.
6816 (resolve_dynamic_array): New function, mostly extracted from
6817 resolve_dynamic_bounds.
6818 (resolve_dynamic_bounds): Delete.
6819 (resolve_dynamic_type): Reimplement. Add handling of
6820 TYPE_CODE_RANGE types.
6821
6822 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6823
6824 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6825 handling of parallel ___XA types.
6826
6827 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6828
6829 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6830 unnecessary second call to static_unwrap_type.
6831
6832 2014-04-27 Hui Zhu <hui@codesourcery.com>
6833
6834 * stack.c (print_frame_info): Call do_gdb_disassembly with
6835 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6836
6837 2014-04-26 Doug Evans <xdje42@gmail.com>
6838
6839 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6840
6841 2014-04-25 Pedro Alves <palves@redhat.com>
6842
6843 PR server/16255
6844 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6845 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6846 and newline from built string.
6847 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6848 (linux_ptrace_attach_fail_reason): ... this.
6849 * linux-nat.c (linux_nat_attach): Adjust to use
6850 linux_ptrace_attach_fail_reason.
6851
6852 2014-04-25 Pedro Alves <palves@redhat.com>
6853
6854 * remote.c (struct remote_state): Remove multi_process_aware,
6855 non_stop_aware, cond_tracepoints, cond_breakpoints,
6856 breakpoint_commands, fast_tracepoints, static_tracepoints,
6857 install_in_trace, disconnected_tracing,
6858 enable_disable_tracepoints, string_tracing, and
6859 augmented_libraries_svr4_read fields.
6860 (remote_multi_process_p): Move further below in the file.
6861 (struct packet_config): Add comments.
6862 (update_packet_config): Delete function.
6863 (show_packet_config_cmd): Use packet_config_support.
6864 (add_packet_config_cmd): Use NULL as set callback.
6865 (packet_ok): "set remote foo-packet"-style commands no longer
6866 change config->supported -- adjust.
6867 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6868 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6869 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6870 (PACKET_QNonStop, PACKET_multiprocess_feature)
6871 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6872 (PACKET_DisconnectedTracing_feature)
6873 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6874 (set_remote_protocol_packet_cmd): Delete function.
6875 (packet_config_support, packet_support): New functions.
6876 (set_remote_protocol_Z_packet_cmd): Don't call
6877 update_packet_config.
6878 (remote_query_attached, remote_pass_signals)
6879 (remote_program_signals, remote_threads_info)
6880 (remote_threads_extra_info, remote_start_remote): Use
6881 packet_support.
6882 (remote_start_remote): Use packet_config_support and
6883 packet_support.
6884 (init_all_packet_configs): Set all packets to unknown support,
6885 instead of calling update_packet_config.
6886 (remote_check_symbols): Use packet_support.
6887 (remote_supported_packet): Unconditionally set the packet config's
6888 support status.
6889 (remote_multi_process_feature, remote_non_stop_feature)
6890 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6891 (remote_breakpoint_commands_feature)
6892 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6893 (remote_install_in_trace_feature)
6894 (remote_disconnected_tracing_feature)
6895 (remote_enable_disable_tracepoint_feature)
6896 (remote_string_tracing_feature)
6897 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6898 (remote_protocol_features): Adjust to use remote_supported_packet
6899 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6900 "ConditionalTracepoints", "ConditionalBreakpoints",
6901 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6902 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6903 "EnableDisableTracepoints", and "tracenz".
6904 (remote_query_supported): Use packet_support.
6905 (remote_open_1): Adjust.
6906 (extended_remote_attach_1): Use packet_support. Switch on the
6907 result of packet_ok instead of checking whether the packet ended
6908 up disabled.
6909 (remote_vcont_resume): Use packet_support.
6910 (remote_resume, remote_stop_ns, fetch_register_using_p)
6911 (remote_prepare_to_store, store_register_using_P)
6912 (check_binary_download, remote_write_bytes): Use packet_support.
6913 (remote_vkill): Use packet_support. Switch on the result of
6914 packet_ok instead of checking whether the packet ended up
6915 disabled.
6916 (extended_remote_supports_disable_randomization): Use
6917 packet_support.
6918 (extended_remote_run): Switch on the result of packet_ok instead
6919 of checking whether the packet ended up disabled.
6920 (remote_insert_breakpoint, remote_remove_breakpoint)
6921 (remote_insert_watchpoint, remote_remove_watchpoint)
6922 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6923 packet_support.
6924 (remote_search_memory): Use packet_config_support.
6925 (remote_get_thread_local_address, remote_get_tib_address)
6926 (remote_hostio_send_command, remote_can_execute_reverse): Use
6927 packet_support.
6928 (remote_supports_cond_tracepoints)
6929 (remote_supports_cond_breakpoints)
6930 (remote_supports_fast_tracepoints)
6931 (remote_supports_static_tracepoints)
6932 (remote_supports_install_in_trace)
6933 (remote_supports_enable_disable_tracepoint)
6934 (remote_supports_string_tracing)
6935 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6936 the packet config says the feature is enabled or disabled.
6937 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6938 (remote_get_trace_status): Use packet_support.
6939 (remote_set_disconnected_tracing): Adjust to check whether the
6940 feature is enabled with packet_support.
6941 (remote_set_trace_buffer_size, remote_use_agent)
6942 (remote_can_use_agent, remote_supports_btrace): Use
6943 packet_support.
6944 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6945 Use packet_config_support.
6946 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6947 the packet config says the feature is enabled or disabled.
6948 (set_range_stepping): Use packet_support.
6949
6950 2014-04-25 Tom Tromey <tromey@redhat.com>
6951
6952 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6953 argument.
6954
6955 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6956
6957 * NEWS: Mention support for C99 variable length arrays.
6958
6959 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6960
6961 * ada-lang.c (standard_exc): Expand introductory comment.
6962
6963 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6964 Walfred Tedeschi <walfred.tedeschi@intel.com>
6965
6966 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6967 AVX512 registers.
6968 (amd64_linux_read_description): Add code to handle AVX512 xstate
6969 mask and return respective tdesc.
6970 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6971 and features/i386/x32-avx512-linux.c.
6972 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6973 (amd64_linux_core_read_description): Add code to handle AVX512
6974 xstate mask and return respective tdesc.
6975 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6976 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6977 calculation.
6978 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6979 (tdesc_amd64_avx512_linux): New prototype.
6980 (tdesc_x32_avx512_linux): Likewise.
6981 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6982 features/i386/x32-avx512.c.
6983 (amd64_ymm_avx512_names): New register names for pseudo
6984 registers YMM16-31.
6985 (amd64_ymmh_avx512_names): New register names for raw registers
6986 YMMH16-31.
6987 (amd64_k_names): New register names for K registers.
6988 (amd64_zmmh_names): New register names for ZMM raw registers.
6989 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6990 (amd64_xmm_avx512_names): New register names for XMM16-31
6991 registers.
6992 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6993 registers.
6994 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6995 if feature is present.
6996 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6997 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6998 (AMD64_NUM_REGS): Adjust to new number of registers.
6999 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7000 registers supplied via XSTATE by AVX512 registers.
7001 (i386_linux_read_description): Add case for AVX512.
7002 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7003 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7004 (i386_linux_core_read_description): Add case for AVX512.
7005 (i386_linux_init_abi): Install supported register note section
7006 for AVX512.
7007 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7008 AVX512.
7009 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7010 registers to be number of zmm7h + 1.
7011 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7012 * i386-tdep.c: Include features/i386/i386-avx512.c.
7013 (i386_zmm_names): Add ZMM pseudo register names array.
7014 (i386_zmmh_names): Add ZMM raw register names array.
7015 (i386_k_names): Add K raw register names array.
7016 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7017 registers. AVX512 has 16 more ZMM registers than there are YMM
7018 registers.
7019 (i386_zmmh_regnum_p): Add function to look up register number of
7020 ZMM raw registers.
7021 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7022 (i386_k_regnum_p): Likewise for K raw registers.
7023 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7024 registers added by AVX512.
7025 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7026 registers added by AVX512.
7027 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7028 added by AVX512.
7029 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7030 (i386_pseudo_register_name): Add ZMM pseudo registers.
7031 (i386_zmm_type): Construct and return vector registers type for ZMM
7032 registers.
7033 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7034 ZMM0-31 pseudo registers and K registers.
7035 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7036 and YMM16-31 registers from register cache.
7037 (i386_pseudo_register_write): Add code to write K, ZMM and
7038 YMM16-31 registers.
7039 (i386_register_reggroup_p): Add code to include/exclude AVX512
7040 registers in/from respective register groups.
7041 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7042 registers if feature is present in xcr0.
7043 (i386_gdbarch_init): Add code to initialize AVX512 feature
7044 variables in tdep structure, wire in pseudo registers and call
7045 initialize_tdesc_i386_avx512.
7046 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7047 variables.
7048 (i386_regnum): Add AVX512 registers.
7049 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7050 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7051 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7052 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7053 512 bits wide.
7054 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7055 (i386_ymm_avx512_regnum_p): Likewise.
7056 (i386_k_regnum_p): Likewise.
7057 (i386_zmm_regnum_p): Likewise.
7058 (i386_zmmh_regnum_p): Likewise.
7059 * i387-tdep.c : Update year in copyright notice.
7060 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7061 XSAVE buffer.
7062 (XSAVE_YMM_AVX512_ADDR): New macro.
7063 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7064 XSAVE buffer.
7065 (XSAVE_XMM_AVX512_ADDR): New macro.
7066 (xsave_avx512_k_offset): New table for K register offsets in
7067 XSAVE buffer.
7068 (XSAVE_AVX512_K_ADDR): New macro.
7069 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7070 in XSAVE buffer.
7071 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7072 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7073 buffer.
7074 (i387_collect_xsave): Add code to collect AVX512 registers from
7075 XSAVE buffer.
7076 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7077 of XMM16-31 registers.
7078 (I387_NUM_K_REGS): New define for number of K registers.
7079 (I387_K0_REGNUM): New define for K0 register number.
7080 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7081 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7082 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7083 registers.
7084 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7085 (I387_XMM16_REGNUM): New define for XMM16 register number.
7086 (I387_YMM0_REGNUM): New define for YMM0 register number.
7087 (I387_KEND_REGNUM): New define for last K register number.
7088 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7089 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7090 number.
7091 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7092 number.
7093 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7094 size.
7095 * features/Makefile: Add AVX512 related files.
7096 * features/i386/32bit-avx512.xml: New file.
7097 * features/i386/64bit-avx512.xml: Likewise.
7098 * features/i386/amd64-avx512-linux.c: Likewise.
7099 * features/i386/amd64-avx512-linux.xml: Likewise.
7100 * features/i386/amd64-avx512.c: Likewise.
7101 * features/i386/amd64-avx512.xml: Likewise.
7102 * features/i386/i386-avx512-linux.c: Likewise.
7103 * features/i386/i386-avx512-linux.xml: Likewise.
7104 * features/i386/i386-avx512.c: Likewise.
7105 * features/i386/i386-avx512.xml: Likewise.
7106 * features/i386/x32-avx512-linux.c: Likewise.
7107 * features/i386/x32-avx512-linux.xml: Likewise.
7108 * features/i386/x32-avx512.c: Likewise.
7109 * features/i386/x32-avx512.xml: Likewise.
7110 * regformats/i386/amd64-avx512-linux.dat: New file.
7111 * regformats/i386/amd64-avx512.dat: Likewise.
7112 * regformats/i386/i386-avx512-linux.dat: Likewise.
7113 * regformats/i386/i386-avx512.dat: Likewise.
7114 * regformats/i386/x32-avx512-linux.dat: Likewise.
7115 * regformats/i386/x32-avx512.dat: Likewise.
7116 * NEWS: Add note about new support for AVX512.
7117
7118
7119 2014-04-23 Pedro Alves <palves@redhat.com>
7120
7121 * breakpoint.c (insert_bp_location): Tolerate errors if the
7122 breakpoint is set in a user-loaded objfile.
7123 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7124 location is marked shlib_disabled. If the breakpoint is set in a
7125 user-loaded objfile is a GDB-side memory breakpoint, validate it
7126 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7127 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7128 flag.
7129 * mem-break.c (memory_validate_breakpoint): New function.
7130 * objfiles.c (userloaded_objfile_contains_address_p): New
7131 function.
7132 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7133 * target.h (memory_validate_breakpoint): New declaration.
7134
7135 2014-04-23 Pedro Alves <palves@redhat.com>
7136
7137 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7138 the breakpoint is set in a shared library, only suppress
7139 errors for software breakpoints, not hardware breakpoints.
7140
7141 2014-04-22 Pedro Alves <palves@redhat.com>
7142
7143 * infrun.c (schedlock_applies): New function, factored out from
7144 find_thread_needs_step_over.
7145 (find_thread_needs_step_over): Use it.
7146 (switch_back_to_stepped_thread): Always clear trap_expected if the
7147 step over is finished. Return early if scheduler locking applies.
7148 Look for the stepping thread and a potential step-over thread with
7149 a single loop.
7150 (currently_stepping_or_nexting_callback): Delete.
7151
7152 2014-04-22 Nick Clifton <nickc@redhat.com>
7153
7154 * NEWS: Mention that ARM sim now supports tracing.
7155
7156 2014-04-22 Yao Qi <yao@codesourcery.com>
7157
7158 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7159 to ...
7160 * tracefile.c (tracefile_fetch_registers): ... it. New
7161 function.
7162 * tracefile.h (tracefile_fetch_registers): Declare.
7163 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7164 tracefile_fetch_registers.
7165
7166 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7167
7168 PR gdb/14018
7169 * windows-nat.c (thread_rec): Don't display a warning when
7170 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7171 fails for any reason, set th->suspended to -1, so that we don't
7172 try to resume such a thread. Also, don't return NULL in these
7173 cases, to avoid completely ruin the session due to "PC register is
7174 not available" error.
7175 (do_windows_fetch_inferior_registers): Check errors in
7176 GetThreadContext call.
7177 (windows_continue): Accept an additional argument KILLED; if not
7178 zero, ignore errors in the SetThreadContext call, since the
7179 inferior was killed and is shutting down.
7180 (windows_resume, get_windows_debug_event)
7181 (windows_create_inferior, windows_mourn_inferior)
7182 (windows_kill_inferior): All callers of windows_continue changed
7183 to adjust to its new calling sequence.
7184
7185 2014-04-19 Yao Qi <yao@codesourcery.com>
7186
7187 * ctf.c (ctf_open): Call post_create_inferior.
7188
7189 2014-04-19 Yao Qi <yao@codesourcery.com>
7190
7191 * ctf.c (handle_id): New static variable.
7192 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7193 value. Get the declaration of event "register" and get length
7194 of field "contents".
7195
7196 2014-04-19 Yao Qi <yao@codesourcery.com>
7197
7198 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7199
7200 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7201
7202 * valops.c (oload_method_static): Remove unnecessary argument
7203 METHOD. Update all callers.
7204
7205 2014-04-18 Pedro alves <palves@redhat.com>
7206 Tom Tromey <tromey@redhat.com>
7207
7208 PR backtrace/15558
7209 * frame.c (get_prev_frame_1): Rename to ...
7210 (get_prev_frame_always): ... this, and make extern. Adjust.
7211 (skip_artificial_frames): Use get_prev_frame_always.
7212 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7213 (get_frame_unwind_stop_reason): Adjust to rename.
7214 * frame.h (get_prev_frame_always): Declare.
7215 * inline-frame.c: Include frame.h.
7216 (inline_frame_this_id): Use get_prev_frame_always.
7217
7218 2014-04-18 Tristan Gingold <gingold@adacore.com>
7219
7220 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7221 code by using bfd_mach_o_get_base_address.
7222
7223 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7224
7225 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7226 (spu_ax_pseudo_register_collect): New function.
7227 (spu_ax_pseudo_register_push_stack): Likewise.
7228 (spu_dwarf_reg_to_regnum): Likewise.
7229 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7230
7231 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7232
7233 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7234 Replace FRAME argument with FRAME_ID.
7235 * gdbarch.c, gdbarch.h: Regenerate.
7236 * findvar.c (default_value_from_register): Add GDBARCH argument;
7237 replace FRAME by FRAME_ID. No longer call get_frame_id.
7238 (value_from_register): Update call to gdbarch_value_from_register.
7239 * value.h (default_value_from_register): Update prototype.
7240 * s390-linux-tdep.c (s390_value_from_register): Update interface
7241 and call to default_value_from_register.
7242 * spu-tdep.c (spu_value_from_register): Likewise.
7243
7244 * findvar.c (address_from_register): Remove TYPE argument.
7245 Do not call value_from_register; use gdbarch_value_from_register
7246 with null_frame_id instead.
7247 * value.h (address_from_register): Update prototype.
7248 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7249 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7250 address_from_register interface change.
7251
7252 2014-04-17 Yao Qi <yao@codesourcery.com>
7253
7254 * gdbtypes.h: Update comments to link to types and macros'
7255 definitions.
7256
7257 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7258
7259 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7260
7261 2014-04-16 Keith Seitz <keiths@redhat.com>
7262
7263 PR gdb/15827
7264 * dwarf2read.c (skip_one_die): Check that all relative-offset
7265 sibling DIEs fall within range of the current reader's buffer.
7266 (read_partial_die): Likewise.
7267
7268 2014-04-16 Keith Seitz <keiths@redhat.com>
7269
7270 PR c++/16597
7271 * cp-namespace.c (lookup_symbol_file): If the type name of
7272 `this' is NULL, return immediately.
7273
7274 2014-04-14 Keith Seitz <keiths@redhat.com>
7275
7276 PR c++/16253
7277 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7278 from symbol_matches_domain in symtab.c. All local callers
7279 of symbol_matches_domain updated.
7280 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7281 search STRUCT_DOMAIN.
7282 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7283 independently. standard_lookup will do that automatically.
7284 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7285 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7286 (cp_lookup_symbol_in_namespace): Likewise.
7287 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7288 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7289 may return a STRUCT_DOMAIN match.
7290 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7291 * cp-support.c: Include language.h.
7292 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7293 VAR_DOMAIN.
7294 * psymtab.c (match_partial_symbol): Compare the requested
7295 domain with the symbol's domain directly.
7296 (lookup_partial_symbol): Likewise.
7297 * symtab.c (lookup_symbol_in_language): Explain when/why
7298 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7299 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7300 appropriate languages.
7301 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7302 and moved to ada-lang.c
7303 (lookup_block_symbol): Explain that this function only returns
7304 symbol matching the requested DOMAIN.
7305 Compare the requested domain with the symbol's domain directly.
7306 (iterate_over_symbols): Compare the requested domain with the
7307 symbol's domain directly.
7308 * symtab.h (symbol_matches_domain): Remove.
7309
7310 2014-04-14 Tom Tromey <tromey@redhat.com>
7311
7312 PR c++/15246:
7313 * c-exp.y (type_aggregate_p): New function.
7314 (qualified_name, classify_inner_name): Use it.
7315 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7316 and TYPE_TARGET_TYPE of an enum type.
7317 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7318 an enum type.
7319 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7320 handle TYPE_DECLARED_CLASS.
7321 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7322 types.
7323 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7324 * valops.c (enum_constant_from_type): New function.
7325 (value_aggregate_elt): Use it.
7326 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7327 TYPE_CODE_ENUM.
7328
7329 2014-04-14 Tom Tromey <tromey@redhat.com>
7330
7331 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7332 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7333 const.
7334 * value.h (value_aggregate_elt): Update.
7335
7336 2014-04-14 Tom Tromey <tromey@redhat.com>
7337
7338 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7339
7340 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7341
7342 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7343 (evaluate_subexp_standard): Pass noside argument.
7344 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7345 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7346 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7347 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7348 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7349
7350 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7351
7352 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7353 points to a constant blob.
7354
7355 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7356
7357 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7358 property and store it as the high bound and flag the range accordingly.
7359 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7360 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7361 * gdbtypes.h (enum range_flags): New enum.
7362 (struct range_bounds): Add flags member.
7363
7364 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7365
7366 * c-typeprint.c (c_type_print_varspec_suffix): Added
7367 check for not yet resolved high bound. If unresolved, print
7368 "variable length" string to the console instead of random
7369 length.
7370
7371 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7372
7373 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7374 value.
7375 (ada_template_to_fixed_record_type_1): Likewise.
7376 (ada_to_fixed_type_1): Likewise.
7377 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7378 (cp_print_value): Likewise.
7379 * d-valprint.c (dynamic_array_type): Likewise.
7380 * findvar.c (address_of_variable): Likewise.
7381 * jv-valprint.c (java_value_print): Likewise.
7382 * valops.c (value_ind): Likewise.
7383 * value.c (coerce_ref): Likewise.
7384
7385 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7386
7387 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7388 value and retrieve the dynamic type size.
7389
7390 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7391
7392 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7393 passed to sizeof is dynamic evaluate the argument to compute the length.
7394
7395 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7396 Joel Brobecker <brobecker@adacore.com>
7397
7398 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7399 (dwarf2_evaluate_property): New function.
7400 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7401 * dwarf2read.c (attr_to_dynamic_prop): New function.
7402 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7403 attribute.
7404 * gdbtypes.c: Include dwarf2loc.h.
7405 (is_dynamic_type): New function.
7406 (resolve_dynamic_type): New function.
7407 (resolve_dynamic_bounds): New function.
7408 (get_type_length): New function.
7409 (check_typedef): Use get_type_length to compute type length.
7410 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7411 (TYPE_LOW_BOUND_KIND): New macro.
7412 (is_dynamic_type): New function prototype.
7413 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7414 to resolve dynamic properties of the type. Update comment.
7415 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7416
7417 2014-04-14 Richard Henderson <rth@redhat.com>
7418
7419 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7420
7421 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7422 Doug Evans <xdje42@gmail.com>
7423
7424 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7425 dereference TYPE_CODE_REF values.
7426
7427 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7428
7429 Revert the following changes due to regressions:
7430
7431 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7432 (dwarf2_evaluate_property): New function.
7433 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7434 * dwarf2read.c (attr_to_dynamic_prop): New function.
7435 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7436 attribute.
7437 * gdbtypes.c: Include dwarf2loc.h.
7438 (is_dynamic_type): New function.
7439 (resolve_dynamic_type): New function.
7440 (resolve_dynamic_bounds): New function.
7441 (get_type_length): New function.
7442 (check_typedef): Use get_type_length to compute type length.
7443 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7444 (TYPE_LOW_BOUND_KIND): New macro.
7445 (is_dynamic_type): New function prototype.
7446 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7447 to resolve dynamic properties of the type. Update comment.
7448 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7449
7450 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7451 passed to sizeof is dynamic evaluate the argument to compute the length.
7452
7453 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7454 value and retrieve the dynamic type size.
7455
7456 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7457 (ada_template_to_fixed_record_type_1): Likewise.
7458 (ada_to_fixed_type_1): Likewise.
7459 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7460 (cp_print_value): Likewise.
7461 * d-valprint.c (dynamic_array_type): Likewise.
7462 * eval.c (evaluate_subexp_with_coercion): Likewise.
7463 * findvar.c (address_of_variable): Likewise.
7464 * jv-valprint.c (java_value_print): Likewise.
7465 * valops.c (value_ind): Likewise.
7466 * value.c (coerce_ref): Likewise.
7467
7468 * c-typeprint.c (c_type_print_varspec_suffix): Added
7469 check for not yet resolved high bound. If unresolved, print
7470 "variable length" string to the console instead of random
7471 length.
7472
7473 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7474 property and store it as the high bound and flag the range accordingly.
7475 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7476 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7477 * gdbtypes.h (enum range_flags): New enum.
7478 (struct range_bounds): Add flags member.
7479
7480 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7481 points to a constant blob.
7482
7483 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7484 (evaluate_subexp_standard): Pass noside argument.
7485 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7486 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7487 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7488 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7489 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7490
7491 2014-04-11 Keith Seitz <keiths@redhat.com>
7492
7493 PR c++/16675
7494 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7495 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7496 reference types.
7497
7498 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7499
7500 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7501 (evaluate_subexp_standard): Pass noside argument.
7502 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7503 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7504 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7505 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7506 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7507
7508 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7509
7510 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7511 points to a constant blob.
7512
7513 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7514
7515 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7516 property and store it as the high bound and flag the range accordingly.
7517 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7518 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7519 * gdbtypes.h (enum range_flags): New enum.
7520 (struct range_bounds): Add flags member.
7521
7522 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7523
7524 * c-typeprint.c (c_type_print_varspec_suffix): Added
7525 check for not yet resolved high bound. If unresolved, print
7526 "variable length" string to the console instead of random
7527 length.
7528
7529 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7530
7531 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7532 (ada_template_to_fixed_record_type_1): Likewise.
7533 (ada_to_fixed_type_1): Likewise.
7534 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7535 (cp_print_value): Likewise.
7536 * d-valprint.c (dynamic_array_type): Likewise.
7537 * eval.c (evaluate_subexp_with_coercion): Likewise.
7538 * findvar.c (address_of_variable): Likewise.
7539 * jv-valprint.c (java_value_print): Likewise.
7540 * valops.c (value_ind): Likewise.
7541 * value.c (coerce_ref): Likewise.
7542
7543 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7544
7545 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7546 value and retrieve the dynamic type size.
7547
7548 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7549
7550 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7551 passed to sizeof is dynamic evaluate the argument to compute the length.
7552
7553 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7554
7555 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7556 (dwarf2_evaluate_property): New function.
7557 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7558 * dwarf2read.c (attr_to_dynamic_prop): New function.
7559 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7560 attribute.
7561 * gdbtypes.c: Include dwarf2loc.h.
7562 (is_dynamic_type): New function.
7563 (resolve_dynamic_type): New function.
7564 (resolve_dynamic_bounds): New function.
7565 (get_type_length): New function.
7566 (check_typedef): Use get_type_length to compute type length.
7567 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7568 (TYPE_LOW_BOUND_KIND): New macro.
7569 (is_dynamic_type): New function prototype.
7570 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7571 to resolve dynamic properties of the type. Update comment.
7572 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7573
7574 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7575
7576 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7577 declaring high/low bounds and change uses accordingly. Call
7578 create_range_type instead of create_static_range_type.
7579 * gdbtypes.c (create_range_type): New function.
7580 (create_range_type): Convert bounds into struct bound_prop and pass
7581 them to create_range_type.
7582 * gdbtypes.h (struct bound_prop): New struct.
7583 (create_range_type): New function prototype.
7584 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7585 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7586 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7587 part of the bound.
7588 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7589
7590 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7591
7592 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7593 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7594 * ada-lang.c: All uses of create_range_type updated.
7595 * coffread.c: All uses of create_range_type updated.
7596 * dwarf2read.c: All uses of create_range_type updated.
7597 * f-exp.y: All uses of create_range_type updated.
7598 * m2-valprint.c: All uses of create_range_type updated.
7599 * mdebugread.c: All uses of create_range_type updated.
7600 * stabsread.c: All uses of create_range_type updated.
7601 * valops.c: All uses of create_range_type updated.
7602 * valprint.c: All uses of create_range_type updated.
7603
7604 2014-04-10 Pedro Alves <palves@redhat.com>
7605
7606 * breakpoint.c (single_step_breakpoints)
7607 (single_step_gdbarch): Move up in the file.
7608 (one_breakpoint_xfer_memory): New function, factored out from ...
7609 (breakpoint_xfer_memory): ... here. Also process single-step
7610 breakpoints.
7611
7612 2014-04-09 Tristan Gingold <gingold@adacore.com>
7613
7614 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7615 comments.
7616 (darwin_decode_exception_message): Free port only after use.
7617
7618 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7619
7620 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7621 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7622 when setting the size of call_length.
7623
7624 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7625
7626 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7627 dereference TYPE_CODE_REF values.
7628
7629 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7630
7631 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7632 end of warning message.
7633
7634 2014-04-03 Doug Evans <dje@google.com>
7635
7636 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7637 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7638
7639 2014-04-02 Alan Modra <amodra@gmail.com>
7640
7641 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7642 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7643 (struct symbol_file_add_from_memory_args): Add size field.
7644 (find_vdso_size): New function.
7645 (add_vsyscall_page): Attempt to find vdso size.
7646
7647 2014-04-01 Doug Evans <dje@google.com>
7648
7649 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7650
7651 2014-04-01 Tristan Gingold <gingold@adacore.com>
7652
7653 * darwin-nat.c (darwin_encode_reply): Add prototype.
7654 (darwin_decode_exception_message): Reply to unknown inferiors.
7655 (darwin_decode_message): Handle message by id. Ignore message
7656 to unknown inferior.
7657 (darwin_wait): Discard unknown messages, add debug trace.
7658
7659 2014-03-31 Doug Evans <dje@google.com>
7660
7661 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7662 comp_dir_string.
7663
7664 2014-03-31 Doug Evans <dje@google.com>
7665
7666 New option "set print symbol-loading".
7667 * NEWS: Mention it.
7668 * solib.c (solib_read_symbols): Only print symbol loading messages
7669 if requested.
7670 (solib_add): If symbol loading is in "brief" mode, notify user
7671 symbols are being loaded.
7672 (reload_shared_libraries_1): Ditto.
7673 * symfile.c (print_symbol_loading_off): New static global.
7674 (print_symbol_loading_brief): New static global.
7675 (print_symbol_loading_full): New static global.
7676 (print_symbol_loading_enums): New static global.
7677 (print_symbol_loading): New static global.
7678 (print_symbol_loading_p): New function.
7679 (symbol_file_add_with_addrs): Only print symbol loading messages
7680 if requested.
7681 (_initialize_symfile): Register "print symbol-loading" set/show
7682 command.
7683 * symfile.h (print_symbol_loading_p): Declare.
7684
7685 2014-03-30 Doug Evans <xdje42@gmail.com>
7686
7687 * infrun.c (set_last_target_status): New function.
7688 (handle_inferior_event): Call it.
7689
7690 2014-03-30 Doug Evans <xdje42@gmail.com>
7691
7692 * inferior.h (enum stop_kind): Improve comment.
7693
7694 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7695
7696 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7697 a reference, strip the reference layer before calling
7698 the lang_ops value_has_mutated callback.
7699
7700 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7701
7702 Remove some globals from our parser.
7703 * language.c (unk_lang_parser): Add "struct parser_state"
7704 argument.
7705 * language.h (struct language_defn) <la_parser>: Likewise.
7706 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7707 (initialize_expout): Add "struct parser_state" argument.
7708 Rewrite function to use the parser state.
7709 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7710 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7711 write_exp_elt_longcst, write_exp_elt_dblcst,
7712 write_exp_elt_decfloatcst, write_exp_elt_type,
7713 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7714 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7715 write_dollar_variable): Likewise.
7716 (parse_exp_in_context_1): Use parser state.
7717 (insert_type_address_space): Add "struct parser_state" argument.
7718 Use parser state.
7719 (increase_expout_size): New function.
7720 * parser-defs.h: Forward declare "struct language_defn" and
7721 "struct parser_state".
7722 (expout, expout_size, expout_ptr): Remove extern declarations.
7723 (parse_gdbarch, parse_language): Rewrite macro declarations to
7724 accept the parser state.
7725 (struct parser_state): New struct.
7726 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7727 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7728 write_exp_elt_decfloatcst, write_exp_elt_type,
7729 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7730 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7731 write_exp_msymbol, write_dollar_variable,
7732 mark_struct_expression, insert_type_address_space): Add "struct
7733 parser_state" argument.
7734 (increase_expout_size): New function.
7735 * utils.c (do_clear_parser_state): New function.
7736 (make_cleanup_clear_parser_state): Likewise.
7737 * utils.h (make_cleanup_clear_parser_state): New function
7738 prototype.
7739 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7740 Update calls to write_exp* in order to pass the parser state.
7741 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7742 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7743 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7744 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7745 * stap-probe.c (stap_parse_register_operand): Likewise.
7746 (stap_parse_single_operand): Likewise.
7747 (stap_parse_argument_1): Likewise.
7748 (stap_parse_argument): Use parser state.
7749 * stap-probe.h: Include "parser-defs.h".
7750 (struct stap_parse_info) <pstate>: New field.
7751 * c-exp.y (parse_type): Rewrite to use parser state.
7752 (yyparse): Redefine to c_parse_internal.
7753 (pstate): New global variable.
7754 (parse_number): Add "struct parser_state" argument.
7755 (write_destructor_name): Likewise.
7756 (type_exp): Update calls to write_exp* and similars in order to
7757 use parser state.
7758 (exp1, exp, variable, qualified_name, space_identifier,
7759 typename, typebase): Likewise.
7760 (write_destructor_name, parse_number, lex_one_token,
7761 classify_name, classify_inner_name, c_parse): Add "struct
7762 parser_state" argument. Update function to use parser state.
7763 * c-lang.h: Forward declare "struct parser_state".
7764 (c_parse): Add "struct parser_state" argument.
7765 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7766 (yyparse): Redefine macro to ada_parse_internal.
7767 (pstate): New variable.
7768 (write_int, write_object_renaming, write_var_or_type,
7769 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7770 type_int, type_long, type_long_long, type_float, type_double,
7771 type_long_double, type_char, type_boolean, type_system_address):
7772 Add "struct parser_state" argument.
7773 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7774 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7775 var_or_type, aggregate, aggregate_component_list,
7776 positional_list, others, component_group,
7777 component_associations): Update calls to write_exp* and similar
7778 functions in order to use parser state.
7779 (ada_parse, write_var_from_sym, write_int,
7780 write_exp_op_with_string, write_object_renaming,
7781 find_primitive_type, write_selectors, write_ambiguous_var,
7782 write_var_or_type, write_name_assoc, type_int, type_long,
7783 type_long_long, type_float, type_double, type_long_double,
7784 type_char, type_boolean, type_system_address): Add "struct
7785 parser_state" argument. Adjust function to use parser state.
7786 * ada-lang.c (parse): Likewise.
7787 * ada-lang.h: Forward declare "struct parser_state".
7788 (ada_parse): Add "struct parser_state" argument.
7789 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7790 calls to both functions.
7791 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7792 parser state.
7793 (yyparse): Redefine macro to f_parse_internal.
7794 (pstate): New variable.
7795 (parse_number): Add "struct parser_state" argument.
7796 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7797 and similars in order to use parser state.
7798 (parse_number): Adjust code to use parser state.
7799 (yylex): Likewise.
7800 (f_parse): New function.
7801 * f-lang.h: Forward declare "struct parser_state".
7802 (f_parse): Add "struct parser_state" argument.
7803 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7804 parser state.
7805 (yyparse): Redefine macro for java_parse_internal.
7806 (pstate): New variable.
7807 (push_expression_name, push_expression_name, insert_exp): Add
7808 "struct parser_state" argument.
7809 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7810 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7811 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7812 PostIncrementExpression, PostDecrementExpression,
7813 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7814 UnaryExpressionNotPlusMinus, CastExpression,
7815 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7816 RelationalExpression, EqualityExpression, AndExpression,
7817 ExclusiveOrExpression, InclusiveOrExpression,
7818 ConditionalAndExpression, ConditionalOrExpression,
7819 ConditionalExpression, Assignment, LeftHandSide): Update
7820 calls to write_exp* and similars in order to use parser state.
7821 (parse_number): Ajust code to use parser state.
7822 (yylex): Likewise.
7823 (java_parse): New function.
7824 (push_variable): Add "struct parser_state" argument. Adjust
7825 code to user parser state.
7826 (push_fieldnames, push_qualified_expression_name,
7827 push_expression_name, insert_exp): Likewise.
7828 * jv-lang.h: Forward declare "struct parser_state".
7829 (java_parse): Add "struct parser_state" argument.
7830 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7831 parser state.
7832 (yyparse): Redefine macro to m2_parse_internal.
7833 (pstate): New variable.
7834 (type_exp, exp, fblock, variable, type): Update calls to
7835 write_exp* and similars to use parser state.
7836 (yylex): Likewise.
7837 (m2_parse): New function.
7838 * m2-lang.h: Forward declare "struct parser_state".
7839 (m2_parse): Add "struct parser_state" argument.
7840 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7841 * objc-lang.h: Forward declare "struct parser_state".
7842 (end_msglist): Add "struct parser_state" argument.
7843 * p-exp.y (parse_type): Rewrite macro to use parser state.
7844 (yyparse): Redefine macro to pascal_parse_internal.
7845 (pstate): New variable.
7846 (parse_number): Add "struct parser_state" argument.
7847 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7848 write_exp* and similars in order to use parser state.
7849 (parse_number, yylex): Adjust code to use parser state.
7850 (pascal_parse): New function.
7851 * p-lang.h: Forward declare "struct parser_state".
7852 (pascal_parse): Add "struct parser_state" argument.
7853 * go-exp.y (parse_type): Rewrite macro to use parser state.
7854 (yyparse): Redefine macro to go_parse_internal.
7855 (pstate): New variable.
7856 (parse_number): Add "struct parser_state" argument.
7857 (type_exp, exp1, exp, variable, type): Update calls to
7858 write_exp* and similars in order to use parser state.
7859 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7860 to use parser state.
7861 (go_parse): Likewise.
7862 * go-lang.h: Forward declare "struct parser_state".
7863 (go_parse): Add "struct parser_state" argument.
7864
7865 2014-03-27 Doug Evans <dje@google.com>
7866
7867 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7868
7869 2014-03-27 Doug Evans <dje@google.com>
7870
7871 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7872 Remove argument abbrev_section. All callers updated.
7873
7874 2014-03-27 Doug Evans <dje@google.com>
7875
7876 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7877 addr_base, ranges_base.
7878
7879 2014-03-26 Keith Seitz <keiths@redhat.com>
7880
7881 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7882 types, not VAR_DOMAIN.
7883
7884 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7885
7886 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7887 "ra" registers.
7888 * features/nios2-linux.c: Regenerated.
7889 * features/nios2.c: Regenerated.
7890
7891 2014-03-25 Pedro Alves <palves@redhat.com>
7892
7893 * cli/cli-script.c (script_from_file): Force the interpreter to
7894 sync mode.
7895
7896 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7897
7898 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7899 small stack allocation.
7900
7901 2014-03-24 Tristan Gingold <gingold@adacore.com>
7902
7903 * darwin-nat.c (exc_server): Remove unused prototype.
7904 (darwin_dump_message): Correctly display data on x86_64.
7905 (darwin_encode_reply): Fix style.
7906 Add comments and fix indentation.
7907
7908 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7909
7910 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7911
7912 2014-03-22 Doug Evans <xdje42@gmail.com>
7913
7914 * infcmd.c: Whitespace fixes.
7915 (interrupt_command): Merge two function comments into one.
7916
7917 2014-03-22 Doug Evans <xdje42@gmail.com>
7918
7919 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7920 All uses updated.
7921
7922 2014-03-22 Yao Qi <yao@codesourcery.com>
7923
7924 * remote.c (target_read_live_memory): Remove.
7925 (memory_xfer_live_readonly_partial): Rename it to
7926 remote_xfer_live_readonly_partial. Remove argument 'object'.
7927 All callers updated. Call remote_read_bytes_1
7928 instead of target_read_live_memory.
7929 * tracepoint.c (set_traceframe_number): Remove.
7930 (make_cleanup_restore_traceframe_number): Likewise .
7931 * tracepoint.h (set_traceframe_number): Remove declaration.
7932 (make_cleanup_restore_traceframe_number): Likewise.
7933
7934 2014-03-22 Yao Qi <yao@codesourcery.com>
7935
7936 * remote.c (remote_read_bytes): Move code on reading from the
7937 remote stub to ...
7938 (remote_read_bytes_1): ... here. New function.
7939
7940 2014-03-22 Yao Qi <yao@codesourcery.com>
7941
7942 * ctf.c (ctf_xfer_partial): Check the return value of
7943 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7944 return TARGET_XFER_UNAVAILABLE.
7945 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7946 * target.c (target_read_live_memory): Move it to remote.c.
7947 (memory_xfer_live_readonly_partial): Likewise.
7948 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7949 * remote.c (target_read_live_memory): Moved from target.c.
7950 (memory_xfer_live_readonly_partial): Likewise.
7951 (remote_read_bytes): Factored out from
7952 memory_xfer_partial_1.
7953
7954 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7955
7956 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7957 NULL pointer.
7958
7959 2014-03-21 Pedro Alves <palves@redhat.com>
7960
7961 * infrun.c (normal_stop): Extend comment.
7962
7963 2014-03-21 Hui Zhu <hui@codesourcery.com>
7964 Pedro Alves <palves@redhat.com>
7965
7966 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7967 static buffer.
7968 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7969 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7970 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7971
7972 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7973
7974 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7975 `z' formatted output modifier.
7976
7977 2014-03-20 Tom Tromey <tromey@redhat.com>
7978 Sergio Durigan Junior <sergiodj@redhat.com>
7979
7980 * probe.c (parse_probes): Turn assert into an ordinary error.
7981 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7982 exceptions when parsing probes. Rearrange the code for clarity.
7983
7984 2014-03-20 Tom Tromey <tromey@redhat.com>
7985
7986 PR gdb/14135
7987 * top.c (execute_command): Only dispatch events if the command
7988 started the target.
7989
7990 2014-03-20 Tom Tromey <tromey@redhat.com>
7991
7992 PR cli/15718
7993 * infcall.c: Include event-top.h.
7994 (run_inferior_call): Call async_disable_stdin if needed.
7995
7996 2014-03-20 Pedro Alves <palves@redhat.com>
7997
7998 * infrun.c (prepare_to_proceed): Delete.
7999 (thread_still_needs_step_over): New function.
8000 (find_thread_needs_step_over): New function.
8001 (proceed): If the current thread needs a step-over, set its
8002 steping_over_breakpoint flag. Adjust to use
8003 find_thread_needs_step_over instead of prepare_to_proceed.
8004 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8005 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8006 breakpoint.
8007 (switch_back_to_stepped_thread): Step over breakpoints of all
8008 threads not the stepping thread, before switching back to the
8009 stepping thread.
8010
8011 2014-03-20 Pedro Alves <palves@redhat.com>
8012
8013 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8014 extern.
8015 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8016 * infrun.c (saved_singlestep_ptid)
8017 (stepping_past_singlestep_breakpoint): Delete.
8018 (resume): Remove stepping_past_singlestep_breakpoint handling.
8019 (proceed): Store the prev_pc of the stepping thread too.
8020 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8021 singlestep_pc.
8022 (enum infwait_states): Delete infwait_thread_hop_state.
8023 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8024 field.
8025 (handle_inferior_event): Adjust.
8026 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8027 handling and the thread-hop code. Before removing single-step
8028 breakpoints, check whether the thread hit a single-step breakpoint
8029 of another thread. If it did, the trap is not a random signal.
8030 (switch_back_to_stepped_thread): If the event thread hit a
8031 single-step breakpoint, unblock it before switching to the
8032 stepping thread. Handle the case of the stepped thread having
8033 advanced already.
8034 (keep_going): Handle the case of the current thread moving past a
8035 single-step breakpoint.
8036
8037 2014-03-20 Pedro Alves <palves@redhat.com>
8038
8039 PR breakpoints/7143
8040 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8041 are being stepped over.
8042 (breakpoint_address_match): Make extern.
8043 * breakpoint.h (breakpoint_address_match): New declaration.
8044 * inferior.h (stepping_past_instruction_at): New declaration.
8045 * infrun.c (struct step_over_info): New type.
8046 (step_over_info): New global.
8047 (set_step_over_info, clear_step_over_info)
8048 (stepping_past_instruction_at): New functions.
8049 (handle_inferior_event): Clear the step-over info when
8050 trap_expected is cleared.
8051 (resume): Remove now stale comment.
8052 (clear_proceed_status): Clear step-over info.
8053 (proceed): Adjust step-over handling to set or clear the step-over
8054 info instead of removing all breakpoints.
8055 (handle_signal_stop): When setting up a thread-hop, don't remove
8056 breakpoints here.
8057 (stop_stepping): Clear step-over info.
8058 (keep_going): Adjust step-over handling to set or clear step-over
8059 info and then always inserting breakpoints, instead of removing
8060 all breakpoints when stepping over one.
8061
8062 2014-03-20 Pedro Alves <palves@redhat.com>
8063
8064 * infrun.c (previous_inferior_ptid): Adjust comment.
8065 (deferred_step_ptid): Delete.
8066 (infrun_thread_ptid_changed, prepare_to_proceed)
8067 (init_wait_for_inferior): Adjust.
8068 (handle_signal_stop): Delete deferred_step_ptid handling.
8069
8070 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8071
8072 PR gdb/15358
8073 * defs.h (sync_quit_force_run): New declaration.
8074 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8075 * event-top.c (async_sigterm_handler): New declaration.
8076 (async_sigterm_token): New variable.
8077 (async_init_signals): Create also async_sigterm_token.
8078 (async_sigterm_handler): New function.
8079 (sync_quit_force_run): New variable.
8080 (handle_sigterm): Replace quit_force call by other calls.
8081 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8082
8083 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8084
8085 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8086 offset into SPE pseudo registers.
8087
8088 2014-03-18 Pedro Alves <palves@redhat.com>
8089
8090 PR gdb/13860
8091 * inferior.h (print_stop_event): Declare.
8092 * infrun.c (print_stop_event): New, factored out from ...
8093 (normal_stop): ... this.
8094 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8095 of bpstat_print/print_stack_frame.
8096
8097 2014-03-17 Tom Tromey <tromey@redhat.com>
8098
8099 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8100
8101 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8102
8103 * ada-lang.c (decode_constrained_packed_array): Perform a
8104 minimal coercion for reference with coerce_ref instead of
8105 ada_coerce_ref.
8106
8107 2014-03-17 Tristan Gingold <gingold@adacore.com>
8108
8109 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8110 (darwin_solib_create_inferior_hook): Emit a warning if version
8111 is unhandled.
8112
8113 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8114
8115 * python/py-value.c (get_field_flag): Cast flag_name argument to
8116 PyObject_GetAttrString to support Python 2.4.
8117
8118 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8119
8120 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8121 (Global Maintainers): Remove Jan Kratochvil.
8122
8123 2014-03-14 Pedro Alves <palves@redhat.com>
8124
8125 * inferior.h (terminal_ours_for_output): Rename to ...
8126 (child_terminal_ours_for_output): ... this.
8127 (terminal_save_ours): Rename to ...
8128 (child_terminal_save_ours): ... this.
8129 (terminal_ours): Rename to ...
8130 (child_terminal_ours): ... this.
8131 (terminal_inferior): Rename to ...
8132 (child_terminal_inferior): ... this.
8133 (terminal_init_inferior): Rename to ...
8134 (child_terminal_init_inferior): ... this.
8135 (terminal_init_inferior_with_pgrp): Rename to ...
8136 (child_terminal_init_inferior_with_pgrp): ... this.
8137 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8138 (child_terminal_init_with_pgrp): ... this.
8139 (terminal_save_ours): Rename to ...
8140 (child_terminal_save_ours): ... this.
8141 (terminal_init_inferior): Rename to ...
8142 (child_terminal_init): ... this. Adjust.
8143 (terminal_inferior): Rename to ...
8144 (child_terminal_inferior): ... this.
8145 (terminal_ours_for_output): Rename to ...
8146 (child_terminal_ours_for_output): ... this. Adjust.
8147 (terminal_ours): Rename to ...
8148 (child_terminal_ours): ... this.
8149 (terminal_ours_1): Rename to ...
8150 (child_terminal_ours_1): ... this. Adjust.
8151 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8152 * windows-nat.c (do_initial_windows_stuff): Adjust.
8153 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8154 (gnu_terminal_init): ... this. Adjust.
8155 (gnu_target): Adjust.
8156 * inf-child.c (inf_child_target): Adjust.
8157
8158 2014-03-13 Doug Evans <xdje42@gmail.com>
8159
8160 PR guile/16612
8161 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8162 new eq?-hashtab.
8163
8164 2014-03-13 Doug Evans <xdje42@gmail.com>
8165
8166 * value.c (record_latest_value): Call release_value_or_incref
8167 instead of release_value.
8168
8169 2014-03-13 Pedro Alves <palves@redhat.com>
8170
8171 * procfs.c (procfs_target): Don't override to_shortname,
8172 to_longname or to_doc.
8173
8174 2014-03-13 Pedro Alves <palves@redhat.com>
8175
8176 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8177 Unix in user visible strings.
8178
8179 2014-03-12 Stan Shebs <stan@codesourcery.com>
8180
8181 * gdbtypes.h: Annotate comments for Doxygen, add a page
8182 block comment with some general info.
8183
8184 2014-03-12 Pedro Alves <palves@redhat.com>
8185
8186 * infcmd.c (prepare_execution_command): New function, factored out
8187 from several execution commands.
8188 (run_command_1, continue_command, step_1, jump_command)
8189 (signal_command, until_command, advance_command, finish_command)
8190 (attach_command): Use prepare_execution_command.
8191
8192 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8193
8194 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8195 (MAX_BPTS): Define.
8196 (MAX_WPTS): Define.
8197 (struct arm_linux_thread_points): Removed.
8198 (struct arm_linux_process_info): New.
8199 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8200 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8201 (arm_linux_find_breakpoints_by_tid): Removed.
8202 (struct arch_lwp_info): New.
8203 (arm_linux_find_process_pid): New functions.
8204 (arm_linux_add_process): New functions.
8205 (arm_linux_process_info_get): New functions.
8206 (arm_linux_forget_process): New function.
8207 (arm_linux_get_debug_reg_state): New function.
8208 (struct update_registers_data): New.
8209 (update_registers_callback): New function.
8210 (arm_linux_insert_hw_breakpoint1): Updated.
8211 (arm_linux_remove_hw_breakpoint1): Updated.
8212 (arm_linux_insert_hw_breakpoint): Updated.
8213 (arm_linux_remove_hw_breakpoint): Updated.
8214 (arm_linux_insert_watchpoint): Updated.
8215 (arm_linux_remove_watchpoint): Updated.
8216 (arm_linux_new_thread): Updated.
8217 (arm_linux_prepare_to_resume): New function.
8218 (arm_linux_new_fork): New function.
8219 (_initialize_arm_linux_nat): Updated.
8220
8221 2014-03-12 Pedro Alves <palves@redhat.com>
8222
8223 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8224
8225 2014-03-12 Tom Tromey <tromey@redhat.com>
8226
8227 * inf-child.c (return_zero): New function.
8228 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8229 * aix-thread.c (aix_thread_inferior_created): New function.
8230 (aix_thread_attach): Remove.
8231 (init_aix_thread_ops): Don't set to_attach.
8232 (_initialize_aix_thread): Register inferior_created observer.
8233 * corelow.c (init_core_ops): Don't set to_attach or
8234 to_create_inferior.
8235 * exec.c (init_exec_ops): Don't set to_attach or
8236 to_create_inferior.
8237 * infcmd.c (run_command_1): Use find_run_target. Make direct
8238 target calls.
8239 (attach_command): Use find_attach_target. Make direct target
8240 calls.
8241 * record-btrace.c (init_record_btrace_ops): Don't set
8242 to_create_inferior.
8243 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8244 Remove.
8245 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8246 set to_create_inferior.
8247 * target.c (complete_target_initialization): Add assertion.
8248 (target_create_inferior): Remove.
8249 (find_default_attach, find_default_create_inferior): Remove.
8250 (find_attach_target, find_run_target): New functions.
8251 (find_default_is_async_p, find_default_can_async_p)
8252 (target_supports_non_stop, target_attach): Remove.
8253 (init_dummy_target): Don't set to_create_inferior or
8254 to_supports_non_stop.
8255 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8256 TARGET_DEFAULT_FUNC.
8257 <to_create_inferior>: Add comment.
8258 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8259 TARGET_DEFAULT_RETURN.
8260 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8261 (find_attach_target, find_run_target): Declare.
8262 (target_create_inferior): Remove.
8263 (target_has_execution_1): Update comment.
8264 (target_supports_non_stop): Remove.
8265 * target-delegates.c: Rebuild.
8266
8267 2014-03-12 Pedro Alves <palves@redhat.com>
8268
8269 * inf-child.h: Update comment to not mention Unix.
8270
8271 2014-03-12 Pedro Alves <palves@redhat.com>
8272
8273 * inf-child.c: Update top comment to not mention Unix. Add
8274 generic comment describing how this target is meant to be used.
8275 (inf_child_post_attach, inf_child_post_startup_inferior)
8276 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8277 Unix in comment.
8278
8279 2014-03-12 Pedro Alves <palves@redhat.com>
8280
8281 * nto-procfs.c: Include inf-child.h.
8282 (procfs_ops): Delete global.
8283 (procfs_can_run): Delete method.
8284 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8285 target pointer instead of referencing procfs_ops.
8286 (procfs_prepare_to_store): Delete.
8287 (init_procfs_ops): Delete function.
8288 (procfs_target): New function, based on init_procfs_ops, but
8289 inherit inf_child_target.
8290 (_initialize_procfs): Use procfs_target.
8291
8292 2014-03-12 Pedro Alves <palves@redhat.com>
8293
8294 * windows-nat.c: Include inf-child.h.
8295 (windows_ops): Delete global.
8296 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8297 methods.
8298 (init_windows_ops): Delete function.
8299 (windows_target): New function, based on init_windows_ops, but
8300 inherit inf_child_target.
8301 (_initialize_windows_nat): Use windows_target. Install x86
8302 specific target methods here.
8303
8304 2014-03-10 Doug Evans <xdje42@gmail.com>
8305
8306 * guile/guile.c (call_initialize_gdb_module): New function.
8307 (initialize_guile): Replace call to scm_init_guile with call to
8308 scm_with_guile.
8309
8310 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8311
8312 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8313 in call to TYPE_CODE macro.
8314
8315 2014-03-10 Jerome Guitton <guitton@adacore.com>
8316
8317 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8318 Resolve tagged types to full view.
8319
8320 2014-03-10 Hui Zhu <hui@codesourcery.com>
8321
8322 * target.h (target_insert_breakpoint): Remove "hardware" from its
8323 comments.
8324
8325 2014-03-07 Doug Evans <dje@google.com>
8326
8327 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8328
8329 2014-03-07 Doug Evans <dje@google.com>
8330
8331 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8332 Remove unused local comp_dir_attr. Assert exactly one of
8333 stub_comp_unit_die, stub_comp_dir is non-NULL.
8334
8335 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8336
8337 * target.h (complete_target_initialization, add_target):
8338 Add comment.
8339
8340 2014-03-07 Pedro Alves <palves@redhat.com>
8341
8342 * go32-nat.c: Include inf-child.h.
8343 (go32_ops): Delete global.
8344 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8345 Delete methods.
8346 (go32_create_inferior): Push the passed in target pointer instead
8347 of referencing go32_ops.
8348 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8349 (go32_target): New function, based on init_go32_ops, but inherit
8350 inf_child_target.
8351 (_initialize_go32_nat): Use go32_target. Move parts of
8352 init_go32_ops here.
8353
8354 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8355
8356 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8357 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8358 SYMBOL_VALUE_ADDRESS.
8359 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8360
8361 2014-03-06 Yao Qi <yao@codesourcery.com>
8362
8363 * breakpoint.c (get_tracepoint_by_number): Remove argument
8364 optional_p. All callers updated. Adjust comments. Update
8365 output message.
8366 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8367
8368 2014-03-06 Yao Qi <yao@codesourcery.com>
8369
8370 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8371 early if get_number returns zero. Use 'p' instead of 'args'.
8372
8373 2014-03-06 Yao Qi <yao@codesourcery.com>
8374
8375 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8376 message.
8377
8378 2014-03-06 Yao Qi <yao@codesourcery.com>
8379
8380 PR breakpoints/16508
8381 * tracepoint.c (check_trace_running): New function.
8382 (trace_find_command): Move code to check_trace_running and
8383 call check_trace_running.
8384 (trace_find_pc_command): Likewise.
8385 (trace_find_tracepoint_command): Likewise.
8386 (trace_find_line_command): Likewise.
8387 (trace_find_range_command): Likewise.
8388 * tracepoint.h (check_trace_running): Likewise.
8389 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8390
8391 2014-03-06 Yao Qi <yao@codesourcery.com>
8392
8393 * target.h (struct target_ops) <to_traceframe_info>: Use
8394 TARGET_DEFAULT_NORETURN (tcomplain ()).
8395 * target-delegates.c: Regenerated.
8396
8397 2014-03-05 Pedro Alves <palves@redhat.com>
8398
8399 PR gdb/16575
8400 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8401 void. Update comment.
8402 (dcache_xfer_memory): Delete.
8403 (dcache_read_memory_partial): New, based on the read bits of
8404 dcache_xfer_memory.
8405 (dcache_update): Add status parameter. Use ULONGEST for len, and
8406 adjust. Discard cache lines if the reason for the update was
8407 error.
8408 * dcache.h (dcache_xfer_memory): Delete declaration.
8409 (dcache_read_memory_partial): New declaration.
8410 (dcache_update): Update prototype.
8411 * target.c (raw_memory_xfer_partial): Update the dcache here.
8412 (memory_xfer_partial_1): Don't handle dcache writes here.
8413
8414 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8415
8416 * remote-sim.c (gdbsim_load): Add const to prog.
8417
8418 2014-03-03 Tom Tromey <tromey@redhat.com>
8419
8420 * elfread.c (probe_key): Change to bfd_data.
8421 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8422 now per-BFD, not per-objfile.
8423 * stap-probe.c (stap_probe_destroy): Update comment.
8424 (handle_stap_probe): Allocate on the per-BFD obstack.
8425
8426 2014-03-03 Tom Tromey <tromey@redhat.com>
8427
8428 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8429 * breakpoint.c (create_longjmp_master_breakpoint): Use
8430 get_probe_address.
8431 (add_location_to_breakpoint, bkpt_probe_insert_location)
8432 (bkpt_probe_remove_location): Update.
8433 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8434 * elfread.c (elf_symfile_relocate_probe): Remove.
8435 (elf_probe_fns): Update.
8436 (insert_exception_resume_breakpoint): Change type of "probe"
8437 parameter to bound_probe.
8438 (check_exception_resume): Update.
8439 * objfiles.c (objfile_relocate1): Don't relocate probes.
8440 * probe.c (bound_probe_s): New typedef.
8441 (parse_probes): Use get_probe_address. Set sal's objfile.
8442 (find_probe_by_pc): Return a bound_probe.
8443 (collect_probes): Return a VEC(bound_probe_s).
8444 (compare_probes): Update.
8445 (gen_ui_out_table_header_info): Change type of "probes"
8446 parameter. Update.
8447 (info_probes_for_ops): Update.
8448 (get_probe_address): New function.
8449 (probe_safe_evaluate_at_pc): Update.
8450 * probe.h (struct probe_ops) <get_probe_address>: New field.
8451 <set_semaphore, clear_semaphore>: Add objfile parameter.
8452 (struct probe) <objfile>: Remove field.
8453 <arch>: New field.
8454 <address>: Update comment.
8455 (struct bound_probe): New.
8456 (find_probe_by_pc): Return a bound_probe.
8457 (get_probe_address): Declare.
8458 * solib-svr4.c (struct probe_and_action) <address>: New field.
8459 (hash_probe_and_action, equal_probe_and_action): Update.
8460 (register_solib_event_probe): Add address parameter.
8461 (solib_event_probe_at): Update.
8462 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8463 get_probe_address.
8464 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8465 (stap_get_probe_address): New function.
8466 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8467 (compile_probe_arg): Update.
8468 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8469 address.
8470 (handle_stap_probe): Don't relocate the probe.
8471 (stap_relocate): Remove.
8472 (stap_gen_info_probes_table_values): Update.
8473 (stap_probe_ops): Remove stap_relocate.
8474 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8475 (debug_sym_probe_fns): Update.
8476 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8477 * symtab.c (init_sal): Use memset.
8478 * symtab.h (struct symtab_and_line) <objfile>: New field.
8479 * tracepoint.c (start_tracing, stop_tracing): Update.
8480
8481 2014-03-03 Tom Tromey <tromey@redhat.com>
8482
8483 * probe.h (parse_probes, find_probe_by_pc)
8484 (find_probes_in_objfile): Fix comments.
8485
8486 2014-03-02 Doug Evans <xdje42@gmail.com>
8487
8488 * infrun.c (handle_signal_stop): Replace test for
8489 TARGET_WAITKIND_STOPPED with an assert.
8490
8491 2014-03-02 Doug Evans <xdje42@gmail.com>
8492
8493 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8494
8495 2014-03-02 Doug Evans <xdje42@gmail.com>
8496
8497 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8498
8499 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8500
8501 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8502
8503 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8504
8505 * i386obsd-nat.c: Include "obsd-nat.h".
8506 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8507 add_target.
8508 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8509
8510 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8511
8512 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8513
8514 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8515
8516 * mips64obsd-nat.c: Include "obsd-nath".
8517 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8518 add_target
8519 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8520
8521 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8522
8523 * amd64obsd-nat.c: Include "obsd-nat,h.
8524 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8525 add_target.
8526 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8527
8528 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8529
8530 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8531 (find_overload_match): Update call to find_oload_champ.
8532 (find_oload_champ_namespace_loop): Likewise
8533
8534 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8535
8536 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8537
8538 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8539 * config/sparc/obsd64.mh: New file.
8540 * sparc64obsd-nat.c: New file.
8541
8542 * obsd-nat.h: New file.
8543 * obsd-nat.c: New file.
8544 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8545 (ALLDEPFILES): Add obsd-nat.c.
8546
8547 2014-02-28 Tom Tromey <tromey@redhat.com>
8548
8549 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8550 * cli-out.h (cli_ui_out_impl): Now const.
8551 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8552 * ui-out.c (struct ui_out) <impl>: Now const.
8553 (default_ui_out_impl): Now const.
8554 (ui_out_new): Make 'impl' parameter const.
8555 * ui-out.h (ui_out_new): Update.
8556
8557 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8558
8559 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8560
8561 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8562
8563 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8564
8565 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8566
8567 Additional PR 8882 fix.
8568 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8569
8570 2014-02-27 Pedro Alves <palves@redhat.com>
8571
8572 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8573 isn't set.
8574
8575 2014-02-27 Pedro Alves <palves@redhat.com>
8576
8577 PR 12702
8578 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8579 * nat/linux-waitpid.c: Include string.h.
8580 (status_to_str): Moved here and made extern.
8581 * nat/linux-waitpid.h (status_to_str): New declaration.
8582
8583 2014-02-27 Hui Zhu <hui@codesourcery.com>
8584
8585 PR 12702
8586 * infrun.c (ptid_match): Move ...
8587 * common/ptid.c (ptid_match): ... here.
8588 * inferior.h (ptid_match): Move ...
8589 * common/ptid.h (ptid_match): ... here.
8590
8591 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8592
8593 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8594 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8595 gdb_target_obs.
8596
8597 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8598
8599 * obsd-tdep.c (obsd_auxv_parse): New function.
8600 (obsd_init_abi): Set auxv_parse.
8601
8602 * gdbarch.sh (auxv_parse): New.
8603 * gdbarch.h: Regenerated.
8604 * gdbarch.c: Regenerated.
8605 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8606
8607 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8608
8609 * guile/scm-value.c (gdbscm_history_append_x): New function.
8610 (value_functions): Add it.
8611
8612 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8613
8614 * dwarf2read.c (attr_value_as_address): New function.
8615 (dwarf2_find_base_address, read_call_site_scope): Use
8616 attr_value_as_address in place of DW_ADDR.
8617 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8618 the low and high addresses. Slight rework of the handling
8619 of the high pc being a constant form, and limit it to
8620 DWARF verson 4 or higher.
8621 (dwarf2_record_block_ranges): Likewise.
8622 (read_partial_die): Likewise.
8623 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8624
8625 2014-02-26 Tom Tromey <tromey@redhat.com>
8626
8627 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8628
8629 2014-02-26 Tom Tromey <tromey@redhat.com>
8630
8631 * elfread.c (elf_read_minimal_symbols): Return early if
8632 minimal symbols have already been read. Add "ei" parameter.
8633 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8634 * minsyms.c (prim_record_minimal_symbol_full): Update.
8635 * objfiles.h (struct objstats) <n_minsyms>: Move...
8636 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8637 * symmisc.c (print_objfile_statistics): Update.
8638
8639 2014-02-26 Tom Tromey <tromey@redhat.com>
8640
8641 * elfread.c (elf_read_minimal_symbols): New function, from
8642 elf_symfile_read.
8643 (elf_symfile_read): Call it.
8644
8645 2014-02-26 Tom Tromey <tromey@redhat.com>
8646
8647 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8648 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8649 (lookup_minimal_symbol_solib_trampoline)
8650 (lookup_minimal_symbol_by_pc_section_1)
8651 (lookup_minimal_symbol_and_objfile): Update.
8652 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8653 Don't allocate a minimal symbol if minsyms have already been read.
8654 (build_minimal_symbol_hash_tables): Update.
8655 (install_minimal_symbols): Do nothing if minsyms already read.
8656 Use the per-BFD obstack.
8657 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8658 * objfiles.c (allocate_objfile): Call
8659 terminate_minimal_symbol_table later.
8660 (have_minimal_symbols): Update.
8661 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8662 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8663 Move from struct objfile.
8664 <minsyms_read>: New field.
8665 (struct objfile) <msymbols, minimal_symbol_count,
8666 msymbol_hash, msymbol_demangled_hash>: Move.
8667 (ALL_OBJFILE_MSYMBOLS): Update.
8668 * symfile.c (read_symbols): Set minsyms_read.
8669 (reread_symbols): Update.
8670 * symmisc.c (dump_objfile, dump_msymbols): Update.
8671
8672 2014-02-26 Tom Tromey <tromey@redhat.com>
8673
8674 * minsyms.c (msymbols_sort): Remove.
8675 * minsyms.h (msymbols_sort): Remove.
8676 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8677 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8678 * elfread.c (elf_symtab_read): Don't add section offsets.
8679 * xcoffread.c (record_minimal_symbol): Don't add section offset
8680 to minimal symbol address.
8681 * somread.c (text_offset, data_offset): Remove.
8682 (som_symtab_read): Don't add section offsets to minimal symbol
8683 addresses.
8684 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8685 Don't add section offsets to minimal symbols.
8686 * coffread.c (coff_symtab_read): Don't add section offsets
8687 to minimal symbol addresses.
8688 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8689 to minimal symbol addresses.
8690 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8691 section offset to minimal symbol addresses.
8692 * mdebugread.c (parse_partial_symbols): Don't add section
8693 offset to minimal symbol addresses.
8694 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8695 offset to minimal symbol addresses.
8696
8697 2014-02-26 Tom Tromey <tromey@redhat.com>
8698
8699 * ada-lang.c (ada_main_name): Update.
8700 (ada_add_standard_exceptions): Update.
8701 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8702 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8703 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8704 * auxv.c (ld_so_xfer_auxv): Update.
8705 * avr-tdep.c (avr_scan_prologue): Update.
8706 * ax-gdb.c (gen_var_ref): Update.
8707 * blockframe.c (get_pc_function_start)
8708 (find_pc_partial_function_gnu_ifunc): Update.
8709 * breakpoint.c (create_overlay_event_breakpoint)
8710 (create_longjmp_master_breakpoint)
8711 (create_std_terminate_master_breakpoint)
8712 (create_exception_master_breakpoint): Update.
8713 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8714 * c-valprint.c (c_val_print): Update.
8715 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8716 * common/agent.c (agent_look_up_symbols): Update.
8717 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8718 * dwarf2loc.c (call_site_to_target_addr): Update.
8719 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8720 * elfread.c (elf_gnu_ifunc_record_cache)
8721 (elf_gnu_ifunc_resolve_by_got): Update.
8722 * findvar.c (default_read_var_value): Update.
8723 * frame.c (inside_main_func): Update.
8724 * frv-tdep.c (frv_frame_this_id): Update.
8725 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8726 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8727 Update.
8728 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8729 (hppa_hpux_find_dummy_bpaddr): Update.
8730 * hppa-tdep.c (hppa_symbol_address): Update.
8731 * infcmd.c (until_next_command): Update.
8732 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8733 Update.
8734 * linespec.c (minsym_found, add_minsym): Update.
8735 * linux-nat.c (get_signo): Update.
8736 * linux-thread-db.c (inferior_has_bug): Update.
8737 * m32c-tdep.c (m32c_return_value)
8738 (m32c_m16c_address_to_pointer): Update.
8739 * m32r-tdep.c (m32r_frame_this_id): Update.
8740 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8741 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8742 * maint.c (maintenance_translate_address): Update.
8743 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8744 (frob_address): New function.
8745 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8746 frob_address. Rename parameter to "pc_in".
8747 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8748 addresses.
8749 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8750 Update.
8751 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8752 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8753 * objc-lang.c (find_objc_msgsend): Update.
8754 * objfiles.c (objfile_relocate1): Update.
8755 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8756 * p-valprint.c (pascal_val_print): Update.
8757 * parse.c (write_exp_msymbol): Update.
8758 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8759 (ppc_elfv2_skip_entrypoint): Update.
8760 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8761 * printcmd.c (build_address_symbolic, msym_info)
8762 (address_info): Update.
8763 * proc-service.c (ps_pglobal_lookup): Update.
8764 * psymtab.c (find_pc_sect_psymtab_closer)
8765 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8766 Change msymbol parameter to bound_minimal_symbol.
8767 * ravenscar-thread.c (get_running_thread_id): Update.
8768 * remote.c (remote_check_symbols): Update.
8769 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8770 address.
8771 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8772 * solib-dsbt.c (lm_base): Update.
8773 * solib-frv.c (lm_base, main_got): Update.
8774 * solib-irix.c (locate_base): Update.
8775 * solib-som.c (som_solib_create_inferior_hook)
8776 (link_map_start): Update.
8777 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8778 * solib-svr4.c (elf_locate_base, enable_break): Update.
8779 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8780 (flush_ea_cache): Update.
8781 * stabsread.c (define_symbol, scan_file_globals): Update.
8782 * stack.c (find_frame_funname): Update.
8783 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8784 (debug_qf_find_pc_sect_symtab): Update.
8785 * symfile.c (simple_read_overlay_table)
8786 (simple_overlay_update): Update.
8787 * symfile.h (struct quick_symbol_functions)
8788 <find_pc_sect_symtab>: Change type of msymbol to
8789 bound_minimal_symbol.
8790 * symmisc.c (dump_msymbols): Update.
8791 * symtab.c (find_pc_sect_symtab_via_partial)
8792 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8793 (search_symbols, print_msymbol_info): Update.
8794 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8795 (MSYMBOL_VALUE_ADDRESS): Redefine.
8796 (BMSYMBOL_VALUE_ADDRESS): New macro.
8797 * tracepoint.c (scope_info): Update.
8798 * tui/tui-disasm.c (tui_find_disassembly_address)
8799 (tui_get_begin_asm_address): Update.
8800 * valops.c (find_function_in_inferior): Update.
8801 * value.c (value_static_field, value_fn_field): Update.
8802
8803 2014-02-26 Tom Tromey <tromey@redhat.com>
8804
8805 * ada-lang.c (ada_update_initial_language): Update.
8806 (ada_main_name, ada_has_this_exception_support): Update.
8807 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8808 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8809 * arm-tdep.c (arm_skip_stub): Update.
8810 * auxv.c (ld_so_xfer_auxv): Update.
8811 * avr-tdep.c (avr_scan_prologue): Update.
8812 * ax-gdb.c (gen_var_ref): Update.
8813 * breakpoint.c (struct breakpoint_objfile_data)
8814 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8815 type to bound_minimal_symbol.
8816 (create_overlay_event_breakpoint)
8817 (create_longjmp_master_breakpoint)
8818 (create_std_terminate_master_breakpoint)
8819 (create_exception_master_breakpoint): Update.
8820 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8821 * c-exp.y (classify_name): Update.
8822 * coffread.c (coff_symfile_read): Update.
8823 * common/agent.c (agent_look_up_symbols): Update.
8824 * d-lang.c (d_main_name): Update.
8825 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8826 * dec-thread.c (enable_dec_thread): Update.
8827 * dwarf2loc.c (call_site_to_target_addr): Update.
8828 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8829 * eval.c (evaluate_subexp_standard): Update.
8830 * findvar.c (struct minsym_lookup_data) <result>: Change type
8831 to bound_minimal_symbol.
8832 <objfile>: Remove.
8833 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8834 * frame.c (inside_main_func): Update.
8835 * frv-tdep.c (frv_frame_this_id): Update.
8836 * gcore.c (call_target_sbrk): Update.
8837 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8838 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8839 Update.
8840 * go-lang.c (go_main_name): Update.
8841 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8842 (hppa_hpux_find_import_stub_for_addr): Update.
8843 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8844 Update. Change return type.
8845 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8846 type.
8847 * jit.c (jit_breakpoint_re_set_internal): Update.
8848 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8849 Update.
8850 * linux-nat.c (get_signo): Update.
8851 * linux-thread-db.c (inferior_has_bug): Update
8852 * m32c-tdep.c (m32c_return_value)
8853 (m32c_m16c_address_to_pointer): Update.
8854 * m32r-tdep.c (m32r_frame_this_id): Update.
8855 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8856 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8857 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8858 lookup_minimal_symbol. Change return type.
8859 (lookup_minimal_symbol): Remove.
8860 (lookup_bound_minimal_symbol): Update.
8861 (lookup_minimal_symbol_text): Change return type.
8862 (lookup_minimal_symbol_solib_trampoline): Change return type.
8863 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8864 (lookup_minimal_symbol_solib_trampoline): Change return type.
8865 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8866 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8867 (value_nsstring, find_imps): Update.
8868 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8869 * p-lang.c (pascal_main_name): Update.
8870 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8871 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8872 * proc-service.c (ps_pglobal_lookup): Update.
8873 * ravenscar-thread.c (get_running_thread_msymbol): Change
8874 return type.
8875 (has_ravenscar_runtime, get_running_thread_id): Update.
8876 * remote.c (remote_check_symbols): Update.
8877 * sol-thread.c (ps_pglobal_lookup): Update.
8878 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8879 * solib-dsbt.c (lm_base): Update.
8880 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8881 Update.
8882 * solib-irix.c (locate_base): Update.
8883 * solib-som.c (som_solib_create_inferior_hook)
8884 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8885 Update.
8886 * solib-spu.c (spu_enable_break): Update.
8887 * solib-svr4.c (elf_locate_base, enable_break): Update.
8888 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8889 (flush_ea_cache): Update.
8890 * stabsread.c (define_symbol): Update.
8891 * symfile.c (simple_read_overlay_table): Update.
8892 * symtab.c (find_pc_sect_line): Update.
8893 * tracepoint.c (scope_info): Update.
8894 * tui-disasm.c (tui_get_begin_asm_address): Update.
8895 * value.c (value_static_field): Update.
8896
8897 2014-02-26 Tom Tromey <tromey@redhat.com>
8898
8899 * minsyms.c (prim_record_minimal_symbol_full): Use
8900 SET_MSYMBOL_VALUE_ADDRESS.
8901 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8902 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8903 SET_MSYMBOL_VALUE_ADDRESS.
8904 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8905 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8906
8907 2014-02-26 Tom Tromey <tromey@redhat.com>
8908
8909 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8910 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8911 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8912 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8913 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8914 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8915 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8916 * ada-lang.c (ada_main_name): Update.
8917 (ada_lookup_simple_minsym): Update.
8918 (ada_make_symbol_completion_list): Update.
8919 (ada_add_standard_exceptions): Update.
8920 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8921 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8922 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8923 * arm-tdep.c (skip_prologue_function): Update.
8924 (arm_skip_stack_protector, arm_skip_stub): Update.
8925 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8926 (arm_wince_skip_main_prologue): Update.
8927 * auxv.c (ld_so_xfer_auxv): Update.
8928 * avr-tdep.c (avr_scan_prologue): Update.
8929 * ax-gdb.c (gen_var_ref): Update.
8930 * block.c (call_site_for_pc): Update.
8931 * blockframe.c (get_pc_function_start): Update.
8932 (find_pc_partial_function_gnu_ifunc): Update.
8933 * breakpoint.c (create_overlay_event_breakpoint): Update.
8934 (create_longjmp_master_breakpoint): Update.
8935 (create_std_terminate_master_breakpoint): Update.
8936 (create_exception_master_breakpoint): Update.
8937 (resolve_sal_pc): Update.
8938 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8939 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8940 Update.
8941 * c-valprint.c (c_val_print): Update.
8942 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8943 * coffread.c (coff_symfile_read): Update.
8944 * common/agent.c (agent_look_up_symbols): Update.
8945 * dbxread.c (find_stab_function_addr): Update.
8946 (end_psymtab): Update.
8947 * dwarf2loc.c (call_site_to_target_addr): Update.
8948 (func_verify_no_selftailcall): Update.
8949 (tailcall_dump): Update.
8950 (call_site_find_chain_1): Update.
8951 (dwarf_expr_reg_to_entry_parameter): Update.
8952 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8953 (elf_gnu_ifunc_resolve_by_got): Update.
8954 * f-valprint.c (info_common_command): Update.
8955 * findvar.c (read_var_value): Update.
8956 * frame.c (get_prev_frame_1): Update.
8957 (inside_main_func): Update.
8958 * frv-tdep.c (frv_skip_main_prologue): Update.
8959 (frv_frame_this_id): Update.
8960 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8961 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8962 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8963 (gnuv3_skip_trampoline): Update.
8964 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8965 (hppa64_hpux_in_solib_call_trampoline): Update.
8966 (hppa_hpux_skip_trampoline_code): Update.
8967 (hppa64_hpux_search_dummy_call_sequence): Update.
8968 (hppa_hpux_find_import_stub_for_addr): Update.
8969 (hppa_hpux_find_dummy_bpaddr): Update.
8970 * hppa-tdep.c (hppa_symbol_address)
8971 (hppa_lookup_stub_minimal_symbol): Update.
8972 * i386-tdep.c (i386_skip_main_prologue): Update.
8973 (i386_pe_skip_trampoline_code): Update.
8974 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8975 * infcall.c (get_function_name): Update.
8976 * infcmd.c (until_next_command): Update.
8977 * jit.c (jit_breakpoint_re_set_internal): Update.
8978 (jit_inferior_init): Update.
8979 * linespec.c (minsym_found): Update.
8980 (add_minsym): Update.
8981 * linux-fork.c (info_checkpoints_command): Update.
8982 * linux-nat.c (get_signo): Update.
8983 * linux-thread-db.c (inferior_has_bug): Update.
8984 * m32c-tdep.c (m32c_return_value): Update.
8985 (m32c_m16c_address_to_pointer): Update.
8986 (m32c_m16c_pointer_to_address): Update.
8987 * m32r-tdep.c (m32r_frame_this_id): Update.
8988 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8989 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8990 * maint.c (maintenance_translate_address): Update.
8991 * minsyms.c (add_minsym_to_hash_table): Update.
8992 (add_minsym_to_demangled_hash_table): Update.
8993 (msymbol_objfile): Update.
8994 (lookup_minimal_symbol): Update.
8995 (iterate_over_minimal_symbols): Update.
8996 (lookup_minimal_symbol_text): Update.
8997 (lookup_minimal_symbol_by_pc_name): Update.
8998 (lookup_minimal_symbol_solib_trampoline): Update.
8999 (lookup_minimal_symbol_by_pc_section_1): Update.
9000 (lookup_minimal_symbol_and_objfile): Update.
9001 (prim_record_minimal_symbol_full): Update.
9002 (compare_minimal_symbols): Update.
9003 (compact_minimal_symbols): Update.
9004 (build_minimal_symbol_hash_tables): Update.
9005 (install_minimal_symbols): Update.
9006 (terminate_minimal_symbol_table): Update.
9007 (find_solib_trampoline_target): Update.
9008 (minimal_symbol_upper_bound): Update.
9009 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9010 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9011 (mips_skip_pic_trampoline_code): Update.
9012 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9013 * objc-lang.c (selectors_info): Update.
9014 (classes_info): Update.
9015 (find_methods): Update.
9016 (find_imps): Update.
9017 (find_objc_msgsend): Update.
9018 * objfiles.c (objfile_relocate1): Update.
9019 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9020 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9021 * p-valprint.c (pascal_val_print): Update.
9022 * parse.c (write_exp_msymbol): Update.
9023 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9024 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9025 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9026 * printcmd.c (build_address_symbolic): Update.
9027 (sym_info): Update.
9028 (address_info): Update.
9029 * proc-service.c (ps_pglobal_lookup): Update.
9030 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9031 (find_pc_sect_psymtab): Update.
9032 * python/py-framefilter.c (py_print_frame): Update.
9033 * ravenscar-thread.c (get_running_thread_id): Update.
9034 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9035 Update.
9036 * remote.c (remote_check_symbols): Update.
9037 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9038 (rs6000_skip_trampoline_code): Update.
9039 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9040 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9041 * solib-dsbt.c (lm_base): Update.
9042 * solib-frv.c (lm_base): Update.
9043 (main_got): Update.
9044 * solib-irix.c (locate_base): Update.
9045 * solib-som.c (som_solib_create_inferior_hook): Update.
9046 (som_solib_desire_dynamic_linker_symbols): Update.
9047 (link_map_start): Update.
9048 * solib-spu.c (spu_enable_break): Update.
9049 (ocl_enable_break): Update.
9050 * solib-svr4.c (elf_locate_base): Update.
9051 (enable_break): Update.
9052 * spu-tdep.c (spu_get_overlay_table): Update.
9053 (spu_catch_start): Update.
9054 (flush_ea_cache): Update.
9055 * stabsread.c (define_symbol): Update.
9056 (scan_file_globals): Update.
9057 * stack.c (find_frame_funname): Update.
9058 (frame_info): Update.
9059 * symfile.c (simple_read_overlay_table): Update.
9060 (simple_overlay_update): Update.
9061 * symmisc.c (dump_msymbols): Update.
9062 * symtab.c (fixup_section): Update.
9063 (find_pc_sect_line): Update.
9064 (skip_prologue_sal): Update.
9065 (search_symbols): Update.
9066 (print_msymbol_info): Update.
9067 (rbreak_command): Update.
9068 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9069 (completion_list_objc_symbol): Update.
9070 (default_make_symbol_completion_list_break_on): Update.
9071 * tracepoint.c (scope_info): Update.
9072 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9073 (tui_get_begin_asm_address): Update.
9074 * valops.c (find_function_in_inferior): Update.
9075 * value.c (value_static_field): Update.
9076 (value_fn_field): Update.
9077
9078 2014-02-26 Tom Tromey <tromey@redhat.com>
9079
9080 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9081 bound minimal symbols. Move code that knows about minsym
9082 table layout...
9083 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9084 function.
9085 * minsyms.h (minimal_symbol_upper_bound): Declare.
9086 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9087 minimal_symbol_upper_bound.
9088
9089 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9090
9091 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9092 Use the type's name if its basic type does not have a tag.
9093
9094 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9095
9096 * dwarf2read.c (read_subrange_type): Add comment.
9097
9098 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9099
9100 * dwarf2read.c (update_enumeration_type_from_children): New
9101 function, mostly extracted from process_structure_scope.
9102 (read_enumeration_type): Call update_enumeration_type_from_children.
9103 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9104 and flag_flag_enum fields.
9105
9106 2014-02-26 Pedro Alves <palves@redhat.com>
9107
9108 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9109 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9110 to_xfer_partial method.
9111
9112 2014-02-26 Pedro Alves <palves@redhat.com>
9113
9114 * target.c (complete_target_initialization): Don't install
9115 default_xfer_partial as to_xfer_partial hook.
9116 (nomemory): Delete.
9117 (update_current_target): Don't INHERIT nor de_fault
9118 deprecated_xfer_memory. Delete de_fault macro.
9119 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9120 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9121 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9122 field.
9123
9124 2014-02-26 Pedro Alves <palves@redhat.com>
9125
9126 * go32-nat.c (my_write_child): New function.
9127 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9128 (go32_xfer_partial): New function.
9129 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9130 Instead install a to_xfer_partial hook.
9131
9132 2014-02-26 Pedro Alves <palves@redhat.com>
9133
9134 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9135 to_xfer_partial helper. Rewrite.
9136 (procfs_xfer_partial): New function.
9137 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9138 Install a to_xfer_partial hook.
9139
9140 2014-02-26 Pedro Alves <palves@redhat.com>
9141
9142 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9143 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9144 (m32r_xfer_partial): New function.
9145 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9146 Install a to_xfer_partial hook.
9147
9148 2014-02-26 Pedro Alves <palves@redhat.com>
9149
9150 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9151 helper.
9152 (mips_xfer_partial): New function.
9153 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9154 hook. Install a to_xfer_partial hook.
9155
9156 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9157
9158 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9159 * gdbtypes.c (create_array_type_with_stride): New function,
9160 renaming create_array_type, but with an added parameter
9161 called "bit_stride".
9162 (create_array_type): Re-implement using
9163 create_array_type_with_stride.
9164 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9165 and DW_AT_bit_stride attributes.
9166
9167 2014-02-26 Pedro Alves <palves@redhat.com>
9168
9169 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9170 task-specific breakpoints.
9171
9172 2014-02-25 Pedro Alves <palves@redhat.com>
9173
9174 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9175 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9176
9177 2014-02-25 Stan Shebs <stan@codesourcery.com>
9178
9179 * defs.h: Annotate comments for Doxygen.
9180
9181 2014-02-25 Tom Tromey <tromey@redhat.com>
9182
9183 * target.h (target_ignore): Don't declare.
9184 * target.c (target_ignore): Remove.
9185
9186 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9187
9188 PR gdb/16626
9189 * auto-load.c (auto_load_objfile_script_1): Change filename to
9190 debugfile.
9191
9192 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9193
9194 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9195 documentation. Adjust prototype to match the target_ops
9196 to_xfer_partial method. Adjust implementation accordingly.
9197
9198 2014-02-25 Hui Zhu <hui@codesourcery.com>
9199
9200 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9201 to_traceframe_info.
9202
9203 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9204
9205 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9206 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9207 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9208 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9209 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9210 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9211 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9212 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9213 New constants.
9214 (rl78_register_type): Use a data pointer type for SP and
9215 new pseudo registers mentioned above. Use a 16 bit integer
9216 type for all other register pairs.
9217 (rl78_register_name, rl78_g10_register_name): Update for
9218 new pseudo registers.
9219 (rl78_pseudo_register_read): Likewise.
9220 (rl78_pseudo_register_write): Likewise.
9221 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9222 to the newly added pseudo registers.
9223
9224 2014-02-24 Doug Evans <dje@google.com>
9225
9226 * value.c (record_latest_value): Fix comment.
9227 * printcmd.c (print_command_1): Remove code to handle -1 return from
9228 record_latest_value.
9229
9230 2014-02-24 Pedro Alves <palves@redhat.com>
9231
9232 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9233 deprecated_xfer_memory hook.
9234 (procfs_xfer_partial): Call procfs_xfer_memory instead
9235 of the deprecated_xfer_memory target hook.
9236 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9237 helper.
9238
9239 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9240
9241 * windows-nat.c (windows_xfer_shared_libraries): Return
9242 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9243 requested object is TARGET_OBJECT_LIBRARIES.
9244
9245 2014-02-24 Yao Qi <yao@codesourcery.com>
9246
9247 * target.h (enum target_xfer_status)
9248 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9249 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9250 explicitly. New.
9251 * corefile.c (memory_error_message): User updated.
9252 * exec.c (section_table_read_available_memory): Likewise.
9253 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9254 * target.c (target_xfer_status_to_string): Likewise.
9255 (raw_memory_xfer_partial): Likewise.
9256 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9257 * valops.c (read_value_memory): Likewise.
9258 * exec.h: Update comments.
9259
9260 2014-02-24 Yao Qi <yao@codesourcery.com>
9261
9262 * target.c (target_xfer_status_to_string): Rename argument err
9263 to status.
9264 * target.h (target_xfer_status_to_string): Update declaration.
9265 Replace target_xfer_error_to_string with
9266 target_xfer_status_to_string in comment.
9267
9268 2014-02-24 Yao Qi <yao@codesourcery.com>
9269
9270 * mips-linux-nat.c (super_close): Update its type.
9271 (mips_linux_close): Pass 'self' to super_close.
9272
9273 2014-02-24 Yao Qi <yao@codesourcery.com>
9274
9275 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9276 * corefile.c (read_memory): Adjusted.
9277 * target.c (target_write_with_progress): Adjusted.
9278
9279 2014-02-23 Yao Qi <yao@codesourcery.com>
9280
9281 Revert two patches:
9282
9283 2013-10-25 Yao Qi <yao@codesourcery.com>
9284
9285 * remote.c (remote_traceframe_info): Return early if
9286 traceframe is not selected.
9287
9288 2013-07-19 Yao Qi <yao@codesourcery.com>
9289
9290 * target.c (update_current_target): Change the default action
9291 of 'to_traceframe_info' from tcomplain to return_zero.
9292 * target.h (struct target_ops) <to_traceframe_info>: Add more
9293 comments.
9294
9295 2014-02-23 Yao Qi <yao@codesourcery.com>
9296
9297 * valops.c (read_value_memory): Rewrite it. Call
9298 target_xfer_partial in a loop.
9299 * exec.h (section_table_available_memory): Remove declaration.
9300 Move comments to ...
9301 * exec.c (section_table_available_memory): ... here. Make it
9302 static.
9303
9304 2014-02-23 Yao Qi <yao@codesourcery.com>
9305
9306 * exec.c (section_table_read_available_memory): New function.
9307 * exec.h (section_table_read_available_memory): Declare.
9308 * ctf.c (ctf_xfer_partial): Call
9309 section_table_read_available_memory.
9310 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9311
9312 2014-02-23 Yao Qi <yao@codesourcery.com>
9313
9314 * ctf.c (ctf_xfer_partial): Move code to ...
9315 * exec.c (exec_read_partial_read_only): ... it. New function.
9316 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9317 * tracefile.c: Include "exec.h".
9318 * exec.h (exec_read_partial_read_only): Declare.
9319
9320 2014-02-23 Yao Qi <yao@codesourcery.com>
9321
9322 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9323 (tfile_has_memory): Remove.
9324 (init_tfile_ops): Don't set fields to_has_all_memory and
9325 to_has_memory of tfile_ops.
9326 * tracefile.c (tracefile_has_all_memory): New function.
9327 (tracefile_has_memory): New function.
9328 (init_tracefile_ops): Initialize fields to_has_all_memory and
9329 to_has_memory of 'ops'.
9330
9331 2014-02-23 Yao Qi <yao@codesourcery.com>
9332
9333 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9334 (ctf_thread_alive, ctf_get_trace_status): Remove.
9335 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9336 init_tracefile_ops.
9337 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9338 (tfile_has_stack, tfile_has_registers): Remove.
9339 (tfile_thread_alive): Remove.
9340 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9341 init_tracefile_ops.
9342 * tracefile.c (tracefile_has_stack): New function.
9343 (tracefile_has_registers): New function.
9344 (tracefile_thread_alive): New function.
9345 (tracefile_get_trace_status): New function.
9346 (init_tracefile_ops): New function.
9347 * tracefile.h (init_tracefile_ops): Declare.
9348
9349 2014-02-23 Yao Qi <yao@codesourcery.com>
9350
9351 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9352 (O_LARGEFILE): Likewise.
9353 (tfile_ops): Likewise.
9354 (TRACE_HEADER_SIZE): Likewise.
9355 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9356 (cur_data_size): Likewise.
9357 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9358 (tfile_close, tfile_files_info): Likewise.
9359 (tfile_get_trace_status): Likewise.
9360 (tfile_get_tracepoint_status): Likewise.
9361 (tfile_get_traceframe_address): Likewise.
9362 (tfile_trace_find, match_blocktype): Likewise.
9363 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9364 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9365 (tfile_get_trace_state_variable_value): Likewise.
9366 (tfile_has_all_memory, tfile_has_memory): Likewise.
9367 (tfile_has_stack, tfile_has_registers): Likewise.
9368 (tfile_thread_alive, build_traceframe_info): Likewise.
9369 (tfile_traceframe_info, init_tfile_ops): Likewise.
9370 (_initialize_tracepoint): Don't call init_tfile_ops
9371 and add_target_with_completer.
9372 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9373 exec.h, completer.h and filenames.h.
9374 (_initialize_tracefile_tfile): New function.
9375
9376 2014-02-23 Yao Qi <yao@codesourcery.com>
9377
9378 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9379 tracefile-tfile.o.
9380 (HFILES_NO_SRCDIR): Add tracefile.h.
9381 * ctf.c: Include "tracefile.h".
9382 * tracefile.h: New file.
9383 * tracefile.c: New file
9384 * tracefile-tfile.c: New file.
9385 * tracepoint.c: Include "tracefile.h".
9386 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9387 (stop_reason_names): Add const.
9388 (trace_file_writer_xfree): Move it to tracefile.c.
9389 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9390 (trace_save_ctf): Likewise.
9391 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9392 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9393 (tfile_write_header, tfile_write_regblock_type): Likewise.
9394 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9395 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9396 (tfile_write_raw_data, tfile_end): Likewise.
9397 (tfile_trace_file_writer_new): Likewise.
9398 (free_uploaded_tp): Make it extern.
9399 (free_uploaded_tsv): Make it extern.
9400 (_initialize_tracepoint): Move code to register command 'tsave'
9401 to tracefile.c.
9402 * tracepoint.h (stop_reason_names): Declare.
9403 (struct trace_frame_write_ops): Move it to tracefile.h.
9404 (struct trace_file_write_ops): Likewise.
9405 (struct trace_file_writer): Likewise.
9406 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9407
9408 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9409
9410 PR gdb/16594
9411 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9412 process name.
9413 (get_cores_used_by_process): New parameter num_cores, use it.
9414 (linux_xfer_osdata_processes): Pass num_cores to it.
9415 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9416 process name.
9417
9418 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9419
9420 * target.c (memory_xfer_partial): Fix length arg in call to
9421 breakpoint_xfer_memory.
9422
9423 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9424
9425 PR tdep/16397
9426 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9427 number comes after the + or - signs. Adjust length of register
9428 name to be extracted.
9429
9430 2014-02-20 Tom Tromey <tromey@redhat.com>
9431
9432 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9433 (ada_varobj_ops): Mark "extern".
9434
9435 2014-02-20 Tom Tromey <tromey@redhat.com>
9436
9437 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9438
9439 2014-02-20 Doug Evans <xdje42@gmail.com>
9440
9441 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9442 All callers updated.
9443 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9444 All callers updated.
9445 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9446 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9447
9448 2014-02-20 lin zuojian <manjian2006@gmail.com>
9449 Joel Brobecker <brobecker@adacore.com>
9450 Doug Evans <xdje42@gmail.com>
9451
9452 PR symtab/16581
9453 * dwarf2read.c (struct die_info): New member in_process.
9454 (reset_die_in_process): New function.
9455 (process_die): Set it at the start, reset when returning.
9456 (inherit_abstract_dies): Only call process_die if origin_child_die
9457 not already being processed.
9458
9459 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9460
9461 * windows-nat.c (handle_unload_dll): Add function documentation.
9462 (do_initial_windows_stuff): Add comment explaining why we wait
9463 until after inferior initialization has finished before
9464 processing all DLLs.
9465
9466 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9467
9468 * windows-nat.c (get_module_name): Delete.
9469 (windows_get_exec_module_filename): New function, mostly
9470 inspired from get_module_name.
9471 (windows_pid_to_exec_file): Replace call to get_module_name
9472 by call to windows_get_exec_module_filename.
9473
9474 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9475
9476 * windows-nat.c (handle_load_dll): Rewrite this function's
9477 introductory comment. Remove code using get_module_name
9478 to get the DLL's name.
9479
9480 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9481
9482 * windows-nat.c (get_windows_debug_event): Ignore
9483 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9484 if windows_initialization_done == 0.
9485 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9486 Adjust implementation to always load all DLLs.
9487 (do_initial_windows_stuff): Replace call to
9488 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9489
9490 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9491
9492 * windows-nat.c (_initialize_windows_nat): Deprecate the
9493 "dll-symbols" command. Turn the "add-shared-symbol-files"
9494 and "assf" aliases into commands, and deprecate them as well.
9495 * NEWS: Add entry explaining that "dll-symbols" and its two
9496 aliases are now deprecated.
9497
9498 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9499
9500 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9501 new-line in debug string. Remove trailing spaces.
9502
9503 2014-02-19 Stan Shebs <stan@codesourcery.com>
9504
9505 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9506
9507 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9508
9509 * NEWS: Add entry for the new feature
9510 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9511 and class values.
9512
9513 2014-02-19 Stan Shebs <stan@codesourcery.com>
9514
9515 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9516
9517 2014-02-19 Pedro Alves <palves@redhat.com>
9518
9519 * common/ptid.h (struct ptid): Mention that process_stratum
9520 targets should prefer ptid.lwp.
9521
9522 2014-02-19 Pedro Alves <palves@redhat.com>
9523
9524 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9525 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9526 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9527 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9528 store remote thread ids rather than ptid.tid.
9529 (_initialize_remote): Adjust.
9530
9531 2014-02-19 Tom Tromey <tromey@redhat.com>
9532
9533 * target.c (target_get_unwinder): Rewrite.
9534 (target_get_tailcall_unwinder): Rewrite.
9535 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9536 (record_btrace_to_get_tailcall_unwinder): New function.
9537 (init_record_btrace_ops): Update.
9538 * target.h (struct target_ops) <to_get_unwinder,
9539 to_get_tailcall_unwinder>: Now function pointers. Use
9540 TARGET_DEFAULT_RETURN.
9541
9542 2014-02-19 Tom Tromey <tromey@redhat.com>
9543
9544 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9545 argument.
9546 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9547
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9549
9550 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9551 directly.
9552 * target-delegates.c: Rebuild.
9553 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9554 TARGET_DEFAULT_FUNC.
9555 * target.c (default_target_decr_pc_after_break): Rename from
9556 forward_target_decr_pc_after_break. Simplify.
9557 (target_decr_pc_after_break): Rely on delegation.
9558
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * target.c (update_current_target): Do not INHERIT to_doc or
9562 to_magic. Do not de_fault to_open or to_close.
9563
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9565
9566 * gcore.h (objfile_find_memory_regions): Declare.
9567 * gcore.c (objfile_find_memory_regions): No longer static. Add
9568 "self" argument.
9569 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9570 * exec.c: Include gcore.h.
9571 (exec_set_find_memory_regions): Remove.
9572 (exec_find_memory_regions): Remove.
9573 (exec_do_find_memory_regions): Remove.
9574 (init_exec_ops): Update.
9575 * defs.h (exec_set_find_memory_regions): Remove.
9576
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9578
9579 * target-delegates.c: Rebuild.
9580 * target.h (struct target_ops) <to_extra_thread_info,
9581 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9582 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9583 not 0, in TARGET_DEFAULT_RETURN.
9584
9585 2014-02-19 Tom Tromey <tromey@redhat.com>
9586
9587 * target.c (complete_target_initialization): Remove casts. Use
9588 return_zero_has_execution.
9589 (return_zero): Add "ignore" argument.
9590 (return_zero_has_execution): New function.
9591 (init_dummy_target): Remove casts. Use
9592 return_zero_has_execution.
9593
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9595
9596 * target.c (update_current_target): Update comments. Do not
9597 INHERIT to_stratum.
9598
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9602 needed.
9603 * corelow.c (core_read_description): Delegate when needed.
9604 * remote.c (remote_read_description): Delegate when needed.
9605 * target-delegates.c: Rebuild.
9606 * target.c (target_read_description): Rewrite.
9607 * target.h (struct target_ops) <to_read_description>: Update
9608 comment. Use TARGET_DEFAULT_RETURN.
9609
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9611
9612 * target-delegates.c: Rebuild.
9613 * target.c (update_current_target): Don't inherit or default
9614 to_can_run.
9615 (find_default_run_target): Check against delegate_can_run.
9616 * target.h (struct target_ops) <to_can_run>: Use
9617 TARGET_DEFAULT_RETURN.
9618
9619 2014-02-19 Tom Tromey <tromey@redhat.com>
9620
9621 * target-delegates.c: Rebuild.
9622 * target.c (target_disconnect): Unconditionally delegate.
9623 * target.h (struct target_ops) <to_disconnect>: Use
9624 TARGET_DEFAULT_NORETURN.
9625
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9627
9628 * record.c (record_stop): Unconditionally delegate.
9629 * target-delegates.c: Rebuild.
9630 * target.c (target_stop_recording): Unconditionally delegate.
9631 * target.h (struct target_ops) <to_stop_recording>: Use
9632 TARGET_DEFAULT_IGNORE.
9633
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target-delegates.c: Rebuild.
9637 * target.c (target_enable_btrace): Unconditionally delegate.
9638 * target.h (struct target_ops) <to_enable_btrace>: Use
9639 TARGET_DEFAULT_NORETURN.
9640
9641 2014-02-19 Tom Tromey <tromey@redhat.com>
9642
9643 * target-delegates.c: Rebuild.
9644 * target.c (target_read_btrace): Unconditionally delegate.
9645 * target.h (struct target_ops) <to_read_btrace>: Use
9646 TARGET_DEFAULT_NORETURN.
9647
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target-delegates.c: Rebuild.
9651 * target.c (target_teardown_btrace): Unconditionally delegate.
9652 * target.h (struct target_ops) <to_teardown_btrace>: Use
9653 TARGET_DEFAULT_NORETURN.
9654
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9656
9657 * target-delegates.c: Rebuild.
9658 * target.c (target_disable_btrace): Unconditionally delegate.
9659 * target.h (struct target_ops) <to_disable_btrace>: Use
9660 TARGET_DEFAULT_NORETURN.
9661
9662 2014-02-19 Tom Tromey <tromey@redhat.com>
9663
9664 * target-delegates.c: Rebuild.
9665 * target.c (default_search_memory): New function.
9666 (simple_search_memory): Update comment.
9667 (target_search_memory): Unconditionally delegate.
9668 * target.h (struct target_ops) <to_search_memory>: Use
9669 TARGET_DEFAULT_FUNC.
9670
9671 2014-02-19 Tom Tromey <tromey@redhat.com>
9672
9673 * auxv.c (default_auxv_parse): No longer static.
9674 (target_auxv_parse): Unconditionally delegate.
9675 * auxv.h (default_auxv_parse): Declare.
9676 * target-delegates.c: Rebuild.
9677 * target.c: Include auxv.h.
9678 * target.h (struct target_ops) <to_auxv_parse>: Use
9679 TARGET_DEFAULT_FUNC.
9680
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * target-delegates.c: Rebuild.
9684 * target.c (target_memory_map): Unconditionally delegate.
9685 * target.h (struct target_ops) <to_memory_map>: Use
9686 TARGET_DEFAULT_RETURN.
9687
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9689
9690 * target-delegates.c: Rebuild.
9691 * target.c (target_thread_alive): Unconditionally delegate.
9692 * target.h (struct target_ops) <to_thread_alive>: Use
9693 TARGET_DEFAULT_RETURN.
9694
9695 2014-02-19 Tom Tromey <tromey@redhat.com>
9696
9697 * target-delegates.c: Rebuild.
9698 * target.c (target_save_record): Unconditionally delegate.
9699 * target.h (struct target_ops) <to_save_record>: Use
9700 TARGET_DEFAULT_NORETURN.
9701
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9703
9704 * target-delegates.c: Rebuild.
9705 * target.c (target_delete_record): Unconditionally delegate.
9706 * target.h (struct target_ops) <to_delete_record>: Use
9707 TARGET_DEFAULT_NORETURN.
9708
9709 2014-02-19 Tom Tromey <tromey@redhat.com>
9710
9711 * target-delegates.c: Rebuild.
9712 * target.c (target_record_is_replaying): Unconditionally
9713 delegate.
9714 * target.h (struct target_ops) <to_record_is_replaying>: Use
9715 TARGET_DEFAULT_RETURN.
9716
9717 2014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * target-delegates.c: Rebuild.
9720 * target.c (target_goto_record_begin): Unconditionally delegate.
9721 * target.h (struct target_ops) <to_goto_record_begin>: Use
9722 TARGET_DEFAULT_NORETURN.
9723
9724 2014-02-19 Tom Tromey <tromey@redhat.com>
9725
9726 * target-delegates.c: Rebuild.
9727 * target.c (target_goto_record_end): Unconditionally delegate.
9728 * target.h (struct target_ops) <to_goto_record_end>: Use
9729 TARGET_DEFAULT_NORETURN.
9730
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target-delegates.c: Rebuild.
9734 * target.c (target_goto_record): Unconditionally delegate.
9735 * target.h (struct target_ops) <to_goto_record>: Use
9736 TARGET_DEFAULT_NORETURN.
9737
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9739
9740 * target-delegates.c: Rebuild.
9741 * target.c (target_insn_history): Unconditionally delegate.
9742 * target.h (struct target_ops) <to_insn_history>: Use
9743 TARGET_DEFAULT_NORETURN.
9744
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * target-delegates.c: Rebuild.
9748 * target.c (target_insn_history_from): Unconditionally delegate.
9749 * target.h (struct target_ops) <to_insn_history_from>: Use
9750 TARGET_DEFAULT_NORETURN.
9751
9752 2014-02-19 Tom Tromey <tromey@redhat.com>
9753
9754 * target-delegates.c: Rebuild.
9755 * target.c (target_insn_history_range): Unconditionally delegate.
9756 * target.h (struct target_ops) <to_insn_history_range>: Use
9757 TARGET_DEFAULT_NORETURN.
9758
9759 2014-02-19 Tom Tromey <tromey@redhat.com>
9760
9761 * target-delegates.c: Rebuild.
9762 * target.c (target_call_history): Unconditionally delegate.
9763 * target.h (struct target_ops) <to_call_history>: Use
9764 TARGET_DEFAULT_NORETURN.
9765
9766 2014-02-19 Tom Tromey <tromey@redhat.com>
9767
9768 * target-delegates.c: Rebuild.
9769 * target.c (target_call_history_from): Unconditionally delegate.
9770 * target.h (struct target_ops) <to_call_history_from>: Use
9771 TARGET_DEFAULT_NORETURN.
9772
9773 2014-02-19 Tom Tromey <tromey@redhat.com>
9774
9775 * target-delegates.c: Rebuild.
9776 * target.c (target_call_history_range): Unconditionally delegate.
9777 * target.h (struct target_ops) <to_call_history_range>: Use
9778 TARGET_DEFAULT_NORETURN.
9779
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target-delegates.c: Rebuild.
9783 * target.c (target_verify_memory): Unconditionally delegate.
9784 * target.h (struct target_ops) <to_verify_memory>: Use
9785 TARGET_DEFAULT_NORETURN.
9786
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target-delegates.c: Rebuild.
9790 * target.c (target_core_of_thread): Unconditionally delegate.
9791 * target.h (struct target_ops) <to_core_of_thread>: Use
9792 TARGET_DEFAULT_RETURN.
9793
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * target-delegates.c: Rebuild.
9797 * target.c (target_flash_done): Unconditionally delegate.
9798 * target.h (struct target_ops) <to_flash_done>: Use
9799 TARGET_DEFAULT_NORETURN.
9800
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target-delegates.c: Rebuild.
9804 * target.c (target_flash_erase): Unconditionally delegate.
9805 * target.h (struct target_ops) <to_flash_erase>: Use
9806 TARGET_DEFAULT_NORETURN.
9807
9808 2014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * target-delegates.c: Rebuild.
9811 * target.c (target_get_section_table): Unconditionally delegate.
9812 * target.h (struct target_ops) <to_get_section_table>: Use
9813 TARGET_DEFAULT_RETURN.
9814
9815 2014-02-19 Tom Tromey <tromey@redhat.com>
9816
9817 * target-delegates.c: Rebuild.
9818 * target.c (target_pid_to_str): Unconditionally delegate.
9819 (init_dummy_target): Don't initialize to_pid_to_str.
9820 (default_pid_to_str): Rename from dummy_pid_to_str.
9821 * target.h (struct target_ops) <to_pid_to_str>: Use
9822 TARGET_DEFAULT_FUNC.
9823
9824 2014-02-19 Tom Tromey <tromey@redhat.com>
9825
9826 * target-delegates.c: Rebuild.
9827 * target.c (target_find_new_threads): Unconditionally delegate.
9828 * target.h (struct target_ops) <to_find_new_threads>: Use
9829 TARGET_DEFAULT_RETURN.
9830
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9832
9833 * target-delegates.c: Rebuild.
9834 * target.c (target_program_signals): Unconditionally delegate.
9835 * target.h (struct target_ops) <to_program_signals>: Use
9836 TARGET_DEFAULT_IGNORE.
9837
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9839
9840 * target-delegates.c: Rebuild.
9841 * target.c (target_pass_signals): Unconditionally delegate.
9842 * target.h (struct target_ops) <to_pass_signals>: Use
9843 TARGET_DEFAULT_IGNORE.
9844
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9846
9847 * target-delegates.c: Rebuild.
9848 * target.c (default_mourn_inferior): New function.
9849 (target_mourn_inferior): Unconditionally delegate.
9850 * target.h (struct target_ops) <to_mourn_inferior>: Use
9851 TARGET_DEFAULT_FUNC.
9852
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target-delegates.c: Rebuild.
9856 * target.c (default_follow_fork): New function.
9857 (target_follow_fork): Unconditionally delegate.
9858 * target.h (struct target_ops) <to_follow_fork>: Use
9859 TARGET_DEFAULT_FUNC.
9860
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9862
9863 * target-delegates.c: Rebuild.
9864 * target.c (target_kill): Unconditionally delegate.
9865 * target.h (struct target_ops) <to_kill>: Use
9866 TARGET_DEFAULT_NORETURN.
9867
9868 2014-02-19 Tom Tromey <tromey@redhat.com>
9869
9870 * target-delegates.c: Rebuild.
9871 * target.c (target_masked_watch_num_registers): Unconditionally
9872 delegate.
9873 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9874 Use TARGET_DEFAULT_RETURN.
9875
9876 2014-02-19 Tom Tromey <tromey@redhat.com>
9877
9878 * target-delegates.c: Rebuild.
9879 * target.c (target_remove_mask_watchpoint): Unconditionally
9880 delegate.
9881 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9882 TARGET_DEFAULT_RETURN.
9883
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9885
9886 * target-delegates.c: Rebuild.
9887 * target.c (target_insert_mask_watchpoint): Unconditionally
9888 delegate.
9889 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9890 TARGET_DEFAULT_RETURN.
9891
9892 2014-02-19 Tom Tromey <tromey@redhat.com>
9893
9894 * target-delegates.c: Rebuild.
9895 * target.c (target_ranged_break_num_registers): Unconditionally
9896 delegate.
9897 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9898 Use TARGET_DEFAULT_RETURN.
9899
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * target-delegates.c: Rebuild.
9903 * target.c (target_fetch_registers): Unconditionally delegate.
9904 * target.h (struct target_ops) <to_fetch_registers>: Use
9905 TARGET_DEFAULT_NORETURN.
9906
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9908
9909 * target-delegates.c: Rebuild.
9910 * target.c (update_current_target): Don't inherit or default
9911 to_stop.
9912 * target.h (struct target_ops) <to_stop>: Use
9913 TARGET_DEFAULT_IGNORE.
9914
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * target-delegates.c: Rebuild.
9918 * target.c (update_current_target): Don't inherit or default
9919 to_can_run_breakpoint_commands.
9920 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9921 Use TARGET_DEFAULT_RETURN.
9922
9923 2014-02-19 Tom Tromey <tromey@redhat.com>
9924
9925 * target-delegates.c: Rebuild.
9926 * target.c (update_current_target): Don't inherit or default
9927 to_supports_evaluation_of_breakpoint_conditions.
9928 * target.h (struct target_ops)
9929 <to_supports_evaluation_of_breakpoint_conditions>: Use
9930 TARGET_DEFAULT_RETURN.
9931
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target-delegates.c: Rebuild.
9935 * target.c (update_current_target): Don't inherit or default
9936 to_augmented_libraries_svr4_read.
9937 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9938 Use TARGET_DEFAULT_RETURN.
9939
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target-delegates.c: Rebuild.
9943 * target.c (update_current_target): Don't inherit or default
9944 to_can_use_agent.
9945 * target.h (struct target_ops) <to_can_use_agent>: Use
9946 TARGET_DEFAULT_RETURN.
9947
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9949
9950 * target-delegates.c: Rebuild.
9951 * target.c (update_current_target): Don't inherit or default
9952 to_use_agent.
9953 * target.h (struct target_ops) <to_use_agent>: Use
9954 TARGET_DEFAULT_NORETURN.
9955
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * target-delegates.c: Rebuild.
9959 * target.c (update_current_target): Don't inherit or default
9960 to_traceframe_info.
9961 (return_null): Remove.
9962 * target.h (struct target_ops) <to_traceframe_info>: Use
9963 TARGET_DEFAULT_RETURN.
9964
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9966
9967 * target-delegates.c: Rebuild.
9968 * target.c (update_current_target): Don't inherit or default
9969 to_static_tracepoint_markers_by_strid.
9970 * target.h (struct target_ops)
9971 <to_static_tracepoint_markers_by_strid>: Use
9972 TARGET_DEFAULT_NORETURN.
9973
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target-delegates.c: Rebuild.
9977 * target.c (update_current_target): Don't inherit or default
9978 to_static_tracepoint_marker_at.
9979 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9980 Use TARGET_DEFAULT_RETURN.
9981
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9983
9984 * target-delegates.c: Rebuild.
9985 * target.c (update_current_target): Don't inherit or default
9986 to_set_permissions.
9987 * target.h (struct target_ops) <to_set_permissions>: Use
9988 TARGET_DEFAULT_IGNORE.
9989
9990 2014-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_tib_address.
9995 * target.h (struct target_ops) <to_get_tib_address>: Use
9996 TARGET_DEFAULT_NORETURN.
9997
9998 2014-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_set_trace_notes.
10003 * target.h (struct target_ops) <to_set_trace_notes>: Use
10004 TARGET_DEFAULT_RETURN.
10005
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target-delegates.c: Rebuild.
10009 * target.c (update_current_target): Don't initialize
10010 to_set_trace_buffer_size.
10011 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10012 TARGET_DEFAULT_IGNORE.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target-delegates.c: Rebuild.
10017 * target.c (update_current_target): Don't inherit or default
10018 to_set_circular_trace_buffer.
10019 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10020 TARGET_DEFAULT_IGNORE.
10021
10022 2014-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_set_disconnected_tracing.
10027 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10028 TARGET_DEFAULT_IGNORE.
10029
10030 2014-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_get_min_fast_tracepoint_insn_len.
10035 (return_minus_one): Remove.
10036 * target.h (struct target_ops)
10037 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10038
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * target-delegates.c: Rebuild.
10042 * target.c (update_current_target): Don't inherit or default
10043 to_get_raw_trace_data.
10044 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10045 TARGET_DEFAULT_NORETURN.
10046
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * target-delegates.c: Rebuild.
10050 * target.c (update_current_target): Don't inherit or default
10051 to_upload_trace_state_variables.
10052 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10053 Use TARGET_DEFAULT_RETURN.
10054
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10056
10057 * target-delegates.c: Rebuild.
10058 * target.c (update_current_target): Don't inherit or default
10059 to_upload_tracepoints.
10060 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10061 TARGET_DEFAULT_RETURN.
10062
10063 2014-02-19 Tom Tromey <tromey@redhat.com>
10064
10065 * target-delegates.c: Rebuild.
10066 * target.c (update_current_target): Don't inherit or default
10067 to_save_trace_data.
10068 * target.h (struct target_ops) <to_save_trace_data>: Use
10069 TARGET_DEFAULT_NORETURN.
10070
10071 2014-02-19 Tom Tromey <tromey@redhat.com>
10072
10073 * target-delegates.c: Rebuild.
10074 * target.c (update_current_target): Don't inherit or default
10075 to_get_trace_state_variable_value.
10076 * target.h (struct target_ops)
10077 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10078
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * target-delegates.c: Rebuild.
10082 * target.c (update_current_target): Don't inherit or default
10083 to_trace_find.
10084 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10085
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target-delegates.c: Rebuild.
10089 * target.c (update_current_target): Don't inherit or default
10090 to_trace_stop.
10091 * target.h (struct target_ops) <to_trace_stop>: Use
10092 TARGET_DEFAULT_NORETURN.
10093
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10098 to_get_tracepoint_status.
10099 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10100 TARGET_DEFAULT_NORETURN.
10101
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * target-delegates.c: Rebuild.
10105 * target.c (update_current_target): Don't inherit or default
10106 to_get_trace_status.
10107 * target.h (struct target_ops) <to_get_trace_status>: Use
10108 TARGET_DEFAULT_RETURN.
10109
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (update_current_target): Don't inherit or default
10114 to_trace_start.
10115 * target.h (struct target_ops) <to_trace_start>: Use
10116 TARGET_DEFAULT_NORETURN.
10117
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target-delegates.c: Rebuild.
10121 * target.c (update_current_target): Don't inherit or default
10122 to_trace_set_readonly_regions.
10123 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10124 Use TARGET_DEFAULT_NORETURN.
10125
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target-delegates.c: Rebuild.
10129 * target.c (update_current_target): Don't inherit or default
10130 to_disable_tracepoint.
10131 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10132 TARGET_DEFAULT_NORETURN.
10133
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10135
10136 * target-delegates.c: Rebuild.
10137 * target.c (update_current_target): Don't inherit or default
10138 to_enable_tracepoint.
10139 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10140 TARGET_DEFAULT_NORETURN.
10141
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10143
10144 * target-delegates.c: Rebuild.
10145 * target.c (update_current_target): Don't inherit or default
10146 to_download_trace_state_variable.
10147 * target.h (struct target_ops) <to_download_trace_state_variable>:
10148 Use TARGET_DEFAULT_NORETURN.
10149
10150 2014-02-19 Tom Tromey <tromey@redhat.com>
10151
10152 * target-delegates.c: Rebuild.
10153 * target.c (update_current_target): Don't inherit or default
10154 to_can_download_tracepoint.
10155 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10156 TARGET_DEFAULT_RETURN.
10157
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10159
10160 * target-delegates.c: Rebuild.
10161 * target.c (update_current_target): Don't inherit or default
10162 to_download_tracepoint.
10163 * target.h (struct target_ops) <to_download_tracepoint>: Use
10164 TARGET_DEFAULT_NORETURN.
10165
10166 2014-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_trace_init.
10171 * target.h (struct target_ops) <to_trace_init>: Use
10172 TARGET_DEFAULT_RETURN.
10173
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * target-delegates.c: Rebuild.
10177 * target.c (update_current_target): Don't inherit or default
10178 to_supports_string_tracing.
10179 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10180 TARGET_DEFAULT_RETURN.
10181
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target-delegates.c: Rebuild.
10185 * target.c (update_current_target): Don't inherit or default
10186 to_supports_enable_disable_tracepoint.
10187 * target.h (struct target_ops)
10188 <to_supports_enable_disable_tracepoint>: Use
10189 TARGET_DEFAULT_RETURN.
10190
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10192
10193 * target-delegates.c: Rebuild.
10194 * target.c (update_current_target): Don't inherit or default
10195 to_supports_multi_process.
10196 * target.h (struct target_ops) <to_supports_multi_process>: Use
10197 TARGET_DEFAULT_RETURN.
10198
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10200
10201 * target-delegates.c: Rebuild.
10202 * target.c (update_current_target): Don't inherit or default
10203 to_get_ada_task_ptid.
10204 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10205 TARGET_DEFAULT_FUNC.
10206
10207 2014-02-19 Tom Tromey <tromey@redhat.com>
10208
10209 * target-delegates.c: Rebuild.
10210 * target.c (update_current_target): Don't inherit or default
10211 to_thread_architecture.
10212 * target.h (struct target_ops) <to_thread_architecture>: Use
10213 TARGET_DEFAULT_FUNC.
10214
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target-delegates.c: Rebuild.
10218 * target.c (update_current_target): Don't inherit or default
10219 to_execution_direction.
10220 * target.h (struct target_ops) <to_execution_direction>: Use
10221 TARGET_DEFAULT_FUNC.
10222
10223 2014-02-19 Tom Tromey <tromey@redhat.com>
10224
10225 * target-delegates.c: Rebuild.
10226 * target.c (update_current_target): Don't inherit or default
10227 to_can_execute_reverse.
10228 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10229 TARGET_DEFAULT_RETURN.
10230 (target_can_execute_reverse): Unconditionally delegate.
10231
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target-delegates.c: Rebuild.
10235 * target.c (update_current_target): Don't inherit or default
10236 to_goto_bookmark.
10237 (dummy_goto_bookmark): Remove.
10238 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10239 * target.h (struct target_ops) <to_goto_bookmark>: Use
10240 TARGET_DEFAULT_NORETURN.
10241
10242 2014-02-19 Tom Tromey <tromey@redhat.com>
10243
10244 * target-delegates.c: Rebuild.
10245 * target.c (update_current_target): Don't inherit or default
10246 to_get_bookmark.
10247 (dummy_get_bookmark): Remove.
10248 (init_dummy_target): Don't inherit or default to_get_bookmark.
10249 * target.h (struct target_ops) <to_get_bookmark>: Use
10250 TARGET_DEFAULT_NORETURN
10251
10252 2014-02-19 Tom Tromey <tromey@redhat.com>
10253
10254 * target-delegates.c: Rebuild.
10255 * target.c (update_current_target): Don't inherit or default
10256 to_make_corefile_notes.
10257 (init_dummy_target): Don't initialize to_make_corefile_notes.
10258 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10259 TARGET_DEFAULT_FUNC.
10260
10261 2014-02-19 Tom Tromey <tromey@redhat.com>
10262
10263 * target-delegates.c: Rebuild.
10264 * target.c (update_current_target): Don't inherit or default
10265 to_find_memory_regions.
10266 (init_dummy_target): Don't initialize to_find_memory_regions.
10267 * target.h (struct target_ops) <to_find_memory_regions>: Use
10268 TARGET_DEFAULT_FUNC.
10269
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target-delegates.c: Rebuild.
10273 * target.c (update_current_target): Don't inherit or default
10274 to_log_command.
10275 * target.h (struct target_ops) <to_log_command>: Use
10276 TARGET_DEFAULT_IGNORE.
10277 (target_log_command): Unconditionally delegate.
10278
10279 2014-02-19 Tom Tromey <tromey@redhat.com>
10280
10281 * target-delegates.c: Rebuild.
10282 * target.c (update_current_target): Don't inherit or default
10283 to_pid_to_exec_file.
10284 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10285 TARGET_DEFAULT_RETURN.
10286
10287 2014-02-19 Tom Tromey <tromey@redhat.com>
10288
10289 * target-delegates.c: Rebuild.
10290 * target.c (update_current_target): Don't inherit or default
10291 to_thread_name.
10292 (target_thread_name): Unconditionally delegate.
10293 * target.h (struct target_ops) <to_thread_name>: Use
10294 TARGET_DEFAULT_RETURN.
10295
10296 2014-02-19 Tom Tromey <tromey@redhat.com>
10297
10298 * target-delegates.c: Rebuild.
10299 * target.c (update_current_target): Don't inherit or default
10300 to_extra_thread_info.
10301 * target.h (struct target_ops) <to_extra_thread_info>: Use
10302 TARGET_DEFAULT_RETURN.
10303
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10305
10306 * target-delegates.c: Rebuild.
10307 * target.c (update_current_target): Don't inherit or default
10308 to_has_exited.
10309 * target.h (struct target_ops) <to_has_exited>: Use
10310 TARGET_DEFAULT_RETURN..
10311
10312 2014-02-19 Tom Tromey <tromey@redhat.com>
10313
10314 * target-delegates.c: Rebuild.
10315 * target.c (update_current_target): Don't inherit or default
10316 to_set_syscall_catchpoint.
10317 (return_one): Remove.
10318 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10319 TARGET_DEFAULT_RETURN.
10320
10321 2014-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_insert_exec_catchpoint.
10326 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10327 TARGET_DEFAULT_RETURN.
10328
10329 2014-01-08 Tom Tromey <tromey@redhat.com>
10330
10331 * target-delegates.c: Rebuild.
10332 * target.c (update_current_target): Don't inherit or default
10333 to_insert_exec_catchpoint.
10334 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10335 TARGET_DEFAULT_RETURN.
10336
10337 2014-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_remove_vfork_catchpoint.
10342 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10343 TARGET_DEFAULT_RETURN.
10344
10345 2014-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_insert_vfork_catchpoint.
10350 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10351 TARGET_DEFAULT_RETURN.
10352
10353 2014-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_fork_catchpoint.
10358 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10359 TARGET_DEFAULT_RETURN.
10360
10361 2014-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_fork_catchpoint.
10366 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10367 TARGET_DEFAULT_RETURN.
10368
10369 2014-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_post_startup_inferior.
10374 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10375 TARGET_DEFAULT_IGNORE.
10376
10377 2014-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_load.
10382 * target.h (struct target_ops) <to_load>: Use
10383 TARGET_DEFAULT_NORETURN.
10384
10385 2014-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_terminal_info.
10390 * target.h (struct target_ops) <to_terminal_info>: Use
10391 TARGET_DEFAULT_FUNC.
10392
10393 2014-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_terminal_save_ours.
10398 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10399 TARGET_DEFAULT_IGNORE.
10400
10401 2014-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_terminal_ours.
10406 * target.h (struct target_ops) <to_terminal_ours>: Use
10407 TARGET_DEFAULT_IGNORE.
10408
10409 2014-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_terminal_ours_for_output.
10414 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10415 TARGET_DEFAULT_IGNORE.
10416
10417 2014-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_terminal_inferior.
10422 * target.h (struct target_ops) <to_terminal_inferior>: Use
10423 TARGET_DEFAULT_IGNORE.
10424
10425 2014-02-19 Tom Tromey <tromey@redhat.com>
10426
10427 * target-delegates.c: Rebuild.
10428 * target.c (update_current_target): Don't inherit or default
10429 to_terminal_init.
10430 * target.h (struct target_ops) <to_terminal_init>: Use
10431 TARGET_DEFAULT_IGNORE.
10432
10433 2014-02-19 Tom Tromey <tromey@redhat.com>
10434
10435 * target-delegates.c: Rebuild.
10436 * target.c (update_current_target): Don't inherit or default
10437 to_can_accel_watchpoint_condition.
10438 * target.h (struct target_ops)
10439 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10440
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10442
10443 * target-delegates.c: Rebuild.
10444 * target.c (update_current_target): Don't inherit or default
10445 to_region_ok_for_hw_watchpoint.
10446 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10447 Use TARGET_DEFAULT_FUNC.
10448
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10450
10451 * target-delegates.c: Rebuild.
10452 * target.c (update_current_target): Don't inherit or default
10453 to_watchpoint_addr_within_range.
10454 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10455 Use TARGET_DEFAULT_FUNC.
10456
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10458
10459 * target-delegates.c: Rebuild.
10460 * target.c (update_current_target): Don't inherit or default
10461 to_remove_watchpoint.
10462 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10463 TARGET_DEFAULT_NORETURN.
10464
10465 2014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target-delegates.c: Rebuild.
10468 * target.c (update_current_target): Don't inherit or default
10469 to_insert_watchpoint.
10470 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10471 TARGET_DEFAULT_RETURN.
10472
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target-delegates.c: Rebuild.
10476 * target.c (update_current_target): Don't inherit or default
10477 to_remove_hw_breakpoint.
10478 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10479 TARGET_DEFAULT_RETURN.
10480
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target-delegates.c: Rebuild.
10484 * target.c (update_current_target): Don't inherit or default
10485 to_insert_hw_breakpoint.
10486 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10487 TARGET_DEFAULT_RETURN.
10488
10489 2014-02-19 Tom Tromey <tromey@redhat.com>
10490
10491 * target-delegates.c: Rebuild.
10492 * target.c (update_current_target): Don't inherit or default
10493 to_can_use_hw_breakpoint.
10494 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10495 TARGET_DEFAULT_RETURN.
10496
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10498
10499 * target-delegates.c: Rebuild.
10500 * target.c (update_current_target): Don't inherit or default
10501 to_files_info.
10502 * target.h (struct target_ops) <to_files_info>: Use
10503 TARGET_DEFAULT_IGNORE.
10504
10505 2014-02-19 Tom Tromey <tromey@redhat.com>
10506
10507 * target-delegates.c: Rebuild.
10508 * target.c (update_current_target): Don't inherit or default
10509 to_store.
10510 * target.h (struct target_ops) <to_store>: Use
10511 TARGET_DEFAULT_NORETURN.
10512
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10514
10515 * target-delegates.c: Rebuild.
10516 * target.c (update_current_target): Don't inherit or default
10517 to_post_attach.
10518 * target.h (struct target_ops) <to_post_attach>: Use
10519 TARGET_DEFAULT_IGNORE.
10520
10521 2014-02-19 Tom Tromey <tromey@redhat.com>
10522
10523 * target-delegates.c: Rebuild.
10524 * target.c (update_current_target): Don't inherit or default
10525 to_rcmd.
10526 (default_rcmd): New function.
10527 (do_monitor_command): Unconditionally delegate.
10528 * target.h (struct target_ops) <to_rmcd>: Use
10529 TARGET_DEFAULT_FUNC.
10530
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10532
10533 * target-delegates.c: Rebuild.
10534 * target.c (init_dummy_target): Don't initialize to_attach.
10535 (target_attach): Unconditionally delegate.
10536 * target.h (struct target_ops) <to_attach>: Use
10537 TARGET_DEFAULT_FUNC.
10538
10539 2014-02-19 Tom Tromey <tromey@redhat.com>
10540
10541 * target-delegates.c: Rebuild.
10542 * target.c (target_detach): Unconditionally delegate.
10543 (init_dummy_target): Don't initialize to_detach.
10544 * target.h (struct target_ops) <to_detach>: Use
10545 TARGET_DEFAULT_IGNORE.
10546
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10548
10549 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10550 Add argument.
10551 (target_augmented_libraries_svr4_read): Add argument.
10552 * target.c (update_current_target): Update.
10553 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10554 argument.
10555
10556 2014-02-19 Tom Tromey <tromey@redhat.com>
10557
10558 * target.h (struct target_ops) <to_call_history_range>: Add
10559 argument.
10560 * target.c (target_call_history_range): Add argument.
10561 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10562 argument.
10563 (record_btrace_call_history_from): Update.
10564
10565 2014-02-19 Tom Tromey <tromey@redhat.com>
10566
10567 * target.h (struct target_ops) <to_call_history_from>: Add
10568 argument.
10569 * target.c (target_call_history_from): Add argument.
10570 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10571 argument.
10572
10573 2014-02-19 Tom Tromey <tromey@redhat.com>
10574
10575 * target.h (struct target_ops) <to_call_history>: Add argument.
10576 * target.c (target_call_history): Add argument.
10577 * record-btrace.c (record_btrace_call_history): Add 'self'
10578 argument.
10579
10580 2014-02-19 Tom Tromey <tromey@redhat.com>
10581
10582 * target.h (struct target_ops) <to_insn_history_range>: Add
10583 argument.
10584 * target.c (target_insn_history_range): Add argument.
10585 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10586 argument.
10587 (record_btrace_insn_history_from): Update.
10588
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10590
10591 * target.h (struct target_ops) <to_insn_history_from>: Add
10592 argument.
10593 * target.c (target_insn_history_from): Add argument.
10594 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10595 argument.
10596
10597 2014-02-19 Tom Tromey <tromey@redhat.com>
10598
10599 * target.h (struct target_ops) <to_insn_history>: Add argument.
10600 * target.c (target_insn_history): Add argument.
10601 * record-btrace.c (record_btrace_insn_history): Add 'self'
10602 argument.
10603
10604 2014-02-19 Tom Tromey <tromey@redhat.com>
10605
10606 * target.h (struct target_ops) <to_goto_record>: Add argument.
10607 * target.c (target_goto_record): Add argument.
10608 * record-full.c (record_full_goto): Add 'self' argument.
10609 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10610
10611 2014-02-19 Tom Tromey <tromey@redhat.com>
10612
10613 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10614 * target.c (target_goto_record_end): Add argument.
10615 * record-full.c (record_full_goto_end): Add 'self' argument.
10616 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10617
10618 2014-02-19 Tom Tromey <tromey@redhat.com>
10619
10620 * target.h (struct target_ops) <to_goto_record_begin>: Add
10621 argument.
10622 * target.c (target_goto_record_begin): Add argument.
10623 * record-full.c (record_full_goto_begin): Add 'self' argument.
10624 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10625 argument.
10626
10627 2014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target.h (struct target_ops) <to_record_is_replaying>: Add
10630 argument.
10631 * target.c (target_record_is_replaying): Add argument.
10632 * record-full.c (record_full_is_replaying): Add 'self' argument.
10633 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10634 argument.
10635 (record_btrace_xfer_partial, record_btrace_store_registers)
10636 (record_btrace_prepare_to_store, record_btrace_resume)
10637 (record_btrace_wait, record_btrace_decr_pc_after_break)
10638 (record_btrace_find_new_threads, record_btrace_thread_alive):
10639 Update.
10640
10641 2014-02-19 Tom Tromey <tromey@redhat.com>
10642
10643 * target.h (struct target_ops) <to_delete_record>: Add argument.
10644 * target.c (target_delete_record): Add argument.
10645 * record-full.c (record_full_delete): Add 'self' argument.
10646
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10648
10649 * target.h (struct target_ops) <to_save_record>: Add argument.
10650 * target.c (target_save_record): Add argument.
10651 * record-full.c (record_full_save): Add 'self' argument.
10652 (record_full_save): Add 'self' argument.
10653
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10655
10656 * target.h (struct target_ops) <to_info_record>: Add argument.
10657 * target.c (target_info_record): Add argument.
10658 * record.c (info_record_command): Add argument.
10659 * record-full.c (record_full_info): Add 'self' argument.
10660 * record-btrace.c (record_btrace_info): Add 'self' argument.
10661
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10665 * target.c (target_stop_recording): Add argument.
10666 * record.c (record_stop): Add argument.
10667 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10668 argument.
10669
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10671
10672 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10673 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10674 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10675 argument.
10676 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10677 (_initialize_amd64_linux_nat): Use it.
10678 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10679 (_initialize_i386_linux_nat): Use it.
10680
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10684 * target.c (target_teardown_btrace): Add argument.
10685 * remote.c (remote_teardown_btrace): Add 'self' argument.
10686 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10687 argument.
10688 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10689 argument.
10690
10691 2014-02-19 Tom Tromey <tromey@redhat.com>
10692
10693 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10694 * target.c (target_disable_btrace): Add argument.
10695 * remote.c (remote_disable_btrace): Add 'self' argument.
10696 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10697 argument.
10698 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10699 argument.
10700
10701 2014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10704 * target.c (target_enable_btrace): Add argument.
10705 * remote.c (remote_enable_btrace): Add 'self' argument.
10706 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10707 argument.
10708 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10709 argument.
10710
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10714 (target_can_use_agent): Add argument.
10715 * target.c (update_current_target): Update.
10716 * remote.c (remote_can_use_agent): Add 'self' argument.
10717 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10718
10719 2014-02-19 Tom Tromey <tromey@redhat.com>
10720
10721 * target.h (struct target_ops) <to_use_agent>: Add argument.
10722 (target_use_agent): Add argument.
10723 * target.c (update_current_target): Update.
10724 * remote.c (remote_use_agent): Add 'self' argument.
10725 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10726
10727 2014-02-19 Tom Tromey <tromey@redhat.com>
10728
10729 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10730 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10731 (target_traceframe_info): Add argument.
10732 * target.c (update_current_target): Update.
10733 * remote.c (remote_traceframe_info): Add 'self' argument.
10734 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10735
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target.h (target_static_tracepoint_markers_by_strid): Add
10739 argument.
10740 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10741 'self' argument.
10742 * target.c (update_current_target): Update.
10743 * remote.c (struct target_ops)
10744 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10745 * linux-nat.c (struct target_ops)
10746 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10747
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10751 Add argument.
10752 (target_static_tracepoint_marker_at): Add argument.
10753 * target.c (update_current_target): Update.
10754 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10755 argument.
10756
10757 2014-02-19 Tom Tromey <tromey@redhat.com>
10758
10759 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10760 (target_set_permissions): Add argument.
10761 * target.c (update_current_target): Update.
10762 * remote.c (remote_set_permissions): Add 'self' argument.
10763 (remote_start_remote): Update.
10764
10765 2014-02-19 Tom Tromey <tromey@redhat.com>
10766
10767 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10768 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10769 (target_get_tib_address): Add argument.
10770 * target.c (update_current_target): Update.
10771 * remote.c (remote_get_tib_address): Add 'self' argument.
10772
10773 2014-02-19 Tom Tromey <tromey@redhat.com>
10774
10775 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10776 (target_set_trace_notes): Add argument.
10777 * target.c (update_current_target): Update.
10778 * remote.c (remote_set_trace_notes): Add 'self' argument.
10779
10780 2014-02-19 Tom Tromey <tromey@redhat.com>
10781
10782 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10783 argument.
10784 (target_set_trace_buffer_size): Add argument.
10785 * target.c (update_current_target): Update.
10786 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10787
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10789
10790 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10791 argument.
10792 (target_set_circular_trace_buffer): Add argument.
10793 * target.c (update_current_target): Update.
10794 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10795 argument.
10796
10797 2014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10800 argument.
10801 (target_set_disconnected_tracing): Add argument.
10802 * target.c (update_current_target): Update.
10803 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10804
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10806
10807 * target.h (struct target_ops)
10808 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10809 (target_get_min_fast_tracepoint_insn_len): Add argument.
10810 * target.c (update_current_target): Update.
10811 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10812 argument.
10813
10814 2014-02-19 Tom Tromey <tromey@redhat.com>
10815
10816 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10817 argument.
10818 (target_get_raw_trace_data): Add argument.
10819 * target.c (update_current_target): Update.
10820 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10821
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10825 Add argument.
10826 (target_upload_trace_state_variables): Add argument.
10827 * target.c (update_current_target): Update.
10828 * remote.c (remote_upload_trace_state_variables): Add 'self'
10829 argument.
10830 (remote_start_remote): Update.
10831
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10833
10834 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10835 argument.
10836 (target_upload_tracepoints): Add argument.
10837 * target.c (update_current_target): Update.
10838 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10839 (remote_start_remote): Update.
10840
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10844 (target_save_trace_data): Add argument.
10845 * target.c (update_current_target): Update.
10846 * remote.c (remote_save_trace_data): Add 'self' argument.
10847
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10851 argument.
10852 * target.h (struct target_ops)
10853 <to_get_trace_state_variable_value>: Add argument.
10854 (target_get_trace_state_variable_value): Add argument.
10855 * target.c (update_current_target): Update.
10856 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10857 argument.
10858 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10859
10860 2014-02-19 Tom Tromey <tromey@redhat.com>
10861
10862 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10863 * target.h (struct target_ops) <to_trace_find>: Add argument.
10864 (target_trace_find): Add argument.
10865 * target.c (update_current_target): Update.
10866 * remote.c (remote_trace_find): Add 'self' argument.
10867 * ctf.c (ctf_trace_find): Add 'self' argument.
10868
10869 2014-02-19 Tom Tromey <tromey@redhat.com>
10870
10871 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10872 (target_trace_stop): Add argument.
10873 * target.c (update_current_target): Update.
10874 * remote.c (remote_trace_stop): Add 'self' argument.
10875
10876 2014-02-19 Tom Tromey <tromey@redhat.com>
10877
10878 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10879 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10880 argument.
10881 (target_get_tracepoint_status): Add argument.
10882 * target.c (update_current_target): Update.
10883 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10884
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10888 * target.h (struct target_ops) <to_get_trace_status>: Add
10889 argument.
10890 (target_get_trace_status): Add argument.
10891 * target.c (update_current_target): Update.
10892 * remote.c (remote_get_trace_status): Add 'self' argument.
10893 (remote_start_remote, remote_can_download_tracepoint): Update.
10894 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10895
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10897
10898 * target.h (struct target_ops) <to_trace_start>: Add argument.
10899 (target_trace_start): Add argument.
10900 * target.c (update_current_target): Update.
10901 * remote.c (remote_trace_start): Add 'self' argument.
10902
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10904
10905 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10906 Add argument.
10907 (target_trace_set_readonly_regions): Add argument.
10908 * target.c (update_current_target): Update.
10909 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10910 argument.
10911
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10913
10914 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10915 argument.
10916 (target_disable_tracepoint): Add argument.
10917 * target.c (update_current_target): Update.
10918 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10919
10920 2014-02-19 Tom Tromey <tromey@redhat.com>
10921
10922 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10923 argument.
10924 (target_enable_tracepoint): Add argument.
10925 * target.c (update_current_target): Update.
10926 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10927
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10929
10930 * target.h (struct target_ops) <to_download_trace_state_variable>:
10931 Add argument.
10932 (target_download_trace_state_variable): Add argument.
10933 * target.c (update_current_target): Update.
10934 * remote.c (remote_download_trace_state_variable): Add 'self'
10935 argument.
10936
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10938
10939 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10940 argument.
10941 (target_can_download_tracepoint): Add argument.
10942 * target.c (update_current_target): Update.
10943 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10944
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10946
10947 * target.h (struct target_ops) <to_download_tracepoint>: Add
10948 argument.
10949 (target_download_tracepoint): Add argument.
10950 * target.c (update_current_target): Update.
10951 * remote.c (remote_download_tracepoint): Add 'self' argument.
10952
10953 2014-02-19 Tom Tromey <tromey@redhat.com>
10954
10955 * target.h (struct target_ops) <to_trace_init>: Add argument.
10956 (target_trace_init): Add argument.
10957 * target.c (update_current_target): Update.
10958 * remote.c (remote_trace_init): Add 'self' argument.
10959
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10961
10962 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10963 * target.c (target_fileio_readlink): Add argument.
10964 * remote.c (remote_hostio_readlink): Add 'self' argument.
10965 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10966
10967 2014-02-19 Tom Tromey <tromey@redhat.com>
10968
10969 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10970 * target.c (target_fileio_unlink): Add argument.
10971 * remote.c (remote_hostio_unlink): Add 'self' argument.
10972 (remote_file_delete): Update.
10973 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10974
10975 2014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10978 * target.c (target_fileio_close): Add argument.
10979 * remote.c (remote_hostio_close): Add 'self' argument.
10980 (remote_hostio_close_cleanup): Update.
10981 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10982 Update.
10983 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10984
10985 2014-02-19 Tom Tromey <tromey@redhat.com>
10986
10987 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10988 * target.c (target_fileio_pread): Add argument.
10989 * remote.c (remote_hostio_pread): Add 'self' argument.
10990 (remote_bfd_iovec_pread, remote_file_get): Update.
10991 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10992
10993 2014-02-19 Tom Tromey <tromey@redhat.com>
10994
10995 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10996 * target.c (target_fileio_pwrite): Add argument.
10997 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10998 (remote_file_put): Update.
10999 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11000
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11004 * target.c (target_fileio_open): Add argument.
11005 * remote.c (remote_hostio_open): Add 'self' argument.
11006 (remote_bfd_iovec_open): Add 'self' argument.
11007 (remote_file_put): Add 'self' argument.
11008 (remote_file_get): Add 'self' argument.
11009 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11010
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11014 Add argument.
11015 (target_can_run_breakpoint_commands): Add argument.
11016 * target.c (update_current_target): Update.
11017 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11018 argument.
11019 (remote_insert_breakpoint): Add 'self' argument.
11020 (remote_insert_hw_breakpoint): Add 'self' argument.
11021 (remote_can_run_breakpoint_commands): Add 'self' argument.
11022
11023 2014-02-19 Tom Tromey <tromey@redhat.com>
11024
11025 * target.h (struct target_ops)
11026 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11027 (target_supports_evaluation_of_breakpoint_conditions): Add
11028 argument.
11029 * target.c (update_current_target): Update.
11030 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11031 argument.
11032 (remote_insert_breakpoint): Add 'self' argument.
11033 (remote_insert_hw_breakpoint): Add 'self' argument.
11034 (remote_supports_cond_breakpoints): Add 'self' argument.
11035
11036 2014-02-19 Tom Tromey <tromey@redhat.com>
11037
11038 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11039 argument.
11040 (target_supports_string_tracing): Add argument.
11041 * target.c (update_current_target): Update.
11042 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11043
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11045
11046 * target.h (struct target_ops)
11047 <to_supports_disable_randomization>: Add argument.
11048 * target.c (find_default_supports_disable_randomization): Add
11049 argument.
11050 (target_supports_disable_randomization): Add argument.
11051 (find_default_supports_disable_randomization): Add 'self'
11052 argument.
11053 * remote.c (extended_remote_supports_disable_randomization): Add
11054 'self' argument.
11055 (remote_supports_disable_randomization): Add 'self' argument.
11056 (extended_remote_create_inferior): Update.
11057 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11058 'self' argument.
11059
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11061
11062 * target.h (struct target_ops)
11063 <to_supports_enable_disable_tracepoint>: Add argument.
11064 (target_supports_enable_disable_tracepoint): Add argument.
11065 * target.c (update_current_target): Update.
11066 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11067 argument.
11068
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11070
11071 * target.h (struct target_ops) <to_supports_multi_process>: Add
11072 argument.
11073 (target_supports_multi_process): Add argument.
11074 * target.c (update_current_target): Update.
11075 * remote.c (remote_supports_multi_process): Add 'self' argument.
11076 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11077 argument.
11078 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11079 argument.
11080
11081 2014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target.h (struct target_ops) <to_execution_direction>: Add
11084 argument.
11085 (target_execution_direction): Add argument.
11086 * target.c (default_execution_direction): Add 'self' argument.
11087 * record-full.c (record_full_execution_direction): Add 'self'
11088 argument.
11089
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11091
11092 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11093 argument.
11094 (target_can_execute_reverse): Add argument.
11095 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11096 * record-full.c (record_full_can_execute_reverse): Add 'self'
11097 argument.
11098 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11099 argument.
11100
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11104 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11105 argument.
11106 (target_get_ada_task_ptid): Add argument.
11107 * target.c (update_current_target): Update.
11108 (default_get_ada_task_ptid): Add 'self' argument.
11109 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11110 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11111 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11112 argument.
11113 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11114 argument.
11115 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11116 argument.
11117 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11118 argument.
11119 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11120 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11121 argument.
11122
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11126 (target_goto_bookmark): Add argument.
11127 * target.c (dummy_goto_bookmark): Add 'self' argument.
11128 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11129
11130 2014-02-19 Tom Tromey <tromey@redhat.com>
11131
11132 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11133 (target_get_bookmark): Add argument.
11134 * target.c (dummy_get_bookmark): Add 'self' argument.
11135 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11136
11137 2014-02-19 Tom Tromey <tromey@redhat.com>
11138
11139 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11140 argument.
11141 (target_make_corefile_notes): Add argument.
11142 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11143 * procfs.c (procfs_make_note_section): Add 'self' argument.
11144 (procfs_make_note_section): Add 'self' argument.
11145 (procfs_make_note_section): Add 'self' argument.
11146 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11147 argument.
11148 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11149 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11150 * exec.c (exec_make_note_section): Add 'self' argument.
11151 (exec_make_note_section): Add 'self' argument.
11152
11153 2014-02-19 Tom Tromey <tromey@redhat.com>
11154
11155 * target.h (struct target_ops) <to_find_memory_regions>: Add
11156 argument.
11157 (target_find_memory_regions): Add argument.
11158 * target.c (dummy_find_memory_regions): Add 'self' argument.
11159 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11160 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11161 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11162 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11163 * exec. (exec_do_find_memory_regions): New global.
11164 (exec_set_find_memory_regions): Rewrite.
11165 (exec_find_memory_regions): New function.
11166 (init_exec_ops): Use exec_find_memory_regions.
11167
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * target.h (struct target_ops) <to_supports_non_stop>: Add
11171 argument.
11172 * target.c (find_default_supports_non_stop): Add argument.
11173 (target_supports_non_stop): Add argument.
11174 (find_default_supports_non_stop): Add 'self' argument.
11175 * remote.c (remote_supports_non_stop): Add 'self' argument.
11176 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11177
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target.h (struct target_ops) <to_log_command>: Add argument.
11181 (target_log_command): Add argument.
11182 * serial.h (serial_log_command): Add 'self' argument.
11183 * serial.c (serial_log_command): Add 'self' argument.
11184
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11188 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11189 argument.
11190 (target_pid_to_exec_file): Add argument.
11191 * target.c (debug_to_pid_to_exec_file): Add argument.
11192 (update_current_target): Update.
11193 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11194 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11195 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11196 (linux_handle_extended_wait): Update.
11197 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11198 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11199 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11200 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11201
11202 2014-02-19 Tom Tromey <tromey@redhat.com>
11203
11204 * target.h (struct target_ops) <to_rcmd>: Add argument.
11205 (target_rcmd): Add argument.
11206 * target.c (debug_to_rcmd): Add argument.
11207 (update_current_target, do_monitor_command): Update.
11208 * remote.c (remote_rcmd): Add 'self' argument.
11209 * monitor.c (monitor_rcmd): Add 'self' argument.
11210
11211 2014-02-19 Tom Tromey <tromey@redhat.com>
11212
11213 * windows-nat.c (windows_stop): Add 'self' argument.
11214 * target.h (struct target_ops) <to_stop>: Add argument.
11215 * target.c (target_stop): Add argument.
11216 (debug_to_stop): Add argument.
11217 (update_current_target): Update.
11218 * remote.c (remote_stop): Add 'self' argument.
11219 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11220 (gdbsim_cntrl_c): Update.
11221 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11222 * procfs.c (procfs_stop): Add 'self' argument.
11223 * nto-procfs.c (procfs_stop): Add 'self' argument.
11224 * monitor.c (monitor_stop): Add 'self' argument.
11225 (monitor_open): Update.
11226 * linux-nat.c (linux_nat_stop): Add argument.
11227 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11228 * gnu-nat.c (gnu_stop): Add 'self' argument.
11229 * darwin-nat.c (darwin_stop): Add 'self' argument.
11230
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target.h (struct target_ops) <to_thread_name>: Add argument.
11234 * target.c (target_thread_name): Add argument.
11235 (update_current_target): Update.
11236 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11237
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops) <to_extra_thread_info>: Add
11241 argument.
11242 (target_extra_thread_info): Add argument.
11243 * target.c (update_current_target): Update.
11244 * remote.c (remote_threads_extra_info): Add 'self' argument.
11245 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11246 argument.
11247 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11248 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11249 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11250 argument.
11251 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11252 argument.
11253 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11254 argument.
11255 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11256 argument.
11257
11258 2014-02-19 Tom Tromey <tromey@redhat.com>
11259
11260 * target.h (struct target_ops) <to_program_signals>: Add argument.
11261 * target.c (target_program_signals): Add argument.
11262 * remote.c (remote_program_signals): Add 'self' argument.
11263
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11267 * target.c (target_pass_signals): Add argument.
11268 * remote.c (remote_pass_signals): Add 'self' argument.
11269 (remote_start_remote): Update.
11270 * procfs.c (procfs_pass_signals): Add 'self' argument.
11271 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11272 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11273 (linux_nat_create_inferior, linux_nat_attach): Update.
11274
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * windows-nat.c (windows_can_run): Add 'self' argument.
11278 * target.h (struct target_ops) <to_can_run>: Add argument.
11279 (target_can_run): Add argument.
11280 * target.c (debug_to_can_run): Add argument.
11281 (update_current_target): Update.
11282 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11283 * inf-child.c (inf_child_can_run): Add 'self' argument.
11284 * go32-nat.c (go32_can_run): Add 'self' argument.
11285
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target.h (struct target_ops) <to_has_exited>: Add argument.
11289 (target_has_exited): Add argument.
11290 * target.c (debug_to_has_exited): Add argument.
11291 (update_current_target): Update.
11292
11293 2014-02-19 Tom Tromey <tromey@redhat.com>
11294
11295 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11296 argument.
11297 (target_set_syscall_catchpoint): Add argument.
11298 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11299 argument.
11300 * target.c (update_current_target): Update.
11301
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11303
11304 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11305 argument.
11306 (target_remove_exec_catchpoint): Add argument.
11307 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11308 (update_current_target): Update.
11309 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11310 argument.
11311
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11313
11314 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11315 argument.
11316 (target_insert_exec_catchpoint): Add argument.
11317 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11318 (update_current_target): Update.
11319 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11320 argument.
11321
11322 2014-02-19 Tom Tromey <tromey@redhat.com>
11323
11324 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11325 argument.
11326 (target_remove_vfork_catchpoint): Add argument.
11327 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11328 (update_current_target): Update.
11329 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11330 argument.
11331
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11333
11334 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11335 argument.
11336 (target_insert_vfork_catchpoint): Add argument.
11337 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11338 (update_current_target): Update.
11339 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11340 argument.
11341
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11345 argument.
11346 (target_remove_fork_catchpoint): Add argument.
11347 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11348 (update_current_target): Update.
11349 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11350 argument.
11351
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11355 argument.
11356 (target_insert_fork_catchpoint): Add argument.
11357 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11358 (update_current_target): Update.
11359 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11360 argument.
11361
11362 2014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11365 argument.
11366 (target_post_startup_inferior): Add argument.
11367 * target.c (debug_to_post_startup_inferior): Add argument.
11368 (update_current_target): Update.
11369 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11370 argument.
11371 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11372 argument.
11373 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11374 argument.
11375 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11376 argument.
11377 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11378 'self' argument.
11379 (super_post_startup_inferior): Likewise.
11380 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11381 'self' argument.
11382 (super_post_startup_inferior): Likewise.
11383 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11384 Add 'self' argument.
11385 (super_post_startup_inferior): Likewise.
11386
11387 2014-02-19 Tom Tromey <tromey@redhat.com>
11388
11389 * target.h (struct target_ops) <to_load>: Add argument.
11390 * target.c (target_load): Add argument.
11391 (debug_to_load): Add argument.
11392 (update_current_target): Update.
11393 * remote.c (remote_load): Add 'self' argument.
11394 * remote-sim.c (gdbsim_load): Add 'self' argument.
11395 * remote-mips.c (mips_load): Add 'self' argument.
11396 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11397 * monitor.c (monitor_load): Add 'self' argument.
11398 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11399
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11401
11402 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11403 (target_terminal_info): Add argument.
11404 * target.c (debug_to_terminal_info): Add argument.
11405 (default_terminal_info): Likewise.
11406 * inflow.c (child_terminal_info): Add 'self' argument.
11407 * inferior.h (child_terminal_info): Add 'self' argument.
11408 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11409
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11413 argument.
11414 (target_terminal_save_ours): Add argument.
11415 * target.c (debug_to_terminal_save_ours): Add argument.
11416 (update_current_target): Update.
11417 * inflow.c (terminal_save_ours): Add 'self' argument.
11418 * inferior.h (terminal_save_ours): Add 'self' argument.
11419
11420 2014-02-19 Tom Tromey <tromey@redhat.com>
11421
11422 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11423 (target_terminal_ours): Add argument.
11424 * target.c (debug_to_terminal_ours): Add argument.
11425 (update_current_target): Update.
11426 * remote.c (remote_terminal_ours): Add 'self' argument.
11427 (remote_close): Update.
11428 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11429 * inflow.c (terminal_ours): Add 'self' argument.
11430 * inferior.h (terminal_ours): Add 'self' argument.
11431 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11432
11433 2014-02-19 Pedro Alves <palves@redhat.com>
11434 Tom Tromey <tromey@redhat.com>
11435
11436 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11437 argument.
11438 (target_terminal_ours_for_output): Add argument.
11439 * target.c (debug_to_terminal_ours_for_output): Add argument.
11440 (update_current_target): Update.
11441 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11442 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11443 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11444
11445 2014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * target.h (struct target_ops) <to_terminal_inferior>: Add
11448 argument.
11449 * target.c (target_terminal_inferior): Add argument.
11450 (update_current_target): Update.
11451 * remote.c (remote_terminal_inferior): Add 'self' argument.
11452 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11453 * inflow.c (terminal_inferior): Add 'self' argument.
11454 * inferior.h (terminal_inferior): Add 'self' argument.
11455 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11456 (go32_terminal_inferior): Add 'self' argument.
11457
11458 2014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11461 (target_terminal_init): Add argument.
11462 * target.c (debug_to_terminal_init): Add argument.
11463 (update_current_target): Update.
11464 * inflow.c (terminal_init_inferior): Add 'self' argument.
11465 * inferior.h (terminal_init_inferior): Add 'self' argument.
11466 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11467 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11468
11469 2014-02-19 Tom Tromey <tromey@redhat.com>
11470
11471 * target.h (struct target_ops)
11472 <to_can_accel_watchpoint_condition>: Add argument.
11473 (target_can_accel_watchpoint_condition): Add argument.
11474 * target.c (debug_to_can_accel_watchpoint_condition): Add
11475 argument.
11476 (update_current_target): Update.
11477 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11478 'self' argument.
11479
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11483 Add argument.
11484 (target_region_ok_for_hw_watchpoint): Add argument.
11485 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11486 (default_region_ok_for_hw_watchpoint): Add argument.
11487 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11488 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11489 argument.
11490 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11491 argument.
11492 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11493 argument.
11494 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11495 'self' argument.
11496 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11497 'self' argument.
11498 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11499 'self' argument.
11500 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11501 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11502 'self' argument.
11503 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11504 Add 'self' argument.
11505
11506 2014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11509 argument.
11510 (target_insert_watchpoint): Add argument.
11511 * target.c (debug_to_insert_watchpoint): Add argument.
11512 (update_current_target): Update.
11513 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11514 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11515 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11516 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11517 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11518 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11519 argument.
11520 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11521 (procfs_insert_hw_watchpoint): Add 'self' argument.
11522 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11523 argument.
11524 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11525 argument.
11526 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11527 argument.
11528 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11529 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11530 argument.
11531 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11532 'self' argument.
11533
11534 2014-02-19 Tom Tromey <tromey@redhat.com>
11535
11536 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11537 argument.
11538 (target_remove_watchpoint): Add argument.
11539 * target.c (debug_to_remove_watchpoint): Add argument.
11540 (update_current_target): Update.
11541 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11542 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11543 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11544 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11545 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11546 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11547 argument.
11548 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11549 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11550 argument.
11551 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11552 argument.
11553 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11554 argument.
11555 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11556 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11557 argument.
11558 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11559 'self' argument.
11560
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11564 argument.
11565 (target_remove_hw_breakpoint): Add argument.
11566 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11567 (update_current_target): Update.
11568 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11569 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11570 argument.
11571 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11572 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11573 argument.
11574 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11575 'self' argument.
11576
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11578
11579 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11580 argument.
11581 (target_insert_hw_breakpoint): Add argument.
11582 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11583 (update_current_target): Update.
11584 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11585 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11586 argument.
11587 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11588 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11589 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11590 argument.
11591 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11592 'self' argument.
11593
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11595
11596 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11597 argument.
11598 (target_can_use_hardware_watchpoint): Add argument.
11599 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11600 (update_current_target): Update.
11601 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11602 argument.
11603 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11604 argument.
11605 * remote.c (remote_check_watch_resources): Add 'self' argument.
11606 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11607 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11608 argument.
11609 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11610 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11611 argument.
11612 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11613 argument.
11614 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11615 argument.
11616 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11617 argument.
11618 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11619 argument.
11620 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11621 argument.
11622 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11623 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11624 argument.
11625 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11626 'self' argument.
11627
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target.h (struct target_ops) <to_post_attach>: Add argument.
11631 (target_post_attach): Add argument.
11632 * target.c (debug_to_post_attach): Add argument.
11633 (update_current_target): Update.
11634 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11635 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11636 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11637 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11638 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11639
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * windows-nat.c (windows_close): Add 'self' argument.
11643 * tracepoint.c (tfile_close): Add 'self' argument.
11644 * target.h (struct target_ops) <to_close>: Add argument.
11645 * target.c (target_close): Add argument.
11646 (update_current_target): Update.
11647 * remote.c (remote_close): Add 'self' argument.
11648 * remote-sim.c (gdbsim_close): Add 'self' argument.
11649 * remote-mips.c (mips_close): Add 'self' argument.
11650 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11651 * record-full.c (record_full_close): Add 'self' argument.
11652 * record-btrace.c (record_btrace_close): Add 'self' argument.
11653 * monitor.h (monitor_close): Add 'self' argument.
11654 * monitor.c (monitor_close): Add 'self' argument.
11655 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11656 * linux-nat.c (linux_nat_close): Add argument.
11657 * go32-nat.c (go32_close): Add 'self' argument.
11658 * exec.c (exec_close_1): Add 'self' argument.
11659 * ctf.c (ctf_close): Add 'self' argument.
11660 * corelow.c (core_close): Add 'self' argument.
11661 (core_close_cleanup): Update.
11662 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11663 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * remote.c (remote_load): New function.
11668 (init_remote_ops): Use it.
11669
11670 2014-02-19 Tom Tromey <tromey@redhat.com>
11671
11672 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11673 argument.
11674 * common/linux-btrace.h (linux_supports_btrace): Update.
11675 * remote.c (remote_supports_btrace): Add "self" argument.
11676 * target-delegates.c: Rebuild.
11677 * target.c (target_supports_btrace): Remove.
11678 * target.h (struct target_ops) <to_supports_btrace>: Add
11679 target_ops argument.
11680 (target_supports_btrace): New define.
11681
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11683
11684 * record-full.c (record_full_beneath_to_resume_ops)
11685 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11686 (record_full_beneath_to_wait)
11687 (record_full_beneath_to_store_registers_ops)
11688 (record_full_beneath_to_store_registers)
11689 (record_full_beneath_to_xfer_partial_ops)
11690 (record_full_beneath_to_xfer_partial)
11691 (record_full_beneath_to_insert_breakpoint_ops)
11692 (record_full_beneath_to_insert_breakpoint)
11693 (record_full_beneath_to_remove_breakpoint_ops)
11694 (record_full_beneath_to_remove_breakpoint)
11695 (record_full_beneath_to_stopped_by_watchpoint)
11696 (record_full_beneath_to_stopped_data_address)
11697 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11698 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11699 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11700 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11701 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11702 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11703 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11704 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11705 (record_full_resume, record_full_wait_1)
11706 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11707 (record_full_store_registers, record_full_xfer_partial)
11708 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11709 (record_full_async, record_full_core_xfer_partial): Use target
11710 delegation.
11711 * target-delegates.c: Rebuild.
11712 * target.c (current_xfer_partial): Remove.
11713 (update_current_target): Do not INHERIT or de_fault
11714 to_insert_breakpoint, to_remove_breakpoint,
11715 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11716 to_is_async_p, to_async. Do not set to_xfer_partial field.
11717 (default_xfer_partial): Simplify.
11718 (current_xfer_partial): Remove.
11719 (target_wait, target_resume): Simplify.
11720 (find_default_can_async_p, find_default_is_async_p): Update.
11721 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11722 to_xfer_partial, to_stopped_by_watchpoint,
11723 to_stopped_data_address.
11724 (target_store_registers): Simplify.
11725 (forward_target_remove_breakpoint)
11726 (forward_target_insert_breakpoint): Remove.
11727 (target_remove_breakpoint, target_insert_breakpoint)
11728 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11729 * target.h (struct target_ops) <to_resume, to_wait,
11730 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11731 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11732 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11733 markup.
11734 (forward_target_remove_breakpoint)
11735 (forward_target_insert_breakpoint): Remove.
11736 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11737 directly.
11738 (record_btrace_insert_breakpoint): Delegate directly.
11739
11740 2014-02-19 Tom Tromey <tromey@redhat.com>
11741
11742 PR build/7701:
11743 * target-delegates.c: New file.
11744 * target.c: Include target-delegates.c.
11745 (init_dummy_target): Call install_dummy_methods.
11746 (complete_target_initialization): Call install_delegators.
11747 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11748 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11749 * make-target-delegates: New file.
11750
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * record.c (find_record_target): Use find_target_at.
11754 * target.c (find_target_at): New function.
11755 * target.h (find_target_at): Declare.
11756
11757 2014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11760 Add 'ops' argument.
11761 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11762 'ops' argument.
11763 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11764 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11765 'ops' argument.
11766 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11767 argument.
11768 * linux-nat.c (save_sigtrap): Update.
11769 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11770 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11771 (linux_nat_close): Update.
11772 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11773 argument.
11774 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11775 argument.
11776 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11777 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11778 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11779 (tmp_to_async): Add 'ops' argument.
11780 (record_full_stopped_by_watchpoint, record_full_async)
11781 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11782 argument.
11783 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11784 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11785 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11786 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11787 (remote_is_async_p, remote_async): Add 'ops' argument.
11788 (remote_stopped_data_address): Update.
11789 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11790 * target.c (update_current_target)
11791 (find_default_can_async_p, find_default_is_async_p): Update.
11792 (init_dummy_target): Update.
11793 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11794 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11795 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11796 (target_can_async_p, target_is_async_p, target_async)
11797 (target_stopped_by_watchpoint): Update.
11798
11799 2014-02-19 Yao Qi <yao@codesourcery.com>
11800
11801 PR gdb/16220
11802 * gdbarch.sh: Remove startup_gdbarch.
11803 * gdbarch.c: Regenerated.
11804 * gdbarch.h: Likewise.
11805
11806 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11807
11808 * rl78-tdep.c (rl78_g10_register_name): New function.
11809 (rl78_return_value): Add g10 support.
11810 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11811 g10.
11812
11813 2014-02-17 Doug Evans <xdje42@gmail.com>
11814
11815 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11816 (SUBDIR_GUILE_SRCS): Ditto.
11817 (scm-gsmob.o): Ditto.
11818
11819 2014-02-17 Yao Qi <yao@codesourcery.com>
11820
11821 * gnu-nat.c (ILL_RPC): Declare defined function.
11822
11823 2014-02-17 Yao Qi <yao@codesourcery.com>
11824
11825 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11826 mach_msg_type_number_t.
11827 (gnu_write_inferior): Likewise.
11828
11829 2014-02-17 Yao Qi <yao@codesourcery.com>
11830
11831 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11832 in format string.
11833 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11834 (inf_validate_procs, inf_signal): Likewise.
11835 (S_exception_raise_request): Likewise.
11836 (do_mach_notify_dead_name): Likewise.
11837 (steal_exc_port): Likewise.
11838 (gnu_read_inferior): Change 'copy_count''s type to
11839 mach_msg_type_number_t.
11840 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11841 format string.
11842
11843 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11844
11845 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11846 flag. Adjust all users; in particular...
11847 (gnu_wait): ..., don't decrement its value in here...
11848 (gnu_create_inferior): ..., and instead set the flag in here,
11849 around the startup_inferior call, and call that one with
11850 START_INFERIOR_TRAPS_EXPECTED.
11851
11852 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11853 (ILL_RPC): ... new macro.
11854 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11855 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11856 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11857 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11858 functions with ILL_RPC macro.
11859 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11860 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11861 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11862 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11863 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11864 (S_proc_getlogin_reply, S_proc_getsid_reply)
11865 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11866 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11867 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11868 (S_proc_getnports_reply, S_proc_is_important_reply)
11869 (S_proc_get_code_reply): New stub functions, generated with
11870 ILL_RPC macro.
11871
11872 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11873 collected the type check structures.
11874
11875 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11876
11877 2014-02-14 Doug Evans <dje@google.com>
11878
11879 * target.c (target_write_partial): Fix result type.
11880
11881 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11882
11883 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11884 the proper offsets to access fpregset_t.
11885
11886 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11887
11888 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11889 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11890 * h8300-tdep.c (setmachinelist): Remove global.
11891 * hppa-tdep.c (hppa_sigtramp): Remove global.
11892 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11893 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11894 * ravenscar-thread.c (update_target_observer): Remove global.
11895 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11896
11897 2014-02-12 Tom Tromey <tromey@redhat.com>
11898
11899 * common/rsp-low.c: Update comments.
11900 * common/rsp-low.h: Update comments.
11901
11902 2014-02-12 Tom Tromey <tromey@redhat.com>
11903
11904 * common/rsp-low.c (convert_ascii_to_int): Remove.
11905 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11906
11907 2014-02-12 Tom Tromey <tromey@redhat.com>
11908
11909 * common/rsp-low.h (unhexify): Don't declare.
11910 * common/rsp-low.c (unhexify): Remove.
11911
11912 2014-02-12 Tom Tromey <tromey@redhat.com>
11913
11914 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11915 * common/rsp-low.c (convert_int_to_ascii): Remove.
11916
11917 2014-02-12 Tom Tromey <tromey@redhat.com>
11918
11919 * common/rsp-low.h (hexify): Don't declare.
11920 * common/rsp-low.c (hexify): Remove.
11921
11922 2014-02-12 Tom Tromey <tromey@redhat.com>
11923
11924 * common/rsp-low.c (hexify): Never take strlen of argument.
11925
11926 2014-02-12 Tom Tromey <tromey@redhat.com>
11927
11928 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11929 * remote.c (extended_remote_run, remote_rcmd)
11930 (remote_download_trace_state_variable, remote_save_trace_data)
11931 (remote_set_trace_notes): Update.
11932 * tracepoint.c (encode_source_string, tfile_write_status)
11933 (tfile_write_uploaded_tsv): Update.
11934
11935 2014-02-12 Tom Tromey <tromey@redhat.com>
11936
11937 * tracepoint.c: Include rsp-low.h.
11938 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11939 * remote.c: Include rsp-low.h.
11940 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11941 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11942 (remote_unescape_input): Move to common/rsp-low.c.
11943 * common/rsp-low.h: New file.
11944 * common/rsp-low.c: New file.
11945 * Makefile.in (SFILES): Add common/rsp-low.c.
11946 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11947 (COMMON_OBS): Add rsp-low.o.
11948 (rsp-low.o): New target.
11949
11950 2014-02-12 Tom Tromey <tromey@redhat.com>
11951
11952 * utils.h: Include print-utils.h.
11953 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11954 (int_string, core_addr_to_string, core_addr_to_string_nz)
11955 (hex_string, hex_string_custom): Don't declare.
11956 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11957 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11958 (hex_string_custom, int_string, core_addr_to_string)
11959 (core_addr_to_string_nz, host_address_to_string): Move to
11960 common/print-utils.c.
11961 * common/print-utils.h: New file.
11962 * common/print-utils.c: New file
11963 * Makefile.in (SFILES): Add common/print-utils.c.
11964 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11965 (COMMON_OBS): Add print-utils.o.
11966 (print-utils.o): New target.
11967
11968 2014-02-12 Tom Tromey <tromey@redhat.com>
11969
11970 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11971
11972 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11973
11974 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11975
11976 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11977
11978 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11979 if a PT_IO ptrace request returns sucessfully but indicates that 0
11980 bytes were transferred.
11981
11982 2014-02-12 Pedro Alves <palves@redhat.com>
11983 Kevin Buettner <kevinb@redhat.com>
11984
11985 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11986 TYPE_INSTANCE_FLAG_CODE_SPACE.
11987
11988 2014-02-12 Pedro Alves <palves@redhat.com>
11989
11990 * h8300-tdep.c (pseudo_from_raw_register)
11991 (raw_from_pseudo_register): New functions.
11992 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11993 them.
11994
11995 2014-02-12 Pedro Alves <palves@redhat.com>
11996
11997 * h8300-tdep.c (h8300_register_sim_regno): New function.
11998 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11999 gdbarch_register_sim_regno hook.
12000
12001 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12002
12003 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12004
12005 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12006
12007 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12008
12009 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12010
12011 * obsd-tdep.h (obsd_init_abi): New prototype.
12012 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12013 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12014 (obsd_init_abi): New functions.
12015 * i386obsd-tdep.c: Include "obsd-tdep.h".
12016 (i386obsd_init_abi): Call obsd_init_abi.
12017 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12018 (amd64obsd_init_abi): Call obsd_init_abi.
12019 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12020 obsd-tdep.c to gdb_target_obs.
12021
12022 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12023
12024 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12025 double float arguments to 16-byte in the argument slots.
12026
12027 2014-02-11 Doug Evans <xdje42@gmail.com>
12028
12029 * configure.ac: Don't crash if pkg-config is not found and guile
12030 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12031 in guile checks.
12032 * configure: Regenerate.
12033
12034 2014-02-11 Yao Qi <yao@codesourcery.com>
12035
12036 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12037 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12038 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12039 * gnu-nat.c (gnu_xfer_memory): Likewise.
12040 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12041 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12042 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12043 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12044
12045 2014-02-11 Yao Qi <yao@codesourcery.com>
12046
12047 * target.h (enum target_xfer_error): Rename to ...
12048 (enum target_xfer_status): ... it. New. All users updated.
12049 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12050 New.
12051 (TARGET_XFER_STATUS_ERROR_P): New macro.
12052 (target_xfer_error_to_string): Remove declaration.
12053 (target_xfer_status_to_string): Declare.
12054 (target_xfer_partial_ftype): Adjust it.
12055 (struct target_ops) <to_xfer_partial>: Return
12056 target_xfer_status. Add argument xfered_len. Update
12057 comments.
12058 * target.c (target_xfer_error_to_string): Rename to ...
12059 (target_xfer_status_to_string): ... it. New. All callers
12060 updated.
12061 (target_read_live_memory): Likewise. Call target_xfer_partial
12062 instead of target_read.
12063 (memory_xfer_live_readonly_partial): Return
12064 target_xfer_status. Add argument xfered_len.
12065 (raw_memory_xfer_partial): Likewise.
12066 (memory_xfer_partial_1): Likewise.
12067 (memory_xfer_partial): Likewise.
12068 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12069 properly. Update debug message.
12070 (default_xfer_partial, current_xfer_partial): Likewise.
12071 (target_write_partial): Likewise.
12072 (target_read_partial): Likewise. All callers updated.
12073 (read_whatever_is_readable): Likewise.
12074 (target_write_with_progress): Likewise.
12075 (target_read_alloc_1): Likewise.
12076
12077 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12078 * auxv.c (procfs_xfer_auxv): Likewise.
12079 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12080 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12081 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12082 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12083 * corefile.c (read_memory): Adjust.
12084 * corelow.c (core_xfer_partial): Likewise.
12085 * ctf.c (ctf_xfer_partial): Likewise.
12086 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12087 updated.
12088 (darwin_xfer_partial): Likewise.
12089 * exec.c (section_table_xfer_memory_partial): Likewise. All
12090 callers updated.
12091 (exec_xfer_partial): Likewise.
12092 * exec.h (section_table_xfer_memory_partial): Update
12093 declaration.
12094 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12095 negative.
12096 (gnu_xfer_partial): Likewise.
12097 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12098 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12099 (ia64_hpux_xfer_solib_got): Likewise.
12100 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12101 type of 'partial_len' to ULONGEST.
12102 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12103 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12104 (linux_nat_xfer_partial): Likewise.
12105 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12106 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12107 * monitor.c (monitor_xfer_memory): Likewise.
12108 (monitor_xfer_partial): Likewise.
12109 * procfs.c (procfs_xfer_partial): Likewise.
12110 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12111 * record-full.c (record_full_xfer_partial): Likewise.
12112 (record_full_core_xfer_partial): Likewise.
12113 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12114 (gdbsim_xfer_partial): Likewise.
12115 * remote.c (remote_write_bytes_aux): Likewise. All callers
12116 updated.
12117 (remote_write_bytes, remote_read_bytes): Likewise. All
12118 callers updated.
12119 (remote_flash_erase): Likewise. All callers updated.
12120 (remote_write_qxfer): Likewise. All callers updated.
12121 (remote_read_qxfer): Likewise. All callers updated.
12122 (remote_xfer_partial): Likewise.
12123 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12124 (rs6000_xfer_shared_libraries): Likewise.
12125 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12126 (sol_thread_xfer_partial): Likewise.
12127 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12128 (sparc_xfer_partial): Likewise.
12129 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12130 updated.
12131 (spu_xfer_partial): Likewise.
12132 * spu-multiarch.c (spu_xfer_partial): Likewise.
12133 * tracepoint.c (tfile_xfer_partial): Likewise.
12134 * windows-nat.c (windows_xfer_memory): Likewise.
12135 (windows_xfer_shared_libraries): Likewise.
12136 (windows_xfer_partial): Likewise.
12137 * valprint.c: Replace 'target_xfer_error' with
12138 'target_xfer_status' in comments.
12139
12140 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12141
12142 Checked in by Joel Brobecker <brobecker@adacore.com>.
12143 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12144
12145 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12146
12147 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12148 function parameters.
12149
12150 2014-02-10 Will Newton <will.newton@linaro.org>
12151
12152 * elfread.c (elf_rel_plt_read): Look for a .got section if
12153 looking up .got.plt fails.
12154 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12155 on address passed to elf_gnu_ifunc_record_cache.
12156 (elf_gnu_ifunc_resolve_addr): Likewise.
12157 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12158
12159 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12160
12161 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12162 (X_RETTURN): New macro.
12163 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12164
12165 * sparc64-tdep.c (sparc64_init_abi): Hook
12166 sparc_in_function_epilogue_p.
12167
12168 2014-02-10 Gary Benson <gbenson@redhat.com>
12169
12170 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12171 Rename name_matcher to symbol_matcher.
12172
12173 2014-02-10 Gary Benson <gbenson@redhat.com>
12174
12175 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12176 Use expand_symtabs_file_matcher_ftype and
12177 expand_symtabs_symbol_matcher_ftype.
12178
12179 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12180
12181 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12182 (struct ada_symbol_cache): New.
12183 (ada_free_symbol_cache): Forward declare.
12184 (struct ada_pspace_data): New.
12185 (ada_pspace_data_handle): New static global.
12186 (get_ada_pspace_data, ada_pspace_data_cleanup)
12187 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12188 (cache_space, cache): Delete, now folded inside struct
12189 ada_pspace_data.
12190 (ada_get_symbol_cache): New function.
12191 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12192 implementation.
12193 (_initialize_ada_language): Remove initialization of cache_space.
12194 Move call to observer_attach_inferior_exit up, grouping it
12195 with the other observer registrations inside this function.
12196 Rename command to be more general. Add call to
12197 register_program_space_data_with_cleanup.
12198
12199 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12200
12201 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12202 ada_new_objfile_observer.
12203 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12204 (_initialize_tasks): Update uses of ada_new_objfile_observer
12205 and ada_tasks_normal_stop_observer.
12206
12207 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12208
12209 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12210 returned by the 'Length attribute to integer.
12211
12212 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12213
12214 * ada-lang.c (_initialize_ada_language): Initialize
12215 cache_space obstack.
12216
12217 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12218
12219 * ada-lang.c (HASH_SIZE): New macro.
12220 (struct cache_entry): New type.
12221 (cache_space, cache): New static globals.
12222 (ada_clear_symbol_cache, find_entry): New functions.
12223 (lookup_cached_symbol, cache_symbol): Implement.
12224 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12225 (_initialize_ada_language): Attach ada_new_objfile_observer
12226 and ada_free_objfile_observer.
12227
12228 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12229
12230 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12231 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12232 struct block * parameter.
12233 (ada_lookup_symbol_list_worker): Constify local variable "block".
12234 Remove cast which is no longer necessary.
12235
12236 2014-02-10 Doug Evans <xdje42@gmail.com>
12237
12238 Add Guile as an extension language.
12239 * NEWS: Mention Guile scripting.
12240 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12241 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12242 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12243 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12244 (CLIBS): Add GUILE_LIBS.
12245 (install-guile): New rule.
12246 (guile.o): New rule.
12247 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12248 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12249 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12250 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12251 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12252 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12253 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12254 * configure.ac: New option --with-guile.
12255 * configure: Regenerate.
12256 * config.in: Regenerate.
12257 * auto-load.c: Remove #include "python/python.h". Add #include
12258 "gdb/section-scripts.h".
12259 (source_section_scripts): Handle Guile scripts.
12260 (_initialize_auto_load): Add name of Guile objfile script to
12261 scripts-directory help text.
12262 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12263 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12264 (struct breakpoint): New member scm_bp_object.
12265 * defs.h (enum command_control_type): New value guile_control.
12266 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12267 "extension.h".
12268 (show_user): Update comment.
12269 (_initialize_cli_cmds): Update help text for "show user". Update help
12270 text for max-user-call-depth.
12271 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12272 "extension.h".
12273 (multi_line_command_p): Add guile_control.
12274 (print_command_lines): Handle guile_control.
12275 (execute_control_command, recurse_read_control_structure): Ditto.
12276 (process_next_line): Recognize "guile" commands.
12277 * disasm.c (gdb_disassemble_info): Make non-static.
12278 * disasm.h: #include "dis-asm.h".
12279 (struct gdbarch): Add forward decl.
12280 (gdb_disassemble_info): Declare.
12281 * extension.c: #include "guile/guile.h".
12282 (extension_languages): Add guile.
12283 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12284 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12285 * gdbtypes.c (get_unsigned_type_max): New function.
12286 (get_signed_type_minmax): New function.
12287 * gdbtypes.h (get_unsigned_type_max): Declare.
12288 (get_signed_type_minmax): Declare.
12289 * guile/README: New file.
12290 * guile/guile-internal.h: New file.
12291 * guile/guile.c: New file.
12292 * guile/guile.h: New file.
12293 * guile/scm-arch.c: New file.
12294 * guile/scm-auto-load.c: New file.
12295 * guile/scm-block.c: New file.
12296 * guile/scm-breakpoint.c: New file.
12297 * guile/scm-disasm.c: New file.
12298 * guile/scm-exception.c: New file.
12299 * guile/scm-frame.c: New file.
12300 * guile/scm-gsmob.c: New file.
12301 * guile/scm-iterator.c: New file.
12302 * guile/scm-lazy-string.c: New file.
12303 * guile/scm-math.c: New file.
12304 * guile/scm-objfile.c: New file.
12305 * guile/scm-ports.c: New file.
12306 * guile/scm-pretty-print.c: New file.
12307 * guile/scm-safe-call.c: New file.
12308 * guile/scm-string.c: New file.
12309 * guile/scm-symbol.c: New file.
12310 * guile/scm-symtab.c: New file.
12311 * guile/scm-type.c: New file.
12312 * guile/scm-utils.c: New file.
12313 * guile/scm-value.c: New file.
12314 * guile/lib/gdb.scm: New file.
12315 * guile/lib/gdb/boot.scm: New file.
12316 * guile/lib/gdb/experimental.scm: New file.
12317 * guile/lib/gdb/init.scm: New file.
12318 * guile/lib/gdb/iterator.scm: New file.
12319 * guile/lib/gdb/printing.scm: New file.
12320 * guile/lib/gdb/types.scm: New file.
12321 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12322 (VPATH): Add $(GUILE_SRCDIR).
12323 (GUILE_DIR): New variable.
12324 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12325 (all): Add stamp-guile dependency.
12326 (stamp-guile): New rule.
12327 (clean-guile, install-guile, uninstall-guile): New rules.
12328 (install-only): Add install-guile dependency.
12329 (uninstall): Add uninstall-guile dependency.
12330 (clean): Add clean-guile dependency.
12331
12332 2014-02-09 Doug Evans <xdje42@gmail.com>
12333
12334 Revert this patch (which I approved, mea culpa).
12335
12336 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12337
12338 * Makefile.in (all-lib): Remove.
12339 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12340
12341 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12342
12343 Fix Python stack corruption.
12344 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12345 gdb_py_longest.
12346
12347 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12348
12349 * Makefile.in (all-lib): Remove.
12350 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12351
12352 2014-02-07 Doug Evans <dje@google.com>
12353
12354 * extension-priv.h (extension_language_script_ops): Add comment.
12355 (extension_language_ops): Add comment.
12356 (active_ext_lang_state): Fix typo in comment.
12357
12358 2014-02-07 Pedro Alves <palves@redhat.com>
12359
12360 PR breakpoints/16292
12361 * infrun.c (handle_signal_stop) <signal arrives while stepping
12362 over a breakpoint>: Switch back to the stepping thread.
12363
12364 2014-02-07 Yao Qi <yao@codesourcery.com>
12365
12366 * target.c (target_xfer_partial): Return zero if LEN is zero.
12367
12368 2014-02-07 Yao Qi <yao@codesourcery.com>
12369
12370 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12371 (ld_so_xfer_auxv): Likewise.
12372 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12373 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12374 * corelow.c (core_xfer_partial): Likewise.
12375 * ctf.c (ctf_xfer_partial): Likewise.
12376 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12377 (darwin_xfer_partial): Likewise.
12378 * exec.c (exec_xfer_partial): Likewise.
12379 * gnu-nat.c (gnu_xfer_partial): Likewise.
12380 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12381 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12382 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12383 * linux-nat.c (linux_xfer_siginfo): Likewise.
12384 (linux_proc_xfer_spu): Likewise.
12385 * procfs.c (procfs_xfer_partial): Likewise.
12386 * record-full.c (record_full_xfer_partial): Likewise.
12387 (record_full_core_xfer_partial): Likewise.
12388 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12389 * remote.c (remote_write_qxfer): Likewise.
12390 (remote_write_qxfer, remote_read_qxfer): Likewise.
12391 (remote_xfer_partial): Likewise.
12392 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12393 (rs6000_xfer_shared_libraries): Likewise.
12394 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12395 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12396 (spu_xfer_partial): Likewise.
12397 * target.c (memory_xfer_partial_1): Likewise.
12398 * tracepoint.c (tfile_xfer_partial): Likewise.
12399 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12400 (windows_xfer_partial): Likewise.
12401
12402 2014-02-07 Yao Qi <yao@codesourcery.com>
12403
12404 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12405 comments.
12406 (core_xfer_shared_libraries_aix): Likewise.
12407 * gdbarch.c, gdbarch.h: Regenerated.
12408 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12409 ULONGEST. Change 'len_avail' type to ULONGEST.
12410 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12411 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12412 declaration.
12413 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12414
12415 2014-02-07 Yao Qi <yao@codesourcery.com>
12416
12417 * corefile.c (memory_error): Get 'exception' from ERR and pass
12418 'exception' to throw_error.
12419
12420 2014-02-06 Doug Evans <xdje42@gmail.com>
12421
12422 * configure.ac (libpython checking): Remove all but python.o from
12423 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12424 * configure: Regenerate.
12425
12426 * Makefile.in (SFILES): Add extension.c.
12427 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12428 (COMMON_OBS): Add extension.o.
12429 * extension.h: New file.
12430 * extension-priv.h: New file.
12431 * extension.c: New file.
12432
12433 * python/python-internal.h: #include "extension.h".
12434 (gdbpy_auto_load_enabled): Declare.
12435 (gdbpy_apply_val_pretty_printer): Declare.
12436 (gdbpy_apply_frame_filter): Declare.
12437 (gdbpy_preserve_values): Declare.
12438 (gdbpy_breakpoint_cond_says_stop): Declare.
12439 (gdbpy_breakpoint_has_cond): Declare.
12440 (void source_python_script_for_objfile): Delete.
12441 * python/python.c: #include "extension-priv.h".
12442 Delete inclusion of "observer.h".
12443 (extension_language_python): Moved here and renamed from
12444 script_language_python in py-auto-load.c.
12445 Redefined to be of type extension_language_defn.
12446 (python_extension_script_ops): New global.
12447 (python_extension_ops): New global.
12448 (struct python_env): New member previous_active.
12449 (restore_python_env): Call restore_active_ext_lang.
12450 (ensure_python_env): Call set_active_ext_lang.
12451 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12452 New arg extlang.
12453 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12454 New arg extlang.
12455 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12456 New arg extlang.
12457 (gdbpy_eval_from_control_command): Renamed from
12458 eval_python_from_control_command, made static. New arg extlang.
12459 (gdbpy_source_script) Renamed from source_python_script, made static.
12460 New arg extlang.
12461 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12462 result to int. New arg extlang.
12463 (gdbpy_source_objfile_script): Renamed from
12464 source_python_script_for_objfile, made static. New arg extlang.
12465 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12466 static. New args extlang, extlang_printers. Change result type to
12467 "void".
12468 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12469 static. New arg extlang. Rename arg printers to extlang_printers
12470 and change type to ext_lang_type_printers *.
12471 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12472 static. Replace argument arg with extlang, extlang_printers.
12473 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12474 (!HAVE_PYTHON, source_python_script): Delete.
12475 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12476 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12477 (!HAVE_PYTHON, start_type_printers): Delete.
12478 (!HAVE_PYTHON, apply_type_printers): Delete.
12479 (!HAVE_PYTHON, free_type_printers): Delete.
12480 (_initialize_python): Delete call to observer_attach_before_prompt.
12481 (finalize_python): Set/restore active extension language.
12482 (gdbpy_finish_initialization) Renamed from
12483 finish_python_initialization, made static. New arg extlang.
12484 (gdbpy_initialized): New function.
12485 * python/python.h: #include "extension.h". Delete #include
12486 "value.h", "mi/mi-cmds.h".
12487 (extension_language_python): Declare.
12488 (GDBPY_AUTO_FILE_NAME): Delete.
12489 (enum py_bt_status): Moved to extension.h and renamed to
12490 ext_lang_bt_status.
12491 (enum frame_filter_flags): Moved to extension.h.
12492 (enum py_frame_args): Moved to extension.h and renamed to
12493 ext_lang_frame_args.
12494 (finish_python_initialization): Delete.
12495 (eval_python_from_control_command): Delete.
12496 (source_python_script): Delete.
12497 (apply_val_pretty_printer): Delete.
12498 (apply_frame_filter): Delete.
12499 (preserve_python_values): Delete.
12500 (gdbpy_script_language_defn): Delete.
12501 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12502 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12503
12504 * auto-load.c: #include "extension.h".
12505 (GDB_AUTO_FILE_NAME): Delete.
12506 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12507 (script_language_gdb): Delete, moved to extension.c and renamed to
12508 extension_language_gdb.
12509 (source_gdb_script_for_objfile): Delete.
12510 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12511 (loaded_script): Change type of language member to
12512 struct extension_language_defn *.
12513 (init_loaded_scripts_info): Initialize
12514 unsupported_script_warning_printed.
12515 (maybe_add_script): Make static. Change type of language arg to
12516 struct extension_language_defn *.
12517 (clear_section_scripts): Reset unsupported_script_warning_printed.
12518 (auto_load_objfile_script_1): Rewrite to use extension language API.
12519 (auto_load_objfile_script): Make public. Remove support-compiled-in
12520 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12521 (source_section_scripts): Rewrite to use extension language API.
12522 (load_auto_scripts_for_objfile): Rewrite to use
12523 auto_load_scripts_for_objfile.
12524 (collect_matching_scripts_data): Change type of language member to
12525 struct extension_language_defn *.
12526 (auto_load_info_scripts): Change type of language arg to
12527 struct extension_language_defn *.
12528 (unsupported_script_warning_print): New function.
12529 (script_not_found_warning_print): Make static.
12530 (_initialize_auto_load): Rewrite construction of scripts-directory
12531 help.
12532 * auto-load.h (struct objfile): Add forward decl.
12533 (struct script_language): Delete.
12534 (struct auto_load_pspace_info): Add forward decl.
12535 (struct extension_language_defn): Add forward decl.
12536 (maybe_add_script): Delete.
12537 (auto_load_objfile_script): Declare.
12538 (script_not_found_warning_print): Delete.
12539 (auto_load_info_scripts): Update prototype.
12540 (auto_load_gdb_scripts_enabled): Declare.
12541 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12542 auto_load_python_scripts_enabled and made public.
12543 (script_language_python): Delete, moved to python.c.
12544 (gdbpy_script_language_defn): Delete.
12545 (info_auto_load_python_scripts): Update to use
12546 extension_language_python.
12547
12548 * breakpoint.c (condition_command): Replace call to
12549 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12550 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12551 with call to breakpoint_ext_lang_cond_says_stop.
12552 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12553 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12554 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12555 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12556 New arg slang.
12557 (local_setattro): Print name of extension language with existing
12558 stop condition.
12559
12560 * valprint.c (val_print, value_print): Update to call
12561 apply_ext_lang_val_pretty_printer.
12562 * cp-valprint.c (cp_print_value): Update call to
12563 apply_ext_lang_val_pretty_printer.
12564 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12565 (gdbpy_apply_val_pretty_printer): Renamed from
12566 apply_val_pretty_printer. New arg extlang.
12567 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12568
12569 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12570 extension language API.
12571 * cli/cli-script.c (execute_control_command): Update to call
12572 eval_ext_lang_from_control_command.
12573
12574 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12575 enum ext_lang_bt_status values. Update call to
12576 apply_ext_lang_frame_filter.
12577 (mi_cmd_stack_list_locals): Ditto.
12578 (mi_cmd_stack_list_args): Ditto.
12579 (mi_cmd_stack_list_variables): Ditto.
12580 * mi/mi-main.c: Delete #include "python/python-internal.h".
12581 Add #include "extension.h".
12582 (mi_cmd_list_features): Replace reference to python internal variable
12583 gdb_python_initialized with call to ext_lang_initialized_p.
12584
12585 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12586 Update to use enum ext_lang_frame_args. Update to call
12587 apply_ext_lang_frame_filter.
12588 * python/py-framefilter.c (extract_sym): Update to use enum
12589 ext_lang_bt_status.
12590 (extract_value, py_print_type, py_print_value): Ditto.
12591 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12592 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12593 (py_print_frame): Ditto.
12594 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12595 New arg extlang. Update to use enum ext_lang_bt_status.
12596
12597 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12598 finish_python_initialization. Replace with call to
12599 finish_ext_lang_initialization.
12600
12601 * typeprint.c (do_free_global_table): Update to call
12602 free_ext_lang_type_printers.
12603 (create_global_typedef_table): Update to call
12604 start_ext_lang_type_printers.
12605 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12606 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12607 (type_print_options): Change type of global_printers from "void *"
12608 to "struct ext_lang_type_printers *".
12609
12610 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12611 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12612 (gdbpy_preserve_values): Renamed from preserve_python_values.
12613 New arg extlang.
12614 (!HAVE_PYTHON, preserve_python_values): Delete.
12615
12616 * utils.c (quit_flag): Delete, moved to extension.c.
12617 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12618 extension.c.
12619
12620 * eval.c: Delete #include "python/python.h".
12621 * main.c: Delete #include "python/python.h".
12622
12623 * defs.h: Update comment.
12624
12625 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12626
12627 GDB 7.7 released.
12628
12629 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12630
12631 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12632 defined.
12633
12634 2014-02-05 Yao Qi <yao@codesourcery.com>
12635
12636 * remote.c (remote_pass_signals): Remove local 'buf' and use
12637 rs->buf.
12638 (remote_program_signals): Likewise.
12639
12640 2014-02-05 Yao Qi <yao@codesourcery.com>
12641
12642 * ctf.c: Include "inferior.h" and "gdbthread.h".
12643 (CTF_PID): A new macro.
12644 (ctf_open): Call inferior_appeared and add_thread_silent.
12645 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12646 (ctf_thread_alive): New function.
12647 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12648
12649 2014-02-05 Yao Qi <yao@codesourcery.com>
12650
12651 Revert this patch:
12652
12653 2013-05-24 Yao Qi <yao@codesourcery.com>
12654
12655 * tracepoint.c (TFILE_PID): Remove.
12656 (tfile_open): Don't add thread and inferior.
12657 (tfile_close): Don't set 'inferior_ptid'. Don't call
12658 exit_inferior_silent.
12659 (tfile_thread_alive): Remove.
12660 (init_tfile_ops): Don't set field 'to_thread_alive' of
12661 tfile_ops.
12662
12663 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12664
12665 * remote.c (remote_start_remote): Call remote_check_symbols even
12666 if only symbol-file (not file) has been given.
12667
12668 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12669
12670 * gdbarch.sh (skip_entrypoint): New callback.
12671 * gdbarch.c, gdbarch.h: Regenerate.
12672 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12673 * infrun.c (fill_in_stop_func): Likewise.
12674 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12675 (ppc_elfv2_elf_make_msymbol_special): New function.
12676 (ppc_elfv2_skip_entrypoint): Likewise.
12677 (ppc_linux_init_abi): Install them for ELFv2.
12678
12679 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12680
12681 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12682 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12683 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12684 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12685 structures returned in GPRs.
12686
12687 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12688
12689 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12690 offset to the stack parameter list for the ELFv2 ABI.
12691
12692 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12693
12694 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12695 set_gdbarch_convert_from_func_ptr_addr and
12696 set_gdbarch_elf_make_msymbol_special for ELFv1.
12697 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12698 function descriptors on ELFv1.
12699 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12700 set up r12 at function entry.
12701
12702 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12703
12704 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12705 (struct gdbarch_tdep): New member elf_abi.
12706
12707 * rs6000-tdep.c: Include "elf/ppc64.h".
12708 (rs6000_gdbarch_init): Detect ELF ABI version.
12709
12710 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12711
12712 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12713 within a register pair holding a DFP 128-bit value on little-endian.
12714 (ppc64_sysv_abi_return_value_base): Likewise.
12715 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12716 (dfp_pseudo_register_write): Likewise.
12717
12718 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12719
12720 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12721 offset on little-endian when passing _Decimal32.
12722 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12723
12724 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12725
12726 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12727 of the overlapped FP register within the VSX register on little-
12728 endian platforms.
12729 (efpr_pseudo_register_write): Likewise.
12730
12731 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12732
12733 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12734 offset on little-endian when passing small structures.
12735
12736 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12737
12738 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12739 (struct ppc64_sysv_argpos): New data structure.
12740 (ppc64_sysv_abi_push_float): Remove.
12741 (ppc64_sysv_abi_push_val): New function.
12742 (ppc64_sysv_abi_push_integer): Likewise.
12743 (ppc64_sysv_abi_push_freg): Likewise.
12744 (ppc64_sysv_abi_push_vreg): Likewise.
12745 (ppc64_sysv_abi_push_param): Likewise.
12746 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12747 (ppc64_sysv_abi_return_value_base): New function.
12748 (ppc64_sysv_abi_return_value): Refactor to use it.
12749
12750 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12751
12752 * NEWS: Document new target powerpc64le-*-linux*.
12753
12754 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12755
12756 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12757 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12758 core dumps.
12759 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12760 register set used in ELF core dumps. Add floating-point register set.
12761
12762 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12763
12764 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12765 dwarf2_to_gdb[] table using symbolic constants. Adjust
12766 penultimate entry from number representing the PC register
12767 to symbolic constant representing the MDR register. Add
12768 constant for the PC register to the end of the table.
12769
12770 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12771
12772 * bsd-kvm.c: Include <sys/param.h>
12773
12774 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12775
12776 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12777
12778 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12779
12780 * ada-lang.h (clear_ada_sym_cache): Delete.
12781
12782 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12783
12784 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12785
12786 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12787
12788 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12789 the sigreturn register save area only if the syscall is
12790 sigreturn.
12791
12792 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12793
12794 * valops.c (value_slice): Minor reformatting.
12795
12796 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12797
12798 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12799
12800 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12801
12802 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12803 New static globals.
12804 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12805 (ada_ignore_descriptive_types_p): New static global.
12806 (find_parallel_type_by_descriptive_type): Return immediately
12807 if ada_ignore_descriptive_types_p is set.
12808 (_initialize_ada_language): Register new commands "maintenance
12809 set ada", "maintenance show ada", "maintenance set ada
12810 ignore-descriptive-types" and "maintenance show ada
12811 ignore-descriptive-types".
12812 * NEWS: Add entry for new "maint ada set/show
12813 ignore-descriptive-types" commands.
12814
12815 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12816
12817 * record-btrace.c (record_btrace_close): Call btrace_teardown
12818 for all threads.
12819
12820 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12821
12822 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12823 "ui-out.h".
12824
12825 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12826
12827 * ada-typeprint (type_is_full_subrange_of_target_type):
12828 New function.
12829 (print_range): Add parameter bounds_prefered_p. If not set,
12830 try printing range types using the name of their base type.
12831 (print_range_type): Add parameter bounds_prefered_p.
12832 Use it in call to print_range.
12833 (print_array_type, ada_print_type): Update calls to print_range
12834 and print_range_type.
12835
12836 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12837
12838 * ada-typeprint.c (print_array_type, print_choices, print_range)
12839 (print_range_bound, print_dynamic_range_bound, print_range_type):
12840 Remove declaration.
12841
12842 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12843
12844 * ada-typeprint.c (print_range): Add missing empty line
12845 after local declaration.
12846
12847 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12848
12849 * ada-valprint.c (print_optional_low_bound): Get index_type's
12850 target type for as long as it is a TYPE_CODE_RANGE.
12851
12852 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12853
12854 * procfs.c (procfs_make_note_section): Remove assertion and
12855 associated comment.
12856
12857 2014-01-24 Yao Qi <yao@codesourcery.com>
12858
12859 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12860 * corelow.c (get_core_siginfo): Likewise.
12861
12862 2014-01-24 Yao Qi <yao@codesourcery.com>
12863
12864 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12865 ULONGEST. Don't check 'len' is negative.
12866 (remote_write_bytes): Change type of 'len' to ULONGEST.
12867
12868 2014-01-23 Tom Tromey <tromey@redhat.com>
12869
12870 PR python/16485:
12871 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12872 Handle exception from frame.block.
12873 (FrameVars.fetch_frame_locals): Likewise.
12874
12875 2014-01-23 Tom Tromey <tromey@redhat.com>
12876
12877 PR python/16487:
12878 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12879 on a NULL pointer. Move "goto error" to correct place.
12880
12881 2014-01-23 Tom Tromey <tromey@redhat.com>
12882
12883 PR python/16491:
12884 * python/py-framefilter.c (apply_frame_filter): Call
12885 ensure_python_env after computing gdbarch.
12886
12887 2014-01-23 Yao Qi <yao@codesourcery.com>
12888
12889 * target.c (raw_memory_xfer_partial): Change argument type
12890 from void * to gdb_byte *.
12891 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12892
12893 2014-01-22 Doug Evans <dje@google.com>
12894
12895 New gdbserver option --debug-format=timestamp.
12896 * NEWS: Mention it.
12897
12898 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12899
12900 * syscalls/s390x-linux.xml: New file.
12901 * syscalls/s390-linux.xml: New file.
12902 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12903 (XML_SYSCALL_FILENAME_S390X): Likewise.
12904 (op_svc): New enum value for SVC opcode.
12905 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12906 (s390_linux_get_syscall_number): New function.
12907 (s390_gdbarch_init): Register '*get_syscall_number' and the
12908 syscall xml file name.
12909 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12910 "s390-linux.xml" and "s390x-linux.xml".
12911 * NEWS: Announce new feature.
12912
12913 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12914
12915 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12916
12917 2014-01-22 Pedro Alves <palves@redhat.com>
12918
12919 * xtensa-config.c: Include defs.h.
12920
12921 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12922
12923 * common/common-utils.h: Add "ARI:" comment beside __func__
12924 reference.
12925
12926 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12927
12928 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12929 documentation a bit.
12930
12931 2014-01-21 Roland McGrath <mcgrathr@google.com>
12932
12933 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12934 * configure: Regenerate.
12935 * aclocal.m4: Regenerate.
12936 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12937 New substituted variables.
12938 (install-strip): New target.
12939 (INSTALL_SCRIPT): New substituted variable.
12940 (FLAGS_TO_PASS): Add it.
12941 (install-only): Use $(INSTALL_SCRIPT) rather than
12942 $(INSTALL_PROGRAM) for gcore.
12943
12944 2014-01-20 Tom Tromey <tromey@redhat.com>
12945
12946 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12947 together.
12948
12949 2014-01-20 Tom Tromey <tromey@redhat.com>
12950
12951 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12952 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12953 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12954 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12955 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12956 (struct cmd_list_element) <flags>: Remove.
12957 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12958 doc_allocated>: New fields.
12959 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12960 bitfields.
12961 * maint.c (maintenance_do_deprecate): Update.
12962 * top.c (execute_command): Update.
12963
12964 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12965
12966 * xtensa-linux-nat.c: Include asm/ptrace.h.
12967
12968 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12969
12970 * Makefile.in (SFILES): Add d-support.c.
12971 (COMMON_OBS): Add d-support.o.
12972 * d-lang.h (d_parse_symbol): Add comment, now defined in
12973 d-support.c.
12974 * d-lang.c (parse_call_convention)
12975 (parse_attributes, parse_function_types)
12976 (parse_function_args, parse_type, parse_identifier)
12977 (call_convention_p, d_parse_symbol): Move functions to ...
12978 * d-support.c: ... New file.
12979
12980 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12981
12982 * d-lang.h (d_parse_symbol): Add declaration.
12983 * d-lang.c (extract_identifiers)
12984 (extract_type_info): Remove functions.
12985 (parse_call_convention, parse_attributes)
12986 (parse_function_types, parse_function_args)
12987 (parse_type, parse_identifier, call_convention_p)
12988 (d_parse_symbol): New functions.
12989 (d_demangle): Use d_parse_symbol to demangle D symbols.
12990
12991 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12992
12993 * d-lang.h (struct builtin_d_type): New data type.
12994 (builtin_d_type): Add declaration.
12995 * d-lang.c (d_language_arch_info, build_d_types)
12996 (builtin_d_type): New functions.
12997 (enum d_primitive_types): New data type.
12998 (d_language_defn): Change c_language_arch_info to
12999 d_language_arch_info.
13000 (d_type_data): New static variable.
13001 (_initialize_d_language): Initialize d_type_data.
13002
13003 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13004
13005 * d-lang.h (d_main_name): Add declaration.
13006 * d-lang.c (d_main_name): New function.
13007 * symtab.c (find_main_name): Add call to d_main_name.
13008
13009 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13010
13011 * d-lang.c (d_language_defn): Change macro_expansion_c to
13012 macro_expansion_no.
13013
13014 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13015
13016 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13017
13018 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13019
13020 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13021 gdb_exception" declaration.
13022 * remote.c (getpkt_or_notif_sane): Likewise.
13023
13024 2014-01-17 Doug Evans <dje@google.com>
13025
13026 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13027 function, contents of dirnames_to_char_ptr_vec_append moved here.
13028 (delim_string_to_char_ptr_vec): New function.
13029 (dirnames_to_char_ptr_vec_append): Rewrite.
13030 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13031
13032 2014-01-17 Doug Evans <dje@google.com>
13033
13034 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13035 and moved here ...
13036 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13037 #include "common-utils.h".
13038 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13039 * common/vec.h (VEC_ASSERT_PASS): Update.
13040 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13041 (MACH_CHECK_ERROR): Update.
13042
13043 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13044
13045 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13046 comments.
13047 * gdbarch.h: Regenerate.
13048
13049 2014-01-16 Tom Tromey <tromey@redhat.com>
13050
13051 * value.c (struct value) <regnum>: Move earlier.
13052
13053 2014-01-16 Tom Tromey <tromey@redhat.com>
13054
13055 * remote.c (extended_remote_create_inferior): Rename from
13056 extended_remote_create_inferior_1. Add "ops" argument. Remove
13057 old implementation.
13058
13059 2014-01-16 Pedro Alves <palves@redhat.com>
13060
13061 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13062 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13063 the backchain.
13064
13065 2014-01-16 Doug Evans <dje@google.com>
13066
13067 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13068
13069 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13070
13071 * btrace.h (btrace_thread_flag): New.
13072 (struct btrace_thread_info) <flags>: New.
13073 * record-btrace.c (record_btrace_resume_thread)
13074 (record_btrace_find_thread_to_move, btrace_step_no_history)
13075 (btrace_step_stopped, record_btrace_start_replaying)
13076 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13077 (record_btrace_find_resume_thread): New.
13078 (record_btrace_resume, record_btrace_wait): Extend.
13079 (record_btrace_can_execute_reverse): New.
13080 (record_btrace_open): Fail in non-stop mode.
13081 (record_btrace_set_replay): Split into this, ...
13082 (record_btrace_stop_replaying): ... this, ...
13083 (record_btrace_clear_histories): ... and this.
13084 (init_record_btrace_ops): Init to_can_execute_reverse.
13085 * NEWS: Announce it.
13086
13087 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13088
13089 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13090 (forward_target_decr_pc_after_break)
13091 (target_decr_pc_after_break): New.
13092 * target.c (forward_target_decr_pc_after_break)
13093 (target_decr_pc_after_break): New.
13094 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13095 instead of gdbarch_decr_pc_after_break.
13096 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13097 instead of gdbarch_decr_pc_after_break.
13098 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13099 instead of gdbarch_decr_pc_after_break.
13100 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13101 instead of gdbarch_decr_pc_after_break.
13102 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13103 instead of gdbarch_decr_pc_after_break.
13104 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13105 instead of gdbarch_decr_pc_after_break.
13106
13107 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13108
13109 * btrace.c: Include regcache.h.
13110 (btrace_add_pc): New.
13111 (btrace_enable): Call btrace_add_pc.
13112 (btrace_is_empty): New.
13113 * btrace.h (btrace_is_empty): New.
13114 * record-btrace.c (require_btrace, record_btrace_info): Call
13115 btrace_is_empty.
13116
13117 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13118
13119 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13120 Support delta reads.
13121 (linux_disable_btrace): Change return type.
13122 * common/linux-btrace.h (linux_read_btrace): Change parameters
13123 and return type to allow error reporting. Update users.
13124 (linux_disable_btrace): Change return type. Update users.
13125 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13126 New.
13127 (btrace_error): New.
13128 (btrace_block) <begin>: Comment on BEGIN == 0.
13129 * btrace.c (btrace_compute_ftrace): Start from the end of
13130 the current trace.
13131 (btrace_stitch_trace, btrace_clear_history): New.
13132 (btrace_fetch): Read delta trace, return if replaying.
13133 (btrace_clear): Move clear history code to btrace_clear_history.
13134 (parse_xml_btrace): Throw an error if parsing failed.
13135 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13136 and return type to allow error reporting.
13137 (target_read_btrace): Change parameters and return type to allow
13138 error reporting.
13139 * target.c (target_read_btrace): Update.
13140 * remote.c (remote_read_btrace): Support delta reads. Pass
13141 errors on.
13142 * NEWS: Announce it.
13143
13144 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13145
13146 * record.h (record_btrace_frame_unwind)
13147 (record_btrace_tailcall_frame_unwind): New declarations.
13148 * dwarf2-frame: Include record.h
13149 (dwarf2_frame_cfa): Throw an error for btrace frames.
13150 * record-btrace.c: Include hashtab.h.
13151 (btrace_get_bfun_name): New.
13152 (btrace_call_history): Call btrace_get_bfun_name.
13153 (struct btrace_frame_cache): New.
13154 (bfcache): New.
13155 (bfcache_hash, bfcache_eq, bfcache_new): New.
13156 (btrace_get_frame_function): New.
13157 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13158 (record_btrace_frame_this_id): Compute own id.
13159 (record_btrace_frame_prev_register): Provide PC, throw_error
13160 for all other registers.
13161 (record_btrace_frame_sniffer): Detect btrace frames.
13162 (record_btrace_tailcall_frame_sniffer): New.
13163 (record_btrace_frame_dealloc_cache): New.
13164 (record_btrace_frame_unwind): Add new functions.
13165 (record_btrace_tailcall_frame_unwind): New.
13166 (_initialize_record_btrace): Allocate cache.
13167 * btrace.c (btrace_clear): Call reinit_frame_cache.
13168 * NEWS: Announce it.
13169
13170 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13171
13172 * record-btrace.c (record_btrace_set_replay)
13173 (record_btrace_goto_begin, record_btrace_goto_end)
13174 (record_btrace_goto): New.
13175 (init_record_btrace_ops): Initialize them.
13176 * NEWS: Announce it.
13177
13178 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13179
13180 * record-btrace.c (record_btrace_find_new_threads)
13181 (record_btrace_thread_alive): New.
13182 (init_record_btrace_ops): Initialize to_find_new_threads and
13183 to_thread_alive.
13184
13185 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13186
13187 * record-btrace.c (record_btrace_resume): New.
13188 (record_btrace_wait): New.
13189 (init_record_btrace_ops): Initialize to_wait and to_resume.
13190
13191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13192
13193 * record-btrace.c (record_btrace_xfer_partial)
13194 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13195 (record_btrace_allow_memory_access): New.
13196 (init_record_btrace_ops): Initialize new methods.
13197 * target.c (raw_memory_xfer_partial): Bail out if target reports
13198 that this memory is not available.
13199
13200 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13201
13202 * target.h (target_ops) <to_insert_breakpoint>
13203 <to_remove_breakpoint>: Add target_ops parameter.
13204 (forward_target_insert_breakpoint): New.
13205 (forward_target_remove_breakpoint): New.
13206 (memory_remove_breakpoint, memory_insert_breakpoint):
13207 Add target_ops parameter.
13208 * target.c (target_insert_breakpoint): Split into this and ...
13209 (forward_target_insert_breakpoint): ... this.
13210 (target_remove_breakpoint): Split into this and ...
13211 (forward_target_remove_breakpoint): ... this.
13212 (debug_to_insert_breakpoint): Add target_ops parameter.
13213 Call forward_target_insert_breakpoint.
13214 (debug_to_remove_breakpoint): Add target_ops parameter.
13215 Call forward_target_remove_breakpoint.
13216 (update_current_target): Do not inherit or default to_insert_breakpoint
13217 and to_remove_breakpoint.
13218 * corelow.c (ignore): Add target_ops parameter.
13219 * exec.c (ignore): Add target_ops parameter.
13220 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13221 Add target_ops parameter.
13222 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13223 Add target_ops parameter.
13224 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13225 Add target_ops parameter.
13226 * record-full.c (record_full_beneath_to_insert_breakpoint)
13227 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13228 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13229 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13230 (record_full_core_remove_breakpoint): Add target_ops parameter.
13231 Update users.
13232 (record_full_beneath_to_insert_breakpoint_ops)
13233 (record_full_beneath_to_remove_breakpoint_ops)
13234 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13235 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13236 tmp_to_remove_breakpoint_ops,
13237 record_full_beneath_to_insert_breakpoint_ops, and
13238 record_full_beneath_to_remove_breakpoint_ops.
13239 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13240 (m32r_remove_breakpoint): Add target_ops parameter.
13241 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13242 Add target_ops parameter.
13243 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13244 Add target_ops parameter.
13245
13246 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13247 Markus Metzger <markus.t.metzger@intel.com>
13248
13249 * record-btrace.c: Include frame-unwind.h.
13250 (record_btrace_frame_unwind_stop_reason)
13251 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13252 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13253 New.
13254 (init_record_btrace_ops): Install it.
13255
13256 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13257
13258 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13259 get_prev_frame_1.
13260
13261 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13262
13263 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13264 earlier.
13265
13266 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13267
13268 * frame-unwind.c: Include target.h.
13269 (frame_unwind_try_unwinder): New function with code from ...
13270 (frame_unwind_find_by_frame): ... here. New variable
13271 unwinder_from_target, call also target_get_unwinder)
13272 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13273 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13274 * target.h (struct target_ops): New fields to_get_unwinder and
13275 to_get_tailcall_unwinder.
13276 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13277
13278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13279
13280 * record-btrace.c (record_btrace_fetch_registers)
13281 (record_btrace_store_registers)
13282 (record_btrace_to_prepare_to_store): New.
13283 (init_record_btrace_ops): Add the above.
13284
13285 2014-01-16 Tom Tromey <tromey@redhat.com>
13286
13287 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13288 * target.h (struct target_ops) <to_prepare_to_store>: Add
13289 argument.
13290 (target_prepare_to_store): Add argument.
13291 * target.c (debug_to_prepare_to_store): Add argument.
13292 (update_current_target): Update.
13293 * remote.c (remote_prepare_to_store): Add 'self' argument.
13294 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13295 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13296 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13297 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13298 argument.
13299 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13300 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13301 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13302 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13303 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13304
13305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13306
13307 * btrace.h (replay) <replay>: New.
13308 (btrace_is_replaying): New.
13309 * btrace.c (btrace_clear): Free replay iterator.
13310 (btrace_is_replaying): New.
13311 * record-btrace.c (record_btrace_is_replaying): New.
13312 (record_btrace_info): Print insn number if replaying.
13313 (record_btrace_insn_history): Start at replay position.
13314 (record_btrace_call_history): Start at replay position.
13315 (init_record_btrace_ops): Init to_record_is_replaying.
13316
13317 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13318
13319 * record-btrace.c (record_btrace_insn_history_range): Include
13320 end.
13321 (record_btrace_insn_history_from): Adjust range.
13322 (record_btrace_call_history_range): Include
13323 end.
13324 (record_btrace_call_history_from): Adjust range.
13325 * NEWS: Announce changes.
13326
13327 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13328
13329 * record.h (enum record_print_flag)
13330 <record_print_indent_calls>: New.
13331 * record.c (get_call_history_modifiers): Recognize /c modifier.
13332 (_initialize_record): Document /c modifier.
13333 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13334 Reorder fields. Optionally indent the function name. Update
13335 all users.
13336 * NEWS: Announce changes.
13337
13338 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13339
13340 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13341
13342 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13343
13344 * btrace.c (ftrace_new_function): Start counting at one.
13345 * record-btrace.c (record_btrace_info): Adjust number of calls
13346 and insns.
13347 * NEWS: Announce it.
13348
13349 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13350
13351 * record-btrace.c (btrace_call_history_insn_range): Print
13352 insn range as [begin, end].
13353
13354 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13355
13356 * btrace.h (struct btrace_func_link): New.
13357 (enum btrace_function_flag): New.
13358 (struct btrace_inst): Rename to ...
13359 (struct btrace_insn): ...this. Update all users.
13360 (struct btrace_func) <ibegin, iend>: Remove.
13361 (struct btrace_func_link): New.
13362 (struct btrace_func): Rename to ...
13363 (struct btrace_function): ...this. Update all users.
13364 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13365 (number, level, flags>: New.
13366 (struct btrace_insn_iterator): Rename to ...
13367 (struct btrace_insn_history): ...this.
13368 Update all users.
13369 (struct btrace_insn_iterator, btrace_call_iterator): New.
13370 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13371 (struct btrace_target_info) <begin, end, level>
13372 <insn_history, call_history>: New.
13373 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13374 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13375 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13376 (btrace_call_number, btrace_call_begin, btrace_call_end)
13377 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13378 (btrace_find_function_by_number, btrace_set_insn_history)
13379 (btrace_set_call_history): New.
13380 * btrace.c (btrace_init_insn_iterator)
13381 (btrace_init_func_iterator, compute_itrace): Remove.
13382 (ftrace_print_function_name, ftrace_print_filename)
13383 (ftrace_skip_file): Change
13384 parameter to const.
13385 (ftrace_init_func): Remove.
13386 (ftrace_debug): Use new btrace_function fields.
13387 (ftrace_function_switched): Also consider gaining and
13388 losing symbol information).
13389 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13390 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13391 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13392 New.
13393 (ftrace_new_function): Move. Remove debug print.
13394 (ftrace_update_lines, ftrace_update_insns): New.
13395 (ftrace_update_function): Check for call, ret, and jump.
13396 (compute_ftrace): Renamed to ...
13397 (btrace_compute_ftrace): ...this. Rewritten to compute call
13398 stack.
13399 (btrace_fetch, btrace_clear): Updated.
13400 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13401 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13402 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13403 (btrace_call_number, btrace_call_begin, btrace_call_end)
13404 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13405 (btrace_find_function_by_number, btrace_set_insn_history)
13406 (btrace_set_call_history): New.
13407 * record-btrace.c (require_btrace): Use new btrace thread
13408 info fields.
13409 (record_btrace_info, btrace_insn_history)
13410 (record_btrace_insn_history, record_btrace_insn_history_range):
13411 Use new btrace thread info fields and new iterator.
13412 (btrace_func_history_src_line): Rename to ...
13413 (btrace_call_history_src_line): ...this. Use new btrace
13414 thread info fields.
13415 (btrace_func_history): Rename to ...
13416 (btrace_call_history): ...this. Use new btrace thread info
13417 fields and new iterator.
13418 (record_btrace_call_history, record_btrace_call_history_range):
13419 Use new btrace thread info fields and new iterator.
13420
13421 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13422
13423 * frame.h (frame_id_build_unavailable_stack_special): New.
13424 * frame.c (frame_id_build_unavailable_stack_special): New.
13425
13426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13427
13428 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13429 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13430 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13431 to gdbarch.
13432 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13433 (i386_insn_is_jump, i386_jmp_p): New.
13434 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13435 insn_is_jump to gdbarch.
13436 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13437 * gdbarch.h: Regenerated.
13438 * gdbarch.c: Regenerated.
13439 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13440 (default_insn_is_jump): New.
13441 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13442 (default_insn_is_jump): New.
13443
13444 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13445
13446 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13447 Change to ...
13448 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13449 (btrace_read_type) <btrace_read_new>: Change to ...
13450 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13451
13452 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13453
13454 * common/linux-btrace.c (linux_read_btrace): Free trace from
13455 previous iteration.
13456
13457 2014-01-15 Doug Evans <dje@google.com>
13458
13459 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13460 uint32_t.
13461
13462 2014-01-15 Tom Tromey <tromey@redhat.com>
13463
13464 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13465 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13466 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13467 (set_objfile_main_name): New function.
13468 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13469 language_of_main>: New fields.
13470 (set_objfile_main_name): Declare.
13471 * symtab.c (find_main_name): Loop over objfiles to find the main
13472 name and language.
13473 (set_main_name): Now static.
13474 (get_main_info): Add comment.
13475 * symtab.h (set_main_name): Don't declare.
13476
13477 2014-01-15 Tom Tromey <tromey@redhat.com>
13478
13479 * symtab.c (main_progspace_key): New global.
13480 (struct main_info): New.
13481 (name_of_main, language_of_main): Remove.
13482 (get_main_info, main_info_cleanup): New function.
13483 (set_main_name, main_name, main_language): Use get_main_info.
13484 (_initialize_symtab): Initialize main_progspace_key.
13485
13486 2014-01-15 Tom Tromey <tromey@redhat.com>
13487
13488 * dbxread.c (process_one_symbol): Update.
13489 * dwarf2read.c (read_partial_die): Update.
13490 * symfile.c (set_initial_language): Call main_language.
13491 * symtab.c (language_of_main): Now static.
13492 (set_main_name): Add 'lang' parameter.
13493 (find_main_name): Update.
13494 (main_language): New function.
13495 (symtab_observer_executable_changed): Update.
13496 * symtab.h (set_main_name): Update.
13497 (language_of_main): Remove.
13498 (main_language): Declare.
13499
13500 2014-01-15 Tom Tromey <tromey@redhat.com>
13501
13502 * symfile.c (init_entry_point_info): Use new "initialized" field.
13503 Update.
13504 * objfiles.h (struct entry_point) <initialized>: New field.
13505 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13506 (struct objfile) <ei>: ...here. Remove.
13507 * objfiles.c (entry_point_address_query): Update.
13508
13509 2014-01-15 Tom Tromey <tromey@redhat.com>
13510
13511 * objfiles.c (entry_point_address_query): Relocate entry point
13512 address.
13513 (objfile_relocate1): Do not relocate entry point address.
13514 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13515 <the_bfd_section_index>: New field.
13516 * symfile.c (init_entry_point_info): Find the entry point's
13517 section.
13518
13519 2014-01-15 Tom Tromey <tromey@redhat.com>
13520
13521 * solib-frv.c (enable_break): Use entry_point_address_query.
13522
13523 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13524
13525 * NEWS: Add note on improved process record-replay on
13526 arm*-linux* targets.
13527
13528 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13529
13530 * arm-tdep.c (enum arm_record_result): New enum.
13531 (arm_record_unsupported_insn): New function.
13532 (arm_record_coproc_data_proc): Removed.
13533 (thumb2_record_ld_st_multiple): New function.
13534 (thumb2_record_ld_st_dual_ex_tbb): New function.
13535 (thumb2_record_data_proc_sreg_mimm): New function.
13536 (thumb2_record_ps_dest_generic): New function.
13537 (thumb2_record_branch_misc_cntrl): New function.
13538 (thumb2_record_str_single_data): New function.
13539 (thumb2_record_ld_mem_hints): New function.
13540 (thumb2_record_ld_word): New function.
13541 (thumb2_record_lmul_lmla_div): New function.
13542 (thumb2_record_decode_insn_handler): New function.
13543 (decode_insn): Add thumb32 instruction handlers.
13544
13545 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13546
13547 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13548 (struct arm_linux_record_tdep): Declare.
13549 (arm_canonicalize_syscall): New function.
13550 (arm_all_but_pc_registers_record): New function.
13551 (arm_linux_syscall_record): New function.
13552 (arm_linux_init_abi): Add syscall recording constructs.
13553 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13554 decoding. (arm_record_coproc_data_proc): Update arm syscall
13555 decoding.
13556 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13557 <arm_syscall_record>: New field.
13558 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13559 gdb_target_obs.
13560
13561 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13562
13563 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13564 register for push instruction recording.
13565
13566 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13567
13568 * arm-tdep.c (thumb_record_misc): Update to correct logical
13569 error while recording ldm, ldmia and pop instructions.
13570
13571 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13572
13573 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13574
13575 2014-01-15 Pedro Alves <palves@redhat.com>
13576
13577 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13578 (go32_resume, go32_fetch_registers, store_register)
13579 (go32_store_registers, go32_prepare_to_store)
13580 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13581 (go32_create_inferior, go32_can_run, go32_terminal_init)
13582 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13583 declarations.
13584
13585 2014-01-15 Tom Tromey <tromey@redhat.com>
13586
13587 * target.h (async_callback_ftype): New typedef.
13588 (struct target_ops) <to_async>: Use it.
13589
13590 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13591
13592 * python/py-value.c (get_field_type): Remove unnecessary curly
13593 braces for single-statement if block.
13594
13595 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13596
13597 * python/py-type.c (convert_field): Add missing empty line
13598 after declarations.
13599
13600 2014-01-14 Doug Evans <dje@google.com>
13601
13602 * symfile.h (expand_symtabs_matching): Renamed from
13603 expand_partial_symbol_names. Update prototype.
13604 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13605 * symfile.c (expand_symtabs_matching): Renamed from
13606 expand_partial_symbol_names. New args file_matcher, kind.
13607 Rename arg fun to symbol_matcher.
13608 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13609 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13610 ada_expand_partial_symbol_name.
13611 (ada_make_symbol_completion_list): Update to call
13612 expand_symtabs_matching.
13613 (ada_add_global_exceptions): Call expand_symtabs_matching.
13614 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13615 call map_symbol_filenames.
13616 * symtab.c (sources_info): Update to call map_symbol_filenames.
13617 (search_symbols): Call expand_symtabs_matching.
13618 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13619 (default_make_symbol_completion_list_break_on): Update to call
13620 expand_symtabs_matching.
13621 (make_source_files_completion_list): Update to call
13622 map_symbol_filenames.
13623
13624 2014-01-14 Doug Evans <dje@google.com>
13625
13626 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13627 (expand_symtabs_symbol_matcher_ftype): New typedef.
13628 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13629 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13630 * symfile.c (expand_partial_symbol_names): Update to use
13631 expand_symtabs_symbol_matcher_ftype.
13632 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13633 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13634 Arg name_matcher renamed to symbol_matcher.
13635 * psymtab.c (recursively_search_psymtabs): Update to use
13636 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13637 sym_matcher.
13638 (expand_symtabs_matching_via_partial): Update to use
13639 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13640 Arg name_matcher renamed to symbol_matcher.
13641
13642 2014-01-14 Doug Evans <dje@google.com>
13643
13644 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13645 (map_partial_symbol_filenames): Ditto.
13646 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13647 (map_partial_symbol_filenames): Ditto.
13648 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13649 (map_partial_symbol_filenames): Ditto.
13650 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13651 (map_partial_symbol_filenames): Ditto.
13652 * symtab.c: Delete #include "psymtab.h".
13653
13654 2014-01-14 Pedro Alves <palves@redhat.com>
13655 Tom Tromey <tromey@redhat.com>
13656
13657 * infrun.c (use_displaced_stepping): Use find_record_target
13658 instead of RECORD_IS_USED.
13659 (adjust_pc_after_break): Use record_full_is_used instead of
13660 RECORD_IS_USED.
13661 * record-btrace.c (record_btrace_open): Call record_preopen
13662 instead of checking RECORD_IS_USED.
13663 * record-full.c (record_full_shortname)
13664 (record_full_core_shortname): New globals.
13665 (record_full_is_used): New function.
13666 (find_full_open): Call record_preopen instead of checking
13667 RECORD_IS_USED.
13668 (init_record_full_ops): Set the target's shortname to
13669 record_full_shortname.
13670 (init_record_full_core_ops): Set the target's shortname to
13671 record_full_core_shortname.
13672 * record-full.h (record_full_is_used): Declare.
13673 * record.c (find_record_target): Make extern.
13674 (record_preopen): New function.
13675 * record.h (RECORD_IS_USED): Delete macro.
13676 (find_record_target, record_preopen): Declare functions.
13677
13678 2014-01-14 Yao Qi <yao@codesourcery.com>
13679
13680 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13681 'len''s type to ULONGEST.
13682 (core_xfer_shared_libraries_aix): Likewise.
13683 * gdbarch.c, gdbarch.h: Regenerated.
13684 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13685 Change type of 'len' to ULONGEST.
13686 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13687 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13688
13689 2014-01-14 Yao Qi <yao@codesourcery.com>
13690
13691 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13692 type of 'len' to ULONGEST.
13693 (linux_xfer_osdata_processgroups): Likewise.
13694 (linux_xfer_osdata_threads): Likewise.
13695 (linux_xfer_osdata_fds): Likewise.
13696 (linux_xfer_osdata_isockets): Likewise.
13697 (linux_xfer_osdata_shm): Likewise.
13698 (linux_xfer_osdata_sem): Likewise.
13699 (linux_xfer_osdata_msg): Likewise.
13700 (linux_common_xfer_osdata): Likewise.
13701 (struct osdata_type) <getter>: Likewise.
13702 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13703 the declaration.
13704
13705 2014-01-14 Yao Qi <yao@codesourcery.com>
13706
13707 * target.h (target_xfer_partial_ftype): Update.
13708 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13709 ULONGEST.
13710 * aix-thread.c (aix_thread_xfer_partial): Change type of
13711 argument 'len' to ULONGEST.
13712 * auxv.c (procfs_xfer_auxv): Likewise.
13713 (ld_so_xfer_auxv): Likewise.
13714 (memory_xfer_auxv): Likewise.
13715 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13716 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13717 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13718 * corelow.c (core_xfer_partial): Likewise.
13719 * ctf.c (ctf_xfer_partial): Likewise.
13720 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13721 '%u'.
13722 (darwin_read_dyld_info): Likewise.
13723 (darwin_xfer_partial): Likewise.
13724 * exec.c (section_table_xfer_memory_partial): Likewise.
13725 (exec_xfer_partial): Likewise.
13726 * exec.h (section_table_xfer_memory_partial): Update
13727 declaration.
13728 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13729 instead of plongest.
13730 (gnu_xfer_partial): Likewise.
13731 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13732 (ia64_hpux_xfer_solib_got): Likewise.
13733 (ia64_hpux_xfer_partial): Likewise.
13734 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13735 * inf-ptrace.c (inf_ptrace_xfer_partial):
13736 * inf-ttrace.c (inf_ttrace_xfer_partial):
13737 * linux-nat.c (linux_xfer_siginfo): Likewise.
13738 (linux_nat_xfer_partial): Likewise.
13739 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13740 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13741 * monitor.c (monitor_xfer_memory): Likewise.
13742 (monitor_xfer_partial): Likewise.
13743 * procfs.c (procfs_xfer_partial): Likewise.
13744 * record-full.c (record_full_xfer_partial): Likewise.
13745 (record_full_core_xfer_partial): Likewise.
13746 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13747 instead of plongest.
13748 (gdbsim_xfer_partial): Likewise.
13749 * remote.c (remote_xfer_partial): Likewise.
13750 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13751 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13752 declaration.
13753 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13754 (rs6000_xfer_shared_libraries): Likewise.
13755 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13756 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13757 (sparc_xfer_partial): Likewise.
13758 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13759 (spu_xfer_partial): Likewise.
13760 * spu-multiarch.c (spu_xfer_partial): Likewise.
13761 * target.c (target_read_live_memory): Likewise.
13762 (memory_xfer_live_readonly_partial): Likewise.
13763 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13764 (target_xfer_partial, default_xfer_partial): Likewise.
13765 (current_xfer_partial): Likewise.
13766 * tracepoint.c (tfile_xfer_partial): Likewise.
13767 * windows-nat.c (windows_xfer_memory): Likewise. Call
13768 pulongest instead of plongest.
13769 (windows_xfer_partial): Likewise.
13770 (windows_xfer_shared_libraries): Likewise.
13771
13772 2014-01-14 Yao Qi <yao@codesourcery.com>
13773
13774 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13775 target_xfer_partial_ftype.
13776
13777 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13778
13779 PR python/15464
13780 PR python/16113
13781 * valops.c (value_struct_elt_bitpos): New function
13782 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13783 object to 'None' if the field name is an empty string ("").
13784 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13785 attribute to look for a field when 'name' is 'None'.
13786 (get_field_type): New function
13787
13788 2014-01-13 Doug Evans <dje@google.com>
13789
13790 PR symtab/16426
13791 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13792 (try_open_dwop_file): Ditto.
13793 * gdb_bfd.c: #include "vec.h".
13794 (bfdp): New typedef.
13795 (struct gdb_bfd_data): New member included_bfds.
13796 (gdb_bfd_unref): Unref all included bfds.
13797 (gdb_bfd_record_inclusion): New function.
13798 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13799
13800 2014-01-13 Tom Tromey <tromey@redhat.com>
13801
13802 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13803
13804 2014-01-13 Tom Tromey <tromey@redhat.com>
13805
13806 * defs.h (use_windows): Remove.
13807 * gdb.c (main): Update.
13808 * main.c (captured_main, gdb_main): Update.
13809 * main.h (struct captured_main_args) <use_windows>: Remove.
13810 * top.c (use_windows): Remove.
13811
13812 2014-01-13 Tom Tromey <tromey@redhat.com>
13813
13814 * defs.h (deprecated_flush_hook): Remove.
13815
13816 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13817
13818 PR threads/16216
13819 * linux-thread-db.c (try_thread_db_load): Add parameter
13820 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13821 (try_thread_db_load_from_pdir_1): Move it there from here.
13822 (try_thread_db_load_from_sdir): Update caller.
13823 (try_thread_db_load_from_dir): Move it there from here.
13824
13825 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13826
13827 * regformats/regdat.sh: Always rewrite the register file.
13828
13829 2014-01-13 Pedro Alves <palves@redhat.com>
13830
13831 * Makefile.in (CHECK_HEADERS): New variable.
13832 (check-headers:): New rule.
13833
13834 2014-01-13 Tom Tromey <tromey@redhat.com>
13835
13836 * cli/cli-setshow.c (do_set_command): Update.
13837 * defs.h (deprecated_set_hook): Remove.
13838 * top.c (deprecated_set_hook): Remove.
13839
13840 2014-01-13 Pedro Alves <palves@redhat.com>
13841
13842 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13843 the tracepoint if the PC is a pseudo-register.
13844
13845 2014-01-13 Tom Tromey <tromey@redhat.com>
13846
13847 * defs.h (XCALLOC): Remove.
13848 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13849 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13850 * dwarf2loc.c (allocate_piece_closure): Likewise.
13851 * elfread.c (elf_symfile_segments): Likewise.
13852 (elf_symfile_segments): Likewise.
13853 * gdbtypes.c (copy_type_recursive): Likewise.
13854 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13855 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13856 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13857 XCALLOC.
13858 * mt-tdep.c (mt_gdbarch_init): Likewise.
13859 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13860 XCALLOC.
13861 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13862 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13863 * registry.c (registry_alloc_data): Likewise.
13864 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13865 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13866 * serial.c (serial_fdopen_ops): Likewise.
13867 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13868 XCALLOC.
13869 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13870 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13871 not XCALLOC.
13872
13873 2014-01-13 Tom Tromey <tromey@redhat.com>
13874
13875 * defs.h (XMALLOC): Remove.
13876 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13877 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13878 * cli-out.c (struct ui_out *): Likewise.
13879 * cli/cli-dump.c (add_dump_command): Likewise.
13880 (add_dump_command): Likewise.
13881 * complaints.c (get_complaints): Likewise.
13882 (find_complaint): Likewise.
13883 * dwarf2-frame.c (execute_cfa_program): Likewise.
13884 * dwarf2read.c (abbrev_table_read_table): Likewise.
13885 * gdbarch.sh: Likewise.
13886 * gdbarch.c: Rebuild.
13887 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13888 * interps.c (interp_new): Likewise.
13889 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13890 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13891 * mi/mi-console.c (mi_console_file_new): Likewise.
13892 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13893 * mi/mi-out.c (mi_out_new): Likewise.
13894 * mi/mi-parse.c (mi_parse): Likewise.
13895 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13896 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13897 * observer.c (xalloc_observer_list_node): Likewise.
13898 * regcache.c (regcache_xmalloc_1): Likewise.
13899 * reggroups.c (reggroup_new): Likewise.
13900 (_initialize_reggroup): Likewise.
13901 * registry.c (register_data_with_cleanup): Likewise.
13902 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13903 * ser-base.c (serial_ttystate): Likewise.
13904 * ser-mingw.c (make_pipe_state): Likewise.
13905 * ser-pipe.c (pipe_open): Likewise.
13906 * serial.c (serial_open): Likewise.
13907 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13908 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13909 (tui_alloc_win_info): Likewise.
13910 (tui_add_content_elements): Likewise.
13911 * tui/tui-file.c (tui_file_new): Likewise.
13912 * tui/tui-out.c (tui_out_new): Likewise.
13913 * ui-file.c (mem_file_new): Likewise.
13914 * ui-out.c (push_level): Likewise.
13915 (make_cleanup_ui_out_end): Likewise.
13916 (append_header_to_list): Likewise.
13917 (ui_out_new): Likewise.
13918 * user-regs.c (user_reg_add_builtin): Likewise.
13919
13920 2014-01-13 Tom Tromey <tromey@redhat.com>
13921
13922 * defs.h (XZALLOC): Remove.
13923 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13924 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13925 (get_ada_tasks_inferior_data): Likewise.
13926 * auto-load.c (get_auto_load_pspace_data): Likewise.
13927 * auxv.c (get_auxv_inferior_data): Likewise.
13928 * bfd-target.c (target_bfd_reopen): Likewise.
13929 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13930 (deprecated_insert_raw_breakpoint): Likewise.
13931 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13932 * corelow.c (core_open): Likewise.
13933 * darwin-nat.c (darwin_check_new_threads): Likewise.
13934 (darwin_attach_pid): Likewise.
13935 * dummy-frame.c (dummy_frame_push): Likewise.
13936 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13937 * dwarf2loc.c (allocate_piece_closure): Likewise.
13938 * elfread.c (elf_symfile_segments): Likewise.
13939 * eval.c (ptrmath_type_p): Likewise.
13940 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13941 * gdbtypes.c (alloc_type_arch): Likewise.
13942 (alloc_type_instance): Likewise.
13943 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13944 * inf-child.c (inf_child_can_use_agent): Likewise.
13945 * inflow.c (get_inflow_inferior_data): Likewise.
13946 * infrun.c (save_infcall_suspend_state): Likewise.
13947 * jit.c (jit_reader_load): Likewise.
13948 (get_jit_objfile_data): Likewise.
13949 (get_jit_program_space_data): Likewise.
13950 (jit_object_open_impl): Likewise.
13951 (jit_symtab_open_impl): Likewise.
13952 (jit_block_open_impl): Likewise.
13953 (jit_frame_sniffer): Likewise.
13954 * linux-fork.c (add_fork): Likewise.
13955 * maint.c (make_command_stats_cleanup): Likewise.
13956 * objfiles.c (get_objfile_pspace_data): Likewise.
13957 * opencl-lang.c (struct lval_closure): Likewise.
13958 * osdata.c (osdata_start_osdata): Likewise.
13959 * progspace.c (new_address_space): Likewise.
13960 (add_program_space): Likewise.
13961 * remote-sim.c (get_sim_inferior_data): Likewise.
13962 * sh-tdep.c (sh_gdbarch_init): Likewise.
13963 * skip.c (Ignore): Likewise.
13964 (skip_delete_command): Likewise.
13965 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13966 (library_list_start_library): Likewise.
13967 (solib_aix_current_sos): Likewise.
13968 * solib-darwin.c (get_darwin_info): Likewise.
13969 (darwin_current_sos): Likewise.
13970 * solib-dsbt.c (get_dsbt_info): Likewise.
13971 * solib-ia64-hpux.c (new_so_list): Likewise.
13972 (ia64_hpux_get_solib_linkage_addr): Likewise.
13973 * solib-spu.c (append_ocl_sos): Likewise.
13974 (spu_current_sos): Likewise.
13975 * solib-svr4.c (get_svr4_info): Likewise.
13976 (svr4_keep_data_in_core): Likewise.
13977 (library_list_start_library): Likewise.
13978 (svr4_default_sos): Likewise.
13979 (svr4_read_so_list): Likewise.
13980 * solib-target.c (library_list_start_library): Likewise.
13981 (solib_target_current_sos): Likewise.
13982 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13983 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13984 * symfile.c (default_symfile_segments): Likewise.
13985 * target-descriptions.c (tdesc_data_init): Likewise.
13986 (tdesc_create_reg): Likewise.
13987 (struct tdesc_type *): Likewise.
13988 (tdesc_create_vector): Likewise.
13989 (tdesc_set_struct_size): Likewise.
13990 (struct tdesc_type *): Likewise.
13991 (tdesc_free_feature): Likewise.
13992 (tdesc_create_feature): Likewise.
13993 * windows-nat.c (windows_add_thread): Likewise.
13994 (windows_make_so): Likewise.
13995 * xml-support.c (gdb_xml_body_text): Likewise.
13996 (gdb_xml_create_parser_and_cleanup): Likewise.
13997 (xml_process_xincludes): Likewise.
13998 * xml-syscall.c (allocate_syscalls_info): Likewise.
13999 (syscall_create_syscall_desc): Likewise.
14000
14001 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14002
14003 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14004 function, with code from i386_stap_parse_special_token.
14005 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14006 (i386_stap_parse_special_token): Move code to the two functions
14007 above; simplify it.
14008
14009 2014-01-09 Pedro Alves <palves@redhat.com>
14010 Hui Zhu <hui@codesourcery.com>
14011
14012 PR gdb/16101
14013 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14014 bp_err_string. Don't mark the location shlib_disabled if the
14015 error thrown wasn't a generic or memory error. Catch errors
14016 thrown while inserting breakpoints in overlayed code. Output
14017 error message of software breakpoints.
14018 * remote.c (remote_insert_breakpoint): If this breakpoint has
14019 target-side commands but this stub doesn't support Z0 packets,
14020 throw NOT_SUPPORTED_ERROR error.
14021 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14022 * target.h (target_insert_breakpoint): Extend comment.
14023 (target_insert_hw_breakpoint): Add comment.
14024
14025 2014-01-08 Pedro Alves <palves@redhat.com>
14026
14027 * remote.c (remote_add_thread): Add threads silently if starting
14028 up.
14029 (remote_notice_new_inferior): If in all-stop, and starting up,
14030 don't call notice_new_inferior.
14031 (get_current_thread): New function, factored out from ...
14032 (add_current_inferior_and_thread): ... this. Adjust.
14033 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14034 found any thread, then select the remote's current thread as GDB's
14035 current thread too.
14036
14037 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14038
14039 * NEWS: Create a new section for the next release branch.
14040 Rename the section of the current branch, now that it has
14041 been cut.
14042
14043 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14044
14045 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14046 * version.in: Bump version to 7.7.50.DATE-cvs.
14047
14048 2014-01-08 Yao Qi <yao@codesourcery.com>
14049
14050 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14051 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14052 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14053
14054 2014-01-08 Yao Qi <yao@codesourcery.com>
14055
14056 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14057 return value of bfd_get_filename to symbol_file_add_from_bfd.
14058
14059 2014-01-08 Pierre Muller <muller@sourceware.org>
14060
14061 Fix PR16201.
14062 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14063 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14064 to prim_record_mininal_symbol_and_info.
14065 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14066 in call to prim_record_minimal_symbol_and_info.
14067 (read_pe_exported_syms): Set index field of section_data.
14068
14069 2014-01-07 Andrew Pinski <apinski@cavium.com>
14070
14071 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14072 * features/aarch64.c: Regenerate.
14073
14074 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14075
14076 * target.c (return_null): Define.
14077 (update_current_target): Use it instead of return_zero for
14078 functions that return a pointer.
14079
14080 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14081
14082 * source.c (add_path): Fix check for duplicated paths in the previously
14083 included paths.
14084
14085 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14086
14087 * ada-lang.c: Remove duplicated include statements.
14088 * alphabsd-nat.c: Ditto.
14089 * amd64-darwin-tdep.c: Ditto.
14090 * amd64fbsd-nat.c: Ditto.
14091 * auto-load.c: Ditto.
14092 * ax-gdb.c: Ditto.
14093 * breakpoint.c: Ditto.
14094 * dbxread.c: Ditto.
14095 * fork-child.c: Ditto.
14096 * gdb_usleep.c: Ditto.
14097 * i386-darwin-tdep.c: Ditto.
14098 * i386fbsd-nat.c: Ditto.
14099 * infcmd.c: Ditto.
14100 * inferior.c: Ditto.
14101 * jv-lang.c: Ditto.
14102 * linux-nat.c: Ditto.
14103 * linux-tdep.c: Ditto.
14104 * m68kbsd-nat.c: Ditto.
14105 * m68klinux-nat.c: Ditto.
14106 * microblaze-tdep.c: Ditto.
14107 * mips-linux-tdep.c: Ditto.
14108 * mn10300-tdep.c: Ditto.
14109 * nto-tdep.c: Ditto.
14110 * opencl-lang.c: Ditto.
14111 * osdata.c: Ditto.
14112 * printcmd.c: Ditto.
14113 * regcache.c: Ditto.
14114 * remote-m32r-sdi.c: Ditto.
14115 * remote.c: Ditto.
14116 * symfile.c: Ditto.
14117 * symtab.c: Ditto.
14118 * tilegx-linux-nat.c: Ditto.
14119 * tilegx-tdep.c: Ditto.
14120 * tracepoint.c: Ditto.
14121 * valops.c: Ditto.
14122 * vaxbsd-nat.c: Ditto.
14123 * windows-nat.c: Ditto.
14124 * xtensa-tdep.c: Ditto.
14125
14126 2014-01-07 Yao Qi <yao@codesourcery.com>
14127
14128 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14129
14130 2014-01-07 Yao Qi <yao@codesourcery.com>
14131 Joel Brobecker <brobecker@adacore.com>
14132
14133 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14134 (pdc_write_regs): Likewise.
14135 (fetch_regs_kernel_thread): Likewise.
14136 (store_regs_kernel_thread): Likewise.
14137
14138 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14139
14140 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14141 tagged type objects to their actual type.
14142
14143 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14144
14145 * ada-valprint.c (print_field_values): Add "language" parameter.
14146 Update calls to print_field_values and print_variant_part.
14147 Pass new parameter "language" in call to val_print instead
14148 of "current_language". Replace call to ada_val_print by call
14149 to val_print.
14150 (print_variant_part): Add "language" parameter.
14151 (ada_val_print_struct_union): Update call to print_field_values.
14152
14153 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14154
14155 * ada-valprint.c (ui_memcpy): Delete.
14156 (ada_print_floating): Update documentation. Add empty line
14157 between between function documentation and implementation.
14158 Delete variable "buffer". Use ui_file_xstrdup in place of
14159 ui_file_put. Minor adjustments following this change.
14160
14161 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14162
14163 * ada-valprint.c (ada_val_print_string): New function,
14164 extracted from ada_val_print_array.
14165 (ada_val_print_array): Replace extracted code by call
14166 to ada_val_print_string followed by a return. Move
14167 "else" branch to the function's top block.
14168
14169 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14170
14171 * ada-valprint.c (ada_val_print_array): Move implementation
14172 down. Rename parameter "offset" and "val" into "offset_aligned"
14173 and "original_value" respectively. Add parameter "offset".
14174
14175 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14176
14177 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14178 re-organizing the code. Change the "???" message printed
14179 when target type is a TYPE_CODE_UNDEF into
14180 "<ref to undefined type>".
14181
14182 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14183
14184 * ada-valprint.c (print_record): Delete, implementation inlined...
14185 (ada_val_print_struct_union): ... here. Remove call to
14186 ada_check_typedef in inlined implementation.
14187
14188 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14189
14190 * ada-valprint.c (ada_val_print_gnat_array): New function,
14191 extracted from ada_val_print_1;
14192 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14193 (ada_val_print_flt, ada_val_print_struct_union)
14194 (ada_val_print_ref): Likewise.
14195 (ada_val_print_1): Delete variables i and elttype.
14196 Replace extracted-out code by call to corresponding
14197 new functions.
14198
14199 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14200
14201 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14202
14203 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14204
14205 * ada-valprint.c (ada_val_print_1): Replace calls to
14206 ada_val_print_1 by calls to val_print.
14207
14208 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14209
14210 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14211 Update calls to self accordingly. Replace calls to c_val_print
14212 by calls to val_print.
14213
14214 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14215
14216 * ada-valprint.c (print_record): Delete declaration.
14217 (adjust_type_signedness, ada_val_print_1): Likewise.
14218 (ada_val_print): Move function implementation down.
14219 (print_variant_part, print_field_values, print_record):
14220 Move function implementation up.
14221
14222 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14223
14224 * python/py-type.c (typy_get_name): New function.
14225 (type_object_getset): Add entry for attribute "name".
14226 * NEWS: Add entry mentioning this new attribute.
14227
14228 2014-01-07 Yao Qi <yao@codesourcery.com>
14229
14230 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14231 statement.
14232
14233 2014-01-07 Yao Qi <yao@codesourcery.com>
14234
14235 * gnu-nat.c (info_port_rights): Add qualifier const to
14236 argument args.
14237
14238 2014-01-07 Yao Qi <yao@codesourcery.com>
14239
14240 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14241
14242 2014-01-07 Yao Qi <yao@codesourcery.com>
14243
14244 * gnu-nat.c (make_inf) Update declaration.
14245 (make_inf): Make it static.
14246 (inf_set_traced): Likewise.
14247 (inf_port_to_thread, inf_task_died_status): Likewise.
14248
14249 2014-01-07 Yao Qi <yao@codesourcery.com>
14250
14251 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14252
14253 2014-01-07 Yao Qi <yao@codesourcery.com>
14254
14255 * gnu-nat.c (_initialize_gnu_nat): Declare.
14256
14257 2014-01-07 Yao Qi <yao@codesourcery.com>
14258
14259 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14260 'enum bfd_endian'.
14261 (struct gdbarch_info) <byte_order>: Change type to
14262 'enum bfd_endian'.
14263 <byte_order_for_code>: Likewise.
14264 * gdbarch.c, gdbarch.h: Regenerated.
14265
14266 2014-01-06 Sasha Smundak <asmundak@google.com>
14267
14268 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14269
14270 2014-01-06 Tom Tromey <tromey@redhat.com>
14271
14272 * doublest.c (convert_doublest_to_floatformat): Use const, not
14273 CONST.
14274 * somread.c (som_symtab_read): Likewise.
14275
14276 2014-01-07 Hui Zhu <hui@codesourcery.com>
14277
14278 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14279 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14280 (gdb_bfd_fopen): Ditto.
14281 (gdb_bfd_openr): Ditto.
14282 (gdb_bfd_openw): Ditto.
14283 (gdb_bfd_openr_iovec): Ditto.
14284 (gdb_bfd_fdopenr): Ditto.
14285 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14286 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14287 with xstrdup.
14288 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14289 with xstrdup.
14290 * symfile-mem.c (symbol_file_add_from_memory): Removed
14291 gdb_bfd_stash_filename.
14292
14293 2014-01-03 Doug Evans <dje@google.com>
14294
14295 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14296 output.
14297
14298 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14299
14300 Update year range in copyright notice of all files.
14301
14302 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14303
14304 * top.c (print_gdb_version): Set copyright year to 2014.
14305
14306 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14307
14308 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14309
14310 For older changes see ChangeLog-2013.
14311 \f
14312 Local Variables:
14313 mode: change-log
14314 left-margin: 8
14315 fill-column: 74
14316 version-control: never
14317 coding: utf-8
14318 End:
This page took 0.304403 seconds and 5 git commands to generate.