ea055b1f33e3090bfb03ee51ecfc61a18b5b5396
[binutils-gdb.git] / gdb / ChangeLog
1 2014-10-24 Pedro Alves <palves@redhat.com>
2
3 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
4 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
5 * config/vax/vax.mh: Delete.
6 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
7 obsolete configurations section.
8 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
9 * vax-nat.c: Delete file.
10
11 2014-10-24 Pedro Alves <palves@redhat.com>
12
13 * NEWS (Removed targets): Add OS/arch column.
14
15 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
16
17 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
18 on the arg type of a constructor only if it is of reference type.
19
20 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
21
22 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
23 accessors and constants from nios2 opcodes update.
24 (nios2_get_next_pc): Likewise.
25
26 2014-10-19 Doug Evans <xdje42@gmail.com>
27
28 * gdbthread.h (set_running): Fix comment.
29 (set_executing, finish_thread_state): Fix comment.
30
31 2014-10-18 Doug Evans <xdje42@gmail.com>
32
33 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
34
35 2014-10-17 Doug Evans <dje@google.com>
36
37 * NEWS: Mention new event gdb.clear_objfiles.
38 * python/py-event.h (emit_clear_objfiles_event): Clear
39 * python/py-events.h (events_object): New member clear_objfiles.
40 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
41 event.
42 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
43 emit clear_objfiles event.
44 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
45 function.
46 (emit_clear_objfiles_event): New function.
47 (clear_objfiles): New event.
48 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
49 Declare.
50 * python/python.c (_initialize_python): Call
51 gdbpy_initialize_clear_objfiles_event.
52
53 2014-10-17 Doug Evans <dje@google.com>
54
55 * NEWS: Mention new gdb.Objfile.progspace attribute.
56 * python/py-objfile.c (objfpy_get_progspace): New function.
57 (objfile_getset): New entry for "progspace".
58
59 2014-10-17 Pedro Alves <palves@redhat.com>
60
61 PR gdb/17471
62 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
63 returns a copy of the input.
64 (run_command_1, continue_command, step_1, jump_command)
65 (signal_command, until_command, advance_command, finish_command)
66 (attach_command): Adjust and install a cleanup to free the
67 stripped args.
68
69 2014-10-17 Pedro Alves <palves@redhat.com>
70
71 PR gdb/17300
72 * infcmd.c (continue_1): If continuing all threads in the
73 foreground, make sure the inferior's terminal settings are put in
74 effect.
75
76 2014-10-17 Pedro Alves <palves@redhat.com>
77
78 PR gdb/17472
79 * annotate.c (annotate_breakpoints_invalid): Use
80 target_terminal_our_for_output instead of target_terminal_ours.
81 Give back the terminal to the target.
82 (annotate_frames_invalid): Likewise.
83
84 2014-10-17 Pedro Alves <palves@redhat.com>
85
86 * target.c (enum terminal_state): New enum.
87 (terminal_state): New global.
88 (target_terminal_init): New function.
89 (target_terminal_inferior): Skip if inferior already owns the
90 terminal.
91 (target_terminal_ours, target_terminal_ours_for_output): New
92 functions.
93 * target.h (target_terminal_init): Convert to function prototype.
94 (target_terminal_ours_for_output): Convert to function prototype
95 and tweak comment.
96 (target_terminal_ours): Convert to function prototype and tweak
97 comment.
98 * windows-nat.c (do_initial_windows_stuff): Call
99 target_terminal_init instead of child_terminal_init_with_pgrp.
100
101 2014-10-17 Pedro Alves <palves@redhat.com>
102
103 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
104 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
105 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
106 solib-osf.c.
107 * NEWS: Mention that support for alpha*-*-osf* has been removed.
108 * ada-lang.h [__alpha__ && __osf__]
109 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
110 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
111 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
112 GDB_OSABI_OSF1.
113 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
114 files.
115 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
116 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
117 * configure: Regenerate.
118 * configure.ac: Remove references to osf.
119 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
120 section. Remove all other references to osf.
121 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
122 Remove all other references to osf.
123 * dec-thread.c: Delete file.
124 * defs.h (GDB_OSABI_OSF1): Delete.
125 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
126 defined.
127 * osabi.c (gdb_osabi_names): Delete "OSF/1".
128 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
129 Delete code.
130 (unconditionally_kill_inferior)
131 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
132 * solib-osf.c: Delete file.
133
134 2014-10-17 Pedro Alves <palves@redhat.com>
135
136 * remote.c (clear_threads_listing_context): Move higher up, out of
137 the HAVE_LIBEXPAT guard.
138
139 2014-10-16 Tristan Gingold <gingold@adacore.com>
140
141 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
142 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
143 on amd64.
144
145 2014-10-15 Pedro Alves <palves@redhat.com>
146
147 * dec-thread.c (dec_thread_count_gdb_threads)
148 (dec_thread_add_gdb_thread): Delete.
149 (dec_thread_update_thread_list): Delete.
150 (dec_thread_find_new_threads): Rename to ...
151 (dec_thread_update_thread_list): ... this. Delete GDB-size
152 threads that are no longer found in dec_thread_list.
153 (resync_thread_list): Delete.
154 (dec_thread_wait): Call dec_thread_update_thread_list instead of
155 resync_thread_list.
156
157 2014-10-15 Pedro Alves <palves@redhat.com>
158
159 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
160 * remote.c (remote_update_thread_list): Skip calling prune_threads
161 if any thread listing method is supported, and instead walk over
162 the set of remote threads listed, deleting those that are not
163 found in GDB's thread list.
164
165 2014-10-15 Pedro Alves <palves@redhat.com>
166
167 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
168 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
169 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
170 (bsd_uthread_target): Adjust.
171 * corelow.c (core_open): Adjust.
172 * dec-thread.c (dec_thread_find_new_threads): Update comment.
173 (dec_thread_update_thread_list): New function.
174 (init_dec_thread_ops): Adjust.
175 * gdbthread.h (prune_threads): New declaration.
176 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
177 (thread_db_update_thread_list): ... this. Call prune_threads.
178 (init_thread_db_ops): Adjust.
179 * nto-procfs.c (procfs_find_new_threads): Rename to ...
180 (procfs_update_thread_list): ... this. Call prune_threads.
181 (procfs_attach, procfs_create_inferior, init_procfs_targets):
182 Adjust.
183 * obsd-nat.c (obsd_find_new_threads): Rename to ...
184 (obsd_update_thread_list): ... this. Call prune_threads.
185 (obsd_add_target): Adjust.
186 * procfs.c (procfs_target): Adjust.
187 (procfs_notice_thread): Update comment.
188 (procfs_find_new_threads): Rename to ...
189 (procfs_update_thread_list): ... this. Call prune_threads.
190 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
191 comment.
192 (ravenscar_wait): Adjust.
193 (ravenscar_find_new_threads): Rename to ...
194 (ravenscar_update_thread_list): ... this. Call prune_threads.
195 (init_ravenscar_thread_ops): Adjust.
196 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
197 (record_btrace_update_thread_list): ... this. Adjust comment.
198 (init_record_btrace_ops): Adjust.
199 * remote.c (remote_threads_info): Rename to ...
200 (remote_update_thread_list): ... this. Call prune_threads.
201 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
202 Adjust.
203 * sol-thread.c (check_for_thread_db): Adjust.
204 (sol_find_new_threads_callback): Rename to ...
205 (sol_update_thread_list_callback): ... this.
206 (sol_find_new_threads): Rename to ...
207 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
208 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
209 * target-delegates.c: Regenerate.
210 * target.c (target_find_new_threads): Rename to ...
211 (target_update_thread_list): ... this.
212 * target.h (struct target_ops): Rename to_find_new_threads field
213 to to_update_thread_list.
214 (target_find_new_threads): Rename to ...
215 (target_update_thread_list): ... this.
216 * thread.c (prune_threads): Make extern.
217 (update_thread_list): Adjust.
218
219 2014-10-15 Pedro Alves <palves@redhat.com>
220
221 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
222 Add describing comment. Return -1 if the qL packet is not
223 supported.
224 (struct thread_item, thread_item_t): Move higher up in
225 the file. Add comments.
226 (struct threads_parsing_context): Move higher up in
227 the file, add comments, and remote to ...
228 (struct threads_listing_context): ... this.
229 (remote_newthread_step): Don't add the thread to GDB's thread
230 database here. Instead push it to the thread_listing_context
231 list.
232 (remote_find_new_threads): Rename to ...
233 (remote_get_threads_with_ql): ... this. Add target_ops and
234 targets_listing_context parameters. Pass down context.
235 (start_thread): Adjust.
236 (clear_threads_parsing_context): Rename to ...
237 (clear_threads_listing_context): ... this.
238 (remote_get_threads_with_qxfer): New, with parts salvaged from old
239 remote_threads_info.
240 (remote_get_threads_with_qthreadinfo): Ditto.
241 (remote_threads_info): Reimplement.
242
243 2014-10-15 Pedro Alves <palves@redhat.com>
244
245 * infrun.c (resume): Don't force displaced-stepping for all
246 single-steps on software single-stepping archs.
247
248 2014-10-15 Pedro Alves <palves@redhat.com>
249
250 * breakpoint.c (single_step_breakpoints): Delete global.
251 (insert_single_step_breakpoint): Adjust to store the breakpoint
252 pointer in the current thread.
253 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
254 (cancel_single_step_breakpoints): Delete functions.
255 (breakpoint_has_location_inserted_here): Make extern.
256 (single_step_breakpoint_inserted_here_p): Adjust to walk the
257 breakpoint list.
258 * breakpoint.h (breakpoint_has_location_inserted_here): New
259 declaration.
260 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
261 (cancel_single_step_breakpoints): Remove declarations.
262 * gdbthread.h (struct thread_control_state)
263 <single_step_breakpoints>: New field.
264 (delete_single_step_breakpoints)
265 (thread_has_single_step_breakpoints_set)
266 (thread_has_single_step_breakpoint_here): New declarations.
267 * infrun.c (follow_exec): Also clear the single-step breakpoints.
268 (singlestep_breakpoints_inserted_p, singlestep_ptid)
269 (singlestep_pc): Delete globals.
270 (infrun_thread_ptid_changed): Remove references to removed
271 globals.
272 (resume_cleanups): Delete the current thread's single-step
273 breakpoints.
274 (maybe_software_singlestep): Remove references to removed globals.
275 (resume): Adjust to use thread_has_single_step_breakpoints_set and
276 delete_single_step_breakpoints.
277 (init_wait_for_inferior): Remove references to removed globals.
278 (delete_thread_infrun_breakpoints): Delete the thread's
279 single-step breakpoints too.
280 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
281 single-step breakpoints here.
282 (delete_stopped_threads_single_step_breakpoints): New function.
283 (adjust_pc_after_break): Adjust to use
284 thread_has_single_step_breakpoints_set.
285 (handle_inferior_event): Remove references to removed globals.
286 Use delete_stopped_threads_single_step_breakpoints.
287 (handle_signal_stop): Adjust to per-thread single-step
288 breakpoints. Swap test order to do cheaper tests first.
289 (switch_back_to_stepped_thread): Extend debug output. Remove
290 references to removed globals.
291 * record-full.c (record_full_wait_1): Adjust to per-thread
292 single-step breakpoints.
293 * thread.c (delete_single_step_breakpoints)
294 (thread_has_single_step_breakpoints_set)
295 (thread_has_single_step_breakpoint_here): New functions.
296 (clear_thread_inferior_resources): Also delete the thread's
297 single-step breakpoints.
298
299 2014-10-15 Pedro Alves <palves@redhat.com>
300
301 * thread.c (delete_thread_breakpoint): New function.
302 (delete_step_resume_breakpoint)
303 (delete_exception_resume_breakpoint): Use it.
304 (delete_at_next_stop): New function.
305 (clear_thread_inferior_resources): Use delete_at_next_stop.
306
307 2014-10-15 Pedro Alves <palves@redhat.com>
308
309 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
310 (breakpoint_inserted_here_p): ... here. Remove special case for
311 software single-step breakpoints.
312 (find_non_raw_software_breakpoint_inserted_here): Inline ...
313 (software_breakpoint_inserted_here_p): ... here. Remove special
314 case for software single-step breakpoints.
315 (bp_target_info_copy_insertion_state)
316 (deprecated_insert_raw_breakpoint)
317 (deprecated_remove_raw_breakpoint): Delete functions.
318 * breakpoint.h (deprecated_insert_raw_breakpoint)
319 (deprecated_remove_raw_breakpoint): Remove declarations.
320
321 2014-10-15 Pedro Alves <palves@redhat.com>
322
323 PR breakpoints/9649
324 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
325 Delete array globals.
326 (single_step_breakpoints): New global.
327 (breakpoint_xfer_memory): Remove special handling for single-step
328 breakpoints.
329 (update_breakpoints_after_exec): Delete bp_single_step
330 breakpoints.
331 (detach_breakpoints): Remove special handling for single-step
332 breakpoints.
333 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
334 (bpstat_stop_status): Add comment.
335 (bpstat_what, bptype_string, print_one_breakpoint_location)
336 (adjust_breakpoint_address, init_bp_location): Handle
337 bp_single_step.
338 (new_single_step_breakpoint): New function.
339 (set_momentary_breakpoint, bkpt_remove_location): Remove special
340 handling for single-step breakpoints.
341 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
342 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
343 Rewrite.
344 (detach_single_step_breakpoints, find_single_step_breakpoint):
345 Delete functions.
346 (breakpoint_has_location_inserted_here): New function.
347 (single_step_breakpoint_inserted_here_p): Rewrite.
348 * breakpoint.h: Remove FIXME.
349 (enum bptype) <bp_single_step>: New enum value.
350 (insert_single_step_breakpoint): Update comment.
351 * infrun.c (resume_cleanups)
352 (delete_step_thread_step_resume_breakpoint): Remove single-step
353 breakpoints.
354 (fetch_inferior_event): Install a cleanup that removes infrun
355 breakpoints.
356 (switch_back_to_stepped_thread) <expect thread advanced also>:
357 Clear step-over info.
358
359 2014-10-15 Pedro Alves <palves@redhat.com>
360
361 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
362 (delete_thread_infrun_breakpoints): New function, with parts
363 salvaged from delete_step_resume_breakpoint_callback.
364 (delete_step_thread_step_resume_breakpoint): Delete.
365 (for_each_just_stopped_thread_callback_func): New typedef.
366 (for_each_just_stopped_thread): New function.
367 (delete_just_stopped_threads_infrun_breakpoints): New function.
368 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
369 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
370 ... this. Adjust.
371 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
372
373 2014-10-15 Pedro Alves <palves@redhat.com>
374
375 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
376 trying to step past a non-steppable watchpoint.
377 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
378 field.
379 * infrun.c (struct step_over_info): Add new field
380 'nonsteppable_watchpoint_p' and adjust comments.
381 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
382 Adjust.
383 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
384 (stepping_past_nonsteppable_watchpoint): New function.
385 (step_over_info_valid_p): Also return true if stepping past a
386 nonsteppable watchpoint.
387 (proceed): Adjust call to set_step_over_info. Remove reference to
388 init_infwait_state.
389 (init_wait_for_inferior): Remove reference to init_infwait_state.
390 (waiton_ptid): Delete global.
391 (struct execution_control_state)
392 <stepped_after_stopped_by_watchpoint>: Delete field.
393 (wait_for_inferior, fetch_inferior_event): Always pass
394 minus_one_ptid to target_wait.
395 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
396 field.
397 (init_infwait_state): Delete function.
398 (handle_inferior_event): Remove infwait_state handling.
399 (handle_signal_stop) <watchpoints handling>: Adjust after
400 stepped_after_stopped_by_watchpoint removal. Don't remove
401 breakpoints here nor set infwait_state. Set the thread's
402 stepping_over_watchpoint flag, and call keep_going instead.
403 (keep_going): Handle stepping_over_watchpoint. Adjust
404 set_step_over_info calls.
405 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
406 function.
407
408 2014-10-15 Pedro Alves <palves@redhat.com>
409
410 * infrun.c (step_over_info_valid_p): New function.
411 (resume): Use step_over_info_valid_p instead of checking the
412 threads's trap_expected flag.
413
414 2014-10-15 Doug Evans <dje@google.com>
415 Walfred Tedeschi <walfred.tedeschi@intel.com>
416
417 PR python/17364
418 * python/lib/gdb/__init__.py (packages): Add "printer".
419 * python/lib/gdb/command/bound_registers.py: Moved to ...
420 * python/lib/gdb/printer/bound_registers.py: ... here.
421 Add printer to global set of builtin printers. Rename printer from
422 "bound" to "mpx_bound128".
423 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
424 registered as global "builtin" printer.
425 (add_builtin_pretty_printer): New function.
426 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
427 gdb/printer/__init__.py.
428
429 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
430
431 * Makefile.in (SFILES): Remove d-support.c.
432 (COMMON_OBS): Remove d-support.o.
433 * d-lang.h (d_parse_symbol): Remove declaration.
434 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
435 * d-support.c: Remove file.
436
437 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
438
439 * gdb/infrun.c (process_event_stop_test): Apply
440 gdbarch_addr_bits_remove to longjmp resume address.
441
442 2014-10-15 Pedro Alves <palves@redhat.com>
443
444 * regformats/microblaze.dat: Delete file.
445
446 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
447
448 * features/Makefile (microblaze-expedite): Replace pc with rpc.
449 * regformats/microblaze-with-stack-protect.dat: Regenerate.
450
451 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
452
453 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
454 as non-trivial.
455
456 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
457
458 PR c++/13403
459 PR c++/15154
460 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
461 with qualified args.
462
463 2014-10-14 Joel Brobecker <brobecker@adacore.com>
464
465 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
466 of the case where the second operand is a pointer.
467 <BINOP_SUB>: Likewise.
468
469 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
470
471 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
472 only if it is not NULL.
473 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
474 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
475 (struct probe_ops) <clear_semaphore>: Likewise.
476 * tracepoint.c (start_tracing): Call set_semaphore only if it is
477 not NULL.
478 (stop_tracing): Likewise, for clear_semaphore.
479
480 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
481
482 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
483 using language_c, instead of current_language.
484
485 2014-10-13 Doug Evans <dje@google.com>
486
487 * python/py-objfile.c (objfpy_initialize): New function.
488 (objfpy_new, objfile_to_objfile_object): Call it.
489 * python/py-progspace.c (pspy_initialize): New function.
490 (pspy_new, pspace_to_pspace_object): Call it.
491
492 2014-10-13 Miroslav Franc <mfranc@redhat.com>
493 Jan Kratochvil <jan.kratochvil@redhat.com>
494
495 Fix "save breakpoints" for "catch" command.
496 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
497 newline.
498
499 2014-10-12 Miroslav Franc <mfranc@redhat.com>
500
501 Fix "save breakpoints" for "disable $bpnum" command.
502 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
503
504 2014-10-10 Pedro Alves <palves@redhat.com>
505
506 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
507 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
508 (HFILES_NO_SRCDIR): Remove solib-irix.h.
509 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
510 and been removed.
511 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
512 * configure.ac: Remove references to IRIX.
513 * configure.host: Add *-*-irix* to the obsolete hosts section.
514 Remove all other references to irix.
515 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
516 Delete files.
517
518 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
519
520 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
521 isn't valid, release the tdesc arch data and return NULL.
522
523 2014-10-10 Pedro Alves <palves@redhat.com>
524
525 * linux-tdep.c: Include observer.h.
526 (linux_inferior_data): New global.
527 (struct linux_info): New structure.
528 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
529 (get_linux_inferior_data): New functions.
530 (linux_vsyscall_range): Rename to ...
531 (linux_vsyscall_range_raw): ... this.
532 (linux_vsyscall_range): New function; handles caching.
533 (_initialize_linux_tdep): Register linux_inferior_data. Install
534 inferior_exit and inferior_appeared observers.
535
536 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
537 Pedro Alves <palves@redhat.com>
538
539 PR symtab/14466
540 * solib-svr4.c (svr4_read_so_list): Rename to ...
541 (svr4_current_sos_1): ... this and change the function comment.
542 (svr4_current_sos): New function.
543
544 2014-10-10 Pedro Alves <palves@redhat.com>
545
546 * arch-utils.c (default_vsyscall_range): New function.
547 * arch-utils.h (default_vsyscall_range): New declaration.
548 * gdbarch.sh (vsyscall_range): New hook.
549 * gdbarch.h, gdbarch.c: Regenerate.
550 * linux-tdep.c (linux_vsyscall_range): New function.
551 (linux_init_abi): Install linux_vsyscall_range as
552 vsyscall_range gdbarch hook.
553 * memrange.c (address_in_mem_range): New function.
554 * memrange.h (address_in_mem_range): New declaration.
555 * symfile-mem.c (find_vdso_size): Delete function.
556 (add_vsyscall_page): Use gdbarch_vsyscall_range.
557
558 2014-10-10 Pedro Alves <palves@redhat.com>
559
560 * infrun.c (normal_stop): Fix typo in comment.
561
562 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
563
564 PR tdep/9390
565 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
566 typo when using logical AND to determine instruction type.
567
568 2014-10-09 Yao Qi <yao@codesourcery.com>
569
570 * infrun.c (handle_signal_stop): Remove local variable
571 'printed'.
572
573 2014-10-08 Stan Shebs <stan@codesourcery.com>
574
575 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
576
577 2014-10-08 Gary Benson <gbenson@redhat.com>
578
579 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
580
581 2014-10-08 Gary Benson <gbenson@redhat.com>
582
583 * common/common-defs.h: Include common-exceptions.h.
584 * exceptions.h: Do not include common-exceptions.h.
585
586 2014-10-08 Gary Benson <gbenson@redhat.com>
587
588 * common/common-defs.h: Include cleanups.h.
589 * common/common-exceptions.c: Do not include cleanups.h.
590 * utils.h: Likewise.
591
592 2014-10-08 Gary Benson <gbenson@redhat.com>
593
594 * ada-lang.c: Do not include exceptions.h.
595 * ada-valprint.c: Likewise.
596 * amd64-tdep.c: Likewise.
597 * auto-load.c: Likewise.
598 * block.c: Likewise.
599 * break-catch-throw.c: Likewise.
600 * breakpoint.c: Likewise.
601 * btrace.c: Likewise.
602 * c-lang.c: Likewise.
603 * cli/cli-cmds.c: Likewise.
604 * cli/cli-interp.c: Likewise.
605 * cli/cli-script.c: Likewise.
606 * completer.c: Likewise.
607 * corefile.c: Likewise.
608 * corelow.c: Likewise.
609 * cp-abi.c: Likewise.
610 * cp-support.c: Likewise.
611 * cp-valprint.c: Likewise.
612 * darwin-nat.c: Likewise.
613 * dwarf2-frame-tailcall.c: Likewise.
614 * dwarf2-frame.c: Likewise.
615 * dwarf2loc.c: Likewise.
616 * dwarf2read.c: Likewise.
617 * eval.c: Likewise.
618 * event-loop.c: Likewise.
619 * event-top.c: Likewise.
620 * f-valprint.c: Likewise.
621 * frame-unwind.c: Likewise.
622 * frame.c: Likewise.
623 * gdbtypes.c: Likewise.
624 * gnu-v2-abi.c: Likewise.
625 * gnu-v3-abi.c: Likewise.
626 * guile/scm-auto-load.c: Likewise.
627 * guile/scm-breakpoint.c: Likewise.
628 * guile/scm-cmd.c: Likewise.
629 * guile/scm-frame.c: Likewise.
630 * guile/scm-lazy-string.c: Likewise.
631 * guile/scm-param.c: Likewise.
632 * guile/scm-symbol.c: Likewise.
633 * guile/scm-type.c: Likewise.
634 * hppa-hpux-tdep.c: Likewise.
635 * i386-tdep.c: Likewise.
636 * inf-loop.c: Likewise.
637 * infcall.c: Likewise.
638 * infcmd.c: Likewise.
639 * infrun.c: Likewise.
640 * interps.c: Likewise.
641 * interps.h: Likewise.
642 * jit.c: Likewise.
643 * linespec.c: Likewise.
644 * linux-nat.c: Likewise.
645 * linux-thread-db.c: Likewise.
646 * m32r-rom.c: Likewise.
647 * main.c: Likewise.
648 * memory-map.c: Likewise.
649 * mi/mi-cmd-break.c: Likewise.
650 * mi/mi-cmd-stack.c: Likewise.
651 * mi/mi-interp.c: Likewise.
652 * mi/mi-main.c: Likewise.
653 * monitor.c: Likewise.
654 * nto-procfs.c: Likewise.
655 * objc-lang.c: Likewise.
656 * p-valprint.c: Likewise.
657 * parse.c: Likewise.
658 * ppc-linux-tdep.c: Likewise.
659 * printcmd.c: Likewise.
660 * probe.c: Likewise.
661 * python/py-auto-load.c: Likewise.
662 * python/py-breakpoint.c: Likewise.
663 * python/py-cmd.c: Likewise.
664 * python/py-finishbreakpoint.c: Likewise.
665 * python/py-frame.c: Likewise.
666 * python/py-framefilter.c: Likewise.
667 * python/py-function.c: Likewise.
668 * python/py-gdb-readline.c: Likewise.
669 * python/py-inferior.c: Likewise.
670 * python/py-infthread.c: Likewise.
671 * python/py-lazy-string.c: Likewise.
672 * python/py-linetable.c: Likewise.
673 * python/py-param.c: Likewise.
674 * python/py-prettyprint.c: Likewise.
675 * python/py-symbol.c: Likewise.
676 * python/py-type.c: Likewise.
677 * python/py-value.c: Likewise.
678 * python/python-internal.h: Likewise.
679 * python/python.c: Likewise.
680 * record-btrace.c: Likewise.
681 * record-full.c: Likewise.
682 * regcache.c: Likewise.
683 * remote-fileio.c: Likewise.
684 * remote-mips.c: Likewise.
685 * remote.c: Likewise.
686 * rs6000-aix-tdep.c: Likewise.
687 * rs6000-nat.c: Likewise.
688 * skip.c: Likewise.
689 * solib-darwin.c: Likewise.
690 * solib-dsbt.c: Likewise.
691 * solib-frv.c: Likewise.
692 * solib-ia64-hpux.c: Likewise.
693 * solib-spu.c: Likewise.
694 * solib-svr4.c: Likewise.
695 * solib.c: Likewise.
696 * spu-tdep.c: Likewise.
697 * stack.c: Likewise.
698 * stap-probe.c: Likewise.
699 * symfile-mem.c: Likewise.
700 * symmisc.c: Likewise.
701 * target.c: Likewise.
702 * thread.c: Likewise.
703 * top.c: Likewise.
704 * tracepoint.c: Likewise.
705 * tui/tui-interp.c: Likewise.
706 * typeprint.c: Likewise.
707 * utils.c: Likewise.
708 * valarith.c: Likewise.
709 * valops.c: Likewise.
710 * valprint.c: Likewise.
711 * value.c: Likewise.
712 * varobj.c: Likewise.
713 * windows-nat.c: Likewise.
714 * xml-support.c: Likewise.
715
716 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
717
718 * mips-tdep.c (add_offset_16): Rewrite to implement what the
719 name implies.
720 (extended_mips16_next_pc): Update accordingly.
721
722 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
723
724 * mips-tdep.c (mips16_instruction_is_compact_branch): New
725 function.
726 (micromips_instruction_is_compact_branch): Likewise.
727 (mips16_scan_prologue): Terminate scanning upon seeing a branch
728 or a compact jump, reaching a jump delay slot, or seeing a
729 second non-prologue instruction.
730 (micromips_scan_prologue): Also terminate scanning upon seeing a
731 compact branch or jump, or reaching a branch or jump delay slot.
732 (mips32_scan_prologue): Terminate scanning upon reaching a branch
733 or jump delay slot, or seeing a second non-prologue instruction.
734 (mips32_instruction_has_delay_slot): Retain instruction
735 examination code only, update arguments accordingly and move
736 instruction fetch pieces to...
737 (mips32_insn_at_pc_has_delay_slot): ... this new function.
738 (micromips_instruction_has_delay_slot): Likewise and to...
739 (micromips_insn_at_pc_has_delay_slot): ... this new function.
740 (mips16_instruction_has_delay_slot): Likewise and to...
741 (mips16_insn_at_pc_has_delay_slot): ... this new function.
742 (mips_single_step_through_delay): Update accordingly.
743 (mips_adjust_breakpoint_address): Likewise.
744
745 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
746
747 * mips-tdep.c (micromips_instruction_has_delay_slot): When
748 !mustbe32 also return 1 for 32-bit instructions.
749 (mips16_instruction_has_delay_slot): Likewise. Add an
750 explanatory comment.
751
752 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
753
754 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
755 symbols special.
756
757 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
758
759 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
760 update comments.
761 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
762 for the breakpoint's address. Don't preinitialize `placed_size'.
763 (insert_bp_location): Set `reqstd_address' rather than
764 `placed_address'.
765 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
766 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
767 address.
768 (bkpt_remove_location): Likewise.
769 (deprecated_insert_raw_breakpoint): Likewise.
770 (deprecated_remove_raw_breakpoint): Likewise.
771 (find_single_step_breakpoint): Likewise.
772 * mem-break.c (default_memory_insert_breakpoint): Use
773 `reqstd_address' for the breakpoint's address. Don't set
774 `placed_address' or `placed_size' if breakpoint contents couldn't
775 have been determined.
776 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
777 the breakpoint's address.
778 (remote_insert_hw_breakpoint): Likewise. Don't set
779 `placed_address' or `placed_size' if breakpoint couldn't have been
780 set.
781 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
782 `reqstd_address' for the breakpoint's address.
783 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
784 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
785 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
786 * microblaze-linux-tdep.c
787 (microblaze_linux_memory_remove_breakpoint): Likewise.
788 * monitor.c (monitor_insert_breakpoint): Likewise.
789 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
790 (procfs_insert_hw_breakpoint): Likewise.
791 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
792 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
793 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
794 * remote-mips.c (mips_insert_breakpoint): Likewise.
795 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
796
797 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
798
799 * valops.c (value_assign): Check for bit field assignments
800 before calling architecture-specific register value
801 conversion functions.
802
803 2014-10-03 Pierre Muller <muller@sourceware.org>
804
805 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
806
807 2014-10-02 Pedro Alves <palves@redhat.com>
808
809 * breakpoint.c (breakpoints_should_be_inserted_now): Use
810 threads_are_executing.
811 * breakpoint.h (breakpoints_should_be_inserted_now): Add
812 describing comment.
813 * gdbthread.h (threads_are_executing): Declare.
814 (handle_signal_stop) <random signals>: Don't print about the
815 signal here if stopping.
816 (end_stepping_range): Don't notify observers here.
817 (normal_stop): Update the thread list. If stopped by a random
818 signal or a stepping range ended, notify observers.
819 * thread.c (threads_executing): New global.
820 (init_thread_list): Clear 'threads_executing'.
821 (set_executing): Set or clear 'threads_executing'.
822 (threads_are_executing): New function.
823 (update_threads_executing): New function.
824 (update_thread_list): Use it.
825
826 2014-10-02 Pedro Alves <palves@redhat.com>
827
828 PR breakpoints/17431
829 * breakpoint.c (update_breakpoints_after_exec): Don't create
830 overlay, longjmp, std terminate nor exception breakpoints here.
831
832 2014-10-02 Pedro Alves <palves@redhat.com>
833
834 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
835 Adjust comments.
836 * inferior.c (find_inferior_for_program_space): Give preference to
837 the current inferior.
838 * inferior.h (find_inferior_for_program_space): Update comment.
839 * progspace.c (switch_to_program_space_and_thread): Prefer the
840 current inferior if it's bound to the program space requested. If
841 the inferior found doesn't have a PID yet, don't bother looking up
842 a thread.
843 * progspace.h (switch_to_program_space_and_thread): Adjust
844 comment.
845 * thread.c (any_thread_of_process, any_live_thread_of_process):
846 Give preference to the current thread.
847
848 2014-10-01 Pedro Alves <palves@redhat.com>
849
850 * breakpoint.c (insert_bp_location): Error out if inserting a
851 software breakpoint at a read-only address.
852 * target.c (memory_xfer_check_region): New function, factored out
853 from ...
854 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
855 ULONGEST.
856 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
857 against the memory region attributes.
858
859 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
860
861 * NEWS: Announce new exit-code field in -list-thread-groups
862 output.
863 * inferior.c (exit_inferior_1): Don't clear exit code.
864 (inferior_appeared): Clear exit code.
865 * mi/mi-main.c (print_one_inferior): Add printing of the exit
866 code.
867
868 2014-10-01 Pedro Alves <palves@redhat.com>
869
870 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
871 GENERATED" along with emacs/vi read-only markers.
872 * regformats/aarch64.dat: Regenerate.
873 * regformats/arm-with-iwmmxt.dat: Regenerate.
874 * regformats/arm-with-neon.dat: Regenerate.
875 * regformats/arm-with-vfpv2.dat: Regenerate.
876 * regformats/arm-with-vfpv3.dat: Regenerate.
877 * regformats/i386/amd64-avx-linux.dat: Regenerate.
878 * regformats/i386/amd64-avx.dat: Regenerate.
879 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
880 * regformats/i386/amd64-avx512.dat: Regenerate.
881 * regformats/i386/amd64-linux.dat: Regenerate.
882 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
883 * regformats/i386/amd64-mpx.dat: Regenerate.
884 * regformats/i386/amd64.dat: Regenerate.
885 * regformats/i386/i386-avx-linux.dat: Regenerate.
886 * regformats/i386/i386-avx.dat: Regenerate.
887 * regformats/i386/i386-avx512-linux.dat: Regenerate.
888 * regformats/i386/i386-avx512.dat: Regenerate.
889 * regformats/i386/i386-linux.dat: Regenerate.
890 * regformats/i386/i386-mmx-linux.dat: Regenerate.
891 * regformats/i386/i386-mmx.dat: Regenerate.
892 * regformats/i386/i386-mpx-linux.dat: Regenerate.
893 * regformats/i386/i386-mpx.dat: Regenerate.
894 * regformats/i386/i386.dat: Regenerate.
895 * regformats/i386/x32-avx-linux.dat: Regenerate.
896 * regformats/i386/x32-avx.dat: Regenerate.
897 * regformats/i386/x32-avx512-linux.dat: Regenerate.
898 * regformats/i386/x32-avx512.dat: Regenerate.
899 * regformats/i386/x32-linux.dat: Regenerate.
900 * regformats/i386/x32.dat: Regenerate.
901 * regformats/microblaze-with-stack-protect.dat: Regenerate.
902 * regformats/mips-dsp-linux.dat: Regenerate.
903 * regformats/mips-linux.dat: Regenerate.
904 * regformats/mips64-dsp-linux.dat: Regenerate.
905 * regformats/mips64-linux.dat: Regenerate.
906 * regformats/nios2-linux.dat: Regenerate.
907 * regformats/rs6000/powerpc-32.dat: Regenerate.
908 * regformats/rs6000/powerpc-32l.dat: Regenerate.
909 * regformats/rs6000/powerpc-64l.dat: Regenerate.
910 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
911 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
912 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
913 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
914 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
915 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
916 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
917 * regformats/s390-linux32.dat: Regenerate.
918 * regformats/s390-linux32v1.dat: Regenerate.
919 * regformats/s390-linux32v2.dat: Regenerate.
920 * regformats/s390-linux64.dat: Regenerate.
921 * regformats/s390-linux64v1.dat: Regenerate.
922 * regformats/s390-linux64v2.dat: Regenerate.
923 * regformats/s390-te-linux64.dat: Regenerate.
924 * regformats/s390x-linux64.dat: Regenerate.
925 * regformats/s390x-linux64v1.dat: Regenerate.
926 * regformats/s390x-linux64v2.dat: Regenerate.
927 * regformats/s390x-te-linux64.dat: Regenerate.
928 * regformats/tic6x-c62x-linux.dat: Regenerate.
929 * regformats/tic6x-c62x.dat: Regenerate.
930 * regformats/tic6x-c64x-linux.dat: Regenerate.
931 * regformats/tic6x-c64x.dat: Regenerate.
932 * regformats/tic6x-c64xp-linux.dat: Regenerate.
933 * regformats/tic6x-c64xp.dat: Regenerate.
934
935 2014-10-01 Pedro Alves <palves@redhat.com>
936
937 * features/Makefile: Update comments.
938 (XMLTOC): List all xml files we build C files from.
939 (clean-cfiles): New rule.
940
941 2014-10-01 Pedro Alves <palves@redhat.com>
942
943 * features/i386/amd64-avx512-linux.c: Regenerate.
944 * features/i386/amd64-avx512.c: Regenerate.
945 * features/i386/x32-avx512-linux.c: Regenerate.
946 * features/i386/x32-avx512.c: Regenerate.
947
948 2014-10-01 Pedro Alves <palves@redhat.com>
949
950 * features/Makefile (WHICH): Remove arm-with-m,
951 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
952
953 2014-10-01 Pedro Alves <palves@redhat.com>
954
955 * features/Makefile (clean): New rule.
956
957 2014-10-01 Pedro Alves <palves@redhat.com>
958
959 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
960 (zmm14h): Add missing end quotes.
961
962 2014-10-01 Pedro Alves <palves@redhat.com>
963
964 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
965 * features/aarch64.c: Regenerate.
966
967 2014-09-30 Don Breazeal <donb@codesourcery.com>
968
969 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
970 code so as to work with follow_fork_inferior.
971 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
972 (inf_ttrace_create_inferior): Remove reference to
973 inf_ttrace_vfork_ppid.
974 (inf_ttrace_attach): Ditto.
975 (inf_ttrace_detach): Ditto.
976 (inf_ttrace_kill): Use current_inferior instead of
977 inf_ttrace_vfork_ppid.
978 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
979 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
980 inferior away from the parent.
981 * infrun.c (follow_fork): Call follow_fork_inferior instead of
982 target_follow_fork.
983 (follow_fork_inferior): New function.
984 (follow_inferior_reset_breakpoints): Make function static.
985 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
986 * linux-nat.c (linux_child_follow_fork): Move target-independent
987 code to infrun.c:follow_fork_inferior.
988
989 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
990
991 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
992 * gdbarch.c: Regenerate.
993 * gdbarch.h: Likewise.
994 * corelow.c (sniff_core_bfd): Drop presence check for deleted
995 gdbarch method 'regset_from_core_section'.
996 (get_core_register_section): Remove handling for the case that
997 regset == NULL and regset_from_core_section is defined.
998 (get_core_registers): Drop check for deleted method.
999 * procfs.c (procfs_do_thread_registers): Adjust comment.
1000
1001 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1002
1003 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1004 (linux_nat_make_corefile_notes): Remove.
1005 (linux_target_install_ops): Do not set target method
1006 'make_corefile_notes'.
1007 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1008 Remove field.
1009 (linux_corefile_thread_callback): Instead of args->collect, call
1010 linux_collect_thread_registers.
1011 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1012 NULL unless there is a regset iterator.
1013 (linux_make_corefile_notes_1): Remove.
1014 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1015 by linux_make_corefile_notes.
1016 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1017
1018 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1019
1020 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1021 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1022 Remove.
1023 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1024
1025 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1026
1027 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1028 (xtensa_iterate_over_regset_sections): New.
1029 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1030
1031 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1032
1033 * vax-tdep.c (vax_regset_from_core_section): Remove.
1034 (vax_iterate_over_regset_sections): New.
1035 (vax_gdbarch_init): Adjust gdbarch initialization.
1036
1037 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1038
1039 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1040 (tilegx_regset_from_core_section): Remove.
1041 (tilegx_iterate_over_regset_sections): New.
1042 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1043
1044 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1045
1046 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1047 (sparc_iterate_over_regset_sections): New.
1048 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1049 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1050 targets.
1051 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1052 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1053 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1054 target method 'make_corefile_notes'.
1055
1056 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1057
1058 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1059 'sizeof_gregset' and 'sizeof_fpregset'.
1060 * sh-tdep.c (sh_regset_from_core_section): Remove.
1061 (sh_iterate_over_regset_sections): New.
1062 (sh_gdbarch_init): Adjust gdbarch initialization.
1063 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1064 sizeof_fpregset.
1065 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1066 'sizeof_gregset'.
1067
1068 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1069
1070 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1071 (score7_linux_iterate_over_regset_sections): New.
1072 (score_gdbarch_init): Adjust gdbarch initialization.
1073
1074 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1075
1076 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1077 FreeBSD targets.
1078 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1079 method 'make_corefile_notes'.
1080 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1081 (ppcfbsd_regset_from_core_section): Remove.
1082 (ppcfbsd_iterate_over_regset_sections): New.
1083 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1084 initialization.
1085 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1086 (ppcnbsd_iterate_over_regset_sections): New.
1087 (ppcnbsd_init_abi): Adjust.
1088 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1089 (ppcobsd_iterate_over_regset_sections): New.
1090 (ppcobsd_init_abi): Adjust.
1091 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1092 (rs6000_aix_iterate_over_regset_sections): New.
1093 (rs6000_aix_init_osabi): Adjust.
1094
1095 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1096
1097 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1098 (nios2_regset_from_core_section): Remove.
1099 (nios2_iterate_over_regset_sections): New.
1100 (nios2_linux_init_abi): Adjust gdbarch initialization.
1101
1102 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1103
1104 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1105 (am33_iterate_over_regset_sections): New.
1106 (am33_linux_init_osabi): Adjust gdbarch initialization.
1107
1108 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1109
1110 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1111 (mips_linux_iterate_over_regset_sections): New.
1112 (mips_linux_init_abi): Adjust gdbarch initialization.
1113 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1114 (mips64obsd_iterate_over_regset_sections): New.
1115 (mips64obsd_init_abi): Adjust.
1116 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1117 (mipsnbsd_iterate_over_regset_sections): New.
1118 (mipsnbsd_init_abi): Adjust.
1119
1120 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1121
1122 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1123 (m88k_iterate_over_regset_sections): New.
1124 (m88k_gdbarch_init): Adjust gdbarch initialization.
1125
1126 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1127
1128 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1129 (ia64_linux_iterate_over_regset_sections): New.
1130 (ia64_linux_init_abi): Adjust gdbarch initialization.
1131
1132 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1133
1134 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1135 (m68kbsd_iterate_over_regset_sections): New.
1136 (m68kbsd_init_abi): Adjust gdbarch initialization.
1137 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1138 (m68k_linux_iterate_over_regset_sections): New.
1139 (m68k_linux_init_abi): Adjust gdbarch initialization.
1140
1141 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1142
1143 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1144 (m32r_linux_regset_from_core_section): Remove.
1145 (m32r_linux_iterate_over_regset_sections): New.
1146 (m32r_linux_init_abi): Adjust gdbarch initialization.
1147
1148 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1149
1150 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1151 (amd64obsd_iterate_over_regset_sections): New.
1152 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1153 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1154 Remove.
1155 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1156 regset_from_core_section initialization.
1157 * i386-tdep.c (i386_regset_from_core_section): Remove.
1158 (i386_iterate_over_regset_sections): New.
1159 (i386_gdbarch_init): Adjust gdbarch initialization.
1160 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1161 (i386_iterate_over_regset_sections): New prototype.
1162 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1163 Remove.
1164 (i386obsd_aout_iterate_over_regset_sections): New.
1165 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1166 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1167 targets.
1168 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1169 (amd64fbsd_init_abi): Call fbsd_init_abi.
1170 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1171 (i386fbsd4_init_abi): Call fbsd_init_abi.
1172 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1173 target method 'make_corefile_notes'.
1174 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1175
1176 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1177
1178 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1179 (hppa_hpux_iterate_over_regset_sections): New.
1180 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1181 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1182 (hppa_linux_iterate_over_regset_sections): New.
1183 (hppa_linux_init_abi): Adjust.
1184 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1185 (hppanbsd_iterate_over_regset_sections): New.
1186 (hppanbsd_init_abi): Adjust.
1187 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1188 (hppaobsd_iterate_over_regset_sections): New.
1189 (hppaobsd_init_abi): Adjust.
1190
1191 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1192
1193 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1194 (frv_linux_iterate_over_regset_sections): New.
1195 (frv_linux_init_abi): Adjust gdbarch initialization.
1196
1197 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1198
1199 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1200 (armbsd_iterate_over_regset_sections): New prototype.
1201 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1202 (armbsd_iterate_over_regset_sections): New.
1203 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1204 initialization.
1205
1206 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1207
1208 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1209 (alpha_linux_iterate_over_regset_sections): New.
1210 (alpha_linux_init_abi): Adjust gdbarch initialization.
1211 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1212 prototype.
1213 (alphanbsd_iterate_over_regset_sections): New prototype.
1214
1215 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1216
1217 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1218 Remove.
1219 (aarch64_linux_iterate_over_regset_sections): New.
1220 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1221
1222 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1223
1224 * fbsd-tdep.c: New file.
1225 * fbsd-tdep.h: New file.
1226 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1227 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1228 (ALLDEPFILES): Add fbsd-tdep.c.
1229
1230 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1231
1232 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1233 parameter.
1234 * gdbarch.h: Regenerate.
1235 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1236 iterator.
1237 (get_core_register_section): Add parameter 'regset' and use it, if
1238 set. Add parameter 'min_size' and verify the bfd section size
1239 against it.
1240 (get_core_registers_cb): Add parameter 'regset' and pass it to
1241 get_core_register section. For the "standard" register sections
1242 ".reg" and ".reg2", set an appropriate default for human_name.
1243 (get_core_registers): Don't abort when the gdbarch has an iterator
1244 but no regset_from_core_section. Add NULL/0 for parameters
1245 'regset'/'min_size' in calls to get_core_register_section.
1246 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1247 'regset' and use it instead of calling the
1248 regset_from_core_section gdbarch method.
1249 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1250 * i386-tdep.c (i386_supply_xstateregset)
1251 (i386_collect_xstateregset, i386_xstateregset): Moved to
1252 i386-linux-tdep.c.
1253 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1254 .reg-xstate.
1255 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1256 core file support only if the regset iterator hasn't been set.
1257 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1258 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1259 Moved from i386-tdep.c and renamed to *_linux*.
1260 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1261 each callback invocation. Allow any .reg-xstate size when reading
1262 from a core file.
1263 * amd64-tdep.c (amd64_supply_xstateregset)
1264 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1265 amd64-linux-tdep.c.
1266 (amd64_regset_from_core_section): Remove.
1267 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1268 install an amd64-specific regset_from_core_section gdbarch method.
1269 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1270 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1271 Moved from amd64-tdep.c and renamed to *_linux*.
1272 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1273 to each callback invocation. Allow any .reg-xstate size when
1274 reading from a core file.
1275 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1276 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1277 each callback invocation.
1278 (arm_linux_init_abi): No longer set the regset_from_core_section
1279 gdbarch method.
1280 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1281 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1282 each callback invocation.
1283 (ppc_linux_init_abi): No longer set the regset_from_core_section
1284 gdbarch method.
1285 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1286 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1287 (s390_regset_from_core_section): Remove.
1288 (s390_iterate_over_regset_sections): Add regset parameter to each
1289 callback invocation.
1290 (s390_gdbarch_init): No longer set the regset_from_core_section
1291 gdbarch method. Drop initialization of deleted tdep fields.
1292
1293 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1294
1295 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1296 (amd64_linux_iterate_over_regset_sections): New.
1297 (amd64_linux_init_abi_common): Don't install the regset section
1298 list, but the new iterator in gdbarch.
1299 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1300 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1301 (arm_linux_iterate_over_regset_sections): ...here. New function.
1302 (arm_linux_init_abi): Set iterator instead of section list.
1303 * corelow.c (get_core_registers_cb): New function, logic moved
1304 from...
1305 (get_core_registers): ...loop body here. Use new iterator method
1306 instead of walking through the regset section list.
1307 * gdbarch.sh: Remove 'core_regset_sections'. New method
1308 'iterate_over_regset_sections'. New typedef
1309 'iterate_over_regset_sections_cb'.
1310 * gdbarch.c: Regenerate.
1311 * gdbarch.h: Likewise.
1312 * i386-linux-tdep.c (i386_linux_regset_sections)
1313 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1314 Remove.
1315 (i386_linux_iterate_over_regset_sections): New.
1316 (i386_linux_init_abi): Don't choose a regset section list, but
1317 install new iterator in gdbarch.
1318 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1319 (linux_collect_regset_section_cb): New function, logic moved
1320 from...
1321 (linux_collect_thread_registers): ...loop body here. Use iterator
1322 method instead of walking through list.
1323 (linux_make_corefile_notes_1): Check for presence of iterator
1324 method instead of regset section list.
1325 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1326 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1327 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1328 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1329 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1330 (ppc_linux_init_abi): Don't choose from above regset section
1331 lists, but install new iterator in gdbarch.
1332 * regset.h (struct core_regset_section): Remove.
1333 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1334 have_linux_v1, have_linux_v2, and have_tdb.
1335 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1336 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1337 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1338 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1339 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1340 (s390_iterate_over_regset_sections): ...here. New function. Use
1341 new tdep fields.
1342 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1343 regset section lists, but install new iterator.
1344
1345 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1346
1347 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1348
1349 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1350
1351 * progspace.c (print_program_space): Don't prune program spaces
1352 before printing them.
1353
1354 2014-09-25 Pedro Alves <palves@redhat.com>
1355
1356 * infrun.c (user_visible_resume_ptid): Don't check
1357 singlestep_breakpoints_inserted_p.
1358
1359 2014-09-25 Pedro Alves <palves@redhat.com>
1360
1361 * breakpoint.c (should_be_inserted): Add debug output.
1362
1363 2014-09-25 Pedro Alves <palves@redhat.com>
1364
1365 * infrun.c (stepping_past_instruction_at)
1366 (clear_exit_convenience_vars): Point at infrun.h instead of
1367 inferior.h.
1368 (handle_signal_stop): Fix typo.
1369
1370 2014-09-24 Yao Qi <yao@codesourcery.com>
1371
1372 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1373 bitmask.
1374
1375 2014-09-22 Gary Benson <gbenson@redhat.com>
1376
1377 * target.c (target_stop): Updated comment.
1378
1379 2014-09-22 Gary Benson <gbenson@redhat.com>
1380
1381 * target/target.h (target_stop_ptid): Renamed as...
1382 (target_stop_and_wait): New function. Updated comment.
1383 All uses updated.
1384 (target_continue_ptid): Renamed as...
1385 (target_continue_no_signal): New function. Updated comment.
1386 All uses updated.
1387
1388 2014-09-22 Pedro Alves <palves@redhat.com>
1389
1390 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1391 and "auto" merged.
1392 * breakpoint.c (enum ugll_insert_mode): New enum.
1393 (always_inserted_mode): Now a plain boolean.
1394 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1395 (breakpoints_always_inserted_mode): Delete.
1396 (breakpoints_should_be_inserted_now): New function.
1397 (insert_breakpoints): Pass UGLL_INSERT to
1398 update_global_location_list instead of calling
1399 insert_breakpoint_locations manually.
1400 (create_solib_event_breakpoint_1): New, factored out from ...
1401 (create_solib_event_breakpoint): ... this.
1402 (create_and_insert_solib_event_breakpoint): Use
1403 create_solib_event_breakpoint_1 instead of calling
1404 insert_breakpoint_locations manually.
1405 (update_global_location_list): Change parameter type from boolean
1406 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1407 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1408 (update_global_location_list_nothrow): Change parameter type from
1409 boolean to enum ugll_insert_mode.
1410 (_initialize_breakpoint): "breakpoint always-inserted" option is
1411 now a boolean command. Update help text.
1412 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1413 (breakpoints_should_be_inserted_now): New declaration.
1414 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1415 Remove breakpoints_always_inserted_mode check.
1416 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1417 * remote.c (remote_start_remote): Likewise.
1418
1419 2014-09-22 Pedro Alves <palves@redhat.com>
1420
1421 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1422 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1423 Instead, pass UGLL_INSERT to update_global_location_list.
1424 (update_global_location_list): Change parameter type from boolean
1425 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1426 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1427 (create_solib_event_breakpoint_1): New, factored out from ...
1428 (create_solib_event_breakpoint): ... this.
1429 (create_and_insert_solib_event_breakpoint): Use
1430 create_solib_event_breakpoint_1 instead of calling
1431 insert_breakpoint_locations manually.
1432 (update_global_location_list): Handle UGLL_INSERT.
1433
1434 2014-09-22 Pedro Alves <palves@redhat.com>
1435
1436 * breakpoint.c (enum ugll_insert_mode): New enum.
1437 (update_global_location_list)
1438 (update_global_location_list_nothrow): Change parameter type from
1439 boolean to enum ugll_insert_mode. All callers adjusted.
1440
1441 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1442
1443 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1444 SystemTap support in GDB.
1445
1446 2014-09-19 Don Breazeal <donb@codesourcery.com>
1447
1448 * linux-nat.c (linux_handle_extended_wait): Call
1449 linux_ptrace_get_extended_event.
1450 (wait_lwp): Call linux_is_extended_waitstatus.
1451 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1452 and linux_is_extended_waitstatus.
1453 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1454 linux_ptrace_get_extended_event.
1455 (linux_ptrace_get_extended_event): New function.
1456 (linux_is_extended_waitstatus): New function.
1457 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1458 (linux_is_extended_waitstatus): New declarations.
1459
1460 2014-09-19 Yao Qi <yao@codesourcery.com>
1461
1462 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1463 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1464 comments. Callers update.
1465 (dwarf_decode_lines): Likewise.
1466 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1467 comments. Skip the line table if 'lowpc' is greater than
1468 'address'. Don't check
1469 dwarf2_per_objfile->has_section_at_zero.
1470
1471 2014-09-18 Doug Evans <dje@google.com>
1472
1473 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1474 * python/py-symtab.c (stpy_get_producer): New function.
1475 (symtab_object_getset): Add "producer" attribute.
1476
1477 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1478
1479 PR gdb/17384
1480 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1481 (do_captured_read_memory_integer): Remove.
1482 (safe_read_memory_integer): Use target_read_memory directly instead
1483 of catching errors in do_captured_read_memory_integer.
1484
1485 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1486
1487 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1488 not gdb/doc.
1489
1490 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1491
1492 * objc-lang.c (find_implementation_from_class): Remove dead code.
1493
1494 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1495
1496 PR cli/7233
1497 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1498 "fprintf_unfiltered (gdb_stdlog...)".
1499
1500 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1501
1502 PR breakpoints/12526
1503 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1504 val_bitsize.
1505 * breakpoint.c (watch_command_1): Use these fields to retain
1506 bitfield information.
1507 (extract_bitfield_from_watchpoint_value): New function.
1508 (watchpoint_check): Use it.
1509 (update_watchpoint): Use it. Optimize the address and length of a
1510 HW watchpoint pointing to a bitfield.
1511 * value.h (unpack_value_bitfield): New prototype.
1512 * value.c (unpack_value_bitfield): Make extern.
1513
1514 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1515
1516 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1517 x86-dregs.o.
1518 * gnu-nat.c (inf_threads): New function.
1519 * gnu-nat.h (inf_threads_ftype): New typedef.
1520 (inf_threads): New declaration.
1521 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1522 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1523 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1524 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1525 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1526 (i386_gnu_dr_get_control): New functions.
1527 (reg_addr): New structure.
1528 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1529 i386 debugging register hooks.
1530 * NEWS: Mention this.
1531
1532 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1533
1534 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1535 vector data transfer instructions.
1536 (arm_record_coproc_data_proc): Updated.
1537
1538 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1539
1540 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1541 arm_record_exreg_ld_st_insn.
1542 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1543 load/store insns.
1544
1545 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1546
1547 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1548 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1549 processing instructions.
1550
1551 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1552
1553 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1554 for advance SIMD struct ld/st insn.
1555 (thumb2_record_decode_insn_handler): Replace stub handler with
1556 thumb2_record_asimd_struct_ld_st.
1557
1558 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1559
1560 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1561 for asimd, vfp and coprocessor insns.
1562 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1563 and coprocessor insns.
1564 (thumb2_record_coproc_insn): New function.
1565 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1566 handlers.
1567 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1568 opcode 110 insns.
1569
1570 2014-09-13 Doug Evans <xdje42@gmail.com>
1571
1572 * NEWS: Mention new "queue-signal" command.
1573 * infcmd.c (queue_signal_command): New function.
1574 (_initialize_infcmd): Add new queue-signal command.
1575
1576 2014-09-13 Doug Evans <xdje42@gmail.com>
1577
1578 * linux-nat.c (wait_lwp): Add debugging printf.
1579 (linux_nat_wait_1): Ditto.
1580
1581 2014-09-12 Pedro Alves <palves@redhat.com>
1582
1583 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1584 (create_and_insert_solib_event_breakpoint): New functions.
1585 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1586 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1587 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1588 (remove_dbx_link_breakpoint): Delete function.
1589 (insert_dbx_link_bpt_in_file): Use
1590 create_and_insert_solib_event_breakpoint instead of
1591 deprecated_insert_raw_breakpoint.
1592 (procfs_wait): Don't check whether we hit __dbx_link here.
1593 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1594 here.
1595 * solib-irix.c (base_breakpoint): Delete global.
1596 (disable_break): Delete function.
1597 (enable_break): Use create_solib_event_breakpoint
1598 instead of deprecated_insert_raw_breakpoint.
1599 (irix_solib_handle_event): New function.
1600 (irix_solib_create_inferior_hook): Don't run the target or disable
1601 the mapping-complete breakpoint here.
1602 (_initialize_irix_solib): Install irix_solib_handle_event as
1603 so_ops->handle_event hook.
1604
1605 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1606 Ulrich Weigand  <uweigand@de.ibm.com>
1607
1608 PR tdep/17379
1609 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1610 instead of read_memory_unsigned_integer.
1611
1612 2014-09-12 Gary Benson <gbenson@redhat.com>
1613
1614 * nat/linux-waitpid.c: Include common-defs.h.
1615 [GDBSERVER]: Add FIXME comment.
1616 [!GDBSERVER]: Don't include defs.h or signal.h.
1617 (linux_debug) [!GDBSERVER]: Remove empty block.
1618
1619 2014-09-12 Gary Benson <gbenson@redhat.com>
1620
1621 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1622 Don't include defs.h or server.h.
1623
1624 2014-09-12 Gary Benson <gbenson@redhat.com>
1625
1626 * nat/linux-btrace.c: Include common-defs.h.
1627 Don't include defs.h, server.h or gdbthread.h.
1628 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1629
1630 2014-09-12 Gary Benson <gbenson@redhat.com>
1631
1632 * common/agent.c: Include common-defs.h.
1633 Don't include defs.h or server.h.
1634 * common/buffer.c: Likewise.
1635 * common/common-debug.c: Likewise.
1636 * common/common-utils.c: Likewise.
1637 * common/errors.c: Likewise.
1638 * common/filestuff.c: Likewise.
1639 * common/format.c: Likewise.
1640 * common/gdb_vecs.c: Likewise.
1641 * common/print-utils.c: Likewise.
1642 * common/ptid.c: Likewise.
1643 * common/rsp-low.c: Likewise.
1644 * common/signals.c: Likewise.
1645 * common/vec.c: Likewise.
1646 * common/xml-utils.c: Likewise.
1647 * nat/linux-osdata.c: Likewise.
1648 * nat/linux-procfs.c: Likewise.
1649 * nat/linux-ptrace.c: Likewise.
1650 * nat/mips-linux-watch.c: Likewise.
1651 * target/waitstatus.c: Likewise.
1652
1653 2014-09-12 Tom Tromey <tromey@redhat.com>
1654 Gary Benson <gbenson@redhat.com>
1655
1656 * common/common-regcache.h: New file.
1657 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1658 * regcache.h: Include common-regcache.h.
1659 (regcache_read_pc): Don't declare.
1660 * regcache.c (get_thread_regcache_for_ptid): New function.
1661 * nat/linux-btrace.c: Don't include regcache.h.
1662 Include common-regcache.h.
1663 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1664
1665 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1666
1667 * regcache.h (struct regset): Declare.
1668
1669 2014-09-11 Pedro Alves <palves@redhat.com>
1670
1671 PR gdb/17347
1672 * main.c: Include "infrun.h".
1673 (catch_command_errors, catch_command_errors_const): Wait for the
1674 foreground command to complete.
1675 * top.c (maybe_wait_sync_command_done): New function, factored out
1676 from ...
1677 (maybe_wait_sync_command_done): ... here.
1678 * top.h (maybe_wait_sync_command_done): New declaration.
1679
1680 2014-09-11 Tom Tromey <tromey@redhat.com>
1681 Gary Benson <gbenson@redhat.com>
1682
1683 * common/symbol.h: New file.
1684 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1685 * minsyms.c (find_minimal_symbol_address): New function.
1686 * common/agent.c: Include common/symbol.h.
1687 [!GDBSERVER]: Don't include objfiles.h.
1688 (agent_look_up_symbols): Use find_minimal_symbol_address.
1689
1690 2014-09-11 Gary Benson <gbenson@redhat.com>
1691
1692 * target/target.h (target_stop_ptid, target_continue_ptid):
1693 Declare.
1694 * target.c (target_stop_ptid, target_continue_ptid): New
1695 functions.
1696 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1697 (agent_run_command): Always use target_stop_ptid and
1698 target_continue_ptid.
1699
1700 2014-09-11 Tom Tromey <tromey@redhat.com>
1701 Gary Benson <gbenson@redhat.com>
1702
1703 * target/target.h: New file.
1704 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1705 * target.h: Include target/target.h.
1706 (target_read_memory, target_write_memory): Don't declare.
1707 * target.c (target_read_uint32): New function.
1708 * common/agent.c: Include target/target.h.
1709 [!GDBSERVER]: Don't include target.h.
1710 (helper_thread_id): Type changed to uint32_t.
1711 (agent_get_helper_thread_id): Use target_read_uint32.
1712 (agent_run_command): Always use target_read_memory and
1713 target_write_memory.
1714 (agent_capability): Type changed to uint32_t.
1715 (agent_capability_check): Use target_read_uint32.
1716
1717 2014-09-11 Gary Benson <gbenson@redhat.com>
1718
1719 * common/common-debug.h (show_debug_regs): Declare.
1720 * common/common-debug.c (show_debug_regs): Define.
1721 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1722 all uses with show_debug_regs. Replace all uses that considered
1723 debug_hw_points as a multi-value integer with straight boolean
1724 uses.
1725 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1726 with show_debug_regs.
1727 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1728 all uses with show_debug_regs.
1729 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1730 uses with show_debug_regs.
1731
1732 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1733
1734 * findvar.c (address_from_register): Handle targets requiring
1735 a special conversion routine even for plain pointer types.
1736
1737 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1738
1739 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1740 (store_register): Do not call exec_one_dummy_insn.
1741
1742 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1743
1744 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1745 dereference it first. Use value_enclosing_type instead of
1746 value_type.
1747 (ada_array_length): Likewise.
1748
1749 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1750
1751 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1752 Adjust function implementation and documentation accordingly.
1753 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1754 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1755 Update call to ada_value_ptr_subscript.
1756
1757 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1758
1759 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1760 instead of VAL's type.
1761
1762 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1763
1764 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1765
1766 2014-09-09 Doug Evans <xdje42@gmail.com>
1767
1768 PR guile/17367
1769 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1770 last parameter to pkg-config, not first.
1771 * configure.ac: Pass --with-guile provided pkg-config path to
1772 GDB_GUILE_PROGRAM_NAMES.
1773 * configure: Regenerate.
1774
1775 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1776
1777 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1778 Bertazi".
1779
1780 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1781
1782 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1783 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1784 the list of sections determining GDB_OSABI_IRIX.
1785
1786 2014-09-09 James Hogan <james.hogan@imgtec.com>
1787
1788 * MAINTAINERS (Write After Approval): Add "James Hogan".
1789
1790 2014-09-09 James Hogan <james.hogan@imgtec.com>
1791
1792 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1793
1794 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1795
1796 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1797
1798 2014-09-08 Doug Evans <xdje42@gmail.com>
1799
1800 PR 17247
1801 * guile.c: #include <signal.h>.
1802 (_initialize_guile): Block SIGCHLD while initializing Guile.
1803
1804 Replaces the following, which is reverted.
1805
1806 2014-07-26 Doug Evans <xdje42@gmail.com>
1807
1808 PR 17185
1809 * configure.ac: Add check for header gc/gc.h.
1810 Add check for function setenv.
1811 * configure: Regenerate.
1812 * config.in: Regenerate.
1813 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1814
1815 2014-09-08 Doug Evans <xdje42@gmail.com>
1816
1817 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1818 with named constant. Fix style of pointer comparison.
1819 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1820
1821 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1822
1823 PR gdb/17035
1824 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1825 decide whether we display the command on "show user".
1826 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1827 printing command name.
1828 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1829 * cli/cli-decode.c (cli_user_command_p): Create helper function
1830 to verify whether cmd_list_element is a user-defined command.
1831
1832 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1833
1834 PR python/17355
1835 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1836 Fix goto out of TRY_CATCH.
1837
1838 2014-09-06 Doug Evans <xdje42@gmail.com>
1839 Tom Tromey <tromey@redhat.com>
1840
1841 PR 15276
1842 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1843 $_any_caller_matches.
1844 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1845 * python/lib/gdb/function/caller_is.py: New file.
1846
1847 2014-09-06 Doug Evans <xdje42@gmail.com>
1848
1849 * infcmd.c (program_info): Fix typo.
1850
1851 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1852
1853 PR gdb/17235
1854 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1855 'number'. New variable 'has_digit'. Rewrite code to deal with
1856 subexpressions on SDT probes.
1857
1858 2014-09-04 Pedro Alves <palves@redhat.com>
1859
1860 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1861 the input is only one character long.
1862
1863 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1864
1865 PR fortran/17237
1866 * f-valprint.c (f_val_print): Specify the correct print option to
1867 use when printing integer values.
1868
1869 2014-09-04 Gary Benson <gbenson@redhat.com>
1870
1871 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1872 Remove code to cope with LWPs wrapped as PIDs.
1873 Add assertions to ensure no wrapped LWPs are passed.
1874
1875 2014-09-04 Pedro Alves <palves@redhat.com>
1876
1877 * value.c (value_ranges_copy_adjusted): New function, factored out
1878 from ...
1879 (value_contents_copy_raw): ... here.
1880 (unpack_value_bits_as_long_1): Rename back to ...
1881 (unpack_bits_as_long): ... this. Remove 'original_value' and
1882 'result' parameters. Change return type to LONGEST.
1883 (unpack_value_bits_as_long): Delete.
1884 (unpack_value_field_as_long_1): Delete.
1885 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1886 (unpack_value_bitfield): New function.
1887 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1888 (value_fetch_lazy): Use unpack_value_bitfield.
1889 * value.h (unpack_value_bits_as_long): Delete declaration.
1890
1891 2014-09-03 Sasha Smundak <asmundak@google.com>
1892
1893 * python/py-frame.c (frapy_read_register): New function.
1894
1895 2014-09-03 James Hogan <james.hogan@imgtec.com>
1896
1897 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1898 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1899
1900 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1901
1902 PR python/16699
1903 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1904 function.
1905 (add_cmd): Set "completer_handle_brkchars" to NULL.
1906 * cli/cli-decode.h (struct cmd_list_element)
1907 <completer_handle_brkchars>: New field.
1908 * command.h (completer_ftype_void): New typedef.
1909 (set_cmd_completer_handle_brkchars): New prototype.
1910 * completer.c (set_gdb_completion_word_break_characters): New
1911 function.
1912 (complete_line_internal): Call "completer_handle_brkchars"
1913 callback from command.
1914 * completer.h: Include "command.h".
1915 (set_gdb_completion_word_break_characters): New prototype.
1916 * python/py-cmd.c (cmdpy_completer_helper): New function.
1917 (cmdpy_completer_handle_brkchars): New function.
1918 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1919 (cmdpy_init): Set completer_handle_brkchars to
1920 cmdpy_completer_handle_brkchars.
1921
1922 2014-09-03 Gary Benson <gbenson@redhat.com>
1923
1924 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1925 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1926 Loop conditions changed to equivalent form.
1927 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1928 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1929 ALL_DEBUG_ADDRESS_REGISTERS.
1930
1931 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1932
1933 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1934 description fix.
1935
1936 2014-09-02 Doug Evans <dje@google.com>
1937
1938 * typeprint.c (find_global_typedef): Fix comment.
1939
1940 2014-09-02 Gary Benson <gbenson@redhat.com>
1941
1942 * i386-nat.h: Renamed as...
1943 * x86-nat.h: New file. All type, function and variable name
1944 prefixes changed from "i386_" to "x86_". All references updated.
1945 * i386-nat.c: Renamed as...
1946 * x86-nat.c: New file. All type, function and variable name
1947 prefixes changed from "i386_" to "x86_". All references updated.
1948 * common/i386-xstate.h: Renamed as...
1949 * common/x86-xstate.h: New file. All type, function and variable
1950 name prefixes changed from "i386_" to "x86_". All references
1951 updated.
1952 * nat/i386-cpuid.h: Renamed as...
1953 * nat/x86-cpuid.h: New file. All type, function and variable name
1954 prefixes changed from "i386_" to "x86_". All references updated.
1955 * nat/i386-gcc-cpuid.h: Renamed as...
1956 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1957 name prefixes changed from "i386_" to "x86_". All references
1958 updated.
1959 * nat/i386-dregs.h: Renamed as...
1960 * nat/x86-dregs.h: New file. All type, function and variable name
1961 prefixes changed from "i386_" to "x86_". All references updated.
1962 * nat/i386-dregs.c: Renamed as...
1963 * nat/x86-dregs.c: New file. All type, function and variable name
1964 prefixes changed from "i386_" to "x86_". All references updated.
1965
1966 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1967
1968 * varobj.c (_initialize_varobj): Move to the end of file.
1969
1970 2014-08-29 Gary Benson <gbenson@redhat.com>
1971
1972 * common/common-exceptions.h: New file.
1973 * common/common-exceptions.c: Likewise.
1974 * Makefile.in (SFILES): Add common/common-exceptions.c.
1975 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1976 (COMMON_OBS): Add common-exceptions.o.
1977 (common-exceptions.o): New rule.
1978 * exceptions.h (common-exceptions.h): Include.
1979 (gdb_setjmp.h): Do not include.
1980 (return_reason): Moved to common-exceptions.h.
1981 (enum return_reason): Likewise.
1982 (RETURN_MASK): Likewise.
1983 (typedef return_mask): Likewise.
1984 (enum errors): Likewise.
1985 (struct gdb_exception): Likewise.
1986 (exceptions_state_mc_init): Likewise.
1987 (exceptions_state_mc_action_iter): Likewise.
1988 (exceptions_state_mc_action_iter_1): Likewise.
1989 (TRY_CATCH): Likewise.
1990 (throw_exception): Likewise.
1991 (throw_verror): Likewise.
1992 (throw_vquit): Likewise.
1993 (throw_error): Likewise.
1994 (throw_quit): Likewise.
1995 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1996 (enum catcher_action): Likewise.
1997 (struct catcher): Likewise.
1998 (current_catcher): Likewise.
1999 (catcher_list_size): Likewise.
2000 (exceptions_state_mc_init): Likewise.
2001 (catcher_pop): Likewise.
2002 (exceptions_state_mc): Likewise.
2003 (exceptions_state_mc_action_iter): Likewise.
2004 (exceptions_state_mc_action_iter_1): Likewise.
2005 (throw_exception): Likewise.
2006 (exception_messages): Likewise.
2007 (exception_messages_size): Likewise.
2008 (throw_it): Likewise.
2009 (throw_verror): Likewise.
2010 (throw_vquit): Likewise.
2011 (throw_error): Likewise.
2012 (throw_quit): Likewise.
2013 (prepare_to_throw_exception): New function.
2014
2015 2014-08-29 Gary Benson <gbenson@redhat.com>
2016
2017 * common/gdb_setjmp.h: New file.
2018 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2019 * configure.ac: Move sigsetjmp check...
2020 * common/common.m4: ...here.
2021 * configure: Regenerate.
2022 * cp-support.c (SIGJMP_BUF): Delete.
2023 (SIGSETJMP): Likewise.
2024 (SIGLONGJMP): Likewise.
2025 * exceptions.h (gdb_setjmp.h): Include.
2026 (setjmp.h): Do not include.
2027 (EXCEPTIONS_SIGJMP_BUF): Delete.
2028 (EXCEPTIONS_SIGSETJMP): Likewise.
2029 (EXCEPTIONS_SIGLONGJMP): Likewise.
2030 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2031 from gdb_setjmp.h.
2032 * exceptions.c: Likewise.
2033
2034 2014-08-29 Gary Benson <gbenson@redhat.com>
2035
2036 * cleanups.h: Moved to...
2037 * common/cleanups.h: New file.
2038 * cleanups.c: Moved to...
2039 * common/cleanups.c: New file. Include common-defs.h and
2040 cleanups.h. Do not include defs.h.
2041 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2042 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2043 (cleanups.o): New rule.
2044
2045 2014-08-29 Gary Benson <gbenson@redhat.com>
2046
2047 * common/errors.h (internal_warning): New declaration.
2048 (internal_vwarning): Likewise.
2049 * common/errors.c (internal_warning): New function.
2050 * utils.h (internal_warning): Don't declare.
2051 (internal_vwarning): Likewise.
2052 * utils.c (internal_warning): Removed.
2053
2054 2014-08-29 Gary Benson <gbenson@redhat.com>
2055
2056 * main.c (captured_main): Use warning during startup.
2057 Prefix startup warning messages with command name.
2058
2059 2014-08-29 Gary Benson <gbenson@redhat.com>
2060
2061 * main.c (captured_main): Handle usage errors with error.
2062
2063 2014-08-29 Gary Benson <gbenson@redhat.com>
2064
2065 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2066 exit pair with a call to error. Wrap the message with _().
2067
2068 2014-08-29 Gary Benson <gbenson@redhat.com>
2069
2070 * main.c (captured_main): Replace a fprintf/exit
2071 pair with a call to error. Wrap the message with _().
2072
2073 2014-08-29 Gary Benson <gbenson@redhat.com>
2074
2075 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2076 pairs with calls to error. Wrap the message with _().
2077
2078 2014-08-29 Gary Benson <gbenson@redhat.com>
2079
2080 * utils.c (vwarning): Protect calls to target_terminal_ours
2081 and wrap_here.
2082
2083 2014-08-29 Gary Benson <gbenson@redhat.com>
2084
2085 * exceptions.c (print_flush): Protect calls to
2086 target_terminal_ours and wrap_here.
2087
2088 2014-08-29 Gary Benson <gbenson@redhat.com>
2089
2090 * utils.h (filtered_printing_initialized): New declaration.
2091 * utils.c (abort_with_message): New function.
2092 (internal_vproblem): Use abort_with_message for first level
2093 recursive internal problems, and if gdb_stderr is not set up.
2094 Protect calls to target_terminal_ours, begin_line and query.
2095
2096 2014-08-28 Doug Evans <dje@google.com>
2097
2098 * symtab.c (in_prologue): Move definition to better spot.
2099 (skip_prologue_using_sal): Ditto.
2100
2101 2014-08-28 Doug Evans <dje@google.com>
2102
2103 * symtab.c (find_function_start_sal): Move definition to better spot.
2104
2105 2014-08-28 Yao Qi <yao@codesourcery.com>
2106
2107 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2108 found_stack_adjust in forward scan. Remove condition check
2109 on found_stack_adjust which is always true. Indent the code.
2110
2111 2014-08-28 Yao Qi <yao@codesourcery.com>
2112
2113 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2114 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2115 (dwarf_decode_lines): Remove argument
2116 want_line_info. Remove condition check on want_line_info.
2117 Callers update.
2118
2119 2014-08-27 Doug Evans <dje@google.com>
2120
2121 * dwarf2read.c (dwarf_record_line): Fix typo.
2122
2123 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2124
2125 * target.h (struct target_ops::to_terminal_save_ours): Remove
2126 declaration.
2127 (target_terminal_save_ours): Remove macro.
2128 * target-delegates.c: Regenerate.
2129 * inf-child.c (inf_child_target): Don't set the nonexistent
2130 field to_terminal_save_ours.
2131 * inferior.h (child_terminal_save_ours): Remove declaration.
2132 * terminal.h (gdb_save_tty_state): New declaration.
2133 * inflow.c (child_terminal_save_ours): Rename to ...
2134 (gdb_save_tty_state): ... this.
2135 * tui/tui.c: Include terminal.h.
2136 (tui_enable): Use gdb_save_tty_state instead of
2137 target_terminal_save_ours.
2138 (tui_disable): Likewise.
2139
2140 2014-08-25 Doug Evans <dje@google.com>
2141
2142 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2143 Pass NULL instead of 0 for context pointer.
2144
2145 2014-08-25 Yao Qi <yao@codesourcery.com>
2146
2147 * dwarf2read.c: Fix grammatical error.
2148
2149 2014-08-24 Yao Qi <yao@codesourcery.com>
2150
2151 * dwarf2read.c (scan_partial_symbols): Update comments.
2152 Rename argument 'need_pc' with 'set_addrmap'.
2153 (add_partial_namespace): Rename argument 'need_pc' with
2154 'set_addrmap'.
2155 (add_partial_module): Likewise.
2156 (add_partial_subprogram): Likewise. Update comments.
2157 (dwarf2_name): Fix typo.
2158
2159 2014-08-22 Doug Evans <dje@google.com>
2160
2161 PR 17276
2162 * dwarf2read.c (dwarf_record_line_p): New function.
2163 (dwarf_decode_lines_1): Ignore subsequent line number entries
2164 for the same line if any entry had a non-zero discriminator.
2165
2166 2014-08-22 Doug Evans <dje@google.com>
2167
2168 * buildsym.h (record_line_ftype): New typedef.
2169 (record_line): Use it.
2170 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2171 (dwarf_decode_lines_1): Call them.
2172
2173 2014-08-22 Yao Qi <yao@codesourcery.com>
2174
2175 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2176 (ctf_end): Remove code.
2177
2178 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2179
2180 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2181 (linux_make_corefile_notes): call update_thread_list, protected against
2182 exceptions.
2183
2184 2014-08-21 Pedro Alves <palves@redhat.com>
2185
2186 * infcmd.c (attach_command): Remove comment.
2187
2188 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2189
2190 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2191 unsigned LONGEST to ULONGEST.
2192
2193 2014-08-20 Pedro Alves <palves@redhat.com>
2194
2195 * Makefile.in (check-read1): New rule.
2196
2197 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2198
2199 * value.c (value_from_contents_and_address): Strip resolved_type's
2200 typedef layers before checking its TYPE_DATA_LOCATION.
2201
2202 2014-08-20 Pedro Alves <palves@redhat.com>
2203
2204 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2205
2206 2014-08-20 Yao Qi <yao@codesourcery.com>
2207
2208 * amd64-tdep.c (amd64_classify): Add a blank line after the
2209 example. Move "*/" to a new line.
2210 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2211 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2212 * dwarf2read.c (psymtab_include_file_name): Likewise.
2213
2214 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2215 Pedro Alves <palves@redhat.com>
2216
2217 PR symtab/14604
2218 PR symtab/14605
2219 * ada-lang.c (coerce_unspec_val_to_type): Use
2220 value_contents_copy_raw.
2221 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2222 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2223 * cp-valprint.c (cp_print_value_fields): Let the common printing
2224 code handle optimized out values.
2225 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2226 * d-valprint.c (dynamic_array_type): Use
2227 value_bits_any_optimized_out.
2228 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2229 check_any_valid fields.
2230 (check_pieced_value_bits): Delete and inline ...
2231 (check_pieced_synthetic_pointer): ... here.
2232 (check_pieced_value_validity): Delete.
2233 (check_pieced_value_invalid): Delete.
2234 (pieced_value_funcs): Remove check_validity and check_any_valid
2235 fields.
2236 (read_pieced_value): Use mark_value_bits_optimized_out.
2237 (write_pieced_value): Switch to use
2238 mark_value_bytes_optimized_out.
2239 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2240 of assuming the whole value is optimized out.
2241 * findvar.c (read_frame_register_value): Remove special handling
2242 of optimized out registers.
2243 (value_from_register): Use mark_value_bytes_optimized_out.
2244 * frame-unwind.c (frame_unwind_got_optimized): Use
2245 mark_value_bytes_optimized_out.
2246 * jv-valprint.c (java_value_print): Adjust.
2247 (java_print_value_fields): Let the common printing code handle
2248 optimized out values.
2249 * mips-tdep.c (mips_print_register): Remove special handling of
2250 optimized out registers.
2251 * opencl-lang.c (lval_func_check_validity): Delete.
2252 (lval_func_check_any_valid): Delete.
2253 (opencl_value_funcs): Remove check_validity and check_any_valid
2254 fields.
2255 * p-valprint.c (pascal_object_print_value_fields): Let the common
2256 printing code handle optimized out values.
2257 * stack.c (read_frame_arg): Remove special handling of optimized
2258 out values. Fetch both VAL and ENTRYVAL before comparing
2259 contents. Adjust to value_available_contents_eq rename.
2260 * valprint.c (valprint_check_validity)
2261 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2262 (val_print_array_elements): Adjust.
2263 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2264 (value_bits_any_optimized_out): New function.
2265 (value_entirely_covered_by_range_vector): New function, factored
2266 out from value_entirely_unavailable.
2267 (value_entirely_unavailable): Reimplement.
2268 (value_entirely_optimized_out): New function.
2269 (insert_into_bit_range_vector): New function, factored out from
2270 mark_value_bits_unavailable.
2271 (mark_value_bits_unavailable): Reimplement.
2272 (struct ranges_and_idx): New struct.
2273 (find_first_range_overlap_and_match): New function, factored out
2274 from value_available_contents_bits_eq.
2275 (value_available_contents_bits_eq): Rename to ...
2276 (value_contents_bits_eq): ... this. Check both unavailable
2277 contents and optimized out contents.
2278 (value_available_contents_eq): Rename to ...
2279 (value_contents_eq): ... this.
2280 (allocate_value_lazy): Remove reference to the old optimized_out
2281 boolean.
2282 (allocate_optimized_out_value): Use
2283 mark_value_bytes_optimized_out.
2284 (require_not_optimized_out): Adjust to check whether the
2285 optimized_out vec is empty.
2286 (ranges_copy_adjusted): New function, factored out from
2287 value_contents_copy_raw.
2288 (value_contents_copy_raw): Also copy the optimized out ranges.
2289 Assert the destination ranges aren't optimized out.
2290 (value_contents_copy): Update comment, remove call to
2291 require_not_optimized_out.
2292 (value_contents_equal): Adjust to check whether the optimized_out
2293 vec is empty.
2294 (set_value_optimized_out, value_optimized_out_const): Delete.
2295 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2296 New functions.
2297 (value_entirely_optimized_out, value_bits_valid): Delete.
2298 (value_copy): Take a VEC copy of the 'optimized_out' field.
2299 (value_primitive_field): Remove special handling of optimized out.
2300 (value_fetch_lazy): Assert that lazy values have no unavailable
2301 regions. Use value_bits_any_optimized_out. Remove some special
2302 handling for optimized out values.
2303 * value.h: Add intro comment about <optimized out> and
2304 <unavailable>.
2305 (struct lval_funcs): Remove check_validity and check_any_valid
2306 fields.
2307 (set_value_optimized_out, value_optimized_out_const): Remove.
2308 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2309 New declarations.
2310 (value_bits_any_optimized_out): New declaration.
2311 (value_bits_valid): Delete declaration.
2312 (value_available_contents_eq): Rename to ...
2313 (value_contents_eq): ... this, and extend comments.
2314
2315 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2316
2317 Fix -fsanitize=address on unreadable inferior strings.
2318 * valprint.c (val_print_string): Fix access before BUFFER.
2319
2320 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2321
2322 * target.c (target_struct_size): Remove.
2323 (target_struct_allocsize): Remove.
2324 (DEFAULT_ALLOCSIZE): Remove.
2325 (target_ops_p): New typedef.
2326 (DEF_VEC_P (target_ops_p)): New vector type.
2327 (target_structs): Change type to VEC (target_ops_p).
2328 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2329 (find_default_run_target): Rewrite for loop following changes to
2330 target_structs.
2331
2332 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2333
2334 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2335 Adjust code accordingly. Adjust function description comment.
2336
2337 2014-08-19 Yao Qi <yao@codesourcery.com>
2338
2339 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2340 types.
2341
2342 2014-08-19 Alan Modra <amodra@gmail.com>
2343
2344 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2345 * config.in: Regenerate.
2346 * configure: Regenerate.
2347
2348 2014-08-19 Tom Tromey <tromey@redhat.com>
2349 Gary Benson <gbenson@redhat.com>
2350
2351 * common/common-debug.h: New file.
2352 * common/common-debug.c: Likewise.
2353 * debug.c: Likewise.
2354 * Makefile.in (SFILES): Add common/common-debug.c.
2355 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2356 (COMMON_OBS): Add common-debug.o and debug.o.
2357 (common-debug.o): New rule.
2358 * common/common-defs.h: Include common-debug.h.
2359 * common/agent.c (debug_agent_printf): New function.
2360 (DEBUG_AGENT): Redefine.
2361 * nat/i386-dregs.c (debug_printf): Undefine.
2362
2363 2014-08-19 Gary Benson <gbenson@redhat.com>
2364
2365 * common/common-defs.h: Include print-utils.h.
2366 * utils.h: Do not include print-utils.h.
2367
2368 2014-08-19 Tom Tromey <tromey@redhat.com>
2369 Gary Benson <gbenson@redhat.com>
2370
2371 * common/common-types.h: New file.
2372 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2373 * common/common-defs.h: Include common-types.h.
2374 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2375 (ULONGEST): Remove.
2376
2377 2014-08-19 Tom Tromey <tromey@redhat.com>
2378 Gary Benson <gbenson@redhat.com>
2379
2380 * common/errors.h: New file.
2381 * common/errors.c: Likewise.
2382 * Makefile.in (SFILES): Add common/errors.c.
2383 (HFILES_NO_SRCDIR): Add common/errors.h.
2384 (COMMON_OBS): Add errors.o.
2385 (errors.o): New rule.
2386 * common/common-defs.h: Include errors.h.
2387 * utils.h (perror_with_name, error, verror, warning, vwarning):
2388 Don't declare.
2389 * common/common-utils.h: (malloc_failure, internal_error):
2390 Likewise.
2391
2392 2014-08-19 Gary Benson <gbenson@redhat.com>
2393
2394 * utils.c (internal_vproblem): Always print the message.
2395
2396 2014-08-18 Doug Evans <dje@google.com>
2397
2398 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2399
2400 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2401
2402 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2403 Return 0 if TYPE is dynamic.
2404 (print_range): Add handling of dynamic ranges.
2405
2406 2014-08-18 Keven Boell <keven.boell@intel.com>
2407 Joel Brobecker <brobecker@adacore.com>
2408
2409 * gdbtypes.h (struct main_type): Add field "data_location".
2410 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2411 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2412 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2413 a dynamic data location.
2414 (resolve_dynamic_type): Add DW_AT_data_location handling.
2415 (copy_recursive, copy_type): Copy the data_location information
2416 when present.
2417 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2418 * value.c (value_from_contents_and_address): Add
2419 DW_AT_data_location handling.
2420
2421 2014-08-18 Keven Boell <keven.boell@intel.com>
2422 Joel Brobecker <brobecker@adacore.com>
2423
2424 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2425 field "get_object_address".
2426 * dwarf2expr.c (execute_stack_op): Add handling for
2427 DW_OP_push_object_address.
2428 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2429 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2430 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2431 (dwarf_expr_get_obj_addr): New function.
2432 (dwarf_expr_ctx_funcs): Add get_object_address field.
2433 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2434 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2435 (dwarf2_evaluate_property): Add parameter "address". Use it.
2436 (needs_get_obj_addr): New function.
2437 (needs_frame_ctx_funcs): Add get_object_address field.
2438 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2439 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2440 (resolve_dynamic_array): Likewise.
2441
2442 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2443
2444 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2445 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2446 fixed value for records and unions for which some GNAT encodings
2447 are present.
2448
2449 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2450
2451 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2452 rewrite to avoid "else if" and "else" constructs. Should be
2453 a no-op in practice.
2454
2455 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2456
2457 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2458 of lexical block.
2459
2460 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2461
2462 PR c++/17132
2463 * eval.c: Update all calls to find_overload_match.
2464 * valarith.c: Likewise.
2465 (value_user_defined_cpp_op, value_user_defined_op): New
2466 argument NOSIDE. Update all callers.
2467 * valops.c (find_overload_match): New argument NOSIDE.
2468 * value.h (find_overload_match): Update signature.
2469
2470 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2471
2472 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2473 'items' methods instead of 'iteritems' method on dictionaries.
2474
2475 2014-08-15 Doug Evans <dje@google.com>
2476
2477 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2478 closer to use.
2479
2480 2014-08-15 Doug Evans <dje@google.com>
2481
2482 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2483
2484 2014-08-15 Doug Evans <dje@google.com>
2485
2486 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2487
2488 2014-08-15 Doug Evans <dje@google.com>
2489
2490 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2491 unused.
2492
2493 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2494
2495 * dcache.h: Include target.h, to avoid compile time warnings.
2496
2497 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2498
2499 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2500 frame_info" partial declaration.
2501 * gdbarch.h: Regenerate.
2502
2503 2014-08-15 Yao Qi <yao@codesourcery.com>
2504
2505 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2506 Add parameter 'decode_for_pst_p'. Callers update.
2507
2508 2014-08-13 Yao Qi <yao@codesourcery.com>
2509
2510 PR build/17104
2511 * configure.ac: Use local variable 'pos'.
2512 * configure: Regenerated.
2513
2514 2014-08-11 Doug Evans <dje@google.com>
2515
2516 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2517 message, it is redundant with "Reading symbols from ..." message.
2518
2519 2014-08-10 Doug Evans <xdje42@gmail.com>
2520
2521 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2522
2523 2014-08-09 Yao Qi <yao@codesourcery.com>
2524
2525 PR remote/9053
2526 * remote.c (remote_xfer_partial): Remove dead code.
2527
2528 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2529
2530 * ia64-linux-tdep.c: Include "regset.h".
2531 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2532 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2533 (ia64_linux_supply_fpregset): New function.
2534 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2535 (ia64_linux_regset_from_core_section): New function.
2536 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2537 method.
2538
2539 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2540
2541 * m68klinux-tdep.c: Include "regset.h".
2542 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2543 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2544 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2545 (m68k_linux_regset_from_core_section): New function.
2546 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2547 method.
2548
2549 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2550
2551 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2552 function. Move logic to...
2553 (tilegx_linux_regmap): ... this new register map.
2554 (tilegx_linux_regset): Refer to register map, replace supply
2555 method by regcache_supply_regset, and add collect method.
2556 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2557 TILEGX_FIRST_EASY_REGNUM.
2558
2559 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2560
2561 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2562 that calls regcache_supply_regset and handles the EPC register
2563 separately. Move main logic to...
2564 (score7_linux_gregmap): ... this new register map.
2565 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2566 (score7_linux_gregset): Refer to register map. Add collect method.
2567 (score7_linux_regset_from_core_section): Replace
2568 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2569 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2570 (struct regset): Delete unused forward declaraction.
2571 (struct pt_regs): Delete structure definition.
2572 (elf_gregset_t): Delete typedef.
2573
2574 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2575
2576 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2577 (nios2_core_regset): Add collect method.
2578
2579 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2580
2581 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2582 platform-independent and don't write to read-only input buffer.
2583 (m32r_linux_collect_gregset): New function.
2584 (m32r_linux_gregset): Add collect method.
2585
2586 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2587
2588 * hppa-linux-tdep.c (greg_map): Rename to...
2589 (hppa_linux_gregmap): ... this. Also convert to
2590 regcache_map_entry format.
2591 (hppa_linux_supply_regset): Delete function.
2592 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2593 (hppa_linux_fpregmap): ... this new register map.
2594 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2595 register map, replace supply method by regcache_supply_regset, and
2596 add collect method regcache_collect_regset.
2597
2598 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2599
2600 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2601 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2602 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2603 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2604 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2605 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2606 (frv_linux_supply_gregset): Replace main logic by call to
2607 regcache_supply_regset, but keep clearing gr32-gr63.
2608 (frv_linux_supply_fpregset): Delete function.
2609 (frv_linux_gregset): Refer to appropriate register map and add
2610 regcache_collect_regset as the collect method.
2611 (frv_linux_fpregset): Likewise. Also exchange the supply method
2612 by regcache_supply_regset.
2613
2614 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2615
2616 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2617 by call to alpha_supply_int_regs.
2618 (alpha_linux_collect_gregset): New function.
2619 (alpha_linux_supply_fpregset): Replace logic by call to
2620 alpha_supply_fp_regs.
2621 (alpha_linux_collect_fpregset): New function.
2622 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2623
2624 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2625
2626 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2627 by call to regcache_collect_regset.
2628 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2629 instead of aarch64_linux_supply_gregset/_fpregset.
2630 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2631 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2632 header file instead.
2633 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2634 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2635 functions. Move logic to ...
2636 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2637 register maps.
2638 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2639 refer to new register maps, replace *_regset_from_core by
2640 regcache_supply_regset, and also use regcache_collect_regset.
2641 * aarch64-linux-tdep.h: Include "regset.h".
2642 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2643 Delete prototypes.
2644 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2645 macros, moved from C source file.
2646 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2647 variable declarations.
2648
2649 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2650
2651 * s390-linux-nat.c: Include "regset.h".
2652 (regmap_gregset): Delete macro.
2653 (s390_64_regmap_gregset): New register map for
2654 regcache_supply/_collect_regset.
2655 (s390_64_gregset): New regset.
2656 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2657 (regmap_fpregset): Delete macro.
2658 (s390_native_supply, s390_native_collect): Delete functions.
2659 (supply_gregset, fill_gregset): Replace s390-specific regmap
2660 handling by a call to regcache_supply/_collect_regset.
2661 (supply_fpregset, fill_fpregset): Call regcache_supply/
2662 _collect_regset instead of s390_native_supply/_collect.
2663 (fetch_regset, store_regset): Likewise. Also change the last
2664 parameter to a regset instead of a regmap.
2665 (s390_linux_fetch_inferior_registers)
2666 (390_linux_store_inferior_registers): Adjust last parameter in
2667 calls to fetch_regset and store_regset.
2668 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2669 (s390_gregmap): ... this. Also make static const and convert to
2670 regcache_map_entry format.
2671 (s390x_regmap_gregset): Delete.
2672 (s390_regmap_fpregset): Rename to...
2673 (s390_fpregmap): ... this. Make static const and convert to
2674 regcache_map_entry format.
2675 (s390_regmap_upper, s390_regmap_last_break)
2676 (s390x_regmap_last_break, s390_regmap_system_call)
2677 (s390_regmap_tdb): Likewise.
2678 (s390_supply_regset, s390_collect_regset): Remove functions.
2679 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2680 s390_supply_regset.
2681 (s390_gregset, s390_fpregset, s390_upper_regset)
2682 (s390_last_break_regset, s390x_last_break_regset)
2683 (s390_system_call_regset, s390_tdb_regset): Make global and
2684 replace s390_supply/_collect_regset by regcache_supply/
2685 _collect_regset.
2686 (s390x_gregset): Delete.
2687 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2688 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2689 (s390_regmap_fpregset, s390_regmap_last_break)
2690 (s390x_regmap_last_break, s390_regmap_system_call)
2691 (s390_regmap_tdb): Delete global variable declarations.
2692 (s390_gregset, s390_fpregset, s390_last_break_regset)
2693 (s390x_last_break_regset, s390_system_call_regset)
2694 (s390_tdb_regset): New global variable declarations.
2695
2696 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2697
2698 * regcache.c: Include "regset.h".
2699 (regcache_transfer_regset): New local function.
2700 (regcache_supply_regset, regcache_collect_regset): New functions.
2701 * regcache.h (struct regcache_map_entry): New structure.
2702 (REGCACHE_MAP_SKIP): New enum value.
2703 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2704
2705 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2706
2707 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2708 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2709 (ppc_linux_collect_gregset ): Likewise.
2710 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2711 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2712 (ppc_collect_vrregset): Likewise.
2713 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2714 Likewise.
2715
2716 2014-08-07 Yao Qi <yao@codesourcery.com>
2717
2718 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2719 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2720 * remote.c (remote_read_bytes): Likewise.
2721
2722 2014-08-07 Yao Qi <yao@codesourcery.com>
2723
2724 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2725
2726 2014-08-07 Yao Qi <yao@codesourcery.com>
2727
2728 PR remote/17230
2729 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2730 TARGET_XFER_OK instead of 0.
2731
2732 2014-08-07 Gary Benson <gbenson@redhat.com>
2733
2734 * common/common-defs.h: Include errno.h.
2735 * defs.h: Do not include errno.h.
2736 * ada-typeprint.c: Likewise.
2737 * c-typeprint.c: Likewise.
2738 * core-regset.c: Likewise.
2739 * corefile.c: Likewise.
2740 * corelow.c: Likewise.
2741 * event-loop.c: Likewise.
2742 * f-typeprint.c: Likewise.
2743 * gnu-nat.c: Likewise.
2744 * go32-nat.c: Likewise.
2745 * i386gnu-nat.c: Likewise.
2746 * m2-typeprint.c: Likewise.
2747 * nat/linux-btrace.c: Likewise.
2748 * p-typeprint.c: Likewise.
2749 * procfs.c: Likewise.
2750 * remote-sim.c: Likewise.
2751 * rs6000-nat.c: Likewise.
2752 * target.c: Likewise.
2753 * typeprint.c: Likewise.
2754 * ui-file.c: Likewise.
2755 * valops.c: Likewise.
2756 * valprint.c: Likewise.
2757
2758 2014-08-07 Gary Benson <gbenson@redhat.com>
2759
2760 * common/common-defs.h: Include string.h.
2761 * aarch64-tdep.c: Do not include string.h.
2762 * ada-exp.y: Likewise.
2763 * ada-lang.c: Likewise.
2764 * ada-lex.l: Likewise.
2765 * ada-typeprint.c: Likewise.
2766 * ada-valprint.c: Likewise.
2767 * aix-thread.c: Likewise.
2768 * alpha-linux-tdep.c: Likewise.
2769 * alpha-mdebug-tdep.c: Likewise.
2770 * alpha-nat.c: Likewise.
2771 * alpha-osf1-tdep.c: Likewise.
2772 * alpha-tdep.c: Likewise.
2773 * alphanbsd-tdep.c: Likewise.
2774 * amd64-dicos-tdep.c: Likewise.
2775 * amd64-linux-tdep.c: Likewise.
2776 * amd64-nat.c: Likewise.
2777 * amd64-sol2-tdep.c: Likewise.
2778 * amd64fbsd-tdep.c: Likewise.
2779 * amd64obsd-tdep.c: Likewise.
2780 * arch-utils.c: Likewise.
2781 * arm-linux-nat.c: Likewise.
2782 * arm-linux-tdep.c: Likewise.
2783 * arm-tdep.c: Likewise.
2784 * arm-wince-tdep.c: Likewise.
2785 * armbsd-tdep.c: Likewise.
2786 * armnbsd-nat.c: Likewise.
2787 * armnbsd-tdep.c: Likewise.
2788 * armobsd-tdep.c: Likewise.
2789 * avr-tdep.c: Likewise.
2790 * ax-gdb.c: Likewise.
2791 * ax-general.c: Likewise.
2792 * bcache.c: Likewise.
2793 * bfin-tdep.c: Likewise.
2794 * breakpoint.c: Likewise.
2795 * build-id.c: Likewise.
2796 * buildsym.c: Likewise.
2797 * c-exp.y: Likewise.
2798 * c-lang.c: Likewise.
2799 * c-typeprint.c: Likewise.
2800 * c-valprint.c: Likewise.
2801 * charset.c: Likewise.
2802 * cli-out.c: Likewise.
2803 * cli/cli-cmds.c: Likewise.
2804 * cli/cli-decode.c: Likewise.
2805 * cli/cli-dump.c: Likewise.
2806 * cli/cli-interp.c: Likewise.
2807 * cli/cli-logging.c: Likewise.
2808 * cli/cli-script.c: Likewise.
2809 * cli/cli-setshow.c: Likewise.
2810 * cli/cli-utils.c: Likewise.
2811 * coffread.c: Likewise.
2812 * common/agent.c: Likewise.
2813 * common/buffer.c: Likewise.
2814 * common/buffer.h: Likewise.
2815 * common/common-utils.c: Likewise.
2816 * common/filestuff.c: Likewise.
2817 * common/filestuff.c: Likewise.
2818 * common/format.c: Likewise.
2819 * common/print-utils.c: Likewise.
2820 * common/rsp-low.c: Likewise.
2821 * common/signals.c: Likewise.
2822 * common/vec.h: Likewise.
2823 * common/xml-utils.c: Likewise.
2824 * core-regset.c: Likewise.
2825 * corefile.c: Likewise.
2826 * corelow.c: Likewise.
2827 * cp-abi.c: Likewise.
2828 * cp-name-parser.y: Likewise.
2829 * cp-support.c: Likewise.
2830 * cp-valprint.c: Likewise.
2831 * cris-tdep.c: Likewise.
2832 * d-exp.y: Likewise.
2833 * darwin-nat.c: Likewise.
2834 * dbxread.c: Likewise.
2835 * dcache.c: Likewise.
2836 * demangle.c: Likewise.
2837 * dicos-tdep.c: Likewise.
2838 * disasm.c: Likewise.
2839 * doublest.c: Likewise.
2840 * dsrec.c: Likewise.
2841 * dummy-frame.c: Likewise.
2842 * dwarf2-frame.c: Likewise.
2843 * dwarf2loc.c: Likewise.
2844 * dwarf2read.c: Likewise.
2845 * elfread.c: Likewise.
2846 * environ.c: Likewise.
2847 * eval.c: Likewise.
2848 * event-loop.c: Likewise.
2849 * exceptions.c: Likewise.
2850 * exec.c: Likewise.
2851 * expprint.c: Likewise.
2852 * f-exp.y: Likewise.
2853 * f-lang.c: Likewise.
2854 * f-typeprint.c: Likewise.
2855 * f-valprint.c: Likewise.
2856 * fbsd-nat.c: Likewise.
2857 * findcmd.c: Likewise.
2858 * findvar.c: Likewise.
2859 * fork-child.c: Likewise.
2860 * frame.c: Likewise.
2861 * frv-linux-tdep.c: Likewise.
2862 * frv-tdep.c: Likewise.
2863 * gdb.c: Likewise.
2864 * gdb_bfd.c: Likewise.
2865 * gdbarch.c: Likewise.
2866 * gdbarch.sh: Likewise.
2867 * gdbtypes.c: Likewise.
2868 * gnu-nat.c: Likewise.
2869 * gnu-v2-abi.c: Likewise.
2870 * gnu-v3-abi.c: Likewise.
2871 * go-exp.y: Likewise.
2872 * go-lang.c: Likewise.
2873 * go32-nat.c: Likewise.
2874 * guile/guile.c: Likewise.
2875 * guile/scm-auto-load.c: Likewise.
2876 * hppa-hpux-tdep.c: Likewise.
2877 * hppa-linux-nat.c: Likewise.
2878 * hppanbsd-tdep.c: Likewise.
2879 * hppaobsd-tdep.c: Likewise.
2880 * i386-cygwin-tdep.c: Likewise.
2881 * i386-dicos-tdep.c: Likewise.
2882 * i386-linux-tdep.c: Likewise.
2883 * i386-nto-tdep.c: Likewise.
2884 * i386-sol2-tdep.c: Likewise.
2885 * i386-tdep.c: Likewise.
2886 * i386bsd-tdep.c: Likewise.
2887 * i386gnu-nat.c: Likewise.
2888 * i386nbsd-tdep.c: Likewise.
2889 * i386obsd-tdep.c: Likewise.
2890 * i387-tdep.c: Likewise.
2891 * ia64-libunwind-tdep.c: Likewise.
2892 * ia64-linux-nat.c: Likewise.
2893 * inf-child.c: Likewise.
2894 * inf-ptrace.c: Likewise.
2895 * inf-ttrace.c: Likewise.
2896 * infcall.c: Likewise.
2897 * infcmd.c: Likewise.
2898 * inflow.c: Likewise.
2899 * infrun.c: Likewise.
2900 * interps.c: Likewise.
2901 * iq2000-tdep.c: Likewise.
2902 * irix5-nat.c: Likewise.
2903 * jv-exp.y: Likewise.
2904 * jv-lang.c: Likewise.
2905 * jv-typeprint.c: Likewise.
2906 * jv-valprint.c: Likewise.
2907 * language.c: Likewise.
2908 * linux-fork.c: Likewise.
2909 * linux-nat.c: Likewise.
2910 * lm32-tdep.c: Likewise.
2911 * m2-exp.y: Likewise.
2912 * m2-typeprint.c: Likewise.
2913 * m32c-tdep.c: Likewise.
2914 * m32r-linux-nat.c: Likewise.
2915 * m32r-linux-tdep.c: Likewise.
2916 * m32r-rom.c: Likewise.
2917 * m32r-tdep.c: Likewise.
2918 * m68hc11-tdep.c: Likewise.
2919 * m68k-tdep.c: Likewise.
2920 * m68kbsd-tdep.c: Likewise.
2921 * m68klinux-nat.c: Likewise.
2922 * m68klinux-tdep.c: Likewise.
2923 * m88k-tdep.c: Likewise.
2924 * machoread.c: Likewise.
2925 * macrocmd.c: Likewise.
2926 * main.c: Likewise.
2927 * mdebugread.c: Likewise.
2928 * mem-break.c: Likewise.
2929 * memattr.c: Likewise.
2930 * memory-map.c: Likewise.
2931 * mep-tdep.c: Likewise.
2932 * mi/mi-cmd-break.c: Likewise.
2933 * mi/mi-cmd-disas.c: Likewise.
2934 * mi/mi-cmd-env.c: Likewise.
2935 * mi/mi-cmd-stack.c: Likewise.
2936 * mi/mi-cmd-var.c: Likewise.
2937 * mi/mi-cmds.c: Likewise.
2938 * mi/mi-console.c: Likewise.
2939 * mi/mi-getopt.c: Likewise.
2940 * mi/mi-interp.c: Likewise.
2941 * mi/mi-main.c: Likewise.
2942 * mi/mi-parse.c: Likewise.
2943 * microblaze-rom.c: Likewise.
2944 * microblaze-tdep.c: Likewise.
2945 * mingw-hdep.c: Likewise.
2946 * minidebug.c: Likewise.
2947 * minsyms.c: Likewise.
2948 * mips-irix-tdep.c: Likewise.
2949 * mips-linux-tdep.c: Likewise.
2950 * mips-tdep.c: Likewise.
2951 * mips64obsd-tdep.c: Likewise.
2952 * mipsnbsd-tdep.c: Likewise.
2953 * mipsread.c: Likewise.
2954 * mn10300-linux-tdep.c: Likewise.
2955 * mn10300-tdep.c: Likewise.
2956 * monitor.c: Likewise.
2957 * moxie-tdep.c: Likewise.
2958 * mt-tdep.c: Likewise.
2959 * nat/linux-btrace.c: Likewise.
2960 * nat/linux-osdata.c: Likewise.
2961 * nat/linux-procfs.c: Likewise.
2962 * nat/linux-ptrace.c: Likewise.
2963 * nat/linux-waitpid.c: Likewise.
2964 * nbsd-tdep.c: Likewise.
2965 * nios2-linux-tdep.c: Likewise.
2966 * nto-procfs.c: Likewise.
2967 * nto-tdep.c: Likewise.
2968 * objc-lang.c: Likewise.
2969 * objfiles.c: Likewise.
2970 * opencl-lang.c: Likewise.
2971 * osabi.c: Likewise.
2972 * osdata.c: Likewise.
2973 * p-exp.y: Likewise.
2974 * p-lang.c: Likewise.
2975 * p-typeprint.c: Likewise.
2976 * parse.c: Likewise.
2977 * posix-hdep.c: Likewise.
2978 * ppc-linux-nat.c: Likewise.
2979 * ppc-sysv-tdep.c: Likewise.
2980 * ppcfbsd-tdep.c: Likewise.
2981 * ppcnbsd-tdep.c: Likewise.
2982 * ppcobsd-tdep.c: Likewise.
2983 * printcmd.c: Likewise.
2984 * procfs.c: Likewise.
2985 * prologue-value.c: Likewise.
2986 * python/py-auto-load.c: Likewise.
2987 * python/py-gdb-readline.c: Likewise.
2988 * ravenscar-thread.c: Likewise.
2989 * regcache.c: Likewise.
2990 * registry.c: Likewise.
2991 * remote-fileio.c: Likewise.
2992 * remote-m32r-sdi.c: Likewise.
2993 * remote-mips.c: Likewise.
2994 * remote-notif.c: Likewise.
2995 * remote-sim.c: Likewise.
2996 * remote.c: Likewise.
2997 * reverse.c: Likewise.
2998 * rs6000-aix-tdep.c: Likewise.
2999 * ser-base.c: Likewise.
3000 * ser-go32.c: Likewise.
3001 * ser-mingw.c: Likewise.
3002 * ser-pipe.c: Likewise.
3003 * ser-tcp.c: Likewise.
3004 * ser-unix.c: Likewise.
3005 * serial.c: Likewise.
3006 * sh-tdep.c: Likewise.
3007 * sh64-tdep.c: Likewise.
3008 * shnbsd-tdep.c: Likewise.
3009 * skip.c: Likewise.
3010 * sol-thread.c: Likewise.
3011 * solib-dsbt.c: Likewise.
3012 * solib-frv.c: Likewise.
3013 * solib-osf.c: Likewise.
3014 * solib-som.c: Likewise.
3015 * solib-spu.c: Likewise.
3016 * solib-target.c: Likewise.
3017 * solib.c: Likewise.
3018 * somread.c: Likewise.
3019 * source.c: Likewise.
3020 * sparc-nat.c: Likewise.
3021 * sparc-sol2-tdep.c: Likewise.
3022 * sparc-tdep.c: Likewise.
3023 * sparc64-tdep.c: Likewise.
3024 * sparc64fbsd-tdep.c: Likewise.
3025 * sparc64nbsd-tdep.c: Likewise.
3026 * sparcnbsd-tdep.c: Likewise.
3027 * spu-linux-nat.c: Likewise.
3028 * spu-multiarch.c: Likewise.
3029 * spu-tdep.c: Likewise.
3030 * stabsread.c: Likewise.
3031 * stack.c: Likewise.
3032 * std-regs.c: Likewise.
3033 * symfile.c: Likewise.
3034 * symmisc.c: Likewise.
3035 * symtab.c: Likewise.
3036 * target.c: Likewise.
3037 * thread.c: Likewise.
3038 * tilegx-linux-nat.c: Likewise.
3039 * tilegx-tdep.c: Likewise.
3040 * top.c: Likewise.
3041 * tracepoint.c: Likewise.
3042 * tui/tui-command.c: Likewise.
3043 * tui/tui-data.c: Likewise.
3044 * tui/tui-disasm.c: Likewise.
3045 * tui/tui-file.c: Likewise.
3046 * tui/tui-layout.c: Likewise.
3047 * tui/tui-out.c: Likewise.
3048 * tui/tui-regs.c: Likewise.
3049 * tui/tui-source.c: Likewise.
3050 * tui/tui-stack.c: Likewise.
3051 * tui/tui-win.c: Likewise.
3052 * tui/tui-windata.c: Likewise.
3053 * tui/tui-winsource.c: Likewise.
3054 * typeprint.c: Likewise.
3055 * ui-file.c: Likewise.
3056 * ui-out.c: Likewise.
3057 * user-regs.c: Likewise.
3058 * utils.c: Likewise.
3059 * v850-tdep.c: Likewise.
3060 * valarith.c: Likewise.
3061 * valops.c: Likewise.
3062 * valprint.c: Likewise.
3063 * value.c: Likewise.
3064 * varobj.c: Likewise.
3065 * vax-tdep.c: Likewise.
3066 * vaxnbsd-tdep.c: Likewise.
3067 * vaxobsd-tdep.c: Likewise.
3068 * windows-nat.c: Likewise.
3069 * xcoffread.c: Likewise.
3070 * xml-support.c: Likewise.
3071 * xstormy16-tdep.c: Likewise.
3072 * xtensa-linux-nat.c: Likewise.
3073
3074 2014-08-07 Gary Benson <gbenson@redhat.com>
3075
3076 * common/common-defs.h: Include gdb_assert.h.
3077 * aarch64-tdep.c: Do not include gdb_assert.h.
3078 * addrmap.c: Likewise.
3079 * aix-thread.c: Likewise.
3080 * alpha-linux-tdep.c: Likewise.
3081 * alpha-mdebug-tdep.c: Likewise.
3082 * alphanbsd-tdep.c: Likewise.
3083 * amd64-nat.c: Likewise.
3084 * amd64-tdep.c: Likewise.
3085 * amd64bsd-nat.c: Likewise.
3086 * amd64fbsd-nat.c: Likewise.
3087 * amd64fbsd-tdep.c: Likewise.
3088 * amd64nbsd-nat.c: Likewise.
3089 * amd64nbsd-tdep.c: Likewise.
3090 * amd64obsd-nat.c: Likewise.
3091 * amd64obsd-tdep.c: Likewise.
3092 * arch-utils.c: Likewise.
3093 * arm-tdep.c: Likewise.
3094 * armbsd-tdep.c: Likewise.
3095 * auxv.c: Likewise.
3096 * bcache.c: Likewise.
3097 * bfin-tdep.c: Likewise.
3098 * blockframe.c: Likewise.
3099 * breakpoint.c: Likewise.
3100 * bsd-kvm.c: Likewise.
3101 * bsd-uthread.c: Likewise.
3102 * buildsym.c: Likewise.
3103 * c-exp.y: Likewise.
3104 * c-lang.c: Likewise.
3105 * charset.c: Likewise.
3106 * cleanups.c: Likewise.
3107 * cli-out.c: Likewise.
3108 * cli/cli-decode.c: Likewise.
3109 * cli/cli-dump.c: Likewise.
3110 * cli/cli-logging.c: Likewise.
3111 * cli/cli-script.c: Likewise.
3112 * cli/cli-utils.c: Likewise.
3113 * coffread.c: Likewise.
3114 * common/common-utils.c: Likewise.
3115 * common/queue.h: Likewise.
3116 * common/signals.c: Likewise.
3117 * common/vec.h: Likewise.
3118 * complaints.c: Likewise.
3119 * completer.c: Likewise.
3120 * corelow.c: Likewise.
3121 * cp-abi.c: Likewise.
3122 * cp-name-parser.y: Likewise.
3123 * cp-namespace.c: Likewise.
3124 * cp-support.c: Likewise.
3125 * cris-tdep.c: Likewise.
3126 * dbxread.c: Likewise.
3127 * dictionary.c: Likewise.
3128 * doublest.c: Likewise.
3129 * dsrec.c: Likewise.
3130 * dummy-frame.c: Likewise.
3131 * dwarf2-frame-tailcall.c: Likewise.
3132 * dwarf2-frame.c: Likewise.
3133 * dwarf2expr.c: Likewise.
3134 * dwarf2loc.c: Likewise.
3135 * dwarf2read.c: Likewise.
3136 * eval.c: Likewise.
3137 * event-loop.c: Likewise.
3138 * exceptions.c: Likewise.
3139 * expprint.c: Likewise.
3140 * f-valprint.c: Likewise.
3141 * fbsd-nat.c: Likewise.
3142 * findvar.c: Likewise.
3143 * frame-unwind.c: Likewise.
3144 * frame.c: Likewise.
3145 * frv-tdep.c: Likewise.
3146 * gcore.c: Likewise.
3147 * gdb-dlfcn.c: Likewise.
3148 * gdb_bfd.c: Likewise.
3149 * gdbarch.c: Likewise.
3150 * gdbarch.sh: Likewise.
3151 * gdbtypes.c: Likewise.
3152 * gnu-nat.c: Likewise.
3153 * gnu-v3-abi.c: Likewise.
3154 * go-lang.c: Likewise.
3155 * guile/scm-exception.c: Likewise.
3156 * guile/scm-gsmob.c: Likewise.
3157 * guile/scm-lazy-string.c: Likewise.
3158 * guile/scm-math.c: Likewise.
3159 * guile/scm-pretty-print.c: Likewise.
3160 * guile/scm-safe-call.c: Likewise.
3161 * guile/scm-utils.c: Likewise.
3162 * guile/scm-value.c: Likewise.
3163 * h8300-tdep.c: Likewise.
3164 * hppa-hpux-nat.c: Likewise.
3165 * hppa-tdep.c: Likewise.
3166 * hppanbsd-tdep.c: Likewise.
3167 * hppaobsd-tdep.c: Likewise.
3168 * i386-darwin-nat.c: Likewise.
3169 * i386-darwin-tdep.c: Likewise.
3170 * i386-nto-tdep.c: Likewise.
3171 * i386-tdep.c: Likewise.
3172 * i386bsd-nat.c: Likewise.
3173 * i386fbsd-tdep.c: Likewise.
3174 * i386gnu-nat.c: Likewise.
3175 * i386nbsd-tdep.c: Likewise.
3176 * i386obsd-tdep.c: Likewise.
3177 * i387-tdep.c: Likewise.
3178 * ia64-libunwind-tdep.c: Likewise.
3179 * ia64-tdep.c: Likewise.
3180 * inf-ptrace.c: Likewise.
3181 * inf-ttrace.c: Likewise.
3182 * infcall.c: Likewise.
3183 * infcmd.c: Likewise.
3184 * infrun.c: Likewise.
3185 * inline-frame.c: Likewise.
3186 * interps.c: Likewise.
3187 * jv-lang.c: Likewise.
3188 * jv-typeprint.c: Likewise.
3189 * linux-fork.c: Likewise.
3190 * linux-nat.c: Likewise.
3191 * linux-thread-db.c: Likewise.
3192 * m32c-tdep.c: Likewise.
3193 * m32r-linux-nat.c: Likewise.
3194 * m32r-tdep.c: Likewise.
3195 * m68k-tdep.c: Likewise.
3196 * m68kbsd-nat.c: Likewise.
3197 * m68kbsd-tdep.c: Likewise.
3198 * m88k-tdep.c: Likewise.
3199 * machoread.c: Likewise.
3200 * macroexp.c: Likewise.
3201 * macrotab.c: Likewise.
3202 * maint.c: Likewise.
3203 * mdebugread.c: Likewise.
3204 * memory-map.c: Likewise.
3205 * mep-tdep.c: Likewise.
3206 * mi/mi-common.c: Likewise.
3207 * microblaze-tdep.c: Likewise.
3208 * mingw-hdep.c: Likewise.
3209 * mips-linux-nat.c: Likewise.
3210 * mips-linux-tdep.c: Likewise.
3211 * mips-tdep.c: Likewise.
3212 * mips64obsd-tdep.c: Likewise.
3213 * mipsnbsd-tdep.c: Likewise.
3214 * mn10300-linux-tdep.c: Likewise.
3215 * mn10300-tdep.c: Likewise.
3216 * moxie-tdep.c: Likewise.
3217 * mt-tdep.c: Likewise.
3218 * nat/linux-btrace.c: Likewise.
3219 * nat/linux-osdata.c: Likewise.
3220 * nat/linux-ptrace.c: Likewise.
3221 * nat/mips-linux-watch.c: Likewise.
3222 * nios2-linux-tdep.c: Likewise.
3223 * nios2-tdep.c: Likewise.
3224 * objc-lang.c: Likewise.
3225 * objfiles.c: Likewise.
3226 * obsd-nat.c: Likewise.
3227 * opencl-lang.c: Likewise.
3228 * osabi.c: Likewise.
3229 * parse.c: Likewise.
3230 * ppc-linux-nat.c: Likewise.
3231 * ppc-sysv-tdep.c: Likewise.
3232 * ppcfbsd-nat.c: Likewise.
3233 * ppcfbsd-tdep.c: Likewise.
3234 * ppcnbsd-nat.c: Likewise.
3235 * ppcnbsd-tdep.c: Likewise.
3236 * ppcobsd-nat.c: Likewise.
3237 * ppcobsd-tdep.c: Likewise.
3238 * printcmd.c: Likewise.
3239 * procfs.c: Likewise.
3240 * prologue-value.c: Likewise.
3241 * psymtab.c: Likewise.
3242 * python/py-lazy-string.c: Likewise.
3243 * python/py-value.c: Likewise.
3244 * regcache.c: Likewise.
3245 * reggroups.c: Likewise.
3246 * registry.c: Likewise.
3247 * remote-sim.c: Likewise.
3248 * remote.c: Likewise.
3249 * rs6000-aix-tdep.c: Likewise.
3250 * rs6000-tdep.c: Likewise.
3251 * s390-linux-tdep.c: Likewise.
3252 * score-tdep.c: Likewise.
3253 * ser-base.c: Likewise.
3254 * ser-mingw.c: Likewise.
3255 * sh-tdep.c: Likewise.
3256 * sh64-tdep.c: Likewise.
3257 * solib-darwin.c: Likewise.
3258 * solib-spu.c: Likewise.
3259 * solib-svr4.c: Likewise.
3260 * source.c: Likewise.
3261 * sparc-nat.c: Likewise.
3262 * sparc-sol2-tdep.c: Likewise.
3263 * sparc-tdep.c: Likewise.
3264 * sparc64-sol2-tdep.c: Likewise.
3265 * sparc64-tdep.c: Likewise.
3266 * sparc64fbsd-tdep.c: Likewise.
3267 * sparc64nbsd-tdep.c: Likewise.
3268 * sparc64obsd-tdep.c: Likewise.
3269 * sparcnbsd-tdep.c: Likewise.
3270 * sparcobsd-tdep.c: Likewise.
3271 * spu-multiarch.c: Likewise.
3272 * spu-tdep.c: Likewise.
3273 * stabsread.c: Likewise.
3274 * stack.c: Likewise.
3275 * symfile.c: Likewise.
3276 * symtab.c: Likewise.
3277 * target-descriptions.c: Likewise.
3278 * target-memory.c: Likewise.
3279 * target.c: Likewise.
3280 * tic6x-linux-tdep.c: Likewise.
3281 * tic6x-tdep.c: Likewise.
3282 * tilegx-linux-nat.c: Likewise.
3283 * tilegx-tdep.c: Likewise.
3284 * top.c: Likewise.
3285 * tramp-frame.c: Likewise.
3286 * tui/tui-out.c: Likewise.
3287 * tui/tui-winsource.c: Likewise.
3288 * ui-out.c: Likewise.
3289 * user-regs.c: Likewise.
3290 * utils.c: Likewise.
3291 * v850-tdep.c: Likewise.
3292 * valops.c: Likewise.
3293 * value.c: Likewise.
3294 * varobj.c: Likewise.
3295 * vax-nat.c: Likewise.
3296 * xml-syscall.c: Likewise.
3297 * xml-tdesc.c: Likewise.
3298 * xstormy16-tdep.c: Likewise.
3299 * xtensa-linux-nat.c: Likewise.
3300 * xtensa-tdep.c: Likewise.
3301
3302 2014-08-07 Gary Benson <gbenson@redhat.com>
3303
3304 * common/common-defs.h: Include common-utils.h.
3305 * defs.h: Do not include common-utils.h.
3306 * common/gdb_assert.h: Likewise.
3307 * darwin-nat.h: Likewise.
3308 * nat/linux-btrace.c: Likewise.
3309 * target/waitstatus.h: Likewise.
3310
3311 2014-08-07 Gary Benson <gbenson@redhat.com>
3312
3313 * common/common-defs.h: Include ptid.h.
3314 * defs.h: Do not include ptid.h.
3315 * inferior.h: Likewise.
3316 * infrun.h: Likewise.
3317 * nat/linux-btrace.h: Likewise.
3318 * nat/linux-osdata.h: Likewise.
3319 * target/waitstatus.h: Likewise.
3320
3321 2014-08-07 Gary Benson <gbenson@redhat.com>
3322
3323 * common/common-defs.h: Include gdb_locale.h.
3324 * defs.h: Do not include gdb_locale.h.
3325
3326 2014-08-07 Gary Benson <gbenson@redhat.com>
3327
3328 * common/common-defs.h: Include gdb/signals.h.
3329 * defs.h: Do not include gdb/signals.h.
3330
3331 2014-08-07 Gary Benson <gbenson@redhat.com>
3332
3333 * common/common-defs.h: Include pathmax.h.
3334 * defs.h: Do not include pathmax.h.
3335
3336 2014-08-07 Gary Benson <gbenson@redhat.com>
3337
3338 * common/common-defs.h: Include libiberty.h.
3339 * defs.h: Do not include libiberty.h.
3340 * common/queue.h: Likewise.
3341 * cp-name-parser.y: Likewise.
3342 * mi/mi-cmd-catch.c: Likewise.
3343 * python/python.c: Likewise.
3344
3345 2014-08-07 Gary Benson <gbenson@redhat.com>
3346
3347 * common/common-defs.h: Include ansidecl.h.
3348 * defs.h: Do not include ansidecl.h.
3349 * common/buffer.h: Likewise.
3350 * common/common-utils.h: Likewise.
3351
3352 2014-08-07 Gary Benson <gbenson@redhat.com>
3353
3354 * common/common-defs.h: Include stddef.h.
3355 * defs.h: Do not include stddef.h.
3356 * common/common-utils.h: Likewise.
3357 * amd64fbsd-nat.c: Likewise.
3358 * bcache.c: Likewise.
3359 * charset.c: Likewise.
3360 * common/buffer.h: Likewise.
3361 * common/vec.h: Likewise.
3362 * i386bsd-nat.c: Likewise.
3363 * nat/linux-btrace.h: Likewise.
3364 * ppcfbsd-nat.c: Likewise.
3365 * ppcnbsd-tdep.h: Likewise.
3366 * ppcobsd-nat.c: Likewise.
3367 * ppcobsd-tdep.h: Likewise.
3368 * python/py-gdb-readline.c: Likewise.
3369
3370 2014-08-07 Gary Benson <gbenson@redhat.com>
3371
3372 * common/common-defs.h: Include stdarg.h.
3373 * defs.h: Do not include stdarg.h.
3374 * ada-lang.c: Likewise.
3375 * common/common-utils.h: Likewise.
3376 * guile/scm-string.c: Likewise.
3377 * guile/scm-utils.c: Likewise.
3378 * m32c-tdep.c: Likewise.
3379
3380 2014-08-07 Gary Benson <gbenson@redhat.com>
3381
3382 * common/common-defs.h: Include stdlib.h.
3383 * defs.h: Do not include stdlib.h.
3384 * addrmap.c: Likewise.
3385 * bcache.c: Likewise.
3386 * common/buffer.c: Likewise.
3387 * common/common-utils.c: Likewise.
3388 * cp-name-parser.y: Likewise.
3389 * go32-nat.c: Likewise.
3390 * mn10300-linux-tdep.c: Likewise.
3391 * nat/linux-osdata.c: Likewise.
3392 * tui/tui.c: Likewise.
3393 * windows-nat.c: Likewise.
3394
3395 2014-08-07 Gary Benson <gbenson@redhat.com>
3396
3397 * common/common-defs.h: Include stdio.h.
3398 * defs.h: Do not include stdio.h.
3399 * ada-lang.c: Likewise.
3400 * common/buffer.c: Likewise.
3401 * common/common-utils.c: Likewise.
3402 * cp-name-parser.y: Likewise.
3403 * gnu-nat.c: Likewise.
3404 * go32-nat.c: Likewise.
3405 * i386gnu-nat.c: Likewise.
3406 * proc-api.c: Likewise.
3407 * proc-events.c: Likewise.
3408 * proc-flags.c: Likewise.
3409 * proc-why.c: Likewise.
3410 * python/python-internal.h: Likewise.
3411 * target-memory.c: Likewise.
3412 * tui/tui-io.c: Likewise.
3413 * tui/tui.c: Likewise.
3414
3415 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3416
3417 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3418 (scan_dyntag_auxv): Same.
3419
3420 2014-08-06 Yao Qi <yao@codesourcery.com>
3421
3422 * amd64-linux-nat.c: Remove duplicated include
3423 "x86-linux-nat.h".
3424 * i386-linux-nat.c: Likewise.
3425
3426 2014-08-06 Yao Qi <yao@codesourcery.com>
3427
3428 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3429 operand" with "Special opcode" in comments.
3430
3431 2014-08-05 Gary Benson <gbenson@redhat.com>
3432
3433 * interps.c (initialize_interps): Remove prototype.
3434 (interpreter_initialized): Remove static global.
3435 (interp_add): Do not call initialize_interps.
3436 (initialize_interps): Remove function.
3437
3438 2014-08-05 Gary Benson <gbenson@redhat.com>
3439
3440 * utils.c (vwarning): Remove spurious va_end.
3441
3442 2014-08-05 Alan Modra <amodra@gmail.com>
3443
3444 * charset.c (convert_between_encodings): Cast result of obstack_base.
3445 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3446 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3447 (read_unwind_info): Use size_t for some locals.
3448 * jit.c (finalize_symtab): Likewise.
3449 * utils.c (hashtab_obstack_allocate): Likewise.
3450 * symmisc.c (print_objfile_statistics): Update format strings.
3451
3452 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3453
3454 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3455 (Changes in GDB 7.8): ... here.
3456
3457 2014-08-04 Tom Tromey <tromey@redhat.com>
3458
3459 * target.c (set_targetdebug): New function.
3460 (initialize_targets): Pass set_targetdebug when creating "set
3461 debug target".
3462
3463 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3464
3465 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3466 if detecting a variable-sized field that is not the last field.
3467 Fix struct type length computation.
3468
3469 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3470
3471 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3472 Add debug trace.
3473
3474 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3475
3476 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3477 Remove "+ 8" offset in computation of CHAIN_VMA.
3478
3479 2014-07-31 Doug Evans <dje@google.com>
3480
3481 * inflow.c (child_terminal_inferior): Add comment.
3482 (child_terminal_ours_for_output): Add comment.
3483 (child_terminal_ours): Add comment.
3484 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3485 (linux_nat_terminal_ours): Add comment.
3486
3487 2014-07-31 Gary Benson <gbenson@redhat.com>
3488
3489 * common/btrace-common.h: Do not include defs.h or server.h.
3490 * nat/mips-linux-watch.h: Likewise.
3491 * gdb-dlfcn.h: Do not include defs.h.
3492 * tracefile.h: Likewise.
3493
3494 2014-07-30 Roland McGrath <mcgrathr@google.com>
3495
3496 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3497
3498 2014-07-30 Tom Tromey <tromey@redhat.com>
3499
3500 * bsd-kvm.c (bsd_kvm_open): Constify.
3501 * corelow.c (core_open): Constify.
3502 * ctf.c (ctf_open): Constify.
3503 * dbug-rom.c (dbug_open): Constify.
3504 * exec.c (exec_open): Constify.
3505 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3506 * microblaze-rom.c (picobug_open): Constify.
3507 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3508 Constify.
3509 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3510 * record-btrace.c (record_btrace_open): Constify.
3511 * record-full.c (record_full_core_open_1, record_full_open_1)
3512 (record_full_open): Constify.
3513 * remote-m32r-sdi.c (m32r_open): Constify.
3514 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3515 (rockhopper_open, lsi_open): Constify.
3516 * remote-sim.c (gdbsim_open): Constify.
3517 * remote.c (remote_open, extended_remote_open, remote_open_1):
3518 Constify.
3519 * target.h (struct target_ops) <to_open>: Make "arg" const.
3520 * tracefile-tfile.c (tfile_open): Constify.
3521
3522 2014-07-30 Tom Tromey <tromey@redhat.com>
3523
3524 * breakpoint.c (map_breakpoint_numbers): Update.
3525 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3526 (get_number_const): New function.
3527 (get_number): Rewrite using get_number_const.
3528 (init_number_or_range): Make "string" const.
3529 (number_is_in_list): Make "list" const.
3530 * cli/cli-utils.h (get_number_const): Declare.
3531 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3532 (init_number_or_range, number_is_in_list): Update.
3533 * printcmd.c (map_display_numbers): Update.
3534 * value.c (value_from_history_ref): Constify.
3535 * value.h (value_from_history_ref): Update.
3536
3537 2014-07-30 Tom Tromey <tromey@redhat.com>
3538
3539 * corefile.c (hook_type, call_extra_exec_file_hooks)
3540 (specify_exec_file_hook): Constify.
3541 * exec.c (exec_file_attach): Make "filename" const.
3542 * gdbcore.h (deprecated_exec_file_display_hook)
3543 (specify_exec_file_hook, exec_file_attach): Constify.
3544 * main.c (captured_main): Use catch_command_errors_const.
3545
3546 2014-07-30 Tom Tromey <tromey@redhat.com>
3547
3548 * target.c (open_target): New function.
3549 (add_target_with_completer, add_deprecated_target_alias): Use
3550 set_cmd_sfunc, set_cmd_context.
3551 (debug_to_open): Remove.
3552 (setup_target_debug): Update.
3553
3554 2014-07-30 Yao Qi <yao@codesourcery.com>
3555
3556 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3557 comments.
3558 * parse.c (exp_iterate): Update comments.
3559
3560 2014-07-30 Gary Benson <gbenson@redhat.com>
3561
3562 * common/common-defs.h: New file.
3563 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3564 * defs.h: Include common-defs.h.
3565 Do not include config.h or build-gnulib/config.h.
3566
3567 2014-07-30 Gary Benson <gbenson@redhat.com>
3568
3569 * common/common-utils.h: Do not include config.h.
3570 * nat/linux-btrace.h: Likewise.
3571
3572 2014-07-30 Gary Benson <gbenson@redhat.com>
3573
3574 * btrace.c: Include defs.h.
3575 * common/ptid.c: Include defs.h or server.h as appropriate.
3576 * nat/mips-linux-watch.c: Likewise.
3577
3578 2014-07-29 Tom Tromey <tromey@redhat.com>
3579
3580 * target.c (target_is_pushed): Simplify.
3581
3582 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3583
3584 GDB 7.8 released.
3585
3586 2014-07-29 Yao Qi <yao@codesourcery.com>
3587
3588 PR gdb/17206
3589 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3590
3591 2014-07-28 Doug Evans <xdje42@gmail.com>
3592
3593 PR guile/17203
3594 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3595 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3596 parameters.
3597
3598 2014-07-28 Will Newton <will.newton@linaro.org>
3599
3600 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3601 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3602 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3603 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3604 (THUMB2_EABI_SYSCALL): Likewise.
3605 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3606 struct tramp_frame.
3607 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3608 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3609
3610 2014-07-27 Doug Evans <xdje42@gmail.com>
3611
3612 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3613
3614 2014-07-27 Doug Evans <xdje42@gmail.com>
3615
3616 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3617
3618 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3619 Doug Evans <xdje42@gmail.com>
3620
3621 PR guile/17146
3622 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3623 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3624 * configure.ac: Try to use guild to compile an scm file, if it fails
3625 then disable guile support.
3626 * configure: Regenerate.
3627 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3628 GUILE_FILE_LIST.
3629 (GUILE_COMPILED_FILES): New variable.
3630 (GUILE_FILES) Update.
3631 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3632 (stamp-guile): Compile scm files.
3633 * guile/guile.c (boot_guile_support): New function.
3634 (standard_throw_args_p): New function.
3635 (print_standard_throw_error, print_throw_error): New functions.
3636 (handle_boot_error): New function.
3637 (initialize_scheme_side): Rewrite to call boot_guile_support.
3638 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3639 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3640
3641 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3642 Doug Evans <xdje42@gmail.com>
3643
3644 PR guile/17146
3645 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3646 * guile/lib/gdb/support.scm: New file.
3647 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3648 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3649 All uses updated.
3650 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3651 All uses updated.
3652 (%assert-type): Ditto, and renamed to assert-type.
3653 (%exception-print-style): Delete.
3654
3655 2014-07-26 Doug Evans <xdje42@gmail.com>
3656
3657 PR build/17105
3658 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3659 * configure: Regenerate.
3660 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3661 PYTHON_FILES.
3662 (PYTHON_FILES): New variable.
3663 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3664 (GUILE_FILES): New variable.
3665 (stamp-python, install-python, uninstall-python): Handle empty
3666 file list.
3667 (stamp-guile, install-guile, uninstall-guile): Ditto.
3668
3669 2014-07-26 Doug Evans <xdje42@gmail.com>
3670
3671 PR guile/17177
3672 * guile/lib/gdb.scm (pretty-printers): Export.
3673 (set-pretty-printers!): Export.
3674 * guile/lib/gdb/printing.scm (gdb module): Update.
3675 (prepend-pretty-printer!, append-pretty-printer!): Update.
3676 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3677 (pretty_printer_list_var): Delete.
3678 (pretty_printer_list): New static global.
3679 (gdbscm_pretty_printers): New function.
3680 (gdbscm_set_pretty_printers_x): New function.
3681 (ppscm_find_pretty_printer_from_gdb): Update.
3682 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3683 (gdbscm_initialize_pretty_printers): Update.
3684
3685 2014-07-26 Doug Evans <xdje42@gmail.com>
3686
3687 PR 17185
3688 * configure.ac: Add check for header gc/gc.h.
3689 Add check for function setenv.
3690 * configure: Regenerate.
3691 * config.in: Regenerate.
3692 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3693
3694 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3695
3696 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3697 variation in gdbarch matching.
3698
3699 2014-07-25 Tom Tromey <tromey@redhat.com>
3700
3701 * exec.c (using_exec_ops): Remove.
3702 (exec_close_1): Update. Remove extraneous block, reindent.
3703 (add_target_sections): Use target_is_pushed.
3704
3705 2014-07-25 Pedro Alves <palves@redhat.com>
3706
3707 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3708 * monitor.c (monitor_create_inferior): Likewise.
3709 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3710 * remote-sim.c (gdbsim_create_inferior): Likewise.
3711 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3712 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3713 * windows-nat.c (do_initial_windows_stuff): Likewise.
3714
3715 2014-07-25 Pedro Alves <palves@redhat.com>
3716
3717 * NEWS: Mention signal passing and "signal" command changes.
3718 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3719 comment.
3720 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3721 call.
3722 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3723 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3724 (jump_command): Adjust clear_proceed_status call.
3725 (signal_command): Warn if other thread that are resumed have
3726 signals that will be delivered. Adjust clear_proceed_status call.
3727 (until_next_command, finish_command)
3728 (proceed_after_attach_callback, attach_command_post_wait)
3729 (attach_command): Adjust clear_proceed_status call.
3730 * infrun.c (proceed_after_vfork_done): Likewise.
3731 (proceed_after_attach_callback): Adjust comment.
3732 (clear_proceed_status_thread): Clear stop_signal if not in pass
3733 state.
3734 (clear_proceed_status_callback): Delete.
3735 (clear_proceed_status): New 'step' parameter. Only clear the
3736 proceed status of threads the command being prepared is about to
3737 resume.
3738 (proceed): If passed in an explicit signal, override stop_signal
3739 with it. Don't pass the last stop signal to the thread we're
3740 resuming.
3741 (init_wait_for_inferior): Adjust clear_proceed_status call.
3742 (switch_back_to_stepped_thread): Clear the signal if it should not
3743 be passed.
3744 * infrun.h (clear_proceed_status): New 'step' parameter.
3745 (user_visible_resume_ptid): Add comment.
3746 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3747 signal is in pass state.
3748 * remote.c (append_pending_thread_resumptions): Likewise.
3749 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3750
3751 2014-07-25 Tom Tromey <tromey@redhat.com>
3752
3753 * target.h (target_stopped_data_address)
3754 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3755 parentheses.
3756
3757 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3758
3759 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3760 comments.
3761 (avr_pointer_to_address): Likewise.
3762
3763 2014-07-24 Tom Tromey <tromey@redhat.com>
3764
3765 * monitor.c (compile_pattern): Update.
3766 * target.h (struct target_ops) <to_shortname, to_longname,
3767 to_doc>: Now const.
3768
3769 2014-07-24 Tom Tromey <tromey@redhat.com>
3770
3771 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3772 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3773 (add_info_alias, add_com): Make "doc" const.
3774 (print_doc_line): Make "str" const.
3775 (delete_cmd): Update.
3776 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3777 (print_doc_line): Update.
3778 * cli/cli-script.c (document_command): Update.
3779 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3780 (add_com, add_info, add_info_alias): Update.
3781 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3782 * python/py-cmd.c (cmdpy_destroyer): Update.
3783
3784 2014-07-24 Tom Tromey <tromey@redhat.com>
3785
3786 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3787 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3788 (help_cmd_list): Constify.
3789 (lookup_cmd): Update.
3790 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3791 const.
3792 (help_cmd_list, apropos_cmd): Update.
3793 * cli/cli-script.c (show_user): Update.
3794 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3795 * cli/cli-setshow.h (cmd_show_list): Update.
3796 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3797 (cmd_show_list): Update.
3798 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3799 * python/py-cmd.c (cmdpy_destroyer): Update.
3800
3801 2014-07-24 Tom Tromey <tromey@redhat.com>
3802
3803 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3804 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3805 const.
3806 * command.h (deprecate_cmd): Update.
3807 * maint.c (maintenance_do_deprecate): Add casts.
3808
3809 2014-07-24 Tom Tromey <tromey@redhat.com>
3810
3811 * cli/cli-decode.c (help_cmd): Make parameter "const".
3812 * cli/cli-decode.h (help_cmd): Update.
3813
3814 2014-07-24 Tom Tromey <tromey@redhat.com>
3815
3816 * stack.c (up_silently_base, down_silently_base): Make argument
3817 const.
3818
3819 2014-07-24 Tom Tromey <tromey@redhat.com>
3820
3821 * solib.c (solib_add): Make "pattern" const.
3822 * solib.h (solib_add): Update.
3823
3824 2014-07-24 Tom Tromey <tromey@redhat.com>
3825
3826 * remote.c (remote_serial_open, print_packet, putpkt)
3827 (putpkt_binary): Constify.
3828 * remote.h (putpkt): Update.
3829
3830 2014-07-24 Tom Tromey <tromey@redhat.com>
3831
3832 * monitor.c (monitor_open): Make "args" const.
3833 * monitor.h (monitor_open): Update.
3834
3835 2014-07-24 Tom Tromey <tromey@redhat.com>
3836
3837 * maint.c (match_bfd_flags): Make "string" const.
3838 (print_bfd_section_info): Remove casts.
3839 (print_objfile_section_info): Make "string" const.
3840
3841 2014-07-24 Tom Tromey <tromey@redhat.com>
3842
3843 * inf-child.c (inf_child_open_target): Make "arg" const.
3844 * inf-child.h (inf_child_open_target): Update.
3845
3846 2014-07-24 Tom Tromey <tromey@redhat.com>
3847
3848 * environ.c (unset_in_environ): Make "var" const.
3849 * environ.h (unset_in_environ): Update.
3850
3851 2014-07-24 Tom Tromey <tromey@redhat.com>
3852
3853 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3854 Make "cmd" const.
3855 (scan_filename_with_cleanup): Likewise.
3856 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3857 Make arguments const.
3858 (restore_command): Update.
3859
3860 2014-07-24 Pedro Alves <palves@redhat.com>
3861
3862 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3863
3864 2014-07-24 Tom Tromey <tromey@redhat.com>
3865 Gary Benson <gbenson@redhat.com>
3866
3867 * nat/linux-ptrace.c (additional_flags): New global.
3868 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3869 additional_flags; don't check GDBSERVER.
3870 (linux_ptrace_set_additional_flags): New function.
3871 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3872 Declare.
3873 * linux-nat.c (_initialize_linux_nat): Call
3874 linux_ptrace_set_additional_flags.
3875
3876 2014-07-24 Tom Tromey <tromey@redhat.com>
3877
3878 * make-target-delegates (munge_type, write_debugmethod): New
3879 functions.
3880 (debug_names): New global.
3881 ($TARGET_DEBUG_PRINTER): New global.
3882 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3883 name.
3884 Write debug methods. Generate init_debug_target.
3885 * target-debug.h: New file.
3886 * target-delegates.c: Rebuild.
3887 * target.c: Include target-debug.h.
3888 (debug_target): Hoist definition.
3889 (target_kill, target_get_section_table, target_memory_map)
3890 (target_flash_erase, target_flash_done, target_detach)
3891 (target_disconnect, target_wait, target_resume)
3892 (target_pass_signals, target_program_signals, target_follow_fork)
3893 (target_mourn_inferior, target_search_memory)
3894 (target_thread_address_space, target_close)
3895 (target_find_new_threads, target_core_of_thread)
3896 (target_verify_memory, target_insert_mask_watchpoint)
3897 (target_remove_mask_watchpoint): Remove targetdebug code.
3898 (debug_to_post_attach, debug_to_prepare_to_store)
3899 (debug_to_files_info, debug_to_insert_breakpoint)
3900 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3901 (debug_to_region_ok_for_hw_watchpoint)
3902 (debug_to_can_accel_watchpoint_condition)
3903 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3904 (debug_to_watchpoint_addr_within_range)
3905 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3906 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3907 (debug_to_terminal_init, debug_to_terminal_inferior)
3908 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3909 (debug_to_terminal_save_ours, debug_to_terminal_info)
3910 (debug_to_load, debug_to_post_startup_inferior)
3911 (debug_to_insert_fork_catchpoint)
3912 (debug_to_remove_fork_catchpoint)
3913 (debug_to_insert_vfork_catchpoint)
3914 (debug_to_remove_vfork_catchpoint)
3915 (debug_to_insert_exec_catchpoint)
3916 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3917 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3918 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3919 (setup_target_debug): Call init_debug_target.
3920 * target.h (TARGET_DEBUG_PRINTER): New macro.
3921 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3922 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3923
3924 2014-07-24 Gary Benson <gbenson@redhat.com>
3925
3926 * exceptions.h (throw_vfatal): Renamed to...
3927 (throw_vquit): New declaration.
3928 (throw_quit): Likewise.
3929 * exceptions.c (throw_vfatal): Renamed to...
3930 (throw_vquit): New function.
3931 (throw_quit): Likewise.
3932 (throw_error): Call throw_verror rather than throw_it.
3933 * utils.h (vfatal): Removed.
3934 (fatal): Likewise.
3935 * utils.c (vfatal): Removed.
3936 (fatal): Likewise.
3937 (internal_verror): Replaced call to fatal with call to throw_quit.
3938 (quit): Replaced calls to fatal with calls to throw_quit.
3939
3940 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3941
3942 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3943 target_read_code.
3944
3945 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3946
3947 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3948 less than zero in conditional expression.
3949
3950 2014-07-23 Tom Tromey <tromey@redhat.com>
3951
3952 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3953 ($INTRO_PART): Don't match whitespace.
3954 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3955 argument matching.
3956 ($METHOD): Add $METHOD_TRAILER.
3957 (trim): Rewrite.
3958 (scan_target_h): New sub.
3959 Change main loop not to collect state.
3960 * target-delegates.c: Rebuild.
3961
3962 2014-07-23 Gary Benson <gbenson@redhat.com>
3963
3964 * cp-support.c (gdb_demangle): Fix build on systems without
3965 sigaltstack.
3966
3967 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3968
3969 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3970 for reference entry value target data value.
3971
3972 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3973
3974 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3975 value_available_contents_eq.
3976
3977 2014-07-22 Pedro Alves <palves@redhat.com>
3978
3979 * value.c (allocate_optimized_out_value): Don't mark value as
3980 non-lazy.
3981
3982 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3983
3984 * MAINTAINERS (Write After Approval): Update my email address.
3985
3986 2014-07-20 Doug Evans <dje@google.com>
3987
3988 PR server/17147
3989 * remote.c (putpkt_binary): Add text to error message.
3990
3991 2014-07-20 Yao Qi <yao@codesourcery.com>
3992
3993 * eval.c: Remove "Chill" from comments.
3994 * gdbtypes.h: Likewise.
3995 * symtab.h: Likewise.
3996
3997 2014-07-20 Yao Qi <yao@codesourcery.com>
3998
3999 * std-operator.def: Update comments to TERNOP_SLICE.
4000
4001 2014-07-20 Yao Qi <yao@codesourcery.com>
4002
4003 * std-operator.def: Remove BINOP_RANGE.
4004 * breakpoint.c (watchpoint_exp_is_const): Update.
4005 * expprint.c (dump_subexp_body_standard): Likewise.
4006 * eval.c (init_array_element): Remove dead code.
4007 (evaluate_subexp_standard): Likewise.
4008
4009 2014-07-20 Yao Qi <yao@codesourcery.com>
4010
4011 * std-operator.def: Remove BINOP_IN.
4012 * breakpoint.c (watchpoint_exp_is_const): Update.
4013 * eval.c (evaluate_subexp_standard): Likewise.
4014 * expprint.c (dump_subexp_body_standard): Likewise.
4015
4016 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4017
4018 * microblaze-tdep.c (microblaze_register_names): Add
4019 the rshr and rslr register names.
4020 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4021 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4022 Use of tdesc_numbered_register. Use of
4023 microblaze_register_g_packet_guesses. Use of
4024 tdesc_use_registers. Use of set_gdbarch_register_type.
4025 (microblaze_register_g_packet_guesses): New.
4026 * microblaze-tdep.h (microblaze_reg_num): Add
4027 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4028 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4029 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4030 * features/microblaze-core.xml: New file.
4031 * features/microblaze-stack-protect.xml: New file.
4032 * features/microblaze-with-stack-protect.c: New file.
4033 * features/microblaze-with-stack-protect.xml: New file.
4034 * features/microblaze.xml: New file.
4035 * features/microblaze.c: New file.
4036 * features/Makefile (microblaze-with-stack-protect): Add
4037 microblaze-with-stack-protect microblaze and microblaze-expedite.
4038 * regformats/microblaze-with-stack-protect.dat: New file.
4039 * regformats/microblaze.dat: New file.
4040 * doc/gdb.texinfo (MicroBlaze Features): Added.
4041
4042 2014-07-18 Tom Tromey <tromey@redhat.com>
4043
4044 * exec.c (exec_ops): Now static.
4045 * exec.h (exec_ops): Don't declare.
4046
4047 2014-07-18 Tom Tromey <tromey@redhat.com>
4048
4049 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4050 to find_target_beneath.
4051 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4052 find_target_beneath.
4053 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4054
4055 2014-07-18 Tom Tromey <tromey@redhat.com>
4056
4057 PR gdb/17130:
4058 * utils.c (quit): Use target_supports_terminal_ours.
4059 * target.h (target_supports_terminal_ours): Declare.
4060 * target.c (target_supports_delete_record): Don't check
4061 to_delete_record against NULL.
4062 (target_supports_terminal_ours): New function.
4063
4064 2014-07-18 Tom Tromey <tromey@redhat.com>
4065
4066 PR gdb/17130:
4067 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4068 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4069 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4070 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4071 * windows-nat.c (windows_xfer_partial): Always delegate.
4072 * record-btrace.c (record_btrace_xfer_partial): Simplify
4073 delegation.
4074 (record_btrace_fetch_registers, record_btrace_store_registers)
4075 (record_btrace_prepare_to_store, record_btrace_resume)
4076 (record_btrace_wait, record_btrace_find_new_threads)
4077 (record_btrace_thread_alive): Likewise.
4078 * procfs.c (procfs_xfer_partial): Always delegate.
4079 * corelow.c (core_xfer_partial): Always delegate.
4080 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4081
4082 2014-07-18 Tom Tromey <tromey@redhat.com>
4083
4084 * exec.c (exec_make_note_section): Move earlier.
4085
4086 2014-07-17 Doug Evans <dje@google.com>
4087
4088 PR gdb/17170
4089 * maint.c (count_symtabs_and_blocks): Handle NULL
4090 current_program_space.
4091 (report_command_stats): Check global enabled flag in addition to
4092 recorded enabled flag.
4093 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4094
4095 2014-07-16 Pedro Alves <palves@redhat.com>
4096
4097 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4098
4099 2014-07-16 Tom Tromey <tromey@redhat.com>
4100
4101 * target.h (struct target_ops) <to_delete_record>: Reformat
4102 comment.
4103
4104 2014-07-16 Tom Tromey <tromey@redhat.com>
4105
4106 * target-delegates.c: Rebuild.
4107
4108 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4109
4110 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4111 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4112 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4113 (avr_pointer_to_address): Likewise.
4114 (avr_address_class_type_flags): New function.
4115 (avr_address_class_type_flags_to_name): Likewise.
4116 (avr_address_class_name_to_type_flags): Likewise.
4117 (avr_gdbarch_init): Set address_class_type_flags,
4118 address_class_type_flags_to_name and
4119 address_class_name_to_type_flags.
4120
4121 2014-07-15 Pedro Alves <palves@redhat.com>
4122
4123 * linux-nat.c (kill_callback): Save errno and work with saved
4124 copy.
4125
4126 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4127
4128 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4129
4130 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4131
4132 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4133 breakpoint support correctly.
4134
4135 2014-07-14 Pedro Alves <palves@redhat.com>
4136
4137 * utils.c (prompt_for_continue): Call target_terminal_ours.
4138
4139 2014-07-14 Pedro Alves <palves@redhat.com>
4140
4141 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4142 catch_errors. Don't re-enable stdin or notify observers where,
4143 and rethrow error.
4144 (fetch_inferior_event_wrapper): Delete.
4145
4146 2014-07-14 Pedro Alves <palves@redhat.com>
4147
4148 PR gdb/17072
4149 * top.c: Include "inf-loop.h".
4150 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4151 field.
4152 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4153 was async before.
4154 (gdb_readline_wrapper): Store whether the target is async, and
4155 make it sync.
4156
4157 2014-07-14 Pedro Alves <palves@redhat.com>
4158
4159 PR gdb/17072
4160 * top.c (gdb_readline_wrapper_line): Tweak comment.
4161 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4162 the input handler callback.
4163
4164 2014-07-14 Pedro Alves <palves@redhat.com>
4165
4166 PR gdb/17072
4167 * main.c: Include event-top.h.
4168 (handle_command_errors): New function.
4169 (catch_command_errors, catch_command_errors_const): Use it.
4170
4171 2014-07-14 Pedro Alves <palves@redhat.com>
4172
4173 * exceptions.c (catch_command_errors, catch_command_errors_const):
4174 Moved to main.c.
4175 * exceptions.h (catch_command_errors_ftype)
4176 (catch_command_errors_const_ftype): Moved to main.c.
4177 (catch_command_errors, catch_command_errors_const): Delete
4178 declarations.
4179 * main.c (catch_command_errors_ftype)
4180 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4181 (catch_command_errors, catch_command_errors_const)): Moved here
4182 from exceptions.c and make static.
4183
4184 2014-07-14 Pedro Alves <palves@redhat.com>
4185
4186 * exceptions.c (print_any_exception): Delete.
4187 (catch_exceptions_with_msg): Use exception_print instead of
4188 print_any_exception.
4189 (catch_errors): Use exception_fprintf instead of
4190 print_any_exception.
4191 (catch_command_errors, catch_command_errors_const): Use
4192 exception_print instead of print_any_exception.
4193
4194 2014-07-14 Pedro Alves <palves@redhat.com>
4195
4196 * infcall.c (run_inferior_call): Set 'sync_execution' while
4197 running the inferior call.
4198
4199 2014-07-14 Pedro Alves <palves@redhat.com>
4200
4201 * value.c (value_contents_equal): Delete function.
4202 * value.h (value_contents_equal): Delete declaration.
4203
4204 2014-07-14 Tom Tromey <tromey@redhat.com>
4205
4206 PR exp/17106:
4207 * gdbtypes.c (is_dynamic_type_internal): New function, from
4208 is_dynamic_type.
4209 (is_dynamic_type): Rewrite.
4210 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4211 (resolve_dynamic_struct): Likewise.
4212 (resolve_dynamic_type_internal): New function, from
4213 resolve_dynamic_type.
4214 (resolve_dynamic_type): Rewrite.
4215
4216 2014-07-14 Tom Tromey <tromey@redhat.com>
4217
4218 * target.c (target_require_runnable): Also check record_stratum.
4219 Update comment.
4220
4221 2014-07-11 Yao Qi <yao@codesourcery.com>
4222
4223 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4224 thumb_instruction_restores_sp return true.
4225
4226 2014-07-11 Yao Qi <yao@codesourcery.com>
4227
4228 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4229 (thumb_in_function_epilogue_p): Call
4230 thumb_instruction_restores_sp.
4231
4232 2014-07-11 Yao Qi <yao@codesourcery.com>
4233
4234 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4235 'add sp, #imm'.
4236 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4237
4238 2014-07-11 Gary Benson <gbenson@redhat.com>
4239
4240 * amd64-linux-nat.c (gdbcore.h): Remove include.
4241 (regset.h): Likewise.
4242 (nat/linux-btrace.h): Likewise.
4243 (btrace.h): Likewise.
4244 (gdb_assert.h): Likewise.
4245 (string.h): Likewise.
4246 (sys/uio.h): Likewise.
4247 (sys/debugreg.h): Likewise.
4248 (sys/syscall.h): Likewise.
4249 (sys/procfs.h): Likewise.
4250 (sys/user.h): Likewise.
4251 (asm/ptrace.h): Likewise.
4252 (i386-nat.h): Likewise.
4253 * i386-linux-nat.c (i386-nat.h): Likewise.
4254 (regset.h): Likewise.
4255 (target.h): Likewise.
4256 (linux-nat.h): Likewise.
4257 (nat/linux-btrace.h): Likewise.
4258 (btrace.h): Likewise.
4259 (gdb_assert.h): Likewise.
4260 (string.h): Likewise.
4261 (sys/uio.h): Likewise.
4262 (sys/user.h): Likewise.
4263 (sys/procfs.h): Likewise.
4264 (sys/reg.h): Likewise.
4265 (sys/debugreg.h): Likewise.
4266 (ORIG_EAX): Remove definition.
4267
4268 2014-07-11 Gary Benson <gbenson@redhat.com>
4269
4270 * i386-linux-nat.h: New file.
4271 * x86-linux-nat.h: Likewise.
4272 * x86-linux-nat.c: Likewise.
4273 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4274 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4275 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4276 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4277 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4278 (PTRACE_SETREGSET): Likewise.
4279 (arch_lwp_info): Now in x86-linux-nat.c.
4280 (have_ptrace_getregset): Now in x86-linux-nat.h.
4281 (x86_linux_dr_get): Now in x86-linux-nat.c.
4282 (x86_linux_dr_set): Likewise.
4283 (x86_linux_dr_get_addr): Likewise.
4284 (x86_linux_dr_get_control): Likewise.
4285 (x86_linux_dr_get_status): Likewise.
4286 (update_debug_registers_callback): Likewise.
4287 (x86_linux_dr_set_control): Likewise.
4288 (x86_linux_dr_set_addr): Likewise.
4289 (x86_linux_prepare_to_resume): Likewise.
4290 (x86_linux_new_thread): Likewise.
4291 (x86_linux_new_fork): Likewise.
4292 (x86_linux_get_thread_area): Likewise.
4293 (super_post_startup_inferior): Likewise.
4294 (x86_linux_child_post_startup_inferior): Likewise.
4295 (AMD64_LINUX_USER64_CS): Likewise.
4296 (AMD64_LINUX_X32_DS): Likewise.
4297 (x86_linux_read_description): Likewise.
4298 (x86_linux_enable_btrace): Likewise.
4299 (x86_linux_disable_btrace): Likewise.
4300 (x86_linux_teardown_btrace): Likewise.
4301 (x86_linux_read_btrace): Likewise.
4302 (x86_linux_create_target): Likewise.
4303 (x86_linux_add_target): Likewise.
4304 * i386-linux-nat.c (x86-linux-nat.h): New include.
4305 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4306 (PTRACE_SETREGSET): Likewise.
4307 (arch_lwp_info): Now in x86-linux-nat.c.
4308 (have_ptrace_getregset): Now in x86-linux-nat.h.
4309 (x86_linux_dr_get): Now in x86-linux-nat.c.
4310 (x86_linux_dr_set): Likewise.
4311 (x86_linux_dr_get_addr): Likewise.
4312 (x86_linux_dr_get_control): Likewise.
4313 (x86_linux_dr_get_status): Likewise.
4314 (update_debug_registers_callback): Likewise.
4315 (x86_linux_dr_set_control): Likewise.
4316 (x86_linux_dr_set_addr): Likewise.
4317 (x86_linux_prepare_to_resume): Likewise.
4318 (x86_linux_new_thread): Likewise.
4319 (x86_linux_new_fork): Likewise.
4320 (x86_linux_get_thread_area): Likewise.
4321 (super_post_startup_inferior): Likewise.
4322 (x86_linux_child_post_startup_inferior): Likewise.
4323 (AMD64_LINUX_USER64_CS): Likewise.
4324 (AMD64_LINUX_X32_DS): Likewise.
4325 (x86_linux_read_description): Likewise.
4326 (x86_linux_enable_btrace): Likewise.
4327 (x86_linux_disable_btrace): Likewise.
4328 (x86_linux_teardown_btrace): Likewise.
4329 (x86_linux_read_btrace): Likewise.
4330 (x86_linux_create_target): Likewise.
4331 (x86_linux_add_target): Likewise.
4332
4333 2014-07-11 Gary Benson <gbenson@redhat.com>
4334
4335 * amd64-linux-nat.c: Comment and whitespace changes.
4336 * i386-linux-nat.c: Comment and whitespace changes.
4337
4338 2014-07-11 Gary Benson <gbenson@redhat.com>
4339
4340 * amd64-linux-nat.c (x86_linux_create_target): New function.
4341 (x86_linux_add_target): Likewise.
4342 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4343 * i386-linux-nat.c (x86_linux_create_target): New function.
4344 (x86_linux_add_target): Likewise.
4345 (_initialize_i386_linux_nat): Delegate to the above new functions.
4346
4347 2014-07-11 Gary Benson <gbenson@redhat.com>
4348
4349 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4350 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4351 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4352 (ps_get_thread_area): Delegate to the above.
4353
4354 2014-07-11 Gary Benson <gbenson@redhat.com>
4355
4356 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4357 x86_linux_read_description. All uses updated. amd64-specific
4358 code conditionalized. Conditionalized i386-specific code added.
4359 Redundant cast removed.
4360 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4361 x86_linux_read_description. All uses updated. i386-specific
4362 code conditionalized. Conditionalized amd64-specific code added.
4363 One sizeof replaced with the actual type it is describing.
4364
4365 2014-07-11 Gary Benson <gbenson@redhat.com>
4366
4367 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4368 x86_linux_dr_get. All uses updated.
4369 (amd64_linux_dr_set): Renamed to
4370 x86_linux_dr_set. All uses updated.
4371 (amd64_linux_dr_get_addr): Renamed to
4372 x86_linux_dr_get_addr. All uses updated.
4373 (amd64_linux_dr_get_control): Renamed to
4374 x86_linux_dr_get_control. All uses updated.
4375 (amd64_linux_dr_get_status): Renamed to
4376 x86_linux_dr_get_status. All uses updated.
4377 (amd64_linux_dr_set_control): Renamed to
4378 x86_linux_dr_set_control. All uses updated.
4379 (amd64_linux_dr_set_addr): Renamed to
4380 x86_linux_dr_set_addr. All uses updated.
4381 (amd64_linux_prepare_to_resume): Renamed to
4382 x86_linux_prepare_to_resume. All uses updated.
4383 (amd64_linux_new_thread): Renamed to
4384 x86_linux_new_thread. All uses updated.
4385 (amd64_linux_new_fork): Renamed to
4386 x86_linux_new_fork. All uses updated.
4387 (amd64_linux_child_post_startup_inferior): Renamed to
4388 x86_linux_child_post_startup_inferior. All uses updated.
4389 (amd64_linux_enable_btrace): Renamed to
4390 x86_linux_enable_btrace. All uses updated.
4391 (amd64_linux_disable_btrace): Renamed to
4392 x86_linux_disable_btrace. All uses updated.
4393 (amd64_linux_teardown_btrace): Renamed to
4394 x86_linux_teardown_btrace. All uses updated.
4395 (amd64_linux_read_btrace): Renamed to
4396 x86_linux_read_btrace. All uses updated.
4397 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4398 x86_linux_dr_get. All uses updated.
4399 (i386_linux_dr_set): Renamed to
4400 x86_linux_dr_set. All uses updated.
4401 (i386_linux_dr_get_addr): Renamed to
4402 x86_linux_dr_get_addr. All uses updated.
4403 (i386_linux_dr_get_control): Renamed to
4404 x86_linux_dr_get_control. All uses updated.
4405 (i386_linux_dr_get_status): Renamed to
4406 x86_linux_dr_get_status. All uses updated.
4407 (i386_linux_dr_set_control): Renamed to
4408 x86_linux_dr_set_control. All uses updated.
4409 (i386_linux_dr_set_addr): Renamed to
4410 x86_linux_dr_set_addr. All uses updated.
4411 (i386_linux_prepare_to_resume): Renamed to
4412 x86_linux_prepare_to_resume. All uses updated.
4413 (i386_linux_new_thread): Renamed to
4414 x86_linux_new_thread. All uses updated.
4415 (i386_linux_new_fork): Renamed to
4416 x86_linux_new_fork. All uses updated.
4417 (i386_linux_child_post_startup_inferior): Renamed to
4418 x86_linux_child_post_startup_inferior. All uses updated.
4419 (i386_linux_enable_btrace): Renamed to
4420 x86_linux_enable_btrace. All uses updated.
4421 (i386_linux_disable_btrace): Renamed to
4422 x86_linux_disable_btrace. All uses updated.
4423 (i386_linux_teardown_btrace): Renamed to
4424 x86_linux_teardown_btrace. All uses updated.
4425 (i386_linux_read_btrace): Renamed to
4426 x86_linux_read_btrace. All uses updated.
4427
4428 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4429
4430 * remote.c (extended_remote_post_attach): New function.
4431 (init_extended_remote_ops): Install it as to_post_attach method.
4432
4433 2014-07-09 Pedro Alves <palves@redhat.com>
4434
4435 * infcmd.c (attach_command_post_wait): Don't call
4436 target_terminal_inferior here.
4437 (attach_command): Call it here instead.
4438
4439 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4440
4441 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4442 field.
4443 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4444 from varobj.c, with additional checks.
4445 (c_varobj_ops): Fill in is_path_expr_parent field.
4446 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4447 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4448 field.
4449 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4450 ops method.
4451 (varobj_default_is_path_expr_parent): New function.
4452 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4453 (varobj_default_is_path_expr_parent): Declare new function.
4454
4455 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4456
4457 * infcmd.c (finish_backward): Turn internal error into normal error.
4458
4459 2014-07-07 Pedro Alves <palves@redhat.com>
4460
4461 PR gdb/17096
4462 * remote.c (async_handle_remote_sigint)
4463 (async_handle_remote_sigint_twice): Call
4464 gdb_call_async_signal_handler instead of
4465 mark_async_signal_handler.
4466
4467 2014-07-07 Tom Tromey <tromey@redhat.com>
4468
4469 * target-delegates.c: Rebuild.
4470 * target.c (target_info_record): Remove.
4471 * record.c (info_record_command): Unconditionally call
4472 to_info_record.
4473 * target.h (struct target_ops) <to_info_record>: Use
4474 TARGET_DEFAULT_IGNORE.
4475 (target_info_record): Remove.
4476
4477 2014-07-07 Tom Tromey <tromey@redhat.com>
4478
4479 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4480 TARGET_DEFAULT_NORETURN.
4481 * target.c (generic_tls_error): New function.
4482 (target_translate_tls_address): Don't search target stack.
4483 * target-delegates.c: Rebuild.
4484 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4485 stack.
4486 * linux-thread-db.c (thread_db_get_thread_local_address):
4487 Unconditionally call beneath target.
4488
4489 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4490
4491 * cli/cli-logging.c (pop_output_files): Assign targerr to
4492 gdb_stdtargerr.
4493
4494 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4495
4496 * MAINTAINERS (Write After Approval): Update my email address.
4497
4498 2014-07-02 Gary Benson <gbenson@redhat.com>
4499
4500 * proc-service.c (ps_xfer_memory): Update comment.
4501 (ps_pstop): Remove unused function.
4502 (ps_pcontinue): Likewise.
4503 (ps_lstop): Likewise.
4504 (ps_lcontinue): Likewise.
4505 (ps_lgetxregsize): Likewise.
4506 (ps_lgetxregs): Likewise.
4507 (ps_lsetxregs): Likewise.
4508 (ps_plog): Likewise.
4509 (ps_ptread): Likewise.
4510 (ps_ptwrite): Likewise.
4511
4512 2014-07-01 Mark Wielaard <mjw@redhat.com>
4513
4514 * dwarf2read.c (add_array_cv_type): New function.
4515 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4516 (read_tag_volatile_type): Likewise.
4517
4518 2014-07-01 Tom Tromey <tromey@redhat.com>
4519
4520 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4521 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4522 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4523 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4524 * command.h (cmd_cfunc_ftype): Move earlier.
4525 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4526 (add_com, add_info): Use cmd_cfunc_ftype.
4527
4528 2014-06-30 Tom Tromey <tromey@redhat.com>
4529
4530 * symtab.c (operator_chars): Make parameters and return type
4531 const.
4532 (file_matches): Make "files" const.
4533 (struct search_symbols_data) <files>: Now const.
4534 (search_symbols): Make "regexp" and "files" parameters const.
4535 Update.
4536 (symtab_symbol_info): Remove cast.
4537 (rbreak_command): Update.
4538 * symtab.h (search_symbols): Update.
4539
4540 2014-06-27 Yao Qi <yao@codesourcery.com>
4541
4542 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4543 Change parameter type to 'struct thread_info *'. Caller
4544 updated.
4545 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4546 Update declaration.
4547 * dummy-frame.c (struct dummy_frame_id): New.
4548 (dummy_frame_id_eq): New function.
4549 (struct dummy_frame) <id>: Change its type to 'struct
4550 dummy_frame_id'.
4551 (dummy_frame_push): Add parameter ptid and save it in
4552 dummy_frame_id.
4553 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4554 inferior_ptid.
4555 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4556 to inferior_ptid.
4557 (lookup_dummy_frame): Change parameter type to 'struct
4558 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4559 instead of frame_id_eq.
4560 (dummy_frame_pop): Add parameter ptid. Callers updated.
4561 Update comments. Compose dummy_frame_id and pass it to
4562 lookup_dummy_frame.
4563 (dummy_frame_discard): Add parameter ptid.
4564 (dummy_frame_sniffer): Compose dummy_frame_id and call
4565 dummy_frame_id_eq instead of frame_id_eq.
4566 (fprint_dummy_frames): Print ptid.
4567 * dummy-frame.h: Remove comments.
4568 (dummy_frame_push): Add ptid in declaration.
4569 (dummy_frame_pop, dummy_frame_discard): Likewise.
4570
4571 2014-06-26 Tom Tromey <tromey@redhat.com>
4572
4573 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4574 * command.h (error_no_arg): Update.
4575
4576 2014-06-26 Tom Tromey <tromey@redhat.com>
4577
4578 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4579 (do_show_command): Make "arg" const.
4580 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4581
4582 2014-06-26 Tom Tromey <tromey@redhat.com>
4583
4584 * record-full.c (record_full_get_bookmark): Make "args" const.
4585 (record_full_goto_bookmark): Make "raw_bookmark" const.
4586 * record.c (record_goto): New function.
4587 (cmd_record_goto): Use it. Now static.
4588 * record.h (record_goto): Declare.
4589 (cmd_record_goto): Remove declaration.
4590 * target-delegates.c: Rebuild.
4591 * target.h (struct target_ops) <to_get_bookmark,
4592 to_goto_bookmark>: Make parameter const.
4593
4594 2014-06-26 Tom Tromey <tromey@redhat.com>
4595
4596 * defs.h (generic_load): Update.
4597 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4598 * monitor.c (monitor_load): Make "args" const.
4599 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4600 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4601 const.
4602 (mips_load): Make "file" const.
4603 * remote-sim.c (gdbsim_load): Make "args" const.
4604 * remote.c (remote_load): Make "name" const.
4605 * symfile.c (generic_load): Make "args" const.
4606 * target-delegates.c: Rebuild.
4607 * target.c (target_load): Make "arg" const.
4608 (debug_to_load): Make "args" const.
4609 * target.h (struct target_ops) <to_load>: Make parameter const.
4610 (target_load): Update.
4611
4612 2014-06-26 Tom Tromey <tromey@redhat.com>
4613
4614 PR symtab/16902:
4615 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4616 (dwarf2_physname, read_partial_die)
4617 (guess_partial_die_structure_name, fixup_partial_die)
4618 (guess_full_die_structure_name, anonymous_struct_prefix)
4619 (dwarf2_name): Use per-BFD obstack.
4620
4621 2014-06-26 Yao Qi <yao@codesourcery.com>
4622
4623 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4624 dummyframe and this_id into inner block below.
4625
4626 2014-06-26 Yao Qi <yao@codesourcery.com>
4627
4628 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4629 with "signal_pass[0]" in the initialization of signal_pass.
4630
4631 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4632
4633 * record-btrace.c (record_btrace_generating_corefile)
4634 (record_btrace_prepare_to_generate_core)
4635 (record_btrace_done_generating_core): New.
4636 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4637 (record_btrace_store_registers, record_btrace_prepare_to_store):
4638 Forward request when generating a core file.
4639 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4640 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4641 to_done_generating_core.
4642
4643 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4644
4645 * target.h (target_ops) <to_prepare_to_generate_core>
4646 <to_done_generating_core>: New.
4647 (target_prepare_to_generate_core, target_done_generating_core): New.
4648 * target.c (target_prepare_to_generate_core)
4649 (target_done_generating_core): New.
4650 * target-delegates.c: Regenerate.
4651 * gcore.c: (write_gcore_file): Rename to ...
4652 (write_gcore_file_1): ...this.
4653 (write_gcore_file): Call target_prepare_to_generate_core
4654 and target_done_generating_core.
4655
4656 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4657
4658 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4659 * gcore.c (write_gcore_file): Free memory returned from
4660 make_corefile_notes.
4661 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4662 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4663
4664 2014-06-24 Yao Qi <yao@codesourcery.com>
4665
4666 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4667 (arm_linux_init_abi): Set skip_trampoline_code with
4668 gdbarch_skip_trampoline_code instead of
4669 find_solib_trampoline_target.
4670
4671 2014-06-24 Yao Qi <yao@codesourcery.com>
4672
4673 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4674 arm_skip_bx_reg returns non-zero.
4675
4676 2014-06-24 Yao Qi <yao@codesourcery.com>
4677
4678 * arm-tdep.c (arm_skip_bx_reg): New function.
4679 (arm_skip_stub): Call arm_skip_bx_reg.
4680
4681 2014-06-23 Don Breazeal <donb@codesourcery.com>
4682
4683 * MAINTAINERS: Add myself as write-after-approval maintainer.
4684
4685 2014-06-23 Pedro Alves <palves@redhat.com>
4686
4687 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4688 DR_CONTROL before setting DR0..DR3.
4689 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4690 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4691 bits of DR_CONTROL related to the debug register slot being
4692 disabled. If all slots are vacant, clear local slowdown as well,
4693 and assert DR_CONTROL is 0.
4694
4695 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4696
4697 * python/lib/gdb/command/xmethods.py
4698 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4699 current progspace only if the string "progspace" matches LOCUS_RE.
4700
4701 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4702
4703 Fix --with-system-readline with readline-6.3 patch 5.
4704 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4705 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4706 types.
4707
4708 2014-06-20 Tom Tromey <tromey@redhat.com>
4709
4710 * dwarf2read.c (dw2_get_real_path): Use correct type in
4711 OBSTACK_CALLOC.
4712 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4713
4714 2014-06-20 Gary Benson <gbenson@redhat.com>
4715
4716 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4717 * common/glibc_thread_db.h: Likewise.
4718 * common/i386-cpuid.h: Likewise.
4719 * common/i386-gcc-cpuid.h: Likewise.
4720 * common/linux-btrace.h: Likewise.
4721 * common/linux-osdata.h: Likewise.
4722 * common/linux-procfs.h: Likewise.
4723 * common/linux-ptrace.h: Likewise.
4724 * common/mips-linux-watch.h: Likewise.
4725 * common/linux-btrace.c: Moved to nat.
4726 * common/linux-osdata.c: Likewise.
4727 * common/linux-procfs.c: Likewise.
4728 * common/linux-ptrace.c: Likewise.
4729 * common/mips-linux-watch.c: Likewise.
4730 * nat/gdb_thread_db.h: Moved from common.
4731 * nat/glibc_thread_db.h: Likewise.
4732 * nat/i386-cpuid.h: Likewise.
4733 * nat/i386-gcc-cpuid.h: Likewise.
4734 * nat/linux-btrace.c: Likewise.
4735 * nat/linux-btrace.h: Likewise.
4736 * nat/linux-osdata.c: Likewise.
4737 * nat/linux-osdata.h: Likewise.
4738 * nat/linux-procfs.c: Likewise.
4739 * nat/linux-procfs.h: Likewise.
4740 * nat/linux-ptrace.c: Likewise.
4741 * nat/linux-ptrace.h: Likewise.
4742 * nat/mips-linux-watch.c: Likewise.
4743 * nat/mips-linux-watch.h: Likewise.
4744 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4745 (object file files): Reordered.
4746 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4747 of glibc_thread_db.h.
4748
4749 2014-06-20 Gary Benson <gbenson@redhat.com>
4750
4751 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4752 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4753 (i386_dr_low): Likewise.
4754 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4755 (i386_dr_low_set_addr): Likewise.
4756 (i386_dr_low_get_addr): Likewise.
4757 (i386_dr_low_can_set_control): Likewise.
4758 (i386_dr_low_set_control): Likewise.
4759 (i386_dr_low_get_control): Likewise.
4760 (i386_dr_low_get_status): Likewise.
4761 (i386_get_debug_register_length): Likewise.
4762 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4763 (i386_dr_low): Likewise.
4764 * nat/i386-dregs.c (i386-low.h): Remove include.
4765 (i386-nat.h): Likewise.
4766 (nat/i386-dregs.h): New include.
4767 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4768 (i386_dr_low_set_addr): Likewise.
4769 (i386_dr_low_get_addr): Likewise.
4770 (i386_dr_low_can_set_control): Likewise.
4771 (i386_dr_low_set_control): Likewise.
4772 (i386_dr_low_get_control): Likewise.
4773 (i386_dr_low_get_status): Likewise.
4774 (i386_get_debug_register_length): Likewise.
4775 (debug_hw_points): Likewise.
4776
4777 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4778
4779 * Makefile.in (SFILES): Add d-exp.y.
4780 (YYFILES): Add d-exp.c.
4781 (YYOBJ): Add d-exp.o.
4782 (local-maintainer-clean): Delete d-exp.c.
4783 * d-exp.y: New file.
4784 * d-lang.h (d_parse): New declaration.
4785 (d_error): New declaration.
4786 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4787 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4788 PREC_ORDER operators.
4789 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4790
4791 2014-06-19 Yao Qi <yao@codesourcery.com>
4792
4793 * gdbthread.h (any_running): Remove the declaration.
4794 * thread.c (any_running): Remove.
4795
4796 2014-06-19 Yao Qi <yao@codesourcery.com>
4797
4798 * gdbthread.h (struct thread_info) <state>: Change its type to
4799 'enum thread_state'. Update comments.
4800
4801 2014-06-19 Pedro Alves <palves@redhat.com>
4802
4803 * gdbthread.h (ALL_THREADS): Delete.
4804 (ALL_NON_EXITED_THREADS): New macro.
4805 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4806 instead of ALL_THREADS.
4807 * infrun.c (find_thread_needs_step_over)
4808 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4809 instead of ALL_THREADS.
4810 * record-btrace.c (record_btrace_open)
4811 (record_btrace_stop_recording, record_btrace_close)
4812 (record_btrace_is_replaying, record_btrace_resume)
4813 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4814 * remote.c (append_pending_thread_resumptions): Likewise.
4815 * thread.c (thread_apply_all_command): Likewise.
4816
4817 2014-06-19 Gary Benson <gbenson@redhat.com>
4818
4819 * i386-nat.c (i386_stopped_by_watchpoint):
4820 Use i386_dr_stopped_by_watchpoint.
4821 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4822 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4823
4824 2014-06-19 Gary Benson <gbenson@redhat.com>
4825
4826 * nat/i386-dregs.c: New file.
4827 * Makefile.in (i386-dregs.o): New rule.
4828 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4829 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4830 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4831 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4832 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4833 * config/i386/go32.mh (NATDEPFILES): Likewise.
4834 * config/i386/linux.mh (NATDEPFILES): Likewise.
4835 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4836 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4837 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4838 * i386-nat.h (debug_hw_points): New declaration.
4839 * i386-nat.c (breakpoint.h): Remove include.
4840 (command.h): Likewise.
4841 (target.h): Likewise.
4842 (gdb_assert.h): Likewise.
4843 (debug_hw_points): Made nonstatic.
4844 (debug_printf): Now in i386-dregs.c.
4845 (TARGET_HAS_DR_LEN_8): Likewise.
4846 (DR_CONTROL_SHIFT): Likewise.
4847 (DR_CONTROL_SIZE): Likewise.
4848 (DR_RW_EXECUTE): Likewise.
4849 (DR_RW_WRITE): Likewise.
4850 (DR_RW_READ): Likewise.
4851 (DR_RW_IORW): Likewise.
4852 (DR_LEN_1): Likewise.
4853 (DR_LEN_2): Likewise.
4854 (DR_LEN_4): Likewise.
4855 (DR_LEN_8): Likewise.
4856 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4857 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4858 (DR_ENABLE_SIZE): Likewise.
4859 (DR_LOCAL_SLOWDOWN): Likewise.
4860 (DR_GLOBAL_SLOWDOWN): Likewise.
4861 (DR_CONTROL_RESERVED): Likewise.
4862 (I386_DR_CONTROL_MASK): Likewise.
4863 (I386_DR_VACANT): Likewise.
4864 (I386_DR_LOCAL_ENABLE): Likewise.
4865 (I386_DR_GLOBAL_ENABLE): Likewise.
4866 (I386_DR_DISABLE): Likewise.
4867 (I386_DR_SET_RW_LEN): Likewise.
4868 (I386_DR_GET_RW_LEN): Likewise.
4869 (I386_DR_WATCH_HIT): Likewise.
4870 (i386_wp_op_t): Likewise.
4871 (i386_show_dr): Likewise.
4872 (i386_length_and_rw_bits): Likewise.
4873 (i386_insert_aligned_watchpoint): Likewise.
4874 (i386_remove_aligned_watchpoint): Likewise.
4875 (i386_handle_nonaligned_watchpoint): Likewise.
4876 (i386_update_inferior_debug_regs): Likewise.
4877 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4878 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4879 (i386_region_ok_for_watchpoint):
4880 Use i386_dr_region_ok_for_watchpoint.
4881 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4882
4883 2014-06-19 Gary Benson <gbenson@redhat.com>
4884
4885 * i386-nat.c (i386_insert_hw_breakpoint): Use
4886 i386_insert_watchpoint.
4887 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4888
4889 2014-06-19 Gary Benson <gbenson@redhat.com>
4890
4891 * i386-nat.c (i386_dr_show): Renamed to
4892 i386_show_dr and made static. All uses updated.
4893 (i386_dr_length_and_rw_bits): Renamed to
4894 i386_length_and_rw_bits and made static.
4895 All uses updated.
4896 (i386_dr_insert_aligned_watchpoint): Renamed to
4897 i386_insert_aligned_watchpoint and made static.
4898 All uses updated.
4899 (i386_dr_remove_aligned_watchpoint): Renamed to
4900 i386_remove_aligned_watchpoint and made static.
4901 All uses updated.
4902 (i386_dr_update_inferior_debug_regs): Renamed to
4903 i386_update_inferior_debug_regs and made static.
4904 All uses updated.
4905 * nat/i386-dregs.h (i386_dr_show): Removed.
4906 (i386_dr_length_and_rw_bits): Likewise.
4907 (i386_dr_insert_aligned_watchpoint): Likewise.
4908 (i386_dr_remove_aligned_watchpoint): Likewise.
4909 (i386_dr_update_inferior_debug_regs): Likewise.
4910
4911 2014-06-19 Gary Benson <gbenson@redhat.com>
4912
4913 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4914 * configure: Regenerate.
4915 * config.in: Likewise.
4916 * main.c (signal.h): New include.
4917 (setup_alternate_signal_stack): New function.
4918 (captured_main): Call the above.
4919 * cp-support.c (signal.h): New include.
4920 (catch_demangler_crashes): New flag.
4921 (SIGJMP_BUF): New define.
4922 (SIGSETJMP): Likewise.
4923 (SIGLONGJMP): Likewise.
4924 (gdb_demangle_jmp_buf): New static global.
4925 (gdb_demangle_attempt_core_dump): Likewise.
4926 (gdb_demangle_signal_handler): New function.
4927 (gdb_demangle): If catch_demangler_crashes is set, install the
4928 above signal handler before calling bfd_demangle, and restore
4929 the original signal handler afterwards. Display the offending
4930 symbol and call demangler_warning the first time a segmentation
4931 fault is caught.
4932 (_initialize_cp_support): New maint set/show command.
4933
4934 2014-06-19 Gary Benson <gbenson@redhat.com>
4935
4936 * utils.h (resource_limit_kind): New enum.
4937 (can_dump_core): New declaration.
4938 (warn_cant_dump_core): Likewise.
4939 (dump_core): Likewise.
4940 * utils.c (dump_core): Made nonstatic. Added new
4941 parameter "limit_kind".
4942 (can_dump_core): Made nonstatic. Moved printing code to...
4943 (warn_cant_dump_core): New function.
4944 (can_dump_core_warn): Likewise.
4945 (internal_vproblem): Replace calls to can_dump_core with
4946 calls to can_dump_core_warn. Supply new argument to each.
4947
4948 2014-06-19 Gary Benson <gbenson@redhat.com>
4949
4950 * utils.h (demangler_vwarning): New declaration.
4951 (demangler_warning): Likewise.
4952 * utils.c (struct internal_problem)
4953 <user_settable_should_quit>: New field.
4954 <user_settable_should_dump_core>: Likewise
4955 (internal_error_problem): Add values for above new fields.
4956 (internal_warning_problem): Likewise.
4957 (demangler_warning_problem): New static global.
4958 (demangler_vwarning): New function.
4959 (demangler_warning): Likewise.
4960 (add_internal_problem_command): Selectively add commands.
4961 (_initialize_utils): New internal problem command.
4962 * maint.c (maintenance_demangler_warning): New function.
4963 (_initialize_maint_cmds): New command.
4964
4965 2014-06-18 Tom Tromey <tromey@redhat.com>
4966
4967 * f-valprint.c (info_common_command_for_block): Update.
4968 * symtab.h (struct general_symbol_info) <common_block>: Now
4969 const.
4970
4971 2014-06-18 Tom Tromey <tromey@redhat.com>
4972
4973 * symtab.h (struct symtab) <blockvector>: Now const.
4974 * ada-lang.c (ada_add_global_exceptions): Update.
4975 * buildsym.c (augment_type_symtab): Update.
4976 * dwarf2read.c (dw2_lookup_symbol): Update.
4977 * jit.c (finalize_symtab): Update.
4978 * jv-lang.c (add_class_symtab_symbol): Update.
4979 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4980 Update.
4981 * objfiles.c (objfile_relocate1): Update.
4982 * psymtab.c (lookup_symbol_aux_psymtabs)
4983 (maintenance_check_psymtabs): Update.
4984 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4985 Update.
4986 * spu-tdep.c (spu_catch_start): Update.
4987 * symmisc.c (dump_symtab_1): Update.
4988 * symtab.c (lookup_global_symbol_from_objfile)
4989 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4990 (basic_lookup_transparent_type_quick)
4991 (basic_lookup_transparent_type, find_pc_sect_symtab)
4992 (find_pc_sect_line, search_symbols): Update.
4993 * block.c (find_block_in_blockvector): Make "bl" const.
4994 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4995 const.
4996 (blockvector_contains_pc): Make "bv" const.
4997 (block_for_pc_sect): Update.
4998 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4999 (blockvector_contains_pc): Update.
5000 * breakpoint.c (resolve_sal_pc): Update.
5001 * inline-frame.c (block_starting_point_at): Update.
5002
5003 2014-06-18 Tom Tromey <tromey@redhat.com>
5004
5005 * completer.c (complete_line): Make "line_buffer" const.
5006 * completer.h (complete_line): Update.
5007
5008 2014-06-18 Tom Tromey <tromey@redhat.com>
5009
5010 * symtab.c (add_macro_name): Remove unneeded cast.
5011
5012 2014-06-18 Tom Tromey <tromey@redhat.com>
5013
5014 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5015 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5016
5017 2014-06-18 Tom Tromey <tromey@redhat.com>
5018
5019 * probe.c (info_probes_for_ops): Make "arg" const.
5020 * probe.h (info_probes_for_ops): Update.
5021
5022 2014-06-18 Tom Tromey <tromey@redhat.com>
5023
5024 * varobj.c (varobj_create): Update.
5025 * valops.c (value_of_this): Update.
5026 * tracepoint.c (add_local_symbols, scope_info): Update.
5027 * symtab.h (struct general_symbol_info) <block>: Now const.
5028 * symtab.c (skip_prologue_sal)
5029 (default_make_symbol_completion_list_break_on)
5030 (skip_prologue_using_sal): Update.
5031 * stack.h (iterate_over_block_locals)
5032 (iterate_over_block_local_vars): Update.
5033 * stack.c (print_frame_args): Update.
5034 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5035 parameter const.
5036 (get_selected_block): Make return type const.
5037 * python/py-frame.c (frapy_block): Update.
5038 * python/py-block.c (gdbpy_block_for_pc): Update.
5039 * p-exp.y (%union) <bval>: Now const.
5040 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5041 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5042 * m2-exp.y (%union) <bval>: Now const.
5043 * linespec.c (get_current_search_block): Make return type const.
5044 (create_sals_line_offset, find_label_symbols): Update.
5045 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5046 Update.
5047 (block_starting_point_at): Make "block" const.
5048 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5049 (check_exception_resume): Update.
5050 * guile/scm-frame.c (gdbscm_frame_block): Update.
5051 * guile/scm-block.c (gdbscm_lookup_block): Update.
5052 * frame.h (get_frame_block): Update.
5053 (get_selected_block): Make return type const.
5054 * frame.c (frame_id_inner): Update.
5055 * f-valprint.c (info_common_command_for_block)
5056 (info_common_command): Update.
5057 * dwarf2loc.c (dwarf2_find_location_expression)
5058 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5059 (locexpr_describe_location_piece): Update.
5060 * c-exp.y (%union) <bval>: Now const.
5061 * breakpoint.c (resolve_sal_pc): Update.
5062 * blockframe.c (get_frame_block):Make return type const.
5063 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5064 (block_innermost_frame): Update.
5065 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5066 (block_for_pc, block_for_pc_sect): Update.
5067 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5068 'pblock' const.
5069 (block_for_pc_sect, block_for_pc): Make return type const.
5070 * ax-gdb.c (gen_expr): Update.
5071 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5072 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5073 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5074 (ada_read_var_value): Update.
5075 * ada-exp.y (struct name_info) <block>: Now const.
5076 (%union): Likewise.
5077 (block_lookup): Constify.
5078
5079 2014-06-18 Gary Benson <gbenson@redhat.com>
5080
5081 * nat/i386-dregs.h: New file.
5082 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5083 * i386-nat.h (i386-dregs.h): New include.
5084 (DR_FIRSTADDR): Now in i386-dregs.h.
5085 (DR_LASTADDR): Likewise.
5086 (DR_NADDR): Likewise.
5087 (DR_STATUS): Likewise.
5088 (DR_CONTROL): Likewise.
5089 (i386_debug_reg_state): Likewise.
5090 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5091
5092 2014-06-18 Don Breazeal <donb@codesourcery.com>
5093
5094 * breakpoint.c (set_longjmp_breakpoint): Call
5095 momentary_breakpoint_from_master with additional argument.
5096 (set_longjmp_breakpoint_for_call_dummy): Call
5097 momentary_breakpoint_from_master with additional argument.
5098 (set_std_terminate_breakpoint): Call
5099 momentary_breakpoint_from_master with additional argument.
5100 (momentary_breakpoint_from_master): Add argument to function
5101 definition and use it to initialize structure member flag.
5102 (clone_momentary_breakpoint): Call
5103 momentary_breakpoint_from_master with additional argument.
5104 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5105 member flags set in momentary_breakpoint_from_master.
5106
5107 2014-06-18 Gary Benson <gbenson@redhat.com>
5108
5109 * i386-nat.c (i386_show_dr): Renamed to
5110 i386_dr_show and made nonstatic. All uses updated.
5111 (i386_length_and_rw_bits): Renamed to
5112 i386_dr_length_and_rw_bits and made nonstatic.
5113 All uses updated.
5114 (i386_insert_aligned_watchpoint): Renamed to
5115 i386_dr_insert_aligned_watchpoint and made nonstatic.
5116 All uses updated.
5117 (i386_remove_aligned_watchpoint): Renamed to
5118 i386_dr_remove_aligned_watchpoint and made nonstatic.
5119 All uses updated.
5120 (i386_update_inferior_debug_regs): Renamed to
5121 i386_dr_update_inferior_debug_regs and made nonstatic.
5122 All uses updated.
5123
5124 2014-06-18 Gary Benson <gbenson@redhat.com>
5125
5126 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5127 (i386_dr_low_can_set_control): Likewise.
5128 (i386_dr_low_set_addr): Likewise.
5129 (i386_dr_low_set_control): Likewise.
5130 (i386_dr_low_get_addr): Likewise.
5131 (i386_dr_low_get_status): Likewise.
5132 (i386_dr_low_get_control): Likewise.
5133 (i386_insert_aligned_watchpoint): Use new macros.
5134 (i386_update_inferior_debug_regs): Likewise.
5135 (i386_stopped_data_address): Likewise.
5136
5137 2014-06-18 Gary Benson <gbenson@redhat.com>
5138
5139 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5140 New parameter. All uses updated.
5141
5142 2014-06-18 Gary Benson <gbenson@redhat.com>
5143
5144 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5145 All uses updated.
5146
5147 2014-06-18 Gary Benson <gbenson@redhat.com>
5148
5149 * i386-nat.c (debug_printf): New macro.
5150 (i386_get_debug_register_length): Likewise.
5151 (TARGET_HAS_DR_LEN_8): Use above macro.
5152 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5153 and printf_unfiltered. Use phex to format values.
5154
5155 2014-06-18 Gary Benson <gbenson@redhat.com>
5156
5157 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5158 Make const.
5159
5160 2014-06-18 Gary Benson <gbenson@redhat.com>
5161
5162 * i386-nat.c: Comment changes.
5163
5164 2014-06-18 Gary Benson <gbenson@redhat.com>
5165
5166 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5167
5168 2014-06-18 Gary Benson <gbenson@redhat.com>
5169
5170 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5171 (i386_insert_aligned_watchpoint): Likewise.
5172 (i386_remove_aligned_watchpoint): Likewise.
5173 (i386_handle_nonaligned_watchpoint): Likewise.
5174
5175 2014-06-18 Gary Benson <gbenson@redhat.com>
5176
5177 * i386-nat.c: Whitespace changes.
5178
5179 2014-06-17 Samuel Bronson <naesten@gmail.com>
5180
5181 * MAINTAINERS: Update Roland McGrath's email address.
5182 Thanks to Sergio Durigan Junior for pointing out that he left
5183 Red Hat a while ago, and giving me a current address.
5184
5185 2014-06-17 Tom Tromey <tromey@redhat.com>
5186
5187 * utils.h (savestring): Remove declaration.
5188
5189 2014-06-17 Tom Tromey <tromey@redhat.com>
5190
5191 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5192
5193 2014-06-16 Keith Seitz <keiths@redhat.com>
5194
5195 PR mi/15863
5196 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5197 to update the varobj if inferior_ptid is null_ptid.
5198
5199 2014-06-16 Tom Tromey <tromey@redhat.com>
5200
5201 * target.h (struct target_ops) <to_info_proc>: Make parameter
5202 const.
5203 (target_info_proc): Update.
5204 * target.c (target_info_proc): Make "args" const.
5205 * procfs.c (procfs_info_proc): Update.
5206 * linux-tdep.c (linux_info_proc): Update.
5207 (linux_core_info_proc_mappings): Make "args" const.
5208 (linux_core_info_proc): Update.
5209 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5210 * gdbarch.c: Rebuild.
5211 * gdbarch.h: Rebuild.
5212 * corelow.c (core_info_proc): Update.
5213
5214 2014-06-16 Tom Tromey <tromey@redhat.com>
5215
5216 * target.h (struct target_ops) <to_disconnect>: Make parameter
5217 const.
5218 (target_disconnect): Update.
5219 * target.c (target_disconnect): Make "args" const.
5220 * target-delegates.c: Rebuild.
5221 * remote.c (remote_disconnect): Update.
5222 * record.h (record_disconnect): Update.
5223 * record.c (record_disconnect): Update.
5224 * inf-child.c (inf_child_disconnect): Update.
5225
5226 2014-06-16 Tom Tromey <tromey@redhat.com>
5227
5228 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5229 * target.c (debug_to_rcmd, default_rcmd): Update.
5230 * target-delegates.c: Rebuild.
5231 * remote.c (remote_rcmd): Update.
5232 * monitor.c (monitor_rcmd): Update.
5233
5234 2014-06-16 Pedro Alves <palves@redhat.com>
5235
5236 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5237 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5238 have OBJF_SHARED set.
5239 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5240 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5241 instead of OBJF_USERLOADED.
5242 * objfiles.h (OBJF_SHARED): Update comment.
5243 (userloaded_objfile_contains_address_p): Rename to ...
5244 (shared_objfile_contains_address_p): ... this, and update
5245 comments.
5246 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5247 new objfile.
5248 (remove_symbol_file_command): Skip objfiles that don't have
5249 OBJF_SHARED set.
5250
5251 2014-06-16 Tom Tromey <tromey@redhat.com>
5252
5253 * minsyms.h (prim_record_minimal_symbol)
5254 (prim_record_minimal_symbol_and_info): Update comments.
5255
5256 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5257
5258 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5259 or --without-guile, according to how GDB was built.
5260
5261 2014-06-13 Tom Tromey <tromey@redhat.com>
5262
5263 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5264 to help_list.
5265 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5266 to help_list.
5267 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5268 help_list.
5269 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5270 help_list.Pass all_commands, not -1, to help_list.
5271 * cli/cli-dump.c (dump_command, append_command)
5272 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5273 (binary_dump_command, binary_append_command): Pass all_commands,
5274 not -1, to help_list.
5275 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5276 -1, to help_list.
5277 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5278 -1, to help_list.
5279 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5280 help_list.
5281 * top.c (set_history): Pass all_commands, not -1, to help_list.
5282 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5283 all_commands, not -1, to help_list.
5284 * symfile.c (overlay_command): Pass all_commands, not -1, to
5285 help_list.
5286 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5287 help_list.
5288 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5289 help_list.
5290 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5291 -1, to help_list.
5292 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5293 not -1, to help_list.
5294 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5295 not -1, to help_list.
5296 * maint.c (maintenance_command, maintenance_info_command)
5297 (maintenance_print_command, maintenance_set_cmd): Pass
5298 all_commands, not -1, to help_list.
5299 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5300 help_list.
5301 * language.c (set_check): Pass all_commands, not -1, to help_list.
5302 * infcmd.c (unset_command): Pass all_commands, not -1, to
5303 help_list.
5304 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5305 help_list.
5306 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5307 help_list.
5308 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5309 help_list.
5310 * breakpoint.c (save_command): Pass all_commands, not -1, to
5311 help_list.
5312 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5313 all_commands, not -1, to help_list.
5314
5315 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5316
5317 * regcache.c (struct register_to_invalidate): New structure.
5318 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5319 functions.
5320 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5321
5322 2014-06-12 Yao Qi <yao@codesourcery.com>
5323
5324 * varobj.c (varobj_get_num_children): Call
5325 varobj_is_dynamic_p.
5326 (varobj_list_children): Likewise.
5327 (varobj_update): Likewise. Update comments.
5328
5329 2014-06-12 Yao Qi <yao@codesourcery.com>
5330
5331 * varobj.c (varobj_pretty_printed_p): Rename to ...
5332 (varobj_is_dynamic_p): ... this. New function.
5333 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5334 (varobj_is_dynamic_p): Declare.
5335 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5336 (mi_print_value_p, varobj_update_one): Likewise.
5337
5338 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5339 Yao Qi <yao@codesourcery.com>
5340
5341 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5342 (varobj_get_iterator): Wrap up code for pretty-printer by
5343 "#if HAVE_PYTHON" and "#endif".
5344 (update_dynamic_varobj_children): Likewise.
5345
5346 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5347 Yao Qi <yao@codesourcery.com>
5348
5349 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5350 gdb_python_initialized is false. Move some code from varobj.c.
5351 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5352 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5353 (struct varobj_item): Moved to varobj-iter.h".
5354 (varobj_clear_saved_item): New function.
5355 (update_dynamic_varobj_children): Move python-related code to
5356 py-varobj.c.
5357 (free_variable): Call varobj_clear_saved_item and
5358 varobj_iter_delete.
5359
5360 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5361 Yao Qi <yao@codesourcery.com>
5362
5363 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5364 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5365 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5366 (py-varobj.o): New rule.
5367 * python/py-varobj.c: New file.
5368 * python/python-internal.h (py_varobj_get_iterator): Declare.
5369 * varobj-iter.h: New file.
5370 * varobj.c: Include "varobj-iter.h"
5371 (struct varobj) <child_iter>: Change its type from "PyObject *"
5372 to "struct varobj_iter *".
5373 <saved_item>: Likewise.
5374 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5375 [HAVE_PYTHON] (varobj_get_iterator): New function.
5376 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5377 python-specific code to python/py-varobj.c.
5378 (install_visualizer): Call varobj_iter_delete instead of
5379 Py_XDECREF.
5380 * varobj.h (varobj_ensure_python_env): Declare.
5381
5382 2014-06-12 Yao Qi <yao@codesourcery.com>
5383
5384 * varobj.c (struct varobj_item): New structure.
5385 (create_child_with_value): Update declaration.
5386 (varobj_add_child): Replace arguments 'name' and 'value' with
5387 'item'. All callers updated.
5388 (install_dynamic_child): Likewise.
5389 (update_dynamic_varobj_children): Likewise.
5390 (varobj_add_child): Likewise.
5391 (create_child_with_value): Likewise.
5392
5393 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5394
5395 * NEWS: Create a new section for the next release branch.
5396 Rename the section of the current branch, now that it has
5397 been cut.
5398
5399 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5400
5401 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5402 * version.in: Bump version to 7.8.50.DATE-cvs.
5403
5404 2014-06-11 Pedro Alves <palves@redhat.com>
5405
5406 PR remote/17028
5407 * ser-mingw.c (net_windows_socket_check_pending): New function.
5408 (net_windows_select_thread): Ignore spurious wakeups. Use
5409 net_windows_socket_check_pending.
5410 (net_windows_wait_handle): Check for pending events with
5411 ioctlsocket, through net_windows_socket_check_pending, instead of
5412 checking the socket's event.
5413
5414 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5415
5416 * python/python-internal.h (gdb_PyObject_GetAttrString)
5417 (gdb_PyObject_HasAttrString): New inline function definitions.
5418 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5419 char * of the second argument to PyObject_GetAttrString.
5420
5421 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5422
5423 * serial.c (serial_write): Fix index of character to be printed
5424 in call to serial_logchar when serial debug traces are enabled.
5425
5426 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5427
5428 * gdbtypes (resolve_dynamic_range): Add function description.
5429
5430 2014-06-09 Pedro Alves <palves@redhat.com>
5431
5432 * linux-nat.c (linux_child_follow_fork): Initialize status with
5433 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5434 inner block. Only pass the signal to PTRACE_DETACH if in pass
5435 state.
5436
5437 2014-06-09 Gary Benson <gbenson@redhat.com>
5438
5439 * common/signals.c (gdb_signal_from_host): Reorder to separate
5440 the always-available ANSI-standard signals from the signals that
5441 require checking.
5442 (do_gdb_signal_to_host): Likewise.
5443 * proc-events.c (signal_table): Likewise.
5444
5445 2014-06-08 Hui Zhu <hui@codesourcery.com>
5446
5447 * common/linux-ptrace.c (linux_disable_event_reporting): New
5448 function.
5449 * common/linux-ptrace.h (linux_disable_event_reporting): New
5450 declaration.
5451 * linux-nat.c (linux_child_follow_fork): Do a single step before
5452 detach.
5453
5454 2014-06-07 Keith Seitz <keiths@redhat.com>
5455
5456 Revert:
5457 PR c++/16253
5458 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5459 from symbol_matches_domain in symtab.c. All local callers
5460 of symbol_matches_domain updated.
5461 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5462 search STRUCT_DOMAIN.
5463 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5464 independently. standard_lookup will do that automatically.
5465 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5466 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5467 (cp_lookup_symbol_in_namespace): Likewise.
5468 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5469 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5470 may return a STRUCT_DOMAIN match.
5471 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5472 * cp-support.c: Include language.h.
5473 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5474 VAR_DOMAIN.
5475 * psymtab.c (match_partial_symbol): Compare the requested
5476 domain with the symbol's domain directly.
5477 (lookup_partial_symbol): Likewise.
5478 * symtab.c (lookup_symbol_in_language): Explain when/why
5479 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5480 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5481 appropriate languages.
5482 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5483 and moved to ada-lang.c
5484 (lookup_block_symbol): Explain that this function only returns
5485 symbol matching the requested DOMAIN.
5486 Compare the requested domain with the symbol's domain directly.
5487 (iterate_over_symbols): Compare the requested domain with the
5488 symbol's domain directly.
5489 * symtab.h (symbol_matches_domain): Remove.
5490
5491 2014-06-06 Doug Evans <xdje42@gmail.com>
5492
5493 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5494 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5495 (gdbscm_guile_version_is_at_least): Declare.
5496 (gdbscm_scm_string_to_int): Declare.
5497 * guile/guile.c (gdbscm_guile_major_version): New global.
5498 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5499 (guile_datadir): New static global.
5500 (gdbscm_guile_data_directory): New function.
5501 (initialize_scheme_side): Update.
5502 (misc_guile_functions): Add guile-data-directory.
5503 (initialize_gdb_module): Fetch guile version number.
5504 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5505 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5506 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5507 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5508 comments.
5509 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5510 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5511 * guile/scm-value.c (gdbscm_value_to_string): Only call
5512 scm_port_conversion_strategy if Guile version >= 2.0.6.
5513
5514 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5515
5516 * main.c (print_gdb_help): Add -q and --silent.
5517
5518 2014-06-06 Gary Benson <gbenson@redhat.com>
5519
5520 * common/signals.c: Remove preprocessor conditionals for
5521 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5522 SIGSEGV and SIGTERM.
5523 * proc-events.c: Likewise.
5524
5525 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5526
5527 * symfile.c (symfile_free_objfile): Remove restriction to
5528 OBJF_USERLOADED.
5529 * symfile-mem.c (symbol_file_add_from_memory): Call
5530 add_target_sections_of_objfile.
5531
5532 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5533
5534 * guile/scm-value.c (gdbscm_history_append_x): Use
5535 'vlscm_get_value_smob_arg_unsafe' instead of
5536 'vlscm_scm_to_value'.
5537
5538 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5539
5540 PR mi/15806
5541 * utils.c (printchar): Don't escape at all if quoter is NUL.
5542 Update function documentation to clarify effect of parameter
5543 QUOTER.
5544 * remote.c (escape_buffer): Pass '\\' as the quoter to
5545 fputstrn_unfiltered.
5546 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5547 generate the output.
5548 (mi_solib_unloaded): Same.
5549
5550 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5551
5552 * development.sh: Delete.
5553 * Makefile.in (config.status): Adjust dependency on development.sh.
5554 * configure.ac: Adjust development.sh source call.
5555 * configure: Regenerate.
5556
5557 2014-06-04 Doug Evans <xdje42@gmail.com>
5558
5559 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5560 is_scheme_bkpt, spec.
5561 (bpscm_make_breakpoint_smob): Initialize new members.
5562 (gdbscm_create_breakpoint_x): Split into two ...
5563 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5564 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5565 (scheme_function breakpoint_functions): Update.
5566 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5567 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5568 register-breakpoint!.
5569
5570 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5571
5572 PR server/17023
5573 * mem-break.c (z_type_supported): Return zero if
5574 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5575
5576 2014-06-04 Tom Tromey <tromey@redhat.com>
5577
5578 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5579 value_from_contents_and_address_unresolved.
5580 (ada_template_to_fixed_record_type_1): Likewise.
5581 (ada_which_variant_applies): Likewise.
5582 * value.h (value_from_contents_and_address_unresolved): Declare.
5583 * value.c (value_from_contents_and_address_unresolved): New
5584 function.
5585 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5586 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5587 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5588
5589 2014-06-04 Tom Tromey <tromey@redhat.com>
5590
5591 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5592
5593 2014-06-04 Tom Tromey <tromey@redhat.com>
5594
5595 * procfs.c (procfs_attach): Make "args" const.
5596 * windows-nat.c (windows_attach): Make "args" const.
5597 * nto-procfs.c (procfs_attach): Make "args" const.
5598 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5599 * go32-nat.c (go32_attach): Make "args" const.
5600 * gnu-nat.c (gnu_attach): Make "args" const.
5601 * darwin-nat.c (darwin_attach): Make "args" const.
5602 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5603 * linux-nat.c (linux_nat_attach): Make "args" const.
5604 * remote.c (extended_remote_attach_1, extended_remote_attach):
5605 Make "args" const.
5606 * target.h (struct target_ops) <to_attach>: Make "args" const.
5607 (find_default_attach): Likewise.
5608 * utils.c (parse_pid_to_attach): Make "args" const.
5609 * utils.h (parse_pid_to_attach): Update.
5610
5611 2014-06-04 Tom Tromey <tromey@redhat.com>
5612
5613 * target-delegates.c: Rebuild.
5614 * target.c (default_thread_address_space): New function.
5615 (target_thread_address_space): Simplify.
5616 * target.h (struct target_ops) <to_thread_address_space>: Add
5617 TARGET_DEFAULT_FUNC.
5618
5619 2014-06-04 Doug Evans <xdje42@gmail.com>
5620
5621 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5622
5623 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5624
5625 * record-btrace.c: Include event-loop.h and inf-loop.h.
5626 (record_btrace_resume_exec_dir)
5627 (record_btrace_async_inferior_event_handler)
5628 (record_btrace_handle_async_inferior_event): New.
5629 (record_btrace_open): Create async event handler.
5630 (record_btrace_close): Delete async event handler.
5631 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5632 Mark async event handler.
5633 (record_btrace_execution_direction): New.
5634 (init_record_btrace_ops): Initialize to_execution_direction.
5635
5636 2014-06-03 Doug Evans <xdje42@gmail.com>
5637
5638 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5639 (gdbscm_make_parameter): Ditto.
5640
5641 2014-06-03 Doug Evans <dje@google.com>
5642
5643 * exec.c (exec_close_1): Call clear_section_table instead of
5644 resize_section_table.
5645 (clear_section_table): New function.
5646 (resize_section_table): Make static. Rename arg num_added to
5647 adjustment.
5648 * exec.h (clear_section_table): Declare.
5649 (resize_section_table): Delete.
5650 * progspace.c (release_program_space): Call clear_section_table
5651 instead of resize_section_table.
5652
5653 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5654
5655 * NEWS (Python Scripting): Add entry about the new xmethods
5656 feature.
5657
5658 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5659
5660 * python/py-xmethods.c: New file.
5661 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5662 (objfpy_dealloc): XDECREF on the new xmethods field.
5663 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5664 field.
5665 (objfpy_get_xmethods): New function.
5666 (objfile_getset): New entry 'xmethods'.
5667 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5668 (pspy_dealloc): XDECREF on the new xmethods field.
5669 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5670 field.
5671 (pspy_get_xmethods): New function.
5672 (pspace_getset): New entry 'xmethods'.
5673 * python/python-internal.h: Add declarations for new functions.
5674 * python/python.c (_initialize_python): Invoke
5675 gdbpy_initialize_xmethods.
5676 * python/lib/gdb/__init__.py (xmethods): New
5677 attribute.
5678 * python/lib/gdb/xmethod.py: New file.
5679 * python/lib/gdb/command/xmethods.py: New file.
5680
5681 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5682
5683 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5684 best match method returned by find_overload_match is an xmethod.
5685 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5686 the best matching operator returned by find_overload_match is an
5687 xmethod.
5688 * valops.c: #include "extension.h".
5689 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5690 Return void. The list of matching source methods is returned in
5691 "fn_list" and a vector of matching debug method workers is
5692 returned in "xm_worker_vec". Update all callers.
5693 (value_find_oload_method_list): Likewise.
5694 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5695 non-NULL, then the index of the best matching method in this
5696 vector is returned. Update all callers.
5697 (find_overload_match): Include xmethods while performing overload
5698 resolution.
5699
5700 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5701
5702 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5703 * extension-priv.h (struct extension_language_ops): Add the
5704 xmethod interface.
5705 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5706 get_matching_xmethod_workers, get_xmethod_argtypes,
5707 invoke_xmethod, free_xmethod_worker,
5708 free_xmethod_worker_vec): New functions.
5709 * extension.h: #include "common/vec.h".
5710 New function declarations.
5711 (struct xmethod_worker): New struct.
5712 (VEC (xmethod_worker_ptr)): New vector type.
5713 (xmethod_worker_ptr): New typedef.
5714 (xmethod_worker_vec): Likewise.
5715 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5716 builtin_type.
5717 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5718 (struct builtin_type): New field "xmethod".
5719 * valarith.c (value_ptradd): Assert that the value argument is not
5720 lval_xcallable.
5721 * valops.c (value_must_coerce_to_target): Return 0 for
5722 lval_xcallable values.
5723 * value.c (struct value): New field XM_WORKER in the field
5724 LOCATION.
5725 (value_address, value_raw_address): Return 0 for lval_xcallable
5726 values.
5727 (set_value_address): Assert that the value is not an
5728 lval_xcallable.
5729 (value_free): Free the associated xmethod worker when freeing
5730 lval_xcallable values.
5731 (set_value_component_location): Assert that the WHOLE value is not
5732 lval_xcallable.
5733 (value_of_xmethod, call_xmethod): New functions.
5734 * value.h: Declare "struct xmethod_worker".
5735 Declare new functions value_of_xmethod, call_xmethod.
5736
5737 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5738 Pedro Alves <palves@redhat.com>
5739
5740 PR breakpoints/17000
5741 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5742 New function, extracted from software_breakpoint_inserted_here_p.
5743 (software_breakpoint_inserted_here_p): Replace factored out code
5744 by call to find_non_raw_software_breakpoint_inserted_here.
5745 (bp_target_info_copy_insertion_state): New function.
5746 (bkpt_insert_location): Handle the case of a single-step
5747 breakpoint already inserted at the same address.
5748 (bkpt_remove_location): Handle the case of a single-step
5749 breakpoint still inserted at the same address.
5750 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5751 breakpoint already inserted at the same address.
5752 (deprecated_remove_raw_breakpoint): Handle the case of a
5753 non-raw breakpoint still inserted at the same address.
5754 (find_single_step_breakpoint): New function, extracted from
5755 single_step_breakpoint_inserted_here_p.
5756 (find_single_step_breakpoint): New function,
5757 factored out from single_step_breakpoint_inserted_here_p.
5758 (single_step_breakpoint_inserted_here_p): Reimplement.
5759
5760 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5761
5762 Pushed by Joel Brobecker <brobecker@adacore.com>
5763 * source.c (show_substitute_path_command): Fix display of matching
5764 substitution rules.
5765
5766 2014-06-03 Gary Benson <gbenson@redhat.com>
5767
5768 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5769
5770 2014-06-02 Doug Evans <xdje42@gmail.com>
5771
5772 Add parameter support for Guile.
5773 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5774 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5775 (scm-param.o): New rule.
5776 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5777 (gdbscm_misc_error): Declare.
5778 (gdbscm_canonicalize_command_name): Declare.
5779 (gdbscm_scm_to_host_string): Declare.
5780 (gdbscm_scm_from_host_string): Declare.
5781 (gdbscm_initialize_parameters): Declare.
5782 * guile/guile.c (initialize_gdb_module): Call
5783 gdbscm_initialize_parameters.
5784 * guile/lib/gdb.scm: Export parameter symbols.
5785 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5786 cmdscm_canonicalize_name and made public. All callers updated.
5787 * guile/scm-exception.c (gdbscm_misc_error): New function.
5788 * guile/scm-param.c: New file.
5789 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5790 (gdbscm_scm_to_host_string): New function.
5791 (gdbscm_scm_from_host_string): New function.
5792 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5793
5794 2014-06-02 Doug Evans <xdje42@gmail.com>
5795
5796 Add command support for Guile.
5797 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5798 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5799 (scm-cmd.o): New rule.
5800 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5801 (gdbscm_user_error_p): Declare.
5802 (gdbscm_parse_command_name): Declare.
5803 (gdbscm_valid_command_class_p): Declare.
5804 (gdbscm_initialize_commands): Declare.
5805 * guile/guile.c (initialize_gdb_module): Call
5806 gdbscm_initialize_commands.
5807 * guile/lib/gdb.scm: Export command symbols.
5808 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5809 (throw-user-error): New function.
5810 * guile/scm-cmd.c: New file.
5811 * guile/scm-exception.c (user_error_symbol): New static global.
5812 (gdbscm_user_error_p): New function.
5813 (gdbscm_initialize_exceptions): Set user_error_symbol.
5814 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5815
5816 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5817
5818 * top.c (command_loop): Handle comments here...
5819 (command_line_input): ... not here.
5820
5821 2014-06-02 Doug Evans <xdje42@gmail.com>
5822
5823 Add progspace support for Guile.
5824 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5825 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5826 (scm-progspace.o): New rule.
5827 * guile/guile-internal.h (pspace_smob): New typedef.
5828 (psscm_pspace_smob_pretty_printers): Declare.
5829 (psscm_pspace_smob_from_pspace): Declare.
5830 (psscm_scm_from_pspace): Declare.
5831 * guile/guile.c (initialize_gdb_module): Call
5832 gdbscm_initialize_pspaces.
5833 * guile/lib/gdb.scm: Export progspace symbols.
5834 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5835 support.
5836 (append-pretty-printer!): Ditto.
5837 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5838 Implement.
5839 * guile/scm-progspace.c: New file.
5840
5841 2014-06-03 Alan Modra <amodra@gmail.com>
5842
5843 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5844 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5845
5846 2014-06-02 Doug Evans <dje@google.com>
5847
5848 Add support for skeletonless type units.
5849 * dwarf2read.c (struct dwarf2_per_objfile): New member
5850 n_allocated_type_units.
5851 (struct dwarf2_per_objfile) <tu_stats>: New member
5852 nr_all_type_units_reallocs.
5853 (create_signatured_type_table_from_index): Initialize
5854 n_allocated_type_units
5855 (create_all_type_units): Ditto.
5856 (add_type_unit): Move up in file. New arg slot.
5857 All callers updated. Increase space for all_type_units more
5858 efficiently.
5859 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5860 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5861 (lookup_dwp_signatured_type): Ditto.
5862 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5863 All callers updated.
5864 (build_type_psymtabs_1): Leave type_unit_groups as
5865 NULL if no TUs present.
5866 (print_tu_stats): New function.
5867 (process_skeletonless_type_unit): New function.
5868 (process_dwo_file_for_skeletonless_type_units): New
5869 function.
5870 (process_skeletonless_type_units): New function.
5871 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5872 Call print tu_stats if debugging enabled.
5873
5874 2014-06-02 Pedro Alves <palves@redhat.com>
5875
5876 * breakpoint.c (build_target_command_list): Don't build a command
5877 list if we have any duplicate location that isn't a dprintf.
5878
5879 2014-06-02 Pedro Alves <palves@redhat.com>
5880
5881 * breakpoint.c (dprintf_breakpoint_hit): New function.
5882 (initialize_breakpoint_ops): Install it as dprintf's
5883 breakpoint_hit method.
5884
5885 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5886
5887 * source.c (substitute_path_rule_matches): Simplify using
5888 filename_ncmp instead of FILENAME_CMP.
5889
5890 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5891
5892 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5893
5894 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5895
5896 * configure.ac: When Guile is available, check for the
5897 availability of 'scm_new_smob'.
5898 * configure, config.h.in: Regenerate.
5899 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5900 function.
5901
5902 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5903
5904 * frame.c (struct frame_info): Add stop_string field.
5905 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5906 (get_prev_frame_always): Old content moved into
5907 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5908 TRY_CATCH, handle MEMORY_ERROR exceptions.
5909 (frame_stop_reason_string): New function definition.
5910 * frame.h (unwind_stop_reason_to_string): Extend comment to
5911 mention frame_stop_reason_string.
5912 (frame_stop_reason_string): New function declaration.
5913 * stack.c (frame_info): Switch to frame_stop_reason_string.
5914 (backtrace_command_1): Switch to frame_stop_reason_string.
5915 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5916 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5917 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5918
5919 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5920
5921 * frame.c (frame_stop_reason_string): Rename to ...
5922 (unwind_stop_reason_to_string): this.
5923 * frame.h (frame_stop_reason_string): Rename to ...
5924 (unwind_stop_reason_to_string): this.
5925 * stack.c (frame_info): Update call to frame_stop_reason_string.
5926 (backtrace_command_1): Likewise.
5927 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5928 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5929
5930 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5931
5932 * frame.c (remove_prev_frame): New function.
5933 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5934 remove_prev_frame.
5935
5936 2014-05-29 Pedro Alves <palves@redhat.com>
5937
5938 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5939 and make it const. When a single-step decays to a continue,
5940 clear 'step', not 'hw_step'. Pass whether the caller wanted
5941 to step to user_visible_resume_ptid, not what we ask the
5942 target to do.
5943
5944 2014-05-29 Pedro Alves <palves@redhat.com>
5945
5946 * infrun.c (process_event_stop_test, handle_step_into_function)
5947 (handle_step_into_function_backward): Adjust.
5948 Don't set the even thread's stop_step and call stop_waiting before
5949 calling end_stepping_range. Instead do that ...
5950 (end_stepping_range): ... here. Take an ecs pointer parameter.
5951
5952 2014-05-29 Pedro Alves <palves@redhat.com>
5953
5954 * infrun.c (stop_stepping): Rename to ...
5955 (stop_waiting): ... this.
5956 (proceed): Update comment.
5957 (process_event_stop_test, handle_inferior_event)
5958 (handle_signal_stop, handle_step_into_function)
5959 (handle_step_into_function_backward): Update.
5960
5961 2014-05-29 Pedro Alves <palves@redhat.com>
5962
5963 * infcall.c (run_inferior_call): Don't check whether the current
5964 thread is running after the proceed call.
5965
5966 2014-05-29 Pedro Alves <palves@redhat.com>
5967 Tom Tromey <tromey@redhat.com>
5968
5969 * NEWS: Mention "maint set target-async", "set mi-async", and that
5970 background execution commands are now always available.
5971 * target.h (target_async_permitted): Update comment.
5972 * target.c (target_async_permitted, target_async_permitted_1):
5973 Default to 1.
5974 (set_target_async_command): Rename to ...
5975 (maint_set_target_async_command): ... this.
5976 (show_target_async_command): Rename to ...
5977 (maint_show_target_async_command): ... this.
5978 (_initialize_target): Adjust.
5979 * infcmd.c (prepare_execution_command): Make extern.
5980 * inferior.h (prepare_execution_command): Declare.
5981 * infrun.c (set_observer_mode): Leave target async alone.
5982 * mi/mi-interp.c (mi_interpreter_init): Install
5983 mi_on_sync_execution_done as sync_execution_done observer.
5984 (mi_on_sync_execution_done): New function.
5985 (mi_execute_command_input_handler): Don't print the prompt if we
5986 just started a synchronous command with an async target.
5987 (mi_on_resume): Check sync_execution before printing prompt.
5988 * mi/mi-main.h (mi_async_p): Declare.
5989 * mi/mi-main.c: Include gdbcmd.h.
5990 (mi_async_p): New function.
5991 (mi_async, mi_async_1): New globals.
5992 (set_mi_async_command, show_mi_async_command, mi_async): New
5993 functions.
5994 (exec_continue): Call prepare_execution_command.
5995 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5996 (mi_execute_async_cli_command): Use mi_async_p.
5997 (_initialize_mi_main): Install "set mi-async". Make
5998 "target-async" a deprecated alias.
5999
6000 2014-05-29 Pedro Alves <palves@redhat.com>
6001
6002 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6003 (_initialize_cli_interp): Adjust.
6004 * event-loop.c: Include "observer.h".
6005 (start_event_loop): Notify 'command_error' observers instead of
6006 calling display_gdb_prompt. Remove FIXME comment.
6007 * event-top.c (display_gdb_prompt): Remove call into the
6008 interpreters.
6009 * inf-loop.c: Include "observer.h".
6010 (inferior_event_handler): Notify 'command_error' observers instead
6011 of calling display_gdb_prompt.
6012 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6013 observers instead of calling display_gdb_prompt.
6014 * interps.c (interp_set): Don't call display_gdb_prompt.
6015 (current_interp_display_prompt_p): Delete.
6016 * interps.h (interp_prompt_p): Delete declaration.
6017 (interp_prompt_p_ftype): Delete.
6018 (struct interp_procs) <prompt_proc_p>: Delete field.
6019 (current_interp_display_prompt_p): Delete declaration.
6020 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6021 (_initialize_mi_interp): Adjust.
6022 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6023 'command_error' observers.
6024 (tui_on_sync_execution_done, tui_on_command_error): New
6025 functions.
6026 (tui_display_prompt_p): Delete.
6027 (_initialize_tui_interp): Adjust.
6028
6029 2014-05-29 Pedro Alves <palves@redhat.com>
6030
6031 PR gdb/13860
6032 * cli/cli-interp.c: Include infrun.h and observer.h.
6033 (cli_uiout, cli_interp): New globals.
6034 (cli_on_signal_received, cli_on_end_stepping_range)
6035 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6036 functions.
6037 (cli_interpreter_init): Install them as 'end_stepping_range',
6038 'signal_received' 'signal_exited', 'exited' and 'no_history'
6039 observers.
6040 (_initialize_cli_interp): Remove cli_interp local.
6041 * infrun.c (handle_inferior_event): Call the several stop reason
6042 observers instead of printing the stop reason directly.
6043 (end_stepping_range): New function.
6044 (print_end_stepping_range_reason, print_signal_exited_reason)
6045 (print_exited_reason, print_signal_received_reason)
6046 (print_no_history_reason): Make static, and add an uiout
6047 parameter. Print to that instead of to CURRENT_UIOUT.
6048 * infrun.h (print_end_stepping_range_reason)
6049 (print_signal_exited_reason, print_exited_reason)
6050 (print_signal_received_reason print_no_history_reason): New
6051 declarations.
6052 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6053 'mi_uiout'.
6054 <cli_uiout>: New field.
6055 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6056 uiout for CLI output. Install 'signal_received',
6057 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6058 observers.
6059 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6060 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6061 (mi_on_no_history): New functions.
6062 (ui_out_free_cleanup): Delete function.
6063 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6064 instead use the one already stored in the MI interpreter data.
6065 (mi_ui_out): Adjust.
6066 * tui/tui-interp.c: Include infrun.h and observer.h.
6067 (tui_interp): New global.
6068 (tui_on_signal_received, tui_on_end_stepping_range)
6069 (tui_on_signal_exited, tui_on_exited)
6070 (tui_on_no_history): New functions.
6071 (tui_init): Install them as 'end_stepping_range',
6072 'signal_received' 'signal_exited', 'exited' and 'no_history'
6073 observers.
6074 (_initialize_tui_interp): Delete tui_interp local.
6075
6076 2014-05-29 Pedro Alves <palves@redhat.com>
6077
6078 PR gdb/15713
6079 * linux-nat.c (linux_nat_resume_callback): Rename the second
6080 parameter to 'except'. Skip LP if it points to EXCEPT.
6081 (linux_nat_resume): Don't mark the event lwp as not stopped
6082 before resuming sibling lwps. Instead ask
6083 linux_nat_resume_callback to skip the event lwp. Mark it as not
6084 stopped after actually resuming it.
6085 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6086 resuming it.
6087 (wait_lwp): Mark the lwp as stopped here.
6088 (stop_wait_callback): Mark the lwp as not stopped right after
6089 resuming it. Don't mark lwps as stopped here.
6090 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6091 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6092
6093 2014-05-29 Pedro Alves <palves@redhat.com>
6094
6095 PR PR15693
6096 * infrun.c (resume): Determine how much to resume depending on
6097 whether the caller wanted a step, not whether we can hardware step
6098 the target. Mark all threads that we intend to run as running,
6099 unless we're calling an inferior function.
6100 (normal_stop): If the thread is running an infcall, don't finish
6101 thread state.
6102 * target.c (target_resume): Don't mark threads as running here.
6103
6104 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6105
6106 * serial.c (_initialize_serial): Remove support for
6107 the "set remotebaud" and "show remotebaud" commands.
6108 * NEWS: Add entry documenting the removal of that command.
6109
6110 2014-05-28 Yao Qi <yao@codesourcery.com>
6111
6112 * charset.c: Fix typo in comments.
6113
6114 2014-05-27 Gary Benson <gbenson@redhat.com>
6115
6116 * utils.c (internal_vproblem): Prompt for a bug report.
6117
6118 2014-05-26 Andy Wingo <wingo@igalia.com>
6119
6120 * guile/scm-arch.c (arscm_mark_arch_smob):
6121 * guile/scm-block.c (bkscm_mark_block_smob)
6122 (bkscm_mark_block_syms_progress_smob):
6123 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6124 * guile/scm-exception.c (exscm_mark_exception_smob):
6125 * guile/scm-frame.c (frscm_mark_frame_smob):
6126 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6127 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6128 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6129 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6130 (ppscm_mark_pretty_printer_worker_smob):
6131 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6132 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6133 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6134 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6135 mark functions.
6136 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6137 function.
6138
6139 2014-05-26 Andy Wingo <wingo@igalia.com>
6140 Doug Evans <xdje42@gmail.com>
6141
6142 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6143 empty_base_class. All uses updated.
6144 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6145 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6146 Adapt all callers.
6147 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6148 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6149 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6150 (gdbscm_gsmob_has_property_p, add_property_name)
6151 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6152 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6153 (gdb-object-has-property?, gdb-object-properties): Remove.
6154 (gdb-object-kind): Renamed from gsmob-kind.
6155
6156 2014-05-26 Andy Wingo <wingo@igalia.com>
6157
6158 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6159 * configure: Regenerate.
6160
6161 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6162
6163 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6164
6165 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6166
6167 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6168 (replay_memory_access_read_only, replay_memory_access_read_write)
6169 (replay_memory_access_types, replay_memory_access)
6170 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6171 (cmd_set_record_btrace, cmd_show_record_btrace)
6172 (cmd_show_replay_memory_access): New.
6173 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6174 (record_btrace_remove_breakpoint): Replace
6175 record_btrace_allow_memory_access with replay_memory_access.
6176 (_initialize_record_btrace): Add commands.
6177 * NEWS: Announce it.
6178
6179 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6180
6181 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6182
6183 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6184
6185 * MAINTAINERS (Write After Approval): Move self back from
6186 paper trail.
6187
6188 2014-05-22 Pedro Alves <palves@redhat.com>
6189
6190 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6191 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6192 (disable_randomization, enum exec_direction_kind)
6193 (execution_direction, stop_registers, start_remote)
6194 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6195 (wait_for_inferior, normal_stop, get_last_target_status)
6196 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6197 (insert_step_resume_breakpoint_at_sal)
6198 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6199 (set_step_info, print_stop_event, signal_stop_state)
6200 (signal_print_state, signal_pass_state, signal_stop_update)
6201 (signal_print_update, signal_pass_update)
6202 (update_signals_program_target, clear_exit_convenience_vars)
6203 (displaced_step_dump_bytes, update_observer_mode)
6204 (signal_catch_update, gdb_signal_from_command): Move
6205 declarations ...
6206 * infrun.h: ... to this new file.
6207 * amd64-tdep.c: Include infrun.h.
6208 * annotate.c: Include infrun.h.
6209 * arch-utils.c: Include infrun.h.
6210 * arm-linux-tdep.c: Include infrun.h.
6211 * arm-tdep.c: Include infrun.h.
6212 * break-catch-sig.c: Include infrun.h.
6213 * breakpoint.c: Include infrun.h.
6214 * common/agent.c: Include infrun.h instead of inferior.h.
6215 * corelow.c: Include infrun.h.
6216 * event-top.c: Include infrun.h.
6217 * go32-nat.c: Include infrun.h.
6218 * i386-tdep.c: Include infrun.h.
6219 * inf-loop.c: Include infrun.h.
6220 * infcall.c: Include infrun.h.
6221 * infcmd.c: Include infrun.h.
6222 * infrun.c: Include infrun.h.
6223 * linux-fork.c: Include infrun.h.
6224 * linux-nat.c: Include infrun.h.
6225 * linux-thread-db.c: Include infrun.h.
6226 * monitor.c: Include infrun.h.
6227 * nto-tdep.c: Include infrun.h.
6228 * procfs.c: Include infrun.h.
6229 * record-btrace.c: Include infrun.h.
6230 * record-full.c: Include infrun.h.
6231 * remote-m32r-sdi.c: Include infrun.h.
6232 * remote-mips.c: Include infrun.h.
6233 * remote-notif.c: Include infrun.h.
6234 * remote-sim.c: Include infrun.h.
6235 * remote.c: Include infrun.h.
6236 * reverse.c: Include infrun.h.
6237 * rs6000-tdep.c: Include infrun.h.
6238 * s390-linux-tdep.c: Include infrun.h.
6239 * solib-irix.c: Include infrun.h.
6240 * solib-osf.c: Include infrun.h.
6241 * solib-svr4.c: Include infrun.h.
6242 * target.c: Include infrun.h.
6243 * top.c: Include infrun.h.
6244 * windows-nat.c: Include infrun.h.
6245 * mi/mi-interp.c: Include infrun.h.
6246 * mi/mi-main.c: Include infrun.h.
6247 * python/py-threadevent.c: Include infrun.h.
6248
6249 2014-05-22 Pedro Alves <palves@redhat.com>
6250
6251 * infrun.c (handle_inferior_event): Store the exit code for
6252 --return-child-result here, instead of ...
6253 (print_exited_reason): ... here.
6254
6255 2014-05-21 Pedro Alves <palves@redhat.com>
6256
6257 PR gdb/13860
6258 * gdbthread.h (struct thread_control_state): New field
6259 `command_interp'.
6260 * infrun.c (follow_fork): Copy the new thread control field to the
6261 child fork thread.
6262 (clear_proceed_status_thread): Clear the new thread control field.
6263 (proceed): Set the new thread control field.
6264 * interps.h (command_interp): Declare.
6265 * interps.c (command_interpreter): New global.
6266 (command_interp): New function.
6267 (interp_exec): Set `command_interpreter' while here.
6268 * cli-out.c (cli_uiout_dtor): New function.
6269 (cli_ui_out_impl): Install it.
6270 * mi/mi-interp.c: Include cli-out.h.
6271 (mi_cmd_interpreter_exec): Add comment.
6272 (restore_current_uiout_cleanup): New function.
6273 (ui_out_free_cleanup): New function.
6274 (mi_on_normal_stop): If finishing an execution command started by
6275 a CLI command, or any kind of breakpoint-like event triggered,
6276 print the stop event to the output (CLI) stream.
6277 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6278
6279 2014-05-21 Pedro Alves <palves@redhat.com>
6280
6281 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6282 current source line having changed.
6283 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6284 * infrun.c (normal_stop): Adjust call to
6285 set_current_sal_from_frame.
6286 * source.c (clear_lines_listed_range): New function.
6287 (set_current_source_symtab_and_line, identify_source_line): Clear
6288 the lines listed range.
6289 (line_info): Handle the first "info line" after the current source
6290 line having changed.
6291 * stack.c (print_stack_frame): Remove center handling.
6292 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6293 center sal.line.
6294
6295 2014-05-21 Pedro Alves <palves@redhat.com>
6296
6297 * inf-child.c (inf_child_mourn_inferior): New function.
6298 * inf-child.h (inf_child_mourn_inferior): New declaration.
6299 * darwin-nat.c (darwin_mourn_inferior): Use
6300 inf_child_mourn_inferior.
6301 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6302 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6303 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6304 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6305 * windows-nat.c (windows_mourn_inferior): Likewise.
6306
6307 2014-05-21 Doug Evans <xdje42@gmail.com>
6308
6309 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6310
6311 2014-05-21 Doug Evans <xdje42@gmail.com>
6312
6313 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6314 (gdbscm_out_of_range_error): Ditto.
6315 (gdbscm_memory_error): Ditto.
6316 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6317 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6318 (gdbscm_out_of_range_error): Update.
6319 (gdbscm_memory_error): Update.
6320 (gdbscm_scm_to_target_string_unsafe): Delete.
6321
6322 2014-05-21 Pedro Alves <palves@redhat.com>
6323
6324 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6325 globals.
6326 (inf_child_open_target): New function.
6327 (inf_child_open): Use inf_child_open_target to push the target
6328 instead of erroring out.
6329 (inf_child_disconnect, inf_child_close)
6330 (inf_child_maybe_unpush_target): New functions.
6331 (inf_child_target): Install inf_child_disconnect and
6332 inf_child_close. Store a pointer to the returned object.
6333 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6334 declarations.
6335 * target.c (auto_connect_native_target): New global.
6336 (show_default_run_target): New function.
6337 (find_default_run_target): Return NULL if automatically connecting
6338 to the native target is disabled.
6339 (_initialize_target): Install set/show auto-connect-native-target.
6340 * NEWS: Mention "set auto-connect-native-target", and "target
6341 native".
6342 * linux-nat.c (super_close): New global.
6343 (linux_nat_close): Call super_close.
6344 (linux_nat_add_target): Store a pointer to the base class's
6345 to_close method.
6346 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6347 inf_child_maybe_unpush.
6348 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6349 already pushed.
6350 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6351 the inferior. Use inf_child_maybe_unpush_target.
6352 (inf_ttrace_attach): Don't push the target if it is already
6353 pushed.
6354 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6355 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6356 after mourning the inferior. Use inf_child_maybe_unpush_target.
6357 (darwin_attach_pid): Don't push the target if it is already
6358 pushed.
6359 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6360 mourning the inferior. Use inf_child_maybe_unpush_target.
6361 (gnu_detach): Use inf_child_maybe_unpush_target.
6362 * go32-nat.c (go32_create_inferior): Don't push the target if it
6363 is already pushed.
6364 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6365 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6366 (procfs_open): Rename to ...
6367 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6368 comments. Can target_preopen before changing node. Call
6369 inf_child_open_target to push the target explicitly.
6370 (procfs_attach): Don't push the target if it is already pushed.
6371 (procfs_detach): Use inf_child_maybe_unpush_target.
6372 (procfs_create_inferior): Don't push the target if it is already
6373 pushed.
6374 (nto_native_ops): New global.
6375 (procfs_open): Reimplement.
6376 (procfs_native_open): New function.
6377 (init_procfs_targets): Install procfs_native_open as to_open of
6378 "target native". Store a pointer to the "native" target in
6379 nto_native_ops.
6380 * procfs.c (procfs_attach): Don't push the target if it is already
6381 pushed.
6382 (procfs_detach): Use inf_child_maybe_unpush_target.
6383 (procfs_mourn_inferior): Only unpush the target after mourning the
6384 inferior. Use inf_child_maybe_unpush_target.
6385 (procfs_init_inferior): Don't push the target if it is already
6386 pushed.
6387 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6388 if it is already pushed.
6389
6390 2014-05-21 Pedro Alves <palves@redhat.com>
6391
6392 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6393 and "procfs" targets are now called "native" instead.
6394
6395 2014-05-21 Pedro Alves <palves@redhat.com>
6396
6397 * go32-nat.c (go32_open): Delete.
6398 (go32_target): Don't override the to_open method.
6399
6400 2014-05-21 Pedro Alves <palves@redhat.com>
6401
6402 * nto-procfs.c (procfs_can_run): New function.
6403 (nto_procfs_ops): New global.
6404 (init_procfs_targets): New, based on procfs_target. Install
6405 "target native" in addition to "target procfs".
6406 (_initialize_procfs): Call init_procfs_targets instead of adding
6407 the target here.
6408
6409 2014-05-21 Pedro Alves <palves@redhat.com>
6410
6411 * windows-nat.c (windows_target): Don't override to_shortname,
6412 to_longname or to_doc.
6413
6414 2014-05-21 Pedro Alves <palves@redhat.com>
6415
6416 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6417 to_doc.
6418
6419 2014-05-21 Pedro Alves <palves@redhat.com>
6420
6421 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6422 to_shortname, to_longname or to_doc.
6423
6424 2014-05-21 Pedro Alves <palves@redhat.com>
6425
6426 * go32-nat.c (go32_target): Don't override to_shortname,
6427 to_longname or to_doc.
6428
6429 2014-05-21 Pedro Alves <palves@redhat.com>
6430
6431 * inf-child.c (inf_child_open): Remove mention of "child".
6432 (inf_child_target): Rename target to "native" instead of "child".
6433
6434 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6435
6436 * Makefile.in (SFILES): Delete "regset.c".
6437 (COMMON_OBS): Delete "regset.o".
6438 * regset.c: Remove.
6439 * regset.h (regset_alloc): Delete prototype.
6440
6441 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6442
6443 * sparc-linux-tdep.c (sparc32_linux_gregset)
6444 (sparc32_linux_fpregset): New static regset structures.
6445 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6446 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6447 'fpregset' fields.
6448 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6449 (sparc64_linux_fpregset): New static regset structures.
6450 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6451 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6452 New static regset structures.
6453 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6454 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6455 New static regset structures.
6456 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6457 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6458 New static regset structures.
6459 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6460 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6461 New static regset structures.
6462 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6463
6464 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6465
6466 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6467 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6468 register maps ("regmaps") from "*regset" to "*regmap". Do this
6469 for all regmap types and variables.
6470 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6471 (sparc32_linux_supply_core_gregset)
6472 (sparc32_linux_collect_core_gregset)
6473 (sparc32_linux_supply_core_fpregset)
6474 (sparc32_linux_collect_core_fpregset): Likewise.
6475 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6476 (sparc_gregmap, sparc_fpregmap): ... these.
6477 (sparc_supply_gregset, sparc_collect_gregset)
6478 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6479 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6480 (_initialize_sparc_nat): Rename regmaps.
6481 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6482 (sparc_gregmap, sparc_fpregmap): ... these.
6483 (sparc_supply_gregset, sparc_collect_gregset)
6484 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6485 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6486 Rename macros to...
6487 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6488 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6489 Likewise.
6490 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6491 Rename to...
6492 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6493 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6494 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6495 regmaps.
6496 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6497 (sparc32_bsd_fpregset): Rename to...
6498 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6499 (sparc32_bsd_fpregmap): ... these.
6500 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6501 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6502 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6503 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6504 (struct sparc_gregmap, struct sparc_fpregmap)
6505 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6506 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6507 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6508 (sparc32_supply_regset, sparc32_collect_gregset)
6509 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6510 prototypes.
6511 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6512 (sparc64_linux_ptrace_gregmap): ... this.
6513 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6514 (_initialize_sparc64_linux_nat): Rename regmaps.
6515 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6516 (sparc64_linux_core_gregmap): ... this.
6517 (sparc64_linux_supply_core_gregset)
6518 (sparc64_linux_collect_core_gregset)
6519 (sparc64_linux_supply_core_fpregset)
6520 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6521 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6522 (sparc64_sol2_fpregset): Rename to...
6523 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6524 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6525 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6526 regmaps.
6527 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6528 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6529 (sparc64_bsd_fpregset): Rename to...
6530 (struct sparc_gregmap, sparc64_sol2_gregmap)
6531 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6532 (sparc64_bsd_fpregmap): ... these.
6533 (sparc64_supply_gregset, sparc64_collect_gregset)
6534 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6535 prototypes.
6536 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6537 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6538 (sparc64fbsd_gregmap): ... this.
6539 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6540 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6541 Rename regmaps.
6542 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6543 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6544 (sparc64nbsd_collect_fpregset): Likewise.
6545 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6546 (sparc64nbsd_gregmap): ... this.
6547 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6548 regmaps.
6549 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6550 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6551 (sparc64obsd_gregmap): ... this.
6552 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6553 regmaps.
6554 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6555 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6556 (sparc32nbsd_gregmap): ... this.
6557 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6558 regmaps.
6559
6560 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6561
6562 * score-tdep.c (score7_linux_gregset): New static regset
6563 structure.
6564 (score7_linux_regset_from_core_section): Remove dynamic regset
6565 allocation.
6566 (score_gdbarch_init): Drop allocation of tdep structure.
6567 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6568
6569 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6570
6571 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6572 regset structures.
6573 (am33_regset_from_core_section): Remove dynamic regset
6574 allocations.
6575
6576 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6577
6578 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6579 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6580 structures.
6581 (mips_linux_regset_from_core_section): Remove dynamic regset
6582 allocations.
6583 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6584 'gregset64', 'fpregset', and 'fpregset64'.
6585 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6586 deleted tdep fields.
6587
6588 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6589
6590 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6591 regset structures.
6592 (amd64_regset_from_core_section): Remove dynamic regset
6593 allocations.
6594 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6595 structure.
6596 (amd64obsd_regset_from_core_section): Remove dynamic regset
6597 allocation.
6598 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6599 Likewise.
6600 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6601 x86-common regset supply function.
6602 * i386-tdep.c (i386_collect_gregset): Make static.
6603 (i386_gregset): New global regset structure.
6604 (i386_fpregset, i386_xstateregset): New static regset structures.
6605 (i386_regset_from_core_section): Remove dynamic regset
6606 allocations.
6607 (i386_gdbarch_init): Remove initialization of tdep fields
6608 'gregset', 'fpregset', and 'xstateregset'.
6609 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6610 'fpregset', and 'xstateregset'.
6611 (i386_collect_gregset): Remove prototype.
6612 (i386_gregset): New declaration.
6613 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6614 structure.
6615 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6616 allocation.
6617
6618 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6619
6620 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6621 (arm_linux_vfpregset): New static regset structures.
6622 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6623 regset structures.
6624 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6625 and 'vfpregset' fields.
6626
6627 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6628
6629 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6630 (aarch64_linux_fpregset): New static regset structures.
6631 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6632 of regset structures.
6633 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6634 'fpregset' fields.
6635
6636 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6637
6638 * regset.h (struct regset): Remove gdbarch field.
6639 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6640 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6641 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6642 Likewise.
6643 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6644 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6645 (ppc32_linux_vsxregset): Likewise.
6646 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6647 via the regcache instead of the regset.
6648 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6649 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6650 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6651 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6652 Likewise.
6653
6654 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6655
6656 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6657 Constify structures.
6658 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6659 (alphanbsd_aout_gregset): Likewise.
6660 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6661 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6662 Likewise.
6663 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6664 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6665 Likewise.
6666 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6667 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6668 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6669 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6670 * m88k-tdep.c (m88k_gregset): Likewise.
6671 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6672 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6673 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6674 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6675 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6676 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6677 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6678 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6679 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6680 Likewise.
6681 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6682 * sh-tdep.h (sh_corefile_gregset): Likewise.
6683 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6684 * vax-tdep.c (vax_gregset): Likewise.
6685
6686 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6687
6688 Fix TLS access for -static -pthread.
6689 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6690 (try_thread_db_load_1): Initialize it.
6691 (thread_db_get_thread_local_address): Call it if LM is zero.
6692 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6693 * target.h (struct target_ops) (to_get_thread_local_address): Add
6694 load_module_addr comment.
6695
6696 2014-05-21 Pedro Alves <palves@redhat.com>
6697
6698 * dcache.c (dcache_read_memory_partial): If reading the cache line
6699 fails, fallback to reading just the memory the caller wanted.
6700
6701 2014-05-20 Doug Evans <dje@google.com>
6702
6703 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6704 instead of get_current_arch.
6705
6706 2014-05-20 Pedro Alves <palves@redhat.com>
6707
6708 * NEWS: Mention that compare-sections now works with all targets.
6709
6710 * remote.c (PACKET_qCRC): New enum value.
6711 (remote_verify_memory): Don't send qCRC if the target has no
6712 execution. Use packet_support/packet_ok. If the target doesn't
6713 support the qCRC packet, fallback to a deep memory copy.
6714 (compare_sections_command): Say "target image" instead of "remote
6715 executable".
6716 (_initialize_remote): Add PACKET_qCRC to the list of config
6717 packets that have no associated command. Extend comment.
6718 * target.c (simple_verify_memory, default_verify_memory): New
6719 function.
6720 * target.h (struct target_ops) <to_verify_memory>: Default to
6721 default_verify_memory.
6722 (simple_verify_memory): New declaration.
6723 * target-delegates.c: Regenerate.
6724
6725 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6726
6727 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6728
6729 2014-05-20 Hui Zhu <hui@codesourcery.com>
6730 Yao Qi <yao@codesourcery.com>
6731
6732 PR backtrace/16558
6733 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6734 and change address of sp and pc.
6735
6736 2014-05-19 Tom Tromey <tromey@redhat.com>
6737
6738 * gdbtypes.c (rank_function): Use XNEWVEC.
6739 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6740
6741 2014-05-19 Doug Evans <dje@google.com>
6742
6743 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6744 build_type_unit_groups and moved closer to only caller. Remove
6745 arguments. All references updated. Remove outdated .gdb_index
6746 comment.
6747 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6748 build_type_psymtabs_1.
6749
6750 2014-05-19 Doug Evans <dje@google.com>
6751
6752 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6753 n_type_unit_groups, all_type_unit_groups. All uses removed.
6754 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6755 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6756 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6757 (add_type_unit_group_to_table): Delete.
6758
6759 2014-05-19 Doug Evans <dje@google.com>
6760
6761 * eval.c (evaluate_subexp_standard): Add some comments.
6762
6763 2014-05-17 Doug Evans <xdje42@gmail.com>
6764
6765 * progspace.c (remove_program_space): Delete, unused.
6766 * progspace.h (remove_program_space): Ditto.
6767
6768 2014-05-17 Doug Evans <xdje42@gmail.com>
6769
6770 * inferior.c (prune_inferiors): Fix comment.
6771 (remove_inferior_command): Call prune_program_spaces.
6772
6773 2014-05-16 Doug Evans <dje@google.com>
6774
6775 New command line option -D.
6776 * NEWS: Mention it.
6777 * main.c (set_gdb_data_directory): New function.
6778 (captured_main): Recognize -D. Flag error for --data-directory "".
6779 Call set_gdb_data_directory.
6780 (print_gdb_help): Print --data-directory, -D.
6781 * main.h (set_gdb_data_directory): Declare.
6782 * top.c (staged_gdb_datadir): New static global.
6783 (set_gdb_datadir): Call set_gdb_data_directory
6784 (show_gdb_datadir): New function.
6785 (init_main): Update init of data-directory parameter.
6786
6787 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6788
6789 Import the "dirfd" gnulib module.
6790 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6791 * gnulib/aclocal.m4: Update.
6792 * gnulib/config.in: Update.
6793 * gnulib/configure: Update.
6794 * gnulib/import/Makefile.am: Update.
6795 * gnulib/import/Makefile.in: Update.
6796 * gnulib/import/dirfd.c: New.
6797 * gnulib/import/m4/dirfd.m4: New.
6798 * gnulib/import/m4/gnulib-cache.m4: Update.
6799 * gnulib/import/m4/gnulib-comp.m4: Update.
6800
6801 2014-05-16 Pierre Muller <muller@sourceware.org>
6802 Yao Qi <yao@codesourcery.com>
6803
6804 * valprint.c (print_wchar): Move the code on checking whether
6805 W is a printable wide char to the default branch of switch
6806 statement below. Call wchar_printable instead of gdb_iswprint.
6807
6808 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6809
6810 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6811 ldr.w and ldrd instructions.
6812
6813 2014-05-15 Doug Evans <dje@google.com>
6814
6815 * dwarf2read.c (read_structure_type): Delete outdated comments.
6816
6817 2014-05-14 Tom Tromey <tromey@redhat.com>
6818
6819 * macrocmd.c (print_macro_definition): Reindent.
6820
6821 2014-05-13 Doug Evans <xdje42@gmail.com>
6822
6823 * python/py-cmd.c (cmdpy_completer): Add comment.
6824 (completers): Make const.
6825
6826 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6827
6828 * infrun.c (resume): Remove should_resume (unused). Move up
6829 declaration of resume_ptid.
6830
6831 2014-05-13 Tom Tromey <tromey@redhat.com>
6832
6833 * language.h (unop_type_check): Remove.
6834 (binop_type_check): Don't declare.
6835
6836 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6837
6838 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6839 call to regcache_raw_collect.
6840
6841 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6842
6843 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6844 mi_console->quote as the quoting character.
6845
6846 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6847
6848 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6849
6850 2014-04-29 Tom Tromey <tromey@redhat.com>
6851
6852 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6853 "show debug varobj".
6854
6855 2014-05-07 Kyle McMartin <kyle@redhat.com>
6856
6857 Pushed by Joel Brobecker <brobecker@adacore.com>.
6858 * aarch64-tdep.c (aarch64_software_single_step): New function.
6859 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6860 with aarch64_software_single_step.
6861
6862 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6863
6864 GDB 7.7.1 released.
6865
6866 2014-05-05 Keith Seitz <keiths@redhat.com>
6867
6868 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6869 variable or history value is successfully parsed.
6870
6871 2014-05-05 Yao Qi <yao@codesourcery.com>
6872 Pedro Alves <palves@redhat.com>
6873
6874 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6875 address of blocks that intersects the requested range. Trim
6876 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6877 sections.
6878 * ctf.c (ctf_xfer_partial): Likewise.
6879
6880 2014-05-05 Yao Qi <yao@codesourcery.com>
6881
6882 * printcmd.c (display_command): Remove the check to
6883 target_has_execution.
6884
6885 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6886
6887 * ppcobsd-nat.c: Include "obsd-nat.h".
6888 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6889 add_target.
6890 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6891
6892 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6893
6894 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6895 and 16-bit signed and unsigned arguments. Update comment.
6896 (stap_parse_probe_arguments): Extend code to handle such
6897 arguments. Use warning instead of complaint to notify about
6898 unrecognized bitness.
6899
6900 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6901
6902 PR breakpoints/16889
6903 * stap-probe.c (stap_parse_probe_arguments): Simplify
6904 check for non-prefixed probes (i.e., probes whose
6905 arguments do not start with "N@"). Always set the
6906 argument type to a sane value.
6907
6908 2014-05-01 David Taylor <dtaylor@emc.com>
6909
6910 * remote.c (compare_sections_command): Add -r option to compare
6911 all loadable read-only sections.
6912
6913 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6914
6915 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6916 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6917 Update all callers.
6918 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6919 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6920 Remove unused CORE_ADDR argument. Update all callers.
6921
6922 2014-04-29 Pedro Alves <palves@redhat.com>
6923
6924 * remote.c (struct packet_config) <detect>: Extend comment.
6925 (add_packet_config_cmd): Don't set the config's detect or support
6926 fields here.
6927 (init_all_packet_configs): Also initialize the config's 'detect'
6928 field.
6929 (reset_all_packet_configs_support): New function.
6930 (remote_open_1): Call reset_all_packet_configs_support instead of
6931 init_all_packet_configs.
6932 (_initialize_remote): Initialize all packet configs. Assert that
6933 all packets have an associated command, except a few known
6934 outliers.
6935
6936 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6937
6938 * dwarf2read.c (read_subrange_type): Handle dynamic
6939 DW_AT_lower_bound attributes.
6940
6941 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6942
6943 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6944 dynamic bounds before computing its upper bound.
6945 (ada_discrete_type_low_bound): Same as above with the lower bound.
6946
6947 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6948
6949 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6950 range types. Adjust the array handling implementation to
6951 take advantage of this change.
6952 (resolve_dynamic_range): New function, mostly extracted from
6953 resolve_dynamic_bounds.
6954 (resolve_dynamic_array): New function, mostly extracted from
6955 resolve_dynamic_bounds.
6956 (resolve_dynamic_bounds): Delete.
6957 (resolve_dynamic_type): Reimplement. Add handling of
6958 TYPE_CODE_RANGE types.
6959
6960 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6961
6962 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6963 handling of parallel ___XA types.
6964
6965 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6966
6967 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6968 unnecessary second call to static_unwrap_type.
6969
6970 2014-04-27 Hui Zhu <hui@codesourcery.com>
6971
6972 * stack.c (print_frame_info): Call do_gdb_disassembly with
6973 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6974
6975 2014-04-26 Doug Evans <xdje42@gmail.com>
6976
6977 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6978
6979 2014-04-25 Pedro Alves <palves@redhat.com>
6980
6981 PR server/16255
6982 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6983 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6984 and newline from built string.
6985 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6986 (linux_ptrace_attach_fail_reason): ... this.
6987 * linux-nat.c (linux_nat_attach): Adjust to use
6988 linux_ptrace_attach_fail_reason.
6989
6990 2014-04-25 Pedro Alves <palves@redhat.com>
6991
6992 * remote.c (struct remote_state): Remove multi_process_aware,
6993 non_stop_aware, cond_tracepoints, cond_breakpoints,
6994 breakpoint_commands, fast_tracepoints, static_tracepoints,
6995 install_in_trace, disconnected_tracing,
6996 enable_disable_tracepoints, string_tracing, and
6997 augmented_libraries_svr4_read fields.
6998 (remote_multi_process_p): Move further below in the file.
6999 (struct packet_config): Add comments.
7000 (update_packet_config): Delete function.
7001 (show_packet_config_cmd): Use packet_config_support.
7002 (add_packet_config_cmd): Use NULL as set callback.
7003 (packet_ok): "set remote foo-packet"-style commands no longer
7004 change config->supported -- adjust.
7005 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7006 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7007 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7008 (PACKET_QNonStop, PACKET_multiprocess_feature)
7009 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7010 (PACKET_DisconnectedTracing_feature)
7011 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7012 (set_remote_protocol_packet_cmd): Delete function.
7013 (packet_config_support, packet_support): New functions.
7014 (set_remote_protocol_Z_packet_cmd): Don't call
7015 update_packet_config.
7016 (remote_query_attached, remote_pass_signals)
7017 (remote_program_signals, remote_threads_info)
7018 (remote_threads_extra_info, remote_start_remote): Use
7019 packet_support.
7020 (remote_start_remote): Use packet_config_support and
7021 packet_support.
7022 (init_all_packet_configs): Set all packets to unknown support,
7023 instead of calling update_packet_config.
7024 (remote_check_symbols): Use packet_support.
7025 (remote_supported_packet): Unconditionally set the packet config's
7026 support status.
7027 (remote_multi_process_feature, remote_non_stop_feature)
7028 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7029 (remote_breakpoint_commands_feature)
7030 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7031 (remote_install_in_trace_feature)
7032 (remote_disconnected_tracing_feature)
7033 (remote_enable_disable_tracepoint_feature)
7034 (remote_string_tracing_feature)
7035 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7036 (remote_protocol_features): Adjust to use remote_supported_packet
7037 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7038 "ConditionalTracepoints", "ConditionalBreakpoints",
7039 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7040 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7041 "EnableDisableTracepoints", and "tracenz".
7042 (remote_query_supported): Use packet_support.
7043 (remote_open_1): Adjust.
7044 (extended_remote_attach_1): Use packet_support. Switch on the
7045 result of packet_ok instead of checking whether the packet ended
7046 up disabled.
7047 (remote_vcont_resume): Use packet_support.
7048 (remote_resume, remote_stop_ns, fetch_register_using_p)
7049 (remote_prepare_to_store, store_register_using_P)
7050 (check_binary_download, remote_write_bytes): Use packet_support.
7051 (remote_vkill): Use packet_support. Switch on the result of
7052 packet_ok instead of checking whether the packet ended up
7053 disabled.
7054 (extended_remote_supports_disable_randomization): Use
7055 packet_support.
7056 (extended_remote_run): Switch on the result of packet_ok instead
7057 of checking whether the packet ended up disabled.
7058 (remote_insert_breakpoint, remote_remove_breakpoint)
7059 (remote_insert_watchpoint, remote_remove_watchpoint)
7060 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7061 packet_support.
7062 (remote_search_memory): Use packet_config_support.
7063 (remote_get_thread_local_address, remote_get_tib_address)
7064 (remote_hostio_send_command, remote_can_execute_reverse): Use
7065 packet_support.
7066 (remote_supports_cond_tracepoints)
7067 (remote_supports_cond_breakpoints)
7068 (remote_supports_fast_tracepoints)
7069 (remote_supports_static_tracepoints)
7070 (remote_supports_install_in_trace)
7071 (remote_supports_enable_disable_tracepoint)
7072 (remote_supports_string_tracing)
7073 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7074 the packet config says the feature is enabled or disabled.
7075 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7076 (remote_get_trace_status): Use packet_support.
7077 (remote_set_disconnected_tracing): Adjust to check whether the
7078 feature is enabled with packet_support.
7079 (remote_set_trace_buffer_size, remote_use_agent)
7080 (remote_can_use_agent, remote_supports_btrace): Use
7081 packet_support.
7082 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7083 Use packet_config_support.
7084 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7085 the packet config says the feature is enabled or disabled.
7086 (set_range_stepping): Use packet_support.
7087
7088 2014-04-25 Tom Tromey <tromey@redhat.com>
7089
7090 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7091 argument.
7092
7093 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7094
7095 * NEWS: Mention support for C99 variable length arrays.
7096
7097 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7098
7099 * ada-lang.c (standard_exc): Expand introductory comment.
7100
7101 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7102 Walfred Tedeschi <walfred.tedeschi@intel.com>
7103
7104 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7105 AVX512 registers.
7106 (amd64_linux_read_description): Add code to handle AVX512 xstate
7107 mask and return respective tdesc.
7108 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7109 and features/i386/x32-avx512-linux.c.
7110 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7111 (amd64_linux_core_read_description): Add code to handle AVX512
7112 xstate mask and return respective tdesc.
7113 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7114 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7115 calculation.
7116 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7117 (tdesc_amd64_avx512_linux): New prototype.
7118 (tdesc_x32_avx512_linux): Likewise.
7119 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7120 features/i386/x32-avx512.c.
7121 (amd64_ymm_avx512_names): New register names for pseudo
7122 registers YMM16-31.
7123 (amd64_ymmh_avx512_names): New register names for raw registers
7124 YMMH16-31.
7125 (amd64_k_names): New register names for K registers.
7126 (amd64_zmmh_names): New register names for ZMM raw registers.
7127 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7128 (amd64_xmm_avx512_names): New register names for XMM16-31
7129 registers.
7130 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7131 registers.
7132 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7133 if feature is present.
7134 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7135 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7136 (AMD64_NUM_REGS): Adjust to new number of registers.
7137 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7138 registers supplied via XSTATE by AVX512 registers.
7139 (i386_linux_read_description): Add case for AVX512.
7140 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7141 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7142 (i386_linux_core_read_description): Add case for AVX512.
7143 (i386_linux_init_abi): Install supported register note section
7144 for AVX512.
7145 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7146 AVX512.
7147 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7148 registers to be number of zmm7h + 1.
7149 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7150 * i386-tdep.c: Include features/i386/i386-avx512.c.
7151 (i386_zmm_names): Add ZMM pseudo register names array.
7152 (i386_zmmh_names): Add ZMM raw register names array.
7153 (i386_k_names): Add K raw register names array.
7154 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7155 registers. AVX512 has 16 more ZMM registers than there are YMM
7156 registers.
7157 (i386_zmmh_regnum_p): Add function to look up register number of
7158 ZMM raw registers.
7159 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7160 (i386_k_regnum_p): Likewise for K raw registers.
7161 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7162 registers added by AVX512.
7163 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7164 registers added by AVX512.
7165 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7166 added by AVX512.
7167 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7168 (i386_pseudo_register_name): Add ZMM pseudo registers.
7169 (i386_zmm_type): Construct and return vector registers type for ZMM
7170 registers.
7171 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7172 ZMM0-31 pseudo registers and K registers.
7173 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7174 and YMM16-31 registers from register cache.
7175 (i386_pseudo_register_write): Add code to write K, ZMM and
7176 YMM16-31 registers.
7177 (i386_register_reggroup_p): Add code to include/exclude AVX512
7178 registers in/from respective register groups.
7179 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7180 registers if feature is present in xcr0.
7181 (i386_gdbarch_init): Add code to initialize AVX512 feature
7182 variables in tdep structure, wire in pseudo registers and call
7183 initialize_tdesc_i386_avx512.
7184 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7185 variables.
7186 (i386_regnum): Add AVX512 registers.
7187 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7188 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7189 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7190 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7191 512 bits wide.
7192 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7193 (i386_ymm_avx512_regnum_p): Likewise.
7194 (i386_k_regnum_p): Likewise.
7195 (i386_zmm_regnum_p): Likewise.
7196 (i386_zmmh_regnum_p): Likewise.
7197 * i387-tdep.c : Update year in copyright notice.
7198 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7199 XSAVE buffer.
7200 (XSAVE_YMM_AVX512_ADDR): New macro.
7201 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7202 XSAVE buffer.
7203 (XSAVE_XMM_AVX512_ADDR): New macro.
7204 (xsave_avx512_k_offset): New table for K register offsets in
7205 XSAVE buffer.
7206 (XSAVE_AVX512_K_ADDR): New macro.
7207 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7208 in XSAVE buffer.
7209 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7210 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7211 buffer.
7212 (i387_collect_xsave): Add code to collect AVX512 registers from
7213 XSAVE buffer.
7214 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7215 of XMM16-31 registers.
7216 (I387_NUM_K_REGS): New define for number of K registers.
7217 (I387_K0_REGNUM): New define for K0 register number.
7218 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7219 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7220 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7221 registers.
7222 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7223 (I387_XMM16_REGNUM): New define for XMM16 register number.
7224 (I387_YMM0_REGNUM): New define for YMM0 register number.
7225 (I387_KEND_REGNUM): New define for last K register number.
7226 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7227 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7228 number.
7229 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7230 number.
7231 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7232 size.
7233 * features/Makefile: Add AVX512 related files.
7234 * features/i386/32bit-avx512.xml: New file.
7235 * features/i386/64bit-avx512.xml: Likewise.
7236 * features/i386/amd64-avx512-linux.c: Likewise.
7237 * features/i386/amd64-avx512-linux.xml: Likewise.
7238 * features/i386/amd64-avx512.c: Likewise.
7239 * features/i386/amd64-avx512.xml: Likewise.
7240 * features/i386/i386-avx512-linux.c: Likewise.
7241 * features/i386/i386-avx512-linux.xml: Likewise.
7242 * features/i386/i386-avx512.c: Likewise.
7243 * features/i386/i386-avx512.xml: Likewise.
7244 * features/i386/x32-avx512-linux.c: Likewise.
7245 * features/i386/x32-avx512-linux.xml: Likewise.
7246 * features/i386/x32-avx512.c: Likewise.
7247 * features/i386/x32-avx512.xml: Likewise.
7248 * regformats/i386/amd64-avx512-linux.dat: New file.
7249 * regformats/i386/amd64-avx512.dat: Likewise.
7250 * regformats/i386/i386-avx512-linux.dat: Likewise.
7251 * regformats/i386/i386-avx512.dat: Likewise.
7252 * regformats/i386/x32-avx512-linux.dat: Likewise.
7253 * regformats/i386/x32-avx512.dat: Likewise.
7254 * NEWS: Add note about new support for AVX512.
7255
7256
7257 2014-04-23 Pedro Alves <palves@redhat.com>
7258
7259 * breakpoint.c (insert_bp_location): Tolerate errors if the
7260 breakpoint is set in a user-loaded objfile.
7261 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7262 location is marked shlib_disabled. If the breakpoint is set in a
7263 user-loaded objfile is a GDB-side memory breakpoint, validate it
7264 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7265 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7266 flag.
7267 * mem-break.c (memory_validate_breakpoint): New function.
7268 * objfiles.c (userloaded_objfile_contains_address_p): New
7269 function.
7270 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7271 * target.h (memory_validate_breakpoint): New declaration.
7272
7273 2014-04-23 Pedro Alves <palves@redhat.com>
7274
7275 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7276 the breakpoint is set in a shared library, only suppress
7277 errors for software breakpoints, not hardware breakpoints.
7278
7279 2014-04-22 Pedro Alves <palves@redhat.com>
7280
7281 * infrun.c (schedlock_applies): New function, factored out from
7282 find_thread_needs_step_over.
7283 (find_thread_needs_step_over): Use it.
7284 (switch_back_to_stepped_thread): Always clear trap_expected if the
7285 step over is finished. Return early if scheduler locking applies.
7286 Look for the stepping thread and a potential step-over thread with
7287 a single loop.
7288 (currently_stepping_or_nexting_callback): Delete.
7289
7290 2014-04-22 Nick Clifton <nickc@redhat.com>
7291
7292 * NEWS: Mention that ARM sim now supports tracing.
7293
7294 2014-04-22 Yao Qi <yao@codesourcery.com>
7295
7296 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7297 to ...
7298 * tracefile.c (tracefile_fetch_registers): ... it. New
7299 function.
7300 * tracefile.h (tracefile_fetch_registers): Declare.
7301 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7302 tracefile_fetch_registers.
7303
7304 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7305
7306 PR gdb/14018
7307 * windows-nat.c (thread_rec): Don't display a warning when
7308 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7309 fails for any reason, set th->suspended to -1, so that we don't
7310 try to resume such a thread. Also, don't return NULL in these
7311 cases, to avoid completely ruin the session due to "PC register is
7312 not available" error.
7313 (do_windows_fetch_inferior_registers): Check errors in
7314 GetThreadContext call.
7315 (windows_continue): Accept an additional argument KILLED; if not
7316 zero, ignore errors in the SetThreadContext call, since the
7317 inferior was killed and is shutting down.
7318 (windows_resume, get_windows_debug_event)
7319 (windows_create_inferior, windows_mourn_inferior)
7320 (windows_kill_inferior): All callers of windows_continue changed
7321 to adjust to its new calling sequence.
7322
7323 2014-04-19 Yao Qi <yao@codesourcery.com>
7324
7325 * ctf.c (ctf_open): Call post_create_inferior.
7326
7327 2014-04-19 Yao Qi <yao@codesourcery.com>
7328
7329 * ctf.c (handle_id): New static variable.
7330 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7331 value. Get the declaration of event "register" and get length
7332 of field "contents".
7333
7334 2014-04-19 Yao Qi <yao@codesourcery.com>
7335
7336 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7337
7338 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7339
7340 * valops.c (oload_method_static): Remove unnecessary argument
7341 METHOD. Update all callers.
7342
7343 2014-04-18 Pedro alves <palves@redhat.com>
7344 Tom Tromey <tromey@redhat.com>
7345
7346 PR backtrace/15558
7347 * frame.c (get_prev_frame_1): Rename to ...
7348 (get_prev_frame_always): ... this, and make extern. Adjust.
7349 (skip_artificial_frames): Use get_prev_frame_always.
7350 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7351 (get_frame_unwind_stop_reason): Adjust to rename.
7352 * frame.h (get_prev_frame_always): Declare.
7353 * inline-frame.c: Include frame.h.
7354 (inline_frame_this_id): Use get_prev_frame_always.
7355
7356 2014-04-18 Tristan Gingold <gingold@adacore.com>
7357
7358 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7359 code by using bfd_mach_o_get_base_address.
7360
7361 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7362
7363 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7364 (spu_ax_pseudo_register_collect): New function.
7365 (spu_ax_pseudo_register_push_stack): Likewise.
7366 (spu_dwarf_reg_to_regnum): Likewise.
7367 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7368
7369 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7370
7371 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7372 Replace FRAME argument with FRAME_ID.
7373 * gdbarch.c, gdbarch.h: Regenerate.
7374 * findvar.c (default_value_from_register): Add GDBARCH argument;
7375 replace FRAME by FRAME_ID. No longer call get_frame_id.
7376 (value_from_register): Update call to gdbarch_value_from_register.
7377 * value.h (default_value_from_register): Update prototype.
7378 * s390-linux-tdep.c (s390_value_from_register): Update interface
7379 and call to default_value_from_register.
7380 * spu-tdep.c (spu_value_from_register): Likewise.
7381
7382 * findvar.c (address_from_register): Remove TYPE argument.
7383 Do not call value_from_register; use gdbarch_value_from_register
7384 with null_frame_id instead.
7385 * value.h (address_from_register): Update prototype.
7386 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7387 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7388 address_from_register interface change.
7389
7390 2014-04-17 Yao Qi <yao@codesourcery.com>
7391
7392 * gdbtypes.h: Update comments to link to types and macros'
7393 definitions.
7394
7395 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7396
7397 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7398
7399 2014-04-16 Keith Seitz <keiths@redhat.com>
7400
7401 PR gdb/15827
7402 * dwarf2read.c (skip_one_die): Check that all relative-offset
7403 sibling DIEs fall within range of the current reader's buffer.
7404 (read_partial_die): Likewise.
7405
7406 2014-04-16 Keith Seitz <keiths@redhat.com>
7407
7408 PR c++/16597
7409 * cp-namespace.c (lookup_symbol_file): If the type name of
7410 `this' is NULL, return immediately.
7411
7412 2014-04-14 Keith Seitz <keiths@redhat.com>
7413
7414 PR c++/16253
7415 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7416 from symbol_matches_domain in symtab.c. All local callers
7417 of symbol_matches_domain updated.
7418 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7419 search STRUCT_DOMAIN.
7420 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7421 independently. standard_lookup will do that automatically.
7422 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7423 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7424 (cp_lookup_symbol_in_namespace): Likewise.
7425 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7426 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7427 may return a STRUCT_DOMAIN match.
7428 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7429 * cp-support.c: Include language.h.
7430 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7431 VAR_DOMAIN.
7432 * psymtab.c (match_partial_symbol): Compare the requested
7433 domain with the symbol's domain directly.
7434 (lookup_partial_symbol): Likewise.
7435 * symtab.c (lookup_symbol_in_language): Explain when/why
7436 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7437 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7438 appropriate languages.
7439 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7440 and moved to ada-lang.c
7441 (lookup_block_symbol): Explain that this function only returns
7442 symbol matching the requested DOMAIN.
7443 Compare the requested domain with the symbol's domain directly.
7444 (iterate_over_symbols): Compare the requested domain with the
7445 symbol's domain directly.
7446 * symtab.h (symbol_matches_domain): Remove.
7447
7448 2014-04-14 Tom Tromey <tromey@redhat.com>
7449
7450 PR c++/15246:
7451 * c-exp.y (type_aggregate_p): New function.
7452 (qualified_name, classify_inner_name): Use it.
7453 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7454 and TYPE_TARGET_TYPE of an enum type.
7455 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7456 an enum type.
7457 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7458 handle TYPE_DECLARED_CLASS.
7459 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7460 types.
7461 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7462 * valops.c (enum_constant_from_type): New function.
7463 (value_aggregate_elt): Use it.
7464 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7465 TYPE_CODE_ENUM.
7466
7467 2014-04-14 Tom Tromey <tromey@redhat.com>
7468
7469 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7470 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7471 const.
7472 * value.h (value_aggregate_elt): Update.
7473
7474 2014-04-14 Tom Tromey <tromey@redhat.com>
7475
7476 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7477
7478 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7479
7480 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7481 (evaluate_subexp_standard): Pass noside argument.
7482 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7483 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7484 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7485 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7486 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7487
7488 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7489
7490 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7491 points to a constant blob.
7492
7493 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7494
7495 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7496 property and store it as the high bound and flag the range accordingly.
7497 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7498 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7499 * gdbtypes.h (enum range_flags): New enum.
7500 (struct range_bounds): Add flags member.
7501
7502 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7503
7504 * c-typeprint.c (c_type_print_varspec_suffix): Added
7505 check for not yet resolved high bound. If unresolved, print
7506 "variable length" string to the console instead of random
7507 length.
7508
7509 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7510
7511 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7512 value.
7513 (ada_template_to_fixed_record_type_1): Likewise.
7514 (ada_to_fixed_type_1): Likewise.
7515 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7516 (cp_print_value): Likewise.
7517 * d-valprint.c (dynamic_array_type): Likewise.
7518 * findvar.c (address_of_variable): Likewise.
7519 * jv-valprint.c (java_value_print): Likewise.
7520 * valops.c (value_ind): Likewise.
7521 * value.c (coerce_ref): Likewise.
7522
7523 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7524
7525 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7526 value and retrieve the dynamic type size.
7527
7528 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7529
7530 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7531 passed to sizeof is dynamic evaluate the argument to compute the length.
7532
7533 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7534 Joel Brobecker <brobecker@adacore.com>
7535
7536 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7537 (dwarf2_evaluate_property): New function.
7538 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7539 * dwarf2read.c (attr_to_dynamic_prop): New function.
7540 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7541 attribute.
7542 * gdbtypes.c: Include dwarf2loc.h.
7543 (is_dynamic_type): New function.
7544 (resolve_dynamic_type): New function.
7545 (resolve_dynamic_bounds): New function.
7546 (get_type_length): New function.
7547 (check_typedef): Use get_type_length to compute type length.
7548 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7549 (TYPE_LOW_BOUND_KIND): New macro.
7550 (is_dynamic_type): New function prototype.
7551 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7552 to resolve dynamic properties of the type. Update comment.
7553 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7554
7555 2014-04-14 Richard Henderson <rth@redhat.com>
7556
7557 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7558
7559 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7560 Doug Evans <xdje42@gmail.com>
7561
7562 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7563 dereference TYPE_CODE_REF values.
7564
7565 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7566
7567 Revert the following changes due to regressions:
7568
7569 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7570 (dwarf2_evaluate_property): New function.
7571 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7572 * dwarf2read.c (attr_to_dynamic_prop): New function.
7573 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7574 attribute.
7575 * gdbtypes.c: Include dwarf2loc.h.
7576 (is_dynamic_type): New function.
7577 (resolve_dynamic_type): New function.
7578 (resolve_dynamic_bounds): New function.
7579 (get_type_length): New function.
7580 (check_typedef): Use get_type_length to compute type length.
7581 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7582 (TYPE_LOW_BOUND_KIND): New macro.
7583 (is_dynamic_type): New function prototype.
7584 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7585 to resolve dynamic properties of the type. Update comment.
7586 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7587
7588 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7589 passed to sizeof is dynamic evaluate the argument to compute the length.
7590
7591 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7592 value and retrieve the dynamic type size.
7593
7594 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7595 (ada_template_to_fixed_record_type_1): Likewise.
7596 (ada_to_fixed_type_1): Likewise.
7597 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7598 (cp_print_value): Likewise.
7599 * d-valprint.c (dynamic_array_type): Likewise.
7600 * eval.c (evaluate_subexp_with_coercion): Likewise.
7601 * findvar.c (address_of_variable): Likewise.
7602 * jv-valprint.c (java_value_print): Likewise.
7603 * valops.c (value_ind): Likewise.
7604 * value.c (coerce_ref): Likewise.
7605
7606 * c-typeprint.c (c_type_print_varspec_suffix): Added
7607 check for not yet resolved high bound. If unresolved, print
7608 "variable length" string to the console instead of random
7609 length.
7610
7611 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7612 property and store it as the high bound and flag the range accordingly.
7613 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7614 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7615 * gdbtypes.h (enum range_flags): New enum.
7616 (struct range_bounds): Add flags member.
7617
7618 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7619 points to a constant blob.
7620
7621 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7622 (evaluate_subexp_standard): Pass noside argument.
7623 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7624 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7625 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7626 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7627 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7628
7629 2014-04-11 Keith Seitz <keiths@redhat.com>
7630
7631 PR c++/16675
7632 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7633 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7634 reference types.
7635
7636 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7637
7638 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7639 (evaluate_subexp_standard): Pass noside argument.
7640 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7641 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7642 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7643 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7644 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7645
7646 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7647
7648 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7649 points to a constant blob.
7650
7651 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7652
7653 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7654 property and store it as the high bound and flag the range accordingly.
7655 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7656 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7657 * gdbtypes.h (enum range_flags): New enum.
7658 (struct range_bounds): Add flags member.
7659
7660 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7661
7662 * c-typeprint.c (c_type_print_varspec_suffix): Added
7663 check for not yet resolved high bound. If unresolved, print
7664 "variable length" string to the console instead of random
7665 length.
7666
7667 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7668
7669 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7670 (ada_template_to_fixed_record_type_1): Likewise.
7671 (ada_to_fixed_type_1): Likewise.
7672 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7673 (cp_print_value): Likewise.
7674 * d-valprint.c (dynamic_array_type): Likewise.
7675 * eval.c (evaluate_subexp_with_coercion): Likewise.
7676 * findvar.c (address_of_variable): Likewise.
7677 * jv-valprint.c (java_value_print): Likewise.
7678 * valops.c (value_ind): Likewise.
7679 * value.c (coerce_ref): Likewise.
7680
7681 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7682
7683 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7684 value and retrieve the dynamic type size.
7685
7686 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7687
7688 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7689 passed to sizeof is dynamic evaluate the argument to compute the length.
7690
7691 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7692
7693 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7694 (dwarf2_evaluate_property): New function.
7695 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7696 * dwarf2read.c (attr_to_dynamic_prop): New function.
7697 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7698 attribute.
7699 * gdbtypes.c: Include dwarf2loc.h.
7700 (is_dynamic_type): New function.
7701 (resolve_dynamic_type): New function.
7702 (resolve_dynamic_bounds): New function.
7703 (get_type_length): New function.
7704 (check_typedef): Use get_type_length to compute type length.
7705 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7706 (TYPE_LOW_BOUND_KIND): New macro.
7707 (is_dynamic_type): New function prototype.
7708 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7709 to resolve dynamic properties of the type. Update comment.
7710 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7711
7712 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7713
7714 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7715 declaring high/low bounds and change uses accordingly. Call
7716 create_range_type instead of create_static_range_type.
7717 * gdbtypes.c (create_range_type): New function.
7718 (create_range_type): Convert bounds into struct bound_prop and pass
7719 them to create_range_type.
7720 * gdbtypes.h (struct bound_prop): New struct.
7721 (create_range_type): New function prototype.
7722 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7723 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7724 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7725 part of the bound.
7726 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7727
7728 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7729
7730 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7731 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7732 * ada-lang.c: All uses of create_range_type updated.
7733 * coffread.c: All uses of create_range_type updated.
7734 * dwarf2read.c: All uses of create_range_type updated.
7735 * f-exp.y: All uses of create_range_type updated.
7736 * m2-valprint.c: All uses of create_range_type updated.
7737 * mdebugread.c: All uses of create_range_type updated.
7738 * stabsread.c: All uses of create_range_type updated.
7739 * valops.c: All uses of create_range_type updated.
7740 * valprint.c: All uses of create_range_type updated.
7741
7742 2014-04-10 Pedro Alves <palves@redhat.com>
7743
7744 * breakpoint.c (single_step_breakpoints)
7745 (single_step_gdbarch): Move up in the file.
7746 (one_breakpoint_xfer_memory): New function, factored out from ...
7747 (breakpoint_xfer_memory): ... here. Also process single-step
7748 breakpoints.
7749
7750 2014-04-09 Tristan Gingold <gingold@adacore.com>
7751
7752 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7753 comments.
7754 (darwin_decode_exception_message): Free port only after use.
7755
7756 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7757
7758 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7759 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7760 when setting the size of call_length.
7761
7762 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7763
7764 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7765 dereference TYPE_CODE_REF values.
7766
7767 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7768
7769 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7770 end of warning message.
7771
7772 2014-04-03 Doug Evans <dje@google.com>
7773
7774 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7775 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7776
7777 2014-04-02 Alan Modra <amodra@gmail.com>
7778
7779 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7780 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7781 (struct symbol_file_add_from_memory_args): Add size field.
7782 (find_vdso_size): New function.
7783 (add_vsyscall_page): Attempt to find vdso size.
7784
7785 2014-04-01 Doug Evans <dje@google.com>
7786
7787 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7788
7789 2014-04-01 Tristan Gingold <gingold@adacore.com>
7790
7791 * darwin-nat.c (darwin_encode_reply): Add prototype.
7792 (darwin_decode_exception_message): Reply to unknown inferiors.
7793 (darwin_decode_message): Handle message by id. Ignore message
7794 to unknown inferior.
7795 (darwin_wait): Discard unknown messages, add debug trace.
7796
7797 2014-03-31 Doug Evans <dje@google.com>
7798
7799 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7800 comp_dir_string.
7801
7802 2014-03-31 Doug Evans <dje@google.com>
7803
7804 New option "set print symbol-loading".
7805 * NEWS: Mention it.
7806 * solib.c (solib_read_symbols): Only print symbol loading messages
7807 if requested.
7808 (solib_add): If symbol loading is in "brief" mode, notify user
7809 symbols are being loaded.
7810 (reload_shared_libraries_1): Ditto.
7811 * symfile.c (print_symbol_loading_off): New static global.
7812 (print_symbol_loading_brief): New static global.
7813 (print_symbol_loading_full): New static global.
7814 (print_symbol_loading_enums): New static global.
7815 (print_symbol_loading): New static global.
7816 (print_symbol_loading_p): New function.
7817 (symbol_file_add_with_addrs): Only print symbol loading messages
7818 if requested.
7819 (_initialize_symfile): Register "print symbol-loading" set/show
7820 command.
7821 * symfile.h (print_symbol_loading_p): Declare.
7822
7823 2014-03-30 Doug Evans <xdje42@gmail.com>
7824
7825 * infrun.c (set_last_target_status): New function.
7826 (handle_inferior_event): Call it.
7827
7828 2014-03-30 Doug Evans <xdje42@gmail.com>
7829
7830 * inferior.h (enum stop_kind): Improve comment.
7831
7832 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7833
7834 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7835 a reference, strip the reference layer before calling
7836 the lang_ops value_has_mutated callback.
7837
7838 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7839
7840 Remove some globals from our parser.
7841 * language.c (unk_lang_parser): Add "struct parser_state"
7842 argument.
7843 * language.h (struct language_defn) <la_parser>: Likewise.
7844 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7845 (initialize_expout): Add "struct parser_state" argument.
7846 Rewrite function to use the parser state.
7847 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7848 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7849 write_exp_elt_longcst, write_exp_elt_dblcst,
7850 write_exp_elt_decfloatcst, write_exp_elt_type,
7851 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7852 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7853 write_dollar_variable): Likewise.
7854 (parse_exp_in_context_1): Use parser state.
7855 (insert_type_address_space): Add "struct parser_state" argument.
7856 Use parser state.
7857 (increase_expout_size): New function.
7858 * parser-defs.h: Forward declare "struct language_defn" and
7859 "struct parser_state".
7860 (expout, expout_size, expout_ptr): Remove extern declarations.
7861 (parse_gdbarch, parse_language): Rewrite macro declarations to
7862 accept the parser state.
7863 (struct parser_state): New struct.
7864 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7865 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7866 write_exp_elt_decfloatcst, write_exp_elt_type,
7867 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7868 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7869 write_exp_msymbol, write_dollar_variable,
7870 mark_struct_expression, insert_type_address_space): Add "struct
7871 parser_state" argument.
7872 (increase_expout_size): New function.
7873 * utils.c (do_clear_parser_state): New function.
7874 (make_cleanup_clear_parser_state): Likewise.
7875 * utils.h (make_cleanup_clear_parser_state): New function
7876 prototype.
7877 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7878 Update calls to write_exp* in order to pass the parser state.
7879 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7880 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7881 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7882 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7883 * stap-probe.c (stap_parse_register_operand): Likewise.
7884 (stap_parse_single_operand): Likewise.
7885 (stap_parse_argument_1): Likewise.
7886 (stap_parse_argument): Use parser state.
7887 * stap-probe.h: Include "parser-defs.h".
7888 (struct stap_parse_info) <pstate>: New field.
7889 * c-exp.y (parse_type): Rewrite to use parser state.
7890 (yyparse): Redefine to c_parse_internal.
7891 (pstate): New global variable.
7892 (parse_number): Add "struct parser_state" argument.
7893 (write_destructor_name): Likewise.
7894 (type_exp): Update calls to write_exp* and similars in order to
7895 use parser state.
7896 (exp1, exp, variable, qualified_name, space_identifier,
7897 typename, typebase): Likewise.
7898 (write_destructor_name, parse_number, lex_one_token,
7899 classify_name, classify_inner_name, c_parse): Add "struct
7900 parser_state" argument. Update function to use parser state.
7901 * c-lang.h: Forward declare "struct parser_state".
7902 (c_parse): Add "struct parser_state" argument.
7903 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7904 (yyparse): Redefine macro to ada_parse_internal.
7905 (pstate): New variable.
7906 (write_int, write_object_renaming, write_var_or_type,
7907 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7908 type_int, type_long, type_long_long, type_float, type_double,
7909 type_long_double, type_char, type_boolean, type_system_address):
7910 Add "struct parser_state" argument.
7911 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7912 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7913 var_or_type, aggregate, aggregate_component_list,
7914 positional_list, others, component_group,
7915 component_associations): Update calls to write_exp* and similar
7916 functions in order to use parser state.
7917 (ada_parse, write_var_from_sym, write_int,
7918 write_exp_op_with_string, write_object_renaming,
7919 find_primitive_type, write_selectors, write_ambiguous_var,
7920 write_var_or_type, write_name_assoc, type_int, type_long,
7921 type_long_long, type_float, type_double, type_long_double,
7922 type_char, type_boolean, type_system_address): Add "struct
7923 parser_state" argument. Adjust function to use parser state.
7924 * ada-lang.c (parse): Likewise.
7925 * ada-lang.h: Forward declare "struct parser_state".
7926 (ada_parse): Add "struct parser_state" argument.
7927 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7928 calls to both functions.
7929 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7930 parser state.
7931 (yyparse): Redefine macro to f_parse_internal.
7932 (pstate): New variable.
7933 (parse_number): Add "struct parser_state" argument.
7934 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7935 and similars in order to use parser state.
7936 (parse_number): Adjust code to use parser state.
7937 (yylex): Likewise.
7938 (f_parse): New function.
7939 * f-lang.h: Forward declare "struct parser_state".
7940 (f_parse): Add "struct parser_state" argument.
7941 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7942 parser state.
7943 (yyparse): Redefine macro for java_parse_internal.
7944 (pstate): New variable.
7945 (push_expression_name, push_expression_name, insert_exp): Add
7946 "struct parser_state" argument.
7947 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7948 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7949 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7950 PostIncrementExpression, PostDecrementExpression,
7951 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7952 UnaryExpressionNotPlusMinus, CastExpression,
7953 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7954 RelationalExpression, EqualityExpression, AndExpression,
7955 ExclusiveOrExpression, InclusiveOrExpression,
7956 ConditionalAndExpression, ConditionalOrExpression,
7957 ConditionalExpression, Assignment, LeftHandSide): Update
7958 calls to write_exp* and similars in order to use parser state.
7959 (parse_number): Ajust code to use parser state.
7960 (yylex): Likewise.
7961 (java_parse): New function.
7962 (push_variable): Add "struct parser_state" argument. Adjust
7963 code to user parser state.
7964 (push_fieldnames, push_qualified_expression_name,
7965 push_expression_name, insert_exp): Likewise.
7966 * jv-lang.h: Forward declare "struct parser_state".
7967 (java_parse): Add "struct parser_state" argument.
7968 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7969 parser state.
7970 (yyparse): Redefine macro to m2_parse_internal.
7971 (pstate): New variable.
7972 (type_exp, exp, fblock, variable, type): Update calls to
7973 write_exp* and similars to use parser state.
7974 (yylex): Likewise.
7975 (m2_parse): New function.
7976 * m2-lang.h: Forward declare "struct parser_state".
7977 (m2_parse): Add "struct parser_state" argument.
7978 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7979 * objc-lang.h: Forward declare "struct parser_state".
7980 (end_msglist): Add "struct parser_state" argument.
7981 * p-exp.y (parse_type): Rewrite macro to use parser state.
7982 (yyparse): Redefine macro to pascal_parse_internal.
7983 (pstate): New variable.
7984 (parse_number): Add "struct parser_state" argument.
7985 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7986 write_exp* and similars in order to use parser state.
7987 (parse_number, yylex): Adjust code to use parser state.
7988 (pascal_parse): New function.
7989 * p-lang.h: Forward declare "struct parser_state".
7990 (pascal_parse): Add "struct parser_state" argument.
7991 * go-exp.y (parse_type): Rewrite macro to use parser state.
7992 (yyparse): Redefine macro to go_parse_internal.
7993 (pstate): New variable.
7994 (parse_number): Add "struct parser_state" argument.
7995 (type_exp, exp1, exp, variable, type): Update calls to
7996 write_exp* and similars in order to use parser state.
7997 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7998 to use parser state.
7999 (go_parse): Likewise.
8000 * go-lang.h: Forward declare "struct parser_state".
8001 (go_parse): Add "struct parser_state" argument.
8002
8003 2014-03-27 Doug Evans <dje@google.com>
8004
8005 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8006
8007 2014-03-27 Doug Evans <dje@google.com>
8008
8009 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8010 Remove argument abbrev_section. All callers updated.
8011
8012 2014-03-27 Doug Evans <dje@google.com>
8013
8014 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8015 addr_base, ranges_base.
8016
8017 2014-03-26 Keith Seitz <keiths@redhat.com>
8018
8019 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8020 types, not VAR_DOMAIN.
8021
8022 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8023
8024 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8025 "ra" registers.
8026 * features/nios2-linux.c: Regenerated.
8027 * features/nios2.c: Regenerated.
8028
8029 2014-03-25 Pedro Alves <palves@redhat.com>
8030
8031 * cli/cli-script.c (script_from_file): Force the interpreter to
8032 sync mode.
8033
8034 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8035
8036 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8037 small stack allocation.
8038
8039 2014-03-24 Tristan Gingold <gingold@adacore.com>
8040
8041 * darwin-nat.c (exc_server): Remove unused prototype.
8042 (darwin_dump_message): Correctly display data on x86_64.
8043 (darwin_encode_reply): Fix style.
8044 Add comments and fix indentation.
8045
8046 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8047
8048 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8049
8050 2014-03-22 Doug Evans <xdje42@gmail.com>
8051
8052 * infcmd.c: Whitespace fixes.
8053 (interrupt_command): Merge two function comments into one.
8054
8055 2014-03-22 Doug Evans <xdje42@gmail.com>
8056
8057 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8058 All uses updated.
8059
8060 2014-03-22 Yao Qi <yao@codesourcery.com>
8061
8062 * remote.c (target_read_live_memory): Remove.
8063 (memory_xfer_live_readonly_partial): Rename it to
8064 remote_xfer_live_readonly_partial. Remove argument 'object'.
8065 All callers updated. Call remote_read_bytes_1
8066 instead of target_read_live_memory.
8067 * tracepoint.c (set_traceframe_number): Remove.
8068 (make_cleanup_restore_traceframe_number): Likewise .
8069 * tracepoint.h (set_traceframe_number): Remove declaration.
8070 (make_cleanup_restore_traceframe_number): Likewise.
8071
8072 2014-03-22 Yao Qi <yao@codesourcery.com>
8073
8074 * remote.c (remote_read_bytes): Move code on reading from the
8075 remote stub to ...
8076 (remote_read_bytes_1): ... here. New function.
8077
8078 2014-03-22 Yao Qi <yao@codesourcery.com>
8079
8080 * ctf.c (ctf_xfer_partial): Check the return value of
8081 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8082 return TARGET_XFER_UNAVAILABLE.
8083 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8084 * target.c (target_read_live_memory): Move it to remote.c.
8085 (memory_xfer_live_readonly_partial): Likewise.
8086 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8087 * remote.c (target_read_live_memory): Moved from target.c.
8088 (memory_xfer_live_readonly_partial): Likewise.
8089 (remote_read_bytes): Factored out from
8090 memory_xfer_partial_1.
8091
8092 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8093
8094 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8095 NULL pointer.
8096
8097 2014-03-21 Pedro Alves <palves@redhat.com>
8098
8099 * infrun.c (normal_stop): Extend comment.
8100
8101 2014-03-21 Hui Zhu <hui@codesourcery.com>
8102 Pedro Alves <palves@redhat.com>
8103
8104 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8105 static buffer.
8106 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8107 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8108 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8109
8110 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8111
8112 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8113 `z' formatted output modifier.
8114
8115 2014-03-20 Tom Tromey <tromey@redhat.com>
8116 Sergio Durigan Junior <sergiodj@redhat.com>
8117
8118 * probe.c (parse_probes): Turn assert into an ordinary error.
8119 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8120 exceptions when parsing probes. Rearrange the code for clarity.
8121
8122 2014-03-20 Tom Tromey <tromey@redhat.com>
8123
8124 PR gdb/14135
8125 * top.c (execute_command): Only dispatch events if the command
8126 started the target.
8127
8128 2014-03-20 Tom Tromey <tromey@redhat.com>
8129
8130 PR cli/15718
8131 * infcall.c: Include event-top.h.
8132 (run_inferior_call): Call async_disable_stdin if needed.
8133
8134 2014-03-20 Pedro Alves <palves@redhat.com>
8135
8136 * infrun.c (prepare_to_proceed): Delete.
8137 (thread_still_needs_step_over): New function.
8138 (find_thread_needs_step_over): New function.
8139 (proceed): If the current thread needs a step-over, set its
8140 steping_over_breakpoint flag. Adjust to use
8141 find_thread_needs_step_over instead of prepare_to_proceed.
8142 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8143 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8144 breakpoint.
8145 (switch_back_to_stepped_thread): Step over breakpoints of all
8146 threads not the stepping thread, before switching back to the
8147 stepping thread.
8148
8149 2014-03-20 Pedro Alves <palves@redhat.com>
8150
8151 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8152 extern.
8153 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8154 * infrun.c (saved_singlestep_ptid)
8155 (stepping_past_singlestep_breakpoint): Delete.
8156 (resume): Remove stepping_past_singlestep_breakpoint handling.
8157 (proceed): Store the prev_pc of the stepping thread too.
8158 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8159 singlestep_pc.
8160 (enum infwait_states): Delete infwait_thread_hop_state.
8161 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8162 field.
8163 (handle_inferior_event): Adjust.
8164 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8165 handling and the thread-hop code. Before removing single-step
8166 breakpoints, check whether the thread hit a single-step breakpoint
8167 of another thread. If it did, the trap is not a random signal.
8168 (switch_back_to_stepped_thread): If the event thread hit a
8169 single-step breakpoint, unblock it before switching to the
8170 stepping thread. Handle the case of the stepped thread having
8171 advanced already.
8172 (keep_going): Handle the case of the current thread moving past a
8173 single-step breakpoint.
8174
8175 2014-03-20 Pedro Alves <palves@redhat.com>
8176
8177 PR breakpoints/7143
8178 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8179 are being stepped over.
8180 (breakpoint_address_match): Make extern.
8181 * breakpoint.h (breakpoint_address_match): New declaration.
8182 * inferior.h (stepping_past_instruction_at): New declaration.
8183 * infrun.c (struct step_over_info): New type.
8184 (step_over_info): New global.
8185 (set_step_over_info, clear_step_over_info)
8186 (stepping_past_instruction_at): New functions.
8187 (handle_inferior_event): Clear the step-over info when
8188 trap_expected is cleared.
8189 (resume): Remove now stale comment.
8190 (clear_proceed_status): Clear step-over info.
8191 (proceed): Adjust step-over handling to set or clear the step-over
8192 info instead of removing all breakpoints.
8193 (handle_signal_stop): When setting up a thread-hop, don't remove
8194 breakpoints here.
8195 (stop_stepping): Clear step-over info.
8196 (keep_going): Adjust step-over handling to set or clear step-over
8197 info and then always inserting breakpoints, instead of removing
8198 all breakpoints when stepping over one.
8199
8200 2014-03-20 Pedro Alves <palves@redhat.com>
8201
8202 * infrun.c (previous_inferior_ptid): Adjust comment.
8203 (deferred_step_ptid): Delete.
8204 (infrun_thread_ptid_changed, prepare_to_proceed)
8205 (init_wait_for_inferior): Adjust.
8206 (handle_signal_stop): Delete deferred_step_ptid handling.
8207
8208 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8209
8210 PR gdb/15358
8211 * defs.h (sync_quit_force_run): New declaration.
8212 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8213 * event-top.c (async_sigterm_handler): New declaration.
8214 (async_sigterm_token): New variable.
8215 (async_init_signals): Create also async_sigterm_token.
8216 (async_sigterm_handler): New function.
8217 (sync_quit_force_run): New variable.
8218 (handle_sigterm): Replace quit_force call by other calls.
8219 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8220
8221 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8222
8223 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8224 offset into SPE pseudo registers.
8225
8226 2014-03-18 Pedro Alves <palves@redhat.com>
8227
8228 PR gdb/13860
8229 * inferior.h (print_stop_event): Declare.
8230 * infrun.c (print_stop_event): New, factored out from ...
8231 (normal_stop): ... this.
8232 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8233 of bpstat_print/print_stack_frame.
8234
8235 2014-03-17 Tom Tromey <tromey@redhat.com>
8236
8237 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8238
8239 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8240
8241 * ada-lang.c (decode_constrained_packed_array): Perform a
8242 minimal coercion for reference with coerce_ref instead of
8243 ada_coerce_ref.
8244
8245 2014-03-17 Tristan Gingold <gingold@adacore.com>
8246
8247 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8248 (darwin_solib_create_inferior_hook): Emit a warning if version
8249 is unhandled.
8250
8251 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8252
8253 * python/py-value.c (get_field_flag): Cast flag_name argument to
8254 PyObject_GetAttrString to support Python 2.4.
8255
8256 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8257
8258 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8259 (Global Maintainers): Remove Jan Kratochvil.
8260
8261 2014-03-14 Pedro Alves <palves@redhat.com>
8262
8263 * inferior.h (terminal_ours_for_output): Rename to ...
8264 (child_terminal_ours_for_output): ... this.
8265 (terminal_save_ours): Rename to ...
8266 (child_terminal_save_ours): ... this.
8267 (terminal_ours): Rename to ...
8268 (child_terminal_ours): ... this.
8269 (terminal_inferior): Rename to ...
8270 (child_terminal_inferior): ... this.
8271 (terminal_init_inferior): Rename to ...
8272 (child_terminal_init_inferior): ... this.
8273 (terminal_init_inferior_with_pgrp): Rename to ...
8274 (child_terminal_init_inferior_with_pgrp): ... this.
8275 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8276 (child_terminal_init_with_pgrp): ... this.
8277 (terminal_save_ours): Rename to ...
8278 (child_terminal_save_ours): ... this.
8279 (terminal_init_inferior): Rename to ...
8280 (child_terminal_init): ... this. Adjust.
8281 (terminal_inferior): Rename to ...
8282 (child_terminal_inferior): ... this.
8283 (terminal_ours_for_output): Rename to ...
8284 (child_terminal_ours_for_output): ... this. Adjust.
8285 (terminal_ours): Rename to ...
8286 (child_terminal_ours): ... this.
8287 (terminal_ours_1): Rename to ...
8288 (child_terminal_ours_1): ... this. Adjust.
8289 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8290 * windows-nat.c (do_initial_windows_stuff): Adjust.
8291 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8292 (gnu_terminal_init): ... this. Adjust.
8293 (gnu_target): Adjust.
8294 * inf-child.c (inf_child_target): Adjust.
8295
8296 2014-03-13 Doug Evans <xdje42@gmail.com>
8297
8298 PR guile/16612
8299 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8300 new eq?-hashtab.
8301
8302 2014-03-13 Doug Evans <xdje42@gmail.com>
8303
8304 * value.c (record_latest_value): Call release_value_or_incref
8305 instead of release_value.
8306
8307 2014-03-13 Pedro Alves <palves@redhat.com>
8308
8309 * procfs.c (procfs_target): Don't override to_shortname,
8310 to_longname or to_doc.
8311
8312 2014-03-13 Pedro Alves <palves@redhat.com>
8313
8314 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8315 Unix in user visible strings.
8316
8317 2014-03-12 Stan Shebs <stan@codesourcery.com>
8318
8319 * gdbtypes.h: Annotate comments for Doxygen, add a page
8320 block comment with some general info.
8321
8322 2014-03-12 Pedro Alves <palves@redhat.com>
8323
8324 * infcmd.c (prepare_execution_command): New function, factored out
8325 from several execution commands.
8326 (run_command_1, continue_command, step_1, jump_command)
8327 (signal_command, until_command, advance_command, finish_command)
8328 (attach_command): Use prepare_execution_command.
8329
8330 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8331
8332 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8333 (MAX_BPTS): Define.
8334 (MAX_WPTS): Define.
8335 (struct arm_linux_thread_points): Removed.
8336 (struct arm_linux_process_info): New.
8337 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8338 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8339 (arm_linux_find_breakpoints_by_tid): Removed.
8340 (struct arch_lwp_info): New.
8341 (arm_linux_find_process_pid): New functions.
8342 (arm_linux_add_process): New functions.
8343 (arm_linux_process_info_get): New functions.
8344 (arm_linux_forget_process): New function.
8345 (arm_linux_get_debug_reg_state): New function.
8346 (struct update_registers_data): New.
8347 (update_registers_callback): New function.
8348 (arm_linux_insert_hw_breakpoint1): Updated.
8349 (arm_linux_remove_hw_breakpoint1): Updated.
8350 (arm_linux_insert_hw_breakpoint): Updated.
8351 (arm_linux_remove_hw_breakpoint): Updated.
8352 (arm_linux_insert_watchpoint): Updated.
8353 (arm_linux_remove_watchpoint): Updated.
8354 (arm_linux_new_thread): Updated.
8355 (arm_linux_prepare_to_resume): New function.
8356 (arm_linux_new_fork): New function.
8357 (_initialize_arm_linux_nat): Updated.
8358
8359 2014-03-12 Pedro Alves <palves@redhat.com>
8360
8361 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8362
8363 2014-03-12 Tom Tromey <tromey@redhat.com>
8364
8365 * inf-child.c (return_zero): New function.
8366 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8367 * aix-thread.c (aix_thread_inferior_created): New function.
8368 (aix_thread_attach): Remove.
8369 (init_aix_thread_ops): Don't set to_attach.
8370 (_initialize_aix_thread): Register inferior_created observer.
8371 * corelow.c (init_core_ops): Don't set to_attach or
8372 to_create_inferior.
8373 * exec.c (init_exec_ops): Don't set to_attach or
8374 to_create_inferior.
8375 * infcmd.c (run_command_1): Use find_run_target. Make direct
8376 target calls.
8377 (attach_command): Use find_attach_target. Make direct target
8378 calls.
8379 * record-btrace.c (init_record_btrace_ops): Don't set
8380 to_create_inferior.
8381 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8382 Remove.
8383 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8384 set to_create_inferior.
8385 * target.c (complete_target_initialization): Add assertion.
8386 (target_create_inferior): Remove.
8387 (find_default_attach, find_default_create_inferior): Remove.
8388 (find_attach_target, find_run_target): New functions.
8389 (find_default_is_async_p, find_default_can_async_p)
8390 (target_supports_non_stop, target_attach): Remove.
8391 (init_dummy_target): Don't set to_create_inferior or
8392 to_supports_non_stop.
8393 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8394 TARGET_DEFAULT_FUNC.
8395 <to_create_inferior>: Add comment.
8396 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8397 TARGET_DEFAULT_RETURN.
8398 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8399 (find_attach_target, find_run_target): Declare.
8400 (target_create_inferior): Remove.
8401 (target_has_execution_1): Update comment.
8402 (target_supports_non_stop): Remove.
8403 * target-delegates.c: Rebuild.
8404
8405 2014-03-12 Pedro Alves <palves@redhat.com>
8406
8407 * inf-child.h: Update comment to not mention Unix.
8408
8409 2014-03-12 Pedro Alves <palves@redhat.com>
8410
8411 * inf-child.c: Update top comment to not mention Unix. Add
8412 generic comment describing how this target is meant to be used.
8413 (inf_child_post_attach, inf_child_post_startup_inferior)
8414 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8415 Unix in comment.
8416
8417 2014-03-12 Pedro Alves <palves@redhat.com>
8418
8419 * nto-procfs.c: Include inf-child.h.
8420 (procfs_ops): Delete global.
8421 (procfs_can_run): Delete method.
8422 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8423 target pointer instead of referencing procfs_ops.
8424 (procfs_prepare_to_store): Delete.
8425 (init_procfs_ops): Delete function.
8426 (procfs_target): New function, based on init_procfs_ops, but
8427 inherit inf_child_target.
8428 (_initialize_procfs): Use procfs_target.
8429
8430 2014-03-12 Pedro Alves <palves@redhat.com>
8431
8432 * windows-nat.c: Include inf-child.h.
8433 (windows_ops): Delete global.
8434 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8435 methods.
8436 (init_windows_ops): Delete function.
8437 (windows_target): New function, based on init_windows_ops, but
8438 inherit inf_child_target.
8439 (_initialize_windows_nat): Use windows_target. Install x86
8440 specific target methods here.
8441
8442 2014-03-10 Doug Evans <xdje42@gmail.com>
8443
8444 * guile/guile.c (call_initialize_gdb_module): New function.
8445 (initialize_guile): Replace call to scm_init_guile with call to
8446 scm_with_guile.
8447
8448 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8449
8450 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8451 in call to TYPE_CODE macro.
8452
8453 2014-03-10 Jerome Guitton <guitton@adacore.com>
8454
8455 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8456 Resolve tagged types to full view.
8457
8458 2014-03-10 Hui Zhu <hui@codesourcery.com>
8459
8460 * target.h (target_insert_breakpoint): Remove "hardware" from its
8461 comments.
8462
8463 2014-03-07 Doug Evans <dje@google.com>
8464
8465 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8466
8467 2014-03-07 Doug Evans <dje@google.com>
8468
8469 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8470 Remove unused local comp_dir_attr. Assert exactly one of
8471 stub_comp_unit_die, stub_comp_dir is non-NULL.
8472
8473 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8474
8475 * target.h (complete_target_initialization, add_target):
8476 Add comment.
8477
8478 2014-03-07 Pedro Alves <palves@redhat.com>
8479
8480 * go32-nat.c: Include inf-child.h.
8481 (go32_ops): Delete global.
8482 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8483 Delete methods.
8484 (go32_create_inferior): Push the passed in target pointer instead
8485 of referencing go32_ops.
8486 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8487 (go32_target): New function, based on init_go32_ops, but inherit
8488 inf_child_target.
8489 (_initialize_go32_nat): Use go32_target. Move parts of
8490 init_go32_ops here.
8491
8492 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8493
8494 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8495 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8496 SYMBOL_VALUE_ADDRESS.
8497 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8498
8499 2014-03-06 Yao Qi <yao@codesourcery.com>
8500
8501 * breakpoint.c (get_tracepoint_by_number): Remove argument
8502 optional_p. All callers updated. Adjust comments. Update
8503 output message.
8504 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8505
8506 2014-03-06 Yao Qi <yao@codesourcery.com>
8507
8508 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8509 early if get_number returns zero. Use 'p' instead of 'args'.
8510
8511 2014-03-06 Yao Qi <yao@codesourcery.com>
8512
8513 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8514 message.
8515
8516 2014-03-06 Yao Qi <yao@codesourcery.com>
8517
8518 PR breakpoints/16508
8519 * tracepoint.c (check_trace_running): New function.
8520 (trace_find_command): Move code to check_trace_running and
8521 call check_trace_running.
8522 (trace_find_pc_command): Likewise.
8523 (trace_find_tracepoint_command): Likewise.
8524 (trace_find_line_command): Likewise.
8525 (trace_find_range_command): Likewise.
8526 * tracepoint.h (check_trace_running): Likewise.
8527 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8528
8529 2014-03-06 Yao Qi <yao@codesourcery.com>
8530
8531 * target.h (struct target_ops) <to_traceframe_info>: Use
8532 TARGET_DEFAULT_NORETURN (tcomplain ()).
8533 * target-delegates.c: Regenerated.
8534
8535 2014-03-05 Pedro Alves <palves@redhat.com>
8536
8537 PR gdb/16575
8538 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8539 void. Update comment.
8540 (dcache_xfer_memory): Delete.
8541 (dcache_read_memory_partial): New, based on the read bits of
8542 dcache_xfer_memory.
8543 (dcache_update): Add status parameter. Use ULONGEST for len, and
8544 adjust. Discard cache lines if the reason for the update was
8545 error.
8546 * dcache.h (dcache_xfer_memory): Delete declaration.
8547 (dcache_read_memory_partial): New declaration.
8548 (dcache_update): Update prototype.
8549 * target.c (raw_memory_xfer_partial): Update the dcache here.
8550 (memory_xfer_partial_1): Don't handle dcache writes here.
8551
8552 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8553
8554 * remote-sim.c (gdbsim_load): Add const to prog.
8555
8556 2014-03-03 Tom Tromey <tromey@redhat.com>
8557
8558 * elfread.c (probe_key): Change to bfd_data.
8559 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8560 now per-BFD, not per-objfile.
8561 * stap-probe.c (stap_probe_destroy): Update comment.
8562 (handle_stap_probe): Allocate on the per-BFD obstack.
8563
8564 2014-03-03 Tom Tromey <tromey@redhat.com>
8565
8566 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8567 * breakpoint.c (create_longjmp_master_breakpoint): Use
8568 get_probe_address.
8569 (add_location_to_breakpoint, bkpt_probe_insert_location)
8570 (bkpt_probe_remove_location): Update.
8571 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8572 * elfread.c (elf_symfile_relocate_probe): Remove.
8573 (elf_probe_fns): Update.
8574 (insert_exception_resume_breakpoint): Change type of "probe"
8575 parameter to bound_probe.
8576 (check_exception_resume): Update.
8577 * objfiles.c (objfile_relocate1): Don't relocate probes.
8578 * probe.c (bound_probe_s): New typedef.
8579 (parse_probes): Use get_probe_address. Set sal's objfile.
8580 (find_probe_by_pc): Return a bound_probe.
8581 (collect_probes): Return a VEC(bound_probe_s).
8582 (compare_probes): Update.
8583 (gen_ui_out_table_header_info): Change type of "probes"
8584 parameter. Update.
8585 (info_probes_for_ops): Update.
8586 (get_probe_address): New function.
8587 (probe_safe_evaluate_at_pc): Update.
8588 * probe.h (struct probe_ops) <get_probe_address>: New field.
8589 <set_semaphore, clear_semaphore>: Add objfile parameter.
8590 (struct probe) <objfile>: Remove field.
8591 <arch>: New field.
8592 <address>: Update comment.
8593 (struct bound_probe): New.
8594 (find_probe_by_pc): Return a bound_probe.
8595 (get_probe_address): Declare.
8596 * solib-svr4.c (struct probe_and_action) <address>: New field.
8597 (hash_probe_and_action, equal_probe_and_action): Update.
8598 (register_solib_event_probe): Add address parameter.
8599 (solib_event_probe_at): Update.
8600 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8601 get_probe_address.
8602 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8603 (stap_get_probe_address): New function.
8604 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8605 (compile_probe_arg): Update.
8606 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8607 address.
8608 (handle_stap_probe): Don't relocate the probe.
8609 (stap_relocate): Remove.
8610 (stap_gen_info_probes_table_values): Update.
8611 (stap_probe_ops): Remove stap_relocate.
8612 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8613 (debug_sym_probe_fns): Update.
8614 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8615 * symtab.c (init_sal): Use memset.
8616 * symtab.h (struct symtab_and_line) <objfile>: New field.
8617 * tracepoint.c (start_tracing, stop_tracing): Update.
8618
8619 2014-03-03 Tom Tromey <tromey@redhat.com>
8620
8621 * probe.h (parse_probes, find_probe_by_pc)
8622 (find_probes_in_objfile): Fix comments.
8623
8624 2014-03-02 Doug Evans <xdje42@gmail.com>
8625
8626 * infrun.c (handle_signal_stop): Replace test for
8627 TARGET_WAITKIND_STOPPED with an assert.
8628
8629 2014-03-02 Doug Evans <xdje42@gmail.com>
8630
8631 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8632
8633 2014-03-02 Doug Evans <xdje42@gmail.com>
8634
8635 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8636
8637 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8638
8639 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8640
8641 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8642
8643 * i386obsd-nat.c: Include "obsd-nat.h".
8644 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8645 add_target.
8646 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8647
8648 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8649
8650 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8651
8652 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8653
8654 * mips64obsd-nat.c: Include "obsd-nath".
8655 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8656 add_target
8657 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8658
8659 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8660
8661 * amd64obsd-nat.c: Include "obsd-nat,h.
8662 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8663 add_target.
8664 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8665
8666 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8667
8668 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8669 (find_overload_match): Update call to find_oload_champ.
8670 (find_oload_champ_namespace_loop): Likewise
8671
8672 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8673
8674 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8675
8676 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8677 * config/sparc/obsd64.mh: New file.
8678 * sparc64obsd-nat.c: New file.
8679
8680 * obsd-nat.h: New file.
8681 * obsd-nat.c: New file.
8682 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8683 (ALLDEPFILES): Add obsd-nat.c.
8684
8685 2014-02-28 Tom Tromey <tromey@redhat.com>
8686
8687 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8688 * cli-out.h (cli_ui_out_impl): Now const.
8689 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8690 * ui-out.c (struct ui_out) <impl>: Now const.
8691 (default_ui_out_impl): Now const.
8692 (ui_out_new): Make 'impl' parameter const.
8693 * ui-out.h (ui_out_new): Update.
8694
8695 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8696
8697 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8698
8699 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8700
8701 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8702
8703 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8704
8705 Additional PR 8882 fix.
8706 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8707
8708 2014-02-27 Pedro Alves <palves@redhat.com>
8709
8710 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8711 isn't set.
8712
8713 2014-02-27 Pedro Alves <palves@redhat.com>
8714
8715 PR 12702
8716 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8717 * nat/linux-waitpid.c: Include string.h.
8718 (status_to_str): Moved here and made extern.
8719 * nat/linux-waitpid.h (status_to_str): New declaration.
8720
8721 2014-02-27 Hui Zhu <hui@codesourcery.com>
8722
8723 PR 12702
8724 * infrun.c (ptid_match): Move ...
8725 * common/ptid.c (ptid_match): ... here.
8726 * inferior.h (ptid_match): Move ...
8727 * common/ptid.h (ptid_match): ... here.
8728
8729 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8730
8731 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8732 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8733 gdb_target_obs.
8734
8735 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8736
8737 * obsd-tdep.c (obsd_auxv_parse): New function.
8738 (obsd_init_abi): Set auxv_parse.
8739
8740 * gdbarch.sh (auxv_parse): New.
8741 * gdbarch.h: Regenerated.
8742 * gdbarch.c: Regenerated.
8743 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8744
8745 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8746
8747 * guile/scm-value.c (gdbscm_history_append_x): New function.
8748 (value_functions): Add it.
8749
8750 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8751
8752 * dwarf2read.c (attr_value_as_address): New function.
8753 (dwarf2_find_base_address, read_call_site_scope): Use
8754 attr_value_as_address in place of DW_ADDR.
8755 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8756 the low and high addresses. Slight rework of the handling
8757 of the high pc being a constant form, and limit it to
8758 DWARF verson 4 or higher.
8759 (dwarf2_record_block_ranges): Likewise.
8760 (read_partial_die): Likewise.
8761 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8762
8763 2014-02-26 Tom Tromey <tromey@redhat.com>
8764
8765 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8766
8767 2014-02-26 Tom Tromey <tromey@redhat.com>
8768
8769 * elfread.c (elf_read_minimal_symbols): Return early if
8770 minimal symbols have already been read. Add "ei" parameter.
8771 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8772 * minsyms.c (prim_record_minimal_symbol_full): Update.
8773 * objfiles.h (struct objstats) <n_minsyms>: Move...
8774 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8775 * symmisc.c (print_objfile_statistics): Update.
8776
8777 2014-02-26 Tom Tromey <tromey@redhat.com>
8778
8779 * elfread.c (elf_read_minimal_symbols): New function, from
8780 elf_symfile_read.
8781 (elf_symfile_read): Call it.
8782
8783 2014-02-26 Tom Tromey <tromey@redhat.com>
8784
8785 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8786 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8787 (lookup_minimal_symbol_solib_trampoline)
8788 (lookup_minimal_symbol_by_pc_section_1)
8789 (lookup_minimal_symbol_and_objfile): Update.
8790 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8791 Don't allocate a minimal symbol if minsyms have already been read.
8792 (build_minimal_symbol_hash_tables): Update.
8793 (install_minimal_symbols): Do nothing if minsyms already read.
8794 Use the per-BFD obstack.
8795 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8796 * objfiles.c (allocate_objfile): Call
8797 terminate_minimal_symbol_table later.
8798 (have_minimal_symbols): Update.
8799 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8800 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8801 Move from struct objfile.
8802 <minsyms_read>: New field.
8803 (struct objfile) <msymbols, minimal_symbol_count,
8804 msymbol_hash, msymbol_demangled_hash>: Move.
8805 (ALL_OBJFILE_MSYMBOLS): Update.
8806 * symfile.c (read_symbols): Set minsyms_read.
8807 (reread_symbols): Update.
8808 * symmisc.c (dump_objfile, dump_msymbols): Update.
8809
8810 2014-02-26 Tom Tromey <tromey@redhat.com>
8811
8812 * minsyms.c (msymbols_sort): Remove.
8813 * minsyms.h (msymbols_sort): Remove.
8814 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8815 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8816 * elfread.c (elf_symtab_read): Don't add section offsets.
8817 * xcoffread.c (record_minimal_symbol): Don't add section offset
8818 to minimal symbol address.
8819 * somread.c (text_offset, data_offset): Remove.
8820 (som_symtab_read): Don't add section offsets to minimal symbol
8821 addresses.
8822 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8823 Don't add section offsets to minimal symbols.
8824 * coffread.c (coff_symtab_read): Don't add section offsets
8825 to minimal symbol addresses.
8826 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8827 to minimal symbol addresses.
8828 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8829 section offset to minimal symbol addresses.
8830 * mdebugread.c (parse_partial_symbols): Don't add section
8831 offset to minimal symbol addresses.
8832 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8833 offset to minimal symbol addresses.
8834
8835 2014-02-26 Tom Tromey <tromey@redhat.com>
8836
8837 * ada-lang.c (ada_main_name): Update.
8838 (ada_add_standard_exceptions): Update.
8839 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8840 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8841 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8842 * auxv.c (ld_so_xfer_auxv): Update.
8843 * avr-tdep.c (avr_scan_prologue): Update.
8844 * ax-gdb.c (gen_var_ref): Update.
8845 * blockframe.c (get_pc_function_start)
8846 (find_pc_partial_function_gnu_ifunc): Update.
8847 * breakpoint.c (create_overlay_event_breakpoint)
8848 (create_longjmp_master_breakpoint)
8849 (create_std_terminate_master_breakpoint)
8850 (create_exception_master_breakpoint): Update.
8851 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8852 * c-valprint.c (c_val_print): Update.
8853 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8854 * common/agent.c (agent_look_up_symbols): Update.
8855 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8856 * dwarf2loc.c (call_site_to_target_addr): Update.
8857 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8858 * elfread.c (elf_gnu_ifunc_record_cache)
8859 (elf_gnu_ifunc_resolve_by_got): Update.
8860 * findvar.c (default_read_var_value): Update.
8861 * frame.c (inside_main_func): Update.
8862 * frv-tdep.c (frv_frame_this_id): Update.
8863 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8864 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8865 Update.
8866 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8867 (hppa_hpux_find_dummy_bpaddr): Update.
8868 * hppa-tdep.c (hppa_symbol_address): Update.
8869 * infcmd.c (until_next_command): Update.
8870 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8871 Update.
8872 * linespec.c (minsym_found, add_minsym): Update.
8873 * linux-nat.c (get_signo): Update.
8874 * linux-thread-db.c (inferior_has_bug): Update.
8875 * m32c-tdep.c (m32c_return_value)
8876 (m32c_m16c_address_to_pointer): Update.
8877 * m32r-tdep.c (m32r_frame_this_id): Update.
8878 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8879 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8880 * maint.c (maintenance_translate_address): Update.
8881 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8882 (frob_address): New function.
8883 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8884 frob_address. Rename parameter to "pc_in".
8885 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8886 addresses.
8887 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8888 Update.
8889 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8890 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8891 * objc-lang.c (find_objc_msgsend): Update.
8892 * objfiles.c (objfile_relocate1): Update.
8893 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8894 * p-valprint.c (pascal_val_print): Update.
8895 * parse.c (write_exp_msymbol): Update.
8896 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8897 (ppc_elfv2_skip_entrypoint): Update.
8898 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8899 * printcmd.c (build_address_symbolic, msym_info)
8900 (address_info): Update.
8901 * proc-service.c (ps_pglobal_lookup): Update.
8902 * psymtab.c (find_pc_sect_psymtab_closer)
8903 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8904 Change msymbol parameter to bound_minimal_symbol.
8905 * ravenscar-thread.c (get_running_thread_id): Update.
8906 * remote.c (remote_check_symbols): Update.
8907 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8908 address.
8909 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8910 * solib-dsbt.c (lm_base): Update.
8911 * solib-frv.c (lm_base, main_got): Update.
8912 * solib-irix.c (locate_base): Update.
8913 * solib-som.c (som_solib_create_inferior_hook)
8914 (link_map_start): Update.
8915 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8916 * solib-svr4.c (elf_locate_base, enable_break): Update.
8917 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8918 (flush_ea_cache): Update.
8919 * stabsread.c (define_symbol, scan_file_globals): Update.
8920 * stack.c (find_frame_funname): Update.
8921 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8922 (debug_qf_find_pc_sect_symtab): Update.
8923 * symfile.c (simple_read_overlay_table)
8924 (simple_overlay_update): Update.
8925 * symfile.h (struct quick_symbol_functions)
8926 <find_pc_sect_symtab>: Change type of msymbol to
8927 bound_minimal_symbol.
8928 * symmisc.c (dump_msymbols): Update.
8929 * symtab.c (find_pc_sect_symtab_via_partial)
8930 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8931 (search_symbols, print_msymbol_info): Update.
8932 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8933 (MSYMBOL_VALUE_ADDRESS): Redefine.
8934 (BMSYMBOL_VALUE_ADDRESS): New macro.
8935 * tracepoint.c (scope_info): Update.
8936 * tui/tui-disasm.c (tui_find_disassembly_address)
8937 (tui_get_begin_asm_address): Update.
8938 * valops.c (find_function_in_inferior): Update.
8939 * value.c (value_static_field, value_fn_field): Update.
8940
8941 2014-02-26 Tom Tromey <tromey@redhat.com>
8942
8943 * ada-lang.c (ada_update_initial_language): Update.
8944 (ada_main_name, ada_has_this_exception_support): Update.
8945 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8946 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8947 * arm-tdep.c (arm_skip_stub): Update.
8948 * auxv.c (ld_so_xfer_auxv): Update.
8949 * avr-tdep.c (avr_scan_prologue): Update.
8950 * ax-gdb.c (gen_var_ref): Update.
8951 * breakpoint.c (struct breakpoint_objfile_data)
8952 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8953 type to bound_minimal_symbol.
8954 (create_overlay_event_breakpoint)
8955 (create_longjmp_master_breakpoint)
8956 (create_std_terminate_master_breakpoint)
8957 (create_exception_master_breakpoint): Update.
8958 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8959 * c-exp.y (classify_name): Update.
8960 * coffread.c (coff_symfile_read): Update.
8961 * common/agent.c (agent_look_up_symbols): Update.
8962 * d-lang.c (d_main_name): Update.
8963 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8964 * dec-thread.c (enable_dec_thread): Update.
8965 * dwarf2loc.c (call_site_to_target_addr): Update.
8966 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8967 * eval.c (evaluate_subexp_standard): Update.
8968 * findvar.c (struct minsym_lookup_data) <result>: Change type
8969 to bound_minimal_symbol.
8970 <objfile>: Remove.
8971 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8972 * frame.c (inside_main_func): Update.
8973 * frv-tdep.c (frv_frame_this_id): Update.
8974 * gcore.c (call_target_sbrk): Update.
8975 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8976 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8977 Update.
8978 * go-lang.c (go_main_name): Update.
8979 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8980 (hppa_hpux_find_import_stub_for_addr): Update.
8981 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8982 Update. Change return type.
8983 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8984 type.
8985 * jit.c (jit_breakpoint_re_set_internal): Update.
8986 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8987 Update.
8988 * linux-nat.c (get_signo): Update.
8989 * linux-thread-db.c (inferior_has_bug): Update
8990 * m32c-tdep.c (m32c_return_value)
8991 (m32c_m16c_address_to_pointer): Update.
8992 * m32r-tdep.c (m32r_frame_this_id): Update.
8993 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8994 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8995 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8996 lookup_minimal_symbol. Change return type.
8997 (lookup_minimal_symbol): Remove.
8998 (lookup_bound_minimal_symbol): Update.
8999 (lookup_minimal_symbol_text): Change return type.
9000 (lookup_minimal_symbol_solib_trampoline): Change return type.
9001 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9002 (lookup_minimal_symbol_solib_trampoline): Change return type.
9003 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9004 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9005 (value_nsstring, find_imps): Update.
9006 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9007 * p-lang.c (pascal_main_name): Update.
9008 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9009 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9010 * proc-service.c (ps_pglobal_lookup): Update.
9011 * ravenscar-thread.c (get_running_thread_msymbol): Change
9012 return type.
9013 (has_ravenscar_runtime, get_running_thread_id): Update.
9014 * remote.c (remote_check_symbols): Update.
9015 * sol-thread.c (ps_pglobal_lookup): Update.
9016 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9017 * solib-dsbt.c (lm_base): Update.
9018 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9019 Update.
9020 * solib-irix.c (locate_base): Update.
9021 * solib-som.c (som_solib_create_inferior_hook)
9022 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9023 Update.
9024 * solib-spu.c (spu_enable_break): Update.
9025 * solib-svr4.c (elf_locate_base, enable_break): Update.
9026 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9027 (flush_ea_cache): Update.
9028 * stabsread.c (define_symbol): Update.
9029 * symfile.c (simple_read_overlay_table): Update.
9030 * symtab.c (find_pc_sect_line): Update.
9031 * tracepoint.c (scope_info): Update.
9032 * tui-disasm.c (tui_get_begin_asm_address): Update.
9033 * value.c (value_static_field): Update.
9034
9035 2014-02-26 Tom Tromey <tromey@redhat.com>
9036
9037 * minsyms.c (prim_record_minimal_symbol_full): Use
9038 SET_MSYMBOL_VALUE_ADDRESS.
9039 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9040 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9041 SET_MSYMBOL_VALUE_ADDRESS.
9042 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9043 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9044
9045 2014-02-26 Tom Tromey <tromey@redhat.com>
9046
9047 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9048 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9049 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9050 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9051 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9052 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9053 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9054 * ada-lang.c (ada_main_name): Update.
9055 (ada_lookup_simple_minsym): Update.
9056 (ada_make_symbol_completion_list): Update.
9057 (ada_add_standard_exceptions): Update.
9058 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9059 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9060 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9061 * arm-tdep.c (skip_prologue_function): Update.
9062 (arm_skip_stack_protector, arm_skip_stub): Update.
9063 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9064 (arm_wince_skip_main_prologue): Update.
9065 * auxv.c (ld_so_xfer_auxv): Update.
9066 * avr-tdep.c (avr_scan_prologue): Update.
9067 * ax-gdb.c (gen_var_ref): Update.
9068 * block.c (call_site_for_pc): Update.
9069 * blockframe.c (get_pc_function_start): Update.
9070 (find_pc_partial_function_gnu_ifunc): Update.
9071 * breakpoint.c (create_overlay_event_breakpoint): Update.
9072 (create_longjmp_master_breakpoint): Update.
9073 (create_std_terminate_master_breakpoint): Update.
9074 (create_exception_master_breakpoint): Update.
9075 (resolve_sal_pc): Update.
9076 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9077 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9078 Update.
9079 * c-valprint.c (c_val_print): Update.
9080 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9081 * coffread.c (coff_symfile_read): Update.
9082 * common/agent.c (agent_look_up_symbols): Update.
9083 * dbxread.c (find_stab_function_addr): Update.
9084 (end_psymtab): Update.
9085 * dwarf2loc.c (call_site_to_target_addr): Update.
9086 (func_verify_no_selftailcall): Update.
9087 (tailcall_dump): Update.
9088 (call_site_find_chain_1): Update.
9089 (dwarf_expr_reg_to_entry_parameter): Update.
9090 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9091 (elf_gnu_ifunc_resolve_by_got): Update.
9092 * f-valprint.c (info_common_command): Update.
9093 * findvar.c (read_var_value): Update.
9094 * frame.c (get_prev_frame_1): Update.
9095 (inside_main_func): Update.
9096 * frv-tdep.c (frv_skip_main_prologue): Update.
9097 (frv_frame_this_id): Update.
9098 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9099 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9100 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9101 (gnuv3_skip_trampoline): Update.
9102 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9103 (hppa64_hpux_in_solib_call_trampoline): Update.
9104 (hppa_hpux_skip_trampoline_code): Update.
9105 (hppa64_hpux_search_dummy_call_sequence): Update.
9106 (hppa_hpux_find_import_stub_for_addr): Update.
9107 (hppa_hpux_find_dummy_bpaddr): Update.
9108 * hppa-tdep.c (hppa_symbol_address)
9109 (hppa_lookup_stub_minimal_symbol): Update.
9110 * i386-tdep.c (i386_skip_main_prologue): Update.
9111 (i386_pe_skip_trampoline_code): Update.
9112 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9113 * infcall.c (get_function_name): Update.
9114 * infcmd.c (until_next_command): Update.
9115 * jit.c (jit_breakpoint_re_set_internal): Update.
9116 (jit_inferior_init): Update.
9117 * linespec.c (minsym_found): Update.
9118 (add_minsym): Update.
9119 * linux-fork.c (info_checkpoints_command): Update.
9120 * linux-nat.c (get_signo): Update.
9121 * linux-thread-db.c (inferior_has_bug): Update.
9122 * m32c-tdep.c (m32c_return_value): Update.
9123 (m32c_m16c_address_to_pointer): Update.
9124 (m32c_m16c_pointer_to_address): Update.
9125 * m32r-tdep.c (m32r_frame_this_id): Update.
9126 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9127 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9128 * maint.c (maintenance_translate_address): Update.
9129 * minsyms.c (add_minsym_to_hash_table): Update.
9130 (add_minsym_to_demangled_hash_table): Update.
9131 (msymbol_objfile): Update.
9132 (lookup_minimal_symbol): Update.
9133 (iterate_over_minimal_symbols): Update.
9134 (lookup_minimal_symbol_text): Update.
9135 (lookup_minimal_symbol_by_pc_name): Update.
9136 (lookup_minimal_symbol_solib_trampoline): Update.
9137 (lookup_minimal_symbol_by_pc_section_1): Update.
9138 (lookup_minimal_symbol_and_objfile): Update.
9139 (prim_record_minimal_symbol_full): Update.
9140 (compare_minimal_symbols): Update.
9141 (compact_minimal_symbols): Update.
9142 (build_minimal_symbol_hash_tables): Update.
9143 (install_minimal_symbols): Update.
9144 (terminate_minimal_symbol_table): Update.
9145 (find_solib_trampoline_target): Update.
9146 (minimal_symbol_upper_bound): Update.
9147 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9148 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9149 (mips_skip_pic_trampoline_code): Update.
9150 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9151 * objc-lang.c (selectors_info): Update.
9152 (classes_info): Update.
9153 (find_methods): Update.
9154 (find_imps): Update.
9155 (find_objc_msgsend): Update.
9156 * objfiles.c (objfile_relocate1): Update.
9157 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9158 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9159 * p-valprint.c (pascal_val_print): Update.
9160 * parse.c (write_exp_msymbol): Update.
9161 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9162 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9163 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9164 * printcmd.c (build_address_symbolic): Update.
9165 (sym_info): Update.
9166 (address_info): Update.
9167 * proc-service.c (ps_pglobal_lookup): Update.
9168 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9169 (find_pc_sect_psymtab): Update.
9170 * python/py-framefilter.c (py_print_frame): Update.
9171 * ravenscar-thread.c (get_running_thread_id): Update.
9172 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9173 Update.
9174 * remote.c (remote_check_symbols): Update.
9175 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9176 (rs6000_skip_trampoline_code): Update.
9177 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9178 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9179 * solib-dsbt.c (lm_base): Update.
9180 * solib-frv.c (lm_base): Update.
9181 (main_got): Update.
9182 * solib-irix.c (locate_base): Update.
9183 * solib-som.c (som_solib_create_inferior_hook): Update.
9184 (som_solib_desire_dynamic_linker_symbols): Update.
9185 (link_map_start): Update.
9186 * solib-spu.c (spu_enable_break): Update.
9187 (ocl_enable_break): Update.
9188 * solib-svr4.c (elf_locate_base): Update.
9189 (enable_break): Update.
9190 * spu-tdep.c (spu_get_overlay_table): Update.
9191 (spu_catch_start): Update.
9192 (flush_ea_cache): Update.
9193 * stabsread.c (define_symbol): Update.
9194 (scan_file_globals): Update.
9195 * stack.c (find_frame_funname): Update.
9196 (frame_info): Update.
9197 * symfile.c (simple_read_overlay_table): Update.
9198 (simple_overlay_update): Update.
9199 * symmisc.c (dump_msymbols): Update.
9200 * symtab.c (fixup_section): Update.
9201 (find_pc_sect_line): Update.
9202 (skip_prologue_sal): Update.
9203 (search_symbols): Update.
9204 (print_msymbol_info): Update.
9205 (rbreak_command): Update.
9206 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9207 (completion_list_objc_symbol): Update.
9208 (default_make_symbol_completion_list_break_on): Update.
9209 * tracepoint.c (scope_info): Update.
9210 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9211 (tui_get_begin_asm_address): Update.
9212 * valops.c (find_function_in_inferior): Update.
9213 * value.c (value_static_field): Update.
9214 (value_fn_field): Update.
9215
9216 2014-02-26 Tom Tromey <tromey@redhat.com>
9217
9218 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9219 bound minimal symbols. Move code that knows about minsym
9220 table layout...
9221 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9222 function.
9223 * minsyms.h (minimal_symbol_upper_bound): Declare.
9224 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9225 minimal_symbol_upper_bound.
9226
9227 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9228
9229 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9230 Use the type's name if its basic type does not have a tag.
9231
9232 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9233
9234 * dwarf2read.c (read_subrange_type): Add comment.
9235
9236 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9237
9238 * dwarf2read.c (update_enumeration_type_from_children): New
9239 function, mostly extracted from process_structure_scope.
9240 (read_enumeration_type): Call update_enumeration_type_from_children.
9241 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9242 and flag_flag_enum fields.
9243
9244 2014-02-26 Pedro Alves <palves@redhat.com>
9245
9246 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9247 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9248 to_xfer_partial method.
9249
9250 2014-02-26 Pedro Alves <palves@redhat.com>
9251
9252 * target.c (complete_target_initialization): Don't install
9253 default_xfer_partial as to_xfer_partial hook.
9254 (nomemory): Delete.
9255 (update_current_target): Don't INHERIT nor de_fault
9256 deprecated_xfer_memory. Delete de_fault macro.
9257 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9258 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9259 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9260 field.
9261
9262 2014-02-26 Pedro Alves <palves@redhat.com>
9263
9264 * go32-nat.c (my_write_child): New function.
9265 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9266 (go32_xfer_partial): New function.
9267 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9268 Instead install a to_xfer_partial hook.
9269
9270 2014-02-26 Pedro Alves <palves@redhat.com>
9271
9272 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9273 to_xfer_partial helper. Rewrite.
9274 (procfs_xfer_partial): New function.
9275 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9276 Install a to_xfer_partial hook.
9277
9278 2014-02-26 Pedro Alves <palves@redhat.com>
9279
9280 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9281 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9282 (m32r_xfer_partial): New function.
9283 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9284 Install a to_xfer_partial hook.
9285
9286 2014-02-26 Pedro Alves <palves@redhat.com>
9287
9288 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9289 helper.
9290 (mips_xfer_partial): New function.
9291 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9292 hook. Install a to_xfer_partial hook.
9293
9294 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9295
9296 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9297 * gdbtypes.c (create_array_type_with_stride): New function,
9298 renaming create_array_type, but with an added parameter
9299 called "bit_stride".
9300 (create_array_type): Re-implement using
9301 create_array_type_with_stride.
9302 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9303 and DW_AT_bit_stride attributes.
9304
9305 2014-02-26 Pedro Alves <palves@redhat.com>
9306
9307 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9308 task-specific breakpoints.
9309
9310 2014-02-25 Pedro Alves <palves@redhat.com>
9311
9312 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9313 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9314
9315 2014-02-25 Stan Shebs <stan@codesourcery.com>
9316
9317 * defs.h: Annotate comments for Doxygen.
9318
9319 2014-02-25 Tom Tromey <tromey@redhat.com>
9320
9321 * target.h (target_ignore): Don't declare.
9322 * target.c (target_ignore): Remove.
9323
9324 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9325
9326 PR gdb/16626
9327 * auto-load.c (auto_load_objfile_script_1): Change filename to
9328 debugfile.
9329
9330 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9331
9332 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9333 documentation. Adjust prototype to match the target_ops
9334 to_xfer_partial method. Adjust implementation accordingly.
9335
9336 2014-02-25 Hui Zhu <hui@codesourcery.com>
9337
9338 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9339 to_traceframe_info.
9340
9341 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9342
9343 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9344 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9345 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9346 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9347 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9348 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9349 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9350 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9351 New constants.
9352 (rl78_register_type): Use a data pointer type for SP and
9353 new pseudo registers mentioned above. Use a 16 bit integer
9354 type for all other register pairs.
9355 (rl78_register_name, rl78_g10_register_name): Update for
9356 new pseudo registers.
9357 (rl78_pseudo_register_read): Likewise.
9358 (rl78_pseudo_register_write): Likewise.
9359 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9360 to the newly added pseudo registers.
9361
9362 2014-02-24 Doug Evans <dje@google.com>
9363
9364 * value.c (record_latest_value): Fix comment.
9365 * printcmd.c (print_command_1): Remove code to handle -1 return from
9366 record_latest_value.
9367
9368 2014-02-24 Pedro Alves <palves@redhat.com>
9369
9370 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9371 deprecated_xfer_memory hook.
9372 (procfs_xfer_partial): Call procfs_xfer_memory instead
9373 of the deprecated_xfer_memory target hook.
9374 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9375 helper.
9376
9377 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9378
9379 * windows-nat.c (windows_xfer_shared_libraries): Return
9380 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9381 requested object is TARGET_OBJECT_LIBRARIES.
9382
9383 2014-02-24 Yao Qi <yao@codesourcery.com>
9384
9385 * target.h (enum target_xfer_status)
9386 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9387 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9388 explicitly. New.
9389 * corefile.c (memory_error_message): User updated.
9390 * exec.c (section_table_read_available_memory): Likewise.
9391 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9392 * target.c (target_xfer_status_to_string): Likewise.
9393 (raw_memory_xfer_partial): Likewise.
9394 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9395 * valops.c (read_value_memory): Likewise.
9396 * exec.h: Update comments.
9397
9398 2014-02-24 Yao Qi <yao@codesourcery.com>
9399
9400 * target.c (target_xfer_status_to_string): Rename argument err
9401 to status.
9402 * target.h (target_xfer_status_to_string): Update declaration.
9403 Replace target_xfer_error_to_string with
9404 target_xfer_status_to_string in comment.
9405
9406 2014-02-24 Yao Qi <yao@codesourcery.com>
9407
9408 * mips-linux-nat.c (super_close): Update its type.
9409 (mips_linux_close): Pass 'self' to super_close.
9410
9411 2014-02-24 Yao Qi <yao@codesourcery.com>
9412
9413 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9414 * corefile.c (read_memory): Adjusted.
9415 * target.c (target_write_with_progress): Adjusted.
9416
9417 2014-02-23 Yao Qi <yao@codesourcery.com>
9418
9419 Revert two patches:
9420
9421 2013-10-25 Yao Qi <yao@codesourcery.com>
9422
9423 * remote.c (remote_traceframe_info): Return early if
9424 traceframe is not selected.
9425
9426 2013-07-19 Yao Qi <yao@codesourcery.com>
9427
9428 * target.c (update_current_target): Change the default action
9429 of 'to_traceframe_info' from tcomplain to return_zero.
9430 * target.h (struct target_ops) <to_traceframe_info>: Add more
9431 comments.
9432
9433 2014-02-23 Yao Qi <yao@codesourcery.com>
9434
9435 * valops.c (read_value_memory): Rewrite it. Call
9436 target_xfer_partial in a loop.
9437 * exec.h (section_table_available_memory): Remove declaration.
9438 Move comments to ...
9439 * exec.c (section_table_available_memory): ... here. Make it
9440 static.
9441
9442 2014-02-23 Yao Qi <yao@codesourcery.com>
9443
9444 * exec.c (section_table_read_available_memory): New function.
9445 * exec.h (section_table_read_available_memory): Declare.
9446 * ctf.c (ctf_xfer_partial): Call
9447 section_table_read_available_memory.
9448 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9449
9450 2014-02-23 Yao Qi <yao@codesourcery.com>
9451
9452 * ctf.c (ctf_xfer_partial): Move code to ...
9453 * exec.c (exec_read_partial_read_only): ... it. New function.
9454 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9455 * tracefile.c: Include "exec.h".
9456 * exec.h (exec_read_partial_read_only): Declare.
9457
9458 2014-02-23 Yao Qi <yao@codesourcery.com>
9459
9460 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9461 (tfile_has_memory): Remove.
9462 (init_tfile_ops): Don't set fields to_has_all_memory and
9463 to_has_memory of tfile_ops.
9464 * tracefile.c (tracefile_has_all_memory): New function.
9465 (tracefile_has_memory): New function.
9466 (init_tracefile_ops): Initialize fields to_has_all_memory and
9467 to_has_memory of 'ops'.
9468
9469 2014-02-23 Yao Qi <yao@codesourcery.com>
9470
9471 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9472 (ctf_thread_alive, ctf_get_trace_status): Remove.
9473 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9474 init_tracefile_ops.
9475 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9476 (tfile_has_stack, tfile_has_registers): Remove.
9477 (tfile_thread_alive): Remove.
9478 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9479 init_tracefile_ops.
9480 * tracefile.c (tracefile_has_stack): New function.
9481 (tracefile_has_registers): New function.
9482 (tracefile_thread_alive): New function.
9483 (tracefile_get_trace_status): New function.
9484 (init_tracefile_ops): New function.
9485 * tracefile.h (init_tracefile_ops): Declare.
9486
9487 2014-02-23 Yao Qi <yao@codesourcery.com>
9488
9489 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9490 (O_LARGEFILE): Likewise.
9491 (tfile_ops): Likewise.
9492 (TRACE_HEADER_SIZE): Likewise.
9493 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9494 (cur_data_size): Likewise.
9495 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9496 (tfile_close, tfile_files_info): Likewise.
9497 (tfile_get_trace_status): Likewise.
9498 (tfile_get_tracepoint_status): Likewise.
9499 (tfile_get_traceframe_address): Likewise.
9500 (tfile_trace_find, match_blocktype): Likewise.
9501 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9502 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9503 (tfile_get_trace_state_variable_value): Likewise.
9504 (tfile_has_all_memory, tfile_has_memory): Likewise.
9505 (tfile_has_stack, tfile_has_registers): Likewise.
9506 (tfile_thread_alive, build_traceframe_info): Likewise.
9507 (tfile_traceframe_info, init_tfile_ops): Likewise.
9508 (_initialize_tracepoint): Don't call init_tfile_ops
9509 and add_target_with_completer.
9510 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9511 exec.h, completer.h and filenames.h.
9512 (_initialize_tracefile_tfile): New function.
9513
9514 2014-02-23 Yao Qi <yao@codesourcery.com>
9515
9516 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9517 tracefile-tfile.o.
9518 (HFILES_NO_SRCDIR): Add tracefile.h.
9519 * ctf.c: Include "tracefile.h".
9520 * tracefile.h: New file.
9521 * tracefile.c: New file
9522 * tracefile-tfile.c: New file.
9523 * tracepoint.c: Include "tracefile.h".
9524 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9525 (stop_reason_names): Add const.
9526 (trace_file_writer_xfree): Move it to tracefile.c.
9527 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9528 (trace_save_ctf): Likewise.
9529 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9530 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9531 (tfile_write_header, tfile_write_regblock_type): Likewise.
9532 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9533 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9534 (tfile_write_raw_data, tfile_end): Likewise.
9535 (tfile_trace_file_writer_new): Likewise.
9536 (free_uploaded_tp): Make it extern.
9537 (free_uploaded_tsv): Make it extern.
9538 (_initialize_tracepoint): Move code to register command 'tsave'
9539 to tracefile.c.
9540 * tracepoint.h (stop_reason_names): Declare.
9541 (struct trace_frame_write_ops): Move it to tracefile.h.
9542 (struct trace_file_write_ops): Likewise.
9543 (struct trace_file_writer): Likewise.
9544 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9545
9546 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9547
9548 PR gdb/16594
9549 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9550 process name.
9551 (get_cores_used_by_process): New parameter num_cores, use it.
9552 (linux_xfer_osdata_processes): Pass num_cores to it.
9553 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9554 process name.
9555
9556 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9557
9558 * target.c (memory_xfer_partial): Fix length arg in call to
9559 breakpoint_xfer_memory.
9560
9561 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9562
9563 PR tdep/16397
9564 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9565 number comes after the + or - signs. Adjust length of register
9566 name to be extracted.
9567
9568 2014-02-20 Tom Tromey <tromey@redhat.com>
9569
9570 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9571 (ada_varobj_ops): Mark "extern".
9572
9573 2014-02-20 Tom Tromey <tromey@redhat.com>
9574
9575 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9576
9577 2014-02-20 Doug Evans <xdje42@gmail.com>
9578
9579 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9580 All callers updated.
9581 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9582 All callers updated.
9583 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9584 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9585
9586 2014-02-20 lin zuojian <manjian2006@gmail.com>
9587 Joel Brobecker <brobecker@adacore.com>
9588 Doug Evans <xdje42@gmail.com>
9589
9590 PR symtab/16581
9591 * dwarf2read.c (struct die_info): New member in_process.
9592 (reset_die_in_process): New function.
9593 (process_die): Set it at the start, reset when returning.
9594 (inherit_abstract_dies): Only call process_die if origin_child_die
9595 not already being processed.
9596
9597 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9598
9599 * windows-nat.c (handle_unload_dll): Add function documentation.
9600 (do_initial_windows_stuff): Add comment explaining why we wait
9601 until after inferior initialization has finished before
9602 processing all DLLs.
9603
9604 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9605
9606 * windows-nat.c (get_module_name): Delete.
9607 (windows_get_exec_module_filename): New function, mostly
9608 inspired from get_module_name.
9609 (windows_pid_to_exec_file): Replace call to get_module_name
9610 by call to windows_get_exec_module_filename.
9611
9612 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9613
9614 * windows-nat.c (handle_load_dll): Rewrite this function's
9615 introductory comment. Remove code using get_module_name
9616 to get the DLL's name.
9617
9618 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9619
9620 * windows-nat.c (get_windows_debug_event): Ignore
9621 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9622 if windows_initialization_done == 0.
9623 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9624 Adjust implementation to always load all DLLs.
9625 (do_initial_windows_stuff): Replace call to
9626 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9627
9628 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9629
9630 * windows-nat.c (_initialize_windows_nat): Deprecate the
9631 "dll-symbols" command. Turn the "add-shared-symbol-files"
9632 and "assf" aliases into commands, and deprecate them as well.
9633 * NEWS: Add entry explaining that "dll-symbols" and its two
9634 aliases are now deprecated.
9635
9636 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9637
9638 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9639 new-line in debug string. Remove trailing spaces.
9640
9641 2014-02-19 Stan Shebs <stan@codesourcery.com>
9642
9643 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9644
9645 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9646
9647 * NEWS: Add entry for the new feature
9648 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9649 and class values.
9650
9651 2014-02-19 Stan Shebs <stan@codesourcery.com>
9652
9653 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9654
9655 2014-02-19 Pedro Alves <palves@redhat.com>
9656
9657 * common/ptid.h (struct ptid): Mention that process_stratum
9658 targets should prefer ptid.lwp.
9659
9660 2014-02-19 Pedro Alves <palves@redhat.com>
9661
9662 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9663 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9664 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9665 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9666 store remote thread ids rather than ptid.tid.
9667 (_initialize_remote): Adjust.
9668
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * target.c (target_get_unwinder): Rewrite.
9672 (target_get_tailcall_unwinder): Rewrite.
9673 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9674 (record_btrace_to_get_tailcall_unwinder): New function.
9675 (init_record_btrace_ops): Update.
9676 * target.h (struct target_ops) <to_get_unwinder,
9677 to_get_tailcall_unwinder>: Now function pointers. Use
9678 TARGET_DEFAULT_RETURN.
9679
9680 2014-02-19 Tom Tromey <tromey@redhat.com>
9681
9682 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9683 argument.
9684 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9685
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9687
9688 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9689 directly.
9690 * target-delegates.c: Rebuild.
9691 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9692 TARGET_DEFAULT_FUNC.
9693 * target.c (default_target_decr_pc_after_break): Rename from
9694 forward_target_decr_pc_after_break. Simplify.
9695 (target_decr_pc_after_break): Rely on delegation.
9696
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9698
9699 * target.c (update_current_target): Do not INHERIT to_doc or
9700 to_magic. Do not de_fault to_open or to_close.
9701
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9703
9704 * gcore.h (objfile_find_memory_regions): Declare.
9705 * gcore.c (objfile_find_memory_regions): No longer static. Add
9706 "self" argument.
9707 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9708 * exec.c: Include gcore.h.
9709 (exec_set_find_memory_regions): Remove.
9710 (exec_find_memory_regions): Remove.
9711 (exec_do_find_memory_regions): Remove.
9712 (init_exec_ops): Update.
9713 * defs.h (exec_set_find_memory_regions): Remove.
9714
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9716
9717 * target-delegates.c: Rebuild.
9718 * target.h (struct target_ops) <to_extra_thread_info,
9719 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9720 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9721 not 0, in TARGET_DEFAULT_RETURN.
9722
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9724
9725 * target.c (complete_target_initialization): Remove casts. Use
9726 return_zero_has_execution.
9727 (return_zero): Add "ignore" argument.
9728 (return_zero_has_execution): New function.
9729 (init_dummy_target): Remove casts. Use
9730 return_zero_has_execution.
9731
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target.c (update_current_target): Update comments. Do not
9735 INHERIT to_stratum.
9736
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9738
9739 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9740 needed.
9741 * corelow.c (core_read_description): Delegate when needed.
9742 * remote.c (remote_read_description): Delegate when needed.
9743 * target-delegates.c: Rebuild.
9744 * target.c (target_read_description): Rewrite.
9745 * target.h (struct target_ops) <to_read_description>: Update
9746 comment. Use TARGET_DEFAULT_RETURN.
9747
9748 2014-02-19 Tom Tromey <tromey@redhat.com>
9749
9750 * target-delegates.c: Rebuild.
9751 * target.c (update_current_target): Don't inherit or default
9752 to_can_run.
9753 (find_default_run_target): Check against delegate_can_run.
9754 * target.h (struct target_ops) <to_can_run>: Use
9755 TARGET_DEFAULT_RETURN.
9756
9757 2014-02-19 Tom Tromey <tromey@redhat.com>
9758
9759 * target-delegates.c: Rebuild.
9760 * target.c (target_disconnect): Unconditionally delegate.
9761 * target.h (struct target_ops) <to_disconnect>: Use
9762 TARGET_DEFAULT_NORETURN.
9763
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * record.c (record_stop): Unconditionally delegate.
9767 * target-delegates.c: Rebuild.
9768 * target.c (target_stop_recording): Unconditionally delegate.
9769 * target.h (struct target_ops) <to_stop_recording>: Use
9770 TARGET_DEFAULT_IGNORE.
9771
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target-delegates.c: Rebuild.
9775 * target.c (target_enable_btrace): Unconditionally delegate.
9776 * target.h (struct target_ops) <to_enable_btrace>: Use
9777 TARGET_DEFAULT_NORETURN.
9778
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target-delegates.c: Rebuild.
9782 * target.c (target_read_btrace): Unconditionally delegate.
9783 * target.h (struct target_ops) <to_read_btrace>: Use
9784 TARGET_DEFAULT_NORETURN.
9785
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target-delegates.c: Rebuild.
9789 * target.c (target_teardown_btrace): Unconditionally delegate.
9790 * target.h (struct target_ops) <to_teardown_btrace>: Use
9791 TARGET_DEFAULT_NORETURN.
9792
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9794
9795 * target-delegates.c: Rebuild.
9796 * target.c (target_disable_btrace): Unconditionally delegate.
9797 * target.h (struct target_ops) <to_disable_btrace>: Use
9798 TARGET_DEFAULT_NORETURN.
9799
9800 2014-02-19 Tom Tromey <tromey@redhat.com>
9801
9802 * target-delegates.c: Rebuild.
9803 * target.c (default_search_memory): New function.
9804 (simple_search_memory): Update comment.
9805 (target_search_memory): Unconditionally delegate.
9806 * target.h (struct target_ops) <to_search_memory>: Use
9807 TARGET_DEFAULT_FUNC.
9808
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9810
9811 * auxv.c (default_auxv_parse): No longer static.
9812 (target_auxv_parse): Unconditionally delegate.
9813 * auxv.h (default_auxv_parse): Declare.
9814 * target-delegates.c: Rebuild.
9815 * target.c: Include auxv.h.
9816 * target.h (struct target_ops) <to_auxv_parse>: Use
9817 TARGET_DEFAULT_FUNC.
9818
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9820
9821 * target-delegates.c: Rebuild.
9822 * target.c (target_memory_map): Unconditionally delegate.
9823 * target.h (struct target_ops) <to_memory_map>: Use
9824 TARGET_DEFAULT_RETURN.
9825
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9827
9828 * target-delegates.c: Rebuild.
9829 * target.c (target_thread_alive): Unconditionally delegate.
9830 * target.h (struct target_ops) <to_thread_alive>: Use
9831 TARGET_DEFAULT_RETURN.
9832
9833 2014-02-19 Tom Tromey <tromey@redhat.com>
9834
9835 * target-delegates.c: Rebuild.
9836 * target.c (target_save_record): Unconditionally delegate.
9837 * target.h (struct target_ops) <to_save_record>: Use
9838 TARGET_DEFAULT_NORETURN.
9839
9840 2014-02-19 Tom Tromey <tromey@redhat.com>
9841
9842 * target-delegates.c: Rebuild.
9843 * target.c (target_delete_record): Unconditionally delegate.
9844 * target.h (struct target_ops) <to_delete_record>: Use
9845 TARGET_DEFAULT_NORETURN.
9846
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9848
9849 * target-delegates.c: Rebuild.
9850 * target.c (target_record_is_replaying): Unconditionally
9851 delegate.
9852 * target.h (struct target_ops) <to_record_is_replaying>: Use
9853 TARGET_DEFAULT_RETURN.
9854
9855 2014-02-19 Tom Tromey <tromey@redhat.com>
9856
9857 * target-delegates.c: Rebuild.
9858 * target.c (target_goto_record_begin): Unconditionally delegate.
9859 * target.h (struct target_ops) <to_goto_record_begin>: Use
9860 TARGET_DEFAULT_NORETURN.
9861
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9863
9864 * target-delegates.c: Rebuild.
9865 * target.c (target_goto_record_end): Unconditionally delegate.
9866 * target.h (struct target_ops) <to_goto_record_end>: Use
9867 TARGET_DEFAULT_NORETURN.
9868
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9870
9871 * target-delegates.c: Rebuild.
9872 * target.c (target_goto_record): Unconditionally delegate.
9873 * target.h (struct target_ops) <to_goto_record>: Use
9874 TARGET_DEFAULT_NORETURN.
9875
9876 2014-02-19 Tom Tromey <tromey@redhat.com>
9877
9878 * target-delegates.c: Rebuild.
9879 * target.c (target_insn_history): Unconditionally delegate.
9880 * target.h (struct target_ops) <to_insn_history>: Use
9881 TARGET_DEFAULT_NORETURN.
9882
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * target-delegates.c: Rebuild.
9886 * target.c (target_insn_history_from): Unconditionally delegate.
9887 * target.h (struct target_ops) <to_insn_history_from>: Use
9888 TARGET_DEFAULT_NORETURN.
9889
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9891
9892 * target-delegates.c: Rebuild.
9893 * target.c (target_insn_history_range): Unconditionally delegate.
9894 * target.h (struct target_ops) <to_insn_history_range>: Use
9895 TARGET_DEFAULT_NORETURN.
9896
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9898
9899 * target-delegates.c: Rebuild.
9900 * target.c (target_call_history): Unconditionally delegate.
9901 * target.h (struct target_ops) <to_call_history>: Use
9902 TARGET_DEFAULT_NORETURN.
9903
9904 2014-02-19 Tom Tromey <tromey@redhat.com>
9905
9906 * target-delegates.c: Rebuild.
9907 * target.c (target_call_history_from): Unconditionally delegate.
9908 * target.h (struct target_ops) <to_call_history_from>: Use
9909 TARGET_DEFAULT_NORETURN.
9910
9911 2014-02-19 Tom Tromey <tromey@redhat.com>
9912
9913 * target-delegates.c: Rebuild.
9914 * target.c (target_call_history_range): Unconditionally delegate.
9915 * target.h (struct target_ops) <to_call_history_range>: Use
9916 TARGET_DEFAULT_NORETURN.
9917
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target-delegates.c: Rebuild.
9921 * target.c (target_verify_memory): Unconditionally delegate.
9922 * target.h (struct target_ops) <to_verify_memory>: Use
9923 TARGET_DEFAULT_NORETURN.
9924
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target-delegates.c: Rebuild.
9928 * target.c (target_core_of_thread): Unconditionally delegate.
9929 * target.h (struct target_ops) <to_core_of_thread>: Use
9930 TARGET_DEFAULT_RETURN.
9931
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target-delegates.c: Rebuild.
9935 * target.c (target_flash_done): Unconditionally delegate.
9936 * target.h (struct target_ops) <to_flash_done>: Use
9937 TARGET_DEFAULT_NORETURN.
9938
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9940
9941 * target-delegates.c: Rebuild.
9942 * target.c (target_flash_erase): Unconditionally delegate.
9943 * target.h (struct target_ops) <to_flash_erase>: Use
9944 TARGET_DEFAULT_NORETURN.
9945
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * target-delegates.c: Rebuild.
9949 * target.c (target_get_section_table): Unconditionally delegate.
9950 * target.h (struct target_ops) <to_get_section_table>: Use
9951 TARGET_DEFAULT_RETURN.
9952
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9954
9955 * target-delegates.c: Rebuild.
9956 * target.c (target_pid_to_str): Unconditionally delegate.
9957 (init_dummy_target): Don't initialize to_pid_to_str.
9958 (default_pid_to_str): Rename from dummy_pid_to_str.
9959 * target.h (struct target_ops) <to_pid_to_str>: Use
9960 TARGET_DEFAULT_FUNC.
9961
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * target-delegates.c: Rebuild.
9965 * target.c (target_find_new_threads): Unconditionally delegate.
9966 * target.h (struct target_ops) <to_find_new_threads>: Use
9967 TARGET_DEFAULT_RETURN.
9968
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9970
9971 * target-delegates.c: Rebuild.
9972 * target.c (target_program_signals): Unconditionally delegate.
9973 * target.h (struct target_ops) <to_program_signals>: Use
9974 TARGET_DEFAULT_IGNORE.
9975
9976 2014-02-19 Tom Tromey <tromey@redhat.com>
9977
9978 * target-delegates.c: Rebuild.
9979 * target.c (target_pass_signals): Unconditionally delegate.
9980 * target.h (struct target_ops) <to_pass_signals>: Use
9981 TARGET_DEFAULT_IGNORE.
9982
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * target-delegates.c: Rebuild.
9986 * target.c (default_mourn_inferior): New function.
9987 (target_mourn_inferior): Unconditionally delegate.
9988 * target.h (struct target_ops) <to_mourn_inferior>: Use
9989 TARGET_DEFAULT_FUNC.
9990
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target-delegates.c: Rebuild.
9994 * target.c (default_follow_fork): New function.
9995 (target_follow_fork): Unconditionally delegate.
9996 * target.h (struct target_ops) <to_follow_fork>: Use
9997 TARGET_DEFAULT_FUNC.
9998
9999 2014-02-19 Tom Tromey <tromey@redhat.com>
10000
10001 * target-delegates.c: Rebuild.
10002 * target.c (target_kill): Unconditionally delegate.
10003 * target.h (struct target_ops) <to_kill>: Use
10004 TARGET_DEFAULT_NORETURN.
10005
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target-delegates.c: Rebuild.
10009 * target.c (target_masked_watch_num_registers): Unconditionally
10010 delegate.
10011 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10012 Use TARGET_DEFAULT_RETURN.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target-delegates.c: Rebuild.
10017 * target.c (target_remove_mask_watchpoint): Unconditionally
10018 delegate.
10019 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10020 TARGET_DEFAULT_RETURN.
10021
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10023
10024 * target-delegates.c: Rebuild.
10025 * target.c (target_insert_mask_watchpoint): Unconditionally
10026 delegate.
10027 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10028 TARGET_DEFAULT_RETURN.
10029
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * target-delegates.c: Rebuild.
10033 * target.c (target_ranged_break_num_registers): Unconditionally
10034 delegate.
10035 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10036 Use TARGET_DEFAULT_RETURN.
10037
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10039
10040 * target-delegates.c: Rebuild.
10041 * target.c (target_fetch_registers): Unconditionally delegate.
10042 * target.h (struct target_ops) <to_fetch_registers>: Use
10043 TARGET_DEFAULT_NORETURN.
10044
10045 2014-02-19 Tom Tromey <tromey@redhat.com>
10046
10047 * target-delegates.c: Rebuild.
10048 * target.c (update_current_target): Don't inherit or default
10049 to_stop.
10050 * target.h (struct target_ops) <to_stop>: Use
10051 TARGET_DEFAULT_IGNORE.
10052
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10054
10055 * target-delegates.c: Rebuild.
10056 * target.c (update_current_target): Don't inherit or default
10057 to_can_run_breakpoint_commands.
10058 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10059 Use TARGET_DEFAULT_RETURN.
10060
10061 2014-02-19 Tom Tromey <tromey@redhat.com>
10062
10063 * target-delegates.c: Rebuild.
10064 * target.c (update_current_target): Don't inherit or default
10065 to_supports_evaluation_of_breakpoint_conditions.
10066 * target.h (struct target_ops)
10067 <to_supports_evaluation_of_breakpoint_conditions>: Use
10068 TARGET_DEFAULT_RETURN.
10069
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target-delegates.c: Rebuild.
10073 * target.c (update_current_target): Don't inherit or default
10074 to_augmented_libraries_svr4_read.
10075 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10076 Use TARGET_DEFAULT_RETURN.
10077
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10079
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10082 to_can_use_agent.
10083 * target.h (struct target_ops) <to_can_use_agent>: Use
10084 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_use_agent.
10091 * target.h (struct target_ops) <to_use_agent>: 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_traceframe_info.
10099 (return_null): Remove.
10100 * target.h (struct target_ops) <to_traceframe_info>: Use
10101 TARGET_DEFAULT_RETURN.
10102
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target-delegates.c: Rebuild.
10106 * target.c (update_current_target): Don't inherit or default
10107 to_static_tracepoint_markers_by_strid.
10108 * target.h (struct target_ops)
10109 <to_static_tracepoint_markers_by_strid>: Use
10110 TARGET_DEFAULT_NORETURN.
10111
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10113
10114 * target-delegates.c: Rebuild.
10115 * target.c (update_current_target): Don't inherit or default
10116 to_static_tracepoint_marker_at.
10117 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10118 Use TARGET_DEFAULT_RETURN.
10119
10120 2014-02-19 Tom Tromey <tromey@redhat.com>
10121
10122 * target-delegates.c: Rebuild.
10123 * target.c (update_current_target): Don't inherit or default
10124 to_set_permissions.
10125 * target.h (struct target_ops) <to_set_permissions>: Use
10126 TARGET_DEFAULT_IGNORE.
10127
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target-delegates.c: Rebuild.
10131 * target.c (update_current_target): Don't inherit or default
10132 to_get_tib_address.
10133 * target.h (struct target_ops) <to_get_tib_address>: Use
10134 TARGET_DEFAULT_NORETURN.
10135
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10137
10138 * target-delegates.c: Rebuild.
10139 * target.c (update_current_target): Don't inherit or default
10140 to_set_trace_notes.
10141 * target.h (struct target_ops) <to_set_trace_notes>: Use
10142 TARGET_DEFAULT_RETURN.
10143
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * target-delegates.c: Rebuild.
10147 * target.c (update_current_target): Don't initialize
10148 to_set_trace_buffer_size.
10149 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10150 TARGET_DEFAULT_IGNORE.
10151
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10153
10154 * target-delegates.c: Rebuild.
10155 * target.c (update_current_target): Don't inherit or default
10156 to_set_circular_trace_buffer.
10157 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10158 TARGET_DEFAULT_IGNORE.
10159
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10161
10162 * target-delegates.c: Rebuild.
10163 * target.c (update_current_target): Don't inherit or default
10164 to_set_disconnected_tracing.
10165 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10166 TARGET_DEFAULT_IGNORE.
10167
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10169
10170 * target-delegates.c: Rebuild.
10171 * target.c (update_current_target): Don't inherit or default
10172 to_get_min_fast_tracepoint_insn_len.
10173 (return_minus_one): Remove.
10174 * target.h (struct target_ops)
10175 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10176
10177 2014-02-19 Tom Tromey <tromey@redhat.com>
10178
10179 * target-delegates.c: Rebuild.
10180 * target.c (update_current_target): Don't inherit or default
10181 to_get_raw_trace_data.
10182 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10183 TARGET_DEFAULT_NORETURN.
10184
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * target-delegates.c: Rebuild.
10188 * target.c (update_current_target): Don't inherit or default
10189 to_upload_trace_state_variables.
10190 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10191 Use TARGET_DEFAULT_RETURN.
10192
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10194
10195 * target-delegates.c: Rebuild.
10196 * target.c (update_current_target): Don't inherit or default
10197 to_upload_tracepoints.
10198 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10199 TARGET_DEFAULT_RETURN.
10200
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target-delegates.c: Rebuild.
10204 * target.c (update_current_target): Don't inherit or default
10205 to_save_trace_data.
10206 * target.h (struct target_ops) <to_save_trace_data>: Use
10207 TARGET_DEFAULT_NORETURN.
10208
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target-delegates.c: Rebuild.
10212 * target.c (update_current_target): Don't inherit or default
10213 to_get_trace_state_variable_value.
10214 * target.h (struct target_ops)
10215 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10216
10217 2014-02-19 Tom Tromey <tromey@redhat.com>
10218
10219 * target-delegates.c: Rebuild.
10220 * target.c (update_current_target): Don't inherit or default
10221 to_trace_find.
10222 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10223
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (update_current_target): Don't inherit or default
10228 to_trace_stop.
10229 * target.h (struct target_ops) <to_trace_stop>: Use
10230 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
10237 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10238 TARGET_DEFAULT_NORETURN.
10239
10240 2014-02-19 Tom Tromey <tromey@redhat.com>
10241
10242 * target-delegates.c: Rebuild.
10243 * target.c (update_current_target): Don't inherit or default
10244 to_get_trace_status.
10245 * target.h (struct target_ops) <to_get_trace_status>: Use
10246 TARGET_DEFAULT_RETURN.
10247
10248 2014-02-19 Tom Tromey <tromey@redhat.com>
10249
10250 * target-delegates.c: Rebuild.
10251 * target.c (update_current_target): Don't inherit or default
10252 to_trace_start.
10253 * target.h (struct target_ops) <to_trace_start>: Use
10254 TARGET_DEFAULT_NORETURN.
10255
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10257
10258 * target-delegates.c: Rebuild.
10259 * target.c (update_current_target): Don't inherit or default
10260 to_trace_set_readonly_regions.
10261 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10262 Use TARGET_DEFAULT_NORETURN.
10263
10264 2014-02-19 Tom Tromey <tromey@redhat.com>
10265
10266 * target-delegates.c: Rebuild.
10267 * target.c (update_current_target): Don't inherit or default
10268 to_disable_tracepoint.
10269 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10270 TARGET_DEFAULT_NORETURN.
10271
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10273
10274 * target-delegates.c: Rebuild.
10275 * target.c (update_current_target): Don't inherit or default
10276 to_enable_tracepoint.
10277 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10278 TARGET_DEFAULT_NORETURN.
10279
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * target-delegates.c: Rebuild.
10283 * target.c (update_current_target): Don't inherit or default
10284 to_download_trace_state_variable.
10285 * target.h (struct target_ops) <to_download_trace_state_variable>:
10286 Use TARGET_DEFAULT_NORETURN.
10287
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10289
10290 * target-delegates.c: Rebuild.
10291 * target.c (update_current_target): Don't inherit or default
10292 to_can_download_tracepoint.
10293 * target.h (struct target_ops) <to_can_download_tracepoint>: 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_download_tracepoint.
10301 * target.h (struct target_ops) <to_download_tracepoint>: Use
10302 TARGET_DEFAULT_NORETURN.
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_trace_init.
10309 * target.h (struct target_ops) <to_trace_init>: 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_supports_string_tracing.
10317 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10318 TARGET_DEFAULT_RETURN.
10319
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10321
10322 * target-delegates.c: Rebuild.
10323 * target.c (update_current_target): Don't inherit or default
10324 to_supports_enable_disable_tracepoint.
10325 * target.h (struct target_ops)
10326 <to_supports_enable_disable_tracepoint>: Use
10327 TARGET_DEFAULT_RETURN.
10328
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target-delegates.c: Rebuild.
10332 * target.c (update_current_target): Don't inherit or default
10333 to_supports_multi_process.
10334 * target.h (struct target_ops) <to_supports_multi_process>: 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_get_ada_task_ptid.
10342 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10343 TARGET_DEFAULT_FUNC.
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_thread_architecture.
10350 * target.h (struct target_ops) <to_thread_architecture>: Use
10351 TARGET_DEFAULT_FUNC.
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_execution_direction.
10358 * target.h (struct target_ops) <to_execution_direction>: Use
10359 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
10366 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10367 TARGET_DEFAULT_RETURN.
10368 (target_can_execute_reverse): Unconditionally delegate.
10369
10370 2014-02-19 Tom Tromey <tromey@redhat.com>
10371
10372 * target-delegates.c: Rebuild.
10373 * target.c (update_current_target): Don't inherit or default
10374 to_goto_bookmark.
10375 (dummy_goto_bookmark): Remove.
10376 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10377 * target.h (struct target_ops) <to_goto_bookmark>: Use
10378 TARGET_DEFAULT_NORETURN.
10379
10380 2014-02-19 Tom Tromey <tromey@redhat.com>
10381
10382 * target-delegates.c: Rebuild.
10383 * target.c (update_current_target): Don't inherit or default
10384 to_get_bookmark.
10385 (dummy_get_bookmark): Remove.
10386 (init_dummy_target): Don't inherit or default to_get_bookmark.
10387 * target.h (struct target_ops) <to_get_bookmark>: Use
10388 TARGET_DEFAULT_NORETURN
10389
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10391
10392 * target-delegates.c: Rebuild.
10393 * target.c (update_current_target): Don't inherit or default
10394 to_make_corefile_notes.
10395 (init_dummy_target): Don't initialize to_make_corefile_notes.
10396 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10397 TARGET_DEFAULT_FUNC.
10398
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10400
10401 * target-delegates.c: Rebuild.
10402 * target.c (update_current_target): Don't inherit or default
10403 to_find_memory_regions.
10404 (init_dummy_target): Don't initialize to_find_memory_regions.
10405 * target.h (struct target_ops) <to_find_memory_regions>: Use
10406 TARGET_DEFAULT_FUNC.
10407
10408 2014-02-19 Tom Tromey <tromey@redhat.com>
10409
10410 * target-delegates.c: Rebuild.
10411 * target.c (update_current_target): Don't inherit or default
10412 to_log_command.
10413 * target.h (struct target_ops) <to_log_command>: Use
10414 TARGET_DEFAULT_IGNORE.
10415 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
10422 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10423 TARGET_DEFAULT_RETURN.
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_thread_name.
10430 (target_thread_name): Unconditionally delegate.
10431 * target.h (struct target_ops) <to_thread_name>: Use
10432 TARGET_DEFAULT_RETURN.
10433
10434 2014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * target-delegates.c: Rebuild.
10437 * target.c (update_current_target): Don't inherit or default
10438 to_extra_thread_info.
10439 * target.h (struct target_ops) <to_extra_thread_info>: Use
10440 TARGET_DEFAULT_RETURN.
10441
10442 2014-02-19 Tom Tromey <tromey@redhat.com>
10443
10444 * target-delegates.c: Rebuild.
10445 * target.c (update_current_target): Don't inherit or default
10446 to_has_exited.
10447 * target.h (struct target_ops) <to_has_exited>: Use
10448 TARGET_DEFAULT_RETURN..
10449
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target-delegates.c: Rebuild.
10453 * target.c (update_current_target): Don't inherit or default
10454 to_set_syscall_catchpoint.
10455 (return_one): Remove.
10456 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10457 TARGET_DEFAULT_RETURN.
10458
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10460
10461 * target-delegates.c: Rebuild.
10462 * target.c (update_current_target): Don't inherit or default
10463 to_insert_exec_catchpoint.
10464 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10465 TARGET_DEFAULT_RETURN.
10466
10467 2014-01-08 Tom Tromey <tromey@redhat.com>
10468
10469 * target-delegates.c: Rebuild.
10470 * target.c (update_current_target): Don't inherit or default
10471 to_insert_exec_catchpoint.
10472 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10473 TARGET_DEFAULT_RETURN.
10474
10475 2014-02-19 Tom Tromey <tromey@redhat.com>
10476
10477 * target-delegates.c: Rebuild.
10478 * target.c (update_current_target): Don't inherit or default
10479 to_remove_vfork_catchpoint.
10480 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10481 TARGET_DEFAULT_RETURN.
10482
10483 2014-02-19 Tom Tromey <tromey@redhat.com>
10484
10485 * target-delegates.c: Rebuild.
10486 * target.c (update_current_target): Don't inherit or default
10487 to_insert_vfork_catchpoint.
10488 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10489 TARGET_DEFAULT_RETURN.
10490
10491 2014-02-19 Tom Tromey <tromey@redhat.com>
10492
10493 * target-delegates.c: Rebuild.
10494 * target.c (update_current_target): Don't inherit or default
10495 to_remove_fork_catchpoint.
10496 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10497 TARGET_DEFAULT_RETURN.
10498
10499 2014-02-19 Tom Tromey <tromey@redhat.com>
10500
10501 * target-delegates.c: Rebuild.
10502 * target.c (update_current_target): Don't inherit or default
10503 to_insert_fork_catchpoint.
10504 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10505 TARGET_DEFAULT_RETURN.
10506
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * target-delegates.c: Rebuild.
10510 * target.c (update_current_target): Don't inherit or default
10511 to_post_startup_inferior.
10512 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10513 TARGET_DEFAULT_IGNORE.
10514
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * target-delegates.c: Rebuild.
10518 * target.c (update_current_target): Don't inherit or default
10519 to_load.
10520 * target.h (struct target_ops) <to_load>: Use
10521 TARGET_DEFAULT_NORETURN.
10522
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10524
10525 * target-delegates.c: Rebuild.
10526 * target.c (update_current_target): Don't inherit or default
10527 to_terminal_info.
10528 * target.h (struct target_ops) <to_terminal_info>: Use
10529 TARGET_DEFAULT_FUNC.
10530
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10532
10533 * target-delegates.c: Rebuild.
10534 * target.c (update_current_target): Don't inherit or default
10535 to_terminal_save_ours.
10536 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10537 TARGET_DEFAULT_IGNORE.
10538
10539 2014-02-19 Tom Tromey <tromey@redhat.com>
10540
10541 * target-delegates.c: Rebuild.
10542 * target.c (update_current_target): Don't inherit or default
10543 to_terminal_ours.
10544 * target.h (struct target_ops) <to_terminal_ours>: Use
10545 TARGET_DEFAULT_IGNORE.
10546
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10548
10549 * target-delegates.c: Rebuild.
10550 * target.c (update_current_target): Don't inherit or default
10551 to_terminal_ours_for_output.
10552 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10553 TARGET_DEFAULT_IGNORE.
10554
10555 2014-02-19 Tom Tromey <tromey@redhat.com>
10556
10557 * target-delegates.c: Rebuild.
10558 * target.c (update_current_target): Don't inherit or default
10559 to_terminal_inferior.
10560 * target.h (struct target_ops) <to_terminal_inferior>: Use
10561 TARGET_DEFAULT_IGNORE.
10562
10563 2014-02-19 Tom Tromey <tromey@redhat.com>
10564
10565 * target-delegates.c: Rebuild.
10566 * target.c (update_current_target): Don't inherit or default
10567 to_terminal_init.
10568 * target.h (struct target_ops) <to_terminal_init>: Use
10569 TARGET_DEFAULT_IGNORE.
10570
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10572
10573 * target-delegates.c: Rebuild.
10574 * target.c (update_current_target): Don't inherit or default
10575 to_can_accel_watchpoint_condition.
10576 * target.h (struct target_ops)
10577 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10578
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * target-delegates.c: Rebuild.
10582 * target.c (update_current_target): Don't inherit or default
10583 to_region_ok_for_hw_watchpoint.
10584 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10585 Use TARGET_DEFAULT_FUNC.
10586
10587 2014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * target-delegates.c: Rebuild.
10590 * target.c (update_current_target): Don't inherit or default
10591 to_watchpoint_addr_within_range.
10592 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10593 Use TARGET_DEFAULT_FUNC.
10594
10595 2014-02-19 Tom Tromey <tromey@redhat.com>
10596
10597 * target-delegates.c: Rebuild.
10598 * target.c (update_current_target): Don't inherit or default
10599 to_remove_watchpoint.
10600 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10601 TARGET_DEFAULT_NORETURN.
10602
10603 2014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * target-delegates.c: Rebuild.
10606 * target.c (update_current_target): Don't inherit or default
10607 to_insert_watchpoint.
10608 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10609 TARGET_DEFAULT_RETURN.
10610
10611 2014-02-19 Tom Tromey <tromey@redhat.com>
10612
10613 * target-delegates.c: Rebuild.
10614 * target.c (update_current_target): Don't inherit or default
10615 to_remove_hw_breakpoint.
10616 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10617 TARGET_DEFAULT_RETURN.
10618
10619 2014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * target-delegates.c: Rebuild.
10622 * target.c (update_current_target): Don't inherit or default
10623 to_insert_hw_breakpoint.
10624 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10625 TARGET_DEFAULT_RETURN.
10626
10627 2014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target-delegates.c: Rebuild.
10630 * target.c (update_current_target): Don't inherit or default
10631 to_can_use_hw_breakpoint.
10632 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10633 TARGET_DEFAULT_RETURN.
10634
10635 2014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target-delegates.c: Rebuild.
10638 * target.c (update_current_target): Don't inherit or default
10639 to_files_info.
10640 * target.h (struct target_ops) <to_files_info>: Use
10641 TARGET_DEFAULT_IGNORE.
10642
10643 2014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target-delegates.c: Rebuild.
10646 * target.c (update_current_target): Don't inherit or default
10647 to_store.
10648 * target.h (struct target_ops) <to_store>: Use
10649 TARGET_DEFAULT_NORETURN.
10650
10651 2014-02-19 Tom Tromey <tromey@redhat.com>
10652
10653 * target-delegates.c: Rebuild.
10654 * target.c (update_current_target): Don't inherit or default
10655 to_post_attach.
10656 * target.h (struct target_ops) <to_post_attach>: Use
10657 TARGET_DEFAULT_IGNORE.
10658
10659 2014-02-19 Tom Tromey <tromey@redhat.com>
10660
10661 * target-delegates.c: Rebuild.
10662 * target.c (update_current_target): Don't inherit or default
10663 to_rcmd.
10664 (default_rcmd): New function.
10665 (do_monitor_command): Unconditionally delegate.
10666 * target.h (struct target_ops) <to_rmcd>: Use
10667 TARGET_DEFAULT_FUNC.
10668
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10670
10671 * target-delegates.c: Rebuild.
10672 * target.c (init_dummy_target): Don't initialize to_attach.
10673 (target_attach): Unconditionally delegate.
10674 * target.h (struct target_ops) <to_attach>: Use
10675 TARGET_DEFAULT_FUNC.
10676
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10678
10679 * target-delegates.c: Rebuild.
10680 * target.c (target_detach): Unconditionally delegate.
10681 (init_dummy_target): Don't initialize to_detach.
10682 * target.h (struct target_ops) <to_detach>: Use
10683 TARGET_DEFAULT_IGNORE.
10684
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10686
10687 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10688 Add argument.
10689 (target_augmented_libraries_svr4_read): Add argument.
10690 * target.c (update_current_target): Update.
10691 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10692 argument.
10693
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * target.h (struct target_ops) <to_call_history_range>: Add
10697 argument.
10698 * target.c (target_call_history_range): Add argument.
10699 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10700 argument.
10701 (record_btrace_call_history_from): Update.
10702
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10704
10705 * target.h (struct target_ops) <to_call_history_from>: Add
10706 argument.
10707 * target.c (target_call_history_from): Add argument.
10708 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10709 argument.
10710
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target.h (struct target_ops) <to_call_history>: Add argument.
10714 * target.c (target_call_history): Add argument.
10715 * record-btrace.c (record_btrace_call_history): Add 'self'
10716 argument.
10717
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target.h (struct target_ops) <to_insn_history_range>: Add
10721 argument.
10722 * target.c (target_insn_history_range): Add argument.
10723 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10724 argument.
10725 (record_btrace_insn_history_from): Update.
10726
10727 2014-02-19 Tom Tromey <tromey@redhat.com>
10728
10729 * target.h (struct target_ops) <to_insn_history_from>: Add
10730 argument.
10731 * target.c (target_insn_history_from): Add argument.
10732 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10733 argument.
10734
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10736
10737 * target.h (struct target_ops) <to_insn_history>: Add argument.
10738 * target.c (target_insn_history): Add argument.
10739 * record-btrace.c (record_btrace_insn_history): Add 'self'
10740 argument.
10741
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * target.h (struct target_ops) <to_goto_record>: Add argument.
10745 * target.c (target_goto_record): Add argument.
10746 * record-full.c (record_full_goto): Add 'self' argument.
10747 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10748
10749 2014-02-19 Tom Tromey <tromey@redhat.com>
10750
10751 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10752 * target.c (target_goto_record_end): Add argument.
10753 * record-full.c (record_full_goto_end): Add 'self' argument.
10754 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10755
10756 2014-02-19 Tom Tromey <tromey@redhat.com>
10757
10758 * target.h (struct target_ops) <to_goto_record_begin>: Add
10759 argument.
10760 * target.c (target_goto_record_begin): Add argument.
10761 * record-full.c (record_full_goto_begin): Add 'self' argument.
10762 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10763 argument.
10764
10765 2014-02-19 Tom Tromey <tromey@redhat.com>
10766
10767 * target.h (struct target_ops) <to_record_is_replaying>: Add
10768 argument.
10769 * target.c (target_record_is_replaying): Add argument.
10770 * record-full.c (record_full_is_replaying): Add 'self' argument.
10771 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10772 argument.
10773 (record_btrace_xfer_partial, record_btrace_store_registers)
10774 (record_btrace_prepare_to_store, record_btrace_resume)
10775 (record_btrace_wait, record_btrace_decr_pc_after_break)
10776 (record_btrace_find_new_threads, record_btrace_thread_alive):
10777 Update.
10778
10779 2014-02-19 Tom Tromey <tromey@redhat.com>
10780
10781 * target.h (struct target_ops) <to_delete_record>: Add argument.
10782 * target.c (target_delete_record): Add argument.
10783 * record-full.c (record_full_delete): Add 'self' argument.
10784
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10786
10787 * target.h (struct target_ops) <to_save_record>: Add argument.
10788 * target.c (target_save_record): Add argument.
10789 * record-full.c (record_full_save): Add 'self' argument.
10790 (record_full_save): Add 'self' argument.
10791
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10793
10794 * target.h (struct target_ops) <to_info_record>: Add argument.
10795 * target.c (target_info_record): Add argument.
10796 * record.c (info_record_command): Add argument.
10797 * record-full.c (record_full_info): Add 'self' argument.
10798 * record-btrace.c (record_btrace_info): Add 'self' argument.
10799
10800 2014-02-19 Tom Tromey <tromey@redhat.com>
10801
10802 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10803 * target.c (target_stop_recording): Add argument.
10804 * record.c (record_stop): Add argument.
10805 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10806 argument.
10807
10808 2014-02-19 Tom Tromey <tromey@redhat.com>
10809
10810 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10811 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10812 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10813 argument.
10814 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10815 (_initialize_amd64_linux_nat): Use it.
10816 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10817 (_initialize_i386_linux_nat): Use it.
10818
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10820
10821 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10822 * target.c (target_teardown_btrace): Add argument.
10823 * remote.c (remote_teardown_btrace): Add 'self' argument.
10824 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10825 argument.
10826 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10827 argument.
10828
10829 2014-02-19 Tom Tromey <tromey@redhat.com>
10830
10831 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10832 * target.c (target_disable_btrace): Add argument.
10833 * remote.c (remote_disable_btrace): Add 'self' argument.
10834 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10835 argument.
10836 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10837 argument.
10838
10839 2014-02-19 Tom Tromey <tromey@redhat.com>
10840
10841 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10842 * target.c (target_enable_btrace): Add argument.
10843 * remote.c (remote_enable_btrace): Add 'self' argument.
10844 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10845 argument.
10846 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10847 argument.
10848
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10850
10851 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10852 (target_can_use_agent): Add argument.
10853 * target.c (update_current_target): Update.
10854 * remote.c (remote_can_use_agent): Add 'self' argument.
10855 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10856
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10858
10859 * target.h (struct target_ops) <to_use_agent>: Add argument.
10860 (target_use_agent): Add argument.
10861 * target.c (update_current_target): Update.
10862 * remote.c (remote_use_agent): Add 'self' argument.
10863 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10864
10865 2014-02-19 Tom Tromey <tromey@redhat.com>
10866
10867 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10868 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10869 (target_traceframe_info): Add argument.
10870 * target.c (update_current_target): Update.
10871 * remote.c (remote_traceframe_info): Add 'self' argument.
10872 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10873
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * target.h (target_static_tracepoint_markers_by_strid): Add
10877 argument.
10878 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10879 'self' argument.
10880 * target.c (update_current_target): Update.
10881 * remote.c (struct target_ops)
10882 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10883 * linux-nat.c (struct target_ops)
10884 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10885
10886 2014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10889 Add argument.
10890 (target_static_tracepoint_marker_at): Add argument.
10891 * target.c (update_current_target): Update.
10892 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10893 argument.
10894
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10896
10897 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10898 (target_set_permissions): Add argument.
10899 * target.c (update_current_target): Update.
10900 * remote.c (remote_set_permissions): Add 'self' argument.
10901 (remote_start_remote): Update.
10902
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10904
10905 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10906 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10907 (target_get_tib_address): Add argument.
10908 * target.c (update_current_target): Update.
10909 * remote.c (remote_get_tib_address): Add 'self' argument.
10910
10911 2014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10914 (target_set_trace_notes): Add argument.
10915 * target.c (update_current_target): Update.
10916 * remote.c (remote_set_trace_notes): Add 'self' argument.
10917
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10921 argument.
10922 (target_set_trace_buffer_size): Add argument.
10923 * target.c (update_current_target): Update.
10924 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10925
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10929 argument.
10930 (target_set_circular_trace_buffer): Add argument.
10931 * target.c (update_current_target): Update.
10932 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10933 argument.
10934
10935 2014-02-19 Tom Tromey <tromey@redhat.com>
10936
10937 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10938 argument.
10939 (target_set_disconnected_tracing): Add argument.
10940 * target.c (update_current_target): Update.
10941 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10942
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10944
10945 * target.h (struct target_ops)
10946 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10947 (target_get_min_fast_tracepoint_insn_len): Add argument.
10948 * target.c (update_current_target): Update.
10949 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10950 argument.
10951
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10953
10954 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10955 argument.
10956 (target_get_raw_trace_data): Add argument.
10957 * target.c (update_current_target): Update.
10958 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10959
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10961
10962 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10963 Add argument.
10964 (target_upload_trace_state_variables): Add argument.
10965 * target.c (update_current_target): Update.
10966 * remote.c (remote_upload_trace_state_variables): Add 'self'
10967 argument.
10968 (remote_start_remote): Update.
10969
10970 2014-02-19 Tom Tromey <tromey@redhat.com>
10971
10972 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10973 argument.
10974 (target_upload_tracepoints): Add argument.
10975 * target.c (update_current_target): Update.
10976 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10977 (remote_start_remote): Update.
10978
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10980
10981 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10982 (target_save_trace_data): Add argument.
10983 * target.c (update_current_target): Update.
10984 * remote.c (remote_save_trace_data): Add 'self' argument.
10985
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10989 argument.
10990 * target.h (struct target_ops)
10991 <to_get_trace_state_variable_value>: Add argument.
10992 (target_get_trace_state_variable_value): Add argument.
10993 * target.c (update_current_target): Update.
10994 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10995 argument.
10996 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10997
10998 2014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11001 * target.h (struct target_ops) <to_trace_find>: Add argument.
11002 (target_trace_find): Add argument.
11003 * target.c (update_current_target): Update.
11004 * remote.c (remote_trace_find): Add 'self' argument.
11005 * ctf.c (ctf_trace_find): Add 'self' argument.
11006
11007 2014-02-19 Tom Tromey <tromey@redhat.com>
11008
11009 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11010 (target_trace_stop): Add argument.
11011 * target.c (update_current_target): Update.
11012 * remote.c (remote_trace_stop): Add 'self' argument.
11013
11014 2014-02-19 Tom Tromey <tromey@redhat.com>
11015
11016 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11017 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11018 argument.
11019 (target_get_tracepoint_status): Add argument.
11020 * target.c (update_current_target): Update.
11021 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11022
11023 2014-02-19 Tom Tromey <tromey@redhat.com>
11024
11025 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11026 * target.h (struct target_ops) <to_get_trace_status>: Add
11027 argument.
11028 (target_get_trace_status): Add argument.
11029 * target.c (update_current_target): Update.
11030 * remote.c (remote_get_trace_status): Add 'self' argument.
11031 (remote_start_remote, remote_can_download_tracepoint): Update.
11032 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11033
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * target.h (struct target_ops) <to_trace_start>: Add argument.
11037 (target_trace_start): Add argument.
11038 * target.c (update_current_target): Update.
11039 * remote.c (remote_trace_start): Add 'self' argument.
11040
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11044 Add argument.
11045 (target_trace_set_readonly_regions): Add argument.
11046 * target.c (update_current_target): Update.
11047 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11048 argument.
11049
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11051
11052 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11053 argument.
11054 (target_disable_tracepoint): Add argument.
11055 * target.c (update_current_target): Update.
11056 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11057
11058 2014-02-19 Tom Tromey <tromey@redhat.com>
11059
11060 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11061 argument.
11062 (target_enable_tracepoint): Add argument.
11063 * target.c (update_current_target): Update.
11064 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11065
11066 2014-02-19 Tom Tromey <tromey@redhat.com>
11067
11068 * target.h (struct target_ops) <to_download_trace_state_variable>:
11069 Add argument.
11070 (target_download_trace_state_variable): Add argument.
11071 * target.c (update_current_target): Update.
11072 * remote.c (remote_download_trace_state_variable): Add 'self'
11073 argument.
11074
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11076
11077 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11078 argument.
11079 (target_can_download_tracepoint): Add argument.
11080 * target.c (update_current_target): Update.
11081 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11082
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11084
11085 * target.h (struct target_ops) <to_download_tracepoint>: Add
11086 argument.
11087 (target_download_tracepoint): Add argument.
11088 * target.c (update_current_target): Update.
11089 * remote.c (remote_download_tracepoint): Add 'self' argument.
11090
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target.h (struct target_ops) <to_trace_init>: Add argument.
11094 (target_trace_init): Add argument.
11095 * target.c (update_current_target): Update.
11096 * remote.c (remote_trace_init): Add 'self' argument.
11097
11098 2014-02-19 Tom Tromey <tromey@redhat.com>
11099
11100 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11101 * target.c (target_fileio_readlink): Add argument.
11102 * remote.c (remote_hostio_readlink): Add 'self' argument.
11103 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11104
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11108 * target.c (target_fileio_unlink): Add argument.
11109 * remote.c (remote_hostio_unlink): Add 'self' argument.
11110 (remote_file_delete): Update.
11111 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11112
11113 2014-02-19 Tom Tromey <tromey@redhat.com>
11114
11115 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11116 * target.c (target_fileio_close): Add argument.
11117 * remote.c (remote_hostio_close): Add 'self' argument.
11118 (remote_hostio_close_cleanup): Update.
11119 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11120 Update.
11121 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11122
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11126 * target.c (target_fileio_pread): Add argument.
11127 * remote.c (remote_hostio_pread): Add 'self' argument.
11128 (remote_bfd_iovec_pread, remote_file_get): Update.
11129 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11130
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11134 * target.c (target_fileio_pwrite): Add argument.
11135 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11136 (remote_file_put): Update.
11137 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11138
11139 2014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11142 * target.c (target_fileio_open): Add argument.
11143 * remote.c (remote_hostio_open): Add 'self' argument.
11144 (remote_bfd_iovec_open): Add 'self' argument.
11145 (remote_file_put): Add 'self' argument.
11146 (remote_file_get): Add 'self' argument.
11147 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11148
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11152 Add argument.
11153 (target_can_run_breakpoint_commands): Add argument.
11154 * target.c (update_current_target): Update.
11155 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11156 argument.
11157 (remote_insert_breakpoint): Add 'self' argument.
11158 (remote_insert_hw_breakpoint): Add 'self' argument.
11159 (remote_can_run_breakpoint_commands): Add 'self' argument.
11160
11161 2014-02-19 Tom Tromey <tromey@redhat.com>
11162
11163 * target.h (struct target_ops)
11164 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11165 (target_supports_evaluation_of_breakpoint_conditions): Add
11166 argument.
11167 * target.c (update_current_target): Update.
11168 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11169 argument.
11170 (remote_insert_breakpoint): Add 'self' argument.
11171 (remote_insert_hw_breakpoint): Add 'self' argument.
11172 (remote_supports_cond_breakpoints): Add 'self' argument.
11173
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11175
11176 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11177 argument.
11178 (target_supports_string_tracing): Add argument.
11179 * target.c (update_current_target): Update.
11180 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11181
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11183
11184 * target.h (struct target_ops)
11185 <to_supports_disable_randomization>: Add argument.
11186 * target.c (find_default_supports_disable_randomization): Add
11187 argument.
11188 (target_supports_disable_randomization): Add argument.
11189 (find_default_supports_disable_randomization): Add 'self'
11190 argument.
11191 * remote.c (extended_remote_supports_disable_randomization): Add
11192 'self' argument.
11193 (remote_supports_disable_randomization): Add 'self' argument.
11194 (extended_remote_create_inferior): Update.
11195 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11196 'self' argument.
11197
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target.h (struct target_ops)
11201 <to_supports_enable_disable_tracepoint>: Add argument.
11202 (target_supports_enable_disable_tracepoint): Add argument.
11203 * target.c (update_current_target): Update.
11204 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11205 argument.
11206
11207 2014-02-19 Tom Tromey <tromey@redhat.com>
11208
11209 * target.h (struct target_ops) <to_supports_multi_process>: Add
11210 argument.
11211 (target_supports_multi_process): Add argument.
11212 * target.c (update_current_target): Update.
11213 * remote.c (remote_supports_multi_process): Add 'self' argument.
11214 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11215 argument.
11216 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11217 argument.
11218
11219 2014-02-19 Tom Tromey <tromey@redhat.com>
11220
11221 * target.h (struct target_ops) <to_execution_direction>: Add
11222 argument.
11223 (target_execution_direction): Add argument.
11224 * target.c (default_execution_direction): Add 'self' argument.
11225 * record-full.c (record_full_execution_direction): Add 'self'
11226 argument.
11227
11228 2014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11231 argument.
11232 (target_can_execute_reverse): Add argument.
11233 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11234 * record-full.c (record_full_can_execute_reverse): Add 'self'
11235 argument.
11236 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11237 argument.
11238
11239 2014-02-19 Tom Tromey <tromey@redhat.com>
11240
11241 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11242 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11243 argument.
11244 (target_get_ada_task_ptid): Add argument.
11245 * target.c (update_current_target): Update.
11246 (default_get_ada_task_ptid): Add 'self' argument.
11247 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11248 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11249 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11250 argument.
11251 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11252 argument.
11253 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11254 argument.
11255 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11256 argument.
11257 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11258 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11259 argument.
11260
11261 2014-02-19 Tom Tromey <tromey@redhat.com>
11262
11263 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11264 (target_goto_bookmark): Add argument.
11265 * target.c (dummy_goto_bookmark): Add 'self' argument.
11266 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11267
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11269
11270 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11271 (target_get_bookmark): Add argument.
11272 * target.c (dummy_get_bookmark): Add 'self' argument.
11273 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11274
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11278 argument.
11279 (target_make_corefile_notes): Add argument.
11280 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11281 * procfs.c (procfs_make_note_section): Add 'self' argument.
11282 (procfs_make_note_section): Add 'self' argument.
11283 (procfs_make_note_section): Add 'self' argument.
11284 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11285 argument.
11286 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11287 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11288 * exec.c (exec_make_note_section): Add 'self' argument.
11289 (exec_make_note_section): Add 'self' argument.
11290
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * target.h (struct target_ops) <to_find_memory_regions>: Add
11294 argument.
11295 (target_find_memory_regions): Add argument.
11296 * target.c (dummy_find_memory_regions): Add 'self' argument.
11297 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11298 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11299 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11300 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11301 * exec. (exec_do_find_memory_regions): New global.
11302 (exec_set_find_memory_regions): Rewrite.
11303 (exec_find_memory_regions): New function.
11304 (init_exec_ops): Use exec_find_memory_regions.
11305
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target.h (struct target_ops) <to_supports_non_stop>: Add
11309 argument.
11310 * target.c (find_default_supports_non_stop): Add argument.
11311 (target_supports_non_stop): Add argument.
11312 (find_default_supports_non_stop): Add 'self' argument.
11313 * remote.c (remote_supports_non_stop): Add 'self' argument.
11314 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11315
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * target.h (struct target_ops) <to_log_command>: Add argument.
11319 (target_log_command): Add argument.
11320 * serial.h (serial_log_command): Add 'self' argument.
11321 * serial.c (serial_log_command): Add 'self' argument.
11322
11323 2014-02-19 Tom Tromey <tromey@redhat.com>
11324
11325 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11326 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11327 argument.
11328 (target_pid_to_exec_file): Add argument.
11329 * target.c (debug_to_pid_to_exec_file): Add argument.
11330 (update_current_target): Update.
11331 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11332 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11333 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11334 (linux_handle_extended_wait): Update.
11335 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11336 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11337 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11338 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11339
11340 2014-02-19 Tom Tromey <tromey@redhat.com>
11341
11342 * target.h (struct target_ops) <to_rcmd>: Add argument.
11343 (target_rcmd): Add argument.
11344 * target.c (debug_to_rcmd): Add argument.
11345 (update_current_target, do_monitor_command): Update.
11346 * remote.c (remote_rcmd): Add 'self' argument.
11347 * monitor.c (monitor_rcmd): Add 'self' argument.
11348
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11350
11351 * windows-nat.c (windows_stop): Add 'self' argument.
11352 * target.h (struct target_ops) <to_stop>: Add argument.
11353 * target.c (target_stop): Add argument.
11354 (debug_to_stop): Add argument.
11355 (update_current_target): Update.
11356 * remote.c (remote_stop): Add 'self' argument.
11357 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11358 (gdbsim_cntrl_c): Update.
11359 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11360 * procfs.c (procfs_stop): Add 'self' argument.
11361 * nto-procfs.c (procfs_stop): Add 'self' argument.
11362 * monitor.c (monitor_stop): Add 'self' argument.
11363 (monitor_open): Update.
11364 * linux-nat.c (linux_nat_stop): Add argument.
11365 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11366 * gnu-nat.c (gnu_stop): Add 'self' argument.
11367 * darwin-nat.c (darwin_stop): Add 'self' argument.
11368
11369 2014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * target.h (struct target_ops) <to_thread_name>: Add argument.
11372 * target.c (target_thread_name): Add argument.
11373 (update_current_target): Update.
11374 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11375
11376 2014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target.h (struct target_ops) <to_extra_thread_info>: Add
11379 argument.
11380 (target_extra_thread_info): Add argument.
11381 * target.c (update_current_target): Update.
11382 * remote.c (remote_threads_extra_info): Add 'self' argument.
11383 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11384 argument.
11385 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11386 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11387 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11388 argument.
11389 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11390 argument.
11391 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11392 argument.
11393 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11394 argument.
11395
11396 2014-02-19 Tom Tromey <tromey@redhat.com>
11397
11398 * target.h (struct target_ops) <to_program_signals>: Add argument.
11399 * target.c (target_program_signals): Add argument.
11400 * remote.c (remote_program_signals): Add 'self' argument.
11401
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11405 * target.c (target_pass_signals): Add argument.
11406 * remote.c (remote_pass_signals): Add 'self' argument.
11407 (remote_start_remote): Update.
11408 * procfs.c (procfs_pass_signals): Add 'self' argument.
11409 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11410 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11411 (linux_nat_create_inferior, linux_nat_attach): Update.
11412
11413 2014-02-19 Tom Tromey <tromey@redhat.com>
11414
11415 * windows-nat.c (windows_can_run): Add 'self' argument.
11416 * target.h (struct target_ops) <to_can_run>: Add argument.
11417 (target_can_run): Add argument.
11418 * target.c (debug_to_can_run): Add argument.
11419 (update_current_target): Update.
11420 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11421 * inf-child.c (inf_child_can_run): Add 'self' argument.
11422 * go32-nat.c (go32_can_run): Add 'self' argument.
11423
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target.h (struct target_ops) <to_has_exited>: Add argument.
11427 (target_has_exited): Add argument.
11428 * target.c (debug_to_has_exited): Add argument.
11429 (update_current_target): Update.
11430
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11434 argument.
11435 (target_set_syscall_catchpoint): Add argument.
11436 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11437 argument.
11438 * target.c (update_current_target): Update.
11439
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11443 argument.
11444 (target_remove_exec_catchpoint): Add argument.
11445 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11446 (update_current_target): Update.
11447 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11448 argument.
11449
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11453 argument.
11454 (target_insert_exec_catchpoint): Add argument.
11455 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11456 (update_current_target): Update.
11457 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11458 argument.
11459
11460 2014-02-19 Tom Tromey <tromey@redhat.com>
11461
11462 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11463 argument.
11464 (target_remove_vfork_catchpoint): Add argument.
11465 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11466 (update_current_target): Update.
11467 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11468 argument.
11469
11470 2014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11473 argument.
11474 (target_insert_vfork_catchpoint): Add argument.
11475 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11476 (update_current_target): Update.
11477 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11478 argument.
11479
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11483 argument.
11484 (target_remove_fork_catchpoint): Add argument.
11485 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11486 (update_current_target): Update.
11487 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11488 argument.
11489
11490 2014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11493 argument.
11494 (target_insert_fork_catchpoint): Add argument.
11495 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11496 (update_current_target): Update.
11497 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11498 argument.
11499
11500 2014-02-19 Tom Tromey <tromey@redhat.com>
11501
11502 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11503 argument.
11504 (target_post_startup_inferior): Add argument.
11505 * target.c (debug_to_post_startup_inferior): Add argument.
11506 (update_current_target): Update.
11507 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11508 argument.
11509 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11510 argument.
11511 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11512 argument.
11513 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11514 argument.
11515 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11516 'self' argument.
11517 (super_post_startup_inferior): Likewise.
11518 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11519 'self' argument.
11520 (super_post_startup_inferior): Likewise.
11521 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11522 Add 'self' argument.
11523 (super_post_startup_inferior): Likewise.
11524
11525 2014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * target.h (struct target_ops) <to_load>: Add argument.
11528 * target.c (target_load): Add argument.
11529 (debug_to_load): Add argument.
11530 (update_current_target): Update.
11531 * remote.c (remote_load): Add 'self' argument.
11532 * remote-sim.c (gdbsim_load): Add 'self' argument.
11533 * remote-mips.c (mips_load): Add 'self' argument.
11534 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11535 * monitor.c (monitor_load): Add 'self' argument.
11536 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11537
11538 2014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11541 (target_terminal_info): Add argument.
11542 * target.c (debug_to_terminal_info): Add argument.
11543 (default_terminal_info): Likewise.
11544 * inflow.c (child_terminal_info): Add 'self' argument.
11545 * inferior.h (child_terminal_info): Add 'self' argument.
11546 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11547
11548 2014-02-19 Tom Tromey <tromey@redhat.com>
11549
11550 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11551 argument.
11552 (target_terminal_save_ours): Add argument.
11553 * target.c (debug_to_terminal_save_ours): Add argument.
11554 (update_current_target): Update.
11555 * inflow.c (terminal_save_ours): Add 'self' argument.
11556 * inferior.h (terminal_save_ours): Add 'self' argument.
11557
11558 2014-02-19 Tom Tromey <tromey@redhat.com>
11559
11560 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11561 (target_terminal_ours): Add argument.
11562 * target.c (debug_to_terminal_ours): Add argument.
11563 (update_current_target): Update.
11564 * remote.c (remote_terminal_ours): Add 'self' argument.
11565 (remote_close): Update.
11566 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11567 * inflow.c (terminal_ours): Add 'self' argument.
11568 * inferior.h (terminal_ours): Add 'self' argument.
11569 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11570
11571 2014-02-19 Pedro Alves <palves@redhat.com>
11572 Tom Tromey <tromey@redhat.com>
11573
11574 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11575 argument.
11576 (target_terminal_ours_for_output): Add argument.
11577 * target.c (debug_to_terminal_ours_for_output): Add argument.
11578 (update_current_target): Update.
11579 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11580 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11581 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11582
11583 2014-02-19 Tom Tromey <tromey@redhat.com>
11584
11585 * target.h (struct target_ops) <to_terminal_inferior>: Add
11586 argument.
11587 * target.c (target_terminal_inferior): Add argument.
11588 (update_current_target): Update.
11589 * remote.c (remote_terminal_inferior): Add 'self' argument.
11590 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11591 * inflow.c (terminal_inferior): Add 'self' argument.
11592 * inferior.h (terminal_inferior): Add 'self' argument.
11593 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11594 (go32_terminal_inferior): Add 'self' argument.
11595
11596 2014-02-19 Tom Tromey <tromey@redhat.com>
11597
11598 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11599 (target_terminal_init): Add argument.
11600 * target.c (debug_to_terminal_init): Add argument.
11601 (update_current_target): Update.
11602 * inflow.c (terminal_init_inferior): Add 'self' argument.
11603 * inferior.h (terminal_init_inferior): Add 'self' argument.
11604 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11605 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11606
11607 2014-02-19 Tom Tromey <tromey@redhat.com>
11608
11609 * target.h (struct target_ops)
11610 <to_can_accel_watchpoint_condition>: Add argument.
11611 (target_can_accel_watchpoint_condition): Add argument.
11612 * target.c (debug_to_can_accel_watchpoint_condition): Add
11613 argument.
11614 (update_current_target): Update.
11615 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11616 'self' argument.
11617
11618 2014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11621 Add argument.
11622 (target_region_ok_for_hw_watchpoint): Add argument.
11623 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11624 (default_region_ok_for_hw_watchpoint): Add argument.
11625 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11626 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11627 argument.
11628 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11629 argument.
11630 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11631 argument.
11632 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11633 'self' argument.
11634 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11635 'self' argument.
11636 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11637 'self' argument.
11638 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11639 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11640 'self' argument.
11641 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11642 Add 'self' argument.
11643
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11645
11646 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11647 argument.
11648 (target_insert_watchpoint): Add argument.
11649 * target.c (debug_to_insert_watchpoint): Add argument.
11650 (update_current_target): Update.
11651 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11652 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11653 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11654 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11655 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11656 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11657 argument.
11658 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11659 (procfs_insert_hw_watchpoint): Add 'self' argument.
11660 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11661 argument.
11662 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11663 argument.
11664 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11665 argument.
11666 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11667 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11668 argument.
11669 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11670 'self' argument.
11671
11672 2014-02-19 Tom Tromey <tromey@redhat.com>
11673
11674 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11675 argument.
11676 (target_remove_watchpoint): Add argument.
11677 * target.c (debug_to_remove_watchpoint): Add argument.
11678 (update_current_target): Update.
11679 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11680 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11681 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11682 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11683 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11684 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11685 argument.
11686 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11687 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11688 argument.
11689 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11690 argument.
11691 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11692 argument.
11693 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11694 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11695 argument.
11696 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11697 'self' argument.
11698
11699 2014-02-19 Tom Tromey <tromey@redhat.com>
11700
11701 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11702 argument.
11703 (target_remove_hw_breakpoint): Add argument.
11704 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11705 (update_current_target): Update.
11706 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11707 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11708 argument.
11709 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11710 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11711 argument.
11712 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11713 'self' argument.
11714
11715 2014-02-19 Tom Tromey <tromey@redhat.com>
11716
11717 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11718 argument.
11719 (target_insert_hw_breakpoint): Add argument.
11720 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11721 (update_current_target): Update.
11722 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11723 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11724 argument.
11725 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11726 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11727 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11728 argument.
11729 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11730 'self' argument.
11731
11732 2014-02-19 Tom Tromey <tromey@redhat.com>
11733
11734 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11735 argument.
11736 (target_can_use_hardware_watchpoint): Add argument.
11737 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11738 (update_current_target): Update.
11739 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11740 argument.
11741 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11742 argument.
11743 * remote.c (remote_check_watch_resources): Add 'self' argument.
11744 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11745 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11746 argument.
11747 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11748 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11749 argument.
11750 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11751 argument.
11752 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11753 argument.
11754 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11755 argument.
11756 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11757 argument.
11758 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11759 argument.
11760 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11761 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11762 argument.
11763 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11764 'self' argument.
11765
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11767
11768 * target.h (struct target_ops) <to_post_attach>: Add argument.
11769 (target_post_attach): Add argument.
11770 * target.c (debug_to_post_attach): Add argument.
11771 (update_current_target): Update.
11772 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11773 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11774 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11775 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11776 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11777
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11779
11780 * windows-nat.c (windows_close): Add 'self' argument.
11781 * tracepoint.c (tfile_close): Add 'self' argument.
11782 * target.h (struct target_ops) <to_close>: Add argument.
11783 * target.c (target_close): Add argument.
11784 (update_current_target): Update.
11785 * remote.c (remote_close): Add 'self' argument.
11786 * remote-sim.c (gdbsim_close): Add 'self' argument.
11787 * remote-mips.c (mips_close): Add 'self' argument.
11788 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11789 * record-full.c (record_full_close): Add 'self' argument.
11790 * record-btrace.c (record_btrace_close): Add 'self' argument.
11791 * monitor.h (monitor_close): Add 'self' argument.
11792 * monitor.c (monitor_close): Add 'self' argument.
11793 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11794 * linux-nat.c (linux_nat_close): Add argument.
11795 * go32-nat.c (go32_close): Add 'self' argument.
11796 * exec.c (exec_close_1): Add 'self' argument.
11797 * ctf.c (ctf_close): Add 'self' argument.
11798 * corelow.c (core_close): Add 'self' argument.
11799 (core_close_cleanup): Update.
11800 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11801 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11802
11803 2014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * remote.c (remote_load): New function.
11806 (init_remote_ops): Use it.
11807
11808 2014-02-19 Tom Tromey <tromey@redhat.com>
11809
11810 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11811 argument.
11812 * common/linux-btrace.h (linux_supports_btrace): Update.
11813 * remote.c (remote_supports_btrace): Add "self" argument.
11814 * target-delegates.c: Rebuild.
11815 * target.c (target_supports_btrace): Remove.
11816 * target.h (struct target_ops) <to_supports_btrace>: Add
11817 target_ops argument.
11818 (target_supports_btrace): New define.
11819
11820 2014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * record-full.c (record_full_beneath_to_resume_ops)
11823 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11824 (record_full_beneath_to_wait)
11825 (record_full_beneath_to_store_registers_ops)
11826 (record_full_beneath_to_store_registers)
11827 (record_full_beneath_to_xfer_partial_ops)
11828 (record_full_beneath_to_xfer_partial)
11829 (record_full_beneath_to_insert_breakpoint_ops)
11830 (record_full_beneath_to_insert_breakpoint)
11831 (record_full_beneath_to_remove_breakpoint_ops)
11832 (record_full_beneath_to_remove_breakpoint)
11833 (record_full_beneath_to_stopped_by_watchpoint)
11834 (record_full_beneath_to_stopped_data_address)
11835 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11836 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11837 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11838 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11839 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11840 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11841 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11842 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11843 (record_full_resume, record_full_wait_1)
11844 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11845 (record_full_store_registers, record_full_xfer_partial)
11846 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11847 (record_full_async, record_full_core_xfer_partial): Use target
11848 delegation.
11849 * target-delegates.c: Rebuild.
11850 * target.c (current_xfer_partial): Remove.
11851 (update_current_target): Do not INHERIT or de_fault
11852 to_insert_breakpoint, to_remove_breakpoint,
11853 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11854 to_is_async_p, to_async. Do not set to_xfer_partial field.
11855 (default_xfer_partial): Simplify.
11856 (current_xfer_partial): Remove.
11857 (target_wait, target_resume): Simplify.
11858 (find_default_can_async_p, find_default_is_async_p): Update.
11859 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11860 to_xfer_partial, to_stopped_by_watchpoint,
11861 to_stopped_data_address.
11862 (target_store_registers): Simplify.
11863 (forward_target_remove_breakpoint)
11864 (forward_target_insert_breakpoint): Remove.
11865 (target_remove_breakpoint, target_insert_breakpoint)
11866 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11867 * target.h (struct target_ops) <to_resume, to_wait,
11868 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11869 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11870 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11871 markup.
11872 (forward_target_remove_breakpoint)
11873 (forward_target_insert_breakpoint): Remove.
11874 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11875 directly.
11876 (record_btrace_insert_breakpoint): Delegate directly.
11877
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11879
11880 PR build/7701:
11881 * target-delegates.c: New file.
11882 * target.c: Include target-delegates.c.
11883 (init_dummy_target): Call install_dummy_methods.
11884 (complete_target_initialization): Call install_delegators.
11885 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11886 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11887 * make-target-delegates: New file.
11888
11889 2014-02-19 Tom Tromey <tromey@redhat.com>
11890
11891 * record.c (find_record_target): Use find_target_at.
11892 * target.c (find_target_at): New function.
11893 * target.h (find_target_at): Declare.
11894
11895 2014-02-19 Tom Tromey <tromey@redhat.com>
11896
11897 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11898 Add 'ops' argument.
11899 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11900 'ops' argument.
11901 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11902 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11903 'ops' argument.
11904 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11905 argument.
11906 * linux-nat.c (save_sigtrap): Update.
11907 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11908 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11909 (linux_nat_close): Update.
11910 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11911 argument.
11912 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11913 argument.
11914 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11915 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11916 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11917 (tmp_to_async): Add 'ops' argument.
11918 (record_full_stopped_by_watchpoint, record_full_async)
11919 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11920 argument.
11921 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11922 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11923 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11924 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11925 (remote_is_async_p, remote_async): Add 'ops' argument.
11926 (remote_stopped_data_address): Update.
11927 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11928 * target.c (update_current_target)
11929 (find_default_can_async_p, find_default_is_async_p): Update.
11930 (init_dummy_target): Update.
11931 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11932 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11933 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11934 (target_can_async_p, target_is_async_p, target_async)
11935 (target_stopped_by_watchpoint): Update.
11936
11937 2014-02-19 Yao Qi <yao@codesourcery.com>
11938
11939 PR gdb/16220
11940 * gdbarch.sh: Remove startup_gdbarch.
11941 * gdbarch.c: Regenerated.
11942 * gdbarch.h: Likewise.
11943
11944 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11945
11946 * rl78-tdep.c (rl78_g10_register_name): New function.
11947 (rl78_return_value): Add g10 support.
11948 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11949 g10.
11950
11951 2014-02-17 Doug Evans <xdje42@gmail.com>
11952
11953 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11954 (SUBDIR_GUILE_SRCS): Ditto.
11955 (scm-gsmob.o): Ditto.
11956
11957 2014-02-17 Yao Qi <yao@codesourcery.com>
11958
11959 * gnu-nat.c (ILL_RPC): Declare defined function.
11960
11961 2014-02-17 Yao Qi <yao@codesourcery.com>
11962
11963 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11964 mach_msg_type_number_t.
11965 (gnu_write_inferior): Likewise.
11966
11967 2014-02-17 Yao Qi <yao@codesourcery.com>
11968
11969 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11970 in format string.
11971 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11972 (inf_validate_procs, inf_signal): Likewise.
11973 (S_exception_raise_request): Likewise.
11974 (do_mach_notify_dead_name): Likewise.
11975 (steal_exc_port): Likewise.
11976 (gnu_read_inferior): Change 'copy_count''s type to
11977 mach_msg_type_number_t.
11978 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11979 format string.
11980
11981 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11982
11983 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11984 flag. Adjust all users; in particular...
11985 (gnu_wait): ..., don't decrement its value in here...
11986 (gnu_create_inferior): ..., and instead set the flag in here,
11987 around the startup_inferior call, and call that one with
11988 START_INFERIOR_TRAPS_EXPECTED.
11989
11990 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11991 (ILL_RPC): ... new macro.
11992 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11993 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11994 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11995 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11996 functions with ILL_RPC macro.
11997 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11998 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11999 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12000 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12001 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12002 (S_proc_getlogin_reply, S_proc_getsid_reply)
12003 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12004 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12005 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12006 (S_proc_getnports_reply, S_proc_is_important_reply)
12007 (S_proc_get_code_reply): New stub functions, generated with
12008 ILL_RPC macro.
12009
12010 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12011 collected the type check structures.
12012
12013 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12014
12015 2014-02-14 Doug Evans <dje@google.com>
12016
12017 * target.c (target_write_partial): Fix result type.
12018
12019 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12020
12021 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12022 the proper offsets to access fpregset_t.
12023
12024 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12025
12026 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12027 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12028 * h8300-tdep.c (setmachinelist): Remove global.
12029 * hppa-tdep.c (hppa_sigtramp): Remove global.
12030 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12031 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12032 * ravenscar-thread.c (update_target_observer): Remove global.
12033 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12034
12035 2014-02-12 Tom Tromey <tromey@redhat.com>
12036
12037 * common/rsp-low.c: Update comments.
12038 * common/rsp-low.h: Update comments.
12039
12040 2014-02-12 Tom Tromey <tromey@redhat.com>
12041
12042 * common/rsp-low.c (convert_ascii_to_int): Remove.
12043 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12044
12045 2014-02-12 Tom Tromey <tromey@redhat.com>
12046
12047 * common/rsp-low.h (unhexify): Don't declare.
12048 * common/rsp-low.c (unhexify): Remove.
12049
12050 2014-02-12 Tom Tromey <tromey@redhat.com>
12051
12052 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12053 * common/rsp-low.c (convert_int_to_ascii): Remove.
12054
12055 2014-02-12 Tom Tromey <tromey@redhat.com>
12056
12057 * common/rsp-low.h (hexify): Don't declare.
12058 * common/rsp-low.c (hexify): Remove.
12059
12060 2014-02-12 Tom Tromey <tromey@redhat.com>
12061
12062 * common/rsp-low.c (hexify): Never take strlen of argument.
12063
12064 2014-02-12 Tom Tromey <tromey@redhat.com>
12065
12066 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12067 * remote.c (extended_remote_run, remote_rcmd)
12068 (remote_download_trace_state_variable, remote_save_trace_data)
12069 (remote_set_trace_notes): Update.
12070 * tracepoint.c (encode_source_string, tfile_write_status)
12071 (tfile_write_uploaded_tsv): Update.
12072
12073 2014-02-12 Tom Tromey <tromey@redhat.com>
12074
12075 * tracepoint.c: Include rsp-low.h.
12076 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12077 * remote.c: Include rsp-low.h.
12078 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12079 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12080 (remote_unescape_input): Move to common/rsp-low.c.
12081 * common/rsp-low.h: New file.
12082 * common/rsp-low.c: New file.
12083 * Makefile.in (SFILES): Add common/rsp-low.c.
12084 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12085 (COMMON_OBS): Add rsp-low.o.
12086 (rsp-low.o): New target.
12087
12088 2014-02-12 Tom Tromey <tromey@redhat.com>
12089
12090 * utils.h: Include print-utils.h.
12091 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12092 (int_string, core_addr_to_string, core_addr_to_string_nz)
12093 (hex_string, hex_string_custom): Don't declare.
12094 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12095 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12096 (hex_string_custom, int_string, core_addr_to_string)
12097 (core_addr_to_string_nz, host_address_to_string): Move to
12098 common/print-utils.c.
12099 * common/print-utils.h: New file.
12100 * common/print-utils.c: New file
12101 * Makefile.in (SFILES): Add common/print-utils.c.
12102 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12103 (COMMON_OBS): Add print-utils.o.
12104 (print-utils.o): New target.
12105
12106 2014-02-12 Tom Tromey <tromey@redhat.com>
12107
12108 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12109
12110 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12111
12112 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12113
12114 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12115
12116 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12117 if a PT_IO ptrace request returns sucessfully but indicates that 0
12118 bytes were transferred.
12119
12120 2014-02-12 Pedro Alves <palves@redhat.com>
12121 Kevin Buettner <kevinb@redhat.com>
12122
12123 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12124 TYPE_INSTANCE_FLAG_CODE_SPACE.
12125
12126 2014-02-12 Pedro Alves <palves@redhat.com>
12127
12128 * h8300-tdep.c (pseudo_from_raw_register)
12129 (raw_from_pseudo_register): New functions.
12130 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12131 them.
12132
12133 2014-02-12 Pedro Alves <palves@redhat.com>
12134
12135 * h8300-tdep.c (h8300_register_sim_regno): New function.
12136 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12137 gdbarch_register_sim_regno hook.
12138
12139 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12140
12141 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12142
12143 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12144
12145 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12146
12147 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12148
12149 * obsd-tdep.h (obsd_init_abi): New prototype.
12150 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12151 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12152 (obsd_init_abi): New functions.
12153 * i386obsd-tdep.c: Include "obsd-tdep.h".
12154 (i386obsd_init_abi): Call obsd_init_abi.
12155 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12156 (amd64obsd_init_abi): Call obsd_init_abi.
12157 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12158 obsd-tdep.c to gdb_target_obs.
12159
12160 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12161
12162 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12163 double float arguments to 16-byte in the argument slots.
12164
12165 2014-02-11 Doug Evans <xdje42@gmail.com>
12166
12167 * configure.ac: Don't crash if pkg-config is not found and guile
12168 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12169 in guile checks.
12170 * configure: Regenerate.
12171
12172 2014-02-11 Yao Qi <yao@codesourcery.com>
12173
12174 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12175 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12176 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12177 * gnu-nat.c (gnu_xfer_memory): Likewise.
12178 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12179 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12180 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12181 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12182
12183 2014-02-11 Yao Qi <yao@codesourcery.com>
12184
12185 * target.h (enum target_xfer_error): Rename to ...
12186 (enum target_xfer_status): ... it. New. All users updated.
12187 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12188 New.
12189 (TARGET_XFER_STATUS_ERROR_P): New macro.
12190 (target_xfer_error_to_string): Remove declaration.
12191 (target_xfer_status_to_string): Declare.
12192 (target_xfer_partial_ftype): Adjust it.
12193 (struct target_ops) <to_xfer_partial>: Return
12194 target_xfer_status. Add argument xfered_len. Update
12195 comments.
12196 * target.c (target_xfer_error_to_string): Rename to ...
12197 (target_xfer_status_to_string): ... it. New. All callers
12198 updated.
12199 (target_read_live_memory): Likewise. Call target_xfer_partial
12200 instead of target_read.
12201 (memory_xfer_live_readonly_partial): Return
12202 target_xfer_status. Add argument xfered_len.
12203 (raw_memory_xfer_partial): Likewise.
12204 (memory_xfer_partial_1): Likewise.
12205 (memory_xfer_partial): Likewise.
12206 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12207 properly. Update debug message.
12208 (default_xfer_partial, current_xfer_partial): Likewise.
12209 (target_write_partial): Likewise.
12210 (target_read_partial): Likewise. All callers updated.
12211 (read_whatever_is_readable): Likewise.
12212 (target_write_with_progress): Likewise.
12213 (target_read_alloc_1): Likewise.
12214
12215 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12216 * auxv.c (procfs_xfer_auxv): Likewise.
12217 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12218 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12219 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12220 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12221 * corefile.c (read_memory): Adjust.
12222 * corelow.c (core_xfer_partial): Likewise.
12223 * ctf.c (ctf_xfer_partial): Likewise.
12224 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12225 updated.
12226 (darwin_xfer_partial): Likewise.
12227 * exec.c (section_table_xfer_memory_partial): Likewise. All
12228 callers updated.
12229 (exec_xfer_partial): Likewise.
12230 * exec.h (section_table_xfer_memory_partial): Update
12231 declaration.
12232 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12233 negative.
12234 (gnu_xfer_partial): Likewise.
12235 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12236 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12237 (ia64_hpux_xfer_solib_got): Likewise.
12238 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12239 type of 'partial_len' to ULONGEST.
12240 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12241 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12242 (linux_nat_xfer_partial): Likewise.
12243 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12244 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12245 * monitor.c (monitor_xfer_memory): Likewise.
12246 (monitor_xfer_partial): Likewise.
12247 * procfs.c (procfs_xfer_partial): Likewise.
12248 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12249 * record-full.c (record_full_xfer_partial): Likewise.
12250 (record_full_core_xfer_partial): Likewise.
12251 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12252 (gdbsim_xfer_partial): Likewise.
12253 * remote.c (remote_write_bytes_aux): Likewise. All callers
12254 updated.
12255 (remote_write_bytes, remote_read_bytes): Likewise. All
12256 callers updated.
12257 (remote_flash_erase): Likewise. All callers updated.
12258 (remote_write_qxfer): Likewise. All callers updated.
12259 (remote_read_qxfer): Likewise. All callers updated.
12260 (remote_xfer_partial): Likewise.
12261 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12262 (rs6000_xfer_shared_libraries): Likewise.
12263 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12264 (sol_thread_xfer_partial): Likewise.
12265 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12266 (sparc_xfer_partial): Likewise.
12267 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12268 updated.
12269 (spu_xfer_partial): Likewise.
12270 * spu-multiarch.c (spu_xfer_partial): Likewise.
12271 * tracepoint.c (tfile_xfer_partial): Likewise.
12272 * windows-nat.c (windows_xfer_memory): Likewise.
12273 (windows_xfer_shared_libraries): Likewise.
12274 (windows_xfer_partial): Likewise.
12275 * valprint.c: Replace 'target_xfer_error' with
12276 'target_xfer_status' in comments.
12277
12278 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12279
12280 Checked in by Joel Brobecker <brobecker@adacore.com>.
12281 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12282
12283 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12284
12285 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12286 function parameters.
12287
12288 2014-02-10 Will Newton <will.newton@linaro.org>
12289
12290 * elfread.c (elf_rel_plt_read): Look for a .got section if
12291 looking up .got.plt fails.
12292 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12293 on address passed to elf_gnu_ifunc_record_cache.
12294 (elf_gnu_ifunc_resolve_addr): Likewise.
12295 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12296
12297 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12298
12299 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12300 (X_RETTURN): New macro.
12301 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12302
12303 * sparc64-tdep.c (sparc64_init_abi): Hook
12304 sparc_in_function_epilogue_p.
12305
12306 2014-02-10 Gary Benson <gbenson@redhat.com>
12307
12308 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12309 Rename name_matcher to symbol_matcher.
12310
12311 2014-02-10 Gary Benson <gbenson@redhat.com>
12312
12313 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12314 Use expand_symtabs_file_matcher_ftype and
12315 expand_symtabs_symbol_matcher_ftype.
12316
12317 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12318
12319 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12320 (struct ada_symbol_cache): New.
12321 (ada_free_symbol_cache): Forward declare.
12322 (struct ada_pspace_data): New.
12323 (ada_pspace_data_handle): New static global.
12324 (get_ada_pspace_data, ada_pspace_data_cleanup)
12325 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12326 (cache_space, cache): Delete, now folded inside struct
12327 ada_pspace_data.
12328 (ada_get_symbol_cache): New function.
12329 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12330 implementation.
12331 (_initialize_ada_language): Remove initialization of cache_space.
12332 Move call to observer_attach_inferior_exit up, grouping it
12333 with the other observer registrations inside this function.
12334 Rename command to be more general. Add call to
12335 register_program_space_data_with_cleanup.
12336
12337 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12338
12339 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12340 ada_new_objfile_observer.
12341 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12342 (_initialize_tasks): Update uses of ada_new_objfile_observer
12343 and ada_tasks_normal_stop_observer.
12344
12345 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12346
12347 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12348 returned by the 'Length attribute to integer.
12349
12350 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12351
12352 * ada-lang.c (_initialize_ada_language): Initialize
12353 cache_space obstack.
12354
12355 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12356
12357 * ada-lang.c (HASH_SIZE): New macro.
12358 (struct cache_entry): New type.
12359 (cache_space, cache): New static globals.
12360 (ada_clear_symbol_cache, find_entry): New functions.
12361 (lookup_cached_symbol, cache_symbol): Implement.
12362 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12363 (_initialize_ada_language): Attach ada_new_objfile_observer
12364 and ada_free_objfile_observer.
12365
12366 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12367
12368 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12369 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12370 struct block * parameter.
12371 (ada_lookup_symbol_list_worker): Constify local variable "block".
12372 Remove cast which is no longer necessary.
12373
12374 2014-02-10 Doug Evans <xdje42@gmail.com>
12375
12376 Add Guile as an extension language.
12377 * NEWS: Mention Guile scripting.
12378 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12379 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12380 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12381 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12382 (CLIBS): Add GUILE_LIBS.
12383 (install-guile): New rule.
12384 (guile.o): New rule.
12385 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12386 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12387 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12388 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12389 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12390 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12391 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12392 * configure.ac: New option --with-guile.
12393 * configure: Regenerate.
12394 * config.in: Regenerate.
12395 * auto-load.c: Remove #include "python/python.h". Add #include
12396 "gdb/section-scripts.h".
12397 (source_section_scripts): Handle Guile scripts.
12398 (_initialize_auto_load): Add name of Guile objfile script to
12399 scripts-directory help text.
12400 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12401 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12402 (struct breakpoint): New member scm_bp_object.
12403 * defs.h (enum command_control_type): New value guile_control.
12404 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12405 "extension.h".
12406 (show_user): Update comment.
12407 (_initialize_cli_cmds): Update help text for "show user". Update help
12408 text for max-user-call-depth.
12409 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12410 "extension.h".
12411 (multi_line_command_p): Add guile_control.
12412 (print_command_lines): Handle guile_control.
12413 (execute_control_command, recurse_read_control_structure): Ditto.
12414 (process_next_line): Recognize "guile" commands.
12415 * disasm.c (gdb_disassemble_info): Make non-static.
12416 * disasm.h: #include "dis-asm.h".
12417 (struct gdbarch): Add forward decl.
12418 (gdb_disassemble_info): Declare.
12419 * extension.c: #include "guile/guile.h".
12420 (extension_languages): Add guile.
12421 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12422 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12423 * gdbtypes.c (get_unsigned_type_max): New function.
12424 (get_signed_type_minmax): New function.
12425 * gdbtypes.h (get_unsigned_type_max): Declare.
12426 (get_signed_type_minmax): Declare.
12427 * guile/README: New file.
12428 * guile/guile-internal.h: New file.
12429 * guile/guile.c: New file.
12430 * guile/guile.h: New file.
12431 * guile/scm-arch.c: New file.
12432 * guile/scm-auto-load.c: New file.
12433 * guile/scm-block.c: New file.
12434 * guile/scm-breakpoint.c: New file.
12435 * guile/scm-disasm.c: New file.
12436 * guile/scm-exception.c: New file.
12437 * guile/scm-frame.c: New file.
12438 * guile/scm-gsmob.c: New file.
12439 * guile/scm-iterator.c: New file.
12440 * guile/scm-lazy-string.c: New file.
12441 * guile/scm-math.c: New file.
12442 * guile/scm-objfile.c: New file.
12443 * guile/scm-ports.c: New file.
12444 * guile/scm-pretty-print.c: New file.
12445 * guile/scm-safe-call.c: New file.
12446 * guile/scm-string.c: New file.
12447 * guile/scm-symbol.c: New file.
12448 * guile/scm-symtab.c: New file.
12449 * guile/scm-type.c: New file.
12450 * guile/scm-utils.c: New file.
12451 * guile/scm-value.c: New file.
12452 * guile/lib/gdb.scm: New file.
12453 * guile/lib/gdb/boot.scm: New file.
12454 * guile/lib/gdb/experimental.scm: New file.
12455 * guile/lib/gdb/init.scm: New file.
12456 * guile/lib/gdb/iterator.scm: New file.
12457 * guile/lib/gdb/printing.scm: New file.
12458 * guile/lib/gdb/types.scm: New file.
12459 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12460 (VPATH): Add $(GUILE_SRCDIR).
12461 (GUILE_DIR): New variable.
12462 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12463 (all): Add stamp-guile dependency.
12464 (stamp-guile): New rule.
12465 (clean-guile, install-guile, uninstall-guile): New rules.
12466 (install-only): Add install-guile dependency.
12467 (uninstall): Add uninstall-guile dependency.
12468 (clean): Add clean-guile dependency.
12469
12470 2014-02-09 Doug Evans <xdje42@gmail.com>
12471
12472 Revert this patch (which I approved, mea culpa).
12473
12474 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12475
12476 * Makefile.in (all-lib): Remove.
12477 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12478
12479 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12480
12481 Fix Python stack corruption.
12482 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12483 gdb_py_longest.
12484
12485 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12486
12487 * Makefile.in (all-lib): Remove.
12488 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12489
12490 2014-02-07 Doug Evans <dje@google.com>
12491
12492 * extension-priv.h (extension_language_script_ops): Add comment.
12493 (extension_language_ops): Add comment.
12494 (active_ext_lang_state): Fix typo in comment.
12495
12496 2014-02-07 Pedro Alves <palves@redhat.com>
12497
12498 PR breakpoints/16292
12499 * infrun.c (handle_signal_stop) <signal arrives while stepping
12500 over a breakpoint>: Switch back to the stepping thread.
12501
12502 2014-02-07 Yao Qi <yao@codesourcery.com>
12503
12504 * target.c (target_xfer_partial): Return zero if LEN is zero.
12505
12506 2014-02-07 Yao Qi <yao@codesourcery.com>
12507
12508 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12509 (ld_so_xfer_auxv): Likewise.
12510 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12511 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12512 * corelow.c (core_xfer_partial): Likewise.
12513 * ctf.c (ctf_xfer_partial): Likewise.
12514 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12515 (darwin_xfer_partial): Likewise.
12516 * exec.c (exec_xfer_partial): Likewise.
12517 * gnu-nat.c (gnu_xfer_partial): Likewise.
12518 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12519 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12520 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12521 * linux-nat.c (linux_xfer_siginfo): Likewise.
12522 (linux_proc_xfer_spu): Likewise.
12523 * procfs.c (procfs_xfer_partial): Likewise.
12524 * record-full.c (record_full_xfer_partial): Likewise.
12525 (record_full_core_xfer_partial): Likewise.
12526 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12527 * remote.c (remote_write_qxfer): Likewise.
12528 (remote_write_qxfer, remote_read_qxfer): Likewise.
12529 (remote_xfer_partial): Likewise.
12530 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12531 (rs6000_xfer_shared_libraries): Likewise.
12532 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12533 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12534 (spu_xfer_partial): Likewise.
12535 * target.c (memory_xfer_partial_1): Likewise.
12536 * tracepoint.c (tfile_xfer_partial): Likewise.
12537 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12538 (windows_xfer_partial): Likewise.
12539
12540 2014-02-07 Yao Qi <yao@codesourcery.com>
12541
12542 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12543 comments.
12544 (core_xfer_shared_libraries_aix): Likewise.
12545 * gdbarch.c, gdbarch.h: Regenerated.
12546 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12547 ULONGEST. Change 'len_avail' type to ULONGEST.
12548 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12549 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12550 declaration.
12551 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12552
12553 2014-02-07 Yao Qi <yao@codesourcery.com>
12554
12555 * corefile.c (memory_error): Get 'exception' from ERR and pass
12556 'exception' to throw_error.
12557
12558 2014-02-06 Doug Evans <xdje42@gmail.com>
12559
12560 * configure.ac (libpython checking): Remove all but python.o from
12561 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12562 * configure: Regenerate.
12563
12564 * Makefile.in (SFILES): Add extension.c.
12565 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12566 (COMMON_OBS): Add extension.o.
12567 * extension.h: New file.
12568 * extension-priv.h: New file.
12569 * extension.c: New file.
12570
12571 * python/python-internal.h: #include "extension.h".
12572 (gdbpy_auto_load_enabled): Declare.
12573 (gdbpy_apply_val_pretty_printer): Declare.
12574 (gdbpy_apply_frame_filter): Declare.
12575 (gdbpy_preserve_values): Declare.
12576 (gdbpy_breakpoint_cond_says_stop): Declare.
12577 (gdbpy_breakpoint_has_cond): Declare.
12578 (void source_python_script_for_objfile): Delete.
12579 * python/python.c: #include "extension-priv.h".
12580 Delete inclusion of "observer.h".
12581 (extension_language_python): Moved here and renamed from
12582 script_language_python in py-auto-load.c.
12583 Redefined to be of type extension_language_defn.
12584 (python_extension_script_ops): New global.
12585 (python_extension_ops): New global.
12586 (struct python_env): New member previous_active.
12587 (restore_python_env): Call restore_active_ext_lang.
12588 (ensure_python_env): Call set_active_ext_lang.
12589 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12590 New arg extlang.
12591 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12592 New arg extlang.
12593 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12594 New arg extlang.
12595 (gdbpy_eval_from_control_command): Renamed from
12596 eval_python_from_control_command, made static. New arg extlang.
12597 (gdbpy_source_script) Renamed from source_python_script, made static.
12598 New arg extlang.
12599 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12600 result to int. New arg extlang.
12601 (gdbpy_source_objfile_script): Renamed from
12602 source_python_script_for_objfile, made static. New arg extlang.
12603 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12604 static. New args extlang, extlang_printers. Change result type to
12605 "void".
12606 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12607 static. New arg extlang. Rename arg printers to extlang_printers
12608 and change type to ext_lang_type_printers *.
12609 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12610 static. Replace argument arg with extlang, extlang_printers.
12611 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12612 (!HAVE_PYTHON, source_python_script): Delete.
12613 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12614 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12615 (!HAVE_PYTHON, start_type_printers): Delete.
12616 (!HAVE_PYTHON, apply_type_printers): Delete.
12617 (!HAVE_PYTHON, free_type_printers): Delete.
12618 (_initialize_python): Delete call to observer_attach_before_prompt.
12619 (finalize_python): Set/restore active extension language.
12620 (gdbpy_finish_initialization) Renamed from
12621 finish_python_initialization, made static. New arg extlang.
12622 (gdbpy_initialized): New function.
12623 * python/python.h: #include "extension.h". Delete #include
12624 "value.h", "mi/mi-cmds.h".
12625 (extension_language_python): Declare.
12626 (GDBPY_AUTO_FILE_NAME): Delete.
12627 (enum py_bt_status): Moved to extension.h and renamed to
12628 ext_lang_bt_status.
12629 (enum frame_filter_flags): Moved to extension.h.
12630 (enum py_frame_args): Moved to extension.h and renamed to
12631 ext_lang_frame_args.
12632 (finish_python_initialization): Delete.
12633 (eval_python_from_control_command): Delete.
12634 (source_python_script): Delete.
12635 (apply_val_pretty_printer): Delete.
12636 (apply_frame_filter): Delete.
12637 (preserve_python_values): Delete.
12638 (gdbpy_script_language_defn): Delete.
12639 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12640 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12641
12642 * auto-load.c: #include "extension.h".
12643 (GDB_AUTO_FILE_NAME): Delete.
12644 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12645 (script_language_gdb): Delete, moved to extension.c and renamed to
12646 extension_language_gdb.
12647 (source_gdb_script_for_objfile): Delete.
12648 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12649 (loaded_script): Change type of language member to
12650 struct extension_language_defn *.
12651 (init_loaded_scripts_info): Initialize
12652 unsupported_script_warning_printed.
12653 (maybe_add_script): Make static. Change type of language arg to
12654 struct extension_language_defn *.
12655 (clear_section_scripts): Reset unsupported_script_warning_printed.
12656 (auto_load_objfile_script_1): Rewrite to use extension language API.
12657 (auto_load_objfile_script): Make public. Remove support-compiled-in
12658 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12659 (source_section_scripts): Rewrite to use extension language API.
12660 (load_auto_scripts_for_objfile): Rewrite to use
12661 auto_load_scripts_for_objfile.
12662 (collect_matching_scripts_data): Change type of language member to
12663 struct extension_language_defn *.
12664 (auto_load_info_scripts): Change type of language arg to
12665 struct extension_language_defn *.
12666 (unsupported_script_warning_print): New function.
12667 (script_not_found_warning_print): Make static.
12668 (_initialize_auto_load): Rewrite construction of scripts-directory
12669 help.
12670 * auto-load.h (struct objfile): Add forward decl.
12671 (struct script_language): Delete.
12672 (struct auto_load_pspace_info): Add forward decl.
12673 (struct extension_language_defn): Add forward decl.
12674 (maybe_add_script): Delete.
12675 (auto_load_objfile_script): Declare.
12676 (script_not_found_warning_print): Delete.
12677 (auto_load_info_scripts): Update prototype.
12678 (auto_load_gdb_scripts_enabled): Declare.
12679 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12680 auto_load_python_scripts_enabled and made public.
12681 (script_language_python): Delete, moved to python.c.
12682 (gdbpy_script_language_defn): Delete.
12683 (info_auto_load_python_scripts): Update to use
12684 extension_language_python.
12685
12686 * breakpoint.c (condition_command): Replace call to
12687 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12688 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12689 with call to breakpoint_ext_lang_cond_says_stop.
12690 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12691 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12692 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12693 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12694 New arg slang.
12695 (local_setattro): Print name of extension language with existing
12696 stop condition.
12697
12698 * valprint.c (val_print, value_print): Update to call
12699 apply_ext_lang_val_pretty_printer.
12700 * cp-valprint.c (cp_print_value): Update call to
12701 apply_ext_lang_val_pretty_printer.
12702 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12703 (gdbpy_apply_val_pretty_printer): Renamed from
12704 apply_val_pretty_printer. New arg extlang.
12705 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12706
12707 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12708 extension language API.
12709 * cli/cli-script.c (execute_control_command): Update to call
12710 eval_ext_lang_from_control_command.
12711
12712 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12713 enum ext_lang_bt_status values. Update call to
12714 apply_ext_lang_frame_filter.
12715 (mi_cmd_stack_list_locals): Ditto.
12716 (mi_cmd_stack_list_args): Ditto.
12717 (mi_cmd_stack_list_variables): Ditto.
12718 * mi/mi-main.c: Delete #include "python/python-internal.h".
12719 Add #include "extension.h".
12720 (mi_cmd_list_features): Replace reference to python internal variable
12721 gdb_python_initialized with call to ext_lang_initialized_p.
12722
12723 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12724 Update to use enum ext_lang_frame_args. Update to call
12725 apply_ext_lang_frame_filter.
12726 * python/py-framefilter.c (extract_sym): Update to use enum
12727 ext_lang_bt_status.
12728 (extract_value, py_print_type, py_print_value): Ditto.
12729 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12730 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12731 (py_print_frame): Ditto.
12732 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12733 New arg extlang. Update to use enum ext_lang_bt_status.
12734
12735 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12736 finish_python_initialization. Replace with call to
12737 finish_ext_lang_initialization.
12738
12739 * typeprint.c (do_free_global_table): Update to call
12740 free_ext_lang_type_printers.
12741 (create_global_typedef_table): Update to call
12742 start_ext_lang_type_printers.
12743 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12744 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12745 (type_print_options): Change type of global_printers from "void *"
12746 to "struct ext_lang_type_printers *".
12747
12748 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12749 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12750 (gdbpy_preserve_values): Renamed from preserve_python_values.
12751 New arg extlang.
12752 (!HAVE_PYTHON, preserve_python_values): Delete.
12753
12754 * utils.c (quit_flag): Delete, moved to extension.c.
12755 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12756 extension.c.
12757
12758 * eval.c: Delete #include "python/python.h".
12759 * main.c: Delete #include "python/python.h".
12760
12761 * defs.h: Update comment.
12762
12763 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12764
12765 GDB 7.7 released.
12766
12767 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12768
12769 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12770 defined.
12771
12772 2014-02-05 Yao Qi <yao@codesourcery.com>
12773
12774 * remote.c (remote_pass_signals): Remove local 'buf' and use
12775 rs->buf.
12776 (remote_program_signals): Likewise.
12777
12778 2014-02-05 Yao Qi <yao@codesourcery.com>
12779
12780 * ctf.c: Include "inferior.h" and "gdbthread.h".
12781 (CTF_PID): A new macro.
12782 (ctf_open): Call inferior_appeared and add_thread_silent.
12783 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12784 (ctf_thread_alive): New function.
12785 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12786
12787 2014-02-05 Yao Qi <yao@codesourcery.com>
12788
12789 Revert this patch:
12790
12791 2013-05-24 Yao Qi <yao@codesourcery.com>
12792
12793 * tracepoint.c (TFILE_PID): Remove.
12794 (tfile_open): Don't add thread and inferior.
12795 (tfile_close): Don't set 'inferior_ptid'. Don't call
12796 exit_inferior_silent.
12797 (tfile_thread_alive): Remove.
12798 (init_tfile_ops): Don't set field 'to_thread_alive' of
12799 tfile_ops.
12800
12801 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12802
12803 * remote.c (remote_start_remote): Call remote_check_symbols even
12804 if only symbol-file (not file) has been given.
12805
12806 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12807
12808 * gdbarch.sh (skip_entrypoint): New callback.
12809 * gdbarch.c, gdbarch.h: Regenerate.
12810 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12811 * infrun.c (fill_in_stop_func): Likewise.
12812 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12813 (ppc_elfv2_elf_make_msymbol_special): New function.
12814 (ppc_elfv2_skip_entrypoint): Likewise.
12815 (ppc_linux_init_abi): Install them for ELFv2.
12816
12817 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12818
12819 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12820 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12821 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12822 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12823 structures returned in GPRs.
12824
12825 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12826
12827 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12828 offset to the stack parameter list for the ELFv2 ABI.
12829
12830 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12831
12832 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12833 set_gdbarch_convert_from_func_ptr_addr and
12834 set_gdbarch_elf_make_msymbol_special for ELFv1.
12835 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12836 function descriptors on ELFv1.
12837 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12838 set up r12 at function entry.
12839
12840 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12841
12842 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12843 (struct gdbarch_tdep): New member elf_abi.
12844
12845 * rs6000-tdep.c: Include "elf/ppc64.h".
12846 (rs6000_gdbarch_init): Detect ELF ABI version.
12847
12848 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12849
12850 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12851 within a register pair holding a DFP 128-bit value on little-endian.
12852 (ppc64_sysv_abi_return_value_base): Likewise.
12853 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12854 (dfp_pseudo_register_write): Likewise.
12855
12856 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12857
12858 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12859 offset on little-endian when passing _Decimal32.
12860 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12861
12862 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12863
12864 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12865 of the overlapped FP register within the VSX register on little-
12866 endian platforms.
12867 (efpr_pseudo_register_write): Likewise.
12868
12869 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12870
12871 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12872 offset on little-endian when passing small structures.
12873
12874 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12875
12876 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12877 (struct ppc64_sysv_argpos): New data structure.
12878 (ppc64_sysv_abi_push_float): Remove.
12879 (ppc64_sysv_abi_push_val): New function.
12880 (ppc64_sysv_abi_push_integer): Likewise.
12881 (ppc64_sysv_abi_push_freg): Likewise.
12882 (ppc64_sysv_abi_push_vreg): Likewise.
12883 (ppc64_sysv_abi_push_param): Likewise.
12884 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12885 (ppc64_sysv_abi_return_value_base): New function.
12886 (ppc64_sysv_abi_return_value): Refactor to use it.
12887
12888 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12889
12890 * NEWS: Document new target powerpc64le-*-linux*.
12891
12892 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12893
12894 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12895 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12896 core dumps.
12897 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12898 register set used in ELF core dumps. Add floating-point register set.
12899
12900 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12901
12902 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12903 dwarf2_to_gdb[] table using symbolic constants. Adjust
12904 penultimate entry from number representing the PC register
12905 to symbolic constant representing the MDR register. Add
12906 constant for the PC register to the end of the table.
12907
12908 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12909
12910 * bsd-kvm.c: Include <sys/param.h>
12911
12912 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12913
12914 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12915
12916 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12917
12918 * ada-lang.h (clear_ada_sym_cache): Delete.
12919
12920 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12921
12922 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12923
12924 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12925
12926 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12927 the sigreturn register save area only if the syscall is
12928 sigreturn.
12929
12930 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12931
12932 * valops.c (value_slice): Minor reformatting.
12933
12934 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12935
12936 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12937
12938 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12939
12940 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12941 New static globals.
12942 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12943 (ada_ignore_descriptive_types_p): New static global.
12944 (find_parallel_type_by_descriptive_type): Return immediately
12945 if ada_ignore_descriptive_types_p is set.
12946 (_initialize_ada_language): Register new commands "maintenance
12947 set ada", "maintenance show ada", "maintenance set ada
12948 ignore-descriptive-types" and "maintenance show ada
12949 ignore-descriptive-types".
12950 * NEWS: Add entry for new "maint ada set/show
12951 ignore-descriptive-types" commands.
12952
12953 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12954
12955 * record-btrace.c (record_btrace_close): Call btrace_teardown
12956 for all threads.
12957
12958 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12959
12960 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12961 "ui-out.h".
12962
12963 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12964
12965 * ada-typeprint (type_is_full_subrange_of_target_type):
12966 New function.
12967 (print_range): Add parameter bounds_prefered_p. If not set,
12968 try printing range types using the name of their base type.
12969 (print_range_type): Add parameter bounds_prefered_p.
12970 Use it in call to print_range.
12971 (print_array_type, ada_print_type): Update calls to print_range
12972 and print_range_type.
12973
12974 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12975
12976 * ada-typeprint.c (print_array_type, print_choices, print_range)
12977 (print_range_bound, print_dynamic_range_bound, print_range_type):
12978 Remove declaration.
12979
12980 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12981
12982 * ada-typeprint.c (print_range): Add missing empty line
12983 after local declaration.
12984
12985 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12986
12987 * ada-valprint.c (print_optional_low_bound): Get index_type's
12988 target type for as long as it is a TYPE_CODE_RANGE.
12989
12990 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12991
12992 * procfs.c (procfs_make_note_section): Remove assertion and
12993 associated comment.
12994
12995 2014-01-24 Yao Qi <yao@codesourcery.com>
12996
12997 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12998 * corelow.c (get_core_siginfo): Likewise.
12999
13000 2014-01-24 Yao Qi <yao@codesourcery.com>
13001
13002 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13003 ULONGEST. Don't check 'len' is negative.
13004 (remote_write_bytes): Change type of 'len' to ULONGEST.
13005
13006 2014-01-23 Tom Tromey <tromey@redhat.com>
13007
13008 PR python/16485:
13009 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13010 Handle exception from frame.block.
13011 (FrameVars.fetch_frame_locals): Likewise.
13012
13013 2014-01-23 Tom Tromey <tromey@redhat.com>
13014
13015 PR python/16487:
13016 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13017 on a NULL pointer. Move "goto error" to correct place.
13018
13019 2014-01-23 Tom Tromey <tromey@redhat.com>
13020
13021 PR python/16491:
13022 * python/py-framefilter.c (apply_frame_filter): Call
13023 ensure_python_env after computing gdbarch.
13024
13025 2014-01-23 Yao Qi <yao@codesourcery.com>
13026
13027 * target.c (raw_memory_xfer_partial): Change argument type
13028 from void * to gdb_byte *.
13029 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13030
13031 2014-01-22 Doug Evans <dje@google.com>
13032
13033 New gdbserver option --debug-format=timestamp.
13034 * NEWS: Mention it.
13035
13036 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13037
13038 * syscalls/s390x-linux.xml: New file.
13039 * syscalls/s390-linux.xml: New file.
13040 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13041 (XML_SYSCALL_FILENAME_S390X): Likewise.
13042 (op_svc): New enum value for SVC opcode.
13043 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13044 (s390_linux_get_syscall_number): New function.
13045 (s390_gdbarch_init): Register '*get_syscall_number' and the
13046 syscall xml file name.
13047 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13048 "s390-linux.xml" and "s390x-linux.xml".
13049 * NEWS: Announce new feature.
13050
13051 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13052
13053 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13054
13055 2014-01-22 Pedro Alves <palves@redhat.com>
13056
13057 * xtensa-config.c: Include defs.h.
13058
13059 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13060
13061 * common/common-utils.h: Add "ARI:" comment beside __func__
13062 reference.
13063
13064 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13065
13066 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13067 documentation a bit.
13068
13069 2014-01-21 Roland McGrath <mcgrathr@google.com>
13070
13071 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13072 * configure: Regenerate.
13073 * aclocal.m4: Regenerate.
13074 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13075 New substituted variables.
13076 (install-strip): New target.
13077 (INSTALL_SCRIPT): New substituted variable.
13078 (FLAGS_TO_PASS): Add it.
13079 (install-only): Use $(INSTALL_SCRIPT) rather than
13080 $(INSTALL_PROGRAM) for gcore.
13081
13082 2014-01-20 Tom Tromey <tromey@redhat.com>
13083
13084 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13085 together.
13086
13087 2014-01-20 Tom Tromey <tromey@redhat.com>
13088
13089 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13090 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13091 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13092 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13093 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13094 (struct cmd_list_element) <flags>: Remove.
13095 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13096 doc_allocated>: New fields.
13097 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13098 bitfields.
13099 * maint.c (maintenance_do_deprecate): Update.
13100 * top.c (execute_command): Update.
13101
13102 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13103
13104 * xtensa-linux-nat.c: Include asm/ptrace.h.
13105
13106 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13107
13108 * Makefile.in (SFILES): Add d-support.c.
13109 (COMMON_OBS): Add d-support.o.
13110 * d-lang.h (d_parse_symbol): Add comment, now defined in
13111 d-support.c.
13112 * d-lang.c (parse_call_convention)
13113 (parse_attributes, parse_function_types)
13114 (parse_function_args, parse_type, parse_identifier)
13115 (call_convention_p, d_parse_symbol): Move functions to ...
13116 * d-support.c: ... New file.
13117
13118 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13119
13120 * d-lang.h (d_parse_symbol): Add declaration.
13121 * d-lang.c (extract_identifiers)
13122 (extract_type_info): Remove functions.
13123 (parse_call_convention, parse_attributes)
13124 (parse_function_types, parse_function_args)
13125 (parse_type, parse_identifier, call_convention_p)
13126 (d_parse_symbol): New functions.
13127 (d_demangle): Use d_parse_symbol to demangle D symbols.
13128
13129 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13130
13131 * d-lang.h (struct builtin_d_type): New data type.
13132 (builtin_d_type): Add declaration.
13133 * d-lang.c (d_language_arch_info, build_d_types)
13134 (builtin_d_type): New functions.
13135 (enum d_primitive_types): New data type.
13136 (d_language_defn): Change c_language_arch_info to
13137 d_language_arch_info.
13138 (d_type_data): New static variable.
13139 (_initialize_d_language): Initialize d_type_data.
13140
13141 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13142
13143 * d-lang.h (d_main_name): Add declaration.
13144 * d-lang.c (d_main_name): New function.
13145 * symtab.c (find_main_name): Add call to d_main_name.
13146
13147 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13148
13149 * d-lang.c (d_language_defn): Change macro_expansion_c to
13150 macro_expansion_no.
13151
13152 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13153
13154 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13155
13156 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13157
13158 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13159 gdb_exception" declaration.
13160 * remote.c (getpkt_or_notif_sane): Likewise.
13161
13162 2014-01-17 Doug Evans <dje@google.com>
13163
13164 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13165 function, contents of dirnames_to_char_ptr_vec_append moved here.
13166 (delim_string_to_char_ptr_vec): New function.
13167 (dirnames_to_char_ptr_vec_append): Rewrite.
13168 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13169
13170 2014-01-17 Doug Evans <dje@google.com>
13171
13172 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13173 and moved here ...
13174 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13175 #include "common-utils.h".
13176 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13177 * common/vec.h (VEC_ASSERT_PASS): Update.
13178 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13179 (MACH_CHECK_ERROR): Update.
13180
13181 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13182
13183 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13184 comments.
13185 * gdbarch.h: Regenerate.
13186
13187 2014-01-16 Tom Tromey <tromey@redhat.com>
13188
13189 * value.c (struct value) <regnum>: Move earlier.
13190
13191 2014-01-16 Tom Tromey <tromey@redhat.com>
13192
13193 * remote.c (extended_remote_create_inferior): Rename from
13194 extended_remote_create_inferior_1. Add "ops" argument. Remove
13195 old implementation.
13196
13197 2014-01-16 Pedro Alves <palves@redhat.com>
13198
13199 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13200 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13201 the backchain.
13202
13203 2014-01-16 Doug Evans <dje@google.com>
13204
13205 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13206
13207 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13208
13209 * btrace.h (btrace_thread_flag): New.
13210 (struct btrace_thread_info) <flags>: New.
13211 * record-btrace.c (record_btrace_resume_thread)
13212 (record_btrace_find_thread_to_move, btrace_step_no_history)
13213 (btrace_step_stopped, record_btrace_start_replaying)
13214 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13215 (record_btrace_find_resume_thread): New.
13216 (record_btrace_resume, record_btrace_wait): Extend.
13217 (record_btrace_can_execute_reverse): New.
13218 (record_btrace_open): Fail in non-stop mode.
13219 (record_btrace_set_replay): Split into this, ...
13220 (record_btrace_stop_replaying): ... this, ...
13221 (record_btrace_clear_histories): ... and this.
13222 (init_record_btrace_ops): Init to_can_execute_reverse.
13223 * NEWS: Announce it.
13224
13225 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13226
13227 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13228 (forward_target_decr_pc_after_break)
13229 (target_decr_pc_after_break): New.
13230 * target.c (forward_target_decr_pc_after_break)
13231 (target_decr_pc_after_break): New.
13232 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13233 instead of gdbarch_decr_pc_after_break.
13234 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13235 instead of gdbarch_decr_pc_after_break.
13236 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13237 instead of gdbarch_decr_pc_after_break.
13238 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13239 instead of gdbarch_decr_pc_after_break.
13240 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13241 instead of gdbarch_decr_pc_after_break.
13242 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13243 instead of gdbarch_decr_pc_after_break.
13244
13245 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13246
13247 * btrace.c: Include regcache.h.
13248 (btrace_add_pc): New.
13249 (btrace_enable): Call btrace_add_pc.
13250 (btrace_is_empty): New.
13251 * btrace.h (btrace_is_empty): New.
13252 * record-btrace.c (require_btrace, record_btrace_info): Call
13253 btrace_is_empty.
13254
13255 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13256
13257 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13258 Support delta reads.
13259 (linux_disable_btrace): Change return type.
13260 * common/linux-btrace.h (linux_read_btrace): Change parameters
13261 and return type to allow error reporting. Update users.
13262 (linux_disable_btrace): Change return type. Update users.
13263 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13264 New.
13265 (btrace_error): New.
13266 (btrace_block) <begin>: Comment on BEGIN == 0.
13267 * btrace.c (btrace_compute_ftrace): Start from the end of
13268 the current trace.
13269 (btrace_stitch_trace, btrace_clear_history): New.
13270 (btrace_fetch): Read delta trace, return if replaying.
13271 (btrace_clear): Move clear history code to btrace_clear_history.
13272 (parse_xml_btrace): Throw an error if parsing failed.
13273 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13274 and return type to allow error reporting.
13275 (target_read_btrace): Change parameters and return type to allow
13276 error reporting.
13277 * target.c (target_read_btrace): Update.
13278 * remote.c (remote_read_btrace): Support delta reads. Pass
13279 errors on.
13280 * NEWS: Announce it.
13281
13282 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13283
13284 * record.h (record_btrace_frame_unwind)
13285 (record_btrace_tailcall_frame_unwind): New declarations.
13286 * dwarf2-frame: Include record.h
13287 (dwarf2_frame_cfa): Throw an error for btrace frames.
13288 * record-btrace.c: Include hashtab.h.
13289 (btrace_get_bfun_name): New.
13290 (btrace_call_history): Call btrace_get_bfun_name.
13291 (struct btrace_frame_cache): New.
13292 (bfcache): New.
13293 (bfcache_hash, bfcache_eq, bfcache_new): New.
13294 (btrace_get_frame_function): New.
13295 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13296 (record_btrace_frame_this_id): Compute own id.
13297 (record_btrace_frame_prev_register): Provide PC, throw_error
13298 for all other registers.
13299 (record_btrace_frame_sniffer): Detect btrace frames.
13300 (record_btrace_tailcall_frame_sniffer): New.
13301 (record_btrace_frame_dealloc_cache): New.
13302 (record_btrace_frame_unwind): Add new functions.
13303 (record_btrace_tailcall_frame_unwind): New.
13304 (_initialize_record_btrace): Allocate cache.
13305 * btrace.c (btrace_clear): Call reinit_frame_cache.
13306 * NEWS: Announce it.
13307
13308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13309
13310 * record-btrace.c (record_btrace_set_replay)
13311 (record_btrace_goto_begin, record_btrace_goto_end)
13312 (record_btrace_goto): New.
13313 (init_record_btrace_ops): Initialize them.
13314 * NEWS: Announce it.
13315
13316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13317
13318 * record-btrace.c (record_btrace_find_new_threads)
13319 (record_btrace_thread_alive): New.
13320 (init_record_btrace_ops): Initialize to_find_new_threads and
13321 to_thread_alive.
13322
13323 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13324
13325 * record-btrace.c (record_btrace_resume): New.
13326 (record_btrace_wait): New.
13327 (init_record_btrace_ops): Initialize to_wait and to_resume.
13328
13329 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13330
13331 * record-btrace.c (record_btrace_xfer_partial)
13332 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13333 (record_btrace_allow_memory_access): New.
13334 (init_record_btrace_ops): Initialize new methods.
13335 * target.c (raw_memory_xfer_partial): Bail out if target reports
13336 that this memory is not available.
13337
13338 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13339
13340 * target.h (target_ops) <to_insert_breakpoint>
13341 <to_remove_breakpoint>: Add target_ops parameter.
13342 (forward_target_insert_breakpoint): New.
13343 (forward_target_remove_breakpoint): New.
13344 (memory_remove_breakpoint, memory_insert_breakpoint):
13345 Add target_ops parameter.
13346 * target.c (target_insert_breakpoint): Split into this and ...
13347 (forward_target_insert_breakpoint): ... this.
13348 (target_remove_breakpoint): Split into this and ...
13349 (forward_target_remove_breakpoint): ... this.
13350 (debug_to_insert_breakpoint): Add target_ops parameter.
13351 Call forward_target_insert_breakpoint.
13352 (debug_to_remove_breakpoint): Add target_ops parameter.
13353 Call forward_target_remove_breakpoint.
13354 (update_current_target): Do not inherit or default to_insert_breakpoint
13355 and to_remove_breakpoint.
13356 * corelow.c (ignore): Add target_ops parameter.
13357 * exec.c (ignore): Add target_ops parameter.
13358 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13359 Add target_ops parameter.
13360 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13361 Add target_ops parameter.
13362 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13363 Add target_ops parameter.
13364 * record-full.c (record_full_beneath_to_insert_breakpoint)
13365 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13366 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13367 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13368 (record_full_core_remove_breakpoint): Add target_ops parameter.
13369 Update users.
13370 (record_full_beneath_to_insert_breakpoint_ops)
13371 (record_full_beneath_to_remove_breakpoint_ops)
13372 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13373 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13374 tmp_to_remove_breakpoint_ops,
13375 record_full_beneath_to_insert_breakpoint_ops, and
13376 record_full_beneath_to_remove_breakpoint_ops.
13377 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13378 (m32r_remove_breakpoint): Add target_ops parameter.
13379 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13380 Add target_ops parameter.
13381 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13382 Add target_ops parameter.
13383
13384 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13385 Markus Metzger <markus.t.metzger@intel.com>
13386
13387 * record-btrace.c: Include frame-unwind.h.
13388 (record_btrace_frame_unwind_stop_reason)
13389 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13390 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13391 New.
13392 (init_record_btrace_ops): Install it.
13393
13394 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13395
13396 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13397 get_prev_frame_1.
13398
13399 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13400
13401 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13402 earlier.
13403
13404 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13405
13406 * frame-unwind.c: Include target.h.
13407 (frame_unwind_try_unwinder): New function with code from ...
13408 (frame_unwind_find_by_frame): ... here. New variable
13409 unwinder_from_target, call also target_get_unwinder)
13410 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13411 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13412 * target.h (struct target_ops): New fields to_get_unwinder and
13413 to_get_tailcall_unwinder.
13414 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13415
13416 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13417
13418 * record-btrace.c (record_btrace_fetch_registers)
13419 (record_btrace_store_registers)
13420 (record_btrace_to_prepare_to_store): New.
13421 (init_record_btrace_ops): Add the above.
13422
13423 2014-01-16 Tom Tromey <tromey@redhat.com>
13424
13425 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13426 * target.h (struct target_ops) <to_prepare_to_store>: Add
13427 argument.
13428 (target_prepare_to_store): Add argument.
13429 * target.c (debug_to_prepare_to_store): Add argument.
13430 (update_current_target): Update.
13431 * remote.c (remote_prepare_to_store): Add 'self' argument.
13432 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13433 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13434 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13435 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13436 argument.
13437 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13438 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13439 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13440 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13441 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13442
13443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13444
13445 * btrace.h (replay) <replay>: New.
13446 (btrace_is_replaying): New.
13447 * btrace.c (btrace_clear): Free replay iterator.
13448 (btrace_is_replaying): New.
13449 * record-btrace.c (record_btrace_is_replaying): New.
13450 (record_btrace_info): Print insn number if replaying.
13451 (record_btrace_insn_history): Start at replay position.
13452 (record_btrace_call_history): Start at replay position.
13453 (init_record_btrace_ops): Init to_record_is_replaying.
13454
13455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13456
13457 * record-btrace.c (record_btrace_insn_history_range): Include
13458 end.
13459 (record_btrace_insn_history_from): Adjust range.
13460 (record_btrace_call_history_range): Include
13461 end.
13462 (record_btrace_call_history_from): Adjust range.
13463 * NEWS: Announce changes.
13464
13465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13466
13467 * record.h (enum record_print_flag)
13468 <record_print_indent_calls>: New.
13469 * record.c (get_call_history_modifiers): Recognize /c modifier.
13470 (_initialize_record): Document /c modifier.
13471 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13472 Reorder fields. Optionally indent the function name. Update
13473 all users.
13474 * NEWS: Announce changes.
13475
13476 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13477
13478 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13479
13480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13481
13482 * btrace.c (ftrace_new_function): Start counting at one.
13483 * record-btrace.c (record_btrace_info): Adjust number of calls
13484 and insns.
13485 * NEWS: Announce it.
13486
13487 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13488
13489 * record-btrace.c (btrace_call_history_insn_range): Print
13490 insn range as [begin, end].
13491
13492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13493
13494 * btrace.h (struct btrace_func_link): New.
13495 (enum btrace_function_flag): New.
13496 (struct btrace_inst): Rename to ...
13497 (struct btrace_insn): ...this. Update all users.
13498 (struct btrace_func) <ibegin, iend>: Remove.
13499 (struct btrace_func_link): New.
13500 (struct btrace_func): Rename to ...
13501 (struct btrace_function): ...this. Update all users.
13502 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13503 (number, level, flags>: New.
13504 (struct btrace_insn_iterator): Rename to ...
13505 (struct btrace_insn_history): ...this.
13506 Update all users.
13507 (struct btrace_insn_iterator, btrace_call_iterator): New.
13508 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13509 (struct btrace_target_info) <begin, end, level>
13510 <insn_history, call_history>: New.
13511 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13512 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13513 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13514 (btrace_call_number, btrace_call_begin, btrace_call_end)
13515 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13516 (btrace_find_function_by_number, btrace_set_insn_history)
13517 (btrace_set_call_history): New.
13518 * btrace.c (btrace_init_insn_iterator)
13519 (btrace_init_func_iterator, compute_itrace): Remove.
13520 (ftrace_print_function_name, ftrace_print_filename)
13521 (ftrace_skip_file): Change
13522 parameter to const.
13523 (ftrace_init_func): Remove.
13524 (ftrace_debug): Use new btrace_function fields.
13525 (ftrace_function_switched): Also consider gaining and
13526 losing symbol information).
13527 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13528 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13529 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13530 New.
13531 (ftrace_new_function): Move. Remove debug print.
13532 (ftrace_update_lines, ftrace_update_insns): New.
13533 (ftrace_update_function): Check for call, ret, and jump.
13534 (compute_ftrace): Renamed to ...
13535 (btrace_compute_ftrace): ...this. Rewritten to compute call
13536 stack.
13537 (btrace_fetch, btrace_clear): Updated.
13538 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13539 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13540 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13541 (btrace_call_number, btrace_call_begin, btrace_call_end)
13542 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13543 (btrace_find_function_by_number, btrace_set_insn_history)
13544 (btrace_set_call_history): New.
13545 * record-btrace.c (require_btrace): Use new btrace thread
13546 info fields.
13547 (record_btrace_info, btrace_insn_history)
13548 (record_btrace_insn_history, record_btrace_insn_history_range):
13549 Use new btrace thread info fields and new iterator.
13550 (btrace_func_history_src_line): Rename to ...
13551 (btrace_call_history_src_line): ...this. Use new btrace
13552 thread info fields.
13553 (btrace_func_history): Rename to ...
13554 (btrace_call_history): ...this. Use new btrace thread info
13555 fields and new iterator.
13556 (record_btrace_call_history, record_btrace_call_history_range):
13557 Use new btrace thread info fields and new iterator.
13558
13559 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13560
13561 * frame.h (frame_id_build_unavailable_stack_special): New.
13562 * frame.c (frame_id_build_unavailable_stack_special): New.
13563
13564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13565
13566 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13567 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13568 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13569 to gdbarch.
13570 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13571 (i386_insn_is_jump, i386_jmp_p): New.
13572 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13573 insn_is_jump to gdbarch.
13574 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13575 * gdbarch.h: Regenerated.
13576 * gdbarch.c: Regenerated.
13577 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13578 (default_insn_is_jump): New.
13579 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13580 (default_insn_is_jump): New.
13581
13582 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13583
13584 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13585 Change to ...
13586 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13587 (btrace_read_type) <btrace_read_new>: Change to ...
13588 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13589
13590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13591
13592 * common/linux-btrace.c (linux_read_btrace): Free trace from
13593 previous iteration.
13594
13595 2014-01-15 Doug Evans <dje@google.com>
13596
13597 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13598 uint32_t.
13599
13600 2014-01-15 Tom Tromey <tromey@redhat.com>
13601
13602 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13603 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13604 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13605 (set_objfile_main_name): New function.
13606 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13607 language_of_main>: New fields.
13608 (set_objfile_main_name): Declare.
13609 * symtab.c (find_main_name): Loop over objfiles to find the main
13610 name and language.
13611 (set_main_name): Now static.
13612 (get_main_info): Add comment.
13613 * symtab.h (set_main_name): Don't declare.
13614
13615 2014-01-15 Tom Tromey <tromey@redhat.com>
13616
13617 * symtab.c (main_progspace_key): New global.
13618 (struct main_info): New.
13619 (name_of_main, language_of_main): Remove.
13620 (get_main_info, main_info_cleanup): New function.
13621 (set_main_name, main_name, main_language): Use get_main_info.
13622 (_initialize_symtab): Initialize main_progspace_key.
13623
13624 2014-01-15 Tom Tromey <tromey@redhat.com>
13625
13626 * dbxread.c (process_one_symbol): Update.
13627 * dwarf2read.c (read_partial_die): Update.
13628 * symfile.c (set_initial_language): Call main_language.
13629 * symtab.c (language_of_main): Now static.
13630 (set_main_name): Add 'lang' parameter.
13631 (find_main_name): Update.
13632 (main_language): New function.
13633 (symtab_observer_executable_changed): Update.
13634 * symtab.h (set_main_name): Update.
13635 (language_of_main): Remove.
13636 (main_language): Declare.
13637
13638 2014-01-15 Tom Tromey <tromey@redhat.com>
13639
13640 * symfile.c (init_entry_point_info): Use new "initialized" field.
13641 Update.
13642 * objfiles.h (struct entry_point) <initialized>: New field.
13643 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13644 (struct objfile) <ei>: ...here. Remove.
13645 * objfiles.c (entry_point_address_query): Update.
13646
13647 2014-01-15 Tom Tromey <tromey@redhat.com>
13648
13649 * objfiles.c (entry_point_address_query): Relocate entry point
13650 address.
13651 (objfile_relocate1): Do not relocate entry point address.
13652 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13653 <the_bfd_section_index>: New field.
13654 * symfile.c (init_entry_point_info): Find the entry point's
13655 section.
13656
13657 2014-01-15 Tom Tromey <tromey@redhat.com>
13658
13659 * solib-frv.c (enable_break): Use entry_point_address_query.
13660
13661 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13662
13663 * NEWS: Add note on improved process record-replay on
13664 arm*-linux* targets.
13665
13666 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13667
13668 * arm-tdep.c (enum arm_record_result): New enum.
13669 (arm_record_unsupported_insn): New function.
13670 (arm_record_coproc_data_proc): Removed.
13671 (thumb2_record_ld_st_multiple): New function.
13672 (thumb2_record_ld_st_dual_ex_tbb): New function.
13673 (thumb2_record_data_proc_sreg_mimm): New function.
13674 (thumb2_record_ps_dest_generic): New function.
13675 (thumb2_record_branch_misc_cntrl): New function.
13676 (thumb2_record_str_single_data): New function.
13677 (thumb2_record_ld_mem_hints): New function.
13678 (thumb2_record_ld_word): New function.
13679 (thumb2_record_lmul_lmla_div): New function.
13680 (thumb2_record_decode_insn_handler): New function.
13681 (decode_insn): Add thumb32 instruction handlers.
13682
13683 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13684
13685 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13686 (struct arm_linux_record_tdep): Declare.
13687 (arm_canonicalize_syscall): New function.
13688 (arm_all_but_pc_registers_record): New function.
13689 (arm_linux_syscall_record): New function.
13690 (arm_linux_init_abi): Add syscall recording constructs.
13691 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13692 decoding. (arm_record_coproc_data_proc): Update arm syscall
13693 decoding.
13694 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13695 <arm_syscall_record>: New field.
13696 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13697 gdb_target_obs.
13698
13699 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13700
13701 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13702 register for push instruction recording.
13703
13704 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13705
13706 * arm-tdep.c (thumb_record_misc): Update to correct logical
13707 error while recording ldm, ldmia and pop instructions.
13708
13709 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13710
13711 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13712
13713 2014-01-15 Pedro Alves <palves@redhat.com>
13714
13715 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13716 (go32_resume, go32_fetch_registers, store_register)
13717 (go32_store_registers, go32_prepare_to_store)
13718 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13719 (go32_create_inferior, go32_can_run, go32_terminal_init)
13720 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13721 declarations.
13722
13723 2014-01-15 Tom Tromey <tromey@redhat.com>
13724
13725 * target.h (async_callback_ftype): New typedef.
13726 (struct target_ops) <to_async>: Use it.
13727
13728 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13729
13730 * python/py-value.c (get_field_type): Remove unnecessary curly
13731 braces for single-statement if block.
13732
13733 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13734
13735 * python/py-type.c (convert_field): Add missing empty line
13736 after declarations.
13737
13738 2014-01-14 Doug Evans <dje@google.com>
13739
13740 * symfile.h (expand_symtabs_matching): Renamed from
13741 expand_partial_symbol_names. Update prototype.
13742 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13743 * symfile.c (expand_symtabs_matching): Renamed from
13744 expand_partial_symbol_names. New args file_matcher, kind.
13745 Rename arg fun to symbol_matcher.
13746 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13747 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13748 ada_expand_partial_symbol_name.
13749 (ada_make_symbol_completion_list): Update to call
13750 expand_symtabs_matching.
13751 (ada_add_global_exceptions): Call expand_symtabs_matching.
13752 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13753 call map_symbol_filenames.
13754 * symtab.c (sources_info): Update to call map_symbol_filenames.
13755 (search_symbols): Call expand_symtabs_matching.
13756 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13757 (default_make_symbol_completion_list_break_on): Update to call
13758 expand_symtabs_matching.
13759 (make_source_files_completion_list): Update to call
13760 map_symbol_filenames.
13761
13762 2014-01-14 Doug Evans <dje@google.com>
13763
13764 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13765 (expand_symtabs_symbol_matcher_ftype): New typedef.
13766 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13767 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13768 * symfile.c (expand_partial_symbol_names): Update to use
13769 expand_symtabs_symbol_matcher_ftype.
13770 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13771 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13772 Arg name_matcher renamed to symbol_matcher.
13773 * psymtab.c (recursively_search_psymtabs): Update to use
13774 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13775 sym_matcher.
13776 (expand_symtabs_matching_via_partial): Update to use
13777 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13778 Arg name_matcher renamed to symbol_matcher.
13779
13780 2014-01-14 Doug Evans <dje@google.com>
13781
13782 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13783 (map_partial_symbol_filenames): Ditto.
13784 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13785 (map_partial_symbol_filenames): Ditto.
13786 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13787 (map_partial_symbol_filenames): Ditto.
13788 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13789 (map_partial_symbol_filenames): Ditto.
13790 * symtab.c: Delete #include "psymtab.h".
13791
13792 2014-01-14 Pedro Alves <palves@redhat.com>
13793 Tom Tromey <tromey@redhat.com>
13794
13795 * infrun.c (use_displaced_stepping): Use find_record_target
13796 instead of RECORD_IS_USED.
13797 (adjust_pc_after_break): Use record_full_is_used instead of
13798 RECORD_IS_USED.
13799 * record-btrace.c (record_btrace_open): Call record_preopen
13800 instead of checking RECORD_IS_USED.
13801 * record-full.c (record_full_shortname)
13802 (record_full_core_shortname): New globals.
13803 (record_full_is_used): New function.
13804 (find_full_open): Call record_preopen instead of checking
13805 RECORD_IS_USED.
13806 (init_record_full_ops): Set the target's shortname to
13807 record_full_shortname.
13808 (init_record_full_core_ops): Set the target's shortname to
13809 record_full_core_shortname.
13810 * record-full.h (record_full_is_used): Declare.
13811 * record.c (find_record_target): Make extern.
13812 (record_preopen): New function.
13813 * record.h (RECORD_IS_USED): Delete macro.
13814 (find_record_target, record_preopen): Declare functions.
13815
13816 2014-01-14 Yao Qi <yao@codesourcery.com>
13817
13818 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13819 'len''s type to ULONGEST.
13820 (core_xfer_shared_libraries_aix): Likewise.
13821 * gdbarch.c, gdbarch.h: Regenerated.
13822 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13823 Change type of 'len' to ULONGEST.
13824 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13825 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13826
13827 2014-01-14 Yao Qi <yao@codesourcery.com>
13828
13829 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13830 type of 'len' to ULONGEST.
13831 (linux_xfer_osdata_processgroups): Likewise.
13832 (linux_xfer_osdata_threads): Likewise.
13833 (linux_xfer_osdata_fds): Likewise.
13834 (linux_xfer_osdata_isockets): Likewise.
13835 (linux_xfer_osdata_shm): Likewise.
13836 (linux_xfer_osdata_sem): Likewise.
13837 (linux_xfer_osdata_msg): Likewise.
13838 (linux_common_xfer_osdata): Likewise.
13839 (struct osdata_type) <getter>: Likewise.
13840 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13841 the declaration.
13842
13843 2014-01-14 Yao Qi <yao@codesourcery.com>
13844
13845 * target.h (target_xfer_partial_ftype): Update.
13846 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13847 ULONGEST.
13848 * aix-thread.c (aix_thread_xfer_partial): Change type of
13849 argument 'len' to ULONGEST.
13850 * auxv.c (procfs_xfer_auxv): Likewise.
13851 (ld_so_xfer_auxv): Likewise.
13852 (memory_xfer_auxv): Likewise.
13853 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13854 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13855 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13856 * corelow.c (core_xfer_partial): Likewise.
13857 * ctf.c (ctf_xfer_partial): Likewise.
13858 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13859 '%u'.
13860 (darwin_read_dyld_info): Likewise.
13861 (darwin_xfer_partial): Likewise.
13862 * exec.c (section_table_xfer_memory_partial): Likewise.
13863 (exec_xfer_partial): Likewise.
13864 * exec.h (section_table_xfer_memory_partial): Update
13865 declaration.
13866 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13867 instead of plongest.
13868 (gnu_xfer_partial): Likewise.
13869 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13870 (ia64_hpux_xfer_solib_got): Likewise.
13871 (ia64_hpux_xfer_partial): Likewise.
13872 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13873 * inf-ptrace.c (inf_ptrace_xfer_partial):
13874 * inf-ttrace.c (inf_ttrace_xfer_partial):
13875 * linux-nat.c (linux_xfer_siginfo): Likewise.
13876 (linux_nat_xfer_partial): Likewise.
13877 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13878 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13879 * monitor.c (monitor_xfer_memory): Likewise.
13880 (monitor_xfer_partial): Likewise.
13881 * procfs.c (procfs_xfer_partial): Likewise.
13882 * record-full.c (record_full_xfer_partial): Likewise.
13883 (record_full_core_xfer_partial): Likewise.
13884 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13885 instead of plongest.
13886 (gdbsim_xfer_partial): Likewise.
13887 * remote.c (remote_xfer_partial): Likewise.
13888 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13889 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13890 declaration.
13891 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13892 (rs6000_xfer_shared_libraries): Likewise.
13893 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13894 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13895 (sparc_xfer_partial): Likewise.
13896 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13897 (spu_xfer_partial): Likewise.
13898 * spu-multiarch.c (spu_xfer_partial): Likewise.
13899 * target.c (target_read_live_memory): Likewise.
13900 (memory_xfer_live_readonly_partial): Likewise.
13901 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13902 (target_xfer_partial, default_xfer_partial): Likewise.
13903 (current_xfer_partial): Likewise.
13904 * tracepoint.c (tfile_xfer_partial): Likewise.
13905 * windows-nat.c (windows_xfer_memory): Likewise. Call
13906 pulongest instead of plongest.
13907 (windows_xfer_partial): Likewise.
13908 (windows_xfer_shared_libraries): Likewise.
13909
13910 2014-01-14 Yao Qi <yao@codesourcery.com>
13911
13912 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13913 target_xfer_partial_ftype.
13914
13915 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13916
13917 PR python/15464
13918 PR python/16113
13919 * valops.c (value_struct_elt_bitpos): New function
13920 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13921 object to 'None' if the field name is an empty string ("").
13922 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13923 attribute to look for a field when 'name' is 'None'.
13924 (get_field_type): New function
13925
13926 2014-01-13 Doug Evans <dje@google.com>
13927
13928 PR symtab/16426
13929 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13930 (try_open_dwop_file): Ditto.
13931 * gdb_bfd.c: #include "vec.h".
13932 (bfdp): New typedef.
13933 (struct gdb_bfd_data): New member included_bfds.
13934 (gdb_bfd_unref): Unref all included bfds.
13935 (gdb_bfd_record_inclusion): New function.
13936 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13937
13938 2014-01-13 Tom Tromey <tromey@redhat.com>
13939
13940 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13941
13942 2014-01-13 Tom Tromey <tromey@redhat.com>
13943
13944 * defs.h (use_windows): Remove.
13945 * gdb.c (main): Update.
13946 * main.c (captured_main, gdb_main): Update.
13947 * main.h (struct captured_main_args) <use_windows>: Remove.
13948 * top.c (use_windows): Remove.
13949
13950 2014-01-13 Tom Tromey <tromey@redhat.com>
13951
13952 * defs.h (deprecated_flush_hook): Remove.
13953
13954 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13955
13956 PR threads/16216
13957 * linux-thread-db.c (try_thread_db_load): Add parameter
13958 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13959 (try_thread_db_load_from_pdir_1): Move it there from here.
13960 (try_thread_db_load_from_sdir): Update caller.
13961 (try_thread_db_load_from_dir): Move it there from here.
13962
13963 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13964
13965 * regformats/regdat.sh: Always rewrite the register file.
13966
13967 2014-01-13 Pedro Alves <palves@redhat.com>
13968
13969 * Makefile.in (CHECK_HEADERS): New variable.
13970 (check-headers:): New rule.
13971
13972 2014-01-13 Tom Tromey <tromey@redhat.com>
13973
13974 * cli/cli-setshow.c (do_set_command): Update.
13975 * defs.h (deprecated_set_hook): Remove.
13976 * top.c (deprecated_set_hook): Remove.
13977
13978 2014-01-13 Pedro Alves <palves@redhat.com>
13979
13980 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13981 the tracepoint if the PC is a pseudo-register.
13982
13983 2014-01-13 Tom Tromey <tromey@redhat.com>
13984
13985 * defs.h (XCALLOC): Remove.
13986 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13987 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13988 * dwarf2loc.c (allocate_piece_closure): Likewise.
13989 * elfread.c (elf_symfile_segments): Likewise.
13990 (elf_symfile_segments): Likewise.
13991 * gdbtypes.c (copy_type_recursive): Likewise.
13992 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13993 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13994 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13995 XCALLOC.
13996 * mt-tdep.c (mt_gdbarch_init): Likewise.
13997 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13998 XCALLOC.
13999 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14000 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14001 * registry.c (registry_alloc_data): Likewise.
14002 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14003 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14004 * serial.c (serial_fdopen_ops): Likewise.
14005 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14006 XCALLOC.
14007 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14008 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14009 not XCALLOC.
14010
14011 2014-01-13 Tom Tromey <tromey@redhat.com>
14012
14013 * defs.h (XMALLOC): Remove.
14014 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14015 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14016 * cli-out.c (struct ui_out *): Likewise.
14017 * cli/cli-dump.c (add_dump_command): Likewise.
14018 (add_dump_command): Likewise.
14019 * complaints.c (get_complaints): Likewise.
14020 (find_complaint): Likewise.
14021 * dwarf2-frame.c (execute_cfa_program): Likewise.
14022 * dwarf2read.c (abbrev_table_read_table): Likewise.
14023 * gdbarch.sh: Likewise.
14024 * gdbarch.c: Rebuild.
14025 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14026 * interps.c (interp_new): Likewise.
14027 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14028 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14029 * mi/mi-console.c (mi_console_file_new): Likewise.
14030 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14031 * mi/mi-out.c (mi_out_new): Likewise.
14032 * mi/mi-parse.c (mi_parse): Likewise.
14033 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14034 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14035 * observer.c (xalloc_observer_list_node): Likewise.
14036 * regcache.c (regcache_xmalloc_1): Likewise.
14037 * reggroups.c (reggroup_new): Likewise.
14038 (_initialize_reggroup): Likewise.
14039 * registry.c (register_data_with_cleanup): Likewise.
14040 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14041 * ser-base.c (serial_ttystate): Likewise.
14042 * ser-mingw.c (make_pipe_state): Likewise.
14043 * ser-pipe.c (pipe_open): Likewise.
14044 * serial.c (serial_open): Likewise.
14045 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14046 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14047 (tui_alloc_win_info): Likewise.
14048 (tui_add_content_elements): Likewise.
14049 * tui/tui-file.c (tui_file_new): Likewise.
14050 * tui/tui-out.c (tui_out_new): Likewise.
14051 * ui-file.c (mem_file_new): Likewise.
14052 * ui-out.c (push_level): Likewise.
14053 (make_cleanup_ui_out_end): Likewise.
14054 (append_header_to_list): Likewise.
14055 (ui_out_new): Likewise.
14056 * user-regs.c (user_reg_add_builtin): Likewise.
14057
14058 2014-01-13 Tom Tromey <tromey@redhat.com>
14059
14060 * defs.h (XZALLOC): Remove.
14061 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14062 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14063 (get_ada_tasks_inferior_data): Likewise.
14064 * auto-load.c (get_auto_load_pspace_data): Likewise.
14065 * auxv.c (get_auxv_inferior_data): Likewise.
14066 * bfd-target.c (target_bfd_reopen): Likewise.
14067 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14068 (deprecated_insert_raw_breakpoint): Likewise.
14069 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14070 * corelow.c (core_open): Likewise.
14071 * darwin-nat.c (darwin_check_new_threads): Likewise.
14072 (darwin_attach_pid): Likewise.
14073 * dummy-frame.c (dummy_frame_push): Likewise.
14074 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14075 * dwarf2loc.c (allocate_piece_closure): Likewise.
14076 * elfread.c (elf_symfile_segments): Likewise.
14077 * eval.c (ptrmath_type_p): Likewise.
14078 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14079 * gdbtypes.c (alloc_type_arch): Likewise.
14080 (alloc_type_instance): Likewise.
14081 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14082 * inf-child.c (inf_child_can_use_agent): Likewise.
14083 * inflow.c (get_inflow_inferior_data): Likewise.
14084 * infrun.c (save_infcall_suspend_state): Likewise.
14085 * jit.c (jit_reader_load): Likewise.
14086 (get_jit_objfile_data): Likewise.
14087 (get_jit_program_space_data): Likewise.
14088 (jit_object_open_impl): Likewise.
14089 (jit_symtab_open_impl): Likewise.
14090 (jit_block_open_impl): Likewise.
14091 (jit_frame_sniffer): Likewise.
14092 * linux-fork.c (add_fork): Likewise.
14093 * maint.c (make_command_stats_cleanup): Likewise.
14094 * objfiles.c (get_objfile_pspace_data): Likewise.
14095 * opencl-lang.c (struct lval_closure): Likewise.
14096 * osdata.c (osdata_start_osdata): Likewise.
14097 * progspace.c (new_address_space): Likewise.
14098 (add_program_space): Likewise.
14099 * remote-sim.c (get_sim_inferior_data): Likewise.
14100 * sh-tdep.c (sh_gdbarch_init): Likewise.
14101 * skip.c (Ignore): Likewise.
14102 (skip_delete_command): Likewise.
14103 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14104 (library_list_start_library): Likewise.
14105 (solib_aix_current_sos): Likewise.
14106 * solib-darwin.c (get_darwin_info): Likewise.
14107 (darwin_current_sos): Likewise.
14108 * solib-dsbt.c (get_dsbt_info): Likewise.
14109 * solib-ia64-hpux.c (new_so_list): Likewise.
14110 (ia64_hpux_get_solib_linkage_addr): Likewise.
14111 * solib-spu.c (append_ocl_sos): Likewise.
14112 (spu_current_sos): Likewise.
14113 * solib-svr4.c (get_svr4_info): Likewise.
14114 (svr4_keep_data_in_core): Likewise.
14115 (library_list_start_library): Likewise.
14116 (svr4_default_sos): Likewise.
14117 (svr4_read_so_list): Likewise.
14118 * solib-target.c (library_list_start_library): Likewise.
14119 (solib_target_current_sos): Likewise.
14120 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14121 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14122 * symfile.c (default_symfile_segments): Likewise.
14123 * target-descriptions.c (tdesc_data_init): Likewise.
14124 (tdesc_create_reg): Likewise.
14125 (struct tdesc_type *): Likewise.
14126 (tdesc_create_vector): Likewise.
14127 (tdesc_set_struct_size): Likewise.
14128 (struct tdesc_type *): Likewise.
14129 (tdesc_free_feature): Likewise.
14130 (tdesc_create_feature): Likewise.
14131 * windows-nat.c (windows_add_thread): Likewise.
14132 (windows_make_so): Likewise.
14133 * xml-support.c (gdb_xml_body_text): Likewise.
14134 (gdb_xml_create_parser_and_cleanup): Likewise.
14135 (xml_process_xincludes): Likewise.
14136 * xml-syscall.c (allocate_syscalls_info): Likewise.
14137 (syscall_create_syscall_desc): Likewise.
14138
14139 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14140
14141 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14142 function, with code from i386_stap_parse_special_token.
14143 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14144 (i386_stap_parse_special_token): Move code to the two functions
14145 above; simplify it.
14146
14147 2014-01-09 Pedro Alves <palves@redhat.com>
14148 Hui Zhu <hui@codesourcery.com>
14149
14150 PR gdb/16101
14151 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14152 bp_err_string. Don't mark the location shlib_disabled if the
14153 error thrown wasn't a generic or memory error. Catch errors
14154 thrown while inserting breakpoints in overlayed code. Output
14155 error message of software breakpoints.
14156 * remote.c (remote_insert_breakpoint): If this breakpoint has
14157 target-side commands but this stub doesn't support Z0 packets,
14158 throw NOT_SUPPORTED_ERROR error.
14159 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14160 * target.h (target_insert_breakpoint): Extend comment.
14161 (target_insert_hw_breakpoint): Add comment.
14162
14163 2014-01-08 Pedro Alves <palves@redhat.com>
14164
14165 * remote.c (remote_add_thread): Add threads silently if starting
14166 up.
14167 (remote_notice_new_inferior): If in all-stop, and starting up,
14168 don't call notice_new_inferior.
14169 (get_current_thread): New function, factored out from ...
14170 (add_current_inferior_and_thread): ... this. Adjust.
14171 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14172 found any thread, then select the remote's current thread as GDB's
14173 current thread too.
14174
14175 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14176
14177 * NEWS: Create a new section for the next release branch.
14178 Rename the section of the current branch, now that it has
14179 been cut.
14180
14181 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14182
14183 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14184 * version.in: Bump version to 7.7.50.DATE-cvs.
14185
14186 2014-01-08 Yao Qi <yao@codesourcery.com>
14187
14188 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14189 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14190 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14191
14192 2014-01-08 Yao Qi <yao@codesourcery.com>
14193
14194 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14195 return value of bfd_get_filename to symbol_file_add_from_bfd.
14196
14197 2014-01-08 Pierre Muller <muller@sourceware.org>
14198
14199 Fix PR16201.
14200 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14201 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14202 to prim_record_mininal_symbol_and_info.
14203 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14204 in call to prim_record_minimal_symbol_and_info.
14205 (read_pe_exported_syms): Set index field of section_data.
14206
14207 2014-01-07 Andrew Pinski <apinski@cavium.com>
14208
14209 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14210 * features/aarch64.c: Regenerate.
14211
14212 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14213
14214 * target.c (return_null): Define.
14215 (update_current_target): Use it instead of return_zero for
14216 functions that return a pointer.
14217
14218 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14219
14220 * source.c (add_path): Fix check for duplicated paths in the previously
14221 included paths.
14222
14223 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14224
14225 * ada-lang.c: Remove duplicated include statements.
14226 * alphabsd-nat.c: Ditto.
14227 * amd64-darwin-tdep.c: Ditto.
14228 * amd64fbsd-nat.c: Ditto.
14229 * auto-load.c: Ditto.
14230 * ax-gdb.c: Ditto.
14231 * breakpoint.c: Ditto.
14232 * dbxread.c: Ditto.
14233 * fork-child.c: Ditto.
14234 * gdb_usleep.c: Ditto.
14235 * i386-darwin-tdep.c: Ditto.
14236 * i386fbsd-nat.c: Ditto.
14237 * infcmd.c: Ditto.
14238 * inferior.c: Ditto.
14239 * jv-lang.c: Ditto.
14240 * linux-nat.c: Ditto.
14241 * linux-tdep.c: Ditto.
14242 * m68kbsd-nat.c: Ditto.
14243 * m68klinux-nat.c: Ditto.
14244 * microblaze-tdep.c: Ditto.
14245 * mips-linux-tdep.c: Ditto.
14246 * mn10300-tdep.c: Ditto.
14247 * nto-tdep.c: Ditto.
14248 * opencl-lang.c: Ditto.
14249 * osdata.c: Ditto.
14250 * printcmd.c: Ditto.
14251 * regcache.c: Ditto.
14252 * remote-m32r-sdi.c: Ditto.
14253 * remote.c: Ditto.
14254 * symfile.c: Ditto.
14255 * symtab.c: Ditto.
14256 * tilegx-linux-nat.c: Ditto.
14257 * tilegx-tdep.c: Ditto.
14258 * tracepoint.c: Ditto.
14259 * valops.c: Ditto.
14260 * vaxbsd-nat.c: Ditto.
14261 * windows-nat.c: Ditto.
14262 * xtensa-tdep.c: Ditto.
14263
14264 2014-01-07 Yao Qi <yao@codesourcery.com>
14265
14266 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14267
14268 2014-01-07 Yao Qi <yao@codesourcery.com>
14269 Joel Brobecker <brobecker@adacore.com>
14270
14271 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14272 (pdc_write_regs): Likewise.
14273 (fetch_regs_kernel_thread): Likewise.
14274 (store_regs_kernel_thread): Likewise.
14275
14276 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14277
14278 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14279 tagged type objects to their actual type.
14280
14281 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14282
14283 * ada-valprint.c (print_field_values): Add "language" parameter.
14284 Update calls to print_field_values and print_variant_part.
14285 Pass new parameter "language" in call to val_print instead
14286 of "current_language". Replace call to ada_val_print by call
14287 to val_print.
14288 (print_variant_part): Add "language" parameter.
14289 (ada_val_print_struct_union): Update call to print_field_values.
14290
14291 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14292
14293 * ada-valprint.c (ui_memcpy): Delete.
14294 (ada_print_floating): Update documentation. Add empty line
14295 between between function documentation and implementation.
14296 Delete variable "buffer". Use ui_file_xstrdup in place of
14297 ui_file_put. Minor adjustments following this change.
14298
14299 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14300
14301 * ada-valprint.c (ada_val_print_string): New function,
14302 extracted from ada_val_print_array.
14303 (ada_val_print_array): Replace extracted code by call
14304 to ada_val_print_string followed by a return. Move
14305 "else" branch to the function's top block.
14306
14307 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14308
14309 * ada-valprint.c (ada_val_print_array): Move implementation
14310 down. Rename parameter "offset" and "val" into "offset_aligned"
14311 and "original_value" respectively. Add parameter "offset".
14312
14313 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14314
14315 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14316 re-organizing the code. Change the "???" message printed
14317 when target type is a TYPE_CODE_UNDEF into
14318 "<ref to undefined type>".
14319
14320 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14321
14322 * ada-valprint.c (print_record): Delete, implementation inlined...
14323 (ada_val_print_struct_union): ... here. Remove call to
14324 ada_check_typedef in inlined implementation.
14325
14326 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14327
14328 * ada-valprint.c (ada_val_print_gnat_array): New function,
14329 extracted from ada_val_print_1;
14330 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14331 (ada_val_print_flt, ada_val_print_struct_union)
14332 (ada_val_print_ref): Likewise.
14333 (ada_val_print_1): Delete variables i and elttype.
14334 Replace extracted-out code by call to corresponding
14335 new functions.
14336
14337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14338
14339 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14340
14341 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14342
14343 * ada-valprint.c (ada_val_print_1): Replace calls to
14344 ada_val_print_1 by calls to val_print.
14345
14346 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14347
14348 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14349 Update calls to self accordingly. Replace calls to c_val_print
14350 by calls to val_print.
14351
14352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14353
14354 * ada-valprint.c (print_record): Delete declaration.
14355 (adjust_type_signedness, ada_val_print_1): Likewise.
14356 (ada_val_print): Move function implementation down.
14357 (print_variant_part, print_field_values, print_record):
14358 Move function implementation up.
14359
14360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14361
14362 * python/py-type.c (typy_get_name): New function.
14363 (type_object_getset): Add entry for attribute "name".
14364 * NEWS: Add entry mentioning this new attribute.
14365
14366 2014-01-07 Yao Qi <yao@codesourcery.com>
14367
14368 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14369 statement.
14370
14371 2014-01-07 Yao Qi <yao@codesourcery.com>
14372
14373 * gnu-nat.c (info_port_rights): Add qualifier const to
14374 argument args.
14375
14376 2014-01-07 Yao Qi <yao@codesourcery.com>
14377
14378 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14379
14380 2014-01-07 Yao Qi <yao@codesourcery.com>
14381
14382 * gnu-nat.c (make_inf) Update declaration.
14383 (make_inf): Make it static.
14384 (inf_set_traced): Likewise.
14385 (inf_port_to_thread, inf_task_died_status): Likewise.
14386
14387 2014-01-07 Yao Qi <yao@codesourcery.com>
14388
14389 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14390
14391 2014-01-07 Yao Qi <yao@codesourcery.com>
14392
14393 * gnu-nat.c (_initialize_gnu_nat): Declare.
14394
14395 2014-01-07 Yao Qi <yao@codesourcery.com>
14396
14397 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14398 'enum bfd_endian'.
14399 (struct gdbarch_info) <byte_order>: Change type to
14400 'enum bfd_endian'.
14401 <byte_order_for_code>: Likewise.
14402 * gdbarch.c, gdbarch.h: Regenerated.
14403
14404 2014-01-06 Sasha Smundak <asmundak@google.com>
14405
14406 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14407
14408 2014-01-06 Tom Tromey <tromey@redhat.com>
14409
14410 * doublest.c (convert_doublest_to_floatformat): Use const, not
14411 CONST.
14412 * somread.c (som_symtab_read): Likewise.
14413
14414 2014-01-07 Hui Zhu <hui@codesourcery.com>
14415
14416 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14417 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14418 (gdb_bfd_fopen): Ditto.
14419 (gdb_bfd_openr): Ditto.
14420 (gdb_bfd_openw): Ditto.
14421 (gdb_bfd_openr_iovec): Ditto.
14422 (gdb_bfd_fdopenr): Ditto.
14423 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14424 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14425 with xstrdup.
14426 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14427 with xstrdup.
14428 * symfile-mem.c (symbol_file_add_from_memory): Removed
14429 gdb_bfd_stash_filename.
14430
14431 2014-01-03 Doug Evans <dje@google.com>
14432
14433 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14434 output.
14435
14436 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14437
14438 Update year range in copyright notice of all files.
14439
14440 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14441
14442 * top.c (print_gdb_version): Set copyright year to 2014.
14443
14444 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14445
14446 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14447
14448 For older changes see ChangeLog-2013.
14449 \f
14450 Local Variables:
14451 mode: change-log
14452 left-margin: 8
14453 fill-column: 74
14454 version-control: never
14455 coding: utf-8
14456 End: