TUI: don't let exceptions escape while handling readline key bindings
[binutils-gdb.git] / gdb / ChangeLog
1 2014-10-29 Pedro Alves <palves@redhat.com>
2
3 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
4 TRY_CATCH.
5
6 2014-10-29 Joel Brobecker <brobecker@adacore.com>
7
8 * arm-tdep.c (arm_skip_stack_protector): Return early if
9 address loaded by first "ldr" instruction does not have
10 a corresponding minimal symbol. Update comment.
11
12 2014-10-29 Yao Qi <yao@codesourcery.com>
13
14 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
15 loaded address correctly of ldr instruction.
16
17 2014-10-28 Pedro Alves <palves@redhat.com>
18
19 PR gdb/12623
20 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
21 field.
22 * infrun.c (resume) <stepping breakpoint instruction>: Set the
23 thread's stepped_breakpoint field. Skip if reverse debugging.
24 Add comment.
25 (init_thread_stepping_state, handle_signal_stop): Clear the
26 thread's stepped_breakpoint field.
27
28 2014-10-27 Pedro Alves <palves@redhat.com>
29
30 * remote.c (remote_thread_alive): New, factored out from ...
31 (remote_thread_alive): ... this.
32 (remote_update_thread_list): Bail out before deleting threads if
33 the target returned an empty list, and, the current thread has a
34 magic/fake ptid.
35
36 2014-10-27 Pedro Alves <palves@redhat.com>
37
38 * infrun.c (handle_signal_stop): Also skip handlers when a random
39 signal arrives while handling a "stepi" or a "nexti". Set the
40 thread's 'step_after_step_resume_breakpoint' flag.
41
42 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
43
44 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
45 (arm_record_ld_st_imm_offset): Reimplement to cover all
46 load/store cases for ARM opcode 010.
47 (arm_record_ld_st_multiple): Reimplement to cover all
48 load/store cases for ARM opcode 100.
49
50 2014-10-26 Doug Evans <xdje42@gmail.com>
51
52 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
53
54 2014-10-26 Doug Evans <xdje42@gmail.com>
55
56 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
57 parameter "kind" to "block_index".
58 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
59 "block_index".
60 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
61
62 2014-10-26 Doug Evans <xdje42@gmail.com>
63
64 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
65
66 2014-10-26 Doug Evans <xdje42@gmail.com>
67
68 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
69 obstack_alloc.
70
71 2014-10-26 Doug Evans <xdje42@gmail.com>
72
73 * parser-defs.h (block_found): Move decl from here ...
74 * symtab.h (block_found): ... to here.
75
76 2014-10-26 Doug Evans <xdje42@gmail.com>
77
78 * symtab.h (struct field_of_this_result): Fix typo in comment.
79 (lookup_symbol_in_language): Move function comment here.
80 (lookup_symbol): Improve function comment.
81 (basic_lookup_symbol_nonlocal): Ditto.
82 (lookup_symbol_static, lookup_symbol_global): Ditto.
83 (lookup_symbol_aux_block): Ditto.
84 (lookup_language_this): Add function comment.
85 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
86 function comment.
87 (lookup_block_symbol): Improve function comment.
88 (lookup_struct): Fix capitalization in function comment.
89 (lookup_transparent_type): Add function comment.
90 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
91 Improve function comment.
92 (lookup_objfile_from_block): Add function comment.
93 * symtab.c (lookup_symbol_in_language): Update function comment.
94 (lookup_symbol, lookup_language_this): Ditto.
95 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
96 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
97 (basic_lookup_symbol_nonlocal): Ditto.
98 (lookup_symbol_static, lookup_symbol_global): Ditto.
99 (lookup_transparent_type, lookup_block_symbol): Ditto.
100
101 2014-10-25 Doug Evans <xdje42@gmail.com>
102
103 * symtab.c (types_info): Delete forward decl.
104 (functions_info, variables_info, sources_info): Ditto.
105 (_initialize_symtab): Rewrite forward decl to use
106 initialize_file_ftype.
107
108 2014-10-25 Doug Evans <xdje42@gmail.com>
109
110 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
111
112 2014-10-25 Doug Evans <xdje42@gmail.com>
113
114 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
115 of local var child_die.
116
117 2014-10-24 Don Breazeal <donb@codesourcery.com>
118
119 * infrun.c (follow_fork_inferior): Update fork message printing
120 to use target_terminal_ours_for_output instead of
121 target_terminal_ours, to use _() for all format strings, to print
122 "vfork" instead of "fork" for vforks, and to add a detach message.
123 (handle_vfork_child_exec_or_exit): Update message printing to use
124 target_terminal_ours_for_output instead of target_terminal_ours, to
125 use _() for all format strings, and to fix some formatting.
126
127 2014-10-24 Pedro Alves <palves@redhat.com>
128
129 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
130 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
131 * config/vax/vax.mh: Delete.
132 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
133 obsolete configurations section.
134 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
135 * vax-nat.c: Delete file.
136
137 2014-10-24 Pedro Alves <palves@redhat.com>
138
139 * NEWS (Removed targets): Add OS/arch column.
140
141 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
142
143 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
144 on the arg type of a constructor only if it is of reference type.
145
146 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
147
148 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
149 accessors and constants from nios2 opcodes update.
150 (nios2_get_next_pc): Likewise.
151
152 2014-10-19 Doug Evans <xdje42@gmail.com>
153
154 * gdbthread.h (set_running): Fix comment.
155 (set_executing, finish_thread_state): Fix comment.
156
157 2014-10-18 Doug Evans <xdje42@gmail.com>
158
159 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
160
161 2014-10-17 Doug Evans <dje@google.com>
162
163 * NEWS: Mention new event gdb.clear_objfiles.
164 * python/py-event.h (emit_clear_objfiles_event): Clear
165 * python/py-events.h (events_object): New member clear_objfiles.
166 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
167 event.
168 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
169 emit clear_objfiles event.
170 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
171 function.
172 (emit_clear_objfiles_event): New function.
173 (clear_objfiles): New event.
174 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
175 Declare.
176 * python/python.c (_initialize_python): Call
177 gdbpy_initialize_clear_objfiles_event.
178
179 2014-10-17 Doug Evans <dje@google.com>
180
181 * NEWS: Mention new gdb.Objfile.progspace attribute.
182 * python/py-objfile.c (objfpy_get_progspace): New function.
183 (objfile_getset): New entry for "progspace".
184
185 2014-10-17 Pedro Alves <palves@redhat.com>
186
187 PR gdb/17471
188 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
189 returns a copy of the input.
190 (run_command_1, continue_command, step_1, jump_command)
191 (signal_command, until_command, advance_command, finish_command)
192 (attach_command): Adjust and install a cleanup to free the
193 stripped args.
194
195 2014-10-17 Pedro Alves <palves@redhat.com>
196
197 PR gdb/17300
198 * infcmd.c (continue_1): If continuing all threads in the
199 foreground, make sure the inferior's terminal settings are put in
200 effect.
201
202 2014-10-17 Pedro Alves <palves@redhat.com>
203
204 PR gdb/17472
205 * annotate.c (annotate_breakpoints_invalid): Use
206 target_terminal_our_for_output instead of target_terminal_ours.
207 Give back the terminal to the target.
208 (annotate_frames_invalid): Likewise.
209
210 2014-10-17 Pedro Alves <palves@redhat.com>
211
212 * target.c (enum terminal_state): New enum.
213 (terminal_state): New global.
214 (target_terminal_init): New function.
215 (target_terminal_inferior): Skip if inferior already owns the
216 terminal.
217 (target_terminal_ours, target_terminal_ours_for_output): New
218 functions.
219 * target.h (target_terminal_init): Convert to function prototype.
220 (target_terminal_ours_for_output): Convert to function prototype
221 and tweak comment.
222 (target_terminal_ours): Convert to function prototype and tweak
223 comment.
224 * windows-nat.c (do_initial_windows_stuff): Call
225 target_terminal_init instead of child_terminal_init_with_pgrp.
226
227 2014-10-17 Pedro Alves <palves@redhat.com>
228
229 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
230 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
231 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
232 solib-osf.c.
233 * NEWS: Mention that support for alpha*-*-osf* has been removed.
234 * ada-lang.h [__alpha__ && __osf__]
235 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
236 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
237 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
238 GDB_OSABI_OSF1.
239 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
240 files.
241 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
242 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
243 * configure: Regenerate.
244 * configure.ac: Remove references to osf.
245 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
246 section. Remove all other references to osf.
247 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
248 Remove all other references to osf.
249 * dec-thread.c: Delete file.
250 * defs.h (GDB_OSABI_OSF1): Delete.
251 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
252 defined.
253 * osabi.c (gdb_osabi_names): Delete "OSF/1".
254 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
255 Delete code.
256 (unconditionally_kill_inferior)
257 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
258 * solib-osf.c: Delete file.
259
260 2014-10-17 Pedro Alves <palves@redhat.com>
261
262 * remote.c (clear_threads_listing_context): Move higher up, out of
263 the HAVE_LIBEXPAT guard.
264
265 2014-10-16 Tristan Gingold <gingold@adacore.com>
266
267 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
268 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
269 on amd64.
270
271 2014-10-15 Pedro Alves <palves@redhat.com>
272
273 * dec-thread.c (dec_thread_count_gdb_threads)
274 (dec_thread_add_gdb_thread): Delete.
275 (dec_thread_update_thread_list): Delete.
276 (dec_thread_find_new_threads): Rename to ...
277 (dec_thread_update_thread_list): ... this. Delete GDB-size
278 threads that are no longer found in dec_thread_list.
279 (resync_thread_list): Delete.
280 (dec_thread_wait): Call dec_thread_update_thread_list instead of
281 resync_thread_list.
282
283 2014-10-15 Pedro Alves <palves@redhat.com>
284
285 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
286 * remote.c (remote_update_thread_list): Skip calling prune_threads
287 if any thread listing method is supported, and instead walk over
288 the set of remote threads listed, deleting those that are not
289 found in GDB's thread list.
290
291 2014-10-15 Pedro Alves <palves@redhat.com>
292
293 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
294 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
295 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
296 (bsd_uthread_target): Adjust.
297 * corelow.c (core_open): Adjust.
298 * dec-thread.c (dec_thread_find_new_threads): Update comment.
299 (dec_thread_update_thread_list): New function.
300 (init_dec_thread_ops): Adjust.
301 * gdbthread.h (prune_threads): New declaration.
302 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
303 (thread_db_update_thread_list): ... this. Call prune_threads.
304 (init_thread_db_ops): Adjust.
305 * nto-procfs.c (procfs_find_new_threads): Rename to ...
306 (procfs_update_thread_list): ... this. Call prune_threads.
307 (procfs_attach, procfs_create_inferior, init_procfs_targets):
308 Adjust.
309 * obsd-nat.c (obsd_find_new_threads): Rename to ...
310 (obsd_update_thread_list): ... this. Call prune_threads.
311 (obsd_add_target): Adjust.
312 * procfs.c (procfs_target): Adjust.
313 (procfs_notice_thread): Update comment.
314 (procfs_find_new_threads): Rename to ...
315 (procfs_update_thread_list): ... this. Call prune_threads.
316 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
317 comment.
318 (ravenscar_wait): Adjust.
319 (ravenscar_find_new_threads): Rename to ...
320 (ravenscar_update_thread_list): ... this. Call prune_threads.
321 (init_ravenscar_thread_ops): Adjust.
322 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
323 (record_btrace_update_thread_list): ... this. Adjust comment.
324 (init_record_btrace_ops): Adjust.
325 * remote.c (remote_threads_info): Rename to ...
326 (remote_update_thread_list): ... this. Call prune_threads.
327 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
328 Adjust.
329 * sol-thread.c (check_for_thread_db): Adjust.
330 (sol_find_new_threads_callback): Rename to ...
331 (sol_update_thread_list_callback): ... this.
332 (sol_find_new_threads): Rename to ...
333 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
334 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
335 * target-delegates.c: Regenerate.
336 * target.c (target_find_new_threads): Rename to ...
337 (target_update_thread_list): ... this.
338 * target.h (struct target_ops): Rename to_find_new_threads field
339 to to_update_thread_list.
340 (target_find_new_threads): Rename to ...
341 (target_update_thread_list): ... this.
342 * thread.c (prune_threads): Make extern.
343 (update_thread_list): Adjust.
344
345 2014-10-15 Pedro Alves <palves@redhat.com>
346
347 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
348 Add describing comment. Return -1 if the qL packet is not
349 supported.
350 (struct thread_item, thread_item_t): Move higher up in
351 the file. Add comments.
352 (struct threads_parsing_context): Move higher up in
353 the file, add comments, and remote to ...
354 (struct threads_listing_context): ... this.
355 (remote_newthread_step): Don't add the thread to GDB's thread
356 database here. Instead push it to the thread_listing_context
357 list.
358 (remote_find_new_threads): Rename to ...
359 (remote_get_threads_with_ql): ... this. Add target_ops and
360 targets_listing_context parameters. Pass down context.
361 (start_thread): Adjust.
362 (clear_threads_parsing_context): Rename to ...
363 (clear_threads_listing_context): ... this.
364 (remote_get_threads_with_qxfer): New, with parts salvaged from old
365 remote_threads_info.
366 (remote_get_threads_with_qthreadinfo): Ditto.
367 (remote_threads_info): Reimplement.
368
369 2014-10-15 Pedro Alves <palves@redhat.com>
370
371 * infrun.c (resume): Don't force displaced-stepping for all
372 single-steps on software single-stepping archs.
373
374 2014-10-15 Pedro Alves <palves@redhat.com>
375
376 * breakpoint.c (single_step_breakpoints): Delete global.
377 (insert_single_step_breakpoint): Adjust to store the breakpoint
378 pointer in the current thread.
379 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
380 (cancel_single_step_breakpoints): Delete functions.
381 (breakpoint_has_location_inserted_here): Make extern.
382 (single_step_breakpoint_inserted_here_p): Adjust to walk the
383 breakpoint list.
384 * breakpoint.h (breakpoint_has_location_inserted_here): New
385 declaration.
386 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
387 (cancel_single_step_breakpoints): Remove declarations.
388 * gdbthread.h (struct thread_control_state)
389 <single_step_breakpoints>: New field.
390 (delete_single_step_breakpoints)
391 (thread_has_single_step_breakpoints_set)
392 (thread_has_single_step_breakpoint_here): New declarations.
393 * infrun.c (follow_exec): Also clear the single-step breakpoints.
394 (singlestep_breakpoints_inserted_p, singlestep_ptid)
395 (singlestep_pc): Delete globals.
396 (infrun_thread_ptid_changed): Remove references to removed
397 globals.
398 (resume_cleanups): Delete the current thread's single-step
399 breakpoints.
400 (maybe_software_singlestep): Remove references to removed globals.
401 (resume): Adjust to use thread_has_single_step_breakpoints_set and
402 delete_single_step_breakpoints.
403 (init_wait_for_inferior): Remove references to removed globals.
404 (delete_thread_infrun_breakpoints): Delete the thread's
405 single-step breakpoints too.
406 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
407 single-step breakpoints here.
408 (delete_stopped_threads_single_step_breakpoints): New function.
409 (adjust_pc_after_break): Adjust to use
410 thread_has_single_step_breakpoints_set.
411 (handle_inferior_event): Remove references to removed globals.
412 Use delete_stopped_threads_single_step_breakpoints.
413 (handle_signal_stop): Adjust to per-thread single-step
414 breakpoints. Swap test order to do cheaper tests first.
415 (switch_back_to_stepped_thread): Extend debug output. Remove
416 references to removed globals.
417 * record-full.c (record_full_wait_1): Adjust to per-thread
418 single-step breakpoints.
419 * thread.c (delete_single_step_breakpoints)
420 (thread_has_single_step_breakpoints_set)
421 (thread_has_single_step_breakpoint_here): New functions.
422 (clear_thread_inferior_resources): Also delete the thread's
423 single-step breakpoints.
424
425 2014-10-15 Pedro Alves <palves@redhat.com>
426
427 * thread.c (delete_thread_breakpoint): New function.
428 (delete_step_resume_breakpoint)
429 (delete_exception_resume_breakpoint): Use it.
430 (delete_at_next_stop): New function.
431 (clear_thread_inferior_resources): Use delete_at_next_stop.
432
433 2014-10-15 Pedro Alves <palves@redhat.com>
434
435 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
436 (breakpoint_inserted_here_p): ... here. Remove special case for
437 software single-step breakpoints.
438 (find_non_raw_software_breakpoint_inserted_here): Inline ...
439 (software_breakpoint_inserted_here_p): ... here. Remove special
440 case for software single-step breakpoints.
441 (bp_target_info_copy_insertion_state)
442 (deprecated_insert_raw_breakpoint)
443 (deprecated_remove_raw_breakpoint): Delete functions.
444 * breakpoint.h (deprecated_insert_raw_breakpoint)
445 (deprecated_remove_raw_breakpoint): Remove declarations.
446
447 2014-10-15 Pedro Alves <palves@redhat.com>
448
449 PR breakpoints/9649
450 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
451 Delete array globals.
452 (single_step_breakpoints): New global.
453 (breakpoint_xfer_memory): Remove special handling for single-step
454 breakpoints.
455 (update_breakpoints_after_exec): Delete bp_single_step
456 breakpoints.
457 (detach_breakpoints): Remove special handling for single-step
458 breakpoints.
459 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
460 (bpstat_stop_status): Add comment.
461 (bpstat_what, bptype_string, print_one_breakpoint_location)
462 (adjust_breakpoint_address, init_bp_location): Handle
463 bp_single_step.
464 (new_single_step_breakpoint): New function.
465 (set_momentary_breakpoint, bkpt_remove_location): Remove special
466 handling for single-step breakpoints.
467 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
468 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
469 Rewrite.
470 (detach_single_step_breakpoints, find_single_step_breakpoint):
471 Delete functions.
472 (breakpoint_has_location_inserted_here): New function.
473 (single_step_breakpoint_inserted_here_p): Rewrite.
474 * breakpoint.h: Remove FIXME.
475 (enum bptype) <bp_single_step>: New enum value.
476 (insert_single_step_breakpoint): Update comment.
477 * infrun.c (resume_cleanups)
478 (delete_step_thread_step_resume_breakpoint): Remove single-step
479 breakpoints.
480 (fetch_inferior_event): Install a cleanup that removes infrun
481 breakpoints.
482 (switch_back_to_stepped_thread) <expect thread advanced also>:
483 Clear step-over info.
484
485 2014-10-15 Pedro Alves <palves@redhat.com>
486
487 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
488 (delete_thread_infrun_breakpoints): New function, with parts
489 salvaged from delete_step_resume_breakpoint_callback.
490 (delete_step_thread_step_resume_breakpoint): Delete.
491 (for_each_just_stopped_thread_callback_func): New typedef.
492 (for_each_just_stopped_thread): New function.
493 (delete_just_stopped_threads_infrun_breakpoints): New function.
494 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
495 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
496 ... this. Adjust.
497 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
498
499 2014-10-15 Pedro Alves <palves@redhat.com>
500
501 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
502 trying to step past a non-steppable watchpoint.
503 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
504 field.
505 * infrun.c (struct step_over_info): Add new field
506 'nonsteppable_watchpoint_p' and adjust comments.
507 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
508 Adjust.
509 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
510 (stepping_past_nonsteppable_watchpoint): New function.
511 (step_over_info_valid_p): Also return true if stepping past a
512 nonsteppable watchpoint.
513 (proceed): Adjust call to set_step_over_info. Remove reference to
514 init_infwait_state.
515 (init_wait_for_inferior): Remove reference to init_infwait_state.
516 (waiton_ptid): Delete global.
517 (struct execution_control_state)
518 <stepped_after_stopped_by_watchpoint>: Delete field.
519 (wait_for_inferior, fetch_inferior_event): Always pass
520 minus_one_ptid to target_wait.
521 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
522 field.
523 (init_infwait_state): Delete function.
524 (handle_inferior_event): Remove infwait_state handling.
525 (handle_signal_stop) <watchpoints handling>: Adjust after
526 stepped_after_stopped_by_watchpoint removal. Don't remove
527 breakpoints here nor set infwait_state. Set the thread's
528 stepping_over_watchpoint flag, and call keep_going instead.
529 (keep_going): Handle stepping_over_watchpoint. Adjust
530 set_step_over_info calls.
531 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
532 function.
533
534 2014-10-15 Pedro Alves <palves@redhat.com>
535
536 * infrun.c (step_over_info_valid_p): New function.
537 (resume): Use step_over_info_valid_p instead of checking the
538 threads's trap_expected flag.
539
540 2014-10-15 Doug Evans <dje@google.com>
541 Walfred Tedeschi <walfred.tedeschi@intel.com>
542
543 PR python/17364
544 * python/lib/gdb/__init__.py (packages): Add "printer".
545 * python/lib/gdb/command/bound_registers.py: Moved to ...
546 * python/lib/gdb/printer/bound_registers.py: ... here.
547 Add printer to global set of builtin printers. Rename printer from
548 "bound" to "mpx_bound128".
549 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
550 registered as global "builtin" printer.
551 (add_builtin_pretty_printer): New function.
552 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
553 gdb/printer/__init__.py.
554
555 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
556
557 * Makefile.in (SFILES): Remove d-support.c.
558 (COMMON_OBS): Remove d-support.o.
559 * d-lang.h (d_parse_symbol): Remove declaration.
560 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
561 * d-support.c: Remove file.
562
563 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
564
565 * gdb/infrun.c (process_event_stop_test): Apply
566 gdbarch_addr_bits_remove to longjmp resume address.
567
568 2014-10-15 Pedro Alves <palves@redhat.com>
569
570 * regformats/microblaze.dat: Delete file.
571
572 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
573
574 * features/Makefile (microblaze-expedite): Replace pc with rpc.
575 * regformats/microblaze-with-stack-protect.dat: Regenerate.
576
577 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
578
579 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
580 as non-trivial.
581
582 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
583
584 PR c++/13403
585 PR c++/15154
586 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
587 with qualified args.
588
589 2014-10-14 Joel Brobecker <brobecker@adacore.com>
590
591 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
592 of the case where the second operand is a pointer.
593 <BINOP_SUB>: Likewise.
594
595 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
596
597 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
598 only if it is not NULL.
599 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
600 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
601 (struct probe_ops) <clear_semaphore>: Likewise.
602 * tracepoint.c (start_tracing): Call set_semaphore only if it is
603 not NULL.
604 (stop_tracing): Likewise, for clear_semaphore.
605
606 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
607
608 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
609 using language_c, instead of current_language.
610
611 2014-10-13 Doug Evans <dje@google.com>
612
613 * python/py-objfile.c (objfpy_initialize): New function.
614 (objfpy_new, objfile_to_objfile_object): Call it.
615 * python/py-progspace.c (pspy_initialize): New function.
616 (pspy_new, pspace_to_pspace_object): Call it.
617
618 2014-10-13 Miroslav Franc <mfranc@redhat.com>
619 Jan Kratochvil <jan.kratochvil@redhat.com>
620
621 Fix "save breakpoints" for "catch" command.
622 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
623 newline.
624
625 2014-10-12 Miroslav Franc <mfranc@redhat.com>
626
627 Fix "save breakpoints" for "disable $bpnum" command.
628 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
629
630 2014-10-10 Pedro Alves <palves@redhat.com>
631
632 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
633 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
634 (HFILES_NO_SRCDIR): Remove solib-irix.h.
635 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
636 and been removed.
637 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
638 * configure.ac: Remove references to IRIX.
639 * configure.host: Add *-*-irix* to the obsolete hosts section.
640 Remove all other references to irix.
641 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
642 Delete files.
643
644 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
645
646 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
647 isn't valid, release the tdesc arch data and return NULL.
648
649 2014-10-10 Pedro Alves <palves@redhat.com>
650
651 * linux-tdep.c: Include observer.h.
652 (linux_inferior_data): New global.
653 (struct linux_info): New structure.
654 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
655 (get_linux_inferior_data): New functions.
656 (linux_vsyscall_range): Rename to ...
657 (linux_vsyscall_range_raw): ... this.
658 (linux_vsyscall_range): New function; handles caching.
659 (_initialize_linux_tdep): Register linux_inferior_data. Install
660 inferior_exit and inferior_appeared observers.
661
662 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
663 Pedro Alves <palves@redhat.com>
664
665 PR symtab/14466
666 * solib-svr4.c (svr4_read_so_list): Rename to ...
667 (svr4_current_sos_1): ... this and change the function comment.
668 (svr4_current_sos): New function.
669
670 2014-10-10 Pedro Alves <palves@redhat.com>
671
672 * arch-utils.c (default_vsyscall_range): New function.
673 * arch-utils.h (default_vsyscall_range): New declaration.
674 * gdbarch.sh (vsyscall_range): New hook.
675 * gdbarch.h, gdbarch.c: Regenerate.
676 * linux-tdep.c (linux_vsyscall_range): New function.
677 (linux_init_abi): Install linux_vsyscall_range as
678 vsyscall_range gdbarch hook.
679 * memrange.c (address_in_mem_range): New function.
680 * memrange.h (address_in_mem_range): New declaration.
681 * symfile-mem.c (find_vdso_size): Delete function.
682 (add_vsyscall_page): Use gdbarch_vsyscall_range.
683
684 2014-10-10 Pedro Alves <palves@redhat.com>
685
686 * infrun.c (normal_stop): Fix typo in comment.
687
688 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
689
690 PR tdep/9390
691 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
692 typo when using logical AND to determine instruction type.
693
694 2014-10-09 Yao Qi <yao@codesourcery.com>
695
696 * infrun.c (handle_signal_stop): Remove local variable
697 'printed'.
698
699 2014-10-08 Stan Shebs <stan@codesourcery.com>
700
701 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
702
703 2014-10-08 Gary Benson <gbenson@redhat.com>
704
705 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
706
707 2014-10-08 Gary Benson <gbenson@redhat.com>
708
709 * common/common-defs.h: Include common-exceptions.h.
710 * exceptions.h: Do not include common-exceptions.h.
711
712 2014-10-08 Gary Benson <gbenson@redhat.com>
713
714 * common/common-defs.h: Include cleanups.h.
715 * common/common-exceptions.c: Do not include cleanups.h.
716 * utils.h: Likewise.
717
718 2014-10-08 Gary Benson <gbenson@redhat.com>
719
720 * ada-lang.c: Do not include exceptions.h.
721 * ada-valprint.c: Likewise.
722 * amd64-tdep.c: Likewise.
723 * auto-load.c: Likewise.
724 * block.c: Likewise.
725 * break-catch-throw.c: Likewise.
726 * breakpoint.c: Likewise.
727 * btrace.c: Likewise.
728 * c-lang.c: Likewise.
729 * cli/cli-cmds.c: Likewise.
730 * cli/cli-interp.c: Likewise.
731 * cli/cli-script.c: Likewise.
732 * completer.c: Likewise.
733 * corefile.c: Likewise.
734 * corelow.c: Likewise.
735 * cp-abi.c: Likewise.
736 * cp-support.c: Likewise.
737 * cp-valprint.c: Likewise.
738 * darwin-nat.c: Likewise.
739 * dwarf2-frame-tailcall.c: Likewise.
740 * dwarf2-frame.c: Likewise.
741 * dwarf2loc.c: Likewise.
742 * dwarf2read.c: Likewise.
743 * eval.c: Likewise.
744 * event-loop.c: Likewise.
745 * event-top.c: Likewise.
746 * f-valprint.c: Likewise.
747 * frame-unwind.c: Likewise.
748 * frame.c: Likewise.
749 * gdbtypes.c: Likewise.
750 * gnu-v2-abi.c: Likewise.
751 * gnu-v3-abi.c: Likewise.
752 * guile/scm-auto-load.c: Likewise.
753 * guile/scm-breakpoint.c: Likewise.
754 * guile/scm-cmd.c: Likewise.
755 * guile/scm-frame.c: Likewise.
756 * guile/scm-lazy-string.c: Likewise.
757 * guile/scm-param.c: Likewise.
758 * guile/scm-symbol.c: Likewise.
759 * guile/scm-type.c: Likewise.
760 * hppa-hpux-tdep.c: Likewise.
761 * i386-tdep.c: Likewise.
762 * inf-loop.c: Likewise.
763 * infcall.c: Likewise.
764 * infcmd.c: Likewise.
765 * infrun.c: Likewise.
766 * interps.c: Likewise.
767 * interps.h: Likewise.
768 * jit.c: Likewise.
769 * linespec.c: Likewise.
770 * linux-nat.c: Likewise.
771 * linux-thread-db.c: Likewise.
772 * m32r-rom.c: Likewise.
773 * main.c: Likewise.
774 * memory-map.c: Likewise.
775 * mi/mi-cmd-break.c: Likewise.
776 * mi/mi-cmd-stack.c: Likewise.
777 * mi/mi-interp.c: Likewise.
778 * mi/mi-main.c: Likewise.
779 * monitor.c: Likewise.
780 * nto-procfs.c: Likewise.
781 * objc-lang.c: Likewise.
782 * p-valprint.c: Likewise.
783 * parse.c: Likewise.
784 * ppc-linux-tdep.c: Likewise.
785 * printcmd.c: Likewise.
786 * probe.c: Likewise.
787 * python/py-auto-load.c: Likewise.
788 * python/py-breakpoint.c: Likewise.
789 * python/py-cmd.c: Likewise.
790 * python/py-finishbreakpoint.c: Likewise.
791 * python/py-frame.c: Likewise.
792 * python/py-framefilter.c: Likewise.
793 * python/py-function.c: Likewise.
794 * python/py-gdb-readline.c: Likewise.
795 * python/py-inferior.c: Likewise.
796 * python/py-infthread.c: Likewise.
797 * python/py-lazy-string.c: Likewise.
798 * python/py-linetable.c: Likewise.
799 * python/py-param.c: Likewise.
800 * python/py-prettyprint.c: Likewise.
801 * python/py-symbol.c: Likewise.
802 * python/py-type.c: Likewise.
803 * python/py-value.c: Likewise.
804 * python/python-internal.h: Likewise.
805 * python/python.c: Likewise.
806 * record-btrace.c: Likewise.
807 * record-full.c: Likewise.
808 * regcache.c: Likewise.
809 * remote-fileio.c: Likewise.
810 * remote-mips.c: Likewise.
811 * remote.c: Likewise.
812 * rs6000-aix-tdep.c: Likewise.
813 * rs6000-nat.c: Likewise.
814 * skip.c: Likewise.
815 * solib-darwin.c: Likewise.
816 * solib-dsbt.c: Likewise.
817 * solib-frv.c: Likewise.
818 * solib-ia64-hpux.c: Likewise.
819 * solib-spu.c: Likewise.
820 * solib-svr4.c: Likewise.
821 * solib.c: Likewise.
822 * spu-tdep.c: Likewise.
823 * stack.c: Likewise.
824 * stap-probe.c: Likewise.
825 * symfile-mem.c: Likewise.
826 * symmisc.c: Likewise.
827 * target.c: Likewise.
828 * thread.c: Likewise.
829 * top.c: Likewise.
830 * tracepoint.c: Likewise.
831 * tui/tui-interp.c: Likewise.
832 * typeprint.c: Likewise.
833 * utils.c: Likewise.
834 * valarith.c: Likewise.
835 * valops.c: Likewise.
836 * valprint.c: Likewise.
837 * value.c: Likewise.
838 * varobj.c: Likewise.
839 * windows-nat.c: Likewise.
840 * xml-support.c: Likewise.
841
842 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
843
844 * mips-tdep.c (add_offset_16): Rewrite to implement what the
845 name implies.
846 (extended_mips16_next_pc): Update accordingly.
847
848 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
849
850 * mips-tdep.c (mips16_instruction_is_compact_branch): New
851 function.
852 (micromips_instruction_is_compact_branch): Likewise.
853 (mips16_scan_prologue): Terminate scanning upon seeing a branch
854 or a compact jump, reaching a jump delay slot, or seeing a
855 second non-prologue instruction.
856 (micromips_scan_prologue): Also terminate scanning upon seeing a
857 compact branch or jump, or reaching a branch or jump delay slot.
858 (mips32_scan_prologue): Terminate scanning upon reaching a branch
859 or jump delay slot, or seeing a second non-prologue instruction.
860 (mips32_instruction_has_delay_slot): Retain instruction
861 examination code only, update arguments accordingly and move
862 instruction fetch pieces to...
863 (mips32_insn_at_pc_has_delay_slot): ... this new function.
864 (micromips_instruction_has_delay_slot): Likewise and to...
865 (micromips_insn_at_pc_has_delay_slot): ... this new function.
866 (mips16_instruction_has_delay_slot): Likewise and to...
867 (mips16_insn_at_pc_has_delay_slot): ... this new function.
868 (mips_single_step_through_delay): Update accordingly.
869 (mips_adjust_breakpoint_address): Likewise.
870
871 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
872
873 * mips-tdep.c (micromips_instruction_has_delay_slot): When
874 !mustbe32 also return 1 for 32-bit instructions.
875 (mips16_instruction_has_delay_slot): Likewise. Add an
876 explanatory comment.
877
878 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
879
880 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
881 symbols special.
882
883 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
884
885 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
886 update comments.
887 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
888 for the breakpoint's address. Don't preinitialize `placed_size'.
889 (insert_bp_location): Set `reqstd_address' rather than
890 `placed_address'.
891 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
892 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
893 address.
894 (bkpt_remove_location): Likewise.
895 (deprecated_insert_raw_breakpoint): Likewise.
896 (deprecated_remove_raw_breakpoint): Likewise.
897 (find_single_step_breakpoint): Likewise.
898 * mem-break.c (default_memory_insert_breakpoint): Use
899 `reqstd_address' for the breakpoint's address. Don't set
900 `placed_address' or `placed_size' if breakpoint contents couldn't
901 have been determined.
902 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
903 the breakpoint's address.
904 (remote_insert_hw_breakpoint): Likewise. Don't set
905 `placed_address' or `placed_size' if breakpoint couldn't have been
906 set.
907 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
908 `reqstd_address' for the breakpoint's address.
909 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
910 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
911 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
912 * microblaze-linux-tdep.c
913 (microblaze_linux_memory_remove_breakpoint): Likewise.
914 * monitor.c (monitor_insert_breakpoint): Likewise.
915 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
916 (procfs_insert_hw_breakpoint): Likewise.
917 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
918 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
919 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
920 * remote-mips.c (mips_insert_breakpoint): Likewise.
921 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
922
923 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
924
925 * valops.c (value_assign): Check for bit field assignments
926 before calling architecture-specific register value
927 conversion functions.
928
929 2014-10-03 Pierre Muller <muller@sourceware.org>
930
931 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
932
933 2014-10-02 Pedro Alves <palves@redhat.com>
934
935 * breakpoint.c (breakpoints_should_be_inserted_now): Use
936 threads_are_executing.
937 * breakpoint.h (breakpoints_should_be_inserted_now): Add
938 describing comment.
939 * gdbthread.h (threads_are_executing): Declare.
940 (handle_signal_stop) <random signals>: Don't print about the
941 signal here if stopping.
942 (end_stepping_range): Don't notify observers here.
943 (normal_stop): Update the thread list. If stopped by a random
944 signal or a stepping range ended, notify observers.
945 * thread.c (threads_executing): New global.
946 (init_thread_list): Clear 'threads_executing'.
947 (set_executing): Set or clear 'threads_executing'.
948 (threads_are_executing): New function.
949 (update_threads_executing): New function.
950 (update_thread_list): Use it.
951
952 2014-10-02 Pedro Alves <palves@redhat.com>
953
954 PR breakpoints/17431
955 * breakpoint.c (update_breakpoints_after_exec): Don't create
956 overlay, longjmp, std terminate nor exception breakpoints here.
957
958 2014-10-02 Pedro Alves <palves@redhat.com>
959
960 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
961 Adjust comments.
962 * inferior.c (find_inferior_for_program_space): Give preference to
963 the current inferior.
964 * inferior.h (find_inferior_for_program_space): Update comment.
965 * progspace.c (switch_to_program_space_and_thread): Prefer the
966 current inferior if it's bound to the program space requested. If
967 the inferior found doesn't have a PID yet, don't bother looking up
968 a thread.
969 * progspace.h (switch_to_program_space_and_thread): Adjust
970 comment.
971 * thread.c (any_thread_of_process, any_live_thread_of_process):
972 Give preference to the current thread.
973
974 2014-10-01 Pedro Alves <palves@redhat.com>
975
976 * breakpoint.c (insert_bp_location): Error out if inserting a
977 software breakpoint at a read-only address.
978 * target.c (memory_xfer_check_region): New function, factored out
979 from ...
980 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
981 ULONGEST.
982 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
983 against the memory region attributes.
984
985 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
986
987 * NEWS: Announce new exit-code field in -list-thread-groups
988 output.
989 * inferior.c (exit_inferior_1): Don't clear exit code.
990 (inferior_appeared): Clear exit code.
991 * mi/mi-main.c (print_one_inferior): Add printing of the exit
992 code.
993
994 2014-10-01 Pedro Alves <palves@redhat.com>
995
996 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
997 GENERATED" along with emacs/vi read-only markers.
998 * regformats/aarch64.dat: Regenerate.
999 * regformats/arm-with-iwmmxt.dat: Regenerate.
1000 * regformats/arm-with-neon.dat: Regenerate.
1001 * regformats/arm-with-vfpv2.dat: Regenerate.
1002 * regformats/arm-with-vfpv3.dat: Regenerate.
1003 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1004 * regformats/i386/amd64-avx.dat: Regenerate.
1005 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1006 * regformats/i386/amd64-avx512.dat: Regenerate.
1007 * regformats/i386/amd64-linux.dat: Regenerate.
1008 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1009 * regformats/i386/amd64-mpx.dat: Regenerate.
1010 * regformats/i386/amd64.dat: Regenerate.
1011 * regformats/i386/i386-avx-linux.dat: Regenerate.
1012 * regformats/i386/i386-avx.dat: Regenerate.
1013 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1014 * regformats/i386/i386-avx512.dat: Regenerate.
1015 * regformats/i386/i386-linux.dat: Regenerate.
1016 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1017 * regformats/i386/i386-mmx.dat: Regenerate.
1018 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1019 * regformats/i386/i386-mpx.dat: Regenerate.
1020 * regformats/i386/i386.dat: Regenerate.
1021 * regformats/i386/x32-avx-linux.dat: Regenerate.
1022 * regformats/i386/x32-avx.dat: Regenerate.
1023 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1024 * regformats/i386/x32-avx512.dat: Regenerate.
1025 * regformats/i386/x32-linux.dat: Regenerate.
1026 * regformats/i386/x32.dat: Regenerate.
1027 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1028 * regformats/mips-dsp-linux.dat: Regenerate.
1029 * regformats/mips-linux.dat: Regenerate.
1030 * regformats/mips64-dsp-linux.dat: Regenerate.
1031 * regformats/mips64-linux.dat: Regenerate.
1032 * regformats/nios2-linux.dat: Regenerate.
1033 * regformats/rs6000/powerpc-32.dat: Regenerate.
1034 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1035 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1036 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1037 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1038 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1039 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1040 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1041 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1042 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1043 * regformats/s390-linux32.dat: Regenerate.
1044 * regformats/s390-linux32v1.dat: Regenerate.
1045 * regformats/s390-linux32v2.dat: Regenerate.
1046 * regformats/s390-linux64.dat: Regenerate.
1047 * regformats/s390-linux64v1.dat: Regenerate.
1048 * regformats/s390-linux64v2.dat: Regenerate.
1049 * regformats/s390-te-linux64.dat: Regenerate.
1050 * regformats/s390x-linux64.dat: Regenerate.
1051 * regformats/s390x-linux64v1.dat: Regenerate.
1052 * regformats/s390x-linux64v2.dat: Regenerate.
1053 * regformats/s390x-te-linux64.dat: Regenerate.
1054 * regformats/tic6x-c62x-linux.dat: Regenerate.
1055 * regformats/tic6x-c62x.dat: Regenerate.
1056 * regformats/tic6x-c64x-linux.dat: Regenerate.
1057 * regformats/tic6x-c64x.dat: Regenerate.
1058 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1059 * regformats/tic6x-c64xp.dat: Regenerate.
1060
1061 2014-10-01 Pedro Alves <palves@redhat.com>
1062
1063 * features/Makefile: Update comments.
1064 (XMLTOC): List all xml files we build C files from.
1065 (clean-cfiles): New rule.
1066
1067 2014-10-01 Pedro Alves <palves@redhat.com>
1068
1069 * features/i386/amd64-avx512-linux.c: Regenerate.
1070 * features/i386/amd64-avx512.c: Regenerate.
1071 * features/i386/x32-avx512-linux.c: Regenerate.
1072 * features/i386/x32-avx512.c: Regenerate.
1073
1074 2014-10-01 Pedro Alves <palves@redhat.com>
1075
1076 * features/Makefile (WHICH): Remove arm-with-m,
1077 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1078
1079 2014-10-01 Pedro Alves <palves@redhat.com>
1080
1081 * features/Makefile (clean): New rule.
1082
1083 2014-10-01 Pedro Alves <palves@redhat.com>
1084
1085 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1086 (zmm14h): Add missing end quotes.
1087
1088 2014-10-01 Pedro Alves <palves@redhat.com>
1089
1090 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1091 * features/aarch64.c: Regenerate.
1092
1093 2014-09-30 Don Breazeal <donb@codesourcery.com>
1094
1095 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1096 code so as to work with follow_fork_inferior.
1097 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1098 (inf_ttrace_create_inferior): Remove reference to
1099 inf_ttrace_vfork_ppid.
1100 (inf_ttrace_attach): Ditto.
1101 (inf_ttrace_detach): Ditto.
1102 (inf_ttrace_kill): Use current_inferior instead of
1103 inf_ttrace_vfork_ppid.
1104 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1105 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1106 inferior away from the parent.
1107 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1108 target_follow_fork.
1109 (follow_fork_inferior): New function.
1110 (follow_inferior_reset_breakpoints): Make function static.
1111 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1112 * linux-nat.c (linux_child_follow_fork): Move target-independent
1113 code to infrun.c:follow_fork_inferior.
1114
1115 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1116
1117 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1118 * gdbarch.c: Regenerate.
1119 * gdbarch.h: Likewise.
1120 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1121 gdbarch method 'regset_from_core_section'.
1122 (get_core_register_section): Remove handling for the case that
1123 regset == NULL and regset_from_core_section is defined.
1124 (get_core_registers): Drop check for deleted method.
1125 * procfs.c (procfs_do_thread_registers): Adjust comment.
1126
1127 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1128
1129 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1130 (linux_nat_make_corefile_notes): Remove.
1131 (linux_target_install_ops): Do not set target method
1132 'make_corefile_notes'.
1133 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1134 Remove field.
1135 (linux_corefile_thread_callback): Instead of args->collect, call
1136 linux_collect_thread_registers.
1137 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1138 NULL unless there is a regset iterator.
1139 (linux_make_corefile_notes_1): Remove.
1140 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1141 by linux_make_corefile_notes.
1142 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1143
1144 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1145
1146 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1147 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1148 Remove.
1149 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1150
1151 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1152
1153 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1154 (xtensa_iterate_over_regset_sections): New.
1155 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1156
1157 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1158
1159 * vax-tdep.c (vax_regset_from_core_section): Remove.
1160 (vax_iterate_over_regset_sections): New.
1161 (vax_gdbarch_init): Adjust gdbarch initialization.
1162
1163 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1164
1165 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1166 (tilegx_regset_from_core_section): Remove.
1167 (tilegx_iterate_over_regset_sections): New.
1168 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1169
1170 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1171
1172 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1173 (sparc_iterate_over_regset_sections): New.
1174 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1175 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1176 targets.
1177 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1178 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1179 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1180 target method 'make_corefile_notes'.
1181
1182 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1183
1184 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1185 'sizeof_gregset' and 'sizeof_fpregset'.
1186 * sh-tdep.c (sh_regset_from_core_section): Remove.
1187 (sh_iterate_over_regset_sections): New.
1188 (sh_gdbarch_init): Adjust gdbarch initialization.
1189 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1190 sizeof_fpregset.
1191 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1192 'sizeof_gregset'.
1193
1194 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1195
1196 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1197 (score7_linux_iterate_over_regset_sections): New.
1198 (score_gdbarch_init): Adjust gdbarch initialization.
1199
1200 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1201
1202 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1203 FreeBSD targets.
1204 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1205 method 'make_corefile_notes'.
1206 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1207 (ppcfbsd_regset_from_core_section): Remove.
1208 (ppcfbsd_iterate_over_regset_sections): New.
1209 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1210 initialization.
1211 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1212 (ppcnbsd_iterate_over_regset_sections): New.
1213 (ppcnbsd_init_abi): Adjust.
1214 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1215 (ppcobsd_iterate_over_regset_sections): New.
1216 (ppcobsd_init_abi): Adjust.
1217 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1218 (rs6000_aix_iterate_over_regset_sections): New.
1219 (rs6000_aix_init_osabi): Adjust.
1220
1221 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1222
1223 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1224 (nios2_regset_from_core_section): Remove.
1225 (nios2_iterate_over_regset_sections): New.
1226 (nios2_linux_init_abi): Adjust gdbarch initialization.
1227
1228 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1229
1230 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1231 (am33_iterate_over_regset_sections): New.
1232 (am33_linux_init_osabi): Adjust gdbarch initialization.
1233
1234 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1235
1236 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1237 (mips_linux_iterate_over_regset_sections): New.
1238 (mips_linux_init_abi): Adjust gdbarch initialization.
1239 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1240 (mips64obsd_iterate_over_regset_sections): New.
1241 (mips64obsd_init_abi): Adjust.
1242 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1243 (mipsnbsd_iterate_over_regset_sections): New.
1244 (mipsnbsd_init_abi): Adjust.
1245
1246 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1247
1248 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1249 (m88k_iterate_over_regset_sections): New.
1250 (m88k_gdbarch_init): Adjust gdbarch initialization.
1251
1252 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1253
1254 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1255 (ia64_linux_iterate_over_regset_sections): New.
1256 (ia64_linux_init_abi): Adjust gdbarch initialization.
1257
1258 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1259
1260 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1261 (m68kbsd_iterate_over_regset_sections): New.
1262 (m68kbsd_init_abi): Adjust gdbarch initialization.
1263 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1264 (m68k_linux_iterate_over_regset_sections): New.
1265 (m68k_linux_init_abi): Adjust gdbarch initialization.
1266
1267 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1268
1269 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1270 (m32r_linux_regset_from_core_section): Remove.
1271 (m32r_linux_iterate_over_regset_sections): New.
1272 (m32r_linux_init_abi): Adjust gdbarch initialization.
1273
1274 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1275
1276 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1277 (amd64obsd_iterate_over_regset_sections): New.
1278 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1279 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1280 Remove.
1281 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1282 regset_from_core_section initialization.
1283 * i386-tdep.c (i386_regset_from_core_section): Remove.
1284 (i386_iterate_over_regset_sections): New.
1285 (i386_gdbarch_init): Adjust gdbarch initialization.
1286 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1287 (i386_iterate_over_regset_sections): New prototype.
1288 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1289 Remove.
1290 (i386obsd_aout_iterate_over_regset_sections): New.
1291 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1292 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1293 targets.
1294 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1295 (amd64fbsd_init_abi): Call fbsd_init_abi.
1296 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1297 (i386fbsd4_init_abi): Call fbsd_init_abi.
1298 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1299 target method 'make_corefile_notes'.
1300 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1301
1302 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1303
1304 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1305 (hppa_hpux_iterate_over_regset_sections): New.
1306 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1307 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1308 (hppa_linux_iterate_over_regset_sections): New.
1309 (hppa_linux_init_abi): Adjust.
1310 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1311 (hppanbsd_iterate_over_regset_sections): New.
1312 (hppanbsd_init_abi): Adjust.
1313 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1314 (hppaobsd_iterate_over_regset_sections): New.
1315 (hppaobsd_init_abi): Adjust.
1316
1317 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1318
1319 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1320 (frv_linux_iterate_over_regset_sections): New.
1321 (frv_linux_init_abi): Adjust gdbarch initialization.
1322
1323 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1324
1325 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1326 (armbsd_iterate_over_regset_sections): New prototype.
1327 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1328 (armbsd_iterate_over_regset_sections): New.
1329 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1330 initialization.
1331
1332 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1333
1334 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1335 (alpha_linux_iterate_over_regset_sections): New.
1336 (alpha_linux_init_abi): Adjust gdbarch initialization.
1337 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1338 prototype.
1339 (alphanbsd_iterate_over_regset_sections): New prototype.
1340
1341 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1342
1343 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1344 Remove.
1345 (aarch64_linux_iterate_over_regset_sections): New.
1346 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1347
1348 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1349
1350 * fbsd-tdep.c: New file.
1351 * fbsd-tdep.h: New file.
1352 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1353 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1354 (ALLDEPFILES): Add fbsd-tdep.c.
1355
1356 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1357
1358 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1359 parameter.
1360 * gdbarch.h: Regenerate.
1361 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1362 iterator.
1363 (get_core_register_section): Add parameter 'regset' and use it, if
1364 set. Add parameter 'min_size' and verify the bfd section size
1365 against it.
1366 (get_core_registers_cb): Add parameter 'regset' and pass it to
1367 get_core_register section. For the "standard" register sections
1368 ".reg" and ".reg2", set an appropriate default for human_name.
1369 (get_core_registers): Don't abort when the gdbarch has an iterator
1370 but no regset_from_core_section. Add NULL/0 for parameters
1371 'regset'/'min_size' in calls to get_core_register_section.
1372 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1373 'regset' and use it instead of calling the
1374 regset_from_core_section gdbarch method.
1375 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1376 * i386-tdep.c (i386_supply_xstateregset)
1377 (i386_collect_xstateregset, i386_xstateregset): Moved to
1378 i386-linux-tdep.c.
1379 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1380 .reg-xstate.
1381 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1382 core file support only if the regset iterator hasn't been set.
1383 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1384 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1385 Moved from i386-tdep.c and renamed to *_linux*.
1386 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1387 each callback invocation. Allow any .reg-xstate size when reading
1388 from a core file.
1389 * amd64-tdep.c (amd64_supply_xstateregset)
1390 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1391 amd64-linux-tdep.c.
1392 (amd64_regset_from_core_section): Remove.
1393 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1394 install an amd64-specific regset_from_core_section gdbarch method.
1395 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1396 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1397 Moved from amd64-tdep.c and renamed to *_linux*.
1398 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1399 to each callback invocation. Allow any .reg-xstate size when
1400 reading from a core file.
1401 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1402 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1403 each callback invocation.
1404 (arm_linux_init_abi): No longer set the regset_from_core_section
1405 gdbarch method.
1406 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1407 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1408 each callback invocation.
1409 (ppc_linux_init_abi): No longer set the regset_from_core_section
1410 gdbarch method.
1411 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1412 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1413 (s390_regset_from_core_section): Remove.
1414 (s390_iterate_over_regset_sections): Add regset parameter to each
1415 callback invocation.
1416 (s390_gdbarch_init): No longer set the regset_from_core_section
1417 gdbarch method. Drop initialization of deleted tdep fields.
1418
1419 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1420
1421 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1422 (amd64_linux_iterate_over_regset_sections): New.
1423 (amd64_linux_init_abi_common): Don't install the regset section
1424 list, but the new iterator in gdbarch.
1425 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1426 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1427 (arm_linux_iterate_over_regset_sections): ...here. New function.
1428 (arm_linux_init_abi): Set iterator instead of section list.
1429 * corelow.c (get_core_registers_cb): New function, logic moved
1430 from...
1431 (get_core_registers): ...loop body here. Use new iterator method
1432 instead of walking through the regset section list.
1433 * gdbarch.sh: Remove 'core_regset_sections'. New method
1434 'iterate_over_regset_sections'. New typedef
1435 'iterate_over_regset_sections_cb'.
1436 * gdbarch.c: Regenerate.
1437 * gdbarch.h: Likewise.
1438 * i386-linux-tdep.c (i386_linux_regset_sections)
1439 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1440 Remove.
1441 (i386_linux_iterate_over_regset_sections): New.
1442 (i386_linux_init_abi): Don't choose a regset section list, but
1443 install new iterator in gdbarch.
1444 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1445 (linux_collect_regset_section_cb): New function, logic moved
1446 from...
1447 (linux_collect_thread_registers): ...loop body here. Use iterator
1448 method instead of walking through list.
1449 (linux_make_corefile_notes_1): Check for presence of iterator
1450 method instead of regset section list.
1451 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1452 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1453 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1454 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1455 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1456 (ppc_linux_init_abi): Don't choose from above regset section
1457 lists, but install new iterator in gdbarch.
1458 * regset.h (struct core_regset_section): Remove.
1459 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1460 have_linux_v1, have_linux_v2, and have_tdb.
1461 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1462 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1463 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1464 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1465 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1466 (s390_iterate_over_regset_sections): ...here. New function. Use
1467 new tdep fields.
1468 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1469 regset section lists, but install new iterator.
1470
1471 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1472
1473 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1474
1475 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1476
1477 * progspace.c (print_program_space): Don't prune program spaces
1478 before printing them.
1479
1480 2014-09-25 Pedro Alves <palves@redhat.com>
1481
1482 * infrun.c (user_visible_resume_ptid): Don't check
1483 singlestep_breakpoints_inserted_p.
1484
1485 2014-09-25 Pedro Alves <palves@redhat.com>
1486
1487 * breakpoint.c (should_be_inserted): Add debug output.
1488
1489 2014-09-25 Pedro Alves <palves@redhat.com>
1490
1491 * infrun.c (stepping_past_instruction_at)
1492 (clear_exit_convenience_vars): Point at infrun.h instead of
1493 inferior.h.
1494 (handle_signal_stop): Fix typo.
1495
1496 2014-09-24 Yao Qi <yao@codesourcery.com>
1497
1498 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1499 bitmask.
1500
1501 2014-09-22 Gary Benson <gbenson@redhat.com>
1502
1503 * target.c (target_stop): Updated comment.
1504
1505 2014-09-22 Gary Benson <gbenson@redhat.com>
1506
1507 * target/target.h (target_stop_ptid): Renamed as...
1508 (target_stop_and_wait): New function. Updated comment.
1509 All uses updated.
1510 (target_continue_ptid): Renamed as...
1511 (target_continue_no_signal): New function. Updated comment.
1512 All uses updated.
1513
1514 2014-09-22 Pedro Alves <palves@redhat.com>
1515
1516 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1517 and "auto" merged.
1518 * breakpoint.c (enum ugll_insert_mode): New enum.
1519 (always_inserted_mode): Now a plain boolean.
1520 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1521 (breakpoints_always_inserted_mode): Delete.
1522 (breakpoints_should_be_inserted_now): New function.
1523 (insert_breakpoints): Pass UGLL_INSERT to
1524 update_global_location_list instead of calling
1525 insert_breakpoint_locations manually.
1526 (create_solib_event_breakpoint_1): New, factored out from ...
1527 (create_solib_event_breakpoint): ... this.
1528 (create_and_insert_solib_event_breakpoint): Use
1529 create_solib_event_breakpoint_1 instead of calling
1530 insert_breakpoint_locations manually.
1531 (update_global_location_list): Change parameter type from boolean
1532 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1533 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1534 (update_global_location_list_nothrow): Change parameter type from
1535 boolean to enum ugll_insert_mode.
1536 (_initialize_breakpoint): "breakpoint always-inserted" option is
1537 now a boolean command. Update help text.
1538 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1539 (breakpoints_should_be_inserted_now): New declaration.
1540 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1541 Remove breakpoints_always_inserted_mode check.
1542 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1543 * remote.c (remote_start_remote): Likewise.
1544
1545 2014-09-22 Pedro Alves <palves@redhat.com>
1546
1547 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1548 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1549 Instead, pass UGLL_INSERT to update_global_location_list.
1550 (update_global_location_list): Change parameter type from boolean
1551 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1552 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1553 (create_solib_event_breakpoint_1): New, factored out from ...
1554 (create_solib_event_breakpoint): ... this.
1555 (create_and_insert_solib_event_breakpoint): Use
1556 create_solib_event_breakpoint_1 instead of calling
1557 insert_breakpoint_locations manually.
1558 (update_global_location_list): Handle UGLL_INSERT.
1559
1560 2014-09-22 Pedro Alves <palves@redhat.com>
1561
1562 * breakpoint.c (enum ugll_insert_mode): New enum.
1563 (update_global_location_list)
1564 (update_global_location_list_nothrow): Change parameter type from
1565 boolean to enum ugll_insert_mode. All callers adjusted.
1566
1567 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1568
1569 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1570 SystemTap support in GDB.
1571
1572 2014-09-19 Don Breazeal <donb@codesourcery.com>
1573
1574 * linux-nat.c (linux_handle_extended_wait): Call
1575 linux_ptrace_get_extended_event.
1576 (wait_lwp): Call linux_is_extended_waitstatus.
1577 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1578 and linux_is_extended_waitstatus.
1579 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1580 linux_ptrace_get_extended_event.
1581 (linux_ptrace_get_extended_event): New function.
1582 (linux_is_extended_waitstatus): New function.
1583 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1584 (linux_is_extended_waitstatus): New declarations.
1585
1586 2014-09-19 Yao Qi <yao@codesourcery.com>
1587
1588 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1589 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1590 comments. Callers update.
1591 (dwarf_decode_lines): Likewise.
1592 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1593 comments. Skip the line table if 'lowpc' is greater than
1594 'address'. Don't check
1595 dwarf2_per_objfile->has_section_at_zero.
1596
1597 2014-09-18 Doug Evans <dje@google.com>
1598
1599 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1600 * python/py-symtab.c (stpy_get_producer): New function.
1601 (symtab_object_getset): Add "producer" attribute.
1602
1603 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1604
1605 PR gdb/17384
1606 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1607 (do_captured_read_memory_integer): Remove.
1608 (safe_read_memory_integer): Use target_read_memory directly instead
1609 of catching errors in do_captured_read_memory_integer.
1610
1611 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1612
1613 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1614 not gdb/doc.
1615
1616 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1617
1618 * objc-lang.c (find_implementation_from_class): Remove dead code.
1619
1620 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1621
1622 PR cli/7233
1623 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1624 "fprintf_unfiltered (gdb_stdlog...)".
1625
1626 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1627
1628 PR breakpoints/12526
1629 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1630 val_bitsize.
1631 * breakpoint.c (watch_command_1): Use these fields to retain
1632 bitfield information.
1633 (extract_bitfield_from_watchpoint_value): New function.
1634 (watchpoint_check): Use it.
1635 (update_watchpoint): Use it. Optimize the address and length of a
1636 HW watchpoint pointing to a bitfield.
1637 * value.h (unpack_value_bitfield): New prototype.
1638 * value.c (unpack_value_bitfield): Make extern.
1639
1640 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1641
1642 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1643 x86-dregs.o.
1644 * gnu-nat.c (inf_threads): New function.
1645 * gnu-nat.h (inf_threads_ftype): New typedef.
1646 (inf_threads): New declaration.
1647 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1648 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1649 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1650 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1651 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1652 (i386_gnu_dr_get_control): New functions.
1653 (reg_addr): New structure.
1654 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1655 i386 debugging register hooks.
1656 * NEWS: Mention this.
1657
1658 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1659
1660 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1661 vector data transfer instructions.
1662 (arm_record_coproc_data_proc): Updated.
1663
1664 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1665
1666 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1667 arm_record_exreg_ld_st_insn.
1668 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1669 load/store insns.
1670
1671 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1672
1673 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1674 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1675 processing instructions.
1676
1677 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1678
1679 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1680 for advance SIMD struct ld/st insn.
1681 (thumb2_record_decode_insn_handler): Replace stub handler with
1682 thumb2_record_asimd_struct_ld_st.
1683
1684 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1685
1686 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1687 for asimd, vfp and coprocessor insns.
1688 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1689 and coprocessor insns.
1690 (thumb2_record_coproc_insn): New function.
1691 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1692 handlers.
1693 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1694 opcode 110 insns.
1695
1696 2014-09-13 Doug Evans <xdje42@gmail.com>
1697
1698 * NEWS: Mention new "queue-signal" command.
1699 * infcmd.c (queue_signal_command): New function.
1700 (_initialize_infcmd): Add new queue-signal command.
1701
1702 2014-09-13 Doug Evans <xdje42@gmail.com>
1703
1704 * linux-nat.c (wait_lwp): Add debugging printf.
1705 (linux_nat_wait_1): Ditto.
1706
1707 2014-09-12 Pedro Alves <palves@redhat.com>
1708
1709 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1710 (create_and_insert_solib_event_breakpoint): New functions.
1711 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1712 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1713 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1714 (remove_dbx_link_breakpoint): Delete function.
1715 (insert_dbx_link_bpt_in_file): Use
1716 create_and_insert_solib_event_breakpoint instead of
1717 deprecated_insert_raw_breakpoint.
1718 (procfs_wait): Don't check whether we hit __dbx_link here.
1719 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1720 here.
1721 * solib-irix.c (base_breakpoint): Delete global.
1722 (disable_break): Delete function.
1723 (enable_break): Use create_solib_event_breakpoint
1724 instead of deprecated_insert_raw_breakpoint.
1725 (irix_solib_handle_event): New function.
1726 (irix_solib_create_inferior_hook): Don't run the target or disable
1727 the mapping-complete breakpoint here.
1728 (_initialize_irix_solib): Install irix_solib_handle_event as
1729 so_ops->handle_event hook.
1730
1731 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1732 Ulrich Weigand  <uweigand@de.ibm.com>
1733
1734 PR tdep/17379
1735 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1736 instead of read_memory_unsigned_integer.
1737
1738 2014-09-12 Gary Benson <gbenson@redhat.com>
1739
1740 * nat/linux-waitpid.c: Include common-defs.h.
1741 [GDBSERVER]: Add FIXME comment.
1742 [!GDBSERVER]: Don't include defs.h or signal.h.
1743 (linux_debug) [!GDBSERVER]: Remove empty block.
1744
1745 2014-09-12 Gary Benson <gbenson@redhat.com>
1746
1747 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1748 Don't include defs.h or server.h.
1749
1750 2014-09-12 Gary Benson <gbenson@redhat.com>
1751
1752 * nat/linux-btrace.c: Include common-defs.h.
1753 Don't include defs.h, server.h or gdbthread.h.
1754 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1755
1756 2014-09-12 Gary Benson <gbenson@redhat.com>
1757
1758 * common/agent.c: Include common-defs.h.
1759 Don't include defs.h or server.h.
1760 * common/buffer.c: Likewise.
1761 * common/common-debug.c: Likewise.
1762 * common/common-utils.c: Likewise.
1763 * common/errors.c: Likewise.
1764 * common/filestuff.c: Likewise.
1765 * common/format.c: Likewise.
1766 * common/gdb_vecs.c: Likewise.
1767 * common/print-utils.c: Likewise.
1768 * common/ptid.c: Likewise.
1769 * common/rsp-low.c: Likewise.
1770 * common/signals.c: Likewise.
1771 * common/vec.c: Likewise.
1772 * common/xml-utils.c: Likewise.
1773 * nat/linux-osdata.c: Likewise.
1774 * nat/linux-procfs.c: Likewise.
1775 * nat/linux-ptrace.c: Likewise.
1776 * nat/mips-linux-watch.c: Likewise.
1777 * target/waitstatus.c: Likewise.
1778
1779 2014-09-12 Tom Tromey <tromey@redhat.com>
1780 Gary Benson <gbenson@redhat.com>
1781
1782 * common/common-regcache.h: New file.
1783 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1784 * regcache.h: Include common-regcache.h.
1785 (regcache_read_pc): Don't declare.
1786 * regcache.c (get_thread_regcache_for_ptid): New function.
1787 * nat/linux-btrace.c: Don't include regcache.h.
1788 Include common-regcache.h.
1789 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1790
1791 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1792
1793 * regcache.h (struct regset): Declare.
1794
1795 2014-09-11 Pedro Alves <palves@redhat.com>
1796
1797 PR gdb/17347
1798 * main.c: Include "infrun.h".
1799 (catch_command_errors, catch_command_errors_const): Wait for the
1800 foreground command to complete.
1801 * top.c (maybe_wait_sync_command_done): New function, factored out
1802 from ...
1803 (maybe_wait_sync_command_done): ... here.
1804 * top.h (maybe_wait_sync_command_done): New declaration.
1805
1806 2014-09-11 Tom Tromey <tromey@redhat.com>
1807 Gary Benson <gbenson@redhat.com>
1808
1809 * common/symbol.h: New file.
1810 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1811 * minsyms.c (find_minimal_symbol_address): New function.
1812 * common/agent.c: Include common/symbol.h.
1813 [!GDBSERVER]: Don't include objfiles.h.
1814 (agent_look_up_symbols): Use find_minimal_symbol_address.
1815
1816 2014-09-11 Gary Benson <gbenson@redhat.com>
1817
1818 * target/target.h (target_stop_ptid, target_continue_ptid):
1819 Declare.
1820 * target.c (target_stop_ptid, target_continue_ptid): New
1821 functions.
1822 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1823 (agent_run_command): Always use target_stop_ptid and
1824 target_continue_ptid.
1825
1826 2014-09-11 Tom Tromey <tromey@redhat.com>
1827 Gary Benson <gbenson@redhat.com>
1828
1829 * target/target.h: New file.
1830 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1831 * target.h: Include target/target.h.
1832 (target_read_memory, target_write_memory): Don't declare.
1833 * target.c (target_read_uint32): New function.
1834 * common/agent.c: Include target/target.h.
1835 [!GDBSERVER]: Don't include target.h.
1836 (helper_thread_id): Type changed to uint32_t.
1837 (agent_get_helper_thread_id): Use target_read_uint32.
1838 (agent_run_command): Always use target_read_memory and
1839 target_write_memory.
1840 (agent_capability): Type changed to uint32_t.
1841 (agent_capability_check): Use target_read_uint32.
1842
1843 2014-09-11 Gary Benson <gbenson@redhat.com>
1844
1845 * common/common-debug.h (show_debug_regs): Declare.
1846 * common/common-debug.c (show_debug_regs): Define.
1847 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1848 all uses with show_debug_regs. Replace all uses that considered
1849 debug_hw_points as a multi-value integer with straight boolean
1850 uses.
1851 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1852 with show_debug_regs.
1853 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1854 all uses with show_debug_regs.
1855 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1856 uses with show_debug_regs.
1857
1858 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1859
1860 * findvar.c (address_from_register): Handle targets requiring
1861 a special conversion routine even for plain pointer types.
1862
1863 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1864
1865 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1866 (store_register): Do not call exec_one_dummy_insn.
1867
1868 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1869
1870 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1871 dereference it first. Use value_enclosing_type instead of
1872 value_type.
1873 (ada_array_length): Likewise.
1874
1875 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1876
1877 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1878 Adjust function implementation and documentation accordingly.
1879 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1880 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1881 Update call to ada_value_ptr_subscript.
1882
1883 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1884
1885 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1886 instead of VAL's type.
1887
1888 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1889
1890 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1891
1892 2014-09-09 Doug Evans <xdje42@gmail.com>
1893
1894 PR guile/17367
1895 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1896 last parameter to pkg-config, not first.
1897 * configure.ac: Pass --with-guile provided pkg-config path to
1898 GDB_GUILE_PROGRAM_NAMES.
1899 * configure: Regenerate.
1900
1901 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1902
1903 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1904 Bertazi".
1905
1906 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1907
1908 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1909 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1910 the list of sections determining GDB_OSABI_IRIX.
1911
1912 2014-09-09 James Hogan <james.hogan@imgtec.com>
1913
1914 * MAINTAINERS (Write After Approval): Add "James Hogan".
1915
1916 2014-09-09 James Hogan <james.hogan@imgtec.com>
1917
1918 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1919
1920 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1921
1922 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1923
1924 2014-09-08 Doug Evans <xdje42@gmail.com>
1925
1926 PR 17247
1927 * guile.c: #include <signal.h>.
1928 (_initialize_guile): Block SIGCHLD while initializing Guile.
1929
1930 Replaces the following, which is reverted.
1931
1932 2014-07-26 Doug Evans <xdje42@gmail.com>
1933
1934 PR 17185
1935 * configure.ac: Add check for header gc/gc.h.
1936 Add check for function setenv.
1937 * configure: Regenerate.
1938 * config.in: Regenerate.
1939 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1940
1941 2014-09-08 Doug Evans <xdje42@gmail.com>
1942
1943 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1944 with named constant. Fix style of pointer comparison.
1945 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1946
1947 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1948
1949 PR gdb/17035
1950 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1951 decide whether we display the command on "show user".
1952 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1953 printing command name.
1954 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1955 * cli/cli-decode.c (cli_user_command_p): Create helper function
1956 to verify whether cmd_list_element is a user-defined command.
1957
1958 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1959
1960 PR python/17355
1961 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1962 Fix goto out of TRY_CATCH.
1963
1964 2014-09-06 Doug Evans <xdje42@gmail.com>
1965 Tom Tromey <tromey@redhat.com>
1966
1967 PR 15276
1968 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1969 $_any_caller_matches.
1970 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1971 * python/lib/gdb/function/caller_is.py: New file.
1972
1973 2014-09-06 Doug Evans <xdje42@gmail.com>
1974
1975 * infcmd.c (program_info): Fix typo.
1976
1977 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1978
1979 PR gdb/17235
1980 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1981 'number'. New variable 'has_digit'. Rewrite code to deal with
1982 subexpressions on SDT probes.
1983
1984 2014-09-04 Pedro Alves <palves@redhat.com>
1985
1986 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1987 the input is only one character long.
1988
1989 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1990
1991 PR fortran/17237
1992 * f-valprint.c (f_val_print): Specify the correct print option to
1993 use when printing integer values.
1994
1995 2014-09-04 Gary Benson <gbenson@redhat.com>
1996
1997 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1998 Remove code to cope with LWPs wrapped as PIDs.
1999 Add assertions to ensure no wrapped LWPs are passed.
2000
2001 2014-09-04 Pedro Alves <palves@redhat.com>
2002
2003 * value.c (value_ranges_copy_adjusted): New function, factored out
2004 from ...
2005 (value_contents_copy_raw): ... here.
2006 (unpack_value_bits_as_long_1): Rename back to ...
2007 (unpack_bits_as_long): ... this. Remove 'original_value' and
2008 'result' parameters. Change return type to LONGEST.
2009 (unpack_value_bits_as_long): Delete.
2010 (unpack_value_field_as_long_1): Delete.
2011 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2012 (unpack_value_bitfield): New function.
2013 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2014 (value_fetch_lazy): Use unpack_value_bitfield.
2015 * value.h (unpack_value_bits_as_long): Delete declaration.
2016
2017 2014-09-03 Sasha Smundak <asmundak@google.com>
2018
2019 * python/py-frame.c (frapy_read_register): New function.
2020
2021 2014-09-03 James Hogan <james.hogan@imgtec.com>
2022
2023 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2024 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2025
2026 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2027
2028 PR python/16699
2029 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2030 function.
2031 (add_cmd): Set "completer_handle_brkchars" to NULL.
2032 * cli/cli-decode.h (struct cmd_list_element)
2033 <completer_handle_brkchars>: New field.
2034 * command.h (completer_ftype_void): New typedef.
2035 (set_cmd_completer_handle_brkchars): New prototype.
2036 * completer.c (set_gdb_completion_word_break_characters): New
2037 function.
2038 (complete_line_internal): Call "completer_handle_brkchars"
2039 callback from command.
2040 * completer.h: Include "command.h".
2041 (set_gdb_completion_word_break_characters): New prototype.
2042 * python/py-cmd.c (cmdpy_completer_helper): New function.
2043 (cmdpy_completer_handle_brkchars): New function.
2044 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2045 (cmdpy_init): Set completer_handle_brkchars to
2046 cmdpy_completer_handle_brkchars.
2047
2048 2014-09-03 Gary Benson <gbenson@redhat.com>
2049
2050 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2051 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2052 Loop conditions changed to equivalent form.
2053 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2054 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2055 ALL_DEBUG_ADDRESS_REGISTERS.
2056
2057 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2058
2059 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2060 description fix.
2061
2062 2014-09-02 Doug Evans <dje@google.com>
2063
2064 * typeprint.c (find_global_typedef): Fix comment.
2065
2066 2014-09-02 Gary Benson <gbenson@redhat.com>
2067
2068 * i386-nat.h: Renamed as...
2069 * x86-nat.h: New file. All type, function and variable name
2070 prefixes changed from "i386_" to "x86_". All references updated.
2071 * i386-nat.c: Renamed as...
2072 * x86-nat.c: New file. All type, function and variable name
2073 prefixes changed from "i386_" to "x86_". All references updated.
2074 * common/i386-xstate.h: Renamed as...
2075 * common/x86-xstate.h: New file. All type, function and variable
2076 name prefixes changed from "i386_" to "x86_". All references
2077 updated.
2078 * nat/i386-cpuid.h: Renamed as...
2079 * nat/x86-cpuid.h: New file. All type, function and variable name
2080 prefixes changed from "i386_" to "x86_". All references updated.
2081 * nat/i386-gcc-cpuid.h: Renamed as...
2082 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2083 name prefixes changed from "i386_" to "x86_". All references
2084 updated.
2085 * nat/i386-dregs.h: Renamed as...
2086 * nat/x86-dregs.h: New file. All type, function and variable name
2087 prefixes changed from "i386_" to "x86_". All references updated.
2088 * nat/i386-dregs.c: Renamed as...
2089 * nat/x86-dregs.c: New file. All type, function and variable name
2090 prefixes changed from "i386_" to "x86_". All references updated.
2091
2092 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2093
2094 * varobj.c (_initialize_varobj): Move to the end of file.
2095
2096 2014-08-29 Gary Benson <gbenson@redhat.com>
2097
2098 * common/common-exceptions.h: New file.
2099 * common/common-exceptions.c: Likewise.
2100 * Makefile.in (SFILES): Add common/common-exceptions.c.
2101 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2102 (COMMON_OBS): Add common-exceptions.o.
2103 (common-exceptions.o): New rule.
2104 * exceptions.h (common-exceptions.h): Include.
2105 (gdb_setjmp.h): Do not include.
2106 (return_reason): Moved to common-exceptions.h.
2107 (enum return_reason): Likewise.
2108 (RETURN_MASK): Likewise.
2109 (typedef return_mask): Likewise.
2110 (enum errors): Likewise.
2111 (struct gdb_exception): Likewise.
2112 (exceptions_state_mc_init): Likewise.
2113 (exceptions_state_mc_action_iter): Likewise.
2114 (exceptions_state_mc_action_iter_1): Likewise.
2115 (TRY_CATCH): Likewise.
2116 (throw_exception): Likewise.
2117 (throw_verror): Likewise.
2118 (throw_vquit): Likewise.
2119 (throw_error): Likewise.
2120 (throw_quit): Likewise.
2121 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2122 (enum catcher_action): Likewise.
2123 (struct catcher): Likewise.
2124 (current_catcher): Likewise.
2125 (catcher_list_size): Likewise.
2126 (exceptions_state_mc_init): Likewise.
2127 (catcher_pop): Likewise.
2128 (exceptions_state_mc): Likewise.
2129 (exceptions_state_mc_action_iter): Likewise.
2130 (exceptions_state_mc_action_iter_1): Likewise.
2131 (throw_exception): Likewise.
2132 (exception_messages): Likewise.
2133 (exception_messages_size): Likewise.
2134 (throw_it): Likewise.
2135 (throw_verror): Likewise.
2136 (throw_vquit): Likewise.
2137 (throw_error): Likewise.
2138 (throw_quit): Likewise.
2139 (prepare_to_throw_exception): New function.
2140
2141 2014-08-29 Gary Benson <gbenson@redhat.com>
2142
2143 * common/gdb_setjmp.h: New file.
2144 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2145 * configure.ac: Move sigsetjmp check...
2146 * common/common.m4: ...here.
2147 * configure: Regenerate.
2148 * cp-support.c (SIGJMP_BUF): Delete.
2149 (SIGSETJMP): Likewise.
2150 (SIGLONGJMP): Likewise.
2151 * exceptions.h (gdb_setjmp.h): Include.
2152 (setjmp.h): Do not include.
2153 (EXCEPTIONS_SIGJMP_BUF): Delete.
2154 (EXCEPTIONS_SIGSETJMP): Likewise.
2155 (EXCEPTIONS_SIGLONGJMP): Likewise.
2156 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2157 from gdb_setjmp.h.
2158 * exceptions.c: Likewise.
2159
2160 2014-08-29 Gary Benson <gbenson@redhat.com>
2161
2162 * cleanups.h: Moved to...
2163 * common/cleanups.h: New file.
2164 * cleanups.c: Moved to...
2165 * common/cleanups.c: New file. Include common-defs.h and
2166 cleanups.h. Do not include defs.h.
2167 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2168 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2169 (cleanups.o): New rule.
2170
2171 2014-08-29 Gary Benson <gbenson@redhat.com>
2172
2173 * common/errors.h (internal_warning): New declaration.
2174 (internal_vwarning): Likewise.
2175 * common/errors.c (internal_warning): New function.
2176 * utils.h (internal_warning): Don't declare.
2177 (internal_vwarning): Likewise.
2178 * utils.c (internal_warning): Removed.
2179
2180 2014-08-29 Gary Benson <gbenson@redhat.com>
2181
2182 * main.c (captured_main): Use warning during startup.
2183 Prefix startup warning messages with command name.
2184
2185 2014-08-29 Gary Benson <gbenson@redhat.com>
2186
2187 * main.c (captured_main): Handle usage errors with error.
2188
2189 2014-08-29 Gary Benson <gbenson@redhat.com>
2190
2191 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2192 exit pair with a call to error. Wrap the message with _().
2193
2194 2014-08-29 Gary Benson <gbenson@redhat.com>
2195
2196 * main.c (captured_main): Replace a fprintf/exit
2197 pair with a call to error. Wrap the message with _().
2198
2199 2014-08-29 Gary Benson <gbenson@redhat.com>
2200
2201 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2202 pairs with calls to error. Wrap the message with _().
2203
2204 2014-08-29 Gary Benson <gbenson@redhat.com>
2205
2206 * utils.c (vwarning): Protect calls to target_terminal_ours
2207 and wrap_here.
2208
2209 2014-08-29 Gary Benson <gbenson@redhat.com>
2210
2211 * exceptions.c (print_flush): Protect calls to
2212 target_terminal_ours and wrap_here.
2213
2214 2014-08-29 Gary Benson <gbenson@redhat.com>
2215
2216 * utils.h (filtered_printing_initialized): New declaration.
2217 * utils.c (abort_with_message): New function.
2218 (internal_vproblem): Use abort_with_message for first level
2219 recursive internal problems, and if gdb_stderr is not set up.
2220 Protect calls to target_terminal_ours, begin_line and query.
2221
2222 2014-08-28 Doug Evans <dje@google.com>
2223
2224 * symtab.c (in_prologue): Move definition to better spot.
2225 (skip_prologue_using_sal): Ditto.
2226
2227 2014-08-28 Doug Evans <dje@google.com>
2228
2229 * symtab.c (find_function_start_sal): Move definition to better spot.
2230
2231 2014-08-28 Yao Qi <yao@codesourcery.com>
2232
2233 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2234 found_stack_adjust in forward scan. Remove condition check
2235 on found_stack_adjust which is always true. Indent the code.
2236
2237 2014-08-28 Yao Qi <yao@codesourcery.com>
2238
2239 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2240 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2241 (dwarf_decode_lines): Remove argument
2242 want_line_info. Remove condition check on want_line_info.
2243 Callers update.
2244
2245 2014-08-27 Doug Evans <dje@google.com>
2246
2247 * dwarf2read.c (dwarf_record_line): Fix typo.
2248
2249 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2250
2251 * target.h (struct target_ops::to_terminal_save_ours): Remove
2252 declaration.
2253 (target_terminal_save_ours): Remove macro.
2254 * target-delegates.c: Regenerate.
2255 * inf-child.c (inf_child_target): Don't set the nonexistent
2256 field to_terminal_save_ours.
2257 * inferior.h (child_terminal_save_ours): Remove declaration.
2258 * terminal.h (gdb_save_tty_state): New declaration.
2259 * inflow.c (child_terminal_save_ours): Rename to ...
2260 (gdb_save_tty_state): ... this.
2261 * tui/tui.c: Include terminal.h.
2262 (tui_enable): Use gdb_save_tty_state instead of
2263 target_terminal_save_ours.
2264 (tui_disable): Likewise.
2265
2266 2014-08-25 Doug Evans <dje@google.com>
2267
2268 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2269 Pass NULL instead of 0 for context pointer.
2270
2271 2014-08-25 Yao Qi <yao@codesourcery.com>
2272
2273 * dwarf2read.c: Fix grammatical error.
2274
2275 2014-08-24 Yao Qi <yao@codesourcery.com>
2276
2277 * dwarf2read.c (scan_partial_symbols): Update comments.
2278 Rename argument 'need_pc' with 'set_addrmap'.
2279 (add_partial_namespace): Rename argument 'need_pc' with
2280 'set_addrmap'.
2281 (add_partial_module): Likewise.
2282 (add_partial_subprogram): Likewise. Update comments.
2283 (dwarf2_name): Fix typo.
2284
2285 2014-08-22 Doug Evans <dje@google.com>
2286
2287 PR 17276
2288 * dwarf2read.c (dwarf_record_line_p): New function.
2289 (dwarf_decode_lines_1): Ignore subsequent line number entries
2290 for the same line if any entry had a non-zero discriminator.
2291
2292 2014-08-22 Doug Evans <dje@google.com>
2293
2294 * buildsym.h (record_line_ftype): New typedef.
2295 (record_line): Use it.
2296 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2297 (dwarf_decode_lines_1): Call them.
2298
2299 2014-08-22 Yao Qi <yao@codesourcery.com>
2300
2301 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2302 (ctf_end): Remove code.
2303
2304 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2305
2306 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2307 (linux_make_corefile_notes): call update_thread_list, protected against
2308 exceptions.
2309
2310 2014-08-21 Pedro Alves <palves@redhat.com>
2311
2312 * infcmd.c (attach_command): Remove comment.
2313
2314 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2315
2316 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2317 unsigned LONGEST to ULONGEST.
2318
2319 2014-08-20 Pedro Alves <palves@redhat.com>
2320
2321 * Makefile.in (check-read1): New rule.
2322
2323 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2324
2325 * value.c (value_from_contents_and_address): Strip resolved_type's
2326 typedef layers before checking its TYPE_DATA_LOCATION.
2327
2328 2014-08-20 Pedro Alves <palves@redhat.com>
2329
2330 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2331
2332 2014-08-20 Yao Qi <yao@codesourcery.com>
2333
2334 * amd64-tdep.c (amd64_classify): Add a blank line after the
2335 example. Move "*/" to a new line.
2336 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2337 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2338 * dwarf2read.c (psymtab_include_file_name): Likewise.
2339
2340 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2341 Pedro Alves <palves@redhat.com>
2342
2343 PR symtab/14604
2344 PR symtab/14605
2345 * ada-lang.c (coerce_unspec_val_to_type): Use
2346 value_contents_copy_raw.
2347 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2348 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2349 * cp-valprint.c (cp_print_value_fields): Let the common printing
2350 code handle optimized out values.
2351 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2352 * d-valprint.c (dynamic_array_type): Use
2353 value_bits_any_optimized_out.
2354 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2355 check_any_valid fields.
2356 (check_pieced_value_bits): Delete and inline ...
2357 (check_pieced_synthetic_pointer): ... here.
2358 (check_pieced_value_validity): Delete.
2359 (check_pieced_value_invalid): Delete.
2360 (pieced_value_funcs): Remove check_validity and check_any_valid
2361 fields.
2362 (read_pieced_value): Use mark_value_bits_optimized_out.
2363 (write_pieced_value): Switch to use
2364 mark_value_bytes_optimized_out.
2365 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2366 of assuming the whole value is optimized out.
2367 * findvar.c (read_frame_register_value): Remove special handling
2368 of optimized out registers.
2369 (value_from_register): Use mark_value_bytes_optimized_out.
2370 * frame-unwind.c (frame_unwind_got_optimized): Use
2371 mark_value_bytes_optimized_out.
2372 * jv-valprint.c (java_value_print): Adjust.
2373 (java_print_value_fields): Let the common printing code handle
2374 optimized out values.
2375 * mips-tdep.c (mips_print_register): Remove special handling of
2376 optimized out registers.
2377 * opencl-lang.c (lval_func_check_validity): Delete.
2378 (lval_func_check_any_valid): Delete.
2379 (opencl_value_funcs): Remove check_validity and check_any_valid
2380 fields.
2381 * p-valprint.c (pascal_object_print_value_fields): Let the common
2382 printing code handle optimized out values.
2383 * stack.c (read_frame_arg): Remove special handling of optimized
2384 out values. Fetch both VAL and ENTRYVAL before comparing
2385 contents. Adjust to value_available_contents_eq rename.
2386 * valprint.c (valprint_check_validity)
2387 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2388 (val_print_array_elements): Adjust.
2389 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2390 (value_bits_any_optimized_out): New function.
2391 (value_entirely_covered_by_range_vector): New function, factored
2392 out from value_entirely_unavailable.
2393 (value_entirely_unavailable): Reimplement.
2394 (value_entirely_optimized_out): New function.
2395 (insert_into_bit_range_vector): New function, factored out from
2396 mark_value_bits_unavailable.
2397 (mark_value_bits_unavailable): Reimplement.
2398 (struct ranges_and_idx): New struct.
2399 (find_first_range_overlap_and_match): New function, factored out
2400 from value_available_contents_bits_eq.
2401 (value_available_contents_bits_eq): Rename to ...
2402 (value_contents_bits_eq): ... this. Check both unavailable
2403 contents and optimized out contents.
2404 (value_available_contents_eq): Rename to ...
2405 (value_contents_eq): ... this.
2406 (allocate_value_lazy): Remove reference to the old optimized_out
2407 boolean.
2408 (allocate_optimized_out_value): Use
2409 mark_value_bytes_optimized_out.
2410 (require_not_optimized_out): Adjust to check whether the
2411 optimized_out vec is empty.
2412 (ranges_copy_adjusted): New function, factored out from
2413 value_contents_copy_raw.
2414 (value_contents_copy_raw): Also copy the optimized out ranges.
2415 Assert the destination ranges aren't optimized out.
2416 (value_contents_copy): Update comment, remove call to
2417 require_not_optimized_out.
2418 (value_contents_equal): Adjust to check whether the optimized_out
2419 vec is empty.
2420 (set_value_optimized_out, value_optimized_out_const): Delete.
2421 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2422 New functions.
2423 (value_entirely_optimized_out, value_bits_valid): Delete.
2424 (value_copy): Take a VEC copy of the 'optimized_out' field.
2425 (value_primitive_field): Remove special handling of optimized out.
2426 (value_fetch_lazy): Assert that lazy values have no unavailable
2427 regions. Use value_bits_any_optimized_out. Remove some special
2428 handling for optimized out values.
2429 * value.h: Add intro comment about <optimized out> and
2430 <unavailable>.
2431 (struct lval_funcs): Remove check_validity and check_any_valid
2432 fields.
2433 (set_value_optimized_out, value_optimized_out_const): Remove.
2434 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2435 New declarations.
2436 (value_bits_any_optimized_out): New declaration.
2437 (value_bits_valid): Delete declaration.
2438 (value_available_contents_eq): Rename to ...
2439 (value_contents_eq): ... this, and extend comments.
2440
2441 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2442
2443 Fix -fsanitize=address on unreadable inferior strings.
2444 * valprint.c (val_print_string): Fix access before BUFFER.
2445
2446 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2447
2448 * target.c (target_struct_size): Remove.
2449 (target_struct_allocsize): Remove.
2450 (DEFAULT_ALLOCSIZE): Remove.
2451 (target_ops_p): New typedef.
2452 (DEF_VEC_P (target_ops_p)): New vector type.
2453 (target_structs): Change type to VEC (target_ops_p).
2454 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2455 (find_default_run_target): Rewrite for loop following changes to
2456 target_structs.
2457
2458 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2459
2460 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2461 Adjust code accordingly. Adjust function description comment.
2462
2463 2014-08-19 Yao Qi <yao@codesourcery.com>
2464
2465 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2466 types.
2467
2468 2014-08-19 Alan Modra <amodra@gmail.com>
2469
2470 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2471 * config.in: Regenerate.
2472 * configure: Regenerate.
2473
2474 2014-08-19 Tom Tromey <tromey@redhat.com>
2475 Gary Benson <gbenson@redhat.com>
2476
2477 * common/common-debug.h: New file.
2478 * common/common-debug.c: Likewise.
2479 * debug.c: Likewise.
2480 * Makefile.in (SFILES): Add common/common-debug.c.
2481 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2482 (COMMON_OBS): Add common-debug.o and debug.o.
2483 (common-debug.o): New rule.
2484 * common/common-defs.h: Include common-debug.h.
2485 * common/agent.c (debug_agent_printf): New function.
2486 (DEBUG_AGENT): Redefine.
2487 * nat/i386-dregs.c (debug_printf): Undefine.
2488
2489 2014-08-19 Gary Benson <gbenson@redhat.com>
2490
2491 * common/common-defs.h: Include print-utils.h.
2492 * utils.h: Do not include print-utils.h.
2493
2494 2014-08-19 Tom Tromey <tromey@redhat.com>
2495 Gary Benson <gbenson@redhat.com>
2496
2497 * common/common-types.h: New file.
2498 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2499 * common/common-defs.h: Include common-types.h.
2500 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2501 (ULONGEST): Remove.
2502
2503 2014-08-19 Tom Tromey <tromey@redhat.com>
2504 Gary Benson <gbenson@redhat.com>
2505
2506 * common/errors.h: New file.
2507 * common/errors.c: Likewise.
2508 * Makefile.in (SFILES): Add common/errors.c.
2509 (HFILES_NO_SRCDIR): Add common/errors.h.
2510 (COMMON_OBS): Add errors.o.
2511 (errors.o): New rule.
2512 * common/common-defs.h: Include errors.h.
2513 * utils.h (perror_with_name, error, verror, warning, vwarning):
2514 Don't declare.
2515 * common/common-utils.h: (malloc_failure, internal_error):
2516 Likewise.
2517
2518 2014-08-19 Gary Benson <gbenson@redhat.com>
2519
2520 * utils.c (internal_vproblem): Always print the message.
2521
2522 2014-08-18 Doug Evans <dje@google.com>
2523
2524 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2525
2526 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2527
2528 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2529 Return 0 if TYPE is dynamic.
2530 (print_range): Add handling of dynamic ranges.
2531
2532 2014-08-18 Keven Boell <keven.boell@intel.com>
2533 Joel Brobecker <brobecker@adacore.com>
2534
2535 * gdbtypes.h (struct main_type): Add field "data_location".
2536 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2537 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2538 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2539 a dynamic data location.
2540 (resolve_dynamic_type): Add DW_AT_data_location handling.
2541 (copy_recursive, copy_type): Copy the data_location information
2542 when present.
2543 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2544 * value.c (value_from_contents_and_address): Add
2545 DW_AT_data_location handling.
2546
2547 2014-08-18 Keven Boell <keven.boell@intel.com>
2548 Joel Brobecker <brobecker@adacore.com>
2549
2550 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2551 field "get_object_address".
2552 * dwarf2expr.c (execute_stack_op): Add handling for
2553 DW_OP_push_object_address.
2554 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2555 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2556 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2557 (dwarf_expr_get_obj_addr): New function.
2558 (dwarf_expr_ctx_funcs): Add get_object_address field.
2559 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2560 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2561 (dwarf2_evaluate_property): Add parameter "address". Use it.
2562 (needs_get_obj_addr): New function.
2563 (needs_frame_ctx_funcs): Add get_object_address field.
2564 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2565 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2566 (resolve_dynamic_array): Likewise.
2567
2568 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2569
2570 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2571 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2572 fixed value for records and unions for which some GNAT encodings
2573 are present.
2574
2575 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2576
2577 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2578 rewrite to avoid "else if" and "else" constructs. Should be
2579 a no-op in practice.
2580
2581 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2582
2583 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2584 of lexical block.
2585
2586 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2587
2588 PR c++/17132
2589 * eval.c: Update all calls to find_overload_match.
2590 * valarith.c: Likewise.
2591 (value_user_defined_cpp_op, value_user_defined_op): New
2592 argument NOSIDE. Update all callers.
2593 * valops.c (find_overload_match): New argument NOSIDE.
2594 * value.h (find_overload_match): Update signature.
2595
2596 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2597
2598 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2599 'items' methods instead of 'iteritems' method on dictionaries.
2600
2601 2014-08-15 Doug Evans <dje@google.com>
2602
2603 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2604 closer to use.
2605
2606 2014-08-15 Doug Evans <dje@google.com>
2607
2608 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2609
2610 2014-08-15 Doug Evans <dje@google.com>
2611
2612 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2613
2614 2014-08-15 Doug Evans <dje@google.com>
2615
2616 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2617 unused.
2618
2619 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2620
2621 * dcache.h: Include target.h, to avoid compile time warnings.
2622
2623 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2624
2625 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2626 frame_info" partial declaration.
2627 * gdbarch.h: Regenerate.
2628
2629 2014-08-15 Yao Qi <yao@codesourcery.com>
2630
2631 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2632 Add parameter 'decode_for_pst_p'. Callers update.
2633
2634 2014-08-13 Yao Qi <yao@codesourcery.com>
2635
2636 PR build/17104
2637 * configure.ac: Use local variable 'pos'.
2638 * configure: Regenerated.
2639
2640 2014-08-11 Doug Evans <dje@google.com>
2641
2642 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2643 message, it is redundant with "Reading symbols from ..." message.
2644
2645 2014-08-10 Doug Evans <xdje42@gmail.com>
2646
2647 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2648
2649 2014-08-09 Yao Qi <yao@codesourcery.com>
2650
2651 PR remote/9053
2652 * remote.c (remote_xfer_partial): Remove dead code.
2653
2654 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2655
2656 * ia64-linux-tdep.c: Include "regset.h".
2657 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2658 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2659 (ia64_linux_supply_fpregset): New function.
2660 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2661 (ia64_linux_regset_from_core_section): New function.
2662 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2663 method.
2664
2665 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2666
2667 * m68klinux-tdep.c: Include "regset.h".
2668 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2669 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2670 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2671 (m68k_linux_regset_from_core_section): New function.
2672 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2673 method.
2674
2675 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2676
2677 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2678 function. Move logic to...
2679 (tilegx_linux_regmap): ... this new register map.
2680 (tilegx_linux_regset): Refer to register map, replace supply
2681 method by regcache_supply_regset, and add collect method.
2682 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2683 TILEGX_FIRST_EASY_REGNUM.
2684
2685 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2686
2687 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2688 that calls regcache_supply_regset and handles the EPC register
2689 separately. Move main logic to...
2690 (score7_linux_gregmap): ... this new register map.
2691 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2692 (score7_linux_gregset): Refer to register map. Add collect method.
2693 (score7_linux_regset_from_core_section): Replace
2694 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2695 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2696 (struct regset): Delete unused forward declaraction.
2697 (struct pt_regs): Delete structure definition.
2698 (elf_gregset_t): Delete typedef.
2699
2700 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2701
2702 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2703 (nios2_core_regset): Add collect method.
2704
2705 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2706
2707 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2708 platform-independent and don't write to read-only input buffer.
2709 (m32r_linux_collect_gregset): New function.
2710 (m32r_linux_gregset): Add collect method.
2711
2712 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2713
2714 * hppa-linux-tdep.c (greg_map): Rename to...
2715 (hppa_linux_gregmap): ... this. Also convert to
2716 regcache_map_entry format.
2717 (hppa_linux_supply_regset): Delete function.
2718 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2719 (hppa_linux_fpregmap): ... this new register map.
2720 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2721 register map, replace supply method by regcache_supply_regset, and
2722 add collect method regcache_collect_regset.
2723
2724 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2725
2726 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2727 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2728 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2729 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2730 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2731 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2732 (frv_linux_supply_gregset): Replace main logic by call to
2733 regcache_supply_regset, but keep clearing gr32-gr63.
2734 (frv_linux_supply_fpregset): Delete function.
2735 (frv_linux_gregset): Refer to appropriate register map and add
2736 regcache_collect_regset as the collect method.
2737 (frv_linux_fpregset): Likewise. Also exchange the supply method
2738 by regcache_supply_regset.
2739
2740 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2741
2742 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2743 by call to alpha_supply_int_regs.
2744 (alpha_linux_collect_gregset): New function.
2745 (alpha_linux_supply_fpregset): Replace logic by call to
2746 alpha_supply_fp_regs.
2747 (alpha_linux_collect_fpregset): New function.
2748 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2749
2750 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2751
2752 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2753 by call to regcache_collect_regset.
2754 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2755 instead of aarch64_linux_supply_gregset/_fpregset.
2756 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2757 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2758 header file instead.
2759 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2760 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2761 functions. Move logic to ...
2762 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2763 register maps.
2764 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2765 refer to new register maps, replace *_regset_from_core by
2766 regcache_supply_regset, and also use regcache_collect_regset.
2767 * aarch64-linux-tdep.h: Include "regset.h".
2768 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2769 Delete prototypes.
2770 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2771 macros, moved from C source file.
2772 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2773 variable declarations.
2774
2775 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2776
2777 * s390-linux-nat.c: Include "regset.h".
2778 (regmap_gregset): Delete macro.
2779 (s390_64_regmap_gregset): New register map for
2780 regcache_supply/_collect_regset.
2781 (s390_64_gregset): New regset.
2782 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2783 (regmap_fpregset): Delete macro.
2784 (s390_native_supply, s390_native_collect): Delete functions.
2785 (supply_gregset, fill_gregset): Replace s390-specific regmap
2786 handling by a call to regcache_supply/_collect_regset.
2787 (supply_fpregset, fill_fpregset): Call regcache_supply/
2788 _collect_regset instead of s390_native_supply/_collect.
2789 (fetch_regset, store_regset): Likewise. Also change the last
2790 parameter to a regset instead of a regmap.
2791 (s390_linux_fetch_inferior_registers)
2792 (390_linux_store_inferior_registers): Adjust last parameter in
2793 calls to fetch_regset and store_regset.
2794 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2795 (s390_gregmap): ... this. Also make static const and convert to
2796 regcache_map_entry format.
2797 (s390x_regmap_gregset): Delete.
2798 (s390_regmap_fpregset): Rename to...
2799 (s390_fpregmap): ... this. Make static const and convert to
2800 regcache_map_entry format.
2801 (s390_regmap_upper, s390_regmap_last_break)
2802 (s390x_regmap_last_break, s390_regmap_system_call)
2803 (s390_regmap_tdb): Likewise.
2804 (s390_supply_regset, s390_collect_regset): Remove functions.
2805 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2806 s390_supply_regset.
2807 (s390_gregset, s390_fpregset, s390_upper_regset)
2808 (s390_last_break_regset, s390x_last_break_regset)
2809 (s390_system_call_regset, s390_tdb_regset): Make global and
2810 replace s390_supply/_collect_regset by regcache_supply/
2811 _collect_regset.
2812 (s390x_gregset): Delete.
2813 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2814 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2815 (s390_regmap_fpregset, s390_regmap_last_break)
2816 (s390x_regmap_last_break, s390_regmap_system_call)
2817 (s390_regmap_tdb): Delete global variable declarations.
2818 (s390_gregset, s390_fpregset, s390_last_break_regset)
2819 (s390x_last_break_regset, s390_system_call_regset)
2820 (s390_tdb_regset): New global variable declarations.
2821
2822 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2823
2824 * regcache.c: Include "regset.h".
2825 (regcache_transfer_regset): New local function.
2826 (regcache_supply_regset, regcache_collect_regset): New functions.
2827 * regcache.h (struct regcache_map_entry): New structure.
2828 (REGCACHE_MAP_SKIP): New enum value.
2829 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2830
2831 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2832
2833 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2834 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2835 (ppc_linux_collect_gregset ): Likewise.
2836 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2837 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2838 (ppc_collect_vrregset): Likewise.
2839 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2840 Likewise.
2841
2842 2014-08-07 Yao Qi <yao@codesourcery.com>
2843
2844 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2845 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2846 * remote.c (remote_read_bytes): Likewise.
2847
2848 2014-08-07 Yao Qi <yao@codesourcery.com>
2849
2850 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2851
2852 2014-08-07 Yao Qi <yao@codesourcery.com>
2853
2854 PR remote/17230
2855 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2856 TARGET_XFER_OK instead of 0.
2857
2858 2014-08-07 Gary Benson <gbenson@redhat.com>
2859
2860 * common/common-defs.h: Include errno.h.
2861 * defs.h: Do not include errno.h.
2862 * ada-typeprint.c: Likewise.
2863 * c-typeprint.c: Likewise.
2864 * core-regset.c: Likewise.
2865 * corefile.c: Likewise.
2866 * corelow.c: Likewise.
2867 * event-loop.c: Likewise.
2868 * f-typeprint.c: Likewise.
2869 * gnu-nat.c: Likewise.
2870 * go32-nat.c: Likewise.
2871 * i386gnu-nat.c: Likewise.
2872 * m2-typeprint.c: Likewise.
2873 * nat/linux-btrace.c: Likewise.
2874 * p-typeprint.c: Likewise.
2875 * procfs.c: Likewise.
2876 * remote-sim.c: Likewise.
2877 * rs6000-nat.c: Likewise.
2878 * target.c: Likewise.
2879 * typeprint.c: Likewise.
2880 * ui-file.c: Likewise.
2881 * valops.c: Likewise.
2882 * valprint.c: Likewise.
2883
2884 2014-08-07 Gary Benson <gbenson@redhat.com>
2885
2886 * common/common-defs.h: Include string.h.
2887 * aarch64-tdep.c: Do not include string.h.
2888 * ada-exp.y: Likewise.
2889 * ada-lang.c: Likewise.
2890 * ada-lex.l: Likewise.
2891 * ada-typeprint.c: Likewise.
2892 * ada-valprint.c: Likewise.
2893 * aix-thread.c: Likewise.
2894 * alpha-linux-tdep.c: Likewise.
2895 * alpha-mdebug-tdep.c: Likewise.
2896 * alpha-nat.c: Likewise.
2897 * alpha-osf1-tdep.c: Likewise.
2898 * alpha-tdep.c: Likewise.
2899 * alphanbsd-tdep.c: Likewise.
2900 * amd64-dicos-tdep.c: Likewise.
2901 * amd64-linux-tdep.c: Likewise.
2902 * amd64-nat.c: Likewise.
2903 * amd64-sol2-tdep.c: Likewise.
2904 * amd64fbsd-tdep.c: Likewise.
2905 * amd64obsd-tdep.c: Likewise.
2906 * arch-utils.c: Likewise.
2907 * arm-linux-nat.c: Likewise.
2908 * arm-linux-tdep.c: Likewise.
2909 * arm-tdep.c: Likewise.
2910 * arm-wince-tdep.c: Likewise.
2911 * armbsd-tdep.c: Likewise.
2912 * armnbsd-nat.c: Likewise.
2913 * armnbsd-tdep.c: Likewise.
2914 * armobsd-tdep.c: Likewise.
2915 * avr-tdep.c: Likewise.
2916 * ax-gdb.c: Likewise.
2917 * ax-general.c: Likewise.
2918 * bcache.c: Likewise.
2919 * bfin-tdep.c: Likewise.
2920 * breakpoint.c: Likewise.
2921 * build-id.c: Likewise.
2922 * buildsym.c: Likewise.
2923 * c-exp.y: Likewise.
2924 * c-lang.c: Likewise.
2925 * c-typeprint.c: Likewise.
2926 * c-valprint.c: Likewise.
2927 * charset.c: Likewise.
2928 * cli-out.c: Likewise.
2929 * cli/cli-cmds.c: Likewise.
2930 * cli/cli-decode.c: Likewise.
2931 * cli/cli-dump.c: Likewise.
2932 * cli/cli-interp.c: Likewise.
2933 * cli/cli-logging.c: Likewise.
2934 * cli/cli-script.c: Likewise.
2935 * cli/cli-setshow.c: Likewise.
2936 * cli/cli-utils.c: Likewise.
2937 * coffread.c: Likewise.
2938 * common/agent.c: Likewise.
2939 * common/buffer.c: Likewise.
2940 * common/buffer.h: Likewise.
2941 * common/common-utils.c: Likewise.
2942 * common/filestuff.c: Likewise.
2943 * common/filestuff.c: Likewise.
2944 * common/format.c: Likewise.
2945 * common/print-utils.c: Likewise.
2946 * common/rsp-low.c: Likewise.
2947 * common/signals.c: Likewise.
2948 * common/vec.h: Likewise.
2949 * common/xml-utils.c: Likewise.
2950 * core-regset.c: Likewise.
2951 * corefile.c: Likewise.
2952 * corelow.c: Likewise.
2953 * cp-abi.c: Likewise.
2954 * cp-name-parser.y: Likewise.
2955 * cp-support.c: Likewise.
2956 * cp-valprint.c: Likewise.
2957 * cris-tdep.c: Likewise.
2958 * d-exp.y: Likewise.
2959 * darwin-nat.c: Likewise.
2960 * dbxread.c: Likewise.
2961 * dcache.c: Likewise.
2962 * demangle.c: Likewise.
2963 * dicos-tdep.c: Likewise.
2964 * disasm.c: Likewise.
2965 * doublest.c: Likewise.
2966 * dsrec.c: Likewise.
2967 * dummy-frame.c: Likewise.
2968 * dwarf2-frame.c: Likewise.
2969 * dwarf2loc.c: Likewise.
2970 * dwarf2read.c: Likewise.
2971 * elfread.c: Likewise.
2972 * environ.c: Likewise.
2973 * eval.c: Likewise.
2974 * event-loop.c: Likewise.
2975 * exceptions.c: Likewise.
2976 * exec.c: Likewise.
2977 * expprint.c: Likewise.
2978 * f-exp.y: Likewise.
2979 * f-lang.c: Likewise.
2980 * f-typeprint.c: Likewise.
2981 * f-valprint.c: Likewise.
2982 * fbsd-nat.c: Likewise.
2983 * findcmd.c: Likewise.
2984 * findvar.c: Likewise.
2985 * fork-child.c: Likewise.
2986 * frame.c: Likewise.
2987 * frv-linux-tdep.c: Likewise.
2988 * frv-tdep.c: Likewise.
2989 * gdb.c: Likewise.
2990 * gdb_bfd.c: Likewise.
2991 * gdbarch.c: Likewise.
2992 * gdbarch.sh: Likewise.
2993 * gdbtypes.c: Likewise.
2994 * gnu-nat.c: Likewise.
2995 * gnu-v2-abi.c: Likewise.
2996 * gnu-v3-abi.c: Likewise.
2997 * go-exp.y: Likewise.
2998 * go-lang.c: Likewise.
2999 * go32-nat.c: Likewise.
3000 * guile/guile.c: Likewise.
3001 * guile/scm-auto-load.c: Likewise.
3002 * hppa-hpux-tdep.c: Likewise.
3003 * hppa-linux-nat.c: Likewise.
3004 * hppanbsd-tdep.c: Likewise.
3005 * hppaobsd-tdep.c: Likewise.
3006 * i386-cygwin-tdep.c: Likewise.
3007 * i386-dicos-tdep.c: Likewise.
3008 * i386-linux-tdep.c: Likewise.
3009 * i386-nto-tdep.c: Likewise.
3010 * i386-sol2-tdep.c: Likewise.
3011 * i386-tdep.c: Likewise.
3012 * i386bsd-tdep.c: Likewise.
3013 * i386gnu-nat.c: Likewise.
3014 * i386nbsd-tdep.c: Likewise.
3015 * i386obsd-tdep.c: Likewise.
3016 * i387-tdep.c: Likewise.
3017 * ia64-libunwind-tdep.c: Likewise.
3018 * ia64-linux-nat.c: Likewise.
3019 * inf-child.c: Likewise.
3020 * inf-ptrace.c: Likewise.
3021 * inf-ttrace.c: Likewise.
3022 * infcall.c: Likewise.
3023 * infcmd.c: Likewise.
3024 * inflow.c: Likewise.
3025 * infrun.c: Likewise.
3026 * interps.c: Likewise.
3027 * iq2000-tdep.c: Likewise.
3028 * irix5-nat.c: Likewise.
3029 * jv-exp.y: Likewise.
3030 * jv-lang.c: Likewise.
3031 * jv-typeprint.c: Likewise.
3032 * jv-valprint.c: Likewise.
3033 * language.c: Likewise.
3034 * linux-fork.c: Likewise.
3035 * linux-nat.c: Likewise.
3036 * lm32-tdep.c: Likewise.
3037 * m2-exp.y: Likewise.
3038 * m2-typeprint.c: Likewise.
3039 * m32c-tdep.c: Likewise.
3040 * m32r-linux-nat.c: Likewise.
3041 * m32r-linux-tdep.c: Likewise.
3042 * m32r-rom.c: Likewise.
3043 * m32r-tdep.c: Likewise.
3044 * m68hc11-tdep.c: Likewise.
3045 * m68k-tdep.c: Likewise.
3046 * m68kbsd-tdep.c: Likewise.
3047 * m68klinux-nat.c: Likewise.
3048 * m68klinux-tdep.c: Likewise.
3049 * m88k-tdep.c: Likewise.
3050 * machoread.c: Likewise.
3051 * macrocmd.c: Likewise.
3052 * main.c: Likewise.
3053 * mdebugread.c: Likewise.
3054 * mem-break.c: Likewise.
3055 * memattr.c: Likewise.
3056 * memory-map.c: Likewise.
3057 * mep-tdep.c: Likewise.
3058 * mi/mi-cmd-break.c: Likewise.
3059 * mi/mi-cmd-disas.c: Likewise.
3060 * mi/mi-cmd-env.c: Likewise.
3061 * mi/mi-cmd-stack.c: Likewise.
3062 * mi/mi-cmd-var.c: Likewise.
3063 * mi/mi-cmds.c: Likewise.
3064 * mi/mi-console.c: Likewise.
3065 * mi/mi-getopt.c: Likewise.
3066 * mi/mi-interp.c: Likewise.
3067 * mi/mi-main.c: Likewise.
3068 * mi/mi-parse.c: Likewise.
3069 * microblaze-rom.c: Likewise.
3070 * microblaze-tdep.c: Likewise.
3071 * mingw-hdep.c: Likewise.
3072 * minidebug.c: Likewise.
3073 * minsyms.c: Likewise.
3074 * mips-irix-tdep.c: Likewise.
3075 * mips-linux-tdep.c: Likewise.
3076 * mips-tdep.c: Likewise.
3077 * mips64obsd-tdep.c: Likewise.
3078 * mipsnbsd-tdep.c: Likewise.
3079 * mipsread.c: Likewise.
3080 * mn10300-linux-tdep.c: Likewise.
3081 * mn10300-tdep.c: Likewise.
3082 * monitor.c: Likewise.
3083 * moxie-tdep.c: Likewise.
3084 * mt-tdep.c: Likewise.
3085 * nat/linux-btrace.c: Likewise.
3086 * nat/linux-osdata.c: Likewise.
3087 * nat/linux-procfs.c: Likewise.
3088 * nat/linux-ptrace.c: Likewise.
3089 * nat/linux-waitpid.c: Likewise.
3090 * nbsd-tdep.c: Likewise.
3091 * nios2-linux-tdep.c: Likewise.
3092 * nto-procfs.c: Likewise.
3093 * nto-tdep.c: Likewise.
3094 * objc-lang.c: Likewise.
3095 * objfiles.c: Likewise.
3096 * opencl-lang.c: Likewise.
3097 * osabi.c: Likewise.
3098 * osdata.c: Likewise.
3099 * p-exp.y: Likewise.
3100 * p-lang.c: Likewise.
3101 * p-typeprint.c: Likewise.
3102 * parse.c: Likewise.
3103 * posix-hdep.c: Likewise.
3104 * ppc-linux-nat.c: Likewise.
3105 * ppc-sysv-tdep.c: Likewise.
3106 * ppcfbsd-tdep.c: Likewise.
3107 * ppcnbsd-tdep.c: Likewise.
3108 * ppcobsd-tdep.c: Likewise.
3109 * printcmd.c: Likewise.
3110 * procfs.c: Likewise.
3111 * prologue-value.c: Likewise.
3112 * python/py-auto-load.c: Likewise.
3113 * python/py-gdb-readline.c: Likewise.
3114 * ravenscar-thread.c: Likewise.
3115 * regcache.c: Likewise.
3116 * registry.c: Likewise.
3117 * remote-fileio.c: Likewise.
3118 * remote-m32r-sdi.c: Likewise.
3119 * remote-mips.c: Likewise.
3120 * remote-notif.c: Likewise.
3121 * remote-sim.c: Likewise.
3122 * remote.c: Likewise.
3123 * reverse.c: Likewise.
3124 * rs6000-aix-tdep.c: Likewise.
3125 * ser-base.c: Likewise.
3126 * ser-go32.c: Likewise.
3127 * ser-mingw.c: Likewise.
3128 * ser-pipe.c: Likewise.
3129 * ser-tcp.c: Likewise.
3130 * ser-unix.c: Likewise.
3131 * serial.c: Likewise.
3132 * sh-tdep.c: Likewise.
3133 * sh64-tdep.c: Likewise.
3134 * shnbsd-tdep.c: Likewise.
3135 * skip.c: Likewise.
3136 * sol-thread.c: Likewise.
3137 * solib-dsbt.c: Likewise.
3138 * solib-frv.c: Likewise.
3139 * solib-osf.c: Likewise.
3140 * solib-som.c: Likewise.
3141 * solib-spu.c: Likewise.
3142 * solib-target.c: Likewise.
3143 * solib.c: Likewise.
3144 * somread.c: Likewise.
3145 * source.c: Likewise.
3146 * sparc-nat.c: Likewise.
3147 * sparc-sol2-tdep.c: Likewise.
3148 * sparc-tdep.c: Likewise.
3149 * sparc64-tdep.c: Likewise.
3150 * sparc64fbsd-tdep.c: Likewise.
3151 * sparc64nbsd-tdep.c: Likewise.
3152 * sparcnbsd-tdep.c: Likewise.
3153 * spu-linux-nat.c: Likewise.
3154 * spu-multiarch.c: Likewise.
3155 * spu-tdep.c: Likewise.
3156 * stabsread.c: Likewise.
3157 * stack.c: Likewise.
3158 * std-regs.c: Likewise.
3159 * symfile.c: Likewise.
3160 * symmisc.c: Likewise.
3161 * symtab.c: Likewise.
3162 * target.c: Likewise.
3163 * thread.c: Likewise.
3164 * tilegx-linux-nat.c: Likewise.
3165 * tilegx-tdep.c: Likewise.
3166 * top.c: Likewise.
3167 * tracepoint.c: Likewise.
3168 * tui/tui-command.c: Likewise.
3169 * tui/tui-data.c: Likewise.
3170 * tui/tui-disasm.c: Likewise.
3171 * tui/tui-file.c: Likewise.
3172 * tui/tui-layout.c: Likewise.
3173 * tui/tui-out.c: Likewise.
3174 * tui/tui-regs.c: Likewise.
3175 * tui/tui-source.c: Likewise.
3176 * tui/tui-stack.c: Likewise.
3177 * tui/tui-win.c: Likewise.
3178 * tui/tui-windata.c: Likewise.
3179 * tui/tui-winsource.c: Likewise.
3180 * typeprint.c: Likewise.
3181 * ui-file.c: Likewise.
3182 * ui-out.c: Likewise.
3183 * user-regs.c: Likewise.
3184 * utils.c: Likewise.
3185 * v850-tdep.c: Likewise.
3186 * valarith.c: Likewise.
3187 * valops.c: Likewise.
3188 * valprint.c: Likewise.
3189 * value.c: Likewise.
3190 * varobj.c: Likewise.
3191 * vax-tdep.c: Likewise.
3192 * vaxnbsd-tdep.c: Likewise.
3193 * vaxobsd-tdep.c: Likewise.
3194 * windows-nat.c: Likewise.
3195 * xcoffread.c: Likewise.
3196 * xml-support.c: Likewise.
3197 * xstormy16-tdep.c: Likewise.
3198 * xtensa-linux-nat.c: Likewise.
3199
3200 2014-08-07 Gary Benson <gbenson@redhat.com>
3201
3202 * common/common-defs.h: Include gdb_assert.h.
3203 * aarch64-tdep.c: Do not include gdb_assert.h.
3204 * addrmap.c: Likewise.
3205 * aix-thread.c: Likewise.
3206 * alpha-linux-tdep.c: Likewise.
3207 * alpha-mdebug-tdep.c: Likewise.
3208 * alphanbsd-tdep.c: Likewise.
3209 * amd64-nat.c: Likewise.
3210 * amd64-tdep.c: Likewise.
3211 * amd64bsd-nat.c: Likewise.
3212 * amd64fbsd-nat.c: Likewise.
3213 * amd64fbsd-tdep.c: Likewise.
3214 * amd64nbsd-nat.c: Likewise.
3215 * amd64nbsd-tdep.c: Likewise.
3216 * amd64obsd-nat.c: Likewise.
3217 * amd64obsd-tdep.c: Likewise.
3218 * arch-utils.c: Likewise.
3219 * arm-tdep.c: Likewise.
3220 * armbsd-tdep.c: Likewise.
3221 * auxv.c: Likewise.
3222 * bcache.c: Likewise.
3223 * bfin-tdep.c: Likewise.
3224 * blockframe.c: Likewise.
3225 * breakpoint.c: Likewise.
3226 * bsd-kvm.c: Likewise.
3227 * bsd-uthread.c: Likewise.
3228 * buildsym.c: Likewise.
3229 * c-exp.y: Likewise.
3230 * c-lang.c: Likewise.
3231 * charset.c: Likewise.
3232 * cleanups.c: Likewise.
3233 * cli-out.c: Likewise.
3234 * cli/cli-decode.c: Likewise.
3235 * cli/cli-dump.c: Likewise.
3236 * cli/cli-logging.c: Likewise.
3237 * cli/cli-script.c: Likewise.
3238 * cli/cli-utils.c: Likewise.
3239 * coffread.c: Likewise.
3240 * common/common-utils.c: Likewise.
3241 * common/queue.h: Likewise.
3242 * common/signals.c: Likewise.
3243 * common/vec.h: Likewise.
3244 * complaints.c: Likewise.
3245 * completer.c: Likewise.
3246 * corelow.c: Likewise.
3247 * cp-abi.c: Likewise.
3248 * cp-name-parser.y: Likewise.
3249 * cp-namespace.c: Likewise.
3250 * cp-support.c: Likewise.
3251 * cris-tdep.c: Likewise.
3252 * dbxread.c: Likewise.
3253 * dictionary.c: Likewise.
3254 * doublest.c: Likewise.
3255 * dsrec.c: Likewise.
3256 * dummy-frame.c: Likewise.
3257 * dwarf2-frame-tailcall.c: Likewise.
3258 * dwarf2-frame.c: Likewise.
3259 * dwarf2expr.c: Likewise.
3260 * dwarf2loc.c: Likewise.
3261 * dwarf2read.c: Likewise.
3262 * eval.c: Likewise.
3263 * event-loop.c: Likewise.
3264 * exceptions.c: Likewise.
3265 * expprint.c: Likewise.
3266 * f-valprint.c: Likewise.
3267 * fbsd-nat.c: Likewise.
3268 * findvar.c: Likewise.
3269 * frame-unwind.c: Likewise.
3270 * frame.c: Likewise.
3271 * frv-tdep.c: Likewise.
3272 * gcore.c: Likewise.
3273 * gdb-dlfcn.c: Likewise.
3274 * gdb_bfd.c: Likewise.
3275 * gdbarch.c: Likewise.
3276 * gdbarch.sh: Likewise.
3277 * gdbtypes.c: Likewise.
3278 * gnu-nat.c: Likewise.
3279 * gnu-v3-abi.c: Likewise.
3280 * go-lang.c: Likewise.
3281 * guile/scm-exception.c: Likewise.
3282 * guile/scm-gsmob.c: Likewise.
3283 * guile/scm-lazy-string.c: Likewise.
3284 * guile/scm-math.c: Likewise.
3285 * guile/scm-pretty-print.c: Likewise.
3286 * guile/scm-safe-call.c: Likewise.
3287 * guile/scm-utils.c: Likewise.
3288 * guile/scm-value.c: Likewise.
3289 * h8300-tdep.c: Likewise.
3290 * hppa-hpux-nat.c: Likewise.
3291 * hppa-tdep.c: Likewise.
3292 * hppanbsd-tdep.c: Likewise.
3293 * hppaobsd-tdep.c: Likewise.
3294 * i386-darwin-nat.c: Likewise.
3295 * i386-darwin-tdep.c: Likewise.
3296 * i386-nto-tdep.c: Likewise.
3297 * i386-tdep.c: Likewise.
3298 * i386bsd-nat.c: Likewise.
3299 * i386fbsd-tdep.c: Likewise.
3300 * i386gnu-nat.c: Likewise.
3301 * i386nbsd-tdep.c: Likewise.
3302 * i386obsd-tdep.c: Likewise.
3303 * i387-tdep.c: Likewise.
3304 * ia64-libunwind-tdep.c: Likewise.
3305 * ia64-tdep.c: Likewise.
3306 * inf-ptrace.c: Likewise.
3307 * inf-ttrace.c: Likewise.
3308 * infcall.c: Likewise.
3309 * infcmd.c: Likewise.
3310 * infrun.c: Likewise.
3311 * inline-frame.c: Likewise.
3312 * interps.c: Likewise.
3313 * jv-lang.c: Likewise.
3314 * jv-typeprint.c: Likewise.
3315 * linux-fork.c: Likewise.
3316 * linux-nat.c: Likewise.
3317 * linux-thread-db.c: Likewise.
3318 * m32c-tdep.c: Likewise.
3319 * m32r-linux-nat.c: Likewise.
3320 * m32r-tdep.c: Likewise.
3321 * m68k-tdep.c: Likewise.
3322 * m68kbsd-nat.c: Likewise.
3323 * m68kbsd-tdep.c: Likewise.
3324 * m88k-tdep.c: Likewise.
3325 * machoread.c: Likewise.
3326 * macroexp.c: Likewise.
3327 * macrotab.c: Likewise.
3328 * maint.c: Likewise.
3329 * mdebugread.c: Likewise.
3330 * memory-map.c: Likewise.
3331 * mep-tdep.c: Likewise.
3332 * mi/mi-common.c: Likewise.
3333 * microblaze-tdep.c: Likewise.
3334 * mingw-hdep.c: Likewise.
3335 * mips-linux-nat.c: Likewise.
3336 * mips-linux-tdep.c: Likewise.
3337 * mips-tdep.c: Likewise.
3338 * mips64obsd-tdep.c: Likewise.
3339 * mipsnbsd-tdep.c: Likewise.
3340 * mn10300-linux-tdep.c: Likewise.
3341 * mn10300-tdep.c: Likewise.
3342 * moxie-tdep.c: Likewise.
3343 * mt-tdep.c: Likewise.
3344 * nat/linux-btrace.c: Likewise.
3345 * nat/linux-osdata.c: Likewise.
3346 * nat/linux-ptrace.c: Likewise.
3347 * nat/mips-linux-watch.c: Likewise.
3348 * nios2-linux-tdep.c: Likewise.
3349 * nios2-tdep.c: Likewise.
3350 * objc-lang.c: Likewise.
3351 * objfiles.c: Likewise.
3352 * obsd-nat.c: Likewise.
3353 * opencl-lang.c: Likewise.
3354 * osabi.c: Likewise.
3355 * parse.c: Likewise.
3356 * ppc-linux-nat.c: Likewise.
3357 * ppc-sysv-tdep.c: Likewise.
3358 * ppcfbsd-nat.c: Likewise.
3359 * ppcfbsd-tdep.c: Likewise.
3360 * ppcnbsd-nat.c: Likewise.
3361 * ppcnbsd-tdep.c: Likewise.
3362 * ppcobsd-nat.c: Likewise.
3363 * ppcobsd-tdep.c: Likewise.
3364 * printcmd.c: Likewise.
3365 * procfs.c: Likewise.
3366 * prologue-value.c: Likewise.
3367 * psymtab.c: Likewise.
3368 * python/py-lazy-string.c: Likewise.
3369 * python/py-value.c: Likewise.
3370 * regcache.c: Likewise.
3371 * reggroups.c: Likewise.
3372 * registry.c: Likewise.
3373 * remote-sim.c: Likewise.
3374 * remote.c: Likewise.
3375 * rs6000-aix-tdep.c: Likewise.
3376 * rs6000-tdep.c: Likewise.
3377 * s390-linux-tdep.c: Likewise.
3378 * score-tdep.c: Likewise.
3379 * ser-base.c: Likewise.
3380 * ser-mingw.c: Likewise.
3381 * sh-tdep.c: Likewise.
3382 * sh64-tdep.c: Likewise.
3383 * solib-darwin.c: Likewise.
3384 * solib-spu.c: Likewise.
3385 * solib-svr4.c: Likewise.
3386 * source.c: Likewise.
3387 * sparc-nat.c: Likewise.
3388 * sparc-sol2-tdep.c: Likewise.
3389 * sparc-tdep.c: Likewise.
3390 * sparc64-sol2-tdep.c: Likewise.
3391 * sparc64-tdep.c: Likewise.
3392 * sparc64fbsd-tdep.c: Likewise.
3393 * sparc64nbsd-tdep.c: Likewise.
3394 * sparc64obsd-tdep.c: Likewise.
3395 * sparcnbsd-tdep.c: Likewise.
3396 * sparcobsd-tdep.c: Likewise.
3397 * spu-multiarch.c: Likewise.
3398 * spu-tdep.c: Likewise.
3399 * stabsread.c: Likewise.
3400 * stack.c: Likewise.
3401 * symfile.c: Likewise.
3402 * symtab.c: Likewise.
3403 * target-descriptions.c: Likewise.
3404 * target-memory.c: Likewise.
3405 * target.c: Likewise.
3406 * tic6x-linux-tdep.c: Likewise.
3407 * tic6x-tdep.c: Likewise.
3408 * tilegx-linux-nat.c: Likewise.
3409 * tilegx-tdep.c: Likewise.
3410 * top.c: Likewise.
3411 * tramp-frame.c: Likewise.
3412 * tui/tui-out.c: Likewise.
3413 * tui/tui-winsource.c: Likewise.
3414 * ui-out.c: Likewise.
3415 * user-regs.c: Likewise.
3416 * utils.c: Likewise.
3417 * v850-tdep.c: Likewise.
3418 * valops.c: Likewise.
3419 * value.c: Likewise.
3420 * varobj.c: Likewise.
3421 * vax-nat.c: Likewise.
3422 * xml-syscall.c: Likewise.
3423 * xml-tdesc.c: Likewise.
3424 * xstormy16-tdep.c: Likewise.
3425 * xtensa-linux-nat.c: Likewise.
3426 * xtensa-tdep.c: Likewise.
3427
3428 2014-08-07 Gary Benson <gbenson@redhat.com>
3429
3430 * common/common-defs.h: Include common-utils.h.
3431 * defs.h: Do not include common-utils.h.
3432 * common/gdb_assert.h: Likewise.
3433 * darwin-nat.h: Likewise.
3434 * nat/linux-btrace.c: Likewise.
3435 * target/waitstatus.h: Likewise.
3436
3437 2014-08-07 Gary Benson <gbenson@redhat.com>
3438
3439 * common/common-defs.h: Include ptid.h.
3440 * defs.h: Do not include ptid.h.
3441 * inferior.h: Likewise.
3442 * infrun.h: Likewise.
3443 * nat/linux-btrace.h: Likewise.
3444 * nat/linux-osdata.h: Likewise.
3445 * target/waitstatus.h: Likewise.
3446
3447 2014-08-07 Gary Benson <gbenson@redhat.com>
3448
3449 * common/common-defs.h: Include gdb_locale.h.
3450 * defs.h: Do not include gdb_locale.h.
3451
3452 2014-08-07 Gary Benson <gbenson@redhat.com>
3453
3454 * common/common-defs.h: Include gdb/signals.h.
3455 * defs.h: Do not include gdb/signals.h.
3456
3457 2014-08-07 Gary Benson <gbenson@redhat.com>
3458
3459 * common/common-defs.h: Include pathmax.h.
3460 * defs.h: Do not include pathmax.h.
3461
3462 2014-08-07 Gary Benson <gbenson@redhat.com>
3463
3464 * common/common-defs.h: Include libiberty.h.
3465 * defs.h: Do not include libiberty.h.
3466 * common/queue.h: Likewise.
3467 * cp-name-parser.y: Likewise.
3468 * mi/mi-cmd-catch.c: Likewise.
3469 * python/python.c: Likewise.
3470
3471 2014-08-07 Gary Benson <gbenson@redhat.com>
3472
3473 * common/common-defs.h: Include ansidecl.h.
3474 * defs.h: Do not include ansidecl.h.
3475 * common/buffer.h: Likewise.
3476 * common/common-utils.h: Likewise.
3477
3478 2014-08-07 Gary Benson <gbenson@redhat.com>
3479
3480 * common/common-defs.h: Include stddef.h.
3481 * defs.h: Do not include stddef.h.
3482 * common/common-utils.h: Likewise.
3483 * amd64fbsd-nat.c: Likewise.
3484 * bcache.c: Likewise.
3485 * charset.c: Likewise.
3486 * common/buffer.h: Likewise.
3487 * common/vec.h: Likewise.
3488 * i386bsd-nat.c: Likewise.
3489 * nat/linux-btrace.h: Likewise.
3490 * ppcfbsd-nat.c: Likewise.
3491 * ppcnbsd-tdep.h: Likewise.
3492 * ppcobsd-nat.c: Likewise.
3493 * ppcobsd-tdep.h: Likewise.
3494 * python/py-gdb-readline.c: Likewise.
3495
3496 2014-08-07 Gary Benson <gbenson@redhat.com>
3497
3498 * common/common-defs.h: Include stdarg.h.
3499 * defs.h: Do not include stdarg.h.
3500 * ada-lang.c: Likewise.
3501 * common/common-utils.h: Likewise.
3502 * guile/scm-string.c: Likewise.
3503 * guile/scm-utils.c: Likewise.
3504 * m32c-tdep.c: Likewise.
3505
3506 2014-08-07 Gary Benson <gbenson@redhat.com>
3507
3508 * common/common-defs.h: Include stdlib.h.
3509 * defs.h: Do not include stdlib.h.
3510 * addrmap.c: Likewise.
3511 * bcache.c: Likewise.
3512 * common/buffer.c: Likewise.
3513 * common/common-utils.c: Likewise.
3514 * cp-name-parser.y: Likewise.
3515 * go32-nat.c: Likewise.
3516 * mn10300-linux-tdep.c: Likewise.
3517 * nat/linux-osdata.c: Likewise.
3518 * tui/tui.c: Likewise.
3519 * windows-nat.c: Likewise.
3520
3521 2014-08-07 Gary Benson <gbenson@redhat.com>
3522
3523 * common/common-defs.h: Include stdio.h.
3524 * defs.h: Do not include stdio.h.
3525 * ada-lang.c: Likewise.
3526 * common/buffer.c: Likewise.
3527 * common/common-utils.c: Likewise.
3528 * cp-name-parser.y: Likewise.
3529 * gnu-nat.c: Likewise.
3530 * go32-nat.c: Likewise.
3531 * i386gnu-nat.c: Likewise.
3532 * proc-api.c: Likewise.
3533 * proc-events.c: Likewise.
3534 * proc-flags.c: Likewise.
3535 * proc-why.c: Likewise.
3536 * python/python-internal.h: Likewise.
3537 * target-memory.c: Likewise.
3538 * tui/tui-io.c: Likewise.
3539 * tui/tui.c: Likewise.
3540
3541 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3542
3543 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3544 (scan_dyntag_auxv): Same.
3545
3546 2014-08-06 Yao Qi <yao@codesourcery.com>
3547
3548 * amd64-linux-nat.c: Remove duplicated include
3549 "x86-linux-nat.h".
3550 * i386-linux-nat.c: Likewise.
3551
3552 2014-08-06 Yao Qi <yao@codesourcery.com>
3553
3554 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3555 operand" with "Special opcode" in comments.
3556
3557 2014-08-05 Gary Benson <gbenson@redhat.com>
3558
3559 * interps.c (initialize_interps): Remove prototype.
3560 (interpreter_initialized): Remove static global.
3561 (interp_add): Do not call initialize_interps.
3562 (initialize_interps): Remove function.
3563
3564 2014-08-05 Gary Benson <gbenson@redhat.com>
3565
3566 * utils.c (vwarning): Remove spurious va_end.
3567
3568 2014-08-05 Alan Modra <amodra@gmail.com>
3569
3570 * charset.c (convert_between_encodings): Cast result of obstack_base.
3571 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3572 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3573 (read_unwind_info): Use size_t for some locals.
3574 * jit.c (finalize_symtab): Likewise.
3575 * utils.c (hashtab_obstack_allocate): Likewise.
3576 * symmisc.c (print_objfile_statistics): Update format strings.
3577
3578 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3579
3580 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3581 (Changes in GDB 7.8): ... here.
3582
3583 2014-08-04 Tom Tromey <tromey@redhat.com>
3584
3585 * target.c (set_targetdebug): New function.
3586 (initialize_targets): Pass set_targetdebug when creating "set
3587 debug target".
3588
3589 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3590
3591 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3592 if detecting a variable-sized field that is not the last field.
3593 Fix struct type length computation.
3594
3595 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3596
3597 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3598 Add debug trace.
3599
3600 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3601
3602 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3603 Remove "+ 8" offset in computation of CHAIN_VMA.
3604
3605 2014-07-31 Doug Evans <dje@google.com>
3606
3607 * inflow.c (child_terminal_inferior): Add comment.
3608 (child_terminal_ours_for_output): Add comment.
3609 (child_terminal_ours): Add comment.
3610 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3611 (linux_nat_terminal_ours): Add comment.
3612
3613 2014-07-31 Gary Benson <gbenson@redhat.com>
3614
3615 * common/btrace-common.h: Do not include defs.h or server.h.
3616 * nat/mips-linux-watch.h: Likewise.
3617 * gdb-dlfcn.h: Do not include defs.h.
3618 * tracefile.h: Likewise.
3619
3620 2014-07-30 Roland McGrath <mcgrathr@google.com>
3621
3622 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3623
3624 2014-07-30 Tom Tromey <tromey@redhat.com>
3625
3626 * bsd-kvm.c (bsd_kvm_open): Constify.
3627 * corelow.c (core_open): Constify.
3628 * ctf.c (ctf_open): Constify.
3629 * dbug-rom.c (dbug_open): Constify.
3630 * exec.c (exec_open): Constify.
3631 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3632 * microblaze-rom.c (picobug_open): Constify.
3633 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3634 Constify.
3635 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3636 * record-btrace.c (record_btrace_open): Constify.
3637 * record-full.c (record_full_core_open_1, record_full_open_1)
3638 (record_full_open): Constify.
3639 * remote-m32r-sdi.c (m32r_open): Constify.
3640 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3641 (rockhopper_open, lsi_open): Constify.
3642 * remote-sim.c (gdbsim_open): Constify.
3643 * remote.c (remote_open, extended_remote_open, remote_open_1):
3644 Constify.
3645 * target.h (struct target_ops) <to_open>: Make "arg" const.
3646 * tracefile-tfile.c (tfile_open): Constify.
3647
3648 2014-07-30 Tom Tromey <tromey@redhat.com>
3649
3650 * breakpoint.c (map_breakpoint_numbers): Update.
3651 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3652 (get_number_const): New function.
3653 (get_number): Rewrite using get_number_const.
3654 (init_number_or_range): Make "string" const.
3655 (number_is_in_list): Make "list" const.
3656 * cli/cli-utils.h (get_number_const): Declare.
3657 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3658 (init_number_or_range, number_is_in_list): Update.
3659 * printcmd.c (map_display_numbers): Update.
3660 * value.c (value_from_history_ref): Constify.
3661 * value.h (value_from_history_ref): Update.
3662
3663 2014-07-30 Tom Tromey <tromey@redhat.com>
3664
3665 * corefile.c (hook_type, call_extra_exec_file_hooks)
3666 (specify_exec_file_hook): Constify.
3667 * exec.c (exec_file_attach): Make "filename" const.
3668 * gdbcore.h (deprecated_exec_file_display_hook)
3669 (specify_exec_file_hook, exec_file_attach): Constify.
3670 * main.c (captured_main): Use catch_command_errors_const.
3671
3672 2014-07-30 Tom Tromey <tromey@redhat.com>
3673
3674 * target.c (open_target): New function.
3675 (add_target_with_completer, add_deprecated_target_alias): Use
3676 set_cmd_sfunc, set_cmd_context.
3677 (debug_to_open): Remove.
3678 (setup_target_debug): Update.
3679
3680 2014-07-30 Yao Qi <yao@codesourcery.com>
3681
3682 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3683 comments.
3684 * parse.c (exp_iterate): Update comments.
3685
3686 2014-07-30 Gary Benson <gbenson@redhat.com>
3687
3688 * common/common-defs.h: New file.
3689 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3690 * defs.h: Include common-defs.h.
3691 Do not include config.h or build-gnulib/config.h.
3692
3693 2014-07-30 Gary Benson <gbenson@redhat.com>
3694
3695 * common/common-utils.h: Do not include config.h.
3696 * nat/linux-btrace.h: Likewise.
3697
3698 2014-07-30 Gary Benson <gbenson@redhat.com>
3699
3700 * btrace.c: Include defs.h.
3701 * common/ptid.c: Include defs.h or server.h as appropriate.
3702 * nat/mips-linux-watch.c: Likewise.
3703
3704 2014-07-29 Tom Tromey <tromey@redhat.com>
3705
3706 * target.c (target_is_pushed): Simplify.
3707
3708 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3709
3710 GDB 7.8 released.
3711
3712 2014-07-29 Yao Qi <yao@codesourcery.com>
3713
3714 PR gdb/17206
3715 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3716
3717 2014-07-28 Doug Evans <xdje42@gmail.com>
3718
3719 PR guile/17203
3720 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3721 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3722 parameters.
3723
3724 2014-07-28 Will Newton <will.newton@linaro.org>
3725
3726 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3727 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3728 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3729 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3730 (THUMB2_EABI_SYSCALL): Likewise.
3731 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3732 struct tramp_frame.
3733 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3734 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3735
3736 2014-07-27 Doug Evans <xdje42@gmail.com>
3737
3738 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3739
3740 2014-07-27 Doug Evans <xdje42@gmail.com>
3741
3742 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3743
3744 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3745 Doug Evans <xdje42@gmail.com>
3746
3747 PR guile/17146
3748 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3749 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3750 * configure.ac: Try to use guild to compile an scm file, if it fails
3751 then disable guile support.
3752 * configure: Regenerate.
3753 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3754 GUILE_FILE_LIST.
3755 (GUILE_COMPILED_FILES): New variable.
3756 (GUILE_FILES) Update.
3757 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3758 (stamp-guile): Compile scm files.
3759 * guile/guile.c (boot_guile_support): New function.
3760 (standard_throw_args_p): New function.
3761 (print_standard_throw_error, print_throw_error): New functions.
3762 (handle_boot_error): New function.
3763 (initialize_scheme_side): Rewrite to call boot_guile_support.
3764 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3765 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3766
3767 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3768 Doug Evans <xdje42@gmail.com>
3769
3770 PR guile/17146
3771 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3772 * guile/lib/gdb/support.scm: New file.
3773 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3774 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3775 All uses updated.
3776 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3777 All uses updated.
3778 (%assert-type): Ditto, and renamed to assert-type.
3779 (%exception-print-style): Delete.
3780
3781 2014-07-26 Doug Evans <xdje42@gmail.com>
3782
3783 PR build/17105
3784 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3785 * configure: Regenerate.
3786 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3787 PYTHON_FILES.
3788 (PYTHON_FILES): New variable.
3789 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3790 (GUILE_FILES): New variable.
3791 (stamp-python, install-python, uninstall-python): Handle empty
3792 file list.
3793 (stamp-guile, install-guile, uninstall-guile): Ditto.
3794
3795 2014-07-26 Doug Evans <xdje42@gmail.com>
3796
3797 PR guile/17177
3798 * guile/lib/gdb.scm (pretty-printers): Export.
3799 (set-pretty-printers!): Export.
3800 * guile/lib/gdb/printing.scm (gdb module): Update.
3801 (prepend-pretty-printer!, append-pretty-printer!): Update.
3802 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3803 (pretty_printer_list_var): Delete.
3804 (pretty_printer_list): New static global.
3805 (gdbscm_pretty_printers): New function.
3806 (gdbscm_set_pretty_printers_x): New function.
3807 (ppscm_find_pretty_printer_from_gdb): Update.
3808 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3809 (gdbscm_initialize_pretty_printers): Update.
3810
3811 2014-07-26 Doug Evans <xdje42@gmail.com>
3812
3813 PR 17185
3814 * configure.ac: Add check for header gc/gc.h.
3815 Add check for function setenv.
3816 * configure: Regenerate.
3817 * config.in: Regenerate.
3818 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3819
3820 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3821
3822 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3823 variation in gdbarch matching.
3824
3825 2014-07-25 Tom Tromey <tromey@redhat.com>
3826
3827 * exec.c (using_exec_ops): Remove.
3828 (exec_close_1): Update. Remove extraneous block, reindent.
3829 (add_target_sections): Use target_is_pushed.
3830
3831 2014-07-25 Pedro Alves <palves@redhat.com>
3832
3833 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3834 * monitor.c (monitor_create_inferior): Likewise.
3835 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3836 * remote-sim.c (gdbsim_create_inferior): Likewise.
3837 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3838 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3839 * windows-nat.c (do_initial_windows_stuff): Likewise.
3840
3841 2014-07-25 Pedro Alves <palves@redhat.com>
3842
3843 * NEWS: Mention signal passing and "signal" command changes.
3844 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3845 comment.
3846 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3847 call.
3848 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3849 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3850 (jump_command): Adjust clear_proceed_status call.
3851 (signal_command): Warn if other thread that are resumed have
3852 signals that will be delivered. Adjust clear_proceed_status call.
3853 (until_next_command, finish_command)
3854 (proceed_after_attach_callback, attach_command_post_wait)
3855 (attach_command): Adjust clear_proceed_status call.
3856 * infrun.c (proceed_after_vfork_done): Likewise.
3857 (proceed_after_attach_callback): Adjust comment.
3858 (clear_proceed_status_thread): Clear stop_signal if not in pass
3859 state.
3860 (clear_proceed_status_callback): Delete.
3861 (clear_proceed_status): New 'step' parameter. Only clear the
3862 proceed status of threads the command being prepared is about to
3863 resume.
3864 (proceed): If passed in an explicit signal, override stop_signal
3865 with it. Don't pass the last stop signal to the thread we're
3866 resuming.
3867 (init_wait_for_inferior): Adjust clear_proceed_status call.
3868 (switch_back_to_stepped_thread): Clear the signal if it should not
3869 be passed.
3870 * infrun.h (clear_proceed_status): New 'step' parameter.
3871 (user_visible_resume_ptid): Add comment.
3872 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3873 signal is in pass state.
3874 * remote.c (append_pending_thread_resumptions): Likewise.
3875 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3876
3877 2014-07-25 Tom Tromey <tromey@redhat.com>
3878
3879 * target.h (target_stopped_data_address)
3880 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3881 parentheses.
3882
3883 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3884
3885 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3886 comments.
3887 (avr_pointer_to_address): Likewise.
3888
3889 2014-07-24 Tom Tromey <tromey@redhat.com>
3890
3891 * monitor.c (compile_pattern): Update.
3892 * target.h (struct target_ops) <to_shortname, to_longname,
3893 to_doc>: Now const.
3894
3895 2014-07-24 Tom Tromey <tromey@redhat.com>
3896
3897 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3898 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3899 (add_info_alias, add_com): Make "doc" const.
3900 (print_doc_line): Make "str" const.
3901 (delete_cmd): Update.
3902 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3903 (print_doc_line): Update.
3904 * cli/cli-script.c (document_command): Update.
3905 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3906 (add_com, add_info, add_info_alias): Update.
3907 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3908 * python/py-cmd.c (cmdpy_destroyer): Update.
3909
3910 2014-07-24 Tom Tromey <tromey@redhat.com>
3911
3912 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3913 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3914 (help_cmd_list): Constify.
3915 (lookup_cmd): Update.
3916 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3917 const.
3918 (help_cmd_list, apropos_cmd): Update.
3919 * cli/cli-script.c (show_user): Update.
3920 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3921 * cli/cli-setshow.h (cmd_show_list): Update.
3922 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3923 (cmd_show_list): Update.
3924 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3925 * python/py-cmd.c (cmdpy_destroyer): Update.
3926
3927 2014-07-24 Tom Tromey <tromey@redhat.com>
3928
3929 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3930 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3931 const.
3932 * command.h (deprecate_cmd): Update.
3933 * maint.c (maintenance_do_deprecate): Add casts.
3934
3935 2014-07-24 Tom Tromey <tromey@redhat.com>
3936
3937 * cli/cli-decode.c (help_cmd): Make parameter "const".
3938 * cli/cli-decode.h (help_cmd): Update.
3939
3940 2014-07-24 Tom Tromey <tromey@redhat.com>
3941
3942 * stack.c (up_silently_base, down_silently_base): Make argument
3943 const.
3944
3945 2014-07-24 Tom Tromey <tromey@redhat.com>
3946
3947 * solib.c (solib_add): Make "pattern" const.
3948 * solib.h (solib_add): Update.
3949
3950 2014-07-24 Tom Tromey <tromey@redhat.com>
3951
3952 * remote.c (remote_serial_open, print_packet, putpkt)
3953 (putpkt_binary): Constify.
3954 * remote.h (putpkt): Update.
3955
3956 2014-07-24 Tom Tromey <tromey@redhat.com>
3957
3958 * monitor.c (monitor_open): Make "args" const.
3959 * monitor.h (monitor_open): Update.
3960
3961 2014-07-24 Tom Tromey <tromey@redhat.com>
3962
3963 * maint.c (match_bfd_flags): Make "string" const.
3964 (print_bfd_section_info): Remove casts.
3965 (print_objfile_section_info): Make "string" const.
3966
3967 2014-07-24 Tom Tromey <tromey@redhat.com>
3968
3969 * inf-child.c (inf_child_open_target): Make "arg" const.
3970 * inf-child.h (inf_child_open_target): Update.
3971
3972 2014-07-24 Tom Tromey <tromey@redhat.com>
3973
3974 * environ.c (unset_in_environ): Make "var" const.
3975 * environ.h (unset_in_environ): Update.
3976
3977 2014-07-24 Tom Tromey <tromey@redhat.com>
3978
3979 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3980 Make "cmd" const.
3981 (scan_filename_with_cleanup): Likewise.
3982 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3983 Make arguments const.
3984 (restore_command): Update.
3985
3986 2014-07-24 Pedro Alves <palves@redhat.com>
3987
3988 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3989
3990 2014-07-24 Tom Tromey <tromey@redhat.com>
3991 Gary Benson <gbenson@redhat.com>
3992
3993 * nat/linux-ptrace.c (additional_flags): New global.
3994 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3995 additional_flags; don't check GDBSERVER.
3996 (linux_ptrace_set_additional_flags): New function.
3997 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3998 Declare.
3999 * linux-nat.c (_initialize_linux_nat): Call
4000 linux_ptrace_set_additional_flags.
4001
4002 2014-07-24 Tom Tromey <tromey@redhat.com>
4003
4004 * make-target-delegates (munge_type, write_debugmethod): New
4005 functions.
4006 (debug_names): New global.
4007 ($TARGET_DEBUG_PRINTER): New global.
4008 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4009 name.
4010 Write debug methods. Generate init_debug_target.
4011 * target-debug.h: New file.
4012 * target-delegates.c: Rebuild.
4013 * target.c: Include target-debug.h.
4014 (debug_target): Hoist definition.
4015 (target_kill, target_get_section_table, target_memory_map)
4016 (target_flash_erase, target_flash_done, target_detach)
4017 (target_disconnect, target_wait, target_resume)
4018 (target_pass_signals, target_program_signals, target_follow_fork)
4019 (target_mourn_inferior, target_search_memory)
4020 (target_thread_address_space, target_close)
4021 (target_find_new_threads, target_core_of_thread)
4022 (target_verify_memory, target_insert_mask_watchpoint)
4023 (target_remove_mask_watchpoint): Remove targetdebug code.
4024 (debug_to_post_attach, debug_to_prepare_to_store)
4025 (debug_to_files_info, debug_to_insert_breakpoint)
4026 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4027 (debug_to_region_ok_for_hw_watchpoint)
4028 (debug_to_can_accel_watchpoint_condition)
4029 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4030 (debug_to_watchpoint_addr_within_range)
4031 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4032 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4033 (debug_to_terminal_init, debug_to_terminal_inferior)
4034 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4035 (debug_to_terminal_save_ours, debug_to_terminal_info)
4036 (debug_to_load, debug_to_post_startup_inferior)
4037 (debug_to_insert_fork_catchpoint)
4038 (debug_to_remove_fork_catchpoint)
4039 (debug_to_insert_vfork_catchpoint)
4040 (debug_to_remove_vfork_catchpoint)
4041 (debug_to_insert_exec_catchpoint)
4042 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4043 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4044 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4045 (setup_target_debug): Call init_debug_target.
4046 * target.h (TARGET_DEBUG_PRINTER): New macro.
4047 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4048 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4049
4050 2014-07-24 Gary Benson <gbenson@redhat.com>
4051
4052 * exceptions.h (throw_vfatal): Renamed to...
4053 (throw_vquit): New declaration.
4054 (throw_quit): Likewise.
4055 * exceptions.c (throw_vfatal): Renamed to...
4056 (throw_vquit): New function.
4057 (throw_quit): Likewise.
4058 (throw_error): Call throw_verror rather than throw_it.
4059 * utils.h (vfatal): Removed.
4060 (fatal): Likewise.
4061 * utils.c (vfatal): Removed.
4062 (fatal): Likewise.
4063 (internal_verror): Replaced call to fatal with call to throw_quit.
4064 (quit): Replaced calls to fatal with calls to throw_quit.
4065
4066 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4067
4068 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4069 target_read_code.
4070
4071 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4072
4073 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4074 less than zero in conditional expression.
4075
4076 2014-07-23 Tom Tromey <tromey@redhat.com>
4077
4078 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4079 ($INTRO_PART): Don't match whitespace.
4080 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4081 argument matching.
4082 ($METHOD): Add $METHOD_TRAILER.
4083 (trim): Rewrite.
4084 (scan_target_h): New sub.
4085 Change main loop not to collect state.
4086 * target-delegates.c: Rebuild.
4087
4088 2014-07-23 Gary Benson <gbenson@redhat.com>
4089
4090 * cp-support.c (gdb_demangle): Fix build on systems without
4091 sigaltstack.
4092
4093 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4094
4095 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4096 for reference entry value target data value.
4097
4098 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4099
4100 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4101 value_available_contents_eq.
4102
4103 2014-07-22 Pedro Alves <palves@redhat.com>
4104
4105 * value.c (allocate_optimized_out_value): Don't mark value as
4106 non-lazy.
4107
4108 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4109
4110 * MAINTAINERS (Write After Approval): Update my email address.
4111
4112 2014-07-20 Doug Evans <dje@google.com>
4113
4114 PR server/17147
4115 * remote.c (putpkt_binary): Add text to error message.
4116
4117 2014-07-20 Yao Qi <yao@codesourcery.com>
4118
4119 * eval.c: Remove "Chill" from comments.
4120 * gdbtypes.h: Likewise.
4121 * symtab.h: Likewise.
4122
4123 2014-07-20 Yao Qi <yao@codesourcery.com>
4124
4125 * std-operator.def: Update comments to TERNOP_SLICE.
4126
4127 2014-07-20 Yao Qi <yao@codesourcery.com>
4128
4129 * std-operator.def: Remove BINOP_RANGE.
4130 * breakpoint.c (watchpoint_exp_is_const): Update.
4131 * expprint.c (dump_subexp_body_standard): Likewise.
4132 * eval.c (init_array_element): Remove dead code.
4133 (evaluate_subexp_standard): Likewise.
4134
4135 2014-07-20 Yao Qi <yao@codesourcery.com>
4136
4137 * std-operator.def: Remove BINOP_IN.
4138 * breakpoint.c (watchpoint_exp_is_const): Update.
4139 * eval.c (evaluate_subexp_standard): Likewise.
4140 * expprint.c (dump_subexp_body_standard): Likewise.
4141
4142 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4143
4144 * microblaze-tdep.c (microblaze_register_names): Add
4145 the rshr and rslr register names.
4146 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4147 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4148 Use of tdesc_numbered_register. Use of
4149 microblaze_register_g_packet_guesses. Use of
4150 tdesc_use_registers. Use of set_gdbarch_register_type.
4151 (microblaze_register_g_packet_guesses): New.
4152 * microblaze-tdep.h (microblaze_reg_num): Add
4153 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4154 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4155 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4156 * features/microblaze-core.xml: New file.
4157 * features/microblaze-stack-protect.xml: New file.
4158 * features/microblaze-with-stack-protect.c: New file.
4159 * features/microblaze-with-stack-protect.xml: New file.
4160 * features/microblaze.xml: New file.
4161 * features/microblaze.c: New file.
4162 * features/Makefile (microblaze-with-stack-protect): Add
4163 microblaze-with-stack-protect microblaze and microblaze-expedite.
4164 * regformats/microblaze-with-stack-protect.dat: New file.
4165 * regformats/microblaze.dat: New file.
4166 * doc/gdb.texinfo (MicroBlaze Features): Added.
4167
4168 2014-07-18 Tom Tromey <tromey@redhat.com>
4169
4170 * exec.c (exec_ops): Now static.
4171 * exec.h (exec_ops): Don't declare.
4172
4173 2014-07-18 Tom Tromey <tromey@redhat.com>
4174
4175 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4176 to find_target_beneath.
4177 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4178 find_target_beneath.
4179 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4180
4181 2014-07-18 Tom Tromey <tromey@redhat.com>
4182
4183 PR gdb/17130:
4184 * utils.c (quit): Use target_supports_terminal_ours.
4185 * target.h (target_supports_terminal_ours): Declare.
4186 * target.c (target_supports_delete_record): Don't check
4187 to_delete_record against NULL.
4188 (target_supports_terminal_ours): New function.
4189
4190 2014-07-18 Tom Tromey <tromey@redhat.com>
4191
4192 PR gdb/17130:
4193 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4194 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4195 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4196 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4197 * windows-nat.c (windows_xfer_partial): Always delegate.
4198 * record-btrace.c (record_btrace_xfer_partial): Simplify
4199 delegation.
4200 (record_btrace_fetch_registers, record_btrace_store_registers)
4201 (record_btrace_prepare_to_store, record_btrace_resume)
4202 (record_btrace_wait, record_btrace_find_new_threads)
4203 (record_btrace_thread_alive): Likewise.
4204 * procfs.c (procfs_xfer_partial): Always delegate.
4205 * corelow.c (core_xfer_partial): Always delegate.
4206 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4207
4208 2014-07-18 Tom Tromey <tromey@redhat.com>
4209
4210 * exec.c (exec_make_note_section): Move earlier.
4211
4212 2014-07-17 Doug Evans <dje@google.com>
4213
4214 PR gdb/17170
4215 * maint.c (count_symtabs_and_blocks): Handle NULL
4216 current_program_space.
4217 (report_command_stats): Check global enabled flag in addition to
4218 recorded enabled flag.
4219 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4220
4221 2014-07-16 Pedro Alves <palves@redhat.com>
4222
4223 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4224
4225 2014-07-16 Tom Tromey <tromey@redhat.com>
4226
4227 * target.h (struct target_ops) <to_delete_record>: Reformat
4228 comment.
4229
4230 2014-07-16 Tom Tromey <tromey@redhat.com>
4231
4232 * target-delegates.c: Rebuild.
4233
4234 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4235
4236 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4237 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4238 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4239 (avr_pointer_to_address): Likewise.
4240 (avr_address_class_type_flags): New function.
4241 (avr_address_class_type_flags_to_name): Likewise.
4242 (avr_address_class_name_to_type_flags): Likewise.
4243 (avr_gdbarch_init): Set address_class_type_flags,
4244 address_class_type_flags_to_name and
4245 address_class_name_to_type_flags.
4246
4247 2014-07-15 Pedro Alves <palves@redhat.com>
4248
4249 * linux-nat.c (kill_callback): Save errno and work with saved
4250 copy.
4251
4252 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4253
4254 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4255
4256 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4257
4258 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4259 breakpoint support correctly.
4260
4261 2014-07-14 Pedro Alves <palves@redhat.com>
4262
4263 * utils.c (prompt_for_continue): Call target_terminal_ours.
4264
4265 2014-07-14 Pedro Alves <palves@redhat.com>
4266
4267 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4268 catch_errors. Don't re-enable stdin or notify observers where,
4269 and rethrow error.
4270 (fetch_inferior_event_wrapper): Delete.
4271
4272 2014-07-14 Pedro Alves <palves@redhat.com>
4273
4274 PR gdb/17072
4275 * top.c: Include "inf-loop.h".
4276 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4277 field.
4278 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4279 was async before.
4280 (gdb_readline_wrapper): Store whether the target is async, and
4281 make it sync.
4282
4283 2014-07-14 Pedro Alves <palves@redhat.com>
4284
4285 PR gdb/17072
4286 * top.c (gdb_readline_wrapper_line): Tweak comment.
4287 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4288 the input handler callback.
4289
4290 2014-07-14 Pedro Alves <palves@redhat.com>
4291
4292 PR gdb/17072
4293 * main.c: Include event-top.h.
4294 (handle_command_errors): New function.
4295 (catch_command_errors, catch_command_errors_const): Use it.
4296
4297 2014-07-14 Pedro Alves <palves@redhat.com>
4298
4299 * exceptions.c (catch_command_errors, catch_command_errors_const):
4300 Moved to main.c.
4301 * exceptions.h (catch_command_errors_ftype)
4302 (catch_command_errors_const_ftype): Moved to main.c.
4303 (catch_command_errors, catch_command_errors_const): Delete
4304 declarations.
4305 * main.c (catch_command_errors_ftype)
4306 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4307 (catch_command_errors, catch_command_errors_const)): Moved here
4308 from exceptions.c and make static.
4309
4310 2014-07-14 Pedro Alves <palves@redhat.com>
4311
4312 * exceptions.c (print_any_exception): Delete.
4313 (catch_exceptions_with_msg): Use exception_print instead of
4314 print_any_exception.
4315 (catch_errors): Use exception_fprintf instead of
4316 print_any_exception.
4317 (catch_command_errors, catch_command_errors_const): Use
4318 exception_print instead of print_any_exception.
4319
4320 2014-07-14 Pedro Alves <palves@redhat.com>
4321
4322 * infcall.c (run_inferior_call): Set 'sync_execution' while
4323 running the inferior call.
4324
4325 2014-07-14 Pedro Alves <palves@redhat.com>
4326
4327 * value.c (value_contents_equal): Delete function.
4328 * value.h (value_contents_equal): Delete declaration.
4329
4330 2014-07-14 Tom Tromey <tromey@redhat.com>
4331
4332 PR exp/17106:
4333 * gdbtypes.c (is_dynamic_type_internal): New function, from
4334 is_dynamic_type.
4335 (is_dynamic_type): Rewrite.
4336 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4337 (resolve_dynamic_struct): Likewise.
4338 (resolve_dynamic_type_internal): New function, from
4339 resolve_dynamic_type.
4340 (resolve_dynamic_type): Rewrite.
4341
4342 2014-07-14 Tom Tromey <tromey@redhat.com>
4343
4344 * target.c (target_require_runnable): Also check record_stratum.
4345 Update comment.
4346
4347 2014-07-11 Yao Qi <yao@codesourcery.com>
4348
4349 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4350 thumb_instruction_restores_sp return true.
4351
4352 2014-07-11 Yao Qi <yao@codesourcery.com>
4353
4354 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4355 (thumb_in_function_epilogue_p): Call
4356 thumb_instruction_restores_sp.
4357
4358 2014-07-11 Yao Qi <yao@codesourcery.com>
4359
4360 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4361 'add sp, #imm'.
4362 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4363
4364 2014-07-11 Gary Benson <gbenson@redhat.com>
4365
4366 * amd64-linux-nat.c (gdbcore.h): Remove include.
4367 (regset.h): Likewise.
4368 (nat/linux-btrace.h): Likewise.
4369 (btrace.h): Likewise.
4370 (gdb_assert.h): Likewise.
4371 (string.h): Likewise.
4372 (sys/uio.h): Likewise.
4373 (sys/debugreg.h): Likewise.
4374 (sys/syscall.h): Likewise.
4375 (sys/procfs.h): Likewise.
4376 (sys/user.h): Likewise.
4377 (asm/ptrace.h): Likewise.
4378 (i386-nat.h): Likewise.
4379 * i386-linux-nat.c (i386-nat.h): Likewise.
4380 (regset.h): Likewise.
4381 (target.h): Likewise.
4382 (linux-nat.h): Likewise.
4383 (nat/linux-btrace.h): Likewise.
4384 (btrace.h): Likewise.
4385 (gdb_assert.h): Likewise.
4386 (string.h): Likewise.
4387 (sys/uio.h): Likewise.
4388 (sys/user.h): Likewise.
4389 (sys/procfs.h): Likewise.
4390 (sys/reg.h): Likewise.
4391 (sys/debugreg.h): Likewise.
4392 (ORIG_EAX): Remove definition.
4393
4394 2014-07-11 Gary Benson <gbenson@redhat.com>
4395
4396 * i386-linux-nat.h: New file.
4397 * x86-linux-nat.h: Likewise.
4398 * x86-linux-nat.c: Likewise.
4399 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4400 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4401 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4402 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4403 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4404 (PTRACE_SETREGSET): Likewise.
4405 (arch_lwp_info): Now in x86-linux-nat.c.
4406 (have_ptrace_getregset): Now in x86-linux-nat.h.
4407 (x86_linux_dr_get): Now in x86-linux-nat.c.
4408 (x86_linux_dr_set): Likewise.
4409 (x86_linux_dr_get_addr): Likewise.
4410 (x86_linux_dr_get_control): Likewise.
4411 (x86_linux_dr_get_status): Likewise.
4412 (update_debug_registers_callback): Likewise.
4413 (x86_linux_dr_set_control): Likewise.
4414 (x86_linux_dr_set_addr): Likewise.
4415 (x86_linux_prepare_to_resume): Likewise.
4416 (x86_linux_new_thread): Likewise.
4417 (x86_linux_new_fork): Likewise.
4418 (x86_linux_get_thread_area): Likewise.
4419 (super_post_startup_inferior): Likewise.
4420 (x86_linux_child_post_startup_inferior): Likewise.
4421 (AMD64_LINUX_USER64_CS): Likewise.
4422 (AMD64_LINUX_X32_DS): Likewise.
4423 (x86_linux_read_description): Likewise.
4424 (x86_linux_enable_btrace): Likewise.
4425 (x86_linux_disable_btrace): Likewise.
4426 (x86_linux_teardown_btrace): Likewise.
4427 (x86_linux_read_btrace): Likewise.
4428 (x86_linux_create_target): Likewise.
4429 (x86_linux_add_target): Likewise.
4430 * i386-linux-nat.c (x86-linux-nat.h): New include.
4431 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4432 (PTRACE_SETREGSET): Likewise.
4433 (arch_lwp_info): Now in x86-linux-nat.c.
4434 (have_ptrace_getregset): Now in x86-linux-nat.h.
4435 (x86_linux_dr_get): Now in x86-linux-nat.c.
4436 (x86_linux_dr_set): Likewise.
4437 (x86_linux_dr_get_addr): Likewise.
4438 (x86_linux_dr_get_control): Likewise.
4439 (x86_linux_dr_get_status): Likewise.
4440 (update_debug_registers_callback): Likewise.
4441 (x86_linux_dr_set_control): Likewise.
4442 (x86_linux_dr_set_addr): Likewise.
4443 (x86_linux_prepare_to_resume): Likewise.
4444 (x86_linux_new_thread): Likewise.
4445 (x86_linux_new_fork): Likewise.
4446 (x86_linux_get_thread_area): Likewise.
4447 (super_post_startup_inferior): Likewise.
4448 (x86_linux_child_post_startup_inferior): Likewise.
4449 (AMD64_LINUX_USER64_CS): Likewise.
4450 (AMD64_LINUX_X32_DS): Likewise.
4451 (x86_linux_read_description): Likewise.
4452 (x86_linux_enable_btrace): Likewise.
4453 (x86_linux_disable_btrace): Likewise.
4454 (x86_linux_teardown_btrace): Likewise.
4455 (x86_linux_read_btrace): Likewise.
4456 (x86_linux_create_target): Likewise.
4457 (x86_linux_add_target): Likewise.
4458
4459 2014-07-11 Gary Benson <gbenson@redhat.com>
4460
4461 * amd64-linux-nat.c: Comment and whitespace changes.
4462 * i386-linux-nat.c: Comment and whitespace changes.
4463
4464 2014-07-11 Gary Benson <gbenson@redhat.com>
4465
4466 * amd64-linux-nat.c (x86_linux_create_target): New function.
4467 (x86_linux_add_target): Likewise.
4468 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4469 * i386-linux-nat.c (x86_linux_create_target): New function.
4470 (x86_linux_add_target): Likewise.
4471 (_initialize_i386_linux_nat): Delegate to the above new functions.
4472
4473 2014-07-11 Gary Benson <gbenson@redhat.com>
4474
4475 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4476 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4477 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4478 (ps_get_thread_area): Delegate to the above.
4479
4480 2014-07-11 Gary Benson <gbenson@redhat.com>
4481
4482 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4483 x86_linux_read_description. All uses updated. amd64-specific
4484 code conditionalized. Conditionalized i386-specific code added.
4485 Redundant cast removed.
4486 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4487 x86_linux_read_description. All uses updated. i386-specific
4488 code conditionalized. Conditionalized amd64-specific code added.
4489 One sizeof replaced with the actual type it is describing.
4490
4491 2014-07-11 Gary Benson <gbenson@redhat.com>
4492
4493 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4494 x86_linux_dr_get. All uses updated.
4495 (amd64_linux_dr_set): Renamed to
4496 x86_linux_dr_set. All uses updated.
4497 (amd64_linux_dr_get_addr): Renamed to
4498 x86_linux_dr_get_addr. All uses updated.
4499 (amd64_linux_dr_get_control): Renamed to
4500 x86_linux_dr_get_control. All uses updated.
4501 (amd64_linux_dr_get_status): Renamed to
4502 x86_linux_dr_get_status. All uses updated.
4503 (amd64_linux_dr_set_control): Renamed to
4504 x86_linux_dr_set_control. All uses updated.
4505 (amd64_linux_dr_set_addr): Renamed to
4506 x86_linux_dr_set_addr. All uses updated.
4507 (amd64_linux_prepare_to_resume): Renamed to
4508 x86_linux_prepare_to_resume. All uses updated.
4509 (amd64_linux_new_thread): Renamed to
4510 x86_linux_new_thread. All uses updated.
4511 (amd64_linux_new_fork): Renamed to
4512 x86_linux_new_fork. All uses updated.
4513 (amd64_linux_child_post_startup_inferior): Renamed to
4514 x86_linux_child_post_startup_inferior. All uses updated.
4515 (amd64_linux_enable_btrace): Renamed to
4516 x86_linux_enable_btrace. All uses updated.
4517 (amd64_linux_disable_btrace): Renamed to
4518 x86_linux_disable_btrace. All uses updated.
4519 (amd64_linux_teardown_btrace): Renamed to
4520 x86_linux_teardown_btrace. All uses updated.
4521 (amd64_linux_read_btrace): Renamed to
4522 x86_linux_read_btrace. All uses updated.
4523 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4524 x86_linux_dr_get. All uses updated.
4525 (i386_linux_dr_set): Renamed to
4526 x86_linux_dr_set. All uses updated.
4527 (i386_linux_dr_get_addr): Renamed to
4528 x86_linux_dr_get_addr. All uses updated.
4529 (i386_linux_dr_get_control): Renamed to
4530 x86_linux_dr_get_control. All uses updated.
4531 (i386_linux_dr_get_status): Renamed to
4532 x86_linux_dr_get_status. All uses updated.
4533 (i386_linux_dr_set_control): Renamed to
4534 x86_linux_dr_set_control. All uses updated.
4535 (i386_linux_dr_set_addr): Renamed to
4536 x86_linux_dr_set_addr. All uses updated.
4537 (i386_linux_prepare_to_resume): Renamed to
4538 x86_linux_prepare_to_resume. All uses updated.
4539 (i386_linux_new_thread): Renamed to
4540 x86_linux_new_thread. All uses updated.
4541 (i386_linux_new_fork): Renamed to
4542 x86_linux_new_fork. All uses updated.
4543 (i386_linux_child_post_startup_inferior): Renamed to
4544 x86_linux_child_post_startup_inferior. All uses updated.
4545 (i386_linux_enable_btrace): Renamed to
4546 x86_linux_enable_btrace. All uses updated.
4547 (i386_linux_disable_btrace): Renamed to
4548 x86_linux_disable_btrace. All uses updated.
4549 (i386_linux_teardown_btrace): Renamed to
4550 x86_linux_teardown_btrace. All uses updated.
4551 (i386_linux_read_btrace): Renamed to
4552 x86_linux_read_btrace. All uses updated.
4553
4554 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4555
4556 * remote.c (extended_remote_post_attach): New function.
4557 (init_extended_remote_ops): Install it as to_post_attach method.
4558
4559 2014-07-09 Pedro Alves <palves@redhat.com>
4560
4561 * infcmd.c (attach_command_post_wait): Don't call
4562 target_terminal_inferior here.
4563 (attach_command): Call it here instead.
4564
4565 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4566
4567 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4568 field.
4569 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4570 from varobj.c, with additional checks.
4571 (c_varobj_ops): Fill in is_path_expr_parent field.
4572 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4573 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4574 field.
4575 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4576 ops method.
4577 (varobj_default_is_path_expr_parent): New function.
4578 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4579 (varobj_default_is_path_expr_parent): Declare new function.
4580
4581 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4582
4583 * infcmd.c (finish_backward): Turn internal error into normal error.
4584
4585 2014-07-07 Pedro Alves <palves@redhat.com>
4586
4587 PR gdb/17096
4588 * remote.c (async_handle_remote_sigint)
4589 (async_handle_remote_sigint_twice): Call
4590 gdb_call_async_signal_handler instead of
4591 mark_async_signal_handler.
4592
4593 2014-07-07 Tom Tromey <tromey@redhat.com>
4594
4595 * target-delegates.c: Rebuild.
4596 * target.c (target_info_record): Remove.
4597 * record.c (info_record_command): Unconditionally call
4598 to_info_record.
4599 * target.h (struct target_ops) <to_info_record>: Use
4600 TARGET_DEFAULT_IGNORE.
4601 (target_info_record): Remove.
4602
4603 2014-07-07 Tom Tromey <tromey@redhat.com>
4604
4605 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4606 TARGET_DEFAULT_NORETURN.
4607 * target.c (generic_tls_error): New function.
4608 (target_translate_tls_address): Don't search target stack.
4609 * target-delegates.c: Rebuild.
4610 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4611 stack.
4612 * linux-thread-db.c (thread_db_get_thread_local_address):
4613 Unconditionally call beneath target.
4614
4615 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4616
4617 * cli/cli-logging.c (pop_output_files): Assign targerr to
4618 gdb_stdtargerr.
4619
4620 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4621
4622 * MAINTAINERS (Write After Approval): Update my email address.
4623
4624 2014-07-02 Gary Benson <gbenson@redhat.com>
4625
4626 * proc-service.c (ps_xfer_memory): Update comment.
4627 (ps_pstop): Remove unused function.
4628 (ps_pcontinue): Likewise.
4629 (ps_lstop): Likewise.
4630 (ps_lcontinue): Likewise.
4631 (ps_lgetxregsize): Likewise.
4632 (ps_lgetxregs): Likewise.
4633 (ps_lsetxregs): Likewise.
4634 (ps_plog): Likewise.
4635 (ps_ptread): Likewise.
4636 (ps_ptwrite): Likewise.
4637
4638 2014-07-01 Mark Wielaard <mjw@redhat.com>
4639
4640 * dwarf2read.c (add_array_cv_type): New function.
4641 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4642 (read_tag_volatile_type): Likewise.
4643
4644 2014-07-01 Tom Tromey <tromey@redhat.com>
4645
4646 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4647 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4648 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4649 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4650 * command.h (cmd_cfunc_ftype): Move earlier.
4651 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4652 (add_com, add_info): Use cmd_cfunc_ftype.
4653
4654 2014-06-30 Tom Tromey <tromey@redhat.com>
4655
4656 * symtab.c (operator_chars): Make parameters and return type
4657 const.
4658 (file_matches): Make "files" const.
4659 (struct search_symbols_data) <files>: Now const.
4660 (search_symbols): Make "regexp" and "files" parameters const.
4661 Update.
4662 (symtab_symbol_info): Remove cast.
4663 (rbreak_command): Update.
4664 * symtab.h (search_symbols): Update.
4665
4666 2014-06-27 Yao Qi <yao@codesourcery.com>
4667
4668 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4669 Change parameter type to 'struct thread_info *'. Caller
4670 updated.
4671 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4672 Update declaration.
4673 * dummy-frame.c (struct dummy_frame_id): New.
4674 (dummy_frame_id_eq): New function.
4675 (struct dummy_frame) <id>: Change its type to 'struct
4676 dummy_frame_id'.
4677 (dummy_frame_push): Add parameter ptid and save it in
4678 dummy_frame_id.
4679 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4680 inferior_ptid.
4681 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4682 to inferior_ptid.
4683 (lookup_dummy_frame): Change parameter type to 'struct
4684 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4685 instead of frame_id_eq.
4686 (dummy_frame_pop): Add parameter ptid. Callers updated.
4687 Update comments. Compose dummy_frame_id and pass it to
4688 lookup_dummy_frame.
4689 (dummy_frame_discard): Add parameter ptid.
4690 (dummy_frame_sniffer): Compose dummy_frame_id and call
4691 dummy_frame_id_eq instead of frame_id_eq.
4692 (fprint_dummy_frames): Print ptid.
4693 * dummy-frame.h: Remove comments.
4694 (dummy_frame_push): Add ptid in declaration.
4695 (dummy_frame_pop, dummy_frame_discard): Likewise.
4696
4697 2014-06-26 Tom Tromey <tromey@redhat.com>
4698
4699 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4700 * command.h (error_no_arg): Update.
4701
4702 2014-06-26 Tom Tromey <tromey@redhat.com>
4703
4704 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4705 (do_show_command): Make "arg" const.
4706 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4707
4708 2014-06-26 Tom Tromey <tromey@redhat.com>
4709
4710 * record-full.c (record_full_get_bookmark): Make "args" const.
4711 (record_full_goto_bookmark): Make "raw_bookmark" const.
4712 * record.c (record_goto): New function.
4713 (cmd_record_goto): Use it. Now static.
4714 * record.h (record_goto): Declare.
4715 (cmd_record_goto): Remove declaration.
4716 * target-delegates.c: Rebuild.
4717 * target.h (struct target_ops) <to_get_bookmark,
4718 to_goto_bookmark>: Make parameter const.
4719
4720 2014-06-26 Tom Tromey <tromey@redhat.com>
4721
4722 * defs.h (generic_load): Update.
4723 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4724 * monitor.c (monitor_load): Make "args" const.
4725 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4726 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4727 const.
4728 (mips_load): Make "file" const.
4729 * remote-sim.c (gdbsim_load): Make "args" const.
4730 * remote.c (remote_load): Make "name" const.
4731 * symfile.c (generic_load): Make "args" const.
4732 * target-delegates.c: Rebuild.
4733 * target.c (target_load): Make "arg" const.
4734 (debug_to_load): Make "args" const.
4735 * target.h (struct target_ops) <to_load>: Make parameter const.
4736 (target_load): Update.
4737
4738 2014-06-26 Tom Tromey <tromey@redhat.com>
4739
4740 PR symtab/16902:
4741 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4742 (dwarf2_physname, read_partial_die)
4743 (guess_partial_die_structure_name, fixup_partial_die)
4744 (guess_full_die_structure_name, anonymous_struct_prefix)
4745 (dwarf2_name): Use per-BFD obstack.
4746
4747 2014-06-26 Yao Qi <yao@codesourcery.com>
4748
4749 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4750 dummyframe and this_id into inner block below.
4751
4752 2014-06-26 Yao Qi <yao@codesourcery.com>
4753
4754 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4755 with "signal_pass[0]" in the initialization of signal_pass.
4756
4757 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4758
4759 * record-btrace.c (record_btrace_generating_corefile)
4760 (record_btrace_prepare_to_generate_core)
4761 (record_btrace_done_generating_core): New.
4762 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4763 (record_btrace_store_registers, record_btrace_prepare_to_store):
4764 Forward request when generating a core file.
4765 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4766 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4767 to_done_generating_core.
4768
4769 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4770
4771 * target.h (target_ops) <to_prepare_to_generate_core>
4772 <to_done_generating_core>: New.
4773 (target_prepare_to_generate_core, target_done_generating_core): New.
4774 * target.c (target_prepare_to_generate_core)
4775 (target_done_generating_core): New.
4776 * target-delegates.c: Regenerate.
4777 * gcore.c: (write_gcore_file): Rename to ...
4778 (write_gcore_file_1): ...this.
4779 (write_gcore_file): Call target_prepare_to_generate_core
4780 and target_done_generating_core.
4781
4782 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4783
4784 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4785 * gcore.c (write_gcore_file): Free memory returned from
4786 make_corefile_notes.
4787 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4788 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4789
4790 2014-06-24 Yao Qi <yao@codesourcery.com>
4791
4792 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4793 (arm_linux_init_abi): Set skip_trampoline_code with
4794 gdbarch_skip_trampoline_code instead of
4795 find_solib_trampoline_target.
4796
4797 2014-06-24 Yao Qi <yao@codesourcery.com>
4798
4799 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4800 arm_skip_bx_reg returns non-zero.
4801
4802 2014-06-24 Yao Qi <yao@codesourcery.com>
4803
4804 * arm-tdep.c (arm_skip_bx_reg): New function.
4805 (arm_skip_stub): Call arm_skip_bx_reg.
4806
4807 2014-06-23 Don Breazeal <donb@codesourcery.com>
4808
4809 * MAINTAINERS: Add myself as write-after-approval maintainer.
4810
4811 2014-06-23 Pedro Alves <palves@redhat.com>
4812
4813 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4814 DR_CONTROL before setting DR0..DR3.
4815 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4816 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4817 bits of DR_CONTROL related to the debug register slot being
4818 disabled. If all slots are vacant, clear local slowdown as well,
4819 and assert DR_CONTROL is 0.
4820
4821 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4822
4823 * python/lib/gdb/command/xmethods.py
4824 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4825 current progspace only if the string "progspace" matches LOCUS_RE.
4826
4827 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4828
4829 Fix --with-system-readline with readline-6.3 patch 5.
4830 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4831 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4832 types.
4833
4834 2014-06-20 Tom Tromey <tromey@redhat.com>
4835
4836 * dwarf2read.c (dw2_get_real_path): Use correct type in
4837 OBSTACK_CALLOC.
4838 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4839
4840 2014-06-20 Gary Benson <gbenson@redhat.com>
4841
4842 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4843 * common/glibc_thread_db.h: Likewise.
4844 * common/i386-cpuid.h: Likewise.
4845 * common/i386-gcc-cpuid.h: Likewise.
4846 * common/linux-btrace.h: Likewise.
4847 * common/linux-osdata.h: Likewise.
4848 * common/linux-procfs.h: Likewise.
4849 * common/linux-ptrace.h: Likewise.
4850 * common/mips-linux-watch.h: Likewise.
4851 * common/linux-btrace.c: Moved to nat.
4852 * common/linux-osdata.c: Likewise.
4853 * common/linux-procfs.c: Likewise.
4854 * common/linux-ptrace.c: Likewise.
4855 * common/mips-linux-watch.c: Likewise.
4856 * nat/gdb_thread_db.h: Moved from common.
4857 * nat/glibc_thread_db.h: Likewise.
4858 * nat/i386-cpuid.h: Likewise.
4859 * nat/i386-gcc-cpuid.h: Likewise.
4860 * nat/linux-btrace.c: Likewise.
4861 * nat/linux-btrace.h: Likewise.
4862 * nat/linux-osdata.c: Likewise.
4863 * nat/linux-osdata.h: Likewise.
4864 * nat/linux-procfs.c: Likewise.
4865 * nat/linux-procfs.h: Likewise.
4866 * nat/linux-ptrace.c: Likewise.
4867 * nat/linux-ptrace.h: Likewise.
4868 * nat/mips-linux-watch.c: Likewise.
4869 * nat/mips-linux-watch.h: Likewise.
4870 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4871 (object file files): Reordered.
4872 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4873 of glibc_thread_db.h.
4874
4875 2014-06-20 Gary Benson <gbenson@redhat.com>
4876
4877 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4878 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4879 (i386_dr_low): Likewise.
4880 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4881 (i386_dr_low_set_addr): Likewise.
4882 (i386_dr_low_get_addr): Likewise.
4883 (i386_dr_low_can_set_control): Likewise.
4884 (i386_dr_low_set_control): Likewise.
4885 (i386_dr_low_get_control): Likewise.
4886 (i386_dr_low_get_status): Likewise.
4887 (i386_get_debug_register_length): Likewise.
4888 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4889 (i386_dr_low): Likewise.
4890 * nat/i386-dregs.c (i386-low.h): Remove include.
4891 (i386-nat.h): Likewise.
4892 (nat/i386-dregs.h): New include.
4893 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4894 (i386_dr_low_set_addr): Likewise.
4895 (i386_dr_low_get_addr): Likewise.
4896 (i386_dr_low_can_set_control): Likewise.
4897 (i386_dr_low_set_control): Likewise.
4898 (i386_dr_low_get_control): Likewise.
4899 (i386_dr_low_get_status): Likewise.
4900 (i386_get_debug_register_length): Likewise.
4901 (debug_hw_points): Likewise.
4902
4903 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4904
4905 * Makefile.in (SFILES): Add d-exp.y.
4906 (YYFILES): Add d-exp.c.
4907 (YYOBJ): Add d-exp.o.
4908 (local-maintainer-clean): Delete d-exp.c.
4909 * d-exp.y: New file.
4910 * d-lang.h (d_parse): New declaration.
4911 (d_error): New declaration.
4912 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4913 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4914 PREC_ORDER operators.
4915 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4916
4917 2014-06-19 Yao Qi <yao@codesourcery.com>
4918
4919 * gdbthread.h (any_running): Remove the declaration.
4920 * thread.c (any_running): Remove.
4921
4922 2014-06-19 Yao Qi <yao@codesourcery.com>
4923
4924 * gdbthread.h (struct thread_info) <state>: Change its type to
4925 'enum thread_state'. Update comments.
4926
4927 2014-06-19 Pedro Alves <palves@redhat.com>
4928
4929 * gdbthread.h (ALL_THREADS): Delete.
4930 (ALL_NON_EXITED_THREADS): New macro.
4931 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4932 instead of ALL_THREADS.
4933 * infrun.c (find_thread_needs_step_over)
4934 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4935 instead of ALL_THREADS.
4936 * record-btrace.c (record_btrace_open)
4937 (record_btrace_stop_recording, record_btrace_close)
4938 (record_btrace_is_replaying, record_btrace_resume)
4939 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4940 * remote.c (append_pending_thread_resumptions): Likewise.
4941 * thread.c (thread_apply_all_command): Likewise.
4942
4943 2014-06-19 Gary Benson <gbenson@redhat.com>
4944
4945 * i386-nat.c (i386_stopped_by_watchpoint):
4946 Use i386_dr_stopped_by_watchpoint.
4947 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4948 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4949
4950 2014-06-19 Gary Benson <gbenson@redhat.com>
4951
4952 * nat/i386-dregs.c: New file.
4953 * Makefile.in (i386-dregs.o): New rule.
4954 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4955 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4956 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4957 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4958 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4959 * config/i386/go32.mh (NATDEPFILES): Likewise.
4960 * config/i386/linux.mh (NATDEPFILES): Likewise.
4961 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4962 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4963 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4964 * i386-nat.h (debug_hw_points): New declaration.
4965 * i386-nat.c (breakpoint.h): Remove include.
4966 (command.h): Likewise.
4967 (target.h): Likewise.
4968 (gdb_assert.h): Likewise.
4969 (debug_hw_points): Made nonstatic.
4970 (debug_printf): Now in i386-dregs.c.
4971 (TARGET_HAS_DR_LEN_8): Likewise.
4972 (DR_CONTROL_SHIFT): Likewise.
4973 (DR_CONTROL_SIZE): Likewise.
4974 (DR_RW_EXECUTE): Likewise.
4975 (DR_RW_WRITE): Likewise.
4976 (DR_RW_READ): Likewise.
4977 (DR_RW_IORW): Likewise.
4978 (DR_LEN_1): Likewise.
4979 (DR_LEN_2): Likewise.
4980 (DR_LEN_4): Likewise.
4981 (DR_LEN_8): Likewise.
4982 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4983 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4984 (DR_ENABLE_SIZE): Likewise.
4985 (DR_LOCAL_SLOWDOWN): Likewise.
4986 (DR_GLOBAL_SLOWDOWN): Likewise.
4987 (DR_CONTROL_RESERVED): Likewise.
4988 (I386_DR_CONTROL_MASK): Likewise.
4989 (I386_DR_VACANT): Likewise.
4990 (I386_DR_LOCAL_ENABLE): Likewise.
4991 (I386_DR_GLOBAL_ENABLE): Likewise.
4992 (I386_DR_DISABLE): Likewise.
4993 (I386_DR_SET_RW_LEN): Likewise.
4994 (I386_DR_GET_RW_LEN): Likewise.
4995 (I386_DR_WATCH_HIT): Likewise.
4996 (i386_wp_op_t): Likewise.
4997 (i386_show_dr): Likewise.
4998 (i386_length_and_rw_bits): Likewise.
4999 (i386_insert_aligned_watchpoint): Likewise.
5000 (i386_remove_aligned_watchpoint): Likewise.
5001 (i386_handle_nonaligned_watchpoint): Likewise.
5002 (i386_update_inferior_debug_regs): Likewise.
5003 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5004 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5005 (i386_region_ok_for_watchpoint):
5006 Use i386_dr_region_ok_for_watchpoint.
5007 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5008
5009 2014-06-19 Gary Benson <gbenson@redhat.com>
5010
5011 * i386-nat.c (i386_insert_hw_breakpoint): Use
5012 i386_insert_watchpoint.
5013 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5014
5015 2014-06-19 Gary Benson <gbenson@redhat.com>
5016
5017 * i386-nat.c (i386_dr_show): Renamed to
5018 i386_show_dr and made static. All uses updated.
5019 (i386_dr_length_and_rw_bits): Renamed to
5020 i386_length_and_rw_bits and made static.
5021 All uses updated.
5022 (i386_dr_insert_aligned_watchpoint): Renamed to
5023 i386_insert_aligned_watchpoint and made static.
5024 All uses updated.
5025 (i386_dr_remove_aligned_watchpoint): Renamed to
5026 i386_remove_aligned_watchpoint and made static.
5027 All uses updated.
5028 (i386_dr_update_inferior_debug_regs): Renamed to
5029 i386_update_inferior_debug_regs and made static.
5030 All uses updated.
5031 * nat/i386-dregs.h (i386_dr_show): Removed.
5032 (i386_dr_length_and_rw_bits): Likewise.
5033 (i386_dr_insert_aligned_watchpoint): Likewise.
5034 (i386_dr_remove_aligned_watchpoint): Likewise.
5035 (i386_dr_update_inferior_debug_regs): Likewise.
5036
5037 2014-06-19 Gary Benson <gbenson@redhat.com>
5038
5039 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5040 * configure: Regenerate.
5041 * config.in: Likewise.
5042 * main.c (signal.h): New include.
5043 (setup_alternate_signal_stack): New function.
5044 (captured_main): Call the above.
5045 * cp-support.c (signal.h): New include.
5046 (catch_demangler_crashes): New flag.
5047 (SIGJMP_BUF): New define.
5048 (SIGSETJMP): Likewise.
5049 (SIGLONGJMP): Likewise.
5050 (gdb_demangle_jmp_buf): New static global.
5051 (gdb_demangle_attempt_core_dump): Likewise.
5052 (gdb_demangle_signal_handler): New function.
5053 (gdb_demangle): If catch_demangler_crashes is set, install the
5054 above signal handler before calling bfd_demangle, and restore
5055 the original signal handler afterwards. Display the offending
5056 symbol and call demangler_warning the first time a segmentation
5057 fault is caught.
5058 (_initialize_cp_support): New maint set/show command.
5059
5060 2014-06-19 Gary Benson <gbenson@redhat.com>
5061
5062 * utils.h (resource_limit_kind): New enum.
5063 (can_dump_core): New declaration.
5064 (warn_cant_dump_core): Likewise.
5065 (dump_core): Likewise.
5066 * utils.c (dump_core): Made nonstatic. Added new
5067 parameter "limit_kind".
5068 (can_dump_core): Made nonstatic. Moved printing code to...
5069 (warn_cant_dump_core): New function.
5070 (can_dump_core_warn): Likewise.
5071 (internal_vproblem): Replace calls to can_dump_core with
5072 calls to can_dump_core_warn. Supply new argument to each.
5073
5074 2014-06-19 Gary Benson <gbenson@redhat.com>
5075
5076 * utils.h (demangler_vwarning): New declaration.
5077 (demangler_warning): Likewise.
5078 * utils.c (struct internal_problem)
5079 <user_settable_should_quit>: New field.
5080 <user_settable_should_dump_core>: Likewise
5081 (internal_error_problem): Add values for above new fields.
5082 (internal_warning_problem): Likewise.
5083 (demangler_warning_problem): New static global.
5084 (demangler_vwarning): New function.
5085 (demangler_warning): Likewise.
5086 (add_internal_problem_command): Selectively add commands.
5087 (_initialize_utils): New internal problem command.
5088 * maint.c (maintenance_demangler_warning): New function.
5089 (_initialize_maint_cmds): New command.
5090
5091 2014-06-18 Tom Tromey <tromey@redhat.com>
5092
5093 * f-valprint.c (info_common_command_for_block): Update.
5094 * symtab.h (struct general_symbol_info) <common_block>: Now
5095 const.
5096
5097 2014-06-18 Tom Tromey <tromey@redhat.com>
5098
5099 * symtab.h (struct symtab) <blockvector>: Now const.
5100 * ada-lang.c (ada_add_global_exceptions): Update.
5101 * buildsym.c (augment_type_symtab): Update.
5102 * dwarf2read.c (dw2_lookup_symbol): Update.
5103 * jit.c (finalize_symtab): Update.
5104 * jv-lang.c (add_class_symtab_symbol): Update.
5105 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5106 Update.
5107 * objfiles.c (objfile_relocate1): Update.
5108 * psymtab.c (lookup_symbol_aux_psymtabs)
5109 (maintenance_check_psymtabs): Update.
5110 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5111 Update.
5112 * spu-tdep.c (spu_catch_start): Update.
5113 * symmisc.c (dump_symtab_1): Update.
5114 * symtab.c (lookup_global_symbol_from_objfile)
5115 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5116 (basic_lookup_transparent_type_quick)
5117 (basic_lookup_transparent_type, find_pc_sect_symtab)
5118 (find_pc_sect_line, search_symbols): Update.
5119 * block.c (find_block_in_blockvector): Make "bl" const.
5120 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5121 const.
5122 (blockvector_contains_pc): Make "bv" const.
5123 (block_for_pc_sect): Update.
5124 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5125 (blockvector_contains_pc): Update.
5126 * breakpoint.c (resolve_sal_pc): Update.
5127 * inline-frame.c (block_starting_point_at): Update.
5128
5129 2014-06-18 Tom Tromey <tromey@redhat.com>
5130
5131 * completer.c (complete_line): Make "line_buffer" const.
5132 * completer.h (complete_line): Update.
5133
5134 2014-06-18 Tom Tromey <tromey@redhat.com>
5135
5136 * symtab.c (add_macro_name): Remove unneeded cast.
5137
5138 2014-06-18 Tom Tromey <tromey@redhat.com>
5139
5140 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5141 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5142
5143 2014-06-18 Tom Tromey <tromey@redhat.com>
5144
5145 * probe.c (info_probes_for_ops): Make "arg" const.
5146 * probe.h (info_probes_for_ops): Update.
5147
5148 2014-06-18 Tom Tromey <tromey@redhat.com>
5149
5150 * varobj.c (varobj_create): Update.
5151 * valops.c (value_of_this): Update.
5152 * tracepoint.c (add_local_symbols, scope_info): Update.
5153 * symtab.h (struct general_symbol_info) <block>: Now const.
5154 * symtab.c (skip_prologue_sal)
5155 (default_make_symbol_completion_list_break_on)
5156 (skip_prologue_using_sal): Update.
5157 * stack.h (iterate_over_block_locals)
5158 (iterate_over_block_local_vars): Update.
5159 * stack.c (print_frame_args): Update.
5160 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5161 parameter const.
5162 (get_selected_block): Make return type const.
5163 * python/py-frame.c (frapy_block): Update.
5164 * python/py-block.c (gdbpy_block_for_pc): Update.
5165 * p-exp.y (%union) <bval>: Now const.
5166 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5167 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5168 * m2-exp.y (%union) <bval>: Now const.
5169 * linespec.c (get_current_search_block): Make return type const.
5170 (create_sals_line_offset, find_label_symbols): Update.
5171 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5172 Update.
5173 (block_starting_point_at): Make "block" const.
5174 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5175 (check_exception_resume): Update.
5176 * guile/scm-frame.c (gdbscm_frame_block): Update.
5177 * guile/scm-block.c (gdbscm_lookup_block): Update.
5178 * frame.h (get_frame_block): Update.
5179 (get_selected_block): Make return type const.
5180 * frame.c (frame_id_inner): Update.
5181 * f-valprint.c (info_common_command_for_block)
5182 (info_common_command): Update.
5183 * dwarf2loc.c (dwarf2_find_location_expression)
5184 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5185 (locexpr_describe_location_piece): Update.
5186 * c-exp.y (%union) <bval>: Now const.
5187 * breakpoint.c (resolve_sal_pc): Update.
5188 * blockframe.c (get_frame_block):Make return type const.
5189 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5190 (block_innermost_frame): Update.
5191 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5192 (block_for_pc, block_for_pc_sect): Update.
5193 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5194 'pblock' const.
5195 (block_for_pc_sect, block_for_pc): Make return type const.
5196 * ax-gdb.c (gen_expr): Update.
5197 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5198 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5199 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5200 (ada_read_var_value): Update.
5201 * ada-exp.y (struct name_info) <block>: Now const.
5202 (%union): Likewise.
5203 (block_lookup): Constify.
5204
5205 2014-06-18 Gary Benson <gbenson@redhat.com>
5206
5207 * nat/i386-dregs.h: New file.
5208 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5209 * i386-nat.h (i386-dregs.h): New include.
5210 (DR_FIRSTADDR): Now in i386-dregs.h.
5211 (DR_LASTADDR): Likewise.
5212 (DR_NADDR): Likewise.
5213 (DR_STATUS): Likewise.
5214 (DR_CONTROL): Likewise.
5215 (i386_debug_reg_state): Likewise.
5216 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5217
5218 2014-06-18 Don Breazeal <donb@codesourcery.com>
5219
5220 * breakpoint.c (set_longjmp_breakpoint): Call
5221 momentary_breakpoint_from_master with additional argument.
5222 (set_longjmp_breakpoint_for_call_dummy): Call
5223 momentary_breakpoint_from_master with additional argument.
5224 (set_std_terminate_breakpoint): Call
5225 momentary_breakpoint_from_master with additional argument.
5226 (momentary_breakpoint_from_master): Add argument to function
5227 definition and use it to initialize structure member flag.
5228 (clone_momentary_breakpoint): Call
5229 momentary_breakpoint_from_master with additional argument.
5230 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5231 member flags set in momentary_breakpoint_from_master.
5232
5233 2014-06-18 Gary Benson <gbenson@redhat.com>
5234
5235 * i386-nat.c (i386_show_dr): Renamed to
5236 i386_dr_show and made nonstatic. All uses updated.
5237 (i386_length_and_rw_bits): Renamed to
5238 i386_dr_length_and_rw_bits and made nonstatic.
5239 All uses updated.
5240 (i386_insert_aligned_watchpoint): Renamed to
5241 i386_dr_insert_aligned_watchpoint and made nonstatic.
5242 All uses updated.
5243 (i386_remove_aligned_watchpoint): Renamed to
5244 i386_dr_remove_aligned_watchpoint and made nonstatic.
5245 All uses updated.
5246 (i386_update_inferior_debug_regs): Renamed to
5247 i386_dr_update_inferior_debug_regs and made nonstatic.
5248 All uses updated.
5249
5250 2014-06-18 Gary Benson <gbenson@redhat.com>
5251
5252 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5253 (i386_dr_low_can_set_control): Likewise.
5254 (i386_dr_low_set_addr): Likewise.
5255 (i386_dr_low_set_control): Likewise.
5256 (i386_dr_low_get_addr): Likewise.
5257 (i386_dr_low_get_status): Likewise.
5258 (i386_dr_low_get_control): Likewise.
5259 (i386_insert_aligned_watchpoint): Use new macros.
5260 (i386_update_inferior_debug_regs): Likewise.
5261 (i386_stopped_data_address): Likewise.
5262
5263 2014-06-18 Gary Benson <gbenson@redhat.com>
5264
5265 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5266 New parameter. All uses updated.
5267
5268 2014-06-18 Gary Benson <gbenson@redhat.com>
5269
5270 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5271 All uses updated.
5272
5273 2014-06-18 Gary Benson <gbenson@redhat.com>
5274
5275 * i386-nat.c (debug_printf): New macro.
5276 (i386_get_debug_register_length): Likewise.
5277 (TARGET_HAS_DR_LEN_8): Use above macro.
5278 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5279 and printf_unfiltered. Use phex to format values.
5280
5281 2014-06-18 Gary Benson <gbenson@redhat.com>
5282
5283 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5284 Make const.
5285
5286 2014-06-18 Gary Benson <gbenson@redhat.com>
5287
5288 * i386-nat.c: Comment changes.
5289
5290 2014-06-18 Gary Benson <gbenson@redhat.com>
5291
5292 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5293
5294 2014-06-18 Gary Benson <gbenson@redhat.com>
5295
5296 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5297 (i386_insert_aligned_watchpoint): Likewise.
5298 (i386_remove_aligned_watchpoint): Likewise.
5299 (i386_handle_nonaligned_watchpoint): Likewise.
5300
5301 2014-06-18 Gary Benson <gbenson@redhat.com>
5302
5303 * i386-nat.c: Whitespace changes.
5304
5305 2014-06-17 Samuel Bronson <naesten@gmail.com>
5306
5307 * MAINTAINERS: Update Roland McGrath's email address.
5308 Thanks to Sergio Durigan Junior for pointing out that he left
5309 Red Hat a while ago, and giving me a current address.
5310
5311 2014-06-17 Tom Tromey <tromey@redhat.com>
5312
5313 * utils.h (savestring): Remove declaration.
5314
5315 2014-06-17 Tom Tromey <tromey@redhat.com>
5316
5317 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5318
5319 2014-06-16 Keith Seitz <keiths@redhat.com>
5320
5321 PR mi/15863
5322 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5323 to update the varobj if inferior_ptid is null_ptid.
5324
5325 2014-06-16 Tom Tromey <tromey@redhat.com>
5326
5327 * target.h (struct target_ops) <to_info_proc>: Make parameter
5328 const.
5329 (target_info_proc): Update.
5330 * target.c (target_info_proc): Make "args" const.
5331 * procfs.c (procfs_info_proc): Update.
5332 * linux-tdep.c (linux_info_proc): Update.
5333 (linux_core_info_proc_mappings): Make "args" const.
5334 (linux_core_info_proc): Update.
5335 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5336 * gdbarch.c: Rebuild.
5337 * gdbarch.h: Rebuild.
5338 * corelow.c (core_info_proc): Update.
5339
5340 2014-06-16 Tom Tromey <tromey@redhat.com>
5341
5342 * target.h (struct target_ops) <to_disconnect>: Make parameter
5343 const.
5344 (target_disconnect): Update.
5345 * target.c (target_disconnect): Make "args" const.
5346 * target-delegates.c: Rebuild.
5347 * remote.c (remote_disconnect): Update.
5348 * record.h (record_disconnect): Update.
5349 * record.c (record_disconnect): Update.
5350 * inf-child.c (inf_child_disconnect): Update.
5351
5352 2014-06-16 Tom Tromey <tromey@redhat.com>
5353
5354 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5355 * target.c (debug_to_rcmd, default_rcmd): Update.
5356 * target-delegates.c: Rebuild.
5357 * remote.c (remote_rcmd): Update.
5358 * monitor.c (monitor_rcmd): Update.
5359
5360 2014-06-16 Pedro Alves <palves@redhat.com>
5361
5362 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5363 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5364 have OBJF_SHARED set.
5365 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5366 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5367 instead of OBJF_USERLOADED.
5368 * objfiles.h (OBJF_SHARED): Update comment.
5369 (userloaded_objfile_contains_address_p): Rename to ...
5370 (shared_objfile_contains_address_p): ... this, and update
5371 comments.
5372 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5373 new objfile.
5374 (remove_symbol_file_command): Skip objfiles that don't have
5375 OBJF_SHARED set.
5376
5377 2014-06-16 Tom Tromey <tromey@redhat.com>
5378
5379 * minsyms.h (prim_record_minimal_symbol)
5380 (prim_record_minimal_symbol_and_info): Update comments.
5381
5382 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5383
5384 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5385 or --without-guile, according to how GDB was built.
5386
5387 2014-06-13 Tom Tromey <tromey@redhat.com>
5388
5389 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5390 to help_list.
5391 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5392 to help_list.
5393 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5394 help_list.
5395 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5396 help_list.Pass all_commands, not -1, to help_list.
5397 * cli/cli-dump.c (dump_command, append_command)
5398 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5399 (binary_dump_command, binary_append_command): Pass all_commands,
5400 not -1, to help_list.
5401 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5402 -1, to help_list.
5403 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5404 -1, to help_list.
5405 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5406 help_list.
5407 * top.c (set_history): Pass all_commands, not -1, to help_list.
5408 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5409 all_commands, not -1, to help_list.
5410 * symfile.c (overlay_command): Pass all_commands, not -1, to
5411 help_list.
5412 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5413 help_list.
5414 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5415 help_list.
5416 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5417 -1, to help_list.
5418 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5419 not -1, to help_list.
5420 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5421 not -1, to help_list.
5422 * maint.c (maintenance_command, maintenance_info_command)
5423 (maintenance_print_command, maintenance_set_cmd): Pass
5424 all_commands, not -1, to help_list.
5425 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5426 help_list.
5427 * language.c (set_check): Pass all_commands, not -1, to help_list.
5428 * infcmd.c (unset_command): Pass all_commands, not -1, to
5429 help_list.
5430 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5431 help_list.
5432 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5433 help_list.
5434 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5435 help_list.
5436 * breakpoint.c (save_command): Pass all_commands, not -1, to
5437 help_list.
5438 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5439 all_commands, not -1, to help_list.
5440
5441 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5442
5443 * regcache.c (struct register_to_invalidate): New structure.
5444 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5445 functions.
5446 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5447
5448 2014-06-12 Yao Qi <yao@codesourcery.com>
5449
5450 * varobj.c (varobj_get_num_children): Call
5451 varobj_is_dynamic_p.
5452 (varobj_list_children): Likewise.
5453 (varobj_update): Likewise. Update comments.
5454
5455 2014-06-12 Yao Qi <yao@codesourcery.com>
5456
5457 * varobj.c (varobj_pretty_printed_p): Rename to ...
5458 (varobj_is_dynamic_p): ... this. New function.
5459 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5460 (varobj_is_dynamic_p): Declare.
5461 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5462 (mi_print_value_p, varobj_update_one): Likewise.
5463
5464 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5465 Yao Qi <yao@codesourcery.com>
5466
5467 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5468 (varobj_get_iterator): Wrap up code for pretty-printer by
5469 "#if HAVE_PYTHON" and "#endif".
5470 (update_dynamic_varobj_children): Likewise.
5471
5472 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5473 Yao Qi <yao@codesourcery.com>
5474
5475 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5476 gdb_python_initialized is false. Move some code from varobj.c.
5477 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5478 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5479 (struct varobj_item): Moved to varobj-iter.h".
5480 (varobj_clear_saved_item): New function.
5481 (update_dynamic_varobj_children): Move python-related code to
5482 py-varobj.c.
5483 (free_variable): Call varobj_clear_saved_item and
5484 varobj_iter_delete.
5485
5486 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5487 Yao Qi <yao@codesourcery.com>
5488
5489 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5490 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5491 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5492 (py-varobj.o): New rule.
5493 * python/py-varobj.c: New file.
5494 * python/python-internal.h (py_varobj_get_iterator): Declare.
5495 * varobj-iter.h: New file.
5496 * varobj.c: Include "varobj-iter.h"
5497 (struct varobj) <child_iter>: Change its type from "PyObject *"
5498 to "struct varobj_iter *".
5499 <saved_item>: Likewise.
5500 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5501 [HAVE_PYTHON] (varobj_get_iterator): New function.
5502 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5503 python-specific code to python/py-varobj.c.
5504 (install_visualizer): Call varobj_iter_delete instead of
5505 Py_XDECREF.
5506 * varobj.h (varobj_ensure_python_env): Declare.
5507
5508 2014-06-12 Yao Qi <yao@codesourcery.com>
5509
5510 * varobj.c (struct varobj_item): New structure.
5511 (create_child_with_value): Update declaration.
5512 (varobj_add_child): Replace arguments 'name' and 'value' with
5513 'item'. All callers updated.
5514 (install_dynamic_child): Likewise.
5515 (update_dynamic_varobj_children): Likewise.
5516 (varobj_add_child): Likewise.
5517 (create_child_with_value): Likewise.
5518
5519 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5520
5521 * NEWS: Create a new section for the next release branch.
5522 Rename the section of the current branch, now that it has
5523 been cut.
5524
5525 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5526
5527 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5528 * version.in: Bump version to 7.8.50.DATE-cvs.
5529
5530 2014-06-11 Pedro Alves <palves@redhat.com>
5531
5532 PR remote/17028
5533 * ser-mingw.c (net_windows_socket_check_pending): New function.
5534 (net_windows_select_thread): Ignore spurious wakeups. Use
5535 net_windows_socket_check_pending.
5536 (net_windows_wait_handle): Check for pending events with
5537 ioctlsocket, through net_windows_socket_check_pending, instead of
5538 checking the socket's event.
5539
5540 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5541
5542 * python/python-internal.h (gdb_PyObject_GetAttrString)
5543 (gdb_PyObject_HasAttrString): New inline function definitions.
5544 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5545 char * of the second argument to PyObject_GetAttrString.
5546
5547 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5548
5549 * serial.c (serial_write): Fix index of character to be printed
5550 in call to serial_logchar when serial debug traces are enabled.
5551
5552 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5553
5554 * gdbtypes (resolve_dynamic_range): Add function description.
5555
5556 2014-06-09 Pedro Alves <palves@redhat.com>
5557
5558 * linux-nat.c (linux_child_follow_fork): Initialize status with
5559 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5560 inner block. Only pass the signal to PTRACE_DETACH if in pass
5561 state.
5562
5563 2014-06-09 Gary Benson <gbenson@redhat.com>
5564
5565 * common/signals.c (gdb_signal_from_host): Reorder to separate
5566 the always-available ANSI-standard signals from the signals that
5567 require checking.
5568 (do_gdb_signal_to_host): Likewise.
5569 * proc-events.c (signal_table): Likewise.
5570
5571 2014-06-08 Hui Zhu <hui@codesourcery.com>
5572
5573 * common/linux-ptrace.c (linux_disable_event_reporting): New
5574 function.
5575 * common/linux-ptrace.h (linux_disable_event_reporting): New
5576 declaration.
5577 * linux-nat.c (linux_child_follow_fork): Do a single step before
5578 detach.
5579
5580 2014-06-07 Keith Seitz <keiths@redhat.com>
5581
5582 Revert:
5583 PR c++/16253
5584 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5585 from symbol_matches_domain in symtab.c. All local callers
5586 of symbol_matches_domain updated.
5587 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5588 search STRUCT_DOMAIN.
5589 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5590 independently. standard_lookup will do that automatically.
5591 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5592 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5593 (cp_lookup_symbol_in_namespace): Likewise.
5594 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5595 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5596 may return a STRUCT_DOMAIN match.
5597 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5598 * cp-support.c: Include language.h.
5599 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5600 VAR_DOMAIN.
5601 * psymtab.c (match_partial_symbol): Compare the requested
5602 domain with the symbol's domain directly.
5603 (lookup_partial_symbol): Likewise.
5604 * symtab.c (lookup_symbol_in_language): Explain when/why
5605 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5606 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5607 appropriate languages.
5608 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5609 and moved to ada-lang.c
5610 (lookup_block_symbol): Explain that this function only returns
5611 symbol matching the requested DOMAIN.
5612 Compare the requested domain with the symbol's domain directly.
5613 (iterate_over_symbols): Compare the requested domain with the
5614 symbol's domain directly.
5615 * symtab.h (symbol_matches_domain): Remove.
5616
5617 2014-06-06 Doug Evans <xdje42@gmail.com>
5618
5619 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5620 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5621 (gdbscm_guile_version_is_at_least): Declare.
5622 (gdbscm_scm_string_to_int): Declare.
5623 * guile/guile.c (gdbscm_guile_major_version): New global.
5624 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5625 (guile_datadir): New static global.
5626 (gdbscm_guile_data_directory): New function.
5627 (initialize_scheme_side): Update.
5628 (misc_guile_functions): Add guile-data-directory.
5629 (initialize_gdb_module): Fetch guile version number.
5630 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5631 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5632 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5633 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5634 comments.
5635 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5636 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5637 * guile/scm-value.c (gdbscm_value_to_string): Only call
5638 scm_port_conversion_strategy if Guile version >= 2.0.6.
5639
5640 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5641
5642 * main.c (print_gdb_help): Add -q and --silent.
5643
5644 2014-06-06 Gary Benson <gbenson@redhat.com>
5645
5646 * common/signals.c: Remove preprocessor conditionals for
5647 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5648 SIGSEGV and SIGTERM.
5649 * proc-events.c: Likewise.
5650
5651 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5652
5653 * symfile.c (symfile_free_objfile): Remove restriction to
5654 OBJF_USERLOADED.
5655 * symfile-mem.c (symbol_file_add_from_memory): Call
5656 add_target_sections_of_objfile.
5657
5658 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5659
5660 * guile/scm-value.c (gdbscm_history_append_x): Use
5661 'vlscm_get_value_smob_arg_unsafe' instead of
5662 'vlscm_scm_to_value'.
5663
5664 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5665
5666 PR mi/15806
5667 * utils.c (printchar): Don't escape at all if quoter is NUL.
5668 Update function documentation to clarify effect of parameter
5669 QUOTER.
5670 * remote.c (escape_buffer): Pass '\\' as the quoter to
5671 fputstrn_unfiltered.
5672 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5673 generate the output.
5674 (mi_solib_unloaded): Same.
5675
5676 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5677
5678 * development.sh: Delete.
5679 * Makefile.in (config.status): Adjust dependency on development.sh.
5680 * configure.ac: Adjust development.sh source call.
5681 * configure: Regenerate.
5682
5683 2014-06-04 Doug Evans <xdje42@gmail.com>
5684
5685 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5686 is_scheme_bkpt, spec.
5687 (bpscm_make_breakpoint_smob): Initialize new members.
5688 (gdbscm_create_breakpoint_x): Split into two ...
5689 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5690 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5691 (scheme_function breakpoint_functions): Update.
5692 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5693 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5694 register-breakpoint!.
5695
5696 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5697
5698 PR server/17023
5699 * mem-break.c (z_type_supported): Return zero if
5700 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5701
5702 2014-06-04 Tom Tromey <tromey@redhat.com>
5703
5704 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5705 value_from_contents_and_address_unresolved.
5706 (ada_template_to_fixed_record_type_1): Likewise.
5707 (ada_which_variant_applies): Likewise.
5708 * value.h (value_from_contents_and_address_unresolved): Declare.
5709 * value.c (value_from_contents_and_address_unresolved): New
5710 function.
5711 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5712 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5713 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5714
5715 2014-06-04 Tom Tromey <tromey@redhat.com>
5716
5717 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5718
5719 2014-06-04 Tom Tromey <tromey@redhat.com>
5720
5721 * procfs.c (procfs_attach): Make "args" const.
5722 * windows-nat.c (windows_attach): Make "args" const.
5723 * nto-procfs.c (procfs_attach): Make "args" const.
5724 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5725 * go32-nat.c (go32_attach): Make "args" const.
5726 * gnu-nat.c (gnu_attach): Make "args" const.
5727 * darwin-nat.c (darwin_attach): Make "args" const.
5728 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5729 * linux-nat.c (linux_nat_attach): Make "args" const.
5730 * remote.c (extended_remote_attach_1, extended_remote_attach):
5731 Make "args" const.
5732 * target.h (struct target_ops) <to_attach>: Make "args" const.
5733 (find_default_attach): Likewise.
5734 * utils.c (parse_pid_to_attach): Make "args" const.
5735 * utils.h (parse_pid_to_attach): Update.
5736
5737 2014-06-04 Tom Tromey <tromey@redhat.com>
5738
5739 * target-delegates.c: Rebuild.
5740 * target.c (default_thread_address_space): New function.
5741 (target_thread_address_space): Simplify.
5742 * target.h (struct target_ops) <to_thread_address_space>: Add
5743 TARGET_DEFAULT_FUNC.
5744
5745 2014-06-04 Doug Evans <xdje42@gmail.com>
5746
5747 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5748
5749 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5750
5751 * record-btrace.c: Include event-loop.h and inf-loop.h.
5752 (record_btrace_resume_exec_dir)
5753 (record_btrace_async_inferior_event_handler)
5754 (record_btrace_handle_async_inferior_event): New.
5755 (record_btrace_open): Create async event handler.
5756 (record_btrace_close): Delete async event handler.
5757 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5758 Mark async event handler.
5759 (record_btrace_execution_direction): New.
5760 (init_record_btrace_ops): Initialize to_execution_direction.
5761
5762 2014-06-03 Doug Evans <xdje42@gmail.com>
5763
5764 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5765 (gdbscm_make_parameter): Ditto.
5766
5767 2014-06-03 Doug Evans <dje@google.com>
5768
5769 * exec.c (exec_close_1): Call clear_section_table instead of
5770 resize_section_table.
5771 (clear_section_table): New function.
5772 (resize_section_table): Make static. Rename arg num_added to
5773 adjustment.
5774 * exec.h (clear_section_table): Declare.
5775 (resize_section_table): Delete.
5776 * progspace.c (release_program_space): Call clear_section_table
5777 instead of resize_section_table.
5778
5779 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5780
5781 * NEWS (Python Scripting): Add entry about the new xmethods
5782 feature.
5783
5784 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5785
5786 * python/py-xmethods.c: New file.
5787 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5788 (objfpy_dealloc): XDECREF on the new xmethods field.
5789 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5790 field.
5791 (objfpy_get_xmethods): New function.
5792 (objfile_getset): New entry 'xmethods'.
5793 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5794 (pspy_dealloc): XDECREF on the new xmethods field.
5795 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5796 field.
5797 (pspy_get_xmethods): New function.
5798 (pspace_getset): New entry 'xmethods'.
5799 * python/python-internal.h: Add declarations for new functions.
5800 * python/python.c (_initialize_python): Invoke
5801 gdbpy_initialize_xmethods.
5802 * python/lib/gdb/__init__.py (xmethods): New
5803 attribute.
5804 * python/lib/gdb/xmethod.py: New file.
5805 * python/lib/gdb/command/xmethods.py: New file.
5806
5807 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5808
5809 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5810 best match method returned by find_overload_match is an xmethod.
5811 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5812 the best matching operator returned by find_overload_match is an
5813 xmethod.
5814 * valops.c: #include "extension.h".
5815 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5816 Return void. The list of matching source methods is returned in
5817 "fn_list" and a vector of matching debug method workers is
5818 returned in "xm_worker_vec". Update all callers.
5819 (value_find_oload_method_list): Likewise.
5820 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5821 non-NULL, then the index of the best matching method in this
5822 vector is returned. Update all callers.
5823 (find_overload_match): Include xmethods while performing overload
5824 resolution.
5825
5826 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5827
5828 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5829 * extension-priv.h (struct extension_language_ops): Add the
5830 xmethod interface.
5831 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5832 get_matching_xmethod_workers, get_xmethod_argtypes,
5833 invoke_xmethod, free_xmethod_worker,
5834 free_xmethod_worker_vec): New functions.
5835 * extension.h: #include "common/vec.h".
5836 New function declarations.
5837 (struct xmethod_worker): New struct.
5838 (VEC (xmethod_worker_ptr)): New vector type.
5839 (xmethod_worker_ptr): New typedef.
5840 (xmethod_worker_vec): Likewise.
5841 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5842 builtin_type.
5843 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5844 (struct builtin_type): New field "xmethod".
5845 * valarith.c (value_ptradd): Assert that the value argument is not
5846 lval_xcallable.
5847 * valops.c (value_must_coerce_to_target): Return 0 for
5848 lval_xcallable values.
5849 * value.c (struct value): New field XM_WORKER in the field
5850 LOCATION.
5851 (value_address, value_raw_address): Return 0 for lval_xcallable
5852 values.
5853 (set_value_address): Assert that the value is not an
5854 lval_xcallable.
5855 (value_free): Free the associated xmethod worker when freeing
5856 lval_xcallable values.
5857 (set_value_component_location): Assert that the WHOLE value is not
5858 lval_xcallable.
5859 (value_of_xmethod, call_xmethod): New functions.
5860 * value.h: Declare "struct xmethod_worker".
5861 Declare new functions value_of_xmethod, call_xmethod.
5862
5863 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5864 Pedro Alves <palves@redhat.com>
5865
5866 PR breakpoints/17000
5867 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5868 New function, extracted from software_breakpoint_inserted_here_p.
5869 (software_breakpoint_inserted_here_p): Replace factored out code
5870 by call to find_non_raw_software_breakpoint_inserted_here.
5871 (bp_target_info_copy_insertion_state): New function.
5872 (bkpt_insert_location): Handle the case of a single-step
5873 breakpoint already inserted at the same address.
5874 (bkpt_remove_location): Handle the case of a single-step
5875 breakpoint still inserted at the same address.
5876 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5877 breakpoint already inserted at the same address.
5878 (deprecated_remove_raw_breakpoint): Handle the case of a
5879 non-raw breakpoint still inserted at the same address.
5880 (find_single_step_breakpoint): New function, extracted from
5881 single_step_breakpoint_inserted_here_p.
5882 (find_single_step_breakpoint): New function,
5883 factored out from single_step_breakpoint_inserted_here_p.
5884 (single_step_breakpoint_inserted_here_p): Reimplement.
5885
5886 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5887
5888 Pushed by Joel Brobecker <brobecker@adacore.com>
5889 * source.c (show_substitute_path_command): Fix display of matching
5890 substitution rules.
5891
5892 2014-06-03 Gary Benson <gbenson@redhat.com>
5893
5894 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5895
5896 2014-06-02 Doug Evans <xdje42@gmail.com>
5897
5898 Add parameter support for Guile.
5899 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5900 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5901 (scm-param.o): New rule.
5902 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5903 (gdbscm_misc_error): Declare.
5904 (gdbscm_canonicalize_command_name): Declare.
5905 (gdbscm_scm_to_host_string): Declare.
5906 (gdbscm_scm_from_host_string): Declare.
5907 (gdbscm_initialize_parameters): Declare.
5908 * guile/guile.c (initialize_gdb_module): Call
5909 gdbscm_initialize_parameters.
5910 * guile/lib/gdb.scm: Export parameter symbols.
5911 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5912 cmdscm_canonicalize_name and made public. All callers updated.
5913 * guile/scm-exception.c (gdbscm_misc_error): New function.
5914 * guile/scm-param.c: New file.
5915 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5916 (gdbscm_scm_to_host_string): New function.
5917 (gdbscm_scm_from_host_string): New function.
5918 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5919
5920 2014-06-02 Doug Evans <xdje42@gmail.com>
5921
5922 Add command support for Guile.
5923 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5924 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5925 (scm-cmd.o): New rule.
5926 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5927 (gdbscm_user_error_p): Declare.
5928 (gdbscm_parse_command_name): Declare.
5929 (gdbscm_valid_command_class_p): Declare.
5930 (gdbscm_initialize_commands): Declare.
5931 * guile/guile.c (initialize_gdb_module): Call
5932 gdbscm_initialize_commands.
5933 * guile/lib/gdb.scm: Export command symbols.
5934 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5935 (throw-user-error): New function.
5936 * guile/scm-cmd.c: New file.
5937 * guile/scm-exception.c (user_error_symbol): New static global.
5938 (gdbscm_user_error_p): New function.
5939 (gdbscm_initialize_exceptions): Set user_error_symbol.
5940 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5941
5942 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5943
5944 * top.c (command_loop): Handle comments here...
5945 (command_line_input): ... not here.
5946
5947 2014-06-02 Doug Evans <xdje42@gmail.com>
5948
5949 Add progspace support for Guile.
5950 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5951 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5952 (scm-progspace.o): New rule.
5953 * guile/guile-internal.h (pspace_smob): New typedef.
5954 (psscm_pspace_smob_pretty_printers): Declare.
5955 (psscm_pspace_smob_from_pspace): Declare.
5956 (psscm_scm_from_pspace): Declare.
5957 * guile/guile.c (initialize_gdb_module): Call
5958 gdbscm_initialize_pspaces.
5959 * guile/lib/gdb.scm: Export progspace symbols.
5960 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5961 support.
5962 (append-pretty-printer!): Ditto.
5963 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5964 Implement.
5965 * guile/scm-progspace.c: New file.
5966
5967 2014-06-03 Alan Modra <amodra@gmail.com>
5968
5969 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5970 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5971
5972 2014-06-02 Doug Evans <dje@google.com>
5973
5974 Add support for skeletonless type units.
5975 * dwarf2read.c (struct dwarf2_per_objfile): New member
5976 n_allocated_type_units.
5977 (struct dwarf2_per_objfile) <tu_stats>: New member
5978 nr_all_type_units_reallocs.
5979 (create_signatured_type_table_from_index): Initialize
5980 n_allocated_type_units
5981 (create_all_type_units): Ditto.
5982 (add_type_unit): Move up in file. New arg slot.
5983 All callers updated. Increase space for all_type_units more
5984 efficiently.
5985 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5986 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5987 (lookup_dwp_signatured_type): Ditto.
5988 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5989 All callers updated.
5990 (build_type_psymtabs_1): Leave type_unit_groups as
5991 NULL if no TUs present.
5992 (print_tu_stats): New function.
5993 (process_skeletonless_type_unit): New function.
5994 (process_dwo_file_for_skeletonless_type_units): New
5995 function.
5996 (process_skeletonless_type_units): New function.
5997 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5998 Call print tu_stats if debugging enabled.
5999
6000 2014-06-02 Pedro Alves <palves@redhat.com>
6001
6002 * breakpoint.c (build_target_command_list): Don't build a command
6003 list if we have any duplicate location that isn't a dprintf.
6004
6005 2014-06-02 Pedro Alves <palves@redhat.com>
6006
6007 * breakpoint.c (dprintf_breakpoint_hit): New function.
6008 (initialize_breakpoint_ops): Install it as dprintf's
6009 breakpoint_hit method.
6010
6011 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6012
6013 * source.c (substitute_path_rule_matches): Simplify using
6014 filename_ncmp instead of FILENAME_CMP.
6015
6016 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6017
6018 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6019
6020 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6021
6022 * configure.ac: When Guile is available, check for the
6023 availability of 'scm_new_smob'.
6024 * configure, config.h.in: Regenerate.
6025 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6026 function.
6027
6028 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6029
6030 * frame.c (struct frame_info): Add stop_string field.
6031 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6032 (get_prev_frame_always): Old content moved into
6033 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6034 TRY_CATCH, handle MEMORY_ERROR exceptions.
6035 (frame_stop_reason_string): New function definition.
6036 * frame.h (unwind_stop_reason_to_string): Extend comment to
6037 mention frame_stop_reason_string.
6038 (frame_stop_reason_string): New function declaration.
6039 * stack.c (frame_info): Switch to frame_stop_reason_string.
6040 (backtrace_command_1): Switch to frame_stop_reason_string.
6041 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6042 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6043 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6044
6045 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6046
6047 * frame.c (frame_stop_reason_string): Rename to ...
6048 (unwind_stop_reason_to_string): this.
6049 * frame.h (frame_stop_reason_string): Rename to ...
6050 (unwind_stop_reason_to_string): this.
6051 * stack.c (frame_info): Update call to frame_stop_reason_string.
6052 (backtrace_command_1): Likewise.
6053 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6054 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6055
6056 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6057
6058 * frame.c (remove_prev_frame): New function.
6059 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6060 remove_prev_frame.
6061
6062 2014-05-29 Pedro Alves <palves@redhat.com>
6063
6064 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6065 and make it const. When a single-step decays to a continue,
6066 clear 'step', not 'hw_step'. Pass whether the caller wanted
6067 to step to user_visible_resume_ptid, not what we ask the
6068 target to do.
6069
6070 2014-05-29 Pedro Alves <palves@redhat.com>
6071
6072 * infrun.c (process_event_stop_test, handle_step_into_function)
6073 (handle_step_into_function_backward): Adjust.
6074 Don't set the even thread's stop_step and call stop_waiting before
6075 calling end_stepping_range. Instead do that ...
6076 (end_stepping_range): ... here. Take an ecs pointer parameter.
6077
6078 2014-05-29 Pedro Alves <palves@redhat.com>
6079
6080 * infrun.c (stop_stepping): Rename to ...
6081 (stop_waiting): ... this.
6082 (proceed): Update comment.
6083 (process_event_stop_test, handle_inferior_event)
6084 (handle_signal_stop, handle_step_into_function)
6085 (handle_step_into_function_backward): Update.
6086
6087 2014-05-29 Pedro Alves <palves@redhat.com>
6088
6089 * infcall.c (run_inferior_call): Don't check whether the current
6090 thread is running after the proceed call.
6091
6092 2014-05-29 Pedro Alves <palves@redhat.com>
6093 Tom Tromey <tromey@redhat.com>
6094
6095 * NEWS: Mention "maint set target-async", "set mi-async", and that
6096 background execution commands are now always available.
6097 * target.h (target_async_permitted): Update comment.
6098 * target.c (target_async_permitted, target_async_permitted_1):
6099 Default to 1.
6100 (set_target_async_command): Rename to ...
6101 (maint_set_target_async_command): ... this.
6102 (show_target_async_command): Rename to ...
6103 (maint_show_target_async_command): ... this.
6104 (_initialize_target): Adjust.
6105 * infcmd.c (prepare_execution_command): Make extern.
6106 * inferior.h (prepare_execution_command): Declare.
6107 * infrun.c (set_observer_mode): Leave target async alone.
6108 * mi/mi-interp.c (mi_interpreter_init): Install
6109 mi_on_sync_execution_done as sync_execution_done observer.
6110 (mi_on_sync_execution_done): New function.
6111 (mi_execute_command_input_handler): Don't print the prompt if we
6112 just started a synchronous command with an async target.
6113 (mi_on_resume): Check sync_execution before printing prompt.
6114 * mi/mi-main.h (mi_async_p): Declare.
6115 * mi/mi-main.c: Include gdbcmd.h.
6116 (mi_async_p): New function.
6117 (mi_async, mi_async_1): New globals.
6118 (set_mi_async_command, show_mi_async_command, mi_async): New
6119 functions.
6120 (exec_continue): Call prepare_execution_command.
6121 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6122 (mi_execute_async_cli_command): Use mi_async_p.
6123 (_initialize_mi_main): Install "set mi-async". Make
6124 "target-async" a deprecated alias.
6125
6126 2014-05-29 Pedro Alves <palves@redhat.com>
6127
6128 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6129 (_initialize_cli_interp): Adjust.
6130 * event-loop.c: Include "observer.h".
6131 (start_event_loop): Notify 'command_error' observers instead of
6132 calling display_gdb_prompt. Remove FIXME comment.
6133 * event-top.c (display_gdb_prompt): Remove call into the
6134 interpreters.
6135 * inf-loop.c: Include "observer.h".
6136 (inferior_event_handler): Notify 'command_error' observers instead
6137 of calling display_gdb_prompt.
6138 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6139 observers instead of calling display_gdb_prompt.
6140 * interps.c (interp_set): Don't call display_gdb_prompt.
6141 (current_interp_display_prompt_p): Delete.
6142 * interps.h (interp_prompt_p): Delete declaration.
6143 (interp_prompt_p_ftype): Delete.
6144 (struct interp_procs) <prompt_proc_p>: Delete field.
6145 (current_interp_display_prompt_p): Delete declaration.
6146 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6147 (_initialize_mi_interp): Adjust.
6148 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6149 'command_error' observers.
6150 (tui_on_sync_execution_done, tui_on_command_error): New
6151 functions.
6152 (tui_display_prompt_p): Delete.
6153 (_initialize_tui_interp): Adjust.
6154
6155 2014-05-29 Pedro Alves <palves@redhat.com>
6156
6157 PR gdb/13860
6158 * cli/cli-interp.c: Include infrun.h and observer.h.
6159 (cli_uiout, cli_interp): New globals.
6160 (cli_on_signal_received, cli_on_end_stepping_range)
6161 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6162 functions.
6163 (cli_interpreter_init): Install them as 'end_stepping_range',
6164 'signal_received' 'signal_exited', 'exited' and 'no_history'
6165 observers.
6166 (_initialize_cli_interp): Remove cli_interp local.
6167 * infrun.c (handle_inferior_event): Call the several stop reason
6168 observers instead of printing the stop reason directly.
6169 (end_stepping_range): New function.
6170 (print_end_stepping_range_reason, print_signal_exited_reason)
6171 (print_exited_reason, print_signal_received_reason)
6172 (print_no_history_reason): Make static, and add an uiout
6173 parameter. Print to that instead of to CURRENT_UIOUT.
6174 * infrun.h (print_end_stepping_range_reason)
6175 (print_signal_exited_reason, print_exited_reason)
6176 (print_signal_received_reason print_no_history_reason): New
6177 declarations.
6178 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6179 'mi_uiout'.
6180 <cli_uiout>: New field.
6181 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6182 uiout for CLI output. Install 'signal_received',
6183 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6184 observers.
6185 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6186 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6187 (mi_on_no_history): New functions.
6188 (ui_out_free_cleanup): Delete function.
6189 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6190 instead use the one already stored in the MI interpreter data.
6191 (mi_ui_out): Adjust.
6192 * tui/tui-interp.c: Include infrun.h and observer.h.
6193 (tui_interp): New global.
6194 (tui_on_signal_received, tui_on_end_stepping_range)
6195 (tui_on_signal_exited, tui_on_exited)
6196 (tui_on_no_history): New functions.
6197 (tui_init): Install them as 'end_stepping_range',
6198 'signal_received' 'signal_exited', 'exited' and 'no_history'
6199 observers.
6200 (_initialize_tui_interp): Delete tui_interp local.
6201
6202 2014-05-29 Pedro Alves <palves@redhat.com>
6203
6204 PR gdb/15713
6205 * linux-nat.c (linux_nat_resume_callback): Rename the second
6206 parameter to 'except'. Skip LP if it points to EXCEPT.
6207 (linux_nat_resume): Don't mark the event lwp as not stopped
6208 before resuming sibling lwps. Instead ask
6209 linux_nat_resume_callback to skip the event lwp. Mark it as not
6210 stopped after actually resuming it.
6211 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6212 resuming it.
6213 (wait_lwp): Mark the lwp as stopped here.
6214 (stop_wait_callback): Mark the lwp as not stopped right after
6215 resuming it. Don't mark lwps as stopped here.
6216 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6217 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6218
6219 2014-05-29 Pedro Alves <palves@redhat.com>
6220
6221 PR PR15693
6222 * infrun.c (resume): Determine how much to resume depending on
6223 whether the caller wanted a step, not whether we can hardware step
6224 the target. Mark all threads that we intend to run as running,
6225 unless we're calling an inferior function.
6226 (normal_stop): If the thread is running an infcall, don't finish
6227 thread state.
6228 * target.c (target_resume): Don't mark threads as running here.
6229
6230 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6231
6232 * serial.c (_initialize_serial): Remove support for
6233 the "set remotebaud" and "show remotebaud" commands.
6234 * NEWS: Add entry documenting the removal of that command.
6235
6236 2014-05-28 Yao Qi <yao@codesourcery.com>
6237
6238 * charset.c: Fix typo in comments.
6239
6240 2014-05-27 Gary Benson <gbenson@redhat.com>
6241
6242 * utils.c (internal_vproblem): Prompt for a bug report.
6243
6244 2014-05-26 Andy Wingo <wingo@igalia.com>
6245
6246 * guile/scm-arch.c (arscm_mark_arch_smob):
6247 * guile/scm-block.c (bkscm_mark_block_smob)
6248 (bkscm_mark_block_syms_progress_smob):
6249 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6250 * guile/scm-exception.c (exscm_mark_exception_smob):
6251 * guile/scm-frame.c (frscm_mark_frame_smob):
6252 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6253 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6254 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6255 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6256 (ppscm_mark_pretty_printer_worker_smob):
6257 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6258 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6259 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6260 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6261 mark functions.
6262 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6263 function.
6264
6265 2014-05-26 Andy Wingo <wingo@igalia.com>
6266 Doug Evans <xdje42@gmail.com>
6267
6268 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6269 empty_base_class. All uses updated.
6270 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6271 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6272 Adapt all callers.
6273 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6274 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6275 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6276 (gdbscm_gsmob_has_property_p, add_property_name)
6277 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6278 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6279 (gdb-object-has-property?, gdb-object-properties): Remove.
6280 (gdb-object-kind): Renamed from gsmob-kind.
6281
6282 2014-05-26 Andy Wingo <wingo@igalia.com>
6283
6284 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6285 * configure: Regenerate.
6286
6287 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6288
6289 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6290
6291 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6292
6293 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6294 (replay_memory_access_read_only, replay_memory_access_read_write)
6295 (replay_memory_access_types, replay_memory_access)
6296 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6297 (cmd_set_record_btrace, cmd_show_record_btrace)
6298 (cmd_show_replay_memory_access): New.
6299 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6300 (record_btrace_remove_breakpoint): Replace
6301 record_btrace_allow_memory_access with replay_memory_access.
6302 (_initialize_record_btrace): Add commands.
6303 * NEWS: Announce it.
6304
6305 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6306
6307 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6308
6309 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6310
6311 * MAINTAINERS (Write After Approval): Move self back from
6312 paper trail.
6313
6314 2014-05-22 Pedro Alves <palves@redhat.com>
6315
6316 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6317 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6318 (disable_randomization, enum exec_direction_kind)
6319 (execution_direction, stop_registers, start_remote)
6320 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6321 (wait_for_inferior, normal_stop, get_last_target_status)
6322 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6323 (insert_step_resume_breakpoint_at_sal)
6324 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6325 (set_step_info, print_stop_event, signal_stop_state)
6326 (signal_print_state, signal_pass_state, signal_stop_update)
6327 (signal_print_update, signal_pass_update)
6328 (update_signals_program_target, clear_exit_convenience_vars)
6329 (displaced_step_dump_bytes, update_observer_mode)
6330 (signal_catch_update, gdb_signal_from_command): Move
6331 declarations ...
6332 * infrun.h: ... to this new file.
6333 * amd64-tdep.c: Include infrun.h.
6334 * annotate.c: Include infrun.h.
6335 * arch-utils.c: Include infrun.h.
6336 * arm-linux-tdep.c: Include infrun.h.
6337 * arm-tdep.c: Include infrun.h.
6338 * break-catch-sig.c: Include infrun.h.
6339 * breakpoint.c: Include infrun.h.
6340 * common/agent.c: Include infrun.h instead of inferior.h.
6341 * corelow.c: Include infrun.h.
6342 * event-top.c: Include infrun.h.
6343 * go32-nat.c: Include infrun.h.
6344 * i386-tdep.c: Include infrun.h.
6345 * inf-loop.c: Include infrun.h.
6346 * infcall.c: Include infrun.h.
6347 * infcmd.c: Include infrun.h.
6348 * infrun.c: Include infrun.h.
6349 * linux-fork.c: Include infrun.h.
6350 * linux-nat.c: Include infrun.h.
6351 * linux-thread-db.c: Include infrun.h.
6352 * monitor.c: Include infrun.h.
6353 * nto-tdep.c: Include infrun.h.
6354 * procfs.c: Include infrun.h.
6355 * record-btrace.c: Include infrun.h.
6356 * record-full.c: Include infrun.h.
6357 * remote-m32r-sdi.c: Include infrun.h.
6358 * remote-mips.c: Include infrun.h.
6359 * remote-notif.c: Include infrun.h.
6360 * remote-sim.c: Include infrun.h.
6361 * remote.c: Include infrun.h.
6362 * reverse.c: Include infrun.h.
6363 * rs6000-tdep.c: Include infrun.h.
6364 * s390-linux-tdep.c: Include infrun.h.
6365 * solib-irix.c: Include infrun.h.
6366 * solib-osf.c: Include infrun.h.
6367 * solib-svr4.c: Include infrun.h.
6368 * target.c: Include infrun.h.
6369 * top.c: Include infrun.h.
6370 * windows-nat.c: Include infrun.h.
6371 * mi/mi-interp.c: Include infrun.h.
6372 * mi/mi-main.c: Include infrun.h.
6373 * python/py-threadevent.c: Include infrun.h.
6374
6375 2014-05-22 Pedro Alves <palves@redhat.com>
6376
6377 * infrun.c (handle_inferior_event): Store the exit code for
6378 --return-child-result here, instead of ...
6379 (print_exited_reason): ... here.
6380
6381 2014-05-21 Pedro Alves <palves@redhat.com>
6382
6383 PR gdb/13860
6384 * gdbthread.h (struct thread_control_state): New field
6385 `command_interp'.
6386 * infrun.c (follow_fork): Copy the new thread control field to the
6387 child fork thread.
6388 (clear_proceed_status_thread): Clear the new thread control field.
6389 (proceed): Set the new thread control field.
6390 * interps.h (command_interp): Declare.
6391 * interps.c (command_interpreter): New global.
6392 (command_interp): New function.
6393 (interp_exec): Set `command_interpreter' while here.
6394 * cli-out.c (cli_uiout_dtor): New function.
6395 (cli_ui_out_impl): Install it.
6396 * mi/mi-interp.c: Include cli-out.h.
6397 (mi_cmd_interpreter_exec): Add comment.
6398 (restore_current_uiout_cleanup): New function.
6399 (ui_out_free_cleanup): New function.
6400 (mi_on_normal_stop): If finishing an execution command started by
6401 a CLI command, or any kind of breakpoint-like event triggered,
6402 print the stop event to the output (CLI) stream.
6403 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6404
6405 2014-05-21 Pedro Alves <palves@redhat.com>
6406
6407 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6408 current source line having changed.
6409 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6410 * infrun.c (normal_stop): Adjust call to
6411 set_current_sal_from_frame.
6412 * source.c (clear_lines_listed_range): New function.
6413 (set_current_source_symtab_and_line, identify_source_line): Clear
6414 the lines listed range.
6415 (line_info): Handle the first "info line" after the current source
6416 line having changed.
6417 * stack.c (print_stack_frame): Remove center handling.
6418 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6419 center sal.line.
6420
6421 2014-05-21 Pedro Alves <palves@redhat.com>
6422
6423 * inf-child.c (inf_child_mourn_inferior): New function.
6424 * inf-child.h (inf_child_mourn_inferior): New declaration.
6425 * darwin-nat.c (darwin_mourn_inferior): Use
6426 inf_child_mourn_inferior.
6427 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6428 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6429 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6430 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6431 * windows-nat.c (windows_mourn_inferior): Likewise.
6432
6433 2014-05-21 Doug Evans <xdje42@gmail.com>
6434
6435 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6436
6437 2014-05-21 Doug Evans <xdje42@gmail.com>
6438
6439 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6440 (gdbscm_out_of_range_error): Ditto.
6441 (gdbscm_memory_error): Ditto.
6442 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6443 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6444 (gdbscm_out_of_range_error): Update.
6445 (gdbscm_memory_error): Update.
6446 (gdbscm_scm_to_target_string_unsafe): Delete.
6447
6448 2014-05-21 Pedro Alves <palves@redhat.com>
6449
6450 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6451 globals.
6452 (inf_child_open_target): New function.
6453 (inf_child_open): Use inf_child_open_target to push the target
6454 instead of erroring out.
6455 (inf_child_disconnect, inf_child_close)
6456 (inf_child_maybe_unpush_target): New functions.
6457 (inf_child_target): Install inf_child_disconnect and
6458 inf_child_close. Store a pointer to the returned object.
6459 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6460 declarations.
6461 * target.c (auto_connect_native_target): New global.
6462 (show_default_run_target): New function.
6463 (find_default_run_target): Return NULL if automatically connecting
6464 to the native target is disabled.
6465 (_initialize_target): Install set/show auto-connect-native-target.
6466 * NEWS: Mention "set auto-connect-native-target", and "target
6467 native".
6468 * linux-nat.c (super_close): New global.
6469 (linux_nat_close): Call super_close.
6470 (linux_nat_add_target): Store a pointer to the base class's
6471 to_close method.
6472 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6473 inf_child_maybe_unpush.
6474 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6475 already pushed.
6476 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6477 the inferior. Use inf_child_maybe_unpush_target.
6478 (inf_ttrace_attach): Don't push the target if it is already
6479 pushed.
6480 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6481 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6482 after mourning the inferior. Use inf_child_maybe_unpush_target.
6483 (darwin_attach_pid): Don't push the target if it is already
6484 pushed.
6485 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6486 mourning the inferior. Use inf_child_maybe_unpush_target.
6487 (gnu_detach): Use inf_child_maybe_unpush_target.
6488 * go32-nat.c (go32_create_inferior): Don't push the target if it
6489 is already pushed.
6490 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6491 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6492 (procfs_open): Rename to ...
6493 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6494 comments. Can target_preopen before changing node. Call
6495 inf_child_open_target to push the target explicitly.
6496 (procfs_attach): Don't push the target if it is already pushed.
6497 (procfs_detach): Use inf_child_maybe_unpush_target.
6498 (procfs_create_inferior): Don't push the target if it is already
6499 pushed.
6500 (nto_native_ops): New global.
6501 (procfs_open): Reimplement.
6502 (procfs_native_open): New function.
6503 (init_procfs_targets): Install procfs_native_open as to_open of
6504 "target native". Store a pointer to the "native" target in
6505 nto_native_ops.
6506 * procfs.c (procfs_attach): Don't push the target if it is already
6507 pushed.
6508 (procfs_detach): Use inf_child_maybe_unpush_target.
6509 (procfs_mourn_inferior): Only unpush the target after mourning the
6510 inferior. Use inf_child_maybe_unpush_target.
6511 (procfs_init_inferior): Don't push the target if it is already
6512 pushed.
6513 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6514 if it is already pushed.
6515
6516 2014-05-21 Pedro Alves <palves@redhat.com>
6517
6518 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6519 and "procfs" targets are now called "native" instead.
6520
6521 2014-05-21 Pedro Alves <palves@redhat.com>
6522
6523 * go32-nat.c (go32_open): Delete.
6524 (go32_target): Don't override the to_open method.
6525
6526 2014-05-21 Pedro Alves <palves@redhat.com>
6527
6528 * nto-procfs.c (procfs_can_run): New function.
6529 (nto_procfs_ops): New global.
6530 (init_procfs_targets): New, based on procfs_target. Install
6531 "target native" in addition to "target procfs".
6532 (_initialize_procfs): Call init_procfs_targets instead of adding
6533 the target here.
6534
6535 2014-05-21 Pedro Alves <palves@redhat.com>
6536
6537 * windows-nat.c (windows_target): Don't override to_shortname,
6538 to_longname or to_doc.
6539
6540 2014-05-21 Pedro Alves <palves@redhat.com>
6541
6542 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6543 to_doc.
6544
6545 2014-05-21 Pedro Alves <palves@redhat.com>
6546
6547 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6548 to_shortname, to_longname or to_doc.
6549
6550 2014-05-21 Pedro Alves <palves@redhat.com>
6551
6552 * go32-nat.c (go32_target): Don't override to_shortname,
6553 to_longname or to_doc.
6554
6555 2014-05-21 Pedro Alves <palves@redhat.com>
6556
6557 * inf-child.c (inf_child_open): Remove mention of "child".
6558 (inf_child_target): Rename target to "native" instead of "child".
6559
6560 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6561
6562 * Makefile.in (SFILES): Delete "regset.c".
6563 (COMMON_OBS): Delete "regset.o".
6564 * regset.c: Remove.
6565 * regset.h (regset_alloc): Delete prototype.
6566
6567 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6568
6569 * sparc-linux-tdep.c (sparc32_linux_gregset)
6570 (sparc32_linux_fpregset): New static regset structures.
6571 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6572 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6573 'fpregset' fields.
6574 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6575 (sparc64_linux_fpregset): New static regset structures.
6576 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6577 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6578 New static regset structures.
6579 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6580 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6581 New static regset structures.
6582 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6583 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6584 New static regset structures.
6585 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6586 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6587 New static regset structures.
6588 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6589
6590 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6591
6592 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6593 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6594 register maps ("regmaps") from "*regset" to "*regmap". Do this
6595 for all regmap types and variables.
6596 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6597 (sparc32_linux_supply_core_gregset)
6598 (sparc32_linux_collect_core_gregset)
6599 (sparc32_linux_supply_core_fpregset)
6600 (sparc32_linux_collect_core_fpregset): Likewise.
6601 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6602 (sparc_gregmap, sparc_fpregmap): ... these.
6603 (sparc_supply_gregset, sparc_collect_gregset)
6604 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6605 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6606 (_initialize_sparc_nat): Rename regmaps.
6607 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6608 (sparc_gregmap, sparc_fpregmap): ... these.
6609 (sparc_supply_gregset, sparc_collect_gregset)
6610 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6611 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6612 Rename macros to...
6613 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6614 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6615 Likewise.
6616 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6617 Rename to...
6618 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6619 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6620 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6621 regmaps.
6622 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6623 (sparc32_bsd_fpregset): Rename to...
6624 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6625 (sparc32_bsd_fpregmap): ... these.
6626 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6627 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6628 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6629 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6630 (struct sparc_gregmap, struct sparc_fpregmap)
6631 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6632 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6633 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6634 (sparc32_supply_regset, sparc32_collect_gregset)
6635 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6636 prototypes.
6637 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6638 (sparc64_linux_ptrace_gregmap): ... this.
6639 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6640 (_initialize_sparc64_linux_nat): Rename regmaps.
6641 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6642 (sparc64_linux_core_gregmap): ... this.
6643 (sparc64_linux_supply_core_gregset)
6644 (sparc64_linux_collect_core_gregset)
6645 (sparc64_linux_supply_core_fpregset)
6646 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6647 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6648 (sparc64_sol2_fpregset): Rename to...
6649 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6650 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6651 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6652 regmaps.
6653 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6654 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6655 (sparc64_bsd_fpregset): Rename to...
6656 (struct sparc_gregmap, sparc64_sol2_gregmap)
6657 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6658 (sparc64_bsd_fpregmap): ... these.
6659 (sparc64_supply_gregset, sparc64_collect_gregset)
6660 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6661 prototypes.
6662 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6663 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6664 (sparc64fbsd_gregmap): ... this.
6665 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6666 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6667 Rename regmaps.
6668 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6669 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6670 (sparc64nbsd_collect_fpregset): Likewise.
6671 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6672 (sparc64nbsd_gregmap): ... this.
6673 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6674 regmaps.
6675 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6676 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6677 (sparc64obsd_gregmap): ... this.
6678 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6679 regmaps.
6680 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6681 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6682 (sparc32nbsd_gregmap): ... this.
6683 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6684 regmaps.
6685
6686 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6687
6688 * score-tdep.c (score7_linux_gregset): New static regset
6689 structure.
6690 (score7_linux_regset_from_core_section): Remove dynamic regset
6691 allocation.
6692 (score_gdbarch_init): Drop allocation of tdep structure.
6693 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6694
6695 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6696
6697 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6698 regset structures.
6699 (am33_regset_from_core_section): Remove dynamic regset
6700 allocations.
6701
6702 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6703
6704 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6705 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6706 structures.
6707 (mips_linux_regset_from_core_section): Remove dynamic regset
6708 allocations.
6709 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6710 'gregset64', 'fpregset', and 'fpregset64'.
6711 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6712 deleted tdep fields.
6713
6714 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6715
6716 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6717 regset structures.
6718 (amd64_regset_from_core_section): Remove dynamic regset
6719 allocations.
6720 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6721 structure.
6722 (amd64obsd_regset_from_core_section): Remove dynamic regset
6723 allocation.
6724 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6725 Likewise.
6726 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6727 x86-common regset supply function.
6728 * i386-tdep.c (i386_collect_gregset): Make static.
6729 (i386_gregset): New global regset structure.
6730 (i386_fpregset, i386_xstateregset): New static regset structures.
6731 (i386_regset_from_core_section): Remove dynamic regset
6732 allocations.
6733 (i386_gdbarch_init): Remove initialization of tdep fields
6734 'gregset', 'fpregset', and 'xstateregset'.
6735 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6736 'fpregset', and 'xstateregset'.
6737 (i386_collect_gregset): Remove prototype.
6738 (i386_gregset): New declaration.
6739 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6740 structure.
6741 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6742 allocation.
6743
6744 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6745
6746 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6747 (arm_linux_vfpregset): New static regset structures.
6748 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6749 regset structures.
6750 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6751 and 'vfpregset' fields.
6752
6753 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6754
6755 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6756 (aarch64_linux_fpregset): New static regset structures.
6757 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6758 of regset structures.
6759 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6760 'fpregset' fields.
6761
6762 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6763
6764 * regset.h (struct regset): Remove gdbarch field.
6765 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6766 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6767 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6768 Likewise.
6769 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6770 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6771 (ppc32_linux_vsxregset): Likewise.
6772 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6773 via the regcache instead of the regset.
6774 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6775 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6776 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6777 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6778 Likewise.
6779
6780 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6781
6782 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6783 Constify structures.
6784 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6785 (alphanbsd_aout_gregset): Likewise.
6786 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6787 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6788 Likewise.
6789 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6790 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6791 Likewise.
6792 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6793 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6794 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6795 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6796 * m88k-tdep.c (m88k_gregset): Likewise.
6797 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6798 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6799 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6800 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6801 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6802 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6803 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6804 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6805 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6806 Likewise.
6807 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6808 * sh-tdep.h (sh_corefile_gregset): Likewise.
6809 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6810 * vax-tdep.c (vax_gregset): Likewise.
6811
6812 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6813
6814 Fix TLS access for -static -pthread.
6815 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6816 (try_thread_db_load_1): Initialize it.
6817 (thread_db_get_thread_local_address): Call it if LM is zero.
6818 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6819 * target.h (struct target_ops) (to_get_thread_local_address): Add
6820 load_module_addr comment.
6821
6822 2014-05-21 Pedro Alves <palves@redhat.com>
6823
6824 * dcache.c (dcache_read_memory_partial): If reading the cache line
6825 fails, fallback to reading just the memory the caller wanted.
6826
6827 2014-05-20 Doug Evans <dje@google.com>
6828
6829 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6830 instead of get_current_arch.
6831
6832 2014-05-20 Pedro Alves <palves@redhat.com>
6833
6834 * NEWS: Mention that compare-sections now works with all targets.
6835
6836 * remote.c (PACKET_qCRC): New enum value.
6837 (remote_verify_memory): Don't send qCRC if the target has no
6838 execution. Use packet_support/packet_ok. If the target doesn't
6839 support the qCRC packet, fallback to a deep memory copy.
6840 (compare_sections_command): Say "target image" instead of "remote
6841 executable".
6842 (_initialize_remote): Add PACKET_qCRC to the list of config
6843 packets that have no associated command. Extend comment.
6844 * target.c (simple_verify_memory, default_verify_memory): New
6845 function.
6846 * target.h (struct target_ops) <to_verify_memory>: Default to
6847 default_verify_memory.
6848 (simple_verify_memory): New declaration.
6849 * target-delegates.c: Regenerate.
6850
6851 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6852
6853 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6854
6855 2014-05-20 Hui Zhu <hui@codesourcery.com>
6856 Yao Qi <yao@codesourcery.com>
6857
6858 PR backtrace/16558
6859 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6860 and change address of sp and pc.
6861
6862 2014-05-19 Tom Tromey <tromey@redhat.com>
6863
6864 * gdbtypes.c (rank_function): Use XNEWVEC.
6865 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6866
6867 2014-05-19 Doug Evans <dje@google.com>
6868
6869 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6870 build_type_unit_groups and moved closer to only caller. Remove
6871 arguments. All references updated. Remove outdated .gdb_index
6872 comment.
6873 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6874 build_type_psymtabs_1.
6875
6876 2014-05-19 Doug Evans <dje@google.com>
6877
6878 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6879 n_type_unit_groups, all_type_unit_groups. All uses removed.
6880 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6881 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6882 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6883 (add_type_unit_group_to_table): Delete.
6884
6885 2014-05-19 Doug Evans <dje@google.com>
6886
6887 * eval.c (evaluate_subexp_standard): Add some comments.
6888
6889 2014-05-17 Doug Evans <xdje42@gmail.com>
6890
6891 * progspace.c (remove_program_space): Delete, unused.
6892 * progspace.h (remove_program_space): Ditto.
6893
6894 2014-05-17 Doug Evans <xdje42@gmail.com>
6895
6896 * inferior.c (prune_inferiors): Fix comment.
6897 (remove_inferior_command): Call prune_program_spaces.
6898
6899 2014-05-16 Doug Evans <dje@google.com>
6900
6901 New command line option -D.
6902 * NEWS: Mention it.
6903 * main.c (set_gdb_data_directory): New function.
6904 (captured_main): Recognize -D. Flag error for --data-directory "".
6905 Call set_gdb_data_directory.
6906 (print_gdb_help): Print --data-directory, -D.
6907 * main.h (set_gdb_data_directory): Declare.
6908 * top.c (staged_gdb_datadir): New static global.
6909 (set_gdb_datadir): Call set_gdb_data_directory
6910 (show_gdb_datadir): New function.
6911 (init_main): Update init of data-directory parameter.
6912
6913 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6914
6915 Import the "dirfd" gnulib module.
6916 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6917 * gnulib/aclocal.m4: Update.
6918 * gnulib/config.in: Update.
6919 * gnulib/configure: Update.
6920 * gnulib/import/Makefile.am: Update.
6921 * gnulib/import/Makefile.in: Update.
6922 * gnulib/import/dirfd.c: New.
6923 * gnulib/import/m4/dirfd.m4: New.
6924 * gnulib/import/m4/gnulib-cache.m4: Update.
6925 * gnulib/import/m4/gnulib-comp.m4: Update.
6926
6927 2014-05-16 Pierre Muller <muller@sourceware.org>
6928 Yao Qi <yao@codesourcery.com>
6929
6930 * valprint.c (print_wchar): Move the code on checking whether
6931 W is a printable wide char to the default branch of switch
6932 statement below. Call wchar_printable instead of gdb_iswprint.
6933
6934 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6935
6936 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6937 ldr.w and ldrd instructions.
6938
6939 2014-05-15 Doug Evans <dje@google.com>
6940
6941 * dwarf2read.c (read_structure_type): Delete outdated comments.
6942
6943 2014-05-14 Tom Tromey <tromey@redhat.com>
6944
6945 * macrocmd.c (print_macro_definition): Reindent.
6946
6947 2014-05-13 Doug Evans <xdje42@gmail.com>
6948
6949 * python/py-cmd.c (cmdpy_completer): Add comment.
6950 (completers): Make const.
6951
6952 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6953
6954 * infrun.c (resume): Remove should_resume (unused). Move up
6955 declaration of resume_ptid.
6956
6957 2014-05-13 Tom Tromey <tromey@redhat.com>
6958
6959 * language.h (unop_type_check): Remove.
6960 (binop_type_check): Don't declare.
6961
6962 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6963
6964 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6965 call to regcache_raw_collect.
6966
6967 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6968
6969 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6970 mi_console->quote as the quoting character.
6971
6972 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6973
6974 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6975
6976 2014-04-29 Tom Tromey <tromey@redhat.com>
6977
6978 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6979 "show debug varobj".
6980
6981 2014-05-07 Kyle McMartin <kyle@redhat.com>
6982
6983 Pushed by Joel Brobecker <brobecker@adacore.com>.
6984 * aarch64-tdep.c (aarch64_software_single_step): New function.
6985 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6986 with aarch64_software_single_step.
6987
6988 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6989
6990 GDB 7.7.1 released.
6991
6992 2014-05-05 Keith Seitz <keiths@redhat.com>
6993
6994 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6995 variable or history value is successfully parsed.
6996
6997 2014-05-05 Yao Qi <yao@codesourcery.com>
6998 Pedro Alves <palves@redhat.com>
6999
7000 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7001 address of blocks that intersects the requested range. Trim
7002 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7003 sections.
7004 * ctf.c (ctf_xfer_partial): Likewise.
7005
7006 2014-05-05 Yao Qi <yao@codesourcery.com>
7007
7008 * printcmd.c (display_command): Remove the check to
7009 target_has_execution.
7010
7011 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7012
7013 * ppcobsd-nat.c: Include "obsd-nat.h".
7014 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7015 add_target.
7016 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7017
7018 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7019
7020 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7021 and 16-bit signed and unsigned arguments. Update comment.
7022 (stap_parse_probe_arguments): Extend code to handle such
7023 arguments. Use warning instead of complaint to notify about
7024 unrecognized bitness.
7025
7026 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7027
7028 PR breakpoints/16889
7029 * stap-probe.c (stap_parse_probe_arguments): Simplify
7030 check for non-prefixed probes (i.e., probes whose
7031 arguments do not start with "N@"). Always set the
7032 argument type to a sane value.
7033
7034 2014-05-01 David Taylor <dtaylor@emc.com>
7035
7036 * remote.c (compare_sections_command): Add -r option to compare
7037 all loadable read-only sections.
7038
7039 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7040
7041 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7042 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7043 Update all callers.
7044 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7045 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7046 Remove unused CORE_ADDR argument. Update all callers.
7047
7048 2014-04-29 Pedro Alves <palves@redhat.com>
7049
7050 * remote.c (struct packet_config) <detect>: Extend comment.
7051 (add_packet_config_cmd): Don't set the config's detect or support
7052 fields here.
7053 (init_all_packet_configs): Also initialize the config's 'detect'
7054 field.
7055 (reset_all_packet_configs_support): New function.
7056 (remote_open_1): Call reset_all_packet_configs_support instead of
7057 init_all_packet_configs.
7058 (_initialize_remote): Initialize all packet configs. Assert that
7059 all packets have an associated command, except a few known
7060 outliers.
7061
7062 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7063
7064 * dwarf2read.c (read_subrange_type): Handle dynamic
7065 DW_AT_lower_bound attributes.
7066
7067 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7068
7069 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7070 dynamic bounds before computing its upper bound.
7071 (ada_discrete_type_low_bound): Same as above with the lower bound.
7072
7073 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7074
7075 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7076 range types. Adjust the array handling implementation to
7077 take advantage of this change.
7078 (resolve_dynamic_range): New function, mostly extracted from
7079 resolve_dynamic_bounds.
7080 (resolve_dynamic_array): New function, mostly extracted from
7081 resolve_dynamic_bounds.
7082 (resolve_dynamic_bounds): Delete.
7083 (resolve_dynamic_type): Reimplement. Add handling of
7084 TYPE_CODE_RANGE types.
7085
7086 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7087
7088 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7089 handling of parallel ___XA types.
7090
7091 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7092
7093 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7094 unnecessary second call to static_unwrap_type.
7095
7096 2014-04-27 Hui Zhu <hui@codesourcery.com>
7097
7098 * stack.c (print_frame_info): Call do_gdb_disassembly with
7099 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7100
7101 2014-04-26 Doug Evans <xdje42@gmail.com>
7102
7103 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7104
7105 2014-04-25 Pedro Alves <palves@redhat.com>
7106
7107 PR server/16255
7108 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7109 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7110 and newline from built string.
7111 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7112 (linux_ptrace_attach_fail_reason): ... this.
7113 * linux-nat.c (linux_nat_attach): Adjust to use
7114 linux_ptrace_attach_fail_reason.
7115
7116 2014-04-25 Pedro Alves <palves@redhat.com>
7117
7118 * remote.c (struct remote_state): Remove multi_process_aware,
7119 non_stop_aware, cond_tracepoints, cond_breakpoints,
7120 breakpoint_commands, fast_tracepoints, static_tracepoints,
7121 install_in_trace, disconnected_tracing,
7122 enable_disable_tracepoints, string_tracing, and
7123 augmented_libraries_svr4_read fields.
7124 (remote_multi_process_p): Move further below in the file.
7125 (struct packet_config): Add comments.
7126 (update_packet_config): Delete function.
7127 (show_packet_config_cmd): Use packet_config_support.
7128 (add_packet_config_cmd): Use NULL as set callback.
7129 (packet_ok): "set remote foo-packet"-style commands no longer
7130 change config->supported -- adjust.
7131 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7132 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7133 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7134 (PACKET_QNonStop, PACKET_multiprocess_feature)
7135 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7136 (PACKET_DisconnectedTracing_feature)
7137 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7138 (set_remote_protocol_packet_cmd): Delete function.
7139 (packet_config_support, packet_support): New functions.
7140 (set_remote_protocol_Z_packet_cmd): Don't call
7141 update_packet_config.
7142 (remote_query_attached, remote_pass_signals)
7143 (remote_program_signals, remote_threads_info)
7144 (remote_threads_extra_info, remote_start_remote): Use
7145 packet_support.
7146 (remote_start_remote): Use packet_config_support and
7147 packet_support.
7148 (init_all_packet_configs): Set all packets to unknown support,
7149 instead of calling update_packet_config.
7150 (remote_check_symbols): Use packet_support.
7151 (remote_supported_packet): Unconditionally set the packet config's
7152 support status.
7153 (remote_multi_process_feature, remote_non_stop_feature)
7154 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7155 (remote_breakpoint_commands_feature)
7156 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7157 (remote_install_in_trace_feature)
7158 (remote_disconnected_tracing_feature)
7159 (remote_enable_disable_tracepoint_feature)
7160 (remote_string_tracing_feature)
7161 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7162 (remote_protocol_features): Adjust to use remote_supported_packet
7163 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7164 "ConditionalTracepoints", "ConditionalBreakpoints",
7165 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7166 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7167 "EnableDisableTracepoints", and "tracenz".
7168 (remote_query_supported): Use packet_support.
7169 (remote_open_1): Adjust.
7170 (extended_remote_attach_1): Use packet_support. Switch on the
7171 result of packet_ok instead of checking whether the packet ended
7172 up disabled.
7173 (remote_vcont_resume): Use packet_support.
7174 (remote_resume, remote_stop_ns, fetch_register_using_p)
7175 (remote_prepare_to_store, store_register_using_P)
7176 (check_binary_download, remote_write_bytes): Use packet_support.
7177 (remote_vkill): Use packet_support. Switch on the result of
7178 packet_ok instead of checking whether the packet ended up
7179 disabled.
7180 (extended_remote_supports_disable_randomization): Use
7181 packet_support.
7182 (extended_remote_run): Switch on the result of packet_ok instead
7183 of checking whether the packet ended up disabled.
7184 (remote_insert_breakpoint, remote_remove_breakpoint)
7185 (remote_insert_watchpoint, remote_remove_watchpoint)
7186 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7187 packet_support.
7188 (remote_search_memory): Use packet_config_support.
7189 (remote_get_thread_local_address, remote_get_tib_address)
7190 (remote_hostio_send_command, remote_can_execute_reverse): Use
7191 packet_support.
7192 (remote_supports_cond_tracepoints)
7193 (remote_supports_cond_breakpoints)
7194 (remote_supports_fast_tracepoints)
7195 (remote_supports_static_tracepoints)
7196 (remote_supports_install_in_trace)
7197 (remote_supports_enable_disable_tracepoint)
7198 (remote_supports_string_tracing)
7199 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7200 the packet config says the feature is enabled or disabled.
7201 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7202 (remote_get_trace_status): Use packet_support.
7203 (remote_set_disconnected_tracing): Adjust to check whether the
7204 feature is enabled with packet_support.
7205 (remote_set_trace_buffer_size, remote_use_agent)
7206 (remote_can_use_agent, remote_supports_btrace): Use
7207 packet_support.
7208 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7209 Use packet_config_support.
7210 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7211 the packet config says the feature is enabled or disabled.
7212 (set_range_stepping): Use packet_support.
7213
7214 2014-04-25 Tom Tromey <tromey@redhat.com>
7215
7216 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7217 argument.
7218
7219 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7220
7221 * NEWS: Mention support for C99 variable length arrays.
7222
7223 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7224
7225 * ada-lang.c (standard_exc): Expand introductory comment.
7226
7227 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7228 Walfred Tedeschi <walfred.tedeschi@intel.com>
7229
7230 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7231 AVX512 registers.
7232 (amd64_linux_read_description): Add code to handle AVX512 xstate
7233 mask and return respective tdesc.
7234 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7235 and features/i386/x32-avx512-linux.c.
7236 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7237 (amd64_linux_core_read_description): Add code to handle AVX512
7238 xstate mask and return respective tdesc.
7239 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7240 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7241 calculation.
7242 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7243 (tdesc_amd64_avx512_linux): New prototype.
7244 (tdesc_x32_avx512_linux): Likewise.
7245 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7246 features/i386/x32-avx512.c.
7247 (amd64_ymm_avx512_names): New register names for pseudo
7248 registers YMM16-31.
7249 (amd64_ymmh_avx512_names): New register names for raw registers
7250 YMMH16-31.
7251 (amd64_k_names): New register names for K registers.
7252 (amd64_zmmh_names): New register names for ZMM raw registers.
7253 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7254 (amd64_xmm_avx512_names): New register names for XMM16-31
7255 registers.
7256 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7257 registers.
7258 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7259 if feature is present.
7260 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7261 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7262 (AMD64_NUM_REGS): Adjust to new number of registers.
7263 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7264 registers supplied via XSTATE by AVX512 registers.
7265 (i386_linux_read_description): Add case for AVX512.
7266 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7267 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7268 (i386_linux_core_read_description): Add case for AVX512.
7269 (i386_linux_init_abi): Install supported register note section
7270 for AVX512.
7271 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7272 AVX512.
7273 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7274 registers to be number of zmm7h + 1.
7275 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7276 * i386-tdep.c: Include features/i386/i386-avx512.c.
7277 (i386_zmm_names): Add ZMM pseudo register names array.
7278 (i386_zmmh_names): Add ZMM raw register names array.
7279 (i386_k_names): Add K raw register names array.
7280 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7281 registers. AVX512 has 16 more ZMM registers than there are YMM
7282 registers.
7283 (i386_zmmh_regnum_p): Add function to look up register number of
7284 ZMM raw registers.
7285 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7286 (i386_k_regnum_p): Likewise for K raw registers.
7287 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7288 registers added by AVX512.
7289 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7290 registers added by AVX512.
7291 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7292 added by AVX512.
7293 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7294 (i386_pseudo_register_name): Add ZMM pseudo registers.
7295 (i386_zmm_type): Construct and return vector registers type for ZMM
7296 registers.
7297 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7298 ZMM0-31 pseudo registers and K registers.
7299 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7300 and YMM16-31 registers from register cache.
7301 (i386_pseudo_register_write): Add code to write K, ZMM and
7302 YMM16-31 registers.
7303 (i386_register_reggroup_p): Add code to include/exclude AVX512
7304 registers in/from respective register groups.
7305 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7306 registers if feature is present in xcr0.
7307 (i386_gdbarch_init): Add code to initialize AVX512 feature
7308 variables in tdep structure, wire in pseudo registers and call
7309 initialize_tdesc_i386_avx512.
7310 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7311 variables.
7312 (i386_regnum): Add AVX512 registers.
7313 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7314 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7315 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7316 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7317 512 bits wide.
7318 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7319 (i386_ymm_avx512_regnum_p): Likewise.
7320 (i386_k_regnum_p): Likewise.
7321 (i386_zmm_regnum_p): Likewise.
7322 (i386_zmmh_regnum_p): Likewise.
7323 * i387-tdep.c : Update year in copyright notice.
7324 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7325 XSAVE buffer.
7326 (XSAVE_YMM_AVX512_ADDR): New macro.
7327 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7328 XSAVE buffer.
7329 (XSAVE_XMM_AVX512_ADDR): New macro.
7330 (xsave_avx512_k_offset): New table for K register offsets in
7331 XSAVE buffer.
7332 (XSAVE_AVX512_K_ADDR): New macro.
7333 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7334 in XSAVE buffer.
7335 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7336 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7337 buffer.
7338 (i387_collect_xsave): Add code to collect AVX512 registers from
7339 XSAVE buffer.
7340 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7341 of XMM16-31 registers.
7342 (I387_NUM_K_REGS): New define for number of K registers.
7343 (I387_K0_REGNUM): New define for K0 register number.
7344 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7345 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7346 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7347 registers.
7348 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7349 (I387_XMM16_REGNUM): New define for XMM16 register number.
7350 (I387_YMM0_REGNUM): New define for YMM0 register number.
7351 (I387_KEND_REGNUM): New define for last K register number.
7352 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7353 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7354 number.
7355 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7356 number.
7357 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7358 size.
7359 * features/Makefile: Add AVX512 related files.
7360 * features/i386/32bit-avx512.xml: New file.
7361 * features/i386/64bit-avx512.xml: Likewise.
7362 * features/i386/amd64-avx512-linux.c: Likewise.
7363 * features/i386/amd64-avx512-linux.xml: Likewise.
7364 * features/i386/amd64-avx512.c: Likewise.
7365 * features/i386/amd64-avx512.xml: Likewise.
7366 * features/i386/i386-avx512-linux.c: Likewise.
7367 * features/i386/i386-avx512-linux.xml: Likewise.
7368 * features/i386/i386-avx512.c: Likewise.
7369 * features/i386/i386-avx512.xml: Likewise.
7370 * features/i386/x32-avx512-linux.c: Likewise.
7371 * features/i386/x32-avx512-linux.xml: Likewise.
7372 * features/i386/x32-avx512.c: Likewise.
7373 * features/i386/x32-avx512.xml: Likewise.
7374 * regformats/i386/amd64-avx512-linux.dat: New file.
7375 * regformats/i386/amd64-avx512.dat: Likewise.
7376 * regformats/i386/i386-avx512-linux.dat: Likewise.
7377 * regformats/i386/i386-avx512.dat: Likewise.
7378 * regformats/i386/x32-avx512-linux.dat: Likewise.
7379 * regformats/i386/x32-avx512.dat: Likewise.
7380 * NEWS: Add note about new support for AVX512.
7381
7382
7383 2014-04-23 Pedro Alves <palves@redhat.com>
7384
7385 * breakpoint.c (insert_bp_location): Tolerate errors if the
7386 breakpoint is set in a user-loaded objfile.
7387 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7388 location is marked shlib_disabled. If the breakpoint is set in a
7389 user-loaded objfile is a GDB-side memory breakpoint, validate it
7390 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7391 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7392 flag.
7393 * mem-break.c (memory_validate_breakpoint): New function.
7394 * objfiles.c (userloaded_objfile_contains_address_p): New
7395 function.
7396 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7397 * target.h (memory_validate_breakpoint): New declaration.
7398
7399 2014-04-23 Pedro Alves <palves@redhat.com>
7400
7401 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7402 the breakpoint is set in a shared library, only suppress
7403 errors for software breakpoints, not hardware breakpoints.
7404
7405 2014-04-22 Pedro Alves <palves@redhat.com>
7406
7407 * infrun.c (schedlock_applies): New function, factored out from
7408 find_thread_needs_step_over.
7409 (find_thread_needs_step_over): Use it.
7410 (switch_back_to_stepped_thread): Always clear trap_expected if the
7411 step over is finished. Return early if scheduler locking applies.
7412 Look for the stepping thread and a potential step-over thread with
7413 a single loop.
7414 (currently_stepping_or_nexting_callback): Delete.
7415
7416 2014-04-22 Nick Clifton <nickc@redhat.com>
7417
7418 * NEWS: Mention that ARM sim now supports tracing.
7419
7420 2014-04-22 Yao Qi <yao@codesourcery.com>
7421
7422 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7423 to ...
7424 * tracefile.c (tracefile_fetch_registers): ... it. New
7425 function.
7426 * tracefile.h (tracefile_fetch_registers): Declare.
7427 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7428 tracefile_fetch_registers.
7429
7430 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7431
7432 PR gdb/14018
7433 * windows-nat.c (thread_rec): Don't display a warning when
7434 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7435 fails for any reason, set th->suspended to -1, so that we don't
7436 try to resume such a thread. Also, don't return NULL in these
7437 cases, to avoid completely ruin the session due to "PC register is
7438 not available" error.
7439 (do_windows_fetch_inferior_registers): Check errors in
7440 GetThreadContext call.
7441 (windows_continue): Accept an additional argument KILLED; if not
7442 zero, ignore errors in the SetThreadContext call, since the
7443 inferior was killed and is shutting down.
7444 (windows_resume, get_windows_debug_event)
7445 (windows_create_inferior, windows_mourn_inferior)
7446 (windows_kill_inferior): All callers of windows_continue changed
7447 to adjust to its new calling sequence.
7448
7449 2014-04-19 Yao Qi <yao@codesourcery.com>
7450
7451 * ctf.c (ctf_open): Call post_create_inferior.
7452
7453 2014-04-19 Yao Qi <yao@codesourcery.com>
7454
7455 * ctf.c (handle_id): New static variable.
7456 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7457 value. Get the declaration of event "register" and get length
7458 of field "contents".
7459
7460 2014-04-19 Yao Qi <yao@codesourcery.com>
7461
7462 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7463
7464 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7465
7466 * valops.c (oload_method_static): Remove unnecessary argument
7467 METHOD. Update all callers.
7468
7469 2014-04-18 Pedro alves <palves@redhat.com>
7470 Tom Tromey <tromey@redhat.com>
7471
7472 PR backtrace/15558
7473 * frame.c (get_prev_frame_1): Rename to ...
7474 (get_prev_frame_always): ... this, and make extern. Adjust.
7475 (skip_artificial_frames): Use get_prev_frame_always.
7476 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7477 (get_frame_unwind_stop_reason): Adjust to rename.
7478 * frame.h (get_prev_frame_always): Declare.
7479 * inline-frame.c: Include frame.h.
7480 (inline_frame_this_id): Use get_prev_frame_always.
7481
7482 2014-04-18 Tristan Gingold <gingold@adacore.com>
7483
7484 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7485 code by using bfd_mach_o_get_base_address.
7486
7487 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7488
7489 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7490 (spu_ax_pseudo_register_collect): New function.
7491 (spu_ax_pseudo_register_push_stack): Likewise.
7492 (spu_dwarf_reg_to_regnum): Likewise.
7493 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7494
7495 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7496
7497 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7498 Replace FRAME argument with FRAME_ID.
7499 * gdbarch.c, gdbarch.h: Regenerate.
7500 * findvar.c (default_value_from_register): Add GDBARCH argument;
7501 replace FRAME by FRAME_ID. No longer call get_frame_id.
7502 (value_from_register): Update call to gdbarch_value_from_register.
7503 * value.h (default_value_from_register): Update prototype.
7504 * s390-linux-tdep.c (s390_value_from_register): Update interface
7505 and call to default_value_from_register.
7506 * spu-tdep.c (spu_value_from_register): Likewise.
7507
7508 * findvar.c (address_from_register): Remove TYPE argument.
7509 Do not call value_from_register; use gdbarch_value_from_register
7510 with null_frame_id instead.
7511 * value.h (address_from_register): Update prototype.
7512 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7513 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7514 address_from_register interface change.
7515
7516 2014-04-17 Yao Qi <yao@codesourcery.com>
7517
7518 * gdbtypes.h: Update comments to link to types and macros'
7519 definitions.
7520
7521 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7522
7523 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7524
7525 2014-04-16 Keith Seitz <keiths@redhat.com>
7526
7527 PR gdb/15827
7528 * dwarf2read.c (skip_one_die): Check that all relative-offset
7529 sibling DIEs fall within range of the current reader's buffer.
7530 (read_partial_die): Likewise.
7531
7532 2014-04-16 Keith Seitz <keiths@redhat.com>
7533
7534 PR c++/16597
7535 * cp-namespace.c (lookup_symbol_file): If the type name of
7536 `this' is NULL, return immediately.
7537
7538 2014-04-14 Keith Seitz <keiths@redhat.com>
7539
7540 PR c++/16253
7541 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7542 from symbol_matches_domain in symtab.c. All local callers
7543 of symbol_matches_domain updated.
7544 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7545 search STRUCT_DOMAIN.
7546 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7547 independently. standard_lookup will do that automatically.
7548 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7549 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7550 (cp_lookup_symbol_in_namespace): Likewise.
7551 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7552 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7553 may return a STRUCT_DOMAIN match.
7554 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7555 * cp-support.c: Include language.h.
7556 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7557 VAR_DOMAIN.
7558 * psymtab.c (match_partial_symbol): Compare the requested
7559 domain with the symbol's domain directly.
7560 (lookup_partial_symbol): Likewise.
7561 * symtab.c (lookup_symbol_in_language): Explain when/why
7562 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7563 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7564 appropriate languages.
7565 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7566 and moved to ada-lang.c
7567 (lookup_block_symbol): Explain that this function only returns
7568 symbol matching the requested DOMAIN.
7569 Compare the requested domain with the symbol's domain directly.
7570 (iterate_over_symbols): Compare the requested domain with the
7571 symbol's domain directly.
7572 * symtab.h (symbol_matches_domain): Remove.
7573
7574 2014-04-14 Tom Tromey <tromey@redhat.com>
7575
7576 PR c++/15246:
7577 * c-exp.y (type_aggregate_p): New function.
7578 (qualified_name, classify_inner_name): Use it.
7579 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7580 and TYPE_TARGET_TYPE of an enum type.
7581 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7582 an enum type.
7583 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7584 handle TYPE_DECLARED_CLASS.
7585 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7586 types.
7587 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7588 * valops.c (enum_constant_from_type): New function.
7589 (value_aggregate_elt): Use it.
7590 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7591 TYPE_CODE_ENUM.
7592
7593 2014-04-14 Tom Tromey <tromey@redhat.com>
7594
7595 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7596 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7597 const.
7598 * value.h (value_aggregate_elt): Update.
7599
7600 2014-04-14 Tom Tromey <tromey@redhat.com>
7601
7602 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7603
7604 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7605
7606 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7607 (evaluate_subexp_standard): Pass noside argument.
7608 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7609 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7610 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7611 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7612 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7613
7614 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7615
7616 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7617 points to a constant blob.
7618
7619 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7620
7621 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7622 property and store it as the high bound and flag the range accordingly.
7623 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7624 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7625 * gdbtypes.h (enum range_flags): New enum.
7626 (struct range_bounds): Add flags member.
7627
7628 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7629
7630 * c-typeprint.c (c_type_print_varspec_suffix): Added
7631 check for not yet resolved high bound. If unresolved, print
7632 "variable length" string to the console instead of random
7633 length.
7634
7635 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7636
7637 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7638 value.
7639 (ada_template_to_fixed_record_type_1): Likewise.
7640 (ada_to_fixed_type_1): Likewise.
7641 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7642 (cp_print_value): Likewise.
7643 * d-valprint.c (dynamic_array_type): Likewise.
7644 * findvar.c (address_of_variable): Likewise.
7645 * jv-valprint.c (java_value_print): Likewise.
7646 * valops.c (value_ind): Likewise.
7647 * value.c (coerce_ref): Likewise.
7648
7649 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7650
7651 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7652 value and retrieve the dynamic type size.
7653
7654 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7655
7656 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7657 passed to sizeof is dynamic evaluate the argument to compute the length.
7658
7659 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7660 Joel Brobecker <brobecker@adacore.com>
7661
7662 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7663 (dwarf2_evaluate_property): New function.
7664 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7665 * dwarf2read.c (attr_to_dynamic_prop): New function.
7666 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7667 attribute.
7668 * gdbtypes.c: Include dwarf2loc.h.
7669 (is_dynamic_type): New function.
7670 (resolve_dynamic_type): New function.
7671 (resolve_dynamic_bounds): New function.
7672 (get_type_length): New function.
7673 (check_typedef): Use get_type_length to compute type length.
7674 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7675 (TYPE_LOW_BOUND_KIND): New macro.
7676 (is_dynamic_type): New function prototype.
7677 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7678 to resolve dynamic properties of the type. Update comment.
7679 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7680
7681 2014-04-14 Richard Henderson <rth@redhat.com>
7682
7683 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7684
7685 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7686 Doug Evans <xdje42@gmail.com>
7687
7688 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7689 dereference TYPE_CODE_REF values.
7690
7691 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7692
7693 Revert the following changes due to regressions:
7694
7695 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7696 (dwarf2_evaluate_property): New function.
7697 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7698 * dwarf2read.c (attr_to_dynamic_prop): New function.
7699 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7700 attribute.
7701 * gdbtypes.c: Include dwarf2loc.h.
7702 (is_dynamic_type): New function.
7703 (resolve_dynamic_type): New function.
7704 (resolve_dynamic_bounds): New function.
7705 (get_type_length): New function.
7706 (check_typedef): Use get_type_length to compute type length.
7707 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7708 (TYPE_LOW_BOUND_KIND): New macro.
7709 (is_dynamic_type): New function prototype.
7710 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7711 to resolve dynamic properties of the type. Update comment.
7712 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7713
7714 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7715 passed to sizeof is dynamic evaluate the argument to compute the length.
7716
7717 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7718 value and retrieve the dynamic type size.
7719
7720 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7721 (ada_template_to_fixed_record_type_1): Likewise.
7722 (ada_to_fixed_type_1): Likewise.
7723 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7724 (cp_print_value): Likewise.
7725 * d-valprint.c (dynamic_array_type): Likewise.
7726 * eval.c (evaluate_subexp_with_coercion): Likewise.
7727 * findvar.c (address_of_variable): Likewise.
7728 * jv-valprint.c (java_value_print): Likewise.
7729 * valops.c (value_ind): Likewise.
7730 * value.c (coerce_ref): Likewise.
7731
7732 * c-typeprint.c (c_type_print_varspec_suffix): Added
7733 check for not yet resolved high bound. If unresolved, print
7734 "variable length" string to the console instead of random
7735 length.
7736
7737 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7738 property and store it as the high bound and flag the range accordingly.
7739 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7740 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7741 * gdbtypes.h (enum range_flags): New enum.
7742 (struct range_bounds): Add flags member.
7743
7744 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7745 points to a constant blob.
7746
7747 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7748 (evaluate_subexp_standard): Pass noside argument.
7749 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7750 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7751 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7752 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7753 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7754
7755 2014-04-11 Keith Seitz <keiths@redhat.com>
7756
7757 PR c++/16675
7758 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7759 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7760 reference types.
7761
7762 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7763
7764 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7765 (evaluate_subexp_standard): Pass noside argument.
7766 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7767 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7768 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7769 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7770 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7771
7772 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7773
7774 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7775 points to a constant blob.
7776
7777 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7778
7779 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7780 property and store it as the high bound and flag the range accordingly.
7781 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7782 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7783 * gdbtypes.h (enum range_flags): New enum.
7784 (struct range_bounds): Add flags member.
7785
7786 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7787
7788 * c-typeprint.c (c_type_print_varspec_suffix): Added
7789 check for not yet resolved high bound. If unresolved, print
7790 "variable length" string to the console instead of random
7791 length.
7792
7793 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7794
7795 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7796 (ada_template_to_fixed_record_type_1): Likewise.
7797 (ada_to_fixed_type_1): Likewise.
7798 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7799 (cp_print_value): Likewise.
7800 * d-valprint.c (dynamic_array_type): Likewise.
7801 * eval.c (evaluate_subexp_with_coercion): Likewise.
7802 * findvar.c (address_of_variable): Likewise.
7803 * jv-valprint.c (java_value_print): Likewise.
7804 * valops.c (value_ind): Likewise.
7805 * value.c (coerce_ref): Likewise.
7806
7807 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7808
7809 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7810 value and retrieve the dynamic type size.
7811
7812 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7813
7814 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7815 passed to sizeof is dynamic evaluate the argument to compute the length.
7816
7817 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7818
7819 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7820 (dwarf2_evaluate_property): New function.
7821 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7822 * dwarf2read.c (attr_to_dynamic_prop): New function.
7823 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7824 attribute.
7825 * gdbtypes.c: Include dwarf2loc.h.
7826 (is_dynamic_type): New function.
7827 (resolve_dynamic_type): New function.
7828 (resolve_dynamic_bounds): New function.
7829 (get_type_length): New function.
7830 (check_typedef): Use get_type_length to compute type length.
7831 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7832 (TYPE_LOW_BOUND_KIND): New macro.
7833 (is_dynamic_type): New function prototype.
7834 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7835 to resolve dynamic properties of the type. Update comment.
7836 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7837
7838 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7839
7840 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7841 declaring high/low bounds and change uses accordingly. Call
7842 create_range_type instead of create_static_range_type.
7843 * gdbtypes.c (create_range_type): New function.
7844 (create_range_type): Convert bounds into struct bound_prop and pass
7845 them to create_range_type.
7846 * gdbtypes.h (struct bound_prop): New struct.
7847 (create_range_type): New function prototype.
7848 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7849 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7850 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7851 part of the bound.
7852 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7853
7854 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7855
7856 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7857 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7858 * ada-lang.c: All uses of create_range_type updated.
7859 * coffread.c: All uses of create_range_type updated.
7860 * dwarf2read.c: All uses of create_range_type updated.
7861 * f-exp.y: All uses of create_range_type updated.
7862 * m2-valprint.c: All uses of create_range_type updated.
7863 * mdebugread.c: All uses of create_range_type updated.
7864 * stabsread.c: All uses of create_range_type updated.
7865 * valops.c: All uses of create_range_type updated.
7866 * valprint.c: All uses of create_range_type updated.
7867
7868 2014-04-10 Pedro Alves <palves@redhat.com>
7869
7870 * breakpoint.c (single_step_breakpoints)
7871 (single_step_gdbarch): Move up in the file.
7872 (one_breakpoint_xfer_memory): New function, factored out from ...
7873 (breakpoint_xfer_memory): ... here. Also process single-step
7874 breakpoints.
7875
7876 2014-04-09 Tristan Gingold <gingold@adacore.com>
7877
7878 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7879 comments.
7880 (darwin_decode_exception_message): Free port only after use.
7881
7882 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7883
7884 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7885 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7886 when setting the size of call_length.
7887
7888 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7889
7890 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7891 dereference TYPE_CODE_REF values.
7892
7893 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7894
7895 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7896 end of warning message.
7897
7898 2014-04-03 Doug Evans <dje@google.com>
7899
7900 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7901 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7902
7903 2014-04-02 Alan Modra <amodra@gmail.com>
7904
7905 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7906 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7907 (struct symbol_file_add_from_memory_args): Add size field.
7908 (find_vdso_size): New function.
7909 (add_vsyscall_page): Attempt to find vdso size.
7910
7911 2014-04-01 Doug Evans <dje@google.com>
7912
7913 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7914
7915 2014-04-01 Tristan Gingold <gingold@adacore.com>
7916
7917 * darwin-nat.c (darwin_encode_reply): Add prototype.
7918 (darwin_decode_exception_message): Reply to unknown inferiors.
7919 (darwin_decode_message): Handle message by id. Ignore message
7920 to unknown inferior.
7921 (darwin_wait): Discard unknown messages, add debug trace.
7922
7923 2014-03-31 Doug Evans <dje@google.com>
7924
7925 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7926 comp_dir_string.
7927
7928 2014-03-31 Doug Evans <dje@google.com>
7929
7930 New option "set print symbol-loading".
7931 * NEWS: Mention it.
7932 * solib.c (solib_read_symbols): Only print symbol loading messages
7933 if requested.
7934 (solib_add): If symbol loading is in "brief" mode, notify user
7935 symbols are being loaded.
7936 (reload_shared_libraries_1): Ditto.
7937 * symfile.c (print_symbol_loading_off): New static global.
7938 (print_symbol_loading_brief): New static global.
7939 (print_symbol_loading_full): New static global.
7940 (print_symbol_loading_enums): New static global.
7941 (print_symbol_loading): New static global.
7942 (print_symbol_loading_p): New function.
7943 (symbol_file_add_with_addrs): Only print symbol loading messages
7944 if requested.
7945 (_initialize_symfile): Register "print symbol-loading" set/show
7946 command.
7947 * symfile.h (print_symbol_loading_p): Declare.
7948
7949 2014-03-30 Doug Evans <xdje42@gmail.com>
7950
7951 * infrun.c (set_last_target_status): New function.
7952 (handle_inferior_event): Call it.
7953
7954 2014-03-30 Doug Evans <xdje42@gmail.com>
7955
7956 * inferior.h (enum stop_kind): Improve comment.
7957
7958 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7959
7960 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7961 a reference, strip the reference layer before calling
7962 the lang_ops value_has_mutated callback.
7963
7964 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7965
7966 Remove some globals from our parser.
7967 * language.c (unk_lang_parser): Add "struct parser_state"
7968 argument.
7969 * language.h (struct language_defn) <la_parser>: Likewise.
7970 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7971 (initialize_expout): Add "struct parser_state" argument.
7972 Rewrite function to use the parser state.
7973 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7974 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7975 write_exp_elt_longcst, write_exp_elt_dblcst,
7976 write_exp_elt_decfloatcst, write_exp_elt_type,
7977 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7978 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7979 write_dollar_variable): Likewise.
7980 (parse_exp_in_context_1): Use parser state.
7981 (insert_type_address_space): Add "struct parser_state" argument.
7982 Use parser state.
7983 (increase_expout_size): New function.
7984 * parser-defs.h: Forward declare "struct language_defn" and
7985 "struct parser_state".
7986 (expout, expout_size, expout_ptr): Remove extern declarations.
7987 (parse_gdbarch, parse_language): Rewrite macro declarations to
7988 accept the parser state.
7989 (struct parser_state): New struct.
7990 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7991 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7992 write_exp_elt_decfloatcst, write_exp_elt_type,
7993 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7994 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7995 write_exp_msymbol, write_dollar_variable,
7996 mark_struct_expression, insert_type_address_space): Add "struct
7997 parser_state" argument.
7998 (increase_expout_size): New function.
7999 * utils.c (do_clear_parser_state): New function.
8000 (make_cleanup_clear_parser_state): Likewise.
8001 * utils.h (make_cleanup_clear_parser_state): New function
8002 prototype.
8003 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8004 Update calls to write_exp* in order to pass the parser state.
8005 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8006 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8007 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8008 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8009 * stap-probe.c (stap_parse_register_operand): Likewise.
8010 (stap_parse_single_operand): Likewise.
8011 (stap_parse_argument_1): Likewise.
8012 (stap_parse_argument): Use parser state.
8013 * stap-probe.h: Include "parser-defs.h".
8014 (struct stap_parse_info) <pstate>: New field.
8015 * c-exp.y (parse_type): Rewrite to use parser state.
8016 (yyparse): Redefine to c_parse_internal.
8017 (pstate): New global variable.
8018 (parse_number): Add "struct parser_state" argument.
8019 (write_destructor_name): Likewise.
8020 (type_exp): Update calls to write_exp* and similars in order to
8021 use parser state.
8022 (exp1, exp, variable, qualified_name, space_identifier,
8023 typename, typebase): Likewise.
8024 (write_destructor_name, parse_number, lex_one_token,
8025 classify_name, classify_inner_name, c_parse): Add "struct
8026 parser_state" argument. Update function to use parser state.
8027 * c-lang.h: Forward declare "struct parser_state".
8028 (c_parse): Add "struct parser_state" argument.
8029 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8030 (yyparse): Redefine macro to ada_parse_internal.
8031 (pstate): New variable.
8032 (write_int, write_object_renaming, write_var_or_type,
8033 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8034 type_int, type_long, type_long_long, type_float, type_double,
8035 type_long_double, type_char, type_boolean, type_system_address):
8036 Add "struct parser_state" argument.
8037 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8038 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8039 var_or_type, aggregate, aggregate_component_list,
8040 positional_list, others, component_group,
8041 component_associations): Update calls to write_exp* and similar
8042 functions in order to use parser state.
8043 (ada_parse, write_var_from_sym, write_int,
8044 write_exp_op_with_string, write_object_renaming,
8045 find_primitive_type, write_selectors, write_ambiguous_var,
8046 write_var_or_type, write_name_assoc, type_int, type_long,
8047 type_long_long, type_float, type_double, type_long_double,
8048 type_char, type_boolean, type_system_address): Add "struct
8049 parser_state" argument. Adjust function to use parser state.
8050 * ada-lang.c (parse): Likewise.
8051 * ada-lang.h: Forward declare "struct parser_state".
8052 (ada_parse): Add "struct parser_state" argument.
8053 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8054 calls to both functions.
8055 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8056 parser state.
8057 (yyparse): Redefine macro to f_parse_internal.
8058 (pstate): New variable.
8059 (parse_number): Add "struct parser_state" argument.
8060 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8061 and similars in order to use parser state.
8062 (parse_number): Adjust code to use parser state.
8063 (yylex): Likewise.
8064 (f_parse): New function.
8065 * f-lang.h: Forward declare "struct parser_state".
8066 (f_parse): Add "struct parser_state" argument.
8067 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8068 parser state.
8069 (yyparse): Redefine macro for java_parse_internal.
8070 (pstate): New variable.
8071 (push_expression_name, push_expression_name, insert_exp): Add
8072 "struct parser_state" argument.
8073 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8074 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8075 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8076 PostIncrementExpression, PostDecrementExpression,
8077 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8078 UnaryExpressionNotPlusMinus, CastExpression,
8079 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8080 RelationalExpression, EqualityExpression, AndExpression,
8081 ExclusiveOrExpression, InclusiveOrExpression,
8082 ConditionalAndExpression, ConditionalOrExpression,
8083 ConditionalExpression, Assignment, LeftHandSide): Update
8084 calls to write_exp* and similars in order to use parser state.
8085 (parse_number): Ajust code to use parser state.
8086 (yylex): Likewise.
8087 (java_parse): New function.
8088 (push_variable): Add "struct parser_state" argument. Adjust
8089 code to user parser state.
8090 (push_fieldnames, push_qualified_expression_name,
8091 push_expression_name, insert_exp): Likewise.
8092 * jv-lang.h: Forward declare "struct parser_state".
8093 (java_parse): Add "struct parser_state" argument.
8094 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8095 parser state.
8096 (yyparse): Redefine macro to m2_parse_internal.
8097 (pstate): New variable.
8098 (type_exp, exp, fblock, variable, type): Update calls to
8099 write_exp* and similars to use parser state.
8100 (yylex): Likewise.
8101 (m2_parse): New function.
8102 * m2-lang.h: Forward declare "struct parser_state".
8103 (m2_parse): Add "struct parser_state" argument.
8104 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8105 * objc-lang.h: Forward declare "struct parser_state".
8106 (end_msglist): Add "struct parser_state" argument.
8107 * p-exp.y (parse_type): Rewrite macro to use parser state.
8108 (yyparse): Redefine macro to pascal_parse_internal.
8109 (pstate): New variable.
8110 (parse_number): Add "struct parser_state" argument.
8111 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8112 write_exp* and similars in order to use parser state.
8113 (parse_number, yylex): Adjust code to use parser state.
8114 (pascal_parse): New function.
8115 * p-lang.h: Forward declare "struct parser_state".
8116 (pascal_parse): Add "struct parser_state" argument.
8117 * go-exp.y (parse_type): Rewrite macro to use parser state.
8118 (yyparse): Redefine macro to go_parse_internal.
8119 (pstate): New variable.
8120 (parse_number): Add "struct parser_state" argument.
8121 (type_exp, exp1, exp, variable, type): Update calls to
8122 write_exp* and similars in order to use parser state.
8123 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8124 to use parser state.
8125 (go_parse): Likewise.
8126 * go-lang.h: Forward declare "struct parser_state".
8127 (go_parse): Add "struct parser_state" argument.
8128
8129 2014-03-27 Doug Evans <dje@google.com>
8130
8131 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8132
8133 2014-03-27 Doug Evans <dje@google.com>
8134
8135 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8136 Remove argument abbrev_section. All callers updated.
8137
8138 2014-03-27 Doug Evans <dje@google.com>
8139
8140 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8141 addr_base, ranges_base.
8142
8143 2014-03-26 Keith Seitz <keiths@redhat.com>
8144
8145 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8146 types, not VAR_DOMAIN.
8147
8148 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8149
8150 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8151 "ra" registers.
8152 * features/nios2-linux.c: Regenerated.
8153 * features/nios2.c: Regenerated.
8154
8155 2014-03-25 Pedro Alves <palves@redhat.com>
8156
8157 * cli/cli-script.c (script_from_file): Force the interpreter to
8158 sync mode.
8159
8160 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8161
8162 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8163 small stack allocation.
8164
8165 2014-03-24 Tristan Gingold <gingold@adacore.com>
8166
8167 * darwin-nat.c (exc_server): Remove unused prototype.
8168 (darwin_dump_message): Correctly display data on x86_64.
8169 (darwin_encode_reply): Fix style.
8170 Add comments and fix indentation.
8171
8172 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8173
8174 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8175
8176 2014-03-22 Doug Evans <xdje42@gmail.com>
8177
8178 * infcmd.c: Whitespace fixes.
8179 (interrupt_command): Merge two function comments into one.
8180
8181 2014-03-22 Doug Evans <xdje42@gmail.com>
8182
8183 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8184 All uses updated.
8185
8186 2014-03-22 Yao Qi <yao@codesourcery.com>
8187
8188 * remote.c (target_read_live_memory): Remove.
8189 (memory_xfer_live_readonly_partial): Rename it to
8190 remote_xfer_live_readonly_partial. Remove argument 'object'.
8191 All callers updated. Call remote_read_bytes_1
8192 instead of target_read_live_memory.
8193 * tracepoint.c (set_traceframe_number): Remove.
8194 (make_cleanup_restore_traceframe_number): Likewise .
8195 * tracepoint.h (set_traceframe_number): Remove declaration.
8196 (make_cleanup_restore_traceframe_number): Likewise.
8197
8198 2014-03-22 Yao Qi <yao@codesourcery.com>
8199
8200 * remote.c (remote_read_bytes): Move code on reading from the
8201 remote stub to ...
8202 (remote_read_bytes_1): ... here. New function.
8203
8204 2014-03-22 Yao Qi <yao@codesourcery.com>
8205
8206 * ctf.c (ctf_xfer_partial): Check the return value of
8207 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8208 return TARGET_XFER_UNAVAILABLE.
8209 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8210 * target.c (target_read_live_memory): Move it to remote.c.
8211 (memory_xfer_live_readonly_partial): Likewise.
8212 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8213 * remote.c (target_read_live_memory): Moved from target.c.
8214 (memory_xfer_live_readonly_partial): Likewise.
8215 (remote_read_bytes): Factored out from
8216 memory_xfer_partial_1.
8217
8218 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8219
8220 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8221 NULL pointer.
8222
8223 2014-03-21 Pedro Alves <palves@redhat.com>
8224
8225 * infrun.c (normal_stop): Extend comment.
8226
8227 2014-03-21 Hui Zhu <hui@codesourcery.com>
8228 Pedro Alves <palves@redhat.com>
8229
8230 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8231 static buffer.
8232 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8233 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8234 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8235
8236 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8237
8238 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8239 `z' formatted output modifier.
8240
8241 2014-03-20 Tom Tromey <tromey@redhat.com>
8242 Sergio Durigan Junior <sergiodj@redhat.com>
8243
8244 * probe.c (parse_probes): Turn assert into an ordinary error.
8245 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8246 exceptions when parsing probes. Rearrange the code for clarity.
8247
8248 2014-03-20 Tom Tromey <tromey@redhat.com>
8249
8250 PR gdb/14135
8251 * top.c (execute_command): Only dispatch events if the command
8252 started the target.
8253
8254 2014-03-20 Tom Tromey <tromey@redhat.com>
8255
8256 PR cli/15718
8257 * infcall.c: Include event-top.h.
8258 (run_inferior_call): Call async_disable_stdin if needed.
8259
8260 2014-03-20 Pedro Alves <palves@redhat.com>
8261
8262 * infrun.c (prepare_to_proceed): Delete.
8263 (thread_still_needs_step_over): New function.
8264 (find_thread_needs_step_over): New function.
8265 (proceed): If the current thread needs a step-over, set its
8266 steping_over_breakpoint flag. Adjust to use
8267 find_thread_needs_step_over instead of prepare_to_proceed.
8268 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8269 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8270 breakpoint.
8271 (switch_back_to_stepped_thread): Step over breakpoints of all
8272 threads not the stepping thread, before switching back to the
8273 stepping thread.
8274
8275 2014-03-20 Pedro Alves <palves@redhat.com>
8276
8277 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8278 extern.
8279 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8280 * infrun.c (saved_singlestep_ptid)
8281 (stepping_past_singlestep_breakpoint): Delete.
8282 (resume): Remove stepping_past_singlestep_breakpoint handling.
8283 (proceed): Store the prev_pc of the stepping thread too.
8284 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8285 singlestep_pc.
8286 (enum infwait_states): Delete infwait_thread_hop_state.
8287 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8288 field.
8289 (handle_inferior_event): Adjust.
8290 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8291 handling and the thread-hop code. Before removing single-step
8292 breakpoints, check whether the thread hit a single-step breakpoint
8293 of another thread. If it did, the trap is not a random signal.
8294 (switch_back_to_stepped_thread): If the event thread hit a
8295 single-step breakpoint, unblock it before switching to the
8296 stepping thread. Handle the case of the stepped thread having
8297 advanced already.
8298 (keep_going): Handle the case of the current thread moving past a
8299 single-step breakpoint.
8300
8301 2014-03-20 Pedro Alves <palves@redhat.com>
8302
8303 PR breakpoints/7143
8304 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8305 are being stepped over.
8306 (breakpoint_address_match): Make extern.
8307 * breakpoint.h (breakpoint_address_match): New declaration.
8308 * inferior.h (stepping_past_instruction_at): New declaration.
8309 * infrun.c (struct step_over_info): New type.
8310 (step_over_info): New global.
8311 (set_step_over_info, clear_step_over_info)
8312 (stepping_past_instruction_at): New functions.
8313 (handle_inferior_event): Clear the step-over info when
8314 trap_expected is cleared.
8315 (resume): Remove now stale comment.
8316 (clear_proceed_status): Clear step-over info.
8317 (proceed): Adjust step-over handling to set or clear the step-over
8318 info instead of removing all breakpoints.
8319 (handle_signal_stop): When setting up a thread-hop, don't remove
8320 breakpoints here.
8321 (stop_stepping): Clear step-over info.
8322 (keep_going): Adjust step-over handling to set or clear step-over
8323 info and then always inserting breakpoints, instead of removing
8324 all breakpoints when stepping over one.
8325
8326 2014-03-20 Pedro Alves <palves@redhat.com>
8327
8328 * infrun.c (previous_inferior_ptid): Adjust comment.
8329 (deferred_step_ptid): Delete.
8330 (infrun_thread_ptid_changed, prepare_to_proceed)
8331 (init_wait_for_inferior): Adjust.
8332 (handle_signal_stop): Delete deferred_step_ptid handling.
8333
8334 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8335
8336 PR gdb/15358
8337 * defs.h (sync_quit_force_run): New declaration.
8338 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8339 * event-top.c (async_sigterm_handler): New declaration.
8340 (async_sigterm_token): New variable.
8341 (async_init_signals): Create also async_sigterm_token.
8342 (async_sigterm_handler): New function.
8343 (sync_quit_force_run): New variable.
8344 (handle_sigterm): Replace quit_force call by other calls.
8345 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8346
8347 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8348
8349 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8350 offset into SPE pseudo registers.
8351
8352 2014-03-18 Pedro Alves <palves@redhat.com>
8353
8354 PR gdb/13860
8355 * inferior.h (print_stop_event): Declare.
8356 * infrun.c (print_stop_event): New, factored out from ...
8357 (normal_stop): ... this.
8358 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8359 of bpstat_print/print_stack_frame.
8360
8361 2014-03-17 Tom Tromey <tromey@redhat.com>
8362
8363 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8364
8365 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8366
8367 * ada-lang.c (decode_constrained_packed_array): Perform a
8368 minimal coercion for reference with coerce_ref instead of
8369 ada_coerce_ref.
8370
8371 2014-03-17 Tristan Gingold <gingold@adacore.com>
8372
8373 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8374 (darwin_solib_create_inferior_hook): Emit a warning if version
8375 is unhandled.
8376
8377 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8378
8379 * python/py-value.c (get_field_flag): Cast flag_name argument to
8380 PyObject_GetAttrString to support Python 2.4.
8381
8382 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8383
8384 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8385 (Global Maintainers): Remove Jan Kratochvil.
8386
8387 2014-03-14 Pedro Alves <palves@redhat.com>
8388
8389 * inferior.h (terminal_ours_for_output): Rename to ...
8390 (child_terminal_ours_for_output): ... this.
8391 (terminal_save_ours): Rename to ...
8392 (child_terminal_save_ours): ... this.
8393 (terminal_ours): Rename to ...
8394 (child_terminal_ours): ... this.
8395 (terminal_inferior): Rename to ...
8396 (child_terminal_inferior): ... this.
8397 (terminal_init_inferior): Rename to ...
8398 (child_terminal_init_inferior): ... this.
8399 (terminal_init_inferior_with_pgrp): Rename to ...
8400 (child_terminal_init_inferior_with_pgrp): ... this.
8401 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8402 (child_terminal_init_with_pgrp): ... this.
8403 (terminal_save_ours): Rename to ...
8404 (child_terminal_save_ours): ... this.
8405 (terminal_init_inferior): Rename to ...
8406 (child_terminal_init): ... this. Adjust.
8407 (terminal_inferior): Rename to ...
8408 (child_terminal_inferior): ... this.
8409 (terminal_ours_for_output): Rename to ...
8410 (child_terminal_ours_for_output): ... this. Adjust.
8411 (terminal_ours): Rename to ...
8412 (child_terminal_ours): ... this.
8413 (terminal_ours_1): Rename to ...
8414 (child_terminal_ours_1): ... this. Adjust.
8415 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8416 * windows-nat.c (do_initial_windows_stuff): Adjust.
8417 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8418 (gnu_terminal_init): ... this. Adjust.
8419 (gnu_target): Adjust.
8420 * inf-child.c (inf_child_target): Adjust.
8421
8422 2014-03-13 Doug Evans <xdje42@gmail.com>
8423
8424 PR guile/16612
8425 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8426 new eq?-hashtab.
8427
8428 2014-03-13 Doug Evans <xdje42@gmail.com>
8429
8430 * value.c (record_latest_value): Call release_value_or_incref
8431 instead of release_value.
8432
8433 2014-03-13 Pedro Alves <palves@redhat.com>
8434
8435 * procfs.c (procfs_target): Don't override to_shortname,
8436 to_longname or to_doc.
8437
8438 2014-03-13 Pedro Alves <palves@redhat.com>
8439
8440 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8441 Unix in user visible strings.
8442
8443 2014-03-12 Stan Shebs <stan@codesourcery.com>
8444
8445 * gdbtypes.h: Annotate comments for Doxygen, add a page
8446 block comment with some general info.
8447
8448 2014-03-12 Pedro Alves <palves@redhat.com>
8449
8450 * infcmd.c (prepare_execution_command): New function, factored out
8451 from several execution commands.
8452 (run_command_1, continue_command, step_1, jump_command)
8453 (signal_command, until_command, advance_command, finish_command)
8454 (attach_command): Use prepare_execution_command.
8455
8456 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8457
8458 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8459 (MAX_BPTS): Define.
8460 (MAX_WPTS): Define.
8461 (struct arm_linux_thread_points): Removed.
8462 (struct arm_linux_process_info): New.
8463 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8464 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8465 (arm_linux_find_breakpoints_by_tid): Removed.
8466 (struct arch_lwp_info): New.
8467 (arm_linux_find_process_pid): New functions.
8468 (arm_linux_add_process): New functions.
8469 (arm_linux_process_info_get): New functions.
8470 (arm_linux_forget_process): New function.
8471 (arm_linux_get_debug_reg_state): New function.
8472 (struct update_registers_data): New.
8473 (update_registers_callback): New function.
8474 (arm_linux_insert_hw_breakpoint1): Updated.
8475 (arm_linux_remove_hw_breakpoint1): Updated.
8476 (arm_linux_insert_hw_breakpoint): Updated.
8477 (arm_linux_remove_hw_breakpoint): Updated.
8478 (arm_linux_insert_watchpoint): Updated.
8479 (arm_linux_remove_watchpoint): Updated.
8480 (arm_linux_new_thread): Updated.
8481 (arm_linux_prepare_to_resume): New function.
8482 (arm_linux_new_fork): New function.
8483 (_initialize_arm_linux_nat): Updated.
8484
8485 2014-03-12 Pedro Alves <palves@redhat.com>
8486
8487 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8488
8489 2014-03-12 Tom Tromey <tromey@redhat.com>
8490
8491 * inf-child.c (return_zero): New function.
8492 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8493 * aix-thread.c (aix_thread_inferior_created): New function.
8494 (aix_thread_attach): Remove.
8495 (init_aix_thread_ops): Don't set to_attach.
8496 (_initialize_aix_thread): Register inferior_created observer.
8497 * corelow.c (init_core_ops): Don't set to_attach or
8498 to_create_inferior.
8499 * exec.c (init_exec_ops): Don't set to_attach or
8500 to_create_inferior.
8501 * infcmd.c (run_command_1): Use find_run_target. Make direct
8502 target calls.
8503 (attach_command): Use find_attach_target. Make direct target
8504 calls.
8505 * record-btrace.c (init_record_btrace_ops): Don't set
8506 to_create_inferior.
8507 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8508 Remove.
8509 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8510 set to_create_inferior.
8511 * target.c (complete_target_initialization): Add assertion.
8512 (target_create_inferior): Remove.
8513 (find_default_attach, find_default_create_inferior): Remove.
8514 (find_attach_target, find_run_target): New functions.
8515 (find_default_is_async_p, find_default_can_async_p)
8516 (target_supports_non_stop, target_attach): Remove.
8517 (init_dummy_target): Don't set to_create_inferior or
8518 to_supports_non_stop.
8519 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8520 TARGET_DEFAULT_FUNC.
8521 <to_create_inferior>: Add comment.
8522 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8523 TARGET_DEFAULT_RETURN.
8524 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8525 (find_attach_target, find_run_target): Declare.
8526 (target_create_inferior): Remove.
8527 (target_has_execution_1): Update comment.
8528 (target_supports_non_stop): Remove.
8529 * target-delegates.c: Rebuild.
8530
8531 2014-03-12 Pedro Alves <palves@redhat.com>
8532
8533 * inf-child.h: Update comment to not mention Unix.
8534
8535 2014-03-12 Pedro Alves <palves@redhat.com>
8536
8537 * inf-child.c: Update top comment to not mention Unix. Add
8538 generic comment describing how this target is meant to be used.
8539 (inf_child_post_attach, inf_child_post_startup_inferior)
8540 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8541 Unix in comment.
8542
8543 2014-03-12 Pedro Alves <palves@redhat.com>
8544
8545 * nto-procfs.c: Include inf-child.h.
8546 (procfs_ops): Delete global.
8547 (procfs_can_run): Delete method.
8548 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8549 target pointer instead of referencing procfs_ops.
8550 (procfs_prepare_to_store): Delete.
8551 (init_procfs_ops): Delete function.
8552 (procfs_target): New function, based on init_procfs_ops, but
8553 inherit inf_child_target.
8554 (_initialize_procfs): Use procfs_target.
8555
8556 2014-03-12 Pedro Alves <palves@redhat.com>
8557
8558 * windows-nat.c: Include inf-child.h.
8559 (windows_ops): Delete global.
8560 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8561 methods.
8562 (init_windows_ops): Delete function.
8563 (windows_target): New function, based on init_windows_ops, but
8564 inherit inf_child_target.
8565 (_initialize_windows_nat): Use windows_target. Install x86
8566 specific target methods here.
8567
8568 2014-03-10 Doug Evans <xdje42@gmail.com>
8569
8570 * guile/guile.c (call_initialize_gdb_module): New function.
8571 (initialize_guile): Replace call to scm_init_guile with call to
8572 scm_with_guile.
8573
8574 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8575
8576 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8577 in call to TYPE_CODE macro.
8578
8579 2014-03-10 Jerome Guitton <guitton@adacore.com>
8580
8581 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8582 Resolve tagged types to full view.
8583
8584 2014-03-10 Hui Zhu <hui@codesourcery.com>
8585
8586 * target.h (target_insert_breakpoint): Remove "hardware" from its
8587 comments.
8588
8589 2014-03-07 Doug Evans <dje@google.com>
8590
8591 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8592
8593 2014-03-07 Doug Evans <dje@google.com>
8594
8595 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8596 Remove unused local comp_dir_attr. Assert exactly one of
8597 stub_comp_unit_die, stub_comp_dir is non-NULL.
8598
8599 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8600
8601 * target.h (complete_target_initialization, add_target):
8602 Add comment.
8603
8604 2014-03-07 Pedro Alves <palves@redhat.com>
8605
8606 * go32-nat.c: Include inf-child.h.
8607 (go32_ops): Delete global.
8608 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8609 Delete methods.
8610 (go32_create_inferior): Push the passed in target pointer instead
8611 of referencing go32_ops.
8612 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8613 (go32_target): New function, based on init_go32_ops, but inherit
8614 inf_child_target.
8615 (_initialize_go32_nat): Use go32_target. Move parts of
8616 init_go32_ops here.
8617
8618 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8619
8620 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8621 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8622 SYMBOL_VALUE_ADDRESS.
8623 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8624
8625 2014-03-06 Yao Qi <yao@codesourcery.com>
8626
8627 * breakpoint.c (get_tracepoint_by_number): Remove argument
8628 optional_p. All callers updated. Adjust comments. Update
8629 output message.
8630 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8631
8632 2014-03-06 Yao Qi <yao@codesourcery.com>
8633
8634 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8635 early if get_number returns zero. Use 'p' instead of 'args'.
8636
8637 2014-03-06 Yao Qi <yao@codesourcery.com>
8638
8639 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8640 message.
8641
8642 2014-03-06 Yao Qi <yao@codesourcery.com>
8643
8644 PR breakpoints/16508
8645 * tracepoint.c (check_trace_running): New function.
8646 (trace_find_command): Move code to check_trace_running and
8647 call check_trace_running.
8648 (trace_find_pc_command): Likewise.
8649 (trace_find_tracepoint_command): Likewise.
8650 (trace_find_line_command): Likewise.
8651 (trace_find_range_command): Likewise.
8652 * tracepoint.h (check_trace_running): Likewise.
8653 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8654
8655 2014-03-06 Yao Qi <yao@codesourcery.com>
8656
8657 * target.h (struct target_ops) <to_traceframe_info>: Use
8658 TARGET_DEFAULT_NORETURN (tcomplain ()).
8659 * target-delegates.c: Regenerated.
8660
8661 2014-03-05 Pedro Alves <palves@redhat.com>
8662
8663 PR gdb/16575
8664 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8665 void. Update comment.
8666 (dcache_xfer_memory): Delete.
8667 (dcache_read_memory_partial): New, based on the read bits of
8668 dcache_xfer_memory.
8669 (dcache_update): Add status parameter. Use ULONGEST for len, and
8670 adjust. Discard cache lines if the reason for the update was
8671 error.
8672 * dcache.h (dcache_xfer_memory): Delete declaration.
8673 (dcache_read_memory_partial): New declaration.
8674 (dcache_update): Update prototype.
8675 * target.c (raw_memory_xfer_partial): Update the dcache here.
8676 (memory_xfer_partial_1): Don't handle dcache writes here.
8677
8678 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8679
8680 * remote-sim.c (gdbsim_load): Add const to prog.
8681
8682 2014-03-03 Tom Tromey <tromey@redhat.com>
8683
8684 * elfread.c (probe_key): Change to bfd_data.
8685 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8686 now per-BFD, not per-objfile.
8687 * stap-probe.c (stap_probe_destroy): Update comment.
8688 (handle_stap_probe): Allocate on the per-BFD obstack.
8689
8690 2014-03-03 Tom Tromey <tromey@redhat.com>
8691
8692 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8693 * breakpoint.c (create_longjmp_master_breakpoint): Use
8694 get_probe_address.
8695 (add_location_to_breakpoint, bkpt_probe_insert_location)
8696 (bkpt_probe_remove_location): Update.
8697 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8698 * elfread.c (elf_symfile_relocate_probe): Remove.
8699 (elf_probe_fns): Update.
8700 (insert_exception_resume_breakpoint): Change type of "probe"
8701 parameter to bound_probe.
8702 (check_exception_resume): Update.
8703 * objfiles.c (objfile_relocate1): Don't relocate probes.
8704 * probe.c (bound_probe_s): New typedef.
8705 (parse_probes): Use get_probe_address. Set sal's objfile.
8706 (find_probe_by_pc): Return a bound_probe.
8707 (collect_probes): Return a VEC(bound_probe_s).
8708 (compare_probes): Update.
8709 (gen_ui_out_table_header_info): Change type of "probes"
8710 parameter. Update.
8711 (info_probes_for_ops): Update.
8712 (get_probe_address): New function.
8713 (probe_safe_evaluate_at_pc): Update.
8714 * probe.h (struct probe_ops) <get_probe_address>: New field.
8715 <set_semaphore, clear_semaphore>: Add objfile parameter.
8716 (struct probe) <objfile>: Remove field.
8717 <arch>: New field.
8718 <address>: Update comment.
8719 (struct bound_probe): New.
8720 (find_probe_by_pc): Return a bound_probe.
8721 (get_probe_address): Declare.
8722 * solib-svr4.c (struct probe_and_action) <address>: New field.
8723 (hash_probe_and_action, equal_probe_and_action): Update.
8724 (register_solib_event_probe): Add address parameter.
8725 (solib_event_probe_at): Update.
8726 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8727 get_probe_address.
8728 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8729 (stap_get_probe_address): New function.
8730 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8731 (compile_probe_arg): Update.
8732 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8733 address.
8734 (handle_stap_probe): Don't relocate the probe.
8735 (stap_relocate): Remove.
8736 (stap_gen_info_probes_table_values): Update.
8737 (stap_probe_ops): Remove stap_relocate.
8738 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8739 (debug_sym_probe_fns): Update.
8740 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8741 * symtab.c (init_sal): Use memset.
8742 * symtab.h (struct symtab_and_line) <objfile>: New field.
8743 * tracepoint.c (start_tracing, stop_tracing): Update.
8744
8745 2014-03-03 Tom Tromey <tromey@redhat.com>
8746
8747 * probe.h (parse_probes, find_probe_by_pc)
8748 (find_probes_in_objfile): Fix comments.
8749
8750 2014-03-02 Doug Evans <xdje42@gmail.com>
8751
8752 * infrun.c (handle_signal_stop): Replace test for
8753 TARGET_WAITKIND_STOPPED with an assert.
8754
8755 2014-03-02 Doug Evans <xdje42@gmail.com>
8756
8757 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8758
8759 2014-03-02 Doug Evans <xdje42@gmail.com>
8760
8761 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8762
8763 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8764
8765 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8766
8767 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8768
8769 * i386obsd-nat.c: Include "obsd-nat.h".
8770 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8771 add_target.
8772 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8773
8774 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8775
8776 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8777
8778 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8779
8780 * mips64obsd-nat.c: Include "obsd-nath".
8781 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8782 add_target
8783 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8784
8785 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8786
8787 * amd64obsd-nat.c: Include "obsd-nat,h.
8788 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8789 add_target.
8790 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8791
8792 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8793
8794 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8795 (find_overload_match): Update call to find_oload_champ.
8796 (find_oload_champ_namespace_loop): Likewise
8797
8798 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8799
8800 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8801
8802 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8803 * config/sparc/obsd64.mh: New file.
8804 * sparc64obsd-nat.c: New file.
8805
8806 * obsd-nat.h: New file.
8807 * obsd-nat.c: New file.
8808 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8809 (ALLDEPFILES): Add obsd-nat.c.
8810
8811 2014-02-28 Tom Tromey <tromey@redhat.com>
8812
8813 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8814 * cli-out.h (cli_ui_out_impl): Now const.
8815 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8816 * ui-out.c (struct ui_out) <impl>: Now const.
8817 (default_ui_out_impl): Now const.
8818 (ui_out_new): Make 'impl' parameter const.
8819 * ui-out.h (ui_out_new): Update.
8820
8821 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8822
8823 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8824
8825 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8826
8827 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8828
8829 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8830
8831 Additional PR 8882 fix.
8832 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8833
8834 2014-02-27 Pedro Alves <palves@redhat.com>
8835
8836 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8837 isn't set.
8838
8839 2014-02-27 Pedro Alves <palves@redhat.com>
8840
8841 PR 12702
8842 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8843 * nat/linux-waitpid.c: Include string.h.
8844 (status_to_str): Moved here and made extern.
8845 * nat/linux-waitpid.h (status_to_str): New declaration.
8846
8847 2014-02-27 Hui Zhu <hui@codesourcery.com>
8848
8849 PR 12702
8850 * infrun.c (ptid_match): Move ...
8851 * common/ptid.c (ptid_match): ... here.
8852 * inferior.h (ptid_match): Move ...
8853 * common/ptid.h (ptid_match): ... here.
8854
8855 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8856
8857 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8858 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8859 gdb_target_obs.
8860
8861 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8862
8863 * obsd-tdep.c (obsd_auxv_parse): New function.
8864 (obsd_init_abi): Set auxv_parse.
8865
8866 * gdbarch.sh (auxv_parse): New.
8867 * gdbarch.h: Regenerated.
8868 * gdbarch.c: Regenerated.
8869 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8870
8871 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8872
8873 * guile/scm-value.c (gdbscm_history_append_x): New function.
8874 (value_functions): Add it.
8875
8876 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8877
8878 * dwarf2read.c (attr_value_as_address): New function.
8879 (dwarf2_find_base_address, read_call_site_scope): Use
8880 attr_value_as_address in place of DW_ADDR.
8881 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8882 the low and high addresses. Slight rework of the handling
8883 of the high pc being a constant form, and limit it to
8884 DWARF verson 4 or higher.
8885 (dwarf2_record_block_ranges): Likewise.
8886 (read_partial_die): Likewise.
8887 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8888
8889 2014-02-26 Tom Tromey <tromey@redhat.com>
8890
8891 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8892
8893 2014-02-26 Tom Tromey <tromey@redhat.com>
8894
8895 * elfread.c (elf_read_minimal_symbols): Return early if
8896 minimal symbols have already been read. Add "ei" parameter.
8897 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8898 * minsyms.c (prim_record_minimal_symbol_full): Update.
8899 * objfiles.h (struct objstats) <n_minsyms>: Move...
8900 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8901 * symmisc.c (print_objfile_statistics): Update.
8902
8903 2014-02-26 Tom Tromey <tromey@redhat.com>
8904
8905 * elfread.c (elf_read_minimal_symbols): New function, from
8906 elf_symfile_read.
8907 (elf_symfile_read): Call it.
8908
8909 2014-02-26 Tom Tromey <tromey@redhat.com>
8910
8911 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8912 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8913 (lookup_minimal_symbol_solib_trampoline)
8914 (lookup_minimal_symbol_by_pc_section_1)
8915 (lookup_minimal_symbol_and_objfile): Update.
8916 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8917 Don't allocate a minimal symbol if minsyms have already been read.
8918 (build_minimal_symbol_hash_tables): Update.
8919 (install_minimal_symbols): Do nothing if minsyms already read.
8920 Use the per-BFD obstack.
8921 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8922 * objfiles.c (allocate_objfile): Call
8923 terminate_minimal_symbol_table later.
8924 (have_minimal_symbols): Update.
8925 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8926 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8927 Move from struct objfile.
8928 <minsyms_read>: New field.
8929 (struct objfile) <msymbols, minimal_symbol_count,
8930 msymbol_hash, msymbol_demangled_hash>: Move.
8931 (ALL_OBJFILE_MSYMBOLS): Update.
8932 * symfile.c (read_symbols): Set minsyms_read.
8933 (reread_symbols): Update.
8934 * symmisc.c (dump_objfile, dump_msymbols): Update.
8935
8936 2014-02-26 Tom Tromey <tromey@redhat.com>
8937
8938 * minsyms.c (msymbols_sort): Remove.
8939 * minsyms.h (msymbols_sort): Remove.
8940 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8941 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8942 * elfread.c (elf_symtab_read): Don't add section offsets.
8943 * xcoffread.c (record_minimal_symbol): Don't add section offset
8944 to minimal symbol address.
8945 * somread.c (text_offset, data_offset): Remove.
8946 (som_symtab_read): Don't add section offsets to minimal symbol
8947 addresses.
8948 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8949 Don't add section offsets to minimal symbols.
8950 * coffread.c (coff_symtab_read): Don't add section offsets
8951 to minimal symbol addresses.
8952 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8953 to minimal symbol addresses.
8954 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8955 section offset to minimal symbol addresses.
8956 * mdebugread.c (parse_partial_symbols): Don't add section
8957 offset to minimal symbol addresses.
8958 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8959 offset to minimal symbol addresses.
8960
8961 2014-02-26 Tom Tromey <tromey@redhat.com>
8962
8963 * ada-lang.c (ada_main_name): Update.
8964 (ada_add_standard_exceptions): Update.
8965 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8966 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8967 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8968 * auxv.c (ld_so_xfer_auxv): Update.
8969 * avr-tdep.c (avr_scan_prologue): Update.
8970 * ax-gdb.c (gen_var_ref): Update.
8971 * blockframe.c (get_pc_function_start)
8972 (find_pc_partial_function_gnu_ifunc): Update.
8973 * breakpoint.c (create_overlay_event_breakpoint)
8974 (create_longjmp_master_breakpoint)
8975 (create_std_terminate_master_breakpoint)
8976 (create_exception_master_breakpoint): Update.
8977 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8978 * c-valprint.c (c_val_print): Update.
8979 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8980 * common/agent.c (agent_look_up_symbols): Update.
8981 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8982 * dwarf2loc.c (call_site_to_target_addr): Update.
8983 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8984 * elfread.c (elf_gnu_ifunc_record_cache)
8985 (elf_gnu_ifunc_resolve_by_got): Update.
8986 * findvar.c (default_read_var_value): Update.
8987 * frame.c (inside_main_func): Update.
8988 * frv-tdep.c (frv_frame_this_id): Update.
8989 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8990 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8991 Update.
8992 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8993 (hppa_hpux_find_dummy_bpaddr): Update.
8994 * hppa-tdep.c (hppa_symbol_address): Update.
8995 * infcmd.c (until_next_command): Update.
8996 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8997 Update.
8998 * linespec.c (minsym_found, add_minsym): Update.
8999 * linux-nat.c (get_signo): Update.
9000 * linux-thread-db.c (inferior_has_bug): Update.
9001 * m32c-tdep.c (m32c_return_value)
9002 (m32c_m16c_address_to_pointer): Update.
9003 * m32r-tdep.c (m32r_frame_this_id): Update.
9004 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9005 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9006 * maint.c (maintenance_translate_address): Update.
9007 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9008 (frob_address): New function.
9009 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9010 frob_address. Rename parameter to "pc_in".
9011 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9012 addresses.
9013 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9014 Update.
9015 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9016 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9017 * objc-lang.c (find_objc_msgsend): Update.
9018 * objfiles.c (objfile_relocate1): Update.
9019 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9020 * p-valprint.c (pascal_val_print): Update.
9021 * parse.c (write_exp_msymbol): Update.
9022 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9023 (ppc_elfv2_skip_entrypoint): Update.
9024 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9025 * printcmd.c (build_address_symbolic, msym_info)
9026 (address_info): Update.
9027 * proc-service.c (ps_pglobal_lookup): Update.
9028 * psymtab.c (find_pc_sect_psymtab_closer)
9029 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9030 Change msymbol parameter to bound_minimal_symbol.
9031 * ravenscar-thread.c (get_running_thread_id): Update.
9032 * remote.c (remote_check_symbols): Update.
9033 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9034 address.
9035 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9036 * solib-dsbt.c (lm_base): Update.
9037 * solib-frv.c (lm_base, main_got): Update.
9038 * solib-irix.c (locate_base): Update.
9039 * solib-som.c (som_solib_create_inferior_hook)
9040 (link_map_start): Update.
9041 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9042 * solib-svr4.c (elf_locate_base, enable_break): Update.
9043 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9044 (flush_ea_cache): Update.
9045 * stabsread.c (define_symbol, scan_file_globals): Update.
9046 * stack.c (find_frame_funname): Update.
9047 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9048 (debug_qf_find_pc_sect_symtab): Update.
9049 * symfile.c (simple_read_overlay_table)
9050 (simple_overlay_update): Update.
9051 * symfile.h (struct quick_symbol_functions)
9052 <find_pc_sect_symtab>: Change type of msymbol to
9053 bound_minimal_symbol.
9054 * symmisc.c (dump_msymbols): Update.
9055 * symtab.c (find_pc_sect_symtab_via_partial)
9056 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9057 (search_symbols, print_msymbol_info): Update.
9058 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9059 (MSYMBOL_VALUE_ADDRESS): Redefine.
9060 (BMSYMBOL_VALUE_ADDRESS): New macro.
9061 * tracepoint.c (scope_info): Update.
9062 * tui/tui-disasm.c (tui_find_disassembly_address)
9063 (tui_get_begin_asm_address): Update.
9064 * valops.c (find_function_in_inferior): Update.
9065 * value.c (value_static_field, value_fn_field): Update.
9066
9067 2014-02-26 Tom Tromey <tromey@redhat.com>
9068
9069 * ada-lang.c (ada_update_initial_language): Update.
9070 (ada_main_name, ada_has_this_exception_support): Update.
9071 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9072 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9073 * arm-tdep.c (arm_skip_stub): Update.
9074 * auxv.c (ld_so_xfer_auxv): Update.
9075 * avr-tdep.c (avr_scan_prologue): Update.
9076 * ax-gdb.c (gen_var_ref): Update.
9077 * breakpoint.c (struct breakpoint_objfile_data)
9078 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9079 type to bound_minimal_symbol.
9080 (create_overlay_event_breakpoint)
9081 (create_longjmp_master_breakpoint)
9082 (create_std_terminate_master_breakpoint)
9083 (create_exception_master_breakpoint): Update.
9084 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9085 * c-exp.y (classify_name): Update.
9086 * coffread.c (coff_symfile_read): Update.
9087 * common/agent.c (agent_look_up_symbols): Update.
9088 * d-lang.c (d_main_name): Update.
9089 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9090 * dec-thread.c (enable_dec_thread): Update.
9091 * dwarf2loc.c (call_site_to_target_addr): Update.
9092 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9093 * eval.c (evaluate_subexp_standard): Update.
9094 * findvar.c (struct minsym_lookup_data) <result>: Change type
9095 to bound_minimal_symbol.
9096 <objfile>: Remove.
9097 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9098 * frame.c (inside_main_func): Update.
9099 * frv-tdep.c (frv_frame_this_id): Update.
9100 * gcore.c (call_target_sbrk): Update.
9101 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9102 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9103 Update.
9104 * go-lang.c (go_main_name): Update.
9105 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9106 (hppa_hpux_find_import_stub_for_addr): Update.
9107 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9108 Update. Change return type.
9109 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9110 type.
9111 * jit.c (jit_breakpoint_re_set_internal): Update.
9112 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9113 Update.
9114 * linux-nat.c (get_signo): Update.
9115 * linux-thread-db.c (inferior_has_bug): Update
9116 * m32c-tdep.c (m32c_return_value)
9117 (m32c_m16c_address_to_pointer): Update.
9118 * m32r-tdep.c (m32r_frame_this_id): Update.
9119 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9120 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9121 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9122 lookup_minimal_symbol. Change return type.
9123 (lookup_minimal_symbol): Remove.
9124 (lookup_bound_minimal_symbol): Update.
9125 (lookup_minimal_symbol_text): Change return type.
9126 (lookup_minimal_symbol_solib_trampoline): Change return type.
9127 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9128 (lookup_minimal_symbol_solib_trampoline): Change return type.
9129 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9130 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9131 (value_nsstring, find_imps): Update.
9132 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9133 * p-lang.c (pascal_main_name): Update.
9134 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9135 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9136 * proc-service.c (ps_pglobal_lookup): Update.
9137 * ravenscar-thread.c (get_running_thread_msymbol): Change
9138 return type.
9139 (has_ravenscar_runtime, get_running_thread_id): Update.
9140 * remote.c (remote_check_symbols): Update.
9141 * sol-thread.c (ps_pglobal_lookup): Update.
9142 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9143 * solib-dsbt.c (lm_base): Update.
9144 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9145 Update.
9146 * solib-irix.c (locate_base): Update.
9147 * solib-som.c (som_solib_create_inferior_hook)
9148 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9149 Update.
9150 * solib-spu.c (spu_enable_break): Update.
9151 * solib-svr4.c (elf_locate_base, enable_break): Update.
9152 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9153 (flush_ea_cache): Update.
9154 * stabsread.c (define_symbol): Update.
9155 * symfile.c (simple_read_overlay_table): Update.
9156 * symtab.c (find_pc_sect_line): Update.
9157 * tracepoint.c (scope_info): Update.
9158 * tui-disasm.c (tui_get_begin_asm_address): Update.
9159 * value.c (value_static_field): Update.
9160
9161 2014-02-26 Tom Tromey <tromey@redhat.com>
9162
9163 * minsyms.c (prim_record_minimal_symbol_full): Use
9164 SET_MSYMBOL_VALUE_ADDRESS.
9165 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9166 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9167 SET_MSYMBOL_VALUE_ADDRESS.
9168 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9169 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9170
9171 2014-02-26 Tom Tromey <tromey@redhat.com>
9172
9173 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9174 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9175 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9176 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9177 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9178 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9179 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9180 * ada-lang.c (ada_main_name): Update.
9181 (ada_lookup_simple_minsym): Update.
9182 (ada_make_symbol_completion_list): Update.
9183 (ada_add_standard_exceptions): Update.
9184 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9185 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9186 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9187 * arm-tdep.c (skip_prologue_function): Update.
9188 (arm_skip_stack_protector, arm_skip_stub): Update.
9189 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9190 (arm_wince_skip_main_prologue): Update.
9191 * auxv.c (ld_so_xfer_auxv): Update.
9192 * avr-tdep.c (avr_scan_prologue): Update.
9193 * ax-gdb.c (gen_var_ref): Update.
9194 * block.c (call_site_for_pc): Update.
9195 * blockframe.c (get_pc_function_start): Update.
9196 (find_pc_partial_function_gnu_ifunc): Update.
9197 * breakpoint.c (create_overlay_event_breakpoint): Update.
9198 (create_longjmp_master_breakpoint): Update.
9199 (create_std_terminate_master_breakpoint): Update.
9200 (create_exception_master_breakpoint): Update.
9201 (resolve_sal_pc): Update.
9202 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9203 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9204 Update.
9205 * c-valprint.c (c_val_print): Update.
9206 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9207 * coffread.c (coff_symfile_read): Update.
9208 * common/agent.c (agent_look_up_symbols): Update.
9209 * dbxread.c (find_stab_function_addr): Update.
9210 (end_psymtab): Update.
9211 * dwarf2loc.c (call_site_to_target_addr): Update.
9212 (func_verify_no_selftailcall): Update.
9213 (tailcall_dump): Update.
9214 (call_site_find_chain_1): Update.
9215 (dwarf_expr_reg_to_entry_parameter): Update.
9216 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9217 (elf_gnu_ifunc_resolve_by_got): Update.
9218 * f-valprint.c (info_common_command): Update.
9219 * findvar.c (read_var_value): Update.
9220 * frame.c (get_prev_frame_1): Update.
9221 (inside_main_func): Update.
9222 * frv-tdep.c (frv_skip_main_prologue): Update.
9223 (frv_frame_this_id): Update.
9224 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9225 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9226 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9227 (gnuv3_skip_trampoline): Update.
9228 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9229 (hppa64_hpux_in_solib_call_trampoline): Update.
9230 (hppa_hpux_skip_trampoline_code): Update.
9231 (hppa64_hpux_search_dummy_call_sequence): Update.
9232 (hppa_hpux_find_import_stub_for_addr): Update.
9233 (hppa_hpux_find_dummy_bpaddr): Update.
9234 * hppa-tdep.c (hppa_symbol_address)
9235 (hppa_lookup_stub_minimal_symbol): Update.
9236 * i386-tdep.c (i386_skip_main_prologue): Update.
9237 (i386_pe_skip_trampoline_code): Update.
9238 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9239 * infcall.c (get_function_name): Update.
9240 * infcmd.c (until_next_command): Update.
9241 * jit.c (jit_breakpoint_re_set_internal): Update.
9242 (jit_inferior_init): Update.
9243 * linespec.c (minsym_found): Update.
9244 (add_minsym): Update.
9245 * linux-fork.c (info_checkpoints_command): Update.
9246 * linux-nat.c (get_signo): Update.
9247 * linux-thread-db.c (inferior_has_bug): Update.
9248 * m32c-tdep.c (m32c_return_value): Update.
9249 (m32c_m16c_address_to_pointer): Update.
9250 (m32c_m16c_pointer_to_address): Update.
9251 * m32r-tdep.c (m32r_frame_this_id): Update.
9252 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9253 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9254 * maint.c (maintenance_translate_address): Update.
9255 * minsyms.c (add_minsym_to_hash_table): Update.
9256 (add_minsym_to_demangled_hash_table): Update.
9257 (msymbol_objfile): Update.
9258 (lookup_minimal_symbol): Update.
9259 (iterate_over_minimal_symbols): Update.
9260 (lookup_minimal_symbol_text): Update.
9261 (lookup_minimal_symbol_by_pc_name): Update.
9262 (lookup_minimal_symbol_solib_trampoline): Update.
9263 (lookup_minimal_symbol_by_pc_section_1): Update.
9264 (lookup_minimal_symbol_and_objfile): Update.
9265 (prim_record_minimal_symbol_full): Update.
9266 (compare_minimal_symbols): Update.
9267 (compact_minimal_symbols): Update.
9268 (build_minimal_symbol_hash_tables): Update.
9269 (install_minimal_symbols): Update.
9270 (terminate_minimal_symbol_table): Update.
9271 (find_solib_trampoline_target): Update.
9272 (minimal_symbol_upper_bound): Update.
9273 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9274 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9275 (mips_skip_pic_trampoline_code): Update.
9276 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9277 * objc-lang.c (selectors_info): Update.
9278 (classes_info): Update.
9279 (find_methods): Update.
9280 (find_imps): Update.
9281 (find_objc_msgsend): Update.
9282 * objfiles.c (objfile_relocate1): Update.
9283 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9284 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9285 * p-valprint.c (pascal_val_print): Update.
9286 * parse.c (write_exp_msymbol): Update.
9287 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9288 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9289 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9290 * printcmd.c (build_address_symbolic): Update.
9291 (sym_info): Update.
9292 (address_info): Update.
9293 * proc-service.c (ps_pglobal_lookup): Update.
9294 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9295 (find_pc_sect_psymtab): Update.
9296 * python/py-framefilter.c (py_print_frame): Update.
9297 * ravenscar-thread.c (get_running_thread_id): Update.
9298 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9299 Update.
9300 * remote.c (remote_check_symbols): Update.
9301 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9302 (rs6000_skip_trampoline_code): Update.
9303 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9304 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9305 * solib-dsbt.c (lm_base): Update.
9306 * solib-frv.c (lm_base): Update.
9307 (main_got): Update.
9308 * solib-irix.c (locate_base): Update.
9309 * solib-som.c (som_solib_create_inferior_hook): Update.
9310 (som_solib_desire_dynamic_linker_symbols): Update.
9311 (link_map_start): Update.
9312 * solib-spu.c (spu_enable_break): Update.
9313 (ocl_enable_break): Update.
9314 * solib-svr4.c (elf_locate_base): Update.
9315 (enable_break): Update.
9316 * spu-tdep.c (spu_get_overlay_table): Update.
9317 (spu_catch_start): Update.
9318 (flush_ea_cache): Update.
9319 * stabsread.c (define_symbol): Update.
9320 (scan_file_globals): Update.
9321 * stack.c (find_frame_funname): Update.
9322 (frame_info): Update.
9323 * symfile.c (simple_read_overlay_table): Update.
9324 (simple_overlay_update): Update.
9325 * symmisc.c (dump_msymbols): Update.
9326 * symtab.c (fixup_section): Update.
9327 (find_pc_sect_line): Update.
9328 (skip_prologue_sal): Update.
9329 (search_symbols): Update.
9330 (print_msymbol_info): Update.
9331 (rbreak_command): Update.
9332 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9333 (completion_list_objc_symbol): Update.
9334 (default_make_symbol_completion_list_break_on): Update.
9335 * tracepoint.c (scope_info): Update.
9336 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9337 (tui_get_begin_asm_address): Update.
9338 * valops.c (find_function_in_inferior): Update.
9339 * value.c (value_static_field): Update.
9340 (value_fn_field): Update.
9341
9342 2014-02-26 Tom Tromey <tromey@redhat.com>
9343
9344 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9345 bound minimal symbols. Move code that knows about minsym
9346 table layout...
9347 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9348 function.
9349 * minsyms.h (minimal_symbol_upper_bound): Declare.
9350 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9351 minimal_symbol_upper_bound.
9352
9353 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9354
9355 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9356 Use the type's name if its basic type does not have a tag.
9357
9358 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9359
9360 * dwarf2read.c (read_subrange_type): Add comment.
9361
9362 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9363
9364 * dwarf2read.c (update_enumeration_type_from_children): New
9365 function, mostly extracted from process_structure_scope.
9366 (read_enumeration_type): Call update_enumeration_type_from_children.
9367 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9368 and flag_flag_enum fields.
9369
9370 2014-02-26 Pedro Alves <palves@redhat.com>
9371
9372 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9373 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9374 to_xfer_partial method.
9375
9376 2014-02-26 Pedro Alves <palves@redhat.com>
9377
9378 * target.c (complete_target_initialization): Don't install
9379 default_xfer_partial as to_xfer_partial hook.
9380 (nomemory): Delete.
9381 (update_current_target): Don't INHERIT nor de_fault
9382 deprecated_xfer_memory. Delete de_fault macro.
9383 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9384 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9385 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9386 field.
9387
9388 2014-02-26 Pedro Alves <palves@redhat.com>
9389
9390 * go32-nat.c (my_write_child): New function.
9391 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9392 (go32_xfer_partial): New function.
9393 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9394 Instead install a to_xfer_partial hook.
9395
9396 2014-02-26 Pedro Alves <palves@redhat.com>
9397
9398 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9399 to_xfer_partial helper. Rewrite.
9400 (procfs_xfer_partial): New function.
9401 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9402 Install a to_xfer_partial hook.
9403
9404 2014-02-26 Pedro Alves <palves@redhat.com>
9405
9406 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9407 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9408 (m32r_xfer_partial): New function.
9409 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9410 Install a to_xfer_partial hook.
9411
9412 2014-02-26 Pedro Alves <palves@redhat.com>
9413
9414 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9415 helper.
9416 (mips_xfer_partial): New function.
9417 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9418 hook. Install a to_xfer_partial hook.
9419
9420 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9421
9422 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9423 * gdbtypes.c (create_array_type_with_stride): New function,
9424 renaming create_array_type, but with an added parameter
9425 called "bit_stride".
9426 (create_array_type): Re-implement using
9427 create_array_type_with_stride.
9428 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9429 and DW_AT_bit_stride attributes.
9430
9431 2014-02-26 Pedro Alves <palves@redhat.com>
9432
9433 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9434 task-specific breakpoints.
9435
9436 2014-02-25 Pedro Alves <palves@redhat.com>
9437
9438 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9439 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9440
9441 2014-02-25 Stan Shebs <stan@codesourcery.com>
9442
9443 * defs.h: Annotate comments for Doxygen.
9444
9445 2014-02-25 Tom Tromey <tromey@redhat.com>
9446
9447 * target.h (target_ignore): Don't declare.
9448 * target.c (target_ignore): Remove.
9449
9450 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9451
9452 PR gdb/16626
9453 * auto-load.c (auto_load_objfile_script_1): Change filename to
9454 debugfile.
9455
9456 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9457
9458 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9459 documentation. Adjust prototype to match the target_ops
9460 to_xfer_partial method. Adjust implementation accordingly.
9461
9462 2014-02-25 Hui Zhu <hui@codesourcery.com>
9463
9464 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9465 to_traceframe_info.
9466
9467 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9468
9469 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9470 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9471 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9472 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9473 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9474 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9475 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9476 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9477 New constants.
9478 (rl78_register_type): Use a data pointer type for SP and
9479 new pseudo registers mentioned above. Use a 16 bit integer
9480 type for all other register pairs.
9481 (rl78_register_name, rl78_g10_register_name): Update for
9482 new pseudo registers.
9483 (rl78_pseudo_register_read): Likewise.
9484 (rl78_pseudo_register_write): Likewise.
9485 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9486 to the newly added pseudo registers.
9487
9488 2014-02-24 Doug Evans <dje@google.com>
9489
9490 * value.c (record_latest_value): Fix comment.
9491 * printcmd.c (print_command_1): Remove code to handle -1 return from
9492 record_latest_value.
9493
9494 2014-02-24 Pedro Alves <palves@redhat.com>
9495
9496 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9497 deprecated_xfer_memory hook.
9498 (procfs_xfer_partial): Call procfs_xfer_memory instead
9499 of the deprecated_xfer_memory target hook.
9500 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9501 helper.
9502
9503 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9504
9505 * windows-nat.c (windows_xfer_shared_libraries): Return
9506 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9507 requested object is TARGET_OBJECT_LIBRARIES.
9508
9509 2014-02-24 Yao Qi <yao@codesourcery.com>
9510
9511 * target.h (enum target_xfer_status)
9512 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9513 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9514 explicitly. New.
9515 * corefile.c (memory_error_message): User updated.
9516 * exec.c (section_table_read_available_memory): Likewise.
9517 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9518 * target.c (target_xfer_status_to_string): Likewise.
9519 (raw_memory_xfer_partial): Likewise.
9520 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9521 * valops.c (read_value_memory): Likewise.
9522 * exec.h: Update comments.
9523
9524 2014-02-24 Yao Qi <yao@codesourcery.com>
9525
9526 * target.c (target_xfer_status_to_string): Rename argument err
9527 to status.
9528 * target.h (target_xfer_status_to_string): Update declaration.
9529 Replace target_xfer_error_to_string with
9530 target_xfer_status_to_string in comment.
9531
9532 2014-02-24 Yao Qi <yao@codesourcery.com>
9533
9534 * mips-linux-nat.c (super_close): Update its type.
9535 (mips_linux_close): Pass 'self' to super_close.
9536
9537 2014-02-24 Yao Qi <yao@codesourcery.com>
9538
9539 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9540 * corefile.c (read_memory): Adjusted.
9541 * target.c (target_write_with_progress): Adjusted.
9542
9543 2014-02-23 Yao Qi <yao@codesourcery.com>
9544
9545 Revert two patches:
9546
9547 2013-10-25 Yao Qi <yao@codesourcery.com>
9548
9549 * remote.c (remote_traceframe_info): Return early if
9550 traceframe is not selected.
9551
9552 2013-07-19 Yao Qi <yao@codesourcery.com>
9553
9554 * target.c (update_current_target): Change the default action
9555 of 'to_traceframe_info' from tcomplain to return_zero.
9556 * target.h (struct target_ops) <to_traceframe_info>: Add more
9557 comments.
9558
9559 2014-02-23 Yao Qi <yao@codesourcery.com>
9560
9561 * valops.c (read_value_memory): Rewrite it. Call
9562 target_xfer_partial in a loop.
9563 * exec.h (section_table_available_memory): Remove declaration.
9564 Move comments to ...
9565 * exec.c (section_table_available_memory): ... here. Make it
9566 static.
9567
9568 2014-02-23 Yao Qi <yao@codesourcery.com>
9569
9570 * exec.c (section_table_read_available_memory): New function.
9571 * exec.h (section_table_read_available_memory): Declare.
9572 * ctf.c (ctf_xfer_partial): Call
9573 section_table_read_available_memory.
9574 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9575
9576 2014-02-23 Yao Qi <yao@codesourcery.com>
9577
9578 * ctf.c (ctf_xfer_partial): Move code to ...
9579 * exec.c (exec_read_partial_read_only): ... it. New function.
9580 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9581 * tracefile.c: Include "exec.h".
9582 * exec.h (exec_read_partial_read_only): Declare.
9583
9584 2014-02-23 Yao Qi <yao@codesourcery.com>
9585
9586 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9587 (tfile_has_memory): Remove.
9588 (init_tfile_ops): Don't set fields to_has_all_memory and
9589 to_has_memory of tfile_ops.
9590 * tracefile.c (tracefile_has_all_memory): New function.
9591 (tracefile_has_memory): New function.
9592 (init_tracefile_ops): Initialize fields to_has_all_memory and
9593 to_has_memory of 'ops'.
9594
9595 2014-02-23 Yao Qi <yao@codesourcery.com>
9596
9597 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9598 (ctf_thread_alive, ctf_get_trace_status): Remove.
9599 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9600 init_tracefile_ops.
9601 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9602 (tfile_has_stack, tfile_has_registers): Remove.
9603 (tfile_thread_alive): Remove.
9604 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9605 init_tracefile_ops.
9606 * tracefile.c (tracefile_has_stack): New function.
9607 (tracefile_has_registers): New function.
9608 (tracefile_thread_alive): New function.
9609 (tracefile_get_trace_status): New function.
9610 (init_tracefile_ops): New function.
9611 * tracefile.h (init_tracefile_ops): Declare.
9612
9613 2014-02-23 Yao Qi <yao@codesourcery.com>
9614
9615 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9616 (O_LARGEFILE): Likewise.
9617 (tfile_ops): Likewise.
9618 (TRACE_HEADER_SIZE): Likewise.
9619 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9620 (cur_data_size): Likewise.
9621 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9622 (tfile_close, tfile_files_info): Likewise.
9623 (tfile_get_trace_status): Likewise.
9624 (tfile_get_tracepoint_status): Likewise.
9625 (tfile_get_traceframe_address): Likewise.
9626 (tfile_trace_find, match_blocktype): Likewise.
9627 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9628 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9629 (tfile_get_trace_state_variable_value): Likewise.
9630 (tfile_has_all_memory, tfile_has_memory): Likewise.
9631 (tfile_has_stack, tfile_has_registers): Likewise.
9632 (tfile_thread_alive, build_traceframe_info): Likewise.
9633 (tfile_traceframe_info, init_tfile_ops): Likewise.
9634 (_initialize_tracepoint): Don't call init_tfile_ops
9635 and add_target_with_completer.
9636 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9637 exec.h, completer.h and filenames.h.
9638 (_initialize_tracefile_tfile): New function.
9639
9640 2014-02-23 Yao Qi <yao@codesourcery.com>
9641
9642 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9643 tracefile-tfile.o.
9644 (HFILES_NO_SRCDIR): Add tracefile.h.
9645 * ctf.c: Include "tracefile.h".
9646 * tracefile.h: New file.
9647 * tracefile.c: New file
9648 * tracefile-tfile.c: New file.
9649 * tracepoint.c: Include "tracefile.h".
9650 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9651 (stop_reason_names): Add const.
9652 (trace_file_writer_xfree): Move it to tracefile.c.
9653 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9654 (trace_save_ctf): Likewise.
9655 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9656 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9657 (tfile_write_header, tfile_write_regblock_type): Likewise.
9658 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9659 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9660 (tfile_write_raw_data, tfile_end): Likewise.
9661 (tfile_trace_file_writer_new): Likewise.
9662 (free_uploaded_tp): Make it extern.
9663 (free_uploaded_tsv): Make it extern.
9664 (_initialize_tracepoint): Move code to register command 'tsave'
9665 to tracefile.c.
9666 * tracepoint.h (stop_reason_names): Declare.
9667 (struct trace_frame_write_ops): Move it to tracefile.h.
9668 (struct trace_file_write_ops): Likewise.
9669 (struct trace_file_writer): Likewise.
9670 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9671
9672 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9673
9674 PR gdb/16594
9675 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9676 process name.
9677 (get_cores_used_by_process): New parameter num_cores, use it.
9678 (linux_xfer_osdata_processes): Pass num_cores to it.
9679 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9680 process name.
9681
9682 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9683
9684 * target.c (memory_xfer_partial): Fix length arg in call to
9685 breakpoint_xfer_memory.
9686
9687 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9688
9689 PR tdep/16397
9690 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9691 number comes after the + or - signs. Adjust length of register
9692 name to be extracted.
9693
9694 2014-02-20 Tom Tromey <tromey@redhat.com>
9695
9696 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9697 (ada_varobj_ops): Mark "extern".
9698
9699 2014-02-20 Tom Tromey <tromey@redhat.com>
9700
9701 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9702
9703 2014-02-20 Doug Evans <xdje42@gmail.com>
9704
9705 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9706 All callers updated.
9707 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9708 All callers updated.
9709 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9710 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9711
9712 2014-02-20 lin zuojian <manjian2006@gmail.com>
9713 Joel Brobecker <brobecker@adacore.com>
9714 Doug Evans <xdje42@gmail.com>
9715
9716 PR symtab/16581
9717 * dwarf2read.c (struct die_info): New member in_process.
9718 (reset_die_in_process): New function.
9719 (process_die): Set it at the start, reset when returning.
9720 (inherit_abstract_dies): Only call process_die if origin_child_die
9721 not already being processed.
9722
9723 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9724
9725 * windows-nat.c (handle_unload_dll): Add function documentation.
9726 (do_initial_windows_stuff): Add comment explaining why we wait
9727 until after inferior initialization has finished before
9728 processing all DLLs.
9729
9730 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9731
9732 * windows-nat.c (get_module_name): Delete.
9733 (windows_get_exec_module_filename): New function, mostly
9734 inspired from get_module_name.
9735 (windows_pid_to_exec_file): Replace call to get_module_name
9736 by call to windows_get_exec_module_filename.
9737
9738 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9739
9740 * windows-nat.c (handle_load_dll): Rewrite this function's
9741 introductory comment. Remove code using get_module_name
9742 to get the DLL's name.
9743
9744 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9745
9746 * windows-nat.c (get_windows_debug_event): Ignore
9747 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9748 if windows_initialization_done == 0.
9749 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9750 Adjust implementation to always load all DLLs.
9751 (do_initial_windows_stuff): Replace call to
9752 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9753
9754 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9755
9756 * windows-nat.c (_initialize_windows_nat): Deprecate the
9757 "dll-symbols" command. Turn the "add-shared-symbol-files"
9758 and "assf" aliases into commands, and deprecate them as well.
9759 * NEWS: Add entry explaining that "dll-symbols" and its two
9760 aliases are now deprecated.
9761
9762 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9763
9764 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9765 new-line in debug string. Remove trailing spaces.
9766
9767 2014-02-19 Stan Shebs <stan@codesourcery.com>
9768
9769 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9770
9771 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9772
9773 * NEWS: Add entry for the new feature
9774 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9775 and class values.
9776
9777 2014-02-19 Stan Shebs <stan@codesourcery.com>
9778
9779 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9780
9781 2014-02-19 Pedro Alves <palves@redhat.com>
9782
9783 * common/ptid.h (struct ptid): Mention that process_stratum
9784 targets should prefer ptid.lwp.
9785
9786 2014-02-19 Pedro Alves <palves@redhat.com>
9787
9788 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9789 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9790 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9791 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9792 store remote thread ids rather than ptid.tid.
9793 (_initialize_remote): Adjust.
9794
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * target.c (target_get_unwinder): Rewrite.
9798 (target_get_tailcall_unwinder): Rewrite.
9799 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9800 (record_btrace_to_get_tailcall_unwinder): New function.
9801 (init_record_btrace_ops): Update.
9802 * target.h (struct target_ops) <to_get_unwinder,
9803 to_get_tailcall_unwinder>: Now function pointers. Use
9804 TARGET_DEFAULT_RETURN.
9805
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9807
9808 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9809 argument.
9810 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9811
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9813
9814 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9815 directly.
9816 * target-delegates.c: Rebuild.
9817 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9818 TARGET_DEFAULT_FUNC.
9819 * target.c (default_target_decr_pc_after_break): Rename from
9820 forward_target_decr_pc_after_break. Simplify.
9821 (target_decr_pc_after_break): Rely on delegation.
9822
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9824
9825 * target.c (update_current_target): Do not INHERIT to_doc or
9826 to_magic. Do not de_fault to_open or to_close.
9827
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * gcore.h (objfile_find_memory_regions): Declare.
9831 * gcore.c (objfile_find_memory_regions): No longer static. Add
9832 "self" argument.
9833 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9834 * exec.c: Include gcore.h.
9835 (exec_set_find_memory_regions): Remove.
9836 (exec_find_memory_regions): Remove.
9837 (exec_do_find_memory_regions): Remove.
9838 (init_exec_ops): Update.
9839 * defs.h (exec_set_find_memory_regions): Remove.
9840
9841 2014-02-19 Tom Tromey <tromey@redhat.com>
9842
9843 * target-delegates.c: Rebuild.
9844 * target.h (struct target_ops) <to_extra_thread_info,
9845 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9846 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9847 not 0, in TARGET_DEFAULT_RETURN.
9848
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9850
9851 * target.c (complete_target_initialization): Remove casts. Use
9852 return_zero_has_execution.
9853 (return_zero): Add "ignore" argument.
9854 (return_zero_has_execution): New function.
9855 (init_dummy_target): Remove casts. Use
9856 return_zero_has_execution.
9857
9858 2014-02-19 Tom Tromey <tromey@redhat.com>
9859
9860 * target.c (update_current_target): Update comments. Do not
9861 INHERIT to_stratum.
9862
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9866 needed.
9867 * corelow.c (core_read_description): Delegate when needed.
9868 * remote.c (remote_read_description): Delegate when needed.
9869 * target-delegates.c: Rebuild.
9870 * target.c (target_read_description): Rewrite.
9871 * target.h (struct target_ops) <to_read_description>: Update
9872 comment. Use TARGET_DEFAULT_RETURN.
9873
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9875
9876 * target-delegates.c: Rebuild.
9877 * target.c (update_current_target): Don't inherit or default
9878 to_can_run.
9879 (find_default_run_target): Check against delegate_can_run.
9880 * target.h (struct target_ops) <to_can_run>: Use
9881 TARGET_DEFAULT_RETURN.
9882
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * target-delegates.c: Rebuild.
9886 * target.c (target_disconnect): Unconditionally delegate.
9887 * target.h (struct target_ops) <to_disconnect>: Use
9888 TARGET_DEFAULT_NORETURN.
9889
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9891
9892 * record.c (record_stop): Unconditionally delegate.
9893 * target-delegates.c: Rebuild.
9894 * target.c (target_stop_recording): Unconditionally delegate.
9895 * target.h (struct target_ops) <to_stop_recording>: Use
9896 TARGET_DEFAULT_IGNORE.
9897
9898 2014-02-19 Tom Tromey <tromey@redhat.com>
9899
9900 * target-delegates.c: Rebuild.
9901 * target.c (target_enable_btrace): Unconditionally delegate.
9902 * target.h (struct target_ops) <to_enable_btrace>: Use
9903 TARGET_DEFAULT_NORETURN.
9904
9905 2014-02-19 Tom Tromey <tromey@redhat.com>
9906
9907 * target-delegates.c: Rebuild.
9908 * target.c (target_read_btrace): Unconditionally delegate.
9909 * target.h (struct target_ops) <to_read_btrace>: Use
9910 TARGET_DEFAULT_NORETURN.
9911
9912 2014-02-19 Tom Tromey <tromey@redhat.com>
9913
9914 * target-delegates.c: Rebuild.
9915 * target.c (target_teardown_btrace): Unconditionally delegate.
9916 * target.h (struct target_ops) <to_teardown_btrace>: Use
9917 TARGET_DEFAULT_NORETURN.
9918
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * target-delegates.c: Rebuild.
9922 * target.c (target_disable_btrace): Unconditionally delegate.
9923 * target.h (struct target_ops) <to_disable_btrace>: Use
9924 TARGET_DEFAULT_NORETURN.
9925
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9927
9928 * target-delegates.c: Rebuild.
9929 * target.c (default_search_memory): New function.
9930 (simple_search_memory): Update comment.
9931 (target_search_memory): Unconditionally delegate.
9932 * target.h (struct target_ops) <to_search_memory>: Use
9933 TARGET_DEFAULT_FUNC.
9934
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * auxv.c (default_auxv_parse): No longer static.
9938 (target_auxv_parse): Unconditionally delegate.
9939 * auxv.h (default_auxv_parse): Declare.
9940 * target-delegates.c: Rebuild.
9941 * target.c: Include auxv.h.
9942 * target.h (struct target_ops) <to_auxv_parse>: Use
9943 TARGET_DEFAULT_FUNC.
9944
9945 2014-02-19 Tom Tromey <tromey@redhat.com>
9946
9947 * target-delegates.c: Rebuild.
9948 * target.c (target_memory_map): Unconditionally delegate.
9949 * target.h (struct target_ops) <to_memory_map>: Use
9950 TARGET_DEFAULT_RETURN.
9951
9952 2014-02-19 Tom Tromey <tromey@redhat.com>
9953
9954 * target-delegates.c: Rebuild.
9955 * target.c (target_thread_alive): Unconditionally delegate.
9956 * target.h (struct target_ops) <to_thread_alive>: Use
9957 TARGET_DEFAULT_RETURN.
9958
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9960
9961 * target-delegates.c: Rebuild.
9962 * target.c (target_save_record): Unconditionally delegate.
9963 * target.h (struct target_ops) <to_save_record>: Use
9964 TARGET_DEFAULT_NORETURN.
9965
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9967
9968 * target-delegates.c: Rebuild.
9969 * target.c (target_delete_record): Unconditionally delegate.
9970 * target.h (struct target_ops) <to_delete_record>: Use
9971 TARGET_DEFAULT_NORETURN.
9972
9973 2014-02-19 Tom Tromey <tromey@redhat.com>
9974
9975 * target-delegates.c: Rebuild.
9976 * target.c (target_record_is_replaying): Unconditionally
9977 delegate.
9978 * target.h (struct target_ops) <to_record_is_replaying>: Use
9979 TARGET_DEFAULT_RETURN.
9980
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * target-delegates.c: Rebuild.
9984 * target.c (target_goto_record_begin): Unconditionally delegate.
9985 * target.h (struct target_ops) <to_goto_record_begin>: 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_goto_record_end): Unconditionally delegate.
9992 * target.h (struct target_ops) <to_goto_record_end>: 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_goto_record): Unconditionally delegate.
9999 * target.h (struct target_ops) <to_goto_record>: 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_insn_history): Unconditionally delegate.
10006 * target.h (struct target_ops) <to_insn_history>: 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_insn_history_from): Unconditionally delegate.
10013 * target.h (struct target_ops) <to_insn_history_from>: 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_insn_history_range): Unconditionally delegate.
10020 * target.h (struct target_ops) <to_insn_history_range>: Use
10021 TARGET_DEFAULT_NORETURN.
10022
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10024
10025 * target-delegates.c: Rebuild.
10026 * target.c (target_call_history): Unconditionally delegate.
10027 * target.h (struct target_ops) <to_call_history>: 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_call_history_from): Unconditionally delegate.
10034 * target.h (struct target_ops) <to_call_history_from>: 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_call_history_range): Unconditionally delegate.
10041 * target.h (struct target_ops) <to_call_history_range>: Use
10042 TARGET_DEFAULT_NORETURN.
10043
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10045
10046 * target-delegates.c: Rebuild.
10047 * target.c (target_verify_memory): Unconditionally delegate.
10048 * target.h (struct target_ops) <to_verify_memory>: Use
10049 TARGET_DEFAULT_NORETURN.
10050
10051 2014-02-19 Tom Tromey <tromey@redhat.com>
10052
10053 * target-delegates.c: Rebuild.
10054 * target.c (target_core_of_thread): Unconditionally delegate.
10055 * target.h (struct target_ops) <to_core_of_thread>: Use
10056 TARGET_DEFAULT_RETURN.
10057
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10059
10060 * target-delegates.c: Rebuild.
10061 * target.c (target_flash_done): Unconditionally delegate.
10062 * target.h (struct target_ops) <to_flash_done>: Use
10063 TARGET_DEFAULT_NORETURN.
10064
10065 2014-02-19 Tom Tromey <tromey@redhat.com>
10066
10067 * target-delegates.c: Rebuild.
10068 * target.c (target_flash_erase): Unconditionally delegate.
10069 * target.h (struct target_ops) <to_flash_erase>: Use
10070 TARGET_DEFAULT_NORETURN.
10071
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * target-delegates.c: Rebuild.
10075 * target.c (target_get_section_table): Unconditionally delegate.
10076 * target.h (struct target_ops) <to_get_section_table>: Use
10077 TARGET_DEFAULT_RETURN.
10078
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * target-delegates.c: Rebuild.
10082 * target.c (target_pid_to_str): Unconditionally delegate.
10083 (init_dummy_target): Don't initialize to_pid_to_str.
10084 (default_pid_to_str): Rename from dummy_pid_to_str.
10085 * target.h (struct target_ops) <to_pid_to_str>: Use
10086 TARGET_DEFAULT_FUNC.
10087
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10089
10090 * target-delegates.c: Rebuild.
10091 * target.c (target_find_new_threads): Unconditionally delegate.
10092 * target.h (struct target_ops) <to_find_new_threads>: Use
10093 TARGET_DEFAULT_RETURN.
10094
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10096
10097 * target-delegates.c: Rebuild.
10098 * target.c (target_program_signals): Unconditionally delegate.
10099 * target.h (struct target_ops) <to_program_signals>: Use
10100 TARGET_DEFAULT_IGNORE.
10101
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * target-delegates.c: Rebuild.
10105 * target.c (target_pass_signals): Unconditionally delegate.
10106 * target.h (struct target_ops) <to_pass_signals>: Use
10107 TARGET_DEFAULT_IGNORE.
10108
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target-delegates.c: Rebuild.
10112 * target.c (default_mourn_inferior): New function.
10113 (target_mourn_inferior): Unconditionally delegate.
10114 * target.h (struct target_ops) <to_mourn_inferior>: Use
10115 TARGET_DEFAULT_FUNC.
10116
10117 2014-02-19 Tom Tromey <tromey@redhat.com>
10118
10119 * target-delegates.c: Rebuild.
10120 * target.c (default_follow_fork): New function.
10121 (target_follow_fork): Unconditionally delegate.
10122 * target.h (struct target_ops) <to_follow_fork>: Use
10123 TARGET_DEFAULT_FUNC.
10124
10125 2014-02-19 Tom Tromey <tromey@redhat.com>
10126
10127 * target-delegates.c: Rebuild.
10128 * target.c (target_kill): Unconditionally delegate.
10129 * target.h (struct target_ops) <to_kill>: Use
10130 TARGET_DEFAULT_NORETURN.
10131
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10133
10134 * target-delegates.c: Rebuild.
10135 * target.c (target_masked_watch_num_registers): Unconditionally
10136 delegate.
10137 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10138 Use TARGET_DEFAULT_RETURN.
10139
10140 2014-02-19 Tom Tromey <tromey@redhat.com>
10141
10142 * target-delegates.c: Rebuild.
10143 * target.c (target_remove_mask_watchpoint): Unconditionally
10144 delegate.
10145 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10146 TARGET_DEFAULT_RETURN.
10147
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10149
10150 * target-delegates.c: Rebuild.
10151 * target.c (target_insert_mask_watchpoint): Unconditionally
10152 delegate.
10153 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10154 TARGET_DEFAULT_RETURN.
10155
10156 2014-02-19 Tom Tromey <tromey@redhat.com>
10157
10158 * target-delegates.c: Rebuild.
10159 * target.c (target_ranged_break_num_registers): Unconditionally
10160 delegate.
10161 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10162 Use TARGET_DEFAULT_RETURN.
10163
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target-delegates.c: Rebuild.
10167 * target.c (target_fetch_registers): Unconditionally delegate.
10168 * target.h (struct target_ops) <to_fetch_registers>: Use
10169 TARGET_DEFAULT_NORETURN.
10170
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target-delegates.c: Rebuild.
10174 * target.c (update_current_target): Don't inherit or default
10175 to_stop.
10176 * target.h (struct target_ops) <to_stop>: Use
10177 TARGET_DEFAULT_IGNORE.
10178
10179 2014-02-19 Tom Tromey <tromey@redhat.com>
10180
10181 * target-delegates.c: Rebuild.
10182 * target.c (update_current_target): Don't inherit or default
10183 to_can_run_breakpoint_commands.
10184 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10185 Use TARGET_DEFAULT_RETURN.
10186
10187 2014-02-19 Tom Tromey <tromey@redhat.com>
10188
10189 * target-delegates.c: Rebuild.
10190 * target.c (update_current_target): Don't inherit or default
10191 to_supports_evaluation_of_breakpoint_conditions.
10192 * target.h (struct target_ops)
10193 <to_supports_evaluation_of_breakpoint_conditions>: Use
10194 TARGET_DEFAULT_RETURN.
10195
10196 2014-02-19 Tom Tromey <tromey@redhat.com>
10197
10198 * target-delegates.c: Rebuild.
10199 * target.c (update_current_target): Don't inherit or default
10200 to_augmented_libraries_svr4_read.
10201 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10202 Use TARGET_DEFAULT_RETURN.
10203
10204 2014-02-19 Tom Tromey <tromey@redhat.com>
10205
10206 * target-delegates.c: Rebuild.
10207 * target.c (update_current_target): Don't inherit or default
10208 to_can_use_agent.
10209 * target.h (struct target_ops) <to_can_use_agent>: Use
10210 TARGET_DEFAULT_RETURN.
10211
10212 2014-02-19 Tom Tromey <tromey@redhat.com>
10213
10214 * target-delegates.c: Rebuild.
10215 * target.c (update_current_target): Don't inherit or default
10216 to_use_agent.
10217 * target.h (struct target_ops) <to_use_agent>: Use
10218 TARGET_DEFAULT_NORETURN.
10219
10220 2014-02-19 Tom Tromey <tromey@redhat.com>
10221
10222 * target-delegates.c: Rebuild.
10223 * target.c (update_current_target): Don't inherit or default
10224 to_traceframe_info.
10225 (return_null): Remove.
10226 * target.h (struct target_ops) <to_traceframe_info>: Use
10227 TARGET_DEFAULT_RETURN.
10228
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10230
10231 * target-delegates.c: Rebuild.
10232 * target.c (update_current_target): Don't inherit or default
10233 to_static_tracepoint_markers_by_strid.
10234 * target.h (struct target_ops)
10235 <to_static_tracepoint_markers_by_strid>: Use
10236 TARGET_DEFAULT_NORETURN.
10237
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10239
10240 * target-delegates.c: Rebuild.
10241 * target.c (update_current_target): Don't inherit or default
10242 to_static_tracepoint_marker_at.
10243 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10244 Use TARGET_DEFAULT_RETURN.
10245
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target-delegates.c: Rebuild.
10249 * target.c (update_current_target): Don't inherit or default
10250 to_set_permissions.
10251 * target.h (struct target_ops) <to_set_permissions>: Use
10252 TARGET_DEFAULT_IGNORE.
10253
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10255
10256 * target-delegates.c: Rebuild.
10257 * target.c (update_current_target): Don't inherit or default
10258 to_get_tib_address.
10259 * target.h (struct target_ops) <to_get_tib_address>: Use
10260 TARGET_DEFAULT_NORETURN.
10261
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target-delegates.c: Rebuild.
10265 * target.c (update_current_target): Don't inherit or default
10266 to_set_trace_notes.
10267 * target.h (struct target_ops) <to_set_trace_notes>: Use
10268 TARGET_DEFAULT_RETURN.
10269
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target-delegates.c: Rebuild.
10273 * target.c (update_current_target): Don't initialize
10274 to_set_trace_buffer_size.
10275 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10276 TARGET_DEFAULT_IGNORE.
10277
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10279
10280 * target-delegates.c: Rebuild.
10281 * target.c (update_current_target): Don't inherit or default
10282 to_set_circular_trace_buffer.
10283 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10284 TARGET_DEFAULT_IGNORE.
10285
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10287
10288 * target-delegates.c: Rebuild.
10289 * target.c (update_current_target): Don't inherit or default
10290 to_set_disconnected_tracing.
10291 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10292 TARGET_DEFAULT_IGNORE.
10293
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10295
10296 * target-delegates.c: Rebuild.
10297 * target.c (update_current_target): Don't inherit or default
10298 to_get_min_fast_tracepoint_insn_len.
10299 (return_minus_one): Remove.
10300 * target.h (struct target_ops)
10301 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10302
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10304
10305 * target-delegates.c: Rebuild.
10306 * target.c (update_current_target): Don't inherit or default
10307 to_get_raw_trace_data.
10308 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10309 TARGET_DEFAULT_NORETURN.
10310
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10312
10313 * target-delegates.c: Rebuild.
10314 * target.c (update_current_target): Don't inherit or default
10315 to_upload_trace_state_variables.
10316 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10317 Use TARGET_DEFAULT_RETURN.
10318
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10320
10321 * target-delegates.c: Rebuild.
10322 * target.c (update_current_target): Don't inherit or default
10323 to_upload_tracepoints.
10324 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10325 TARGET_DEFAULT_RETURN.
10326
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10328
10329 * target-delegates.c: Rebuild.
10330 * target.c (update_current_target): Don't inherit or default
10331 to_save_trace_data.
10332 * target.h (struct target_ops) <to_save_trace_data>: Use
10333 TARGET_DEFAULT_NORETURN.
10334
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10336
10337 * target-delegates.c: Rebuild.
10338 * target.c (update_current_target): Don't inherit or default
10339 to_get_trace_state_variable_value.
10340 * target.h (struct target_ops)
10341 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10342
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * target-delegates.c: Rebuild.
10346 * target.c (update_current_target): Don't inherit or default
10347 to_trace_find.
10348 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10349
10350 2014-02-19 Tom Tromey <tromey@redhat.com>
10351
10352 * target-delegates.c: Rebuild.
10353 * target.c (update_current_target): Don't inherit or default
10354 to_trace_stop.
10355 * target.h (struct target_ops) <to_trace_stop>: Use
10356 TARGET_DEFAULT_NORETURN.
10357
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10359
10360 * target-delegates.c: Rebuild.
10361 * target.c (update_current_target): Don't inherit or default
10362 to_get_tracepoint_status.
10363 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10364 TARGET_DEFAULT_NORETURN.
10365
10366 2014-02-19 Tom Tromey <tromey@redhat.com>
10367
10368 * target-delegates.c: Rebuild.
10369 * target.c (update_current_target): Don't inherit or default
10370 to_get_trace_status.
10371 * target.h (struct target_ops) <to_get_trace_status>: Use
10372 TARGET_DEFAULT_RETURN.
10373
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10375
10376 * target-delegates.c: Rebuild.
10377 * target.c (update_current_target): Don't inherit or default
10378 to_trace_start.
10379 * target.h (struct target_ops) <to_trace_start>: Use
10380 TARGET_DEFAULT_NORETURN.
10381
10382 2014-02-19 Tom Tromey <tromey@redhat.com>
10383
10384 * target-delegates.c: Rebuild.
10385 * target.c (update_current_target): Don't inherit or default
10386 to_trace_set_readonly_regions.
10387 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10388 Use TARGET_DEFAULT_NORETURN.
10389
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10391
10392 * target-delegates.c: Rebuild.
10393 * target.c (update_current_target): Don't inherit or default
10394 to_disable_tracepoint.
10395 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10396 TARGET_DEFAULT_NORETURN.
10397
10398 2014-02-19 Tom Tromey <tromey@redhat.com>
10399
10400 * target-delegates.c: Rebuild.
10401 * target.c (update_current_target): Don't inherit or default
10402 to_enable_tracepoint.
10403 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10404 TARGET_DEFAULT_NORETURN.
10405
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10407
10408 * target-delegates.c: Rebuild.
10409 * target.c (update_current_target): Don't inherit or default
10410 to_download_trace_state_variable.
10411 * target.h (struct target_ops) <to_download_trace_state_variable>:
10412 Use TARGET_DEFAULT_NORETURN.
10413
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10415
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10418 to_can_download_tracepoint.
10419 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10420 TARGET_DEFAULT_RETURN.
10421
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10423
10424 * target-delegates.c: Rebuild.
10425 * target.c (update_current_target): Don't inherit or default
10426 to_download_tracepoint.
10427 * target.h (struct target_ops) <to_download_tracepoint>: Use
10428 TARGET_DEFAULT_NORETURN.
10429
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10431
10432 * target-delegates.c: Rebuild.
10433 * target.c (update_current_target): Don't inherit or default
10434 to_trace_init.
10435 * target.h (struct target_ops) <to_trace_init>: Use
10436 TARGET_DEFAULT_RETURN.
10437
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10439
10440 * target-delegates.c: Rebuild.
10441 * target.c (update_current_target): Don't inherit or default
10442 to_supports_string_tracing.
10443 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10444 TARGET_DEFAULT_RETURN.
10445
10446 2014-02-19 Tom Tromey <tromey@redhat.com>
10447
10448 * target-delegates.c: Rebuild.
10449 * target.c (update_current_target): Don't inherit or default
10450 to_supports_enable_disable_tracepoint.
10451 * target.h (struct target_ops)
10452 <to_supports_enable_disable_tracepoint>: Use
10453 TARGET_DEFAULT_RETURN.
10454
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10456
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't inherit or default
10459 to_supports_multi_process.
10460 * target.h (struct target_ops) <to_supports_multi_process>: Use
10461 TARGET_DEFAULT_RETURN.
10462
10463 2014-02-19 Tom Tromey <tromey@redhat.com>
10464
10465 * target-delegates.c: Rebuild.
10466 * target.c (update_current_target): Don't inherit or default
10467 to_get_ada_task_ptid.
10468 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10469 TARGET_DEFAULT_FUNC.
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_thread_architecture.
10476 * target.h (struct target_ops) <to_thread_architecture>: Use
10477 TARGET_DEFAULT_FUNC.
10478
10479 2014-02-19 Tom Tromey <tromey@redhat.com>
10480
10481 * target-delegates.c: Rebuild.
10482 * target.c (update_current_target): Don't inherit or default
10483 to_execution_direction.
10484 * target.h (struct target_ops) <to_execution_direction>: Use
10485 TARGET_DEFAULT_FUNC.
10486
10487 2014-02-19 Tom Tromey <tromey@redhat.com>
10488
10489 * target-delegates.c: Rebuild.
10490 * target.c (update_current_target): Don't inherit or default
10491 to_can_execute_reverse.
10492 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10493 TARGET_DEFAULT_RETURN.
10494 (target_can_execute_reverse): Unconditionally delegate.
10495
10496 2014-02-19 Tom Tromey <tromey@redhat.com>
10497
10498 * target-delegates.c: Rebuild.
10499 * target.c (update_current_target): Don't inherit or default
10500 to_goto_bookmark.
10501 (dummy_goto_bookmark): Remove.
10502 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10503 * target.h (struct target_ops) <to_goto_bookmark>: Use
10504 TARGET_DEFAULT_NORETURN.
10505
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10507
10508 * target-delegates.c: Rebuild.
10509 * target.c (update_current_target): Don't inherit or default
10510 to_get_bookmark.
10511 (dummy_get_bookmark): Remove.
10512 (init_dummy_target): Don't inherit or default to_get_bookmark.
10513 * target.h (struct target_ops) <to_get_bookmark>: Use
10514 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
10521 (init_dummy_target): Don't initialize to_make_corefile_notes.
10522 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10523 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
10530 (init_dummy_target): Don't initialize to_find_memory_regions.
10531 * target.h (struct target_ops) <to_find_memory_regions>: Use
10532 TARGET_DEFAULT_FUNC.
10533
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10535
10536 * target-delegates.c: Rebuild.
10537 * target.c (update_current_target): Don't inherit or default
10538 to_log_command.
10539 * target.h (struct target_ops) <to_log_command>: Use
10540 TARGET_DEFAULT_IGNORE.
10541 (target_log_command): Unconditionally delegate.
10542
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10544
10545 * target-delegates.c: Rebuild.
10546 * target.c (update_current_target): Don't inherit or default
10547 to_pid_to_exec_file.
10548 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10549 TARGET_DEFAULT_RETURN.
10550
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10552
10553 * target-delegates.c: Rebuild.
10554 * target.c (update_current_target): Don't inherit or default
10555 to_thread_name.
10556 (target_thread_name): Unconditionally delegate.
10557 * target.h (struct target_ops) <to_thread_name>: Use
10558 TARGET_DEFAULT_RETURN.
10559
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10561
10562 * target-delegates.c: Rebuild.
10563 * target.c (update_current_target): Don't inherit or default
10564 to_extra_thread_info.
10565 * target.h (struct target_ops) <to_extra_thread_info>: Use
10566 TARGET_DEFAULT_RETURN.
10567
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10569
10570 * target-delegates.c: Rebuild.
10571 * target.c (update_current_target): Don't inherit or default
10572 to_has_exited.
10573 * target.h (struct target_ops) <to_has_exited>: Use
10574 TARGET_DEFAULT_RETURN..
10575
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10577
10578 * target-delegates.c: Rebuild.
10579 * target.c (update_current_target): Don't inherit or default
10580 to_set_syscall_catchpoint.
10581 (return_one): Remove.
10582 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10583 TARGET_DEFAULT_RETURN.
10584
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10586
10587 * target-delegates.c: Rebuild.
10588 * target.c (update_current_target): Don't inherit or default
10589 to_insert_exec_catchpoint.
10590 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10591 TARGET_DEFAULT_RETURN.
10592
10593 2014-01-08 Tom Tromey <tromey@redhat.com>
10594
10595 * target-delegates.c: Rebuild.
10596 * target.c (update_current_target): Don't inherit or default
10597 to_insert_exec_catchpoint.
10598 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10599 TARGET_DEFAULT_RETURN.
10600
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10602
10603 * target-delegates.c: Rebuild.
10604 * target.c (update_current_target): Don't inherit or default
10605 to_remove_vfork_catchpoint.
10606 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10607 TARGET_DEFAULT_RETURN.
10608
10609 2014-02-19 Tom Tromey <tromey@redhat.com>
10610
10611 * target-delegates.c: Rebuild.
10612 * target.c (update_current_target): Don't inherit or default
10613 to_insert_vfork_catchpoint.
10614 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10615 TARGET_DEFAULT_RETURN.
10616
10617 2014-02-19 Tom Tromey <tromey@redhat.com>
10618
10619 * target-delegates.c: Rebuild.
10620 * target.c (update_current_target): Don't inherit or default
10621 to_remove_fork_catchpoint.
10622 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10623 TARGET_DEFAULT_RETURN.
10624
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10626
10627 * target-delegates.c: Rebuild.
10628 * target.c (update_current_target): Don't inherit or default
10629 to_insert_fork_catchpoint.
10630 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10631 TARGET_DEFAULT_RETURN.
10632
10633 2014-02-19 Tom Tromey <tromey@redhat.com>
10634
10635 * target-delegates.c: Rebuild.
10636 * target.c (update_current_target): Don't inherit or default
10637 to_post_startup_inferior.
10638 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10639 TARGET_DEFAULT_IGNORE.
10640
10641 2014-02-19 Tom Tromey <tromey@redhat.com>
10642
10643 * target-delegates.c: Rebuild.
10644 * target.c (update_current_target): Don't inherit or default
10645 to_load.
10646 * target.h (struct target_ops) <to_load>: Use
10647 TARGET_DEFAULT_NORETURN.
10648
10649 2014-02-19 Tom Tromey <tromey@redhat.com>
10650
10651 * target-delegates.c: Rebuild.
10652 * target.c (update_current_target): Don't inherit or default
10653 to_terminal_info.
10654 * target.h (struct target_ops) <to_terminal_info>: Use
10655 TARGET_DEFAULT_FUNC.
10656
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10658
10659 * target-delegates.c: Rebuild.
10660 * target.c (update_current_target): Don't inherit or default
10661 to_terminal_save_ours.
10662 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10663 TARGET_DEFAULT_IGNORE.
10664
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10666
10667 * target-delegates.c: Rebuild.
10668 * target.c (update_current_target): Don't inherit or default
10669 to_terminal_ours.
10670 * target.h (struct target_ops) <to_terminal_ours>: Use
10671 TARGET_DEFAULT_IGNORE.
10672
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 * target-delegates.c: Rebuild.
10676 * target.c (update_current_target): Don't inherit or default
10677 to_terminal_ours_for_output.
10678 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10679 TARGET_DEFAULT_IGNORE.
10680
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * target-delegates.c: Rebuild.
10684 * target.c (update_current_target): Don't inherit or default
10685 to_terminal_inferior.
10686 * target.h (struct target_ops) <to_terminal_inferior>: Use
10687 TARGET_DEFAULT_IGNORE.
10688
10689 2014-02-19 Tom Tromey <tromey@redhat.com>
10690
10691 * target-delegates.c: Rebuild.
10692 * target.c (update_current_target): Don't inherit or default
10693 to_terminal_init.
10694 * target.h (struct target_ops) <to_terminal_init>: Use
10695 TARGET_DEFAULT_IGNORE.
10696
10697 2014-02-19 Tom Tromey <tromey@redhat.com>
10698
10699 * target-delegates.c: Rebuild.
10700 * target.c (update_current_target): Don't inherit or default
10701 to_can_accel_watchpoint_condition.
10702 * target.h (struct target_ops)
10703 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10704
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10706
10707 * target-delegates.c: Rebuild.
10708 * target.c (update_current_target): Don't inherit or default
10709 to_region_ok_for_hw_watchpoint.
10710 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10711 Use TARGET_DEFAULT_FUNC.
10712
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10714
10715 * target-delegates.c: Rebuild.
10716 * target.c (update_current_target): Don't inherit or default
10717 to_watchpoint_addr_within_range.
10718 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10719 Use TARGET_DEFAULT_FUNC.
10720
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10722
10723 * target-delegates.c: Rebuild.
10724 * target.c (update_current_target): Don't inherit or default
10725 to_remove_watchpoint.
10726 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10727 TARGET_DEFAULT_NORETURN.
10728
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10730
10731 * target-delegates.c: Rebuild.
10732 * target.c (update_current_target): Don't inherit or default
10733 to_insert_watchpoint.
10734 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10735 TARGET_DEFAULT_RETURN.
10736
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10738
10739 * target-delegates.c: Rebuild.
10740 * target.c (update_current_target): Don't inherit or default
10741 to_remove_hw_breakpoint.
10742 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10743 TARGET_DEFAULT_RETURN.
10744
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10746
10747 * target-delegates.c: Rebuild.
10748 * target.c (update_current_target): Don't inherit or default
10749 to_insert_hw_breakpoint.
10750 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10751 TARGET_DEFAULT_RETURN.
10752
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10754
10755 * target-delegates.c: Rebuild.
10756 * target.c (update_current_target): Don't inherit or default
10757 to_can_use_hw_breakpoint.
10758 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10759 TARGET_DEFAULT_RETURN.
10760
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10762
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10765 to_files_info.
10766 * target.h (struct target_ops) <to_files_info>: Use
10767 TARGET_DEFAULT_IGNORE.
10768
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10770
10771 * target-delegates.c: Rebuild.
10772 * target.c (update_current_target): Don't inherit or default
10773 to_store.
10774 * target.h (struct target_ops) <to_store>: Use
10775 TARGET_DEFAULT_NORETURN.
10776
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10778
10779 * target-delegates.c: Rebuild.
10780 * target.c (update_current_target): Don't inherit or default
10781 to_post_attach.
10782 * target.h (struct target_ops) <to_post_attach>: Use
10783 TARGET_DEFAULT_IGNORE.
10784
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10786
10787 * target-delegates.c: Rebuild.
10788 * target.c (update_current_target): Don't inherit or default
10789 to_rcmd.
10790 (default_rcmd): New function.
10791 (do_monitor_command): Unconditionally delegate.
10792 * target.h (struct target_ops) <to_rmcd>: Use
10793 TARGET_DEFAULT_FUNC.
10794
10795 2014-02-19 Tom Tromey <tromey@redhat.com>
10796
10797 * target-delegates.c: Rebuild.
10798 * target.c (init_dummy_target): Don't initialize to_attach.
10799 (target_attach): Unconditionally delegate.
10800 * target.h (struct target_ops) <to_attach>: Use
10801 TARGET_DEFAULT_FUNC.
10802
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10804
10805 * target-delegates.c: Rebuild.
10806 * target.c (target_detach): Unconditionally delegate.
10807 (init_dummy_target): Don't initialize to_detach.
10808 * target.h (struct target_ops) <to_detach>: Use
10809 TARGET_DEFAULT_IGNORE.
10810
10811 2014-02-19 Tom Tromey <tromey@redhat.com>
10812
10813 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10814 Add argument.
10815 (target_augmented_libraries_svr4_read): Add argument.
10816 * target.c (update_current_target): Update.
10817 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10818 argument.
10819
10820 2014-02-19 Tom Tromey <tromey@redhat.com>
10821
10822 * target.h (struct target_ops) <to_call_history_range>: Add
10823 argument.
10824 * target.c (target_call_history_range): Add argument.
10825 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10826 argument.
10827 (record_btrace_call_history_from): Update.
10828
10829 2014-02-19 Tom Tromey <tromey@redhat.com>
10830
10831 * target.h (struct target_ops) <to_call_history_from>: Add
10832 argument.
10833 * target.c (target_call_history_from): Add argument.
10834 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10835 argument.
10836
10837 2014-02-19 Tom Tromey <tromey@redhat.com>
10838
10839 * target.h (struct target_ops) <to_call_history>: Add argument.
10840 * target.c (target_call_history): Add argument.
10841 * record-btrace.c (record_btrace_call_history): Add 'self'
10842 argument.
10843
10844 2014-02-19 Tom Tromey <tromey@redhat.com>
10845
10846 * target.h (struct target_ops) <to_insn_history_range>: Add
10847 argument.
10848 * target.c (target_insn_history_range): Add argument.
10849 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10850 argument.
10851 (record_btrace_insn_history_from): Update.
10852
10853 2014-02-19 Tom Tromey <tromey@redhat.com>
10854
10855 * target.h (struct target_ops) <to_insn_history_from>: Add
10856 argument.
10857 * target.c (target_insn_history_from): Add argument.
10858 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10859 argument.
10860
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * target.h (struct target_ops) <to_insn_history>: Add argument.
10864 * target.c (target_insn_history): Add argument.
10865 * record-btrace.c (record_btrace_insn_history): Add 'self'
10866 argument.
10867
10868 2014-02-19 Tom Tromey <tromey@redhat.com>
10869
10870 * target.h (struct target_ops) <to_goto_record>: Add argument.
10871 * target.c (target_goto_record): Add argument.
10872 * record-full.c (record_full_goto): Add 'self' argument.
10873 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10874
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10878 * target.c (target_goto_record_end): Add argument.
10879 * record-full.c (record_full_goto_end): Add 'self' argument.
10880 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10881
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * target.h (struct target_ops) <to_goto_record_begin>: Add
10885 argument.
10886 * target.c (target_goto_record_begin): Add argument.
10887 * record-full.c (record_full_goto_begin): Add 'self' argument.
10888 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10889 argument.
10890
10891 2014-02-19 Tom Tromey <tromey@redhat.com>
10892
10893 * target.h (struct target_ops) <to_record_is_replaying>: Add
10894 argument.
10895 * target.c (target_record_is_replaying): Add argument.
10896 * record-full.c (record_full_is_replaying): Add 'self' argument.
10897 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10898 argument.
10899 (record_btrace_xfer_partial, record_btrace_store_registers)
10900 (record_btrace_prepare_to_store, record_btrace_resume)
10901 (record_btrace_wait, record_btrace_decr_pc_after_break)
10902 (record_btrace_find_new_threads, record_btrace_thread_alive):
10903 Update.
10904
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10906
10907 * target.h (struct target_ops) <to_delete_record>: Add argument.
10908 * target.c (target_delete_record): Add argument.
10909 * record-full.c (record_full_delete): Add 'self' argument.
10910
10911 2014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * target.h (struct target_ops) <to_save_record>: Add argument.
10914 * target.c (target_save_record): Add argument.
10915 * record-full.c (record_full_save): Add 'self' argument.
10916 (record_full_save): Add 'self' argument.
10917
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * target.h (struct target_ops) <to_info_record>: Add argument.
10921 * target.c (target_info_record): Add argument.
10922 * record.c (info_record_command): Add argument.
10923 * record-full.c (record_full_info): Add 'self' argument.
10924 * record-btrace.c (record_btrace_info): Add 'self' argument.
10925
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10929 * target.c (target_stop_recording): Add argument.
10930 * record.c (record_stop): Add argument.
10931 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10932 argument.
10933
10934 2014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10937 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10938 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10939 argument.
10940 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10941 (_initialize_amd64_linux_nat): Use it.
10942 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10943 (_initialize_i386_linux_nat): Use it.
10944
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10946
10947 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10948 * target.c (target_teardown_btrace): Add argument.
10949 * remote.c (remote_teardown_btrace): Add 'self' argument.
10950 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10951 argument.
10952 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10953 argument.
10954
10955 2014-02-19 Tom Tromey <tromey@redhat.com>
10956
10957 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10958 * target.c (target_disable_btrace): Add argument.
10959 * remote.c (remote_disable_btrace): Add 'self' argument.
10960 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10961 argument.
10962 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10963 argument.
10964
10965 2014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10968 * target.c (target_enable_btrace): Add argument.
10969 * remote.c (remote_enable_btrace): Add 'self' argument.
10970 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10971 argument.
10972 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10973 argument.
10974
10975 2014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10978 (target_can_use_agent): Add argument.
10979 * target.c (update_current_target): Update.
10980 * remote.c (remote_can_use_agent): Add 'self' argument.
10981 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10982
10983 2014-02-19 Tom Tromey <tromey@redhat.com>
10984
10985 * target.h (struct target_ops) <to_use_agent>: Add argument.
10986 (target_use_agent): Add argument.
10987 * target.c (update_current_target): Update.
10988 * remote.c (remote_use_agent): Add 'self' argument.
10989 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10990
10991 2014-02-19 Tom Tromey <tromey@redhat.com>
10992
10993 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10994 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10995 (target_traceframe_info): Add argument.
10996 * target.c (update_current_target): Update.
10997 * remote.c (remote_traceframe_info): Add 'self' argument.
10998 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10999
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * target.h (target_static_tracepoint_markers_by_strid): Add
11003 argument.
11004 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11005 'self' argument.
11006 * target.c (update_current_target): Update.
11007 * remote.c (struct target_ops)
11008 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11009 * linux-nat.c (struct target_ops)
11010 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11011
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11013
11014 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11015 Add argument.
11016 (target_static_tracepoint_marker_at): Add argument.
11017 * target.c (update_current_target): Update.
11018 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11019 argument.
11020
11021 2014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11024 (target_set_permissions): Add argument.
11025 * target.c (update_current_target): Update.
11026 * remote.c (remote_set_permissions): Add 'self' argument.
11027 (remote_start_remote): Update.
11028
11029 2014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11032 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11033 (target_get_tib_address): Add argument.
11034 * target.c (update_current_target): Update.
11035 * remote.c (remote_get_tib_address): Add 'self' argument.
11036
11037 2014-02-19 Tom Tromey <tromey@redhat.com>
11038
11039 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11040 (target_set_trace_notes): Add argument.
11041 * target.c (update_current_target): Update.
11042 * remote.c (remote_set_trace_notes): Add 'self' argument.
11043
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11045
11046 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11047 argument.
11048 (target_set_trace_buffer_size): Add argument.
11049 * target.c (update_current_target): Update.
11050 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11051
11052 2014-02-19 Tom Tromey <tromey@redhat.com>
11053
11054 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11055 argument.
11056 (target_set_circular_trace_buffer): Add argument.
11057 * target.c (update_current_target): Update.
11058 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11059 argument.
11060
11061 2014-02-19 Tom Tromey <tromey@redhat.com>
11062
11063 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11064 argument.
11065 (target_set_disconnected_tracing): Add argument.
11066 * target.c (update_current_target): Update.
11067 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11068
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11070
11071 * target.h (struct target_ops)
11072 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11073 (target_get_min_fast_tracepoint_insn_len): Add argument.
11074 * target.c (update_current_target): Update.
11075 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11076 argument.
11077
11078 2014-02-19 Tom Tromey <tromey@redhat.com>
11079
11080 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11081 argument.
11082 (target_get_raw_trace_data): Add argument.
11083 * target.c (update_current_target): Update.
11084 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11085
11086 2014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11089 Add argument.
11090 (target_upload_trace_state_variables): Add argument.
11091 * target.c (update_current_target): Update.
11092 * remote.c (remote_upload_trace_state_variables): Add 'self'
11093 argument.
11094 (remote_start_remote): Update.
11095
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11099 argument.
11100 (target_upload_tracepoints): Add argument.
11101 * target.c (update_current_target): Update.
11102 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11103 (remote_start_remote): Update.
11104
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11108 (target_save_trace_data): Add argument.
11109 * target.c (update_current_target): Update.
11110 * remote.c (remote_save_trace_data): Add 'self' argument.
11111
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11115 argument.
11116 * target.h (struct target_ops)
11117 <to_get_trace_state_variable_value>: Add argument.
11118 (target_get_trace_state_variable_value): Add argument.
11119 * target.c (update_current_target): Update.
11120 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11121 argument.
11122 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11123
11124 2014-02-19 Tom Tromey <tromey@redhat.com>
11125
11126 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11127 * target.h (struct target_ops) <to_trace_find>: Add argument.
11128 (target_trace_find): Add argument.
11129 * target.c (update_current_target): Update.
11130 * remote.c (remote_trace_find): Add 'self' argument.
11131 * ctf.c (ctf_trace_find): Add 'self' argument.
11132
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11136 (target_trace_stop): Add argument.
11137 * target.c (update_current_target): Update.
11138 * remote.c (remote_trace_stop): Add 'self' argument.
11139
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11143 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11144 argument.
11145 (target_get_tracepoint_status): Add argument.
11146 * target.c (update_current_target): Update.
11147 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11148
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11152 * target.h (struct target_ops) <to_get_trace_status>: Add
11153 argument.
11154 (target_get_trace_status): Add argument.
11155 * target.c (update_current_target): Update.
11156 * remote.c (remote_get_trace_status): Add 'self' argument.
11157 (remote_start_remote, remote_can_download_tracepoint): Update.
11158 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11159
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target.h (struct target_ops) <to_trace_start>: Add argument.
11163 (target_trace_start): Add argument.
11164 * target.c (update_current_target): Update.
11165 * remote.c (remote_trace_start): Add 'self' argument.
11166
11167 2014-02-19 Tom Tromey <tromey@redhat.com>
11168
11169 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11170 Add argument.
11171 (target_trace_set_readonly_regions): Add argument.
11172 * target.c (update_current_target): Update.
11173 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11174 argument.
11175
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11179 argument.
11180 (target_disable_tracepoint): Add argument.
11181 * target.c (update_current_target): Update.
11182 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11183
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11185
11186 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11187 argument.
11188 (target_enable_tracepoint): Add argument.
11189 * target.c (update_current_target): Update.
11190 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11191
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11193
11194 * target.h (struct target_ops) <to_download_trace_state_variable>:
11195 Add argument.
11196 (target_download_trace_state_variable): Add argument.
11197 * target.c (update_current_target): Update.
11198 * remote.c (remote_download_trace_state_variable): Add 'self'
11199 argument.
11200
11201 2014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11204 argument.
11205 (target_can_download_tracepoint): Add argument.
11206 * target.c (update_current_target): Update.
11207 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11208
11209 2014-02-19 Tom Tromey <tromey@redhat.com>
11210
11211 * target.h (struct target_ops) <to_download_tracepoint>: Add
11212 argument.
11213 (target_download_tracepoint): Add argument.
11214 * target.c (update_current_target): Update.
11215 * remote.c (remote_download_tracepoint): Add 'self' argument.
11216
11217 2014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target.h (struct target_ops) <to_trace_init>: Add argument.
11220 (target_trace_init): Add argument.
11221 * target.c (update_current_target): Update.
11222 * remote.c (remote_trace_init): Add 'self' argument.
11223
11224 2014-02-19 Tom Tromey <tromey@redhat.com>
11225
11226 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11227 * target.c (target_fileio_readlink): Add argument.
11228 * remote.c (remote_hostio_readlink): Add 'self' argument.
11229 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11230
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11234 * target.c (target_fileio_unlink): Add argument.
11235 * remote.c (remote_hostio_unlink): Add 'self' argument.
11236 (remote_file_delete): Update.
11237 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11238
11239 2014-02-19 Tom Tromey <tromey@redhat.com>
11240
11241 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11242 * target.c (target_fileio_close): Add argument.
11243 * remote.c (remote_hostio_close): Add 'self' argument.
11244 (remote_hostio_close_cleanup): Update.
11245 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11246 Update.
11247 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11248
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11250
11251 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11252 * target.c (target_fileio_pread): Add argument.
11253 * remote.c (remote_hostio_pread): Add 'self' argument.
11254 (remote_bfd_iovec_pread, remote_file_get): Update.
11255 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11256
11257 2014-02-19 Tom Tromey <tromey@redhat.com>
11258
11259 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11260 * target.c (target_fileio_pwrite): Add argument.
11261 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11262 (remote_file_put): Update.
11263 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11264
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11266
11267 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11268 * target.c (target_fileio_open): Add argument.
11269 * remote.c (remote_hostio_open): Add 'self' argument.
11270 (remote_bfd_iovec_open): Add 'self' argument.
11271 (remote_file_put): Add 'self' argument.
11272 (remote_file_get): Add 'self' argument.
11273 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11274
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11278 Add argument.
11279 (target_can_run_breakpoint_commands): Add argument.
11280 * target.c (update_current_target): Update.
11281 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11282 argument.
11283 (remote_insert_breakpoint): Add 'self' argument.
11284 (remote_insert_hw_breakpoint): Add 'self' argument.
11285 (remote_can_run_breakpoint_commands): Add 'self' argument.
11286
11287 2014-02-19 Tom Tromey <tromey@redhat.com>
11288
11289 * target.h (struct target_ops)
11290 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11291 (target_supports_evaluation_of_breakpoint_conditions): Add
11292 argument.
11293 * target.c (update_current_target): Update.
11294 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11295 argument.
11296 (remote_insert_breakpoint): Add 'self' argument.
11297 (remote_insert_hw_breakpoint): Add 'self' argument.
11298 (remote_supports_cond_breakpoints): Add 'self' argument.
11299
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11303 argument.
11304 (target_supports_string_tracing): Add argument.
11305 * target.c (update_current_target): Update.
11306 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11307
11308 2014-02-19 Tom Tromey <tromey@redhat.com>
11309
11310 * target.h (struct target_ops)
11311 <to_supports_disable_randomization>: Add argument.
11312 * target.c (find_default_supports_disable_randomization): Add
11313 argument.
11314 (target_supports_disable_randomization): Add argument.
11315 (find_default_supports_disable_randomization): Add 'self'
11316 argument.
11317 * remote.c (extended_remote_supports_disable_randomization): Add
11318 'self' argument.
11319 (remote_supports_disable_randomization): Add 'self' argument.
11320 (extended_remote_create_inferior): Update.
11321 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11322 'self' argument.
11323
11324 2014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target.h (struct target_ops)
11327 <to_supports_enable_disable_tracepoint>: Add argument.
11328 (target_supports_enable_disable_tracepoint): Add argument.
11329 * target.c (update_current_target): Update.
11330 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11331 argument.
11332
11333 2014-02-19 Tom Tromey <tromey@redhat.com>
11334
11335 * target.h (struct target_ops) <to_supports_multi_process>: Add
11336 argument.
11337 (target_supports_multi_process): Add argument.
11338 * target.c (update_current_target): Update.
11339 * remote.c (remote_supports_multi_process): Add 'self' argument.
11340 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11341 argument.
11342 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11343 argument.
11344
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11346
11347 * target.h (struct target_ops) <to_execution_direction>: Add
11348 argument.
11349 (target_execution_direction): Add argument.
11350 * target.c (default_execution_direction): Add 'self' argument.
11351 * record-full.c (record_full_execution_direction): Add 'self'
11352 argument.
11353
11354 2014-02-19 Tom Tromey <tromey@redhat.com>
11355
11356 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11357 argument.
11358 (target_can_execute_reverse): Add argument.
11359 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11360 * record-full.c (record_full_can_execute_reverse): Add 'self'
11361 argument.
11362 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11363 argument.
11364
11365 2014-02-19 Tom Tromey <tromey@redhat.com>
11366
11367 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11368 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11369 argument.
11370 (target_get_ada_task_ptid): Add argument.
11371 * target.c (update_current_target): Update.
11372 (default_get_ada_task_ptid): Add 'self' argument.
11373 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11374 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11375 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11376 argument.
11377 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11378 argument.
11379 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11380 argument.
11381 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11382 argument.
11383 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11384 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11385 argument.
11386
11387 2014-02-19 Tom Tromey <tromey@redhat.com>
11388
11389 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11390 (target_goto_bookmark): Add argument.
11391 * target.c (dummy_goto_bookmark): Add 'self' argument.
11392 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11393
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11397 (target_get_bookmark): Add argument.
11398 * target.c (dummy_get_bookmark): Add 'self' argument.
11399 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11400
11401 2014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11404 argument.
11405 (target_make_corefile_notes): Add argument.
11406 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11407 * procfs.c (procfs_make_note_section): Add 'self' argument.
11408 (procfs_make_note_section): Add 'self' argument.
11409 (procfs_make_note_section): Add 'self' argument.
11410 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11411 argument.
11412 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11413 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11414 * exec.c (exec_make_note_section): Add 'self' argument.
11415 (exec_make_note_section): Add 'self' argument.
11416
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * target.h (struct target_ops) <to_find_memory_regions>: Add
11420 argument.
11421 (target_find_memory_regions): Add argument.
11422 * target.c (dummy_find_memory_regions): Add 'self' argument.
11423 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11424 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11425 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11426 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11427 * exec. (exec_do_find_memory_regions): New global.
11428 (exec_set_find_memory_regions): Rewrite.
11429 (exec_find_memory_regions): New function.
11430 (init_exec_ops): Use exec_find_memory_regions.
11431
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target.h (struct target_ops) <to_supports_non_stop>: Add
11435 argument.
11436 * target.c (find_default_supports_non_stop): Add argument.
11437 (target_supports_non_stop): Add argument.
11438 (find_default_supports_non_stop): Add 'self' argument.
11439 * remote.c (remote_supports_non_stop): Add 'self' argument.
11440 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11441
11442 2014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target.h (struct target_ops) <to_log_command>: Add argument.
11445 (target_log_command): Add argument.
11446 * serial.h (serial_log_command): Add 'self' argument.
11447 * serial.c (serial_log_command): Add 'self' argument.
11448
11449 2014-02-19 Tom Tromey <tromey@redhat.com>
11450
11451 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11452 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11453 argument.
11454 (target_pid_to_exec_file): Add argument.
11455 * target.c (debug_to_pid_to_exec_file): Add argument.
11456 (update_current_target): Update.
11457 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11458 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11459 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11460 (linux_handle_extended_wait): Update.
11461 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11462 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11463 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11464 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11465
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target.h (struct target_ops) <to_rcmd>: Add argument.
11469 (target_rcmd): Add argument.
11470 * target.c (debug_to_rcmd): Add argument.
11471 (update_current_target, do_monitor_command): Update.
11472 * remote.c (remote_rcmd): Add 'self' argument.
11473 * monitor.c (monitor_rcmd): Add 'self' argument.
11474
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * windows-nat.c (windows_stop): Add 'self' argument.
11478 * target.h (struct target_ops) <to_stop>: Add argument.
11479 * target.c (target_stop): Add argument.
11480 (debug_to_stop): Add argument.
11481 (update_current_target): Update.
11482 * remote.c (remote_stop): Add 'self' argument.
11483 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11484 (gdbsim_cntrl_c): Update.
11485 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11486 * procfs.c (procfs_stop): Add 'self' argument.
11487 * nto-procfs.c (procfs_stop): Add 'self' argument.
11488 * monitor.c (monitor_stop): Add 'self' argument.
11489 (monitor_open): Update.
11490 * linux-nat.c (linux_nat_stop): Add argument.
11491 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11492 * gnu-nat.c (gnu_stop): Add 'self' argument.
11493 * darwin-nat.c (darwin_stop): Add 'self' argument.
11494
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11496
11497 * target.h (struct target_ops) <to_thread_name>: Add argument.
11498 * target.c (target_thread_name): Add argument.
11499 (update_current_target): Update.
11500 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11501
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11503
11504 * target.h (struct target_ops) <to_extra_thread_info>: Add
11505 argument.
11506 (target_extra_thread_info): Add argument.
11507 * target.c (update_current_target): Update.
11508 * remote.c (remote_threads_extra_info): Add 'self' argument.
11509 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11510 argument.
11511 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11512 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11513 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11514 argument.
11515 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11516 argument.
11517 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11518 argument.
11519 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11520 argument.
11521
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target.h (struct target_ops) <to_program_signals>: Add argument.
11525 * target.c (target_program_signals): Add argument.
11526 * remote.c (remote_program_signals): Add 'self' argument.
11527
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11529
11530 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11531 * target.c (target_pass_signals): Add argument.
11532 * remote.c (remote_pass_signals): Add 'self' argument.
11533 (remote_start_remote): Update.
11534 * procfs.c (procfs_pass_signals): Add 'self' argument.
11535 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11536 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11537 (linux_nat_create_inferior, linux_nat_attach): Update.
11538
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * windows-nat.c (windows_can_run): Add 'self' argument.
11542 * target.h (struct target_ops) <to_can_run>: Add argument.
11543 (target_can_run): Add argument.
11544 * target.c (debug_to_can_run): Add argument.
11545 (update_current_target): Update.
11546 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11547 * inf-child.c (inf_child_can_run): Add 'self' argument.
11548 * go32-nat.c (go32_can_run): Add 'self' argument.
11549
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * target.h (struct target_ops) <to_has_exited>: Add argument.
11553 (target_has_exited): Add argument.
11554 * target.c (debug_to_has_exited): Add argument.
11555 (update_current_target): Update.
11556
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11558
11559 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11560 argument.
11561 (target_set_syscall_catchpoint): Add argument.
11562 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11563 argument.
11564 * target.c (update_current_target): Update.
11565
11566 2014-02-19 Tom Tromey <tromey@redhat.com>
11567
11568 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11569 argument.
11570 (target_remove_exec_catchpoint): Add argument.
11571 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11572 (update_current_target): Update.
11573 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11574 argument.
11575
11576 2014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11579 argument.
11580 (target_insert_exec_catchpoint): Add argument.
11581 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11582 (update_current_target): Update.
11583 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11584 argument.
11585
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11589 argument.
11590 (target_remove_vfork_catchpoint): Add argument.
11591 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11592 (update_current_target): Update.
11593 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11594 argument.
11595
11596 2014-02-19 Tom Tromey <tromey@redhat.com>
11597
11598 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11599 argument.
11600 (target_insert_vfork_catchpoint): Add argument.
11601 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11602 (update_current_target): Update.
11603 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11604 argument.
11605
11606 2014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11609 argument.
11610 (target_remove_fork_catchpoint): Add argument.
11611 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11612 (update_current_target): Update.
11613 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11614 argument.
11615
11616 2014-02-19 Tom Tromey <tromey@redhat.com>
11617
11618 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11619 argument.
11620 (target_insert_fork_catchpoint): Add argument.
11621 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11622 (update_current_target): Update.
11623 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11624 argument.
11625
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11627
11628 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11629 argument.
11630 (target_post_startup_inferior): Add argument.
11631 * target.c (debug_to_post_startup_inferior): Add argument.
11632 (update_current_target): Update.
11633 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11634 argument.
11635 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11636 argument.
11637 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11638 argument.
11639 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11640 argument.
11641 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11642 'self' argument.
11643 (super_post_startup_inferior): Likewise.
11644 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11645 'self' argument.
11646 (super_post_startup_inferior): Likewise.
11647 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11648 Add 'self' argument.
11649 (super_post_startup_inferior): Likewise.
11650
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11652
11653 * target.h (struct target_ops) <to_load>: Add argument.
11654 * target.c (target_load): Add argument.
11655 (debug_to_load): Add argument.
11656 (update_current_target): Update.
11657 * remote.c (remote_load): Add 'self' argument.
11658 * remote-sim.c (gdbsim_load): Add 'self' argument.
11659 * remote-mips.c (mips_load): Add 'self' argument.
11660 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11661 * monitor.c (monitor_load): Add 'self' argument.
11662 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11663
11664 2014-02-19 Tom Tromey <tromey@redhat.com>
11665
11666 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11667 (target_terminal_info): Add argument.
11668 * target.c (debug_to_terminal_info): Add argument.
11669 (default_terminal_info): Likewise.
11670 * inflow.c (child_terminal_info): Add 'self' argument.
11671 * inferior.h (child_terminal_info): Add 'self' argument.
11672 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11673
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11675
11676 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11677 argument.
11678 (target_terminal_save_ours): Add argument.
11679 * target.c (debug_to_terminal_save_ours): Add argument.
11680 (update_current_target): Update.
11681 * inflow.c (terminal_save_ours): Add 'self' argument.
11682 * inferior.h (terminal_save_ours): Add 'self' argument.
11683
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11687 (target_terminal_ours): Add argument.
11688 * target.c (debug_to_terminal_ours): Add argument.
11689 (update_current_target): Update.
11690 * remote.c (remote_terminal_ours): Add 'self' argument.
11691 (remote_close): Update.
11692 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11693 * inflow.c (terminal_ours): Add 'self' argument.
11694 * inferior.h (terminal_ours): Add 'self' argument.
11695 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11696
11697 2014-02-19 Pedro Alves <palves@redhat.com>
11698 Tom Tromey <tromey@redhat.com>
11699
11700 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11701 argument.
11702 (target_terminal_ours_for_output): Add argument.
11703 * target.c (debug_to_terminal_ours_for_output): Add argument.
11704 (update_current_target): Update.
11705 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11706 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11707 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11708
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11710
11711 * target.h (struct target_ops) <to_terminal_inferior>: Add
11712 argument.
11713 * target.c (target_terminal_inferior): Add argument.
11714 (update_current_target): Update.
11715 * remote.c (remote_terminal_inferior): Add 'self' argument.
11716 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11717 * inflow.c (terminal_inferior): Add 'self' argument.
11718 * inferior.h (terminal_inferior): Add 'self' argument.
11719 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11720 (go32_terminal_inferior): Add 'self' argument.
11721
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11723
11724 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11725 (target_terminal_init): Add argument.
11726 * target.c (debug_to_terminal_init): Add argument.
11727 (update_current_target): Update.
11728 * inflow.c (terminal_init_inferior): Add 'self' argument.
11729 * inferior.h (terminal_init_inferior): Add 'self' argument.
11730 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11731 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11732
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target.h (struct target_ops)
11736 <to_can_accel_watchpoint_condition>: Add argument.
11737 (target_can_accel_watchpoint_condition): Add argument.
11738 * target.c (debug_to_can_accel_watchpoint_condition): Add
11739 argument.
11740 (update_current_target): Update.
11741 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11742 'self' argument.
11743
11744 2014-02-19 Tom Tromey <tromey@redhat.com>
11745
11746 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11747 Add argument.
11748 (target_region_ok_for_hw_watchpoint): Add argument.
11749 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11750 (default_region_ok_for_hw_watchpoint): Add argument.
11751 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11752 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11753 argument.
11754 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11755 argument.
11756 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11757 argument.
11758 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11759 'self' argument.
11760 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11761 'self' argument.
11762 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11763 'self' argument.
11764 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11765 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11766 'self' argument.
11767 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11768 Add 'self' argument.
11769
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11773 argument.
11774 (target_insert_watchpoint): Add argument.
11775 * target.c (debug_to_insert_watchpoint): Add argument.
11776 (update_current_target): Update.
11777 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11778 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11779 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11780 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11781 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11782 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11783 argument.
11784 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11785 (procfs_insert_hw_watchpoint): Add 'self' argument.
11786 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11787 argument.
11788 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11789 argument.
11790 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11791 argument.
11792 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11793 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11794 argument.
11795 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11796 'self' argument.
11797
11798 2014-02-19 Tom Tromey <tromey@redhat.com>
11799
11800 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11801 argument.
11802 (target_remove_watchpoint): Add argument.
11803 * target.c (debug_to_remove_watchpoint): Add argument.
11804 (update_current_target): Update.
11805 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11806 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11807 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11808 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11809 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11810 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11811 argument.
11812 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11813 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11814 argument.
11815 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11816 argument.
11817 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11818 argument.
11819 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11820 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11821 argument.
11822 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11823 'self' argument.
11824
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11828 argument.
11829 (target_remove_hw_breakpoint): Add argument.
11830 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11831 (update_current_target): Update.
11832 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11833 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11834 argument.
11835 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11836 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11837 argument.
11838 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11839 'self' argument.
11840
11841 2014-02-19 Tom Tromey <tromey@redhat.com>
11842
11843 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11844 argument.
11845 (target_insert_hw_breakpoint): Add argument.
11846 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11847 (update_current_target): Update.
11848 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11849 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11850 argument.
11851 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11852 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11853 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11854 argument.
11855 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11856 'self' argument.
11857
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11861 argument.
11862 (target_can_use_hardware_watchpoint): Add argument.
11863 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11864 (update_current_target): Update.
11865 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11866 argument.
11867 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11868 argument.
11869 * remote.c (remote_check_watch_resources): Add 'self' argument.
11870 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11871 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11872 argument.
11873 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11874 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11875 argument.
11876 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11877 argument.
11878 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11879 argument.
11880 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11881 argument.
11882 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11883 argument.
11884 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11885 argument.
11886 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11887 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11888 argument.
11889 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11890 'self' argument.
11891
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target.h (struct target_ops) <to_post_attach>: Add argument.
11895 (target_post_attach): Add argument.
11896 * target.c (debug_to_post_attach): Add argument.
11897 (update_current_target): Update.
11898 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11899 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11900 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11901 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11902 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11903
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * windows-nat.c (windows_close): Add 'self' argument.
11907 * tracepoint.c (tfile_close): Add 'self' argument.
11908 * target.h (struct target_ops) <to_close>: Add argument.
11909 * target.c (target_close): Add argument.
11910 (update_current_target): Update.
11911 * remote.c (remote_close): Add 'self' argument.
11912 * remote-sim.c (gdbsim_close): Add 'self' argument.
11913 * remote-mips.c (mips_close): Add 'self' argument.
11914 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11915 * record-full.c (record_full_close): Add 'self' argument.
11916 * record-btrace.c (record_btrace_close): Add 'self' argument.
11917 * monitor.h (monitor_close): Add 'self' argument.
11918 * monitor.c (monitor_close): Add 'self' argument.
11919 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11920 * linux-nat.c (linux_nat_close): Add argument.
11921 * go32-nat.c (go32_close): Add 'self' argument.
11922 * exec.c (exec_close_1): Add 'self' argument.
11923 * ctf.c (ctf_close): Add 'self' argument.
11924 * corelow.c (core_close): Add 'self' argument.
11925 (core_close_cleanup): Update.
11926 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11927 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11928
11929 2014-02-19 Tom Tromey <tromey@redhat.com>
11930
11931 * remote.c (remote_load): New function.
11932 (init_remote_ops): Use it.
11933
11934 2014-02-19 Tom Tromey <tromey@redhat.com>
11935
11936 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11937 argument.
11938 * common/linux-btrace.h (linux_supports_btrace): Update.
11939 * remote.c (remote_supports_btrace): Add "self" argument.
11940 * target-delegates.c: Rebuild.
11941 * target.c (target_supports_btrace): Remove.
11942 * target.h (struct target_ops) <to_supports_btrace>: Add
11943 target_ops argument.
11944 (target_supports_btrace): New define.
11945
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11947
11948 * record-full.c (record_full_beneath_to_resume_ops)
11949 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11950 (record_full_beneath_to_wait)
11951 (record_full_beneath_to_store_registers_ops)
11952 (record_full_beneath_to_store_registers)
11953 (record_full_beneath_to_xfer_partial_ops)
11954 (record_full_beneath_to_xfer_partial)
11955 (record_full_beneath_to_insert_breakpoint_ops)
11956 (record_full_beneath_to_insert_breakpoint)
11957 (record_full_beneath_to_remove_breakpoint_ops)
11958 (record_full_beneath_to_remove_breakpoint)
11959 (record_full_beneath_to_stopped_by_watchpoint)
11960 (record_full_beneath_to_stopped_data_address)
11961 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11962 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11963 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11964 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11965 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11966 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11967 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11968 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11969 (record_full_resume, record_full_wait_1)
11970 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11971 (record_full_store_registers, record_full_xfer_partial)
11972 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11973 (record_full_async, record_full_core_xfer_partial): Use target
11974 delegation.
11975 * target-delegates.c: Rebuild.
11976 * target.c (current_xfer_partial): Remove.
11977 (update_current_target): Do not INHERIT or de_fault
11978 to_insert_breakpoint, to_remove_breakpoint,
11979 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11980 to_is_async_p, to_async. Do not set to_xfer_partial field.
11981 (default_xfer_partial): Simplify.
11982 (current_xfer_partial): Remove.
11983 (target_wait, target_resume): Simplify.
11984 (find_default_can_async_p, find_default_is_async_p): Update.
11985 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11986 to_xfer_partial, to_stopped_by_watchpoint,
11987 to_stopped_data_address.
11988 (target_store_registers): Simplify.
11989 (forward_target_remove_breakpoint)
11990 (forward_target_insert_breakpoint): Remove.
11991 (target_remove_breakpoint, target_insert_breakpoint)
11992 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11993 * target.h (struct target_ops) <to_resume, to_wait,
11994 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11995 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11996 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11997 markup.
11998 (forward_target_remove_breakpoint)
11999 (forward_target_insert_breakpoint): Remove.
12000 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12001 directly.
12002 (record_btrace_insert_breakpoint): Delegate directly.
12003
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 PR build/7701:
12007 * target-delegates.c: New file.
12008 * target.c: Include target-delegates.c.
12009 (init_dummy_target): Call install_dummy_methods.
12010 (complete_target_initialization): Call install_delegators.
12011 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12012 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12013 * make-target-delegates: New file.
12014
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * record.c (find_record_target): Use find_target_at.
12018 * target.c (find_target_at): New function.
12019 * target.h (find_target_at): Declare.
12020
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12024 Add 'ops' argument.
12025 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12026 'ops' argument.
12027 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12028 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12029 'ops' argument.
12030 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12031 argument.
12032 * linux-nat.c (save_sigtrap): Update.
12033 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12034 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12035 (linux_nat_close): Update.
12036 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12037 argument.
12038 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12039 argument.
12040 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12041 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12042 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12043 (tmp_to_async): Add 'ops' argument.
12044 (record_full_stopped_by_watchpoint, record_full_async)
12045 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12046 argument.
12047 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12048 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12049 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12050 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12051 (remote_is_async_p, remote_async): Add 'ops' argument.
12052 (remote_stopped_data_address): Update.
12053 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12054 * target.c (update_current_target)
12055 (find_default_can_async_p, find_default_is_async_p): Update.
12056 (init_dummy_target): Update.
12057 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12058 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12059 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12060 (target_can_async_p, target_is_async_p, target_async)
12061 (target_stopped_by_watchpoint): Update.
12062
12063 2014-02-19 Yao Qi <yao@codesourcery.com>
12064
12065 PR gdb/16220
12066 * gdbarch.sh: Remove startup_gdbarch.
12067 * gdbarch.c: Regenerated.
12068 * gdbarch.h: Likewise.
12069
12070 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12071
12072 * rl78-tdep.c (rl78_g10_register_name): New function.
12073 (rl78_return_value): Add g10 support.
12074 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12075 g10.
12076
12077 2014-02-17 Doug Evans <xdje42@gmail.com>
12078
12079 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12080 (SUBDIR_GUILE_SRCS): Ditto.
12081 (scm-gsmob.o): Ditto.
12082
12083 2014-02-17 Yao Qi <yao@codesourcery.com>
12084
12085 * gnu-nat.c (ILL_RPC): Declare defined function.
12086
12087 2014-02-17 Yao Qi <yao@codesourcery.com>
12088
12089 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12090 mach_msg_type_number_t.
12091 (gnu_write_inferior): Likewise.
12092
12093 2014-02-17 Yao Qi <yao@codesourcery.com>
12094
12095 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12096 in format string.
12097 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12098 (inf_validate_procs, inf_signal): Likewise.
12099 (S_exception_raise_request): Likewise.
12100 (do_mach_notify_dead_name): Likewise.
12101 (steal_exc_port): Likewise.
12102 (gnu_read_inferior): Change 'copy_count''s type to
12103 mach_msg_type_number_t.
12104 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12105 format string.
12106
12107 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12108
12109 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12110 flag. Adjust all users; in particular...
12111 (gnu_wait): ..., don't decrement its value in here...
12112 (gnu_create_inferior): ..., and instead set the flag in here,
12113 around the startup_inferior call, and call that one with
12114 START_INFERIOR_TRAPS_EXPECTED.
12115
12116 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12117 (ILL_RPC): ... new macro.
12118 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12119 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12120 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12121 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12122 functions with ILL_RPC macro.
12123 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12124 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12125 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12126 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12127 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12128 (S_proc_getlogin_reply, S_proc_getsid_reply)
12129 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12130 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12131 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12132 (S_proc_getnports_reply, S_proc_is_important_reply)
12133 (S_proc_get_code_reply): New stub functions, generated with
12134 ILL_RPC macro.
12135
12136 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12137 collected the type check structures.
12138
12139 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12140
12141 2014-02-14 Doug Evans <dje@google.com>
12142
12143 * target.c (target_write_partial): Fix result type.
12144
12145 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12146
12147 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12148 the proper offsets to access fpregset_t.
12149
12150 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12151
12152 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12153 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12154 * h8300-tdep.c (setmachinelist): Remove global.
12155 * hppa-tdep.c (hppa_sigtramp): Remove global.
12156 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12157 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12158 * ravenscar-thread.c (update_target_observer): Remove global.
12159 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12160
12161 2014-02-12 Tom Tromey <tromey@redhat.com>
12162
12163 * common/rsp-low.c: Update comments.
12164 * common/rsp-low.h: Update comments.
12165
12166 2014-02-12 Tom Tromey <tromey@redhat.com>
12167
12168 * common/rsp-low.c (convert_ascii_to_int): Remove.
12169 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12170
12171 2014-02-12 Tom Tromey <tromey@redhat.com>
12172
12173 * common/rsp-low.h (unhexify): Don't declare.
12174 * common/rsp-low.c (unhexify): Remove.
12175
12176 2014-02-12 Tom Tromey <tromey@redhat.com>
12177
12178 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12179 * common/rsp-low.c (convert_int_to_ascii): Remove.
12180
12181 2014-02-12 Tom Tromey <tromey@redhat.com>
12182
12183 * common/rsp-low.h (hexify): Don't declare.
12184 * common/rsp-low.c (hexify): Remove.
12185
12186 2014-02-12 Tom Tromey <tromey@redhat.com>
12187
12188 * common/rsp-low.c (hexify): Never take strlen of argument.
12189
12190 2014-02-12 Tom Tromey <tromey@redhat.com>
12191
12192 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12193 * remote.c (extended_remote_run, remote_rcmd)
12194 (remote_download_trace_state_variable, remote_save_trace_data)
12195 (remote_set_trace_notes): Update.
12196 * tracepoint.c (encode_source_string, tfile_write_status)
12197 (tfile_write_uploaded_tsv): Update.
12198
12199 2014-02-12 Tom Tromey <tromey@redhat.com>
12200
12201 * tracepoint.c: Include rsp-low.h.
12202 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12203 * remote.c: Include rsp-low.h.
12204 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12205 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12206 (remote_unescape_input): Move to common/rsp-low.c.
12207 * common/rsp-low.h: New file.
12208 * common/rsp-low.c: New file.
12209 * Makefile.in (SFILES): Add common/rsp-low.c.
12210 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12211 (COMMON_OBS): Add rsp-low.o.
12212 (rsp-low.o): New target.
12213
12214 2014-02-12 Tom Tromey <tromey@redhat.com>
12215
12216 * utils.h: Include print-utils.h.
12217 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12218 (int_string, core_addr_to_string, core_addr_to_string_nz)
12219 (hex_string, hex_string_custom): Don't declare.
12220 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12221 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12222 (hex_string_custom, int_string, core_addr_to_string)
12223 (core_addr_to_string_nz, host_address_to_string): Move to
12224 common/print-utils.c.
12225 * common/print-utils.h: New file.
12226 * common/print-utils.c: New file
12227 * Makefile.in (SFILES): Add common/print-utils.c.
12228 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12229 (COMMON_OBS): Add print-utils.o.
12230 (print-utils.o): New target.
12231
12232 2014-02-12 Tom Tromey <tromey@redhat.com>
12233
12234 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12235
12236 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12237
12238 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12239
12240 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12241
12242 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12243 if a PT_IO ptrace request returns sucessfully but indicates that 0
12244 bytes were transferred.
12245
12246 2014-02-12 Pedro Alves <palves@redhat.com>
12247 Kevin Buettner <kevinb@redhat.com>
12248
12249 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12250 TYPE_INSTANCE_FLAG_CODE_SPACE.
12251
12252 2014-02-12 Pedro Alves <palves@redhat.com>
12253
12254 * h8300-tdep.c (pseudo_from_raw_register)
12255 (raw_from_pseudo_register): New functions.
12256 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12257 them.
12258
12259 2014-02-12 Pedro Alves <palves@redhat.com>
12260
12261 * h8300-tdep.c (h8300_register_sim_regno): New function.
12262 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12263 gdbarch_register_sim_regno hook.
12264
12265 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12266
12267 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12268
12269 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12270
12271 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12272
12273 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12274
12275 * obsd-tdep.h (obsd_init_abi): New prototype.
12276 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12277 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12278 (obsd_init_abi): New functions.
12279 * i386obsd-tdep.c: Include "obsd-tdep.h".
12280 (i386obsd_init_abi): Call obsd_init_abi.
12281 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12282 (amd64obsd_init_abi): Call obsd_init_abi.
12283 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12284 obsd-tdep.c to gdb_target_obs.
12285
12286 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12287
12288 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12289 double float arguments to 16-byte in the argument slots.
12290
12291 2014-02-11 Doug Evans <xdje42@gmail.com>
12292
12293 * configure.ac: Don't crash if pkg-config is not found and guile
12294 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12295 in guile checks.
12296 * configure: Regenerate.
12297
12298 2014-02-11 Yao Qi <yao@codesourcery.com>
12299
12300 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12301 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12302 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12303 * gnu-nat.c (gnu_xfer_memory): Likewise.
12304 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12305 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12306 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12307 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12308
12309 2014-02-11 Yao Qi <yao@codesourcery.com>
12310
12311 * target.h (enum target_xfer_error): Rename to ...
12312 (enum target_xfer_status): ... it. New. All users updated.
12313 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12314 New.
12315 (TARGET_XFER_STATUS_ERROR_P): New macro.
12316 (target_xfer_error_to_string): Remove declaration.
12317 (target_xfer_status_to_string): Declare.
12318 (target_xfer_partial_ftype): Adjust it.
12319 (struct target_ops) <to_xfer_partial>: Return
12320 target_xfer_status. Add argument xfered_len. Update
12321 comments.
12322 * target.c (target_xfer_error_to_string): Rename to ...
12323 (target_xfer_status_to_string): ... it. New. All callers
12324 updated.
12325 (target_read_live_memory): Likewise. Call target_xfer_partial
12326 instead of target_read.
12327 (memory_xfer_live_readonly_partial): Return
12328 target_xfer_status. Add argument xfered_len.
12329 (raw_memory_xfer_partial): Likewise.
12330 (memory_xfer_partial_1): Likewise.
12331 (memory_xfer_partial): Likewise.
12332 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12333 properly. Update debug message.
12334 (default_xfer_partial, current_xfer_partial): Likewise.
12335 (target_write_partial): Likewise.
12336 (target_read_partial): Likewise. All callers updated.
12337 (read_whatever_is_readable): Likewise.
12338 (target_write_with_progress): Likewise.
12339 (target_read_alloc_1): Likewise.
12340
12341 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12342 * auxv.c (procfs_xfer_auxv): Likewise.
12343 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12344 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12345 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12346 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12347 * corefile.c (read_memory): Adjust.
12348 * corelow.c (core_xfer_partial): Likewise.
12349 * ctf.c (ctf_xfer_partial): Likewise.
12350 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12351 updated.
12352 (darwin_xfer_partial): Likewise.
12353 * exec.c (section_table_xfer_memory_partial): Likewise. All
12354 callers updated.
12355 (exec_xfer_partial): Likewise.
12356 * exec.h (section_table_xfer_memory_partial): Update
12357 declaration.
12358 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12359 negative.
12360 (gnu_xfer_partial): Likewise.
12361 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12362 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12363 (ia64_hpux_xfer_solib_got): Likewise.
12364 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12365 type of 'partial_len' to ULONGEST.
12366 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12367 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12368 (linux_nat_xfer_partial): Likewise.
12369 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12370 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12371 * monitor.c (monitor_xfer_memory): Likewise.
12372 (monitor_xfer_partial): Likewise.
12373 * procfs.c (procfs_xfer_partial): Likewise.
12374 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12375 * record-full.c (record_full_xfer_partial): Likewise.
12376 (record_full_core_xfer_partial): Likewise.
12377 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12378 (gdbsim_xfer_partial): Likewise.
12379 * remote.c (remote_write_bytes_aux): Likewise. All callers
12380 updated.
12381 (remote_write_bytes, remote_read_bytes): Likewise. All
12382 callers updated.
12383 (remote_flash_erase): Likewise. All callers updated.
12384 (remote_write_qxfer): Likewise. All callers updated.
12385 (remote_read_qxfer): Likewise. All callers updated.
12386 (remote_xfer_partial): Likewise.
12387 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12388 (rs6000_xfer_shared_libraries): Likewise.
12389 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12390 (sol_thread_xfer_partial): Likewise.
12391 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12392 (sparc_xfer_partial): Likewise.
12393 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12394 updated.
12395 (spu_xfer_partial): Likewise.
12396 * spu-multiarch.c (spu_xfer_partial): Likewise.
12397 * tracepoint.c (tfile_xfer_partial): Likewise.
12398 * windows-nat.c (windows_xfer_memory): Likewise.
12399 (windows_xfer_shared_libraries): Likewise.
12400 (windows_xfer_partial): Likewise.
12401 * valprint.c: Replace 'target_xfer_error' with
12402 'target_xfer_status' in comments.
12403
12404 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12405
12406 Checked in by Joel Brobecker <brobecker@adacore.com>.
12407 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12408
12409 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12410
12411 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12412 function parameters.
12413
12414 2014-02-10 Will Newton <will.newton@linaro.org>
12415
12416 * elfread.c (elf_rel_plt_read): Look for a .got section if
12417 looking up .got.plt fails.
12418 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12419 on address passed to elf_gnu_ifunc_record_cache.
12420 (elf_gnu_ifunc_resolve_addr): Likewise.
12421 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12422
12423 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12424
12425 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12426 (X_RETTURN): New macro.
12427 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12428
12429 * sparc64-tdep.c (sparc64_init_abi): Hook
12430 sparc_in_function_epilogue_p.
12431
12432 2014-02-10 Gary Benson <gbenson@redhat.com>
12433
12434 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12435 Rename name_matcher to symbol_matcher.
12436
12437 2014-02-10 Gary Benson <gbenson@redhat.com>
12438
12439 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12440 Use expand_symtabs_file_matcher_ftype and
12441 expand_symtabs_symbol_matcher_ftype.
12442
12443 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12444
12445 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12446 (struct ada_symbol_cache): New.
12447 (ada_free_symbol_cache): Forward declare.
12448 (struct ada_pspace_data): New.
12449 (ada_pspace_data_handle): New static global.
12450 (get_ada_pspace_data, ada_pspace_data_cleanup)
12451 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12452 (cache_space, cache): Delete, now folded inside struct
12453 ada_pspace_data.
12454 (ada_get_symbol_cache): New function.
12455 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12456 implementation.
12457 (_initialize_ada_language): Remove initialization of cache_space.
12458 Move call to observer_attach_inferior_exit up, grouping it
12459 with the other observer registrations inside this function.
12460 Rename command to be more general. Add call to
12461 register_program_space_data_with_cleanup.
12462
12463 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12464
12465 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12466 ada_new_objfile_observer.
12467 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12468 (_initialize_tasks): Update uses of ada_new_objfile_observer
12469 and ada_tasks_normal_stop_observer.
12470
12471 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12472
12473 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12474 returned by the 'Length attribute to integer.
12475
12476 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12477
12478 * ada-lang.c (_initialize_ada_language): Initialize
12479 cache_space obstack.
12480
12481 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12482
12483 * ada-lang.c (HASH_SIZE): New macro.
12484 (struct cache_entry): New type.
12485 (cache_space, cache): New static globals.
12486 (ada_clear_symbol_cache, find_entry): New functions.
12487 (lookup_cached_symbol, cache_symbol): Implement.
12488 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12489 (_initialize_ada_language): Attach ada_new_objfile_observer
12490 and ada_free_objfile_observer.
12491
12492 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12493
12494 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12495 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12496 struct block * parameter.
12497 (ada_lookup_symbol_list_worker): Constify local variable "block".
12498 Remove cast which is no longer necessary.
12499
12500 2014-02-10 Doug Evans <xdje42@gmail.com>
12501
12502 Add Guile as an extension language.
12503 * NEWS: Mention Guile scripting.
12504 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12505 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12506 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12507 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12508 (CLIBS): Add GUILE_LIBS.
12509 (install-guile): New rule.
12510 (guile.o): New rule.
12511 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12512 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12513 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12514 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12515 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12516 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12517 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12518 * configure.ac: New option --with-guile.
12519 * configure: Regenerate.
12520 * config.in: Regenerate.
12521 * auto-load.c: Remove #include "python/python.h". Add #include
12522 "gdb/section-scripts.h".
12523 (source_section_scripts): Handle Guile scripts.
12524 (_initialize_auto_load): Add name of Guile objfile script to
12525 scripts-directory help text.
12526 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12527 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12528 (struct breakpoint): New member scm_bp_object.
12529 * defs.h (enum command_control_type): New value guile_control.
12530 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12531 "extension.h".
12532 (show_user): Update comment.
12533 (_initialize_cli_cmds): Update help text for "show user". Update help
12534 text for max-user-call-depth.
12535 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12536 "extension.h".
12537 (multi_line_command_p): Add guile_control.
12538 (print_command_lines): Handle guile_control.
12539 (execute_control_command, recurse_read_control_structure): Ditto.
12540 (process_next_line): Recognize "guile" commands.
12541 * disasm.c (gdb_disassemble_info): Make non-static.
12542 * disasm.h: #include "dis-asm.h".
12543 (struct gdbarch): Add forward decl.
12544 (gdb_disassemble_info): Declare.
12545 * extension.c: #include "guile/guile.h".
12546 (extension_languages): Add guile.
12547 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12548 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12549 * gdbtypes.c (get_unsigned_type_max): New function.
12550 (get_signed_type_minmax): New function.
12551 * gdbtypes.h (get_unsigned_type_max): Declare.
12552 (get_signed_type_minmax): Declare.
12553 * guile/README: New file.
12554 * guile/guile-internal.h: New file.
12555 * guile/guile.c: New file.
12556 * guile/guile.h: New file.
12557 * guile/scm-arch.c: New file.
12558 * guile/scm-auto-load.c: New file.
12559 * guile/scm-block.c: New file.
12560 * guile/scm-breakpoint.c: New file.
12561 * guile/scm-disasm.c: New file.
12562 * guile/scm-exception.c: New file.
12563 * guile/scm-frame.c: New file.
12564 * guile/scm-gsmob.c: New file.
12565 * guile/scm-iterator.c: New file.
12566 * guile/scm-lazy-string.c: New file.
12567 * guile/scm-math.c: New file.
12568 * guile/scm-objfile.c: New file.
12569 * guile/scm-ports.c: New file.
12570 * guile/scm-pretty-print.c: New file.
12571 * guile/scm-safe-call.c: New file.
12572 * guile/scm-string.c: New file.
12573 * guile/scm-symbol.c: New file.
12574 * guile/scm-symtab.c: New file.
12575 * guile/scm-type.c: New file.
12576 * guile/scm-utils.c: New file.
12577 * guile/scm-value.c: New file.
12578 * guile/lib/gdb.scm: New file.
12579 * guile/lib/gdb/boot.scm: New file.
12580 * guile/lib/gdb/experimental.scm: New file.
12581 * guile/lib/gdb/init.scm: New file.
12582 * guile/lib/gdb/iterator.scm: New file.
12583 * guile/lib/gdb/printing.scm: New file.
12584 * guile/lib/gdb/types.scm: New file.
12585 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12586 (VPATH): Add $(GUILE_SRCDIR).
12587 (GUILE_DIR): New variable.
12588 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12589 (all): Add stamp-guile dependency.
12590 (stamp-guile): New rule.
12591 (clean-guile, install-guile, uninstall-guile): New rules.
12592 (install-only): Add install-guile dependency.
12593 (uninstall): Add uninstall-guile dependency.
12594 (clean): Add clean-guile dependency.
12595
12596 2014-02-09 Doug Evans <xdje42@gmail.com>
12597
12598 Revert this patch (which I approved, mea culpa).
12599
12600 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12601
12602 * Makefile.in (all-lib): Remove.
12603 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12604
12605 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12606
12607 Fix Python stack corruption.
12608 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12609 gdb_py_longest.
12610
12611 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12612
12613 * Makefile.in (all-lib): Remove.
12614 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12615
12616 2014-02-07 Doug Evans <dje@google.com>
12617
12618 * extension-priv.h (extension_language_script_ops): Add comment.
12619 (extension_language_ops): Add comment.
12620 (active_ext_lang_state): Fix typo in comment.
12621
12622 2014-02-07 Pedro Alves <palves@redhat.com>
12623
12624 PR breakpoints/16292
12625 * infrun.c (handle_signal_stop) <signal arrives while stepping
12626 over a breakpoint>: Switch back to the stepping thread.
12627
12628 2014-02-07 Yao Qi <yao@codesourcery.com>
12629
12630 * target.c (target_xfer_partial): Return zero if LEN is zero.
12631
12632 2014-02-07 Yao Qi <yao@codesourcery.com>
12633
12634 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12635 (ld_so_xfer_auxv): Likewise.
12636 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12637 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12638 * corelow.c (core_xfer_partial): Likewise.
12639 * ctf.c (ctf_xfer_partial): Likewise.
12640 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12641 (darwin_xfer_partial): Likewise.
12642 * exec.c (exec_xfer_partial): Likewise.
12643 * gnu-nat.c (gnu_xfer_partial): Likewise.
12644 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12645 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12646 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12647 * linux-nat.c (linux_xfer_siginfo): Likewise.
12648 (linux_proc_xfer_spu): Likewise.
12649 * procfs.c (procfs_xfer_partial): Likewise.
12650 * record-full.c (record_full_xfer_partial): Likewise.
12651 (record_full_core_xfer_partial): Likewise.
12652 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12653 * remote.c (remote_write_qxfer): Likewise.
12654 (remote_write_qxfer, remote_read_qxfer): Likewise.
12655 (remote_xfer_partial): Likewise.
12656 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12657 (rs6000_xfer_shared_libraries): Likewise.
12658 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12659 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12660 (spu_xfer_partial): Likewise.
12661 * target.c (memory_xfer_partial_1): Likewise.
12662 * tracepoint.c (tfile_xfer_partial): Likewise.
12663 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12664 (windows_xfer_partial): Likewise.
12665
12666 2014-02-07 Yao Qi <yao@codesourcery.com>
12667
12668 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12669 comments.
12670 (core_xfer_shared_libraries_aix): Likewise.
12671 * gdbarch.c, gdbarch.h: Regenerated.
12672 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12673 ULONGEST. Change 'len_avail' type to ULONGEST.
12674 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12675 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12676 declaration.
12677 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12678
12679 2014-02-07 Yao Qi <yao@codesourcery.com>
12680
12681 * corefile.c (memory_error): Get 'exception' from ERR and pass
12682 'exception' to throw_error.
12683
12684 2014-02-06 Doug Evans <xdje42@gmail.com>
12685
12686 * configure.ac (libpython checking): Remove all but python.o from
12687 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12688 * configure: Regenerate.
12689
12690 * Makefile.in (SFILES): Add extension.c.
12691 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12692 (COMMON_OBS): Add extension.o.
12693 * extension.h: New file.
12694 * extension-priv.h: New file.
12695 * extension.c: New file.
12696
12697 * python/python-internal.h: #include "extension.h".
12698 (gdbpy_auto_load_enabled): Declare.
12699 (gdbpy_apply_val_pretty_printer): Declare.
12700 (gdbpy_apply_frame_filter): Declare.
12701 (gdbpy_preserve_values): Declare.
12702 (gdbpy_breakpoint_cond_says_stop): Declare.
12703 (gdbpy_breakpoint_has_cond): Declare.
12704 (void source_python_script_for_objfile): Delete.
12705 * python/python.c: #include "extension-priv.h".
12706 Delete inclusion of "observer.h".
12707 (extension_language_python): Moved here and renamed from
12708 script_language_python in py-auto-load.c.
12709 Redefined to be of type extension_language_defn.
12710 (python_extension_script_ops): New global.
12711 (python_extension_ops): New global.
12712 (struct python_env): New member previous_active.
12713 (restore_python_env): Call restore_active_ext_lang.
12714 (ensure_python_env): Call set_active_ext_lang.
12715 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12716 New arg extlang.
12717 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12718 New arg extlang.
12719 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12720 New arg extlang.
12721 (gdbpy_eval_from_control_command): Renamed from
12722 eval_python_from_control_command, made static. New arg extlang.
12723 (gdbpy_source_script) Renamed from source_python_script, made static.
12724 New arg extlang.
12725 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12726 result to int. New arg extlang.
12727 (gdbpy_source_objfile_script): Renamed from
12728 source_python_script_for_objfile, made static. New arg extlang.
12729 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12730 static. New args extlang, extlang_printers. Change result type to
12731 "void".
12732 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12733 static. New arg extlang. Rename arg printers to extlang_printers
12734 and change type to ext_lang_type_printers *.
12735 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12736 static. Replace argument arg with extlang, extlang_printers.
12737 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12738 (!HAVE_PYTHON, source_python_script): Delete.
12739 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12740 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12741 (!HAVE_PYTHON, start_type_printers): Delete.
12742 (!HAVE_PYTHON, apply_type_printers): Delete.
12743 (!HAVE_PYTHON, free_type_printers): Delete.
12744 (_initialize_python): Delete call to observer_attach_before_prompt.
12745 (finalize_python): Set/restore active extension language.
12746 (gdbpy_finish_initialization) Renamed from
12747 finish_python_initialization, made static. New arg extlang.
12748 (gdbpy_initialized): New function.
12749 * python/python.h: #include "extension.h". Delete #include
12750 "value.h", "mi/mi-cmds.h".
12751 (extension_language_python): Declare.
12752 (GDBPY_AUTO_FILE_NAME): Delete.
12753 (enum py_bt_status): Moved to extension.h and renamed to
12754 ext_lang_bt_status.
12755 (enum frame_filter_flags): Moved to extension.h.
12756 (enum py_frame_args): Moved to extension.h and renamed to
12757 ext_lang_frame_args.
12758 (finish_python_initialization): Delete.
12759 (eval_python_from_control_command): Delete.
12760 (source_python_script): Delete.
12761 (apply_val_pretty_printer): Delete.
12762 (apply_frame_filter): Delete.
12763 (preserve_python_values): Delete.
12764 (gdbpy_script_language_defn): Delete.
12765 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12766 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12767
12768 * auto-load.c: #include "extension.h".
12769 (GDB_AUTO_FILE_NAME): Delete.
12770 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12771 (script_language_gdb): Delete, moved to extension.c and renamed to
12772 extension_language_gdb.
12773 (source_gdb_script_for_objfile): Delete.
12774 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12775 (loaded_script): Change type of language member to
12776 struct extension_language_defn *.
12777 (init_loaded_scripts_info): Initialize
12778 unsupported_script_warning_printed.
12779 (maybe_add_script): Make static. Change type of language arg to
12780 struct extension_language_defn *.
12781 (clear_section_scripts): Reset unsupported_script_warning_printed.
12782 (auto_load_objfile_script_1): Rewrite to use extension language API.
12783 (auto_load_objfile_script): Make public. Remove support-compiled-in
12784 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12785 (source_section_scripts): Rewrite to use extension language API.
12786 (load_auto_scripts_for_objfile): Rewrite to use
12787 auto_load_scripts_for_objfile.
12788 (collect_matching_scripts_data): Change type of language member to
12789 struct extension_language_defn *.
12790 (auto_load_info_scripts): Change type of language arg to
12791 struct extension_language_defn *.
12792 (unsupported_script_warning_print): New function.
12793 (script_not_found_warning_print): Make static.
12794 (_initialize_auto_load): Rewrite construction of scripts-directory
12795 help.
12796 * auto-load.h (struct objfile): Add forward decl.
12797 (struct script_language): Delete.
12798 (struct auto_load_pspace_info): Add forward decl.
12799 (struct extension_language_defn): Add forward decl.
12800 (maybe_add_script): Delete.
12801 (auto_load_objfile_script): Declare.
12802 (script_not_found_warning_print): Delete.
12803 (auto_load_info_scripts): Update prototype.
12804 (auto_load_gdb_scripts_enabled): Declare.
12805 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12806 auto_load_python_scripts_enabled and made public.
12807 (script_language_python): Delete, moved to python.c.
12808 (gdbpy_script_language_defn): Delete.
12809 (info_auto_load_python_scripts): Update to use
12810 extension_language_python.
12811
12812 * breakpoint.c (condition_command): Replace call to
12813 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12814 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12815 with call to breakpoint_ext_lang_cond_says_stop.
12816 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12817 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12818 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12819 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12820 New arg slang.
12821 (local_setattro): Print name of extension language with existing
12822 stop condition.
12823
12824 * valprint.c (val_print, value_print): Update to call
12825 apply_ext_lang_val_pretty_printer.
12826 * cp-valprint.c (cp_print_value): Update call to
12827 apply_ext_lang_val_pretty_printer.
12828 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12829 (gdbpy_apply_val_pretty_printer): Renamed from
12830 apply_val_pretty_printer. New arg extlang.
12831 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12832
12833 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12834 extension language API.
12835 * cli/cli-script.c (execute_control_command): Update to call
12836 eval_ext_lang_from_control_command.
12837
12838 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12839 enum ext_lang_bt_status values. Update call to
12840 apply_ext_lang_frame_filter.
12841 (mi_cmd_stack_list_locals): Ditto.
12842 (mi_cmd_stack_list_args): Ditto.
12843 (mi_cmd_stack_list_variables): Ditto.
12844 * mi/mi-main.c: Delete #include "python/python-internal.h".
12845 Add #include "extension.h".
12846 (mi_cmd_list_features): Replace reference to python internal variable
12847 gdb_python_initialized with call to ext_lang_initialized_p.
12848
12849 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12850 Update to use enum ext_lang_frame_args. Update to call
12851 apply_ext_lang_frame_filter.
12852 * python/py-framefilter.c (extract_sym): Update to use enum
12853 ext_lang_bt_status.
12854 (extract_value, py_print_type, py_print_value): Ditto.
12855 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12856 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12857 (py_print_frame): Ditto.
12858 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12859 New arg extlang. Update to use enum ext_lang_bt_status.
12860
12861 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12862 finish_python_initialization. Replace with call to
12863 finish_ext_lang_initialization.
12864
12865 * typeprint.c (do_free_global_table): Update to call
12866 free_ext_lang_type_printers.
12867 (create_global_typedef_table): Update to call
12868 start_ext_lang_type_printers.
12869 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12870 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12871 (type_print_options): Change type of global_printers from "void *"
12872 to "struct ext_lang_type_printers *".
12873
12874 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12875 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12876 (gdbpy_preserve_values): Renamed from preserve_python_values.
12877 New arg extlang.
12878 (!HAVE_PYTHON, preserve_python_values): Delete.
12879
12880 * utils.c (quit_flag): Delete, moved to extension.c.
12881 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12882 extension.c.
12883
12884 * eval.c: Delete #include "python/python.h".
12885 * main.c: Delete #include "python/python.h".
12886
12887 * defs.h: Update comment.
12888
12889 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12890
12891 GDB 7.7 released.
12892
12893 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12894
12895 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12896 defined.
12897
12898 2014-02-05 Yao Qi <yao@codesourcery.com>
12899
12900 * remote.c (remote_pass_signals): Remove local 'buf' and use
12901 rs->buf.
12902 (remote_program_signals): Likewise.
12903
12904 2014-02-05 Yao Qi <yao@codesourcery.com>
12905
12906 * ctf.c: Include "inferior.h" and "gdbthread.h".
12907 (CTF_PID): A new macro.
12908 (ctf_open): Call inferior_appeared and add_thread_silent.
12909 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12910 (ctf_thread_alive): New function.
12911 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12912
12913 2014-02-05 Yao Qi <yao@codesourcery.com>
12914
12915 Revert this patch:
12916
12917 2013-05-24 Yao Qi <yao@codesourcery.com>
12918
12919 * tracepoint.c (TFILE_PID): Remove.
12920 (tfile_open): Don't add thread and inferior.
12921 (tfile_close): Don't set 'inferior_ptid'. Don't call
12922 exit_inferior_silent.
12923 (tfile_thread_alive): Remove.
12924 (init_tfile_ops): Don't set field 'to_thread_alive' of
12925 tfile_ops.
12926
12927 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12928
12929 * remote.c (remote_start_remote): Call remote_check_symbols even
12930 if only symbol-file (not file) has been given.
12931
12932 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12933
12934 * gdbarch.sh (skip_entrypoint): New callback.
12935 * gdbarch.c, gdbarch.h: Regenerate.
12936 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12937 * infrun.c (fill_in_stop_func): Likewise.
12938 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12939 (ppc_elfv2_elf_make_msymbol_special): New function.
12940 (ppc_elfv2_skip_entrypoint): Likewise.
12941 (ppc_linux_init_abi): Install them for ELFv2.
12942
12943 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12944
12945 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12946 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12947 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12948 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12949 structures returned in GPRs.
12950
12951 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12952
12953 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12954 offset to the stack parameter list for the ELFv2 ABI.
12955
12956 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12957
12958 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12959 set_gdbarch_convert_from_func_ptr_addr and
12960 set_gdbarch_elf_make_msymbol_special for ELFv1.
12961 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12962 function descriptors on ELFv1.
12963 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12964 set up r12 at function entry.
12965
12966 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12967
12968 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12969 (struct gdbarch_tdep): New member elf_abi.
12970
12971 * rs6000-tdep.c: Include "elf/ppc64.h".
12972 (rs6000_gdbarch_init): Detect ELF ABI version.
12973
12974 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12975
12976 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12977 within a register pair holding a DFP 128-bit value on little-endian.
12978 (ppc64_sysv_abi_return_value_base): Likewise.
12979 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12980 (dfp_pseudo_register_write): Likewise.
12981
12982 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12983
12984 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12985 offset on little-endian when passing _Decimal32.
12986 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12987
12988 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12989
12990 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12991 of the overlapped FP register within the VSX register on little-
12992 endian platforms.
12993 (efpr_pseudo_register_write): Likewise.
12994
12995 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12996
12997 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12998 offset on little-endian when passing small structures.
12999
13000 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13001
13002 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13003 (struct ppc64_sysv_argpos): New data structure.
13004 (ppc64_sysv_abi_push_float): Remove.
13005 (ppc64_sysv_abi_push_val): New function.
13006 (ppc64_sysv_abi_push_integer): Likewise.
13007 (ppc64_sysv_abi_push_freg): Likewise.
13008 (ppc64_sysv_abi_push_vreg): Likewise.
13009 (ppc64_sysv_abi_push_param): Likewise.
13010 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13011 (ppc64_sysv_abi_return_value_base): New function.
13012 (ppc64_sysv_abi_return_value): Refactor to use it.
13013
13014 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13015
13016 * NEWS: Document new target powerpc64le-*-linux*.
13017
13018 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13019
13020 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13021 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13022 core dumps.
13023 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13024 register set used in ELF core dumps. Add floating-point register set.
13025
13026 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13027
13028 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13029 dwarf2_to_gdb[] table using symbolic constants. Adjust
13030 penultimate entry from number representing the PC register
13031 to symbolic constant representing the MDR register. Add
13032 constant for the PC register to the end of the table.
13033
13034 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13035
13036 * bsd-kvm.c: Include <sys/param.h>
13037
13038 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13039
13040 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13041
13042 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13043
13044 * ada-lang.h (clear_ada_sym_cache): Delete.
13045
13046 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13047
13048 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13049
13050 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13051
13052 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13053 the sigreturn register save area only if the syscall is
13054 sigreturn.
13055
13056 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13057
13058 * valops.c (value_slice): Minor reformatting.
13059
13060 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13061
13062 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13063
13064 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13065
13066 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13067 New static globals.
13068 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13069 (ada_ignore_descriptive_types_p): New static global.
13070 (find_parallel_type_by_descriptive_type): Return immediately
13071 if ada_ignore_descriptive_types_p is set.
13072 (_initialize_ada_language): Register new commands "maintenance
13073 set ada", "maintenance show ada", "maintenance set ada
13074 ignore-descriptive-types" and "maintenance show ada
13075 ignore-descriptive-types".
13076 * NEWS: Add entry for new "maint ada set/show
13077 ignore-descriptive-types" commands.
13078
13079 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13080
13081 * record-btrace.c (record_btrace_close): Call btrace_teardown
13082 for all threads.
13083
13084 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13085
13086 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13087 "ui-out.h".
13088
13089 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13090
13091 * ada-typeprint (type_is_full_subrange_of_target_type):
13092 New function.
13093 (print_range): Add parameter bounds_prefered_p. If not set,
13094 try printing range types using the name of their base type.
13095 (print_range_type): Add parameter bounds_prefered_p.
13096 Use it in call to print_range.
13097 (print_array_type, ada_print_type): Update calls to print_range
13098 and print_range_type.
13099
13100 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13101
13102 * ada-typeprint.c (print_array_type, print_choices, print_range)
13103 (print_range_bound, print_dynamic_range_bound, print_range_type):
13104 Remove declaration.
13105
13106 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13107
13108 * ada-typeprint.c (print_range): Add missing empty line
13109 after local declaration.
13110
13111 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13112
13113 * ada-valprint.c (print_optional_low_bound): Get index_type's
13114 target type for as long as it is a TYPE_CODE_RANGE.
13115
13116 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13117
13118 * procfs.c (procfs_make_note_section): Remove assertion and
13119 associated comment.
13120
13121 2014-01-24 Yao Qi <yao@codesourcery.com>
13122
13123 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13124 * corelow.c (get_core_siginfo): Likewise.
13125
13126 2014-01-24 Yao Qi <yao@codesourcery.com>
13127
13128 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13129 ULONGEST. Don't check 'len' is negative.
13130 (remote_write_bytes): Change type of 'len' to ULONGEST.
13131
13132 2014-01-23 Tom Tromey <tromey@redhat.com>
13133
13134 PR python/16485:
13135 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13136 Handle exception from frame.block.
13137 (FrameVars.fetch_frame_locals): Likewise.
13138
13139 2014-01-23 Tom Tromey <tromey@redhat.com>
13140
13141 PR python/16487:
13142 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13143 on a NULL pointer. Move "goto error" to correct place.
13144
13145 2014-01-23 Tom Tromey <tromey@redhat.com>
13146
13147 PR python/16491:
13148 * python/py-framefilter.c (apply_frame_filter): Call
13149 ensure_python_env after computing gdbarch.
13150
13151 2014-01-23 Yao Qi <yao@codesourcery.com>
13152
13153 * target.c (raw_memory_xfer_partial): Change argument type
13154 from void * to gdb_byte *.
13155 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13156
13157 2014-01-22 Doug Evans <dje@google.com>
13158
13159 New gdbserver option --debug-format=timestamp.
13160 * NEWS: Mention it.
13161
13162 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13163
13164 * syscalls/s390x-linux.xml: New file.
13165 * syscalls/s390-linux.xml: New file.
13166 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13167 (XML_SYSCALL_FILENAME_S390X): Likewise.
13168 (op_svc): New enum value for SVC opcode.
13169 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13170 (s390_linux_get_syscall_number): New function.
13171 (s390_gdbarch_init): Register '*get_syscall_number' and the
13172 syscall xml file name.
13173 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13174 "s390-linux.xml" and "s390x-linux.xml".
13175 * NEWS: Announce new feature.
13176
13177 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13178
13179 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13180
13181 2014-01-22 Pedro Alves <palves@redhat.com>
13182
13183 * xtensa-config.c: Include defs.h.
13184
13185 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13186
13187 * common/common-utils.h: Add "ARI:" comment beside __func__
13188 reference.
13189
13190 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13191
13192 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13193 documentation a bit.
13194
13195 2014-01-21 Roland McGrath <mcgrathr@google.com>
13196
13197 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13198 * configure: Regenerate.
13199 * aclocal.m4: Regenerate.
13200 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13201 New substituted variables.
13202 (install-strip): New target.
13203 (INSTALL_SCRIPT): New substituted variable.
13204 (FLAGS_TO_PASS): Add it.
13205 (install-only): Use $(INSTALL_SCRIPT) rather than
13206 $(INSTALL_PROGRAM) for gcore.
13207
13208 2014-01-20 Tom Tromey <tromey@redhat.com>
13209
13210 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13211 together.
13212
13213 2014-01-20 Tom Tromey <tromey@redhat.com>
13214
13215 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13216 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13217 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13218 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13219 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13220 (struct cmd_list_element) <flags>: Remove.
13221 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13222 doc_allocated>: New fields.
13223 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13224 bitfields.
13225 * maint.c (maintenance_do_deprecate): Update.
13226 * top.c (execute_command): Update.
13227
13228 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13229
13230 * xtensa-linux-nat.c: Include asm/ptrace.h.
13231
13232 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13233
13234 * Makefile.in (SFILES): Add d-support.c.
13235 (COMMON_OBS): Add d-support.o.
13236 * d-lang.h (d_parse_symbol): Add comment, now defined in
13237 d-support.c.
13238 * d-lang.c (parse_call_convention)
13239 (parse_attributes, parse_function_types)
13240 (parse_function_args, parse_type, parse_identifier)
13241 (call_convention_p, d_parse_symbol): Move functions to ...
13242 * d-support.c: ... New file.
13243
13244 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13245
13246 * d-lang.h (d_parse_symbol): Add declaration.
13247 * d-lang.c (extract_identifiers)
13248 (extract_type_info): Remove functions.
13249 (parse_call_convention, parse_attributes)
13250 (parse_function_types, parse_function_args)
13251 (parse_type, parse_identifier, call_convention_p)
13252 (d_parse_symbol): New functions.
13253 (d_demangle): Use d_parse_symbol to demangle D symbols.
13254
13255 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13256
13257 * d-lang.h (struct builtin_d_type): New data type.
13258 (builtin_d_type): Add declaration.
13259 * d-lang.c (d_language_arch_info, build_d_types)
13260 (builtin_d_type): New functions.
13261 (enum d_primitive_types): New data type.
13262 (d_language_defn): Change c_language_arch_info to
13263 d_language_arch_info.
13264 (d_type_data): New static variable.
13265 (_initialize_d_language): Initialize d_type_data.
13266
13267 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13268
13269 * d-lang.h (d_main_name): Add declaration.
13270 * d-lang.c (d_main_name): New function.
13271 * symtab.c (find_main_name): Add call to d_main_name.
13272
13273 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13274
13275 * d-lang.c (d_language_defn): Change macro_expansion_c to
13276 macro_expansion_no.
13277
13278 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13279
13280 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13281
13282 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13283
13284 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13285 gdb_exception" declaration.
13286 * remote.c (getpkt_or_notif_sane): Likewise.
13287
13288 2014-01-17 Doug Evans <dje@google.com>
13289
13290 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13291 function, contents of dirnames_to_char_ptr_vec_append moved here.
13292 (delim_string_to_char_ptr_vec): New function.
13293 (dirnames_to_char_ptr_vec_append): Rewrite.
13294 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13295
13296 2014-01-17 Doug Evans <dje@google.com>
13297
13298 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13299 and moved here ...
13300 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13301 #include "common-utils.h".
13302 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13303 * common/vec.h (VEC_ASSERT_PASS): Update.
13304 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13305 (MACH_CHECK_ERROR): Update.
13306
13307 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13308
13309 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13310 comments.
13311 * gdbarch.h: Regenerate.
13312
13313 2014-01-16 Tom Tromey <tromey@redhat.com>
13314
13315 * value.c (struct value) <regnum>: Move earlier.
13316
13317 2014-01-16 Tom Tromey <tromey@redhat.com>
13318
13319 * remote.c (extended_remote_create_inferior): Rename from
13320 extended_remote_create_inferior_1. Add "ops" argument. Remove
13321 old implementation.
13322
13323 2014-01-16 Pedro Alves <palves@redhat.com>
13324
13325 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13326 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13327 the backchain.
13328
13329 2014-01-16 Doug Evans <dje@google.com>
13330
13331 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13332
13333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13334
13335 * btrace.h (btrace_thread_flag): New.
13336 (struct btrace_thread_info) <flags>: New.
13337 * record-btrace.c (record_btrace_resume_thread)
13338 (record_btrace_find_thread_to_move, btrace_step_no_history)
13339 (btrace_step_stopped, record_btrace_start_replaying)
13340 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13341 (record_btrace_find_resume_thread): New.
13342 (record_btrace_resume, record_btrace_wait): Extend.
13343 (record_btrace_can_execute_reverse): New.
13344 (record_btrace_open): Fail in non-stop mode.
13345 (record_btrace_set_replay): Split into this, ...
13346 (record_btrace_stop_replaying): ... this, ...
13347 (record_btrace_clear_histories): ... and this.
13348 (init_record_btrace_ops): Init to_can_execute_reverse.
13349 * NEWS: Announce it.
13350
13351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13352
13353 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13354 (forward_target_decr_pc_after_break)
13355 (target_decr_pc_after_break): New.
13356 * target.c (forward_target_decr_pc_after_break)
13357 (target_decr_pc_after_break): New.
13358 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13359 instead of gdbarch_decr_pc_after_break.
13360 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13361 instead of gdbarch_decr_pc_after_break.
13362 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13363 instead of gdbarch_decr_pc_after_break.
13364 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13365 instead of gdbarch_decr_pc_after_break.
13366 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13367 instead of gdbarch_decr_pc_after_break.
13368 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13369 instead of gdbarch_decr_pc_after_break.
13370
13371 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13372
13373 * btrace.c: Include regcache.h.
13374 (btrace_add_pc): New.
13375 (btrace_enable): Call btrace_add_pc.
13376 (btrace_is_empty): New.
13377 * btrace.h (btrace_is_empty): New.
13378 * record-btrace.c (require_btrace, record_btrace_info): Call
13379 btrace_is_empty.
13380
13381 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13382
13383 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13384 Support delta reads.
13385 (linux_disable_btrace): Change return type.
13386 * common/linux-btrace.h (linux_read_btrace): Change parameters
13387 and return type to allow error reporting. Update users.
13388 (linux_disable_btrace): Change return type. Update users.
13389 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13390 New.
13391 (btrace_error): New.
13392 (btrace_block) <begin>: Comment on BEGIN == 0.
13393 * btrace.c (btrace_compute_ftrace): Start from the end of
13394 the current trace.
13395 (btrace_stitch_trace, btrace_clear_history): New.
13396 (btrace_fetch): Read delta trace, return if replaying.
13397 (btrace_clear): Move clear history code to btrace_clear_history.
13398 (parse_xml_btrace): Throw an error if parsing failed.
13399 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13400 and return type to allow error reporting.
13401 (target_read_btrace): Change parameters and return type to allow
13402 error reporting.
13403 * target.c (target_read_btrace): Update.
13404 * remote.c (remote_read_btrace): Support delta reads. Pass
13405 errors on.
13406 * NEWS: Announce it.
13407
13408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13409
13410 * record.h (record_btrace_frame_unwind)
13411 (record_btrace_tailcall_frame_unwind): New declarations.
13412 * dwarf2-frame: Include record.h
13413 (dwarf2_frame_cfa): Throw an error for btrace frames.
13414 * record-btrace.c: Include hashtab.h.
13415 (btrace_get_bfun_name): New.
13416 (btrace_call_history): Call btrace_get_bfun_name.
13417 (struct btrace_frame_cache): New.
13418 (bfcache): New.
13419 (bfcache_hash, bfcache_eq, bfcache_new): New.
13420 (btrace_get_frame_function): New.
13421 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13422 (record_btrace_frame_this_id): Compute own id.
13423 (record_btrace_frame_prev_register): Provide PC, throw_error
13424 for all other registers.
13425 (record_btrace_frame_sniffer): Detect btrace frames.
13426 (record_btrace_tailcall_frame_sniffer): New.
13427 (record_btrace_frame_dealloc_cache): New.
13428 (record_btrace_frame_unwind): Add new functions.
13429 (record_btrace_tailcall_frame_unwind): New.
13430 (_initialize_record_btrace): Allocate cache.
13431 * btrace.c (btrace_clear): Call reinit_frame_cache.
13432 * NEWS: Announce it.
13433
13434 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13435
13436 * record-btrace.c (record_btrace_set_replay)
13437 (record_btrace_goto_begin, record_btrace_goto_end)
13438 (record_btrace_goto): New.
13439 (init_record_btrace_ops): Initialize them.
13440 * NEWS: Announce it.
13441
13442 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13443
13444 * record-btrace.c (record_btrace_find_new_threads)
13445 (record_btrace_thread_alive): New.
13446 (init_record_btrace_ops): Initialize to_find_new_threads and
13447 to_thread_alive.
13448
13449 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13450
13451 * record-btrace.c (record_btrace_resume): New.
13452 (record_btrace_wait): New.
13453 (init_record_btrace_ops): Initialize to_wait and to_resume.
13454
13455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13456
13457 * record-btrace.c (record_btrace_xfer_partial)
13458 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13459 (record_btrace_allow_memory_access): New.
13460 (init_record_btrace_ops): Initialize new methods.
13461 * target.c (raw_memory_xfer_partial): Bail out if target reports
13462 that this memory is not available.
13463
13464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13465
13466 * target.h (target_ops) <to_insert_breakpoint>
13467 <to_remove_breakpoint>: Add target_ops parameter.
13468 (forward_target_insert_breakpoint): New.
13469 (forward_target_remove_breakpoint): New.
13470 (memory_remove_breakpoint, memory_insert_breakpoint):
13471 Add target_ops parameter.
13472 * target.c (target_insert_breakpoint): Split into this and ...
13473 (forward_target_insert_breakpoint): ... this.
13474 (target_remove_breakpoint): Split into this and ...
13475 (forward_target_remove_breakpoint): ... this.
13476 (debug_to_insert_breakpoint): Add target_ops parameter.
13477 Call forward_target_insert_breakpoint.
13478 (debug_to_remove_breakpoint): Add target_ops parameter.
13479 Call forward_target_remove_breakpoint.
13480 (update_current_target): Do not inherit or default to_insert_breakpoint
13481 and to_remove_breakpoint.
13482 * corelow.c (ignore): Add target_ops parameter.
13483 * exec.c (ignore): Add target_ops parameter.
13484 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13485 Add target_ops parameter.
13486 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13487 Add target_ops parameter.
13488 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13489 Add target_ops parameter.
13490 * record-full.c (record_full_beneath_to_insert_breakpoint)
13491 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13492 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13493 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13494 (record_full_core_remove_breakpoint): Add target_ops parameter.
13495 Update users.
13496 (record_full_beneath_to_insert_breakpoint_ops)
13497 (record_full_beneath_to_remove_breakpoint_ops)
13498 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13499 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13500 tmp_to_remove_breakpoint_ops,
13501 record_full_beneath_to_insert_breakpoint_ops, and
13502 record_full_beneath_to_remove_breakpoint_ops.
13503 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13504 (m32r_remove_breakpoint): Add target_ops parameter.
13505 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13506 Add target_ops parameter.
13507 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13508 Add target_ops parameter.
13509
13510 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13511 Markus Metzger <markus.t.metzger@intel.com>
13512
13513 * record-btrace.c: Include frame-unwind.h.
13514 (record_btrace_frame_unwind_stop_reason)
13515 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13516 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13517 New.
13518 (init_record_btrace_ops): Install it.
13519
13520 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13521
13522 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13523 get_prev_frame_1.
13524
13525 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13526
13527 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13528 earlier.
13529
13530 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13531
13532 * frame-unwind.c: Include target.h.
13533 (frame_unwind_try_unwinder): New function with code from ...
13534 (frame_unwind_find_by_frame): ... here. New variable
13535 unwinder_from_target, call also target_get_unwinder)
13536 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13537 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13538 * target.h (struct target_ops): New fields to_get_unwinder and
13539 to_get_tailcall_unwinder.
13540 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13541
13542 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13543
13544 * record-btrace.c (record_btrace_fetch_registers)
13545 (record_btrace_store_registers)
13546 (record_btrace_to_prepare_to_store): New.
13547 (init_record_btrace_ops): Add the above.
13548
13549 2014-01-16 Tom Tromey <tromey@redhat.com>
13550
13551 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13552 * target.h (struct target_ops) <to_prepare_to_store>: Add
13553 argument.
13554 (target_prepare_to_store): Add argument.
13555 * target.c (debug_to_prepare_to_store): Add argument.
13556 (update_current_target): Update.
13557 * remote.c (remote_prepare_to_store): Add 'self' argument.
13558 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13559 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13560 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13561 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13562 argument.
13563 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13564 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13565 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13566 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13567 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13568
13569 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13570
13571 * btrace.h (replay) <replay>: New.
13572 (btrace_is_replaying): New.
13573 * btrace.c (btrace_clear): Free replay iterator.
13574 (btrace_is_replaying): New.
13575 * record-btrace.c (record_btrace_is_replaying): New.
13576 (record_btrace_info): Print insn number if replaying.
13577 (record_btrace_insn_history): Start at replay position.
13578 (record_btrace_call_history): Start at replay position.
13579 (init_record_btrace_ops): Init to_record_is_replaying.
13580
13581 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13582
13583 * record-btrace.c (record_btrace_insn_history_range): Include
13584 end.
13585 (record_btrace_insn_history_from): Adjust range.
13586 (record_btrace_call_history_range): Include
13587 end.
13588 (record_btrace_call_history_from): Adjust range.
13589 * NEWS: Announce changes.
13590
13591 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13592
13593 * record.h (enum record_print_flag)
13594 <record_print_indent_calls>: New.
13595 * record.c (get_call_history_modifiers): Recognize /c modifier.
13596 (_initialize_record): Document /c modifier.
13597 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13598 Reorder fields. Optionally indent the function name. Update
13599 all users.
13600 * NEWS: Announce changes.
13601
13602 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13603
13604 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13605
13606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13607
13608 * btrace.c (ftrace_new_function): Start counting at one.
13609 * record-btrace.c (record_btrace_info): Adjust number of calls
13610 and insns.
13611 * NEWS: Announce it.
13612
13613 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13614
13615 * record-btrace.c (btrace_call_history_insn_range): Print
13616 insn range as [begin, end].
13617
13618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13619
13620 * btrace.h (struct btrace_func_link): New.
13621 (enum btrace_function_flag): New.
13622 (struct btrace_inst): Rename to ...
13623 (struct btrace_insn): ...this. Update all users.
13624 (struct btrace_func) <ibegin, iend>: Remove.
13625 (struct btrace_func_link): New.
13626 (struct btrace_func): Rename to ...
13627 (struct btrace_function): ...this. Update all users.
13628 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13629 (number, level, flags>: New.
13630 (struct btrace_insn_iterator): Rename to ...
13631 (struct btrace_insn_history): ...this.
13632 Update all users.
13633 (struct btrace_insn_iterator, btrace_call_iterator): New.
13634 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13635 (struct btrace_target_info) <begin, end, level>
13636 <insn_history, call_history>: New.
13637 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13638 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13639 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13640 (btrace_call_number, btrace_call_begin, btrace_call_end)
13641 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13642 (btrace_find_function_by_number, btrace_set_insn_history)
13643 (btrace_set_call_history): New.
13644 * btrace.c (btrace_init_insn_iterator)
13645 (btrace_init_func_iterator, compute_itrace): Remove.
13646 (ftrace_print_function_name, ftrace_print_filename)
13647 (ftrace_skip_file): Change
13648 parameter to const.
13649 (ftrace_init_func): Remove.
13650 (ftrace_debug): Use new btrace_function fields.
13651 (ftrace_function_switched): Also consider gaining and
13652 losing symbol information).
13653 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13654 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13655 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13656 New.
13657 (ftrace_new_function): Move. Remove debug print.
13658 (ftrace_update_lines, ftrace_update_insns): New.
13659 (ftrace_update_function): Check for call, ret, and jump.
13660 (compute_ftrace): Renamed to ...
13661 (btrace_compute_ftrace): ...this. Rewritten to compute call
13662 stack.
13663 (btrace_fetch, btrace_clear): Updated.
13664 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13665 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13666 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13667 (btrace_call_number, btrace_call_begin, btrace_call_end)
13668 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13669 (btrace_find_function_by_number, btrace_set_insn_history)
13670 (btrace_set_call_history): New.
13671 * record-btrace.c (require_btrace): Use new btrace thread
13672 info fields.
13673 (record_btrace_info, btrace_insn_history)
13674 (record_btrace_insn_history, record_btrace_insn_history_range):
13675 Use new btrace thread info fields and new iterator.
13676 (btrace_func_history_src_line): Rename to ...
13677 (btrace_call_history_src_line): ...this. Use new btrace
13678 thread info fields.
13679 (btrace_func_history): Rename to ...
13680 (btrace_call_history): ...this. Use new btrace thread info
13681 fields and new iterator.
13682 (record_btrace_call_history, record_btrace_call_history_range):
13683 Use new btrace thread info fields and new iterator.
13684
13685 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13686
13687 * frame.h (frame_id_build_unavailable_stack_special): New.
13688 * frame.c (frame_id_build_unavailable_stack_special): New.
13689
13690 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13691
13692 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13693 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13694 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13695 to gdbarch.
13696 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13697 (i386_insn_is_jump, i386_jmp_p): New.
13698 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13699 insn_is_jump to gdbarch.
13700 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13701 * gdbarch.h: Regenerated.
13702 * gdbarch.c: Regenerated.
13703 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13704 (default_insn_is_jump): New.
13705 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13706 (default_insn_is_jump): New.
13707
13708 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13709
13710 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13711 Change to ...
13712 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13713 (btrace_read_type) <btrace_read_new>: Change to ...
13714 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13715
13716 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13717
13718 * common/linux-btrace.c (linux_read_btrace): Free trace from
13719 previous iteration.
13720
13721 2014-01-15 Doug Evans <dje@google.com>
13722
13723 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13724 uint32_t.
13725
13726 2014-01-15 Tom Tromey <tromey@redhat.com>
13727
13728 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13729 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13730 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13731 (set_objfile_main_name): New function.
13732 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13733 language_of_main>: New fields.
13734 (set_objfile_main_name): Declare.
13735 * symtab.c (find_main_name): Loop over objfiles to find the main
13736 name and language.
13737 (set_main_name): Now static.
13738 (get_main_info): Add comment.
13739 * symtab.h (set_main_name): Don't declare.
13740
13741 2014-01-15 Tom Tromey <tromey@redhat.com>
13742
13743 * symtab.c (main_progspace_key): New global.
13744 (struct main_info): New.
13745 (name_of_main, language_of_main): Remove.
13746 (get_main_info, main_info_cleanup): New function.
13747 (set_main_name, main_name, main_language): Use get_main_info.
13748 (_initialize_symtab): Initialize main_progspace_key.
13749
13750 2014-01-15 Tom Tromey <tromey@redhat.com>
13751
13752 * dbxread.c (process_one_symbol): Update.
13753 * dwarf2read.c (read_partial_die): Update.
13754 * symfile.c (set_initial_language): Call main_language.
13755 * symtab.c (language_of_main): Now static.
13756 (set_main_name): Add 'lang' parameter.
13757 (find_main_name): Update.
13758 (main_language): New function.
13759 (symtab_observer_executable_changed): Update.
13760 * symtab.h (set_main_name): Update.
13761 (language_of_main): Remove.
13762 (main_language): Declare.
13763
13764 2014-01-15 Tom Tromey <tromey@redhat.com>
13765
13766 * symfile.c (init_entry_point_info): Use new "initialized" field.
13767 Update.
13768 * objfiles.h (struct entry_point) <initialized>: New field.
13769 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13770 (struct objfile) <ei>: ...here. Remove.
13771 * objfiles.c (entry_point_address_query): Update.
13772
13773 2014-01-15 Tom Tromey <tromey@redhat.com>
13774
13775 * objfiles.c (entry_point_address_query): Relocate entry point
13776 address.
13777 (objfile_relocate1): Do not relocate entry point address.
13778 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13779 <the_bfd_section_index>: New field.
13780 * symfile.c (init_entry_point_info): Find the entry point's
13781 section.
13782
13783 2014-01-15 Tom Tromey <tromey@redhat.com>
13784
13785 * solib-frv.c (enable_break): Use entry_point_address_query.
13786
13787 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13788
13789 * NEWS: Add note on improved process record-replay on
13790 arm*-linux* targets.
13791
13792 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13793
13794 * arm-tdep.c (enum arm_record_result): New enum.
13795 (arm_record_unsupported_insn): New function.
13796 (arm_record_coproc_data_proc): Removed.
13797 (thumb2_record_ld_st_multiple): New function.
13798 (thumb2_record_ld_st_dual_ex_tbb): New function.
13799 (thumb2_record_data_proc_sreg_mimm): New function.
13800 (thumb2_record_ps_dest_generic): New function.
13801 (thumb2_record_branch_misc_cntrl): New function.
13802 (thumb2_record_str_single_data): New function.
13803 (thumb2_record_ld_mem_hints): New function.
13804 (thumb2_record_ld_word): New function.
13805 (thumb2_record_lmul_lmla_div): New function.
13806 (thumb2_record_decode_insn_handler): New function.
13807 (decode_insn): Add thumb32 instruction handlers.
13808
13809 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13810
13811 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13812 (struct arm_linux_record_tdep): Declare.
13813 (arm_canonicalize_syscall): New function.
13814 (arm_all_but_pc_registers_record): New function.
13815 (arm_linux_syscall_record): New function.
13816 (arm_linux_init_abi): Add syscall recording constructs.
13817 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13818 decoding. (arm_record_coproc_data_proc): Update arm syscall
13819 decoding.
13820 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13821 <arm_syscall_record>: New field.
13822 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13823 gdb_target_obs.
13824
13825 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13826
13827 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13828 register for push instruction recording.
13829
13830 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13831
13832 * arm-tdep.c (thumb_record_misc): Update to correct logical
13833 error while recording ldm, ldmia and pop instructions.
13834
13835 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13836
13837 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13838
13839 2014-01-15 Pedro Alves <palves@redhat.com>
13840
13841 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13842 (go32_resume, go32_fetch_registers, store_register)
13843 (go32_store_registers, go32_prepare_to_store)
13844 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13845 (go32_create_inferior, go32_can_run, go32_terminal_init)
13846 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13847 declarations.
13848
13849 2014-01-15 Tom Tromey <tromey@redhat.com>
13850
13851 * target.h (async_callback_ftype): New typedef.
13852 (struct target_ops) <to_async>: Use it.
13853
13854 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13855
13856 * python/py-value.c (get_field_type): Remove unnecessary curly
13857 braces for single-statement if block.
13858
13859 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13860
13861 * python/py-type.c (convert_field): Add missing empty line
13862 after declarations.
13863
13864 2014-01-14 Doug Evans <dje@google.com>
13865
13866 * symfile.h (expand_symtabs_matching): Renamed from
13867 expand_partial_symbol_names. Update prototype.
13868 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13869 * symfile.c (expand_symtabs_matching): Renamed from
13870 expand_partial_symbol_names. New args file_matcher, kind.
13871 Rename arg fun to symbol_matcher.
13872 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13873 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13874 ada_expand_partial_symbol_name.
13875 (ada_make_symbol_completion_list): Update to call
13876 expand_symtabs_matching.
13877 (ada_add_global_exceptions): Call expand_symtabs_matching.
13878 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13879 call map_symbol_filenames.
13880 * symtab.c (sources_info): Update to call map_symbol_filenames.
13881 (search_symbols): Call expand_symtabs_matching.
13882 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13883 (default_make_symbol_completion_list_break_on): Update to call
13884 expand_symtabs_matching.
13885 (make_source_files_completion_list): Update to call
13886 map_symbol_filenames.
13887
13888 2014-01-14 Doug Evans <dje@google.com>
13889
13890 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13891 (expand_symtabs_symbol_matcher_ftype): New typedef.
13892 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13893 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13894 * symfile.c (expand_partial_symbol_names): Update to use
13895 expand_symtabs_symbol_matcher_ftype.
13896 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13897 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13898 Arg name_matcher renamed to symbol_matcher.
13899 * psymtab.c (recursively_search_psymtabs): Update to use
13900 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13901 sym_matcher.
13902 (expand_symtabs_matching_via_partial): Update to use
13903 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13904 Arg name_matcher renamed to symbol_matcher.
13905
13906 2014-01-14 Doug Evans <dje@google.com>
13907
13908 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13909 (map_partial_symbol_filenames): Ditto.
13910 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13911 (map_partial_symbol_filenames): Ditto.
13912 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13913 (map_partial_symbol_filenames): Ditto.
13914 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13915 (map_partial_symbol_filenames): Ditto.
13916 * symtab.c: Delete #include "psymtab.h".
13917
13918 2014-01-14 Pedro Alves <palves@redhat.com>
13919 Tom Tromey <tromey@redhat.com>
13920
13921 * infrun.c (use_displaced_stepping): Use find_record_target
13922 instead of RECORD_IS_USED.
13923 (adjust_pc_after_break): Use record_full_is_used instead of
13924 RECORD_IS_USED.
13925 * record-btrace.c (record_btrace_open): Call record_preopen
13926 instead of checking RECORD_IS_USED.
13927 * record-full.c (record_full_shortname)
13928 (record_full_core_shortname): New globals.
13929 (record_full_is_used): New function.
13930 (find_full_open): Call record_preopen instead of checking
13931 RECORD_IS_USED.
13932 (init_record_full_ops): Set the target's shortname to
13933 record_full_shortname.
13934 (init_record_full_core_ops): Set the target's shortname to
13935 record_full_core_shortname.
13936 * record-full.h (record_full_is_used): Declare.
13937 * record.c (find_record_target): Make extern.
13938 (record_preopen): New function.
13939 * record.h (RECORD_IS_USED): Delete macro.
13940 (find_record_target, record_preopen): Declare functions.
13941
13942 2014-01-14 Yao Qi <yao@codesourcery.com>
13943
13944 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13945 'len''s type to ULONGEST.
13946 (core_xfer_shared_libraries_aix): Likewise.
13947 * gdbarch.c, gdbarch.h: Regenerated.
13948 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13949 Change type of 'len' to ULONGEST.
13950 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13951 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13952
13953 2014-01-14 Yao Qi <yao@codesourcery.com>
13954
13955 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13956 type of 'len' to ULONGEST.
13957 (linux_xfer_osdata_processgroups): Likewise.
13958 (linux_xfer_osdata_threads): Likewise.
13959 (linux_xfer_osdata_fds): Likewise.
13960 (linux_xfer_osdata_isockets): Likewise.
13961 (linux_xfer_osdata_shm): Likewise.
13962 (linux_xfer_osdata_sem): Likewise.
13963 (linux_xfer_osdata_msg): Likewise.
13964 (linux_common_xfer_osdata): Likewise.
13965 (struct osdata_type) <getter>: Likewise.
13966 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13967 the declaration.
13968
13969 2014-01-14 Yao Qi <yao@codesourcery.com>
13970
13971 * target.h (target_xfer_partial_ftype): Update.
13972 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13973 ULONGEST.
13974 * aix-thread.c (aix_thread_xfer_partial): Change type of
13975 argument 'len' to ULONGEST.
13976 * auxv.c (procfs_xfer_auxv): Likewise.
13977 (ld_so_xfer_auxv): Likewise.
13978 (memory_xfer_auxv): Likewise.
13979 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13980 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13981 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13982 * corelow.c (core_xfer_partial): Likewise.
13983 * ctf.c (ctf_xfer_partial): Likewise.
13984 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13985 '%u'.
13986 (darwin_read_dyld_info): Likewise.
13987 (darwin_xfer_partial): Likewise.
13988 * exec.c (section_table_xfer_memory_partial): Likewise.
13989 (exec_xfer_partial): Likewise.
13990 * exec.h (section_table_xfer_memory_partial): Update
13991 declaration.
13992 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13993 instead of plongest.
13994 (gnu_xfer_partial): Likewise.
13995 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13996 (ia64_hpux_xfer_solib_got): Likewise.
13997 (ia64_hpux_xfer_partial): Likewise.
13998 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13999 * inf-ptrace.c (inf_ptrace_xfer_partial):
14000 * inf-ttrace.c (inf_ttrace_xfer_partial):
14001 * linux-nat.c (linux_xfer_siginfo): Likewise.
14002 (linux_nat_xfer_partial): Likewise.
14003 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14004 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14005 * monitor.c (monitor_xfer_memory): Likewise.
14006 (monitor_xfer_partial): Likewise.
14007 * procfs.c (procfs_xfer_partial): Likewise.
14008 * record-full.c (record_full_xfer_partial): Likewise.
14009 (record_full_core_xfer_partial): Likewise.
14010 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14011 instead of plongest.
14012 (gdbsim_xfer_partial): Likewise.
14013 * remote.c (remote_xfer_partial): Likewise.
14014 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14015 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14016 declaration.
14017 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14018 (rs6000_xfer_shared_libraries): Likewise.
14019 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14020 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14021 (sparc_xfer_partial): Likewise.
14022 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14023 (spu_xfer_partial): Likewise.
14024 * spu-multiarch.c (spu_xfer_partial): Likewise.
14025 * target.c (target_read_live_memory): Likewise.
14026 (memory_xfer_live_readonly_partial): Likewise.
14027 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14028 (target_xfer_partial, default_xfer_partial): Likewise.
14029 (current_xfer_partial): Likewise.
14030 * tracepoint.c (tfile_xfer_partial): Likewise.
14031 * windows-nat.c (windows_xfer_memory): Likewise. Call
14032 pulongest instead of plongest.
14033 (windows_xfer_partial): Likewise.
14034 (windows_xfer_shared_libraries): Likewise.
14035
14036 2014-01-14 Yao Qi <yao@codesourcery.com>
14037
14038 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14039 target_xfer_partial_ftype.
14040
14041 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14042
14043 PR python/15464
14044 PR python/16113
14045 * valops.c (value_struct_elt_bitpos): New function
14046 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14047 object to 'None' if the field name is an empty string ("").
14048 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14049 attribute to look for a field when 'name' is 'None'.
14050 (get_field_type): New function
14051
14052 2014-01-13 Doug Evans <dje@google.com>
14053
14054 PR symtab/16426
14055 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14056 (try_open_dwop_file): Ditto.
14057 * gdb_bfd.c: #include "vec.h".
14058 (bfdp): New typedef.
14059 (struct gdb_bfd_data): New member included_bfds.
14060 (gdb_bfd_unref): Unref all included bfds.
14061 (gdb_bfd_record_inclusion): New function.
14062 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14063
14064 2014-01-13 Tom Tromey <tromey@redhat.com>
14065
14066 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14067
14068 2014-01-13 Tom Tromey <tromey@redhat.com>
14069
14070 * defs.h (use_windows): Remove.
14071 * gdb.c (main): Update.
14072 * main.c (captured_main, gdb_main): Update.
14073 * main.h (struct captured_main_args) <use_windows>: Remove.
14074 * top.c (use_windows): Remove.
14075
14076 2014-01-13 Tom Tromey <tromey@redhat.com>
14077
14078 * defs.h (deprecated_flush_hook): Remove.
14079
14080 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14081
14082 PR threads/16216
14083 * linux-thread-db.c (try_thread_db_load): Add parameter
14084 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14085 (try_thread_db_load_from_pdir_1): Move it there from here.
14086 (try_thread_db_load_from_sdir): Update caller.
14087 (try_thread_db_load_from_dir): Move it there from here.
14088
14089 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14090
14091 * regformats/regdat.sh: Always rewrite the register file.
14092
14093 2014-01-13 Pedro Alves <palves@redhat.com>
14094
14095 * Makefile.in (CHECK_HEADERS): New variable.
14096 (check-headers:): New rule.
14097
14098 2014-01-13 Tom Tromey <tromey@redhat.com>
14099
14100 * cli/cli-setshow.c (do_set_command): Update.
14101 * defs.h (deprecated_set_hook): Remove.
14102 * top.c (deprecated_set_hook): Remove.
14103
14104 2014-01-13 Pedro Alves <palves@redhat.com>
14105
14106 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14107 the tracepoint if the PC is a pseudo-register.
14108
14109 2014-01-13 Tom Tromey <tromey@redhat.com>
14110
14111 * defs.h (XCALLOC): Remove.
14112 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14113 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14114 * dwarf2loc.c (allocate_piece_closure): Likewise.
14115 * elfread.c (elf_symfile_segments): Likewise.
14116 (elf_symfile_segments): Likewise.
14117 * gdbtypes.c (copy_type_recursive): Likewise.
14118 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14119 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14120 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14121 XCALLOC.
14122 * mt-tdep.c (mt_gdbarch_init): Likewise.
14123 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14124 XCALLOC.
14125 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14126 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14127 * registry.c (registry_alloc_data): Likewise.
14128 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14129 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14130 * serial.c (serial_fdopen_ops): Likewise.
14131 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14132 XCALLOC.
14133 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14134 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14135 not XCALLOC.
14136
14137 2014-01-13 Tom Tromey <tromey@redhat.com>
14138
14139 * defs.h (XMALLOC): Remove.
14140 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14141 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14142 * cli-out.c (struct ui_out *): Likewise.
14143 * cli/cli-dump.c (add_dump_command): Likewise.
14144 (add_dump_command): Likewise.
14145 * complaints.c (get_complaints): Likewise.
14146 (find_complaint): Likewise.
14147 * dwarf2-frame.c (execute_cfa_program): Likewise.
14148 * dwarf2read.c (abbrev_table_read_table): Likewise.
14149 * gdbarch.sh: Likewise.
14150 * gdbarch.c: Rebuild.
14151 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14152 * interps.c (interp_new): Likewise.
14153 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14154 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14155 * mi/mi-console.c (mi_console_file_new): Likewise.
14156 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14157 * mi/mi-out.c (mi_out_new): Likewise.
14158 * mi/mi-parse.c (mi_parse): Likewise.
14159 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14160 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14161 * observer.c (xalloc_observer_list_node): Likewise.
14162 * regcache.c (regcache_xmalloc_1): Likewise.
14163 * reggroups.c (reggroup_new): Likewise.
14164 (_initialize_reggroup): Likewise.
14165 * registry.c (register_data_with_cleanup): Likewise.
14166 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14167 * ser-base.c (serial_ttystate): Likewise.
14168 * ser-mingw.c (make_pipe_state): Likewise.
14169 * ser-pipe.c (pipe_open): Likewise.
14170 * serial.c (serial_open): Likewise.
14171 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14172 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14173 (tui_alloc_win_info): Likewise.
14174 (tui_add_content_elements): Likewise.
14175 * tui/tui-file.c (tui_file_new): Likewise.
14176 * tui/tui-out.c (tui_out_new): Likewise.
14177 * ui-file.c (mem_file_new): Likewise.
14178 * ui-out.c (push_level): Likewise.
14179 (make_cleanup_ui_out_end): Likewise.
14180 (append_header_to_list): Likewise.
14181 (ui_out_new): Likewise.
14182 * user-regs.c (user_reg_add_builtin): Likewise.
14183
14184 2014-01-13 Tom Tromey <tromey@redhat.com>
14185
14186 * defs.h (XZALLOC): Remove.
14187 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14188 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14189 (get_ada_tasks_inferior_data): Likewise.
14190 * auto-load.c (get_auto_load_pspace_data): Likewise.
14191 * auxv.c (get_auxv_inferior_data): Likewise.
14192 * bfd-target.c (target_bfd_reopen): Likewise.
14193 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14194 (deprecated_insert_raw_breakpoint): Likewise.
14195 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14196 * corelow.c (core_open): Likewise.
14197 * darwin-nat.c (darwin_check_new_threads): Likewise.
14198 (darwin_attach_pid): Likewise.
14199 * dummy-frame.c (dummy_frame_push): Likewise.
14200 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14201 * dwarf2loc.c (allocate_piece_closure): Likewise.
14202 * elfread.c (elf_symfile_segments): Likewise.
14203 * eval.c (ptrmath_type_p): Likewise.
14204 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14205 * gdbtypes.c (alloc_type_arch): Likewise.
14206 (alloc_type_instance): Likewise.
14207 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14208 * inf-child.c (inf_child_can_use_agent): Likewise.
14209 * inflow.c (get_inflow_inferior_data): Likewise.
14210 * infrun.c (save_infcall_suspend_state): Likewise.
14211 * jit.c (jit_reader_load): Likewise.
14212 (get_jit_objfile_data): Likewise.
14213 (get_jit_program_space_data): Likewise.
14214 (jit_object_open_impl): Likewise.
14215 (jit_symtab_open_impl): Likewise.
14216 (jit_block_open_impl): Likewise.
14217 (jit_frame_sniffer): Likewise.
14218 * linux-fork.c (add_fork): Likewise.
14219 * maint.c (make_command_stats_cleanup): Likewise.
14220 * objfiles.c (get_objfile_pspace_data): Likewise.
14221 * opencl-lang.c (struct lval_closure): Likewise.
14222 * osdata.c (osdata_start_osdata): Likewise.
14223 * progspace.c (new_address_space): Likewise.
14224 (add_program_space): Likewise.
14225 * remote-sim.c (get_sim_inferior_data): Likewise.
14226 * sh-tdep.c (sh_gdbarch_init): Likewise.
14227 * skip.c (Ignore): Likewise.
14228 (skip_delete_command): Likewise.
14229 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14230 (library_list_start_library): Likewise.
14231 (solib_aix_current_sos): Likewise.
14232 * solib-darwin.c (get_darwin_info): Likewise.
14233 (darwin_current_sos): Likewise.
14234 * solib-dsbt.c (get_dsbt_info): Likewise.
14235 * solib-ia64-hpux.c (new_so_list): Likewise.
14236 (ia64_hpux_get_solib_linkage_addr): Likewise.
14237 * solib-spu.c (append_ocl_sos): Likewise.
14238 (spu_current_sos): Likewise.
14239 * solib-svr4.c (get_svr4_info): Likewise.
14240 (svr4_keep_data_in_core): Likewise.
14241 (library_list_start_library): Likewise.
14242 (svr4_default_sos): Likewise.
14243 (svr4_read_so_list): Likewise.
14244 * solib-target.c (library_list_start_library): Likewise.
14245 (solib_target_current_sos): Likewise.
14246 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14247 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14248 * symfile.c (default_symfile_segments): Likewise.
14249 * target-descriptions.c (tdesc_data_init): Likewise.
14250 (tdesc_create_reg): Likewise.
14251 (struct tdesc_type *): Likewise.
14252 (tdesc_create_vector): Likewise.
14253 (tdesc_set_struct_size): Likewise.
14254 (struct tdesc_type *): Likewise.
14255 (tdesc_free_feature): Likewise.
14256 (tdesc_create_feature): Likewise.
14257 * windows-nat.c (windows_add_thread): Likewise.
14258 (windows_make_so): Likewise.
14259 * xml-support.c (gdb_xml_body_text): Likewise.
14260 (gdb_xml_create_parser_and_cleanup): Likewise.
14261 (xml_process_xincludes): Likewise.
14262 * xml-syscall.c (allocate_syscalls_info): Likewise.
14263 (syscall_create_syscall_desc): Likewise.
14264
14265 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14266
14267 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14268 function, with code from i386_stap_parse_special_token.
14269 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14270 (i386_stap_parse_special_token): Move code to the two functions
14271 above; simplify it.
14272
14273 2014-01-09 Pedro Alves <palves@redhat.com>
14274 Hui Zhu <hui@codesourcery.com>
14275
14276 PR gdb/16101
14277 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14278 bp_err_string. Don't mark the location shlib_disabled if the
14279 error thrown wasn't a generic or memory error. Catch errors
14280 thrown while inserting breakpoints in overlayed code. Output
14281 error message of software breakpoints.
14282 * remote.c (remote_insert_breakpoint): If this breakpoint has
14283 target-side commands but this stub doesn't support Z0 packets,
14284 throw NOT_SUPPORTED_ERROR error.
14285 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14286 * target.h (target_insert_breakpoint): Extend comment.
14287 (target_insert_hw_breakpoint): Add comment.
14288
14289 2014-01-08 Pedro Alves <palves@redhat.com>
14290
14291 * remote.c (remote_add_thread): Add threads silently if starting
14292 up.
14293 (remote_notice_new_inferior): If in all-stop, and starting up,
14294 don't call notice_new_inferior.
14295 (get_current_thread): New function, factored out from ...
14296 (add_current_inferior_and_thread): ... this. Adjust.
14297 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14298 found any thread, then select the remote's current thread as GDB's
14299 current thread too.
14300
14301 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14302
14303 * NEWS: Create a new section for the next release branch.
14304 Rename the section of the current branch, now that it has
14305 been cut.
14306
14307 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14308
14309 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14310 * version.in: Bump version to 7.7.50.DATE-cvs.
14311
14312 2014-01-08 Yao Qi <yao@codesourcery.com>
14313
14314 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14315 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14316 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14317
14318 2014-01-08 Yao Qi <yao@codesourcery.com>
14319
14320 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14321 return value of bfd_get_filename to symbol_file_add_from_bfd.
14322
14323 2014-01-08 Pierre Muller <muller@sourceware.org>
14324
14325 Fix PR16201.
14326 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14327 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14328 to prim_record_mininal_symbol_and_info.
14329 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14330 in call to prim_record_minimal_symbol_and_info.
14331 (read_pe_exported_syms): Set index field of section_data.
14332
14333 2014-01-07 Andrew Pinski <apinski@cavium.com>
14334
14335 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14336 * features/aarch64.c: Regenerate.
14337
14338 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14339
14340 * target.c (return_null): Define.
14341 (update_current_target): Use it instead of return_zero for
14342 functions that return a pointer.
14343
14344 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14345
14346 * source.c (add_path): Fix check for duplicated paths in the previously
14347 included paths.
14348
14349 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14350
14351 * ada-lang.c: Remove duplicated include statements.
14352 * alphabsd-nat.c: Ditto.
14353 * amd64-darwin-tdep.c: Ditto.
14354 * amd64fbsd-nat.c: Ditto.
14355 * auto-load.c: Ditto.
14356 * ax-gdb.c: Ditto.
14357 * breakpoint.c: Ditto.
14358 * dbxread.c: Ditto.
14359 * fork-child.c: Ditto.
14360 * gdb_usleep.c: Ditto.
14361 * i386-darwin-tdep.c: Ditto.
14362 * i386fbsd-nat.c: Ditto.
14363 * infcmd.c: Ditto.
14364 * inferior.c: Ditto.
14365 * jv-lang.c: Ditto.
14366 * linux-nat.c: Ditto.
14367 * linux-tdep.c: Ditto.
14368 * m68kbsd-nat.c: Ditto.
14369 * m68klinux-nat.c: Ditto.
14370 * microblaze-tdep.c: Ditto.
14371 * mips-linux-tdep.c: Ditto.
14372 * mn10300-tdep.c: Ditto.
14373 * nto-tdep.c: Ditto.
14374 * opencl-lang.c: Ditto.
14375 * osdata.c: Ditto.
14376 * printcmd.c: Ditto.
14377 * regcache.c: Ditto.
14378 * remote-m32r-sdi.c: Ditto.
14379 * remote.c: Ditto.
14380 * symfile.c: Ditto.
14381 * symtab.c: Ditto.
14382 * tilegx-linux-nat.c: Ditto.
14383 * tilegx-tdep.c: Ditto.
14384 * tracepoint.c: Ditto.
14385 * valops.c: Ditto.
14386 * vaxbsd-nat.c: Ditto.
14387 * windows-nat.c: Ditto.
14388 * xtensa-tdep.c: Ditto.
14389
14390 2014-01-07 Yao Qi <yao@codesourcery.com>
14391
14392 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14393
14394 2014-01-07 Yao Qi <yao@codesourcery.com>
14395 Joel Brobecker <brobecker@adacore.com>
14396
14397 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14398 (pdc_write_regs): Likewise.
14399 (fetch_regs_kernel_thread): Likewise.
14400 (store_regs_kernel_thread): Likewise.
14401
14402 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14403
14404 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14405 tagged type objects to their actual type.
14406
14407 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14408
14409 * ada-valprint.c (print_field_values): Add "language" parameter.
14410 Update calls to print_field_values and print_variant_part.
14411 Pass new parameter "language" in call to val_print instead
14412 of "current_language". Replace call to ada_val_print by call
14413 to val_print.
14414 (print_variant_part): Add "language" parameter.
14415 (ada_val_print_struct_union): Update call to print_field_values.
14416
14417 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14418
14419 * ada-valprint.c (ui_memcpy): Delete.
14420 (ada_print_floating): Update documentation. Add empty line
14421 between between function documentation and implementation.
14422 Delete variable "buffer". Use ui_file_xstrdup in place of
14423 ui_file_put. Minor adjustments following this change.
14424
14425 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14426
14427 * ada-valprint.c (ada_val_print_string): New function,
14428 extracted from ada_val_print_array.
14429 (ada_val_print_array): Replace extracted code by call
14430 to ada_val_print_string followed by a return. Move
14431 "else" branch to the function's top block.
14432
14433 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14434
14435 * ada-valprint.c (ada_val_print_array): Move implementation
14436 down. Rename parameter "offset" and "val" into "offset_aligned"
14437 and "original_value" respectively. Add parameter "offset".
14438
14439 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14440
14441 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14442 re-organizing the code. Change the "???" message printed
14443 when target type is a TYPE_CODE_UNDEF into
14444 "<ref to undefined type>".
14445
14446 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14447
14448 * ada-valprint.c (print_record): Delete, implementation inlined...
14449 (ada_val_print_struct_union): ... here. Remove call to
14450 ada_check_typedef in inlined implementation.
14451
14452 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14453
14454 * ada-valprint.c (ada_val_print_gnat_array): New function,
14455 extracted from ada_val_print_1;
14456 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14457 (ada_val_print_flt, ada_val_print_struct_union)
14458 (ada_val_print_ref): Likewise.
14459 (ada_val_print_1): Delete variables i and elttype.
14460 Replace extracted-out code by call to corresponding
14461 new functions.
14462
14463 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14464
14465 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14466
14467 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14468
14469 * ada-valprint.c (ada_val_print_1): Replace calls to
14470 ada_val_print_1 by calls to val_print.
14471
14472 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14473
14474 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14475 Update calls to self accordingly. Replace calls to c_val_print
14476 by calls to val_print.
14477
14478 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14479
14480 * ada-valprint.c (print_record): Delete declaration.
14481 (adjust_type_signedness, ada_val_print_1): Likewise.
14482 (ada_val_print): Move function implementation down.
14483 (print_variant_part, print_field_values, print_record):
14484 Move function implementation up.
14485
14486 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14487
14488 * python/py-type.c (typy_get_name): New function.
14489 (type_object_getset): Add entry for attribute "name".
14490 * NEWS: Add entry mentioning this new attribute.
14491
14492 2014-01-07 Yao Qi <yao@codesourcery.com>
14493
14494 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14495 statement.
14496
14497 2014-01-07 Yao Qi <yao@codesourcery.com>
14498
14499 * gnu-nat.c (info_port_rights): Add qualifier const to
14500 argument args.
14501
14502 2014-01-07 Yao Qi <yao@codesourcery.com>
14503
14504 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14505
14506 2014-01-07 Yao Qi <yao@codesourcery.com>
14507
14508 * gnu-nat.c (make_inf) Update declaration.
14509 (make_inf): Make it static.
14510 (inf_set_traced): Likewise.
14511 (inf_port_to_thread, inf_task_died_status): Likewise.
14512
14513 2014-01-07 Yao Qi <yao@codesourcery.com>
14514
14515 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14516
14517 2014-01-07 Yao Qi <yao@codesourcery.com>
14518
14519 * gnu-nat.c (_initialize_gnu_nat): Declare.
14520
14521 2014-01-07 Yao Qi <yao@codesourcery.com>
14522
14523 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14524 'enum bfd_endian'.
14525 (struct gdbarch_info) <byte_order>: Change type to
14526 'enum bfd_endian'.
14527 <byte_order_for_code>: Likewise.
14528 * gdbarch.c, gdbarch.h: Regenerated.
14529
14530 2014-01-06 Sasha Smundak <asmundak@google.com>
14531
14532 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14533
14534 2014-01-06 Tom Tromey <tromey@redhat.com>
14535
14536 * doublest.c (convert_doublest_to_floatformat): Use const, not
14537 CONST.
14538 * somread.c (som_symtab_read): Likewise.
14539
14540 2014-01-07 Hui Zhu <hui@codesourcery.com>
14541
14542 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14543 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14544 (gdb_bfd_fopen): Ditto.
14545 (gdb_bfd_openr): Ditto.
14546 (gdb_bfd_openw): Ditto.
14547 (gdb_bfd_openr_iovec): Ditto.
14548 (gdb_bfd_fdopenr): Ditto.
14549 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14550 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14551 with xstrdup.
14552 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14553 with xstrdup.
14554 * symfile-mem.c (symbol_file_add_from_memory): Removed
14555 gdb_bfd_stash_filename.
14556
14557 2014-01-03 Doug Evans <dje@google.com>
14558
14559 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14560 output.
14561
14562 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14563
14564 Update year range in copyright notice of all files.
14565
14566 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14567
14568 * top.c (print_gdb_version): Set copyright year to 2014.
14569
14570 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14571
14572 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14573
14574 For older changes see ChangeLog-2013.
14575 \f
14576 Local Variables:
14577 mode: change-log
14578 left-margin: 8
14579 fill-column: 74
14580 version-control: never
14581 coding: utf-8
14582 End: