stepi/nexti: skip signal handler if "handle nostop" signal arrives
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-27 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (handle_signal_stop): Also skip handlers when a random
4 signal arrives while handling a "stepi" or a "nexti". Set the
5 thread's 'step_after_step_resume_breakpoint' flag.
6
7 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
8
9 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
10 (arm_record_ld_st_imm_offset): Reimplement to cover all
11 load/store cases for ARM opcode 010.
12 (arm_record_ld_st_multiple): Reimplement to cover all
13 load/store cases for ARM opcode 100.
14
15 2014-10-26 Doug Evans <xdje42@gmail.com>
16
17 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
18
19 2014-10-26 Doug Evans <xdje42@gmail.com>
20
21 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
22 parameter "kind" to "block_index".
23 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
24 "block_index".
25 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
26
27 2014-10-26 Doug Evans <xdje42@gmail.com>
28
29 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
30
31 2014-10-26 Doug Evans <xdje42@gmail.com>
32
33 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
34 obstack_alloc.
35
36 2014-10-26 Doug Evans <xdje42@gmail.com>
37
38 * parser-defs.h (block_found): Move decl from here ...
39 * symtab.h (block_found): ... to here.
40
41 2014-10-26 Doug Evans <xdje42@gmail.com>
42
43 * symtab.h (struct field_of_this_result): Fix typo in comment.
44 (lookup_symbol_in_language): Move function comment here.
45 (lookup_symbol): Improve function comment.
46 (basic_lookup_symbol_nonlocal): Ditto.
47 (lookup_symbol_static, lookup_symbol_global): Ditto.
48 (lookup_symbol_aux_block): Ditto.
49 (lookup_language_this): Add function comment.
50 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
51 function comment.
52 (lookup_block_symbol): Improve function comment.
53 (lookup_struct): Fix capitalization in function comment.
54 (lookup_transparent_type): Add function comment.
55 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
56 Improve function comment.
57 (lookup_objfile_from_block): Add function comment.
58 * symtab.c (lookup_symbol_in_language): Update function comment.
59 (lookup_symbol, lookup_language_this): Ditto.
60 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
61 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
62 (basic_lookup_symbol_nonlocal): Ditto.
63 (lookup_symbol_static, lookup_symbol_global): Ditto.
64 (lookup_transparent_type, lookup_block_symbol): Ditto.
65
66 2014-10-25 Doug Evans <xdje42@gmail.com>
67
68 * symtab.c (types_info): Delete forward decl.
69 (functions_info, variables_info, sources_info): Ditto.
70 (_initialize_symtab): Rewrite forward decl to use
71 initialize_file_ftype.
72
73 2014-10-25 Doug Evans <xdje42@gmail.com>
74
75 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
76
77 2014-10-25 Doug Evans <xdje42@gmail.com>
78
79 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
80 of local var child_die.
81
82 2014-10-24 Don Breazeal <donb@codesourcery.com>
83
84 * infrun.c (follow_fork_inferior): Update fork message printing
85 to use target_terminal_ours_for_output instead of
86 target_terminal_ours, to use _() for all format strings, to print
87 "vfork" instead of "fork" for vforks, and to add a detach message.
88 (handle_vfork_child_exec_or_exit): Update message printing to use
89 target_terminal_ours_for_output instead of target_terminal_ours, to
90 use _() for all format strings, and to fix some formatting.
91
92 2014-10-24 Pedro Alves <palves@redhat.com>
93
94 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
95 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
96 * config/vax/vax.mh: Delete.
97 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
98 obsolete configurations section.
99 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
100 * vax-nat.c: Delete file.
101
102 2014-10-24 Pedro Alves <palves@redhat.com>
103
104 * NEWS (Removed targets): Add OS/arch column.
105
106 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
107
108 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
109 on the arg type of a constructor only if it is of reference type.
110
111 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
112
113 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
114 accessors and constants from nios2 opcodes update.
115 (nios2_get_next_pc): Likewise.
116
117 2014-10-19 Doug Evans <xdje42@gmail.com>
118
119 * gdbthread.h (set_running): Fix comment.
120 (set_executing, finish_thread_state): Fix comment.
121
122 2014-10-18 Doug Evans <xdje42@gmail.com>
123
124 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
125
126 2014-10-17 Doug Evans <dje@google.com>
127
128 * NEWS: Mention new event gdb.clear_objfiles.
129 * python/py-event.h (emit_clear_objfiles_event): Clear
130 * python/py-events.h (events_object): New member clear_objfiles.
131 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
132 event.
133 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
134 emit clear_objfiles event.
135 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
136 function.
137 (emit_clear_objfiles_event): New function.
138 (clear_objfiles): New event.
139 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
140 Declare.
141 * python/python.c (_initialize_python): Call
142 gdbpy_initialize_clear_objfiles_event.
143
144 2014-10-17 Doug Evans <dje@google.com>
145
146 * NEWS: Mention new gdb.Objfile.progspace attribute.
147 * python/py-objfile.c (objfpy_get_progspace): New function.
148 (objfile_getset): New entry for "progspace".
149
150 2014-10-17 Pedro Alves <palves@redhat.com>
151
152 PR gdb/17471
153 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
154 returns a copy of the input.
155 (run_command_1, continue_command, step_1, jump_command)
156 (signal_command, until_command, advance_command, finish_command)
157 (attach_command): Adjust and install a cleanup to free the
158 stripped args.
159
160 2014-10-17 Pedro Alves <palves@redhat.com>
161
162 PR gdb/17300
163 * infcmd.c (continue_1): If continuing all threads in the
164 foreground, make sure the inferior's terminal settings are put in
165 effect.
166
167 2014-10-17 Pedro Alves <palves@redhat.com>
168
169 PR gdb/17472
170 * annotate.c (annotate_breakpoints_invalid): Use
171 target_terminal_our_for_output instead of target_terminal_ours.
172 Give back the terminal to the target.
173 (annotate_frames_invalid): Likewise.
174
175 2014-10-17 Pedro Alves <palves@redhat.com>
176
177 * target.c (enum terminal_state): New enum.
178 (terminal_state): New global.
179 (target_terminal_init): New function.
180 (target_terminal_inferior): Skip if inferior already owns the
181 terminal.
182 (target_terminal_ours, target_terminal_ours_for_output): New
183 functions.
184 * target.h (target_terminal_init): Convert to function prototype.
185 (target_terminal_ours_for_output): Convert to function prototype
186 and tweak comment.
187 (target_terminal_ours): Convert to function prototype and tweak
188 comment.
189 * windows-nat.c (do_initial_windows_stuff): Call
190 target_terminal_init instead of child_terminal_init_with_pgrp.
191
192 2014-10-17 Pedro Alves <palves@redhat.com>
193
194 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
195 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
196 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
197 solib-osf.c.
198 * NEWS: Mention that support for alpha*-*-osf* has been removed.
199 * ada-lang.h [__alpha__ && __osf__]
200 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
201 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
202 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
203 GDB_OSABI_OSF1.
204 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
205 files.
206 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
207 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
208 * configure: Regenerate.
209 * configure.ac: Remove references to osf.
210 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
211 section. Remove all other references to osf.
212 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
213 Remove all other references to osf.
214 * dec-thread.c: Delete file.
215 * defs.h (GDB_OSABI_OSF1): Delete.
216 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
217 defined.
218 * osabi.c (gdb_osabi_names): Delete "OSF/1".
219 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
220 Delete code.
221 (unconditionally_kill_inferior)
222 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
223 * solib-osf.c: Delete file.
224
225 2014-10-17 Pedro Alves <palves@redhat.com>
226
227 * remote.c (clear_threads_listing_context): Move higher up, out of
228 the HAVE_LIBEXPAT guard.
229
230 2014-10-16 Tristan Gingold <gingold@adacore.com>
231
232 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
233 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
234 on amd64.
235
236 2014-10-15 Pedro Alves <palves@redhat.com>
237
238 * dec-thread.c (dec_thread_count_gdb_threads)
239 (dec_thread_add_gdb_thread): Delete.
240 (dec_thread_update_thread_list): Delete.
241 (dec_thread_find_new_threads): Rename to ...
242 (dec_thread_update_thread_list): ... this. Delete GDB-size
243 threads that are no longer found in dec_thread_list.
244 (resync_thread_list): Delete.
245 (dec_thread_wait): Call dec_thread_update_thread_list instead of
246 resync_thread_list.
247
248 2014-10-15 Pedro Alves <palves@redhat.com>
249
250 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
251 * remote.c (remote_update_thread_list): Skip calling prune_threads
252 if any thread listing method is supported, and instead walk over
253 the set of remote threads listed, deleting those that are not
254 found in GDB's thread list.
255
256 2014-10-15 Pedro Alves <palves@redhat.com>
257
258 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
259 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
260 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
261 (bsd_uthread_target): Adjust.
262 * corelow.c (core_open): Adjust.
263 * dec-thread.c (dec_thread_find_new_threads): Update comment.
264 (dec_thread_update_thread_list): New function.
265 (init_dec_thread_ops): Adjust.
266 * gdbthread.h (prune_threads): New declaration.
267 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
268 (thread_db_update_thread_list): ... this. Call prune_threads.
269 (init_thread_db_ops): Adjust.
270 * nto-procfs.c (procfs_find_new_threads): Rename to ...
271 (procfs_update_thread_list): ... this. Call prune_threads.
272 (procfs_attach, procfs_create_inferior, init_procfs_targets):
273 Adjust.
274 * obsd-nat.c (obsd_find_new_threads): Rename to ...
275 (obsd_update_thread_list): ... this. Call prune_threads.
276 (obsd_add_target): Adjust.
277 * procfs.c (procfs_target): Adjust.
278 (procfs_notice_thread): Update comment.
279 (procfs_find_new_threads): Rename to ...
280 (procfs_update_thread_list): ... this. Call prune_threads.
281 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
282 comment.
283 (ravenscar_wait): Adjust.
284 (ravenscar_find_new_threads): Rename to ...
285 (ravenscar_update_thread_list): ... this. Call prune_threads.
286 (init_ravenscar_thread_ops): Adjust.
287 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
288 (record_btrace_update_thread_list): ... this. Adjust comment.
289 (init_record_btrace_ops): Adjust.
290 * remote.c (remote_threads_info): Rename to ...
291 (remote_update_thread_list): ... this. Call prune_threads.
292 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
293 Adjust.
294 * sol-thread.c (check_for_thread_db): Adjust.
295 (sol_find_new_threads_callback): Rename to ...
296 (sol_update_thread_list_callback): ... this.
297 (sol_find_new_threads): Rename to ...
298 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
299 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
300 * target-delegates.c: Regenerate.
301 * target.c (target_find_new_threads): Rename to ...
302 (target_update_thread_list): ... this.
303 * target.h (struct target_ops): Rename to_find_new_threads field
304 to to_update_thread_list.
305 (target_find_new_threads): Rename to ...
306 (target_update_thread_list): ... this.
307 * thread.c (prune_threads): Make extern.
308 (update_thread_list): Adjust.
309
310 2014-10-15 Pedro Alves <palves@redhat.com>
311
312 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
313 Add describing comment. Return -1 if the qL packet is not
314 supported.
315 (struct thread_item, thread_item_t): Move higher up in
316 the file. Add comments.
317 (struct threads_parsing_context): Move higher up in
318 the file, add comments, and remote to ...
319 (struct threads_listing_context): ... this.
320 (remote_newthread_step): Don't add the thread to GDB's thread
321 database here. Instead push it to the thread_listing_context
322 list.
323 (remote_find_new_threads): Rename to ...
324 (remote_get_threads_with_ql): ... this. Add target_ops and
325 targets_listing_context parameters. Pass down context.
326 (start_thread): Adjust.
327 (clear_threads_parsing_context): Rename to ...
328 (clear_threads_listing_context): ... this.
329 (remote_get_threads_with_qxfer): New, with parts salvaged from old
330 remote_threads_info.
331 (remote_get_threads_with_qthreadinfo): Ditto.
332 (remote_threads_info): Reimplement.
333
334 2014-10-15 Pedro Alves <palves@redhat.com>
335
336 * infrun.c (resume): Don't force displaced-stepping for all
337 single-steps on software single-stepping archs.
338
339 2014-10-15 Pedro Alves <palves@redhat.com>
340
341 * breakpoint.c (single_step_breakpoints): Delete global.
342 (insert_single_step_breakpoint): Adjust to store the breakpoint
343 pointer in the current thread.
344 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
345 (cancel_single_step_breakpoints): Delete functions.
346 (breakpoint_has_location_inserted_here): Make extern.
347 (single_step_breakpoint_inserted_here_p): Adjust to walk the
348 breakpoint list.
349 * breakpoint.h (breakpoint_has_location_inserted_here): New
350 declaration.
351 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
352 (cancel_single_step_breakpoints): Remove declarations.
353 * gdbthread.h (struct thread_control_state)
354 <single_step_breakpoints>: New field.
355 (delete_single_step_breakpoints)
356 (thread_has_single_step_breakpoints_set)
357 (thread_has_single_step_breakpoint_here): New declarations.
358 * infrun.c (follow_exec): Also clear the single-step breakpoints.
359 (singlestep_breakpoints_inserted_p, singlestep_ptid)
360 (singlestep_pc): Delete globals.
361 (infrun_thread_ptid_changed): Remove references to removed
362 globals.
363 (resume_cleanups): Delete the current thread's single-step
364 breakpoints.
365 (maybe_software_singlestep): Remove references to removed globals.
366 (resume): Adjust to use thread_has_single_step_breakpoints_set and
367 delete_single_step_breakpoints.
368 (init_wait_for_inferior): Remove references to removed globals.
369 (delete_thread_infrun_breakpoints): Delete the thread's
370 single-step breakpoints too.
371 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
372 single-step breakpoints here.
373 (delete_stopped_threads_single_step_breakpoints): New function.
374 (adjust_pc_after_break): Adjust to use
375 thread_has_single_step_breakpoints_set.
376 (handle_inferior_event): Remove references to removed globals.
377 Use delete_stopped_threads_single_step_breakpoints.
378 (handle_signal_stop): Adjust to per-thread single-step
379 breakpoints. Swap test order to do cheaper tests first.
380 (switch_back_to_stepped_thread): Extend debug output. Remove
381 references to removed globals.
382 * record-full.c (record_full_wait_1): Adjust to per-thread
383 single-step breakpoints.
384 * thread.c (delete_single_step_breakpoints)
385 (thread_has_single_step_breakpoints_set)
386 (thread_has_single_step_breakpoint_here): New functions.
387 (clear_thread_inferior_resources): Also delete the thread's
388 single-step breakpoints.
389
390 2014-10-15 Pedro Alves <palves@redhat.com>
391
392 * thread.c (delete_thread_breakpoint): New function.
393 (delete_step_resume_breakpoint)
394 (delete_exception_resume_breakpoint): Use it.
395 (delete_at_next_stop): New function.
396 (clear_thread_inferior_resources): Use delete_at_next_stop.
397
398 2014-10-15 Pedro Alves <palves@redhat.com>
399
400 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
401 (breakpoint_inserted_here_p): ... here. Remove special case for
402 software single-step breakpoints.
403 (find_non_raw_software_breakpoint_inserted_here): Inline ...
404 (software_breakpoint_inserted_here_p): ... here. Remove special
405 case for software single-step breakpoints.
406 (bp_target_info_copy_insertion_state)
407 (deprecated_insert_raw_breakpoint)
408 (deprecated_remove_raw_breakpoint): Delete functions.
409 * breakpoint.h (deprecated_insert_raw_breakpoint)
410 (deprecated_remove_raw_breakpoint): Remove declarations.
411
412 2014-10-15 Pedro Alves <palves@redhat.com>
413
414 PR breakpoints/9649
415 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
416 Delete array globals.
417 (single_step_breakpoints): New global.
418 (breakpoint_xfer_memory): Remove special handling for single-step
419 breakpoints.
420 (update_breakpoints_after_exec): Delete bp_single_step
421 breakpoints.
422 (detach_breakpoints): Remove special handling for single-step
423 breakpoints.
424 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
425 (bpstat_stop_status): Add comment.
426 (bpstat_what, bptype_string, print_one_breakpoint_location)
427 (adjust_breakpoint_address, init_bp_location): Handle
428 bp_single_step.
429 (new_single_step_breakpoint): New function.
430 (set_momentary_breakpoint, bkpt_remove_location): Remove special
431 handling for single-step breakpoints.
432 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
433 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
434 Rewrite.
435 (detach_single_step_breakpoints, find_single_step_breakpoint):
436 Delete functions.
437 (breakpoint_has_location_inserted_here): New function.
438 (single_step_breakpoint_inserted_here_p): Rewrite.
439 * breakpoint.h: Remove FIXME.
440 (enum bptype) <bp_single_step>: New enum value.
441 (insert_single_step_breakpoint): Update comment.
442 * infrun.c (resume_cleanups)
443 (delete_step_thread_step_resume_breakpoint): Remove single-step
444 breakpoints.
445 (fetch_inferior_event): Install a cleanup that removes infrun
446 breakpoints.
447 (switch_back_to_stepped_thread) <expect thread advanced also>:
448 Clear step-over info.
449
450 2014-10-15 Pedro Alves <palves@redhat.com>
451
452 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
453 (delete_thread_infrun_breakpoints): New function, with parts
454 salvaged from delete_step_resume_breakpoint_callback.
455 (delete_step_thread_step_resume_breakpoint): Delete.
456 (for_each_just_stopped_thread_callback_func): New typedef.
457 (for_each_just_stopped_thread): New function.
458 (delete_just_stopped_threads_infrun_breakpoints): New function.
459 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
460 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
461 ... this. Adjust.
462 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
463
464 2014-10-15 Pedro Alves <palves@redhat.com>
465
466 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
467 trying to step past a non-steppable watchpoint.
468 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
469 field.
470 * infrun.c (struct step_over_info): Add new field
471 'nonsteppable_watchpoint_p' and adjust comments.
472 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
473 Adjust.
474 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
475 (stepping_past_nonsteppable_watchpoint): New function.
476 (step_over_info_valid_p): Also return true if stepping past a
477 nonsteppable watchpoint.
478 (proceed): Adjust call to set_step_over_info. Remove reference to
479 init_infwait_state.
480 (init_wait_for_inferior): Remove reference to init_infwait_state.
481 (waiton_ptid): Delete global.
482 (struct execution_control_state)
483 <stepped_after_stopped_by_watchpoint>: Delete field.
484 (wait_for_inferior, fetch_inferior_event): Always pass
485 minus_one_ptid to target_wait.
486 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
487 field.
488 (init_infwait_state): Delete function.
489 (handle_inferior_event): Remove infwait_state handling.
490 (handle_signal_stop) <watchpoints handling>: Adjust after
491 stepped_after_stopped_by_watchpoint removal. Don't remove
492 breakpoints here nor set infwait_state. Set the thread's
493 stepping_over_watchpoint flag, and call keep_going instead.
494 (keep_going): Handle stepping_over_watchpoint. Adjust
495 set_step_over_info calls.
496 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
497 function.
498
499 2014-10-15 Pedro Alves <palves@redhat.com>
500
501 * infrun.c (step_over_info_valid_p): New function.
502 (resume): Use step_over_info_valid_p instead of checking the
503 threads's trap_expected flag.
504
505 2014-10-15 Doug Evans <dje@google.com>
506 Walfred Tedeschi <walfred.tedeschi@intel.com>
507
508 PR python/17364
509 * python/lib/gdb/__init__.py (packages): Add "printer".
510 * python/lib/gdb/command/bound_registers.py: Moved to ...
511 * python/lib/gdb/printer/bound_registers.py: ... here.
512 Add printer to global set of builtin printers. Rename printer from
513 "bound" to "mpx_bound128".
514 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
515 registered as global "builtin" printer.
516 (add_builtin_pretty_printer): New function.
517 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
518 gdb/printer/__init__.py.
519
520 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
521
522 * Makefile.in (SFILES): Remove d-support.c.
523 (COMMON_OBS): Remove d-support.o.
524 * d-lang.h (d_parse_symbol): Remove declaration.
525 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
526 * d-support.c: Remove file.
527
528 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
529
530 * gdb/infrun.c (process_event_stop_test): Apply
531 gdbarch_addr_bits_remove to longjmp resume address.
532
533 2014-10-15 Pedro Alves <palves@redhat.com>
534
535 * regformats/microblaze.dat: Delete file.
536
537 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
538
539 * features/Makefile (microblaze-expedite): Replace pc with rpc.
540 * regformats/microblaze-with-stack-protect.dat: Regenerate.
541
542 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
543
544 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
545 as non-trivial.
546
547 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
548
549 PR c++/13403
550 PR c++/15154
551 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
552 with qualified args.
553
554 2014-10-14 Joel Brobecker <brobecker@adacore.com>
555
556 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
557 of the case where the second operand is a pointer.
558 <BINOP_SUB>: Likewise.
559
560 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
561
562 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
563 only if it is not NULL.
564 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
565 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
566 (struct probe_ops) <clear_semaphore>: Likewise.
567 * tracepoint.c (start_tracing): Call set_semaphore only if it is
568 not NULL.
569 (stop_tracing): Likewise, for clear_semaphore.
570
571 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
572
573 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
574 using language_c, instead of current_language.
575
576 2014-10-13 Doug Evans <dje@google.com>
577
578 * python/py-objfile.c (objfpy_initialize): New function.
579 (objfpy_new, objfile_to_objfile_object): Call it.
580 * python/py-progspace.c (pspy_initialize): New function.
581 (pspy_new, pspace_to_pspace_object): Call it.
582
583 2014-10-13 Miroslav Franc <mfranc@redhat.com>
584 Jan Kratochvil <jan.kratochvil@redhat.com>
585
586 Fix "save breakpoints" for "catch" command.
587 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
588 newline.
589
590 2014-10-12 Miroslav Franc <mfranc@redhat.com>
591
592 Fix "save breakpoints" for "disable $bpnum" command.
593 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
594
595 2014-10-10 Pedro Alves <palves@redhat.com>
596
597 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
598 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
599 (HFILES_NO_SRCDIR): Remove solib-irix.h.
600 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
601 and been removed.
602 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
603 * configure.ac: Remove references to IRIX.
604 * configure.host: Add *-*-irix* to the obsolete hosts section.
605 Remove all other references to irix.
606 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
607 Delete files.
608
609 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
610
611 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
612 isn't valid, release the tdesc arch data and return NULL.
613
614 2014-10-10 Pedro Alves <palves@redhat.com>
615
616 * linux-tdep.c: Include observer.h.
617 (linux_inferior_data): New global.
618 (struct linux_info): New structure.
619 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
620 (get_linux_inferior_data): New functions.
621 (linux_vsyscall_range): Rename to ...
622 (linux_vsyscall_range_raw): ... this.
623 (linux_vsyscall_range): New function; handles caching.
624 (_initialize_linux_tdep): Register linux_inferior_data. Install
625 inferior_exit and inferior_appeared observers.
626
627 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
628 Pedro Alves <palves@redhat.com>
629
630 PR symtab/14466
631 * solib-svr4.c (svr4_read_so_list): Rename to ...
632 (svr4_current_sos_1): ... this and change the function comment.
633 (svr4_current_sos): New function.
634
635 2014-10-10 Pedro Alves <palves@redhat.com>
636
637 * arch-utils.c (default_vsyscall_range): New function.
638 * arch-utils.h (default_vsyscall_range): New declaration.
639 * gdbarch.sh (vsyscall_range): New hook.
640 * gdbarch.h, gdbarch.c: Regenerate.
641 * linux-tdep.c (linux_vsyscall_range): New function.
642 (linux_init_abi): Install linux_vsyscall_range as
643 vsyscall_range gdbarch hook.
644 * memrange.c (address_in_mem_range): New function.
645 * memrange.h (address_in_mem_range): New declaration.
646 * symfile-mem.c (find_vdso_size): Delete function.
647 (add_vsyscall_page): Use gdbarch_vsyscall_range.
648
649 2014-10-10 Pedro Alves <palves@redhat.com>
650
651 * infrun.c (normal_stop): Fix typo in comment.
652
653 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
654
655 PR tdep/9390
656 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
657 typo when using logical AND to determine instruction type.
658
659 2014-10-09 Yao Qi <yao@codesourcery.com>
660
661 * infrun.c (handle_signal_stop): Remove local variable
662 'printed'.
663
664 2014-10-08 Stan Shebs <stan@codesourcery.com>
665
666 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
667
668 2014-10-08 Gary Benson <gbenson@redhat.com>
669
670 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
671
672 2014-10-08 Gary Benson <gbenson@redhat.com>
673
674 * common/common-defs.h: Include common-exceptions.h.
675 * exceptions.h: Do not include common-exceptions.h.
676
677 2014-10-08 Gary Benson <gbenson@redhat.com>
678
679 * common/common-defs.h: Include cleanups.h.
680 * common/common-exceptions.c: Do not include cleanups.h.
681 * utils.h: Likewise.
682
683 2014-10-08 Gary Benson <gbenson@redhat.com>
684
685 * ada-lang.c: Do not include exceptions.h.
686 * ada-valprint.c: Likewise.
687 * amd64-tdep.c: Likewise.
688 * auto-load.c: Likewise.
689 * block.c: Likewise.
690 * break-catch-throw.c: Likewise.
691 * breakpoint.c: Likewise.
692 * btrace.c: Likewise.
693 * c-lang.c: Likewise.
694 * cli/cli-cmds.c: Likewise.
695 * cli/cli-interp.c: Likewise.
696 * cli/cli-script.c: Likewise.
697 * completer.c: Likewise.
698 * corefile.c: Likewise.
699 * corelow.c: Likewise.
700 * cp-abi.c: Likewise.
701 * cp-support.c: Likewise.
702 * cp-valprint.c: Likewise.
703 * darwin-nat.c: Likewise.
704 * dwarf2-frame-tailcall.c: Likewise.
705 * dwarf2-frame.c: Likewise.
706 * dwarf2loc.c: Likewise.
707 * dwarf2read.c: Likewise.
708 * eval.c: Likewise.
709 * event-loop.c: Likewise.
710 * event-top.c: Likewise.
711 * f-valprint.c: Likewise.
712 * frame-unwind.c: Likewise.
713 * frame.c: Likewise.
714 * gdbtypes.c: Likewise.
715 * gnu-v2-abi.c: Likewise.
716 * gnu-v3-abi.c: Likewise.
717 * guile/scm-auto-load.c: Likewise.
718 * guile/scm-breakpoint.c: Likewise.
719 * guile/scm-cmd.c: Likewise.
720 * guile/scm-frame.c: Likewise.
721 * guile/scm-lazy-string.c: Likewise.
722 * guile/scm-param.c: Likewise.
723 * guile/scm-symbol.c: Likewise.
724 * guile/scm-type.c: Likewise.
725 * hppa-hpux-tdep.c: Likewise.
726 * i386-tdep.c: Likewise.
727 * inf-loop.c: Likewise.
728 * infcall.c: Likewise.
729 * infcmd.c: Likewise.
730 * infrun.c: Likewise.
731 * interps.c: Likewise.
732 * interps.h: Likewise.
733 * jit.c: Likewise.
734 * linespec.c: Likewise.
735 * linux-nat.c: Likewise.
736 * linux-thread-db.c: Likewise.
737 * m32r-rom.c: Likewise.
738 * main.c: Likewise.
739 * memory-map.c: Likewise.
740 * mi/mi-cmd-break.c: Likewise.
741 * mi/mi-cmd-stack.c: Likewise.
742 * mi/mi-interp.c: Likewise.
743 * mi/mi-main.c: Likewise.
744 * monitor.c: Likewise.
745 * nto-procfs.c: Likewise.
746 * objc-lang.c: Likewise.
747 * p-valprint.c: Likewise.
748 * parse.c: Likewise.
749 * ppc-linux-tdep.c: Likewise.
750 * printcmd.c: Likewise.
751 * probe.c: Likewise.
752 * python/py-auto-load.c: Likewise.
753 * python/py-breakpoint.c: Likewise.
754 * python/py-cmd.c: Likewise.
755 * python/py-finishbreakpoint.c: Likewise.
756 * python/py-frame.c: Likewise.
757 * python/py-framefilter.c: Likewise.
758 * python/py-function.c: Likewise.
759 * python/py-gdb-readline.c: Likewise.
760 * python/py-inferior.c: Likewise.
761 * python/py-infthread.c: Likewise.
762 * python/py-lazy-string.c: Likewise.
763 * python/py-linetable.c: Likewise.
764 * python/py-param.c: Likewise.
765 * python/py-prettyprint.c: Likewise.
766 * python/py-symbol.c: Likewise.
767 * python/py-type.c: Likewise.
768 * python/py-value.c: Likewise.
769 * python/python-internal.h: Likewise.
770 * python/python.c: Likewise.
771 * record-btrace.c: Likewise.
772 * record-full.c: Likewise.
773 * regcache.c: Likewise.
774 * remote-fileio.c: Likewise.
775 * remote-mips.c: Likewise.
776 * remote.c: Likewise.
777 * rs6000-aix-tdep.c: Likewise.
778 * rs6000-nat.c: Likewise.
779 * skip.c: Likewise.
780 * solib-darwin.c: Likewise.
781 * solib-dsbt.c: Likewise.
782 * solib-frv.c: Likewise.
783 * solib-ia64-hpux.c: Likewise.
784 * solib-spu.c: Likewise.
785 * solib-svr4.c: Likewise.
786 * solib.c: Likewise.
787 * spu-tdep.c: Likewise.
788 * stack.c: Likewise.
789 * stap-probe.c: Likewise.
790 * symfile-mem.c: Likewise.
791 * symmisc.c: Likewise.
792 * target.c: Likewise.
793 * thread.c: Likewise.
794 * top.c: Likewise.
795 * tracepoint.c: Likewise.
796 * tui/tui-interp.c: Likewise.
797 * typeprint.c: Likewise.
798 * utils.c: Likewise.
799 * valarith.c: Likewise.
800 * valops.c: Likewise.
801 * valprint.c: Likewise.
802 * value.c: Likewise.
803 * varobj.c: Likewise.
804 * windows-nat.c: Likewise.
805 * xml-support.c: Likewise.
806
807 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
808
809 * mips-tdep.c (add_offset_16): Rewrite to implement what the
810 name implies.
811 (extended_mips16_next_pc): Update accordingly.
812
813 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
814
815 * mips-tdep.c (mips16_instruction_is_compact_branch): New
816 function.
817 (micromips_instruction_is_compact_branch): Likewise.
818 (mips16_scan_prologue): Terminate scanning upon seeing a branch
819 or a compact jump, reaching a jump delay slot, or seeing a
820 second non-prologue instruction.
821 (micromips_scan_prologue): Also terminate scanning upon seeing a
822 compact branch or jump, or reaching a branch or jump delay slot.
823 (mips32_scan_prologue): Terminate scanning upon reaching a branch
824 or jump delay slot, or seeing a second non-prologue instruction.
825 (mips32_instruction_has_delay_slot): Retain instruction
826 examination code only, update arguments accordingly and move
827 instruction fetch pieces to...
828 (mips32_insn_at_pc_has_delay_slot): ... this new function.
829 (micromips_instruction_has_delay_slot): Likewise and to...
830 (micromips_insn_at_pc_has_delay_slot): ... this new function.
831 (mips16_instruction_has_delay_slot): Likewise and to...
832 (mips16_insn_at_pc_has_delay_slot): ... this new function.
833 (mips_single_step_through_delay): Update accordingly.
834 (mips_adjust_breakpoint_address): Likewise.
835
836 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
837
838 * mips-tdep.c (micromips_instruction_has_delay_slot): When
839 !mustbe32 also return 1 for 32-bit instructions.
840 (mips16_instruction_has_delay_slot): Likewise. Add an
841 explanatory comment.
842
843 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
844
845 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
846 symbols special.
847
848 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
849
850 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
851 update comments.
852 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
853 for the breakpoint's address. Don't preinitialize `placed_size'.
854 (insert_bp_location): Set `reqstd_address' rather than
855 `placed_address'.
856 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
857 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
858 address.
859 (bkpt_remove_location): Likewise.
860 (deprecated_insert_raw_breakpoint): Likewise.
861 (deprecated_remove_raw_breakpoint): Likewise.
862 (find_single_step_breakpoint): Likewise.
863 * mem-break.c (default_memory_insert_breakpoint): Use
864 `reqstd_address' for the breakpoint's address. Don't set
865 `placed_address' or `placed_size' if breakpoint contents couldn't
866 have been determined.
867 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
868 the breakpoint's address.
869 (remote_insert_hw_breakpoint): Likewise. Don't set
870 `placed_address' or `placed_size' if breakpoint couldn't have been
871 set.
872 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
873 `reqstd_address' for the breakpoint's address.
874 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
875 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
876 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
877 * microblaze-linux-tdep.c
878 (microblaze_linux_memory_remove_breakpoint): Likewise.
879 * monitor.c (monitor_insert_breakpoint): Likewise.
880 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
881 (procfs_insert_hw_breakpoint): Likewise.
882 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
883 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
884 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
885 * remote-mips.c (mips_insert_breakpoint): Likewise.
886 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
887
888 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
889
890 * valops.c (value_assign): Check for bit field assignments
891 before calling architecture-specific register value
892 conversion functions.
893
894 2014-10-03 Pierre Muller <muller@sourceware.org>
895
896 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
897
898 2014-10-02 Pedro Alves <palves@redhat.com>
899
900 * breakpoint.c (breakpoints_should_be_inserted_now): Use
901 threads_are_executing.
902 * breakpoint.h (breakpoints_should_be_inserted_now): Add
903 describing comment.
904 * gdbthread.h (threads_are_executing): Declare.
905 (handle_signal_stop) <random signals>: Don't print about the
906 signal here if stopping.
907 (end_stepping_range): Don't notify observers here.
908 (normal_stop): Update the thread list. If stopped by a random
909 signal or a stepping range ended, notify observers.
910 * thread.c (threads_executing): New global.
911 (init_thread_list): Clear 'threads_executing'.
912 (set_executing): Set or clear 'threads_executing'.
913 (threads_are_executing): New function.
914 (update_threads_executing): New function.
915 (update_thread_list): Use it.
916
917 2014-10-02 Pedro Alves <palves@redhat.com>
918
919 PR breakpoints/17431
920 * breakpoint.c (update_breakpoints_after_exec): Don't create
921 overlay, longjmp, std terminate nor exception breakpoints here.
922
923 2014-10-02 Pedro Alves <palves@redhat.com>
924
925 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
926 Adjust comments.
927 * inferior.c (find_inferior_for_program_space): Give preference to
928 the current inferior.
929 * inferior.h (find_inferior_for_program_space): Update comment.
930 * progspace.c (switch_to_program_space_and_thread): Prefer the
931 current inferior if it's bound to the program space requested. If
932 the inferior found doesn't have a PID yet, don't bother looking up
933 a thread.
934 * progspace.h (switch_to_program_space_and_thread): Adjust
935 comment.
936 * thread.c (any_thread_of_process, any_live_thread_of_process):
937 Give preference to the current thread.
938
939 2014-10-01 Pedro Alves <palves@redhat.com>
940
941 * breakpoint.c (insert_bp_location): Error out if inserting a
942 software breakpoint at a read-only address.
943 * target.c (memory_xfer_check_region): New function, factored out
944 from ...
945 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
946 ULONGEST.
947 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
948 against the memory region attributes.
949
950 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
951
952 * NEWS: Announce new exit-code field in -list-thread-groups
953 output.
954 * inferior.c (exit_inferior_1): Don't clear exit code.
955 (inferior_appeared): Clear exit code.
956 * mi/mi-main.c (print_one_inferior): Add printing of the exit
957 code.
958
959 2014-10-01 Pedro Alves <palves@redhat.com>
960
961 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
962 GENERATED" along with emacs/vi read-only markers.
963 * regformats/aarch64.dat: Regenerate.
964 * regformats/arm-with-iwmmxt.dat: Regenerate.
965 * regformats/arm-with-neon.dat: Regenerate.
966 * regformats/arm-with-vfpv2.dat: Regenerate.
967 * regformats/arm-with-vfpv3.dat: Regenerate.
968 * regformats/i386/amd64-avx-linux.dat: Regenerate.
969 * regformats/i386/amd64-avx.dat: Regenerate.
970 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
971 * regformats/i386/amd64-avx512.dat: Regenerate.
972 * regformats/i386/amd64-linux.dat: Regenerate.
973 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
974 * regformats/i386/amd64-mpx.dat: Regenerate.
975 * regformats/i386/amd64.dat: Regenerate.
976 * regformats/i386/i386-avx-linux.dat: Regenerate.
977 * regformats/i386/i386-avx.dat: Regenerate.
978 * regformats/i386/i386-avx512-linux.dat: Regenerate.
979 * regformats/i386/i386-avx512.dat: Regenerate.
980 * regformats/i386/i386-linux.dat: Regenerate.
981 * regformats/i386/i386-mmx-linux.dat: Regenerate.
982 * regformats/i386/i386-mmx.dat: Regenerate.
983 * regformats/i386/i386-mpx-linux.dat: Regenerate.
984 * regformats/i386/i386-mpx.dat: Regenerate.
985 * regformats/i386/i386.dat: Regenerate.
986 * regformats/i386/x32-avx-linux.dat: Regenerate.
987 * regformats/i386/x32-avx.dat: Regenerate.
988 * regformats/i386/x32-avx512-linux.dat: Regenerate.
989 * regformats/i386/x32-avx512.dat: Regenerate.
990 * regformats/i386/x32-linux.dat: Regenerate.
991 * regformats/i386/x32.dat: Regenerate.
992 * regformats/microblaze-with-stack-protect.dat: Regenerate.
993 * regformats/mips-dsp-linux.dat: Regenerate.
994 * regformats/mips-linux.dat: Regenerate.
995 * regformats/mips64-dsp-linux.dat: Regenerate.
996 * regformats/mips64-linux.dat: Regenerate.
997 * regformats/nios2-linux.dat: Regenerate.
998 * regformats/rs6000/powerpc-32.dat: Regenerate.
999 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1000 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1001 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1002 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1003 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1004 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1005 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1006 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1007 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1008 * regformats/s390-linux32.dat: Regenerate.
1009 * regformats/s390-linux32v1.dat: Regenerate.
1010 * regformats/s390-linux32v2.dat: Regenerate.
1011 * regformats/s390-linux64.dat: Regenerate.
1012 * regformats/s390-linux64v1.dat: Regenerate.
1013 * regformats/s390-linux64v2.dat: Regenerate.
1014 * regformats/s390-te-linux64.dat: Regenerate.
1015 * regformats/s390x-linux64.dat: Regenerate.
1016 * regformats/s390x-linux64v1.dat: Regenerate.
1017 * regformats/s390x-linux64v2.dat: Regenerate.
1018 * regformats/s390x-te-linux64.dat: Regenerate.
1019 * regformats/tic6x-c62x-linux.dat: Regenerate.
1020 * regformats/tic6x-c62x.dat: Regenerate.
1021 * regformats/tic6x-c64x-linux.dat: Regenerate.
1022 * regformats/tic6x-c64x.dat: Regenerate.
1023 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1024 * regformats/tic6x-c64xp.dat: Regenerate.
1025
1026 2014-10-01 Pedro Alves <palves@redhat.com>
1027
1028 * features/Makefile: Update comments.
1029 (XMLTOC): List all xml files we build C files from.
1030 (clean-cfiles): New rule.
1031
1032 2014-10-01 Pedro Alves <palves@redhat.com>
1033
1034 * features/i386/amd64-avx512-linux.c: Regenerate.
1035 * features/i386/amd64-avx512.c: Regenerate.
1036 * features/i386/x32-avx512-linux.c: Regenerate.
1037 * features/i386/x32-avx512.c: Regenerate.
1038
1039 2014-10-01 Pedro Alves <palves@redhat.com>
1040
1041 * features/Makefile (WHICH): Remove arm-with-m,
1042 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1043
1044 2014-10-01 Pedro Alves <palves@redhat.com>
1045
1046 * features/Makefile (clean): New rule.
1047
1048 2014-10-01 Pedro Alves <palves@redhat.com>
1049
1050 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1051 (zmm14h): Add missing end quotes.
1052
1053 2014-10-01 Pedro Alves <palves@redhat.com>
1054
1055 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1056 * features/aarch64.c: Regenerate.
1057
1058 2014-09-30 Don Breazeal <donb@codesourcery.com>
1059
1060 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1061 code so as to work with follow_fork_inferior.
1062 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1063 (inf_ttrace_create_inferior): Remove reference to
1064 inf_ttrace_vfork_ppid.
1065 (inf_ttrace_attach): Ditto.
1066 (inf_ttrace_detach): Ditto.
1067 (inf_ttrace_kill): Use current_inferior instead of
1068 inf_ttrace_vfork_ppid.
1069 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1070 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1071 inferior away from the parent.
1072 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1073 target_follow_fork.
1074 (follow_fork_inferior): New function.
1075 (follow_inferior_reset_breakpoints): Make function static.
1076 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1077 * linux-nat.c (linux_child_follow_fork): Move target-independent
1078 code to infrun.c:follow_fork_inferior.
1079
1080 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1081
1082 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1083 * gdbarch.c: Regenerate.
1084 * gdbarch.h: Likewise.
1085 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1086 gdbarch method 'regset_from_core_section'.
1087 (get_core_register_section): Remove handling for the case that
1088 regset == NULL and regset_from_core_section is defined.
1089 (get_core_registers): Drop check for deleted method.
1090 * procfs.c (procfs_do_thread_registers): Adjust comment.
1091
1092 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1093
1094 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1095 (linux_nat_make_corefile_notes): Remove.
1096 (linux_target_install_ops): Do not set target method
1097 'make_corefile_notes'.
1098 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1099 Remove field.
1100 (linux_corefile_thread_callback): Instead of args->collect, call
1101 linux_collect_thread_registers.
1102 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1103 NULL unless there is a regset iterator.
1104 (linux_make_corefile_notes_1): Remove.
1105 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1106 by linux_make_corefile_notes.
1107 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1108
1109 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1110
1111 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1112 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1113 Remove.
1114 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1115
1116 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1117
1118 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1119 (xtensa_iterate_over_regset_sections): New.
1120 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1121
1122 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1123
1124 * vax-tdep.c (vax_regset_from_core_section): Remove.
1125 (vax_iterate_over_regset_sections): New.
1126 (vax_gdbarch_init): Adjust gdbarch initialization.
1127
1128 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1129
1130 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1131 (tilegx_regset_from_core_section): Remove.
1132 (tilegx_iterate_over_regset_sections): New.
1133 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1134
1135 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1136
1137 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1138 (sparc_iterate_over_regset_sections): New.
1139 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1140 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1141 targets.
1142 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1143 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1144 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1145 target method 'make_corefile_notes'.
1146
1147 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1148
1149 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1150 'sizeof_gregset' and 'sizeof_fpregset'.
1151 * sh-tdep.c (sh_regset_from_core_section): Remove.
1152 (sh_iterate_over_regset_sections): New.
1153 (sh_gdbarch_init): Adjust gdbarch initialization.
1154 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1155 sizeof_fpregset.
1156 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1157 'sizeof_gregset'.
1158
1159 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1160
1161 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1162 (score7_linux_iterate_over_regset_sections): New.
1163 (score_gdbarch_init): Adjust gdbarch initialization.
1164
1165 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1166
1167 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1168 FreeBSD targets.
1169 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1170 method 'make_corefile_notes'.
1171 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1172 (ppcfbsd_regset_from_core_section): Remove.
1173 (ppcfbsd_iterate_over_regset_sections): New.
1174 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1175 initialization.
1176 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1177 (ppcnbsd_iterate_over_regset_sections): New.
1178 (ppcnbsd_init_abi): Adjust.
1179 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1180 (ppcobsd_iterate_over_regset_sections): New.
1181 (ppcobsd_init_abi): Adjust.
1182 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1183 (rs6000_aix_iterate_over_regset_sections): New.
1184 (rs6000_aix_init_osabi): Adjust.
1185
1186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1187
1188 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1189 (nios2_regset_from_core_section): Remove.
1190 (nios2_iterate_over_regset_sections): New.
1191 (nios2_linux_init_abi): Adjust gdbarch initialization.
1192
1193 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1194
1195 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1196 (am33_iterate_over_regset_sections): New.
1197 (am33_linux_init_osabi): Adjust gdbarch initialization.
1198
1199 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1200
1201 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1202 (mips_linux_iterate_over_regset_sections): New.
1203 (mips_linux_init_abi): Adjust gdbarch initialization.
1204 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1205 (mips64obsd_iterate_over_regset_sections): New.
1206 (mips64obsd_init_abi): Adjust.
1207 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1208 (mipsnbsd_iterate_over_regset_sections): New.
1209 (mipsnbsd_init_abi): Adjust.
1210
1211 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1212
1213 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1214 (m88k_iterate_over_regset_sections): New.
1215 (m88k_gdbarch_init): Adjust gdbarch initialization.
1216
1217 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1218
1219 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1220 (ia64_linux_iterate_over_regset_sections): New.
1221 (ia64_linux_init_abi): Adjust gdbarch initialization.
1222
1223 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1224
1225 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1226 (m68kbsd_iterate_over_regset_sections): New.
1227 (m68kbsd_init_abi): Adjust gdbarch initialization.
1228 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1229 (m68k_linux_iterate_over_regset_sections): New.
1230 (m68k_linux_init_abi): Adjust gdbarch initialization.
1231
1232 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1233
1234 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1235 (m32r_linux_regset_from_core_section): Remove.
1236 (m32r_linux_iterate_over_regset_sections): New.
1237 (m32r_linux_init_abi): Adjust gdbarch initialization.
1238
1239 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1240
1241 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1242 (amd64obsd_iterate_over_regset_sections): New.
1243 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1244 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1245 Remove.
1246 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1247 regset_from_core_section initialization.
1248 * i386-tdep.c (i386_regset_from_core_section): Remove.
1249 (i386_iterate_over_regset_sections): New.
1250 (i386_gdbarch_init): Adjust gdbarch initialization.
1251 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1252 (i386_iterate_over_regset_sections): New prototype.
1253 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1254 Remove.
1255 (i386obsd_aout_iterate_over_regset_sections): New.
1256 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1257 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1258 targets.
1259 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1260 (amd64fbsd_init_abi): Call fbsd_init_abi.
1261 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1262 (i386fbsd4_init_abi): Call fbsd_init_abi.
1263 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1264 target method 'make_corefile_notes'.
1265 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1266
1267 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1268
1269 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1270 (hppa_hpux_iterate_over_regset_sections): New.
1271 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1272 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1273 (hppa_linux_iterate_over_regset_sections): New.
1274 (hppa_linux_init_abi): Adjust.
1275 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1276 (hppanbsd_iterate_over_regset_sections): New.
1277 (hppanbsd_init_abi): Adjust.
1278 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1279 (hppaobsd_iterate_over_regset_sections): New.
1280 (hppaobsd_init_abi): Adjust.
1281
1282 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1283
1284 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1285 (frv_linux_iterate_over_regset_sections): New.
1286 (frv_linux_init_abi): Adjust gdbarch initialization.
1287
1288 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1289
1290 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1291 (armbsd_iterate_over_regset_sections): New prototype.
1292 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1293 (armbsd_iterate_over_regset_sections): New.
1294 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1295 initialization.
1296
1297 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1298
1299 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1300 (alpha_linux_iterate_over_regset_sections): New.
1301 (alpha_linux_init_abi): Adjust gdbarch initialization.
1302 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1303 prototype.
1304 (alphanbsd_iterate_over_regset_sections): New prototype.
1305
1306 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1307
1308 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1309 Remove.
1310 (aarch64_linux_iterate_over_regset_sections): New.
1311 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1312
1313 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1314
1315 * fbsd-tdep.c: New file.
1316 * fbsd-tdep.h: New file.
1317 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1318 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1319 (ALLDEPFILES): Add fbsd-tdep.c.
1320
1321 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1322
1323 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1324 parameter.
1325 * gdbarch.h: Regenerate.
1326 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1327 iterator.
1328 (get_core_register_section): Add parameter 'regset' and use it, if
1329 set. Add parameter 'min_size' and verify the bfd section size
1330 against it.
1331 (get_core_registers_cb): Add parameter 'regset' and pass it to
1332 get_core_register section. For the "standard" register sections
1333 ".reg" and ".reg2", set an appropriate default for human_name.
1334 (get_core_registers): Don't abort when the gdbarch has an iterator
1335 but no regset_from_core_section. Add NULL/0 for parameters
1336 'regset'/'min_size' in calls to get_core_register_section.
1337 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1338 'regset' and use it instead of calling the
1339 regset_from_core_section gdbarch method.
1340 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1341 * i386-tdep.c (i386_supply_xstateregset)
1342 (i386_collect_xstateregset, i386_xstateregset): Moved to
1343 i386-linux-tdep.c.
1344 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1345 .reg-xstate.
1346 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1347 core file support only if the regset iterator hasn't been set.
1348 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1349 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1350 Moved from i386-tdep.c and renamed to *_linux*.
1351 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1352 each callback invocation. Allow any .reg-xstate size when reading
1353 from a core file.
1354 * amd64-tdep.c (amd64_supply_xstateregset)
1355 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1356 amd64-linux-tdep.c.
1357 (amd64_regset_from_core_section): Remove.
1358 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1359 install an amd64-specific regset_from_core_section gdbarch method.
1360 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1361 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1362 Moved from amd64-tdep.c and renamed to *_linux*.
1363 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1364 to each callback invocation. Allow any .reg-xstate size when
1365 reading from a core file.
1366 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1367 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1368 each callback invocation.
1369 (arm_linux_init_abi): No longer set the regset_from_core_section
1370 gdbarch method.
1371 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1372 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1373 each callback invocation.
1374 (ppc_linux_init_abi): No longer set the regset_from_core_section
1375 gdbarch method.
1376 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1377 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1378 (s390_regset_from_core_section): Remove.
1379 (s390_iterate_over_regset_sections): Add regset parameter to each
1380 callback invocation.
1381 (s390_gdbarch_init): No longer set the regset_from_core_section
1382 gdbarch method. Drop initialization of deleted tdep fields.
1383
1384 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1385
1386 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1387 (amd64_linux_iterate_over_regset_sections): New.
1388 (amd64_linux_init_abi_common): Don't install the regset section
1389 list, but the new iterator in gdbarch.
1390 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1391 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1392 (arm_linux_iterate_over_regset_sections): ...here. New function.
1393 (arm_linux_init_abi): Set iterator instead of section list.
1394 * corelow.c (get_core_registers_cb): New function, logic moved
1395 from...
1396 (get_core_registers): ...loop body here. Use new iterator method
1397 instead of walking through the regset section list.
1398 * gdbarch.sh: Remove 'core_regset_sections'. New method
1399 'iterate_over_regset_sections'. New typedef
1400 'iterate_over_regset_sections_cb'.
1401 * gdbarch.c: Regenerate.
1402 * gdbarch.h: Likewise.
1403 * i386-linux-tdep.c (i386_linux_regset_sections)
1404 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1405 Remove.
1406 (i386_linux_iterate_over_regset_sections): New.
1407 (i386_linux_init_abi): Don't choose a regset section list, but
1408 install new iterator in gdbarch.
1409 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1410 (linux_collect_regset_section_cb): New function, logic moved
1411 from...
1412 (linux_collect_thread_registers): ...loop body here. Use iterator
1413 method instead of walking through list.
1414 (linux_make_corefile_notes_1): Check for presence of iterator
1415 method instead of regset section list.
1416 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1417 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1418 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1419 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1420 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1421 (ppc_linux_init_abi): Don't choose from above regset section
1422 lists, but install new iterator in gdbarch.
1423 * regset.h (struct core_regset_section): Remove.
1424 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1425 have_linux_v1, have_linux_v2, and have_tdb.
1426 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1427 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1428 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1429 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1430 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1431 (s390_iterate_over_regset_sections): ...here. New function. Use
1432 new tdep fields.
1433 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1434 regset section lists, but install new iterator.
1435
1436 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1437
1438 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1439
1440 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1441
1442 * progspace.c (print_program_space): Don't prune program spaces
1443 before printing them.
1444
1445 2014-09-25 Pedro Alves <palves@redhat.com>
1446
1447 * infrun.c (user_visible_resume_ptid): Don't check
1448 singlestep_breakpoints_inserted_p.
1449
1450 2014-09-25 Pedro Alves <palves@redhat.com>
1451
1452 * breakpoint.c (should_be_inserted): Add debug output.
1453
1454 2014-09-25 Pedro Alves <palves@redhat.com>
1455
1456 * infrun.c (stepping_past_instruction_at)
1457 (clear_exit_convenience_vars): Point at infrun.h instead of
1458 inferior.h.
1459 (handle_signal_stop): Fix typo.
1460
1461 2014-09-24 Yao Qi <yao@codesourcery.com>
1462
1463 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1464 bitmask.
1465
1466 2014-09-22 Gary Benson <gbenson@redhat.com>
1467
1468 * target.c (target_stop): Updated comment.
1469
1470 2014-09-22 Gary Benson <gbenson@redhat.com>
1471
1472 * target/target.h (target_stop_ptid): Renamed as...
1473 (target_stop_and_wait): New function. Updated comment.
1474 All uses updated.
1475 (target_continue_ptid): Renamed as...
1476 (target_continue_no_signal): New function. Updated comment.
1477 All uses updated.
1478
1479 2014-09-22 Pedro Alves <palves@redhat.com>
1480
1481 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1482 and "auto" merged.
1483 * breakpoint.c (enum ugll_insert_mode): New enum.
1484 (always_inserted_mode): Now a plain boolean.
1485 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1486 (breakpoints_always_inserted_mode): Delete.
1487 (breakpoints_should_be_inserted_now): New function.
1488 (insert_breakpoints): Pass UGLL_INSERT to
1489 update_global_location_list instead of calling
1490 insert_breakpoint_locations manually.
1491 (create_solib_event_breakpoint_1): New, factored out from ...
1492 (create_solib_event_breakpoint): ... this.
1493 (create_and_insert_solib_event_breakpoint): Use
1494 create_solib_event_breakpoint_1 instead of calling
1495 insert_breakpoint_locations manually.
1496 (update_global_location_list): Change parameter type from boolean
1497 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1498 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1499 (update_global_location_list_nothrow): Change parameter type from
1500 boolean to enum ugll_insert_mode.
1501 (_initialize_breakpoint): "breakpoint always-inserted" option is
1502 now a boolean command. Update help text.
1503 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1504 (breakpoints_should_be_inserted_now): New declaration.
1505 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1506 Remove breakpoints_always_inserted_mode check.
1507 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1508 * remote.c (remote_start_remote): Likewise.
1509
1510 2014-09-22 Pedro Alves <palves@redhat.com>
1511
1512 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1513 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1514 Instead, pass UGLL_INSERT to update_global_location_list.
1515 (update_global_location_list): Change parameter type from boolean
1516 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1517 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1518 (create_solib_event_breakpoint_1): New, factored out from ...
1519 (create_solib_event_breakpoint): ... this.
1520 (create_and_insert_solib_event_breakpoint): Use
1521 create_solib_event_breakpoint_1 instead of calling
1522 insert_breakpoint_locations manually.
1523 (update_global_location_list): Handle UGLL_INSERT.
1524
1525 2014-09-22 Pedro Alves <palves@redhat.com>
1526
1527 * breakpoint.c (enum ugll_insert_mode): New enum.
1528 (update_global_location_list)
1529 (update_global_location_list_nothrow): Change parameter type from
1530 boolean to enum ugll_insert_mode. All callers adjusted.
1531
1532 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1533
1534 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1535 SystemTap support in GDB.
1536
1537 2014-09-19 Don Breazeal <donb@codesourcery.com>
1538
1539 * linux-nat.c (linux_handle_extended_wait): Call
1540 linux_ptrace_get_extended_event.
1541 (wait_lwp): Call linux_is_extended_waitstatus.
1542 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1543 and linux_is_extended_waitstatus.
1544 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1545 linux_ptrace_get_extended_event.
1546 (linux_ptrace_get_extended_event): New function.
1547 (linux_is_extended_waitstatus): New function.
1548 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1549 (linux_is_extended_waitstatus): New declarations.
1550
1551 2014-09-19 Yao Qi <yao@codesourcery.com>
1552
1553 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1554 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1555 comments. Callers update.
1556 (dwarf_decode_lines): Likewise.
1557 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1558 comments. Skip the line table if 'lowpc' is greater than
1559 'address'. Don't check
1560 dwarf2_per_objfile->has_section_at_zero.
1561
1562 2014-09-18 Doug Evans <dje@google.com>
1563
1564 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1565 * python/py-symtab.c (stpy_get_producer): New function.
1566 (symtab_object_getset): Add "producer" attribute.
1567
1568 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1569
1570 PR gdb/17384
1571 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1572 (do_captured_read_memory_integer): Remove.
1573 (safe_read_memory_integer): Use target_read_memory directly instead
1574 of catching errors in do_captured_read_memory_integer.
1575
1576 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1577
1578 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1579 not gdb/doc.
1580
1581 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1582
1583 * objc-lang.c (find_implementation_from_class): Remove dead code.
1584
1585 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1586
1587 PR cli/7233
1588 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1589 "fprintf_unfiltered (gdb_stdlog...)".
1590
1591 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1592
1593 PR breakpoints/12526
1594 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1595 val_bitsize.
1596 * breakpoint.c (watch_command_1): Use these fields to retain
1597 bitfield information.
1598 (extract_bitfield_from_watchpoint_value): New function.
1599 (watchpoint_check): Use it.
1600 (update_watchpoint): Use it. Optimize the address and length of a
1601 HW watchpoint pointing to a bitfield.
1602 * value.h (unpack_value_bitfield): New prototype.
1603 * value.c (unpack_value_bitfield): Make extern.
1604
1605 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1606
1607 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1608 x86-dregs.o.
1609 * gnu-nat.c (inf_threads): New function.
1610 * gnu-nat.h (inf_threads_ftype): New typedef.
1611 (inf_threads): New declaration.
1612 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1613 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1614 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1615 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1616 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1617 (i386_gnu_dr_get_control): New functions.
1618 (reg_addr): New structure.
1619 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1620 i386 debugging register hooks.
1621 * NEWS: Mention this.
1622
1623 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1624
1625 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1626 vector data transfer instructions.
1627 (arm_record_coproc_data_proc): Updated.
1628
1629 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1630
1631 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1632 arm_record_exreg_ld_st_insn.
1633 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1634 load/store insns.
1635
1636 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1637
1638 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1639 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1640 processing instructions.
1641
1642 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1643
1644 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1645 for advance SIMD struct ld/st insn.
1646 (thumb2_record_decode_insn_handler): Replace stub handler with
1647 thumb2_record_asimd_struct_ld_st.
1648
1649 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1650
1651 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1652 for asimd, vfp and coprocessor insns.
1653 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1654 and coprocessor insns.
1655 (thumb2_record_coproc_insn): New function.
1656 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1657 handlers.
1658 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1659 opcode 110 insns.
1660
1661 2014-09-13 Doug Evans <xdje42@gmail.com>
1662
1663 * NEWS: Mention new "queue-signal" command.
1664 * infcmd.c (queue_signal_command): New function.
1665 (_initialize_infcmd): Add new queue-signal command.
1666
1667 2014-09-13 Doug Evans <xdje42@gmail.com>
1668
1669 * linux-nat.c (wait_lwp): Add debugging printf.
1670 (linux_nat_wait_1): Ditto.
1671
1672 2014-09-12 Pedro Alves <palves@redhat.com>
1673
1674 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1675 (create_and_insert_solib_event_breakpoint): New functions.
1676 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1677 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1678 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1679 (remove_dbx_link_breakpoint): Delete function.
1680 (insert_dbx_link_bpt_in_file): Use
1681 create_and_insert_solib_event_breakpoint instead of
1682 deprecated_insert_raw_breakpoint.
1683 (procfs_wait): Don't check whether we hit __dbx_link here.
1684 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1685 here.
1686 * solib-irix.c (base_breakpoint): Delete global.
1687 (disable_break): Delete function.
1688 (enable_break): Use create_solib_event_breakpoint
1689 instead of deprecated_insert_raw_breakpoint.
1690 (irix_solib_handle_event): New function.
1691 (irix_solib_create_inferior_hook): Don't run the target or disable
1692 the mapping-complete breakpoint here.
1693 (_initialize_irix_solib): Install irix_solib_handle_event as
1694 so_ops->handle_event hook.
1695
1696 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1697 Ulrich Weigand  <uweigand@de.ibm.com>
1698
1699 PR tdep/17379
1700 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1701 instead of read_memory_unsigned_integer.
1702
1703 2014-09-12 Gary Benson <gbenson@redhat.com>
1704
1705 * nat/linux-waitpid.c: Include common-defs.h.
1706 [GDBSERVER]: Add FIXME comment.
1707 [!GDBSERVER]: Don't include defs.h or signal.h.
1708 (linux_debug) [!GDBSERVER]: Remove empty block.
1709
1710 2014-09-12 Gary Benson <gbenson@redhat.com>
1711
1712 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1713 Don't include defs.h or server.h.
1714
1715 2014-09-12 Gary Benson <gbenson@redhat.com>
1716
1717 * nat/linux-btrace.c: Include common-defs.h.
1718 Don't include defs.h, server.h or gdbthread.h.
1719 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1720
1721 2014-09-12 Gary Benson <gbenson@redhat.com>
1722
1723 * common/agent.c: Include common-defs.h.
1724 Don't include defs.h or server.h.
1725 * common/buffer.c: Likewise.
1726 * common/common-debug.c: Likewise.
1727 * common/common-utils.c: Likewise.
1728 * common/errors.c: Likewise.
1729 * common/filestuff.c: Likewise.
1730 * common/format.c: Likewise.
1731 * common/gdb_vecs.c: Likewise.
1732 * common/print-utils.c: Likewise.
1733 * common/ptid.c: Likewise.
1734 * common/rsp-low.c: Likewise.
1735 * common/signals.c: Likewise.
1736 * common/vec.c: Likewise.
1737 * common/xml-utils.c: Likewise.
1738 * nat/linux-osdata.c: Likewise.
1739 * nat/linux-procfs.c: Likewise.
1740 * nat/linux-ptrace.c: Likewise.
1741 * nat/mips-linux-watch.c: Likewise.
1742 * target/waitstatus.c: Likewise.
1743
1744 2014-09-12 Tom Tromey <tromey@redhat.com>
1745 Gary Benson <gbenson@redhat.com>
1746
1747 * common/common-regcache.h: New file.
1748 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1749 * regcache.h: Include common-regcache.h.
1750 (regcache_read_pc): Don't declare.
1751 * regcache.c (get_thread_regcache_for_ptid): New function.
1752 * nat/linux-btrace.c: Don't include regcache.h.
1753 Include common-regcache.h.
1754 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1755
1756 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1757
1758 * regcache.h (struct regset): Declare.
1759
1760 2014-09-11 Pedro Alves <palves@redhat.com>
1761
1762 PR gdb/17347
1763 * main.c: Include "infrun.h".
1764 (catch_command_errors, catch_command_errors_const): Wait for the
1765 foreground command to complete.
1766 * top.c (maybe_wait_sync_command_done): New function, factored out
1767 from ...
1768 (maybe_wait_sync_command_done): ... here.
1769 * top.h (maybe_wait_sync_command_done): New declaration.
1770
1771 2014-09-11 Tom Tromey <tromey@redhat.com>
1772 Gary Benson <gbenson@redhat.com>
1773
1774 * common/symbol.h: New file.
1775 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1776 * minsyms.c (find_minimal_symbol_address): New function.
1777 * common/agent.c: Include common/symbol.h.
1778 [!GDBSERVER]: Don't include objfiles.h.
1779 (agent_look_up_symbols): Use find_minimal_symbol_address.
1780
1781 2014-09-11 Gary Benson <gbenson@redhat.com>
1782
1783 * target/target.h (target_stop_ptid, target_continue_ptid):
1784 Declare.
1785 * target.c (target_stop_ptid, target_continue_ptid): New
1786 functions.
1787 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1788 (agent_run_command): Always use target_stop_ptid and
1789 target_continue_ptid.
1790
1791 2014-09-11 Tom Tromey <tromey@redhat.com>
1792 Gary Benson <gbenson@redhat.com>
1793
1794 * target/target.h: New file.
1795 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1796 * target.h: Include target/target.h.
1797 (target_read_memory, target_write_memory): Don't declare.
1798 * target.c (target_read_uint32): New function.
1799 * common/agent.c: Include target/target.h.
1800 [!GDBSERVER]: Don't include target.h.
1801 (helper_thread_id): Type changed to uint32_t.
1802 (agent_get_helper_thread_id): Use target_read_uint32.
1803 (agent_run_command): Always use target_read_memory and
1804 target_write_memory.
1805 (agent_capability): Type changed to uint32_t.
1806 (agent_capability_check): Use target_read_uint32.
1807
1808 2014-09-11 Gary Benson <gbenson@redhat.com>
1809
1810 * common/common-debug.h (show_debug_regs): Declare.
1811 * common/common-debug.c (show_debug_regs): Define.
1812 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1813 all uses with show_debug_regs. Replace all uses that considered
1814 debug_hw_points as a multi-value integer with straight boolean
1815 uses.
1816 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1817 with show_debug_regs.
1818 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1819 all uses with show_debug_regs.
1820 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1821 uses with show_debug_regs.
1822
1823 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1824
1825 * findvar.c (address_from_register): Handle targets requiring
1826 a special conversion routine even for plain pointer types.
1827
1828 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1829
1830 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1831 (store_register): Do not call exec_one_dummy_insn.
1832
1833 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1834
1835 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1836 dereference it first. Use value_enclosing_type instead of
1837 value_type.
1838 (ada_array_length): Likewise.
1839
1840 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1841
1842 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1843 Adjust function implementation and documentation accordingly.
1844 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1845 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1846 Update call to ada_value_ptr_subscript.
1847
1848 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1849
1850 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1851 instead of VAL's type.
1852
1853 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1854
1855 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1856
1857 2014-09-09 Doug Evans <xdje42@gmail.com>
1858
1859 PR guile/17367
1860 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1861 last parameter to pkg-config, not first.
1862 * configure.ac: Pass --with-guile provided pkg-config path to
1863 GDB_GUILE_PROGRAM_NAMES.
1864 * configure: Regenerate.
1865
1866 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1867
1868 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1869 Bertazi".
1870
1871 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1872
1873 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1874 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1875 the list of sections determining GDB_OSABI_IRIX.
1876
1877 2014-09-09 James Hogan <james.hogan@imgtec.com>
1878
1879 * MAINTAINERS (Write After Approval): Add "James Hogan".
1880
1881 2014-09-09 James Hogan <james.hogan@imgtec.com>
1882
1883 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1884
1885 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1886
1887 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1888
1889 2014-09-08 Doug Evans <xdje42@gmail.com>
1890
1891 PR 17247
1892 * guile.c: #include <signal.h>.
1893 (_initialize_guile): Block SIGCHLD while initializing Guile.
1894
1895 Replaces the following, which is reverted.
1896
1897 2014-07-26 Doug Evans <xdje42@gmail.com>
1898
1899 PR 17185
1900 * configure.ac: Add check for header gc/gc.h.
1901 Add check for function setenv.
1902 * configure: Regenerate.
1903 * config.in: Regenerate.
1904 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1905
1906 2014-09-08 Doug Evans <xdje42@gmail.com>
1907
1908 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1909 with named constant. Fix style of pointer comparison.
1910 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1911
1912 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1913
1914 PR gdb/17035
1915 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1916 decide whether we display the command on "show user".
1917 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1918 printing command name.
1919 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1920 * cli/cli-decode.c (cli_user_command_p): Create helper function
1921 to verify whether cmd_list_element is a user-defined command.
1922
1923 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1924
1925 PR python/17355
1926 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1927 Fix goto out of TRY_CATCH.
1928
1929 2014-09-06 Doug Evans <xdje42@gmail.com>
1930 Tom Tromey <tromey@redhat.com>
1931
1932 PR 15276
1933 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1934 $_any_caller_matches.
1935 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1936 * python/lib/gdb/function/caller_is.py: New file.
1937
1938 2014-09-06 Doug Evans <xdje42@gmail.com>
1939
1940 * infcmd.c (program_info): Fix typo.
1941
1942 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1943
1944 PR gdb/17235
1945 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1946 'number'. New variable 'has_digit'. Rewrite code to deal with
1947 subexpressions on SDT probes.
1948
1949 2014-09-04 Pedro Alves <palves@redhat.com>
1950
1951 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1952 the input is only one character long.
1953
1954 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1955
1956 PR fortran/17237
1957 * f-valprint.c (f_val_print): Specify the correct print option to
1958 use when printing integer values.
1959
1960 2014-09-04 Gary Benson <gbenson@redhat.com>
1961
1962 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1963 Remove code to cope with LWPs wrapped as PIDs.
1964 Add assertions to ensure no wrapped LWPs are passed.
1965
1966 2014-09-04 Pedro Alves <palves@redhat.com>
1967
1968 * value.c (value_ranges_copy_adjusted): New function, factored out
1969 from ...
1970 (value_contents_copy_raw): ... here.
1971 (unpack_value_bits_as_long_1): Rename back to ...
1972 (unpack_bits_as_long): ... this. Remove 'original_value' and
1973 'result' parameters. Change return type to LONGEST.
1974 (unpack_value_bits_as_long): Delete.
1975 (unpack_value_field_as_long_1): Delete.
1976 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1977 (unpack_value_bitfield): New function.
1978 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1979 (value_fetch_lazy): Use unpack_value_bitfield.
1980 * value.h (unpack_value_bits_as_long): Delete declaration.
1981
1982 2014-09-03 Sasha Smundak <asmundak@google.com>
1983
1984 * python/py-frame.c (frapy_read_register): New function.
1985
1986 2014-09-03 James Hogan <james.hogan@imgtec.com>
1987
1988 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1989 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1990
1991 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1992
1993 PR python/16699
1994 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1995 function.
1996 (add_cmd): Set "completer_handle_brkchars" to NULL.
1997 * cli/cli-decode.h (struct cmd_list_element)
1998 <completer_handle_brkchars>: New field.
1999 * command.h (completer_ftype_void): New typedef.
2000 (set_cmd_completer_handle_brkchars): New prototype.
2001 * completer.c (set_gdb_completion_word_break_characters): New
2002 function.
2003 (complete_line_internal): Call "completer_handle_brkchars"
2004 callback from command.
2005 * completer.h: Include "command.h".
2006 (set_gdb_completion_word_break_characters): New prototype.
2007 * python/py-cmd.c (cmdpy_completer_helper): New function.
2008 (cmdpy_completer_handle_brkchars): New function.
2009 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2010 (cmdpy_init): Set completer_handle_brkchars to
2011 cmdpy_completer_handle_brkchars.
2012
2013 2014-09-03 Gary Benson <gbenson@redhat.com>
2014
2015 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2016 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2017 Loop conditions changed to equivalent form.
2018 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2019 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2020 ALL_DEBUG_ADDRESS_REGISTERS.
2021
2022 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2023
2024 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2025 description fix.
2026
2027 2014-09-02 Doug Evans <dje@google.com>
2028
2029 * typeprint.c (find_global_typedef): Fix comment.
2030
2031 2014-09-02 Gary Benson <gbenson@redhat.com>
2032
2033 * i386-nat.h: Renamed as...
2034 * x86-nat.h: New file. All type, function and variable name
2035 prefixes changed from "i386_" to "x86_". All references updated.
2036 * i386-nat.c: Renamed as...
2037 * x86-nat.c: New file. All type, function and variable name
2038 prefixes changed from "i386_" to "x86_". All references updated.
2039 * common/i386-xstate.h: Renamed as...
2040 * common/x86-xstate.h: New file. All type, function and variable
2041 name prefixes changed from "i386_" to "x86_". All references
2042 updated.
2043 * nat/i386-cpuid.h: Renamed as...
2044 * nat/x86-cpuid.h: New file. All type, function and variable name
2045 prefixes changed from "i386_" to "x86_". All references updated.
2046 * nat/i386-gcc-cpuid.h: Renamed as...
2047 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2048 name prefixes changed from "i386_" to "x86_". All references
2049 updated.
2050 * nat/i386-dregs.h: Renamed as...
2051 * nat/x86-dregs.h: New file. All type, function and variable name
2052 prefixes changed from "i386_" to "x86_". All references updated.
2053 * nat/i386-dregs.c: Renamed as...
2054 * nat/x86-dregs.c: New file. All type, function and variable name
2055 prefixes changed from "i386_" to "x86_". All references updated.
2056
2057 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2058
2059 * varobj.c (_initialize_varobj): Move to the end of file.
2060
2061 2014-08-29 Gary Benson <gbenson@redhat.com>
2062
2063 * common/common-exceptions.h: New file.
2064 * common/common-exceptions.c: Likewise.
2065 * Makefile.in (SFILES): Add common/common-exceptions.c.
2066 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2067 (COMMON_OBS): Add common-exceptions.o.
2068 (common-exceptions.o): New rule.
2069 * exceptions.h (common-exceptions.h): Include.
2070 (gdb_setjmp.h): Do not include.
2071 (return_reason): Moved to common-exceptions.h.
2072 (enum return_reason): Likewise.
2073 (RETURN_MASK): Likewise.
2074 (typedef return_mask): Likewise.
2075 (enum errors): Likewise.
2076 (struct gdb_exception): Likewise.
2077 (exceptions_state_mc_init): Likewise.
2078 (exceptions_state_mc_action_iter): Likewise.
2079 (exceptions_state_mc_action_iter_1): Likewise.
2080 (TRY_CATCH): Likewise.
2081 (throw_exception): Likewise.
2082 (throw_verror): Likewise.
2083 (throw_vquit): Likewise.
2084 (throw_error): Likewise.
2085 (throw_quit): Likewise.
2086 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2087 (enum catcher_action): Likewise.
2088 (struct catcher): Likewise.
2089 (current_catcher): Likewise.
2090 (catcher_list_size): Likewise.
2091 (exceptions_state_mc_init): Likewise.
2092 (catcher_pop): Likewise.
2093 (exceptions_state_mc): Likewise.
2094 (exceptions_state_mc_action_iter): Likewise.
2095 (exceptions_state_mc_action_iter_1): Likewise.
2096 (throw_exception): Likewise.
2097 (exception_messages): Likewise.
2098 (exception_messages_size): Likewise.
2099 (throw_it): Likewise.
2100 (throw_verror): Likewise.
2101 (throw_vquit): Likewise.
2102 (throw_error): Likewise.
2103 (throw_quit): Likewise.
2104 (prepare_to_throw_exception): New function.
2105
2106 2014-08-29 Gary Benson <gbenson@redhat.com>
2107
2108 * common/gdb_setjmp.h: New file.
2109 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2110 * configure.ac: Move sigsetjmp check...
2111 * common/common.m4: ...here.
2112 * configure: Regenerate.
2113 * cp-support.c (SIGJMP_BUF): Delete.
2114 (SIGSETJMP): Likewise.
2115 (SIGLONGJMP): Likewise.
2116 * exceptions.h (gdb_setjmp.h): Include.
2117 (setjmp.h): Do not include.
2118 (EXCEPTIONS_SIGJMP_BUF): Delete.
2119 (EXCEPTIONS_SIGSETJMP): Likewise.
2120 (EXCEPTIONS_SIGLONGJMP): Likewise.
2121 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2122 from gdb_setjmp.h.
2123 * exceptions.c: Likewise.
2124
2125 2014-08-29 Gary Benson <gbenson@redhat.com>
2126
2127 * cleanups.h: Moved to...
2128 * common/cleanups.h: New file.
2129 * cleanups.c: Moved to...
2130 * common/cleanups.c: New file. Include common-defs.h and
2131 cleanups.h. Do not include defs.h.
2132 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2133 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2134 (cleanups.o): New rule.
2135
2136 2014-08-29 Gary Benson <gbenson@redhat.com>
2137
2138 * common/errors.h (internal_warning): New declaration.
2139 (internal_vwarning): Likewise.
2140 * common/errors.c (internal_warning): New function.
2141 * utils.h (internal_warning): Don't declare.
2142 (internal_vwarning): Likewise.
2143 * utils.c (internal_warning): Removed.
2144
2145 2014-08-29 Gary Benson <gbenson@redhat.com>
2146
2147 * main.c (captured_main): Use warning during startup.
2148 Prefix startup warning messages with command name.
2149
2150 2014-08-29 Gary Benson <gbenson@redhat.com>
2151
2152 * main.c (captured_main): Handle usage errors with error.
2153
2154 2014-08-29 Gary Benson <gbenson@redhat.com>
2155
2156 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2157 exit pair with a call to error. Wrap the message with _().
2158
2159 2014-08-29 Gary Benson <gbenson@redhat.com>
2160
2161 * main.c (captured_main): Replace a fprintf/exit
2162 pair with a call to error. Wrap the message with _().
2163
2164 2014-08-29 Gary Benson <gbenson@redhat.com>
2165
2166 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2167 pairs with calls to error. Wrap the message with _().
2168
2169 2014-08-29 Gary Benson <gbenson@redhat.com>
2170
2171 * utils.c (vwarning): Protect calls to target_terminal_ours
2172 and wrap_here.
2173
2174 2014-08-29 Gary Benson <gbenson@redhat.com>
2175
2176 * exceptions.c (print_flush): Protect calls to
2177 target_terminal_ours and wrap_here.
2178
2179 2014-08-29 Gary Benson <gbenson@redhat.com>
2180
2181 * utils.h (filtered_printing_initialized): New declaration.
2182 * utils.c (abort_with_message): New function.
2183 (internal_vproblem): Use abort_with_message for first level
2184 recursive internal problems, and if gdb_stderr is not set up.
2185 Protect calls to target_terminal_ours, begin_line and query.
2186
2187 2014-08-28 Doug Evans <dje@google.com>
2188
2189 * symtab.c (in_prologue): Move definition to better spot.
2190 (skip_prologue_using_sal): Ditto.
2191
2192 2014-08-28 Doug Evans <dje@google.com>
2193
2194 * symtab.c (find_function_start_sal): Move definition to better spot.
2195
2196 2014-08-28 Yao Qi <yao@codesourcery.com>
2197
2198 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2199 found_stack_adjust in forward scan. Remove condition check
2200 on found_stack_adjust which is always true. Indent the code.
2201
2202 2014-08-28 Yao Qi <yao@codesourcery.com>
2203
2204 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2205 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2206 (dwarf_decode_lines): Remove argument
2207 want_line_info. Remove condition check on want_line_info.
2208 Callers update.
2209
2210 2014-08-27 Doug Evans <dje@google.com>
2211
2212 * dwarf2read.c (dwarf_record_line): Fix typo.
2213
2214 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2215
2216 * target.h (struct target_ops::to_terminal_save_ours): Remove
2217 declaration.
2218 (target_terminal_save_ours): Remove macro.
2219 * target-delegates.c: Regenerate.
2220 * inf-child.c (inf_child_target): Don't set the nonexistent
2221 field to_terminal_save_ours.
2222 * inferior.h (child_terminal_save_ours): Remove declaration.
2223 * terminal.h (gdb_save_tty_state): New declaration.
2224 * inflow.c (child_terminal_save_ours): Rename to ...
2225 (gdb_save_tty_state): ... this.
2226 * tui/tui.c: Include terminal.h.
2227 (tui_enable): Use gdb_save_tty_state instead of
2228 target_terminal_save_ours.
2229 (tui_disable): Likewise.
2230
2231 2014-08-25 Doug Evans <dje@google.com>
2232
2233 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2234 Pass NULL instead of 0 for context pointer.
2235
2236 2014-08-25 Yao Qi <yao@codesourcery.com>
2237
2238 * dwarf2read.c: Fix grammatical error.
2239
2240 2014-08-24 Yao Qi <yao@codesourcery.com>
2241
2242 * dwarf2read.c (scan_partial_symbols): Update comments.
2243 Rename argument 'need_pc' with 'set_addrmap'.
2244 (add_partial_namespace): Rename argument 'need_pc' with
2245 'set_addrmap'.
2246 (add_partial_module): Likewise.
2247 (add_partial_subprogram): Likewise. Update comments.
2248 (dwarf2_name): Fix typo.
2249
2250 2014-08-22 Doug Evans <dje@google.com>
2251
2252 PR 17276
2253 * dwarf2read.c (dwarf_record_line_p): New function.
2254 (dwarf_decode_lines_1): Ignore subsequent line number entries
2255 for the same line if any entry had a non-zero discriminator.
2256
2257 2014-08-22 Doug Evans <dje@google.com>
2258
2259 * buildsym.h (record_line_ftype): New typedef.
2260 (record_line): Use it.
2261 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2262 (dwarf_decode_lines_1): Call them.
2263
2264 2014-08-22 Yao Qi <yao@codesourcery.com>
2265
2266 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2267 (ctf_end): Remove code.
2268
2269 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2270
2271 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2272 (linux_make_corefile_notes): call update_thread_list, protected against
2273 exceptions.
2274
2275 2014-08-21 Pedro Alves <palves@redhat.com>
2276
2277 * infcmd.c (attach_command): Remove comment.
2278
2279 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2280
2281 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2282 unsigned LONGEST to ULONGEST.
2283
2284 2014-08-20 Pedro Alves <palves@redhat.com>
2285
2286 * Makefile.in (check-read1): New rule.
2287
2288 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2289
2290 * value.c (value_from_contents_and_address): Strip resolved_type's
2291 typedef layers before checking its TYPE_DATA_LOCATION.
2292
2293 2014-08-20 Pedro Alves <palves@redhat.com>
2294
2295 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2296
2297 2014-08-20 Yao Qi <yao@codesourcery.com>
2298
2299 * amd64-tdep.c (amd64_classify): Add a blank line after the
2300 example. Move "*/" to a new line.
2301 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2302 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2303 * dwarf2read.c (psymtab_include_file_name): Likewise.
2304
2305 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2306 Pedro Alves <palves@redhat.com>
2307
2308 PR symtab/14604
2309 PR symtab/14605
2310 * ada-lang.c (coerce_unspec_val_to_type): Use
2311 value_contents_copy_raw.
2312 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2313 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2314 * cp-valprint.c (cp_print_value_fields): Let the common printing
2315 code handle optimized out values.
2316 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2317 * d-valprint.c (dynamic_array_type): Use
2318 value_bits_any_optimized_out.
2319 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2320 check_any_valid fields.
2321 (check_pieced_value_bits): Delete and inline ...
2322 (check_pieced_synthetic_pointer): ... here.
2323 (check_pieced_value_validity): Delete.
2324 (check_pieced_value_invalid): Delete.
2325 (pieced_value_funcs): Remove check_validity and check_any_valid
2326 fields.
2327 (read_pieced_value): Use mark_value_bits_optimized_out.
2328 (write_pieced_value): Switch to use
2329 mark_value_bytes_optimized_out.
2330 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2331 of assuming the whole value is optimized out.
2332 * findvar.c (read_frame_register_value): Remove special handling
2333 of optimized out registers.
2334 (value_from_register): Use mark_value_bytes_optimized_out.
2335 * frame-unwind.c (frame_unwind_got_optimized): Use
2336 mark_value_bytes_optimized_out.
2337 * jv-valprint.c (java_value_print): Adjust.
2338 (java_print_value_fields): Let the common printing code handle
2339 optimized out values.
2340 * mips-tdep.c (mips_print_register): Remove special handling of
2341 optimized out registers.
2342 * opencl-lang.c (lval_func_check_validity): Delete.
2343 (lval_func_check_any_valid): Delete.
2344 (opencl_value_funcs): Remove check_validity and check_any_valid
2345 fields.
2346 * p-valprint.c (pascal_object_print_value_fields): Let the common
2347 printing code handle optimized out values.
2348 * stack.c (read_frame_arg): Remove special handling of optimized
2349 out values. Fetch both VAL and ENTRYVAL before comparing
2350 contents. Adjust to value_available_contents_eq rename.
2351 * valprint.c (valprint_check_validity)
2352 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2353 (val_print_array_elements): Adjust.
2354 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2355 (value_bits_any_optimized_out): New function.
2356 (value_entirely_covered_by_range_vector): New function, factored
2357 out from value_entirely_unavailable.
2358 (value_entirely_unavailable): Reimplement.
2359 (value_entirely_optimized_out): New function.
2360 (insert_into_bit_range_vector): New function, factored out from
2361 mark_value_bits_unavailable.
2362 (mark_value_bits_unavailable): Reimplement.
2363 (struct ranges_and_idx): New struct.
2364 (find_first_range_overlap_and_match): New function, factored out
2365 from value_available_contents_bits_eq.
2366 (value_available_contents_bits_eq): Rename to ...
2367 (value_contents_bits_eq): ... this. Check both unavailable
2368 contents and optimized out contents.
2369 (value_available_contents_eq): Rename to ...
2370 (value_contents_eq): ... this.
2371 (allocate_value_lazy): Remove reference to the old optimized_out
2372 boolean.
2373 (allocate_optimized_out_value): Use
2374 mark_value_bytes_optimized_out.
2375 (require_not_optimized_out): Adjust to check whether the
2376 optimized_out vec is empty.
2377 (ranges_copy_adjusted): New function, factored out from
2378 value_contents_copy_raw.
2379 (value_contents_copy_raw): Also copy the optimized out ranges.
2380 Assert the destination ranges aren't optimized out.
2381 (value_contents_copy): Update comment, remove call to
2382 require_not_optimized_out.
2383 (value_contents_equal): Adjust to check whether the optimized_out
2384 vec is empty.
2385 (set_value_optimized_out, value_optimized_out_const): Delete.
2386 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2387 New functions.
2388 (value_entirely_optimized_out, value_bits_valid): Delete.
2389 (value_copy): Take a VEC copy of the 'optimized_out' field.
2390 (value_primitive_field): Remove special handling of optimized out.
2391 (value_fetch_lazy): Assert that lazy values have no unavailable
2392 regions. Use value_bits_any_optimized_out. Remove some special
2393 handling for optimized out values.
2394 * value.h: Add intro comment about <optimized out> and
2395 <unavailable>.
2396 (struct lval_funcs): Remove check_validity and check_any_valid
2397 fields.
2398 (set_value_optimized_out, value_optimized_out_const): Remove.
2399 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2400 New declarations.
2401 (value_bits_any_optimized_out): New declaration.
2402 (value_bits_valid): Delete declaration.
2403 (value_available_contents_eq): Rename to ...
2404 (value_contents_eq): ... this, and extend comments.
2405
2406 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2407
2408 Fix -fsanitize=address on unreadable inferior strings.
2409 * valprint.c (val_print_string): Fix access before BUFFER.
2410
2411 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2412
2413 * target.c (target_struct_size): Remove.
2414 (target_struct_allocsize): Remove.
2415 (DEFAULT_ALLOCSIZE): Remove.
2416 (target_ops_p): New typedef.
2417 (DEF_VEC_P (target_ops_p)): New vector type.
2418 (target_structs): Change type to VEC (target_ops_p).
2419 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2420 (find_default_run_target): Rewrite for loop following changes to
2421 target_structs.
2422
2423 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2424
2425 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2426 Adjust code accordingly. Adjust function description comment.
2427
2428 2014-08-19 Yao Qi <yao@codesourcery.com>
2429
2430 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2431 types.
2432
2433 2014-08-19 Alan Modra <amodra@gmail.com>
2434
2435 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2436 * config.in: Regenerate.
2437 * configure: Regenerate.
2438
2439 2014-08-19 Tom Tromey <tromey@redhat.com>
2440 Gary Benson <gbenson@redhat.com>
2441
2442 * common/common-debug.h: New file.
2443 * common/common-debug.c: Likewise.
2444 * debug.c: Likewise.
2445 * Makefile.in (SFILES): Add common/common-debug.c.
2446 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2447 (COMMON_OBS): Add common-debug.o and debug.o.
2448 (common-debug.o): New rule.
2449 * common/common-defs.h: Include common-debug.h.
2450 * common/agent.c (debug_agent_printf): New function.
2451 (DEBUG_AGENT): Redefine.
2452 * nat/i386-dregs.c (debug_printf): Undefine.
2453
2454 2014-08-19 Gary Benson <gbenson@redhat.com>
2455
2456 * common/common-defs.h: Include print-utils.h.
2457 * utils.h: Do not include print-utils.h.
2458
2459 2014-08-19 Tom Tromey <tromey@redhat.com>
2460 Gary Benson <gbenson@redhat.com>
2461
2462 * common/common-types.h: New file.
2463 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2464 * common/common-defs.h: Include common-types.h.
2465 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2466 (ULONGEST): Remove.
2467
2468 2014-08-19 Tom Tromey <tromey@redhat.com>
2469 Gary Benson <gbenson@redhat.com>
2470
2471 * common/errors.h: New file.
2472 * common/errors.c: Likewise.
2473 * Makefile.in (SFILES): Add common/errors.c.
2474 (HFILES_NO_SRCDIR): Add common/errors.h.
2475 (COMMON_OBS): Add errors.o.
2476 (errors.o): New rule.
2477 * common/common-defs.h: Include errors.h.
2478 * utils.h (perror_with_name, error, verror, warning, vwarning):
2479 Don't declare.
2480 * common/common-utils.h: (malloc_failure, internal_error):
2481 Likewise.
2482
2483 2014-08-19 Gary Benson <gbenson@redhat.com>
2484
2485 * utils.c (internal_vproblem): Always print the message.
2486
2487 2014-08-18 Doug Evans <dje@google.com>
2488
2489 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2490
2491 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2492
2493 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2494 Return 0 if TYPE is dynamic.
2495 (print_range): Add handling of dynamic ranges.
2496
2497 2014-08-18 Keven Boell <keven.boell@intel.com>
2498 Joel Brobecker <brobecker@adacore.com>
2499
2500 * gdbtypes.h (struct main_type): Add field "data_location".
2501 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2502 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2503 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2504 a dynamic data location.
2505 (resolve_dynamic_type): Add DW_AT_data_location handling.
2506 (copy_recursive, copy_type): Copy the data_location information
2507 when present.
2508 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2509 * value.c (value_from_contents_and_address): Add
2510 DW_AT_data_location handling.
2511
2512 2014-08-18 Keven Boell <keven.boell@intel.com>
2513 Joel Brobecker <brobecker@adacore.com>
2514
2515 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2516 field "get_object_address".
2517 * dwarf2expr.c (execute_stack_op): Add handling for
2518 DW_OP_push_object_address.
2519 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2520 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2521 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2522 (dwarf_expr_get_obj_addr): New function.
2523 (dwarf_expr_ctx_funcs): Add get_object_address field.
2524 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2525 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2526 (dwarf2_evaluate_property): Add parameter "address". Use it.
2527 (needs_get_obj_addr): New function.
2528 (needs_frame_ctx_funcs): Add get_object_address field.
2529 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2530 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2531 (resolve_dynamic_array): Likewise.
2532
2533 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2534
2535 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2536 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2537 fixed value for records and unions for which some GNAT encodings
2538 are present.
2539
2540 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2541
2542 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2543 rewrite to avoid "else if" and "else" constructs. Should be
2544 a no-op in practice.
2545
2546 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2547
2548 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2549 of lexical block.
2550
2551 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2552
2553 PR c++/17132
2554 * eval.c: Update all calls to find_overload_match.
2555 * valarith.c: Likewise.
2556 (value_user_defined_cpp_op, value_user_defined_op): New
2557 argument NOSIDE. Update all callers.
2558 * valops.c (find_overload_match): New argument NOSIDE.
2559 * value.h (find_overload_match): Update signature.
2560
2561 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2562
2563 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2564 'items' methods instead of 'iteritems' method on dictionaries.
2565
2566 2014-08-15 Doug Evans <dje@google.com>
2567
2568 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2569 closer to use.
2570
2571 2014-08-15 Doug Evans <dje@google.com>
2572
2573 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2574
2575 2014-08-15 Doug Evans <dje@google.com>
2576
2577 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2578
2579 2014-08-15 Doug Evans <dje@google.com>
2580
2581 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2582 unused.
2583
2584 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2585
2586 * dcache.h: Include target.h, to avoid compile time warnings.
2587
2588 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2589
2590 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2591 frame_info" partial declaration.
2592 * gdbarch.h: Regenerate.
2593
2594 2014-08-15 Yao Qi <yao@codesourcery.com>
2595
2596 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2597 Add parameter 'decode_for_pst_p'. Callers update.
2598
2599 2014-08-13 Yao Qi <yao@codesourcery.com>
2600
2601 PR build/17104
2602 * configure.ac: Use local variable 'pos'.
2603 * configure: Regenerated.
2604
2605 2014-08-11 Doug Evans <dje@google.com>
2606
2607 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2608 message, it is redundant with "Reading symbols from ..." message.
2609
2610 2014-08-10 Doug Evans <xdje42@gmail.com>
2611
2612 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2613
2614 2014-08-09 Yao Qi <yao@codesourcery.com>
2615
2616 PR remote/9053
2617 * remote.c (remote_xfer_partial): Remove dead code.
2618
2619 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2620
2621 * ia64-linux-tdep.c: Include "regset.h".
2622 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2623 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2624 (ia64_linux_supply_fpregset): New function.
2625 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2626 (ia64_linux_regset_from_core_section): New function.
2627 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2628 method.
2629
2630 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2631
2632 * m68klinux-tdep.c: Include "regset.h".
2633 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2634 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2635 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2636 (m68k_linux_regset_from_core_section): New function.
2637 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2638 method.
2639
2640 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2641
2642 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2643 function. Move logic to...
2644 (tilegx_linux_regmap): ... this new register map.
2645 (tilegx_linux_regset): Refer to register map, replace supply
2646 method by regcache_supply_regset, and add collect method.
2647 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2648 TILEGX_FIRST_EASY_REGNUM.
2649
2650 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2651
2652 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2653 that calls regcache_supply_regset and handles the EPC register
2654 separately. Move main logic to...
2655 (score7_linux_gregmap): ... this new register map.
2656 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2657 (score7_linux_gregset): Refer to register map. Add collect method.
2658 (score7_linux_regset_from_core_section): Replace
2659 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2660 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2661 (struct regset): Delete unused forward declaraction.
2662 (struct pt_regs): Delete structure definition.
2663 (elf_gregset_t): Delete typedef.
2664
2665 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2666
2667 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2668 (nios2_core_regset): Add collect method.
2669
2670 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2671
2672 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2673 platform-independent and don't write to read-only input buffer.
2674 (m32r_linux_collect_gregset): New function.
2675 (m32r_linux_gregset): Add collect method.
2676
2677 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2678
2679 * hppa-linux-tdep.c (greg_map): Rename to...
2680 (hppa_linux_gregmap): ... this. Also convert to
2681 regcache_map_entry format.
2682 (hppa_linux_supply_regset): Delete function.
2683 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2684 (hppa_linux_fpregmap): ... this new register map.
2685 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2686 register map, replace supply method by regcache_supply_regset, and
2687 add collect method regcache_collect_regset.
2688
2689 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2690
2691 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2692 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2693 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2694 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2695 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2696 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2697 (frv_linux_supply_gregset): Replace main logic by call to
2698 regcache_supply_regset, but keep clearing gr32-gr63.
2699 (frv_linux_supply_fpregset): Delete function.
2700 (frv_linux_gregset): Refer to appropriate register map and add
2701 regcache_collect_regset as the collect method.
2702 (frv_linux_fpregset): Likewise. Also exchange the supply method
2703 by regcache_supply_regset.
2704
2705 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2706
2707 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2708 by call to alpha_supply_int_regs.
2709 (alpha_linux_collect_gregset): New function.
2710 (alpha_linux_supply_fpregset): Replace logic by call to
2711 alpha_supply_fp_regs.
2712 (alpha_linux_collect_fpregset): New function.
2713 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2714
2715 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2716
2717 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2718 by call to regcache_collect_regset.
2719 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2720 instead of aarch64_linux_supply_gregset/_fpregset.
2721 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2722 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2723 header file instead.
2724 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2725 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2726 functions. Move logic to ...
2727 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2728 register maps.
2729 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2730 refer to new register maps, replace *_regset_from_core by
2731 regcache_supply_regset, and also use regcache_collect_regset.
2732 * aarch64-linux-tdep.h: Include "regset.h".
2733 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2734 Delete prototypes.
2735 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2736 macros, moved from C source file.
2737 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2738 variable declarations.
2739
2740 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2741
2742 * s390-linux-nat.c: Include "regset.h".
2743 (regmap_gregset): Delete macro.
2744 (s390_64_regmap_gregset): New register map for
2745 regcache_supply/_collect_regset.
2746 (s390_64_gregset): New regset.
2747 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2748 (regmap_fpregset): Delete macro.
2749 (s390_native_supply, s390_native_collect): Delete functions.
2750 (supply_gregset, fill_gregset): Replace s390-specific regmap
2751 handling by a call to regcache_supply/_collect_regset.
2752 (supply_fpregset, fill_fpregset): Call regcache_supply/
2753 _collect_regset instead of s390_native_supply/_collect.
2754 (fetch_regset, store_regset): Likewise. Also change the last
2755 parameter to a regset instead of a regmap.
2756 (s390_linux_fetch_inferior_registers)
2757 (390_linux_store_inferior_registers): Adjust last parameter in
2758 calls to fetch_regset and store_regset.
2759 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2760 (s390_gregmap): ... this. Also make static const and convert to
2761 regcache_map_entry format.
2762 (s390x_regmap_gregset): Delete.
2763 (s390_regmap_fpregset): Rename to...
2764 (s390_fpregmap): ... this. Make static const and convert to
2765 regcache_map_entry format.
2766 (s390_regmap_upper, s390_regmap_last_break)
2767 (s390x_regmap_last_break, s390_regmap_system_call)
2768 (s390_regmap_tdb): Likewise.
2769 (s390_supply_regset, s390_collect_regset): Remove functions.
2770 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2771 s390_supply_regset.
2772 (s390_gregset, s390_fpregset, s390_upper_regset)
2773 (s390_last_break_regset, s390x_last_break_regset)
2774 (s390_system_call_regset, s390_tdb_regset): Make global and
2775 replace s390_supply/_collect_regset by regcache_supply/
2776 _collect_regset.
2777 (s390x_gregset): Delete.
2778 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2779 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2780 (s390_regmap_fpregset, s390_regmap_last_break)
2781 (s390x_regmap_last_break, s390_regmap_system_call)
2782 (s390_regmap_tdb): Delete global variable declarations.
2783 (s390_gregset, s390_fpregset, s390_last_break_regset)
2784 (s390x_last_break_regset, s390_system_call_regset)
2785 (s390_tdb_regset): New global variable declarations.
2786
2787 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2788
2789 * regcache.c: Include "regset.h".
2790 (regcache_transfer_regset): New local function.
2791 (regcache_supply_regset, regcache_collect_regset): New functions.
2792 * regcache.h (struct regcache_map_entry): New structure.
2793 (REGCACHE_MAP_SKIP): New enum value.
2794 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2795
2796 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2797
2798 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2799 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2800 (ppc_linux_collect_gregset ): Likewise.
2801 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2802 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2803 (ppc_collect_vrregset): Likewise.
2804 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2805 Likewise.
2806
2807 2014-08-07 Yao Qi <yao@codesourcery.com>
2808
2809 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2810 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2811 * remote.c (remote_read_bytes): Likewise.
2812
2813 2014-08-07 Yao Qi <yao@codesourcery.com>
2814
2815 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2816
2817 2014-08-07 Yao Qi <yao@codesourcery.com>
2818
2819 PR remote/17230
2820 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2821 TARGET_XFER_OK instead of 0.
2822
2823 2014-08-07 Gary Benson <gbenson@redhat.com>
2824
2825 * common/common-defs.h: Include errno.h.
2826 * defs.h: Do not include errno.h.
2827 * ada-typeprint.c: Likewise.
2828 * c-typeprint.c: Likewise.
2829 * core-regset.c: Likewise.
2830 * corefile.c: Likewise.
2831 * corelow.c: Likewise.
2832 * event-loop.c: Likewise.
2833 * f-typeprint.c: Likewise.
2834 * gnu-nat.c: Likewise.
2835 * go32-nat.c: Likewise.
2836 * i386gnu-nat.c: Likewise.
2837 * m2-typeprint.c: Likewise.
2838 * nat/linux-btrace.c: Likewise.
2839 * p-typeprint.c: Likewise.
2840 * procfs.c: Likewise.
2841 * remote-sim.c: Likewise.
2842 * rs6000-nat.c: Likewise.
2843 * target.c: Likewise.
2844 * typeprint.c: Likewise.
2845 * ui-file.c: Likewise.
2846 * valops.c: Likewise.
2847 * valprint.c: Likewise.
2848
2849 2014-08-07 Gary Benson <gbenson@redhat.com>
2850
2851 * common/common-defs.h: Include string.h.
2852 * aarch64-tdep.c: Do not include string.h.
2853 * ada-exp.y: Likewise.
2854 * ada-lang.c: Likewise.
2855 * ada-lex.l: Likewise.
2856 * ada-typeprint.c: Likewise.
2857 * ada-valprint.c: Likewise.
2858 * aix-thread.c: Likewise.
2859 * alpha-linux-tdep.c: Likewise.
2860 * alpha-mdebug-tdep.c: Likewise.
2861 * alpha-nat.c: Likewise.
2862 * alpha-osf1-tdep.c: Likewise.
2863 * alpha-tdep.c: Likewise.
2864 * alphanbsd-tdep.c: Likewise.
2865 * amd64-dicos-tdep.c: Likewise.
2866 * amd64-linux-tdep.c: Likewise.
2867 * amd64-nat.c: Likewise.
2868 * amd64-sol2-tdep.c: Likewise.
2869 * amd64fbsd-tdep.c: Likewise.
2870 * amd64obsd-tdep.c: Likewise.
2871 * arch-utils.c: Likewise.
2872 * arm-linux-nat.c: Likewise.
2873 * arm-linux-tdep.c: Likewise.
2874 * arm-tdep.c: Likewise.
2875 * arm-wince-tdep.c: Likewise.
2876 * armbsd-tdep.c: Likewise.
2877 * armnbsd-nat.c: Likewise.
2878 * armnbsd-tdep.c: Likewise.
2879 * armobsd-tdep.c: Likewise.
2880 * avr-tdep.c: Likewise.
2881 * ax-gdb.c: Likewise.
2882 * ax-general.c: Likewise.
2883 * bcache.c: Likewise.
2884 * bfin-tdep.c: Likewise.
2885 * breakpoint.c: Likewise.
2886 * build-id.c: Likewise.
2887 * buildsym.c: Likewise.
2888 * c-exp.y: Likewise.
2889 * c-lang.c: Likewise.
2890 * c-typeprint.c: Likewise.
2891 * c-valprint.c: Likewise.
2892 * charset.c: Likewise.
2893 * cli-out.c: Likewise.
2894 * cli/cli-cmds.c: Likewise.
2895 * cli/cli-decode.c: Likewise.
2896 * cli/cli-dump.c: Likewise.
2897 * cli/cli-interp.c: Likewise.
2898 * cli/cli-logging.c: Likewise.
2899 * cli/cli-script.c: Likewise.
2900 * cli/cli-setshow.c: Likewise.
2901 * cli/cli-utils.c: Likewise.
2902 * coffread.c: Likewise.
2903 * common/agent.c: Likewise.
2904 * common/buffer.c: Likewise.
2905 * common/buffer.h: Likewise.
2906 * common/common-utils.c: Likewise.
2907 * common/filestuff.c: Likewise.
2908 * common/filestuff.c: Likewise.
2909 * common/format.c: Likewise.
2910 * common/print-utils.c: Likewise.
2911 * common/rsp-low.c: Likewise.
2912 * common/signals.c: Likewise.
2913 * common/vec.h: Likewise.
2914 * common/xml-utils.c: Likewise.
2915 * core-regset.c: Likewise.
2916 * corefile.c: Likewise.
2917 * corelow.c: Likewise.
2918 * cp-abi.c: Likewise.
2919 * cp-name-parser.y: Likewise.
2920 * cp-support.c: Likewise.
2921 * cp-valprint.c: Likewise.
2922 * cris-tdep.c: Likewise.
2923 * d-exp.y: Likewise.
2924 * darwin-nat.c: Likewise.
2925 * dbxread.c: Likewise.
2926 * dcache.c: Likewise.
2927 * demangle.c: Likewise.
2928 * dicos-tdep.c: Likewise.
2929 * disasm.c: Likewise.
2930 * doublest.c: Likewise.
2931 * dsrec.c: Likewise.
2932 * dummy-frame.c: Likewise.
2933 * dwarf2-frame.c: Likewise.
2934 * dwarf2loc.c: Likewise.
2935 * dwarf2read.c: Likewise.
2936 * elfread.c: Likewise.
2937 * environ.c: Likewise.
2938 * eval.c: Likewise.
2939 * event-loop.c: Likewise.
2940 * exceptions.c: Likewise.
2941 * exec.c: Likewise.
2942 * expprint.c: Likewise.
2943 * f-exp.y: Likewise.
2944 * f-lang.c: Likewise.
2945 * f-typeprint.c: Likewise.
2946 * f-valprint.c: Likewise.
2947 * fbsd-nat.c: Likewise.
2948 * findcmd.c: Likewise.
2949 * findvar.c: Likewise.
2950 * fork-child.c: Likewise.
2951 * frame.c: Likewise.
2952 * frv-linux-tdep.c: Likewise.
2953 * frv-tdep.c: Likewise.
2954 * gdb.c: Likewise.
2955 * gdb_bfd.c: Likewise.
2956 * gdbarch.c: Likewise.
2957 * gdbarch.sh: Likewise.
2958 * gdbtypes.c: Likewise.
2959 * gnu-nat.c: Likewise.
2960 * gnu-v2-abi.c: Likewise.
2961 * gnu-v3-abi.c: Likewise.
2962 * go-exp.y: Likewise.
2963 * go-lang.c: Likewise.
2964 * go32-nat.c: Likewise.
2965 * guile/guile.c: Likewise.
2966 * guile/scm-auto-load.c: Likewise.
2967 * hppa-hpux-tdep.c: Likewise.
2968 * hppa-linux-nat.c: Likewise.
2969 * hppanbsd-tdep.c: Likewise.
2970 * hppaobsd-tdep.c: Likewise.
2971 * i386-cygwin-tdep.c: Likewise.
2972 * i386-dicos-tdep.c: Likewise.
2973 * i386-linux-tdep.c: Likewise.
2974 * i386-nto-tdep.c: Likewise.
2975 * i386-sol2-tdep.c: Likewise.
2976 * i386-tdep.c: Likewise.
2977 * i386bsd-tdep.c: Likewise.
2978 * i386gnu-nat.c: Likewise.
2979 * i386nbsd-tdep.c: Likewise.
2980 * i386obsd-tdep.c: Likewise.
2981 * i387-tdep.c: Likewise.
2982 * ia64-libunwind-tdep.c: Likewise.
2983 * ia64-linux-nat.c: Likewise.
2984 * inf-child.c: Likewise.
2985 * inf-ptrace.c: Likewise.
2986 * inf-ttrace.c: Likewise.
2987 * infcall.c: Likewise.
2988 * infcmd.c: Likewise.
2989 * inflow.c: Likewise.
2990 * infrun.c: Likewise.
2991 * interps.c: Likewise.
2992 * iq2000-tdep.c: Likewise.
2993 * irix5-nat.c: Likewise.
2994 * jv-exp.y: Likewise.
2995 * jv-lang.c: Likewise.
2996 * jv-typeprint.c: Likewise.
2997 * jv-valprint.c: Likewise.
2998 * language.c: Likewise.
2999 * linux-fork.c: Likewise.
3000 * linux-nat.c: Likewise.
3001 * lm32-tdep.c: Likewise.
3002 * m2-exp.y: Likewise.
3003 * m2-typeprint.c: Likewise.
3004 * m32c-tdep.c: Likewise.
3005 * m32r-linux-nat.c: Likewise.
3006 * m32r-linux-tdep.c: Likewise.
3007 * m32r-rom.c: Likewise.
3008 * m32r-tdep.c: Likewise.
3009 * m68hc11-tdep.c: Likewise.
3010 * m68k-tdep.c: Likewise.
3011 * m68kbsd-tdep.c: Likewise.
3012 * m68klinux-nat.c: Likewise.
3013 * m68klinux-tdep.c: Likewise.
3014 * m88k-tdep.c: Likewise.
3015 * machoread.c: Likewise.
3016 * macrocmd.c: Likewise.
3017 * main.c: Likewise.
3018 * mdebugread.c: Likewise.
3019 * mem-break.c: Likewise.
3020 * memattr.c: Likewise.
3021 * memory-map.c: Likewise.
3022 * mep-tdep.c: Likewise.
3023 * mi/mi-cmd-break.c: Likewise.
3024 * mi/mi-cmd-disas.c: Likewise.
3025 * mi/mi-cmd-env.c: Likewise.
3026 * mi/mi-cmd-stack.c: Likewise.
3027 * mi/mi-cmd-var.c: Likewise.
3028 * mi/mi-cmds.c: Likewise.
3029 * mi/mi-console.c: Likewise.
3030 * mi/mi-getopt.c: Likewise.
3031 * mi/mi-interp.c: Likewise.
3032 * mi/mi-main.c: Likewise.
3033 * mi/mi-parse.c: Likewise.
3034 * microblaze-rom.c: Likewise.
3035 * microblaze-tdep.c: Likewise.
3036 * mingw-hdep.c: Likewise.
3037 * minidebug.c: Likewise.
3038 * minsyms.c: Likewise.
3039 * mips-irix-tdep.c: Likewise.
3040 * mips-linux-tdep.c: Likewise.
3041 * mips-tdep.c: Likewise.
3042 * mips64obsd-tdep.c: Likewise.
3043 * mipsnbsd-tdep.c: Likewise.
3044 * mipsread.c: Likewise.
3045 * mn10300-linux-tdep.c: Likewise.
3046 * mn10300-tdep.c: Likewise.
3047 * monitor.c: Likewise.
3048 * moxie-tdep.c: Likewise.
3049 * mt-tdep.c: Likewise.
3050 * nat/linux-btrace.c: Likewise.
3051 * nat/linux-osdata.c: Likewise.
3052 * nat/linux-procfs.c: Likewise.
3053 * nat/linux-ptrace.c: Likewise.
3054 * nat/linux-waitpid.c: Likewise.
3055 * nbsd-tdep.c: Likewise.
3056 * nios2-linux-tdep.c: Likewise.
3057 * nto-procfs.c: Likewise.
3058 * nto-tdep.c: Likewise.
3059 * objc-lang.c: Likewise.
3060 * objfiles.c: Likewise.
3061 * opencl-lang.c: Likewise.
3062 * osabi.c: Likewise.
3063 * osdata.c: Likewise.
3064 * p-exp.y: Likewise.
3065 * p-lang.c: Likewise.
3066 * p-typeprint.c: Likewise.
3067 * parse.c: Likewise.
3068 * posix-hdep.c: Likewise.
3069 * ppc-linux-nat.c: Likewise.
3070 * ppc-sysv-tdep.c: Likewise.
3071 * ppcfbsd-tdep.c: Likewise.
3072 * ppcnbsd-tdep.c: Likewise.
3073 * ppcobsd-tdep.c: Likewise.
3074 * printcmd.c: Likewise.
3075 * procfs.c: Likewise.
3076 * prologue-value.c: Likewise.
3077 * python/py-auto-load.c: Likewise.
3078 * python/py-gdb-readline.c: Likewise.
3079 * ravenscar-thread.c: Likewise.
3080 * regcache.c: Likewise.
3081 * registry.c: Likewise.
3082 * remote-fileio.c: Likewise.
3083 * remote-m32r-sdi.c: Likewise.
3084 * remote-mips.c: Likewise.
3085 * remote-notif.c: Likewise.
3086 * remote-sim.c: Likewise.
3087 * remote.c: Likewise.
3088 * reverse.c: Likewise.
3089 * rs6000-aix-tdep.c: Likewise.
3090 * ser-base.c: Likewise.
3091 * ser-go32.c: Likewise.
3092 * ser-mingw.c: Likewise.
3093 * ser-pipe.c: Likewise.
3094 * ser-tcp.c: Likewise.
3095 * ser-unix.c: Likewise.
3096 * serial.c: Likewise.
3097 * sh-tdep.c: Likewise.
3098 * sh64-tdep.c: Likewise.
3099 * shnbsd-tdep.c: Likewise.
3100 * skip.c: Likewise.
3101 * sol-thread.c: Likewise.
3102 * solib-dsbt.c: Likewise.
3103 * solib-frv.c: Likewise.
3104 * solib-osf.c: Likewise.
3105 * solib-som.c: Likewise.
3106 * solib-spu.c: Likewise.
3107 * solib-target.c: Likewise.
3108 * solib.c: Likewise.
3109 * somread.c: Likewise.
3110 * source.c: Likewise.
3111 * sparc-nat.c: Likewise.
3112 * sparc-sol2-tdep.c: Likewise.
3113 * sparc-tdep.c: Likewise.
3114 * sparc64-tdep.c: Likewise.
3115 * sparc64fbsd-tdep.c: Likewise.
3116 * sparc64nbsd-tdep.c: Likewise.
3117 * sparcnbsd-tdep.c: Likewise.
3118 * spu-linux-nat.c: Likewise.
3119 * spu-multiarch.c: Likewise.
3120 * spu-tdep.c: Likewise.
3121 * stabsread.c: Likewise.
3122 * stack.c: Likewise.
3123 * std-regs.c: Likewise.
3124 * symfile.c: Likewise.
3125 * symmisc.c: Likewise.
3126 * symtab.c: Likewise.
3127 * target.c: Likewise.
3128 * thread.c: Likewise.
3129 * tilegx-linux-nat.c: Likewise.
3130 * tilegx-tdep.c: Likewise.
3131 * top.c: Likewise.
3132 * tracepoint.c: Likewise.
3133 * tui/tui-command.c: Likewise.
3134 * tui/tui-data.c: Likewise.
3135 * tui/tui-disasm.c: Likewise.
3136 * tui/tui-file.c: Likewise.
3137 * tui/tui-layout.c: Likewise.
3138 * tui/tui-out.c: Likewise.
3139 * tui/tui-regs.c: Likewise.
3140 * tui/tui-source.c: Likewise.
3141 * tui/tui-stack.c: Likewise.
3142 * tui/tui-win.c: Likewise.
3143 * tui/tui-windata.c: Likewise.
3144 * tui/tui-winsource.c: Likewise.
3145 * typeprint.c: Likewise.
3146 * ui-file.c: Likewise.
3147 * ui-out.c: Likewise.
3148 * user-regs.c: Likewise.
3149 * utils.c: Likewise.
3150 * v850-tdep.c: Likewise.
3151 * valarith.c: Likewise.
3152 * valops.c: Likewise.
3153 * valprint.c: Likewise.
3154 * value.c: Likewise.
3155 * varobj.c: Likewise.
3156 * vax-tdep.c: Likewise.
3157 * vaxnbsd-tdep.c: Likewise.
3158 * vaxobsd-tdep.c: Likewise.
3159 * windows-nat.c: Likewise.
3160 * xcoffread.c: Likewise.
3161 * xml-support.c: Likewise.
3162 * xstormy16-tdep.c: Likewise.
3163 * xtensa-linux-nat.c: Likewise.
3164
3165 2014-08-07 Gary Benson <gbenson@redhat.com>
3166
3167 * common/common-defs.h: Include gdb_assert.h.
3168 * aarch64-tdep.c: Do not include gdb_assert.h.
3169 * addrmap.c: Likewise.
3170 * aix-thread.c: Likewise.
3171 * alpha-linux-tdep.c: Likewise.
3172 * alpha-mdebug-tdep.c: Likewise.
3173 * alphanbsd-tdep.c: Likewise.
3174 * amd64-nat.c: Likewise.
3175 * amd64-tdep.c: Likewise.
3176 * amd64bsd-nat.c: Likewise.
3177 * amd64fbsd-nat.c: Likewise.
3178 * amd64fbsd-tdep.c: Likewise.
3179 * amd64nbsd-nat.c: Likewise.
3180 * amd64nbsd-tdep.c: Likewise.
3181 * amd64obsd-nat.c: Likewise.
3182 * amd64obsd-tdep.c: Likewise.
3183 * arch-utils.c: Likewise.
3184 * arm-tdep.c: Likewise.
3185 * armbsd-tdep.c: Likewise.
3186 * auxv.c: Likewise.
3187 * bcache.c: Likewise.
3188 * bfin-tdep.c: Likewise.
3189 * blockframe.c: Likewise.
3190 * breakpoint.c: Likewise.
3191 * bsd-kvm.c: Likewise.
3192 * bsd-uthread.c: Likewise.
3193 * buildsym.c: Likewise.
3194 * c-exp.y: Likewise.
3195 * c-lang.c: Likewise.
3196 * charset.c: Likewise.
3197 * cleanups.c: Likewise.
3198 * cli-out.c: Likewise.
3199 * cli/cli-decode.c: Likewise.
3200 * cli/cli-dump.c: Likewise.
3201 * cli/cli-logging.c: Likewise.
3202 * cli/cli-script.c: Likewise.
3203 * cli/cli-utils.c: Likewise.
3204 * coffread.c: Likewise.
3205 * common/common-utils.c: Likewise.
3206 * common/queue.h: Likewise.
3207 * common/signals.c: Likewise.
3208 * common/vec.h: Likewise.
3209 * complaints.c: Likewise.
3210 * completer.c: Likewise.
3211 * corelow.c: Likewise.
3212 * cp-abi.c: Likewise.
3213 * cp-name-parser.y: Likewise.
3214 * cp-namespace.c: Likewise.
3215 * cp-support.c: Likewise.
3216 * cris-tdep.c: Likewise.
3217 * dbxread.c: Likewise.
3218 * dictionary.c: Likewise.
3219 * doublest.c: Likewise.
3220 * dsrec.c: Likewise.
3221 * dummy-frame.c: Likewise.
3222 * dwarf2-frame-tailcall.c: Likewise.
3223 * dwarf2-frame.c: Likewise.
3224 * dwarf2expr.c: Likewise.
3225 * dwarf2loc.c: Likewise.
3226 * dwarf2read.c: Likewise.
3227 * eval.c: Likewise.
3228 * event-loop.c: Likewise.
3229 * exceptions.c: Likewise.
3230 * expprint.c: Likewise.
3231 * f-valprint.c: Likewise.
3232 * fbsd-nat.c: Likewise.
3233 * findvar.c: Likewise.
3234 * frame-unwind.c: Likewise.
3235 * frame.c: Likewise.
3236 * frv-tdep.c: Likewise.
3237 * gcore.c: Likewise.
3238 * gdb-dlfcn.c: Likewise.
3239 * gdb_bfd.c: Likewise.
3240 * gdbarch.c: Likewise.
3241 * gdbarch.sh: Likewise.
3242 * gdbtypes.c: Likewise.
3243 * gnu-nat.c: Likewise.
3244 * gnu-v3-abi.c: Likewise.
3245 * go-lang.c: Likewise.
3246 * guile/scm-exception.c: Likewise.
3247 * guile/scm-gsmob.c: Likewise.
3248 * guile/scm-lazy-string.c: Likewise.
3249 * guile/scm-math.c: Likewise.
3250 * guile/scm-pretty-print.c: Likewise.
3251 * guile/scm-safe-call.c: Likewise.
3252 * guile/scm-utils.c: Likewise.
3253 * guile/scm-value.c: Likewise.
3254 * h8300-tdep.c: Likewise.
3255 * hppa-hpux-nat.c: Likewise.
3256 * hppa-tdep.c: Likewise.
3257 * hppanbsd-tdep.c: Likewise.
3258 * hppaobsd-tdep.c: Likewise.
3259 * i386-darwin-nat.c: Likewise.
3260 * i386-darwin-tdep.c: Likewise.
3261 * i386-nto-tdep.c: Likewise.
3262 * i386-tdep.c: Likewise.
3263 * i386bsd-nat.c: Likewise.
3264 * i386fbsd-tdep.c: Likewise.
3265 * i386gnu-nat.c: Likewise.
3266 * i386nbsd-tdep.c: Likewise.
3267 * i386obsd-tdep.c: Likewise.
3268 * i387-tdep.c: Likewise.
3269 * ia64-libunwind-tdep.c: Likewise.
3270 * ia64-tdep.c: Likewise.
3271 * inf-ptrace.c: Likewise.
3272 * inf-ttrace.c: Likewise.
3273 * infcall.c: Likewise.
3274 * infcmd.c: Likewise.
3275 * infrun.c: Likewise.
3276 * inline-frame.c: Likewise.
3277 * interps.c: Likewise.
3278 * jv-lang.c: Likewise.
3279 * jv-typeprint.c: Likewise.
3280 * linux-fork.c: Likewise.
3281 * linux-nat.c: Likewise.
3282 * linux-thread-db.c: Likewise.
3283 * m32c-tdep.c: Likewise.
3284 * m32r-linux-nat.c: Likewise.
3285 * m32r-tdep.c: Likewise.
3286 * m68k-tdep.c: Likewise.
3287 * m68kbsd-nat.c: Likewise.
3288 * m68kbsd-tdep.c: Likewise.
3289 * m88k-tdep.c: Likewise.
3290 * machoread.c: Likewise.
3291 * macroexp.c: Likewise.
3292 * macrotab.c: Likewise.
3293 * maint.c: Likewise.
3294 * mdebugread.c: Likewise.
3295 * memory-map.c: Likewise.
3296 * mep-tdep.c: Likewise.
3297 * mi/mi-common.c: Likewise.
3298 * microblaze-tdep.c: Likewise.
3299 * mingw-hdep.c: Likewise.
3300 * mips-linux-nat.c: Likewise.
3301 * mips-linux-tdep.c: Likewise.
3302 * mips-tdep.c: Likewise.
3303 * mips64obsd-tdep.c: Likewise.
3304 * mipsnbsd-tdep.c: Likewise.
3305 * mn10300-linux-tdep.c: Likewise.
3306 * mn10300-tdep.c: Likewise.
3307 * moxie-tdep.c: Likewise.
3308 * mt-tdep.c: Likewise.
3309 * nat/linux-btrace.c: Likewise.
3310 * nat/linux-osdata.c: Likewise.
3311 * nat/linux-ptrace.c: Likewise.
3312 * nat/mips-linux-watch.c: Likewise.
3313 * nios2-linux-tdep.c: Likewise.
3314 * nios2-tdep.c: Likewise.
3315 * objc-lang.c: Likewise.
3316 * objfiles.c: Likewise.
3317 * obsd-nat.c: Likewise.
3318 * opencl-lang.c: Likewise.
3319 * osabi.c: Likewise.
3320 * parse.c: Likewise.
3321 * ppc-linux-nat.c: Likewise.
3322 * ppc-sysv-tdep.c: Likewise.
3323 * ppcfbsd-nat.c: Likewise.
3324 * ppcfbsd-tdep.c: Likewise.
3325 * ppcnbsd-nat.c: Likewise.
3326 * ppcnbsd-tdep.c: Likewise.
3327 * ppcobsd-nat.c: Likewise.
3328 * ppcobsd-tdep.c: Likewise.
3329 * printcmd.c: Likewise.
3330 * procfs.c: Likewise.
3331 * prologue-value.c: Likewise.
3332 * psymtab.c: Likewise.
3333 * python/py-lazy-string.c: Likewise.
3334 * python/py-value.c: Likewise.
3335 * regcache.c: Likewise.
3336 * reggroups.c: Likewise.
3337 * registry.c: Likewise.
3338 * remote-sim.c: Likewise.
3339 * remote.c: Likewise.
3340 * rs6000-aix-tdep.c: Likewise.
3341 * rs6000-tdep.c: Likewise.
3342 * s390-linux-tdep.c: Likewise.
3343 * score-tdep.c: Likewise.
3344 * ser-base.c: Likewise.
3345 * ser-mingw.c: Likewise.
3346 * sh-tdep.c: Likewise.
3347 * sh64-tdep.c: Likewise.
3348 * solib-darwin.c: Likewise.
3349 * solib-spu.c: Likewise.
3350 * solib-svr4.c: Likewise.
3351 * source.c: Likewise.
3352 * sparc-nat.c: Likewise.
3353 * sparc-sol2-tdep.c: Likewise.
3354 * sparc-tdep.c: Likewise.
3355 * sparc64-sol2-tdep.c: Likewise.
3356 * sparc64-tdep.c: Likewise.
3357 * sparc64fbsd-tdep.c: Likewise.
3358 * sparc64nbsd-tdep.c: Likewise.
3359 * sparc64obsd-tdep.c: Likewise.
3360 * sparcnbsd-tdep.c: Likewise.
3361 * sparcobsd-tdep.c: Likewise.
3362 * spu-multiarch.c: Likewise.
3363 * spu-tdep.c: Likewise.
3364 * stabsread.c: Likewise.
3365 * stack.c: Likewise.
3366 * symfile.c: Likewise.
3367 * symtab.c: Likewise.
3368 * target-descriptions.c: Likewise.
3369 * target-memory.c: Likewise.
3370 * target.c: Likewise.
3371 * tic6x-linux-tdep.c: Likewise.
3372 * tic6x-tdep.c: Likewise.
3373 * tilegx-linux-nat.c: Likewise.
3374 * tilegx-tdep.c: Likewise.
3375 * top.c: Likewise.
3376 * tramp-frame.c: Likewise.
3377 * tui/tui-out.c: Likewise.
3378 * tui/tui-winsource.c: Likewise.
3379 * ui-out.c: Likewise.
3380 * user-regs.c: Likewise.
3381 * utils.c: Likewise.
3382 * v850-tdep.c: Likewise.
3383 * valops.c: Likewise.
3384 * value.c: Likewise.
3385 * varobj.c: Likewise.
3386 * vax-nat.c: Likewise.
3387 * xml-syscall.c: Likewise.
3388 * xml-tdesc.c: Likewise.
3389 * xstormy16-tdep.c: Likewise.
3390 * xtensa-linux-nat.c: Likewise.
3391 * xtensa-tdep.c: Likewise.
3392
3393 2014-08-07 Gary Benson <gbenson@redhat.com>
3394
3395 * common/common-defs.h: Include common-utils.h.
3396 * defs.h: Do not include common-utils.h.
3397 * common/gdb_assert.h: Likewise.
3398 * darwin-nat.h: Likewise.
3399 * nat/linux-btrace.c: Likewise.
3400 * target/waitstatus.h: Likewise.
3401
3402 2014-08-07 Gary Benson <gbenson@redhat.com>
3403
3404 * common/common-defs.h: Include ptid.h.
3405 * defs.h: Do not include ptid.h.
3406 * inferior.h: Likewise.
3407 * infrun.h: Likewise.
3408 * nat/linux-btrace.h: Likewise.
3409 * nat/linux-osdata.h: Likewise.
3410 * target/waitstatus.h: Likewise.
3411
3412 2014-08-07 Gary Benson <gbenson@redhat.com>
3413
3414 * common/common-defs.h: Include gdb_locale.h.
3415 * defs.h: Do not include gdb_locale.h.
3416
3417 2014-08-07 Gary Benson <gbenson@redhat.com>
3418
3419 * common/common-defs.h: Include gdb/signals.h.
3420 * defs.h: Do not include gdb/signals.h.
3421
3422 2014-08-07 Gary Benson <gbenson@redhat.com>
3423
3424 * common/common-defs.h: Include pathmax.h.
3425 * defs.h: Do not include pathmax.h.
3426
3427 2014-08-07 Gary Benson <gbenson@redhat.com>
3428
3429 * common/common-defs.h: Include libiberty.h.
3430 * defs.h: Do not include libiberty.h.
3431 * common/queue.h: Likewise.
3432 * cp-name-parser.y: Likewise.
3433 * mi/mi-cmd-catch.c: Likewise.
3434 * python/python.c: Likewise.
3435
3436 2014-08-07 Gary Benson <gbenson@redhat.com>
3437
3438 * common/common-defs.h: Include ansidecl.h.
3439 * defs.h: Do not include ansidecl.h.
3440 * common/buffer.h: Likewise.
3441 * common/common-utils.h: Likewise.
3442
3443 2014-08-07 Gary Benson <gbenson@redhat.com>
3444
3445 * common/common-defs.h: Include stddef.h.
3446 * defs.h: Do not include stddef.h.
3447 * common/common-utils.h: Likewise.
3448 * amd64fbsd-nat.c: Likewise.
3449 * bcache.c: Likewise.
3450 * charset.c: Likewise.
3451 * common/buffer.h: Likewise.
3452 * common/vec.h: Likewise.
3453 * i386bsd-nat.c: Likewise.
3454 * nat/linux-btrace.h: Likewise.
3455 * ppcfbsd-nat.c: Likewise.
3456 * ppcnbsd-tdep.h: Likewise.
3457 * ppcobsd-nat.c: Likewise.
3458 * ppcobsd-tdep.h: Likewise.
3459 * python/py-gdb-readline.c: Likewise.
3460
3461 2014-08-07 Gary Benson <gbenson@redhat.com>
3462
3463 * common/common-defs.h: Include stdarg.h.
3464 * defs.h: Do not include stdarg.h.
3465 * ada-lang.c: Likewise.
3466 * common/common-utils.h: Likewise.
3467 * guile/scm-string.c: Likewise.
3468 * guile/scm-utils.c: Likewise.
3469 * m32c-tdep.c: Likewise.
3470
3471 2014-08-07 Gary Benson <gbenson@redhat.com>
3472
3473 * common/common-defs.h: Include stdlib.h.
3474 * defs.h: Do not include stdlib.h.
3475 * addrmap.c: Likewise.
3476 * bcache.c: Likewise.
3477 * common/buffer.c: Likewise.
3478 * common/common-utils.c: Likewise.
3479 * cp-name-parser.y: Likewise.
3480 * go32-nat.c: Likewise.
3481 * mn10300-linux-tdep.c: Likewise.
3482 * nat/linux-osdata.c: Likewise.
3483 * tui/tui.c: Likewise.
3484 * windows-nat.c: Likewise.
3485
3486 2014-08-07 Gary Benson <gbenson@redhat.com>
3487
3488 * common/common-defs.h: Include stdio.h.
3489 * defs.h: Do not include stdio.h.
3490 * ada-lang.c: Likewise.
3491 * common/buffer.c: Likewise.
3492 * common/common-utils.c: Likewise.
3493 * cp-name-parser.y: Likewise.
3494 * gnu-nat.c: Likewise.
3495 * go32-nat.c: Likewise.
3496 * i386gnu-nat.c: Likewise.
3497 * proc-api.c: Likewise.
3498 * proc-events.c: Likewise.
3499 * proc-flags.c: Likewise.
3500 * proc-why.c: Likewise.
3501 * python/python-internal.h: Likewise.
3502 * target-memory.c: Likewise.
3503 * tui/tui-io.c: Likewise.
3504 * tui/tui.c: Likewise.
3505
3506 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3507
3508 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3509 (scan_dyntag_auxv): Same.
3510
3511 2014-08-06 Yao Qi <yao@codesourcery.com>
3512
3513 * amd64-linux-nat.c: Remove duplicated include
3514 "x86-linux-nat.h".
3515 * i386-linux-nat.c: Likewise.
3516
3517 2014-08-06 Yao Qi <yao@codesourcery.com>
3518
3519 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3520 operand" with "Special opcode" in comments.
3521
3522 2014-08-05 Gary Benson <gbenson@redhat.com>
3523
3524 * interps.c (initialize_interps): Remove prototype.
3525 (interpreter_initialized): Remove static global.
3526 (interp_add): Do not call initialize_interps.
3527 (initialize_interps): Remove function.
3528
3529 2014-08-05 Gary Benson <gbenson@redhat.com>
3530
3531 * utils.c (vwarning): Remove spurious va_end.
3532
3533 2014-08-05 Alan Modra <amodra@gmail.com>
3534
3535 * charset.c (convert_between_encodings): Cast result of obstack_base.
3536 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3537 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3538 (read_unwind_info): Use size_t for some locals.
3539 * jit.c (finalize_symtab): Likewise.
3540 * utils.c (hashtab_obstack_allocate): Likewise.
3541 * symmisc.c (print_objfile_statistics): Update format strings.
3542
3543 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3544
3545 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3546 (Changes in GDB 7.8): ... here.
3547
3548 2014-08-04 Tom Tromey <tromey@redhat.com>
3549
3550 * target.c (set_targetdebug): New function.
3551 (initialize_targets): Pass set_targetdebug when creating "set
3552 debug target".
3553
3554 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3555
3556 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3557 if detecting a variable-sized field that is not the last field.
3558 Fix struct type length computation.
3559
3560 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3561
3562 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3563 Add debug trace.
3564
3565 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3566
3567 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3568 Remove "+ 8" offset in computation of CHAIN_VMA.
3569
3570 2014-07-31 Doug Evans <dje@google.com>
3571
3572 * inflow.c (child_terminal_inferior): Add comment.
3573 (child_terminal_ours_for_output): Add comment.
3574 (child_terminal_ours): Add comment.
3575 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3576 (linux_nat_terminal_ours): Add comment.
3577
3578 2014-07-31 Gary Benson <gbenson@redhat.com>
3579
3580 * common/btrace-common.h: Do not include defs.h or server.h.
3581 * nat/mips-linux-watch.h: Likewise.
3582 * gdb-dlfcn.h: Do not include defs.h.
3583 * tracefile.h: Likewise.
3584
3585 2014-07-30 Roland McGrath <mcgrathr@google.com>
3586
3587 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3588
3589 2014-07-30 Tom Tromey <tromey@redhat.com>
3590
3591 * bsd-kvm.c (bsd_kvm_open): Constify.
3592 * corelow.c (core_open): Constify.
3593 * ctf.c (ctf_open): Constify.
3594 * dbug-rom.c (dbug_open): Constify.
3595 * exec.c (exec_open): Constify.
3596 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3597 * microblaze-rom.c (picobug_open): Constify.
3598 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3599 Constify.
3600 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3601 * record-btrace.c (record_btrace_open): Constify.
3602 * record-full.c (record_full_core_open_1, record_full_open_1)
3603 (record_full_open): Constify.
3604 * remote-m32r-sdi.c (m32r_open): Constify.
3605 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3606 (rockhopper_open, lsi_open): Constify.
3607 * remote-sim.c (gdbsim_open): Constify.
3608 * remote.c (remote_open, extended_remote_open, remote_open_1):
3609 Constify.
3610 * target.h (struct target_ops) <to_open>: Make "arg" const.
3611 * tracefile-tfile.c (tfile_open): Constify.
3612
3613 2014-07-30 Tom Tromey <tromey@redhat.com>
3614
3615 * breakpoint.c (map_breakpoint_numbers): Update.
3616 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3617 (get_number_const): New function.
3618 (get_number): Rewrite using get_number_const.
3619 (init_number_or_range): Make "string" const.
3620 (number_is_in_list): Make "list" const.
3621 * cli/cli-utils.h (get_number_const): Declare.
3622 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3623 (init_number_or_range, number_is_in_list): Update.
3624 * printcmd.c (map_display_numbers): Update.
3625 * value.c (value_from_history_ref): Constify.
3626 * value.h (value_from_history_ref): Update.
3627
3628 2014-07-30 Tom Tromey <tromey@redhat.com>
3629
3630 * corefile.c (hook_type, call_extra_exec_file_hooks)
3631 (specify_exec_file_hook): Constify.
3632 * exec.c (exec_file_attach): Make "filename" const.
3633 * gdbcore.h (deprecated_exec_file_display_hook)
3634 (specify_exec_file_hook, exec_file_attach): Constify.
3635 * main.c (captured_main): Use catch_command_errors_const.
3636
3637 2014-07-30 Tom Tromey <tromey@redhat.com>
3638
3639 * target.c (open_target): New function.
3640 (add_target_with_completer, add_deprecated_target_alias): Use
3641 set_cmd_sfunc, set_cmd_context.
3642 (debug_to_open): Remove.
3643 (setup_target_debug): Update.
3644
3645 2014-07-30 Yao Qi <yao@codesourcery.com>
3646
3647 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3648 comments.
3649 * parse.c (exp_iterate): Update comments.
3650
3651 2014-07-30 Gary Benson <gbenson@redhat.com>
3652
3653 * common/common-defs.h: New file.
3654 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3655 * defs.h: Include common-defs.h.
3656 Do not include config.h or build-gnulib/config.h.
3657
3658 2014-07-30 Gary Benson <gbenson@redhat.com>
3659
3660 * common/common-utils.h: Do not include config.h.
3661 * nat/linux-btrace.h: Likewise.
3662
3663 2014-07-30 Gary Benson <gbenson@redhat.com>
3664
3665 * btrace.c: Include defs.h.
3666 * common/ptid.c: Include defs.h or server.h as appropriate.
3667 * nat/mips-linux-watch.c: Likewise.
3668
3669 2014-07-29 Tom Tromey <tromey@redhat.com>
3670
3671 * target.c (target_is_pushed): Simplify.
3672
3673 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3674
3675 GDB 7.8 released.
3676
3677 2014-07-29 Yao Qi <yao@codesourcery.com>
3678
3679 PR gdb/17206
3680 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3681
3682 2014-07-28 Doug Evans <xdje42@gmail.com>
3683
3684 PR guile/17203
3685 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3686 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3687 parameters.
3688
3689 2014-07-28 Will Newton <will.newton@linaro.org>
3690
3691 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3692 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3693 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3694 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3695 (THUMB2_EABI_SYSCALL): Likewise.
3696 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3697 struct tramp_frame.
3698 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3699 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3700
3701 2014-07-27 Doug Evans <xdje42@gmail.com>
3702
3703 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3704
3705 2014-07-27 Doug Evans <xdje42@gmail.com>
3706
3707 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3708
3709 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3710 Doug Evans <xdje42@gmail.com>
3711
3712 PR guile/17146
3713 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3714 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3715 * configure.ac: Try to use guild to compile an scm file, if it fails
3716 then disable guile support.
3717 * configure: Regenerate.
3718 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3719 GUILE_FILE_LIST.
3720 (GUILE_COMPILED_FILES): New variable.
3721 (GUILE_FILES) Update.
3722 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3723 (stamp-guile): Compile scm files.
3724 * guile/guile.c (boot_guile_support): New function.
3725 (standard_throw_args_p): New function.
3726 (print_standard_throw_error, print_throw_error): New functions.
3727 (handle_boot_error): New function.
3728 (initialize_scheme_side): Rewrite to call boot_guile_support.
3729 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3730 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3731
3732 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3733 Doug Evans <xdje42@gmail.com>
3734
3735 PR guile/17146
3736 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3737 * guile/lib/gdb/support.scm: New file.
3738 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3739 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3740 All uses updated.
3741 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3742 All uses updated.
3743 (%assert-type): Ditto, and renamed to assert-type.
3744 (%exception-print-style): Delete.
3745
3746 2014-07-26 Doug Evans <xdje42@gmail.com>
3747
3748 PR build/17105
3749 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3750 * configure: Regenerate.
3751 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3752 PYTHON_FILES.
3753 (PYTHON_FILES): New variable.
3754 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3755 (GUILE_FILES): New variable.
3756 (stamp-python, install-python, uninstall-python): Handle empty
3757 file list.
3758 (stamp-guile, install-guile, uninstall-guile): Ditto.
3759
3760 2014-07-26 Doug Evans <xdje42@gmail.com>
3761
3762 PR guile/17177
3763 * guile/lib/gdb.scm (pretty-printers): Export.
3764 (set-pretty-printers!): Export.
3765 * guile/lib/gdb/printing.scm (gdb module): Update.
3766 (prepend-pretty-printer!, append-pretty-printer!): Update.
3767 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3768 (pretty_printer_list_var): Delete.
3769 (pretty_printer_list): New static global.
3770 (gdbscm_pretty_printers): New function.
3771 (gdbscm_set_pretty_printers_x): New function.
3772 (ppscm_find_pretty_printer_from_gdb): Update.
3773 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3774 (gdbscm_initialize_pretty_printers): Update.
3775
3776 2014-07-26 Doug Evans <xdje42@gmail.com>
3777
3778 PR 17185
3779 * configure.ac: Add check for header gc/gc.h.
3780 Add check for function setenv.
3781 * configure: Regenerate.
3782 * config.in: Regenerate.
3783 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3784
3785 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3786
3787 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3788 variation in gdbarch matching.
3789
3790 2014-07-25 Tom Tromey <tromey@redhat.com>
3791
3792 * exec.c (using_exec_ops): Remove.
3793 (exec_close_1): Update. Remove extraneous block, reindent.
3794 (add_target_sections): Use target_is_pushed.
3795
3796 2014-07-25 Pedro Alves <palves@redhat.com>
3797
3798 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3799 * monitor.c (monitor_create_inferior): Likewise.
3800 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3801 * remote-sim.c (gdbsim_create_inferior): Likewise.
3802 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3803 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3804 * windows-nat.c (do_initial_windows_stuff): Likewise.
3805
3806 2014-07-25 Pedro Alves <palves@redhat.com>
3807
3808 * NEWS: Mention signal passing and "signal" command changes.
3809 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3810 comment.
3811 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3812 call.
3813 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3814 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3815 (jump_command): Adjust clear_proceed_status call.
3816 (signal_command): Warn if other thread that are resumed have
3817 signals that will be delivered. Adjust clear_proceed_status call.
3818 (until_next_command, finish_command)
3819 (proceed_after_attach_callback, attach_command_post_wait)
3820 (attach_command): Adjust clear_proceed_status call.
3821 * infrun.c (proceed_after_vfork_done): Likewise.
3822 (proceed_after_attach_callback): Adjust comment.
3823 (clear_proceed_status_thread): Clear stop_signal if not in pass
3824 state.
3825 (clear_proceed_status_callback): Delete.
3826 (clear_proceed_status): New 'step' parameter. Only clear the
3827 proceed status of threads the command being prepared is about to
3828 resume.
3829 (proceed): If passed in an explicit signal, override stop_signal
3830 with it. Don't pass the last stop signal to the thread we're
3831 resuming.
3832 (init_wait_for_inferior): Adjust clear_proceed_status call.
3833 (switch_back_to_stepped_thread): Clear the signal if it should not
3834 be passed.
3835 * infrun.h (clear_proceed_status): New 'step' parameter.
3836 (user_visible_resume_ptid): Add comment.
3837 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3838 signal is in pass state.
3839 * remote.c (append_pending_thread_resumptions): Likewise.
3840 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3841
3842 2014-07-25 Tom Tromey <tromey@redhat.com>
3843
3844 * target.h (target_stopped_data_address)
3845 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3846 parentheses.
3847
3848 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3849
3850 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3851 comments.
3852 (avr_pointer_to_address): Likewise.
3853
3854 2014-07-24 Tom Tromey <tromey@redhat.com>
3855
3856 * monitor.c (compile_pattern): Update.
3857 * target.h (struct target_ops) <to_shortname, to_longname,
3858 to_doc>: Now const.
3859
3860 2014-07-24 Tom Tromey <tromey@redhat.com>
3861
3862 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3863 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3864 (add_info_alias, add_com): Make "doc" const.
3865 (print_doc_line): Make "str" const.
3866 (delete_cmd): Update.
3867 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3868 (print_doc_line): Update.
3869 * cli/cli-script.c (document_command): Update.
3870 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3871 (add_com, add_info, add_info_alias): Update.
3872 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3873 * python/py-cmd.c (cmdpy_destroyer): Update.
3874
3875 2014-07-24 Tom Tromey <tromey@redhat.com>
3876
3877 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3878 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3879 (help_cmd_list): Constify.
3880 (lookup_cmd): Update.
3881 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3882 const.
3883 (help_cmd_list, apropos_cmd): Update.
3884 * cli/cli-script.c (show_user): Update.
3885 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3886 * cli/cli-setshow.h (cmd_show_list): Update.
3887 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3888 (cmd_show_list): Update.
3889 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3890 * python/py-cmd.c (cmdpy_destroyer): Update.
3891
3892 2014-07-24 Tom Tromey <tromey@redhat.com>
3893
3894 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3895 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3896 const.
3897 * command.h (deprecate_cmd): Update.
3898 * maint.c (maintenance_do_deprecate): Add casts.
3899
3900 2014-07-24 Tom Tromey <tromey@redhat.com>
3901
3902 * cli/cli-decode.c (help_cmd): Make parameter "const".
3903 * cli/cli-decode.h (help_cmd): Update.
3904
3905 2014-07-24 Tom Tromey <tromey@redhat.com>
3906
3907 * stack.c (up_silently_base, down_silently_base): Make argument
3908 const.
3909
3910 2014-07-24 Tom Tromey <tromey@redhat.com>
3911
3912 * solib.c (solib_add): Make "pattern" const.
3913 * solib.h (solib_add): Update.
3914
3915 2014-07-24 Tom Tromey <tromey@redhat.com>
3916
3917 * remote.c (remote_serial_open, print_packet, putpkt)
3918 (putpkt_binary): Constify.
3919 * remote.h (putpkt): Update.
3920
3921 2014-07-24 Tom Tromey <tromey@redhat.com>
3922
3923 * monitor.c (monitor_open): Make "args" const.
3924 * monitor.h (monitor_open): Update.
3925
3926 2014-07-24 Tom Tromey <tromey@redhat.com>
3927
3928 * maint.c (match_bfd_flags): Make "string" const.
3929 (print_bfd_section_info): Remove casts.
3930 (print_objfile_section_info): Make "string" const.
3931
3932 2014-07-24 Tom Tromey <tromey@redhat.com>
3933
3934 * inf-child.c (inf_child_open_target): Make "arg" const.
3935 * inf-child.h (inf_child_open_target): Update.
3936
3937 2014-07-24 Tom Tromey <tromey@redhat.com>
3938
3939 * environ.c (unset_in_environ): Make "var" const.
3940 * environ.h (unset_in_environ): Update.
3941
3942 2014-07-24 Tom Tromey <tromey@redhat.com>
3943
3944 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3945 Make "cmd" const.
3946 (scan_filename_with_cleanup): Likewise.
3947 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3948 Make arguments const.
3949 (restore_command): Update.
3950
3951 2014-07-24 Pedro Alves <palves@redhat.com>
3952
3953 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3954
3955 2014-07-24 Tom Tromey <tromey@redhat.com>
3956 Gary Benson <gbenson@redhat.com>
3957
3958 * nat/linux-ptrace.c (additional_flags): New global.
3959 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3960 additional_flags; don't check GDBSERVER.
3961 (linux_ptrace_set_additional_flags): New function.
3962 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3963 Declare.
3964 * linux-nat.c (_initialize_linux_nat): Call
3965 linux_ptrace_set_additional_flags.
3966
3967 2014-07-24 Tom Tromey <tromey@redhat.com>
3968
3969 * make-target-delegates (munge_type, write_debugmethod): New
3970 functions.
3971 (debug_names): New global.
3972 ($TARGET_DEBUG_PRINTER): New global.
3973 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3974 name.
3975 Write debug methods. Generate init_debug_target.
3976 * target-debug.h: New file.
3977 * target-delegates.c: Rebuild.
3978 * target.c: Include target-debug.h.
3979 (debug_target): Hoist definition.
3980 (target_kill, target_get_section_table, target_memory_map)
3981 (target_flash_erase, target_flash_done, target_detach)
3982 (target_disconnect, target_wait, target_resume)
3983 (target_pass_signals, target_program_signals, target_follow_fork)
3984 (target_mourn_inferior, target_search_memory)
3985 (target_thread_address_space, target_close)
3986 (target_find_new_threads, target_core_of_thread)
3987 (target_verify_memory, target_insert_mask_watchpoint)
3988 (target_remove_mask_watchpoint): Remove targetdebug code.
3989 (debug_to_post_attach, debug_to_prepare_to_store)
3990 (debug_to_files_info, debug_to_insert_breakpoint)
3991 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3992 (debug_to_region_ok_for_hw_watchpoint)
3993 (debug_to_can_accel_watchpoint_condition)
3994 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3995 (debug_to_watchpoint_addr_within_range)
3996 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3997 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3998 (debug_to_terminal_init, debug_to_terminal_inferior)
3999 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4000 (debug_to_terminal_save_ours, debug_to_terminal_info)
4001 (debug_to_load, debug_to_post_startup_inferior)
4002 (debug_to_insert_fork_catchpoint)
4003 (debug_to_remove_fork_catchpoint)
4004 (debug_to_insert_vfork_catchpoint)
4005 (debug_to_remove_vfork_catchpoint)
4006 (debug_to_insert_exec_catchpoint)
4007 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4008 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4009 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4010 (setup_target_debug): Call init_debug_target.
4011 * target.h (TARGET_DEBUG_PRINTER): New macro.
4012 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4013 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4014
4015 2014-07-24 Gary Benson <gbenson@redhat.com>
4016
4017 * exceptions.h (throw_vfatal): Renamed to...
4018 (throw_vquit): New declaration.
4019 (throw_quit): Likewise.
4020 * exceptions.c (throw_vfatal): Renamed to...
4021 (throw_vquit): New function.
4022 (throw_quit): Likewise.
4023 (throw_error): Call throw_verror rather than throw_it.
4024 * utils.h (vfatal): Removed.
4025 (fatal): Likewise.
4026 * utils.c (vfatal): Removed.
4027 (fatal): Likewise.
4028 (internal_verror): Replaced call to fatal with call to throw_quit.
4029 (quit): Replaced calls to fatal with calls to throw_quit.
4030
4031 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4032
4033 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4034 target_read_code.
4035
4036 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4037
4038 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4039 less than zero in conditional expression.
4040
4041 2014-07-23 Tom Tromey <tromey@redhat.com>
4042
4043 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4044 ($INTRO_PART): Don't match whitespace.
4045 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4046 argument matching.
4047 ($METHOD): Add $METHOD_TRAILER.
4048 (trim): Rewrite.
4049 (scan_target_h): New sub.
4050 Change main loop not to collect state.
4051 * target-delegates.c: Rebuild.
4052
4053 2014-07-23 Gary Benson <gbenson@redhat.com>
4054
4055 * cp-support.c (gdb_demangle): Fix build on systems without
4056 sigaltstack.
4057
4058 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4059
4060 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4061 for reference entry value target data value.
4062
4063 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4064
4065 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4066 value_available_contents_eq.
4067
4068 2014-07-22 Pedro Alves <palves@redhat.com>
4069
4070 * value.c (allocate_optimized_out_value): Don't mark value as
4071 non-lazy.
4072
4073 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4074
4075 * MAINTAINERS (Write After Approval): Update my email address.
4076
4077 2014-07-20 Doug Evans <dje@google.com>
4078
4079 PR server/17147
4080 * remote.c (putpkt_binary): Add text to error message.
4081
4082 2014-07-20 Yao Qi <yao@codesourcery.com>
4083
4084 * eval.c: Remove "Chill" from comments.
4085 * gdbtypes.h: Likewise.
4086 * symtab.h: Likewise.
4087
4088 2014-07-20 Yao Qi <yao@codesourcery.com>
4089
4090 * std-operator.def: Update comments to TERNOP_SLICE.
4091
4092 2014-07-20 Yao Qi <yao@codesourcery.com>
4093
4094 * std-operator.def: Remove BINOP_RANGE.
4095 * breakpoint.c (watchpoint_exp_is_const): Update.
4096 * expprint.c (dump_subexp_body_standard): Likewise.
4097 * eval.c (init_array_element): Remove dead code.
4098 (evaluate_subexp_standard): Likewise.
4099
4100 2014-07-20 Yao Qi <yao@codesourcery.com>
4101
4102 * std-operator.def: Remove BINOP_IN.
4103 * breakpoint.c (watchpoint_exp_is_const): Update.
4104 * eval.c (evaluate_subexp_standard): Likewise.
4105 * expprint.c (dump_subexp_body_standard): Likewise.
4106
4107 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4108
4109 * microblaze-tdep.c (microblaze_register_names): Add
4110 the rshr and rslr register names.
4111 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4112 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4113 Use of tdesc_numbered_register. Use of
4114 microblaze_register_g_packet_guesses. Use of
4115 tdesc_use_registers. Use of set_gdbarch_register_type.
4116 (microblaze_register_g_packet_guesses): New.
4117 * microblaze-tdep.h (microblaze_reg_num): Add
4118 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4119 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4120 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4121 * features/microblaze-core.xml: New file.
4122 * features/microblaze-stack-protect.xml: New file.
4123 * features/microblaze-with-stack-protect.c: New file.
4124 * features/microblaze-with-stack-protect.xml: New file.
4125 * features/microblaze.xml: New file.
4126 * features/microblaze.c: New file.
4127 * features/Makefile (microblaze-with-stack-protect): Add
4128 microblaze-with-stack-protect microblaze and microblaze-expedite.
4129 * regformats/microblaze-with-stack-protect.dat: New file.
4130 * regformats/microblaze.dat: New file.
4131 * doc/gdb.texinfo (MicroBlaze Features): Added.
4132
4133 2014-07-18 Tom Tromey <tromey@redhat.com>
4134
4135 * exec.c (exec_ops): Now static.
4136 * exec.h (exec_ops): Don't declare.
4137
4138 2014-07-18 Tom Tromey <tromey@redhat.com>
4139
4140 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4141 to find_target_beneath.
4142 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4143 find_target_beneath.
4144 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4145
4146 2014-07-18 Tom Tromey <tromey@redhat.com>
4147
4148 PR gdb/17130:
4149 * utils.c (quit): Use target_supports_terminal_ours.
4150 * target.h (target_supports_terminal_ours): Declare.
4151 * target.c (target_supports_delete_record): Don't check
4152 to_delete_record against NULL.
4153 (target_supports_terminal_ours): New function.
4154
4155 2014-07-18 Tom Tromey <tromey@redhat.com>
4156
4157 PR gdb/17130:
4158 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4159 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4160 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4161 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4162 * windows-nat.c (windows_xfer_partial): Always delegate.
4163 * record-btrace.c (record_btrace_xfer_partial): Simplify
4164 delegation.
4165 (record_btrace_fetch_registers, record_btrace_store_registers)
4166 (record_btrace_prepare_to_store, record_btrace_resume)
4167 (record_btrace_wait, record_btrace_find_new_threads)
4168 (record_btrace_thread_alive): Likewise.
4169 * procfs.c (procfs_xfer_partial): Always delegate.
4170 * corelow.c (core_xfer_partial): Always delegate.
4171 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4172
4173 2014-07-18 Tom Tromey <tromey@redhat.com>
4174
4175 * exec.c (exec_make_note_section): Move earlier.
4176
4177 2014-07-17 Doug Evans <dje@google.com>
4178
4179 PR gdb/17170
4180 * maint.c (count_symtabs_and_blocks): Handle NULL
4181 current_program_space.
4182 (report_command_stats): Check global enabled flag in addition to
4183 recorded enabled flag.
4184 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4185
4186 2014-07-16 Pedro Alves <palves@redhat.com>
4187
4188 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4189
4190 2014-07-16 Tom Tromey <tromey@redhat.com>
4191
4192 * target.h (struct target_ops) <to_delete_record>: Reformat
4193 comment.
4194
4195 2014-07-16 Tom Tromey <tromey@redhat.com>
4196
4197 * target-delegates.c: Rebuild.
4198
4199 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4200
4201 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4202 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4203 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4204 (avr_pointer_to_address): Likewise.
4205 (avr_address_class_type_flags): New function.
4206 (avr_address_class_type_flags_to_name): Likewise.
4207 (avr_address_class_name_to_type_flags): Likewise.
4208 (avr_gdbarch_init): Set address_class_type_flags,
4209 address_class_type_flags_to_name and
4210 address_class_name_to_type_flags.
4211
4212 2014-07-15 Pedro Alves <palves@redhat.com>
4213
4214 * linux-nat.c (kill_callback): Save errno and work with saved
4215 copy.
4216
4217 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4218
4219 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4220
4221 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4222
4223 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4224 breakpoint support correctly.
4225
4226 2014-07-14 Pedro Alves <palves@redhat.com>
4227
4228 * utils.c (prompt_for_continue): Call target_terminal_ours.
4229
4230 2014-07-14 Pedro Alves <palves@redhat.com>
4231
4232 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4233 catch_errors. Don't re-enable stdin or notify observers where,
4234 and rethrow error.
4235 (fetch_inferior_event_wrapper): Delete.
4236
4237 2014-07-14 Pedro Alves <palves@redhat.com>
4238
4239 PR gdb/17072
4240 * top.c: Include "inf-loop.h".
4241 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4242 field.
4243 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4244 was async before.
4245 (gdb_readline_wrapper): Store whether the target is async, and
4246 make it sync.
4247
4248 2014-07-14 Pedro Alves <palves@redhat.com>
4249
4250 PR gdb/17072
4251 * top.c (gdb_readline_wrapper_line): Tweak comment.
4252 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4253 the input handler callback.
4254
4255 2014-07-14 Pedro Alves <palves@redhat.com>
4256
4257 PR gdb/17072
4258 * main.c: Include event-top.h.
4259 (handle_command_errors): New function.
4260 (catch_command_errors, catch_command_errors_const): Use it.
4261
4262 2014-07-14 Pedro Alves <palves@redhat.com>
4263
4264 * exceptions.c (catch_command_errors, catch_command_errors_const):
4265 Moved to main.c.
4266 * exceptions.h (catch_command_errors_ftype)
4267 (catch_command_errors_const_ftype): Moved to main.c.
4268 (catch_command_errors, catch_command_errors_const): Delete
4269 declarations.
4270 * main.c (catch_command_errors_ftype)
4271 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4272 (catch_command_errors, catch_command_errors_const)): Moved here
4273 from exceptions.c and make static.
4274
4275 2014-07-14 Pedro Alves <palves@redhat.com>
4276
4277 * exceptions.c (print_any_exception): Delete.
4278 (catch_exceptions_with_msg): Use exception_print instead of
4279 print_any_exception.
4280 (catch_errors): Use exception_fprintf instead of
4281 print_any_exception.
4282 (catch_command_errors, catch_command_errors_const): Use
4283 exception_print instead of print_any_exception.
4284
4285 2014-07-14 Pedro Alves <palves@redhat.com>
4286
4287 * infcall.c (run_inferior_call): Set 'sync_execution' while
4288 running the inferior call.
4289
4290 2014-07-14 Pedro Alves <palves@redhat.com>
4291
4292 * value.c (value_contents_equal): Delete function.
4293 * value.h (value_contents_equal): Delete declaration.
4294
4295 2014-07-14 Tom Tromey <tromey@redhat.com>
4296
4297 PR exp/17106:
4298 * gdbtypes.c (is_dynamic_type_internal): New function, from
4299 is_dynamic_type.
4300 (is_dynamic_type): Rewrite.
4301 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4302 (resolve_dynamic_struct): Likewise.
4303 (resolve_dynamic_type_internal): New function, from
4304 resolve_dynamic_type.
4305 (resolve_dynamic_type): Rewrite.
4306
4307 2014-07-14 Tom Tromey <tromey@redhat.com>
4308
4309 * target.c (target_require_runnable): Also check record_stratum.
4310 Update comment.
4311
4312 2014-07-11 Yao Qi <yao@codesourcery.com>
4313
4314 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4315 thumb_instruction_restores_sp return true.
4316
4317 2014-07-11 Yao Qi <yao@codesourcery.com>
4318
4319 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4320 (thumb_in_function_epilogue_p): Call
4321 thumb_instruction_restores_sp.
4322
4323 2014-07-11 Yao Qi <yao@codesourcery.com>
4324
4325 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4326 'add sp, #imm'.
4327 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4328
4329 2014-07-11 Gary Benson <gbenson@redhat.com>
4330
4331 * amd64-linux-nat.c (gdbcore.h): Remove include.
4332 (regset.h): Likewise.
4333 (nat/linux-btrace.h): Likewise.
4334 (btrace.h): Likewise.
4335 (gdb_assert.h): Likewise.
4336 (string.h): Likewise.
4337 (sys/uio.h): Likewise.
4338 (sys/debugreg.h): Likewise.
4339 (sys/syscall.h): Likewise.
4340 (sys/procfs.h): Likewise.
4341 (sys/user.h): Likewise.
4342 (asm/ptrace.h): Likewise.
4343 (i386-nat.h): Likewise.
4344 * i386-linux-nat.c (i386-nat.h): Likewise.
4345 (regset.h): Likewise.
4346 (target.h): Likewise.
4347 (linux-nat.h): Likewise.
4348 (nat/linux-btrace.h): Likewise.
4349 (btrace.h): Likewise.
4350 (gdb_assert.h): Likewise.
4351 (string.h): Likewise.
4352 (sys/uio.h): Likewise.
4353 (sys/user.h): Likewise.
4354 (sys/procfs.h): Likewise.
4355 (sys/reg.h): Likewise.
4356 (sys/debugreg.h): Likewise.
4357 (ORIG_EAX): Remove definition.
4358
4359 2014-07-11 Gary Benson <gbenson@redhat.com>
4360
4361 * i386-linux-nat.h: New file.
4362 * x86-linux-nat.h: Likewise.
4363 * x86-linux-nat.c: Likewise.
4364 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4365 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4366 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4367 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4368 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4369 (PTRACE_SETREGSET): Likewise.
4370 (arch_lwp_info): Now in x86-linux-nat.c.
4371 (have_ptrace_getregset): Now in x86-linux-nat.h.
4372 (x86_linux_dr_get): Now in x86-linux-nat.c.
4373 (x86_linux_dr_set): Likewise.
4374 (x86_linux_dr_get_addr): Likewise.
4375 (x86_linux_dr_get_control): Likewise.
4376 (x86_linux_dr_get_status): Likewise.
4377 (update_debug_registers_callback): Likewise.
4378 (x86_linux_dr_set_control): Likewise.
4379 (x86_linux_dr_set_addr): Likewise.
4380 (x86_linux_prepare_to_resume): Likewise.
4381 (x86_linux_new_thread): Likewise.
4382 (x86_linux_new_fork): Likewise.
4383 (x86_linux_get_thread_area): Likewise.
4384 (super_post_startup_inferior): Likewise.
4385 (x86_linux_child_post_startup_inferior): Likewise.
4386 (AMD64_LINUX_USER64_CS): Likewise.
4387 (AMD64_LINUX_X32_DS): Likewise.
4388 (x86_linux_read_description): Likewise.
4389 (x86_linux_enable_btrace): Likewise.
4390 (x86_linux_disable_btrace): Likewise.
4391 (x86_linux_teardown_btrace): Likewise.
4392 (x86_linux_read_btrace): Likewise.
4393 (x86_linux_create_target): Likewise.
4394 (x86_linux_add_target): Likewise.
4395 * i386-linux-nat.c (x86-linux-nat.h): New include.
4396 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4397 (PTRACE_SETREGSET): Likewise.
4398 (arch_lwp_info): Now in x86-linux-nat.c.
4399 (have_ptrace_getregset): Now in x86-linux-nat.h.
4400 (x86_linux_dr_get): Now in x86-linux-nat.c.
4401 (x86_linux_dr_set): Likewise.
4402 (x86_linux_dr_get_addr): Likewise.
4403 (x86_linux_dr_get_control): Likewise.
4404 (x86_linux_dr_get_status): Likewise.
4405 (update_debug_registers_callback): Likewise.
4406 (x86_linux_dr_set_control): Likewise.
4407 (x86_linux_dr_set_addr): Likewise.
4408 (x86_linux_prepare_to_resume): Likewise.
4409 (x86_linux_new_thread): Likewise.
4410 (x86_linux_new_fork): Likewise.
4411 (x86_linux_get_thread_area): Likewise.
4412 (super_post_startup_inferior): Likewise.
4413 (x86_linux_child_post_startup_inferior): Likewise.
4414 (AMD64_LINUX_USER64_CS): Likewise.
4415 (AMD64_LINUX_X32_DS): Likewise.
4416 (x86_linux_read_description): Likewise.
4417 (x86_linux_enable_btrace): Likewise.
4418 (x86_linux_disable_btrace): Likewise.
4419 (x86_linux_teardown_btrace): Likewise.
4420 (x86_linux_read_btrace): Likewise.
4421 (x86_linux_create_target): Likewise.
4422 (x86_linux_add_target): Likewise.
4423
4424 2014-07-11 Gary Benson <gbenson@redhat.com>
4425
4426 * amd64-linux-nat.c: Comment and whitespace changes.
4427 * i386-linux-nat.c: Comment and whitespace changes.
4428
4429 2014-07-11 Gary Benson <gbenson@redhat.com>
4430
4431 * amd64-linux-nat.c (x86_linux_create_target): New function.
4432 (x86_linux_add_target): Likewise.
4433 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4434 * i386-linux-nat.c (x86_linux_create_target): New function.
4435 (x86_linux_add_target): Likewise.
4436 (_initialize_i386_linux_nat): Delegate to the above new functions.
4437
4438 2014-07-11 Gary Benson <gbenson@redhat.com>
4439
4440 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4441 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4442 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4443 (ps_get_thread_area): Delegate to the above.
4444
4445 2014-07-11 Gary Benson <gbenson@redhat.com>
4446
4447 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4448 x86_linux_read_description. All uses updated. amd64-specific
4449 code conditionalized. Conditionalized i386-specific code added.
4450 Redundant cast removed.
4451 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4452 x86_linux_read_description. All uses updated. i386-specific
4453 code conditionalized. Conditionalized amd64-specific code added.
4454 One sizeof replaced with the actual type it is describing.
4455
4456 2014-07-11 Gary Benson <gbenson@redhat.com>
4457
4458 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4459 x86_linux_dr_get. All uses updated.
4460 (amd64_linux_dr_set): Renamed to
4461 x86_linux_dr_set. All uses updated.
4462 (amd64_linux_dr_get_addr): Renamed to
4463 x86_linux_dr_get_addr. All uses updated.
4464 (amd64_linux_dr_get_control): Renamed to
4465 x86_linux_dr_get_control. All uses updated.
4466 (amd64_linux_dr_get_status): Renamed to
4467 x86_linux_dr_get_status. All uses updated.
4468 (amd64_linux_dr_set_control): Renamed to
4469 x86_linux_dr_set_control. All uses updated.
4470 (amd64_linux_dr_set_addr): Renamed to
4471 x86_linux_dr_set_addr. All uses updated.
4472 (amd64_linux_prepare_to_resume): Renamed to
4473 x86_linux_prepare_to_resume. All uses updated.
4474 (amd64_linux_new_thread): Renamed to
4475 x86_linux_new_thread. All uses updated.
4476 (amd64_linux_new_fork): Renamed to
4477 x86_linux_new_fork. All uses updated.
4478 (amd64_linux_child_post_startup_inferior): Renamed to
4479 x86_linux_child_post_startup_inferior. All uses updated.
4480 (amd64_linux_enable_btrace): Renamed to
4481 x86_linux_enable_btrace. All uses updated.
4482 (amd64_linux_disable_btrace): Renamed to
4483 x86_linux_disable_btrace. All uses updated.
4484 (amd64_linux_teardown_btrace): Renamed to
4485 x86_linux_teardown_btrace. All uses updated.
4486 (amd64_linux_read_btrace): Renamed to
4487 x86_linux_read_btrace. All uses updated.
4488 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4489 x86_linux_dr_get. All uses updated.
4490 (i386_linux_dr_set): Renamed to
4491 x86_linux_dr_set. All uses updated.
4492 (i386_linux_dr_get_addr): Renamed to
4493 x86_linux_dr_get_addr. All uses updated.
4494 (i386_linux_dr_get_control): Renamed to
4495 x86_linux_dr_get_control. All uses updated.
4496 (i386_linux_dr_get_status): Renamed to
4497 x86_linux_dr_get_status. All uses updated.
4498 (i386_linux_dr_set_control): Renamed to
4499 x86_linux_dr_set_control. All uses updated.
4500 (i386_linux_dr_set_addr): Renamed to
4501 x86_linux_dr_set_addr. All uses updated.
4502 (i386_linux_prepare_to_resume): Renamed to
4503 x86_linux_prepare_to_resume. All uses updated.
4504 (i386_linux_new_thread): Renamed to
4505 x86_linux_new_thread. All uses updated.
4506 (i386_linux_new_fork): Renamed to
4507 x86_linux_new_fork. All uses updated.
4508 (i386_linux_child_post_startup_inferior): Renamed to
4509 x86_linux_child_post_startup_inferior. All uses updated.
4510 (i386_linux_enable_btrace): Renamed to
4511 x86_linux_enable_btrace. All uses updated.
4512 (i386_linux_disable_btrace): Renamed to
4513 x86_linux_disable_btrace. All uses updated.
4514 (i386_linux_teardown_btrace): Renamed to
4515 x86_linux_teardown_btrace. All uses updated.
4516 (i386_linux_read_btrace): Renamed to
4517 x86_linux_read_btrace. All uses updated.
4518
4519 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4520
4521 * remote.c (extended_remote_post_attach): New function.
4522 (init_extended_remote_ops): Install it as to_post_attach method.
4523
4524 2014-07-09 Pedro Alves <palves@redhat.com>
4525
4526 * infcmd.c (attach_command_post_wait): Don't call
4527 target_terminal_inferior here.
4528 (attach_command): Call it here instead.
4529
4530 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4531
4532 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4533 field.
4534 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4535 from varobj.c, with additional checks.
4536 (c_varobj_ops): Fill in is_path_expr_parent field.
4537 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4538 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4539 field.
4540 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4541 ops method.
4542 (varobj_default_is_path_expr_parent): New function.
4543 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4544 (varobj_default_is_path_expr_parent): Declare new function.
4545
4546 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4547
4548 * infcmd.c (finish_backward): Turn internal error into normal error.
4549
4550 2014-07-07 Pedro Alves <palves@redhat.com>
4551
4552 PR gdb/17096
4553 * remote.c (async_handle_remote_sigint)
4554 (async_handle_remote_sigint_twice): Call
4555 gdb_call_async_signal_handler instead of
4556 mark_async_signal_handler.
4557
4558 2014-07-07 Tom Tromey <tromey@redhat.com>
4559
4560 * target-delegates.c: Rebuild.
4561 * target.c (target_info_record): Remove.
4562 * record.c (info_record_command): Unconditionally call
4563 to_info_record.
4564 * target.h (struct target_ops) <to_info_record>: Use
4565 TARGET_DEFAULT_IGNORE.
4566 (target_info_record): Remove.
4567
4568 2014-07-07 Tom Tromey <tromey@redhat.com>
4569
4570 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4571 TARGET_DEFAULT_NORETURN.
4572 * target.c (generic_tls_error): New function.
4573 (target_translate_tls_address): Don't search target stack.
4574 * target-delegates.c: Rebuild.
4575 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4576 stack.
4577 * linux-thread-db.c (thread_db_get_thread_local_address):
4578 Unconditionally call beneath target.
4579
4580 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4581
4582 * cli/cli-logging.c (pop_output_files): Assign targerr to
4583 gdb_stdtargerr.
4584
4585 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4586
4587 * MAINTAINERS (Write After Approval): Update my email address.
4588
4589 2014-07-02 Gary Benson <gbenson@redhat.com>
4590
4591 * proc-service.c (ps_xfer_memory): Update comment.
4592 (ps_pstop): Remove unused function.
4593 (ps_pcontinue): Likewise.
4594 (ps_lstop): Likewise.
4595 (ps_lcontinue): Likewise.
4596 (ps_lgetxregsize): Likewise.
4597 (ps_lgetxregs): Likewise.
4598 (ps_lsetxregs): Likewise.
4599 (ps_plog): Likewise.
4600 (ps_ptread): Likewise.
4601 (ps_ptwrite): Likewise.
4602
4603 2014-07-01 Mark Wielaard <mjw@redhat.com>
4604
4605 * dwarf2read.c (add_array_cv_type): New function.
4606 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4607 (read_tag_volatile_type): Likewise.
4608
4609 2014-07-01 Tom Tromey <tromey@redhat.com>
4610
4611 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4612 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4613 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4614 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4615 * command.h (cmd_cfunc_ftype): Move earlier.
4616 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4617 (add_com, add_info): Use cmd_cfunc_ftype.
4618
4619 2014-06-30 Tom Tromey <tromey@redhat.com>
4620
4621 * symtab.c (operator_chars): Make parameters and return type
4622 const.
4623 (file_matches): Make "files" const.
4624 (struct search_symbols_data) <files>: Now const.
4625 (search_symbols): Make "regexp" and "files" parameters const.
4626 Update.
4627 (symtab_symbol_info): Remove cast.
4628 (rbreak_command): Update.
4629 * symtab.h (search_symbols): Update.
4630
4631 2014-06-27 Yao Qi <yao@codesourcery.com>
4632
4633 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4634 Change parameter type to 'struct thread_info *'. Caller
4635 updated.
4636 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4637 Update declaration.
4638 * dummy-frame.c (struct dummy_frame_id): New.
4639 (dummy_frame_id_eq): New function.
4640 (struct dummy_frame) <id>: Change its type to 'struct
4641 dummy_frame_id'.
4642 (dummy_frame_push): Add parameter ptid and save it in
4643 dummy_frame_id.
4644 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4645 inferior_ptid.
4646 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4647 to inferior_ptid.
4648 (lookup_dummy_frame): Change parameter type to 'struct
4649 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4650 instead of frame_id_eq.
4651 (dummy_frame_pop): Add parameter ptid. Callers updated.
4652 Update comments. Compose dummy_frame_id and pass it to
4653 lookup_dummy_frame.
4654 (dummy_frame_discard): Add parameter ptid.
4655 (dummy_frame_sniffer): Compose dummy_frame_id and call
4656 dummy_frame_id_eq instead of frame_id_eq.
4657 (fprint_dummy_frames): Print ptid.
4658 * dummy-frame.h: Remove comments.
4659 (dummy_frame_push): Add ptid in declaration.
4660 (dummy_frame_pop, dummy_frame_discard): Likewise.
4661
4662 2014-06-26 Tom Tromey <tromey@redhat.com>
4663
4664 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4665 * command.h (error_no_arg): Update.
4666
4667 2014-06-26 Tom Tromey <tromey@redhat.com>
4668
4669 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4670 (do_show_command): Make "arg" const.
4671 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4672
4673 2014-06-26 Tom Tromey <tromey@redhat.com>
4674
4675 * record-full.c (record_full_get_bookmark): Make "args" const.
4676 (record_full_goto_bookmark): Make "raw_bookmark" const.
4677 * record.c (record_goto): New function.
4678 (cmd_record_goto): Use it. Now static.
4679 * record.h (record_goto): Declare.
4680 (cmd_record_goto): Remove declaration.
4681 * target-delegates.c: Rebuild.
4682 * target.h (struct target_ops) <to_get_bookmark,
4683 to_goto_bookmark>: Make parameter const.
4684
4685 2014-06-26 Tom Tromey <tromey@redhat.com>
4686
4687 * defs.h (generic_load): Update.
4688 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4689 * monitor.c (monitor_load): Make "args" const.
4690 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4691 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4692 const.
4693 (mips_load): Make "file" const.
4694 * remote-sim.c (gdbsim_load): Make "args" const.
4695 * remote.c (remote_load): Make "name" const.
4696 * symfile.c (generic_load): Make "args" const.
4697 * target-delegates.c: Rebuild.
4698 * target.c (target_load): Make "arg" const.
4699 (debug_to_load): Make "args" const.
4700 * target.h (struct target_ops) <to_load>: Make parameter const.
4701 (target_load): Update.
4702
4703 2014-06-26 Tom Tromey <tromey@redhat.com>
4704
4705 PR symtab/16902:
4706 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4707 (dwarf2_physname, read_partial_die)
4708 (guess_partial_die_structure_name, fixup_partial_die)
4709 (guess_full_die_structure_name, anonymous_struct_prefix)
4710 (dwarf2_name): Use per-BFD obstack.
4711
4712 2014-06-26 Yao Qi <yao@codesourcery.com>
4713
4714 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4715 dummyframe and this_id into inner block below.
4716
4717 2014-06-26 Yao Qi <yao@codesourcery.com>
4718
4719 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4720 with "signal_pass[0]" in the initialization of signal_pass.
4721
4722 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4723
4724 * record-btrace.c (record_btrace_generating_corefile)
4725 (record_btrace_prepare_to_generate_core)
4726 (record_btrace_done_generating_core): New.
4727 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4728 (record_btrace_store_registers, record_btrace_prepare_to_store):
4729 Forward request when generating a core file.
4730 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4731 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4732 to_done_generating_core.
4733
4734 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4735
4736 * target.h (target_ops) <to_prepare_to_generate_core>
4737 <to_done_generating_core>: New.
4738 (target_prepare_to_generate_core, target_done_generating_core): New.
4739 * target.c (target_prepare_to_generate_core)
4740 (target_done_generating_core): New.
4741 * target-delegates.c: Regenerate.
4742 * gcore.c: (write_gcore_file): Rename to ...
4743 (write_gcore_file_1): ...this.
4744 (write_gcore_file): Call target_prepare_to_generate_core
4745 and target_done_generating_core.
4746
4747 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4748
4749 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4750 * gcore.c (write_gcore_file): Free memory returned from
4751 make_corefile_notes.
4752 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4753 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4754
4755 2014-06-24 Yao Qi <yao@codesourcery.com>
4756
4757 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4758 (arm_linux_init_abi): Set skip_trampoline_code with
4759 gdbarch_skip_trampoline_code instead of
4760 find_solib_trampoline_target.
4761
4762 2014-06-24 Yao Qi <yao@codesourcery.com>
4763
4764 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4765 arm_skip_bx_reg returns non-zero.
4766
4767 2014-06-24 Yao Qi <yao@codesourcery.com>
4768
4769 * arm-tdep.c (arm_skip_bx_reg): New function.
4770 (arm_skip_stub): Call arm_skip_bx_reg.
4771
4772 2014-06-23 Don Breazeal <donb@codesourcery.com>
4773
4774 * MAINTAINERS: Add myself as write-after-approval maintainer.
4775
4776 2014-06-23 Pedro Alves <palves@redhat.com>
4777
4778 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4779 DR_CONTROL before setting DR0..DR3.
4780 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4781 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4782 bits of DR_CONTROL related to the debug register slot being
4783 disabled. If all slots are vacant, clear local slowdown as well,
4784 and assert DR_CONTROL is 0.
4785
4786 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4787
4788 * python/lib/gdb/command/xmethods.py
4789 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4790 current progspace only if the string "progspace" matches LOCUS_RE.
4791
4792 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4793
4794 Fix --with-system-readline with readline-6.3 patch 5.
4795 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4796 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4797 types.
4798
4799 2014-06-20 Tom Tromey <tromey@redhat.com>
4800
4801 * dwarf2read.c (dw2_get_real_path): Use correct type in
4802 OBSTACK_CALLOC.
4803 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4804
4805 2014-06-20 Gary Benson <gbenson@redhat.com>
4806
4807 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4808 * common/glibc_thread_db.h: Likewise.
4809 * common/i386-cpuid.h: Likewise.
4810 * common/i386-gcc-cpuid.h: Likewise.
4811 * common/linux-btrace.h: Likewise.
4812 * common/linux-osdata.h: Likewise.
4813 * common/linux-procfs.h: Likewise.
4814 * common/linux-ptrace.h: Likewise.
4815 * common/mips-linux-watch.h: Likewise.
4816 * common/linux-btrace.c: Moved to nat.
4817 * common/linux-osdata.c: Likewise.
4818 * common/linux-procfs.c: Likewise.
4819 * common/linux-ptrace.c: Likewise.
4820 * common/mips-linux-watch.c: Likewise.
4821 * nat/gdb_thread_db.h: Moved from common.
4822 * nat/glibc_thread_db.h: Likewise.
4823 * nat/i386-cpuid.h: Likewise.
4824 * nat/i386-gcc-cpuid.h: Likewise.
4825 * nat/linux-btrace.c: Likewise.
4826 * nat/linux-btrace.h: Likewise.
4827 * nat/linux-osdata.c: Likewise.
4828 * nat/linux-osdata.h: Likewise.
4829 * nat/linux-procfs.c: Likewise.
4830 * nat/linux-procfs.h: Likewise.
4831 * nat/linux-ptrace.c: Likewise.
4832 * nat/linux-ptrace.h: Likewise.
4833 * nat/mips-linux-watch.c: Likewise.
4834 * nat/mips-linux-watch.h: Likewise.
4835 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4836 (object file files): Reordered.
4837 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4838 of glibc_thread_db.h.
4839
4840 2014-06-20 Gary Benson <gbenson@redhat.com>
4841
4842 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4843 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4844 (i386_dr_low): Likewise.
4845 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4846 (i386_dr_low_set_addr): Likewise.
4847 (i386_dr_low_get_addr): Likewise.
4848 (i386_dr_low_can_set_control): Likewise.
4849 (i386_dr_low_set_control): Likewise.
4850 (i386_dr_low_get_control): Likewise.
4851 (i386_dr_low_get_status): Likewise.
4852 (i386_get_debug_register_length): Likewise.
4853 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4854 (i386_dr_low): Likewise.
4855 * nat/i386-dregs.c (i386-low.h): Remove include.
4856 (i386-nat.h): Likewise.
4857 (nat/i386-dregs.h): New include.
4858 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4859 (i386_dr_low_set_addr): Likewise.
4860 (i386_dr_low_get_addr): Likewise.
4861 (i386_dr_low_can_set_control): Likewise.
4862 (i386_dr_low_set_control): Likewise.
4863 (i386_dr_low_get_control): Likewise.
4864 (i386_dr_low_get_status): Likewise.
4865 (i386_get_debug_register_length): Likewise.
4866 (debug_hw_points): Likewise.
4867
4868 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4869
4870 * Makefile.in (SFILES): Add d-exp.y.
4871 (YYFILES): Add d-exp.c.
4872 (YYOBJ): Add d-exp.o.
4873 (local-maintainer-clean): Delete d-exp.c.
4874 * d-exp.y: New file.
4875 * d-lang.h (d_parse): New declaration.
4876 (d_error): New declaration.
4877 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4878 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4879 PREC_ORDER operators.
4880 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4881
4882 2014-06-19 Yao Qi <yao@codesourcery.com>
4883
4884 * gdbthread.h (any_running): Remove the declaration.
4885 * thread.c (any_running): Remove.
4886
4887 2014-06-19 Yao Qi <yao@codesourcery.com>
4888
4889 * gdbthread.h (struct thread_info) <state>: Change its type to
4890 'enum thread_state'. Update comments.
4891
4892 2014-06-19 Pedro Alves <palves@redhat.com>
4893
4894 * gdbthread.h (ALL_THREADS): Delete.
4895 (ALL_NON_EXITED_THREADS): New macro.
4896 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4897 instead of ALL_THREADS.
4898 * infrun.c (find_thread_needs_step_over)
4899 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4900 instead of ALL_THREADS.
4901 * record-btrace.c (record_btrace_open)
4902 (record_btrace_stop_recording, record_btrace_close)
4903 (record_btrace_is_replaying, record_btrace_resume)
4904 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4905 * remote.c (append_pending_thread_resumptions): Likewise.
4906 * thread.c (thread_apply_all_command): Likewise.
4907
4908 2014-06-19 Gary Benson <gbenson@redhat.com>
4909
4910 * i386-nat.c (i386_stopped_by_watchpoint):
4911 Use i386_dr_stopped_by_watchpoint.
4912 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4913 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4914
4915 2014-06-19 Gary Benson <gbenson@redhat.com>
4916
4917 * nat/i386-dregs.c: New file.
4918 * Makefile.in (i386-dregs.o): New rule.
4919 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4920 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4921 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4922 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4923 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4924 * config/i386/go32.mh (NATDEPFILES): Likewise.
4925 * config/i386/linux.mh (NATDEPFILES): Likewise.
4926 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4927 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4928 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4929 * i386-nat.h (debug_hw_points): New declaration.
4930 * i386-nat.c (breakpoint.h): Remove include.
4931 (command.h): Likewise.
4932 (target.h): Likewise.
4933 (gdb_assert.h): Likewise.
4934 (debug_hw_points): Made nonstatic.
4935 (debug_printf): Now in i386-dregs.c.
4936 (TARGET_HAS_DR_LEN_8): Likewise.
4937 (DR_CONTROL_SHIFT): Likewise.
4938 (DR_CONTROL_SIZE): Likewise.
4939 (DR_RW_EXECUTE): Likewise.
4940 (DR_RW_WRITE): Likewise.
4941 (DR_RW_READ): Likewise.
4942 (DR_RW_IORW): Likewise.
4943 (DR_LEN_1): Likewise.
4944 (DR_LEN_2): Likewise.
4945 (DR_LEN_4): Likewise.
4946 (DR_LEN_8): Likewise.
4947 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4948 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4949 (DR_ENABLE_SIZE): Likewise.
4950 (DR_LOCAL_SLOWDOWN): Likewise.
4951 (DR_GLOBAL_SLOWDOWN): Likewise.
4952 (DR_CONTROL_RESERVED): Likewise.
4953 (I386_DR_CONTROL_MASK): Likewise.
4954 (I386_DR_VACANT): Likewise.
4955 (I386_DR_LOCAL_ENABLE): Likewise.
4956 (I386_DR_GLOBAL_ENABLE): Likewise.
4957 (I386_DR_DISABLE): Likewise.
4958 (I386_DR_SET_RW_LEN): Likewise.
4959 (I386_DR_GET_RW_LEN): Likewise.
4960 (I386_DR_WATCH_HIT): Likewise.
4961 (i386_wp_op_t): Likewise.
4962 (i386_show_dr): Likewise.
4963 (i386_length_and_rw_bits): Likewise.
4964 (i386_insert_aligned_watchpoint): Likewise.
4965 (i386_remove_aligned_watchpoint): Likewise.
4966 (i386_handle_nonaligned_watchpoint): Likewise.
4967 (i386_update_inferior_debug_regs): Likewise.
4968 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4969 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4970 (i386_region_ok_for_watchpoint):
4971 Use i386_dr_region_ok_for_watchpoint.
4972 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4973
4974 2014-06-19 Gary Benson <gbenson@redhat.com>
4975
4976 * i386-nat.c (i386_insert_hw_breakpoint): Use
4977 i386_insert_watchpoint.
4978 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4979
4980 2014-06-19 Gary Benson <gbenson@redhat.com>
4981
4982 * i386-nat.c (i386_dr_show): Renamed to
4983 i386_show_dr and made static. All uses updated.
4984 (i386_dr_length_and_rw_bits): Renamed to
4985 i386_length_and_rw_bits and made static.
4986 All uses updated.
4987 (i386_dr_insert_aligned_watchpoint): Renamed to
4988 i386_insert_aligned_watchpoint and made static.
4989 All uses updated.
4990 (i386_dr_remove_aligned_watchpoint): Renamed to
4991 i386_remove_aligned_watchpoint and made static.
4992 All uses updated.
4993 (i386_dr_update_inferior_debug_regs): Renamed to
4994 i386_update_inferior_debug_regs and made static.
4995 All uses updated.
4996 * nat/i386-dregs.h (i386_dr_show): Removed.
4997 (i386_dr_length_and_rw_bits): Likewise.
4998 (i386_dr_insert_aligned_watchpoint): Likewise.
4999 (i386_dr_remove_aligned_watchpoint): Likewise.
5000 (i386_dr_update_inferior_debug_regs): Likewise.
5001
5002 2014-06-19 Gary Benson <gbenson@redhat.com>
5003
5004 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5005 * configure: Regenerate.
5006 * config.in: Likewise.
5007 * main.c (signal.h): New include.
5008 (setup_alternate_signal_stack): New function.
5009 (captured_main): Call the above.
5010 * cp-support.c (signal.h): New include.
5011 (catch_demangler_crashes): New flag.
5012 (SIGJMP_BUF): New define.
5013 (SIGSETJMP): Likewise.
5014 (SIGLONGJMP): Likewise.
5015 (gdb_demangle_jmp_buf): New static global.
5016 (gdb_demangle_attempt_core_dump): Likewise.
5017 (gdb_demangle_signal_handler): New function.
5018 (gdb_demangle): If catch_demangler_crashes is set, install the
5019 above signal handler before calling bfd_demangle, and restore
5020 the original signal handler afterwards. Display the offending
5021 symbol and call demangler_warning the first time a segmentation
5022 fault is caught.
5023 (_initialize_cp_support): New maint set/show command.
5024
5025 2014-06-19 Gary Benson <gbenson@redhat.com>
5026
5027 * utils.h (resource_limit_kind): New enum.
5028 (can_dump_core): New declaration.
5029 (warn_cant_dump_core): Likewise.
5030 (dump_core): Likewise.
5031 * utils.c (dump_core): Made nonstatic. Added new
5032 parameter "limit_kind".
5033 (can_dump_core): Made nonstatic. Moved printing code to...
5034 (warn_cant_dump_core): New function.
5035 (can_dump_core_warn): Likewise.
5036 (internal_vproblem): Replace calls to can_dump_core with
5037 calls to can_dump_core_warn. Supply new argument to each.
5038
5039 2014-06-19 Gary Benson <gbenson@redhat.com>
5040
5041 * utils.h (demangler_vwarning): New declaration.
5042 (demangler_warning): Likewise.
5043 * utils.c (struct internal_problem)
5044 <user_settable_should_quit>: New field.
5045 <user_settable_should_dump_core>: Likewise
5046 (internal_error_problem): Add values for above new fields.
5047 (internal_warning_problem): Likewise.
5048 (demangler_warning_problem): New static global.
5049 (demangler_vwarning): New function.
5050 (demangler_warning): Likewise.
5051 (add_internal_problem_command): Selectively add commands.
5052 (_initialize_utils): New internal problem command.
5053 * maint.c (maintenance_demangler_warning): New function.
5054 (_initialize_maint_cmds): New command.
5055
5056 2014-06-18 Tom Tromey <tromey@redhat.com>
5057
5058 * f-valprint.c (info_common_command_for_block): Update.
5059 * symtab.h (struct general_symbol_info) <common_block>: Now
5060 const.
5061
5062 2014-06-18 Tom Tromey <tromey@redhat.com>
5063
5064 * symtab.h (struct symtab) <blockvector>: Now const.
5065 * ada-lang.c (ada_add_global_exceptions): Update.
5066 * buildsym.c (augment_type_symtab): Update.
5067 * dwarf2read.c (dw2_lookup_symbol): Update.
5068 * jit.c (finalize_symtab): Update.
5069 * jv-lang.c (add_class_symtab_symbol): Update.
5070 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5071 Update.
5072 * objfiles.c (objfile_relocate1): Update.
5073 * psymtab.c (lookup_symbol_aux_psymtabs)
5074 (maintenance_check_psymtabs): Update.
5075 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5076 Update.
5077 * spu-tdep.c (spu_catch_start): Update.
5078 * symmisc.c (dump_symtab_1): Update.
5079 * symtab.c (lookup_global_symbol_from_objfile)
5080 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5081 (basic_lookup_transparent_type_quick)
5082 (basic_lookup_transparent_type, find_pc_sect_symtab)
5083 (find_pc_sect_line, search_symbols): Update.
5084 * block.c (find_block_in_blockvector): Make "bl" const.
5085 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5086 const.
5087 (blockvector_contains_pc): Make "bv" const.
5088 (block_for_pc_sect): Update.
5089 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5090 (blockvector_contains_pc): Update.
5091 * breakpoint.c (resolve_sal_pc): Update.
5092 * inline-frame.c (block_starting_point_at): Update.
5093
5094 2014-06-18 Tom Tromey <tromey@redhat.com>
5095
5096 * completer.c (complete_line): Make "line_buffer" const.
5097 * completer.h (complete_line): Update.
5098
5099 2014-06-18 Tom Tromey <tromey@redhat.com>
5100
5101 * symtab.c (add_macro_name): Remove unneeded cast.
5102
5103 2014-06-18 Tom Tromey <tromey@redhat.com>
5104
5105 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5106 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5107
5108 2014-06-18 Tom Tromey <tromey@redhat.com>
5109
5110 * probe.c (info_probes_for_ops): Make "arg" const.
5111 * probe.h (info_probes_for_ops): Update.
5112
5113 2014-06-18 Tom Tromey <tromey@redhat.com>
5114
5115 * varobj.c (varobj_create): Update.
5116 * valops.c (value_of_this): Update.
5117 * tracepoint.c (add_local_symbols, scope_info): Update.
5118 * symtab.h (struct general_symbol_info) <block>: Now const.
5119 * symtab.c (skip_prologue_sal)
5120 (default_make_symbol_completion_list_break_on)
5121 (skip_prologue_using_sal): Update.
5122 * stack.h (iterate_over_block_locals)
5123 (iterate_over_block_local_vars): Update.
5124 * stack.c (print_frame_args): Update.
5125 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5126 parameter const.
5127 (get_selected_block): Make return type const.
5128 * python/py-frame.c (frapy_block): Update.
5129 * python/py-block.c (gdbpy_block_for_pc): Update.
5130 * p-exp.y (%union) <bval>: Now const.
5131 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5132 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5133 * m2-exp.y (%union) <bval>: Now const.
5134 * linespec.c (get_current_search_block): Make return type const.
5135 (create_sals_line_offset, find_label_symbols): Update.
5136 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5137 Update.
5138 (block_starting_point_at): Make "block" const.
5139 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5140 (check_exception_resume): Update.
5141 * guile/scm-frame.c (gdbscm_frame_block): Update.
5142 * guile/scm-block.c (gdbscm_lookup_block): Update.
5143 * frame.h (get_frame_block): Update.
5144 (get_selected_block): Make return type const.
5145 * frame.c (frame_id_inner): Update.
5146 * f-valprint.c (info_common_command_for_block)
5147 (info_common_command): Update.
5148 * dwarf2loc.c (dwarf2_find_location_expression)
5149 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5150 (locexpr_describe_location_piece): Update.
5151 * c-exp.y (%union) <bval>: Now const.
5152 * breakpoint.c (resolve_sal_pc): Update.
5153 * blockframe.c (get_frame_block):Make return type const.
5154 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5155 (block_innermost_frame): Update.
5156 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5157 (block_for_pc, block_for_pc_sect): Update.
5158 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5159 'pblock' const.
5160 (block_for_pc_sect, block_for_pc): Make return type const.
5161 * ax-gdb.c (gen_expr): Update.
5162 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5163 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5164 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5165 (ada_read_var_value): Update.
5166 * ada-exp.y (struct name_info) <block>: Now const.
5167 (%union): Likewise.
5168 (block_lookup): Constify.
5169
5170 2014-06-18 Gary Benson <gbenson@redhat.com>
5171
5172 * nat/i386-dregs.h: New file.
5173 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5174 * i386-nat.h (i386-dregs.h): New include.
5175 (DR_FIRSTADDR): Now in i386-dregs.h.
5176 (DR_LASTADDR): Likewise.
5177 (DR_NADDR): Likewise.
5178 (DR_STATUS): Likewise.
5179 (DR_CONTROL): Likewise.
5180 (i386_debug_reg_state): Likewise.
5181 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5182
5183 2014-06-18 Don Breazeal <donb@codesourcery.com>
5184
5185 * breakpoint.c (set_longjmp_breakpoint): Call
5186 momentary_breakpoint_from_master with additional argument.
5187 (set_longjmp_breakpoint_for_call_dummy): Call
5188 momentary_breakpoint_from_master with additional argument.
5189 (set_std_terminate_breakpoint): Call
5190 momentary_breakpoint_from_master with additional argument.
5191 (momentary_breakpoint_from_master): Add argument to function
5192 definition and use it to initialize structure member flag.
5193 (clone_momentary_breakpoint): Call
5194 momentary_breakpoint_from_master with additional argument.
5195 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5196 member flags set in momentary_breakpoint_from_master.
5197
5198 2014-06-18 Gary Benson <gbenson@redhat.com>
5199
5200 * i386-nat.c (i386_show_dr): Renamed to
5201 i386_dr_show and made nonstatic. All uses updated.
5202 (i386_length_and_rw_bits): Renamed to
5203 i386_dr_length_and_rw_bits and made nonstatic.
5204 All uses updated.
5205 (i386_insert_aligned_watchpoint): Renamed to
5206 i386_dr_insert_aligned_watchpoint and made nonstatic.
5207 All uses updated.
5208 (i386_remove_aligned_watchpoint): Renamed to
5209 i386_dr_remove_aligned_watchpoint and made nonstatic.
5210 All uses updated.
5211 (i386_update_inferior_debug_regs): Renamed to
5212 i386_dr_update_inferior_debug_regs and made nonstatic.
5213 All uses updated.
5214
5215 2014-06-18 Gary Benson <gbenson@redhat.com>
5216
5217 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5218 (i386_dr_low_can_set_control): Likewise.
5219 (i386_dr_low_set_addr): Likewise.
5220 (i386_dr_low_set_control): Likewise.
5221 (i386_dr_low_get_addr): Likewise.
5222 (i386_dr_low_get_status): Likewise.
5223 (i386_dr_low_get_control): Likewise.
5224 (i386_insert_aligned_watchpoint): Use new macros.
5225 (i386_update_inferior_debug_regs): Likewise.
5226 (i386_stopped_data_address): Likewise.
5227
5228 2014-06-18 Gary Benson <gbenson@redhat.com>
5229
5230 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5231 New parameter. All uses updated.
5232
5233 2014-06-18 Gary Benson <gbenson@redhat.com>
5234
5235 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5236 All uses updated.
5237
5238 2014-06-18 Gary Benson <gbenson@redhat.com>
5239
5240 * i386-nat.c (debug_printf): New macro.
5241 (i386_get_debug_register_length): Likewise.
5242 (TARGET_HAS_DR_LEN_8): Use above macro.
5243 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5244 and printf_unfiltered. Use phex to format values.
5245
5246 2014-06-18 Gary Benson <gbenson@redhat.com>
5247
5248 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5249 Make const.
5250
5251 2014-06-18 Gary Benson <gbenson@redhat.com>
5252
5253 * i386-nat.c: Comment changes.
5254
5255 2014-06-18 Gary Benson <gbenson@redhat.com>
5256
5257 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5258
5259 2014-06-18 Gary Benson <gbenson@redhat.com>
5260
5261 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5262 (i386_insert_aligned_watchpoint): Likewise.
5263 (i386_remove_aligned_watchpoint): Likewise.
5264 (i386_handle_nonaligned_watchpoint): Likewise.
5265
5266 2014-06-18 Gary Benson <gbenson@redhat.com>
5267
5268 * i386-nat.c: Whitespace changes.
5269
5270 2014-06-17 Samuel Bronson <naesten@gmail.com>
5271
5272 * MAINTAINERS: Update Roland McGrath's email address.
5273 Thanks to Sergio Durigan Junior for pointing out that he left
5274 Red Hat a while ago, and giving me a current address.
5275
5276 2014-06-17 Tom Tromey <tromey@redhat.com>
5277
5278 * utils.h (savestring): Remove declaration.
5279
5280 2014-06-17 Tom Tromey <tromey@redhat.com>
5281
5282 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5283
5284 2014-06-16 Keith Seitz <keiths@redhat.com>
5285
5286 PR mi/15863
5287 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5288 to update the varobj if inferior_ptid is null_ptid.
5289
5290 2014-06-16 Tom Tromey <tromey@redhat.com>
5291
5292 * target.h (struct target_ops) <to_info_proc>: Make parameter
5293 const.
5294 (target_info_proc): Update.
5295 * target.c (target_info_proc): Make "args" const.
5296 * procfs.c (procfs_info_proc): Update.
5297 * linux-tdep.c (linux_info_proc): Update.
5298 (linux_core_info_proc_mappings): Make "args" const.
5299 (linux_core_info_proc): Update.
5300 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5301 * gdbarch.c: Rebuild.
5302 * gdbarch.h: Rebuild.
5303 * corelow.c (core_info_proc): Update.
5304
5305 2014-06-16 Tom Tromey <tromey@redhat.com>
5306
5307 * target.h (struct target_ops) <to_disconnect>: Make parameter
5308 const.
5309 (target_disconnect): Update.
5310 * target.c (target_disconnect): Make "args" const.
5311 * target-delegates.c: Rebuild.
5312 * remote.c (remote_disconnect): Update.
5313 * record.h (record_disconnect): Update.
5314 * record.c (record_disconnect): Update.
5315 * inf-child.c (inf_child_disconnect): Update.
5316
5317 2014-06-16 Tom Tromey <tromey@redhat.com>
5318
5319 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5320 * target.c (debug_to_rcmd, default_rcmd): Update.
5321 * target-delegates.c: Rebuild.
5322 * remote.c (remote_rcmd): Update.
5323 * monitor.c (monitor_rcmd): Update.
5324
5325 2014-06-16 Pedro Alves <palves@redhat.com>
5326
5327 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5328 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5329 have OBJF_SHARED set.
5330 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5331 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5332 instead of OBJF_USERLOADED.
5333 * objfiles.h (OBJF_SHARED): Update comment.
5334 (userloaded_objfile_contains_address_p): Rename to ...
5335 (shared_objfile_contains_address_p): ... this, and update
5336 comments.
5337 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5338 new objfile.
5339 (remove_symbol_file_command): Skip objfiles that don't have
5340 OBJF_SHARED set.
5341
5342 2014-06-16 Tom Tromey <tromey@redhat.com>
5343
5344 * minsyms.h (prim_record_minimal_symbol)
5345 (prim_record_minimal_symbol_and_info): Update comments.
5346
5347 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5348
5349 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5350 or --without-guile, according to how GDB was built.
5351
5352 2014-06-13 Tom Tromey <tromey@redhat.com>
5353
5354 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5355 to help_list.
5356 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5357 to help_list.
5358 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5359 help_list.
5360 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5361 help_list.Pass all_commands, not -1, to help_list.
5362 * cli/cli-dump.c (dump_command, append_command)
5363 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5364 (binary_dump_command, binary_append_command): Pass all_commands,
5365 not -1, to help_list.
5366 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5367 -1, to help_list.
5368 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5369 -1, to help_list.
5370 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5371 help_list.
5372 * top.c (set_history): Pass all_commands, not -1, to help_list.
5373 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5374 all_commands, not -1, to help_list.
5375 * symfile.c (overlay_command): Pass all_commands, not -1, to
5376 help_list.
5377 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5378 help_list.
5379 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5380 help_list.
5381 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5382 -1, to help_list.
5383 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5384 not -1, to help_list.
5385 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5386 not -1, to help_list.
5387 * maint.c (maintenance_command, maintenance_info_command)
5388 (maintenance_print_command, maintenance_set_cmd): Pass
5389 all_commands, not -1, to help_list.
5390 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5391 help_list.
5392 * language.c (set_check): Pass all_commands, not -1, to help_list.
5393 * infcmd.c (unset_command): Pass all_commands, not -1, to
5394 help_list.
5395 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5396 help_list.
5397 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5398 help_list.
5399 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5400 help_list.
5401 * breakpoint.c (save_command): Pass all_commands, not -1, to
5402 help_list.
5403 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5404 all_commands, not -1, to help_list.
5405
5406 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5407
5408 * regcache.c (struct register_to_invalidate): New structure.
5409 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5410 functions.
5411 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5412
5413 2014-06-12 Yao Qi <yao@codesourcery.com>
5414
5415 * varobj.c (varobj_get_num_children): Call
5416 varobj_is_dynamic_p.
5417 (varobj_list_children): Likewise.
5418 (varobj_update): Likewise. Update comments.
5419
5420 2014-06-12 Yao Qi <yao@codesourcery.com>
5421
5422 * varobj.c (varobj_pretty_printed_p): Rename to ...
5423 (varobj_is_dynamic_p): ... this. New function.
5424 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5425 (varobj_is_dynamic_p): Declare.
5426 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5427 (mi_print_value_p, varobj_update_one): Likewise.
5428
5429 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5430 Yao Qi <yao@codesourcery.com>
5431
5432 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5433 (varobj_get_iterator): Wrap up code for pretty-printer by
5434 "#if HAVE_PYTHON" and "#endif".
5435 (update_dynamic_varobj_children): Likewise.
5436
5437 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5438 Yao Qi <yao@codesourcery.com>
5439
5440 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5441 gdb_python_initialized is false. Move some code from varobj.c.
5442 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5443 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5444 (struct varobj_item): Moved to varobj-iter.h".
5445 (varobj_clear_saved_item): New function.
5446 (update_dynamic_varobj_children): Move python-related code to
5447 py-varobj.c.
5448 (free_variable): Call varobj_clear_saved_item and
5449 varobj_iter_delete.
5450
5451 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5452 Yao Qi <yao@codesourcery.com>
5453
5454 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5455 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5456 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5457 (py-varobj.o): New rule.
5458 * python/py-varobj.c: New file.
5459 * python/python-internal.h (py_varobj_get_iterator): Declare.
5460 * varobj-iter.h: New file.
5461 * varobj.c: Include "varobj-iter.h"
5462 (struct varobj) <child_iter>: Change its type from "PyObject *"
5463 to "struct varobj_iter *".
5464 <saved_item>: Likewise.
5465 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5466 [HAVE_PYTHON] (varobj_get_iterator): New function.
5467 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5468 python-specific code to python/py-varobj.c.
5469 (install_visualizer): Call varobj_iter_delete instead of
5470 Py_XDECREF.
5471 * varobj.h (varobj_ensure_python_env): Declare.
5472
5473 2014-06-12 Yao Qi <yao@codesourcery.com>
5474
5475 * varobj.c (struct varobj_item): New structure.
5476 (create_child_with_value): Update declaration.
5477 (varobj_add_child): Replace arguments 'name' and 'value' with
5478 'item'. All callers updated.
5479 (install_dynamic_child): Likewise.
5480 (update_dynamic_varobj_children): Likewise.
5481 (varobj_add_child): Likewise.
5482 (create_child_with_value): Likewise.
5483
5484 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5485
5486 * NEWS: Create a new section for the next release branch.
5487 Rename the section of the current branch, now that it has
5488 been cut.
5489
5490 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5491
5492 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5493 * version.in: Bump version to 7.8.50.DATE-cvs.
5494
5495 2014-06-11 Pedro Alves <palves@redhat.com>
5496
5497 PR remote/17028
5498 * ser-mingw.c (net_windows_socket_check_pending): New function.
5499 (net_windows_select_thread): Ignore spurious wakeups. Use
5500 net_windows_socket_check_pending.
5501 (net_windows_wait_handle): Check for pending events with
5502 ioctlsocket, through net_windows_socket_check_pending, instead of
5503 checking the socket's event.
5504
5505 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5506
5507 * python/python-internal.h (gdb_PyObject_GetAttrString)
5508 (gdb_PyObject_HasAttrString): New inline function definitions.
5509 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5510 char * of the second argument to PyObject_GetAttrString.
5511
5512 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5513
5514 * serial.c (serial_write): Fix index of character to be printed
5515 in call to serial_logchar when serial debug traces are enabled.
5516
5517 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5518
5519 * gdbtypes (resolve_dynamic_range): Add function description.
5520
5521 2014-06-09 Pedro Alves <palves@redhat.com>
5522
5523 * linux-nat.c (linux_child_follow_fork): Initialize status with
5524 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5525 inner block. Only pass the signal to PTRACE_DETACH if in pass
5526 state.
5527
5528 2014-06-09 Gary Benson <gbenson@redhat.com>
5529
5530 * common/signals.c (gdb_signal_from_host): Reorder to separate
5531 the always-available ANSI-standard signals from the signals that
5532 require checking.
5533 (do_gdb_signal_to_host): Likewise.
5534 * proc-events.c (signal_table): Likewise.
5535
5536 2014-06-08 Hui Zhu <hui@codesourcery.com>
5537
5538 * common/linux-ptrace.c (linux_disable_event_reporting): New
5539 function.
5540 * common/linux-ptrace.h (linux_disable_event_reporting): New
5541 declaration.
5542 * linux-nat.c (linux_child_follow_fork): Do a single step before
5543 detach.
5544
5545 2014-06-07 Keith Seitz <keiths@redhat.com>
5546
5547 Revert:
5548 PR c++/16253
5549 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5550 from symbol_matches_domain in symtab.c. All local callers
5551 of symbol_matches_domain updated.
5552 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5553 search STRUCT_DOMAIN.
5554 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5555 independently. standard_lookup will do that automatically.
5556 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5557 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5558 (cp_lookup_symbol_in_namespace): Likewise.
5559 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5560 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5561 may return a STRUCT_DOMAIN match.
5562 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5563 * cp-support.c: Include language.h.
5564 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5565 VAR_DOMAIN.
5566 * psymtab.c (match_partial_symbol): Compare the requested
5567 domain with the symbol's domain directly.
5568 (lookup_partial_symbol): Likewise.
5569 * symtab.c (lookup_symbol_in_language): Explain when/why
5570 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5571 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5572 appropriate languages.
5573 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5574 and moved to ada-lang.c
5575 (lookup_block_symbol): Explain that this function only returns
5576 symbol matching the requested DOMAIN.
5577 Compare the requested domain with the symbol's domain directly.
5578 (iterate_over_symbols): Compare the requested domain with the
5579 symbol's domain directly.
5580 * symtab.h (symbol_matches_domain): Remove.
5581
5582 2014-06-06 Doug Evans <xdje42@gmail.com>
5583
5584 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5585 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5586 (gdbscm_guile_version_is_at_least): Declare.
5587 (gdbscm_scm_string_to_int): Declare.
5588 * guile/guile.c (gdbscm_guile_major_version): New global.
5589 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5590 (guile_datadir): New static global.
5591 (gdbscm_guile_data_directory): New function.
5592 (initialize_scheme_side): Update.
5593 (misc_guile_functions): Add guile-data-directory.
5594 (initialize_gdb_module): Fetch guile version number.
5595 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5596 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5597 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5598 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5599 comments.
5600 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5601 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5602 * guile/scm-value.c (gdbscm_value_to_string): Only call
5603 scm_port_conversion_strategy if Guile version >= 2.0.6.
5604
5605 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5606
5607 * main.c (print_gdb_help): Add -q and --silent.
5608
5609 2014-06-06 Gary Benson <gbenson@redhat.com>
5610
5611 * common/signals.c: Remove preprocessor conditionals for
5612 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5613 SIGSEGV and SIGTERM.
5614 * proc-events.c: Likewise.
5615
5616 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5617
5618 * symfile.c (symfile_free_objfile): Remove restriction to
5619 OBJF_USERLOADED.
5620 * symfile-mem.c (symbol_file_add_from_memory): Call
5621 add_target_sections_of_objfile.
5622
5623 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5624
5625 * guile/scm-value.c (gdbscm_history_append_x): Use
5626 'vlscm_get_value_smob_arg_unsafe' instead of
5627 'vlscm_scm_to_value'.
5628
5629 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5630
5631 PR mi/15806
5632 * utils.c (printchar): Don't escape at all if quoter is NUL.
5633 Update function documentation to clarify effect of parameter
5634 QUOTER.
5635 * remote.c (escape_buffer): Pass '\\' as the quoter to
5636 fputstrn_unfiltered.
5637 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5638 generate the output.
5639 (mi_solib_unloaded): Same.
5640
5641 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5642
5643 * development.sh: Delete.
5644 * Makefile.in (config.status): Adjust dependency on development.sh.
5645 * configure.ac: Adjust development.sh source call.
5646 * configure: Regenerate.
5647
5648 2014-06-04 Doug Evans <xdje42@gmail.com>
5649
5650 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5651 is_scheme_bkpt, spec.
5652 (bpscm_make_breakpoint_smob): Initialize new members.
5653 (gdbscm_create_breakpoint_x): Split into two ...
5654 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5655 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5656 (scheme_function breakpoint_functions): Update.
5657 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5658 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5659 register-breakpoint!.
5660
5661 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5662
5663 PR server/17023
5664 * mem-break.c (z_type_supported): Return zero if
5665 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5666
5667 2014-06-04 Tom Tromey <tromey@redhat.com>
5668
5669 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5670 value_from_contents_and_address_unresolved.
5671 (ada_template_to_fixed_record_type_1): Likewise.
5672 (ada_which_variant_applies): Likewise.
5673 * value.h (value_from_contents_and_address_unresolved): Declare.
5674 * value.c (value_from_contents_and_address_unresolved): New
5675 function.
5676 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5677 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5678 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5679
5680 2014-06-04 Tom Tromey <tromey@redhat.com>
5681
5682 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5683
5684 2014-06-04 Tom Tromey <tromey@redhat.com>
5685
5686 * procfs.c (procfs_attach): Make "args" const.
5687 * windows-nat.c (windows_attach): Make "args" const.
5688 * nto-procfs.c (procfs_attach): Make "args" const.
5689 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5690 * go32-nat.c (go32_attach): Make "args" const.
5691 * gnu-nat.c (gnu_attach): Make "args" const.
5692 * darwin-nat.c (darwin_attach): Make "args" const.
5693 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5694 * linux-nat.c (linux_nat_attach): Make "args" const.
5695 * remote.c (extended_remote_attach_1, extended_remote_attach):
5696 Make "args" const.
5697 * target.h (struct target_ops) <to_attach>: Make "args" const.
5698 (find_default_attach): Likewise.
5699 * utils.c (parse_pid_to_attach): Make "args" const.
5700 * utils.h (parse_pid_to_attach): Update.
5701
5702 2014-06-04 Tom Tromey <tromey@redhat.com>
5703
5704 * target-delegates.c: Rebuild.
5705 * target.c (default_thread_address_space): New function.
5706 (target_thread_address_space): Simplify.
5707 * target.h (struct target_ops) <to_thread_address_space>: Add
5708 TARGET_DEFAULT_FUNC.
5709
5710 2014-06-04 Doug Evans <xdje42@gmail.com>
5711
5712 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5713
5714 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5715
5716 * record-btrace.c: Include event-loop.h and inf-loop.h.
5717 (record_btrace_resume_exec_dir)
5718 (record_btrace_async_inferior_event_handler)
5719 (record_btrace_handle_async_inferior_event): New.
5720 (record_btrace_open): Create async event handler.
5721 (record_btrace_close): Delete async event handler.
5722 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5723 Mark async event handler.
5724 (record_btrace_execution_direction): New.
5725 (init_record_btrace_ops): Initialize to_execution_direction.
5726
5727 2014-06-03 Doug Evans <xdje42@gmail.com>
5728
5729 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5730 (gdbscm_make_parameter): Ditto.
5731
5732 2014-06-03 Doug Evans <dje@google.com>
5733
5734 * exec.c (exec_close_1): Call clear_section_table instead of
5735 resize_section_table.
5736 (clear_section_table): New function.
5737 (resize_section_table): Make static. Rename arg num_added to
5738 adjustment.
5739 * exec.h (clear_section_table): Declare.
5740 (resize_section_table): Delete.
5741 * progspace.c (release_program_space): Call clear_section_table
5742 instead of resize_section_table.
5743
5744 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5745
5746 * NEWS (Python Scripting): Add entry about the new xmethods
5747 feature.
5748
5749 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5750
5751 * python/py-xmethods.c: New file.
5752 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5753 (objfpy_dealloc): XDECREF on the new xmethods field.
5754 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5755 field.
5756 (objfpy_get_xmethods): New function.
5757 (objfile_getset): New entry 'xmethods'.
5758 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5759 (pspy_dealloc): XDECREF on the new xmethods field.
5760 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5761 field.
5762 (pspy_get_xmethods): New function.
5763 (pspace_getset): New entry 'xmethods'.
5764 * python/python-internal.h: Add declarations for new functions.
5765 * python/python.c (_initialize_python): Invoke
5766 gdbpy_initialize_xmethods.
5767 * python/lib/gdb/__init__.py (xmethods): New
5768 attribute.
5769 * python/lib/gdb/xmethod.py: New file.
5770 * python/lib/gdb/command/xmethods.py: New file.
5771
5772 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5773
5774 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5775 best match method returned by find_overload_match is an xmethod.
5776 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5777 the best matching operator returned by find_overload_match is an
5778 xmethod.
5779 * valops.c: #include "extension.h".
5780 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5781 Return void. The list of matching source methods is returned in
5782 "fn_list" and a vector of matching debug method workers is
5783 returned in "xm_worker_vec". Update all callers.
5784 (value_find_oload_method_list): Likewise.
5785 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5786 non-NULL, then the index of the best matching method in this
5787 vector is returned. Update all callers.
5788 (find_overload_match): Include xmethods while performing overload
5789 resolution.
5790
5791 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5792
5793 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5794 * extension-priv.h (struct extension_language_ops): Add the
5795 xmethod interface.
5796 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5797 get_matching_xmethod_workers, get_xmethod_argtypes,
5798 invoke_xmethod, free_xmethod_worker,
5799 free_xmethod_worker_vec): New functions.
5800 * extension.h: #include "common/vec.h".
5801 New function declarations.
5802 (struct xmethod_worker): New struct.
5803 (VEC (xmethod_worker_ptr)): New vector type.
5804 (xmethod_worker_ptr): New typedef.
5805 (xmethod_worker_vec): Likewise.
5806 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5807 builtin_type.
5808 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5809 (struct builtin_type): New field "xmethod".
5810 * valarith.c (value_ptradd): Assert that the value argument is not
5811 lval_xcallable.
5812 * valops.c (value_must_coerce_to_target): Return 0 for
5813 lval_xcallable values.
5814 * value.c (struct value): New field XM_WORKER in the field
5815 LOCATION.
5816 (value_address, value_raw_address): Return 0 for lval_xcallable
5817 values.
5818 (set_value_address): Assert that the value is not an
5819 lval_xcallable.
5820 (value_free): Free the associated xmethod worker when freeing
5821 lval_xcallable values.
5822 (set_value_component_location): Assert that the WHOLE value is not
5823 lval_xcallable.
5824 (value_of_xmethod, call_xmethod): New functions.
5825 * value.h: Declare "struct xmethod_worker".
5826 Declare new functions value_of_xmethod, call_xmethod.
5827
5828 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5829 Pedro Alves <palves@redhat.com>
5830
5831 PR breakpoints/17000
5832 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5833 New function, extracted from software_breakpoint_inserted_here_p.
5834 (software_breakpoint_inserted_here_p): Replace factored out code
5835 by call to find_non_raw_software_breakpoint_inserted_here.
5836 (bp_target_info_copy_insertion_state): New function.
5837 (bkpt_insert_location): Handle the case of a single-step
5838 breakpoint already inserted at the same address.
5839 (bkpt_remove_location): Handle the case of a single-step
5840 breakpoint still inserted at the same address.
5841 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5842 breakpoint already inserted at the same address.
5843 (deprecated_remove_raw_breakpoint): Handle the case of a
5844 non-raw breakpoint still inserted at the same address.
5845 (find_single_step_breakpoint): New function, extracted from
5846 single_step_breakpoint_inserted_here_p.
5847 (find_single_step_breakpoint): New function,
5848 factored out from single_step_breakpoint_inserted_here_p.
5849 (single_step_breakpoint_inserted_here_p): Reimplement.
5850
5851 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5852
5853 Pushed by Joel Brobecker <brobecker@adacore.com>
5854 * source.c (show_substitute_path_command): Fix display of matching
5855 substitution rules.
5856
5857 2014-06-03 Gary Benson <gbenson@redhat.com>
5858
5859 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5860
5861 2014-06-02 Doug Evans <xdje42@gmail.com>
5862
5863 Add parameter support for Guile.
5864 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5865 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5866 (scm-param.o): New rule.
5867 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5868 (gdbscm_misc_error): Declare.
5869 (gdbscm_canonicalize_command_name): Declare.
5870 (gdbscm_scm_to_host_string): Declare.
5871 (gdbscm_scm_from_host_string): Declare.
5872 (gdbscm_initialize_parameters): Declare.
5873 * guile/guile.c (initialize_gdb_module): Call
5874 gdbscm_initialize_parameters.
5875 * guile/lib/gdb.scm: Export parameter symbols.
5876 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5877 cmdscm_canonicalize_name and made public. All callers updated.
5878 * guile/scm-exception.c (gdbscm_misc_error): New function.
5879 * guile/scm-param.c: New file.
5880 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5881 (gdbscm_scm_to_host_string): New function.
5882 (gdbscm_scm_from_host_string): New function.
5883 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5884
5885 2014-06-02 Doug Evans <xdje42@gmail.com>
5886
5887 Add command support for Guile.
5888 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5889 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5890 (scm-cmd.o): New rule.
5891 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5892 (gdbscm_user_error_p): Declare.
5893 (gdbscm_parse_command_name): Declare.
5894 (gdbscm_valid_command_class_p): Declare.
5895 (gdbscm_initialize_commands): Declare.
5896 * guile/guile.c (initialize_gdb_module): Call
5897 gdbscm_initialize_commands.
5898 * guile/lib/gdb.scm: Export command symbols.
5899 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5900 (throw-user-error): New function.
5901 * guile/scm-cmd.c: New file.
5902 * guile/scm-exception.c (user_error_symbol): New static global.
5903 (gdbscm_user_error_p): New function.
5904 (gdbscm_initialize_exceptions): Set user_error_symbol.
5905 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5906
5907 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5908
5909 * top.c (command_loop): Handle comments here...
5910 (command_line_input): ... not here.
5911
5912 2014-06-02 Doug Evans <xdje42@gmail.com>
5913
5914 Add progspace support for Guile.
5915 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5916 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5917 (scm-progspace.o): New rule.
5918 * guile/guile-internal.h (pspace_smob): New typedef.
5919 (psscm_pspace_smob_pretty_printers): Declare.
5920 (psscm_pspace_smob_from_pspace): Declare.
5921 (psscm_scm_from_pspace): Declare.
5922 * guile/guile.c (initialize_gdb_module): Call
5923 gdbscm_initialize_pspaces.
5924 * guile/lib/gdb.scm: Export progspace symbols.
5925 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5926 support.
5927 (append-pretty-printer!): Ditto.
5928 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5929 Implement.
5930 * guile/scm-progspace.c: New file.
5931
5932 2014-06-03 Alan Modra <amodra@gmail.com>
5933
5934 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5935 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5936
5937 2014-06-02 Doug Evans <dje@google.com>
5938
5939 Add support for skeletonless type units.
5940 * dwarf2read.c (struct dwarf2_per_objfile): New member
5941 n_allocated_type_units.
5942 (struct dwarf2_per_objfile) <tu_stats>: New member
5943 nr_all_type_units_reallocs.
5944 (create_signatured_type_table_from_index): Initialize
5945 n_allocated_type_units
5946 (create_all_type_units): Ditto.
5947 (add_type_unit): Move up in file. New arg slot.
5948 All callers updated. Increase space for all_type_units more
5949 efficiently.
5950 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5951 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5952 (lookup_dwp_signatured_type): Ditto.
5953 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5954 All callers updated.
5955 (build_type_psymtabs_1): Leave type_unit_groups as
5956 NULL if no TUs present.
5957 (print_tu_stats): New function.
5958 (process_skeletonless_type_unit): New function.
5959 (process_dwo_file_for_skeletonless_type_units): New
5960 function.
5961 (process_skeletonless_type_units): New function.
5962 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5963 Call print tu_stats if debugging enabled.
5964
5965 2014-06-02 Pedro Alves <palves@redhat.com>
5966
5967 * breakpoint.c (build_target_command_list): Don't build a command
5968 list if we have any duplicate location that isn't a dprintf.
5969
5970 2014-06-02 Pedro Alves <palves@redhat.com>
5971
5972 * breakpoint.c (dprintf_breakpoint_hit): New function.
5973 (initialize_breakpoint_ops): Install it as dprintf's
5974 breakpoint_hit method.
5975
5976 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5977
5978 * source.c (substitute_path_rule_matches): Simplify using
5979 filename_ncmp instead of FILENAME_CMP.
5980
5981 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5982
5983 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5984
5985 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5986
5987 * configure.ac: When Guile is available, check for the
5988 availability of 'scm_new_smob'.
5989 * configure, config.h.in: Regenerate.
5990 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5991 function.
5992
5993 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5994
5995 * frame.c (struct frame_info): Add stop_string field.
5996 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5997 (get_prev_frame_always): Old content moved into
5998 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5999 TRY_CATCH, handle MEMORY_ERROR exceptions.
6000 (frame_stop_reason_string): New function definition.
6001 * frame.h (unwind_stop_reason_to_string): Extend comment to
6002 mention frame_stop_reason_string.
6003 (frame_stop_reason_string): New function declaration.
6004 * stack.c (frame_info): Switch to frame_stop_reason_string.
6005 (backtrace_command_1): Switch to frame_stop_reason_string.
6006 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6007 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6008 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6009
6010 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6011
6012 * frame.c (frame_stop_reason_string): Rename to ...
6013 (unwind_stop_reason_to_string): this.
6014 * frame.h (frame_stop_reason_string): Rename to ...
6015 (unwind_stop_reason_to_string): this.
6016 * stack.c (frame_info): Update call to frame_stop_reason_string.
6017 (backtrace_command_1): Likewise.
6018 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6019 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6020
6021 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6022
6023 * frame.c (remove_prev_frame): New function.
6024 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6025 remove_prev_frame.
6026
6027 2014-05-29 Pedro Alves <palves@redhat.com>
6028
6029 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6030 and make it const. When a single-step decays to a continue,
6031 clear 'step', not 'hw_step'. Pass whether the caller wanted
6032 to step to user_visible_resume_ptid, not what we ask the
6033 target to do.
6034
6035 2014-05-29 Pedro Alves <palves@redhat.com>
6036
6037 * infrun.c (process_event_stop_test, handle_step_into_function)
6038 (handle_step_into_function_backward): Adjust.
6039 Don't set the even thread's stop_step and call stop_waiting before
6040 calling end_stepping_range. Instead do that ...
6041 (end_stepping_range): ... here. Take an ecs pointer parameter.
6042
6043 2014-05-29 Pedro Alves <palves@redhat.com>
6044
6045 * infrun.c (stop_stepping): Rename to ...
6046 (stop_waiting): ... this.
6047 (proceed): Update comment.
6048 (process_event_stop_test, handle_inferior_event)
6049 (handle_signal_stop, handle_step_into_function)
6050 (handle_step_into_function_backward): Update.
6051
6052 2014-05-29 Pedro Alves <palves@redhat.com>
6053
6054 * infcall.c (run_inferior_call): Don't check whether the current
6055 thread is running after the proceed call.
6056
6057 2014-05-29 Pedro Alves <palves@redhat.com>
6058 Tom Tromey <tromey@redhat.com>
6059
6060 * NEWS: Mention "maint set target-async", "set mi-async", and that
6061 background execution commands are now always available.
6062 * target.h (target_async_permitted): Update comment.
6063 * target.c (target_async_permitted, target_async_permitted_1):
6064 Default to 1.
6065 (set_target_async_command): Rename to ...
6066 (maint_set_target_async_command): ... this.
6067 (show_target_async_command): Rename to ...
6068 (maint_show_target_async_command): ... this.
6069 (_initialize_target): Adjust.
6070 * infcmd.c (prepare_execution_command): Make extern.
6071 * inferior.h (prepare_execution_command): Declare.
6072 * infrun.c (set_observer_mode): Leave target async alone.
6073 * mi/mi-interp.c (mi_interpreter_init): Install
6074 mi_on_sync_execution_done as sync_execution_done observer.
6075 (mi_on_sync_execution_done): New function.
6076 (mi_execute_command_input_handler): Don't print the prompt if we
6077 just started a synchronous command with an async target.
6078 (mi_on_resume): Check sync_execution before printing prompt.
6079 * mi/mi-main.h (mi_async_p): Declare.
6080 * mi/mi-main.c: Include gdbcmd.h.
6081 (mi_async_p): New function.
6082 (mi_async, mi_async_1): New globals.
6083 (set_mi_async_command, show_mi_async_command, mi_async): New
6084 functions.
6085 (exec_continue): Call prepare_execution_command.
6086 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6087 (mi_execute_async_cli_command): Use mi_async_p.
6088 (_initialize_mi_main): Install "set mi-async". Make
6089 "target-async" a deprecated alias.
6090
6091 2014-05-29 Pedro Alves <palves@redhat.com>
6092
6093 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6094 (_initialize_cli_interp): Adjust.
6095 * event-loop.c: Include "observer.h".
6096 (start_event_loop): Notify 'command_error' observers instead of
6097 calling display_gdb_prompt. Remove FIXME comment.
6098 * event-top.c (display_gdb_prompt): Remove call into the
6099 interpreters.
6100 * inf-loop.c: Include "observer.h".
6101 (inferior_event_handler): Notify 'command_error' observers instead
6102 of calling display_gdb_prompt.
6103 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6104 observers instead of calling display_gdb_prompt.
6105 * interps.c (interp_set): Don't call display_gdb_prompt.
6106 (current_interp_display_prompt_p): Delete.
6107 * interps.h (interp_prompt_p): Delete declaration.
6108 (interp_prompt_p_ftype): Delete.
6109 (struct interp_procs) <prompt_proc_p>: Delete field.
6110 (current_interp_display_prompt_p): Delete declaration.
6111 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6112 (_initialize_mi_interp): Adjust.
6113 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6114 'command_error' observers.
6115 (tui_on_sync_execution_done, tui_on_command_error): New
6116 functions.
6117 (tui_display_prompt_p): Delete.
6118 (_initialize_tui_interp): Adjust.
6119
6120 2014-05-29 Pedro Alves <palves@redhat.com>
6121
6122 PR gdb/13860
6123 * cli/cli-interp.c: Include infrun.h and observer.h.
6124 (cli_uiout, cli_interp): New globals.
6125 (cli_on_signal_received, cli_on_end_stepping_range)
6126 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6127 functions.
6128 (cli_interpreter_init): Install them as 'end_stepping_range',
6129 'signal_received' 'signal_exited', 'exited' and 'no_history'
6130 observers.
6131 (_initialize_cli_interp): Remove cli_interp local.
6132 * infrun.c (handle_inferior_event): Call the several stop reason
6133 observers instead of printing the stop reason directly.
6134 (end_stepping_range): New function.
6135 (print_end_stepping_range_reason, print_signal_exited_reason)
6136 (print_exited_reason, print_signal_received_reason)
6137 (print_no_history_reason): Make static, and add an uiout
6138 parameter. Print to that instead of to CURRENT_UIOUT.
6139 * infrun.h (print_end_stepping_range_reason)
6140 (print_signal_exited_reason, print_exited_reason)
6141 (print_signal_received_reason print_no_history_reason): New
6142 declarations.
6143 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6144 'mi_uiout'.
6145 <cli_uiout>: New field.
6146 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6147 uiout for CLI output. Install 'signal_received',
6148 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6149 observers.
6150 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6151 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6152 (mi_on_no_history): New functions.
6153 (ui_out_free_cleanup): Delete function.
6154 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6155 instead use the one already stored in the MI interpreter data.
6156 (mi_ui_out): Adjust.
6157 * tui/tui-interp.c: Include infrun.h and observer.h.
6158 (tui_interp): New global.
6159 (tui_on_signal_received, tui_on_end_stepping_range)
6160 (tui_on_signal_exited, tui_on_exited)
6161 (tui_on_no_history): New functions.
6162 (tui_init): Install them as 'end_stepping_range',
6163 'signal_received' 'signal_exited', 'exited' and 'no_history'
6164 observers.
6165 (_initialize_tui_interp): Delete tui_interp local.
6166
6167 2014-05-29 Pedro Alves <palves@redhat.com>
6168
6169 PR gdb/15713
6170 * linux-nat.c (linux_nat_resume_callback): Rename the second
6171 parameter to 'except'. Skip LP if it points to EXCEPT.
6172 (linux_nat_resume): Don't mark the event lwp as not stopped
6173 before resuming sibling lwps. Instead ask
6174 linux_nat_resume_callback to skip the event lwp. Mark it as not
6175 stopped after actually resuming it.
6176 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6177 resuming it.
6178 (wait_lwp): Mark the lwp as stopped here.
6179 (stop_wait_callback): Mark the lwp as not stopped right after
6180 resuming it. Don't mark lwps as stopped here.
6181 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6182 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6183
6184 2014-05-29 Pedro Alves <palves@redhat.com>
6185
6186 PR PR15693
6187 * infrun.c (resume): Determine how much to resume depending on
6188 whether the caller wanted a step, not whether we can hardware step
6189 the target. Mark all threads that we intend to run as running,
6190 unless we're calling an inferior function.
6191 (normal_stop): If the thread is running an infcall, don't finish
6192 thread state.
6193 * target.c (target_resume): Don't mark threads as running here.
6194
6195 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6196
6197 * serial.c (_initialize_serial): Remove support for
6198 the "set remotebaud" and "show remotebaud" commands.
6199 * NEWS: Add entry documenting the removal of that command.
6200
6201 2014-05-28 Yao Qi <yao@codesourcery.com>
6202
6203 * charset.c: Fix typo in comments.
6204
6205 2014-05-27 Gary Benson <gbenson@redhat.com>
6206
6207 * utils.c (internal_vproblem): Prompt for a bug report.
6208
6209 2014-05-26 Andy Wingo <wingo@igalia.com>
6210
6211 * guile/scm-arch.c (arscm_mark_arch_smob):
6212 * guile/scm-block.c (bkscm_mark_block_smob)
6213 (bkscm_mark_block_syms_progress_smob):
6214 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6215 * guile/scm-exception.c (exscm_mark_exception_smob):
6216 * guile/scm-frame.c (frscm_mark_frame_smob):
6217 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6218 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6219 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6220 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6221 (ppscm_mark_pretty_printer_worker_smob):
6222 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6223 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6224 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6225 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6226 mark functions.
6227 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6228 function.
6229
6230 2014-05-26 Andy Wingo <wingo@igalia.com>
6231 Doug Evans <xdje42@gmail.com>
6232
6233 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6234 empty_base_class. All uses updated.
6235 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6236 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6237 Adapt all callers.
6238 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6239 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6240 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6241 (gdbscm_gsmob_has_property_p, add_property_name)
6242 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6243 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6244 (gdb-object-has-property?, gdb-object-properties): Remove.
6245 (gdb-object-kind): Renamed from gsmob-kind.
6246
6247 2014-05-26 Andy Wingo <wingo@igalia.com>
6248
6249 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6250 * configure: Regenerate.
6251
6252 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6253
6254 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6255
6256 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6257
6258 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6259 (replay_memory_access_read_only, replay_memory_access_read_write)
6260 (replay_memory_access_types, replay_memory_access)
6261 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6262 (cmd_set_record_btrace, cmd_show_record_btrace)
6263 (cmd_show_replay_memory_access): New.
6264 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6265 (record_btrace_remove_breakpoint): Replace
6266 record_btrace_allow_memory_access with replay_memory_access.
6267 (_initialize_record_btrace): Add commands.
6268 * NEWS: Announce it.
6269
6270 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6271
6272 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6273
6274 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6275
6276 * MAINTAINERS (Write After Approval): Move self back from
6277 paper trail.
6278
6279 2014-05-22 Pedro Alves <palves@redhat.com>
6280
6281 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6282 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6283 (disable_randomization, enum exec_direction_kind)
6284 (execution_direction, stop_registers, start_remote)
6285 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6286 (wait_for_inferior, normal_stop, get_last_target_status)
6287 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6288 (insert_step_resume_breakpoint_at_sal)
6289 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6290 (set_step_info, print_stop_event, signal_stop_state)
6291 (signal_print_state, signal_pass_state, signal_stop_update)
6292 (signal_print_update, signal_pass_update)
6293 (update_signals_program_target, clear_exit_convenience_vars)
6294 (displaced_step_dump_bytes, update_observer_mode)
6295 (signal_catch_update, gdb_signal_from_command): Move
6296 declarations ...
6297 * infrun.h: ... to this new file.
6298 * amd64-tdep.c: Include infrun.h.
6299 * annotate.c: Include infrun.h.
6300 * arch-utils.c: Include infrun.h.
6301 * arm-linux-tdep.c: Include infrun.h.
6302 * arm-tdep.c: Include infrun.h.
6303 * break-catch-sig.c: Include infrun.h.
6304 * breakpoint.c: Include infrun.h.
6305 * common/agent.c: Include infrun.h instead of inferior.h.
6306 * corelow.c: Include infrun.h.
6307 * event-top.c: Include infrun.h.
6308 * go32-nat.c: Include infrun.h.
6309 * i386-tdep.c: Include infrun.h.
6310 * inf-loop.c: Include infrun.h.
6311 * infcall.c: Include infrun.h.
6312 * infcmd.c: Include infrun.h.
6313 * infrun.c: Include infrun.h.
6314 * linux-fork.c: Include infrun.h.
6315 * linux-nat.c: Include infrun.h.
6316 * linux-thread-db.c: Include infrun.h.
6317 * monitor.c: Include infrun.h.
6318 * nto-tdep.c: Include infrun.h.
6319 * procfs.c: Include infrun.h.
6320 * record-btrace.c: Include infrun.h.
6321 * record-full.c: Include infrun.h.
6322 * remote-m32r-sdi.c: Include infrun.h.
6323 * remote-mips.c: Include infrun.h.
6324 * remote-notif.c: Include infrun.h.
6325 * remote-sim.c: Include infrun.h.
6326 * remote.c: Include infrun.h.
6327 * reverse.c: Include infrun.h.
6328 * rs6000-tdep.c: Include infrun.h.
6329 * s390-linux-tdep.c: Include infrun.h.
6330 * solib-irix.c: Include infrun.h.
6331 * solib-osf.c: Include infrun.h.
6332 * solib-svr4.c: Include infrun.h.
6333 * target.c: Include infrun.h.
6334 * top.c: Include infrun.h.
6335 * windows-nat.c: Include infrun.h.
6336 * mi/mi-interp.c: Include infrun.h.
6337 * mi/mi-main.c: Include infrun.h.
6338 * python/py-threadevent.c: Include infrun.h.
6339
6340 2014-05-22 Pedro Alves <palves@redhat.com>
6341
6342 * infrun.c (handle_inferior_event): Store the exit code for
6343 --return-child-result here, instead of ...
6344 (print_exited_reason): ... here.
6345
6346 2014-05-21 Pedro Alves <palves@redhat.com>
6347
6348 PR gdb/13860
6349 * gdbthread.h (struct thread_control_state): New field
6350 `command_interp'.
6351 * infrun.c (follow_fork): Copy the new thread control field to the
6352 child fork thread.
6353 (clear_proceed_status_thread): Clear the new thread control field.
6354 (proceed): Set the new thread control field.
6355 * interps.h (command_interp): Declare.
6356 * interps.c (command_interpreter): New global.
6357 (command_interp): New function.
6358 (interp_exec): Set `command_interpreter' while here.
6359 * cli-out.c (cli_uiout_dtor): New function.
6360 (cli_ui_out_impl): Install it.
6361 * mi/mi-interp.c: Include cli-out.h.
6362 (mi_cmd_interpreter_exec): Add comment.
6363 (restore_current_uiout_cleanup): New function.
6364 (ui_out_free_cleanup): New function.
6365 (mi_on_normal_stop): If finishing an execution command started by
6366 a CLI command, or any kind of breakpoint-like event triggered,
6367 print the stop event to the output (CLI) stream.
6368 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6369
6370 2014-05-21 Pedro Alves <palves@redhat.com>
6371
6372 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6373 current source line having changed.
6374 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6375 * infrun.c (normal_stop): Adjust call to
6376 set_current_sal_from_frame.
6377 * source.c (clear_lines_listed_range): New function.
6378 (set_current_source_symtab_and_line, identify_source_line): Clear
6379 the lines listed range.
6380 (line_info): Handle the first "info line" after the current source
6381 line having changed.
6382 * stack.c (print_stack_frame): Remove center handling.
6383 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6384 center sal.line.
6385
6386 2014-05-21 Pedro Alves <palves@redhat.com>
6387
6388 * inf-child.c (inf_child_mourn_inferior): New function.
6389 * inf-child.h (inf_child_mourn_inferior): New declaration.
6390 * darwin-nat.c (darwin_mourn_inferior): Use
6391 inf_child_mourn_inferior.
6392 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6393 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6394 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6395 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6396 * windows-nat.c (windows_mourn_inferior): Likewise.
6397
6398 2014-05-21 Doug Evans <xdje42@gmail.com>
6399
6400 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6401
6402 2014-05-21 Doug Evans <xdje42@gmail.com>
6403
6404 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6405 (gdbscm_out_of_range_error): Ditto.
6406 (gdbscm_memory_error): Ditto.
6407 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6408 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6409 (gdbscm_out_of_range_error): Update.
6410 (gdbscm_memory_error): Update.
6411 (gdbscm_scm_to_target_string_unsafe): Delete.
6412
6413 2014-05-21 Pedro Alves <palves@redhat.com>
6414
6415 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6416 globals.
6417 (inf_child_open_target): New function.
6418 (inf_child_open): Use inf_child_open_target to push the target
6419 instead of erroring out.
6420 (inf_child_disconnect, inf_child_close)
6421 (inf_child_maybe_unpush_target): New functions.
6422 (inf_child_target): Install inf_child_disconnect and
6423 inf_child_close. Store a pointer to the returned object.
6424 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6425 declarations.
6426 * target.c (auto_connect_native_target): New global.
6427 (show_default_run_target): New function.
6428 (find_default_run_target): Return NULL if automatically connecting
6429 to the native target is disabled.
6430 (_initialize_target): Install set/show auto-connect-native-target.
6431 * NEWS: Mention "set auto-connect-native-target", and "target
6432 native".
6433 * linux-nat.c (super_close): New global.
6434 (linux_nat_close): Call super_close.
6435 (linux_nat_add_target): Store a pointer to the base class's
6436 to_close method.
6437 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6438 inf_child_maybe_unpush.
6439 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6440 already pushed.
6441 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6442 the inferior. Use inf_child_maybe_unpush_target.
6443 (inf_ttrace_attach): Don't push the target if it is already
6444 pushed.
6445 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6446 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6447 after mourning the inferior. Use inf_child_maybe_unpush_target.
6448 (darwin_attach_pid): Don't push the target if it is already
6449 pushed.
6450 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6451 mourning the inferior. Use inf_child_maybe_unpush_target.
6452 (gnu_detach): Use inf_child_maybe_unpush_target.
6453 * go32-nat.c (go32_create_inferior): Don't push the target if it
6454 is already pushed.
6455 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6456 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6457 (procfs_open): Rename to ...
6458 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6459 comments. Can target_preopen before changing node. Call
6460 inf_child_open_target to push the target explicitly.
6461 (procfs_attach): Don't push the target if it is already pushed.
6462 (procfs_detach): Use inf_child_maybe_unpush_target.
6463 (procfs_create_inferior): Don't push the target if it is already
6464 pushed.
6465 (nto_native_ops): New global.
6466 (procfs_open): Reimplement.
6467 (procfs_native_open): New function.
6468 (init_procfs_targets): Install procfs_native_open as to_open of
6469 "target native". Store a pointer to the "native" target in
6470 nto_native_ops.
6471 * procfs.c (procfs_attach): Don't push the target if it is already
6472 pushed.
6473 (procfs_detach): Use inf_child_maybe_unpush_target.
6474 (procfs_mourn_inferior): Only unpush the target after mourning the
6475 inferior. Use inf_child_maybe_unpush_target.
6476 (procfs_init_inferior): Don't push the target if it is already
6477 pushed.
6478 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6479 if it is already pushed.
6480
6481 2014-05-21 Pedro Alves <palves@redhat.com>
6482
6483 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6484 and "procfs" targets are now called "native" instead.
6485
6486 2014-05-21 Pedro Alves <palves@redhat.com>
6487
6488 * go32-nat.c (go32_open): Delete.
6489 (go32_target): Don't override the to_open method.
6490
6491 2014-05-21 Pedro Alves <palves@redhat.com>
6492
6493 * nto-procfs.c (procfs_can_run): New function.
6494 (nto_procfs_ops): New global.
6495 (init_procfs_targets): New, based on procfs_target. Install
6496 "target native" in addition to "target procfs".
6497 (_initialize_procfs): Call init_procfs_targets instead of adding
6498 the target here.
6499
6500 2014-05-21 Pedro Alves <palves@redhat.com>
6501
6502 * windows-nat.c (windows_target): Don't override to_shortname,
6503 to_longname or to_doc.
6504
6505 2014-05-21 Pedro Alves <palves@redhat.com>
6506
6507 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6508 to_doc.
6509
6510 2014-05-21 Pedro Alves <palves@redhat.com>
6511
6512 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6513 to_shortname, to_longname or to_doc.
6514
6515 2014-05-21 Pedro Alves <palves@redhat.com>
6516
6517 * go32-nat.c (go32_target): Don't override to_shortname,
6518 to_longname or to_doc.
6519
6520 2014-05-21 Pedro Alves <palves@redhat.com>
6521
6522 * inf-child.c (inf_child_open): Remove mention of "child".
6523 (inf_child_target): Rename target to "native" instead of "child".
6524
6525 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6526
6527 * Makefile.in (SFILES): Delete "regset.c".
6528 (COMMON_OBS): Delete "regset.o".
6529 * regset.c: Remove.
6530 * regset.h (regset_alloc): Delete prototype.
6531
6532 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6533
6534 * sparc-linux-tdep.c (sparc32_linux_gregset)
6535 (sparc32_linux_fpregset): New static regset structures.
6536 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6537 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6538 'fpregset' fields.
6539 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6540 (sparc64_linux_fpregset): New static regset structures.
6541 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6542 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6543 New static regset structures.
6544 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6545 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6546 New static regset structures.
6547 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6548 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6549 New static regset structures.
6550 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6551 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6552 New static regset structures.
6553 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6554
6555 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6556
6557 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6558 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6559 register maps ("regmaps") from "*regset" to "*regmap". Do this
6560 for all regmap types and variables.
6561 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6562 (sparc32_linux_supply_core_gregset)
6563 (sparc32_linux_collect_core_gregset)
6564 (sparc32_linux_supply_core_fpregset)
6565 (sparc32_linux_collect_core_fpregset): Likewise.
6566 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6567 (sparc_gregmap, sparc_fpregmap): ... these.
6568 (sparc_supply_gregset, sparc_collect_gregset)
6569 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6570 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6571 (_initialize_sparc_nat): Rename regmaps.
6572 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6573 (sparc_gregmap, sparc_fpregmap): ... these.
6574 (sparc_supply_gregset, sparc_collect_gregset)
6575 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6576 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6577 Rename macros to...
6578 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6579 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6580 Likewise.
6581 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6582 Rename to...
6583 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6584 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6585 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6586 regmaps.
6587 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6588 (sparc32_bsd_fpregset): Rename to...
6589 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6590 (sparc32_bsd_fpregmap): ... these.
6591 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6592 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6593 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6594 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6595 (struct sparc_gregmap, struct sparc_fpregmap)
6596 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6597 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6598 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6599 (sparc32_supply_regset, sparc32_collect_gregset)
6600 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6601 prototypes.
6602 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6603 (sparc64_linux_ptrace_gregmap): ... this.
6604 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6605 (_initialize_sparc64_linux_nat): Rename regmaps.
6606 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6607 (sparc64_linux_core_gregmap): ... this.
6608 (sparc64_linux_supply_core_gregset)
6609 (sparc64_linux_collect_core_gregset)
6610 (sparc64_linux_supply_core_fpregset)
6611 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6612 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6613 (sparc64_sol2_fpregset): Rename to...
6614 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6615 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6616 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6617 regmaps.
6618 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6619 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6620 (sparc64_bsd_fpregset): Rename to...
6621 (struct sparc_gregmap, sparc64_sol2_gregmap)
6622 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6623 (sparc64_bsd_fpregmap): ... these.
6624 (sparc64_supply_gregset, sparc64_collect_gregset)
6625 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6626 prototypes.
6627 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6628 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6629 (sparc64fbsd_gregmap): ... this.
6630 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6631 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6632 Rename regmaps.
6633 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6634 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6635 (sparc64nbsd_collect_fpregset): Likewise.
6636 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6637 (sparc64nbsd_gregmap): ... this.
6638 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6639 regmaps.
6640 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6641 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6642 (sparc64obsd_gregmap): ... this.
6643 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6644 regmaps.
6645 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6646 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6647 (sparc32nbsd_gregmap): ... this.
6648 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6649 regmaps.
6650
6651 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6652
6653 * score-tdep.c (score7_linux_gregset): New static regset
6654 structure.
6655 (score7_linux_regset_from_core_section): Remove dynamic regset
6656 allocation.
6657 (score_gdbarch_init): Drop allocation of tdep structure.
6658 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6659
6660 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6661
6662 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6663 regset structures.
6664 (am33_regset_from_core_section): Remove dynamic regset
6665 allocations.
6666
6667 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6668
6669 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6670 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6671 structures.
6672 (mips_linux_regset_from_core_section): Remove dynamic regset
6673 allocations.
6674 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6675 'gregset64', 'fpregset', and 'fpregset64'.
6676 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6677 deleted tdep fields.
6678
6679 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6680
6681 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6682 regset structures.
6683 (amd64_regset_from_core_section): Remove dynamic regset
6684 allocations.
6685 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6686 structure.
6687 (amd64obsd_regset_from_core_section): Remove dynamic regset
6688 allocation.
6689 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6690 Likewise.
6691 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6692 x86-common regset supply function.
6693 * i386-tdep.c (i386_collect_gregset): Make static.
6694 (i386_gregset): New global regset structure.
6695 (i386_fpregset, i386_xstateregset): New static regset structures.
6696 (i386_regset_from_core_section): Remove dynamic regset
6697 allocations.
6698 (i386_gdbarch_init): Remove initialization of tdep fields
6699 'gregset', 'fpregset', and 'xstateregset'.
6700 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6701 'fpregset', and 'xstateregset'.
6702 (i386_collect_gregset): Remove prototype.
6703 (i386_gregset): New declaration.
6704 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6705 structure.
6706 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6707 allocation.
6708
6709 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6710
6711 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6712 (arm_linux_vfpregset): New static regset structures.
6713 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6714 regset structures.
6715 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6716 and 'vfpregset' fields.
6717
6718 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6719
6720 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6721 (aarch64_linux_fpregset): New static regset structures.
6722 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6723 of regset structures.
6724 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6725 'fpregset' fields.
6726
6727 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6728
6729 * regset.h (struct regset): Remove gdbarch field.
6730 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6731 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6732 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6733 Likewise.
6734 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6735 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6736 (ppc32_linux_vsxregset): Likewise.
6737 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6738 via the regcache instead of the regset.
6739 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6740 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6741 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6742 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6743 Likewise.
6744
6745 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6746
6747 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6748 Constify structures.
6749 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6750 (alphanbsd_aout_gregset): Likewise.
6751 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6752 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6753 Likewise.
6754 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6755 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6756 Likewise.
6757 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6758 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6759 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6760 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6761 * m88k-tdep.c (m88k_gregset): Likewise.
6762 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6763 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6764 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6765 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6766 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6767 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6768 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6769 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6770 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6771 Likewise.
6772 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6773 * sh-tdep.h (sh_corefile_gregset): Likewise.
6774 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6775 * vax-tdep.c (vax_gregset): Likewise.
6776
6777 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6778
6779 Fix TLS access for -static -pthread.
6780 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6781 (try_thread_db_load_1): Initialize it.
6782 (thread_db_get_thread_local_address): Call it if LM is zero.
6783 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6784 * target.h (struct target_ops) (to_get_thread_local_address): Add
6785 load_module_addr comment.
6786
6787 2014-05-21 Pedro Alves <palves@redhat.com>
6788
6789 * dcache.c (dcache_read_memory_partial): If reading the cache line
6790 fails, fallback to reading just the memory the caller wanted.
6791
6792 2014-05-20 Doug Evans <dje@google.com>
6793
6794 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6795 instead of get_current_arch.
6796
6797 2014-05-20 Pedro Alves <palves@redhat.com>
6798
6799 * NEWS: Mention that compare-sections now works with all targets.
6800
6801 * remote.c (PACKET_qCRC): New enum value.
6802 (remote_verify_memory): Don't send qCRC if the target has no
6803 execution. Use packet_support/packet_ok. If the target doesn't
6804 support the qCRC packet, fallback to a deep memory copy.
6805 (compare_sections_command): Say "target image" instead of "remote
6806 executable".
6807 (_initialize_remote): Add PACKET_qCRC to the list of config
6808 packets that have no associated command. Extend comment.
6809 * target.c (simple_verify_memory, default_verify_memory): New
6810 function.
6811 * target.h (struct target_ops) <to_verify_memory>: Default to
6812 default_verify_memory.
6813 (simple_verify_memory): New declaration.
6814 * target-delegates.c: Regenerate.
6815
6816 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6817
6818 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6819
6820 2014-05-20 Hui Zhu <hui@codesourcery.com>
6821 Yao Qi <yao@codesourcery.com>
6822
6823 PR backtrace/16558
6824 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6825 and change address of sp and pc.
6826
6827 2014-05-19 Tom Tromey <tromey@redhat.com>
6828
6829 * gdbtypes.c (rank_function): Use XNEWVEC.
6830 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6831
6832 2014-05-19 Doug Evans <dje@google.com>
6833
6834 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6835 build_type_unit_groups and moved closer to only caller. Remove
6836 arguments. All references updated. Remove outdated .gdb_index
6837 comment.
6838 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6839 build_type_psymtabs_1.
6840
6841 2014-05-19 Doug Evans <dje@google.com>
6842
6843 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6844 n_type_unit_groups, all_type_unit_groups. All uses removed.
6845 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6846 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6847 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6848 (add_type_unit_group_to_table): Delete.
6849
6850 2014-05-19 Doug Evans <dje@google.com>
6851
6852 * eval.c (evaluate_subexp_standard): Add some comments.
6853
6854 2014-05-17 Doug Evans <xdje42@gmail.com>
6855
6856 * progspace.c (remove_program_space): Delete, unused.
6857 * progspace.h (remove_program_space): Ditto.
6858
6859 2014-05-17 Doug Evans <xdje42@gmail.com>
6860
6861 * inferior.c (prune_inferiors): Fix comment.
6862 (remove_inferior_command): Call prune_program_spaces.
6863
6864 2014-05-16 Doug Evans <dje@google.com>
6865
6866 New command line option -D.
6867 * NEWS: Mention it.
6868 * main.c (set_gdb_data_directory): New function.
6869 (captured_main): Recognize -D. Flag error for --data-directory "".
6870 Call set_gdb_data_directory.
6871 (print_gdb_help): Print --data-directory, -D.
6872 * main.h (set_gdb_data_directory): Declare.
6873 * top.c (staged_gdb_datadir): New static global.
6874 (set_gdb_datadir): Call set_gdb_data_directory
6875 (show_gdb_datadir): New function.
6876 (init_main): Update init of data-directory parameter.
6877
6878 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6879
6880 Import the "dirfd" gnulib module.
6881 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6882 * gnulib/aclocal.m4: Update.
6883 * gnulib/config.in: Update.
6884 * gnulib/configure: Update.
6885 * gnulib/import/Makefile.am: Update.
6886 * gnulib/import/Makefile.in: Update.
6887 * gnulib/import/dirfd.c: New.
6888 * gnulib/import/m4/dirfd.m4: New.
6889 * gnulib/import/m4/gnulib-cache.m4: Update.
6890 * gnulib/import/m4/gnulib-comp.m4: Update.
6891
6892 2014-05-16 Pierre Muller <muller@sourceware.org>
6893 Yao Qi <yao@codesourcery.com>
6894
6895 * valprint.c (print_wchar): Move the code on checking whether
6896 W is a printable wide char to the default branch of switch
6897 statement below. Call wchar_printable instead of gdb_iswprint.
6898
6899 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6900
6901 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6902 ldr.w and ldrd instructions.
6903
6904 2014-05-15 Doug Evans <dje@google.com>
6905
6906 * dwarf2read.c (read_structure_type): Delete outdated comments.
6907
6908 2014-05-14 Tom Tromey <tromey@redhat.com>
6909
6910 * macrocmd.c (print_macro_definition): Reindent.
6911
6912 2014-05-13 Doug Evans <xdje42@gmail.com>
6913
6914 * python/py-cmd.c (cmdpy_completer): Add comment.
6915 (completers): Make const.
6916
6917 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6918
6919 * infrun.c (resume): Remove should_resume (unused). Move up
6920 declaration of resume_ptid.
6921
6922 2014-05-13 Tom Tromey <tromey@redhat.com>
6923
6924 * language.h (unop_type_check): Remove.
6925 (binop_type_check): Don't declare.
6926
6927 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6928
6929 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6930 call to regcache_raw_collect.
6931
6932 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6933
6934 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6935 mi_console->quote as the quoting character.
6936
6937 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6938
6939 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6940
6941 2014-04-29 Tom Tromey <tromey@redhat.com>
6942
6943 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6944 "show debug varobj".
6945
6946 2014-05-07 Kyle McMartin <kyle@redhat.com>
6947
6948 Pushed by Joel Brobecker <brobecker@adacore.com>.
6949 * aarch64-tdep.c (aarch64_software_single_step): New function.
6950 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6951 with aarch64_software_single_step.
6952
6953 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6954
6955 GDB 7.7.1 released.
6956
6957 2014-05-05 Keith Seitz <keiths@redhat.com>
6958
6959 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6960 variable or history value is successfully parsed.
6961
6962 2014-05-05 Yao Qi <yao@codesourcery.com>
6963 Pedro Alves <palves@redhat.com>
6964
6965 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6966 address of blocks that intersects the requested range. Trim
6967 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6968 sections.
6969 * ctf.c (ctf_xfer_partial): Likewise.
6970
6971 2014-05-05 Yao Qi <yao@codesourcery.com>
6972
6973 * printcmd.c (display_command): Remove the check to
6974 target_has_execution.
6975
6976 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6977
6978 * ppcobsd-nat.c: Include "obsd-nat.h".
6979 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6980 add_target.
6981 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6982
6983 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6984
6985 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6986 and 16-bit signed and unsigned arguments. Update comment.
6987 (stap_parse_probe_arguments): Extend code to handle such
6988 arguments. Use warning instead of complaint to notify about
6989 unrecognized bitness.
6990
6991 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6992
6993 PR breakpoints/16889
6994 * stap-probe.c (stap_parse_probe_arguments): Simplify
6995 check for non-prefixed probes (i.e., probes whose
6996 arguments do not start with "N@"). Always set the
6997 argument type to a sane value.
6998
6999 2014-05-01 David Taylor <dtaylor@emc.com>
7000
7001 * remote.c (compare_sections_command): Add -r option to compare
7002 all loadable read-only sections.
7003
7004 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7005
7006 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7007 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7008 Update all callers.
7009 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7010 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7011 Remove unused CORE_ADDR argument. Update all callers.
7012
7013 2014-04-29 Pedro Alves <palves@redhat.com>
7014
7015 * remote.c (struct packet_config) <detect>: Extend comment.
7016 (add_packet_config_cmd): Don't set the config's detect or support
7017 fields here.
7018 (init_all_packet_configs): Also initialize the config's 'detect'
7019 field.
7020 (reset_all_packet_configs_support): New function.
7021 (remote_open_1): Call reset_all_packet_configs_support instead of
7022 init_all_packet_configs.
7023 (_initialize_remote): Initialize all packet configs. Assert that
7024 all packets have an associated command, except a few known
7025 outliers.
7026
7027 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7028
7029 * dwarf2read.c (read_subrange_type): Handle dynamic
7030 DW_AT_lower_bound attributes.
7031
7032 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7033
7034 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7035 dynamic bounds before computing its upper bound.
7036 (ada_discrete_type_low_bound): Same as above with the lower bound.
7037
7038 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7039
7040 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7041 range types. Adjust the array handling implementation to
7042 take advantage of this change.
7043 (resolve_dynamic_range): New function, mostly extracted from
7044 resolve_dynamic_bounds.
7045 (resolve_dynamic_array): New function, mostly extracted from
7046 resolve_dynamic_bounds.
7047 (resolve_dynamic_bounds): Delete.
7048 (resolve_dynamic_type): Reimplement. Add handling of
7049 TYPE_CODE_RANGE types.
7050
7051 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7052
7053 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7054 handling of parallel ___XA types.
7055
7056 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7057
7058 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7059 unnecessary second call to static_unwrap_type.
7060
7061 2014-04-27 Hui Zhu <hui@codesourcery.com>
7062
7063 * stack.c (print_frame_info): Call do_gdb_disassembly with
7064 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7065
7066 2014-04-26 Doug Evans <xdje42@gmail.com>
7067
7068 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7069
7070 2014-04-25 Pedro Alves <palves@redhat.com>
7071
7072 PR server/16255
7073 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7074 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7075 and newline from built string.
7076 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7077 (linux_ptrace_attach_fail_reason): ... this.
7078 * linux-nat.c (linux_nat_attach): Adjust to use
7079 linux_ptrace_attach_fail_reason.
7080
7081 2014-04-25 Pedro Alves <palves@redhat.com>
7082
7083 * remote.c (struct remote_state): Remove multi_process_aware,
7084 non_stop_aware, cond_tracepoints, cond_breakpoints,
7085 breakpoint_commands, fast_tracepoints, static_tracepoints,
7086 install_in_trace, disconnected_tracing,
7087 enable_disable_tracepoints, string_tracing, and
7088 augmented_libraries_svr4_read fields.
7089 (remote_multi_process_p): Move further below in the file.
7090 (struct packet_config): Add comments.
7091 (update_packet_config): Delete function.
7092 (show_packet_config_cmd): Use packet_config_support.
7093 (add_packet_config_cmd): Use NULL as set callback.
7094 (packet_ok): "set remote foo-packet"-style commands no longer
7095 change config->supported -- adjust.
7096 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7097 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7098 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7099 (PACKET_QNonStop, PACKET_multiprocess_feature)
7100 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7101 (PACKET_DisconnectedTracing_feature)
7102 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7103 (set_remote_protocol_packet_cmd): Delete function.
7104 (packet_config_support, packet_support): New functions.
7105 (set_remote_protocol_Z_packet_cmd): Don't call
7106 update_packet_config.
7107 (remote_query_attached, remote_pass_signals)
7108 (remote_program_signals, remote_threads_info)
7109 (remote_threads_extra_info, remote_start_remote): Use
7110 packet_support.
7111 (remote_start_remote): Use packet_config_support and
7112 packet_support.
7113 (init_all_packet_configs): Set all packets to unknown support,
7114 instead of calling update_packet_config.
7115 (remote_check_symbols): Use packet_support.
7116 (remote_supported_packet): Unconditionally set the packet config's
7117 support status.
7118 (remote_multi_process_feature, remote_non_stop_feature)
7119 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7120 (remote_breakpoint_commands_feature)
7121 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7122 (remote_install_in_trace_feature)
7123 (remote_disconnected_tracing_feature)
7124 (remote_enable_disable_tracepoint_feature)
7125 (remote_string_tracing_feature)
7126 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7127 (remote_protocol_features): Adjust to use remote_supported_packet
7128 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7129 "ConditionalTracepoints", "ConditionalBreakpoints",
7130 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7131 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7132 "EnableDisableTracepoints", and "tracenz".
7133 (remote_query_supported): Use packet_support.
7134 (remote_open_1): Adjust.
7135 (extended_remote_attach_1): Use packet_support. Switch on the
7136 result of packet_ok instead of checking whether the packet ended
7137 up disabled.
7138 (remote_vcont_resume): Use packet_support.
7139 (remote_resume, remote_stop_ns, fetch_register_using_p)
7140 (remote_prepare_to_store, store_register_using_P)
7141 (check_binary_download, remote_write_bytes): Use packet_support.
7142 (remote_vkill): Use packet_support. Switch on the result of
7143 packet_ok instead of checking whether the packet ended up
7144 disabled.
7145 (extended_remote_supports_disable_randomization): Use
7146 packet_support.
7147 (extended_remote_run): Switch on the result of packet_ok instead
7148 of checking whether the packet ended up disabled.
7149 (remote_insert_breakpoint, remote_remove_breakpoint)
7150 (remote_insert_watchpoint, remote_remove_watchpoint)
7151 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7152 packet_support.
7153 (remote_search_memory): Use packet_config_support.
7154 (remote_get_thread_local_address, remote_get_tib_address)
7155 (remote_hostio_send_command, remote_can_execute_reverse): Use
7156 packet_support.
7157 (remote_supports_cond_tracepoints)
7158 (remote_supports_cond_breakpoints)
7159 (remote_supports_fast_tracepoints)
7160 (remote_supports_static_tracepoints)
7161 (remote_supports_install_in_trace)
7162 (remote_supports_enable_disable_tracepoint)
7163 (remote_supports_string_tracing)
7164 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7165 the packet config says the feature is enabled or disabled.
7166 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7167 (remote_get_trace_status): Use packet_support.
7168 (remote_set_disconnected_tracing): Adjust to check whether the
7169 feature is enabled with packet_support.
7170 (remote_set_trace_buffer_size, remote_use_agent)
7171 (remote_can_use_agent, remote_supports_btrace): Use
7172 packet_support.
7173 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7174 Use packet_config_support.
7175 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7176 the packet config says the feature is enabled or disabled.
7177 (set_range_stepping): Use packet_support.
7178
7179 2014-04-25 Tom Tromey <tromey@redhat.com>
7180
7181 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7182 argument.
7183
7184 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7185
7186 * NEWS: Mention support for C99 variable length arrays.
7187
7188 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7189
7190 * ada-lang.c (standard_exc): Expand introductory comment.
7191
7192 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7193 Walfred Tedeschi <walfred.tedeschi@intel.com>
7194
7195 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7196 AVX512 registers.
7197 (amd64_linux_read_description): Add code to handle AVX512 xstate
7198 mask and return respective tdesc.
7199 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7200 and features/i386/x32-avx512-linux.c.
7201 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7202 (amd64_linux_core_read_description): Add code to handle AVX512
7203 xstate mask and return respective tdesc.
7204 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7205 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7206 calculation.
7207 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7208 (tdesc_amd64_avx512_linux): New prototype.
7209 (tdesc_x32_avx512_linux): Likewise.
7210 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7211 features/i386/x32-avx512.c.
7212 (amd64_ymm_avx512_names): New register names for pseudo
7213 registers YMM16-31.
7214 (amd64_ymmh_avx512_names): New register names for raw registers
7215 YMMH16-31.
7216 (amd64_k_names): New register names for K registers.
7217 (amd64_zmmh_names): New register names for ZMM raw registers.
7218 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7219 (amd64_xmm_avx512_names): New register names for XMM16-31
7220 registers.
7221 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7222 registers.
7223 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7224 if feature is present.
7225 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7226 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7227 (AMD64_NUM_REGS): Adjust to new number of registers.
7228 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7229 registers supplied via XSTATE by AVX512 registers.
7230 (i386_linux_read_description): Add case for AVX512.
7231 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7232 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7233 (i386_linux_core_read_description): Add case for AVX512.
7234 (i386_linux_init_abi): Install supported register note section
7235 for AVX512.
7236 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7237 AVX512.
7238 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7239 registers to be number of zmm7h + 1.
7240 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7241 * i386-tdep.c: Include features/i386/i386-avx512.c.
7242 (i386_zmm_names): Add ZMM pseudo register names array.
7243 (i386_zmmh_names): Add ZMM raw register names array.
7244 (i386_k_names): Add K raw register names array.
7245 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7246 registers. AVX512 has 16 more ZMM registers than there are YMM
7247 registers.
7248 (i386_zmmh_regnum_p): Add function to look up register number of
7249 ZMM raw registers.
7250 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7251 (i386_k_regnum_p): Likewise for K raw registers.
7252 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7253 registers added by AVX512.
7254 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7255 registers added by AVX512.
7256 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7257 added by AVX512.
7258 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7259 (i386_pseudo_register_name): Add ZMM pseudo registers.
7260 (i386_zmm_type): Construct and return vector registers type for ZMM
7261 registers.
7262 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7263 ZMM0-31 pseudo registers and K registers.
7264 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7265 and YMM16-31 registers from register cache.
7266 (i386_pseudo_register_write): Add code to write K, ZMM and
7267 YMM16-31 registers.
7268 (i386_register_reggroup_p): Add code to include/exclude AVX512
7269 registers in/from respective register groups.
7270 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7271 registers if feature is present in xcr0.
7272 (i386_gdbarch_init): Add code to initialize AVX512 feature
7273 variables in tdep structure, wire in pseudo registers and call
7274 initialize_tdesc_i386_avx512.
7275 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7276 variables.
7277 (i386_regnum): Add AVX512 registers.
7278 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7279 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7280 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7281 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7282 512 bits wide.
7283 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7284 (i386_ymm_avx512_regnum_p): Likewise.
7285 (i386_k_regnum_p): Likewise.
7286 (i386_zmm_regnum_p): Likewise.
7287 (i386_zmmh_regnum_p): Likewise.
7288 * i387-tdep.c : Update year in copyright notice.
7289 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7290 XSAVE buffer.
7291 (XSAVE_YMM_AVX512_ADDR): New macro.
7292 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7293 XSAVE buffer.
7294 (XSAVE_XMM_AVX512_ADDR): New macro.
7295 (xsave_avx512_k_offset): New table for K register offsets in
7296 XSAVE buffer.
7297 (XSAVE_AVX512_K_ADDR): New macro.
7298 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7299 in XSAVE buffer.
7300 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7301 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7302 buffer.
7303 (i387_collect_xsave): Add code to collect AVX512 registers from
7304 XSAVE buffer.
7305 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7306 of XMM16-31 registers.
7307 (I387_NUM_K_REGS): New define for number of K registers.
7308 (I387_K0_REGNUM): New define for K0 register number.
7309 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7310 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7311 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7312 registers.
7313 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7314 (I387_XMM16_REGNUM): New define for XMM16 register number.
7315 (I387_YMM0_REGNUM): New define for YMM0 register number.
7316 (I387_KEND_REGNUM): New define for last K register number.
7317 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7318 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7319 number.
7320 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7321 number.
7322 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7323 size.
7324 * features/Makefile: Add AVX512 related files.
7325 * features/i386/32bit-avx512.xml: New file.
7326 * features/i386/64bit-avx512.xml: Likewise.
7327 * features/i386/amd64-avx512-linux.c: Likewise.
7328 * features/i386/amd64-avx512-linux.xml: Likewise.
7329 * features/i386/amd64-avx512.c: Likewise.
7330 * features/i386/amd64-avx512.xml: Likewise.
7331 * features/i386/i386-avx512-linux.c: Likewise.
7332 * features/i386/i386-avx512-linux.xml: Likewise.
7333 * features/i386/i386-avx512.c: Likewise.
7334 * features/i386/i386-avx512.xml: Likewise.
7335 * features/i386/x32-avx512-linux.c: Likewise.
7336 * features/i386/x32-avx512-linux.xml: Likewise.
7337 * features/i386/x32-avx512.c: Likewise.
7338 * features/i386/x32-avx512.xml: Likewise.
7339 * regformats/i386/amd64-avx512-linux.dat: New file.
7340 * regformats/i386/amd64-avx512.dat: Likewise.
7341 * regformats/i386/i386-avx512-linux.dat: Likewise.
7342 * regformats/i386/i386-avx512.dat: Likewise.
7343 * regformats/i386/x32-avx512-linux.dat: Likewise.
7344 * regformats/i386/x32-avx512.dat: Likewise.
7345 * NEWS: Add note about new support for AVX512.
7346
7347
7348 2014-04-23 Pedro Alves <palves@redhat.com>
7349
7350 * breakpoint.c (insert_bp_location): Tolerate errors if the
7351 breakpoint is set in a user-loaded objfile.
7352 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7353 location is marked shlib_disabled. If the breakpoint is set in a
7354 user-loaded objfile is a GDB-side memory breakpoint, validate it
7355 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7356 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7357 flag.
7358 * mem-break.c (memory_validate_breakpoint): New function.
7359 * objfiles.c (userloaded_objfile_contains_address_p): New
7360 function.
7361 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7362 * target.h (memory_validate_breakpoint): New declaration.
7363
7364 2014-04-23 Pedro Alves <palves@redhat.com>
7365
7366 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7367 the breakpoint is set in a shared library, only suppress
7368 errors for software breakpoints, not hardware breakpoints.
7369
7370 2014-04-22 Pedro Alves <palves@redhat.com>
7371
7372 * infrun.c (schedlock_applies): New function, factored out from
7373 find_thread_needs_step_over.
7374 (find_thread_needs_step_over): Use it.
7375 (switch_back_to_stepped_thread): Always clear trap_expected if the
7376 step over is finished. Return early if scheduler locking applies.
7377 Look for the stepping thread and a potential step-over thread with
7378 a single loop.
7379 (currently_stepping_or_nexting_callback): Delete.
7380
7381 2014-04-22 Nick Clifton <nickc@redhat.com>
7382
7383 * NEWS: Mention that ARM sim now supports tracing.
7384
7385 2014-04-22 Yao Qi <yao@codesourcery.com>
7386
7387 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7388 to ...
7389 * tracefile.c (tracefile_fetch_registers): ... it. New
7390 function.
7391 * tracefile.h (tracefile_fetch_registers): Declare.
7392 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7393 tracefile_fetch_registers.
7394
7395 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7396
7397 PR gdb/14018
7398 * windows-nat.c (thread_rec): Don't display a warning when
7399 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7400 fails for any reason, set th->suspended to -1, so that we don't
7401 try to resume such a thread. Also, don't return NULL in these
7402 cases, to avoid completely ruin the session due to "PC register is
7403 not available" error.
7404 (do_windows_fetch_inferior_registers): Check errors in
7405 GetThreadContext call.
7406 (windows_continue): Accept an additional argument KILLED; if not
7407 zero, ignore errors in the SetThreadContext call, since the
7408 inferior was killed and is shutting down.
7409 (windows_resume, get_windows_debug_event)
7410 (windows_create_inferior, windows_mourn_inferior)
7411 (windows_kill_inferior): All callers of windows_continue changed
7412 to adjust to its new calling sequence.
7413
7414 2014-04-19 Yao Qi <yao@codesourcery.com>
7415
7416 * ctf.c (ctf_open): Call post_create_inferior.
7417
7418 2014-04-19 Yao Qi <yao@codesourcery.com>
7419
7420 * ctf.c (handle_id): New static variable.
7421 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7422 value. Get the declaration of event "register" and get length
7423 of field "contents".
7424
7425 2014-04-19 Yao Qi <yao@codesourcery.com>
7426
7427 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7428
7429 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7430
7431 * valops.c (oload_method_static): Remove unnecessary argument
7432 METHOD. Update all callers.
7433
7434 2014-04-18 Pedro alves <palves@redhat.com>
7435 Tom Tromey <tromey@redhat.com>
7436
7437 PR backtrace/15558
7438 * frame.c (get_prev_frame_1): Rename to ...
7439 (get_prev_frame_always): ... this, and make extern. Adjust.
7440 (skip_artificial_frames): Use get_prev_frame_always.
7441 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7442 (get_frame_unwind_stop_reason): Adjust to rename.
7443 * frame.h (get_prev_frame_always): Declare.
7444 * inline-frame.c: Include frame.h.
7445 (inline_frame_this_id): Use get_prev_frame_always.
7446
7447 2014-04-18 Tristan Gingold <gingold@adacore.com>
7448
7449 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7450 code by using bfd_mach_o_get_base_address.
7451
7452 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7453
7454 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7455 (spu_ax_pseudo_register_collect): New function.
7456 (spu_ax_pseudo_register_push_stack): Likewise.
7457 (spu_dwarf_reg_to_regnum): Likewise.
7458 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7459
7460 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7461
7462 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7463 Replace FRAME argument with FRAME_ID.
7464 * gdbarch.c, gdbarch.h: Regenerate.
7465 * findvar.c (default_value_from_register): Add GDBARCH argument;
7466 replace FRAME by FRAME_ID. No longer call get_frame_id.
7467 (value_from_register): Update call to gdbarch_value_from_register.
7468 * value.h (default_value_from_register): Update prototype.
7469 * s390-linux-tdep.c (s390_value_from_register): Update interface
7470 and call to default_value_from_register.
7471 * spu-tdep.c (spu_value_from_register): Likewise.
7472
7473 * findvar.c (address_from_register): Remove TYPE argument.
7474 Do not call value_from_register; use gdbarch_value_from_register
7475 with null_frame_id instead.
7476 * value.h (address_from_register): Update prototype.
7477 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7478 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7479 address_from_register interface change.
7480
7481 2014-04-17 Yao Qi <yao@codesourcery.com>
7482
7483 * gdbtypes.h: Update comments to link to types and macros'
7484 definitions.
7485
7486 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7487
7488 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7489
7490 2014-04-16 Keith Seitz <keiths@redhat.com>
7491
7492 PR gdb/15827
7493 * dwarf2read.c (skip_one_die): Check that all relative-offset
7494 sibling DIEs fall within range of the current reader's buffer.
7495 (read_partial_die): Likewise.
7496
7497 2014-04-16 Keith Seitz <keiths@redhat.com>
7498
7499 PR c++/16597
7500 * cp-namespace.c (lookup_symbol_file): If the type name of
7501 `this' is NULL, return immediately.
7502
7503 2014-04-14 Keith Seitz <keiths@redhat.com>
7504
7505 PR c++/16253
7506 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7507 from symbol_matches_domain in symtab.c. All local callers
7508 of symbol_matches_domain updated.
7509 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7510 search STRUCT_DOMAIN.
7511 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7512 independently. standard_lookup will do that automatically.
7513 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7514 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7515 (cp_lookup_symbol_in_namespace): Likewise.
7516 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7517 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7518 may return a STRUCT_DOMAIN match.
7519 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7520 * cp-support.c: Include language.h.
7521 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7522 VAR_DOMAIN.
7523 * psymtab.c (match_partial_symbol): Compare the requested
7524 domain with the symbol's domain directly.
7525 (lookup_partial_symbol): Likewise.
7526 * symtab.c (lookup_symbol_in_language): Explain when/why
7527 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7528 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7529 appropriate languages.
7530 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7531 and moved to ada-lang.c
7532 (lookup_block_symbol): Explain that this function only returns
7533 symbol matching the requested DOMAIN.
7534 Compare the requested domain with the symbol's domain directly.
7535 (iterate_over_symbols): Compare the requested domain with the
7536 symbol's domain directly.
7537 * symtab.h (symbol_matches_domain): Remove.
7538
7539 2014-04-14 Tom Tromey <tromey@redhat.com>
7540
7541 PR c++/15246:
7542 * c-exp.y (type_aggregate_p): New function.
7543 (qualified_name, classify_inner_name): Use it.
7544 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7545 and TYPE_TARGET_TYPE of an enum type.
7546 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7547 an enum type.
7548 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7549 handle TYPE_DECLARED_CLASS.
7550 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7551 types.
7552 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7553 * valops.c (enum_constant_from_type): New function.
7554 (value_aggregate_elt): Use it.
7555 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7556 TYPE_CODE_ENUM.
7557
7558 2014-04-14 Tom Tromey <tromey@redhat.com>
7559
7560 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7561 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7562 const.
7563 * value.h (value_aggregate_elt): Update.
7564
7565 2014-04-14 Tom Tromey <tromey@redhat.com>
7566
7567 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7568
7569 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7570
7571 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7572 (evaluate_subexp_standard): Pass noside argument.
7573 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7574 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7575 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7576 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7577 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7578
7579 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7580
7581 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7582 points to a constant blob.
7583
7584 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7585
7586 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7587 property and store it as the high bound and flag the range accordingly.
7588 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7589 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7590 * gdbtypes.h (enum range_flags): New enum.
7591 (struct range_bounds): Add flags member.
7592
7593 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7594
7595 * c-typeprint.c (c_type_print_varspec_suffix): Added
7596 check for not yet resolved high bound. If unresolved, print
7597 "variable length" string to the console instead of random
7598 length.
7599
7600 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7601
7602 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7603 value.
7604 (ada_template_to_fixed_record_type_1): Likewise.
7605 (ada_to_fixed_type_1): Likewise.
7606 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7607 (cp_print_value): Likewise.
7608 * d-valprint.c (dynamic_array_type): Likewise.
7609 * findvar.c (address_of_variable): Likewise.
7610 * jv-valprint.c (java_value_print): Likewise.
7611 * valops.c (value_ind): Likewise.
7612 * value.c (coerce_ref): Likewise.
7613
7614 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7615
7616 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7617 value and retrieve the dynamic type size.
7618
7619 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7620
7621 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7622 passed to sizeof is dynamic evaluate the argument to compute the length.
7623
7624 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7625 Joel Brobecker <brobecker@adacore.com>
7626
7627 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7628 (dwarf2_evaluate_property): New function.
7629 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7630 * dwarf2read.c (attr_to_dynamic_prop): New function.
7631 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7632 attribute.
7633 * gdbtypes.c: Include dwarf2loc.h.
7634 (is_dynamic_type): New function.
7635 (resolve_dynamic_type): New function.
7636 (resolve_dynamic_bounds): New function.
7637 (get_type_length): New function.
7638 (check_typedef): Use get_type_length to compute type length.
7639 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7640 (TYPE_LOW_BOUND_KIND): New macro.
7641 (is_dynamic_type): New function prototype.
7642 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7643 to resolve dynamic properties of the type. Update comment.
7644 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7645
7646 2014-04-14 Richard Henderson <rth@redhat.com>
7647
7648 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7649
7650 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7651 Doug Evans <xdje42@gmail.com>
7652
7653 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7654 dereference TYPE_CODE_REF values.
7655
7656 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7657
7658 Revert the following changes due to regressions:
7659
7660 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7661 (dwarf2_evaluate_property): New function.
7662 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7663 * dwarf2read.c (attr_to_dynamic_prop): New function.
7664 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7665 attribute.
7666 * gdbtypes.c: Include dwarf2loc.h.
7667 (is_dynamic_type): New function.
7668 (resolve_dynamic_type): New function.
7669 (resolve_dynamic_bounds): New function.
7670 (get_type_length): New function.
7671 (check_typedef): Use get_type_length to compute type length.
7672 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7673 (TYPE_LOW_BOUND_KIND): New macro.
7674 (is_dynamic_type): New function prototype.
7675 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7676 to resolve dynamic properties of the type. Update comment.
7677 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7678
7679 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7680 passed to sizeof is dynamic evaluate the argument to compute the length.
7681
7682 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7683 value and retrieve the dynamic type size.
7684
7685 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7686 (ada_template_to_fixed_record_type_1): Likewise.
7687 (ada_to_fixed_type_1): Likewise.
7688 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7689 (cp_print_value): Likewise.
7690 * d-valprint.c (dynamic_array_type): Likewise.
7691 * eval.c (evaluate_subexp_with_coercion): Likewise.
7692 * findvar.c (address_of_variable): Likewise.
7693 * jv-valprint.c (java_value_print): Likewise.
7694 * valops.c (value_ind): Likewise.
7695 * value.c (coerce_ref): Likewise.
7696
7697 * c-typeprint.c (c_type_print_varspec_suffix): Added
7698 check for not yet resolved high bound. If unresolved, print
7699 "variable length" string to the console instead of random
7700 length.
7701
7702 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7703 property and store it as the high bound and flag the range accordingly.
7704 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7705 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7706 * gdbtypes.h (enum range_flags): New enum.
7707 (struct range_bounds): Add flags member.
7708
7709 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7710 points to a constant blob.
7711
7712 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7713 (evaluate_subexp_standard): Pass noside argument.
7714 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7715 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7716 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7717 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7718 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7719
7720 2014-04-11 Keith Seitz <keiths@redhat.com>
7721
7722 PR c++/16675
7723 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7724 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7725 reference types.
7726
7727 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7728
7729 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7730 (evaluate_subexp_standard): Pass noside argument.
7731 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7732 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7733 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7734 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7735 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7736
7737 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7738
7739 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7740 points to a constant blob.
7741
7742 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7743
7744 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7745 property and store it as the high bound and flag the range accordingly.
7746 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7747 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7748 * gdbtypes.h (enum range_flags): New enum.
7749 (struct range_bounds): Add flags member.
7750
7751 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7752
7753 * c-typeprint.c (c_type_print_varspec_suffix): Added
7754 check for not yet resolved high bound. If unresolved, print
7755 "variable length" string to the console instead of random
7756 length.
7757
7758 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7759
7760 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7761 (ada_template_to_fixed_record_type_1): Likewise.
7762 (ada_to_fixed_type_1): Likewise.
7763 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7764 (cp_print_value): Likewise.
7765 * d-valprint.c (dynamic_array_type): Likewise.
7766 * eval.c (evaluate_subexp_with_coercion): Likewise.
7767 * findvar.c (address_of_variable): Likewise.
7768 * jv-valprint.c (java_value_print): Likewise.
7769 * valops.c (value_ind): Likewise.
7770 * value.c (coerce_ref): Likewise.
7771
7772 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7773
7774 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7775 value and retrieve the dynamic type size.
7776
7777 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7778
7779 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7780 passed to sizeof is dynamic evaluate the argument to compute the length.
7781
7782 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7783
7784 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7785 (dwarf2_evaluate_property): New function.
7786 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7787 * dwarf2read.c (attr_to_dynamic_prop): New function.
7788 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7789 attribute.
7790 * gdbtypes.c: Include dwarf2loc.h.
7791 (is_dynamic_type): New function.
7792 (resolve_dynamic_type): New function.
7793 (resolve_dynamic_bounds): New function.
7794 (get_type_length): New function.
7795 (check_typedef): Use get_type_length to compute type length.
7796 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7797 (TYPE_LOW_BOUND_KIND): New macro.
7798 (is_dynamic_type): New function prototype.
7799 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7800 to resolve dynamic properties of the type. Update comment.
7801 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7802
7803 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7804
7805 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7806 declaring high/low bounds and change uses accordingly. Call
7807 create_range_type instead of create_static_range_type.
7808 * gdbtypes.c (create_range_type): New function.
7809 (create_range_type): Convert bounds into struct bound_prop and pass
7810 them to create_range_type.
7811 * gdbtypes.h (struct bound_prop): New struct.
7812 (create_range_type): New function prototype.
7813 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7814 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7815 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7816 part of the bound.
7817 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7818
7819 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7820
7821 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7822 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7823 * ada-lang.c: All uses of create_range_type updated.
7824 * coffread.c: All uses of create_range_type updated.
7825 * dwarf2read.c: All uses of create_range_type updated.
7826 * f-exp.y: All uses of create_range_type updated.
7827 * m2-valprint.c: All uses of create_range_type updated.
7828 * mdebugread.c: All uses of create_range_type updated.
7829 * stabsread.c: All uses of create_range_type updated.
7830 * valops.c: All uses of create_range_type updated.
7831 * valprint.c: All uses of create_range_type updated.
7832
7833 2014-04-10 Pedro Alves <palves@redhat.com>
7834
7835 * breakpoint.c (single_step_breakpoints)
7836 (single_step_gdbarch): Move up in the file.
7837 (one_breakpoint_xfer_memory): New function, factored out from ...
7838 (breakpoint_xfer_memory): ... here. Also process single-step
7839 breakpoints.
7840
7841 2014-04-09 Tristan Gingold <gingold@adacore.com>
7842
7843 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7844 comments.
7845 (darwin_decode_exception_message): Free port only after use.
7846
7847 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7848
7849 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7850 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7851 when setting the size of call_length.
7852
7853 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7854
7855 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7856 dereference TYPE_CODE_REF values.
7857
7858 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7859
7860 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7861 end of warning message.
7862
7863 2014-04-03 Doug Evans <dje@google.com>
7864
7865 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7866 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7867
7868 2014-04-02 Alan Modra <amodra@gmail.com>
7869
7870 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7871 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7872 (struct symbol_file_add_from_memory_args): Add size field.
7873 (find_vdso_size): New function.
7874 (add_vsyscall_page): Attempt to find vdso size.
7875
7876 2014-04-01 Doug Evans <dje@google.com>
7877
7878 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7879
7880 2014-04-01 Tristan Gingold <gingold@adacore.com>
7881
7882 * darwin-nat.c (darwin_encode_reply): Add prototype.
7883 (darwin_decode_exception_message): Reply to unknown inferiors.
7884 (darwin_decode_message): Handle message by id. Ignore message
7885 to unknown inferior.
7886 (darwin_wait): Discard unknown messages, add debug trace.
7887
7888 2014-03-31 Doug Evans <dje@google.com>
7889
7890 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7891 comp_dir_string.
7892
7893 2014-03-31 Doug Evans <dje@google.com>
7894
7895 New option "set print symbol-loading".
7896 * NEWS: Mention it.
7897 * solib.c (solib_read_symbols): Only print symbol loading messages
7898 if requested.
7899 (solib_add): If symbol loading is in "brief" mode, notify user
7900 symbols are being loaded.
7901 (reload_shared_libraries_1): Ditto.
7902 * symfile.c (print_symbol_loading_off): New static global.
7903 (print_symbol_loading_brief): New static global.
7904 (print_symbol_loading_full): New static global.
7905 (print_symbol_loading_enums): New static global.
7906 (print_symbol_loading): New static global.
7907 (print_symbol_loading_p): New function.
7908 (symbol_file_add_with_addrs): Only print symbol loading messages
7909 if requested.
7910 (_initialize_symfile): Register "print symbol-loading" set/show
7911 command.
7912 * symfile.h (print_symbol_loading_p): Declare.
7913
7914 2014-03-30 Doug Evans <xdje42@gmail.com>
7915
7916 * infrun.c (set_last_target_status): New function.
7917 (handle_inferior_event): Call it.
7918
7919 2014-03-30 Doug Evans <xdje42@gmail.com>
7920
7921 * inferior.h (enum stop_kind): Improve comment.
7922
7923 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7924
7925 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7926 a reference, strip the reference layer before calling
7927 the lang_ops value_has_mutated callback.
7928
7929 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7930
7931 Remove some globals from our parser.
7932 * language.c (unk_lang_parser): Add "struct parser_state"
7933 argument.
7934 * language.h (struct language_defn) <la_parser>: Likewise.
7935 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7936 (initialize_expout): Add "struct parser_state" argument.
7937 Rewrite function to use the parser state.
7938 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7939 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7940 write_exp_elt_longcst, write_exp_elt_dblcst,
7941 write_exp_elt_decfloatcst, write_exp_elt_type,
7942 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7943 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7944 write_dollar_variable): Likewise.
7945 (parse_exp_in_context_1): Use parser state.
7946 (insert_type_address_space): Add "struct parser_state" argument.
7947 Use parser state.
7948 (increase_expout_size): New function.
7949 * parser-defs.h: Forward declare "struct language_defn" and
7950 "struct parser_state".
7951 (expout, expout_size, expout_ptr): Remove extern declarations.
7952 (parse_gdbarch, parse_language): Rewrite macro declarations to
7953 accept the parser state.
7954 (struct parser_state): New struct.
7955 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7956 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7957 write_exp_elt_decfloatcst, write_exp_elt_type,
7958 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7959 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7960 write_exp_msymbol, write_dollar_variable,
7961 mark_struct_expression, insert_type_address_space): Add "struct
7962 parser_state" argument.
7963 (increase_expout_size): New function.
7964 * utils.c (do_clear_parser_state): New function.
7965 (make_cleanup_clear_parser_state): Likewise.
7966 * utils.h (make_cleanup_clear_parser_state): New function
7967 prototype.
7968 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7969 Update calls to write_exp* in order to pass the parser state.
7970 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7971 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7972 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7973 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7974 * stap-probe.c (stap_parse_register_operand): Likewise.
7975 (stap_parse_single_operand): Likewise.
7976 (stap_parse_argument_1): Likewise.
7977 (stap_parse_argument): Use parser state.
7978 * stap-probe.h: Include "parser-defs.h".
7979 (struct stap_parse_info) <pstate>: New field.
7980 * c-exp.y (parse_type): Rewrite to use parser state.
7981 (yyparse): Redefine to c_parse_internal.
7982 (pstate): New global variable.
7983 (parse_number): Add "struct parser_state" argument.
7984 (write_destructor_name): Likewise.
7985 (type_exp): Update calls to write_exp* and similars in order to
7986 use parser state.
7987 (exp1, exp, variable, qualified_name, space_identifier,
7988 typename, typebase): Likewise.
7989 (write_destructor_name, parse_number, lex_one_token,
7990 classify_name, classify_inner_name, c_parse): Add "struct
7991 parser_state" argument. Update function to use parser state.
7992 * c-lang.h: Forward declare "struct parser_state".
7993 (c_parse): Add "struct parser_state" argument.
7994 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7995 (yyparse): Redefine macro to ada_parse_internal.
7996 (pstate): New variable.
7997 (write_int, write_object_renaming, write_var_or_type,
7998 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7999 type_int, type_long, type_long_long, type_float, type_double,
8000 type_long_double, type_char, type_boolean, type_system_address):
8001 Add "struct parser_state" argument.
8002 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8003 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8004 var_or_type, aggregate, aggregate_component_list,
8005 positional_list, others, component_group,
8006 component_associations): Update calls to write_exp* and similar
8007 functions in order to use parser state.
8008 (ada_parse, write_var_from_sym, write_int,
8009 write_exp_op_with_string, write_object_renaming,
8010 find_primitive_type, write_selectors, write_ambiguous_var,
8011 write_var_or_type, write_name_assoc, type_int, type_long,
8012 type_long_long, type_float, type_double, type_long_double,
8013 type_char, type_boolean, type_system_address): Add "struct
8014 parser_state" argument. Adjust function to use parser state.
8015 * ada-lang.c (parse): Likewise.
8016 * ada-lang.h: Forward declare "struct parser_state".
8017 (ada_parse): Add "struct parser_state" argument.
8018 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8019 calls to both functions.
8020 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8021 parser state.
8022 (yyparse): Redefine macro to f_parse_internal.
8023 (pstate): New variable.
8024 (parse_number): Add "struct parser_state" argument.
8025 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8026 and similars in order to use parser state.
8027 (parse_number): Adjust code to use parser state.
8028 (yylex): Likewise.
8029 (f_parse): New function.
8030 * f-lang.h: Forward declare "struct parser_state".
8031 (f_parse): Add "struct parser_state" argument.
8032 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8033 parser state.
8034 (yyparse): Redefine macro for java_parse_internal.
8035 (pstate): New variable.
8036 (push_expression_name, push_expression_name, insert_exp): Add
8037 "struct parser_state" argument.
8038 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8039 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8040 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8041 PostIncrementExpression, PostDecrementExpression,
8042 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8043 UnaryExpressionNotPlusMinus, CastExpression,
8044 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8045 RelationalExpression, EqualityExpression, AndExpression,
8046 ExclusiveOrExpression, InclusiveOrExpression,
8047 ConditionalAndExpression, ConditionalOrExpression,
8048 ConditionalExpression, Assignment, LeftHandSide): Update
8049 calls to write_exp* and similars in order to use parser state.
8050 (parse_number): Ajust code to use parser state.
8051 (yylex): Likewise.
8052 (java_parse): New function.
8053 (push_variable): Add "struct parser_state" argument. Adjust
8054 code to user parser state.
8055 (push_fieldnames, push_qualified_expression_name,
8056 push_expression_name, insert_exp): Likewise.
8057 * jv-lang.h: Forward declare "struct parser_state".
8058 (java_parse): Add "struct parser_state" argument.
8059 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8060 parser state.
8061 (yyparse): Redefine macro to m2_parse_internal.
8062 (pstate): New variable.
8063 (type_exp, exp, fblock, variable, type): Update calls to
8064 write_exp* and similars to use parser state.
8065 (yylex): Likewise.
8066 (m2_parse): New function.
8067 * m2-lang.h: Forward declare "struct parser_state".
8068 (m2_parse): Add "struct parser_state" argument.
8069 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8070 * objc-lang.h: Forward declare "struct parser_state".
8071 (end_msglist): Add "struct parser_state" argument.
8072 * p-exp.y (parse_type): Rewrite macro to use parser state.
8073 (yyparse): Redefine macro to pascal_parse_internal.
8074 (pstate): New variable.
8075 (parse_number): Add "struct parser_state" argument.
8076 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8077 write_exp* and similars in order to use parser state.
8078 (parse_number, yylex): Adjust code to use parser state.
8079 (pascal_parse): New function.
8080 * p-lang.h: Forward declare "struct parser_state".
8081 (pascal_parse): Add "struct parser_state" argument.
8082 * go-exp.y (parse_type): Rewrite macro to use parser state.
8083 (yyparse): Redefine macro to go_parse_internal.
8084 (pstate): New variable.
8085 (parse_number): Add "struct parser_state" argument.
8086 (type_exp, exp1, exp, variable, type): Update calls to
8087 write_exp* and similars in order to use parser state.
8088 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8089 to use parser state.
8090 (go_parse): Likewise.
8091 * go-lang.h: Forward declare "struct parser_state".
8092 (go_parse): Add "struct parser_state" argument.
8093
8094 2014-03-27 Doug Evans <dje@google.com>
8095
8096 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8097
8098 2014-03-27 Doug Evans <dje@google.com>
8099
8100 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8101 Remove argument abbrev_section. All callers updated.
8102
8103 2014-03-27 Doug Evans <dje@google.com>
8104
8105 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8106 addr_base, ranges_base.
8107
8108 2014-03-26 Keith Seitz <keiths@redhat.com>
8109
8110 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8111 types, not VAR_DOMAIN.
8112
8113 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8114
8115 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8116 "ra" registers.
8117 * features/nios2-linux.c: Regenerated.
8118 * features/nios2.c: Regenerated.
8119
8120 2014-03-25 Pedro Alves <palves@redhat.com>
8121
8122 * cli/cli-script.c (script_from_file): Force the interpreter to
8123 sync mode.
8124
8125 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8126
8127 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8128 small stack allocation.
8129
8130 2014-03-24 Tristan Gingold <gingold@adacore.com>
8131
8132 * darwin-nat.c (exc_server): Remove unused prototype.
8133 (darwin_dump_message): Correctly display data on x86_64.
8134 (darwin_encode_reply): Fix style.
8135 Add comments and fix indentation.
8136
8137 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8138
8139 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8140
8141 2014-03-22 Doug Evans <xdje42@gmail.com>
8142
8143 * infcmd.c: Whitespace fixes.
8144 (interrupt_command): Merge two function comments into one.
8145
8146 2014-03-22 Doug Evans <xdje42@gmail.com>
8147
8148 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8149 All uses updated.
8150
8151 2014-03-22 Yao Qi <yao@codesourcery.com>
8152
8153 * remote.c (target_read_live_memory): Remove.
8154 (memory_xfer_live_readonly_partial): Rename it to
8155 remote_xfer_live_readonly_partial. Remove argument 'object'.
8156 All callers updated. Call remote_read_bytes_1
8157 instead of target_read_live_memory.
8158 * tracepoint.c (set_traceframe_number): Remove.
8159 (make_cleanup_restore_traceframe_number): Likewise .
8160 * tracepoint.h (set_traceframe_number): Remove declaration.
8161 (make_cleanup_restore_traceframe_number): Likewise.
8162
8163 2014-03-22 Yao Qi <yao@codesourcery.com>
8164
8165 * remote.c (remote_read_bytes): Move code on reading from the
8166 remote stub to ...
8167 (remote_read_bytes_1): ... here. New function.
8168
8169 2014-03-22 Yao Qi <yao@codesourcery.com>
8170
8171 * ctf.c (ctf_xfer_partial): Check the return value of
8172 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8173 return TARGET_XFER_UNAVAILABLE.
8174 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8175 * target.c (target_read_live_memory): Move it to remote.c.
8176 (memory_xfer_live_readonly_partial): Likewise.
8177 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8178 * remote.c (target_read_live_memory): Moved from target.c.
8179 (memory_xfer_live_readonly_partial): Likewise.
8180 (remote_read_bytes): Factored out from
8181 memory_xfer_partial_1.
8182
8183 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8184
8185 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8186 NULL pointer.
8187
8188 2014-03-21 Pedro Alves <palves@redhat.com>
8189
8190 * infrun.c (normal_stop): Extend comment.
8191
8192 2014-03-21 Hui Zhu <hui@codesourcery.com>
8193 Pedro Alves <palves@redhat.com>
8194
8195 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8196 static buffer.
8197 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8198 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8199 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8200
8201 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8202
8203 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8204 `z' formatted output modifier.
8205
8206 2014-03-20 Tom Tromey <tromey@redhat.com>
8207 Sergio Durigan Junior <sergiodj@redhat.com>
8208
8209 * probe.c (parse_probes): Turn assert into an ordinary error.
8210 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8211 exceptions when parsing probes. Rearrange the code for clarity.
8212
8213 2014-03-20 Tom Tromey <tromey@redhat.com>
8214
8215 PR gdb/14135
8216 * top.c (execute_command): Only dispatch events if the command
8217 started the target.
8218
8219 2014-03-20 Tom Tromey <tromey@redhat.com>
8220
8221 PR cli/15718
8222 * infcall.c: Include event-top.h.
8223 (run_inferior_call): Call async_disable_stdin if needed.
8224
8225 2014-03-20 Pedro Alves <palves@redhat.com>
8226
8227 * infrun.c (prepare_to_proceed): Delete.
8228 (thread_still_needs_step_over): New function.
8229 (find_thread_needs_step_over): New function.
8230 (proceed): If the current thread needs a step-over, set its
8231 steping_over_breakpoint flag. Adjust to use
8232 find_thread_needs_step_over instead of prepare_to_proceed.
8233 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8234 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8235 breakpoint.
8236 (switch_back_to_stepped_thread): Step over breakpoints of all
8237 threads not the stepping thread, before switching back to the
8238 stepping thread.
8239
8240 2014-03-20 Pedro Alves <palves@redhat.com>
8241
8242 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8243 extern.
8244 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8245 * infrun.c (saved_singlestep_ptid)
8246 (stepping_past_singlestep_breakpoint): Delete.
8247 (resume): Remove stepping_past_singlestep_breakpoint handling.
8248 (proceed): Store the prev_pc of the stepping thread too.
8249 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8250 singlestep_pc.
8251 (enum infwait_states): Delete infwait_thread_hop_state.
8252 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8253 field.
8254 (handle_inferior_event): Adjust.
8255 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8256 handling and the thread-hop code. Before removing single-step
8257 breakpoints, check whether the thread hit a single-step breakpoint
8258 of another thread. If it did, the trap is not a random signal.
8259 (switch_back_to_stepped_thread): If the event thread hit a
8260 single-step breakpoint, unblock it before switching to the
8261 stepping thread. Handle the case of the stepped thread having
8262 advanced already.
8263 (keep_going): Handle the case of the current thread moving past a
8264 single-step breakpoint.
8265
8266 2014-03-20 Pedro Alves <palves@redhat.com>
8267
8268 PR breakpoints/7143
8269 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8270 are being stepped over.
8271 (breakpoint_address_match): Make extern.
8272 * breakpoint.h (breakpoint_address_match): New declaration.
8273 * inferior.h (stepping_past_instruction_at): New declaration.
8274 * infrun.c (struct step_over_info): New type.
8275 (step_over_info): New global.
8276 (set_step_over_info, clear_step_over_info)
8277 (stepping_past_instruction_at): New functions.
8278 (handle_inferior_event): Clear the step-over info when
8279 trap_expected is cleared.
8280 (resume): Remove now stale comment.
8281 (clear_proceed_status): Clear step-over info.
8282 (proceed): Adjust step-over handling to set or clear the step-over
8283 info instead of removing all breakpoints.
8284 (handle_signal_stop): When setting up a thread-hop, don't remove
8285 breakpoints here.
8286 (stop_stepping): Clear step-over info.
8287 (keep_going): Adjust step-over handling to set or clear step-over
8288 info and then always inserting breakpoints, instead of removing
8289 all breakpoints when stepping over one.
8290
8291 2014-03-20 Pedro Alves <palves@redhat.com>
8292
8293 * infrun.c (previous_inferior_ptid): Adjust comment.
8294 (deferred_step_ptid): Delete.
8295 (infrun_thread_ptid_changed, prepare_to_proceed)
8296 (init_wait_for_inferior): Adjust.
8297 (handle_signal_stop): Delete deferred_step_ptid handling.
8298
8299 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8300
8301 PR gdb/15358
8302 * defs.h (sync_quit_force_run): New declaration.
8303 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8304 * event-top.c (async_sigterm_handler): New declaration.
8305 (async_sigterm_token): New variable.
8306 (async_init_signals): Create also async_sigterm_token.
8307 (async_sigterm_handler): New function.
8308 (sync_quit_force_run): New variable.
8309 (handle_sigterm): Replace quit_force call by other calls.
8310 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8311
8312 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8313
8314 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8315 offset into SPE pseudo registers.
8316
8317 2014-03-18 Pedro Alves <palves@redhat.com>
8318
8319 PR gdb/13860
8320 * inferior.h (print_stop_event): Declare.
8321 * infrun.c (print_stop_event): New, factored out from ...
8322 (normal_stop): ... this.
8323 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8324 of bpstat_print/print_stack_frame.
8325
8326 2014-03-17 Tom Tromey <tromey@redhat.com>
8327
8328 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8329
8330 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8331
8332 * ada-lang.c (decode_constrained_packed_array): Perform a
8333 minimal coercion for reference with coerce_ref instead of
8334 ada_coerce_ref.
8335
8336 2014-03-17 Tristan Gingold <gingold@adacore.com>
8337
8338 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8339 (darwin_solib_create_inferior_hook): Emit a warning if version
8340 is unhandled.
8341
8342 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8343
8344 * python/py-value.c (get_field_flag): Cast flag_name argument to
8345 PyObject_GetAttrString to support Python 2.4.
8346
8347 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8348
8349 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8350 (Global Maintainers): Remove Jan Kratochvil.
8351
8352 2014-03-14 Pedro Alves <palves@redhat.com>
8353
8354 * inferior.h (terminal_ours_for_output): Rename to ...
8355 (child_terminal_ours_for_output): ... this.
8356 (terminal_save_ours): Rename to ...
8357 (child_terminal_save_ours): ... this.
8358 (terminal_ours): Rename to ...
8359 (child_terminal_ours): ... this.
8360 (terminal_inferior): Rename to ...
8361 (child_terminal_inferior): ... this.
8362 (terminal_init_inferior): Rename to ...
8363 (child_terminal_init_inferior): ... this.
8364 (terminal_init_inferior_with_pgrp): Rename to ...
8365 (child_terminal_init_inferior_with_pgrp): ... this.
8366 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8367 (child_terminal_init_with_pgrp): ... this.
8368 (terminal_save_ours): Rename to ...
8369 (child_terminal_save_ours): ... this.
8370 (terminal_init_inferior): Rename to ...
8371 (child_terminal_init): ... this. Adjust.
8372 (terminal_inferior): Rename to ...
8373 (child_terminal_inferior): ... this.
8374 (terminal_ours_for_output): Rename to ...
8375 (child_terminal_ours_for_output): ... this. Adjust.
8376 (terminal_ours): Rename to ...
8377 (child_terminal_ours): ... this.
8378 (terminal_ours_1): Rename to ...
8379 (child_terminal_ours_1): ... this. Adjust.
8380 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8381 * windows-nat.c (do_initial_windows_stuff): Adjust.
8382 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8383 (gnu_terminal_init): ... this. Adjust.
8384 (gnu_target): Adjust.
8385 * inf-child.c (inf_child_target): Adjust.
8386
8387 2014-03-13 Doug Evans <xdje42@gmail.com>
8388
8389 PR guile/16612
8390 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8391 new eq?-hashtab.
8392
8393 2014-03-13 Doug Evans <xdje42@gmail.com>
8394
8395 * value.c (record_latest_value): Call release_value_or_incref
8396 instead of release_value.
8397
8398 2014-03-13 Pedro Alves <palves@redhat.com>
8399
8400 * procfs.c (procfs_target): Don't override to_shortname,
8401 to_longname or to_doc.
8402
8403 2014-03-13 Pedro Alves <palves@redhat.com>
8404
8405 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8406 Unix in user visible strings.
8407
8408 2014-03-12 Stan Shebs <stan@codesourcery.com>
8409
8410 * gdbtypes.h: Annotate comments for Doxygen, add a page
8411 block comment with some general info.
8412
8413 2014-03-12 Pedro Alves <palves@redhat.com>
8414
8415 * infcmd.c (prepare_execution_command): New function, factored out
8416 from several execution commands.
8417 (run_command_1, continue_command, step_1, jump_command)
8418 (signal_command, until_command, advance_command, finish_command)
8419 (attach_command): Use prepare_execution_command.
8420
8421 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8422
8423 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8424 (MAX_BPTS): Define.
8425 (MAX_WPTS): Define.
8426 (struct arm_linux_thread_points): Removed.
8427 (struct arm_linux_process_info): New.
8428 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8429 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8430 (arm_linux_find_breakpoints_by_tid): Removed.
8431 (struct arch_lwp_info): New.
8432 (arm_linux_find_process_pid): New functions.
8433 (arm_linux_add_process): New functions.
8434 (arm_linux_process_info_get): New functions.
8435 (arm_linux_forget_process): New function.
8436 (arm_linux_get_debug_reg_state): New function.
8437 (struct update_registers_data): New.
8438 (update_registers_callback): New function.
8439 (arm_linux_insert_hw_breakpoint1): Updated.
8440 (arm_linux_remove_hw_breakpoint1): Updated.
8441 (arm_linux_insert_hw_breakpoint): Updated.
8442 (arm_linux_remove_hw_breakpoint): Updated.
8443 (arm_linux_insert_watchpoint): Updated.
8444 (arm_linux_remove_watchpoint): Updated.
8445 (arm_linux_new_thread): Updated.
8446 (arm_linux_prepare_to_resume): New function.
8447 (arm_linux_new_fork): New function.
8448 (_initialize_arm_linux_nat): Updated.
8449
8450 2014-03-12 Pedro Alves <palves@redhat.com>
8451
8452 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8453
8454 2014-03-12 Tom Tromey <tromey@redhat.com>
8455
8456 * inf-child.c (return_zero): New function.
8457 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8458 * aix-thread.c (aix_thread_inferior_created): New function.
8459 (aix_thread_attach): Remove.
8460 (init_aix_thread_ops): Don't set to_attach.
8461 (_initialize_aix_thread): Register inferior_created observer.
8462 * corelow.c (init_core_ops): Don't set to_attach or
8463 to_create_inferior.
8464 * exec.c (init_exec_ops): Don't set to_attach or
8465 to_create_inferior.
8466 * infcmd.c (run_command_1): Use find_run_target. Make direct
8467 target calls.
8468 (attach_command): Use find_attach_target. Make direct target
8469 calls.
8470 * record-btrace.c (init_record_btrace_ops): Don't set
8471 to_create_inferior.
8472 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8473 Remove.
8474 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8475 set to_create_inferior.
8476 * target.c (complete_target_initialization): Add assertion.
8477 (target_create_inferior): Remove.
8478 (find_default_attach, find_default_create_inferior): Remove.
8479 (find_attach_target, find_run_target): New functions.
8480 (find_default_is_async_p, find_default_can_async_p)
8481 (target_supports_non_stop, target_attach): Remove.
8482 (init_dummy_target): Don't set to_create_inferior or
8483 to_supports_non_stop.
8484 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8485 TARGET_DEFAULT_FUNC.
8486 <to_create_inferior>: Add comment.
8487 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8488 TARGET_DEFAULT_RETURN.
8489 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8490 (find_attach_target, find_run_target): Declare.
8491 (target_create_inferior): Remove.
8492 (target_has_execution_1): Update comment.
8493 (target_supports_non_stop): Remove.
8494 * target-delegates.c: Rebuild.
8495
8496 2014-03-12 Pedro Alves <palves@redhat.com>
8497
8498 * inf-child.h: Update comment to not mention Unix.
8499
8500 2014-03-12 Pedro Alves <palves@redhat.com>
8501
8502 * inf-child.c: Update top comment to not mention Unix. Add
8503 generic comment describing how this target is meant to be used.
8504 (inf_child_post_attach, inf_child_post_startup_inferior)
8505 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8506 Unix in comment.
8507
8508 2014-03-12 Pedro Alves <palves@redhat.com>
8509
8510 * nto-procfs.c: Include inf-child.h.
8511 (procfs_ops): Delete global.
8512 (procfs_can_run): Delete method.
8513 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8514 target pointer instead of referencing procfs_ops.
8515 (procfs_prepare_to_store): Delete.
8516 (init_procfs_ops): Delete function.
8517 (procfs_target): New function, based on init_procfs_ops, but
8518 inherit inf_child_target.
8519 (_initialize_procfs): Use procfs_target.
8520
8521 2014-03-12 Pedro Alves <palves@redhat.com>
8522
8523 * windows-nat.c: Include inf-child.h.
8524 (windows_ops): Delete global.
8525 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8526 methods.
8527 (init_windows_ops): Delete function.
8528 (windows_target): New function, based on init_windows_ops, but
8529 inherit inf_child_target.
8530 (_initialize_windows_nat): Use windows_target. Install x86
8531 specific target methods here.
8532
8533 2014-03-10 Doug Evans <xdje42@gmail.com>
8534
8535 * guile/guile.c (call_initialize_gdb_module): New function.
8536 (initialize_guile): Replace call to scm_init_guile with call to
8537 scm_with_guile.
8538
8539 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8540
8541 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8542 in call to TYPE_CODE macro.
8543
8544 2014-03-10 Jerome Guitton <guitton@adacore.com>
8545
8546 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8547 Resolve tagged types to full view.
8548
8549 2014-03-10 Hui Zhu <hui@codesourcery.com>
8550
8551 * target.h (target_insert_breakpoint): Remove "hardware" from its
8552 comments.
8553
8554 2014-03-07 Doug Evans <dje@google.com>
8555
8556 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8557
8558 2014-03-07 Doug Evans <dje@google.com>
8559
8560 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8561 Remove unused local comp_dir_attr. Assert exactly one of
8562 stub_comp_unit_die, stub_comp_dir is non-NULL.
8563
8564 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8565
8566 * target.h (complete_target_initialization, add_target):
8567 Add comment.
8568
8569 2014-03-07 Pedro Alves <palves@redhat.com>
8570
8571 * go32-nat.c: Include inf-child.h.
8572 (go32_ops): Delete global.
8573 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8574 Delete methods.
8575 (go32_create_inferior): Push the passed in target pointer instead
8576 of referencing go32_ops.
8577 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8578 (go32_target): New function, based on init_go32_ops, but inherit
8579 inf_child_target.
8580 (_initialize_go32_nat): Use go32_target. Move parts of
8581 init_go32_ops here.
8582
8583 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8584
8585 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8586 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8587 SYMBOL_VALUE_ADDRESS.
8588 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8589
8590 2014-03-06 Yao Qi <yao@codesourcery.com>
8591
8592 * breakpoint.c (get_tracepoint_by_number): Remove argument
8593 optional_p. All callers updated. Adjust comments. Update
8594 output message.
8595 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8596
8597 2014-03-06 Yao Qi <yao@codesourcery.com>
8598
8599 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8600 early if get_number returns zero. Use 'p' instead of 'args'.
8601
8602 2014-03-06 Yao Qi <yao@codesourcery.com>
8603
8604 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8605 message.
8606
8607 2014-03-06 Yao Qi <yao@codesourcery.com>
8608
8609 PR breakpoints/16508
8610 * tracepoint.c (check_trace_running): New function.
8611 (trace_find_command): Move code to check_trace_running and
8612 call check_trace_running.
8613 (trace_find_pc_command): Likewise.
8614 (trace_find_tracepoint_command): Likewise.
8615 (trace_find_line_command): Likewise.
8616 (trace_find_range_command): Likewise.
8617 * tracepoint.h (check_trace_running): Likewise.
8618 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8619
8620 2014-03-06 Yao Qi <yao@codesourcery.com>
8621
8622 * target.h (struct target_ops) <to_traceframe_info>: Use
8623 TARGET_DEFAULT_NORETURN (tcomplain ()).
8624 * target-delegates.c: Regenerated.
8625
8626 2014-03-05 Pedro Alves <palves@redhat.com>
8627
8628 PR gdb/16575
8629 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8630 void. Update comment.
8631 (dcache_xfer_memory): Delete.
8632 (dcache_read_memory_partial): New, based on the read bits of
8633 dcache_xfer_memory.
8634 (dcache_update): Add status parameter. Use ULONGEST for len, and
8635 adjust. Discard cache lines if the reason for the update was
8636 error.
8637 * dcache.h (dcache_xfer_memory): Delete declaration.
8638 (dcache_read_memory_partial): New declaration.
8639 (dcache_update): Update prototype.
8640 * target.c (raw_memory_xfer_partial): Update the dcache here.
8641 (memory_xfer_partial_1): Don't handle dcache writes here.
8642
8643 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8644
8645 * remote-sim.c (gdbsim_load): Add const to prog.
8646
8647 2014-03-03 Tom Tromey <tromey@redhat.com>
8648
8649 * elfread.c (probe_key): Change to bfd_data.
8650 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8651 now per-BFD, not per-objfile.
8652 * stap-probe.c (stap_probe_destroy): Update comment.
8653 (handle_stap_probe): Allocate on the per-BFD obstack.
8654
8655 2014-03-03 Tom Tromey <tromey@redhat.com>
8656
8657 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8658 * breakpoint.c (create_longjmp_master_breakpoint): Use
8659 get_probe_address.
8660 (add_location_to_breakpoint, bkpt_probe_insert_location)
8661 (bkpt_probe_remove_location): Update.
8662 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8663 * elfread.c (elf_symfile_relocate_probe): Remove.
8664 (elf_probe_fns): Update.
8665 (insert_exception_resume_breakpoint): Change type of "probe"
8666 parameter to bound_probe.
8667 (check_exception_resume): Update.
8668 * objfiles.c (objfile_relocate1): Don't relocate probes.
8669 * probe.c (bound_probe_s): New typedef.
8670 (parse_probes): Use get_probe_address. Set sal's objfile.
8671 (find_probe_by_pc): Return a bound_probe.
8672 (collect_probes): Return a VEC(bound_probe_s).
8673 (compare_probes): Update.
8674 (gen_ui_out_table_header_info): Change type of "probes"
8675 parameter. Update.
8676 (info_probes_for_ops): Update.
8677 (get_probe_address): New function.
8678 (probe_safe_evaluate_at_pc): Update.
8679 * probe.h (struct probe_ops) <get_probe_address>: New field.
8680 <set_semaphore, clear_semaphore>: Add objfile parameter.
8681 (struct probe) <objfile>: Remove field.
8682 <arch>: New field.
8683 <address>: Update comment.
8684 (struct bound_probe): New.
8685 (find_probe_by_pc): Return a bound_probe.
8686 (get_probe_address): Declare.
8687 * solib-svr4.c (struct probe_and_action) <address>: New field.
8688 (hash_probe_and_action, equal_probe_and_action): Update.
8689 (register_solib_event_probe): Add address parameter.
8690 (solib_event_probe_at): Update.
8691 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8692 get_probe_address.
8693 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8694 (stap_get_probe_address): New function.
8695 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8696 (compile_probe_arg): Update.
8697 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8698 address.
8699 (handle_stap_probe): Don't relocate the probe.
8700 (stap_relocate): Remove.
8701 (stap_gen_info_probes_table_values): Update.
8702 (stap_probe_ops): Remove stap_relocate.
8703 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8704 (debug_sym_probe_fns): Update.
8705 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8706 * symtab.c (init_sal): Use memset.
8707 * symtab.h (struct symtab_and_line) <objfile>: New field.
8708 * tracepoint.c (start_tracing, stop_tracing): Update.
8709
8710 2014-03-03 Tom Tromey <tromey@redhat.com>
8711
8712 * probe.h (parse_probes, find_probe_by_pc)
8713 (find_probes_in_objfile): Fix comments.
8714
8715 2014-03-02 Doug Evans <xdje42@gmail.com>
8716
8717 * infrun.c (handle_signal_stop): Replace test for
8718 TARGET_WAITKIND_STOPPED with an assert.
8719
8720 2014-03-02 Doug Evans <xdje42@gmail.com>
8721
8722 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8723
8724 2014-03-02 Doug Evans <xdje42@gmail.com>
8725
8726 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8727
8728 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8729
8730 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8731
8732 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8733
8734 * i386obsd-nat.c: Include "obsd-nat.h".
8735 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8736 add_target.
8737 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8738
8739 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8740
8741 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8742
8743 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8744
8745 * mips64obsd-nat.c: Include "obsd-nath".
8746 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8747 add_target
8748 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8749
8750 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8751
8752 * amd64obsd-nat.c: Include "obsd-nat,h.
8753 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8754 add_target.
8755 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8756
8757 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8758
8759 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8760 (find_overload_match): Update call to find_oload_champ.
8761 (find_oload_champ_namespace_loop): Likewise
8762
8763 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8764
8765 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8766
8767 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8768 * config/sparc/obsd64.mh: New file.
8769 * sparc64obsd-nat.c: New file.
8770
8771 * obsd-nat.h: New file.
8772 * obsd-nat.c: New file.
8773 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8774 (ALLDEPFILES): Add obsd-nat.c.
8775
8776 2014-02-28 Tom Tromey <tromey@redhat.com>
8777
8778 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8779 * cli-out.h (cli_ui_out_impl): Now const.
8780 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8781 * ui-out.c (struct ui_out) <impl>: Now const.
8782 (default_ui_out_impl): Now const.
8783 (ui_out_new): Make 'impl' parameter const.
8784 * ui-out.h (ui_out_new): Update.
8785
8786 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8787
8788 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8789
8790 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8791
8792 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8793
8794 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8795
8796 Additional PR 8882 fix.
8797 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8798
8799 2014-02-27 Pedro Alves <palves@redhat.com>
8800
8801 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8802 isn't set.
8803
8804 2014-02-27 Pedro Alves <palves@redhat.com>
8805
8806 PR 12702
8807 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8808 * nat/linux-waitpid.c: Include string.h.
8809 (status_to_str): Moved here and made extern.
8810 * nat/linux-waitpid.h (status_to_str): New declaration.
8811
8812 2014-02-27 Hui Zhu <hui@codesourcery.com>
8813
8814 PR 12702
8815 * infrun.c (ptid_match): Move ...
8816 * common/ptid.c (ptid_match): ... here.
8817 * inferior.h (ptid_match): Move ...
8818 * common/ptid.h (ptid_match): ... here.
8819
8820 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8821
8822 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8823 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8824 gdb_target_obs.
8825
8826 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8827
8828 * obsd-tdep.c (obsd_auxv_parse): New function.
8829 (obsd_init_abi): Set auxv_parse.
8830
8831 * gdbarch.sh (auxv_parse): New.
8832 * gdbarch.h: Regenerated.
8833 * gdbarch.c: Regenerated.
8834 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8835
8836 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8837
8838 * guile/scm-value.c (gdbscm_history_append_x): New function.
8839 (value_functions): Add it.
8840
8841 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8842
8843 * dwarf2read.c (attr_value_as_address): New function.
8844 (dwarf2_find_base_address, read_call_site_scope): Use
8845 attr_value_as_address in place of DW_ADDR.
8846 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8847 the low and high addresses. Slight rework of the handling
8848 of the high pc being a constant form, and limit it to
8849 DWARF verson 4 or higher.
8850 (dwarf2_record_block_ranges): Likewise.
8851 (read_partial_die): Likewise.
8852 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8853
8854 2014-02-26 Tom Tromey <tromey@redhat.com>
8855
8856 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8857
8858 2014-02-26 Tom Tromey <tromey@redhat.com>
8859
8860 * elfread.c (elf_read_minimal_symbols): Return early if
8861 minimal symbols have already been read. Add "ei" parameter.
8862 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8863 * minsyms.c (prim_record_minimal_symbol_full): Update.
8864 * objfiles.h (struct objstats) <n_minsyms>: Move...
8865 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8866 * symmisc.c (print_objfile_statistics): Update.
8867
8868 2014-02-26 Tom Tromey <tromey@redhat.com>
8869
8870 * elfread.c (elf_read_minimal_symbols): New function, from
8871 elf_symfile_read.
8872 (elf_symfile_read): Call it.
8873
8874 2014-02-26 Tom Tromey <tromey@redhat.com>
8875
8876 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8877 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8878 (lookup_minimal_symbol_solib_trampoline)
8879 (lookup_minimal_symbol_by_pc_section_1)
8880 (lookup_minimal_symbol_and_objfile): Update.
8881 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8882 Don't allocate a minimal symbol if minsyms have already been read.
8883 (build_minimal_symbol_hash_tables): Update.
8884 (install_minimal_symbols): Do nothing if minsyms already read.
8885 Use the per-BFD obstack.
8886 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8887 * objfiles.c (allocate_objfile): Call
8888 terminate_minimal_symbol_table later.
8889 (have_minimal_symbols): Update.
8890 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8891 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8892 Move from struct objfile.
8893 <minsyms_read>: New field.
8894 (struct objfile) <msymbols, minimal_symbol_count,
8895 msymbol_hash, msymbol_demangled_hash>: Move.
8896 (ALL_OBJFILE_MSYMBOLS): Update.
8897 * symfile.c (read_symbols): Set minsyms_read.
8898 (reread_symbols): Update.
8899 * symmisc.c (dump_objfile, dump_msymbols): Update.
8900
8901 2014-02-26 Tom Tromey <tromey@redhat.com>
8902
8903 * minsyms.c (msymbols_sort): Remove.
8904 * minsyms.h (msymbols_sort): Remove.
8905 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8906 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8907 * elfread.c (elf_symtab_read): Don't add section offsets.
8908 * xcoffread.c (record_minimal_symbol): Don't add section offset
8909 to minimal symbol address.
8910 * somread.c (text_offset, data_offset): Remove.
8911 (som_symtab_read): Don't add section offsets to minimal symbol
8912 addresses.
8913 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8914 Don't add section offsets to minimal symbols.
8915 * coffread.c (coff_symtab_read): Don't add section offsets
8916 to minimal symbol addresses.
8917 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8918 to minimal symbol addresses.
8919 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8920 section offset to minimal symbol addresses.
8921 * mdebugread.c (parse_partial_symbols): Don't add section
8922 offset to minimal symbol addresses.
8923 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8924 offset to minimal symbol addresses.
8925
8926 2014-02-26 Tom Tromey <tromey@redhat.com>
8927
8928 * ada-lang.c (ada_main_name): Update.
8929 (ada_add_standard_exceptions): Update.
8930 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8931 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8932 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8933 * auxv.c (ld_so_xfer_auxv): Update.
8934 * avr-tdep.c (avr_scan_prologue): Update.
8935 * ax-gdb.c (gen_var_ref): Update.
8936 * blockframe.c (get_pc_function_start)
8937 (find_pc_partial_function_gnu_ifunc): Update.
8938 * breakpoint.c (create_overlay_event_breakpoint)
8939 (create_longjmp_master_breakpoint)
8940 (create_std_terminate_master_breakpoint)
8941 (create_exception_master_breakpoint): Update.
8942 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8943 * c-valprint.c (c_val_print): Update.
8944 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8945 * common/agent.c (agent_look_up_symbols): Update.
8946 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8947 * dwarf2loc.c (call_site_to_target_addr): Update.
8948 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8949 * elfread.c (elf_gnu_ifunc_record_cache)
8950 (elf_gnu_ifunc_resolve_by_got): Update.
8951 * findvar.c (default_read_var_value): Update.
8952 * frame.c (inside_main_func): Update.
8953 * frv-tdep.c (frv_frame_this_id): Update.
8954 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8955 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8956 Update.
8957 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8958 (hppa_hpux_find_dummy_bpaddr): Update.
8959 * hppa-tdep.c (hppa_symbol_address): Update.
8960 * infcmd.c (until_next_command): Update.
8961 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8962 Update.
8963 * linespec.c (minsym_found, add_minsym): Update.
8964 * linux-nat.c (get_signo): Update.
8965 * linux-thread-db.c (inferior_has_bug): Update.
8966 * m32c-tdep.c (m32c_return_value)
8967 (m32c_m16c_address_to_pointer): Update.
8968 * m32r-tdep.c (m32r_frame_this_id): Update.
8969 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8970 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8971 * maint.c (maintenance_translate_address): Update.
8972 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8973 (frob_address): New function.
8974 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8975 frob_address. Rename parameter to "pc_in".
8976 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8977 addresses.
8978 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8979 Update.
8980 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8981 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8982 * objc-lang.c (find_objc_msgsend): Update.
8983 * objfiles.c (objfile_relocate1): Update.
8984 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8985 * p-valprint.c (pascal_val_print): Update.
8986 * parse.c (write_exp_msymbol): Update.
8987 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8988 (ppc_elfv2_skip_entrypoint): Update.
8989 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8990 * printcmd.c (build_address_symbolic, msym_info)
8991 (address_info): Update.
8992 * proc-service.c (ps_pglobal_lookup): Update.
8993 * psymtab.c (find_pc_sect_psymtab_closer)
8994 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8995 Change msymbol parameter to bound_minimal_symbol.
8996 * ravenscar-thread.c (get_running_thread_id): Update.
8997 * remote.c (remote_check_symbols): Update.
8998 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8999 address.
9000 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9001 * solib-dsbt.c (lm_base): Update.
9002 * solib-frv.c (lm_base, main_got): Update.
9003 * solib-irix.c (locate_base): Update.
9004 * solib-som.c (som_solib_create_inferior_hook)
9005 (link_map_start): Update.
9006 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9007 * solib-svr4.c (elf_locate_base, enable_break): Update.
9008 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9009 (flush_ea_cache): Update.
9010 * stabsread.c (define_symbol, scan_file_globals): Update.
9011 * stack.c (find_frame_funname): Update.
9012 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9013 (debug_qf_find_pc_sect_symtab): Update.
9014 * symfile.c (simple_read_overlay_table)
9015 (simple_overlay_update): Update.
9016 * symfile.h (struct quick_symbol_functions)
9017 <find_pc_sect_symtab>: Change type of msymbol to
9018 bound_minimal_symbol.
9019 * symmisc.c (dump_msymbols): Update.
9020 * symtab.c (find_pc_sect_symtab_via_partial)
9021 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9022 (search_symbols, print_msymbol_info): Update.
9023 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9024 (MSYMBOL_VALUE_ADDRESS): Redefine.
9025 (BMSYMBOL_VALUE_ADDRESS): New macro.
9026 * tracepoint.c (scope_info): Update.
9027 * tui/tui-disasm.c (tui_find_disassembly_address)
9028 (tui_get_begin_asm_address): Update.
9029 * valops.c (find_function_in_inferior): Update.
9030 * value.c (value_static_field, value_fn_field): Update.
9031
9032 2014-02-26 Tom Tromey <tromey@redhat.com>
9033
9034 * ada-lang.c (ada_update_initial_language): Update.
9035 (ada_main_name, ada_has_this_exception_support): Update.
9036 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9037 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9038 * arm-tdep.c (arm_skip_stub): Update.
9039 * auxv.c (ld_so_xfer_auxv): Update.
9040 * avr-tdep.c (avr_scan_prologue): Update.
9041 * ax-gdb.c (gen_var_ref): Update.
9042 * breakpoint.c (struct breakpoint_objfile_data)
9043 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9044 type to bound_minimal_symbol.
9045 (create_overlay_event_breakpoint)
9046 (create_longjmp_master_breakpoint)
9047 (create_std_terminate_master_breakpoint)
9048 (create_exception_master_breakpoint): Update.
9049 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9050 * c-exp.y (classify_name): Update.
9051 * coffread.c (coff_symfile_read): Update.
9052 * common/agent.c (agent_look_up_symbols): Update.
9053 * d-lang.c (d_main_name): Update.
9054 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9055 * dec-thread.c (enable_dec_thread): Update.
9056 * dwarf2loc.c (call_site_to_target_addr): Update.
9057 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9058 * eval.c (evaluate_subexp_standard): Update.
9059 * findvar.c (struct minsym_lookup_data) <result>: Change type
9060 to bound_minimal_symbol.
9061 <objfile>: Remove.
9062 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9063 * frame.c (inside_main_func): Update.
9064 * frv-tdep.c (frv_frame_this_id): Update.
9065 * gcore.c (call_target_sbrk): Update.
9066 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9067 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9068 Update.
9069 * go-lang.c (go_main_name): Update.
9070 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9071 (hppa_hpux_find_import_stub_for_addr): Update.
9072 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9073 Update. Change return type.
9074 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9075 type.
9076 * jit.c (jit_breakpoint_re_set_internal): Update.
9077 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9078 Update.
9079 * linux-nat.c (get_signo): Update.
9080 * linux-thread-db.c (inferior_has_bug): Update
9081 * m32c-tdep.c (m32c_return_value)
9082 (m32c_m16c_address_to_pointer): Update.
9083 * m32r-tdep.c (m32r_frame_this_id): Update.
9084 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9085 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9086 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9087 lookup_minimal_symbol. Change return type.
9088 (lookup_minimal_symbol): Remove.
9089 (lookup_bound_minimal_symbol): Update.
9090 (lookup_minimal_symbol_text): Change return type.
9091 (lookup_minimal_symbol_solib_trampoline): Change return type.
9092 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9093 (lookup_minimal_symbol_solib_trampoline): Change return type.
9094 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9095 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9096 (value_nsstring, find_imps): Update.
9097 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9098 * p-lang.c (pascal_main_name): Update.
9099 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9100 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9101 * proc-service.c (ps_pglobal_lookup): Update.
9102 * ravenscar-thread.c (get_running_thread_msymbol): Change
9103 return type.
9104 (has_ravenscar_runtime, get_running_thread_id): Update.
9105 * remote.c (remote_check_symbols): Update.
9106 * sol-thread.c (ps_pglobal_lookup): Update.
9107 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9108 * solib-dsbt.c (lm_base): Update.
9109 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9110 Update.
9111 * solib-irix.c (locate_base): Update.
9112 * solib-som.c (som_solib_create_inferior_hook)
9113 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9114 Update.
9115 * solib-spu.c (spu_enable_break): Update.
9116 * solib-svr4.c (elf_locate_base, enable_break): Update.
9117 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9118 (flush_ea_cache): Update.
9119 * stabsread.c (define_symbol): Update.
9120 * symfile.c (simple_read_overlay_table): Update.
9121 * symtab.c (find_pc_sect_line): Update.
9122 * tracepoint.c (scope_info): Update.
9123 * tui-disasm.c (tui_get_begin_asm_address): Update.
9124 * value.c (value_static_field): Update.
9125
9126 2014-02-26 Tom Tromey <tromey@redhat.com>
9127
9128 * minsyms.c (prim_record_minimal_symbol_full): Use
9129 SET_MSYMBOL_VALUE_ADDRESS.
9130 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9131 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9132 SET_MSYMBOL_VALUE_ADDRESS.
9133 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9134 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9135
9136 2014-02-26 Tom Tromey <tromey@redhat.com>
9137
9138 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9139 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9140 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9141 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9142 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9143 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9144 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9145 * ada-lang.c (ada_main_name): Update.
9146 (ada_lookup_simple_minsym): Update.
9147 (ada_make_symbol_completion_list): Update.
9148 (ada_add_standard_exceptions): Update.
9149 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9150 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9151 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9152 * arm-tdep.c (skip_prologue_function): Update.
9153 (arm_skip_stack_protector, arm_skip_stub): Update.
9154 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9155 (arm_wince_skip_main_prologue): Update.
9156 * auxv.c (ld_so_xfer_auxv): Update.
9157 * avr-tdep.c (avr_scan_prologue): Update.
9158 * ax-gdb.c (gen_var_ref): Update.
9159 * block.c (call_site_for_pc): Update.
9160 * blockframe.c (get_pc_function_start): Update.
9161 (find_pc_partial_function_gnu_ifunc): Update.
9162 * breakpoint.c (create_overlay_event_breakpoint): Update.
9163 (create_longjmp_master_breakpoint): Update.
9164 (create_std_terminate_master_breakpoint): Update.
9165 (create_exception_master_breakpoint): Update.
9166 (resolve_sal_pc): Update.
9167 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9168 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9169 Update.
9170 * c-valprint.c (c_val_print): Update.
9171 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9172 * coffread.c (coff_symfile_read): Update.
9173 * common/agent.c (agent_look_up_symbols): Update.
9174 * dbxread.c (find_stab_function_addr): Update.
9175 (end_psymtab): Update.
9176 * dwarf2loc.c (call_site_to_target_addr): Update.
9177 (func_verify_no_selftailcall): Update.
9178 (tailcall_dump): Update.
9179 (call_site_find_chain_1): Update.
9180 (dwarf_expr_reg_to_entry_parameter): Update.
9181 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9182 (elf_gnu_ifunc_resolve_by_got): Update.
9183 * f-valprint.c (info_common_command): Update.
9184 * findvar.c (read_var_value): Update.
9185 * frame.c (get_prev_frame_1): Update.
9186 (inside_main_func): Update.
9187 * frv-tdep.c (frv_skip_main_prologue): Update.
9188 (frv_frame_this_id): Update.
9189 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9190 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9191 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9192 (gnuv3_skip_trampoline): Update.
9193 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9194 (hppa64_hpux_in_solib_call_trampoline): Update.
9195 (hppa_hpux_skip_trampoline_code): Update.
9196 (hppa64_hpux_search_dummy_call_sequence): Update.
9197 (hppa_hpux_find_import_stub_for_addr): Update.
9198 (hppa_hpux_find_dummy_bpaddr): Update.
9199 * hppa-tdep.c (hppa_symbol_address)
9200 (hppa_lookup_stub_minimal_symbol): Update.
9201 * i386-tdep.c (i386_skip_main_prologue): Update.
9202 (i386_pe_skip_trampoline_code): Update.
9203 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9204 * infcall.c (get_function_name): Update.
9205 * infcmd.c (until_next_command): Update.
9206 * jit.c (jit_breakpoint_re_set_internal): Update.
9207 (jit_inferior_init): Update.
9208 * linespec.c (minsym_found): Update.
9209 (add_minsym): Update.
9210 * linux-fork.c (info_checkpoints_command): Update.
9211 * linux-nat.c (get_signo): Update.
9212 * linux-thread-db.c (inferior_has_bug): Update.
9213 * m32c-tdep.c (m32c_return_value): Update.
9214 (m32c_m16c_address_to_pointer): Update.
9215 (m32c_m16c_pointer_to_address): Update.
9216 * m32r-tdep.c (m32r_frame_this_id): Update.
9217 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9218 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9219 * maint.c (maintenance_translate_address): Update.
9220 * minsyms.c (add_minsym_to_hash_table): Update.
9221 (add_minsym_to_demangled_hash_table): Update.
9222 (msymbol_objfile): Update.
9223 (lookup_minimal_symbol): Update.
9224 (iterate_over_minimal_symbols): Update.
9225 (lookup_minimal_symbol_text): Update.
9226 (lookup_minimal_symbol_by_pc_name): Update.
9227 (lookup_minimal_symbol_solib_trampoline): Update.
9228 (lookup_minimal_symbol_by_pc_section_1): Update.
9229 (lookup_minimal_symbol_and_objfile): Update.
9230 (prim_record_minimal_symbol_full): Update.
9231 (compare_minimal_symbols): Update.
9232 (compact_minimal_symbols): Update.
9233 (build_minimal_symbol_hash_tables): Update.
9234 (install_minimal_symbols): Update.
9235 (terminate_minimal_symbol_table): Update.
9236 (find_solib_trampoline_target): Update.
9237 (minimal_symbol_upper_bound): Update.
9238 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9239 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9240 (mips_skip_pic_trampoline_code): Update.
9241 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9242 * objc-lang.c (selectors_info): Update.
9243 (classes_info): Update.
9244 (find_methods): Update.
9245 (find_imps): Update.
9246 (find_objc_msgsend): Update.
9247 * objfiles.c (objfile_relocate1): Update.
9248 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9249 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9250 * p-valprint.c (pascal_val_print): Update.
9251 * parse.c (write_exp_msymbol): Update.
9252 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9253 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9254 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9255 * printcmd.c (build_address_symbolic): Update.
9256 (sym_info): Update.
9257 (address_info): Update.
9258 * proc-service.c (ps_pglobal_lookup): Update.
9259 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9260 (find_pc_sect_psymtab): Update.
9261 * python/py-framefilter.c (py_print_frame): Update.
9262 * ravenscar-thread.c (get_running_thread_id): Update.
9263 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9264 Update.
9265 * remote.c (remote_check_symbols): Update.
9266 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9267 (rs6000_skip_trampoline_code): Update.
9268 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9269 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9270 * solib-dsbt.c (lm_base): Update.
9271 * solib-frv.c (lm_base): Update.
9272 (main_got): Update.
9273 * solib-irix.c (locate_base): Update.
9274 * solib-som.c (som_solib_create_inferior_hook): Update.
9275 (som_solib_desire_dynamic_linker_symbols): Update.
9276 (link_map_start): Update.
9277 * solib-spu.c (spu_enable_break): Update.
9278 (ocl_enable_break): Update.
9279 * solib-svr4.c (elf_locate_base): Update.
9280 (enable_break): Update.
9281 * spu-tdep.c (spu_get_overlay_table): Update.
9282 (spu_catch_start): Update.
9283 (flush_ea_cache): Update.
9284 * stabsread.c (define_symbol): Update.
9285 (scan_file_globals): Update.
9286 * stack.c (find_frame_funname): Update.
9287 (frame_info): Update.
9288 * symfile.c (simple_read_overlay_table): Update.
9289 (simple_overlay_update): Update.
9290 * symmisc.c (dump_msymbols): Update.
9291 * symtab.c (fixup_section): Update.
9292 (find_pc_sect_line): Update.
9293 (skip_prologue_sal): Update.
9294 (search_symbols): Update.
9295 (print_msymbol_info): Update.
9296 (rbreak_command): Update.
9297 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9298 (completion_list_objc_symbol): Update.
9299 (default_make_symbol_completion_list_break_on): Update.
9300 * tracepoint.c (scope_info): Update.
9301 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9302 (tui_get_begin_asm_address): Update.
9303 * valops.c (find_function_in_inferior): Update.
9304 * value.c (value_static_field): Update.
9305 (value_fn_field): Update.
9306
9307 2014-02-26 Tom Tromey <tromey@redhat.com>
9308
9309 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9310 bound minimal symbols. Move code that knows about minsym
9311 table layout...
9312 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9313 function.
9314 * minsyms.h (minimal_symbol_upper_bound): Declare.
9315 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9316 minimal_symbol_upper_bound.
9317
9318 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9319
9320 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9321 Use the type's name if its basic type does not have a tag.
9322
9323 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9324
9325 * dwarf2read.c (read_subrange_type): Add comment.
9326
9327 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9328
9329 * dwarf2read.c (update_enumeration_type_from_children): New
9330 function, mostly extracted from process_structure_scope.
9331 (read_enumeration_type): Call update_enumeration_type_from_children.
9332 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9333 and flag_flag_enum fields.
9334
9335 2014-02-26 Pedro Alves <palves@redhat.com>
9336
9337 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9338 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9339 to_xfer_partial method.
9340
9341 2014-02-26 Pedro Alves <palves@redhat.com>
9342
9343 * target.c (complete_target_initialization): Don't install
9344 default_xfer_partial as to_xfer_partial hook.
9345 (nomemory): Delete.
9346 (update_current_target): Don't INHERIT nor de_fault
9347 deprecated_xfer_memory. Delete de_fault macro.
9348 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9349 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9350 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9351 field.
9352
9353 2014-02-26 Pedro Alves <palves@redhat.com>
9354
9355 * go32-nat.c (my_write_child): New function.
9356 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9357 (go32_xfer_partial): New function.
9358 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9359 Instead install a to_xfer_partial hook.
9360
9361 2014-02-26 Pedro Alves <palves@redhat.com>
9362
9363 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9364 to_xfer_partial helper. Rewrite.
9365 (procfs_xfer_partial): New function.
9366 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9367 Install a to_xfer_partial hook.
9368
9369 2014-02-26 Pedro Alves <palves@redhat.com>
9370
9371 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9372 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9373 (m32r_xfer_partial): New function.
9374 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9375 Install a to_xfer_partial hook.
9376
9377 2014-02-26 Pedro Alves <palves@redhat.com>
9378
9379 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9380 helper.
9381 (mips_xfer_partial): New function.
9382 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9383 hook. Install a to_xfer_partial hook.
9384
9385 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9386
9387 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9388 * gdbtypes.c (create_array_type_with_stride): New function,
9389 renaming create_array_type, but with an added parameter
9390 called "bit_stride".
9391 (create_array_type): Re-implement using
9392 create_array_type_with_stride.
9393 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9394 and DW_AT_bit_stride attributes.
9395
9396 2014-02-26 Pedro Alves <palves@redhat.com>
9397
9398 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9399 task-specific breakpoints.
9400
9401 2014-02-25 Pedro Alves <palves@redhat.com>
9402
9403 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9404 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9405
9406 2014-02-25 Stan Shebs <stan@codesourcery.com>
9407
9408 * defs.h: Annotate comments for Doxygen.
9409
9410 2014-02-25 Tom Tromey <tromey@redhat.com>
9411
9412 * target.h (target_ignore): Don't declare.
9413 * target.c (target_ignore): Remove.
9414
9415 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9416
9417 PR gdb/16626
9418 * auto-load.c (auto_load_objfile_script_1): Change filename to
9419 debugfile.
9420
9421 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9422
9423 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9424 documentation. Adjust prototype to match the target_ops
9425 to_xfer_partial method. Adjust implementation accordingly.
9426
9427 2014-02-25 Hui Zhu <hui@codesourcery.com>
9428
9429 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9430 to_traceframe_info.
9431
9432 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9433
9434 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9435 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9436 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9437 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9438 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9439 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9440 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9441 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9442 New constants.
9443 (rl78_register_type): Use a data pointer type for SP and
9444 new pseudo registers mentioned above. Use a 16 bit integer
9445 type for all other register pairs.
9446 (rl78_register_name, rl78_g10_register_name): Update for
9447 new pseudo registers.
9448 (rl78_pseudo_register_read): Likewise.
9449 (rl78_pseudo_register_write): Likewise.
9450 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9451 to the newly added pseudo registers.
9452
9453 2014-02-24 Doug Evans <dje@google.com>
9454
9455 * value.c (record_latest_value): Fix comment.
9456 * printcmd.c (print_command_1): Remove code to handle -1 return from
9457 record_latest_value.
9458
9459 2014-02-24 Pedro Alves <palves@redhat.com>
9460
9461 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9462 deprecated_xfer_memory hook.
9463 (procfs_xfer_partial): Call procfs_xfer_memory instead
9464 of the deprecated_xfer_memory target hook.
9465 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9466 helper.
9467
9468 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9469
9470 * windows-nat.c (windows_xfer_shared_libraries): Return
9471 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9472 requested object is TARGET_OBJECT_LIBRARIES.
9473
9474 2014-02-24 Yao Qi <yao@codesourcery.com>
9475
9476 * target.h (enum target_xfer_status)
9477 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9478 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9479 explicitly. New.
9480 * corefile.c (memory_error_message): User updated.
9481 * exec.c (section_table_read_available_memory): Likewise.
9482 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9483 * target.c (target_xfer_status_to_string): Likewise.
9484 (raw_memory_xfer_partial): Likewise.
9485 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9486 * valops.c (read_value_memory): Likewise.
9487 * exec.h: Update comments.
9488
9489 2014-02-24 Yao Qi <yao@codesourcery.com>
9490
9491 * target.c (target_xfer_status_to_string): Rename argument err
9492 to status.
9493 * target.h (target_xfer_status_to_string): Update declaration.
9494 Replace target_xfer_error_to_string with
9495 target_xfer_status_to_string in comment.
9496
9497 2014-02-24 Yao Qi <yao@codesourcery.com>
9498
9499 * mips-linux-nat.c (super_close): Update its type.
9500 (mips_linux_close): Pass 'self' to super_close.
9501
9502 2014-02-24 Yao Qi <yao@codesourcery.com>
9503
9504 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9505 * corefile.c (read_memory): Adjusted.
9506 * target.c (target_write_with_progress): Adjusted.
9507
9508 2014-02-23 Yao Qi <yao@codesourcery.com>
9509
9510 Revert two patches:
9511
9512 2013-10-25 Yao Qi <yao@codesourcery.com>
9513
9514 * remote.c (remote_traceframe_info): Return early if
9515 traceframe is not selected.
9516
9517 2013-07-19 Yao Qi <yao@codesourcery.com>
9518
9519 * target.c (update_current_target): Change the default action
9520 of 'to_traceframe_info' from tcomplain to return_zero.
9521 * target.h (struct target_ops) <to_traceframe_info>: Add more
9522 comments.
9523
9524 2014-02-23 Yao Qi <yao@codesourcery.com>
9525
9526 * valops.c (read_value_memory): Rewrite it. Call
9527 target_xfer_partial in a loop.
9528 * exec.h (section_table_available_memory): Remove declaration.
9529 Move comments to ...
9530 * exec.c (section_table_available_memory): ... here. Make it
9531 static.
9532
9533 2014-02-23 Yao Qi <yao@codesourcery.com>
9534
9535 * exec.c (section_table_read_available_memory): New function.
9536 * exec.h (section_table_read_available_memory): Declare.
9537 * ctf.c (ctf_xfer_partial): Call
9538 section_table_read_available_memory.
9539 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9540
9541 2014-02-23 Yao Qi <yao@codesourcery.com>
9542
9543 * ctf.c (ctf_xfer_partial): Move code to ...
9544 * exec.c (exec_read_partial_read_only): ... it. New function.
9545 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9546 * tracefile.c: Include "exec.h".
9547 * exec.h (exec_read_partial_read_only): Declare.
9548
9549 2014-02-23 Yao Qi <yao@codesourcery.com>
9550
9551 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9552 (tfile_has_memory): Remove.
9553 (init_tfile_ops): Don't set fields to_has_all_memory and
9554 to_has_memory of tfile_ops.
9555 * tracefile.c (tracefile_has_all_memory): New function.
9556 (tracefile_has_memory): New function.
9557 (init_tracefile_ops): Initialize fields to_has_all_memory and
9558 to_has_memory of 'ops'.
9559
9560 2014-02-23 Yao Qi <yao@codesourcery.com>
9561
9562 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9563 (ctf_thread_alive, ctf_get_trace_status): Remove.
9564 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9565 init_tracefile_ops.
9566 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9567 (tfile_has_stack, tfile_has_registers): Remove.
9568 (tfile_thread_alive): Remove.
9569 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9570 init_tracefile_ops.
9571 * tracefile.c (tracefile_has_stack): New function.
9572 (tracefile_has_registers): New function.
9573 (tracefile_thread_alive): New function.
9574 (tracefile_get_trace_status): New function.
9575 (init_tracefile_ops): New function.
9576 * tracefile.h (init_tracefile_ops): Declare.
9577
9578 2014-02-23 Yao Qi <yao@codesourcery.com>
9579
9580 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9581 (O_LARGEFILE): Likewise.
9582 (tfile_ops): Likewise.
9583 (TRACE_HEADER_SIZE): Likewise.
9584 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9585 (cur_data_size): Likewise.
9586 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9587 (tfile_close, tfile_files_info): Likewise.
9588 (tfile_get_trace_status): Likewise.
9589 (tfile_get_tracepoint_status): Likewise.
9590 (tfile_get_traceframe_address): Likewise.
9591 (tfile_trace_find, match_blocktype): Likewise.
9592 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9593 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9594 (tfile_get_trace_state_variable_value): Likewise.
9595 (tfile_has_all_memory, tfile_has_memory): Likewise.
9596 (tfile_has_stack, tfile_has_registers): Likewise.
9597 (tfile_thread_alive, build_traceframe_info): Likewise.
9598 (tfile_traceframe_info, init_tfile_ops): Likewise.
9599 (_initialize_tracepoint): Don't call init_tfile_ops
9600 and add_target_with_completer.
9601 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9602 exec.h, completer.h and filenames.h.
9603 (_initialize_tracefile_tfile): New function.
9604
9605 2014-02-23 Yao Qi <yao@codesourcery.com>
9606
9607 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9608 tracefile-tfile.o.
9609 (HFILES_NO_SRCDIR): Add tracefile.h.
9610 * ctf.c: Include "tracefile.h".
9611 * tracefile.h: New file.
9612 * tracefile.c: New file
9613 * tracefile-tfile.c: New file.
9614 * tracepoint.c: Include "tracefile.h".
9615 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9616 (stop_reason_names): Add const.
9617 (trace_file_writer_xfree): Move it to tracefile.c.
9618 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9619 (trace_save_ctf): Likewise.
9620 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9621 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9622 (tfile_write_header, tfile_write_regblock_type): Likewise.
9623 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9624 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9625 (tfile_write_raw_data, tfile_end): Likewise.
9626 (tfile_trace_file_writer_new): Likewise.
9627 (free_uploaded_tp): Make it extern.
9628 (free_uploaded_tsv): Make it extern.
9629 (_initialize_tracepoint): Move code to register command 'tsave'
9630 to tracefile.c.
9631 * tracepoint.h (stop_reason_names): Declare.
9632 (struct trace_frame_write_ops): Move it to tracefile.h.
9633 (struct trace_file_write_ops): Likewise.
9634 (struct trace_file_writer): Likewise.
9635 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9636
9637 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9638
9639 PR gdb/16594
9640 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9641 process name.
9642 (get_cores_used_by_process): New parameter num_cores, use it.
9643 (linux_xfer_osdata_processes): Pass num_cores to it.
9644 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9645 process name.
9646
9647 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9648
9649 * target.c (memory_xfer_partial): Fix length arg in call to
9650 breakpoint_xfer_memory.
9651
9652 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9653
9654 PR tdep/16397
9655 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9656 number comes after the + or - signs. Adjust length of register
9657 name to be extracted.
9658
9659 2014-02-20 Tom Tromey <tromey@redhat.com>
9660
9661 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9662 (ada_varobj_ops): Mark "extern".
9663
9664 2014-02-20 Tom Tromey <tromey@redhat.com>
9665
9666 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9667
9668 2014-02-20 Doug Evans <xdje42@gmail.com>
9669
9670 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9671 All callers updated.
9672 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9673 All callers updated.
9674 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9675 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9676
9677 2014-02-20 lin zuojian <manjian2006@gmail.com>
9678 Joel Brobecker <brobecker@adacore.com>
9679 Doug Evans <xdje42@gmail.com>
9680
9681 PR symtab/16581
9682 * dwarf2read.c (struct die_info): New member in_process.
9683 (reset_die_in_process): New function.
9684 (process_die): Set it at the start, reset when returning.
9685 (inherit_abstract_dies): Only call process_die if origin_child_die
9686 not already being processed.
9687
9688 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9689
9690 * windows-nat.c (handle_unload_dll): Add function documentation.
9691 (do_initial_windows_stuff): Add comment explaining why we wait
9692 until after inferior initialization has finished before
9693 processing all DLLs.
9694
9695 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9696
9697 * windows-nat.c (get_module_name): Delete.
9698 (windows_get_exec_module_filename): New function, mostly
9699 inspired from get_module_name.
9700 (windows_pid_to_exec_file): Replace call to get_module_name
9701 by call to windows_get_exec_module_filename.
9702
9703 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9704
9705 * windows-nat.c (handle_load_dll): Rewrite this function's
9706 introductory comment. Remove code using get_module_name
9707 to get the DLL's name.
9708
9709 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9710
9711 * windows-nat.c (get_windows_debug_event): Ignore
9712 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9713 if windows_initialization_done == 0.
9714 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9715 Adjust implementation to always load all DLLs.
9716 (do_initial_windows_stuff): Replace call to
9717 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9718
9719 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9720
9721 * windows-nat.c (_initialize_windows_nat): Deprecate the
9722 "dll-symbols" command. Turn the "add-shared-symbol-files"
9723 and "assf" aliases into commands, and deprecate them as well.
9724 * NEWS: Add entry explaining that "dll-symbols" and its two
9725 aliases are now deprecated.
9726
9727 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9728
9729 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9730 new-line in debug string. Remove trailing spaces.
9731
9732 2014-02-19 Stan Shebs <stan@codesourcery.com>
9733
9734 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9735
9736 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9737
9738 * NEWS: Add entry for the new feature
9739 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9740 and class values.
9741
9742 2014-02-19 Stan Shebs <stan@codesourcery.com>
9743
9744 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9745
9746 2014-02-19 Pedro Alves <palves@redhat.com>
9747
9748 * common/ptid.h (struct ptid): Mention that process_stratum
9749 targets should prefer ptid.lwp.
9750
9751 2014-02-19 Pedro Alves <palves@redhat.com>
9752
9753 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9754 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9755 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9756 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9757 store remote thread ids rather than ptid.tid.
9758 (_initialize_remote): Adjust.
9759
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9761
9762 * target.c (target_get_unwinder): Rewrite.
9763 (target_get_tailcall_unwinder): Rewrite.
9764 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9765 (record_btrace_to_get_tailcall_unwinder): New function.
9766 (init_record_btrace_ops): Update.
9767 * target.h (struct target_ops) <to_get_unwinder,
9768 to_get_tailcall_unwinder>: Now function pointers. Use
9769 TARGET_DEFAULT_RETURN.
9770
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9772
9773 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9774 argument.
9775 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9776
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9778
9779 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9780 directly.
9781 * target-delegates.c: Rebuild.
9782 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9783 TARGET_DEFAULT_FUNC.
9784 * target.c (default_target_decr_pc_after_break): Rename from
9785 forward_target_decr_pc_after_break. Simplify.
9786 (target_decr_pc_after_break): Rely on delegation.
9787
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target.c (update_current_target): Do not INHERIT to_doc or
9791 to_magic. Do not de_fault to_open or to_close.
9792
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9794
9795 * gcore.h (objfile_find_memory_regions): Declare.
9796 * gcore.c (objfile_find_memory_regions): No longer static. Add
9797 "self" argument.
9798 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9799 * exec.c: Include gcore.h.
9800 (exec_set_find_memory_regions): Remove.
9801 (exec_find_memory_regions): Remove.
9802 (exec_do_find_memory_regions): Remove.
9803 (init_exec_ops): Update.
9804 * defs.h (exec_set_find_memory_regions): Remove.
9805
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9807
9808 * target-delegates.c: Rebuild.
9809 * target.h (struct target_ops) <to_extra_thread_info,
9810 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9811 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9812 not 0, in TARGET_DEFAULT_RETURN.
9813
9814 2014-02-19 Tom Tromey <tromey@redhat.com>
9815
9816 * target.c (complete_target_initialization): Remove casts. Use
9817 return_zero_has_execution.
9818 (return_zero): Add "ignore" argument.
9819 (return_zero_has_execution): New function.
9820 (init_dummy_target): Remove casts. Use
9821 return_zero_has_execution.
9822
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9824
9825 * target.c (update_current_target): Update comments. Do not
9826 INHERIT to_stratum.
9827
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9831 needed.
9832 * corelow.c (core_read_description): Delegate when needed.
9833 * remote.c (remote_read_description): Delegate when needed.
9834 * target-delegates.c: Rebuild.
9835 * target.c (target_read_description): Rewrite.
9836 * target.h (struct target_ops) <to_read_description>: Update
9837 comment. Use TARGET_DEFAULT_RETURN.
9838
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9840
9841 * target-delegates.c: Rebuild.
9842 * target.c (update_current_target): Don't inherit or default
9843 to_can_run.
9844 (find_default_run_target): Check against delegate_can_run.
9845 * target.h (struct target_ops) <to_can_run>: Use
9846 TARGET_DEFAULT_RETURN.
9847
9848 2014-02-19 Tom Tromey <tromey@redhat.com>
9849
9850 * target-delegates.c: Rebuild.
9851 * target.c (target_disconnect): Unconditionally delegate.
9852 * target.h (struct target_ops) <to_disconnect>: Use
9853 TARGET_DEFAULT_NORETURN.
9854
9855 2014-02-19 Tom Tromey <tromey@redhat.com>
9856
9857 * record.c (record_stop): Unconditionally delegate.
9858 * target-delegates.c: Rebuild.
9859 * target.c (target_stop_recording): Unconditionally delegate.
9860 * target.h (struct target_ops) <to_stop_recording>: Use
9861 TARGET_DEFAULT_IGNORE.
9862
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target-delegates.c: Rebuild.
9866 * target.c (target_enable_btrace): Unconditionally delegate.
9867 * target.h (struct target_ops) <to_enable_btrace>: Use
9868 TARGET_DEFAULT_NORETURN.
9869
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target-delegates.c: Rebuild.
9873 * target.c (target_read_btrace): Unconditionally delegate.
9874 * target.h (struct target_ops) <to_read_btrace>: Use
9875 TARGET_DEFAULT_NORETURN.
9876
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target-delegates.c: Rebuild.
9880 * target.c (target_teardown_btrace): Unconditionally delegate.
9881 * target.h (struct target_ops) <to_teardown_btrace>: Use
9882 TARGET_DEFAULT_NORETURN.
9883
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9885
9886 * target-delegates.c: Rebuild.
9887 * target.c (target_disable_btrace): Unconditionally delegate.
9888 * target.h (struct target_ops) <to_disable_btrace>: Use
9889 TARGET_DEFAULT_NORETURN.
9890
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * target-delegates.c: Rebuild.
9894 * target.c (default_search_memory): New function.
9895 (simple_search_memory): Update comment.
9896 (target_search_memory): Unconditionally delegate.
9897 * target.h (struct target_ops) <to_search_memory>: Use
9898 TARGET_DEFAULT_FUNC.
9899
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * auxv.c (default_auxv_parse): No longer static.
9903 (target_auxv_parse): Unconditionally delegate.
9904 * auxv.h (default_auxv_parse): Declare.
9905 * target-delegates.c: Rebuild.
9906 * target.c: Include auxv.h.
9907 * target.h (struct target_ops) <to_auxv_parse>: Use
9908 TARGET_DEFAULT_FUNC.
9909
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9911
9912 * target-delegates.c: Rebuild.
9913 * target.c (target_memory_map): Unconditionally delegate.
9914 * target.h (struct target_ops) <to_memory_map>: Use
9915 TARGET_DEFAULT_RETURN.
9916
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target-delegates.c: Rebuild.
9920 * target.c (target_thread_alive): Unconditionally delegate.
9921 * target.h (struct target_ops) <to_thread_alive>: Use
9922 TARGET_DEFAULT_RETURN.
9923
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9925
9926 * target-delegates.c: Rebuild.
9927 * target.c (target_save_record): Unconditionally delegate.
9928 * target.h (struct target_ops) <to_save_record>: Use
9929 TARGET_DEFAULT_NORETURN.
9930
9931 2014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * target-delegates.c: Rebuild.
9934 * target.c (target_delete_record): Unconditionally delegate.
9935 * target.h (struct target_ops) <to_delete_record>: Use
9936 TARGET_DEFAULT_NORETURN.
9937
9938 2014-02-19 Tom Tromey <tromey@redhat.com>
9939
9940 * target-delegates.c: Rebuild.
9941 * target.c (target_record_is_replaying): Unconditionally
9942 delegate.
9943 * target.h (struct target_ops) <to_record_is_replaying>: Use
9944 TARGET_DEFAULT_RETURN.
9945
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * target-delegates.c: Rebuild.
9949 * target.c (target_goto_record_begin): Unconditionally delegate.
9950 * target.h (struct target_ops) <to_goto_record_begin>: Use
9951 TARGET_DEFAULT_NORETURN.
9952
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9954
9955 * target-delegates.c: Rebuild.
9956 * target.c (target_goto_record_end): Unconditionally delegate.
9957 * target.h (struct target_ops) <to_goto_record_end>: Use
9958 TARGET_DEFAULT_NORETURN.
9959
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9961
9962 * target-delegates.c: Rebuild.
9963 * target.c (target_goto_record): Unconditionally delegate.
9964 * target.h (struct target_ops) <to_goto_record>: Use
9965 TARGET_DEFAULT_NORETURN.
9966
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target-delegates.c: Rebuild.
9970 * target.c (target_insn_history): Unconditionally delegate.
9971 * target.h (struct target_ops) <to_insn_history>: Use
9972 TARGET_DEFAULT_NORETURN.
9973
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target-delegates.c: Rebuild.
9977 * target.c (target_insn_history_from): Unconditionally delegate.
9978 * target.h (struct target_ops) <to_insn_history_from>: Use
9979 TARGET_DEFAULT_NORETURN.
9980
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * target-delegates.c: Rebuild.
9984 * target.c (target_insn_history_range): Unconditionally delegate.
9985 * target.h (struct target_ops) <to_insn_history_range>: Use
9986 TARGET_DEFAULT_NORETURN.
9987
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9989
9990 * target-delegates.c: Rebuild.
9991 * target.c (target_call_history): Unconditionally delegate.
9992 * target.h (struct target_ops) <to_call_history>: Use
9993 TARGET_DEFAULT_NORETURN.
9994
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target-delegates.c: Rebuild.
9998 * target.c (target_call_history_from): Unconditionally delegate.
9999 * target.h (struct target_ops) <to_call_history_from>: Use
10000 TARGET_DEFAULT_NORETURN.
10001
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target-delegates.c: Rebuild.
10005 * target.c (target_call_history_range): Unconditionally delegate.
10006 * target.h (struct target_ops) <to_call_history_range>: Use
10007 TARGET_DEFAULT_NORETURN.
10008
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10010
10011 * target-delegates.c: Rebuild.
10012 * target.c (target_verify_memory): Unconditionally delegate.
10013 * target.h (struct target_ops) <to_verify_memory>: Use
10014 TARGET_DEFAULT_NORETURN.
10015
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10017
10018 * target-delegates.c: Rebuild.
10019 * target.c (target_core_of_thread): Unconditionally delegate.
10020 * target.h (struct target_ops) <to_core_of_thread>: Use
10021 TARGET_DEFAULT_RETURN.
10022
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10024
10025 * target-delegates.c: Rebuild.
10026 * target.c (target_flash_done): Unconditionally delegate.
10027 * target.h (struct target_ops) <to_flash_done>: Use
10028 TARGET_DEFAULT_NORETURN.
10029
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * target-delegates.c: Rebuild.
10033 * target.c (target_flash_erase): Unconditionally delegate.
10034 * target.h (struct target_ops) <to_flash_erase>: Use
10035 TARGET_DEFAULT_NORETURN.
10036
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10038
10039 * target-delegates.c: Rebuild.
10040 * target.c (target_get_section_table): Unconditionally delegate.
10041 * target.h (struct target_ops) <to_get_section_table>: Use
10042 TARGET_DEFAULT_RETURN.
10043
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10045
10046 * target-delegates.c: Rebuild.
10047 * target.c (target_pid_to_str): Unconditionally delegate.
10048 (init_dummy_target): Don't initialize to_pid_to_str.
10049 (default_pid_to_str): Rename from dummy_pid_to_str.
10050 * target.h (struct target_ops) <to_pid_to_str>: Use
10051 TARGET_DEFAULT_FUNC.
10052
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10054
10055 * target-delegates.c: Rebuild.
10056 * target.c (target_find_new_threads): Unconditionally delegate.
10057 * target.h (struct target_ops) <to_find_new_threads>: Use
10058 TARGET_DEFAULT_RETURN.
10059
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target-delegates.c: Rebuild.
10063 * target.c (target_program_signals): Unconditionally delegate.
10064 * target.h (struct target_ops) <to_program_signals>: Use
10065 TARGET_DEFAULT_IGNORE.
10066
10067 2014-02-19 Tom Tromey <tromey@redhat.com>
10068
10069 * target-delegates.c: Rebuild.
10070 * target.c (target_pass_signals): Unconditionally delegate.
10071 * target.h (struct target_ops) <to_pass_signals>: Use
10072 TARGET_DEFAULT_IGNORE.
10073
10074 2014-02-19 Tom Tromey <tromey@redhat.com>
10075
10076 * target-delegates.c: Rebuild.
10077 * target.c (default_mourn_inferior): New function.
10078 (target_mourn_inferior): Unconditionally delegate.
10079 * target.h (struct target_ops) <to_mourn_inferior>: Use
10080 TARGET_DEFAULT_FUNC.
10081
10082 2014-02-19 Tom Tromey <tromey@redhat.com>
10083
10084 * target-delegates.c: Rebuild.
10085 * target.c (default_follow_fork): New function.
10086 (target_follow_fork): Unconditionally delegate.
10087 * target.h (struct target_ops) <to_follow_fork>: Use
10088 TARGET_DEFAULT_FUNC.
10089
10090 2014-02-19 Tom Tromey <tromey@redhat.com>
10091
10092 * target-delegates.c: Rebuild.
10093 * target.c (target_kill): Unconditionally delegate.
10094 * target.h (struct target_ops) <to_kill>: Use
10095 TARGET_DEFAULT_NORETURN.
10096
10097 2014-02-19 Tom Tromey <tromey@redhat.com>
10098
10099 * target-delegates.c: Rebuild.
10100 * target.c (target_masked_watch_num_registers): Unconditionally
10101 delegate.
10102 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10103 Use TARGET_DEFAULT_RETURN.
10104
10105 2014-02-19 Tom Tromey <tromey@redhat.com>
10106
10107 * target-delegates.c: Rebuild.
10108 * target.c (target_remove_mask_watchpoint): Unconditionally
10109 delegate.
10110 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10111 TARGET_DEFAULT_RETURN.
10112
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10114
10115 * target-delegates.c: Rebuild.
10116 * target.c (target_insert_mask_watchpoint): Unconditionally
10117 delegate.
10118 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10119 TARGET_DEFAULT_RETURN.
10120
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target-delegates.c: Rebuild.
10124 * target.c (target_ranged_break_num_registers): Unconditionally
10125 delegate.
10126 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10127 Use TARGET_DEFAULT_RETURN.
10128
10129 2014-02-19 Tom Tromey <tromey@redhat.com>
10130
10131 * target-delegates.c: Rebuild.
10132 * target.c (target_fetch_registers): Unconditionally delegate.
10133 * target.h (struct target_ops) <to_fetch_registers>: 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_stop.
10141 * target.h (struct target_ops) <to_stop>: Use
10142 TARGET_DEFAULT_IGNORE.
10143
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * target-delegates.c: Rebuild.
10147 * target.c (update_current_target): Don't inherit or default
10148 to_can_run_breakpoint_commands.
10149 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10150 Use TARGET_DEFAULT_RETURN.
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_supports_evaluation_of_breakpoint_conditions.
10157 * target.h (struct target_ops)
10158 <to_supports_evaluation_of_breakpoint_conditions>: Use
10159 TARGET_DEFAULT_RETURN.
10160
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10162
10163 * target-delegates.c: Rebuild.
10164 * target.c (update_current_target): Don't inherit or default
10165 to_augmented_libraries_svr4_read.
10166 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10167 Use TARGET_DEFAULT_RETURN.
10168
10169 2014-02-19 Tom Tromey <tromey@redhat.com>
10170
10171 * target-delegates.c: Rebuild.
10172 * target.c (update_current_target): Don't inherit or default
10173 to_can_use_agent.
10174 * target.h (struct target_ops) <to_can_use_agent>: Use
10175 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_use_agent.
10182 * target.h (struct target_ops) <to_use_agent>: 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_traceframe_info.
10190 (return_null): Remove.
10191 * target.h (struct target_ops) <to_traceframe_info>: Use
10192 TARGET_DEFAULT_RETURN.
10193
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10195
10196 * target-delegates.c: Rebuild.
10197 * target.c (update_current_target): Don't inherit or default
10198 to_static_tracepoint_markers_by_strid.
10199 * target.h (struct target_ops)
10200 <to_static_tracepoint_markers_by_strid>: Use
10201 TARGET_DEFAULT_NORETURN.
10202
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10204
10205 * target-delegates.c: Rebuild.
10206 * target.c (update_current_target): Don't inherit or default
10207 to_static_tracepoint_marker_at.
10208 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10209 Use TARGET_DEFAULT_RETURN.
10210
10211 2014-02-19 Tom Tromey <tromey@redhat.com>
10212
10213 * target-delegates.c: Rebuild.
10214 * target.c (update_current_target): Don't inherit or default
10215 to_set_permissions.
10216 * target.h (struct target_ops) <to_set_permissions>: Use
10217 TARGET_DEFAULT_IGNORE.
10218
10219 2014-02-19 Tom Tromey <tromey@redhat.com>
10220
10221 * target-delegates.c: Rebuild.
10222 * target.c (update_current_target): Don't inherit or default
10223 to_get_tib_address.
10224 * target.h (struct target_ops) <to_get_tib_address>: Use
10225 TARGET_DEFAULT_NORETURN.
10226
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * target-delegates.c: Rebuild.
10230 * target.c (update_current_target): Don't inherit or default
10231 to_set_trace_notes.
10232 * target.h (struct target_ops) <to_set_trace_notes>: Use
10233 TARGET_DEFAULT_RETURN.
10234
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target-delegates.c: Rebuild.
10238 * target.c (update_current_target): Don't initialize
10239 to_set_trace_buffer_size.
10240 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10241 TARGET_DEFAULT_IGNORE.
10242
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10244
10245 * target-delegates.c: Rebuild.
10246 * target.c (update_current_target): Don't inherit or default
10247 to_set_circular_trace_buffer.
10248 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10249 TARGET_DEFAULT_IGNORE.
10250
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10252
10253 * target-delegates.c: Rebuild.
10254 * target.c (update_current_target): Don't inherit or default
10255 to_set_disconnected_tracing.
10256 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10257 TARGET_DEFAULT_IGNORE.
10258
10259 2014-02-19 Tom Tromey <tromey@redhat.com>
10260
10261 * target-delegates.c: Rebuild.
10262 * target.c (update_current_target): Don't inherit or default
10263 to_get_min_fast_tracepoint_insn_len.
10264 (return_minus_one): Remove.
10265 * target.h (struct target_ops)
10266 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10267
10268 2014-02-19 Tom Tromey <tromey@redhat.com>
10269
10270 * target-delegates.c: Rebuild.
10271 * target.c (update_current_target): Don't inherit or default
10272 to_get_raw_trace_data.
10273 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10274 TARGET_DEFAULT_NORETURN.
10275
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10277
10278 * target-delegates.c: Rebuild.
10279 * target.c (update_current_target): Don't inherit or default
10280 to_upload_trace_state_variables.
10281 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10282 Use TARGET_DEFAULT_RETURN.
10283
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10285
10286 * target-delegates.c: Rebuild.
10287 * target.c (update_current_target): Don't inherit or default
10288 to_upload_tracepoints.
10289 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10290 TARGET_DEFAULT_RETURN.
10291
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10293
10294 * target-delegates.c: Rebuild.
10295 * target.c (update_current_target): Don't inherit or default
10296 to_save_trace_data.
10297 * target.h (struct target_ops) <to_save_trace_data>: Use
10298 TARGET_DEFAULT_NORETURN.
10299
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target-delegates.c: Rebuild.
10303 * target.c (update_current_target): Don't inherit or default
10304 to_get_trace_state_variable_value.
10305 * target.h (struct target_ops)
10306 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10307
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10309
10310 * target-delegates.c: Rebuild.
10311 * target.c (update_current_target): Don't inherit or default
10312 to_trace_find.
10313 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10314
10315 2014-02-19 Tom Tromey <tromey@redhat.com>
10316
10317 * target-delegates.c: Rebuild.
10318 * target.c (update_current_target): Don't inherit or default
10319 to_trace_stop.
10320 * target.h (struct target_ops) <to_trace_stop>: Use
10321 TARGET_DEFAULT_NORETURN.
10322
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10324
10325 * target-delegates.c: Rebuild.
10326 * target.c (update_current_target): Don't inherit or default
10327 to_get_tracepoint_status.
10328 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10329 TARGET_DEFAULT_NORETURN.
10330
10331 2014-02-19 Tom Tromey <tromey@redhat.com>
10332
10333 * target-delegates.c: Rebuild.
10334 * target.c (update_current_target): Don't inherit or default
10335 to_get_trace_status.
10336 * target.h (struct target_ops) <to_get_trace_status>: Use
10337 TARGET_DEFAULT_RETURN.
10338
10339 2014-02-19 Tom Tromey <tromey@redhat.com>
10340
10341 * target-delegates.c: Rebuild.
10342 * target.c (update_current_target): Don't inherit or default
10343 to_trace_start.
10344 * target.h (struct target_ops) <to_trace_start>: Use
10345 TARGET_DEFAULT_NORETURN.
10346
10347 2014-02-19 Tom Tromey <tromey@redhat.com>
10348
10349 * target-delegates.c: Rebuild.
10350 * target.c (update_current_target): Don't inherit or default
10351 to_trace_set_readonly_regions.
10352 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10353 Use TARGET_DEFAULT_NORETURN.
10354
10355 2014-02-19 Tom Tromey <tromey@redhat.com>
10356
10357 * target-delegates.c: Rebuild.
10358 * target.c (update_current_target): Don't inherit or default
10359 to_disable_tracepoint.
10360 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10361 TARGET_DEFAULT_NORETURN.
10362
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10364
10365 * target-delegates.c: Rebuild.
10366 * target.c (update_current_target): Don't inherit or default
10367 to_enable_tracepoint.
10368 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10369 TARGET_DEFAULT_NORETURN.
10370
10371 2014-02-19 Tom Tromey <tromey@redhat.com>
10372
10373 * target-delegates.c: Rebuild.
10374 * target.c (update_current_target): Don't inherit or default
10375 to_download_trace_state_variable.
10376 * target.h (struct target_ops) <to_download_trace_state_variable>:
10377 Use TARGET_DEFAULT_NORETURN.
10378
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10380
10381 * target-delegates.c: Rebuild.
10382 * target.c (update_current_target): Don't inherit or default
10383 to_can_download_tracepoint.
10384 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10385 TARGET_DEFAULT_RETURN.
10386
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10388
10389 * target-delegates.c: Rebuild.
10390 * target.c (update_current_target): Don't inherit or default
10391 to_download_tracepoint.
10392 * target.h (struct target_ops) <to_download_tracepoint>: Use
10393 TARGET_DEFAULT_NORETURN.
10394
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target-delegates.c: Rebuild.
10398 * target.c (update_current_target): Don't inherit or default
10399 to_trace_init.
10400 * target.h (struct target_ops) <to_trace_init>: Use
10401 TARGET_DEFAULT_RETURN.
10402
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target-delegates.c: Rebuild.
10406 * target.c (update_current_target): Don't inherit or default
10407 to_supports_string_tracing.
10408 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10409 TARGET_DEFAULT_RETURN.
10410
10411 2014-02-19 Tom Tromey <tromey@redhat.com>
10412
10413 * target-delegates.c: Rebuild.
10414 * target.c (update_current_target): Don't inherit or default
10415 to_supports_enable_disable_tracepoint.
10416 * target.h (struct target_ops)
10417 <to_supports_enable_disable_tracepoint>: Use
10418 TARGET_DEFAULT_RETURN.
10419
10420 2014-02-19 Tom Tromey <tromey@redhat.com>
10421
10422 * target-delegates.c: Rebuild.
10423 * target.c (update_current_target): Don't inherit or default
10424 to_supports_multi_process.
10425 * target.h (struct target_ops) <to_supports_multi_process>: Use
10426 TARGET_DEFAULT_RETURN.
10427
10428 2014-02-19 Tom Tromey <tromey@redhat.com>
10429
10430 * target-delegates.c: Rebuild.
10431 * target.c (update_current_target): Don't inherit or default
10432 to_get_ada_task_ptid.
10433 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10434 TARGET_DEFAULT_FUNC.
10435
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target-delegates.c: Rebuild.
10439 * target.c (update_current_target): Don't inherit or default
10440 to_thread_architecture.
10441 * target.h (struct target_ops) <to_thread_architecture>: Use
10442 TARGET_DEFAULT_FUNC.
10443
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10445
10446 * target-delegates.c: Rebuild.
10447 * target.c (update_current_target): Don't inherit or default
10448 to_execution_direction.
10449 * target.h (struct target_ops) <to_execution_direction>: Use
10450 TARGET_DEFAULT_FUNC.
10451
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * target-delegates.c: Rebuild.
10455 * target.c (update_current_target): Don't inherit or default
10456 to_can_execute_reverse.
10457 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10458 TARGET_DEFAULT_RETURN.
10459 (target_can_execute_reverse): Unconditionally delegate.
10460
10461 2014-02-19 Tom Tromey <tromey@redhat.com>
10462
10463 * target-delegates.c: Rebuild.
10464 * target.c (update_current_target): Don't inherit or default
10465 to_goto_bookmark.
10466 (dummy_goto_bookmark): Remove.
10467 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10468 * target.h (struct target_ops) <to_goto_bookmark>: Use
10469 TARGET_DEFAULT_NORETURN.
10470
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10472
10473 * target-delegates.c: Rebuild.
10474 * target.c (update_current_target): Don't inherit or default
10475 to_get_bookmark.
10476 (dummy_get_bookmark): Remove.
10477 (init_dummy_target): Don't inherit or default to_get_bookmark.
10478 * target.h (struct target_ops) <to_get_bookmark>: Use
10479 TARGET_DEFAULT_NORETURN
10480
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target-delegates.c: Rebuild.
10484 * target.c (update_current_target): Don't inherit or default
10485 to_make_corefile_notes.
10486 (init_dummy_target): Don't initialize to_make_corefile_notes.
10487 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10488 TARGET_DEFAULT_FUNC.
10489
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_find_memory_regions.
10495 (init_dummy_target): Don't initialize to_find_memory_regions.
10496 * target.h (struct target_ops) <to_find_memory_regions>: Use
10497 TARGET_DEFAULT_FUNC.
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_log_command.
10504 * target.h (struct target_ops) <to_log_command>: Use
10505 TARGET_DEFAULT_IGNORE.
10506 (target_log_command): Unconditionally delegate.
10507
10508 2014-02-19 Tom Tromey <tromey@redhat.com>
10509
10510 * target-delegates.c: Rebuild.
10511 * target.c (update_current_target): Don't inherit or default
10512 to_pid_to_exec_file.
10513 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10514 TARGET_DEFAULT_RETURN.
10515
10516 2014-02-19 Tom Tromey <tromey@redhat.com>
10517
10518 * target-delegates.c: Rebuild.
10519 * target.c (update_current_target): Don't inherit or default
10520 to_thread_name.
10521 (target_thread_name): Unconditionally delegate.
10522 * target.h (struct target_ops) <to_thread_name>: Use
10523 TARGET_DEFAULT_RETURN.
10524
10525 2014-02-19 Tom Tromey <tromey@redhat.com>
10526
10527 * target-delegates.c: Rebuild.
10528 * target.c (update_current_target): Don't inherit or default
10529 to_extra_thread_info.
10530 * target.h (struct target_ops) <to_extra_thread_info>: Use
10531 TARGET_DEFAULT_RETURN.
10532
10533 2014-02-19 Tom Tromey <tromey@redhat.com>
10534
10535 * target-delegates.c: Rebuild.
10536 * target.c (update_current_target): Don't inherit or default
10537 to_has_exited.
10538 * target.h (struct target_ops) <to_has_exited>: Use
10539 TARGET_DEFAULT_RETURN..
10540
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10542
10543 * target-delegates.c: Rebuild.
10544 * target.c (update_current_target): Don't inherit or default
10545 to_set_syscall_catchpoint.
10546 (return_one): Remove.
10547 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10548 TARGET_DEFAULT_RETURN.
10549
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10551
10552 * target-delegates.c: Rebuild.
10553 * target.c (update_current_target): Don't inherit or default
10554 to_insert_exec_catchpoint.
10555 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10556 TARGET_DEFAULT_RETURN.
10557
10558 2014-01-08 Tom Tromey <tromey@redhat.com>
10559
10560 * target-delegates.c: Rebuild.
10561 * target.c (update_current_target): Don't inherit or default
10562 to_insert_exec_catchpoint.
10563 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10564 TARGET_DEFAULT_RETURN.
10565
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target-delegates.c: Rebuild.
10569 * target.c (update_current_target): Don't inherit or default
10570 to_remove_vfork_catchpoint.
10571 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10572 TARGET_DEFAULT_RETURN.
10573
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10575
10576 * target-delegates.c: Rebuild.
10577 * target.c (update_current_target): Don't inherit or default
10578 to_insert_vfork_catchpoint.
10579 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10580 TARGET_DEFAULT_RETURN.
10581
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10583
10584 * target-delegates.c: Rebuild.
10585 * target.c (update_current_target): Don't inherit or default
10586 to_remove_fork_catchpoint.
10587 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10588 TARGET_DEFAULT_RETURN.
10589
10590 2014-02-19 Tom Tromey <tromey@redhat.com>
10591
10592 * target-delegates.c: Rebuild.
10593 * target.c (update_current_target): Don't inherit or default
10594 to_insert_fork_catchpoint.
10595 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10596 TARGET_DEFAULT_RETURN.
10597
10598 2014-02-19 Tom Tromey <tromey@redhat.com>
10599
10600 * target-delegates.c: Rebuild.
10601 * target.c (update_current_target): Don't inherit or default
10602 to_post_startup_inferior.
10603 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10604 TARGET_DEFAULT_IGNORE.
10605
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10607
10608 * target-delegates.c: Rebuild.
10609 * target.c (update_current_target): Don't inherit or default
10610 to_load.
10611 * target.h (struct target_ops) <to_load>: Use
10612 TARGET_DEFAULT_NORETURN.
10613
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10615
10616 * target-delegates.c: Rebuild.
10617 * target.c (update_current_target): Don't inherit or default
10618 to_terminal_info.
10619 * target.h (struct target_ops) <to_terminal_info>: Use
10620 TARGET_DEFAULT_FUNC.
10621
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10623
10624 * target-delegates.c: Rebuild.
10625 * target.c (update_current_target): Don't inherit or default
10626 to_terminal_save_ours.
10627 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10628 TARGET_DEFAULT_IGNORE.
10629
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10631
10632 * target-delegates.c: Rebuild.
10633 * target.c (update_current_target): Don't inherit or default
10634 to_terminal_ours.
10635 * target.h (struct target_ops) <to_terminal_ours>: Use
10636 TARGET_DEFAULT_IGNORE.
10637
10638 2014-02-19 Tom Tromey <tromey@redhat.com>
10639
10640 * target-delegates.c: Rebuild.
10641 * target.c (update_current_target): Don't inherit or default
10642 to_terminal_ours_for_output.
10643 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10644 TARGET_DEFAULT_IGNORE.
10645
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10647
10648 * target-delegates.c: Rebuild.
10649 * target.c (update_current_target): Don't inherit or default
10650 to_terminal_inferior.
10651 * target.h (struct target_ops) <to_terminal_inferior>: Use
10652 TARGET_DEFAULT_IGNORE.
10653
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10655
10656 * target-delegates.c: Rebuild.
10657 * target.c (update_current_target): Don't inherit or default
10658 to_terminal_init.
10659 * target.h (struct target_ops) <to_terminal_init>: Use
10660 TARGET_DEFAULT_IGNORE.
10661
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * target-delegates.c: Rebuild.
10665 * target.c (update_current_target): Don't inherit or default
10666 to_can_accel_watchpoint_condition.
10667 * target.h (struct target_ops)
10668 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10669
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10671
10672 * target-delegates.c: Rebuild.
10673 * target.c (update_current_target): Don't inherit or default
10674 to_region_ok_for_hw_watchpoint.
10675 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10676 Use TARGET_DEFAULT_FUNC.
10677
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * target-delegates.c: Rebuild.
10681 * target.c (update_current_target): Don't inherit or default
10682 to_watchpoint_addr_within_range.
10683 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10684 Use TARGET_DEFAULT_FUNC.
10685
10686 2014-02-19 Tom Tromey <tromey@redhat.com>
10687
10688 * target-delegates.c: Rebuild.
10689 * target.c (update_current_target): Don't inherit or default
10690 to_remove_watchpoint.
10691 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10692 TARGET_DEFAULT_NORETURN.
10693
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10698 to_insert_watchpoint.
10699 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10700 TARGET_DEFAULT_RETURN.
10701
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10703
10704 * target-delegates.c: Rebuild.
10705 * target.c (update_current_target): Don't inherit or default
10706 to_remove_hw_breakpoint.
10707 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10708 TARGET_DEFAULT_RETURN.
10709
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target-delegates.c: Rebuild.
10713 * target.c (update_current_target): Don't inherit or default
10714 to_insert_hw_breakpoint.
10715 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10716 TARGET_DEFAULT_RETURN.
10717
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target-delegates.c: Rebuild.
10721 * target.c (update_current_target): Don't inherit or default
10722 to_can_use_hw_breakpoint.
10723 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10724 TARGET_DEFAULT_RETURN.
10725
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * target-delegates.c: Rebuild.
10729 * target.c (update_current_target): Don't inherit or default
10730 to_files_info.
10731 * target.h (struct target_ops) <to_files_info>: Use
10732 TARGET_DEFAULT_IGNORE.
10733
10734 2014-02-19 Tom Tromey <tromey@redhat.com>
10735
10736 * target-delegates.c: Rebuild.
10737 * target.c (update_current_target): Don't inherit or default
10738 to_store.
10739 * target.h (struct target_ops) <to_store>: Use
10740 TARGET_DEFAULT_NORETURN.
10741
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * target-delegates.c: Rebuild.
10745 * target.c (update_current_target): Don't inherit or default
10746 to_post_attach.
10747 * target.h (struct target_ops) <to_post_attach>: Use
10748 TARGET_DEFAULT_IGNORE.
10749
10750 2014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * target-delegates.c: Rebuild.
10753 * target.c (update_current_target): Don't inherit or default
10754 to_rcmd.
10755 (default_rcmd): New function.
10756 (do_monitor_command): Unconditionally delegate.
10757 * target.h (struct target_ops) <to_rmcd>: Use
10758 TARGET_DEFAULT_FUNC.
10759
10760 2014-02-19 Tom Tromey <tromey@redhat.com>
10761
10762 * target-delegates.c: Rebuild.
10763 * target.c (init_dummy_target): Don't initialize to_attach.
10764 (target_attach): Unconditionally delegate.
10765 * target.h (struct target_ops) <to_attach>: Use
10766 TARGET_DEFAULT_FUNC.
10767
10768 2014-02-19 Tom Tromey <tromey@redhat.com>
10769
10770 * target-delegates.c: Rebuild.
10771 * target.c (target_detach): Unconditionally delegate.
10772 (init_dummy_target): Don't initialize to_detach.
10773 * target.h (struct target_ops) <to_detach>: Use
10774 TARGET_DEFAULT_IGNORE.
10775
10776 2014-02-19 Tom Tromey <tromey@redhat.com>
10777
10778 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10779 Add argument.
10780 (target_augmented_libraries_svr4_read): Add argument.
10781 * target.c (update_current_target): Update.
10782 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10783 argument.
10784
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10786
10787 * target.h (struct target_ops) <to_call_history_range>: Add
10788 argument.
10789 * target.c (target_call_history_range): Add argument.
10790 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10791 argument.
10792 (record_btrace_call_history_from): Update.
10793
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10795
10796 * target.h (struct target_ops) <to_call_history_from>: Add
10797 argument.
10798 * target.c (target_call_history_from): Add argument.
10799 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10800 argument.
10801
10802 2014-02-19 Tom Tromey <tromey@redhat.com>
10803
10804 * target.h (struct target_ops) <to_call_history>: Add argument.
10805 * target.c (target_call_history): Add argument.
10806 * record-btrace.c (record_btrace_call_history): Add 'self'
10807 argument.
10808
10809 2014-02-19 Tom Tromey <tromey@redhat.com>
10810
10811 * target.h (struct target_ops) <to_insn_history_range>: Add
10812 argument.
10813 * target.c (target_insn_history_range): Add argument.
10814 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10815 argument.
10816 (record_btrace_insn_history_from): Update.
10817
10818 2014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target.h (struct target_ops) <to_insn_history_from>: Add
10821 argument.
10822 * target.c (target_insn_history_from): Add argument.
10823 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10824 argument.
10825
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target.h (struct target_ops) <to_insn_history>: Add argument.
10829 * target.c (target_insn_history): Add argument.
10830 * record-btrace.c (record_btrace_insn_history): Add 'self'
10831 argument.
10832
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target.h (struct target_ops) <to_goto_record>: Add argument.
10836 * target.c (target_goto_record): Add argument.
10837 * record-full.c (record_full_goto): Add 'self' argument.
10838 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10839
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10841
10842 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10843 * target.c (target_goto_record_end): Add argument.
10844 * record-full.c (record_full_goto_end): Add 'self' argument.
10845 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10846
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10848
10849 * target.h (struct target_ops) <to_goto_record_begin>: Add
10850 argument.
10851 * target.c (target_goto_record_begin): Add argument.
10852 * record-full.c (record_full_goto_begin): Add 'self' argument.
10853 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10854 argument.
10855
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target.h (struct target_ops) <to_record_is_replaying>: Add
10859 argument.
10860 * target.c (target_record_is_replaying): Add argument.
10861 * record-full.c (record_full_is_replaying): Add 'self' argument.
10862 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10863 argument.
10864 (record_btrace_xfer_partial, record_btrace_store_registers)
10865 (record_btrace_prepare_to_store, record_btrace_resume)
10866 (record_btrace_wait, record_btrace_decr_pc_after_break)
10867 (record_btrace_find_new_threads, record_btrace_thread_alive):
10868 Update.
10869
10870 2014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target.h (struct target_ops) <to_delete_record>: Add argument.
10873 * target.c (target_delete_record): Add argument.
10874 * record-full.c (record_full_delete): Add 'self' argument.
10875
10876 2014-02-19 Tom Tromey <tromey@redhat.com>
10877
10878 * target.h (struct target_ops) <to_save_record>: Add argument.
10879 * target.c (target_save_record): Add argument.
10880 * record-full.c (record_full_save): Add 'self' argument.
10881 (record_full_save): Add 'self' argument.
10882
10883 2014-02-19 Tom Tromey <tromey@redhat.com>
10884
10885 * target.h (struct target_ops) <to_info_record>: Add argument.
10886 * target.c (target_info_record): Add argument.
10887 * record.c (info_record_command): Add argument.
10888 * record-full.c (record_full_info): Add 'self' argument.
10889 * record-btrace.c (record_btrace_info): Add 'self' argument.
10890
10891 2014-02-19 Tom Tromey <tromey@redhat.com>
10892
10893 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10894 * target.c (target_stop_recording): Add argument.
10895 * record.c (record_stop): Add argument.
10896 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10897 argument.
10898
10899 2014-02-19 Tom Tromey <tromey@redhat.com>
10900
10901 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10902 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10903 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10904 argument.
10905 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10906 (_initialize_amd64_linux_nat): Use it.
10907 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10908 (_initialize_i386_linux_nat): Use it.
10909
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10913 * target.c (target_teardown_btrace): Add argument.
10914 * remote.c (remote_teardown_btrace): Add 'self' argument.
10915 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10916 argument.
10917 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10918 argument.
10919
10920 2014-02-19 Tom Tromey <tromey@redhat.com>
10921
10922 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10923 * target.c (target_disable_btrace): Add argument.
10924 * remote.c (remote_disable_btrace): Add 'self' argument.
10925 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10926 argument.
10927 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10928 argument.
10929
10930 2014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10933 * target.c (target_enable_btrace): Add argument.
10934 * remote.c (remote_enable_btrace): Add 'self' argument.
10935 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10936 argument.
10937 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10938 argument.
10939
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10943 (target_can_use_agent): Add argument.
10944 * target.c (update_current_target): Update.
10945 * remote.c (remote_can_use_agent): Add 'self' argument.
10946 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10947
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * target.h (struct target_ops) <to_use_agent>: Add argument.
10951 (target_use_agent): Add argument.
10952 * target.c (update_current_target): Update.
10953 * remote.c (remote_use_agent): Add 'self' argument.
10954 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10955
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10957
10958 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10959 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10960 (target_traceframe_info): Add argument.
10961 * target.c (update_current_target): Update.
10962 * remote.c (remote_traceframe_info): Add 'self' argument.
10963 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10964
10965 2014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * target.h (target_static_tracepoint_markers_by_strid): Add
10968 argument.
10969 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10970 'self' argument.
10971 * target.c (update_current_target): Update.
10972 * remote.c (struct target_ops)
10973 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10974 * linux-nat.c (struct target_ops)
10975 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10976
10977 2014-02-19 Tom Tromey <tromey@redhat.com>
10978
10979 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10980 Add argument.
10981 (target_static_tracepoint_marker_at): Add argument.
10982 * target.c (update_current_target): Update.
10983 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10984 argument.
10985
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10989 (target_set_permissions): Add argument.
10990 * target.c (update_current_target): Update.
10991 * remote.c (remote_set_permissions): Add 'self' argument.
10992 (remote_start_remote): Update.
10993
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10997 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10998 (target_get_tib_address): Add argument.
10999 * target.c (update_current_target): Update.
11000 * remote.c (remote_get_tib_address): Add 'self' argument.
11001
11002 2014-02-19 Tom Tromey <tromey@redhat.com>
11003
11004 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11005 (target_set_trace_notes): Add argument.
11006 * target.c (update_current_target): Update.
11007 * remote.c (remote_set_trace_notes): Add 'self' argument.
11008
11009 2014-02-19 Tom Tromey <tromey@redhat.com>
11010
11011 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11012 argument.
11013 (target_set_trace_buffer_size): Add argument.
11014 * target.c (update_current_target): Update.
11015 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11016
11017 2014-02-19 Tom Tromey <tromey@redhat.com>
11018
11019 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11020 argument.
11021 (target_set_circular_trace_buffer): Add argument.
11022 * target.c (update_current_target): Update.
11023 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11024 argument.
11025
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11029 argument.
11030 (target_set_disconnected_tracing): Add argument.
11031 * target.c (update_current_target): Update.
11032 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11033
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * target.h (struct target_ops)
11037 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11038 (target_get_min_fast_tracepoint_insn_len): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11041 argument.
11042
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11044
11045 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11046 argument.
11047 (target_get_raw_trace_data): Add argument.
11048 * target.c (update_current_target): Update.
11049 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11050
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11052
11053 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11054 Add argument.
11055 (target_upload_trace_state_variables): Add argument.
11056 * target.c (update_current_target): Update.
11057 * remote.c (remote_upload_trace_state_variables): Add 'self'
11058 argument.
11059 (remote_start_remote): Update.
11060
11061 2014-02-19 Tom Tromey <tromey@redhat.com>
11062
11063 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11064 argument.
11065 (target_upload_tracepoints): Add argument.
11066 * target.c (update_current_target): Update.
11067 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11068 (remote_start_remote): Update.
11069
11070 2014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11073 (target_save_trace_data): Add argument.
11074 * target.c (update_current_target): Update.
11075 * remote.c (remote_save_trace_data): Add 'self' argument.
11076
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11078
11079 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11080 argument.
11081 * target.h (struct target_ops)
11082 <to_get_trace_state_variable_value>: Add argument.
11083 (target_get_trace_state_variable_value): Add argument.
11084 * target.c (update_current_target): Update.
11085 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11086 argument.
11087 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11088
11089 2014-02-19 Tom Tromey <tromey@redhat.com>
11090
11091 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11092 * target.h (struct target_ops) <to_trace_find>: Add argument.
11093 (target_trace_find): Add argument.
11094 * target.c (update_current_target): Update.
11095 * remote.c (remote_trace_find): Add 'self' argument.
11096 * ctf.c (ctf_trace_find): Add 'self' argument.
11097
11098 2014-02-19 Tom Tromey <tromey@redhat.com>
11099
11100 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11101 (target_trace_stop): Add argument.
11102 * target.c (update_current_target): Update.
11103 * remote.c (remote_trace_stop): Add 'self' argument.
11104
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11108 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11109 argument.
11110 (target_get_tracepoint_status): Add argument.
11111 * target.c (update_current_target): Update.
11112 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11113
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11115
11116 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11117 * target.h (struct target_ops) <to_get_trace_status>: Add
11118 argument.
11119 (target_get_trace_status): Add argument.
11120 * target.c (update_current_target): Update.
11121 * remote.c (remote_get_trace_status): Add 'self' argument.
11122 (remote_start_remote, remote_can_download_tracepoint): Update.
11123 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11124
11125 2014-02-19 Tom Tromey <tromey@redhat.com>
11126
11127 * target.h (struct target_ops) <to_trace_start>: Add argument.
11128 (target_trace_start): Add argument.
11129 * target.c (update_current_target): Update.
11130 * remote.c (remote_trace_start): Add 'self' argument.
11131
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11133
11134 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11135 Add argument.
11136 (target_trace_set_readonly_regions): Add argument.
11137 * target.c (update_current_target): Update.
11138 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11139 argument.
11140
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11142
11143 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11144 argument.
11145 (target_disable_tracepoint): Add argument.
11146 * target.c (update_current_target): Update.
11147 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11148
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11152 argument.
11153 (target_enable_tracepoint): Add argument.
11154 * target.c (update_current_target): Update.
11155 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11156
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target.h (struct target_ops) <to_download_trace_state_variable>:
11160 Add argument.
11161 (target_download_trace_state_variable): Add argument.
11162 * target.c (update_current_target): Update.
11163 * remote.c (remote_download_trace_state_variable): Add 'self'
11164 argument.
11165
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11167
11168 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11169 argument.
11170 (target_can_download_tracepoint): Add argument.
11171 * target.c (update_current_target): Update.
11172 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11173
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11175
11176 * target.h (struct target_ops) <to_download_tracepoint>: Add
11177 argument.
11178 (target_download_tracepoint): Add argument.
11179 * target.c (update_current_target): Update.
11180 * remote.c (remote_download_tracepoint): Add 'self' argument.
11181
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11183
11184 * target.h (struct target_ops) <to_trace_init>: Add argument.
11185 (target_trace_init): Add argument.
11186 * target.c (update_current_target): Update.
11187 * remote.c (remote_trace_init): Add 'self' argument.
11188
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11190
11191 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11192 * target.c (target_fileio_readlink): Add argument.
11193 * remote.c (remote_hostio_readlink): Add 'self' argument.
11194 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11195
11196 2014-02-19 Tom Tromey <tromey@redhat.com>
11197
11198 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11199 * target.c (target_fileio_unlink): Add argument.
11200 * remote.c (remote_hostio_unlink): Add 'self' argument.
11201 (remote_file_delete): Update.
11202 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11203
11204 2014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11207 * target.c (target_fileio_close): Add argument.
11208 * remote.c (remote_hostio_close): Add 'self' argument.
11209 (remote_hostio_close_cleanup): Update.
11210 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11211 Update.
11212 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11213
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11215
11216 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11217 * target.c (target_fileio_pread): Add argument.
11218 * remote.c (remote_hostio_pread): Add 'self' argument.
11219 (remote_bfd_iovec_pread, remote_file_get): Update.
11220 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11221
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11225 * target.c (target_fileio_pwrite): Add argument.
11226 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11227 (remote_file_put): Update.
11228 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11229
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11233 * target.c (target_fileio_open): Add argument.
11234 * remote.c (remote_hostio_open): Add 'self' argument.
11235 (remote_bfd_iovec_open): Add 'self' argument.
11236 (remote_file_put): Add 'self' argument.
11237 (remote_file_get): Add 'self' argument.
11238 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11239
11240 2014-02-19 Tom Tromey <tromey@redhat.com>
11241
11242 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11243 Add argument.
11244 (target_can_run_breakpoint_commands): Add argument.
11245 * target.c (update_current_target): Update.
11246 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11247 argument.
11248 (remote_insert_breakpoint): Add 'self' argument.
11249 (remote_insert_hw_breakpoint): Add 'self' argument.
11250 (remote_can_run_breakpoint_commands): Add 'self' argument.
11251
11252 2014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * target.h (struct target_ops)
11255 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11256 (target_supports_evaluation_of_breakpoint_conditions): Add
11257 argument.
11258 * target.c (update_current_target): Update.
11259 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11260 argument.
11261 (remote_insert_breakpoint): Add 'self' argument.
11262 (remote_insert_hw_breakpoint): Add 'self' argument.
11263 (remote_supports_cond_breakpoints): Add 'self' argument.
11264
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11266
11267 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11268 argument.
11269 (target_supports_string_tracing): Add argument.
11270 * target.c (update_current_target): Update.
11271 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11272
11273 2014-02-19 Tom Tromey <tromey@redhat.com>
11274
11275 * target.h (struct target_ops)
11276 <to_supports_disable_randomization>: Add argument.
11277 * target.c (find_default_supports_disable_randomization): Add
11278 argument.
11279 (target_supports_disable_randomization): Add argument.
11280 (find_default_supports_disable_randomization): Add 'self'
11281 argument.
11282 * remote.c (extended_remote_supports_disable_randomization): Add
11283 'self' argument.
11284 (remote_supports_disable_randomization): Add 'self' argument.
11285 (extended_remote_create_inferior): Update.
11286 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11287 'self' argument.
11288
11289 2014-02-19 Tom Tromey <tromey@redhat.com>
11290
11291 * target.h (struct target_ops)
11292 <to_supports_enable_disable_tracepoint>: Add argument.
11293 (target_supports_enable_disable_tracepoint): Add argument.
11294 * target.c (update_current_target): Update.
11295 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11296 argument.
11297
11298 2014-02-19 Tom Tromey <tromey@redhat.com>
11299
11300 * target.h (struct target_ops) <to_supports_multi_process>: Add
11301 argument.
11302 (target_supports_multi_process): Add argument.
11303 * target.c (update_current_target): Update.
11304 * remote.c (remote_supports_multi_process): Add 'self' argument.
11305 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11306 argument.
11307 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11308 argument.
11309
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target.h (struct target_ops) <to_execution_direction>: Add
11313 argument.
11314 (target_execution_direction): Add argument.
11315 * target.c (default_execution_direction): Add 'self' argument.
11316 * record-full.c (record_full_execution_direction): Add 'self'
11317 argument.
11318
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11322 argument.
11323 (target_can_execute_reverse): Add argument.
11324 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11325 * record-full.c (record_full_can_execute_reverse): Add 'self'
11326 argument.
11327 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11328 argument.
11329
11330 2014-02-19 Tom Tromey <tromey@redhat.com>
11331
11332 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11333 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11334 argument.
11335 (target_get_ada_task_ptid): Add argument.
11336 * target.c (update_current_target): Update.
11337 (default_get_ada_task_ptid): Add 'self' argument.
11338 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11339 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11340 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11341 argument.
11342 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11343 argument.
11344 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11345 argument.
11346 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11347 argument.
11348 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11349 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11350 argument.
11351
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11355 (target_goto_bookmark): Add argument.
11356 * target.c (dummy_goto_bookmark): Add 'self' argument.
11357 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11358
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11362 (target_get_bookmark): Add argument.
11363 * target.c (dummy_get_bookmark): Add 'self' argument.
11364 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11365
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11367
11368 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11369 argument.
11370 (target_make_corefile_notes): Add argument.
11371 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11372 * procfs.c (procfs_make_note_section): Add 'self' argument.
11373 (procfs_make_note_section): Add 'self' argument.
11374 (procfs_make_note_section): Add 'self' argument.
11375 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11376 argument.
11377 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11378 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11379 * exec.c (exec_make_note_section): Add 'self' argument.
11380 (exec_make_note_section): Add 'self' argument.
11381
11382 2014-02-19 Tom Tromey <tromey@redhat.com>
11383
11384 * target.h (struct target_ops) <to_find_memory_regions>: Add
11385 argument.
11386 (target_find_memory_regions): Add argument.
11387 * target.c (dummy_find_memory_regions): Add 'self' argument.
11388 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11389 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11390 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11391 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11392 * exec. (exec_do_find_memory_regions): New global.
11393 (exec_set_find_memory_regions): Rewrite.
11394 (exec_find_memory_regions): New function.
11395 (init_exec_ops): Use exec_find_memory_regions.
11396
11397 2014-02-19 Tom Tromey <tromey@redhat.com>
11398
11399 * target.h (struct target_ops) <to_supports_non_stop>: Add
11400 argument.
11401 * target.c (find_default_supports_non_stop): Add argument.
11402 (target_supports_non_stop): Add argument.
11403 (find_default_supports_non_stop): Add 'self' argument.
11404 * remote.c (remote_supports_non_stop): Add 'self' argument.
11405 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11406
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target.h (struct target_ops) <to_log_command>: Add argument.
11410 (target_log_command): Add argument.
11411 * serial.h (serial_log_command): Add 'self' argument.
11412 * serial.c (serial_log_command): Add 'self' argument.
11413
11414 2014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11417 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11418 argument.
11419 (target_pid_to_exec_file): Add argument.
11420 * target.c (debug_to_pid_to_exec_file): Add argument.
11421 (update_current_target): Update.
11422 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11423 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11424 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11425 (linux_handle_extended_wait): Update.
11426 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11427 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11428 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11429 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11430
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target.h (struct target_ops) <to_rcmd>: Add argument.
11434 (target_rcmd): Add argument.
11435 * target.c (debug_to_rcmd): Add argument.
11436 (update_current_target, do_monitor_command): Update.
11437 * remote.c (remote_rcmd): Add 'self' argument.
11438 * monitor.c (monitor_rcmd): Add 'self' argument.
11439
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * windows-nat.c (windows_stop): Add 'self' argument.
11443 * target.h (struct target_ops) <to_stop>: Add argument.
11444 * target.c (target_stop): Add argument.
11445 (debug_to_stop): Add argument.
11446 (update_current_target): Update.
11447 * remote.c (remote_stop): Add 'self' argument.
11448 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11449 (gdbsim_cntrl_c): Update.
11450 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11451 * procfs.c (procfs_stop): Add 'self' argument.
11452 * nto-procfs.c (procfs_stop): Add 'self' argument.
11453 * monitor.c (monitor_stop): Add 'self' argument.
11454 (monitor_open): Update.
11455 * linux-nat.c (linux_nat_stop): Add argument.
11456 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11457 * gnu-nat.c (gnu_stop): Add 'self' argument.
11458 * darwin-nat.c (darwin_stop): Add 'self' argument.
11459
11460 2014-02-19 Tom Tromey <tromey@redhat.com>
11461
11462 * target.h (struct target_ops) <to_thread_name>: Add argument.
11463 * target.c (target_thread_name): Add argument.
11464 (update_current_target): Update.
11465 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11466
11467 2014-02-19 Tom Tromey <tromey@redhat.com>
11468
11469 * target.h (struct target_ops) <to_extra_thread_info>: Add
11470 argument.
11471 (target_extra_thread_info): Add argument.
11472 * target.c (update_current_target): Update.
11473 * remote.c (remote_threads_extra_info): Add 'self' argument.
11474 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11475 argument.
11476 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11477 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11478 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11479 argument.
11480 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11481 argument.
11482 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11483 argument.
11484 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11485 argument.
11486
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target.h (struct target_ops) <to_program_signals>: Add argument.
11490 * target.c (target_program_signals): Add argument.
11491 * remote.c (remote_program_signals): Add 'self' argument.
11492
11493 2014-02-19 Tom Tromey <tromey@redhat.com>
11494
11495 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11496 * target.c (target_pass_signals): Add argument.
11497 * remote.c (remote_pass_signals): Add 'self' argument.
11498 (remote_start_remote): Update.
11499 * procfs.c (procfs_pass_signals): Add 'self' argument.
11500 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11501 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11502 (linux_nat_create_inferior, linux_nat_attach): Update.
11503
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * windows-nat.c (windows_can_run): Add 'self' argument.
11507 * target.h (struct target_ops) <to_can_run>: Add argument.
11508 (target_can_run): Add argument.
11509 * target.c (debug_to_can_run): Add argument.
11510 (update_current_target): Update.
11511 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11512 * inf-child.c (inf_child_can_run): Add 'self' argument.
11513 * go32-nat.c (go32_can_run): Add 'self' argument.
11514
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target.h (struct target_ops) <to_has_exited>: Add argument.
11518 (target_has_exited): Add argument.
11519 * target.c (debug_to_has_exited): Add argument.
11520 (update_current_target): Update.
11521
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11525 argument.
11526 (target_set_syscall_catchpoint): Add argument.
11527 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11528 argument.
11529 * target.c (update_current_target): Update.
11530
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11534 argument.
11535 (target_remove_exec_catchpoint): Add argument.
11536 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11537 (update_current_target): Update.
11538 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11539 argument.
11540
11541 2014-02-19 Tom Tromey <tromey@redhat.com>
11542
11543 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11544 argument.
11545 (target_insert_exec_catchpoint): Add argument.
11546 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11547 (update_current_target): Update.
11548 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11549 argument.
11550
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11552
11553 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11554 argument.
11555 (target_remove_vfork_catchpoint): Add argument.
11556 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11557 (update_current_target): Update.
11558 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11559 argument.
11560
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11564 argument.
11565 (target_insert_vfork_catchpoint): Add argument.
11566 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11567 (update_current_target): Update.
11568 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11569 argument.
11570
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11574 argument.
11575 (target_remove_fork_catchpoint): Add argument.
11576 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11577 (update_current_target): Update.
11578 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11579 argument.
11580
11581 2014-02-19 Tom Tromey <tromey@redhat.com>
11582
11583 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11584 argument.
11585 (target_insert_fork_catchpoint): Add argument.
11586 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11587 (update_current_target): Update.
11588 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11589 argument.
11590
11591 2014-02-19 Tom Tromey <tromey@redhat.com>
11592
11593 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11594 argument.
11595 (target_post_startup_inferior): Add argument.
11596 * target.c (debug_to_post_startup_inferior): Add argument.
11597 (update_current_target): Update.
11598 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11599 argument.
11600 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11601 argument.
11602 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11603 argument.
11604 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11605 argument.
11606 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11607 'self' argument.
11608 (super_post_startup_inferior): Likewise.
11609 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11610 'self' argument.
11611 (super_post_startup_inferior): Likewise.
11612 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11613 Add 'self' argument.
11614 (super_post_startup_inferior): Likewise.
11615
11616 2014-02-19 Tom Tromey <tromey@redhat.com>
11617
11618 * target.h (struct target_ops) <to_load>: Add argument.
11619 * target.c (target_load): Add argument.
11620 (debug_to_load): Add argument.
11621 (update_current_target): Update.
11622 * remote.c (remote_load): Add 'self' argument.
11623 * remote-sim.c (gdbsim_load): Add 'self' argument.
11624 * remote-mips.c (mips_load): Add 'self' argument.
11625 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11626 * monitor.c (monitor_load): Add 'self' argument.
11627 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11628
11629 2014-02-19 Tom Tromey <tromey@redhat.com>
11630
11631 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11632 (target_terminal_info): Add argument.
11633 * target.c (debug_to_terminal_info): Add argument.
11634 (default_terminal_info): Likewise.
11635 * inflow.c (child_terminal_info): Add 'self' argument.
11636 * inferior.h (child_terminal_info): Add 'self' argument.
11637 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11638
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11640
11641 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11642 argument.
11643 (target_terminal_save_ours): Add argument.
11644 * target.c (debug_to_terminal_save_ours): Add argument.
11645 (update_current_target): Update.
11646 * inflow.c (terminal_save_ours): Add 'self' argument.
11647 * inferior.h (terminal_save_ours): Add 'self' argument.
11648
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11650
11651 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11652 (target_terminal_ours): Add argument.
11653 * target.c (debug_to_terminal_ours): Add argument.
11654 (update_current_target): Update.
11655 * remote.c (remote_terminal_ours): Add 'self' argument.
11656 (remote_close): Update.
11657 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11658 * inflow.c (terminal_ours): Add 'self' argument.
11659 * inferior.h (terminal_ours): Add 'self' argument.
11660 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11661
11662 2014-02-19 Pedro Alves <palves@redhat.com>
11663 Tom Tromey <tromey@redhat.com>
11664
11665 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11666 argument.
11667 (target_terminal_ours_for_output): Add argument.
11668 * target.c (debug_to_terminal_ours_for_output): Add argument.
11669 (update_current_target): Update.
11670 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11671 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11672 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11673
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11675
11676 * target.h (struct target_ops) <to_terminal_inferior>: Add
11677 argument.
11678 * target.c (target_terminal_inferior): Add argument.
11679 (update_current_target): Update.
11680 * remote.c (remote_terminal_inferior): Add 'self' argument.
11681 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11682 * inflow.c (terminal_inferior): Add 'self' argument.
11683 * inferior.h (terminal_inferior): Add 'self' argument.
11684 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11685 (go32_terminal_inferior): Add 'self' argument.
11686
11687 2014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11690 (target_terminal_init): Add argument.
11691 * target.c (debug_to_terminal_init): Add argument.
11692 (update_current_target): Update.
11693 * inflow.c (terminal_init_inferior): Add 'self' argument.
11694 * inferior.h (terminal_init_inferior): Add 'self' argument.
11695 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11696 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11697
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target.h (struct target_ops)
11701 <to_can_accel_watchpoint_condition>: Add argument.
11702 (target_can_accel_watchpoint_condition): Add argument.
11703 * target.c (debug_to_can_accel_watchpoint_condition): Add
11704 argument.
11705 (update_current_target): Update.
11706 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11707 'self' argument.
11708
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11710
11711 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11712 Add argument.
11713 (target_region_ok_for_hw_watchpoint): Add argument.
11714 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11715 (default_region_ok_for_hw_watchpoint): Add argument.
11716 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11717 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11718 argument.
11719 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11720 argument.
11721 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11722 argument.
11723 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11724 'self' argument.
11725 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11726 'self' argument.
11727 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11728 'self' argument.
11729 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11730 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11731 'self' argument.
11732 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11733 Add 'self' argument.
11734
11735 2014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11738 argument.
11739 (target_insert_watchpoint): Add argument.
11740 * target.c (debug_to_insert_watchpoint): Add argument.
11741 (update_current_target): Update.
11742 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11743 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11744 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11745 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11746 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11747 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11748 argument.
11749 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11750 (procfs_insert_hw_watchpoint): Add 'self' argument.
11751 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11752 argument.
11753 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11754 argument.
11755 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11756 argument.
11757 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11758 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11759 argument.
11760 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11761 'self' argument.
11762
11763 2014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11766 argument.
11767 (target_remove_watchpoint): Add argument.
11768 * target.c (debug_to_remove_watchpoint): Add argument.
11769 (update_current_target): Update.
11770 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11771 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11772 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11773 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11774 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11775 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11776 argument.
11777 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11778 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11779 argument.
11780 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11781 argument.
11782 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11783 argument.
11784 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11785 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11786 argument.
11787 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11788 'self' argument.
11789
11790 2014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11793 argument.
11794 (target_remove_hw_breakpoint): Add argument.
11795 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11796 (update_current_target): Update.
11797 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11798 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11799 argument.
11800 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11801 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11802 argument.
11803 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11804 'self' argument.
11805
11806 2014-02-19 Tom Tromey <tromey@redhat.com>
11807
11808 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11809 argument.
11810 (target_insert_hw_breakpoint): Add argument.
11811 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11812 (update_current_target): Update.
11813 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11814 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11815 argument.
11816 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11817 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11818 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11819 argument.
11820 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11821 'self' argument.
11822
11823 2014-02-19 Tom Tromey <tromey@redhat.com>
11824
11825 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11826 argument.
11827 (target_can_use_hardware_watchpoint): Add argument.
11828 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11829 (update_current_target): Update.
11830 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11831 argument.
11832 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11833 argument.
11834 * remote.c (remote_check_watch_resources): Add 'self' argument.
11835 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11836 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11837 argument.
11838 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11839 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11840 argument.
11841 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11842 argument.
11843 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11844 argument.
11845 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11846 argument.
11847 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11848 argument.
11849 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11850 argument.
11851 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11852 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11853 argument.
11854 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11855 'self' argument.
11856
11857 2014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target.h (struct target_ops) <to_post_attach>: Add argument.
11860 (target_post_attach): Add argument.
11861 * target.c (debug_to_post_attach): Add argument.
11862 (update_current_target): Update.
11863 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11864 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11865 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11866 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11867 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11868
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * windows-nat.c (windows_close): Add 'self' argument.
11872 * tracepoint.c (tfile_close): Add 'self' argument.
11873 * target.h (struct target_ops) <to_close>: Add argument.
11874 * target.c (target_close): Add argument.
11875 (update_current_target): Update.
11876 * remote.c (remote_close): Add 'self' argument.
11877 * remote-sim.c (gdbsim_close): Add 'self' argument.
11878 * remote-mips.c (mips_close): Add 'self' argument.
11879 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11880 * record-full.c (record_full_close): Add 'self' argument.
11881 * record-btrace.c (record_btrace_close): Add 'self' argument.
11882 * monitor.h (monitor_close): Add 'self' argument.
11883 * monitor.c (monitor_close): Add 'self' argument.
11884 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11885 * linux-nat.c (linux_nat_close): Add argument.
11886 * go32-nat.c (go32_close): Add 'self' argument.
11887 * exec.c (exec_close_1): Add 'self' argument.
11888 * ctf.c (ctf_close): Add 'self' argument.
11889 * corelow.c (core_close): Add 'self' argument.
11890 (core_close_cleanup): Update.
11891 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11892 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11893
11894 2014-02-19 Tom Tromey <tromey@redhat.com>
11895
11896 * remote.c (remote_load): New function.
11897 (init_remote_ops): Use it.
11898
11899 2014-02-19 Tom Tromey <tromey@redhat.com>
11900
11901 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11902 argument.
11903 * common/linux-btrace.h (linux_supports_btrace): Update.
11904 * remote.c (remote_supports_btrace): Add "self" argument.
11905 * target-delegates.c: Rebuild.
11906 * target.c (target_supports_btrace): Remove.
11907 * target.h (struct target_ops) <to_supports_btrace>: Add
11908 target_ops argument.
11909 (target_supports_btrace): New define.
11910
11911 2014-02-19 Tom Tromey <tromey@redhat.com>
11912
11913 * record-full.c (record_full_beneath_to_resume_ops)
11914 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11915 (record_full_beneath_to_wait)
11916 (record_full_beneath_to_store_registers_ops)
11917 (record_full_beneath_to_store_registers)
11918 (record_full_beneath_to_xfer_partial_ops)
11919 (record_full_beneath_to_xfer_partial)
11920 (record_full_beneath_to_insert_breakpoint_ops)
11921 (record_full_beneath_to_insert_breakpoint)
11922 (record_full_beneath_to_remove_breakpoint_ops)
11923 (record_full_beneath_to_remove_breakpoint)
11924 (record_full_beneath_to_stopped_by_watchpoint)
11925 (record_full_beneath_to_stopped_data_address)
11926 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11927 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11928 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11929 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11930 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11931 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11932 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11933 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11934 (record_full_resume, record_full_wait_1)
11935 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11936 (record_full_store_registers, record_full_xfer_partial)
11937 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11938 (record_full_async, record_full_core_xfer_partial): Use target
11939 delegation.
11940 * target-delegates.c: Rebuild.
11941 * target.c (current_xfer_partial): Remove.
11942 (update_current_target): Do not INHERIT or de_fault
11943 to_insert_breakpoint, to_remove_breakpoint,
11944 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11945 to_is_async_p, to_async. Do not set to_xfer_partial field.
11946 (default_xfer_partial): Simplify.
11947 (current_xfer_partial): Remove.
11948 (target_wait, target_resume): Simplify.
11949 (find_default_can_async_p, find_default_is_async_p): Update.
11950 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11951 to_xfer_partial, to_stopped_by_watchpoint,
11952 to_stopped_data_address.
11953 (target_store_registers): Simplify.
11954 (forward_target_remove_breakpoint)
11955 (forward_target_insert_breakpoint): Remove.
11956 (target_remove_breakpoint, target_insert_breakpoint)
11957 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11958 * target.h (struct target_ops) <to_resume, to_wait,
11959 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11960 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11961 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11962 markup.
11963 (forward_target_remove_breakpoint)
11964 (forward_target_insert_breakpoint): Remove.
11965 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11966 directly.
11967 (record_btrace_insert_breakpoint): Delegate directly.
11968
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11970
11971 PR build/7701:
11972 * target-delegates.c: New file.
11973 * target.c: Include target-delegates.c.
11974 (init_dummy_target): Call install_dummy_methods.
11975 (complete_target_initialization): Call install_delegators.
11976 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11977 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11978 * make-target-delegates: New file.
11979
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11981
11982 * record.c (find_record_target): Use find_target_at.
11983 * target.c (find_target_at): New function.
11984 * target.h (find_target_at): Declare.
11985
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11987
11988 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11989 Add 'ops' argument.
11990 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11991 'ops' argument.
11992 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11993 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11994 'ops' argument.
11995 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11996 argument.
11997 * linux-nat.c (save_sigtrap): Update.
11998 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11999 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12000 (linux_nat_close): Update.
12001 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12002 argument.
12003 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12004 argument.
12005 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12006 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12007 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12008 (tmp_to_async): Add 'ops' argument.
12009 (record_full_stopped_by_watchpoint, record_full_async)
12010 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12011 argument.
12012 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12013 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12014 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12015 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12016 (remote_is_async_p, remote_async): Add 'ops' argument.
12017 (remote_stopped_data_address): Update.
12018 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12019 * target.c (update_current_target)
12020 (find_default_can_async_p, find_default_is_async_p): Update.
12021 (init_dummy_target): Update.
12022 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12023 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12024 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12025 (target_can_async_p, target_is_async_p, target_async)
12026 (target_stopped_by_watchpoint): Update.
12027
12028 2014-02-19 Yao Qi <yao@codesourcery.com>
12029
12030 PR gdb/16220
12031 * gdbarch.sh: Remove startup_gdbarch.
12032 * gdbarch.c: Regenerated.
12033 * gdbarch.h: Likewise.
12034
12035 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12036
12037 * rl78-tdep.c (rl78_g10_register_name): New function.
12038 (rl78_return_value): Add g10 support.
12039 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12040 g10.
12041
12042 2014-02-17 Doug Evans <xdje42@gmail.com>
12043
12044 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12045 (SUBDIR_GUILE_SRCS): Ditto.
12046 (scm-gsmob.o): Ditto.
12047
12048 2014-02-17 Yao Qi <yao@codesourcery.com>
12049
12050 * gnu-nat.c (ILL_RPC): Declare defined function.
12051
12052 2014-02-17 Yao Qi <yao@codesourcery.com>
12053
12054 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12055 mach_msg_type_number_t.
12056 (gnu_write_inferior): Likewise.
12057
12058 2014-02-17 Yao Qi <yao@codesourcery.com>
12059
12060 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12061 in format string.
12062 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12063 (inf_validate_procs, inf_signal): Likewise.
12064 (S_exception_raise_request): Likewise.
12065 (do_mach_notify_dead_name): Likewise.
12066 (steal_exc_port): Likewise.
12067 (gnu_read_inferior): Change 'copy_count''s type to
12068 mach_msg_type_number_t.
12069 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12070 format string.
12071
12072 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12073
12074 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12075 flag. Adjust all users; in particular...
12076 (gnu_wait): ..., don't decrement its value in here...
12077 (gnu_create_inferior): ..., and instead set the flag in here,
12078 around the startup_inferior call, and call that one with
12079 START_INFERIOR_TRAPS_EXPECTED.
12080
12081 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12082 (ILL_RPC): ... new macro.
12083 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12084 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12085 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12086 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12087 functions with ILL_RPC macro.
12088 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12089 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12090 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12091 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12092 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12093 (S_proc_getlogin_reply, S_proc_getsid_reply)
12094 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12095 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12096 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12097 (S_proc_getnports_reply, S_proc_is_important_reply)
12098 (S_proc_get_code_reply): New stub functions, generated with
12099 ILL_RPC macro.
12100
12101 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12102 collected the type check structures.
12103
12104 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12105
12106 2014-02-14 Doug Evans <dje@google.com>
12107
12108 * target.c (target_write_partial): Fix result type.
12109
12110 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12111
12112 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12113 the proper offsets to access fpregset_t.
12114
12115 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12116
12117 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12118 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12119 * h8300-tdep.c (setmachinelist): Remove global.
12120 * hppa-tdep.c (hppa_sigtramp): Remove global.
12121 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12122 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12123 * ravenscar-thread.c (update_target_observer): Remove global.
12124 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12125
12126 2014-02-12 Tom Tromey <tromey@redhat.com>
12127
12128 * common/rsp-low.c: Update comments.
12129 * common/rsp-low.h: Update comments.
12130
12131 2014-02-12 Tom Tromey <tromey@redhat.com>
12132
12133 * common/rsp-low.c (convert_ascii_to_int): Remove.
12134 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12135
12136 2014-02-12 Tom Tromey <tromey@redhat.com>
12137
12138 * common/rsp-low.h (unhexify): Don't declare.
12139 * common/rsp-low.c (unhexify): Remove.
12140
12141 2014-02-12 Tom Tromey <tromey@redhat.com>
12142
12143 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12144 * common/rsp-low.c (convert_int_to_ascii): Remove.
12145
12146 2014-02-12 Tom Tromey <tromey@redhat.com>
12147
12148 * common/rsp-low.h (hexify): Don't declare.
12149 * common/rsp-low.c (hexify): Remove.
12150
12151 2014-02-12 Tom Tromey <tromey@redhat.com>
12152
12153 * common/rsp-low.c (hexify): Never take strlen of argument.
12154
12155 2014-02-12 Tom Tromey <tromey@redhat.com>
12156
12157 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12158 * remote.c (extended_remote_run, remote_rcmd)
12159 (remote_download_trace_state_variable, remote_save_trace_data)
12160 (remote_set_trace_notes): Update.
12161 * tracepoint.c (encode_source_string, tfile_write_status)
12162 (tfile_write_uploaded_tsv): Update.
12163
12164 2014-02-12 Tom Tromey <tromey@redhat.com>
12165
12166 * tracepoint.c: Include rsp-low.h.
12167 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12168 * remote.c: Include rsp-low.h.
12169 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12170 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12171 (remote_unescape_input): Move to common/rsp-low.c.
12172 * common/rsp-low.h: New file.
12173 * common/rsp-low.c: New file.
12174 * Makefile.in (SFILES): Add common/rsp-low.c.
12175 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12176 (COMMON_OBS): Add rsp-low.o.
12177 (rsp-low.o): New target.
12178
12179 2014-02-12 Tom Tromey <tromey@redhat.com>
12180
12181 * utils.h: Include print-utils.h.
12182 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12183 (int_string, core_addr_to_string, core_addr_to_string_nz)
12184 (hex_string, hex_string_custom): Don't declare.
12185 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12186 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12187 (hex_string_custom, int_string, core_addr_to_string)
12188 (core_addr_to_string_nz, host_address_to_string): Move to
12189 common/print-utils.c.
12190 * common/print-utils.h: New file.
12191 * common/print-utils.c: New file
12192 * Makefile.in (SFILES): Add common/print-utils.c.
12193 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12194 (COMMON_OBS): Add print-utils.o.
12195 (print-utils.o): New target.
12196
12197 2014-02-12 Tom Tromey <tromey@redhat.com>
12198
12199 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12200
12201 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12202
12203 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12204
12205 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12206
12207 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12208 if a PT_IO ptrace request returns sucessfully but indicates that 0
12209 bytes were transferred.
12210
12211 2014-02-12 Pedro Alves <palves@redhat.com>
12212 Kevin Buettner <kevinb@redhat.com>
12213
12214 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12215 TYPE_INSTANCE_FLAG_CODE_SPACE.
12216
12217 2014-02-12 Pedro Alves <palves@redhat.com>
12218
12219 * h8300-tdep.c (pseudo_from_raw_register)
12220 (raw_from_pseudo_register): New functions.
12221 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12222 them.
12223
12224 2014-02-12 Pedro Alves <palves@redhat.com>
12225
12226 * h8300-tdep.c (h8300_register_sim_regno): New function.
12227 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12228 gdbarch_register_sim_regno hook.
12229
12230 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12231
12232 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12233
12234 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12235
12236 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12237
12238 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12239
12240 * obsd-tdep.h (obsd_init_abi): New prototype.
12241 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12242 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12243 (obsd_init_abi): New functions.
12244 * i386obsd-tdep.c: Include "obsd-tdep.h".
12245 (i386obsd_init_abi): Call obsd_init_abi.
12246 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12247 (amd64obsd_init_abi): Call obsd_init_abi.
12248 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12249 obsd-tdep.c to gdb_target_obs.
12250
12251 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12252
12253 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12254 double float arguments to 16-byte in the argument slots.
12255
12256 2014-02-11 Doug Evans <xdje42@gmail.com>
12257
12258 * configure.ac: Don't crash if pkg-config is not found and guile
12259 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12260 in guile checks.
12261 * configure: Regenerate.
12262
12263 2014-02-11 Yao Qi <yao@codesourcery.com>
12264
12265 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12266 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12267 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12268 * gnu-nat.c (gnu_xfer_memory): Likewise.
12269 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12270 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12271 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12272 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12273
12274 2014-02-11 Yao Qi <yao@codesourcery.com>
12275
12276 * target.h (enum target_xfer_error): Rename to ...
12277 (enum target_xfer_status): ... it. New. All users updated.
12278 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12279 New.
12280 (TARGET_XFER_STATUS_ERROR_P): New macro.
12281 (target_xfer_error_to_string): Remove declaration.
12282 (target_xfer_status_to_string): Declare.
12283 (target_xfer_partial_ftype): Adjust it.
12284 (struct target_ops) <to_xfer_partial>: Return
12285 target_xfer_status. Add argument xfered_len. Update
12286 comments.
12287 * target.c (target_xfer_error_to_string): Rename to ...
12288 (target_xfer_status_to_string): ... it. New. All callers
12289 updated.
12290 (target_read_live_memory): Likewise. Call target_xfer_partial
12291 instead of target_read.
12292 (memory_xfer_live_readonly_partial): Return
12293 target_xfer_status. Add argument xfered_len.
12294 (raw_memory_xfer_partial): Likewise.
12295 (memory_xfer_partial_1): Likewise.
12296 (memory_xfer_partial): Likewise.
12297 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12298 properly. Update debug message.
12299 (default_xfer_partial, current_xfer_partial): Likewise.
12300 (target_write_partial): Likewise.
12301 (target_read_partial): Likewise. All callers updated.
12302 (read_whatever_is_readable): Likewise.
12303 (target_write_with_progress): Likewise.
12304 (target_read_alloc_1): Likewise.
12305
12306 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12307 * auxv.c (procfs_xfer_auxv): Likewise.
12308 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12309 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12310 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12311 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12312 * corefile.c (read_memory): Adjust.
12313 * corelow.c (core_xfer_partial): Likewise.
12314 * ctf.c (ctf_xfer_partial): Likewise.
12315 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12316 updated.
12317 (darwin_xfer_partial): Likewise.
12318 * exec.c (section_table_xfer_memory_partial): Likewise. All
12319 callers updated.
12320 (exec_xfer_partial): Likewise.
12321 * exec.h (section_table_xfer_memory_partial): Update
12322 declaration.
12323 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12324 negative.
12325 (gnu_xfer_partial): Likewise.
12326 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12327 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12328 (ia64_hpux_xfer_solib_got): Likewise.
12329 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12330 type of 'partial_len' to ULONGEST.
12331 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12332 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12333 (linux_nat_xfer_partial): Likewise.
12334 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12335 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12336 * monitor.c (monitor_xfer_memory): Likewise.
12337 (monitor_xfer_partial): Likewise.
12338 * procfs.c (procfs_xfer_partial): Likewise.
12339 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12340 * record-full.c (record_full_xfer_partial): Likewise.
12341 (record_full_core_xfer_partial): Likewise.
12342 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12343 (gdbsim_xfer_partial): Likewise.
12344 * remote.c (remote_write_bytes_aux): Likewise. All callers
12345 updated.
12346 (remote_write_bytes, remote_read_bytes): Likewise. All
12347 callers updated.
12348 (remote_flash_erase): Likewise. All callers updated.
12349 (remote_write_qxfer): Likewise. All callers updated.
12350 (remote_read_qxfer): Likewise. All callers updated.
12351 (remote_xfer_partial): Likewise.
12352 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12353 (rs6000_xfer_shared_libraries): Likewise.
12354 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12355 (sol_thread_xfer_partial): Likewise.
12356 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12357 (sparc_xfer_partial): Likewise.
12358 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12359 updated.
12360 (spu_xfer_partial): Likewise.
12361 * spu-multiarch.c (spu_xfer_partial): Likewise.
12362 * tracepoint.c (tfile_xfer_partial): Likewise.
12363 * windows-nat.c (windows_xfer_memory): Likewise.
12364 (windows_xfer_shared_libraries): Likewise.
12365 (windows_xfer_partial): Likewise.
12366 * valprint.c: Replace 'target_xfer_error' with
12367 'target_xfer_status' in comments.
12368
12369 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12370
12371 Checked in by Joel Brobecker <brobecker@adacore.com>.
12372 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12373
12374 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12375
12376 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12377 function parameters.
12378
12379 2014-02-10 Will Newton <will.newton@linaro.org>
12380
12381 * elfread.c (elf_rel_plt_read): Look for a .got section if
12382 looking up .got.plt fails.
12383 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12384 on address passed to elf_gnu_ifunc_record_cache.
12385 (elf_gnu_ifunc_resolve_addr): Likewise.
12386 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12387
12388 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12389
12390 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12391 (X_RETTURN): New macro.
12392 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12393
12394 * sparc64-tdep.c (sparc64_init_abi): Hook
12395 sparc_in_function_epilogue_p.
12396
12397 2014-02-10 Gary Benson <gbenson@redhat.com>
12398
12399 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12400 Rename name_matcher to symbol_matcher.
12401
12402 2014-02-10 Gary Benson <gbenson@redhat.com>
12403
12404 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12405 Use expand_symtabs_file_matcher_ftype and
12406 expand_symtabs_symbol_matcher_ftype.
12407
12408 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12409
12410 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12411 (struct ada_symbol_cache): New.
12412 (ada_free_symbol_cache): Forward declare.
12413 (struct ada_pspace_data): New.
12414 (ada_pspace_data_handle): New static global.
12415 (get_ada_pspace_data, ada_pspace_data_cleanup)
12416 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12417 (cache_space, cache): Delete, now folded inside struct
12418 ada_pspace_data.
12419 (ada_get_symbol_cache): New function.
12420 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12421 implementation.
12422 (_initialize_ada_language): Remove initialization of cache_space.
12423 Move call to observer_attach_inferior_exit up, grouping it
12424 with the other observer registrations inside this function.
12425 Rename command to be more general. Add call to
12426 register_program_space_data_with_cleanup.
12427
12428 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12429
12430 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12431 ada_new_objfile_observer.
12432 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12433 (_initialize_tasks): Update uses of ada_new_objfile_observer
12434 and ada_tasks_normal_stop_observer.
12435
12436 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12437
12438 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12439 returned by the 'Length attribute to integer.
12440
12441 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12442
12443 * ada-lang.c (_initialize_ada_language): Initialize
12444 cache_space obstack.
12445
12446 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12447
12448 * ada-lang.c (HASH_SIZE): New macro.
12449 (struct cache_entry): New type.
12450 (cache_space, cache): New static globals.
12451 (ada_clear_symbol_cache, find_entry): New functions.
12452 (lookup_cached_symbol, cache_symbol): Implement.
12453 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12454 (_initialize_ada_language): Attach ada_new_objfile_observer
12455 and ada_free_objfile_observer.
12456
12457 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12458
12459 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12460 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12461 struct block * parameter.
12462 (ada_lookup_symbol_list_worker): Constify local variable "block".
12463 Remove cast which is no longer necessary.
12464
12465 2014-02-10 Doug Evans <xdje42@gmail.com>
12466
12467 Add Guile as an extension language.
12468 * NEWS: Mention Guile scripting.
12469 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12470 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12471 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12472 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12473 (CLIBS): Add GUILE_LIBS.
12474 (install-guile): New rule.
12475 (guile.o): New rule.
12476 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12477 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12478 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12479 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12480 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12481 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12482 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12483 * configure.ac: New option --with-guile.
12484 * configure: Regenerate.
12485 * config.in: Regenerate.
12486 * auto-load.c: Remove #include "python/python.h". Add #include
12487 "gdb/section-scripts.h".
12488 (source_section_scripts): Handle Guile scripts.
12489 (_initialize_auto_load): Add name of Guile objfile script to
12490 scripts-directory help text.
12491 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12492 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12493 (struct breakpoint): New member scm_bp_object.
12494 * defs.h (enum command_control_type): New value guile_control.
12495 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12496 "extension.h".
12497 (show_user): Update comment.
12498 (_initialize_cli_cmds): Update help text for "show user". Update help
12499 text for max-user-call-depth.
12500 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12501 "extension.h".
12502 (multi_line_command_p): Add guile_control.
12503 (print_command_lines): Handle guile_control.
12504 (execute_control_command, recurse_read_control_structure): Ditto.
12505 (process_next_line): Recognize "guile" commands.
12506 * disasm.c (gdb_disassemble_info): Make non-static.
12507 * disasm.h: #include "dis-asm.h".
12508 (struct gdbarch): Add forward decl.
12509 (gdb_disassemble_info): Declare.
12510 * extension.c: #include "guile/guile.h".
12511 (extension_languages): Add guile.
12512 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12513 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12514 * gdbtypes.c (get_unsigned_type_max): New function.
12515 (get_signed_type_minmax): New function.
12516 * gdbtypes.h (get_unsigned_type_max): Declare.
12517 (get_signed_type_minmax): Declare.
12518 * guile/README: New file.
12519 * guile/guile-internal.h: New file.
12520 * guile/guile.c: New file.
12521 * guile/guile.h: New file.
12522 * guile/scm-arch.c: New file.
12523 * guile/scm-auto-load.c: New file.
12524 * guile/scm-block.c: New file.
12525 * guile/scm-breakpoint.c: New file.
12526 * guile/scm-disasm.c: New file.
12527 * guile/scm-exception.c: New file.
12528 * guile/scm-frame.c: New file.
12529 * guile/scm-gsmob.c: New file.
12530 * guile/scm-iterator.c: New file.
12531 * guile/scm-lazy-string.c: New file.
12532 * guile/scm-math.c: New file.
12533 * guile/scm-objfile.c: New file.
12534 * guile/scm-ports.c: New file.
12535 * guile/scm-pretty-print.c: New file.
12536 * guile/scm-safe-call.c: New file.
12537 * guile/scm-string.c: New file.
12538 * guile/scm-symbol.c: New file.
12539 * guile/scm-symtab.c: New file.
12540 * guile/scm-type.c: New file.
12541 * guile/scm-utils.c: New file.
12542 * guile/scm-value.c: New file.
12543 * guile/lib/gdb.scm: New file.
12544 * guile/lib/gdb/boot.scm: New file.
12545 * guile/lib/gdb/experimental.scm: New file.
12546 * guile/lib/gdb/init.scm: New file.
12547 * guile/lib/gdb/iterator.scm: New file.
12548 * guile/lib/gdb/printing.scm: New file.
12549 * guile/lib/gdb/types.scm: New file.
12550 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12551 (VPATH): Add $(GUILE_SRCDIR).
12552 (GUILE_DIR): New variable.
12553 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12554 (all): Add stamp-guile dependency.
12555 (stamp-guile): New rule.
12556 (clean-guile, install-guile, uninstall-guile): New rules.
12557 (install-only): Add install-guile dependency.
12558 (uninstall): Add uninstall-guile dependency.
12559 (clean): Add clean-guile dependency.
12560
12561 2014-02-09 Doug Evans <xdje42@gmail.com>
12562
12563 Revert this patch (which I approved, mea culpa).
12564
12565 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12566
12567 * Makefile.in (all-lib): Remove.
12568 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12569
12570 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12571
12572 Fix Python stack corruption.
12573 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12574 gdb_py_longest.
12575
12576 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12577
12578 * Makefile.in (all-lib): Remove.
12579 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12580
12581 2014-02-07 Doug Evans <dje@google.com>
12582
12583 * extension-priv.h (extension_language_script_ops): Add comment.
12584 (extension_language_ops): Add comment.
12585 (active_ext_lang_state): Fix typo in comment.
12586
12587 2014-02-07 Pedro Alves <palves@redhat.com>
12588
12589 PR breakpoints/16292
12590 * infrun.c (handle_signal_stop) <signal arrives while stepping
12591 over a breakpoint>: Switch back to the stepping thread.
12592
12593 2014-02-07 Yao Qi <yao@codesourcery.com>
12594
12595 * target.c (target_xfer_partial): Return zero if LEN is zero.
12596
12597 2014-02-07 Yao Qi <yao@codesourcery.com>
12598
12599 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12600 (ld_so_xfer_auxv): Likewise.
12601 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12602 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12603 * corelow.c (core_xfer_partial): Likewise.
12604 * ctf.c (ctf_xfer_partial): Likewise.
12605 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12606 (darwin_xfer_partial): Likewise.
12607 * exec.c (exec_xfer_partial): Likewise.
12608 * gnu-nat.c (gnu_xfer_partial): Likewise.
12609 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12610 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12611 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12612 * linux-nat.c (linux_xfer_siginfo): Likewise.
12613 (linux_proc_xfer_spu): Likewise.
12614 * procfs.c (procfs_xfer_partial): Likewise.
12615 * record-full.c (record_full_xfer_partial): Likewise.
12616 (record_full_core_xfer_partial): Likewise.
12617 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12618 * remote.c (remote_write_qxfer): Likewise.
12619 (remote_write_qxfer, remote_read_qxfer): Likewise.
12620 (remote_xfer_partial): Likewise.
12621 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12622 (rs6000_xfer_shared_libraries): Likewise.
12623 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12624 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12625 (spu_xfer_partial): Likewise.
12626 * target.c (memory_xfer_partial_1): Likewise.
12627 * tracepoint.c (tfile_xfer_partial): Likewise.
12628 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12629 (windows_xfer_partial): Likewise.
12630
12631 2014-02-07 Yao Qi <yao@codesourcery.com>
12632
12633 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12634 comments.
12635 (core_xfer_shared_libraries_aix): Likewise.
12636 * gdbarch.c, gdbarch.h: Regenerated.
12637 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12638 ULONGEST. Change 'len_avail' type to ULONGEST.
12639 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12640 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12641 declaration.
12642 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12643
12644 2014-02-07 Yao Qi <yao@codesourcery.com>
12645
12646 * corefile.c (memory_error): Get 'exception' from ERR and pass
12647 'exception' to throw_error.
12648
12649 2014-02-06 Doug Evans <xdje42@gmail.com>
12650
12651 * configure.ac (libpython checking): Remove all but python.o from
12652 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12653 * configure: Regenerate.
12654
12655 * Makefile.in (SFILES): Add extension.c.
12656 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12657 (COMMON_OBS): Add extension.o.
12658 * extension.h: New file.
12659 * extension-priv.h: New file.
12660 * extension.c: New file.
12661
12662 * python/python-internal.h: #include "extension.h".
12663 (gdbpy_auto_load_enabled): Declare.
12664 (gdbpy_apply_val_pretty_printer): Declare.
12665 (gdbpy_apply_frame_filter): Declare.
12666 (gdbpy_preserve_values): Declare.
12667 (gdbpy_breakpoint_cond_says_stop): Declare.
12668 (gdbpy_breakpoint_has_cond): Declare.
12669 (void source_python_script_for_objfile): Delete.
12670 * python/python.c: #include "extension-priv.h".
12671 Delete inclusion of "observer.h".
12672 (extension_language_python): Moved here and renamed from
12673 script_language_python in py-auto-load.c.
12674 Redefined to be of type extension_language_defn.
12675 (python_extension_script_ops): New global.
12676 (python_extension_ops): New global.
12677 (struct python_env): New member previous_active.
12678 (restore_python_env): Call restore_active_ext_lang.
12679 (ensure_python_env): Call set_active_ext_lang.
12680 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12681 New arg extlang.
12682 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12683 New arg extlang.
12684 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12685 New arg extlang.
12686 (gdbpy_eval_from_control_command): Renamed from
12687 eval_python_from_control_command, made static. New arg extlang.
12688 (gdbpy_source_script) Renamed from source_python_script, made static.
12689 New arg extlang.
12690 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12691 result to int. New arg extlang.
12692 (gdbpy_source_objfile_script): Renamed from
12693 source_python_script_for_objfile, made static. New arg extlang.
12694 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12695 static. New args extlang, extlang_printers. Change result type to
12696 "void".
12697 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12698 static. New arg extlang. Rename arg printers to extlang_printers
12699 and change type to ext_lang_type_printers *.
12700 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12701 static. Replace argument arg with extlang, extlang_printers.
12702 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12703 (!HAVE_PYTHON, source_python_script): Delete.
12704 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12705 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12706 (!HAVE_PYTHON, start_type_printers): Delete.
12707 (!HAVE_PYTHON, apply_type_printers): Delete.
12708 (!HAVE_PYTHON, free_type_printers): Delete.
12709 (_initialize_python): Delete call to observer_attach_before_prompt.
12710 (finalize_python): Set/restore active extension language.
12711 (gdbpy_finish_initialization) Renamed from
12712 finish_python_initialization, made static. New arg extlang.
12713 (gdbpy_initialized): New function.
12714 * python/python.h: #include "extension.h". Delete #include
12715 "value.h", "mi/mi-cmds.h".
12716 (extension_language_python): Declare.
12717 (GDBPY_AUTO_FILE_NAME): Delete.
12718 (enum py_bt_status): Moved to extension.h and renamed to
12719 ext_lang_bt_status.
12720 (enum frame_filter_flags): Moved to extension.h.
12721 (enum py_frame_args): Moved to extension.h and renamed to
12722 ext_lang_frame_args.
12723 (finish_python_initialization): Delete.
12724 (eval_python_from_control_command): Delete.
12725 (source_python_script): Delete.
12726 (apply_val_pretty_printer): Delete.
12727 (apply_frame_filter): Delete.
12728 (preserve_python_values): Delete.
12729 (gdbpy_script_language_defn): Delete.
12730 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12731 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12732
12733 * auto-load.c: #include "extension.h".
12734 (GDB_AUTO_FILE_NAME): Delete.
12735 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12736 (script_language_gdb): Delete, moved to extension.c and renamed to
12737 extension_language_gdb.
12738 (source_gdb_script_for_objfile): Delete.
12739 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12740 (loaded_script): Change type of language member to
12741 struct extension_language_defn *.
12742 (init_loaded_scripts_info): Initialize
12743 unsupported_script_warning_printed.
12744 (maybe_add_script): Make static. Change type of language arg to
12745 struct extension_language_defn *.
12746 (clear_section_scripts): Reset unsupported_script_warning_printed.
12747 (auto_load_objfile_script_1): Rewrite to use extension language API.
12748 (auto_load_objfile_script): Make public. Remove support-compiled-in
12749 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12750 (source_section_scripts): Rewrite to use extension language API.
12751 (load_auto_scripts_for_objfile): Rewrite to use
12752 auto_load_scripts_for_objfile.
12753 (collect_matching_scripts_data): Change type of language member to
12754 struct extension_language_defn *.
12755 (auto_load_info_scripts): Change type of language arg to
12756 struct extension_language_defn *.
12757 (unsupported_script_warning_print): New function.
12758 (script_not_found_warning_print): Make static.
12759 (_initialize_auto_load): Rewrite construction of scripts-directory
12760 help.
12761 * auto-load.h (struct objfile): Add forward decl.
12762 (struct script_language): Delete.
12763 (struct auto_load_pspace_info): Add forward decl.
12764 (struct extension_language_defn): Add forward decl.
12765 (maybe_add_script): Delete.
12766 (auto_load_objfile_script): Declare.
12767 (script_not_found_warning_print): Delete.
12768 (auto_load_info_scripts): Update prototype.
12769 (auto_load_gdb_scripts_enabled): Declare.
12770 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12771 auto_load_python_scripts_enabled and made public.
12772 (script_language_python): Delete, moved to python.c.
12773 (gdbpy_script_language_defn): Delete.
12774 (info_auto_load_python_scripts): Update to use
12775 extension_language_python.
12776
12777 * breakpoint.c (condition_command): Replace call to
12778 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12779 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12780 with call to breakpoint_ext_lang_cond_says_stop.
12781 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12782 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12783 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12784 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12785 New arg slang.
12786 (local_setattro): Print name of extension language with existing
12787 stop condition.
12788
12789 * valprint.c (val_print, value_print): Update to call
12790 apply_ext_lang_val_pretty_printer.
12791 * cp-valprint.c (cp_print_value): Update call to
12792 apply_ext_lang_val_pretty_printer.
12793 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12794 (gdbpy_apply_val_pretty_printer): Renamed from
12795 apply_val_pretty_printer. New arg extlang.
12796 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12797
12798 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12799 extension language API.
12800 * cli/cli-script.c (execute_control_command): Update to call
12801 eval_ext_lang_from_control_command.
12802
12803 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12804 enum ext_lang_bt_status values. Update call to
12805 apply_ext_lang_frame_filter.
12806 (mi_cmd_stack_list_locals): Ditto.
12807 (mi_cmd_stack_list_args): Ditto.
12808 (mi_cmd_stack_list_variables): Ditto.
12809 * mi/mi-main.c: Delete #include "python/python-internal.h".
12810 Add #include "extension.h".
12811 (mi_cmd_list_features): Replace reference to python internal variable
12812 gdb_python_initialized with call to ext_lang_initialized_p.
12813
12814 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12815 Update to use enum ext_lang_frame_args. Update to call
12816 apply_ext_lang_frame_filter.
12817 * python/py-framefilter.c (extract_sym): Update to use enum
12818 ext_lang_bt_status.
12819 (extract_value, py_print_type, py_print_value): Ditto.
12820 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12821 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12822 (py_print_frame): Ditto.
12823 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12824 New arg extlang. Update to use enum ext_lang_bt_status.
12825
12826 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12827 finish_python_initialization. Replace with call to
12828 finish_ext_lang_initialization.
12829
12830 * typeprint.c (do_free_global_table): Update to call
12831 free_ext_lang_type_printers.
12832 (create_global_typedef_table): Update to call
12833 start_ext_lang_type_printers.
12834 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12835 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12836 (type_print_options): Change type of global_printers from "void *"
12837 to "struct ext_lang_type_printers *".
12838
12839 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12840 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12841 (gdbpy_preserve_values): Renamed from preserve_python_values.
12842 New arg extlang.
12843 (!HAVE_PYTHON, preserve_python_values): Delete.
12844
12845 * utils.c (quit_flag): Delete, moved to extension.c.
12846 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12847 extension.c.
12848
12849 * eval.c: Delete #include "python/python.h".
12850 * main.c: Delete #include "python/python.h".
12851
12852 * defs.h: Update comment.
12853
12854 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12855
12856 GDB 7.7 released.
12857
12858 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12859
12860 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12861 defined.
12862
12863 2014-02-05 Yao Qi <yao@codesourcery.com>
12864
12865 * remote.c (remote_pass_signals): Remove local 'buf' and use
12866 rs->buf.
12867 (remote_program_signals): Likewise.
12868
12869 2014-02-05 Yao Qi <yao@codesourcery.com>
12870
12871 * ctf.c: Include "inferior.h" and "gdbthread.h".
12872 (CTF_PID): A new macro.
12873 (ctf_open): Call inferior_appeared and add_thread_silent.
12874 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12875 (ctf_thread_alive): New function.
12876 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12877
12878 2014-02-05 Yao Qi <yao@codesourcery.com>
12879
12880 Revert this patch:
12881
12882 2013-05-24 Yao Qi <yao@codesourcery.com>
12883
12884 * tracepoint.c (TFILE_PID): Remove.
12885 (tfile_open): Don't add thread and inferior.
12886 (tfile_close): Don't set 'inferior_ptid'. Don't call
12887 exit_inferior_silent.
12888 (tfile_thread_alive): Remove.
12889 (init_tfile_ops): Don't set field 'to_thread_alive' of
12890 tfile_ops.
12891
12892 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12893
12894 * remote.c (remote_start_remote): Call remote_check_symbols even
12895 if only symbol-file (not file) has been given.
12896
12897 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12898
12899 * gdbarch.sh (skip_entrypoint): New callback.
12900 * gdbarch.c, gdbarch.h: Regenerate.
12901 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12902 * infrun.c (fill_in_stop_func): Likewise.
12903 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12904 (ppc_elfv2_elf_make_msymbol_special): New function.
12905 (ppc_elfv2_skip_entrypoint): Likewise.
12906 (ppc_linux_init_abi): Install them for ELFv2.
12907
12908 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12909
12910 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12911 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12912 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12913 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12914 structures returned in GPRs.
12915
12916 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12917
12918 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12919 offset to the stack parameter list for the ELFv2 ABI.
12920
12921 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12922
12923 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12924 set_gdbarch_convert_from_func_ptr_addr and
12925 set_gdbarch_elf_make_msymbol_special for ELFv1.
12926 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12927 function descriptors on ELFv1.
12928 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12929 set up r12 at function entry.
12930
12931 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12932
12933 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12934 (struct gdbarch_tdep): New member elf_abi.
12935
12936 * rs6000-tdep.c: Include "elf/ppc64.h".
12937 (rs6000_gdbarch_init): Detect ELF ABI version.
12938
12939 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12940
12941 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12942 within a register pair holding a DFP 128-bit value on little-endian.
12943 (ppc64_sysv_abi_return_value_base): Likewise.
12944 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12945 (dfp_pseudo_register_write): Likewise.
12946
12947 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12948
12949 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12950 offset on little-endian when passing _Decimal32.
12951 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12952
12953 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12954
12955 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12956 of the overlapped FP register within the VSX register on little-
12957 endian platforms.
12958 (efpr_pseudo_register_write): Likewise.
12959
12960 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12961
12962 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12963 offset on little-endian when passing small structures.
12964
12965 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12966
12967 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12968 (struct ppc64_sysv_argpos): New data structure.
12969 (ppc64_sysv_abi_push_float): Remove.
12970 (ppc64_sysv_abi_push_val): New function.
12971 (ppc64_sysv_abi_push_integer): Likewise.
12972 (ppc64_sysv_abi_push_freg): Likewise.
12973 (ppc64_sysv_abi_push_vreg): Likewise.
12974 (ppc64_sysv_abi_push_param): Likewise.
12975 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12976 (ppc64_sysv_abi_return_value_base): New function.
12977 (ppc64_sysv_abi_return_value): Refactor to use it.
12978
12979 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12980
12981 * NEWS: Document new target powerpc64le-*-linux*.
12982
12983 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12984
12985 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12986 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12987 core dumps.
12988 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12989 register set used in ELF core dumps. Add floating-point register set.
12990
12991 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12992
12993 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12994 dwarf2_to_gdb[] table using symbolic constants. Adjust
12995 penultimate entry from number representing the PC register
12996 to symbolic constant representing the MDR register. Add
12997 constant for the PC register to the end of the table.
12998
12999 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13000
13001 * bsd-kvm.c: Include <sys/param.h>
13002
13003 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13004
13005 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13006
13007 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13008
13009 * ada-lang.h (clear_ada_sym_cache): Delete.
13010
13011 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13012
13013 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13014
13015 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13016
13017 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13018 the sigreturn register save area only if the syscall is
13019 sigreturn.
13020
13021 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13022
13023 * valops.c (value_slice): Minor reformatting.
13024
13025 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13026
13027 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13028
13029 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13030
13031 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13032 New static globals.
13033 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13034 (ada_ignore_descriptive_types_p): New static global.
13035 (find_parallel_type_by_descriptive_type): Return immediately
13036 if ada_ignore_descriptive_types_p is set.
13037 (_initialize_ada_language): Register new commands "maintenance
13038 set ada", "maintenance show ada", "maintenance set ada
13039 ignore-descriptive-types" and "maintenance show ada
13040 ignore-descriptive-types".
13041 * NEWS: Add entry for new "maint ada set/show
13042 ignore-descriptive-types" commands.
13043
13044 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13045
13046 * record-btrace.c (record_btrace_close): Call btrace_teardown
13047 for all threads.
13048
13049 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13050
13051 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13052 "ui-out.h".
13053
13054 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13055
13056 * ada-typeprint (type_is_full_subrange_of_target_type):
13057 New function.
13058 (print_range): Add parameter bounds_prefered_p. If not set,
13059 try printing range types using the name of their base type.
13060 (print_range_type): Add parameter bounds_prefered_p.
13061 Use it in call to print_range.
13062 (print_array_type, ada_print_type): Update calls to print_range
13063 and print_range_type.
13064
13065 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13066
13067 * ada-typeprint.c (print_array_type, print_choices, print_range)
13068 (print_range_bound, print_dynamic_range_bound, print_range_type):
13069 Remove declaration.
13070
13071 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13072
13073 * ada-typeprint.c (print_range): Add missing empty line
13074 after local declaration.
13075
13076 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13077
13078 * ada-valprint.c (print_optional_low_bound): Get index_type's
13079 target type for as long as it is a TYPE_CODE_RANGE.
13080
13081 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13082
13083 * procfs.c (procfs_make_note_section): Remove assertion and
13084 associated comment.
13085
13086 2014-01-24 Yao Qi <yao@codesourcery.com>
13087
13088 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13089 * corelow.c (get_core_siginfo): Likewise.
13090
13091 2014-01-24 Yao Qi <yao@codesourcery.com>
13092
13093 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13094 ULONGEST. Don't check 'len' is negative.
13095 (remote_write_bytes): Change type of 'len' to ULONGEST.
13096
13097 2014-01-23 Tom Tromey <tromey@redhat.com>
13098
13099 PR python/16485:
13100 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13101 Handle exception from frame.block.
13102 (FrameVars.fetch_frame_locals): Likewise.
13103
13104 2014-01-23 Tom Tromey <tromey@redhat.com>
13105
13106 PR python/16487:
13107 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13108 on a NULL pointer. Move "goto error" to correct place.
13109
13110 2014-01-23 Tom Tromey <tromey@redhat.com>
13111
13112 PR python/16491:
13113 * python/py-framefilter.c (apply_frame_filter): Call
13114 ensure_python_env after computing gdbarch.
13115
13116 2014-01-23 Yao Qi <yao@codesourcery.com>
13117
13118 * target.c (raw_memory_xfer_partial): Change argument type
13119 from void * to gdb_byte *.
13120 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13121
13122 2014-01-22 Doug Evans <dje@google.com>
13123
13124 New gdbserver option --debug-format=timestamp.
13125 * NEWS: Mention it.
13126
13127 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13128
13129 * syscalls/s390x-linux.xml: New file.
13130 * syscalls/s390-linux.xml: New file.
13131 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13132 (XML_SYSCALL_FILENAME_S390X): Likewise.
13133 (op_svc): New enum value for SVC opcode.
13134 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13135 (s390_linux_get_syscall_number): New function.
13136 (s390_gdbarch_init): Register '*get_syscall_number' and the
13137 syscall xml file name.
13138 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13139 "s390-linux.xml" and "s390x-linux.xml".
13140 * NEWS: Announce new feature.
13141
13142 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13143
13144 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13145
13146 2014-01-22 Pedro Alves <palves@redhat.com>
13147
13148 * xtensa-config.c: Include defs.h.
13149
13150 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13151
13152 * common/common-utils.h: Add "ARI:" comment beside __func__
13153 reference.
13154
13155 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13156
13157 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13158 documentation a bit.
13159
13160 2014-01-21 Roland McGrath <mcgrathr@google.com>
13161
13162 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13163 * configure: Regenerate.
13164 * aclocal.m4: Regenerate.
13165 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13166 New substituted variables.
13167 (install-strip): New target.
13168 (INSTALL_SCRIPT): New substituted variable.
13169 (FLAGS_TO_PASS): Add it.
13170 (install-only): Use $(INSTALL_SCRIPT) rather than
13171 $(INSTALL_PROGRAM) for gcore.
13172
13173 2014-01-20 Tom Tromey <tromey@redhat.com>
13174
13175 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13176 together.
13177
13178 2014-01-20 Tom Tromey <tromey@redhat.com>
13179
13180 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13181 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13182 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13183 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13184 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13185 (struct cmd_list_element) <flags>: Remove.
13186 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13187 doc_allocated>: New fields.
13188 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13189 bitfields.
13190 * maint.c (maintenance_do_deprecate): Update.
13191 * top.c (execute_command): Update.
13192
13193 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13194
13195 * xtensa-linux-nat.c: Include asm/ptrace.h.
13196
13197 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13198
13199 * Makefile.in (SFILES): Add d-support.c.
13200 (COMMON_OBS): Add d-support.o.
13201 * d-lang.h (d_parse_symbol): Add comment, now defined in
13202 d-support.c.
13203 * d-lang.c (parse_call_convention)
13204 (parse_attributes, parse_function_types)
13205 (parse_function_args, parse_type, parse_identifier)
13206 (call_convention_p, d_parse_symbol): Move functions to ...
13207 * d-support.c: ... New file.
13208
13209 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13210
13211 * d-lang.h (d_parse_symbol): Add declaration.
13212 * d-lang.c (extract_identifiers)
13213 (extract_type_info): Remove functions.
13214 (parse_call_convention, parse_attributes)
13215 (parse_function_types, parse_function_args)
13216 (parse_type, parse_identifier, call_convention_p)
13217 (d_parse_symbol): New functions.
13218 (d_demangle): Use d_parse_symbol to demangle D symbols.
13219
13220 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13221
13222 * d-lang.h (struct builtin_d_type): New data type.
13223 (builtin_d_type): Add declaration.
13224 * d-lang.c (d_language_arch_info, build_d_types)
13225 (builtin_d_type): New functions.
13226 (enum d_primitive_types): New data type.
13227 (d_language_defn): Change c_language_arch_info to
13228 d_language_arch_info.
13229 (d_type_data): New static variable.
13230 (_initialize_d_language): Initialize d_type_data.
13231
13232 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13233
13234 * d-lang.h (d_main_name): Add declaration.
13235 * d-lang.c (d_main_name): New function.
13236 * symtab.c (find_main_name): Add call to d_main_name.
13237
13238 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13239
13240 * d-lang.c (d_language_defn): Change macro_expansion_c to
13241 macro_expansion_no.
13242
13243 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13244
13245 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13246
13247 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13248
13249 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13250 gdb_exception" declaration.
13251 * remote.c (getpkt_or_notif_sane): Likewise.
13252
13253 2014-01-17 Doug Evans <dje@google.com>
13254
13255 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13256 function, contents of dirnames_to_char_ptr_vec_append moved here.
13257 (delim_string_to_char_ptr_vec): New function.
13258 (dirnames_to_char_ptr_vec_append): Rewrite.
13259 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13260
13261 2014-01-17 Doug Evans <dje@google.com>
13262
13263 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13264 and moved here ...
13265 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13266 #include "common-utils.h".
13267 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13268 * common/vec.h (VEC_ASSERT_PASS): Update.
13269 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13270 (MACH_CHECK_ERROR): Update.
13271
13272 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13273
13274 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13275 comments.
13276 * gdbarch.h: Regenerate.
13277
13278 2014-01-16 Tom Tromey <tromey@redhat.com>
13279
13280 * value.c (struct value) <regnum>: Move earlier.
13281
13282 2014-01-16 Tom Tromey <tromey@redhat.com>
13283
13284 * remote.c (extended_remote_create_inferior): Rename from
13285 extended_remote_create_inferior_1. Add "ops" argument. Remove
13286 old implementation.
13287
13288 2014-01-16 Pedro Alves <palves@redhat.com>
13289
13290 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13291 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13292 the backchain.
13293
13294 2014-01-16 Doug Evans <dje@google.com>
13295
13296 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13297
13298 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13299
13300 * btrace.h (btrace_thread_flag): New.
13301 (struct btrace_thread_info) <flags>: New.
13302 * record-btrace.c (record_btrace_resume_thread)
13303 (record_btrace_find_thread_to_move, btrace_step_no_history)
13304 (btrace_step_stopped, record_btrace_start_replaying)
13305 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13306 (record_btrace_find_resume_thread): New.
13307 (record_btrace_resume, record_btrace_wait): Extend.
13308 (record_btrace_can_execute_reverse): New.
13309 (record_btrace_open): Fail in non-stop mode.
13310 (record_btrace_set_replay): Split into this, ...
13311 (record_btrace_stop_replaying): ... this, ...
13312 (record_btrace_clear_histories): ... and this.
13313 (init_record_btrace_ops): Init to_can_execute_reverse.
13314 * NEWS: Announce it.
13315
13316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13317
13318 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13319 (forward_target_decr_pc_after_break)
13320 (target_decr_pc_after_break): New.
13321 * target.c (forward_target_decr_pc_after_break)
13322 (target_decr_pc_after_break): New.
13323 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13324 instead of gdbarch_decr_pc_after_break.
13325 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13326 instead of gdbarch_decr_pc_after_break.
13327 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13328 instead of gdbarch_decr_pc_after_break.
13329 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13330 instead of gdbarch_decr_pc_after_break.
13331 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13332 instead of gdbarch_decr_pc_after_break.
13333 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13334 instead of gdbarch_decr_pc_after_break.
13335
13336 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13337
13338 * btrace.c: Include regcache.h.
13339 (btrace_add_pc): New.
13340 (btrace_enable): Call btrace_add_pc.
13341 (btrace_is_empty): New.
13342 * btrace.h (btrace_is_empty): New.
13343 * record-btrace.c (require_btrace, record_btrace_info): Call
13344 btrace_is_empty.
13345
13346 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13347
13348 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13349 Support delta reads.
13350 (linux_disable_btrace): Change return type.
13351 * common/linux-btrace.h (linux_read_btrace): Change parameters
13352 and return type to allow error reporting. Update users.
13353 (linux_disable_btrace): Change return type. Update users.
13354 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13355 New.
13356 (btrace_error): New.
13357 (btrace_block) <begin>: Comment on BEGIN == 0.
13358 * btrace.c (btrace_compute_ftrace): Start from the end of
13359 the current trace.
13360 (btrace_stitch_trace, btrace_clear_history): New.
13361 (btrace_fetch): Read delta trace, return if replaying.
13362 (btrace_clear): Move clear history code to btrace_clear_history.
13363 (parse_xml_btrace): Throw an error if parsing failed.
13364 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13365 and return type to allow error reporting.
13366 (target_read_btrace): Change parameters and return type to allow
13367 error reporting.
13368 * target.c (target_read_btrace): Update.
13369 * remote.c (remote_read_btrace): Support delta reads. Pass
13370 errors on.
13371 * NEWS: Announce it.
13372
13373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13374
13375 * record.h (record_btrace_frame_unwind)
13376 (record_btrace_tailcall_frame_unwind): New declarations.
13377 * dwarf2-frame: Include record.h
13378 (dwarf2_frame_cfa): Throw an error for btrace frames.
13379 * record-btrace.c: Include hashtab.h.
13380 (btrace_get_bfun_name): New.
13381 (btrace_call_history): Call btrace_get_bfun_name.
13382 (struct btrace_frame_cache): New.
13383 (bfcache): New.
13384 (bfcache_hash, bfcache_eq, bfcache_new): New.
13385 (btrace_get_frame_function): New.
13386 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13387 (record_btrace_frame_this_id): Compute own id.
13388 (record_btrace_frame_prev_register): Provide PC, throw_error
13389 for all other registers.
13390 (record_btrace_frame_sniffer): Detect btrace frames.
13391 (record_btrace_tailcall_frame_sniffer): New.
13392 (record_btrace_frame_dealloc_cache): New.
13393 (record_btrace_frame_unwind): Add new functions.
13394 (record_btrace_tailcall_frame_unwind): New.
13395 (_initialize_record_btrace): Allocate cache.
13396 * btrace.c (btrace_clear): Call reinit_frame_cache.
13397 * NEWS: Announce it.
13398
13399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13400
13401 * record-btrace.c (record_btrace_set_replay)
13402 (record_btrace_goto_begin, record_btrace_goto_end)
13403 (record_btrace_goto): New.
13404 (init_record_btrace_ops): Initialize them.
13405 * NEWS: Announce it.
13406
13407 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13408
13409 * record-btrace.c (record_btrace_find_new_threads)
13410 (record_btrace_thread_alive): New.
13411 (init_record_btrace_ops): Initialize to_find_new_threads and
13412 to_thread_alive.
13413
13414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13415
13416 * record-btrace.c (record_btrace_resume): New.
13417 (record_btrace_wait): New.
13418 (init_record_btrace_ops): Initialize to_wait and to_resume.
13419
13420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13421
13422 * record-btrace.c (record_btrace_xfer_partial)
13423 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13424 (record_btrace_allow_memory_access): New.
13425 (init_record_btrace_ops): Initialize new methods.
13426 * target.c (raw_memory_xfer_partial): Bail out if target reports
13427 that this memory is not available.
13428
13429 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13430
13431 * target.h (target_ops) <to_insert_breakpoint>
13432 <to_remove_breakpoint>: Add target_ops parameter.
13433 (forward_target_insert_breakpoint): New.
13434 (forward_target_remove_breakpoint): New.
13435 (memory_remove_breakpoint, memory_insert_breakpoint):
13436 Add target_ops parameter.
13437 * target.c (target_insert_breakpoint): Split into this and ...
13438 (forward_target_insert_breakpoint): ... this.
13439 (target_remove_breakpoint): Split into this and ...
13440 (forward_target_remove_breakpoint): ... this.
13441 (debug_to_insert_breakpoint): Add target_ops parameter.
13442 Call forward_target_insert_breakpoint.
13443 (debug_to_remove_breakpoint): Add target_ops parameter.
13444 Call forward_target_remove_breakpoint.
13445 (update_current_target): Do not inherit or default to_insert_breakpoint
13446 and to_remove_breakpoint.
13447 * corelow.c (ignore): Add target_ops parameter.
13448 * exec.c (ignore): Add target_ops parameter.
13449 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13450 Add target_ops parameter.
13451 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13452 Add target_ops parameter.
13453 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13454 Add target_ops parameter.
13455 * record-full.c (record_full_beneath_to_insert_breakpoint)
13456 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13457 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13458 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13459 (record_full_core_remove_breakpoint): Add target_ops parameter.
13460 Update users.
13461 (record_full_beneath_to_insert_breakpoint_ops)
13462 (record_full_beneath_to_remove_breakpoint_ops)
13463 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13464 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13465 tmp_to_remove_breakpoint_ops,
13466 record_full_beneath_to_insert_breakpoint_ops, and
13467 record_full_beneath_to_remove_breakpoint_ops.
13468 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13469 (m32r_remove_breakpoint): Add target_ops parameter.
13470 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13471 Add target_ops parameter.
13472 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13473 Add target_ops parameter.
13474
13475 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13476 Markus Metzger <markus.t.metzger@intel.com>
13477
13478 * record-btrace.c: Include frame-unwind.h.
13479 (record_btrace_frame_unwind_stop_reason)
13480 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13481 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13482 New.
13483 (init_record_btrace_ops): Install it.
13484
13485 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13486
13487 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13488 get_prev_frame_1.
13489
13490 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13491
13492 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13493 earlier.
13494
13495 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13496
13497 * frame-unwind.c: Include target.h.
13498 (frame_unwind_try_unwinder): New function with code from ...
13499 (frame_unwind_find_by_frame): ... here. New variable
13500 unwinder_from_target, call also target_get_unwinder)
13501 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13502 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13503 * target.h (struct target_ops): New fields to_get_unwinder and
13504 to_get_tailcall_unwinder.
13505 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13506
13507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13508
13509 * record-btrace.c (record_btrace_fetch_registers)
13510 (record_btrace_store_registers)
13511 (record_btrace_to_prepare_to_store): New.
13512 (init_record_btrace_ops): Add the above.
13513
13514 2014-01-16 Tom Tromey <tromey@redhat.com>
13515
13516 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13517 * target.h (struct target_ops) <to_prepare_to_store>: Add
13518 argument.
13519 (target_prepare_to_store): Add argument.
13520 * target.c (debug_to_prepare_to_store): Add argument.
13521 (update_current_target): Update.
13522 * remote.c (remote_prepare_to_store): Add 'self' argument.
13523 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13524 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13525 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13526 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13527 argument.
13528 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13529 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13530 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13531 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13532 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13533
13534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13535
13536 * btrace.h (replay) <replay>: New.
13537 (btrace_is_replaying): New.
13538 * btrace.c (btrace_clear): Free replay iterator.
13539 (btrace_is_replaying): New.
13540 * record-btrace.c (record_btrace_is_replaying): New.
13541 (record_btrace_info): Print insn number if replaying.
13542 (record_btrace_insn_history): Start at replay position.
13543 (record_btrace_call_history): Start at replay position.
13544 (init_record_btrace_ops): Init to_record_is_replaying.
13545
13546 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13547
13548 * record-btrace.c (record_btrace_insn_history_range): Include
13549 end.
13550 (record_btrace_insn_history_from): Adjust range.
13551 (record_btrace_call_history_range): Include
13552 end.
13553 (record_btrace_call_history_from): Adjust range.
13554 * NEWS: Announce changes.
13555
13556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13557
13558 * record.h (enum record_print_flag)
13559 <record_print_indent_calls>: New.
13560 * record.c (get_call_history_modifiers): Recognize /c modifier.
13561 (_initialize_record): Document /c modifier.
13562 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13563 Reorder fields. Optionally indent the function name. Update
13564 all users.
13565 * NEWS: Announce changes.
13566
13567 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13568
13569 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13570
13571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13572
13573 * btrace.c (ftrace_new_function): Start counting at one.
13574 * record-btrace.c (record_btrace_info): Adjust number of calls
13575 and insns.
13576 * NEWS: Announce it.
13577
13578 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13579
13580 * record-btrace.c (btrace_call_history_insn_range): Print
13581 insn range as [begin, end].
13582
13583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13584
13585 * btrace.h (struct btrace_func_link): New.
13586 (enum btrace_function_flag): New.
13587 (struct btrace_inst): Rename to ...
13588 (struct btrace_insn): ...this. Update all users.
13589 (struct btrace_func) <ibegin, iend>: Remove.
13590 (struct btrace_func_link): New.
13591 (struct btrace_func): Rename to ...
13592 (struct btrace_function): ...this. Update all users.
13593 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13594 (number, level, flags>: New.
13595 (struct btrace_insn_iterator): Rename to ...
13596 (struct btrace_insn_history): ...this.
13597 Update all users.
13598 (struct btrace_insn_iterator, btrace_call_iterator): New.
13599 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13600 (struct btrace_target_info) <begin, end, level>
13601 <insn_history, call_history>: New.
13602 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13603 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13604 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13605 (btrace_call_number, btrace_call_begin, btrace_call_end)
13606 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13607 (btrace_find_function_by_number, btrace_set_insn_history)
13608 (btrace_set_call_history): New.
13609 * btrace.c (btrace_init_insn_iterator)
13610 (btrace_init_func_iterator, compute_itrace): Remove.
13611 (ftrace_print_function_name, ftrace_print_filename)
13612 (ftrace_skip_file): Change
13613 parameter to const.
13614 (ftrace_init_func): Remove.
13615 (ftrace_debug): Use new btrace_function fields.
13616 (ftrace_function_switched): Also consider gaining and
13617 losing symbol information).
13618 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13619 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13620 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13621 New.
13622 (ftrace_new_function): Move. Remove debug print.
13623 (ftrace_update_lines, ftrace_update_insns): New.
13624 (ftrace_update_function): Check for call, ret, and jump.
13625 (compute_ftrace): Renamed to ...
13626 (btrace_compute_ftrace): ...this. Rewritten to compute call
13627 stack.
13628 (btrace_fetch, btrace_clear): Updated.
13629 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13630 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13631 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13632 (btrace_call_number, btrace_call_begin, btrace_call_end)
13633 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13634 (btrace_find_function_by_number, btrace_set_insn_history)
13635 (btrace_set_call_history): New.
13636 * record-btrace.c (require_btrace): Use new btrace thread
13637 info fields.
13638 (record_btrace_info, btrace_insn_history)
13639 (record_btrace_insn_history, record_btrace_insn_history_range):
13640 Use new btrace thread info fields and new iterator.
13641 (btrace_func_history_src_line): Rename to ...
13642 (btrace_call_history_src_line): ...this. Use new btrace
13643 thread info fields.
13644 (btrace_func_history): Rename to ...
13645 (btrace_call_history): ...this. Use new btrace thread info
13646 fields and new iterator.
13647 (record_btrace_call_history, record_btrace_call_history_range):
13648 Use new btrace thread info fields and new iterator.
13649
13650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13651
13652 * frame.h (frame_id_build_unavailable_stack_special): New.
13653 * frame.c (frame_id_build_unavailable_stack_special): New.
13654
13655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13656
13657 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13658 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13659 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13660 to gdbarch.
13661 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13662 (i386_insn_is_jump, i386_jmp_p): New.
13663 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13664 insn_is_jump to gdbarch.
13665 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13666 * gdbarch.h: Regenerated.
13667 * gdbarch.c: Regenerated.
13668 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13669 (default_insn_is_jump): New.
13670 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13671 (default_insn_is_jump): New.
13672
13673 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13674
13675 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13676 Change to ...
13677 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13678 (btrace_read_type) <btrace_read_new>: Change to ...
13679 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13680
13681 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13682
13683 * common/linux-btrace.c (linux_read_btrace): Free trace from
13684 previous iteration.
13685
13686 2014-01-15 Doug Evans <dje@google.com>
13687
13688 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13689 uint32_t.
13690
13691 2014-01-15 Tom Tromey <tromey@redhat.com>
13692
13693 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13694 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13695 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13696 (set_objfile_main_name): New function.
13697 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13698 language_of_main>: New fields.
13699 (set_objfile_main_name): Declare.
13700 * symtab.c (find_main_name): Loop over objfiles to find the main
13701 name and language.
13702 (set_main_name): Now static.
13703 (get_main_info): Add comment.
13704 * symtab.h (set_main_name): Don't declare.
13705
13706 2014-01-15 Tom Tromey <tromey@redhat.com>
13707
13708 * symtab.c (main_progspace_key): New global.
13709 (struct main_info): New.
13710 (name_of_main, language_of_main): Remove.
13711 (get_main_info, main_info_cleanup): New function.
13712 (set_main_name, main_name, main_language): Use get_main_info.
13713 (_initialize_symtab): Initialize main_progspace_key.
13714
13715 2014-01-15 Tom Tromey <tromey@redhat.com>
13716
13717 * dbxread.c (process_one_symbol): Update.
13718 * dwarf2read.c (read_partial_die): Update.
13719 * symfile.c (set_initial_language): Call main_language.
13720 * symtab.c (language_of_main): Now static.
13721 (set_main_name): Add 'lang' parameter.
13722 (find_main_name): Update.
13723 (main_language): New function.
13724 (symtab_observer_executable_changed): Update.
13725 * symtab.h (set_main_name): Update.
13726 (language_of_main): Remove.
13727 (main_language): Declare.
13728
13729 2014-01-15 Tom Tromey <tromey@redhat.com>
13730
13731 * symfile.c (init_entry_point_info): Use new "initialized" field.
13732 Update.
13733 * objfiles.h (struct entry_point) <initialized>: New field.
13734 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13735 (struct objfile) <ei>: ...here. Remove.
13736 * objfiles.c (entry_point_address_query): Update.
13737
13738 2014-01-15 Tom Tromey <tromey@redhat.com>
13739
13740 * objfiles.c (entry_point_address_query): Relocate entry point
13741 address.
13742 (objfile_relocate1): Do not relocate entry point address.
13743 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13744 <the_bfd_section_index>: New field.
13745 * symfile.c (init_entry_point_info): Find the entry point's
13746 section.
13747
13748 2014-01-15 Tom Tromey <tromey@redhat.com>
13749
13750 * solib-frv.c (enable_break): Use entry_point_address_query.
13751
13752 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13753
13754 * NEWS: Add note on improved process record-replay on
13755 arm*-linux* targets.
13756
13757 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13758
13759 * arm-tdep.c (enum arm_record_result): New enum.
13760 (arm_record_unsupported_insn): New function.
13761 (arm_record_coproc_data_proc): Removed.
13762 (thumb2_record_ld_st_multiple): New function.
13763 (thumb2_record_ld_st_dual_ex_tbb): New function.
13764 (thumb2_record_data_proc_sreg_mimm): New function.
13765 (thumb2_record_ps_dest_generic): New function.
13766 (thumb2_record_branch_misc_cntrl): New function.
13767 (thumb2_record_str_single_data): New function.
13768 (thumb2_record_ld_mem_hints): New function.
13769 (thumb2_record_ld_word): New function.
13770 (thumb2_record_lmul_lmla_div): New function.
13771 (thumb2_record_decode_insn_handler): New function.
13772 (decode_insn): Add thumb32 instruction handlers.
13773
13774 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13775
13776 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13777 (struct arm_linux_record_tdep): Declare.
13778 (arm_canonicalize_syscall): New function.
13779 (arm_all_but_pc_registers_record): New function.
13780 (arm_linux_syscall_record): New function.
13781 (arm_linux_init_abi): Add syscall recording constructs.
13782 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13783 decoding. (arm_record_coproc_data_proc): Update arm syscall
13784 decoding.
13785 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13786 <arm_syscall_record>: New field.
13787 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13788 gdb_target_obs.
13789
13790 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13791
13792 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13793 register for push instruction recording.
13794
13795 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13796
13797 * arm-tdep.c (thumb_record_misc): Update to correct logical
13798 error while recording ldm, ldmia and pop instructions.
13799
13800 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13801
13802 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13803
13804 2014-01-15 Pedro Alves <palves@redhat.com>
13805
13806 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13807 (go32_resume, go32_fetch_registers, store_register)
13808 (go32_store_registers, go32_prepare_to_store)
13809 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13810 (go32_create_inferior, go32_can_run, go32_terminal_init)
13811 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13812 declarations.
13813
13814 2014-01-15 Tom Tromey <tromey@redhat.com>
13815
13816 * target.h (async_callback_ftype): New typedef.
13817 (struct target_ops) <to_async>: Use it.
13818
13819 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13820
13821 * python/py-value.c (get_field_type): Remove unnecessary curly
13822 braces for single-statement if block.
13823
13824 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13825
13826 * python/py-type.c (convert_field): Add missing empty line
13827 after declarations.
13828
13829 2014-01-14 Doug Evans <dje@google.com>
13830
13831 * symfile.h (expand_symtabs_matching): Renamed from
13832 expand_partial_symbol_names. Update prototype.
13833 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13834 * symfile.c (expand_symtabs_matching): Renamed from
13835 expand_partial_symbol_names. New args file_matcher, kind.
13836 Rename arg fun to symbol_matcher.
13837 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13838 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13839 ada_expand_partial_symbol_name.
13840 (ada_make_symbol_completion_list): Update to call
13841 expand_symtabs_matching.
13842 (ada_add_global_exceptions): Call expand_symtabs_matching.
13843 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13844 call map_symbol_filenames.
13845 * symtab.c (sources_info): Update to call map_symbol_filenames.
13846 (search_symbols): Call expand_symtabs_matching.
13847 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13848 (default_make_symbol_completion_list_break_on): Update to call
13849 expand_symtabs_matching.
13850 (make_source_files_completion_list): Update to call
13851 map_symbol_filenames.
13852
13853 2014-01-14 Doug Evans <dje@google.com>
13854
13855 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13856 (expand_symtabs_symbol_matcher_ftype): New typedef.
13857 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13858 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13859 * symfile.c (expand_partial_symbol_names): Update to use
13860 expand_symtabs_symbol_matcher_ftype.
13861 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13862 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13863 Arg name_matcher renamed to symbol_matcher.
13864 * psymtab.c (recursively_search_psymtabs): Update to use
13865 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13866 sym_matcher.
13867 (expand_symtabs_matching_via_partial): Update to use
13868 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13869 Arg name_matcher renamed to symbol_matcher.
13870
13871 2014-01-14 Doug Evans <dje@google.com>
13872
13873 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13874 (map_partial_symbol_filenames): Ditto.
13875 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13876 (map_partial_symbol_filenames): Ditto.
13877 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13878 (map_partial_symbol_filenames): Ditto.
13879 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13880 (map_partial_symbol_filenames): Ditto.
13881 * symtab.c: Delete #include "psymtab.h".
13882
13883 2014-01-14 Pedro Alves <palves@redhat.com>
13884 Tom Tromey <tromey@redhat.com>
13885
13886 * infrun.c (use_displaced_stepping): Use find_record_target
13887 instead of RECORD_IS_USED.
13888 (adjust_pc_after_break): Use record_full_is_used instead of
13889 RECORD_IS_USED.
13890 * record-btrace.c (record_btrace_open): Call record_preopen
13891 instead of checking RECORD_IS_USED.
13892 * record-full.c (record_full_shortname)
13893 (record_full_core_shortname): New globals.
13894 (record_full_is_used): New function.
13895 (find_full_open): Call record_preopen instead of checking
13896 RECORD_IS_USED.
13897 (init_record_full_ops): Set the target's shortname to
13898 record_full_shortname.
13899 (init_record_full_core_ops): Set the target's shortname to
13900 record_full_core_shortname.
13901 * record-full.h (record_full_is_used): Declare.
13902 * record.c (find_record_target): Make extern.
13903 (record_preopen): New function.
13904 * record.h (RECORD_IS_USED): Delete macro.
13905 (find_record_target, record_preopen): Declare functions.
13906
13907 2014-01-14 Yao Qi <yao@codesourcery.com>
13908
13909 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13910 'len''s type to ULONGEST.
13911 (core_xfer_shared_libraries_aix): Likewise.
13912 * gdbarch.c, gdbarch.h: Regenerated.
13913 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13914 Change type of 'len' to ULONGEST.
13915 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13916 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13917
13918 2014-01-14 Yao Qi <yao@codesourcery.com>
13919
13920 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13921 type of 'len' to ULONGEST.
13922 (linux_xfer_osdata_processgroups): Likewise.
13923 (linux_xfer_osdata_threads): Likewise.
13924 (linux_xfer_osdata_fds): Likewise.
13925 (linux_xfer_osdata_isockets): Likewise.
13926 (linux_xfer_osdata_shm): Likewise.
13927 (linux_xfer_osdata_sem): Likewise.
13928 (linux_xfer_osdata_msg): Likewise.
13929 (linux_common_xfer_osdata): Likewise.
13930 (struct osdata_type) <getter>: Likewise.
13931 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13932 the declaration.
13933
13934 2014-01-14 Yao Qi <yao@codesourcery.com>
13935
13936 * target.h (target_xfer_partial_ftype): Update.
13937 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13938 ULONGEST.
13939 * aix-thread.c (aix_thread_xfer_partial): Change type of
13940 argument 'len' to ULONGEST.
13941 * auxv.c (procfs_xfer_auxv): Likewise.
13942 (ld_so_xfer_auxv): Likewise.
13943 (memory_xfer_auxv): Likewise.
13944 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13945 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13946 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13947 * corelow.c (core_xfer_partial): Likewise.
13948 * ctf.c (ctf_xfer_partial): Likewise.
13949 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13950 '%u'.
13951 (darwin_read_dyld_info): Likewise.
13952 (darwin_xfer_partial): Likewise.
13953 * exec.c (section_table_xfer_memory_partial): Likewise.
13954 (exec_xfer_partial): Likewise.
13955 * exec.h (section_table_xfer_memory_partial): Update
13956 declaration.
13957 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13958 instead of plongest.
13959 (gnu_xfer_partial): Likewise.
13960 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13961 (ia64_hpux_xfer_solib_got): Likewise.
13962 (ia64_hpux_xfer_partial): Likewise.
13963 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13964 * inf-ptrace.c (inf_ptrace_xfer_partial):
13965 * inf-ttrace.c (inf_ttrace_xfer_partial):
13966 * linux-nat.c (linux_xfer_siginfo): Likewise.
13967 (linux_nat_xfer_partial): Likewise.
13968 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13969 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13970 * monitor.c (monitor_xfer_memory): Likewise.
13971 (monitor_xfer_partial): Likewise.
13972 * procfs.c (procfs_xfer_partial): Likewise.
13973 * record-full.c (record_full_xfer_partial): Likewise.
13974 (record_full_core_xfer_partial): Likewise.
13975 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13976 instead of plongest.
13977 (gdbsim_xfer_partial): Likewise.
13978 * remote.c (remote_xfer_partial): Likewise.
13979 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13980 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13981 declaration.
13982 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13983 (rs6000_xfer_shared_libraries): Likewise.
13984 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13985 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13986 (sparc_xfer_partial): Likewise.
13987 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13988 (spu_xfer_partial): Likewise.
13989 * spu-multiarch.c (spu_xfer_partial): Likewise.
13990 * target.c (target_read_live_memory): Likewise.
13991 (memory_xfer_live_readonly_partial): Likewise.
13992 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13993 (target_xfer_partial, default_xfer_partial): Likewise.
13994 (current_xfer_partial): Likewise.
13995 * tracepoint.c (tfile_xfer_partial): Likewise.
13996 * windows-nat.c (windows_xfer_memory): Likewise. Call
13997 pulongest instead of plongest.
13998 (windows_xfer_partial): Likewise.
13999 (windows_xfer_shared_libraries): Likewise.
14000
14001 2014-01-14 Yao Qi <yao@codesourcery.com>
14002
14003 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14004 target_xfer_partial_ftype.
14005
14006 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14007
14008 PR python/15464
14009 PR python/16113
14010 * valops.c (value_struct_elt_bitpos): New function
14011 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14012 object to 'None' if the field name is an empty string ("").
14013 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14014 attribute to look for a field when 'name' is 'None'.
14015 (get_field_type): New function
14016
14017 2014-01-13 Doug Evans <dje@google.com>
14018
14019 PR symtab/16426
14020 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14021 (try_open_dwop_file): Ditto.
14022 * gdb_bfd.c: #include "vec.h".
14023 (bfdp): New typedef.
14024 (struct gdb_bfd_data): New member included_bfds.
14025 (gdb_bfd_unref): Unref all included bfds.
14026 (gdb_bfd_record_inclusion): New function.
14027 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14028
14029 2014-01-13 Tom Tromey <tromey@redhat.com>
14030
14031 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14032
14033 2014-01-13 Tom Tromey <tromey@redhat.com>
14034
14035 * defs.h (use_windows): Remove.
14036 * gdb.c (main): Update.
14037 * main.c (captured_main, gdb_main): Update.
14038 * main.h (struct captured_main_args) <use_windows>: Remove.
14039 * top.c (use_windows): Remove.
14040
14041 2014-01-13 Tom Tromey <tromey@redhat.com>
14042
14043 * defs.h (deprecated_flush_hook): Remove.
14044
14045 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14046
14047 PR threads/16216
14048 * linux-thread-db.c (try_thread_db_load): Add parameter
14049 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14050 (try_thread_db_load_from_pdir_1): Move it there from here.
14051 (try_thread_db_load_from_sdir): Update caller.
14052 (try_thread_db_load_from_dir): Move it there from here.
14053
14054 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14055
14056 * regformats/regdat.sh: Always rewrite the register file.
14057
14058 2014-01-13 Pedro Alves <palves@redhat.com>
14059
14060 * Makefile.in (CHECK_HEADERS): New variable.
14061 (check-headers:): New rule.
14062
14063 2014-01-13 Tom Tromey <tromey@redhat.com>
14064
14065 * cli/cli-setshow.c (do_set_command): Update.
14066 * defs.h (deprecated_set_hook): Remove.
14067 * top.c (deprecated_set_hook): Remove.
14068
14069 2014-01-13 Pedro Alves <palves@redhat.com>
14070
14071 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14072 the tracepoint if the PC is a pseudo-register.
14073
14074 2014-01-13 Tom Tromey <tromey@redhat.com>
14075
14076 * defs.h (XCALLOC): Remove.
14077 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14078 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14079 * dwarf2loc.c (allocate_piece_closure): Likewise.
14080 * elfread.c (elf_symfile_segments): Likewise.
14081 (elf_symfile_segments): Likewise.
14082 * gdbtypes.c (copy_type_recursive): Likewise.
14083 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14084 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14085 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14086 XCALLOC.
14087 * mt-tdep.c (mt_gdbarch_init): Likewise.
14088 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14089 XCALLOC.
14090 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14091 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14092 * registry.c (registry_alloc_data): Likewise.
14093 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14094 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14095 * serial.c (serial_fdopen_ops): Likewise.
14096 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14097 XCALLOC.
14098 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14099 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14100 not XCALLOC.
14101
14102 2014-01-13 Tom Tromey <tromey@redhat.com>
14103
14104 * defs.h (XMALLOC): Remove.
14105 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14106 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14107 * cli-out.c (struct ui_out *): Likewise.
14108 * cli/cli-dump.c (add_dump_command): Likewise.
14109 (add_dump_command): Likewise.
14110 * complaints.c (get_complaints): Likewise.
14111 (find_complaint): Likewise.
14112 * dwarf2-frame.c (execute_cfa_program): Likewise.
14113 * dwarf2read.c (abbrev_table_read_table): Likewise.
14114 * gdbarch.sh: Likewise.
14115 * gdbarch.c: Rebuild.
14116 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14117 * interps.c (interp_new): Likewise.
14118 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14119 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14120 * mi/mi-console.c (mi_console_file_new): Likewise.
14121 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14122 * mi/mi-out.c (mi_out_new): Likewise.
14123 * mi/mi-parse.c (mi_parse): Likewise.
14124 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14125 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14126 * observer.c (xalloc_observer_list_node): Likewise.
14127 * regcache.c (regcache_xmalloc_1): Likewise.
14128 * reggroups.c (reggroup_new): Likewise.
14129 (_initialize_reggroup): Likewise.
14130 * registry.c (register_data_with_cleanup): Likewise.
14131 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14132 * ser-base.c (serial_ttystate): Likewise.
14133 * ser-mingw.c (make_pipe_state): Likewise.
14134 * ser-pipe.c (pipe_open): Likewise.
14135 * serial.c (serial_open): Likewise.
14136 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14137 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14138 (tui_alloc_win_info): Likewise.
14139 (tui_add_content_elements): Likewise.
14140 * tui/tui-file.c (tui_file_new): Likewise.
14141 * tui/tui-out.c (tui_out_new): Likewise.
14142 * ui-file.c (mem_file_new): Likewise.
14143 * ui-out.c (push_level): Likewise.
14144 (make_cleanup_ui_out_end): Likewise.
14145 (append_header_to_list): Likewise.
14146 (ui_out_new): Likewise.
14147 * user-regs.c (user_reg_add_builtin): Likewise.
14148
14149 2014-01-13 Tom Tromey <tromey@redhat.com>
14150
14151 * defs.h (XZALLOC): Remove.
14152 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14153 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14154 (get_ada_tasks_inferior_data): Likewise.
14155 * auto-load.c (get_auto_load_pspace_data): Likewise.
14156 * auxv.c (get_auxv_inferior_data): Likewise.
14157 * bfd-target.c (target_bfd_reopen): Likewise.
14158 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14159 (deprecated_insert_raw_breakpoint): Likewise.
14160 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14161 * corelow.c (core_open): Likewise.
14162 * darwin-nat.c (darwin_check_new_threads): Likewise.
14163 (darwin_attach_pid): Likewise.
14164 * dummy-frame.c (dummy_frame_push): Likewise.
14165 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14166 * dwarf2loc.c (allocate_piece_closure): Likewise.
14167 * elfread.c (elf_symfile_segments): Likewise.
14168 * eval.c (ptrmath_type_p): Likewise.
14169 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14170 * gdbtypes.c (alloc_type_arch): Likewise.
14171 (alloc_type_instance): Likewise.
14172 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14173 * inf-child.c (inf_child_can_use_agent): Likewise.
14174 * inflow.c (get_inflow_inferior_data): Likewise.
14175 * infrun.c (save_infcall_suspend_state): Likewise.
14176 * jit.c (jit_reader_load): Likewise.
14177 (get_jit_objfile_data): Likewise.
14178 (get_jit_program_space_data): Likewise.
14179 (jit_object_open_impl): Likewise.
14180 (jit_symtab_open_impl): Likewise.
14181 (jit_block_open_impl): Likewise.
14182 (jit_frame_sniffer): Likewise.
14183 * linux-fork.c (add_fork): Likewise.
14184 * maint.c (make_command_stats_cleanup): Likewise.
14185 * objfiles.c (get_objfile_pspace_data): Likewise.
14186 * opencl-lang.c (struct lval_closure): Likewise.
14187 * osdata.c (osdata_start_osdata): Likewise.
14188 * progspace.c (new_address_space): Likewise.
14189 (add_program_space): Likewise.
14190 * remote-sim.c (get_sim_inferior_data): Likewise.
14191 * sh-tdep.c (sh_gdbarch_init): Likewise.
14192 * skip.c (Ignore): Likewise.
14193 (skip_delete_command): Likewise.
14194 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14195 (library_list_start_library): Likewise.
14196 (solib_aix_current_sos): Likewise.
14197 * solib-darwin.c (get_darwin_info): Likewise.
14198 (darwin_current_sos): Likewise.
14199 * solib-dsbt.c (get_dsbt_info): Likewise.
14200 * solib-ia64-hpux.c (new_so_list): Likewise.
14201 (ia64_hpux_get_solib_linkage_addr): Likewise.
14202 * solib-spu.c (append_ocl_sos): Likewise.
14203 (spu_current_sos): Likewise.
14204 * solib-svr4.c (get_svr4_info): Likewise.
14205 (svr4_keep_data_in_core): Likewise.
14206 (library_list_start_library): Likewise.
14207 (svr4_default_sos): Likewise.
14208 (svr4_read_so_list): Likewise.
14209 * solib-target.c (library_list_start_library): Likewise.
14210 (solib_target_current_sos): Likewise.
14211 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14212 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14213 * symfile.c (default_symfile_segments): Likewise.
14214 * target-descriptions.c (tdesc_data_init): Likewise.
14215 (tdesc_create_reg): Likewise.
14216 (struct tdesc_type *): Likewise.
14217 (tdesc_create_vector): Likewise.
14218 (tdesc_set_struct_size): Likewise.
14219 (struct tdesc_type *): Likewise.
14220 (tdesc_free_feature): Likewise.
14221 (tdesc_create_feature): Likewise.
14222 * windows-nat.c (windows_add_thread): Likewise.
14223 (windows_make_so): Likewise.
14224 * xml-support.c (gdb_xml_body_text): Likewise.
14225 (gdb_xml_create_parser_and_cleanup): Likewise.
14226 (xml_process_xincludes): Likewise.
14227 * xml-syscall.c (allocate_syscalls_info): Likewise.
14228 (syscall_create_syscall_desc): Likewise.
14229
14230 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14231
14232 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14233 function, with code from i386_stap_parse_special_token.
14234 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14235 (i386_stap_parse_special_token): Move code to the two functions
14236 above; simplify it.
14237
14238 2014-01-09 Pedro Alves <palves@redhat.com>
14239 Hui Zhu <hui@codesourcery.com>
14240
14241 PR gdb/16101
14242 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14243 bp_err_string. Don't mark the location shlib_disabled if the
14244 error thrown wasn't a generic or memory error. Catch errors
14245 thrown while inserting breakpoints in overlayed code. Output
14246 error message of software breakpoints.
14247 * remote.c (remote_insert_breakpoint): If this breakpoint has
14248 target-side commands but this stub doesn't support Z0 packets,
14249 throw NOT_SUPPORTED_ERROR error.
14250 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14251 * target.h (target_insert_breakpoint): Extend comment.
14252 (target_insert_hw_breakpoint): Add comment.
14253
14254 2014-01-08 Pedro Alves <palves@redhat.com>
14255
14256 * remote.c (remote_add_thread): Add threads silently if starting
14257 up.
14258 (remote_notice_new_inferior): If in all-stop, and starting up,
14259 don't call notice_new_inferior.
14260 (get_current_thread): New function, factored out from ...
14261 (add_current_inferior_and_thread): ... this. Adjust.
14262 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14263 found any thread, then select the remote's current thread as GDB's
14264 current thread too.
14265
14266 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14267
14268 * NEWS: Create a new section for the next release branch.
14269 Rename the section of the current branch, now that it has
14270 been cut.
14271
14272 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14273
14274 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14275 * version.in: Bump version to 7.7.50.DATE-cvs.
14276
14277 2014-01-08 Yao Qi <yao@codesourcery.com>
14278
14279 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14280 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14281 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14282
14283 2014-01-08 Yao Qi <yao@codesourcery.com>
14284
14285 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14286 return value of bfd_get_filename to symbol_file_add_from_bfd.
14287
14288 2014-01-08 Pierre Muller <muller@sourceware.org>
14289
14290 Fix PR16201.
14291 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14292 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14293 to prim_record_mininal_symbol_and_info.
14294 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14295 in call to prim_record_minimal_symbol_and_info.
14296 (read_pe_exported_syms): Set index field of section_data.
14297
14298 2014-01-07 Andrew Pinski <apinski@cavium.com>
14299
14300 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14301 * features/aarch64.c: Regenerate.
14302
14303 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14304
14305 * target.c (return_null): Define.
14306 (update_current_target): Use it instead of return_zero for
14307 functions that return a pointer.
14308
14309 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14310
14311 * source.c (add_path): Fix check for duplicated paths in the previously
14312 included paths.
14313
14314 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14315
14316 * ada-lang.c: Remove duplicated include statements.
14317 * alphabsd-nat.c: Ditto.
14318 * amd64-darwin-tdep.c: Ditto.
14319 * amd64fbsd-nat.c: Ditto.
14320 * auto-load.c: Ditto.
14321 * ax-gdb.c: Ditto.
14322 * breakpoint.c: Ditto.
14323 * dbxread.c: Ditto.
14324 * fork-child.c: Ditto.
14325 * gdb_usleep.c: Ditto.
14326 * i386-darwin-tdep.c: Ditto.
14327 * i386fbsd-nat.c: Ditto.
14328 * infcmd.c: Ditto.
14329 * inferior.c: Ditto.
14330 * jv-lang.c: Ditto.
14331 * linux-nat.c: Ditto.
14332 * linux-tdep.c: Ditto.
14333 * m68kbsd-nat.c: Ditto.
14334 * m68klinux-nat.c: Ditto.
14335 * microblaze-tdep.c: Ditto.
14336 * mips-linux-tdep.c: Ditto.
14337 * mn10300-tdep.c: Ditto.
14338 * nto-tdep.c: Ditto.
14339 * opencl-lang.c: Ditto.
14340 * osdata.c: Ditto.
14341 * printcmd.c: Ditto.
14342 * regcache.c: Ditto.
14343 * remote-m32r-sdi.c: Ditto.
14344 * remote.c: Ditto.
14345 * symfile.c: Ditto.
14346 * symtab.c: Ditto.
14347 * tilegx-linux-nat.c: Ditto.
14348 * tilegx-tdep.c: Ditto.
14349 * tracepoint.c: Ditto.
14350 * valops.c: Ditto.
14351 * vaxbsd-nat.c: Ditto.
14352 * windows-nat.c: Ditto.
14353 * xtensa-tdep.c: Ditto.
14354
14355 2014-01-07 Yao Qi <yao@codesourcery.com>
14356
14357 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14358
14359 2014-01-07 Yao Qi <yao@codesourcery.com>
14360 Joel Brobecker <brobecker@adacore.com>
14361
14362 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14363 (pdc_write_regs): Likewise.
14364 (fetch_regs_kernel_thread): Likewise.
14365 (store_regs_kernel_thread): Likewise.
14366
14367 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14368
14369 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14370 tagged type objects to their actual type.
14371
14372 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14373
14374 * ada-valprint.c (print_field_values): Add "language" parameter.
14375 Update calls to print_field_values and print_variant_part.
14376 Pass new parameter "language" in call to val_print instead
14377 of "current_language". Replace call to ada_val_print by call
14378 to val_print.
14379 (print_variant_part): Add "language" parameter.
14380 (ada_val_print_struct_union): Update call to print_field_values.
14381
14382 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14383
14384 * ada-valprint.c (ui_memcpy): Delete.
14385 (ada_print_floating): Update documentation. Add empty line
14386 between between function documentation and implementation.
14387 Delete variable "buffer". Use ui_file_xstrdup in place of
14388 ui_file_put. Minor adjustments following this change.
14389
14390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14391
14392 * ada-valprint.c (ada_val_print_string): New function,
14393 extracted from ada_val_print_array.
14394 (ada_val_print_array): Replace extracted code by call
14395 to ada_val_print_string followed by a return. Move
14396 "else" branch to the function's top block.
14397
14398 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14399
14400 * ada-valprint.c (ada_val_print_array): Move implementation
14401 down. Rename parameter "offset" and "val" into "offset_aligned"
14402 and "original_value" respectively. Add parameter "offset".
14403
14404 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14405
14406 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14407 re-organizing the code. Change the "???" message printed
14408 when target type is a TYPE_CODE_UNDEF into
14409 "<ref to undefined type>".
14410
14411 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14412
14413 * ada-valprint.c (print_record): Delete, implementation inlined...
14414 (ada_val_print_struct_union): ... here. Remove call to
14415 ada_check_typedef in inlined implementation.
14416
14417 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14418
14419 * ada-valprint.c (ada_val_print_gnat_array): New function,
14420 extracted from ada_val_print_1;
14421 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14422 (ada_val_print_flt, ada_val_print_struct_union)
14423 (ada_val_print_ref): Likewise.
14424 (ada_val_print_1): Delete variables i and elttype.
14425 Replace extracted-out code by call to corresponding
14426 new functions.
14427
14428 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14429
14430 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14431
14432 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14433
14434 * ada-valprint.c (ada_val_print_1): Replace calls to
14435 ada_val_print_1 by calls to val_print.
14436
14437 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14438
14439 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14440 Update calls to self accordingly. Replace calls to c_val_print
14441 by calls to val_print.
14442
14443 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14444
14445 * ada-valprint.c (print_record): Delete declaration.
14446 (adjust_type_signedness, ada_val_print_1): Likewise.
14447 (ada_val_print): Move function implementation down.
14448 (print_variant_part, print_field_values, print_record):
14449 Move function implementation up.
14450
14451 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14452
14453 * python/py-type.c (typy_get_name): New function.
14454 (type_object_getset): Add entry for attribute "name".
14455 * NEWS: Add entry mentioning this new attribute.
14456
14457 2014-01-07 Yao Qi <yao@codesourcery.com>
14458
14459 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14460 statement.
14461
14462 2014-01-07 Yao Qi <yao@codesourcery.com>
14463
14464 * gnu-nat.c (info_port_rights): Add qualifier const to
14465 argument args.
14466
14467 2014-01-07 Yao Qi <yao@codesourcery.com>
14468
14469 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14470
14471 2014-01-07 Yao Qi <yao@codesourcery.com>
14472
14473 * gnu-nat.c (make_inf) Update declaration.
14474 (make_inf): Make it static.
14475 (inf_set_traced): Likewise.
14476 (inf_port_to_thread, inf_task_died_status): Likewise.
14477
14478 2014-01-07 Yao Qi <yao@codesourcery.com>
14479
14480 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14481
14482 2014-01-07 Yao Qi <yao@codesourcery.com>
14483
14484 * gnu-nat.c (_initialize_gnu_nat): Declare.
14485
14486 2014-01-07 Yao Qi <yao@codesourcery.com>
14487
14488 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14489 'enum bfd_endian'.
14490 (struct gdbarch_info) <byte_order>: Change type to
14491 'enum bfd_endian'.
14492 <byte_order_for_code>: Likewise.
14493 * gdbarch.c, gdbarch.h: Regenerated.
14494
14495 2014-01-06 Sasha Smundak <asmundak@google.com>
14496
14497 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14498
14499 2014-01-06 Tom Tromey <tromey@redhat.com>
14500
14501 * doublest.c (convert_doublest_to_floatformat): Use const, not
14502 CONST.
14503 * somread.c (som_symtab_read): Likewise.
14504
14505 2014-01-07 Hui Zhu <hui@codesourcery.com>
14506
14507 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14508 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14509 (gdb_bfd_fopen): Ditto.
14510 (gdb_bfd_openr): Ditto.
14511 (gdb_bfd_openw): Ditto.
14512 (gdb_bfd_openr_iovec): Ditto.
14513 (gdb_bfd_fdopenr): Ditto.
14514 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14515 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14516 with xstrdup.
14517 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14518 with xstrdup.
14519 * symfile-mem.c (symbol_file_add_from_memory): Removed
14520 gdb_bfd_stash_filename.
14521
14522 2014-01-03 Doug Evans <dje@google.com>
14523
14524 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14525 output.
14526
14527 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14528
14529 Update year range in copyright notice of all files.
14530
14531 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14532
14533 * top.c (print_gdb_version): Set copyright year to 2014.
14534
14535 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14536
14537 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14538
14539 For older changes see ChangeLog-2013.
14540 \f
14541 Local Variables:
14542 mode: change-log
14543 left-margin: 8
14544 fill-column: 74
14545 version-control: never
14546 coding: utf-8
14547 End:
This page took 0.364904 seconds and 4 git commands to generate.